import{Dr as e,Pn as t,Qt as n,Sn as r,_r as i,dn as a,o,or as s,p as c,s as l,sn as u,tn as d,tr as f,v as p}from"./index-pvdeMyqI.js";import{a as m,i as h}from"./VSelect-BoiNBjNz.js";var g=a({...t(l(),[`direction`]),...t(m(),[`inline`])},`VCheckbox`),_=u()({name:`VCheckbox`,inheritAttrs:!1,props:g(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(t,{attrs:a,slots:l}){let u=n(t,`modelValue`),{isFocused:m,focus:g,blur:_}=c(t),v=e(),y=i();return d(()=>{let[e,n]=r(a),i=o.filterProps(t),c=h.filterProps(t);return f(o,s({ref:v,class:[`v-checkbox`,t.class]},e,i,{modelValue:u.value,"onUpdate:modelValue":e=>u.value=e,id:t.id||`checkbox-${y}`,focused:m.value,style:t.style}),{...l,default:({id:e,messagesId:t,isDisabled:r,isReadonly:i,isValid:a})=>f(h,s(c,{id:e.value,"aria-describedby":t.value,disabled:r.value,readonly:i.value},n,{error:a.value===!1,modelValue:u.value,"onUpdate:modelValue":e=>u.value=e,onFocus:g,onBlur:_}),l)})}),p({},v)}});export{_ as t};