/*!
 * KoliBri - The accessible HTML-Standard
 */
import{a as e}from"./tslib.es6-QNbPBOk5.js";import{h as s,F as o}from"./index-Brmny3Vg.js";import"./common-DEEjER7G.js";import{i as a,c as l,g as i}from"./FormFieldStateWrapper-DCXQnRBu.js";import{c as t}from"./clsx-COFh-Vc8.js";import{a as r}from"./dev.utils-HhhlYW_9.js";const d=d=>{const{class:n,msg:u,required:c,disabled:b,touched:p,readonly:m,ariaDescribedBy:j,hideLabel:y,label:B,suggestions:g,value:h}=d,f=e(d,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]);const k={["kol-input--disabled"]:Boolean(b),["kol-input--required"]:Boolean(c),["kol-input--touched"]:Boolean(p),["kol-input--readonly"]:Boolean(m),[`kol-input--${i(u)}`]:a(u,p)};const D=Object.assign(Object.assign({class:t("kol-input",k,n),required:c,disabled:b,readonly:m,type:"text",list:g&&typeof f.id==="string"?r(f.id,"list"):undefined},l({ariaDescribedBy:j,hideLabel:y,label:B})),f);return s(o,null,s("input",Object.assign({},D,{value:h})),g)};export{d as I};
//# sourceMappingURL=Input-Chj5JCQv.js.map