{#if open} { open = false; }}>
{#if !flat.length}
No matching models
{:else} {#each filteredGroups as g} {#if g.label}
{g.label}
{/if} {#each g.options as opt} {@const i = flat.indexOf(opt)}
{ e.stopPropagation(); pick(opt); }} onmouseenter={() => { keyboardIndex = i; }} > {@html highlightText(opt.label)} {#if opt.value === value} {"✓"} {/if}
{/each} {/each} {/if}
{/if}