/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";var index=require("./index-D0FxsaCe.js"),clsx=require("./clsx-CkZlkaek.js");const CustomSuggestionsOptionFc=({disabled:o,index:s,ref:e,selected:t,onClick:n,onMouseOver:i,onFocus:u,onKeyDown:r,option:l,searchTerm:c})=>index.h("li",{id:`option-${s}`,key:`-${s}`,ref:e,"data-index":s,tabIndex:-1,role:"option","aria-selected":t?"true":void 0,"aria-disabled":o?"true":void 0,onClick:n,onMouseOver:i,onFocus:u,class:clsx.clsx("kol-custom-suggestions-option",{"kol-custom-suggestions-option--disabled":o}),onKeyDown:r},((o,s)=>{if(!(null==s?void 0:s.trim()))return o;const e=new RegExp(`(${s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")})`,"gi");return o.split(e).map((o,s)=>e.test(o)?index.h("mark",{key:s},o):o)})(String(l),c||"")),CustomSuggestionsOptionsGroupFc=({blockSuggestionMouseOver:o,onKeyDown:s,style:e},t)=>index.h("ul",{role:"listbox",style:e,class:clsx.clsx("kol-custom-suggestions-options-group",{"kol-custom-suggestions-options-group--cursor-hidden":o}),onKeyDown:s},t);exports.CustomSuggestionsOptionFc=CustomSuggestionsOptionFc,exports.CustomSuggestionsOptionsGroupFc=CustomSuggestionsOptionsGroupFc;