/*!
 * KoliBri - The accessible HTML-Standard
 */
import{h as o}from"./index-Brmny3Vg.js";import{c as n}from"./clsx-COFh-Vc8.js";const s=({disabled:s,index:e,ref:i,selected:t,onClick:r,onMouseOver:u,onFocus:l,onKeyDown:d,option:c,searchTerm:g})=>{const a=(n,s)=>{if(!(s===null||s===void 0?void 0:s.trim()))return n;const e=new RegExp(`(${s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");const i=n.split(e);return i.map(((n,s)=>s%2===1?o("mark",null,n):n))};return o("li",{id:`option-${e}`,key:`-${e}`,ref:i,"data-index":e,tabIndex:-1,role:"option","aria-selected":t?"true":undefined,"aria-disabled":s?"true":undefined,onClick:r,onMouseOver:u,onFocus:l,class:n("kol-custom-suggestions-option",{"kol-custom-suggestions-option--disabled":s}),onKeyDown:d},o("span",null,a(String(c),g||"")))};const e=({blockSuggestionMouseOver:s,onKeyDown:e,style:i,hidden:t,id:r},u)=>o("ul",{id:r,role:"listbox",style:i,class:n("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":s,"kol-custom-suggestions-options-group--open":!t}),hidden:t,onKeyDown:e},u);export{e as C,s as a};
//# sourceMappingURL=CustomSuggestionsOptionsGroup-CUxWnoxh.js.map