{#if !configured}
{$i18n.t('No Terminal connection configured.')}
{$i18n.t('Add your Open Terminal URL and API key in Settings → Integrations.')}
{:else}
{#if isDragOver}
{currentPath}
{/if}
{#each breadcrumbs as crumb, i} {#if i > 1} / {/if} {/each} {#if selectedFile} / {selectedFile.split('/').pop()} {/if}
{#if selectedFile !== null} {#if fileLoading}
{:else if fileImageUrl !== null} {selectedFile?.split('/').pop()} {:else if filePdfUrl !== null} {:else if fileContent !== null}
{fileContent}
{:else}
{$i18n.t('Could not read file.')}
{/if} {:else} {#if uploading}
{$i18n.t('Uploading...')}
{:else if loading}
{:else if error}
{error}
{:else if entries.length === 0}
{$i18n.t('Empty — drop files here to upload')}
{:else} {/if} {/if}
{/if}