{#if hasSelection} {selectedCount} selected {:else}
{#if sortMenuOpen} {/if}
{/if}
{#if jumpOpen}
{ if (e.key === "Enter") doJump(); if (e.key === "Escape") { jumpOpen = false; jumpInput = ""; } }} /> {#if jumpChapter} {:else if jumpInput.trim()}

No match

{/if}
{/if}
{#if availableScanlators.length > 1}
{#if scanFilterOpen} {/if}
{/if}
{#if folderPickerOpen}
{#if catsLoading}

Loading…

{:else if allCategories.length === 0 && !folderCreating}

No folders yet

{/if} {#each allCategories as cat} {@const isIn = mangaCategories.some(c => c.id === cat.id)} {/each}
{#if folderCreating}
{ if (e.key === "Enter") submitNewFolder(); if (e.key === "Escape") { folderCreating = false; folderNewName = ""; } }} />
{:else} {/if}
{/if}
{#if chapters.length > 0}
{#if dlOpen}
{#if downloadedCount > 0}
{/if} {#if continueChapter} {@const contIdx = sortedChapters.indexOf(continueChapter.chapter)} {#if contIdx >= 0}
{#each [5, 10, 25] as n} {@const avail = sortedChapters.slice(contIdx, contIdx + n).filter(c => !c.isDownloaded).length} {/each}
{/if} {/if} {#if !showRange} {:else}
e.key === "Enter" && enqueueRange()} use:focusOnMount /> e.key === "Enter" && enqueueRange()} />
{/if}
{#if downloadedCount > 0}
{/if}
{/if}
{/if} {#if totalPages > 1} {/if}