{#if loading}
{#each [1, 2, 3, 4] as i (i)} {/each}
{:else if error} {:else}
{#if planAssigned}

{planName}{isTrial ? ` · ${i18n.t("dashboard.trialBadge")}` : ""}

{/if}

{#if isCatalogEmpty} {isDemoSandbox ? i18n.t("dashboard.demoSandbox") : i18n.t("dashboard.welcomeTo", { name: companyLabel })} {:else} {companyLabel} {/if}

{#if isCatalogEmpty && isDemoSandbox} {i18n.t("dashboard.demoEmptyHint")} {:else if isCatalogEmpty} {#if isPayg} {i18n.t("dashboard.emptyPaygHint")} {:else} {i18n.t("dashboard.emptyCreditsHint", { credits: remainingLabel })} {/if} {:else} {subtitle} {/if}

{#if tutorial.canResume && !tutorial.active} {:else if tutorial.canRestart && !tutorial.active} {:else if !tutorial.active} {/if} {#if isCatalogEmpty && isDemoSandbox} {:else if !isCatalogEmpty && unprocessedTotal > 0} {:else if !isCatalogEmpty} {/if}
{#if showStoreReconnect} {/if} {#if showUpgradeBanner} {#if recovery} {:else if isFreePlanFlag} {:else if outOfCredits} {:else if atProductLimit} {:else if isTrial} {:else if lowCredits} {/if} {/if} {#if isCatalogEmpty && !isDemoSandbox} {:else if isCatalogEmpty && isDemoSandbox} {/if}

{i18n.t("dashboard.workflowTitle")}

{i18n.t("dashboard.workflowHint", { name: companyLabel })}

    {#each workflowSteps as step, index (step.id)}
  1. {index + 1}. {step.label} {step.detail}
  2. {/each}
{#if !isCatalogEmpty}

{i18n.t("dashboard.overviewTitle")}

{i18n.t("dashboard.overviewHint", { name: companyLabel })}

{/if}
{#if !isCatalogEmpty}

{i18n.t("dashboard.recentActivity")}

{#if processingCount > 0} {i18n.t( processingCount === 1 ? "dashboard.activeJobs" : "dashboard.activeJobsPlural", { count: processingCount.toLocaleString() } )} {:else} {i18n.t("dashboard.latestJobs")} {/if}

{#if canMonitorJobs} {i18n.t("common.viewAll")} {/if}
{#if recentJobs.length === 0} {:else}
    {#each recentJobs as job (job.id)}
  • {jobLabel(job)}

    {jobWhen(job)}

    {statusLabel(job.status)}
  • {/each}
{/if}
{/if}

{i18n.t("dashboard.quickLinks")}

{i18n.t("dashboard.quickLinksHint")}

{i18n.t("dashboard.whatsNew")}

{/if}