{#if open}
{@html highlightedQuery}
ESC
{#if searchQuery.trim()}
{#if createPreview && onCreate}
(selectedIndex = 0)} disabled={creating} >
{#if creating}
{:else}
{/if}
{createPreview.title}
{#if createPreview.subtitle}
{createPreview.subtitle}
{/if}
{createShortcut}
{/if} {#if loading}
{searchingText}
{:else if results.length === 0 && !createPreview}
{emptyText}
{:else if results.length > 0}
Suchergebnisse
{#each results as item, index (item.id)} {@const adjustedIndex = createPreview ? index + 1 : index}
selectItem(item)} onmouseenter={() => (selectedIndex = adjustedIndex)} >
{#if item.imageUrl}
{:else} {getInitials(item)} {/if}
{item.title}
{#if item.subtitle}
{item.subtitle}
{/if}
{#if item.isFavorite}
{/if}
{/each} {/if}
{:else if quickActions.length > 0}
{#each quickActions as action, index (action.id)}
handleQuickAction(action)} onmouseenter={() => (selectedIndex = index)} >
{action.label}
{#if action.shortcut}
{action.shortcut}
{/if}
{/each}
{/if}
{/if}