/*!
 * KoliBri - The accessible HTML-Standard
 */
import{_ as __rest}from"./tslib.es6.js";import{h,Fragment}from"@stencil/core/internal/client";import{c as clsx}from"./clsx.js";import{a as getDefaultProps}from"./getRenderStates.js";import{a as checkHasError}from"./FormFieldMsg.js";const InputFc=e=>{const{class:s,msg:l,required:r,disabled:t,touched:a,readonly:o,ariaDescribedBy:i,hideLabel:n,label:d,suggestions:c,value:u}=e,p=__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),b=checkHasError(l,a),g={"kol-input--disabled":Boolean(t),"kol-input--required":Boolean(r),"kol-input--touched":Boolean(a),"kol-input--readonly":Boolean(o),[`kol-input--${(null==l?void 0:l.type)||"error"}`]:b},m=Object.assign(Object.assign({class:clsx("kol-input",g,s),required:r,disabled:t,readonly:o,type:"text",list:c?`${p.id}-list`:void 0},getDefaultProps({ariaDescribedBy:i,hideLabel:n,label:d})),p);return h(Fragment,null,h("input",Object.assign({},m,{value:u})),c)},KolInputFc=InputFc;export{KolInputFc as K};