import{b as g,a as t}from"./VCheckboxBtn-0a0e30be.js";import{ac as A,aV as F,bm as I,af as B,aW as U,aY as _,aZ as $,J as R,ag as q,a_ as D,a$ as l,q as u,K as c}from"./index-2e57ee69.js";const J=A({...F(),...I(g(),["inline"])},"VCheckbox"),Y=B()({name:"VCheckbox",inheritAttrs:!1,props:J(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,r){let{attrs:d,slots:o}=r;const a=U(e,"modelValue"),{isFocused:n,focus:i,blur:m}=_(e),V=$(),b=R(()=>e.id||`checkbox-${V}`);return q(()=>{const[p,k]=D(d),[f,K]=l.filterProps(e),[v,M]=t.filterProps(e);return u(l,c({class:["v-checkbox",e.class]},p,f,{modelValue:a.value,"onUpdate:modelValue":s=>a.value=s,id:b.value,focused:n.value,style:e.style}),{...o,default:s=>{let{id:x,messagesId:h,isDisabled:P,isReadonly:C}=s;return u(t,c(v,{id:x.value,"aria-describedby":h.value,disabled:P.value,readonly:C.value},k,{modelValue:a.value,"onUpdate:modelValue":y=>a.value=y,onFocus:i,onBlur:m}),o)}})}),{}}});export{Y as V};
