import{b as I,m as g,c as B,d as t,V as l}from"./VInput-DB7cgrUt.js";import{A as F,B as U,aw as R,aP as w,c as D,I as K,ax as L,bL as M,d as u,K as r}from"./main-CJbVOHh0.js";const N=U({...g(),...L(B(),["inline"])},"VCheckbox"),q=F()({name:"VCheckbox",inheritAttrs:!1,props:N(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,d){let{attrs:c,slots:o}=d;const s=R(e,"modelValue"),{isFocused:n,focus:i,blur:m}=I(e),V=w(),b=D(()=>e.id||`checkbox-${V}`);return K(()=>{const[p,v]=M(c),f=t.filterProps(e),k=l.filterProps(e);return u(t,r({class:["v-checkbox",e.class]},p,f,{modelValue:s.value,"onUpdate:modelValue":a=>s.value=a,id:b.value,focused:n.value,style:e.style}),{...o,default:a=>{let{id:x,messagesId:h,isDisabled:P,isReadonly:C,isValid:y}=a;return u(l,r(k,{id:x.value,"aria-describedby":h.value,disabled:P.value,readonly:C.value},v,{error:y.value===!1,modelValue:s.value,"onUpdate:modelValue":A=>s.value=A,onFocus:i,onBlur:m}),o)}})}),{}}});export{q as V};
