import{h as e}from"./p-DBTJNfo7.js";const l=l=>{const a={};if(l.readonly){let a="minus";return l.checked&&(a={name:"ok",color:"var(--lime-primary-color, var(--limel-theme-primary-color))"}),[e("limel-dynamic-label",{value:l.checked,"aria-controls":l.helperText?l.helperTextId:void 0,defaultLabel:{text:l.label,icon:a},labels:l.readonlyLabels}),e(i,{text:l.helperText,helperTextId:l.helperTextId,invalid:l.invalid})]}return l.indeterminate?(a["data-indeterminate"]="true",a["aria-checked"]="mixed"):(a["data-indeterminate"]="false","boolean"==typeof l.checked&&(a["aria-checked"]=String(l.checked))),[e("div",{class:{"boolean-input":!0,checkbox:!0,checked:l.checked,invalid:l.invalid,disabled:l.disabled,required:l.required,indeterminate:l.indeterminate,readonly:l.readonly}},e("input",Object.assign({type:"checkbox",id:l.id,checked:l.checked,disabled:l.disabled||l.readonly,required:l.required,onChange:l.onChange,"aria-controls":l.helperText?l.helperTextId:void 0,"aria-describedby":l.helperTextId},a)),e("div",{class:"box"},e("svg",{class:"check-mark",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false"},e("path",{fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"}))),e("label",{class:"boolean-input-label",htmlFor:l.id},l.label)),e(i,{text:l.helperText,helperTextId:l.helperTextId,invalid:l.invalid})]},i=l=>{if("string"==typeof l.text)return e("limel-helper-line",{helperText:l.text.trim(),helperTextId:l.helperTextId,invalid:l.invalid})};export{l as C}