import{$n as e,$t as t,Mn as n,Xt as r,an as i,bn as a,ir as o,ln as s,mr as c,o as l,p as u,s as d,xr as f,y as p}from"./index-CooMZaFg.js";import{a as m,i as h}from"./VSelect-ATbo4Rds.js";var g=s({...n(d(),[`direction`]),...n(m(),[`inline`])},`VCheckbox`),_=i()({name:`VCheckbox`,inheritAttrs:!1,props:g(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(n,{attrs:i,slots:s}){let d=r(n,`modelValue`),{isFocused:m,focus:g,blur:_}=u(n),v=f(),y=c();return t(()=>{let[t,r]=a(i),c=l.filterProps(n),u=h.filterProps(n);return e(l,o({ref:v,class:[`v-checkbox`,n.class]},t,c,{modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,id:n.id||`checkbox-${y}`,focused:m.value,style:n.style}),{...s,default:({id:t,messagesId:n,isDisabled:i,isReadonly:a,isValid:c})=>e(h,o(u,{id:t.value,"aria-describedby":n.value,disabled:i.value,readonly:a.value},r,{error:c.value===!1,modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,onFocus:g,onBlur:_}),s)})}),p({},v)}});export{_ as t};