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