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