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