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