{#if !mediaType} {/if}
{#if error}

{error}

{/if} {#if loading}

Loading history…

{:else if entries.length === 0} {:else}
{#each entries as entry, index (String(entry.id || entry.file_path || index))} {@const name = firstValue(entry, ['file_name', 'fileName', 'file', 'type', 'action'], 'Processed element')} {@const path = firstValue(entry, ['file_path', 'filePath', 'path'], '')} {@const entryMediaType = firstValue(entry, ['media_type', 'mediaType', 'type'], '')} {@const status = firstValue(entry, ['status', 'state'], 'recorded')} {@const progress = firstValue(entry, ['progress'], '')} {@const timestamp = firstValue( entry, ['finished_at', 'finishedAt', 'created_at', 'createdAt', 'queued_at', 'queuedAt', 'timestamp'], '', )} {@const message = firstValue(entry, ['error', 'error_message', 'message'], '')}

{name}

{#if path}

{path}

{/if}
{status}
{#if entryMediaType}{entryMediaType}{/if} {#if progress}{progress}% complete{/if} {#if timestamp}{timestamp}{/if}
{#if message}

{message}

{/if}
{/each}

Showing {entries.length} of {total.toLocaleString()}

{/if}