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