import{_ as f}from"./Heading-DT8fK42U-BBz359Il.js";import{h as n,F as k}from"./index-DscFWUNz.js";import{c as B}from"./clsx-eK3rPvPS-BT_IL7Fz.js";import{c as v,d as q}from"./FormFieldStateWrapper-B7PqxuTo-B9gPPu8s.js";/*!
 * KoliBri - The accessible HTML-Standard
 */const F=s=>{const{class:d,msg:e,required:o,disabled:t,touched:a,readonly:l,ariaDescribedBy:u,hideLabel:c,label:p,suggestions:i,value:g}=s,r=f(s,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),b=v(e,a),m=typeof e=="string"?"error":e?._type,y={"kol-input--disabled":!!t,"kol-input--required":!!o,"kol-input--touched":!!a,"kol-input--readonly":!!l,[`kol-input--${m||"error"}`]:b},h=Object.assign(Object.assign({class:B("kol-input",y,d),required:o,disabled:t,readonly:l,type:"text",list:i?`${r.id}-list`:void 0},q({ariaDescribedBy:u,hideLabel:c,label:p})),r);return n(k,null,n("input",Object.assign({},h,{value:g})),i)};export{F as I};
//# sourceMappingURL=Input-Dfunc1i_--f2frXLw.js.map
