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