/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const tslib_es6=require("./tslib.es6-5e301284.js"),index=require("./index-07fcbac9.js"),clsx=require("./clsx-dd4d6dd1.js"),getRenderStates=require("./getRenderStates-3c874ec5.js"),FormFieldMsg=require("./FormFieldMsg-370f014e.js"),InputFc=e=>{const{class:s,msg:l,required:i,disabled:t,touched:r,readonly:d,ariaDescribedBy:a,hideLabel:n,label:o,suggestions:u,value:c}=e,b=tslib_es6.__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),g=FormFieldMsg.checkHasError(l,r),p={"kol-input--disabled":Boolean(t),"kol-input--required":Boolean(i),"kol-input--touched":Boolean(r),"kol-input--readonly":Boolean(d),[`kol-input--${(null==l?void 0:l.type)||"error"}`]:g},F=Object.assign(Object.assign({class:clsx.clsx("kol-input",p,s),required:i,disabled:t,readonly:d,type:"text",list:u?`${b.id}-list`:void 0},getRenderStates.getDefaultProps({ariaDescribedBy:a,hideLabel:n,label:o})),b);return index.h(index.Fragment,null,index.h("input",Object.assign({},F,{value:c})),u)},KolInputFc=InputFc;exports.KolInputFc=KolInputFc;