import{V as l,m as R}from"./VCheckboxBtn-CmKDOTuO.js";import{g,p as A,j as F,cP as B,J as U,cU as j,n as w,cV as D,cQ as r,o as u,ae as c,ap as J,ai as M,cR as N}from"./index-DQ0AtwBO.js";const Q=A({...N(),...M(R(),["inline"])},"VCheckbox"),z=g()({name:"VCheckbox",inheritAttrs:!1,props:Q(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,d){let{attrs:n,slots:o}=d;const s=F(e,"modelValue"),{isFocused:i,focus:m,blur:V}=B(e),t=U(),f=j();return w(()=>{const[p,b]=D(n),k=r.filterProps(e),v=l.filterProps(e);return u(r,c({ref:t,class:["v-checkbox",e.class]},p,k,{modelValue:s.value,"onUpdate:modelValue":a=>s.value=a,id:e.id||`checkbox-${f}`,focused:i.value,style:e.style}),{...o,default:a=>{let{id:x,messagesId:h,isDisabled:P,isReadonly:C,isValid:y}=a;return u(l,c(v,{id:x.value,"aria-describedby":h.value,disabled:P.value,readonly:C.value},b,{error:y.value===!1,modelValue:s.value,"onUpdate:modelValue":I=>s.value=I,onFocus:m,onBlur:V}),o)}})}),J({},t)}});export{z as V};
