import{V as r,d as g}from"./VCheckboxBtn-CfFW93dK.js";import{a as A,b as l,f as F}from"./VTextField-B0ZitX9S.js";import{g as R,p as B,a3 as N,$ as U,aN as $,c as w,az as z,d as u,E as d,ad as D,ae as E}from"./index-BBhBboPS.js";const M=B({...F(),...E(g(),["inline"])},"VCheckbox"),H=R()({name:"VCheckbox",inheritAttrs:!1,props:M(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,c){let{attrs:n,slots:o}=c;const s=N(e,"modelValue"),{isFocused:i,focus:m,blur:f}=A(e),t=U(),V=$();return w(()=>{const[p,b]=z(n),k=l.filterProps(e),v=r.filterProps(e);return u(l,d({ref:t,class:["v-checkbox",e.class]},p,k,{modelValue:s.value,"onUpdate:modelValue":a=>s.value=a,id:e.id||`checkbox-${V}`,focused:i.value,style:e.style}),{...o,default:a=>{let{id:x,messagesId:h,isDisabled:P,isReadonly:C,isValid:y}=a;return u(r,d(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:f}),o)}})}),D({},t)}});export{H as V};
