/*!
 * KoliBri - The accessible HTML-Standard
 */
import{_ as __rest}from"./tslib.es6-1173d062.js";import{h,F as Fragment}from"./index-2ae1c631.js";import{c as clsx}from"./clsx-09a06a12.js";import{d as getDefaultProps}from"./getRenderStates-d2dc42b2.js";import{c as checkHasError}from"./FormFieldMsg-e6f521f5.js";const InputFc=e=>{const{class:s,msg:a,required:l,disabled:r,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=checkHasError(a,o),g={"kol-input--disabled":Boolean(r),"kol-input--required":Boolean(l),"kol-input--touched":Boolean(o),"kol-input--readonly":Boolean(t),[`kol-input--${(null==a?void 0:a.type)||"error"}`]:b},m=Object.assign(Object.assign({class:clsx("kol-input",g,s),required:l,disabled:r,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({},m,{value:u})),c)},KolInputFc=InputFc;export{KolInputFc as K};