{#if !hosts.length}

Add a host to prepare these files automatically.

{/if} {#if attention.length}{@render hostTable(attention)}{/if} {#if healthy.length}
Ready hosts ({healthy.length}){@render hostTable(healthy)}
{/if} {#snippet hostTable(rows: HostLibraryCache[])}
{#each rows as cache (cache.hostId)} {@const host = hosts.find(host => host.id === cache.hostId)} {@const waiting = latest && cache.status === 'missing'} {/each}
HostFile statusDetails
{host?.name ?? cache.hostId}{#if !host?.connected} ยท Offline{/if} {waiting ? 'Waiting' : cache.status[0].toUpperCase() + cache.status.slice(1)} {#if cache.status === 'ready'}
Transfer details
{:else if cache.status !== 'missing'}{/if} {#if cache.error}

{cache.error}

{:else if waiting}

{automaticDownloadDetail(host)}

{/if} {#if waiting || cache.status === 'failed'}View host setup{/if}
{/snippet}