{ if (!operation) show = false; }} ariaLabel={$i18n.t('Files')} >
{$i18n.t('Files')} {#if shownFileCount !== null}{shownFileCount}{/if}
{#if operation} {$i18n.t( operation === 'download' ? 'Preparing {{processed}} of {{total}}' : 'Processed {{processed}} of {{total}}', { processed: progress.done, total: progress.total } )} {:else} {#if query}{/if} {#if selectedIds.size} {$i18n.t('{{count}} selected', { count: selectedIds.size })} {/if} {/if}
{#if selectionStatus === 'loading'}
{$i18n.t('Selecting all matching files...')}
{:else if selectionStatus === 'error'} {:else if allLoadedSelected && !allFilesLoaded && selectionStatus !== 'all' && !operation} {/if} {#if files !== null} {#if files.length}
0 && !allLoadedSelected} disabled={busy} ariaLabel={$i18n.t('Select loaded files')} on:change={() => toggleSelection( (files ?? []).map((file) => file.id), !allLoadedSelected )} />
{$i18n.t('Size')}
{/if}
{#if !files.length && !loadError}
{$i18n.t('No files found')}
{/if} {#each sortedFiles as file (file.id)}
toggleSelection([file.id], !selectedIds.has(file.id))} />
{formatFileSize(file.meta?.size ?? 0)}
{/each} {#if loadError} {:else if !allFilesLoaded && !busy} loadFiles(true)} >
{/if}
{:else}
{/if}