/*!
 * KoliBri - The accessible HTML-Standard
 */
import{_ as e}from"./tslib.es6-1173d062.js";import{h as s,F as o}from"./index-2ae1c631.js";import{c as l}from"./clsx-09a06a12.js";import{d as a}from"./getRenderStates-d2dc42b2.js";import{c as i}from"./FormFieldMsg-e6f521f5.js";const t=d=>{const{class:r,msg:t,required:n,disabled:u,touched:c,readonly:b,ariaDescribedBy:p,hideLabel:m,label:g,suggestions:y,value:j}=d,f=e(d,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),h=i(t,c),B={"kol-input--disabled":Boolean(u),"kol-input--required":Boolean(n),"kol-input--touched":Boolean(c),"kol-input--readonly":Boolean(b),[`kol-input--${(null==t?void 0:t.type)||"error"}`]:h},k=Object.assign(Object.assign({class:l("kol-input",B,r),required:n,disabled:u,readonly:b,type:"text",list:y?`${f.id}-list`:void 0},a({ariaDescribedBy:p,hideLabel:m,label:g})),f);return s(o,null,s("input",Object.assign({},k,{value:j})),y)},d=t;export{d as K};