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