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