import{r as a,h as i,H as t,g as e}from"./p-8e4e97b4.js";import{b as l,Y as r,Z as o,K as c,_ as n,$ as s,T as p}from"./p-8242c24f.js";const d="ic-input-label{margin-bottom:var(--ic-space-xs);--ic-typography-color:var(\n    --ic-input-label-text-color,\n    var(--ic-color-text-primary)\n  )}ic-input-label.with-helper{margin-bottom:var(--ic-space-xxxs)}ic-input-label.ic-input-label-readonly{--ic-typography-color:var(--ic-input-label-readonly-typography-color)}ic-input-label .helpertext{margin-top:var(--ic-space-xxxs);padding-bottom:var(--ic-input-label-helpertext-padding, 0);--ic-typography-color:var(\n    --ic-input-label-helper-text-color,\n    var(--ic-color-text-secondary)\n  )}ic-input-label .helpertext-normal{--ic-typography-color:var(\n    --ic-input-label-helper-text-color,\n    var(--ic-color-text-secondary)\n  )}ic-input-label .helpertext-readonly{--ic-typography-color:var(--ic-input-label-readonly-helpertext-color)}ic-input-label .readonly-label{--ic-typography-color:var(--ic-input-label-readonly-label-color)}ic-input-label .error-label{--ic-typography-color:var(--ic-input-label-error-label-color)}";const u=d;const b=class{constructor(i){a(this,i);this.disabled=false;this.helperText="";this.hideLabel=false;this.readonly=false;this.required=false;this.status="";this.useLabelTag=true}componentDidLoad(){l([{prop:this.label,propName:"label"}],"Input Label")}render(){const{disabled:a,readonly:e,label:l,required:o,helperText:c,status:n,hideLabel:s,useLabelTag:p}=this;const d=o?l+" *":l;return i(t,{key:"324edfe4443673e3c50afaf6abe1507dddf8c5a1",class:{"ic-input-label-disabled":!!a,"ic-input-label-readonly":e,"with-helper":c!==""}},!s&&i("ic-typography",{key:"cc4776d1421cf7b93ff5bb5c0b148c82d9c42ef4",variant:"label",class:{"readonly-label":e,"error-label":n==="error"&&!(e||a)}},e||!p?`${d}`:i("label",{htmlFor:this.for},d)),c!==""&&i("ic-typography",{key:"8ccf12c8a4430108018f4ce1097359dbd23baefe",variant:"caption",class:{helpertext:true,"helpertext-normal":!a&&!e,"helpertext-readonly":e}},i("span",{key:"e6a63927e7da03f64b50f5b65be1eb63410f8dab",id:this.for&&r(this.for)},c)))}};b.style=u;const h="ic-input-validation{width:var(--input-width, 20rem);margin-top:var(--ic-space-xs);display:flex}ic-input-validation.ic-input-validation-full-width{width:100%}ic-input-validation span.status-icon{padding-right:var(--ic-space-xxs)}ic-input-validation span.status-icon>svg{height:1.25rem;width:1.25rem}ic-input-validation span.icon-success>svg{fill:var(--ic-input-validation-success-icon-color)}ic-input-validation span.icon-error>svg{fill:var(--ic-input-validation-error, var(--ic-atoms-status-icon-error))}ic-input-validation span.icon-warning>svg{fill:var(--ic-input-validation-warning-icon-color)}ic-input-validation .statustext{flex-grow:1;color:var(\n    --ic-input-validation-status-text-color,\n    var(--ic-color-text-primary)\n  );--ic-typography-color:var(\n    --ic-input-validation-status-text-color,\n    var(--ic-color-text-primary)\n  )}";const v=h;const y={[c.Warning]:n,[c.Error]:s,[c.Success]:p};const f=class{constructor(i){a(this,i);this.ariaLiveMode="polite";this.fullWidth=false;this.status=""}componentDidLoad(){l([{prop:this.message,propName:"message"}],"Input Validation")}render(){const{ariaLiveMode:a,fullWidth:e,status:l,message:r}=this;const c=l!==""?y[l]:"";return i(t,{key:"f61832a182b954a8b114547acd18ce38576daf06",class:{[`ic-input-validation-${l}`]:l!=="","ic-input-validation-full-width":!!e}},c!==""&&i("span",{key:"2d0766ad790827b8757354c2dc3d29e3aa9a5f71",class:{"status-icon":true,[`icon-${l}`]:true},innerHTML:c}),i("ic-typography",{key:"b1a98a5b7fd18ab96cde1ff555410f35f76a66e2",variant:"caption",class:"statustext"},i("span",{key:"5306d723ea7527eb997d778e82fbe10e00af7852","aria-live":a,id:this.for&&o(this.for)},r)),i("slot",{key:"a7e3c126ac89a1c616a327da99b8324df7c4464e",name:"validation-message-adornment"}))}get el(){return e(this)}};f.style=v;export{b as ic_input_label,f as ic_input_validation};
//# sourceMappingURL=p-18714198.entry.js.map