import{Er as e,Kr as t,Mr as n,Un as r,hn as i,ii as a,kn as o,r as s,rr as c,vn as l,wn as u}from"./index-BKLG6eUi.js";import{l as d,m as f,u as p}from"./VTextField-Bs8XQAKI.js";import{d as m,f as h}from"./VSelect-Dy70bHJm.js";var g=o({...c(p(),[`direction`]),...c(h(),[`inline`])},`VCheckbox`),_=u()({name:`VCheckbox`,inheritAttrs:!1,props:g(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(o,{attrs:c,slots:u}){let p=i(o,`modelValue`),{isFocused:h,focus:g,blur:_}=f(o),v=a(),y=t();return l(()=>{let[t,i]=r(c),a=d.filterProps(o),s=m.filterProps(o);return e(d,n({ref:v,class:[`v-checkbox`,o.class]},t,a,{modelValue:p.value,"onUpdate:modelValue":e=>p.value=e,id:o.id||`checkbox-${y}`,focused:h.value,style:o.style}),{...u,default:({id:t,messagesId:r,isDisabled:a,isReadonly:o,isValid:c})=>e(m,n(s,{id:t.value,"aria-describedby":r.value,disabled:a.value,readonly:o.value},i,{error:c.value===!1,modelValue:p.value,"onUpdate:modelValue":e=>p.value=e,onFocus:g,onBlur:_}),u)})}),s({},v)}});export{_ as t};