import { H as head, C as store_get, F as unsubscribe_stores, I as fallback, E as escape_html, J as attr_class, K as attr, L as bind_props } from './exports-yY1xCm4l.js'; import './state.svelte-CNGpKaVU.js'; import { z } from 'zod'; import './utils-FiC4zhrQ.js'; import 'zod/v3'; import { a as auth } from './auth-e49oatML.js'; // deno-fmt-ignore-file // ------------------------------------------------------------------ // ByteMarker // ------------------------------------------------------------------ var ByteMarker; (function (ByteMarker) { ByteMarker[ByteMarker["Array"] = 0] = "Array"; ByteMarker[ByteMarker["BigInt"] = 1] = "BigInt"; ByteMarker[ByteMarker["Boolean"] = 2] = "Boolean"; ByteMarker[ByteMarker["Date"] = 3] = "Date"; ByteMarker[ByteMarker["Constructor"] = 4] = "Constructor"; ByteMarker[ByteMarker["Function"] = 5] = "Function"; ByteMarker[ByteMarker["Null"] = 6] = "Null"; ByteMarker[ByteMarker["Number"] = 7] = "Number"; ByteMarker[ByteMarker["Object"] = 8] = "Object"; ByteMarker[ByteMarker["RegExp"] = 9] = "RegExp"; ByteMarker[ByteMarker["String"] = 10] = "String"; ByteMarker[ByteMarker["Symbol"] = 11] = "Symbol"; ByteMarker[ByteMarker["TypeArray"] = 12] = "TypeArray"; ByteMarker[ByteMarker["Undefined"] = 13] = "Undefined"; })(ByteMarker || (ByteMarker = {})); // ------------------------------------------------------------------ // State // ------------------------------------------------------------------ BigInt('14695981039346656037'); [BigInt('1099511628211'), BigInt('18446744073709551616' /* 2 ^ 64 */)]; Array.from({ length: 256 }).map((_, i) => BigInt(i)); const F64 = new Float64Array(1); new DataView(F64.buffer); new Uint8Array(F64.buffer); // ------------------------------------------------------------------ // String // ------------------------------------------------------------------ new TextEncoder(); // deno-coverage-ignore-start - parsebox tested // deno-fmt-ignore-file // ------------------------------------------------------------------ // Range // ------------------------------------------------------------------ function Range(start, end) { return Array.from({ length: end - start + 1 }, (_, i) => String.fromCharCode(start + i)); } [ ...Range(97, 122), // Lowercase ...Range(65, 90) // Uppercase ]; const Zero = '0'; const NonZero = Range(49, 57); // 1 - 9 [Zero, ...NonZero]; // deno-coverage-ignore-stop new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789"); var FetchStatus; (function(FetchStatus2) { FetchStatus2[FetchStatus2["Idle"] = 0] = "Idle"; FetchStatus2[FetchStatus2["Submitting"] = 1] = "Submitting"; FetchStatus2[FetchStatus2["Delayed"] = 2] = "Delayed"; FetchStatus2[FetchStatus2["Timeout"] = 3] = "Timeout"; })(FetchStatus || (FetchStatus = {})); let LEGACY_MODE = false; try { if (SUPERFORMS_LEGACY) LEGACY_MODE = true; } catch { } let STORYBOOK_MODE = false; try { if (globalThis.STORIES) STORYBOOK_MODE = true; } catch { } let legacyMode = false; try { if (SUPERFORMS_LEGACY) legacyMode = true; } catch { } function LoginForm($$renderer, $$props) { $$renderer.component(($$renderer2) => { let isLoading = fallback($$props["isLoading"], false); let errorMessage = fallback($$props["errorMessage"], null); z.object({ email: z.string().min(1, "Email is required").email("Invalid email format"), password: z.string().min(1, "Password is required") }); let formData = { email: "", password: "" }; let errors = {}; $$renderer2.push(`
`); bind_props($$props, { isLoading, errorMessage }); }); } function _page($$renderer, $$props) { $$renderer.component(($$renderer2) => { var $$store_subs; head("1x05zx6", $$renderer2, ($$renderer3) => { $$renderer3.title(($$renderer4) => { $$renderer4.push(`Sign in to access your dashboard
`); LoginForm($$renderer2, { isLoading: store_get($$store_subs ??= {}, "$auth", auth).isLoading, errorMessage: store_get($$store_subs ??= {}, "$auth", auth).error }); $$renderer2.push(`Demo credentials:
admin@example.com / password