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