{ if (results.length > 0) open = true }} on:keydown={handleKeydown} on:blur={() => setTimeout(closeResults, 160)} /> {#if open}
{#if loading}
{t('common.loading')}
{:else if results.length === 0}
{t('search.noResults')}
{:else} {#each results as result, index} {/each} {/if}
{/if}