2025-06-22 00:21:09 +03:00

16 lines
1.2 KiB
JavaScript

import { s as subscribe } from "../../../chunks/utils.js";
import { c as create_ssr_component, e as escape } from "../../../chunks/ssr.js";
import { w as walletStore } from "../../../chunks/walletStoreFix.js";
import "@stellar/stellar-sdk";
const Page = create_ssr_component(($$result, $$props, $$bindings, slots) => {
let $walletStore, $$unsubscribe_walletStore;
$$unsubscribe_walletStore = subscribe(walletStore, (value) => $walletStore = value);
let status = "Preparing emergency access...";
$$unsubscribe_walletStore();
return `<div class="hero min-h-screen bg-base-200"><div class="hero-content text-center"><div class="max-w-md"><h1 class="text-5xl font-bold" data-svelte-h="svelte-rtokg0">Emergency Dashboard Access</h1> <p class="py-6">This page will create a temporary wallet and take you directly to the dashboard.
<br><br> <span class="text-info">${escape(status)}</span></p> ${!$walletStore || !$walletStore.publicKey ? `<button class="btn btn-primary" data-svelte-h="svelte-10b97bg">Create Emergency Access</button>` : `<a href="/dashboard" class="btn btn-success" data-svelte-h="svelte-437u1">Go to Dashboard</a>`} ${``}</div></div></div>`;
});
export {
Page as default
};