{#if NG_BOOTSTRAP_IFRAME_SRC} {/if}
640} class:flex={height > 640} bind:this={top} > {#if step == "load"}

{$t("pages.login.heading")}

{$t("pages.login.with_pazzle")}

{$t("pages.login.with_mnemonic")}

{#if for_import} {#if no_local_storage}
Access to local storage is denied.
You won't be able to save your wallet in this browser.
If you wanted to save it, please allow storing local data
for the websites {location.origin}
and https://nextgraph.net and then reload the page.
You might need to all third-party cookies too.
{:else}
{$t("pages.wallet_create.save_wallet_options.trust")}

{$t("pages.wallet_create.save_wallet_options.trust_description")} {#if !tauri_platform} {$t("pages.login.trust_device_allow_cookies")}{/if}

{$t("pages.login.trust_device_yes")}
{/if} {/if}
{#if for_import && trusted} {/if} {#if !loaded} {$t("pages.login.loading_pazzle")}... {:else} {/if} {$t("pages.login.open_with_mnemonic")}
{:else if step == "pazzle" || step == "order" || step == "pin" || step == "mnemonic"}
640} class:min-w-[300px]={mobile} class:min-w-[500px]={!mobile} class:max-w-[370px]={mobile} class:max-w-[600px]={!mobile} >
{#if step == "mnemonic"}
{:else if step == "pazzle"}

{@html $t("pages.login.select_emoji", { values: { category: $t( "emojis.category." + emoji_cat[shuffle.category_indices[pazzlePage]] ), }, })}

{#each [0, 1, 2, 3, 4] as row}
{#each emojis2[pazzlePage]?.slice(0 + row * 3, 3 + row * 3) || [] as emoji, i (pazzlePage + "-" + row + "-" + i)}
select(row * 3 + i)} on:keypress={() => select(row * 3 + i)} >
{/each}
{/each} {:else if step == "order"}

{$t("pages.login.order_emojis")}

{#each [0, 1, 2] as row}
{#each selection.slice(0 + row * 3, 3 + row * 3) || [] as emoji, i} {#if !emoji.sel}
select_order(emoji)} on:keypress={() => select_order(emoji)} title={$t( "emojis.codes." + emojis[emoji_cat[emoji.cat]][emoji.index].code )} >
{:else}
{emoji.sel}
{/if} {/each}
{/each} {:else if step == "pin"}

{$t("pages.login.enter_pin")}

{#each [0, 1, 2] as row}
{#each shuffle_pin.slice(0 + row * 3, 3 + row * 3) as num} {/each}
{/each}
{#each pin_code as pin_key}*{/each} {/if}
{:else if step == "opening"}
{@html $t("pages.login.opening_wallet")}
{:else if step == "end"} {#if error}
{$t("errors.an_error_occurred")} {display_error(error)}
{:else}
{@html $t("pages.login.wallet_opened")}
{/if} {/if}