/*!
 * KoliBri - The accessible HTML-Standard
 */
import{h}from"./index-91489a9f.js";import{d as KolIconTag}from"./component-names-a18a51c8.js";import{t as translate}from"./i18n-5fe08f1c.js";import{c as clsx}from"./clsx-09a06a12.js";const getRenderStates=o=>{var s,t;const n=Boolean("error"===(null===(s=o._msg)||void 0===s?void 0:s._type)&&o._msg._description&&(null===(t=o._msg._description)||void 0===t?void 0:t.length)>0)&&!0===o._touched,e="string"==typeof o._hint&&o._hint.length>0,i=[];return!0===n&&i.push(`${o._id}-error`),!0===e&&i.push(`${o._id}-hint`),{hasError:n,hasHint:e,ariaDescribedBy:i}},CustomSuggestionsToggleFc=({onClick:o,disabled:s})=>h("button",{tabindex:"-1",class:"kol-custom-suggestions-toggle",onClick:o,disabled:s},h(KolIconTag,{_icons:"codicon codicon-triangle-down",_label:translate("kol-dropdown")})),CustomSuggestionsToggleFc$1=CustomSuggestionsToggleFc,CustomSuggestionsOptionFc=({index:o,ref:s,selected:t,onClick:n,onMouseOver:e,onFocus:i,onKeyDown:g,option:u})=>h("li",{id:`option-${o}`,key:`-${o}`,ref:s,"data-index":o,tabIndex:-1,role:"option","aria-selected":t?"true":void 0,onClick:n,onMouseOver:e,onFocus:i,class:"kol-custom-suggestions-option",onKeyDown:g},u),CustomSuggestionsOptionFc$1=CustomSuggestionsOptionFc,CustomSuggestionsOptionsGroupFc=({blockSuggestionMouseOver:o,onKeyDown:s},t)=>h("ul",{role:"listbox",class:clsx("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":o}),onKeyDown:s},t),CustomSuggestionsOptionsGroupFc$1=CustomSuggestionsOptionsGroupFc;export{CustomSuggestionsToggleFc$1 as C,CustomSuggestionsOptionsGroupFc$1 as a,CustomSuggestionsOptionFc$1 as b,getRenderStates as g};