import{_ as l}from"./Checkbox-WeIDo5uG.js";import{_ as n}from"./InputError-idDGfizs.js";import{_ as i,o,e as s,a as d,v as u,x as m,n as _,f}from"./app-WJL2kJBE.js";import{v as h}from"./v4-Ch9TGLTe.js";const k={emits:["update:checked"],components:{TecCheckbox:l,TecInputError:n},props:{id:{type:String,default(){return h()}},checked:{type:[Array,Boolean],default:!1},value:{default:null},label:String,error:String},computed:{proxyChecked:{get(){return this.checked},set(r){this.$emit("update:checked",r)}}}},x=["for"],p=["id","value"],y=["innerHTML"];function b(r,t,e,g,v,a){return o(),s("div",null,[d("label",{for:e.id,class:"flex items-start"},[u(d("input",{id:e.id,value:e.value,type:"checkbox","onUpdate:modelValue":t[0]||(t[0]=c=>a.proxyChecked=c),class:_([{"border-red-500":e.error},"mt-1 rounded border-gray-300 dark:border-gray-700 dark:bg-gray-700 text-blue-600 shadow-sm"])},null,10,p),[[m,a.proxyChecked]]),e.label?(o(),s("span",{key:0,innerHTML:e.label,class:"ml-2 text-gray-600 dark:text-gray-400"},null,8,y)):f("",!0)],8,x)])}const S=i(k,[["render",b]]);export{S as C};
