import{Nn as e,Sr as t,Zt as n,ar as r,en as i,er as a,hr as o,o as s,on as c,p as l,s as u,un as d,v as f,xn as p}from"./index-BeKW-8Gh.js";import{a as m,i as h}from"./VSelect-woq3TefW.js";var g=d({...e(u(),[`direction`]),...e(m(),[`inline`])},`VCheckbox`),_=c()({name:`VCheckbox`,inheritAttrs:!1,props:g(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,{attrs:c,slots:u}){let d=n(e,`modelValue`),{isFocused:m,focus:g,blur:_}=l(e),v=t(),y=o();return i(()=>{let[t,n]=p(c),i=s.filterProps(e),o=h.filterProps(e);return a(s,r({ref:v,class:[`v-checkbox`,e.class]},t,i,{modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,id:e.id||`checkbox-${y}`,focused:m.value,style:e.style}),{...u,default:({id:e,messagesId:t,isDisabled:i,isReadonly:s,isValid:c})=>a(h,r(o,{id:e.value,"aria-describedby":t.value,disabled:i.value,readonly:s.value},n,{error:c.value===!1,modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,onFocus:g,onBlur:_}),u)})}),f({},v)}});export{_ as t};