{i18n.t("game.sidebar.tab.order")}

{#if draft !== undefined && draft.pausedBanner !== null} {/if} {#if draft !== undefined && draft.conflictBanner !== null} {/if} {#if draft === undefined || draft.commands.length === 0}

{i18n.t("game.sidebar.empty.order")}

{:else}
    {#each draft.commands as cmd, index (cmd.id)} {@const status = statusOf(cmd)}
  1. {describe(cmd)} {i18n.t(statusKeyMap[status])}
  2. {/each}
{/if} {#if draft !== undefined}
{#if draft.syncStatus === "syncing"} {i18n.t("game.sidebar.order.sync.in_flight")} {:else if draft.syncStatus === "synced"} {i18n.t("game.sidebar.order.sync.synced")} {:else if draft.syncStatus === "error"} {i18n.t("game.sidebar.order.sync.error", { message: draft.syncError ?? "", })} {:else if draft.syncStatus === "offline"} {i18n.t("game.sidebar.order.sync.offline")} {:else if draft.syncStatus === "conflict"} {i18n.t("game.sidebar.order.sync.conflict")} {:else if draft.syncStatus === "paused"} {i18n.t("game.sidebar.order.sync.paused")} {:else} {i18n.t("game.sidebar.order.sync.idle")} {/if} {#if draft.syncStatus === "error"} {/if}
{/if}