{#each palette.sections as section, s (section.title)}
{section.title}
{#if section.note}
{section.note}
{/if}
{#each section.items as item, r (item.id)} {@const index = flatIndex(s, r)}
{ // mousedown, not click: the input's blur would close the panel first. event.preventDefault(); onpick(item); }} onmouseenter={() => onhover?.(index)} > {#if item.type === 'route'}
{item.url}
{item.handler}
{:else if item.type === 'flow'}
{item.name}
{:else}
{item.name}
{#if item.meta}
{item.meta}
{/if}
{/if}
{item.location}
{/each} {/each}