/*!
 * KoliBri - The accessible HTML-Standard
 */
import{_ as e}from"./tslib.es6-1173d062.js";import{h as s,F as o}from"./index-91489a9f.js";import{c as a}from"./clsx-09a06a12.js";import{d as l}from"./getRenderStates-a7a33541.js";import{c as i}from"./FormFieldMsg-1ed3f51d.js";const t=d=>{const{class:r,msg:t,required:n,disabled:u,touched:b,readonly:c,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,b),B={"kol-input--disabled":Boolean(u),"kol-input--required":Boolean(n),"kol-input--touched":Boolean(b),"kol-input--readonly":Boolean(c),[`kol-input--${(null==t?void 0:t.type)||"error"}`]:h},k=Object.assign(Object.assign({class:a("kol-input",B,r),required:n,disabled:u,readonly:c,type:"text",list:y?`${f.id}-list`:void 0},l({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};