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