import{_ as t}from"./InputModelBase-CeuTljlj.js";import{_ as u,o as n,a as l,e as o,z as m,M as p,n as i,I as b,d as r,t as c}from"./_plugin-vue_export-helper-DfQgE-tC.js";const k={name:"InputCheckbox",extends:t,props:{bold:{type:Boolean,default:!1},noMargin:{type:Boolean,default:!1}}},v={class:"ainput-checkbox"},h={class:"ainput-checkbox-item"},f=["disabled","value","name","required"],g=o("span",{class:"ainput-checkbox-checkmark"},null,-1),B=["innerHTML"],I={key:0,class:"ainput-stern"},M={key:0,class:"ainput-errormessage"};function y(e,a,d,C,q,$){return n(),l("div",{class:i(["ainput",{disabled:e.model.disabled,error:!e.model.valid,noMargin:d.noMargin}])},[o("div",v,[o("label",h,[m(o("input",{class:"ainput-checkbox-input",type:"checkbox",disabled:e.model.disabled,value:e.model.value,name:"checkbox-"+e.model.uniqueid,required:e.model.required,"onUpdate:modelValue":a[0]||(a[0]=s=>e.model.value=s),onChange:a[1]||(a[1]=(...s)=>e.onBlur&&e.onBlur(...s)),onInvalid:a[2]||(a[2]=(...s)=>e.onInvalid&&e.onInvalid(...s))},null,40,f),[[p,e.model.value]]),g,o("span",{class:i({"ainput-bold":d.bold})},[b(e.$slots,"default",{},()=>[o("span",{innerHTML:e.model.label},null,8,B)]),e.model.required?(n(),l("span",I,"*")):r("",!0)],2)]),e.model.valid?r("",!0):(n(),l("div",M,[o("span",null,c(e.model.message),1)]))])],2)}const z=u(k,[["render",y]]);export{z as I};