dispatch('close')} on:keydown={(e) => e.key === 'Escape' && dispatch('close')}>
{#each types as type}
{/each}
{#if activeType === 'secret'}
🔒 Сейф доступов ещё не реализован
{:else}
{#if loading}
Загрузка...
{:else if error}
{error}
{:else if query.trim().length >= 2 && results.length === 0}
Ничего не найдено
{:else}
{#each results as item, i}
{/each}
{/if}
{/if}