{#if files.files.length === 0}
No files uploaded. Head to the Upload tab to begin!
{:else}
Options
Set all target formats
{#if !multipleConverters && noMultConverter}
{ // files.conversionTypes = Array.from( // { length: files.files.length }, // () => o, // ); files.files.forEach((file) => { file.result = null; file.to = o; }); }} />
{:else}
The listed files require different converters, so you can't set them in bulk.
{/if}
{#if allConvertersReady} Convert {files.files.length > 1 ? "All" : ""} {:else} Loading... {/if}
Download {files.files.length > 1 ? "All" : ""}
{#each reversedFiles as file, i (file.id)} {@const converter = (() => { return converters.find((c) => c.supportedFormats.includes(file.from), ); })()}
{file.file.name}
{#if converter && converter.supportedFormats.includes(file.from)}
from
{file.from}
to
{ file.result = null; }} />
{file.from}
{ file.result = null; }} />
{:else}
{file.from}
is not supported!
{/if}
{ // delete the file from the list files.files = files.files.filter( (f) => f !== file, ); if (files.files.length === 0) goto("/"); }} class="ml-2 mr-1 sm:block hidden" >
{#if converter && converter.supportedFormats.includes(file.from)}
{/if}
{/each}
{/if}