/*!
 * KoliBri - The accessible HTML-Standard
 */
import{_ as __rest}from"./tslib.es6-CxX45GIN.js";import{h,F as Fragment}from"./index-C_yiBYg2.js";import{c as clsx}from"./clsx-eK3rPvPS.js";import"./common-Dd0zJQbD.js";import{d as getDefaultProps,c as checkHasMsg}from"./FormFieldStateWrapper-Cj4-CJCr.js";const InputFc=e=>{const{class:s,msg:r,required:a,disabled:l,touched:o,readonly:t,ariaDescribedBy:i,hideLabel:d,label:n,suggestions:c,value:u}=e,p=__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),b=checkHasMsg(r,o),g="string"==typeof r?"error":null==r?void 0:r._type,m={"kol-input--disabled":Boolean(l),"kol-input--required":Boolean(a),"kol-input--touched":Boolean(o),"kol-input--readonly":Boolean(t),[`kol-input--${g||"error"}`]:b},y=Object.assign(Object.assign({class:clsx("kol-input",m,s),required:a,disabled:l,readonly:t,type:"text",list:c?`${p.id}-list`:void 0},getDefaultProps({ariaDescribedBy:i,hideLabel:d,label:n})),p);return h(Fragment,null,h("input",Object.assign({},y,{value:u})),c)};export{InputFc as I};