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