clickDropdown()} {disabled} >
{#key selected}
{selected}
{/key} {#if currentCategory} {#each categories[currentCategory].formats as option}
{option}
{/each} {/if}
{#if open}
{}} id="format-search" autocomplete="off" />
{#if searchQuery}
{filteredData.formats.length} {filteredData.formats.length === 1 ? "result" : "results"}
{/if}
{#each filteredData.categories as category}
selectCategory(category)} > {(m as any)[`convert.dropdown.${category}`]?.()}
{/each}
{#if filteredData.formats.length > 0} {#each filteredData.formats as format}
selectOption(format)} > {format}
{/each} {:else}
{searchQuery ? "No formats match your search" : "No formats available"}
{/if}
{/if}