{$t("pages.wallet_login_qr.title")}

{#if login_method === undefined}
{:else if !connected}
{@html $t("wallet_sync.offline_warning")}
{:else if error} {@html $t("wallet_sync.error", { values: { error: display_error(error) }, })} {:else if login_method === "scan"} {#if scan_state === "before_start"}
{@html $t("pages.wallet_login_qr.scan.description")}
{@html $t("wallet_sync.server_transfer_notice")}
{:else if scan_state === "importing"}
{@html $t("wallet_sync.importing")}
{/if} {:else if login_method === "gen"} {#if gen_state == "before_start"}
{@html $t("pages.wallet_login_qr.gen.description")}
{@html $t("wallet_sync.transfer_notice")}
{:else if gen_state === "generating"}
{:else if gen_state === "generated"}
{@html $t("pages.wallet_login_qr.gen.generated")}
{@html qr_code_html}
{/if} {/if}
{#if login_method === "scan" && scan_state === "before_start"} {:else if login_method === "gen" && gen_state === "before_start"} {/if}