/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),index=require("./index-D0FxsaCe.js"),clsx=require("./clsx-CkZlkaek.js");require("./common-Cd2qH809.js");var FormFieldStateWrapper=require("./FormFieldStateWrapper-BeAW0hiT.js");const InputFc=e=>{const{class:r,msg:s,required:i,disabled:l,touched:a,readonly:t,ariaDescribedBy:d,hideLabel:o,label:n,suggestions:u,value:c}=e,p=tslib_es6.__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),b=FormFieldStateWrapper.checkHasMsg(s,a),g="string"==typeof s?"error":null==s?void 0:s._type,F={"kol-input--disabled":Boolean(l),"kol-input--required":Boolean(i),"kol-input--touched":Boolean(a),"kol-input--readonly":Boolean(t),[`kol-input--${g||"error"}`]:b},x=Object.assign(Object.assign({class:clsx.clsx("kol-input",F,r),required:i,disabled:l,readonly:t,type:"text",list:u?`${p.id}-list`:void 0},FormFieldStateWrapper.getDefaultProps({ariaDescribedBy:d,hideLabel:o,label:n})),p);return index.h(index.Fragment,null,index.h("input",Object.assign({},x,{value:c})),u)};exports.InputFc=InputFc;