import{_ as i,m as b,o as t,c as l,d,w as m,a7 as k,s as h,r as p,t as v,h as _,H as x}from"./index-4e8c1b57.js";const B={class:"base-checkbox-wrapper"},f=["value","checked","disabled"],V={key:0,class:"form-error"},y={__name:"BaseCheckbox",props:{modelValue:[Array,Boolean],value:{required:!1},checked:Boolean,disabled:Boolean,error:String},emits:["update:modelValue"],setup(e,{emit:r}){const c=e,n=r,s=b({get(){return c.modelValue},set(o){n("update:modelValue",o)}});return(o,a)=>(t(),l(x,null,[d("label",B,[m(d("input",{type:"checkbox",class:"base-checkbox","onUpdate:modelValue":a[0]||(a[0]=u=>s.value=u),value:e.value,checked:e.checked,disabled:e.disabled,onClick:a[1]||(a[1]=h(()=>{},["stop"]))},null,8,f),[[k,s.value]]),p(o.$slots,"default",{},void 0,!0)]),e.error?(t(),l("div",V,v(e.error),1)):_("",!0)],64))}},g=i(y,[["__scopeId","data-v-ebb52b47"]]);export{g as B};