{#if options.length > 0}
{/if}
{#if filtered.length === 0 && options.length > 0}
No matching options
{:else} {#each filtered as opt, i} {@const isSelected = currentMode === "switch" && opt.index === currentSwitchIndex}
{ e.stopPropagation(); onSelect(opt); }} onmouseenter={() => { selectedIndex = i; }} >
{@html highlightText(`${itemPrefix}${opt.label}`, searchTerms)}
{#if isSelected}
{"\u2713"}
{/if}
{/each} {/if}