@credenza3/passport-sui 0.1.11 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DhdG95cV.js → App-CCqleyA9.js} +18 -18
- package/dist/{App-DhdG95cV.js.map → App-CCqleyA9.js.map} +1 -1
- package/dist/{Button-DwxFzmd5.js → Button-DAy_umSd.js} +4 -4
- package/dist/{Button-DwxFzmd5.js.map → Button-DAy_umSd.js.map} +1 -1
- package/dist/{ButtonBack-C3p_WkyE.js → ButtonBack-BkUKUIsw.js} +4 -4
- package/dist/{ButtonBack-C3p_WkyE.js.map → ButtonBack-BkUKUIsw.js.map} +1 -1
- package/dist/{ButtonLink-CM-NVQvv.js → ButtonLink-dIXfKKup.js} +3 -3
- package/dist/{ButtonLink-CM-NVQvv.js.map → ButtonLink-dIXfKKup.js.map} +1 -1
- package/dist/{ConfirmAccount-CsM5cp4r.js → ConfirmAccount-B7b6KLqs.js} +9 -9
- package/dist/{ConfirmAccount-CsM5cp4r.js.map → ConfirmAccount-B7b6KLqs.js.map} +1 -1
- package/dist/{ContentHeader-C1xFSt9M.js → ContentHeader-CVumJwvG.js} +3 -3
- package/dist/{ContentHeader-C1xFSt9M.js.map → ContentHeader-CVumJwvG.js.map} +1 -1
- package/dist/{Error-D6PZ8Cat.js → Error-DcbLpmXf.js} +5 -5
- package/dist/{Error-D6PZ8Cat.js.map → Error-DcbLpmXf.js.map} +1 -1
- package/dist/{Input-7SiLZ1Xc.js → Input-BHT27RVM.js} +4 -4
- package/dist/{Input-7SiLZ1Xc.js.map → Input-BHT27RVM.js.map} +1 -1
- package/dist/{Label-CH2DYAPm.js → Label-Bf8cAqMv.js} +3 -3
- package/dist/{Label-CH2DYAPm.js.map → Label-Bf8cAqMv.js.map} +1 -1
- package/dist/{Loader-BpnCFDyU.js → Loader-Ck8Qf90h.js} +3 -3
- package/dist/{Loader-BpnCFDyU.js.map → Loader-Ck8Qf90h.js.map} +1 -1
- package/dist/{Login-7Bt6tjER.js → Login-DmuALQOZ.js} +9 -9
- package/dist/{Login-7Bt6tjER.js.map → Login-DmuALQOZ.js.map} +1 -1
- package/dist/Logout-DtZQa3PS.js +96 -0
- package/dist/Logout-DtZQa3PS.js.map +1 -0
- package/dist/{Nav-Dz055gcD.js → Nav-hlhnBpCA.js} +5 -5
- package/dist/{Nav-Dz055gcD.js.map → Nav-hlhnBpCA.js.map} +1 -1
- package/dist/{PassportId-CcmaamvB.js → PassportId-CT8seyyl.js} +7 -7
- package/dist/{PassportId-CcmaamvB.js.map → PassportId-CT8seyyl.js.map} +1 -1
- package/dist/{Payment-mjllXiwH.js → Payment-BNT5dOy3.js} +11 -11
- package/dist/{Payment-mjllXiwH.js.map → Payment-BNT5dOy3.js.map} +1 -1
- package/dist/{PaymentResult-CB20OP2l.js → PaymentResult-iREwxUTO.js} +4 -4
- package/dist/{PaymentResult-CB20OP2l.js.map → PaymentResult-iREwxUTO.js.map} +1 -1
- package/dist/{Profile-Dfcrf_Zp.js → Profile-G2t70NsO.js} +7 -7
- package/dist/{Profile-Dfcrf_Zp.js.map → Profile-G2t70NsO.js.map} +1 -1
- package/dist/{ProgressVideo-BMyG4HFb.js → ProgressVideo-oh7nRG8_.js} +6 -6
- package/dist/{ProgressVideo-BMyG4HFb.js.map → ProgressVideo-oh7nRG8_.js.map} +1 -1
- package/dist/{ProgressVideo.service-DDxVvoN0.js → ProgressVideo.service-CVnZS8ec.js} +2 -2
- package/dist/{ProgressVideo.service-DDxVvoN0.js.map → ProgressVideo.service-CVnZS8ec.js.map} +1 -1
- package/dist/{RichAlert-DyVn6hVi.js → RichAlert-17dhVxyd.js} +6 -6
- package/dist/{RichAlert-DyVn6hVi.js.map → RichAlert-17dhVxyd.js.map} +1 -1
- package/dist/{Scanner-BTvjzy4l.js → Scanner-B_IyknFU.js} +7 -7
- package/dist/{Scanner-BTvjzy4l.js.map → Scanner-B_IyknFU.js.map} +1 -1
- package/dist/{SendTokens-JHmp494-.js → SendTokens-_Zq1xtui.js} +7 -7
- package/dist/{SendTokens-JHmp494-.js.map → SendTokens-_Zq1xtui.js.map} +1 -1
- package/dist/{Sign-CFupFi7t.js → Sign-D20a5-Eh.js} +7 -7
- package/dist/{Sign-CFupFi7t.js.map → Sign-D20a5-Eh.js.map} +1 -1
- package/dist/{Stripe.service-DRNJ4W4s.js → Stripe.service-d8J1Nj0-.js} +3 -3
- package/dist/{Stripe.service-DRNJ4W4s.js.map → Stripe.service-d8J1Nj0-.js.map} +1 -1
- package/dist/{UpdateProfile-DMJqZz75.js → UpdateProfile-BS4vHKox.js} +10 -10
- package/dist/{UpdateProfile-DMJqZz75.js.map → UpdateProfile-BS4vHKox.js.map} +1 -1
- package/dist/{UserInfo-C7h9tmoj.js → UserInfo-FF1YiHB_.js} +4 -4
- package/dist/{UserInfo-C7h9tmoj.js.map → UserInfo-FF1YiHB_.js.map} +1 -1
- package/dist/{Wallet-D399kCH4.js → Wallet-CLL_Ao5n.js} +8 -8
- package/dist/{Wallet-D399kCH4.js.map → Wallet-CLL_Ao5n.js.map} +1 -1
- package/dist/{each-BpYOD__c.js → each-ChczGHVd.js} +2 -2
- package/dist/{each-BpYOD__c.js.map → each-ChczGHVd.js.map} +1 -1
- package/dist/{html-BA2LZfEe.js → html-BIHkWqNq.js} +3 -3
- package/dist/{html-BA2LZfEe.js.map → html-BIHkWqNq.js.map} +1 -1
- package/dist/{index-CcnwLXwn.js → index-Cpr_yChD.js} +9084 -8982
- package/dist/index-Cpr_yChD.js.map +1 -0
- package/dist/{index-client-YQfPhG-7.js → index-client-CJ3dIYTW.js} +2 -2
- package/dist/{index-client-YQfPhG-7.js.map → index-client-CJ3dIYTW.js.map} +1 -1
- package/dist/{input-DqZuuK5Z.js → input-BJ8poX2h.js} +3 -3
- package/dist/{input-DqZuuK5Z.js.map → input-BJ8poX2h.js.map} +1 -1
- package/dist/{legacy-CiYmrjBI.js → legacy-YR9wiUnf.js} +2 -2
- package/dist/{legacy-CiYmrjBI.js.map → legacy-YR9wiUnf.js.map} +1 -1
- package/dist/passport.es.js +1 -1
- package/dist/passport.umd.js +116 -116
- package/dist/passport.umd.js.map +1 -1
- package/dist/{socket-io-CiQSjft1.js → socket-io-DDnfOdoo.js} +2 -2
- package/dist/{socket-io-CiQSjft1.js.map → socket-io-DDnfOdoo.js.map} +1 -1
- package/package.json +1 -1
- package/dist/Logout-DaopT1u8.js +0 -96
- package/dist/Logout-DaopT1u8.js.map +0 -1
- package/dist/index-CcnwLXwn.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as d2, p as i2, a as l, i as x, b as e, d as f2, u as v2, f as F, s as Y2, e as P0, g as c0, h as i0, t as e0, j as H0, l as A0, k as m0, m as E0, n as O0, o as t0, q as L } from "./legacy-
|
|
2
|
-
import { h as j2, a as T0, i as Z0, b as N0, c as d0, H as B0, r as I0, s as M0, d as f0, U as v0, e as a0, f as u0, m as K2, q as z0, g as R0, j as _0, k as g0, l as h0, n as V0, o as D0, p as U0, t as r0, u as K, v as u2, w as n0, x as C0, y as a, z as _2, A as w, B as U, C as j, D as U2, E as D, F as l0, G as m, I as x0, J as F2, K as p, L as G2, M as j0, P as F0, N as G0, O as q0, Q as w0, R as p0, S as o, T as Y0 } from "./index-
|
|
1
|
+
import { c as d2, p as i2, a as l, i as x, b as e, d as f2, u as v2, f as F, s as Y2, e as P0, g as c0, h as i0, t as e0, j as H0, l as A0, k as m0, m as E0, n as O0, o as t0, q as L } from "./legacy-YR9wiUnf.js";
|
|
2
|
+
import { h as j2, a as T0, i as Z0, b as N0, c as d0, H as B0, r as I0, s as M0, d as f0, U as v0, e as a0, f as u0, m as K2, q as z0, g as R0, j as _0, k as g0, l as h0, n as V0, o as D0, p as U0, t as r0, u as K, v as u2, w as n0, x as C0, y as a, z as _2, A as w, B as U, C as j, D as U2, E as D, F as l0, G as m, I as x0, J as F2, K as p, L as G2, M as j0, P as F0, N as G0, O as q0, Q as w0, R as p0, S as o, T as Y0 } from "./index-Cpr_yChD.js";
|
|
3
3
|
const o0 = 0, q2 = 1, s0 = 2;
|
|
4
4
|
function y(h, s, i, f, u) {
|
|
5
5
|
j2 && T0();
|
|
@@ -317,7 +317,7 @@ function b0(h, s) {
|
|
|
317
317
|
{
|
|
318
318
|
var g = (b) => {
|
|
319
319
|
var G = l(), J2 = a(G);
|
|
320
|
-
y(J2, () => import("./Login-
|
|
320
|
+
y(J2, () => import("./Login-DmuALQOZ.js"), null, (Q2, q) => {
|
|
321
321
|
var J = l(), g2 = a(J);
|
|
322
322
|
L(g2, () => p(q).default, (h2, A) => {
|
|
323
323
|
A(h2, {});
|
|
@@ -327,7 +327,7 @@ function b0(h, s) {
|
|
|
327
327
|
{
|
|
328
328
|
var J2 = (q) => {
|
|
329
329
|
var J = l(), g2 = a(J);
|
|
330
|
-
y(g2, () => import("./Logout-
|
|
330
|
+
y(g2, () => import("./Logout-DtZQa3PS.js"), null, (h2, A) => {
|
|
331
331
|
var Q = l(), w2 = a(Q);
|
|
332
332
|
L(w2, () => p(A).default, (p2, E) => {
|
|
333
333
|
E(p2, {});
|
|
@@ -337,7 +337,7 @@ function b0(h, s) {
|
|
|
337
337
|
{
|
|
338
338
|
var g2 = (A) => {
|
|
339
339
|
var Q = l(), w2 = a(Q);
|
|
340
|
-
y(w2, () => import("./ConfirmAccount-
|
|
340
|
+
y(w2, () => import("./ConfirmAccount-B7b6KLqs.js"), null, (p2, E) => {
|
|
341
341
|
var W = l(), m2 = a(W);
|
|
342
342
|
L(m2, () => p(E).default, (C2, O) => {
|
|
343
343
|
O(C2, {});
|
|
@@ -347,7 +347,7 @@ function b0(h, s) {
|
|
|
347
347
|
{
|
|
348
348
|
var w2 = (E) => {
|
|
349
349
|
var W = l(), m2 = a(W);
|
|
350
|
-
y(m2, () => import("./UpdateProfile-
|
|
350
|
+
y(m2, () => import("./UpdateProfile-BS4vHKox.js"), null, (C2, O) => {
|
|
351
351
|
var $ = l(), x2 = a($);
|
|
352
352
|
L(x2, () => p(O).default, (L2, T) => {
|
|
353
353
|
T(L2, {});
|
|
@@ -357,7 +357,7 @@ function b0(h, s) {
|
|
|
357
357
|
{
|
|
358
358
|
var m2 = (O) => {
|
|
359
359
|
var $ = l(), x2 = a($);
|
|
360
|
-
y(x2, () => import("./PassportId-
|
|
360
|
+
y(x2, () => import("./PassportId-CT8seyyl.js"), null, (L2, T) => {
|
|
361
361
|
var X = l(), y2 = a(X);
|
|
362
362
|
L(y2, () => p(T).default, (k2, Z) => {
|
|
363
363
|
Z(k2, {});
|
|
@@ -367,7 +367,7 @@ function b0(h, s) {
|
|
|
367
367
|
{
|
|
368
368
|
var x2 = (T) => {
|
|
369
369
|
var X = l(), y2 = a(X);
|
|
370
|
-
y(y2, () => import("./Sign-
|
|
370
|
+
y(y2, () => import("./Sign-D20a5-Eh.js"), null, (k2, Z) => {
|
|
371
371
|
var e2 = l(), S2 = a(e2);
|
|
372
372
|
L(S2, () => p(Z).default, (b2, N) => {
|
|
373
373
|
N(b2, {});
|
|
@@ -377,7 +377,7 @@ function b0(h, s) {
|
|
|
377
377
|
{
|
|
378
378
|
var y2 = (Z) => {
|
|
379
379
|
var e2 = l(), S2 = a(e2);
|
|
380
|
-
y(S2, () => import("./Wallet-
|
|
380
|
+
y(S2, () => import("./Wallet-CLL_Ao5n.js"), null, (b2, N) => {
|
|
381
381
|
var t2 = l(), P2 = a(t2);
|
|
382
382
|
L(P2, () => p(N).default, (H2, B) => {
|
|
383
383
|
B(H2, {});
|
|
@@ -387,7 +387,7 @@ function b0(h, s) {
|
|
|
387
387
|
{
|
|
388
388
|
var S2 = (N) => {
|
|
389
389
|
var t2 = l(), P2 = a(t2);
|
|
390
|
-
y(P2, () => import("./SendTokens-
|
|
390
|
+
y(P2, () => import("./SendTokens-_Zq1xtui.js"), null, (H2, B) => {
|
|
391
391
|
var a2 = l(), A2 = a(a2);
|
|
392
392
|
L(A2, () => p(B).default, (r2, I) => {
|
|
393
393
|
I(r2, {});
|
|
@@ -397,7 +397,7 @@ function b0(h, s) {
|
|
|
397
397
|
{
|
|
398
398
|
var P2 = (B) => {
|
|
399
399
|
var a2 = l(), A2 = a(a2);
|
|
400
|
-
y(A2, () => import("./Payment-
|
|
400
|
+
y(A2, () => import("./Payment-BNT5dOy3.js").then((r2) => r2.P), null, (r2, I) => {
|
|
401
401
|
var l2 = l(), E2 = a(l2);
|
|
402
402
|
L(E2, () => p(I).default, (O2, M) => {
|
|
403
403
|
M(O2, {});
|
|
@@ -407,7 +407,7 @@ function b0(h, s) {
|
|
|
407
407
|
{
|
|
408
408
|
var A2 = (I) => {
|
|
409
409
|
var l2 = l(), E2 = a(l2);
|
|
410
|
-
y(E2, () => import("./PaymentResult-
|
|
410
|
+
y(E2, () => import("./PaymentResult-iREwxUTO.js"), null, (O2, M) => {
|
|
411
411
|
var o2 = l(), T2 = a(o2);
|
|
412
412
|
L(T2, () => p(M).default, (Z2, z) => {
|
|
413
413
|
z(Z2, {});
|
|
@@ -417,7 +417,7 @@ function b0(h, s) {
|
|
|
417
417
|
{
|
|
418
418
|
var E2 = (M) => {
|
|
419
419
|
var o2 = l(), T2 = a(o2);
|
|
420
|
-
y(T2, () => import("./Scanner-
|
|
420
|
+
y(T2, () => import("./Scanner-B_IyknFU.js"), null, (Z2, z) => {
|
|
421
421
|
var s2 = l(), N2 = a(s2);
|
|
422
422
|
L(N2, () => p(z).default, (B2, R) => {
|
|
423
423
|
R(B2, {});
|
|
@@ -427,7 +427,7 @@ function b0(h, s) {
|
|
|
427
427
|
{
|
|
428
428
|
var T2 = (z) => {
|
|
429
429
|
var s2 = l(), N2 = a(s2);
|
|
430
|
-
y(N2, () => import("./Error-
|
|
430
|
+
y(N2, () => import("./Error-DcbLpmXf.js"), null, (B2, R) => {
|
|
431
431
|
var n2 = l(), I2 = a(n2);
|
|
432
432
|
L(I2, () => p(R).default, (M2, V) => {
|
|
433
433
|
V(M2, {});
|
|
@@ -437,7 +437,7 @@ function b0(h, s) {
|
|
|
437
437
|
{
|
|
438
438
|
var N2 = (R) => {
|
|
439
439
|
var n2 = l(), I2 = a(n2);
|
|
440
|
-
y(I2, () => import("./RichAlert-
|
|
440
|
+
y(I2, () => import("./RichAlert-17dhVxyd.js"), null, (M2, V) => {
|
|
441
441
|
var Y = l(), z2 = a(Y);
|
|
442
442
|
L(z2, () => p(V).default, (R2, V2) => {
|
|
443
443
|
V2(R2, {});
|
|
@@ -447,7 +447,7 @@ function b0(h, s) {
|
|
|
447
447
|
{
|
|
448
448
|
var I2 = (V) => {
|
|
449
449
|
var Y = l(), z2 = a(Y);
|
|
450
|
-
y(z2, () => import("./ProgressVideo-
|
|
450
|
+
y(z2, () => import("./ProgressVideo-oh7nRG8_.js"), null, (R2, V2) => {
|
|
451
451
|
var D2 = l(), W2 = a(D2);
|
|
452
452
|
L(W2, () => p(V2).default, ($2, X2) => {
|
|
453
453
|
X2($2, {});
|
|
@@ -455,7 +455,7 @@ function b0(h, s) {
|
|
|
455
455
|
}), e(V, Y);
|
|
456
456
|
}, M2 = (V) => {
|
|
457
457
|
var Y = l(), z2 = a(Y);
|
|
458
|
-
y(z2, () => import("./Profile-
|
|
458
|
+
y(z2, () => import("./Profile-G2t70NsO.js"), null, (R2, V2) => {
|
|
459
459
|
var D2 = l(), W2 = a(D2);
|
|
460
460
|
L(W2, () => p(V2).default, ($2, X2) => {
|
|
461
461
|
X2($2, {});
|
|
@@ -603,4 +603,4 @@ export {
|
|
|
603
603
|
k0 as C,
|
|
604
604
|
y as a
|
|
605
605
|
};
|
|
606
|
-
//# sourceMappingURL=App-
|
|
606
|
+
//# sourceMappingURL=App-CCqleyA9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App-DhdG95cV.js","sources":["../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/internal/client/dom/blocks/await.js","../../ui/images/close-button.svg","../../ui/main/shared/Header.svelte","../../ui/images/credenza.svg","../../ui/main/shared/footer/Footer.svelte","../../ui/main/shared/Container.svelte","../../ui/main/Main.svelte","../src/app/images/sui-partner-logo.svg","../src/app/App.svelte"],"sourcesContent":["/** @import { Effect, Source, TemplateNode } from '#client' */\nimport { DEV } from 'esm-env';\nimport { is_promise } from '../../../shared/utils.js';\nimport { block, branch, pause_effect, resume_effect } from '../../reactivity/effects.js';\nimport { internal_set, mutable_source, source } from '../../reactivity/sources.js';\nimport { flushSync, set_active_effect, set_active_reaction } from '../../runtime.js';\nimport {\n\thydrate_next,\n\thydrate_node,\n\thydrating,\n\tremove_nodes,\n\tset_hydrate_node,\n\tset_hydrating\n} from '../hydration.js';\nimport { queue_micro_task } from '../task.js';\nimport { HYDRATION_START_ELSE, UNINITIALIZED } from '../../../../constants.js';\nimport {\n\tcomponent_context,\n\tis_runes,\n\tset_component_context,\n\tset_dev_current_component_function\n} from '../../context.js';\n\nconst PENDING = 0;\nconst THEN = 1;\nconst CATCH = 2;\n\n/**\n * @template V\n * @param {TemplateNode} node\n * @param {(() => Promise<V>)} get_input\n * @param {null | ((anchor: Node) => void)} pending_fn\n * @param {null | ((anchor: Node, value: Source<V>) => void)} then_fn\n * @param {null | ((anchor: Node, error: unknown) => void)} catch_fn\n * @returns {void}\n */\nexport function await_block(node, get_input, pending_fn, then_fn, catch_fn) {\n\tif (hydrating) {\n\t\thydrate_next();\n\t}\n\n\tvar anchor = node;\n\tvar runes = is_runes();\n\tvar active_component_context = component_context;\n\n\t/** @type {any} */\n\tvar component_function = DEV ? component_context?.function : null;\n\n\t/** @type {V | Promise<V> | typeof UNINITIALIZED} */\n\tvar input = UNINITIALIZED;\n\n\t/** @type {Effect | null} */\n\tvar pending_effect;\n\n\t/** @type {Effect | null} */\n\tvar then_effect;\n\n\t/** @type {Effect | null} */\n\tvar catch_effect;\n\n\tvar input_source = runes\n\t\t? source(/** @type {V} */ (undefined))\n\t\t: mutable_source(/** @type {V} */ (undefined), false, false);\n\tvar error_source = runes ? source(undefined) : mutable_source(undefined, false, false);\n\tvar resolved = false;\n\n\t/**\n\t * @param {PENDING | THEN | CATCH} state\n\t * @param {boolean} restore\n\t */\n\tfunction update(state, restore) {\n\t\tresolved = true;\n\n\t\tif (restore) {\n\t\t\tset_active_effect(effect);\n\t\t\tset_active_reaction(effect); // TODO do we need both?\n\t\t\tset_component_context(active_component_context);\n\t\t\tif (DEV) set_dev_current_component_function(component_function);\n\t\t}\n\n\t\ttry {\n\t\t\tif (state === PENDING && pending_fn) {\n\t\t\t\tif (pending_effect) resume_effect(pending_effect);\n\t\t\t\telse pending_effect = branch(() => pending_fn(anchor));\n\t\t\t}\n\n\t\t\tif (state === THEN && then_fn) {\n\t\t\t\tif (then_effect) resume_effect(then_effect);\n\t\t\t\telse then_effect = branch(() => then_fn(anchor, input_source));\n\t\t\t}\n\n\t\t\tif (state === CATCH && catch_fn) {\n\t\t\t\tif (catch_effect) resume_effect(catch_effect);\n\t\t\t\telse catch_effect = branch(() => catch_fn(anchor, error_source));\n\t\t\t}\n\n\t\t\tif (state !== PENDING && pending_effect) {\n\t\t\t\tpause_effect(pending_effect, () => (pending_effect = null));\n\t\t\t}\n\n\t\t\tif (state !== THEN && then_effect) {\n\t\t\t\tpause_effect(then_effect, () => (then_effect = null));\n\t\t\t}\n\n\t\t\tif (state !== CATCH && catch_effect) {\n\t\t\t\tpause_effect(catch_effect, () => (catch_effect = null));\n\t\t\t}\n\t\t} finally {\n\t\t\tif (restore) {\n\t\t\t\tif (DEV) set_dev_current_component_function(null);\n\t\t\t\tset_component_context(null);\n\t\t\t\tset_active_reaction(null);\n\t\t\t\tset_active_effect(null);\n\n\t\t\t\t// without this, the DOM does not update until two ticks after the promise\n\t\t\t\t// resolves, which is unexpected behaviour (and somewhat irksome to test)\n\t\t\t\tflushSync();\n\t\t\t}\n\t\t}\n\t}\n\n\tvar effect = block(() => {\n\t\tif (input === (input = get_input())) return;\n\n\t\t/** Whether or not there was a hydration mismatch. Needs to be a `let` or else it isn't treeshaken out */\n\t\t// @ts-ignore coercing `anchor` to a `Comment` causes TypeScript and Prettier to fight\n\t\tlet mismatch = hydrating && is_promise(input) === (anchor.data === HYDRATION_START_ELSE);\n\n\t\tif (mismatch) {\n\t\t\t// Hydration mismatch: remove everything inside the anchor and start fresh\n\t\t\tanchor = remove_nodes();\n\n\t\t\tset_hydrate_node(anchor);\n\t\t\tset_hydrating(false);\n\t\t\tmismatch = true;\n\t\t}\n\n\t\tif (is_promise(input)) {\n\t\t\tvar promise = input;\n\n\t\t\tresolved = false;\n\n\t\t\tpromise.then(\n\t\t\t\t(value) => {\n\t\t\t\t\tif (promise !== input) return;\n\t\t\t\t\t// we technically could use `set` here since it's on the next microtick\n\t\t\t\t\t// but let's use internal_set for consistency and just to be safe\n\t\t\t\t\tinternal_set(input_source, value);\n\t\t\t\t\tupdate(THEN, true);\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tif (promise !== input) return;\n\t\t\t\t\t// we technically could use `set` here since it's on the next microtick\n\t\t\t\t\t// but let's use internal_set for consistency and just to be safe\n\t\t\t\t\tinternal_set(error_source, error);\n\t\t\t\t\tupdate(CATCH, true);\n\t\t\t\t\tif (!catch_fn) {\n\t\t\t\t\t\t// Rethrow the error if no catch block exists\n\t\t\t\t\t\tthrow error_source.v;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\n\t\t\tif (hydrating) {\n\t\t\t\tif (pending_fn) {\n\t\t\t\t\tpending_effect = branch(() => pending_fn(anchor));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Wait a microtask before checking if we should show the pending state as\n\t\t\t\t// the promise might have resolved by the next microtask.\n\t\t\t\tqueue_micro_task(() => {\n\t\t\t\t\tif (!resolved) update(PENDING, true);\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tinternal_set(input_source, input);\n\t\t\tupdate(THEN, false);\n\t\t}\n\n\t\tif (mismatch) {\n\t\t\t// continue in hydration mode\n\t\t\tset_hydrating(true);\n\t\t}\n\n\t\t// Set the input to something else, in order to disable the promise callbacks\n\t\treturn () => (input = UNINITIALIZED);\n\t});\n\n\tif (hydrating) {\n\t\tanchor = hydrate_node;\n\t}\n}\n","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eClose%3c/title%3e%3cpath%20fill='%23a6a6a6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.237%207.177a.75.75%200%2010-1.06%201.06L10.939%2012l-3.762%203.763a.75.75%200%20101.06%201.06L12%2013.061l3.763%203.762a.75.75%200%20101.06-1.06L13.061%2012l3.762-3.763a.75.75%200%2000-1.06-1.06L12%2010.939%208.237%207.177z'/%3e%3c/svg%3e\"","<script lang=\"ts\">\n import CloseIcon from \"../../images/close-button.svg\";\n\n export let onCloseClick: () => void;\n export let isHeaderShown: boolean;\n\n $: isHeaderShown = isHeaderShown;\n</script>\n\n{#if isHeaderShown}\n <!-- svelte-ignore a11y-click-events-have-key-events -->\n <div\n class=\"crtw-float-right crtw-cursor-pointer crtw-h-8 crtw-w-8 crtw-absolute crtw-top-0 crtw-right-0 crtw-z-1000001 crtw-m-2 crtw-bg-white crtw-rounded-full sm:crtw-m-4\"\n on:click={onCloseClick}\n role=\"button\"\n tabindex={0}\n >\n <img\n src={CloseIcon}\n alt=\"close-icon\"\n class=\"crtw-fill-red-500 crtw-w-8 crtw-h-8\"\n />\n </div>\n{/if}\n","export default \"data:image/svg+xml,%3csvg%20id='Layer_1'%20width='100%25'%20xmlns='http://www.w3.org/2000/svg'%20height='100%25'%20viewBox='0%200%20939.84%20194'%20data-name='Layer%201'%3e%3cg%3e%3cg%3e%3cpath%20d='m181,0H13C5.82,0,0,5.82,0,13v168c0,7.18,5.82,13,13,13h154c-2.69-28.49-18.67-54.88-58.91-78.03-28.28-15.89-32.85-6.92-80.75,27.15,39.18-64.25,38.73-56.84-4-116.12,61.46,40.42,56.89,41.25,116.12-4-30.41,50.61-38.32,55.06-19.72,83.12,21.63,32.61,42.77,58.88,74.26,61.05V13c0-7.18-5.82-13-13-13Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m181,194h13v-13c0,7.18-5.82,13-13,13Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3cpath%20d='m119.74,106.12c-18.6-28.06-10.69-32.51,19.72-83.12-59.23,45.25-54.66,44.42-116.12,4,42.73,59.28,43.18,51.87,4,116.12,47.9-34.07,52.46-43.04,80.75-27.15,40.23,23.15,56.22,49.54,58.91,78.03h14c7.18,0,13-5.82,13-13v-13.83c-31.48-2.17-52.63-28.44-74.26-61.05Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3c/g%3e%3cpath%20d='m92,142.14c-22.75,17.3-20.76,16.82-44.5,1.67,16.41,22.55,16.66,20.1,1.67,44.5,23.94-17.03,19.64-17.39,44.5-1.67-17.03-23.94-16.86-19.2-1.67-44.5Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3cpath%20d='m180.28,76.84c-17.73,13.35-16.29,13.13-34.31,1.24,12.83,17.61,12.78,15.39,1.24,34.31,18.52-13.17,15.3-13.63,34.31-1.24-13.17-18.52-12.91-14.86-1.24-34.31Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3c/g%3e%3cg%20id='Credenza'%3e%3cpath%20d='m699.78,61.6c16.09,19.44,32.17,39.03,49.06,59.57v-58.61h5.58v71.37l-1.43.95c-16.41-19.27-32.17-39.03-49.22-59.42v58.62h-5.41V62.39c.51-.2.99-.47,1.43-.8h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m512.45,73.07h5.41v55.59c10.67-.16,21.19,1.6,31.22-1.91,13.22-4.62,20.71-18.64,18.32-33.93-2.07-14.33-13.38-24.37-28.19-24.85-8.92-.32-17.84,0-26.92,0v-5.58c13.7.63,27.71-2.23,40.94,3.35,14.33,6.21,22.14,21.5,19.91,38.55-2.07,15.61-13.7,27.88-29.47,29.31-10.2.95-20.71.16-31.38.16.16-20.07.16-40.3.16-60.69h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m336.59,101.59h17.68c5.26,0,10.52.16,15.93-.16,10.04-.48,15.93-7.01,15.61-17.21-.16-9.4-6.69-16.25-16.09-16.41-10.83-.16-21.82,0-33.14,0-.16-1.91-.16-3.51-.16-4.78,12.9,0,25.48-.95,37.91.32,10.99.95,17.84,10.67,17.84,21.98s-6.69,18.96-18.16,21.02c-1.28.32-2.55.48-4.62.95,8.29,9.08,16.25,17.52,24.53,26.6-4.46,1.12-7.33.48-10.04-2.71-6.37-7.33-12.9-14.33-19.75-21.34-1.63-1.48-3.7-2.38-5.89-2.55-5.1-.32-10.2-.16-15.77-.16v26.92c-2.07.16-3.66.16-5.58.32-.32-10.83-.32-21.5-.32-32.82v.03Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m834.23,67.65h-43.01v-5.1h53.52c-15.77,22.62-31.7,43.81-47.47,65.95h45.87c.16,2.07.32,3.51.32,5.41h-56.39c15.61-22.62,31.38-43.64,47.15-66.26h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m299.96,72.59c-1.28,1.12-2.39,2.07-3.35,3.03-17.04-11.95-35.84-11.47-46.83.95-10.35,11.79-10.35,32.17.32,43.81,10.99,12.1,29.94,12.43,46.99.32.8,1.12,1.75,2.39,2.71,3.66-12.9,13.86-38.39,14.5-52.25,1.43-14.65-13.7-14.98-39.35-.8-53.68,13.54-14.02,38.87-13.86,53.21.48h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m939.83,133.76c-4.14,1.6-6.06.16-7.64-3.35-8.29-19.11-16.88-37.91-25.33-56.87-.63-1.43-1.43-2.86-2.39-5.1-3.83,8.44-7.33,16.25-10.83,24.05-5.58,12.75-11.47,25.33-16.88,38.07-1.6,3.66-3.66,4.62-7.64,3.18l3.35-7.64c9.08-19.91,18-39.98,27.24-59.9.8-1.75,1.75-3.66,3.66-4.3,3.18-1.12,5.1,2.07,6.06,4.3,9.72,21.67,19.59,43.17,29.31,64.83.5.84.87,1.76,1.12,2.71h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpolygon%20style='fill:%20%23262a2e;'%20points='476.77%2095.85%20476.77%20100.62%20432.81%20100.62%20432.81%20128.82%20476.77%20128.82%20476.77%20134.08%20427.07%20134.08%20427.07%2095.85%20476.77%2095.85'%3e%3c/polygon%3e%3cpath%20d='m615.35,128.82h43.64v5.26h-49.38v-38.23h49.38c.16,1.28.32,2.71.48,4.62h-44.12v28.36h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3crect%20x='427.07'%20y='62.56'%20style='fill:%20%23262a2e;'%20width='49.7'%20height='4.94'%3e%3c/rect%3e%3cpath%20d='m659.32,67.65h-49.86v-5.1h49.54c.16,1.6.16,3.03.32,5.1h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3c/g%3e%3c/svg%3e\"","<script lang=\"ts\">\n import LogoLinkText from \"./LogoLinkText.svelte\";\n import CredenzaLogo from \"../../../images/credenza.svg\";\n\n export let additionalLogo: { img?: string, width: number} | undefined = undefined;\n</script>\n\n<section class=\"crtw-flex crtw-flex-col crtw-items-center crtw-pt-11\">\n <div class=\"crtw-flex crtw-items-center crtw-justify-center crtw-gap-4\">\n <img\n src={CredenzaLogo}\n alt=\"credenza-logo\"\n class=\"crtw-w-[110px]\"\n />\n {#if additionalLogo?.img}\n <img\n src={additionalLogo?.img}\n alt=\"additional-logo\"\n style={`width: ${additionalLogo?.width}px`}\n />\n {/if}\n </div>\n \n <div\n class=\"crtw-text-center crtw-text-textMain crtw-text-xs crtw-flex crtw-justify-center\n crtw-items-center crtw-pt-[3px] sm:crtw-pt-2\"\n >\n <a\n class=\"crtw-text-hightlightColor crtw-no-underline crtw-mr-1.5 crtw-text-[10px]\"\n href=\"https://www.credenza3.com\"\n target=\"_blank\"\n rel=\"noreferrer\">Credenza</a\n >\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"https://www.credenza3.com/company/about\"\n target=\"_blank\"\n rel=\"noreferrer\">About</a\n ></LogoLinkText\n >\n\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"mailto:info@credenza3.com\"\n >\n Contact</a\n ></LogoLinkText\n >\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"https://www.credenza3.com/privacy-policy\"\n target=\"_blank\"\n rel=\"noreferrer\">Privacy & terms</a\n ></LogoLinkText\n >\n </div>\n</section>\n","<div class={$$props.class + \" crtw-w-full crtw-mx-auto crtw-my-0\"}>\n <slot />\n</div>\n","<script lang=\"ts\">\n import Header from \"./shared/Header.svelte\";\n import Footer from \"./shared/footer/Footer.svelte\";\n\n import Container from \"./shared/Container.svelte\";\n\n export let shouldBlurBackdrop: boolean;\n export let isHeaderShown: boolean;\n export let footerAdditionalLogo: { img?: string, width: number} | undefined = undefined;\n\n export let onCloseClick: () => void;\n</script>\n\n<div id=\"cpui\" class=\"crdz-ui\">\n <div\n class=\"crtw-font-['Poppins'] crtw-fixed crtw-z-[1050] crtw-top-0 crtw-left-0 crtw-min-w-screen crtw-w-full\n crtw-min-h-screen crtw-h-full crtw-flex crtw-justify-center crtw-items-center crtw-bg-black/70\n crtw-text-[#121e2b]\"\n class:crtw-backdrop-blur-md={shouldBlurBackdrop}\n >\n <div\n class=\"crtw-bg-white crtw-rounded-lg crtw-relative crtw-w-full crtw-overflow-y-scroll\n crtw-max-w-[380px] crtw-max-h-full sm-tall:crtw-max-h-[650px] sm:crtw-max-w-md\"\n >\n <Header {onCloseClick} {isHeaderShown} />\n <Container class=\"crtw-pt-11 crtw-pb-9 sm:crtw-pt-[50px] crtw-px-[22px]\">\n <div\n class=\"crtw-flex crtw-flex-col crtw-items-center crtw-justify-center crtw-bg-white crtw-rounded\n crtw-min-h-[155px] crtw-gap-6\"\n >\n <slot />\n </div>\n <Footer additionalLogo={footerAdditionalLogo}/>\n </Container>\n </div>\n </div>\n</div>\n\n<style>\n :global(body) {\n --w3m-z-index: 1000001;\n }\n</style>\n","export default \"data:image/svg+xml,%3csvg%20width='148'%20height='78'%20viewBox='0%200%20148%2078'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1340_2004)'%3e%3cpath%20d='M128.996%2048.5994C128.996%2050.7019%20128.532%2052.4518%20127.621%2053.8016C126.719%2055.1545%20125.585%2056.1708%20124.248%2056.8251C122.924%2057.4793%20121.602%2057.8128%20120.326%2057.8128C118.204%2057.8128%20116.432%2057.0823%20115.066%2055.6436C113.707%2054.1986%20113.021%2052.2263%20113.021%2049.7809V27.6797H107.031V50.1461C107.031%2053.1473%20107.53%2055.6754%20108.518%2057.6635C109.508%2059.6485%20110.896%2061.1602%20112.64%2062.1543C114.374%2063.1293%20116.381%2063.6247%20118.604%2063.6247C121.291%2063.6247%20123.552%2062.9864%20125.325%2061.7287C126.925%2060.579%20128.158%2059.1848%20128.996%2057.5809V63.1706H134.986V27.6797H128.996V48.6026V48.5994Z'%20fill='%23011829'/%3e%3cpath%20d='M98.0999%2040.7815C96.7216%2039.8033%2095.2543%2039.0188%2093.7394%2038.4504C92.2626%2037.8946%2090.9033%2037.4499%2089.6932%2037.1292L84.9484%2035.8524C84.0972%2035.6301%2083.1508%2035.3348%2082.1409%2034.9759C81.1373%2034.6075%2080.1623%2034.1343%2079.2508%2033.5753C78.3552%2033.01%2077.6088%2032.3019%2077.0308%2031.4667C76.4782%2030.6314%2076.1987%2029.6151%2076.1987%2028.4432C76.1987%2027.0362%2076.6052%2025.7627%2077.4087%2024.6606C78.2313%2023.5459%2079.3969%2022.6566%2080.8642%2022.0183C82.36%2021.3736%2084.1354%2021.0464%2086.1394%2021.0464C88.877%2021.0464%2091.2145%2021.6689%2093.0915%2022.9012C94.9367%2024.1112%2096.0038%2025.8357%2096.2642%2028.0271L96.296%2028.3066H102.352L102.34%2027.9795C102.264%2025.5785%20101.508%2023.403%20100.101%2021.5165C98.7129%2019.6363%2096.8073%2018.1373%2094.4412%2017.0607C92.0815%2015.9713%2089.3471%2015.4219%2086.3204%2015.4219C83.2937%2015.4219%2080.5688%2015.9808%2078.1329%2017.0829C75.7033%2018.1754%2073.7374%2019.7348%2072.2892%2021.7229C70.8473%2023.7047%2070.1168%2026.0581%2070.1168%2028.7163C70.1168%2031.9272%2071.222%2034.563%2073.3976%2036.5512C75.5413%2038.5107%2078.4854%2040.0383%2082.1472%2041.0927L87.8671%2042.7283C89.4773%2043.1761%2090.9985%2043.7065%2092.3864%2044.3036C93.7425%2044.888%2094.8509%2045.6534%2095.6799%2046.5839C96.4834%2047.4859%2096.8931%2048.6832%2096.8931%2050.1409C96.8931%2051.7543%2096.4135%2053.1835%2095.4639%2054.3903C94.5048%2055.5972%2093.1804%2056.5563%2091.5321%2057.2423C89.8711%2057.9188%2087.9624%2058.2618%2085.8662%2058.2618C84.0655%2058.2618%2082.3568%2057.9918%2080.7975%2057.4614C79.2667%2056.9215%2077.9804%2056.0958%2076.98%2055.0065C76.0018%2053.9139%2075.4333%2052.5102%2075.2904%2050.8333L75.265%2050.5443H68.8242L68.8496%2050.8841C69.0338%2053.4725%2069.8405%2055.7814%2071.2475%2057.7409C72.6671%2059.7005%2074.633%2061.2472%2077.0943%2062.3397C79.5589%2063.4258%2082.5125%2063.9784%2085.8694%2063.9784C89.4709%2063.9784%2092.5801%2063.3655%2095.105%2062.1555C97.6585%2060.9391%2099.6275%2059.2749%20100.952%2057.2074C102.295%2055.1367%20102.978%2052.7897%20102.978%2050.2267C102.978%2048.0004%20102.511%2046.0916%20101.593%2044.5513C100.682%2043.0205%2099.5068%2041.7533%2098.0999%2040.7783V40.7815Z'%20fill='%23011829'/%3e%3cpath%20d='M147.5%2018.5531C147.5%2017.467%20147.084%2016.5269%20146.267%2015.7583C145.467%2014.9929%20144.495%2014.6055%20143.371%2014.6055C142.247%2014.6055%20141.268%2014.9929%20140.452%2015.7615C139.649%2016.5301%20139.242%2017.4702%20139.242%2018.5563C139.242%2019.6425%20139.649%2020.5794%20140.455%2021.3511C141.268%2022.1165%20142.25%2022.504%20143.374%2022.504C144.498%2022.504%20145.378%2022.1515%20146.153%2021.4591L146.188%2021.4274C146.217%2021.402%20146.245%2021.3765%20146.274%2021.348L146.388%2021.2368C147.131%2020.4873%20147.506%2019.5853%20147.506%2018.5531H147.5Z'%20fill='%23011829'/%3e%3cpath%20d='M146.318%2027.6758H140.328V63.1669H146.318V27.6758Z'%20fill='%23011829'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.255%2032.8991C51.3992%2036.8468%2053.2793%2041.8393%2053.2793%2047.2701C53.2793%2052.701%2051.342%2057.846%2048.1153%2061.8159L47.8358%2062.1589L47.7627%2061.7238C47.6992%2061.3554%2047.6262%2060.9806%2047.5404%2060.6059C45.9239%2053.5045%2040.6582%2047.4162%2031.9911%2042.484C26.1379%2039.162%2022.7873%2035.1667%2021.9075%2030.6219C21.339%2027.6842%2021.7614%2024.7337%2022.5777%2022.2057C23.3939%2019.6809%2024.6071%2017.5625%2025.6393%2016.289L29.0121%2012.1666C29.6028%2011.4425%2030.7112%2011.4425%2031.3019%2012.1666L48.2582%2032.8991H48.255ZM53.5874%2028.7799L30.9875%201.14931C30.5556%200.622105%2029.7489%200.622105%2029.317%201.14931L6.72026%2028.7799L6.64721%2028.872C2.48993%2034.0329%200%2040.5912%200%2047.7307C0%2064.3566%2013.5009%2077.8353%2030.1522%2077.8353C46.8036%2077.8353%2060.3045%2064.3566%2060.3045%2047.7307C60.3045%2040.5912%2057.8146%2034.0329%2053.6573%2028.8752L53.5842%2028.7831L53.5874%2028.7799ZM12.1289%2032.8102L14.1487%2030.3361L14.2091%2030.7934C14.2567%2031.1555%2014.3171%2031.5175%2014.3869%2031.8828C15.6954%2038.746%2020.3672%2044.4658%2028.1768%2048.8962C34.9669%2052.7613%2038.921%2057.2044%2040.058%2062.0763C40.5343%2064.1089%2040.6169%2066.1097%2040.4105%2067.8597L40.3978%2067.9677L40.2993%2068.0153C37.2346%2069.5112%2033.7887%2070.3528%2030.1491%2070.3528C17.3787%2070.3528%207.02515%2060.0183%207.02515%2047.267C7.02515%2041.7917%208.93388%2036.7642%2012.1225%2032.8038L12.1289%2032.8102Z'%20fill='%23011829'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1340_2004'%3e%3crect%20width='147.681'%20height='77.175'%20fill='white'%20transform='translate(0%200.753906)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","<script lang=\"ts\">\n import { get } from 'svelte/store'\n import { fn, pageStore, pageOptsStore } from '@packages/stores'\n import { dispatch, PassportEvents } from '@lib/events/events'\n\n import { Pages } from '@packages/utils/enums'\n import { MainApp } from '@packages/ui'\n import { cloakStore, forcedPage } from '@src/stores/config'\n import SuiPartnerLogo from '@images/sui-partner-logo.svg'\n\n\n $: shouldBlurBackdrop = $cloakStore\n $: isHeaderShown = !$cloakStore\n const handleCloseClick = () => {\n const { close } = get(fn)\n\n dispatch(PassportEvents.UI_CLOSED, {\n page: <string>(get(forcedPage) || get(pageStore)),\n pageOpts: get(pageOptsStore),\n })\n close()\n }\n</script>\n\n\n<MainApp\n footerAdditionalLogo={{ img: SuiPartnerLogo, width: 40 }}\n bind:shouldBlurBackdrop\n bind:isHeaderShown\n onCloseClick={handleCloseClick}\n>\n {#if $forcedPage === Pages.LOGIN || $pageStore === Pages.LOGIN}\n {#await import('@pages/login/Login.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.LOGOUT}\n {#await import('@pages/logout/Logout.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $forcedPage === Pages.CONFIRM_ACCOUNT || $pageStore === Pages.CONFIRM_ACCOUNT}\n {#await import('@pages/confirm-account/ConfirmAccount.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $forcedPage === Pages.UPDATE_PROFILE || $pageStore === Pages.UPDATE_PROFILE}\n {#await import('@pages/update-profile/UpdateProfile.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PASSPORT_ID}\n {#await import('@pages/passport-id/PassportId.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SIGN}\n {#await import('@pages/sign/Sign.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.WALLET}\n {#await import('@pages/wallet/Wallet.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SEND_TOKENS}\n {#await import('@pages/send-tokens/SendTokens.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PAYMENT}\n {#await import('@pages/payment/Payment.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PAYMENT_RESULT}\n {#await import('@pages/payment-result/PaymentResult.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SCANNER}\n {#await import('@pages/scanner/Scanner.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.ERROR}\n {#await import('@pages/error/Error.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.RICH_ALERT}\n {#await import('@pages/rich-alert/RichAlert.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.LOADER}\n {#await import('@components/progress/ProgressVideo.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else}\n {#await import('@pages/profile/Profile.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {/if}\n</MainApp>\n"],"names":["PENDING","THEN","CATCH","await_block","node","get_input","pending_fn","then_fn","catch_fn","hydrating","hydrate_next","anchor","runes","is_runes","active_component_context","component_context","input","UNINITIALIZED","pending_effect","then_effect","catch_effect","input_source","source","mutable_source","error_source","resolved","update","state","restore","set_active_effect","effect","set_active_reaction","set_component_context","resume_effect","branch","pause_effect","flushSync","block","mismatch","is_promise","HYDRATION_START_ELSE","remove_nodes","set_hydrate_node","set_hydrating","promise","value","internal_set","error","queue_micro_task","hydrate_node","CloseIcon","onCloseClick","$.prop","$$props","isHeaderShown","_a","$$args","$$render","consequent","CredenzaLogo","additionalLogo","$.untrack","$$sanitized_props","shouldBlurBackdrop","footerAdditionalLogo","SuiPartnerLogo","handleCloseClick","close","get","fn","dispatch","PassportEvents","forcedPage","pageStore","pageOptsStore","$.set","$cloakStore","expression","$.derived_safe_equal","$.await","node_1","module","$.component","node_2","$.get","$$anchor","$$component","node_3","node_4","node_5","node_6","node_7","node_8","node_9","node_10","node_11","node_12","node_13","node_14","node_15","node_16","node_17","node_18","node_19","node_20","node_21","node_22","node_23","node_24","node_25","node_26","node_27","node_28","node_29","node_30","Pages","$pageStore","$forcedPage"],"mappings":";;AAuBA,MAAMA,KAAU,GACVC,KAAO,GACPC,KAAQ;AAWP,SAASC,EAAYC,GAAMC,GAAWC,GAAYC,GAASC,GAAU;AAC3E,EAAIC,MACHC,GAAc;AAGf,MAAIC,IAASP,GACTQ,IAAQC,GAAU,GAClBC,IAA2BC,IAM3BC,IAAQC,IAGRC,GAGAC,GAGAC,GAEAC,IAAeT,IAChBU;AAAA;AAAA,IAAyB;AAAA,EAAS,IAClCC;AAAA;AAAA,IAAiC;AAAA,IAAY;AAAA,IAAO;AAAA,EAAK,GACxDC,IAAeZ,IAAQU,GAAO,MAAS,IAAIC,GAAe,QAAW,IAAO,EAAK,GACjFE,IAAW;AAMf,WAASC,EAAOC,GAAOC,GAAS;AAC/B,IAAAH,IAAW,IAEPG,MACHC,GAAkBC,CAAM,GACxBC,GAAoBD,CAAM,GAC1BE,GAAsBlB,CAAwB;AAI/C,QAAI;AAMH,MAAIa,MAAU1B,MAAQM,MACjBY,IAAac,GAAcd,CAAW,IACrCA,IAAce,GAAO,MAAM3B,EAAQI,GAAQU,CAAY,CAAC,IAQ1DM,MAAU3B,M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AH,EAAM,EAAC,SAAO,CAAAI,IAAAC,OAAA;;;;;;AAGzBP,8DAAAA,EAAAkC,IAAA,MAAA,OAAA,uBAA+B,cAAOhC,OAAM;;AACjCC,gEAAAA,EAAAgC,IAAA,MAAA9B,EAAAH,EAAM,EAAC,SAAO,CAAAI,IAAAC,OAAA;;;;;;;;uEApFjC6B,CAAK,WA8EJC,QAAeD,EAAM,MAAM;;;;;;;;;mEA9E5BA,CAAK,WA0EJC,QAAeD,EAAM,UAAU;;;;;;;;;+DA1EhCA,CAAK,WAsEJC,QAAeD,EAAM,KAAK;;;;;;;;;2DAtE3BA,CAAK,WAkEJC,QAAeD,EAAM,OAAO;;;;;;;;;uDAlE7BA,CAAK,WA8DJC,QAAeD,EAAM,cAAc;;;;;;;;;mDA9DpCA,CAAK,WA0DJC,QAAeD,EAAM,OAAO;;;;;;;;;+CA1D7BA,CAAK,WAsDJC,QAAeD,EAAM,WAAW;;;;;;;;;2CAtDjCA,CAAK,WAkDJC,QAAeD,EAAM,MAAM;;;;;;;;;uCAlD5BA,CAAK,WA8CJC,QAAeD,EAAM,IAAI;;;;;;;;;mCA9C1BA,CAAK,WA0CJC,QAAeD,EAAM,WAAW;;;;;;;;;+BA1CjCA,CAAK,gBAsCJE,QAAgBF,EAAM,kBAAkBC,EAAU,MAAKD,EAAM,cAAc;;;;;;;;;2BAtC5EA,CAAK,gBAkCJE,QAAgBF,EAAM,mBAAmBC,EAAU,MAAKD,EAAM,eAAe;;;;;;;;;uBAlC9EA,CAAK,WA8BJC,QAAeD,EAAM,MAAM;;;;;;;iBA9B5BA,CAAK,gBA0BTE,QAAgBF,EAAM,SAASC,EAAU,MAAKD,EAAM,KAAK;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"App-CCqleyA9.js","sources":["../../../node_modules/.pnpm/svelte@5.34.8/node_modules/svelte/src/internal/client/dom/blocks/await.js","../../ui/images/close-button.svg","../../ui/main/shared/Header.svelte","../../ui/images/credenza.svg","../../ui/main/shared/footer/Footer.svelte","../../ui/main/shared/Container.svelte","../../ui/main/Main.svelte","../src/app/images/sui-partner-logo.svg","../src/app/App.svelte"],"sourcesContent":["/** @import { Effect, Source, TemplateNode } from '#client' */\nimport { DEV } from 'esm-env';\nimport { is_promise } from '../../../shared/utils.js';\nimport { block, branch, pause_effect, resume_effect } from '../../reactivity/effects.js';\nimport { internal_set, mutable_source, source } from '../../reactivity/sources.js';\nimport { flushSync, set_active_effect, set_active_reaction } from '../../runtime.js';\nimport {\n\thydrate_next,\n\thydrate_node,\n\thydrating,\n\tremove_nodes,\n\tset_hydrate_node,\n\tset_hydrating\n} from '../hydration.js';\nimport { queue_micro_task } from '../task.js';\nimport { HYDRATION_START_ELSE, UNINITIALIZED } from '../../../../constants.js';\nimport {\n\tcomponent_context,\n\tis_runes,\n\tset_component_context,\n\tset_dev_current_component_function\n} from '../../context.js';\n\nconst PENDING = 0;\nconst THEN = 1;\nconst CATCH = 2;\n\n/**\n * @template V\n * @param {TemplateNode} node\n * @param {(() => Promise<V>)} get_input\n * @param {null | ((anchor: Node) => void)} pending_fn\n * @param {null | ((anchor: Node, value: Source<V>) => void)} then_fn\n * @param {null | ((anchor: Node, error: unknown) => void)} catch_fn\n * @returns {void}\n */\nexport function await_block(node, get_input, pending_fn, then_fn, catch_fn) {\n\tif (hydrating) {\n\t\thydrate_next();\n\t}\n\n\tvar anchor = node;\n\tvar runes = is_runes();\n\tvar active_component_context = component_context;\n\n\t/** @type {any} */\n\tvar component_function = DEV ? component_context?.function : null;\n\n\t/** @type {V | Promise<V> | typeof UNINITIALIZED} */\n\tvar input = UNINITIALIZED;\n\n\t/** @type {Effect | null} */\n\tvar pending_effect;\n\n\t/** @type {Effect | null} */\n\tvar then_effect;\n\n\t/** @type {Effect | null} */\n\tvar catch_effect;\n\n\tvar input_source = runes\n\t\t? source(/** @type {V} */ (undefined))\n\t\t: mutable_source(/** @type {V} */ (undefined), false, false);\n\tvar error_source = runes ? source(undefined) : mutable_source(undefined, false, false);\n\tvar resolved = false;\n\n\t/**\n\t * @param {PENDING | THEN | CATCH} state\n\t * @param {boolean} restore\n\t */\n\tfunction update(state, restore) {\n\t\tresolved = true;\n\n\t\tif (restore) {\n\t\t\tset_active_effect(effect);\n\t\t\tset_active_reaction(effect); // TODO do we need both?\n\t\t\tset_component_context(active_component_context);\n\t\t\tif (DEV) set_dev_current_component_function(component_function);\n\t\t}\n\n\t\ttry {\n\t\t\tif (state === PENDING && pending_fn) {\n\t\t\t\tif (pending_effect) resume_effect(pending_effect);\n\t\t\t\telse pending_effect = branch(() => pending_fn(anchor));\n\t\t\t}\n\n\t\t\tif (state === THEN && then_fn) {\n\t\t\t\tif (then_effect) resume_effect(then_effect);\n\t\t\t\telse then_effect = branch(() => then_fn(anchor, input_source));\n\t\t\t}\n\n\t\t\tif (state === CATCH && catch_fn) {\n\t\t\t\tif (catch_effect) resume_effect(catch_effect);\n\t\t\t\telse catch_effect = branch(() => catch_fn(anchor, error_source));\n\t\t\t}\n\n\t\t\tif (state !== PENDING && pending_effect) {\n\t\t\t\tpause_effect(pending_effect, () => (pending_effect = null));\n\t\t\t}\n\n\t\t\tif (state !== THEN && then_effect) {\n\t\t\t\tpause_effect(then_effect, () => (then_effect = null));\n\t\t\t}\n\n\t\t\tif (state !== CATCH && catch_effect) {\n\t\t\t\tpause_effect(catch_effect, () => (catch_effect = null));\n\t\t\t}\n\t\t} finally {\n\t\t\tif (restore) {\n\t\t\t\tif (DEV) set_dev_current_component_function(null);\n\t\t\t\tset_component_context(null);\n\t\t\t\tset_active_reaction(null);\n\t\t\t\tset_active_effect(null);\n\n\t\t\t\t// without this, the DOM does not update until two ticks after the promise\n\t\t\t\t// resolves, which is unexpected behaviour (and somewhat irksome to test)\n\t\t\t\tflushSync();\n\t\t\t}\n\t\t}\n\t}\n\n\tvar effect = block(() => {\n\t\tif (input === (input = get_input())) return;\n\n\t\t/** Whether or not there was a hydration mismatch. Needs to be a `let` or else it isn't treeshaken out */\n\t\t// @ts-ignore coercing `anchor` to a `Comment` causes TypeScript and Prettier to fight\n\t\tlet mismatch = hydrating && is_promise(input) === (anchor.data === HYDRATION_START_ELSE);\n\n\t\tif (mismatch) {\n\t\t\t// Hydration mismatch: remove everything inside the anchor and start fresh\n\t\t\tanchor = remove_nodes();\n\n\t\t\tset_hydrate_node(anchor);\n\t\t\tset_hydrating(false);\n\t\t\tmismatch = true;\n\t\t}\n\n\t\tif (is_promise(input)) {\n\t\t\tvar promise = input;\n\n\t\t\tresolved = false;\n\n\t\t\tpromise.then(\n\t\t\t\t(value) => {\n\t\t\t\t\tif (promise !== input) return;\n\t\t\t\t\t// we technically could use `set` here since it's on the next microtick\n\t\t\t\t\t// but let's use internal_set for consistency and just to be safe\n\t\t\t\t\tinternal_set(input_source, value);\n\t\t\t\t\tupdate(THEN, true);\n\t\t\t\t},\n\t\t\t\t(error) => {\n\t\t\t\t\tif (promise !== input) return;\n\t\t\t\t\t// we technically could use `set` here since it's on the next microtick\n\t\t\t\t\t// but let's use internal_set for consistency and just to be safe\n\t\t\t\t\tinternal_set(error_source, error);\n\t\t\t\t\tupdate(CATCH, true);\n\t\t\t\t\tif (!catch_fn) {\n\t\t\t\t\t\t// Rethrow the error if no catch block exists\n\t\t\t\t\t\tthrow error_source.v;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t);\n\n\t\t\tif (hydrating) {\n\t\t\t\tif (pending_fn) {\n\t\t\t\t\tpending_effect = branch(() => pending_fn(anchor));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Wait a microtask before checking if we should show the pending state as\n\t\t\t\t// the promise might have resolved by the next microtask.\n\t\t\t\tqueue_micro_task(() => {\n\t\t\t\t\tif (!resolved) update(PENDING, true);\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tinternal_set(input_source, input);\n\t\t\tupdate(THEN, false);\n\t\t}\n\n\t\tif (mismatch) {\n\t\t\t// continue in hydration mode\n\t\t\tset_hydrating(true);\n\t\t}\n\n\t\t// Set the input to something else, in order to disable the promise callbacks\n\t\treturn () => (input = UNINITIALIZED);\n\t});\n\n\tif (hydrating) {\n\t\tanchor = hydrate_node;\n\t}\n}\n","export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3ctitle%3eClose%3c/title%3e%3cpath%20fill='%23a6a6a6'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.237%207.177a.75.75%200%2010-1.06%201.06L10.939%2012l-3.762%203.763a.75.75%200%20101.06%201.06L12%2013.061l3.763%203.762a.75.75%200%20101.06-1.06L13.061%2012l3.762-3.763a.75.75%200%2000-1.06-1.06L12%2010.939%208.237%207.177z'/%3e%3c/svg%3e\"","<script lang=\"ts\">\n import CloseIcon from \"../../images/close-button.svg\";\n\n export let onCloseClick: () => void;\n export let isHeaderShown: boolean;\n\n $: isHeaderShown = isHeaderShown;\n</script>\n\n{#if isHeaderShown}\n <!-- svelte-ignore a11y-click-events-have-key-events -->\n <div\n class=\"crtw-float-right crtw-cursor-pointer crtw-h-8 crtw-w-8 crtw-absolute crtw-top-0 crtw-right-0 crtw-z-1000001 crtw-m-2 crtw-bg-white crtw-rounded-full sm:crtw-m-4\"\n on:click={onCloseClick}\n role=\"button\"\n tabindex={0}\n >\n <img\n src={CloseIcon}\n alt=\"close-icon\"\n class=\"crtw-fill-red-500 crtw-w-8 crtw-h-8\"\n />\n </div>\n{/if}\n","export default \"data:image/svg+xml,%3csvg%20id='Layer_1'%20width='100%25'%20xmlns='http://www.w3.org/2000/svg'%20height='100%25'%20viewBox='0%200%20939.84%20194'%20data-name='Layer%201'%3e%3cg%3e%3cg%3e%3cpath%20d='m181,0H13C5.82,0,0,5.82,0,13v168c0,7.18,5.82,13,13,13h154c-2.69-28.49-18.67-54.88-58.91-78.03-28.28-15.89-32.85-6.92-80.75,27.15,39.18-64.25,38.73-56.84-4-116.12,61.46,40.42,56.89,41.25,116.12-4-30.41,50.61-38.32,55.06-19.72,83.12,21.63,32.61,42.77,58.88,74.26,61.05V13c0-7.18-5.82-13-13-13Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m181,194h13v-13c0,7.18-5.82,13-13,13Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3cpath%20d='m119.74,106.12c-18.6-28.06-10.69-32.51,19.72-83.12-59.23,45.25-54.66,44.42-116.12,4,42.73,59.28,43.18,51.87,4,116.12,47.9-34.07,52.46-43.04,80.75-27.15,40.23,23.15,56.22,49.54,58.91,78.03h14c7.18,0,13-5.82,13-13v-13.83c-31.48-2.17-52.63-28.44-74.26-61.05Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3c/g%3e%3cpath%20d='m92,142.14c-22.75,17.3-20.76,16.82-44.5,1.67,16.41,22.55,16.66,20.1,1.67,44.5,23.94-17.03,19.64-17.39,44.5-1.67-17.03-23.94-16.86-19.2-1.67-44.5Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3cpath%20d='m180.28,76.84c-17.73,13.35-16.29,13.13-34.31,1.24,12.83,17.61,12.78,15.39,1.24,34.31,18.52-13.17,15.3-13.63,34.31-1.24-13.17-18.52-12.91-14.86-1.24-34.31Z'%20style='fill:%20%23fff;'%3e%3c/path%3e%3c/g%3e%3cg%20id='Credenza'%3e%3cpath%20d='m699.78,61.6c16.09,19.44,32.17,39.03,49.06,59.57v-58.61h5.58v71.37l-1.43.95c-16.41-19.27-32.17-39.03-49.22-59.42v58.62h-5.41V62.39c.51-.2.99-.47,1.43-.8h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m512.45,73.07h5.41v55.59c10.67-.16,21.19,1.6,31.22-1.91,13.22-4.62,20.71-18.64,18.32-33.93-2.07-14.33-13.38-24.37-28.19-24.85-8.92-.32-17.84,0-26.92,0v-5.58c13.7.63,27.71-2.23,40.94,3.35,14.33,6.21,22.14,21.5,19.91,38.55-2.07,15.61-13.7,27.88-29.47,29.31-10.2.95-20.71.16-31.38.16.16-20.07.16-40.3.16-60.69h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m336.59,101.59h17.68c5.26,0,10.52.16,15.93-.16,10.04-.48,15.93-7.01,15.61-17.21-.16-9.4-6.69-16.25-16.09-16.41-10.83-.16-21.82,0-33.14,0-.16-1.91-.16-3.51-.16-4.78,12.9,0,25.48-.95,37.91.32,10.99.95,17.84,10.67,17.84,21.98s-6.69,18.96-18.16,21.02c-1.28.32-2.55.48-4.62.95,8.29,9.08,16.25,17.52,24.53,26.6-4.46,1.12-7.33.48-10.04-2.71-6.37-7.33-12.9-14.33-19.75-21.34-1.63-1.48-3.7-2.38-5.89-2.55-5.1-.32-10.2-.16-15.77-.16v26.92c-2.07.16-3.66.16-5.58.32-.32-10.83-.32-21.5-.32-32.82v.03Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m834.23,67.65h-43.01v-5.1h53.52c-15.77,22.62-31.7,43.81-47.47,65.95h45.87c.16,2.07.32,3.51.32,5.41h-56.39c15.61-22.62,31.38-43.64,47.15-66.26h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m299.96,72.59c-1.28,1.12-2.39,2.07-3.35,3.03-17.04-11.95-35.84-11.47-46.83.95-10.35,11.79-10.35,32.17.32,43.81,10.99,12.1,29.94,12.43,46.99.32.8,1.12,1.75,2.39,2.71,3.66-12.9,13.86-38.39,14.5-52.25,1.43-14.65-13.7-14.98-39.35-.8-53.68,13.54-14.02,38.87-13.86,53.21.48h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpath%20d='m939.83,133.76c-4.14,1.6-6.06.16-7.64-3.35-8.29-19.11-16.88-37.91-25.33-56.87-.63-1.43-1.43-2.86-2.39-5.1-3.83,8.44-7.33,16.25-10.83,24.05-5.58,12.75-11.47,25.33-16.88,38.07-1.6,3.66-3.66,4.62-7.64,3.18l3.35-7.64c9.08-19.91,18-39.98,27.24-59.9.8-1.75,1.75-3.66,3.66-4.3,3.18-1.12,5.1,2.07,6.06,4.3,9.72,21.67,19.59,43.17,29.31,64.83.5.84.87,1.76,1.12,2.71h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3cpolygon%20style='fill:%20%23262a2e;'%20points='476.77%2095.85%20476.77%20100.62%20432.81%20100.62%20432.81%20128.82%20476.77%20128.82%20476.77%20134.08%20427.07%20134.08%20427.07%2095.85%20476.77%2095.85'%3e%3c/polygon%3e%3cpath%20d='m615.35,128.82h43.64v5.26h-49.38v-38.23h49.38c.16,1.28.32,2.71.48,4.62h-44.12v28.36h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3crect%20x='427.07'%20y='62.56'%20style='fill:%20%23262a2e;'%20width='49.7'%20height='4.94'%3e%3c/rect%3e%3cpath%20d='m659.32,67.65h-49.86v-5.1h49.54c.16,1.6.16,3.03.32,5.1h0Z'%20style='fill:%20%23262a2e;'%3e%3c/path%3e%3c/g%3e%3c/svg%3e\"","<script lang=\"ts\">\n import LogoLinkText from \"./LogoLinkText.svelte\";\n import CredenzaLogo from \"../../../images/credenza.svg\";\n\n export let additionalLogo: { img?: string, width: number} | undefined = undefined;\n</script>\n\n<section class=\"crtw-flex crtw-flex-col crtw-items-center crtw-pt-11\">\n <div class=\"crtw-flex crtw-items-center crtw-justify-center crtw-gap-4\">\n <img\n src={CredenzaLogo}\n alt=\"credenza-logo\"\n class=\"crtw-w-[110px]\"\n />\n {#if additionalLogo?.img}\n <img\n src={additionalLogo?.img}\n alt=\"additional-logo\"\n style={`width: ${additionalLogo?.width}px`}\n />\n {/if}\n </div>\n \n <div\n class=\"crtw-text-center crtw-text-textMain crtw-text-xs crtw-flex crtw-justify-center\n crtw-items-center crtw-pt-[3px] sm:crtw-pt-2\"\n >\n <a\n class=\"crtw-text-hightlightColor crtw-no-underline crtw-mr-1.5 crtw-text-[10px]\"\n href=\"https://www.credenza3.com\"\n target=\"_blank\"\n rel=\"noreferrer\">Credenza</a\n >\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"https://www.credenza3.com/company/about\"\n target=\"_blank\"\n rel=\"noreferrer\">About</a\n ></LogoLinkText\n >\n\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"mailto:info@credenza3.com\"\n >\n Contact</a\n ></LogoLinkText\n >\n <LogoLinkText>·</LogoLinkText>\n <LogoLinkText\n ><a\n class=\"crtw-text-hightlightColor crtw-no-underline\"\n href=\"https://www.credenza3.com/privacy-policy\"\n target=\"_blank\"\n rel=\"noreferrer\">Privacy & terms</a\n ></LogoLinkText\n >\n </div>\n</section>\n","<div class={$$props.class + \" crtw-w-full crtw-mx-auto crtw-my-0\"}>\n <slot />\n</div>\n","<script lang=\"ts\">\n import Header from \"./shared/Header.svelte\";\n import Footer from \"./shared/footer/Footer.svelte\";\n\n import Container from \"./shared/Container.svelte\";\n\n export let shouldBlurBackdrop: boolean;\n export let isHeaderShown: boolean;\n export let footerAdditionalLogo: { img?: string, width: number} | undefined = undefined;\n\n export let onCloseClick: () => void;\n</script>\n\n<div id=\"cpui\" class=\"crdz-ui\">\n <div\n class=\"crtw-font-['Poppins'] crtw-fixed crtw-z-[1050] crtw-top-0 crtw-left-0 crtw-min-w-screen crtw-w-full\n crtw-min-h-screen crtw-h-full crtw-flex crtw-justify-center crtw-items-center crtw-bg-black/70\n crtw-text-[#121e2b]\"\n class:crtw-backdrop-blur-md={shouldBlurBackdrop}\n >\n <div\n class=\"crtw-bg-white crtw-rounded-lg crtw-relative crtw-w-full crtw-overflow-y-scroll\n crtw-max-w-[380px] crtw-max-h-full sm-tall:crtw-max-h-[650px] sm:crtw-max-w-md\"\n >\n <Header {onCloseClick} {isHeaderShown} />\n <Container class=\"crtw-pt-11 crtw-pb-9 sm:crtw-pt-[50px] crtw-px-[22px]\">\n <div\n class=\"crtw-flex crtw-flex-col crtw-items-center crtw-justify-center crtw-bg-white crtw-rounded\n crtw-min-h-[155px] crtw-gap-6\"\n >\n <slot />\n </div>\n <Footer additionalLogo={footerAdditionalLogo}/>\n </Container>\n </div>\n </div>\n</div>\n\n<style>\n :global(body) {\n --w3m-z-index: 1000001;\n }\n</style>\n","export default \"data:image/svg+xml,%3csvg%20width='148'%20height='78'%20viewBox='0%200%20148%2078'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1340_2004)'%3e%3cpath%20d='M128.996%2048.5994C128.996%2050.7019%20128.532%2052.4518%20127.621%2053.8016C126.719%2055.1545%20125.585%2056.1708%20124.248%2056.8251C122.924%2057.4793%20121.602%2057.8128%20120.326%2057.8128C118.204%2057.8128%20116.432%2057.0823%20115.066%2055.6436C113.707%2054.1986%20113.021%2052.2263%20113.021%2049.7809V27.6797H107.031V50.1461C107.031%2053.1473%20107.53%2055.6754%20108.518%2057.6635C109.508%2059.6485%20110.896%2061.1602%20112.64%2062.1543C114.374%2063.1293%20116.381%2063.6247%20118.604%2063.6247C121.291%2063.6247%20123.552%2062.9864%20125.325%2061.7287C126.925%2060.579%20128.158%2059.1848%20128.996%2057.5809V63.1706H134.986V27.6797H128.996V48.6026V48.5994Z'%20fill='%23011829'/%3e%3cpath%20d='M98.0999%2040.7815C96.7216%2039.8033%2095.2543%2039.0188%2093.7394%2038.4504C92.2626%2037.8946%2090.9033%2037.4499%2089.6932%2037.1292L84.9484%2035.8524C84.0972%2035.6301%2083.1508%2035.3348%2082.1409%2034.9759C81.1373%2034.6075%2080.1623%2034.1343%2079.2508%2033.5753C78.3552%2033.01%2077.6088%2032.3019%2077.0308%2031.4667C76.4782%2030.6314%2076.1987%2029.6151%2076.1987%2028.4432C76.1987%2027.0362%2076.6052%2025.7627%2077.4087%2024.6606C78.2313%2023.5459%2079.3969%2022.6566%2080.8642%2022.0183C82.36%2021.3736%2084.1354%2021.0464%2086.1394%2021.0464C88.877%2021.0464%2091.2145%2021.6689%2093.0915%2022.9012C94.9367%2024.1112%2096.0038%2025.8357%2096.2642%2028.0271L96.296%2028.3066H102.352L102.34%2027.9795C102.264%2025.5785%20101.508%2023.403%20100.101%2021.5165C98.7129%2019.6363%2096.8073%2018.1373%2094.4412%2017.0607C92.0815%2015.9713%2089.3471%2015.4219%2086.3204%2015.4219C83.2937%2015.4219%2080.5688%2015.9808%2078.1329%2017.0829C75.7033%2018.1754%2073.7374%2019.7348%2072.2892%2021.7229C70.8473%2023.7047%2070.1168%2026.0581%2070.1168%2028.7163C70.1168%2031.9272%2071.222%2034.563%2073.3976%2036.5512C75.5413%2038.5107%2078.4854%2040.0383%2082.1472%2041.0927L87.8671%2042.7283C89.4773%2043.1761%2090.9985%2043.7065%2092.3864%2044.3036C93.7425%2044.888%2094.8509%2045.6534%2095.6799%2046.5839C96.4834%2047.4859%2096.8931%2048.6832%2096.8931%2050.1409C96.8931%2051.7543%2096.4135%2053.1835%2095.4639%2054.3903C94.5048%2055.5972%2093.1804%2056.5563%2091.5321%2057.2423C89.8711%2057.9188%2087.9624%2058.2618%2085.8662%2058.2618C84.0655%2058.2618%2082.3568%2057.9918%2080.7975%2057.4614C79.2667%2056.9215%2077.9804%2056.0958%2076.98%2055.0065C76.0018%2053.9139%2075.4333%2052.5102%2075.2904%2050.8333L75.265%2050.5443H68.8242L68.8496%2050.8841C69.0338%2053.4725%2069.8405%2055.7814%2071.2475%2057.7409C72.6671%2059.7005%2074.633%2061.2472%2077.0943%2062.3397C79.5589%2063.4258%2082.5125%2063.9784%2085.8694%2063.9784C89.4709%2063.9784%2092.5801%2063.3655%2095.105%2062.1555C97.6585%2060.9391%2099.6275%2059.2749%20100.952%2057.2074C102.295%2055.1367%20102.978%2052.7897%20102.978%2050.2267C102.978%2048.0004%20102.511%2046.0916%20101.593%2044.5513C100.682%2043.0205%2099.5068%2041.7533%2098.0999%2040.7783V40.7815Z'%20fill='%23011829'/%3e%3cpath%20d='M147.5%2018.5531C147.5%2017.467%20147.084%2016.5269%20146.267%2015.7583C145.467%2014.9929%20144.495%2014.6055%20143.371%2014.6055C142.247%2014.6055%20141.268%2014.9929%20140.452%2015.7615C139.649%2016.5301%20139.242%2017.4702%20139.242%2018.5563C139.242%2019.6425%20139.649%2020.5794%20140.455%2021.3511C141.268%2022.1165%20142.25%2022.504%20143.374%2022.504C144.498%2022.504%20145.378%2022.1515%20146.153%2021.4591L146.188%2021.4274C146.217%2021.402%20146.245%2021.3765%20146.274%2021.348L146.388%2021.2368C147.131%2020.4873%20147.506%2019.5853%20147.506%2018.5531H147.5Z'%20fill='%23011829'/%3e%3cpath%20d='M146.318%2027.6758H140.328V63.1669H146.318V27.6758Z'%20fill='%23011829'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M48.255%2032.8991C51.3992%2036.8468%2053.2793%2041.8393%2053.2793%2047.2701C53.2793%2052.701%2051.342%2057.846%2048.1153%2061.8159L47.8358%2062.1589L47.7627%2061.7238C47.6992%2061.3554%2047.6262%2060.9806%2047.5404%2060.6059C45.9239%2053.5045%2040.6582%2047.4162%2031.9911%2042.484C26.1379%2039.162%2022.7873%2035.1667%2021.9075%2030.6219C21.339%2027.6842%2021.7614%2024.7337%2022.5777%2022.2057C23.3939%2019.6809%2024.6071%2017.5625%2025.6393%2016.289L29.0121%2012.1666C29.6028%2011.4425%2030.7112%2011.4425%2031.3019%2012.1666L48.2582%2032.8991H48.255ZM53.5874%2028.7799L30.9875%201.14931C30.5556%200.622105%2029.7489%200.622105%2029.317%201.14931L6.72026%2028.7799L6.64721%2028.872C2.48993%2034.0329%200%2040.5912%200%2047.7307C0%2064.3566%2013.5009%2077.8353%2030.1522%2077.8353C46.8036%2077.8353%2060.3045%2064.3566%2060.3045%2047.7307C60.3045%2040.5912%2057.8146%2034.0329%2053.6573%2028.8752L53.5842%2028.7831L53.5874%2028.7799ZM12.1289%2032.8102L14.1487%2030.3361L14.2091%2030.7934C14.2567%2031.1555%2014.3171%2031.5175%2014.3869%2031.8828C15.6954%2038.746%2020.3672%2044.4658%2028.1768%2048.8962C34.9669%2052.7613%2038.921%2057.2044%2040.058%2062.0763C40.5343%2064.1089%2040.6169%2066.1097%2040.4105%2067.8597L40.3978%2067.9677L40.2993%2068.0153C37.2346%2069.5112%2033.7887%2070.3528%2030.1491%2070.3528C17.3787%2070.3528%207.02515%2060.0183%207.02515%2047.267C7.02515%2041.7917%208.93388%2036.7642%2012.1225%2032.8038L12.1289%2032.8102Z'%20fill='%23011829'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1340_2004'%3e%3crect%20width='147.681'%20height='77.175'%20fill='white'%20transform='translate(0%200.753906)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\"","<script lang=\"ts\">\n import { get } from 'svelte/store'\n import { fn, pageStore, pageOptsStore } from '@packages/stores'\n import { dispatch, PassportEvents } from '@lib/events/events'\n\n import { Pages } from '@packages/utils/enums'\n import { MainApp } from '@packages/ui'\n import { cloakStore, forcedPage } from '@src/stores/config'\n import SuiPartnerLogo from '@images/sui-partner-logo.svg'\n\n\n $: shouldBlurBackdrop = $cloakStore\n $: isHeaderShown = !$cloakStore\n const handleCloseClick = () => {\n const { close } = get(fn)\n\n dispatch(PassportEvents.UI_CLOSED, {\n page: <string>(get(forcedPage) || get(pageStore)),\n pageOpts: get(pageOptsStore),\n })\n close()\n }\n</script>\n\n\n<MainApp\n footerAdditionalLogo={{ img: SuiPartnerLogo, width: 40 }}\n bind:shouldBlurBackdrop\n bind:isHeaderShown\n onCloseClick={handleCloseClick}\n>\n {#if $forcedPage === Pages.LOGIN || $pageStore === Pages.LOGIN}\n {#await import('@pages/login/Login.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.LOGOUT}\n {#await import('@pages/logout/Logout.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $forcedPage === Pages.CONFIRM_ACCOUNT || $pageStore === Pages.CONFIRM_ACCOUNT}\n {#await import('@pages/confirm-account/ConfirmAccount.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $forcedPage === Pages.UPDATE_PROFILE || $pageStore === Pages.UPDATE_PROFILE}\n {#await import('@pages/update-profile/UpdateProfile.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PASSPORT_ID}\n {#await import('@pages/passport-id/PassportId.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SIGN}\n {#await import('@pages/sign/Sign.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.WALLET}\n {#await import('@pages/wallet/Wallet.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SEND_TOKENS}\n {#await import('@pages/send-tokens/SendTokens.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PAYMENT}\n {#await import('@pages/payment/Payment.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.PAYMENT_RESULT}\n {#await import('@pages/payment-result/PaymentResult.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.SCANNER}\n {#await import('@pages/scanner/Scanner.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.ERROR}\n {#await import('@pages/error/Error.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.RICH_ALERT}\n {#await import('@pages/rich-alert/RichAlert.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else if $pageStore === Pages.LOADER}\n {#await import('@components/progress/ProgressVideo.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {:else}\n {#await import('@pages/profile/Profile.svelte') then module}\n <svelte:component this={module.default} />\n {/await}\n {/if}\n</MainApp>\n"],"names":["PENDING","THEN","CATCH","await_block","node","get_input","pending_fn","then_fn","catch_fn","hydrating","hydrate_next","anchor","runes","is_runes","active_component_context","component_context","input","UNINITIALIZED","pending_effect","then_effect","catch_effect","input_source","source","mutable_source","error_source","resolved","update","state","restore","set_active_effect","effect","set_active_reaction","set_component_context","resume_effect","branch","pause_effect","flushSync","block","mismatch","is_promise","HYDRATION_START_ELSE","remove_nodes","set_hydrate_node","set_hydrating","promise","value","internal_set","error","queue_micro_task","hydrate_node","CloseIcon","onCloseClick","$.prop","$$props","isHeaderShown","_a","$$args","$$render","consequent","CredenzaLogo","additionalLogo","$.untrack","$$sanitized_props","shouldBlurBackdrop","footerAdditionalLogo","SuiPartnerLogo","handleCloseClick","close","get","fn","dispatch","PassportEvents","forcedPage","pageStore","pageOptsStore","$.set","$cloakStore","expression","$.derived_safe_equal","$.await","node_1","module","$.component","node_2","$.get","$$anchor","$$component","node_3","node_4","node_5","node_6","node_7","node_8","node_9","node_10","node_11","node_12","node_13","node_14","node_15","node_16","node_17","node_18","node_19","node_20","node_21","node_22","node_23","node_24","node_25","node_26","node_27","node_28","node_29","node_30","Pages","$pageStore","$forcedPage"],"mappings":";;AAuBA,MAAMA,KAAU,GACVC,KAAO,GACPC,KAAQ;AAWP,SAASC,EAAYC,GAAMC,GAAWC,GAAYC,GAASC,GAAU;AAC3E,EAAIC,MACHC,GAAc;AAGf,MAAIC,IAASP,GACTQ,IAAQC,GAAU,GAClBC,IAA2BC,IAM3BC,IAAQC,IAGRC,GAGAC,GAGAC,GAEAC,IAAeT,IAChBU;AAAA;AAAA,IAAyB;AAAA,EAAS,IAClCC;AAAA;AAAA,IAAiC;AAAA,IAAY;AAAA,IAAO;AAAA,EAAK,GACxDC,IAAeZ,IAAQU,GAAO,MAAS,IAAIC,GAAe,QAAW,IAAO,EAAK,GACjFE,IAAW;AAMf,WAASC,EAAOC,GAAOC,GAAS;AAC/B,IAAAH,IAAW,IAEPG,MACHC,GAAkBC,CAAM,GACxBC,GAAoBD,CAAM,GAC1BE,GAAsBlB,CAAwB;AAI/C,QAAI;AAMH,MAAIa,MAAU1B,MAAQM,MACjBY,IAAac,GAAcd,CAAW,IACrCA,IAA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as y, r as L } from "./legacy-
|
|
2
|
-
import { v as B, B as D, C as j, D as p, I as q, z, u as l } from "./index-
|
|
1
|
+
import { c as g, p as o, f as _, i as v, k as x, e as k, b as u, d as C, u as h, t as y, r as L } from "./legacy-YR9wiUnf.js";
|
|
2
|
+
import { v as B, B as D, C as j, D as p, I as q, z, u as l } from "./index-Cpr_yChD.js";
|
|
3
3
|
import { p as I } from "./event-modifiers-DpFXHa6q.js";
|
|
4
|
-
import { L as P } from "./Loader-
|
|
4
|
+
import { L as P } from "./Loader-Ck8Qf90h.js";
|
|
5
5
|
var S = _("<button><!></button>");
|
|
6
6
|
function A(d, a) {
|
|
7
7
|
if (new.target) return g({ component: A, ...d });
|
|
@@ -66,4 +66,4 @@ function A(d, a) {
|
|
|
66
66
|
export {
|
|
67
67
|
A as B
|
|
68
68
|
};
|
|
69
|
-
//# sourceMappingURL=Button-
|
|
69
|
+
//# sourceMappingURL=Button-DAy_umSd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button-
|
|
1
|
+
{"version":3,"file":"Button-DAy_umSd.js","sources":["../../ui/main/shared/inputs/button/Button.svelte"],"sourcesContent":["<script lang=\"ts\">\n import Loader from \"../../Loader.svelte\";\n\n export let onClick: (...args: unknown[]) => unknown;\n export let text: string;\n export let disabled: boolean = false;\n export let isLoading: boolean = false;\n</script>\n\n<button\n class:crtw-bg-gray-300={disabled || isLoading}\n class:crtw-pointer-events-none={disabled || isLoading}\n class=\"crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-bg-black crtw-text-white crtw-h-[50px] crtw-cursor-pointer\n crtw-border-0 crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium\"\n on:click|preventDefault={onClick}\n>\n {#if isLoading}\n <Loader />\n {:else}\n {text}\n {/if}\n</button>\n"],"names":["onClick","$.prop","$$props","text","disabled","isLoading","$$render","consequent","alternate","_a","$$args"],"mappings":";;;;;;;;MAGaA,IAAwCC,EAAAC,GAAA,WAAA,EAAA,GACxCC,IAAYF,EAAAC,GAAA,QAAA,EAAA,GACZE,yBAAoB,EAAK,GACzBC,0BAAqB,EAAK;;;;;;;;;mBAalCF,EAAI,CAAA,CAAA;;;MAHFE,EAAS,IAAAC,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;;;;;;QANU,oBAAAJ,OAAYC,EAAS;AAAA,QACb,4BAAAD,EAAQ,KAAIC,EAAS;AAAA;;;;;AAG5B,KAAAI,IAAAT,QAAA,QAAAS,EAAO,MAAA,MAAAC;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as r, p as s, d as c, u as i } from "./legacy-
|
|
2
|
-
import { v as l, z as m, u } from "./index-
|
|
3
|
-
import { B as g } from "./ButtonLink-
|
|
1
|
+
import { c as r, p as s, d as c, u as i } from "./legacy-YR9wiUnf.js";
|
|
2
|
+
import { v as l, z as m, u } from "./index-Cpr_yChD.js";
|
|
3
|
+
import { B as g } from "./ButtonLink-dIXfKKup.js";
|
|
4
4
|
const p = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6.407'%20height='10.251'%20viewBox='612.753%20464%206.407%2010.251'%3e%3cpath%20d='m617.951%20464%201.209%201.208-3.99%203.92%203.99%203.915-1.209%201.208-5.198-5.124L617.95%20464Z'%20fill-rule='evenodd'%20data-name='iconmonstr-arrow-64'/%3e%3c/svg%3e";
|
|
5
5
|
function d(o, t) {
|
|
6
6
|
if (new.target) return r({ component: d, ...o });
|
|
@@ -28,4 +28,4 @@ function d(o, t) {
|
|
|
28
28
|
export {
|
|
29
29
|
d as B
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=ButtonBack-
|
|
31
|
+
//# sourceMappingURL=ButtonBack-BkUKUIsw.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonBack-
|
|
1
|
+
{"version":3,"file":"ButtonBack-BkUKUIsw.js","sources":["../../ui/images/chevron-left.svg","../../ui/main/shared/inputs/button-back/ButtonBack.svelte"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='6.407'%20height='10.251'%20viewBox='612.753%20464%206.407%2010.251'%3e%3cpath%20d='m617.951%20464%201.209%201.208-3.99%203.92%203.99%203.915-1.209%201.208-5.198-5.124L617.95%20464Z'%20fill-rule='evenodd'%20data-name='iconmonstr-arrow-64'/%3e%3c/svg%3e\"","<script lang=\"ts\">\n import ButtonLink from \"../button-link/ButtonLink.svelte\";\n import ArrowIcon from \"../../../../images/chevron-left.svg\";\n\n export let onClick: (...args: unknown[]) => unknown;\n</script>\n\n<ButtonLink icon={ArrowIcon} {onClick} text=\"Back\" />\n"],"names":["ArrowIcon","onClick","$.prop","$$props"],"mappings":";;;AAAA,MAAeA,IAAA;;;;MCIFC,IAAwCC,EAAAC,GAAA,WAAA,EAAA;;;aAGnCH;AAAA;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as d, p as a, h as g, f as m, i as y, j as v, r as k, e as h, b as p, d as C, u as j, s as B } from "./legacy-
|
|
2
|
-
import { v as S, B as z, E as D, C as E, D as w, z as L, u as c } from "./index-
|
|
1
|
+
import { c as d, p as a, h as g, f as m, i as y, j as v, r as k, e as h, b as p, d as C, u as j, s as B } from "./legacy-YR9wiUnf.js";
|
|
2
|
+
import { v as S, B as z, E as D, C as E, D as w, z as L, u as c } from "./index-Cpr_yChD.js";
|
|
3
3
|
var O = m('<img alt="" class="crtw-mr-2 crtw-h-3"/>'), V = m(`<button class="crtw-bg-white crtw-border-0 crtw-my-0.5 crtw-px-0 crtw-text-black crtw-text-left crtw-flex crtw-items-center crtw-cursor-pointer crtw-font-['poppins'] crtw-text-[13px] crtw-underline"><!> </button>`);
|
|
4
4
|
function q(u, s) {
|
|
5
5
|
if (new.target) return d({ component: q, ...u });
|
|
@@ -55,4 +55,4 @@ function q(u, s) {
|
|
|
55
55
|
export {
|
|
56
56
|
q as B
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=ButtonLink-
|
|
58
|
+
//# sourceMappingURL=ButtonLink-dIXfKKup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink-
|
|
1
|
+
{"version":3,"file":"ButtonLink-dIXfKKup.js","sources":["../../ui/main/shared/inputs/button-link/ButtonLink.svelte"],"sourcesContent":["<script lang=\"ts\">\n export let onClick: (...args: unknown[]) => unknown\n export let icon: string | undefined = undefined\n export let text: string\n\n export let styles: { [key: string]: string } = {}\n\n const cssVarStyles = Object.entries(styles)\n .map(([key, value]) => `${key}:${value}`)\n .join(';')\n</script>\n\n<button\n class=\"crtw-bg-white crtw-border-0 crtw-my-0.5 crtw-px-0 crtw-text-black crtw-text-left crtw-flex crtw-items-center crtw-cursor-pointer crtw-font-['poppins'] crtw-text-[13px] crtw-underline\"\n on:click={onClick}\n style={cssVarStyles}\n>\n {#if icon}\n <img src={icon} alt=\"\" class=\"crtw-mr-2 crtw-h-3\" />\n {/if}\n {text}\n</button>\n"],"names":["onClick","$.prop","$$props","icon","text","styles","cssVarStyles","key","value","$$render","consequent","_a","$$args"],"mappings":";;;;;;MACaA,IAAwCC,EAAAC,GAAA,WAAA,EAAA,GACxCC,qBAA2B,MAAS,GACpCC,IAAYH,EAAAC,GAAA,QAAA,EAAA,GAEZG,IAAMJ,EAAAC,GAAA,UAAA,IAAA,OAAA,CAAA,EAAA;AAEX,QAAAI,IAAe,OAAO,QAAQD,EAAM,GACvC,IAAG,CAAA,CAAGE,GAAKC,CAAK,SAASD,CAAG,IAAIC,CAAK,EACrC,EAAA,KAAK,GAAG;;;;;;0BASCL,EAAI,CAAA,CAAA;;;MADXA,EAAI,KAAAM,EAAAC,CAAA;AAAA;;;;SAFFJ,CAAY,YAKlBF,EAAI,KAAA,EAAA,EAAA;AAAA;;AANK,KAAAO,IAAAX,QAAA,QAAAW,EAAO,MAAA,MAAAC;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as D, m as ae, p as j, f as B, v as se, s as ie, b as y, d as G, u as M, h as Z, i as K, t as V, r as W, n as le, o as ce } from "./legacy-
|
|
2
|
-
import { v as H, B as ee, C as te, D as F, z as J, u as N, y as A, E as k, G as L, K as c, I as oe, m as R, F as X, J as I, L as Q, N as ue, aW as de, S as U, aX as fe, R as ve } from "./index-
|
|
3
|
-
import { C as pe } from "./App-
|
|
4
|
-
import { C as me } from "./ContentHeader-
|
|
5
|
-
import { B as _e } from "./Button-
|
|
6
|
-
import { B as he } from "./ButtonLink-
|
|
7
|
-
import { L as Y } from "./Label-
|
|
8
|
-
import { b as ge } from "./input-
|
|
1
|
+
import { c as D, m as ae, p as j, f as B, v as se, s as ie, b as y, d as G, u as M, h as Z, i as K, t as V, r as W, n as le, o as ce } from "./legacy-YR9wiUnf.js";
|
|
2
|
+
import { v as H, B as ee, C as te, D as F, z as J, u as N, y as A, E as k, G as L, K as c, I as oe, m as R, F as X, J as I, L as Q, N as ue, aW as de, S as U, aX as fe, R as ve } from "./index-Cpr_yChD.js";
|
|
3
|
+
import { C as pe } from "./App-CCqleyA9.js";
|
|
4
|
+
import { C as me } from "./ContentHeader-CVumJwvG.js";
|
|
5
|
+
import { B as _e } from "./Button-DAy_umSd.js";
|
|
6
|
+
import { B as he } from "./ButtonLink-dIXfKKup.js";
|
|
7
|
+
import { L as Y } from "./Label-Bf8cAqMv.js";
|
|
8
|
+
import { b as ge } from "./input-BJ8poX2h.js";
|
|
9
9
|
var we = B('<div class="crtw-flex crtw-justify-center"><input type="number" min="0" max="99999" class="crtw-w-full crtw-mb-1.5 phone crtw-border crtw-rounded crtw-px-2 crtw-outline-none crtw-mt-2.5 crtw-h-[50px] crtw-text-xs svelte-1o26kfq" name="code"/></div>');
|
|
10
10
|
const Ce = {
|
|
11
11
|
hash: "svelte-1o26kfq",
|
|
@@ -207,4 +207,4 @@ function $e(d, r) {
|
|
|
207
207
|
export {
|
|
208
208
|
$e as default
|
|
209
209
|
};
|
|
210
|
-
//# sourceMappingURL=ConfirmAccount-
|
|
210
|
+
//# sourceMappingURL=ConfirmAccount-B7b6KLqs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmAccount-
|
|
1
|
+
{"version":3,"file":"ConfirmAccount-B7b6KLqs.js","sources":["../../ui/main/confirm-account/CodeInput.svelte","../../ui/main/confirm-account/Confirm.svelte","../src/app/pages/confirm-account/ConfirmAccount.svelte"],"sourcesContent":["<script lang=\"ts\">\n export let value: number;\n export let placeholder: string = \"Code\";\n</script>\n\n<div class=\"crtw-flex crtw-justify-center\">\n <input\n type=\"number\"\n min=\"0\"\n max=\"99999\"\n class=\"crtw-w-full crtw-mb-1.5 phone crtw-border crtw-rounded crtw-px-2 crtw-outline-none crtw-mt-2.5 crtw-h-[50px] crtw-text-xs\"\n {placeholder}\n bind:value\n name=\"code\"\n />\n</div>\n\n<style>\n input::-webkit-outer-spin-button,\n input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n input[type=\"number\"] {\n appearance: textfield;\n -moz-appearance: textfield;\n }\n</style>\n","<script lang=\"ts\">\n import Container from \"../shared/Container.svelte\";\n import ContentHeader from \"../shared/ContentHeader.svelte\";\n import Button from \"../shared/inputs/button/Button.svelte\";\n import ButtonLink from \"../shared/inputs/button-link/ButtonLink.svelte\";\n import Label from \"../shared/inputs/input/Label.svelte\";\n import CodeInput from \"./CodeInput.svelte\";\n\n export let options: {\n isLoading: boolean;\n onBackClick: () => void;\n onSubmit: ({\n confirmPhoneCode,\n confirmEmailCode,\n }: {\n confirmPhoneCode: number;\n confirmEmailCode: number;\n }) => void;\n pending: {\n phone: string;\n email: string;\n };\n };\n\n let { onBackClick, onSubmit, pending, isLoading } = options;\n\n let confirmPhoneCode: number;\n let confirmEmailCode: number;\n</script>\n\n<ContentHeader text=\"Before we start please verify your personal data\" />\n\n<Container>\n {#if pending?.phone}\n <Label for=\"code\">Enter your code sent to {pending?.phone}</Label>\n <CodeInput bind:value={confirmPhoneCode} placeholder=\"SMS Code\" />\n {/if}\n {#if pending?.email}\n <Label for=\"code\">Enter your code sent to {pending?.email}</Label>\n <CodeInput bind:value={confirmEmailCode} placeholder=\"Email Code\" />\n {/if}\n <Button\n text=\"Verify\"\n onClick={() => onSubmit({ confirmPhoneCode, confirmEmailCode })}\n disabled={isLoading ||\n !!(pending?.phone && String(confirmPhoneCode).length !== 6) ||\n !!(pending?.email && String(confirmEmailCode).length !== 6)}\n />\n</Container>\n\n<div class=\"crtw-mt-4\">\n <ButtonLink text=\"Update your account details\" onClick={onBackClick} />\n</div>\n","<script lang=\"ts\">\n import { get } from 'svelte/store'\n import { fn, userStore, pageStore, forcedPageStore } from '@packages/stores'\n import { Pages } from '@packages/utils/enums'\n import { ConfirmAccount } from '@packages/ui'\n\n const { confirmAccount, close, toastAlert } = get(fn)\n\n let isLoading = false\n\n const confirm = async ({\n confirmEmailCode,\n confirmPhoneCode,\n }: {\n confirmEmailCode: number\n confirmPhoneCode: number\n }) => {\n isLoading = true\n try {\n const res = await confirmAccount({\n ...($userStore?.pending?.email ? { emailCode: String(confirmEmailCode) } : {}),\n ...($userStore?.pending?.phone ? { phoneCode: String(confirmPhoneCode) } : {}),\n })\n\n if (($userStore?.pending?.phone && !res.phone) || ($userStore?.pending?.email && !res.email))\n throw new Error('The code is invalid.')\n\n const page = get(pageStore)\n if (!page || page === Pages.CONFIRM_ACCOUNT || page === Pages.LOGOUT) close()\n toastAlert('Account has been confirmed successfully.', 'success')\n } catch (err) {\n toastAlert(err?.message || err, 'failure')\n }\n isLoading = false\n }\n</script>\n\n<ConfirmAccount\n options={{\n isLoading,\n onBackClick: () => forcedPageStore.set(Pages.UPDATE_PROFILE),\n onSubmit: confirm,\n pending: $userStore?.pending,\n }}\n/>\n"],"names":["value","$.prop","$$props","placeholder","options","onBackClick","onSubmit","pending","isLoading","confirmPhoneCode","$.mutable_source","confirmEmailCode","$.template_effect","$.set_text","text","$.untrack","$$value","$$render","consequent","text_1","consequent_1","$.get","__awaiter","thisArg","_arguments","P","generator","confirmAccount","close","toastAlert","get","fn","confirm","_a","$.set","res","_b","$userStore","_c","_d","_e","page","pageStore","Pages","err","forcedPageStore"],"mappings":";;;;;;;;;;;;;;;;;MACaA,IAAaC,EAAAC,GAAA,SAAA,EAAA,GACbC,4BAAsB,MAAM;;;;;;;;;;;;;;;;;;;;;;;MCM5BC,IAcVH,EAAAC,GAAA,WAAA,EAAA,GAEK,EAAA,aAAAG,GAAa,UAAAC,GAAU,SAAAC,GAAS,WAAAC,EAAS,IAAKJ,EAAO,GAEvDK,IAAwBC,EAAA,GACxBC,IAAwBD,EAAA;;;;;;;;;;;;;;;;;;AAOiBE,cAAAA,EAAA,MAAAC,EAAAC,GAAA,2BAAAC,EAAA,MAAAR,KAAA,gBAAAA,EAAS,KAAK,KAAA,EAAA,EAAA,CAAA;;;;;;;;uBAClCE,CAAgB;AAAA;;gBAAhBA,GAAgBO,CAAA;AAAA;;;;;AAFpC,UAAAD,EAAA,MAAAR,KAAA,gBAAAA,EAAS,KAAK,KAAAU,EAAAC,CAAA;AAAA;;;;;;;;;;;AAK0BN,cAAAA,EAAA,MAAAC,EAAAM,GAAA,2BAAAJ,EAAA,MAAAR,KAAA,gBAAAA,EAAS,KAAK,KAAA,EAAA,EAAA,CAAA;;;;;;;;uBAClCI,CAAgB;AAAA;;gBAAhBA,GAAgBK,CAAA;AAAA;;;;;AAFpC,UAAAD,EAAA,MAAAR,KAAA,gBAAAA,EAAS,KAAK,KAAAU,EAAAG,CAAA;AAAA;;;4BAXfX,CAAwB,KACxBE,CAAwB,WAiBhBH,KAAS,CAAA,EACdD,KAAA,QAAAA,EAAS,SAAS,OAAMc,EAACZ,CAAgB,CAAA,EAAE,WAAW,MACtD,CAAA,EAAAF,KAAA,QAAAA,EAAS,SAAS,SAAOI,CAAgB,C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,MAASE,EAAM,mBAAmBF,MAASE,EAAM,WAAQf,EAAK,GAC3EC,EAAW,4CAA4C,SAAS;AAAA,IAClE,SAASe,GAAK;AACZ,MAAAf,GAAWe,KAAG,OAAA,SAAHA,EAAK,YAAWA,GAAK,SAAS;AAAA,IAC3C;AACAV,IAAAA,EAAA1B,GAAY,EAAK;AAAA,GAClB;;;;;MAKC,aAAAA,CAAS;AAAA,MACT,mBAAmBqC,GAAgB,IAAIF,EAAM,cAAc;AAAA,MAC3D,UAAUX;AAAA,MACV,UAASC,IAAAI,EAAU,MAAV,gBAAAJ,EAAY;AAAA;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as _, p as l, f as g, g as b, r as o, b as C, d as h, u as y } from "./legacy-
|
|
2
|
-
import { v as z, B as x, C as i, E as d, D as B, z as D, u as m } from "./index-
|
|
1
|
+
import { c as _, p as l, f as g, g as b, r as o, b as C, d as h, u as y } from "./legacy-YR9wiUnf.js";
|
|
2
|
+
import { v as z, B as x, C as i, E as d, D as B, z as D, u as m } from "./index-Cpr_yChD.js";
|
|
3
3
|
var E = g(`<div class="crtw-flex crtw-flex-col crtw-items-center crtw-mx-auto crtw-text-center crtw-text-textMain
|
|
4
4
|
crtw-max-w-xs crtw-relative sm:crtw-max-w-[360px]"><p class="crtw-font-bold crtw-text-[21px] crtw-uppercase sm:crtw-text-2xl sm:crtw-mb-px"> </p> <p class="crtw-text-sm sm:crtw-text-base"> </p> <!></div>`);
|
|
5
5
|
function H(p, t) {
|
|
@@ -33,4 +33,4 @@ function H(p, t) {
|
|
|
33
33
|
export {
|
|
34
34
|
H as C
|
|
35
35
|
};
|
|
36
|
-
//# sourceMappingURL=ContentHeader-
|
|
36
|
+
//# sourceMappingURL=ContentHeader-CVumJwvG.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentHeader-
|
|
1
|
+
{"version":3,"file":"ContentHeader-CVumJwvG.js","sources":["../../ui/main/shared/ContentHeader.svelte"],"sourcesContent":["<script lang=\"ts\">\n export let text: string | undefined = undefined\n export let description: string | undefined = undefined\n</script>\n\n<div\n class=\"crtw-flex crtw-flex-col crtw-items-center crtw-mx-auto crtw-text-center crtw-text-textMain\n crtw-max-w-xs crtw-relative sm:crtw-max-w-[360px]\"\n>\n <p class=\"crtw-font-bold crtw-text-[21px] crtw-uppercase sm:crtw-text-2xl sm:crtw-mb-px\">\n {text ?? ``}\n </p>\n <p class=\"crtw-text-sm sm:crtw-text-base\">\n {description ?? ``}\n </p>\n\n <slot />\n</div>\n"],"names":["text","description"],"mappings":";;;;;;;AACa,MAAAA,qBAA2B,MAAS,GACpCC,4BAAkC,MAAS;;;;;;;SAQnDD,EAAI,KAAA,EAAA,QAGJC,EAAW,KAAA,EAAA;AAAA;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as y, p as Q, f as m, i as w, r as h, b as f, d as A, u as M, s as x, h as X } from "./legacy-
|
|
2
|
-
import { o as Z } from "./index-client-
|
|
3
|
-
import { v as V, y as $, B as p, C as u, E, G as T, D as g, z as B, u as t2, O as e2, J as k, m as r2, K as v, I as s2, L as c2, N as l2 } from "./index-
|
|
4
|
-
import { B as N } from "./Button-
|
|
1
|
+
import { c as y, p as Q, f as m, i as w, r as h, b as f, d as A, u as M, s as x, h as X } from "./legacy-YR9wiUnf.js";
|
|
2
|
+
import { o as Z } from "./index-client-CJ3dIYTW.js";
|
|
3
|
+
import { v as V, y as $, B as p, C as u, E, G as T, D as g, z as B, u as t2, O as e2, J as k, m as r2, K as v, I as s2, L as c2, N as l2 } from "./index-Cpr_yChD.js";
|
|
4
|
+
import { B as N } from "./Button-DAy_umSd.js";
|
|
5
5
|
const i2 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;fill:%23010101;}%20.st1{fill:%23010101;}%20%3c/style%3e%3cpath%20class='st0'%20d='M454.1,479.5l-39.2-358c-0.5-7.2-6.7-12.4-13.9-12.4l-67.6,0V88.6c0-45.9-37.7-83.6-83.6-83.6%20s-83.6,37.7-83.6,83.6v20.6H98.2c-7.2,0-12.9,5.2-13.9,12.4L45,479.5c-0.5,4.1,1,7.7,3.6,10.8c2.6,3.1,6.2,4.6,10.3,4.6h381.7%20c4.1,0,7.7-1.5,10.3-4.6C453.6,487.3,454.6,483.6,454.1,479.5L454.1,479.5z%20M204.4,88.6c0-25.3,20.6-45.4,45.4-45.4%20c24.8,0,45.4,20.6,45.4,45.4v20.6l-90.8,0L204.4,88.6z%20M249.8,406.3c-57.3,0-104.2-46.4-104.2-104.2c0-57.3,46.4-104.2,104.2-104.2%20c57.3,0,104.2,46.4,104.2,104.2C354,359.3,307.1,406.3,249.8,406.3z'/%3e%3cpath%20class='st0'%20d='M295.2,256.7c-7.2-7.2-19.6-7.2-26.8,0l-18.6,18.6l-18.6-18.6c-7.2-7.2-19.6-7.2-26.8,0%20c-7.2,7.2-7.2,19.6,0,26.8l18.6,18.6l-18.6,18.6c-7.2,7.2-7.2,19.6,0,26.8c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7%20l18.6-18.6l18.6,18.6c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7c7.2-7.2,7.2-19.6,0-26.8l-18.6-18.6l18.6-18.6%20C302.4,276.3,302.4,264.4,295.2,256.7L295.2,256.7z'/%3e%3cg%3e%3cpath%20class='st1'%20d='M361.3,161.1c0-5.9-2.3-11.6-6.5-15.8c-4.2-4.2-9.9-6.5-15.8-6.5s-11.6,2.3-15.8,6.5l-73.5,73.5l-73.5-73.5%20c-4.2-4.1-9.8-6.3-15.7-6.3c-5.9,0.1-11.4,2.4-15.6,6.5c-4.1,4.1-6.5,9.7-6.5,15.6c0,5.8,2.2,11.5,6.3,15.7l73.5,73.5l-73.5,73.5%20c-4.1,4.2-6.3,9.8-6.3,15.7c0.1,5.8,2.4,11.4,6.5,15.6c4.1,4.1,9.7,6.5,15.6,6.5c5.8,0.1,11.5-2.2,15.7-6.3l73.5-73.5l73.5,73.5%20c4.2,4.1,9.8,6.3,15.7,6.3c5.8-0.1,11.4-2.4,15.6-6.5c4.1-4.1,6.5-9.7,6.5-15.6c0-5.8-2.2-11.5-6.3-15.7l-73.5-73.5l73.5-73.5%20C359,172.7,361.3,167.1,361.3,161.1L361.3,161.1z'/%3e%3cpath%20class='st1'%20d='M249.8,5C114.3,5,4.5,114.9,4.5,250.4s109.9,245.4,245.4,245.4s245.4-109.9,245.4-245.4S385.3,5,249.8,5%20L249.8,5z%20M173,64.9c24.4-10.1,50.5-15.3,76.8-15.3c53.2,0,104.3,21.2,142,58.8c37.6,37.6,58.8,88.7,58.8,142s-21.2,104.3-58.8,142%20c-37.6,37.6-88.7,58.8-142,58.8c-26.4,0-52.5-5.2-76.8-15.3c-24.4-10.1-46.5-24.9-65.1-43.5c-18.6-18.6-33.4-40.8-43.5-65.1%20c-10.1-24.4-15.3-50.5-15.3-76.8s5.2-52.5,15.3-76.8c10.1-24.4,24.9-46.5,43.5-65.1S148.6,75,173,64.9L173,64.9z'/%3e%3c/g%3e%3c/svg%3e";
|
|
6
6
|
var o2 = m('<img class="crtw-w-[90px]" alt="error"/>'), a2 = m('<img alt="error"/>'), n2 = m(`<a class="crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-h-[50px] crtw-cursor-pointer
|
|
7
7
|
crtw-border-2 crtw-border-black crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium"> </a>`), d2 = m('<div class="crtw-flex crtw-flex-col crtw-justify-center crtw-items-center"><div class="crtw-mb-6"><!></div> <div class="crtw-text-2xl crtw-uppercase crtw-text-black crtw-font-bold"> </div> <div class="crtw-text-base crtw-text-black crtw-text-center crtw-mb-9"> </div> <!></div> <!> <!>', 1);
|
|
@@ -155,4 +155,4 @@ function u2(l, s) {
|
|
|
155
155
|
export {
|
|
156
156
|
u2 as default
|
|
157
157
|
};
|
|
158
|
-
//# sourceMappingURL=Error-
|
|
158
|
+
//# sourceMappingURL=Error-DcbLpmXf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error-D6PZ8Cat.js","sources":["../../ui/images/error.svg","../../ui/main/error/Error.svelte","../src/app/images/sold_out.svg","../src/app/pages/error/error.helper.ts","../src/app/pages/error/Error.svelte"],"sourcesContent":["export default \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;fill:%23010101;}%20.st1{fill:%23010101;}%20%3c/style%3e%3cpath%20class='st0'%20d='M454.1,479.5l-39.2-358c-0.5-7.2-6.7-12.4-13.9-12.4l-67.6,0V88.6c0-45.9-37.7-83.6-83.6-83.6%20s-83.6,37.7-83.6,83.6v20.6H98.2c-7.2,0-12.9,5.2-13.9,12.4L45,479.5c-0.5,4.1,1,7.7,3.6,10.8c2.6,3.1,6.2,4.6,10.3,4.6h381.7%20c4.1,0,7.7-1.5,10.3-4.6C453.6,487.3,454.6,483.6,454.1,479.5L454.1,479.5z%20M204.4,88.6c0-25.3,20.6-45.4,45.4-45.4%20c24.8,0,45.4,20.6,45.4,45.4v20.6l-90.8,0L204.4,88.6z%20M249.8,406.3c-57.3,0-104.2-46.4-104.2-104.2c0-57.3,46.4-104.2,104.2-104.2%20c57.3,0,104.2,46.4,104.2,104.2C354,359.3,307.1,406.3,249.8,406.3z'/%3e%3cpath%20class='st0'%20d='M295.2,256.7c-7.2-7.2-19.6-7.2-26.8,0l-18.6,18.6l-18.6-18.6c-7.2-7.2-19.6-7.2-26.8,0%20c-7.2,7.2-7.2,19.6,0,26.8l18.6,18.6l-18.6,18.6c-7.2,7.2-7.2,19.6,0,26.8c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7%20l18.6-18.6l18.6,18.6c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7c7.2-7.2,7.2-19.6,0-26.8l-18.6-18.6l18.6-18.6%20C302.4,276.3,302.4,264.4,295.2,256.7L295.2,256.7z'/%3e%3cg%3e%3cpath%20class='st1'%20d='M361.3,161.1c0-5.9-2.3-11.6-6.5-15.8c-4.2-4.2-9.9-6.5-15.8-6.5s-11.6,2.3-15.8,6.5l-73.5,73.5l-73.5-73.5%20c-4.2-4.1-9.8-6.3-15.7-6.3c-5.9,0.1-11.4,2.4-15.6,6.5c-4.1,4.1-6.5,9.7-6.5,15.6c0,5.8,2.2,11.5,6.3,15.7l73.5,73.5l-73.5,73.5%20c-4.1,4.2-6.3,9.8-6.3,15.7c0.1,5.8,2.4,11.4,6.5,15.6c4.1,4.1,9.7,6.5,15.6,6.5c5.8,0.1,11.5-2.2,15.7-6.3l73.5-73.5l73.5,73.5%20c4.2,4.1,9.8,6.3,15.7,6.3c5.8-0.1,11.4-2.4,15.6-6.5c4.1-4.1,6.5-9.7,6.5-15.6c0-5.8-2.2-11.5-6.3-15.7l-73.5-73.5l73.5-73.5%20C359,172.7,361.3,167.1,361.3,161.1L361.3,161.1z'/%3e%3cpath%20class='st1'%20d='M249.8,5C114.3,5,4.5,114.9,4.5,250.4s109.9,245.4,245.4,245.4s245.4-109.9,245.4-245.4S385.3,5,249.8,5%20L249.8,5z%20M173,64.9c24.4-10.1,50.5-15.3,76.8-15.3c53.2,0,104.3,21.2,142,58.8c37.6,37.6,58.8,88.7,58.8,142s-21.2,104.3-58.8,142%20c-37.6,37.6-88.7,58.8-142,58.8c-26.4,0-52.5-5.2-76.8-15.3c-24.4-10.1-46.5-24.9-65.1-43.5c-18.6-18.6-33.4-40.8-43.5-65.1%20c-10.1-24.4-15.3-50.5-15.3-76.8s5.2-52.5,15.3-76.8c10.1-24.4,24.9-46.5,43.5-65.1S148.6,75,173,64.9L173,64.9z'/%3e%3c/g%3e%3c/svg%3e\"","<script lang=\"ts\">\n import Button from \"../shared/inputs/button/Button.svelte\";\n import ErrorImage from \"../../images/error.svg\";\n\n export let options: {\n title: string;\n description: string;\n image?: string;\n shouldRenderBackButton?: boolean;\n onCloseClick: () => void;\n secondaryAction?: { link: string; text: string, openInNewTab?: boolean };\n primaryActionText?: string;\n openPaymentFunction?: (...args: unknown[]) => unknown;\n };\n\n let {\n title,\n description,\n image,\n shouldRenderBackButton,\n onCloseClick,\n primaryActionText,\n openPaymentFunction,\n secondaryAction,\n } = options;\n</script>\n\n<div class=\"crtw-flex crtw-flex-col crtw-justify-center crtw-items-center\">\n <div class=\"crtw-mb-6\">\n {#if image}\n <img class=\"crtw-w-[90px]\" src={image} alt=\"error\" />\n {:else}\n <img src={ErrorImage} alt=\"error\" />\n {/if}\n </div>\n\n <div class=\"crtw-text-2xl crtw-uppercase crtw-text-black crtw-font-bold\">\n {title}\n </div>\n\n <div class=\"crtw-text-base crtw-text-black crtw-text-center crtw-mb-9\">\n {description}\n </div>\n\n {#if shouldRenderBackButton !== false}\n <Button text=\"Back to site\" onClick={onCloseClick} />\n {/if}\n</div>\n\n{#if primaryActionText && openPaymentFunction}\n <Button text={primaryActionText} onClick={openPaymentFunction} />\n{/if}\n\n{#if secondaryAction?.text && secondaryAction?.link}\n <a\n href={secondaryAction?.link}\n target={secondaryAction.openInNewTab ? \"_blank\" : \"_self\"}\n class=\"crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-h-[50px] crtw-cursor-pointer\n crtw-border-2 crtw-border-black crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium\"\n >{secondaryAction?.text}\n </a>\n{/if}\n","export default \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23010101;}%20%3c/style%3e%3cpath%20class='st0'%20d='M454.1,479.5l-39.2-358c-0.5-7.2-6.7-12.4-13.9-12.4l-67.6,0V88.6c0-45.9-37.7-83.6-83.6-83.6%20s-83.6,37.7-83.6,83.6v20.6H98.2c-7.2,0-12.9,5.2-13.9,12.4L45,479.5c-0.5,4.1,1,7.7,3.6,10.8c2.6,3.1,6.2,4.6,10.3,4.6h381.7%20c4.1,0,7.7-1.5,10.3-4.6C453.6,487.3,454.6,483.6,454.1,479.5L454.1,479.5z%20M204.4,88.6c0-25.3,20.6-45.4,45.4-45.4%20c24.8,0,45.4,20.6,45.4,45.4v20.6l-90.8,0L204.4,88.6z%20M249.8,406.3c-57.3,0-104.2-46.4-104.2-104.2c0-57.3,46.4-104.2,104.2-104.2%20c57.3,0,104.2,46.4,104.2,104.2C354,359.3,307.1,406.3,249.8,406.3z'/%3e%3cpath%20class='st0'%20d='M295.2,256.7c-7.2-7.2-19.6-7.2-26.8,0l-18.6,18.6l-18.6-18.6c-7.2-7.2-19.6-7.2-26.8,0%20c-7.2,7.2-7.2,19.6,0,26.8l18.6,18.6l-18.6,18.6c-7.2,7.2-7.2,19.6,0,26.8c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7%20l18.6-18.6l18.6,18.6c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7c7.2-7.2,7.2-19.6,0-26.8l-18.6-18.6l18.6-18.6%20C302.4,276.3,302.4,264.4,295.2,256.7L295.2,256.7z'/%3e%3c/svg%3e\"","import SoldOut from '@images/sold_out.svg'\n\nexport const ERRORS = {\n titles: {\n DEFAULT_ERROR_TITLE: 'Something went wrong',\n TRANSACTION_REVERTED_TITLE: 'The transaction is reverted',\n SOLD_OUT_ERROR_TITLE: 'Sold out',\n INVALID_TOKEN_ERROR_TITLE: 'Invalid token ID',\n NO_NATIVE_TOKENS: 'Too low native balance',\n },\n desctiptions: {\n DEFAULT_ERROR_DESC: 'An unexpected error occured and we are unable to complete your order.',\n SOLD_OUT_ERROR_DESC:\n 'We are unable to complete your order as the item that you are trying to add is currently sold out.',\n INVALID_TOKEN_ERROR_DESC: 'There is no token associated with provided ID.',\n HAS_MEMBERSHIP_ALREADY_ERROR_DESC: 'This membership is already assosiated with your account.',\n NO_NATIVE_TOKENS_DESC: 'There are no native tokens found to pay for the transaction.',\n },\n}\n\nexport const handleErrorData = (message: string) => {\n let res = {}\n if (message.includes('SOLD_OUT') || message.includes('Sold out'))\n res = {\n title: ERRORS.titles.SOLD_OUT_ERROR_TITLE,\n description: ERRORS.desctiptions.SOLD_OUT_ERROR_DESC,\n image: SoldOut,\n }\n if (message.includes('invalid token ID'))\n res = {\n title: ERRORS.titles.INVALID_TOKEN_ERROR_TITLE,\n description: ERRORS.desctiptions.INVALID_TOKEN_ERROR_DESC,\n }\n\n if (message.includes('ALREADY_HAS_MEMBERSHIP')) {\n res = {\n title: ERRORS.titles.TRANSACTION_REVERTED_TITLE,\n description: ERRORS.desctiptions.HAS_MEMBERSHIP_ALREADY_ERROR_DESC,\n }\n }\n\n if (message.includes('No valid gas coins found')) {\n res = {\n title: ERRORS.titles.NO_NATIVE_TOKENS,\n description: ERRORS.desctiptions.NO_NATIVE_TOKENS_DESC,\n }\n }\n\n return res\n}\n","<script lang=\"ts\">\n import { onDestroy } from 'svelte'\n import { get } from 'svelte/store'\n import { pageOptsStore, fn } from '@packages/stores'\n import { Error } from '@packages/ui'\n\n import { ERRORS, handleErrorData } from './error.helper'\n\n const handleCloseClick = () => get(fn).close()\n\n let errorData: {\n errorMessage?: string\n image?: string\n description?: string\n title?: string\n shouldRenderBackButton?: boolean\n }\n const unsub = pageOptsStore.subscribe((data) => {\n if (data.errorMessage) errorData = handleErrorData(data.errorMessage)\n else if (data.title && data.description) errorData = data\n })\n\n onDestroy(unsub)\n</script>\n\n<Error\n options={{\n title: errorData?.title || ERRORS.titles.DEFAULT_ERROR_TITLE,\n description: errorData?.description || ERRORS.desctiptions.DEFAULT_ERROR_DESC,\n image: errorData?.image,\n shouldRenderBackButton: errorData?.shouldRenderBackButton,\n onCloseClick: handleCloseClick,\n }}\n/>\n"],"names":["ErrorImage","options","$.prop","$$props","title","description","image","shouldRenderBackButton","onCloseClick","primaryActionText","openPaymentFunction","secondaryAction","$$render","consequent","alternate","consequent_1","consequent_2","$.set_attribute","a","$.untrack","$.set_text","text_2","SoldOut","ERRORS","handleErrorData","message","res","handleCloseClick","get","fn","errorData","$.mutable_source","unsub","pageOptsStore","data","$.set","onDestroy","$.get"],"mappings":";;;;AAAA,MAAeA,KAAA;;;;;;MCIFC,IASVC,EAAAC,GAAA,WAAA,EAAA;IAGC,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,OAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,iBAAAC;AAAA,MACEV,EAAO;;;;;0BAMyBK,CAAK,CAAA;;;0BAE3BN,EAAU,CAAA;;;MAHjBM,IAAKM,EAAA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rCC,IAAA;AAAA,IACJ,OAAOH,EAAO,OAAO;AAAA,IACrB,aAAaA,EAAO,aAAa;AAAA,EACnC,IAGEE,EAAQ,SAAS,0BAA0B,MACvCC,IAAA;AAAA,IACJ,OAAOH,EAAO,OAAO;AAAA,IACrB,aAAaA,EAAO,aAAa;AAAA,EACnC,IAGKG;AACT;;;;ACzCQ,QAAAC,IAAyB,MAAAC,GAAIC,EAAE,EAAE,MAAK;MAExCC,IAMHC,GAAA;AACK,QAAAC,IAAQC,GAAc,UAAS,CAAEC,MAAQ;IACzCA,EAAK,eAAcC,EAAAL,GAAYN,GAAgBU,EAAK,YAAY,KAC3DA,EAAK,SAASA,EAAK,eAAWC,EAAEL,GAAYI,CAAI;AAAA,GAC1D;AAED,EAAAE,EAAUJ,CAAK;;;;MAKb,SAAKK,IAAAA,EAAEP,CAAS,MAAXO,gBAAAA,EAAa,UAASd,EAAO,OAAO;AAAA,MACzC,eAAWc,IAAAA,EAAEP,CAAS,MAAXO,gBAAAA,EAAa,gBAAed,EAAO,aAAa;AAAA,MAC3D,QAAKc,IAAAA,EAAEP,CAAS,MAAXO,gBAAAA,EAAa;AAAA,MAClB,yBAAsBA,IAAAA,EAAEP,CAAS,MAAXO,gBAAAA,EAAa;AAAA,MACnC,cAAcV;AAAA;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"Error-DcbLpmXf.js","sources":["../../ui/images/error.svg","../../ui/main/error/Error.svelte","../src/app/images/sold_out.svg","../src/app/pages/error/error.helper.ts","../src/app/pages/error/Error.svelte"],"sourcesContent":["export default \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{display:none;fill:%23010101;}%20.st1{fill:%23010101;}%20%3c/style%3e%3cpath%20class='st0'%20d='M454.1,479.5l-39.2-358c-0.5-7.2-6.7-12.4-13.9-12.4l-67.6,0V88.6c0-45.9-37.7-83.6-83.6-83.6%20s-83.6,37.7-83.6,83.6v20.6H98.2c-7.2,0-12.9,5.2-13.9,12.4L45,479.5c-0.5,4.1,1,7.7,3.6,10.8c2.6,3.1,6.2,4.6,10.3,4.6h381.7%20c4.1,0,7.7-1.5,10.3-4.6C453.6,487.3,454.6,483.6,454.1,479.5L454.1,479.5z%20M204.4,88.6c0-25.3,20.6-45.4,45.4-45.4%20c24.8,0,45.4,20.6,45.4,45.4v20.6l-90.8,0L204.4,88.6z%20M249.8,406.3c-57.3,0-104.2-46.4-104.2-104.2c0-57.3,46.4-104.2,104.2-104.2%20c57.3,0,104.2,46.4,104.2,104.2C354,359.3,307.1,406.3,249.8,406.3z'/%3e%3cpath%20class='st0'%20d='M295.2,256.7c-7.2-7.2-19.6-7.2-26.8,0l-18.6,18.6l-18.6-18.6c-7.2-7.2-19.6-7.2-26.8,0%20c-7.2,7.2-7.2,19.6,0,26.8l18.6,18.6l-18.6,18.6c-7.2,7.2-7.2,19.6,0,26.8c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7%20l18.6-18.6l18.6,18.6c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7c7.2-7.2,7.2-19.6,0-26.8l-18.6-18.6l18.6-18.6%20C302.4,276.3,302.4,264.4,295.2,256.7L295.2,256.7z'/%3e%3cg%3e%3cpath%20class='st1'%20d='M361.3,161.1c0-5.9-2.3-11.6-6.5-15.8c-4.2-4.2-9.9-6.5-15.8-6.5s-11.6,2.3-15.8,6.5l-73.5,73.5l-73.5-73.5%20c-4.2-4.1-9.8-6.3-15.7-6.3c-5.9,0.1-11.4,2.4-15.6,6.5c-4.1,4.1-6.5,9.7-6.5,15.6c0,5.8,2.2,11.5,6.3,15.7l73.5,73.5l-73.5,73.5%20c-4.1,4.2-6.3,9.8-6.3,15.7c0.1,5.8,2.4,11.4,6.5,15.6c4.1,4.1,9.7,6.5,15.6,6.5c5.8,0.1,11.5-2.2,15.7-6.3l73.5-73.5l73.5,73.5%20c4.2,4.1,9.8,6.3,15.7,6.3c5.8-0.1,11.4-2.4,15.6-6.5c4.1-4.1,6.5-9.7,6.5-15.6c0-5.8-2.2-11.5-6.3-15.7l-73.5-73.5l73.5-73.5%20C359,172.7,361.3,167.1,361.3,161.1L361.3,161.1z'/%3e%3cpath%20class='st1'%20d='M249.8,5C114.3,5,4.5,114.9,4.5,250.4s109.9,245.4,245.4,245.4s245.4-109.9,245.4-245.4S385.3,5,249.8,5%20L249.8,5z%20M173,64.9c24.4-10.1,50.5-15.3,76.8-15.3c53.2,0,104.3,21.2,142,58.8c37.6,37.6,58.8,88.7,58.8,142s-21.2,104.3-58.8,142%20c-37.6,37.6-88.7,58.8-142,58.8c-26.4,0-52.5-5.2-76.8-15.3c-24.4-10.1-46.5-24.9-65.1-43.5c-18.6-18.6-33.4-40.8-43.5-65.1%20c-10.1-24.4-15.3-50.5-15.3-76.8s5.2-52.5,15.3-76.8c10.1-24.4,24.9-46.5,43.5-65.1S148.6,75,173,64.9L173,64.9z'/%3e%3c/g%3e%3c/svg%3e\"","<script lang=\"ts\">\n import Button from \"../shared/inputs/button/Button.svelte\";\n import ErrorImage from \"../../images/error.svg\";\n\n export let options: {\n title: string;\n description: string;\n image?: string;\n shouldRenderBackButton?: boolean;\n onCloseClick: () => void;\n secondaryAction?: { link: string; text: string, openInNewTab?: boolean };\n primaryActionText?: string;\n openPaymentFunction?: (...args: unknown[]) => unknown;\n };\n\n let {\n title,\n description,\n image,\n shouldRenderBackButton,\n onCloseClick,\n primaryActionText,\n openPaymentFunction,\n secondaryAction,\n } = options;\n</script>\n\n<div class=\"crtw-flex crtw-flex-col crtw-justify-center crtw-items-center\">\n <div class=\"crtw-mb-6\">\n {#if image}\n <img class=\"crtw-w-[90px]\" src={image} alt=\"error\" />\n {:else}\n <img src={ErrorImage} alt=\"error\" />\n {/if}\n </div>\n\n <div class=\"crtw-text-2xl crtw-uppercase crtw-text-black crtw-font-bold\">\n {title}\n </div>\n\n <div class=\"crtw-text-base crtw-text-black crtw-text-center crtw-mb-9\">\n {description}\n </div>\n\n {#if shouldRenderBackButton !== false}\n <Button text=\"Back to site\" onClick={onCloseClick} />\n {/if}\n</div>\n\n{#if primaryActionText && openPaymentFunction}\n <Button text={primaryActionText} onClick={openPaymentFunction} />\n{/if}\n\n{#if secondaryAction?.text && secondaryAction?.link}\n <a\n href={secondaryAction?.link}\n target={secondaryAction.openInNewTab ? \"_blank\" : \"_self\"}\n class=\"crtw-flex crtw-justify-center crtw-items-center crtw-w-full crtw-h-[50px] crtw-cursor-pointer\n crtw-border-2 crtw-border-black crtw-rounded crtw-font-['Poppins'] crtw-text-base crtw-font-medium\"\n >{secondaryAction?.text}\n </a>\n{/if}\n","export default \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2027.3.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20500%20500'%20style='enable-background:new%200%200%20500%20500;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23010101;}%20%3c/style%3e%3cpath%20class='st0'%20d='M454.1,479.5l-39.2-358c-0.5-7.2-6.7-12.4-13.9-12.4l-67.6,0V88.6c0-45.9-37.7-83.6-83.6-83.6%20s-83.6,37.7-83.6,83.6v20.6H98.2c-7.2,0-12.9,5.2-13.9,12.4L45,479.5c-0.5,4.1,1,7.7,3.6,10.8c2.6,3.1,6.2,4.6,10.3,4.6h381.7%20c4.1,0,7.7-1.5,10.3-4.6C453.6,487.3,454.6,483.6,454.1,479.5L454.1,479.5z%20M204.4,88.6c0-25.3,20.6-45.4,45.4-45.4%20c24.8,0,45.4,20.6,45.4,45.4v20.6l-90.8,0L204.4,88.6z%20M249.8,406.3c-57.3,0-104.2-46.4-104.2-104.2c0-57.3,46.4-104.2,104.2-104.2%20c57.3,0,104.2,46.4,104.2,104.2C354,359.3,307.1,406.3,249.8,406.3z'/%3e%3cpath%20class='st0'%20d='M295.2,256.7c-7.2-7.2-19.6-7.2-26.8,0l-18.6,18.6l-18.6-18.6c-7.2-7.2-19.6-7.2-26.8,0%20c-7.2,7.2-7.2,19.6,0,26.8l18.6,18.6l-18.6,18.6c-7.2,7.2-7.2,19.6,0,26.8c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7%20l18.6-18.6l18.6,18.6c3.6,3.6,8.8,5.7,13.4,5.7c4.6,0,9.8-2.1,13.4-5.7c7.2-7.2,7.2-19.6,0-26.8l-18.6-18.6l18.6-18.6%20C302.4,276.3,302.4,264.4,295.2,256.7L295.2,256.7z'/%3e%3c/svg%3e\"","import SoldOut from '@images/sold_out.svg'\n\nexport const ERRORS = {\n titles: {\n DEFAULT_ERROR_TITLE: 'Something went wrong',\n TRANSACTION_REVERTED_TITLE: 'The transaction is reverted',\n SOLD_OUT_ERROR_TITLE: 'Sold out',\n INVALID_TOKEN_ERROR_TITLE: 'Invalid token ID',\n NO_NATIVE_TOKENS: 'Too low native balance',\n },\n desctiptions: {\n DEFAULT_ERROR_DESC: 'An unexpected error occured and we are unable to complete your order.',\n SOLD_OUT_ERROR_DESC:\n 'We are unable to complete your order as the item that you are trying to add is currently sold out.',\n INVALID_TOKEN_ERROR_DESC: 'There is no token associated with provided ID.',\n HAS_MEMBERSHIP_ALREADY_ERROR_DESC: 'This membership is already assosiated with your account.',\n NO_NATIVE_TOKENS_DESC: 'There are no native tokens found to pay for the transaction.',\n },\n}\n\nexport const handleErrorData = (message: string) => {\n let res = {}\n if (message.includes('SOLD_OUT') || message.includes('Sold out'))\n res = {\n title: ERRORS.titles.SOLD_OUT_ERROR_TITLE,\n description: ERRORS.desctiptions.SOLD_OUT_ERROR_DESC,\n image: SoldOut,\n }\n if (message.includes('invalid token ID'))\n res = {\n title: ERRORS.titles.INVALID_TOKEN_ERROR_TITLE,\n description: ERRORS.desctiptions.INVALID_TOKEN_ERROR_DESC,\n }\n\n if (message.includes('ALREADY_HAS_MEMBERSHIP')) {\n res = {\n title: ERRORS.titles.TRANSACTION_REVERTED_TITLE,\n description: ERRORS.desctiptions.HAS_MEMBERSHIP_ALREADY_ERROR_DESC,\n }\n }\n\n if (message.includes('No valid gas coins found')) {\n res = {\n title: ERRORS.titles.NO_NATIVE_TOKENS,\n description: ERRORS.desctiptions.NO_NATIVE_TOKENS_DESC,\n }\n }\n\n return res\n}\n","<script lang=\"ts\">\n import { onDestroy } from 'svelte'\n import { get } from 'svelte/store'\n import { pageOptsStore, fn } from '@packages/stores'\n import { Error } from '@packages/ui'\n\n import { ERRORS, handleErrorData } from './error.helper'\n\n const handleCloseClick = () => get(fn).close()\n\n let errorData: {\n errorMessage?: string\n image?: string\n description?: string\n title?: string\n shouldRenderBackButton?: boolean\n }\n const unsub = pageOptsStore.subscribe((data) => {\n if (data.errorMessage) errorData = handleErrorData(data.errorMessage)\n else if (data.title && data.description) errorData = data\n })\n\n onDestroy(unsub)\n</script>\n\n<Error\n options={{\n title: errorData?.title || ERRORS.titles.DEFAULT_ERROR_TITLE,\n description: errorData?.description || ERRORS.desctiptions.DEFAULT_ERROR_DESC,\n image: errorData?.image,\n shouldRenderBackButton: errorData?.shouldRenderBackButton,\n onCloseClick: handleCloseClick,\n }}\n/>\n"],"names":["ErrorImage","options","$.prop","$$props","title","description","image","shouldRenderBackButton","onCloseClick","primaryActionText","openPaymentFunction","secondaryAction","$$render","consequent","alternate","consequent_1","consequent_2","$.set_attribute","a","$.untrack","$.set_text","text_2","SoldOut","ERRORS","handleErrorData","message","res","handleCloseClick","get","fn","errorData","$.mutable_source","unsub","pageOptsStore","data","$.set","onDestroy","$.get"],"mappings":";;;;AAAA,MAAeA,KAAA;;;;;;MCIFC,IASVC,EAAAC,GAAA,WAAA,EAAA;IAGC,OAAAC;AAAA,IACA,aAAAC;AAAA,IACA,OAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,iBAAAC;AAAA,MACEV,EAAO;;;;;0BAMyBK,CAAK,CAAA;;;0BAE3BN,EAAU,CAAA;;;MAHjBM,IAAKM,EAAAC,CAAA,IAAAD,EAAAE,GAAA,EAAA;AAAA;;;;;;;;;;;;;iBAgB2BN;AAAA;;;;AADlC,MAAAD,MAA2B,MAAKK,EAAAG,CAAA;AAAA;;;;;;;;iBAMvBN;AAAA;;iBAA4BC;AAAA;;;;AADvC,MAAAD,KAAqBC,KAAmBE,EAAAI,CAAA;AAAA;;;;;;;AAMnCC,QAAAA,EAAAC,GAAA,QAAAC,EAAA,MAAAR,KAAA,gBAAAA,EAAiB,IAAI,CAAA,kBACnBQ,EAAA,MAAAR,EAAgB,eAAe,WAAW,OAAO,IAGvDS,EAAAC,GAAAF,EAAA,MAAAR,KAAA,gBAAAA,EAAiB,IAAI,CAAA;AAAA;;;MANtBQ,EAAA,OAAAR,KAAA,gBAAAA,EAAiB,UAAQA,KAAA,gBAAAA,EAAiB,KAAI;;;;SAhB9CP,CAAK,QAILC,CAAW;AAAA;;;;;;;;;;;ACzChB,MAAeiB,KAAA,+8CCEFC,IAAS;AAAA,EACpB,QAAQ;AAAA,IACN,qBAAqB;AAAA,IACrB,4BAA4B;AAAA,IAC5B,sBAAsB;AAAA,IACtB,2BAA2B;AAAA,IAC3B,kBAAkB;AAAA,EACpB;AAAA,EACA,cAAc;AAAA,IACZ,oBAAoB;AAAA,IACpB,qBACE;AAA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AAAA;;;;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as w, l as c, m as b, p as o, f, v, x as h, C as _, b as m, d as g, u as x } from "./legacy-
|
|
2
|
-
import { v as y, z as P, u as i } from "./index-
|
|
3
|
-
import { b as z } from "./input-
|
|
1
|
+
import { c as w, l as c, m as b, p as o, f, v, x as h, C as _, b as m, d as g, u as x } from "./legacy-YR9wiUnf.js";
|
|
2
|
+
import { v as y, z as P, u as i } from "./index-Cpr_yChD.js";
|
|
3
|
+
import { b as z } from "./input-BJ8poX2h.js";
|
|
4
4
|
var V = f("<input/>");
|
|
5
5
|
const C = {
|
|
6
6
|
hash: "svelte-9zbwls",
|
|
@@ -59,4 +59,4 @@ function k(a, t) {
|
|
|
59
59
|
export {
|
|
60
60
|
k as I
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=Input-
|
|
62
|
+
//# sourceMappingURL=Input-BHT27RVM.js.map
|