{#if account != null} {getAccountDisplayName(account)} {:else}
{#if workspaces.length > 10}
{/if} {#await _getWorkspaces()}
{:then} {#if workspaces.length === 0 && account?.token != null && isReadOnlyGuest} {/if}
{#each workspaces .filter((it) => search === '' || (it.name?.includes(search) ?? false) || it.url.includes(search)) .slice(0, 500) as workspace} {@const wsName = workspace.name ?? workspace.url} {@const lastUsageDays = workspace.lastVisit === undefined ? 'N/A' : Math.round((Date.now() - workspace.lastVisit) / (1000 * 3600 * 24))}
select(workspace.url)} >
{wsName} {#if isArchivingMode(workspace.mode)} -
({lastUsageDays} days)
{/each} {#if workspaces.length === 0 && account?.token != null}
{/if}
{/await}