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