@everymatrix/general-player-forgot-password-form-nd 1.85.5 → 1.85.6
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/components/{GeneralPlayerForgotPasswordFormNd-fV-zedcH.js → GeneralPlayerForgotPasswordFormNd-CxWaMZ-H.js} +1 -1
- package/components/{GeneralPlayerForgotPasswordFormNd-BUHmQ4bm.cjs → GeneralPlayerForgotPasswordFormNd-DKhLI8CP.cjs} +1 -1
- package/components/{GeneralPlayerForgotPasswordFormNd-DmF1pc4p.js → GeneralPlayerForgotPasswordFormNd-DSdVVjUO.js} +1 -1
- package/components/{GeneralPlayerForgotPasswordSmsForm-Dv9H1vME.js → GeneralPlayerForgotPasswordSmsForm-BHCK5b0Y.js} +314 -307
- package/components/{GeneralPlayerForgotPasswordSmsForm-Dcjz0B3u.js → GeneralPlayerForgotPasswordSmsForm-C94Fg4vY.js} +322 -315
- package/components/{GeneralPlayerForgotPasswordSmsForm-DBjwfb5b.cjs → GeneralPlayerForgotPasswordSmsForm-DUo-Gv6e.cjs} +3 -3
- package/es2015/general-player-forgot-password-form-nd.cjs +1 -1
- package/es2015/general-player-forgot-password-form-nd.js +1 -1
- package/esnext/general-player-forgot-password-form-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
var ce = (t, e, o) => new Promise((i, a) => {
|
|
2
2
|
var s = (p) => {
|
|
3
3
|
try {
|
|
4
|
-
|
|
4
|
+
m(o.next(p));
|
|
5
5
|
} catch (g) {
|
|
6
6
|
a(g);
|
|
7
7
|
}
|
|
8
8
|
}, d = (p) => {
|
|
9
9
|
try {
|
|
10
|
-
|
|
10
|
+
m(o.throw(p));
|
|
11
11
|
} catch (g) {
|
|
12
12
|
a(g);
|
|
13
13
|
}
|
|
14
|
-
},
|
|
15
|
-
|
|
14
|
+
}, m = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(s, d);
|
|
15
|
+
m((o = o.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { i as
|
|
18
|
-
function
|
|
17
|
+
import { i as bt, s as gt, $ as Ee, a as vt, b as ht, S as Pt, c as yt, d as kt, f as re, e as Rt, g as J, t as ye, h as se, j as Ce, k as Q, l as w, m as St, o as Ct, n as _t, p as pe, q as ke, r as zt, u as n, v as F, w as l, x as we, y as C, z as q, A as qe, B as je, C as Le, D as xe, E as _e, F as Ue, G as Lt, H as he, I as xt, J as Tt, K as Mt, L as Et, M as jt } from "./GeneralPlayerForgotPasswordFormNd-DSdVVjUO.js";
|
|
18
|
+
function It(t) {
|
|
19
19
|
return t < 0.5 ? 4 * t * t * t : 0.5 * Math.pow(2 * t - 2, 3) + 1;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Nt(t) {
|
|
22
22
|
const e = t - 1;
|
|
23
23
|
return e * e * e + 1;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Me(t) {
|
|
26
26
|
return --t * t * t * t * t + 1;
|
|
27
27
|
}
|
|
28
|
-
function be(t, { delay: e = 0, duration: o = 400, easing: i =
|
|
29
|
-
const d = getComputedStyle(t),
|
|
28
|
+
function be(t, { delay: e = 0, duration: o = 400, easing: i = It, amount: a = 5, opacity: s = 0 } = {}) {
|
|
29
|
+
const d = getComputedStyle(t), m = +d.opacity, p = d.filter === "none" ? "" : d.filter, g = m * (1 - s), [f, h] = gt(a);
|
|
30
30
|
return {
|
|
31
31
|
delay: e,
|
|
32
32
|
duration: o,
|
|
33
33
|
easing: i,
|
|
34
|
-
css: (_, L) => `opacity: ${
|
|
34
|
+
css: (_, L) => `opacity: ${m - g * L}; filter: ${p} blur(${L * f}${h});`
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ae(t, { delay: e = 0, duration: o = 400, easing: i = bt } = {}) {
|
|
38
38
|
const a = +getComputedStyle(t).opacity;
|
|
39
39
|
return {
|
|
40
40
|
delay: e,
|
|
@@ -43,30 +43,30 @@ function Ue(t, { delay: e = 0, duration: o = 400, easing: i = wt } = {}) {
|
|
|
43
43
|
css: (s) => `opacity: ${s * a}`
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const d = getComputedStyle(t),
|
|
46
|
+
function Fe(t, { delay: e = 0, duration: o = 400, easing: i = Nt, start: a = 0, opacity: s = 0 } = {}) {
|
|
47
|
+
const d = getComputedStyle(t), m = +d.opacity, p = d.transform === "none" ? "" : d.transform, g = 1 - a, f = m * (1 - s);
|
|
48
48
|
return {
|
|
49
49
|
delay: e,
|
|
50
50
|
duration: o,
|
|
51
51
|
easing: i,
|
|
52
52
|
css: (h, _) => `
|
|
53
53
|
transform: ${p} scale(${1 - g * _});
|
|
54
|
-
opacity: ${
|
|
54
|
+
opacity: ${m - f * _}
|
|
55
55
|
`
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
60
|
-
o == null && (
|
|
58
|
+
function qt({ withLocale: t, translations: e }) {
|
|
59
|
+
Ee.subscribe((o) => {
|
|
60
|
+
o == null && (vt.set(e), Ee.set(t));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function Ve(t, e) {
|
|
64
|
+
ht(t, e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
|
|
66
|
+
function Ut(t) {
|
|
67
|
+
Ee.set(t);
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const De = {
|
|
70
70
|
en: {
|
|
71
71
|
resetTitle: "Reset your password",
|
|
72
72
|
resetSubtitle: "Follow the steps below to securely reset your password.",
|
|
@@ -473,94 +473,94 @@ const Ve = {
|
|
|
473
473
|
couldNotUpdatePassword: "Could not update password. Please try again."
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
class
|
|
476
|
+
class He extends Error {
|
|
477
477
|
constructor(e, o, i) {
|
|
478
478
|
super(o), this.status = e, this.payload = i;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Ie(t) {
|
|
482
482
|
return `reset_attempts_${t}`;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Ke(t, e) {
|
|
485
485
|
try {
|
|
486
|
-
localStorage.setItem(
|
|
486
|
+
localStorage.setItem(Ie(t), String(e));
|
|
487
487
|
} catch (o) {
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function At(t) {
|
|
491
491
|
try {
|
|
492
|
-
const e = localStorage.getItem(
|
|
492
|
+
const e = localStorage.getItem(Ie(t));
|
|
493
493
|
return e != null ? Math.max(0, parseInt(e, 10)) : null;
|
|
494
494
|
} catch (e) {
|
|
495
495
|
return null;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Ft(t) {
|
|
499
499
|
try {
|
|
500
|
-
localStorage.removeItem(
|
|
500
|
+
localStorage.removeItem(Ie(t));
|
|
501
501
|
} catch (e) {
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
|
|
504
|
+
function Vt(t) {
|
|
505
|
+
Rt(t, "svelte-1nua6jd", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.ResetPwdOverlay{position:fixed;inset:0;background:rgba(17, 24, 39, 0.6);display:grid;place-items:center;z-index:100}.ResetPwdCard{position:relative;width:min(92vw, 520px);background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8));color:var(--emw--color-typography-contrast);border-radius:var(--emw--border-radius-large, 16px);padding:20px;box-shadow:0 10px 30px rgba(0, 0, 0, 0.2)}.ResetPwdClose{position:absolute;top:10px;right:10px;width:20px;height:20px;border:none;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;transition:background 120ms ease-in-out, filter 120ms ease-in-out}.ResetPwdClose:hover{background:rgba(0, 0, 0, 0.04);filter:brightness(1.02)}.ResetPwdClose:active{filter:brightness(0.98)}.ResetPwdTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semi-bold, 600);padding:0;margin:0 0 10px 0}.ResetPwdSub{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-weight:var(--emw--font-weight-light, 300);font-size:var(--emw--font-size-medium, 16px);padding:0;margin-bottom:10px}.ResetPwdStepTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-medium, 1rem);font-weight:var(--emw--font-weight-semi-bold, 700);padding:0;margin:0 0 5px 0}.ResetPwdHelp{font-size:var(--emw--font-size-medium, 14px);color:#4b5563;margin-bottom:20px}.ResetPwdRow{display:flex;gap:12px;align-items:flex-end;margin-bottom:8px;flex-wrap:wrap}.ResetPwdField{display:flex;flex-direction:column;min-width:0;position:relative}.ResetPwdFieldPrefix{flex:0 1 100px}.ResetPwdFieldPhone{flex:1 1 160px}vaadin-combo-box{width:100%;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-small, 6px);font-size:var(--emw--font-size-medium, 16px);background:transparent;color:inherit}vaadin-combo-box input{width:100%;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}vaadin-combo-box-overlay{z-index:101}.ResetPwdFieldCode{flex:1 1 100%}.ResetPwdFieldMeta{flex:1 1 auto;min-width:200px}.ResetPwdMetaRow{display:flex;gap:12px;justify-content:space-between;margin-bottom:4px;flex-wrap:wrap}.ResetPwdMeta{font-size:var(--emw--font-size-xtra-small, 10px);color:#4b5563}.ResetPwdLabel{display:block;font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPwdInput{width:100%;background:transparent;color:inherit;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:6px 12px;box-sizing:border-box;font-size:var(--emw--font-size-medium, 14px);line-height:18px}.ResetPwdInput::placeholder{color:#4b5563}.ResetPwdInput:focus{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPwdInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdCodeGroup{display:flex;gap:12px}.ResetPwdCodeInput{width:32px;height:32px;text-align:center;font-size:var(--emw--font-size-medium, 16px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-medium, 10px);background:transparent;color:inherit}.ResetPwdCodeInput:focus{outline:none;border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));box-shadow:0 0 0 2px rgba(17, 24, 39, 0.08)}.ResetPwdCodeInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdErrors{margin-top:8px;margin-bottom:8px}.ResetPwdError{color:var(--emw--color-error, #b91c1c);font-size:var(--emw--font-size-xtra-small, 9px)}.ResetPwdError+.ResetPwdError{margin-top:4px}.ResetPwdHint{color:#92400e;background:#fef3c7;border:1px solid #fde68a;padding:8px 12px;border-radius:var(--emw--border-radius-medium, 10px);font-size:var(--emw--font-size-xtra-small, 9px);margin-top:4px}.ResetPwdButton{width:100%;margin-top:20px;font-family:var(--emw--button-typography, inherit);background:var(--emw--color-primary, #000000);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));border:none;border-radius:var(--emw--button-border-radius, 6px);padding:10px;font-size:var(--emw--font-size-small, 14px);cursor:pointer;transition:filter 120ms ease-in-out}.ResetPwdButton:hover{filter:brightness(1.02)}.ResetPwdButton:active{filter:brightness(0.98)}.ResetPwdButton:disabled{opacity:0.6;cursor:not-allowed}.ResetPwdLink{color:var(--emw--color-typography-contrast);cursor:pointer;background:transparent;text-decoration:underline;border:none;padding:8px 0;font-size:var(--emw--font-size-xtra-small, 10px)}.ResetPwdLink[disabled],.ResetPwdLink[aria-disabled=true]{opacity:0.6;cursor:not-allowed;text-decoration:none}@media(min-width: 768px){.ResetPwdFieldPrefix{flex:0 1 140px}.ResetPwdFieldPhone{flex:1 1 200px}.ResetPwdCodeInput{width:48px;height:48px}}@media(prefers-reduced-motion: reduce){.ResetPwdOverlay,.ResetPwdCard{transition:none !important;animation:none !important}}");
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function Oe(t, e, o) {
|
|
508
508
|
const i = t.slice();
|
|
509
|
-
return i[
|
|
509
|
+
return i[72] = e[o], i[73] = e, i[74] = o, i;
|
|
510
510
|
}
|
|
511
|
-
function
|
|
512
|
-
let e, o, i, a, s, d,
|
|
511
|
+
function We(t) {
|
|
512
|
+
let e, o, i, a, s, d, m, p, g = (
|
|
513
513
|
/*$_*/
|
|
514
514
|
t[10]("resetTitle") + ""
|
|
515
|
-
),
|
|
515
|
+
), f, h, _, L = (
|
|
516
516
|
/*$_*/
|
|
517
517
|
t[10]("resetSubtitle") + ""
|
|
518
|
-
),
|
|
518
|
+
), B, Y, D, X, x, R, N, E, G, P = (
|
|
519
519
|
/*step*/
|
|
520
|
-
t[2] === "phone" &&
|
|
520
|
+
t[2] === "phone" && Be(t)
|
|
521
521
|
), v = (
|
|
522
522
|
/*step*/
|
|
523
|
-
t[2] === "code" &&
|
|
523
|
+
t[2] === "code" && Ze(t)
|
|
524
524
|
);
|
|
525
525
|
return {
|
|
526
526
|
c() {
|
|
527
|
-
e = w("div"), o = w("div"), i = w("button"), a = C("×"),
|
|
527
|
+
e = w("div"), o = w("div"), i = w("button"), a = C("×"), m = q(), p = w("h2"), f = C(g), h = q(), _ = w("p"), B = C(L), Y = q(), P && P.c(), D = q(), v && v.c(), n(i, "class", "ResetPwdClose"), n(i, "type", "button"), n(i, "aria-label", s = /*$_*/
|
|
528
528
|
t[10]("close")), n(i, "title", d = /*$_*/
|
|
529
529
|
t[10]("close")), n(p, "id", "ResetPwdTitle"), n(p, "class", "ResetPwdTitle"), n(_, "class", "ResetPwdSub"), n(o, "class", "ResetPwdCard"), n(e, "class", "ResetPwdOverlay"), n(e, "role", "dialog"), n(e, "aria-modal", "true"), n(e, "aria-labelledby", "ResetPwdTitle");
|
|
530
530
|
},
|
|
531
|
-
m(k,
|
|
532
|
-
Q(k, e,
|
|
531
|
+
m(k, V) {
|
|
532
|
+
Q(k, e, V), l(e, o), l(o, i), l(i, a), l(o, m), l(o, p), l(p, f), l(o, h), l(o, _), l(_, B), l(o, Y), P && P.m(o, null), l(o, D), v && v.m(o, null), N = !0, E || (G = we(
|
|
533
533
|
i,
|
|
534
534
|
"click",
|
|
535
535
|
/*closeModal*/
|
|
536
536
|
t[25]
|
|
537
|
-
),
|
|
537
|
+
), E = !0);
|
|
538
538
|
},
|
|
539
|
-
p(k,
|
|
540
|
-
t = k, (!N ||
|
|
539
|
+
p(k, V) {
|
|
540
|
+
t = k, (!N || V[0] & /*$_*/
|
|
541
541
|
1024 && s !== (s = /*$_*/
|
|
542
|
-
t[10]("close"))) && n(i, "aria-label", s), (!N ||
|
|
542
|
+
t[10]("close"))) && n(i, "aria-label", s), (!N || V[0] & /*$_*/
|
|
543
543
|
1024 && d !== (d = /*$_*/
|
|
544
|
-
t[10]("close"))) && n(i, "title", d), (!N ||
|
|
544
|
+
t[10]("close"))) && n(i, "title", d), (!N || V[0] & /*$_*/
|
|
545
545
|
1024) && g !== (g = /*$_*/
|
|
546
|
-
t[10]("resetTitle") + "") &&
|
|
546
|
+
t[10]("resetTitle") + "") && F(f, g), (!N || V[0] & /*$_*/
|
|
547
547
|
1024) && L !== (L = /*$_*/
|
|
548
|
-
t[10]("resetSubtitle") + "") &&
|
|
549
|
-
t[2] === "phone" ? P ? P.p(t,
|
|
550
|
-
t[2] === "code" ? v ? v.p(t,
|
|
548
|
+
t[10]("resetSubtitle") + "") && F(B, L), /*step*/
|
|
549
|
+
t[2] === "phone" ? P ? P.p(t, V) : (P = Be(t), P.c(), P.m(o, D)) : P && (P.d(1), P = null), /*step*/
|
|
550
|
+
t[2] === "code" ? v ? v.p(t, V) : (v = Ze(t), v.c(), v.m(o, null)) : v && (v.d(1), v = null);
|
|
551
551
|
},
|
|
552
552
|
i(k) {
|
|
553
553
|
N || (k && ke(() => {
|
|
554
|
-
N && (x && x.end(1), X =
|
|
554
|
+
N && (x && x.end(1), X = zt(
|
|
555
555
|
o,
|
|
556
|
-
|
|
556
|
+
Fe,
|
|
557
557
|
/*cardIn*/
|
|
558
558
|
t[23]
|
|
559
559
|
), X.start());
|
|
560
560
|
}), k && ke(() => {
|
|
561
561
|
N && (R || (R = pe(
|
|
562
562
|
e,
|
|
563
|
-
|
|
563
|
+
Ae,
|
|
564
564
|
/*overlayFade*/
|
|
565
565
|
t[22],
|
|
566
566
|
!0
|
|
@@ -568,35 +568,35 @@ function Oe(t) {
|
|
|
568
568
|
}), N = !0);
|
|
569
569
|
},
|
|
570
570
|
o(k) {
|
|
571
|
-
X && X.invalidate(), k && (x =
|
|
571
|
+
X && X.invalidate(), k && (x = _t(
|
|
572
572
|
o,
|
|
573
|
-
|
|
573
|
+
Fe,
|
|
574
574
|
/*cardOut*/
|
|
575
575
|
t[24]
|
|
576
576
|
)), k && (R || (R = pe(
|
|
577
577
|
e,
|
|
578
|
-
|
|
578
|
+
Ae,
|
|
579
579
|
/*overlayFade*/
|
|
580
580
|
t[22],
|
|
581
581
|
!1
|
|
582
582
|
)), R.run(0)), N = !1;
|
|
583
583
|
},
|
|
584
584
|
d(k) {
|
|
585
|
-
k && J(e), P && P.d(), v && v.d(), k && x && x.end(), k && R && R.end(),
|
|
585
|
+
k && J(e), P && P.d(), v && v.d(), k && x && x.end(), k && R && R.end(), E = !1, G();
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Be(t) {
|
|
590
590
|
let e, o, i = (
|
|
591
591
|
/*$_*/
|
|
592
592
|
t[10]("enterPhoneHelp") + ""
|
|
593
|
-
), a, s, d,
|
|
593
|
+
), a, s, d, m, p, g = (
|
|
594
594
|
/*$_*/
|
|
595
595
|
t[10]("countryCodeLabel") + ""
|
|
596
|
-
),
|
|
596
|
+
), f, h, _, L, B, Y = (
|
|
597
597
|
/*$_*/
|
|
598
598
|
t[10]("phoneLabel") + ""
|
|
599
|
-
),
|
|
599
|
+
), D, X, x, R, N, E, G, P, v, k = (
|
|
600
600
|
/*loading*/
|
|
601
601
|
(t[11] ? (
|
|
602
602
|
/*$_*/
|
|
@@ -605,42 +605,42 @@ function We(t) {
|
|
|
605
605
|
/*$_*/
|
|
606
606
|
t[10]("requestCode")
|
|
607
607
|
)) + ""
|
|
608
|
-
),
|
|
608
|
+
), V, ae, fe;
|
|
609
609
|
function ge(y, b) {
|
|
610
610
|
return (
|
|
611
611
|
/*phoneprefixeditable*/
|
|
612
|
-
y[0] === "true" ?
|
|
612
|
+
y[0] === "true" ? Ht : Dt
|
|
613
613
|
);
|
|
614
614
|
}
|
|
615
|
-
let te = ge(t),
|
|
615
|
+
let te = ge(t), j = te(t), S = (
|
|
616
616
|
/*phoneError*/
|
|
617
|
-
t[15] &&
|
|
617
|
+
t[15] && Ye(t)
|
|
618
618
|
), T = (
|
|
619
619
|
/*phoneInfo*/
|
|
620
|
-
t[16] &&
|
|
620
|
+
t[16] && Ge(t)
|
|
621
621
|
);
|
|
622
622
|
return {
|
|
623
623
|
c() {
|
|
624
|
-
e = w("section"), o = w("p"), a = C(i), s = q(), d = w("div"),
|
|
625
|
-
|
|
624
|
+
e = w("section"), o = w("p"), a = C(i), s = q(), d = w("div"), m = w("div"), p = w("label"), f = C(g), h = q(), j.c(), _ = q(), L = w("div"), B = w("label"), D = C(Y), X = q(), x = w("input"), N = q(), E = w("div"), S && S.c(), G = q(), T && T.c(), P = q(), v = w("button"), V = C(k), n(o, "class", "ResetPwdHelp"), n(p, "class", "ResetPwdLabel"), n(p, "for", "ResetPwdPrefix"), n(m, "class", "ResetPwdField ResetPwdFieldPrefix"), Le(
|
|
625
|
+
m,
|
|
626
626
|
"ResetPwdFieldFilled",
|
|
627
627
|
/*mobilePrefix*/
|
|
628
628
|
t[14]
|
|
629
|
-
), n(
|
|
629
|
+
), n(B, "class", "ResetPwdLabel"), n(B, "for", "ResetPwdPhone"), n(x, "id", "ResetPwdPhone"), n(x, "class", "ResetPwdInput ResetPwdInputPhone"), n(x, "type", "tel"), n(x, "autocomplete", "tel-national"), n(x, "aria-invalid", R = /*phoneError*/
|
|
630
630
|
t[15] ? "true" : "false"), n(L, "class", "ResetPwdField ResetPwdFieldPhone"), Le(
|
|
631
631
|
L,
|
|
632
632
|
"ResetPwdFieldFilled",
|
|
633
633
|
/*phone*/
|
|
634
634
|
t[3]
|
|
635
|
-
), n(d, "class", "ResetPwdRow"), n(d, "aria-describedby", "ResetPwdRowErrorsPhone"), n(
|
|
635
|
+
), n(d, "class", "ResetPwdRow"), n(d, "aria-describedby", "ResetPwdRowErrorsPhone"), n(E, "id", "ResetPwdRowErrorsPhone"), n(E, "class", "ResetPwdErrors"), n(E, "role", "alert"), n(E, "aria-live", "assertive"), n(v, "class", "ResetPwdButton"), n(v, "type", "button"), v.disabled = /*loading*/
|
|
636
636
|
t[11], n(e, "class", "ResetPwdSection ResetPwdSectionPhone");
|
|
637
637
|
},
|
|
638
638
|
m(y, b) {
|
|
639
|
-
Q(y, e, b), l(e, o), l(o, a), l(e, s), l(e, d), l(d,
|
|
639
|
+
Q(y, e, b), l(e, o), l(o, a), l(e, s), l(e, d), l(d, m), l(m, p), l(p, f), l(m, h), j.m(m, null), l(d, _), l(d, L), l(L, B), l(B, D), l(L, X), l(L, x), xe(
|
|
640
640
|
x,
|
|
641
641
|
/*phone*/
|
|
642
642
|
t[3]
|
|
643
|
-
), l(e, N), l(e,
|
|
643
|
+
), l(e, N), l(e, E), S && S.m(E, null), l(E, G), T && T.m(E, null), l(e, P), l(e, v), l(v, V), ae || (fe = [
|
|
644
644
|
we(
|
|
645
645
|
x,
|
|
646
646
|
"input",
|
|
@@ -658,17 +658,17 @@ function We(t) {
|
|
|
658
658
|
p(y, b) {
|
|
659
659
|
b[0] & /*$_*/
|
|
660
660
|
1024 && i !== (i = /*$_*/
|
|
661
|
-
y[10]("enterPhoneHelp") + "") &&
|
|
661
|
+
y[10]("enterPhoneHelp") + "") && F(a, i), b[0] & /*$_*/
|
|
662
662
|
1024 && g !== (g = /*$_*/
|
|
663
|
-
y[10]("countryCodeLabel") + "") &&
|
|
663
|
+
y[10]("countryCodeLabel") + "") && F(f, g), te === (te = ge(y)) && j ? j.p(y, b) : (j.d(1), j = te(y), j && (j.c(), j.m(m, null))), b[0] & /*mobilePrefix*/
|
|
664
664
|
16384 && Le(
|
|
665
|
-
|
|
665
|
+
m,
|
|
666
666
|
"ResetPwdFieldFilled",
|
|
667
667
|
/*mobilePrefix*/
|
|
668
668
|
y[14]
|
|
669
669
|
), b[0] & /*$_*/
|
|
670
670
|
1024 && Y !== (Y = /*$_*/
|
|
671
|
-
y[10]("phoneLabel") + "") &&
|
|
671
|
+
y[10]("phoneLabel") + "") && F(D, Y), b[0] & /*phoneError*/
|
|
672
672
|
32768 && R !== (R = /*phoneError*/
|
|
673
673
|
y[15] ? "true" : "false") && n(x, "aria-invalid", R), b[0] & /*phone*/
|
|
674
674
|
8 && xe(
|
|
@@ -683,11 +683,11 @@ function We(t) {
|
|
|
683
683
|
y[3]
|
|
684
684
|
), /*phoneError*/
|
|
685
685
|
y[15] ? S ? (S.p(y, b), b[0] & /*phoneError*/
|
|
686
|
-
32768 && se(S, 1)) : (S =
|
|
686
|
+
32768 && se(S, 1)) : (S = Ye(y), S.c(), se(S, 1), S.m(E, G)) : S && (_e(), ye(S, 1, 1, () => {
|
|
687
687
|
S = null;
|
|
688
688
|
}), Ce()), /*phoneInfo*/
|
|
689
689
|
y[16] ? T ? (T.p(y, b), b[0] & /*phoneInfo*/
|
|
690
|
-
65536 && se(T, 1)) : (T =
|
|
690
|
+
65536 && se(T, 1)) : (T = Ge(y), T.c(), se(T, 1), T.m(E, null)) : T && (_e(), ye(T, 1, 1, () => {
|
|
691
691
|
T = null;
|
|
692
692
|
}), Ce()), b[0] & /*loading, $_*/
|
|
693
693
|
3072 && k !== (k = /*loading*/
|
|
@@ -697,16 +697,16 @@ function We(t) {
|
|
|
697
697
|
) : (
|
|
698
698
|
/*$_*/
|
|
699
699
|
y[10]("requestCode")
|
|
700
|
-
)) + "") &&
|
|
700
|
+
)) + "") && F(V, k), b[0] & /*loading*/
|
|
701
701
|
2048 && (v.disabled = /*loading*/
|
|
702
702
|
y[11]);
|
|
703
703
|
},
|
|
704
704
|
d(y) {
|
|
705
|
-
y && J(e),
|
|
705
|
+
y && J(e), j.d(), S && S.d(), T && T.d(), ae = !1, je(fe);
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Dt(t) {
|
|
710
710
|
let e, o, i, a;
|
|
711
711
|
return {
|
|
712
712
|
c() {
|
|
@@ -741,7 +741,7 @@ function Vt(t) {
|
|
|
741
741
|
}
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Ht(t) {
|
|
745
745
|
let e, o;
|
|
746
746
|
return {
|
|
747
747
|
c() {
|
|
@@ -788,7 +788,7 @@ function Dt(t) {
|
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Ye(t) {
|
|
792
792
|
let e, o, i, a;
|
|
793
793
|
return {
|
|
794
794
|
c() {
|
|
@@ -802,7 +802,7 @@ function Be(t) {
|
|
|
802
802
|
},
|
|
803
803
|
p(s, d) {
|
|
804
804
|
(!a || d[0] & /*phoneError*/
|
|
805
|
-
32768) &&
|
|
805
|
+
32768) && F(
|
|
806
806
|
o,
|
|
807
807
|
/*phoneError*/
|
|
808
808
|
s[15]
|
|
@@ -821,7 +821,7 @@ function Be(t) {
|
|
|
821
821
|
}
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function Ge(t) {
|
|
825
825
|
let e, o, i, a;
|
|
826
826
|
return {
|
|
827
827
|
c() {
|
|
@@ -835,7 +835,7 @@ function Ye(t) {
|
|
|
835
835
|
},
|
|
836
836
|
p(s, d) {
|
|
837
837
|
(!a || d[0] & /*phoneInfo*/
|
|
838
|
-
65536) &&
|
|
838
|
+
65536) && F(
|
|
839
839
|
o,
|
|
840
840
|
/*phoneInfo*/
|
|
841
841
|
s[16]
|
|
@@ -854,23 +854,23 @@ function Ye(t) {
|
|
|
854
854
|
}
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Ze(t) {
|
|
858
858
|
let e, o, i = (
|
|
859
859
|
/*$_*/
|
|
860
860
|
t[10]("enterCodeTitle") + ""
|
|
861
|
-
), a, s, d,
|
|
861
|
+
), a, s, d, m = (
|
|
862
862
|
/*$_*/
|
|
863
863
|
t[10]("codeSubtitle").replace("{n}", String(
|
|
864
864
|
/*codeLength*/
|
|
865
865
|
t[26]
|
|
866
866
|
)) + ""
|
|
867
|
-
), p, g,
|
|
867
|
+
), p, g, f, h, _, L = (
|
|
868
868
|
/*$_*/
|
|
869
869
|
t[10]("verificationCodeLabel") + ""
|
|
870
|
-
),
|
|
870
|
+
), B, Y, D, X, x, R, N, E, G, P, v, k, V, ae = (
|
|
871
871
|
/*$_*/
|
|
872
872
|
t[10]("attemptsLeft") + ""
|
|
873
|
-
), fe, ge, te,
|
|
873
|
+
), fe, ge, te, j, S, T, y, b, $, U, ne, le, Pe = (
|
|
874
874
|
/*loading*/
|
|
875
875
|
(t[11] ? (
|
|
876
876
|
/*$_*/
|
|
@@ -879,46 +879,46 @@ function Ge(t) {
|
|
|
879
879
|
/*$_*/
|
|
880
880
|
t[10]("submitCode")
|
|
881
881
|
)) + ""
|
|
882
|
-
), de, me, ue, Re, ie =
|
|
882
|
+
), de, me, ue, Re, ie = Ue(Array(
|
|
883
883
|
/*codeLength*/
|
|
884
884
|
t[26]
|
|
885
885
|
)), Z = [];
|
|
886
886
|
for (let u = 0; u < ie.length; u += 1)
|
|
887
|
-
Z[u] =
|
|
888
|
-
let
|
|
887
|
+
Z[u] = Je(Oe(t, ie, u));
|
|
888
|
+
let H = (
|
|
889
889
|
/*codeError*/
|
|
890
|
-
t[17] &&
|
|
890
|
+
t[17] && Qe(t)
|
|
891
891
|
), z = (
|
|
892
892
|
/*codeExpiredHint*/
|
|
893
893
|
t[18] && /*remainingSeconds*/
|
|
894
|
-
t[9] === 0 &&
|
|
895
|
-
),
|
|
894
|
+
t[9] === 0 && Xe(t)
|
|
895
|
+
), A = (
|
|
896
896
|
/*expiresAt*/
|
|
897
|
-
t[5] &&
|
|
897
|
+
t[5] && $e(t)
|
|
898
898
|
);
|
|
899
|
-
function
|
|
899
|
+
function K(u, I) {
|
|
900
900
|
return (
|
|
901
901
|
/*canResendAt*/
|
|
902
902
|
u[6] && /*now*/
|
|
903
903
|
u[7] < /*canResendAt*/
|
|
904
|
-
u[6] ?
|
|
904
|
+
u[6] ? Ot : Kt
|
|
905
905
|
);
|
|
906
906
|
}
|
|
907
|
-
let ve =
|
|
907
|
+
let ve = K(t), oe = ve(t);
|
|
908
908
|
return {
|
|
909
909
|
c() {
|
|
910
|
-
e = w("section"), o = w("h3"), a = C(i), s = q(), d = w("p"), p = C(
|
|
910
|
+
e = w("section"), o = w("h3"), a = C(i), s = q(), d = w("p"), p = C(m), g = q(), f = w("div"), h = w("div"), _ = w("label"), B = C(L), Y = q(), D = w("div");
|
|
911
911
|
for (let u = 0; u < Z.length; u += 1)
|
|
912
912
|
Z[u].c();
|
|
913
|
-
x = q(), R = w("div"),
|
|
913
|
+
x = q(), R = w("div"), H && H.c(), N = q(), z && z.c(), E = q(), G = w("div"), P = w("div"), v = w("div"), k = w("span"), V = w("strong"), fe = C(ae), ge = C(":"), te = q(), j = w("span"), S = C(
|
|
914
914
|
/*attemptsRemaining*/
|
|
915
915
|
t[4]
|
|
916
|
-
), T = q(),
|
|
917
|
-
t[10]("verificationCodeLabel")), n(h, "class", "ResetPwdField ResetPwdFieldCode"), n(
|
|
916
|
+
), T = q(), A && A.c(), y = q(), b = w("button"), oe.c(), ne = q(), le = w("button"), de = C(Pe), n(o, "id", "ResetPwdCodeTitle"), n(o, "class", "ResetPwdStepTitle"), n(d, "class", "ResetPwdHelp"), n(_, "class", "ResetPwdLabel"), n(_, "for", "ResetPwdCode"), n(D, "class", "ResetPwdCodeGroup"), n(D, "role", "group"), n(D, "aria-label", X = /*$_*/
|
|
917
|
+
t[10]("verificationCodeLabel")), n(h, "class", "ResetPwdField ResetPwdFieldCode"), n(f, "class", "ResetPwdRow"), n(f, "aria-describedby", "ResetPwdRowErrorsCode"), n(R, "id", "ResetPwdRowErrorsCode"), n(R, "class", "ResetPwdErrors"), n(R, "role", "alert"), n(R, "aria-live", "assertive"), n(j, "class", "ResetPwdAttempts"), n(k, "class", "ResetPwdMeta"), n(v, "class", "ResetPwdMetaRow"), n(b, "class", "ResetPwdLink"), n(b, "type", "button"), b.disabled = $ = /*loading*/
|
|
918
918
|
t[11] || /*canResendAt*/
|
|
919
919
|
t[6] && /*now*/
|
|
920
920
|
t[7] < /*canResendAt*/
|
|
921
|
-
t[6], n(b, "aria-disabled",
|
|
921
|
+
t[6], n(b, "aria-disabled", U = /*loading*/
|
|
922
922
|
t[11] || /*canResendAt*/
|
|
923
923
|
t[6] && /*now*/
|
|
924
924
|
t[7] < /*canResendAt*/
|
|
@@ -926,11 +926,11 @@ function Ge(t) {
|
|
|
926
926
|
t[11] || /*disableSubmitCode*/
|
|
927
927
|
t[20], n(e, "class", "ResetPwdSection ResetPwdSectionCode"), n(e, "aria-labelledby", "ResetPwdCodeTitle");
|
|
928
928
|
},
|
|
929
|
-
m(u,
|
|
930
|
-
Q(u, e,
|
|
931
|
-
for (let
|
|
932
|
-
Z[
|
|
933
|
-
l(e, x), l(e, R),
|
|
929
|
+
m(u, I) {
|
|
930
|
+
Q(u, e, I), l(e, o), l(o, a), l(e, s), l(e, d), l(d, p), l(e, g), l(e, f), l(f, h), l(h, _), l(_, B), l(h, Y), l(h, D);
|
|
931
|
+
for (let O = 0; O < Z.length; O += 1)
|
|
932
|
+
Z[O] && Z[O].m(D, null);
|
|
933
|
+
l(e, x), l(e, R), H && H.m(R, null), l(R, N), z && z.m(R, null), l(e, E), l(e, G), l(G, P), l(P, v), l(v, k), l(k, V), l(V, fe), l(V, ge), l(k, te), l(k, j), l(j, S), l(v, T), A && A.m(v, null), l(P, y), l(P, b), oe.m(b, null), l(e, ne), l(e, le), l(le, de), ue || (Re = [
|
|
934
934
|
we(
|
|
935
935
|
b,
|
|
936
936
|
"click",
|
|
@@ -945,61 +945,61 @@ function Ge(t) {
|
|
|
945
945
|
)
|
|
946
946
|
], ue = !0);
|
|
947
947
|
},
|
|
948
|
-
p(u,
|
|
949
|
-
if (
|
|
948
|
+
p(u, I) {
|
|
949
|
+
if (I[0] & /*$_*/
|
|
950
950
|
1024 && i !== (i = /*$_*/
|
|
951
|
-
u[10]("enterCodeTitle") + "") &&
|
|
952
|
-
1024 &&
|
|
951
|
+
u[10]("enterCodeTitle") + "") && F(a, i), I[0] & /*$_*/
|
|
952
|
+
1024 && m !== (m = /*$_*/
|
|
953
953
|
u[10]("codeSubtitle").replace("{n}", String(
|
|
954
954
|
/*codeLength*/
|
|
955
955
|
u[26]
|
|
956
|
-
)) + "") &&
|
|
956
|
+
)) + "") && F(p, m), I[0] & /*$_*/
|
|
957
957
|
1024 && L !== (L = /*$_*/
|
|
958
|
-
u[10]("verificationCodeLabel") + "") &&
|
|
958
|
+
u[10]("verificationCodeLabel") + "") && F(B, L), I[0] & /*codeDigits, codeError, codeInputs, handleCodeInput, handleCodeKeyDown*/
|
|
959
959
|
403308800) {
|
|
960
|
-
ie =
|
|
960
|
+
ie = Ue(Array(
|
|
961
961
|
/*codeLength*/
|
|
962
962
|
u[26]
|
|
963
963
|
));
|
|
964
|
-
let
|
|
965
|
-
for (
|
|
966
|
-
const Se =
|
|
967
|
-
Z[
|
|
964
|
+
let O;
|
|
965
|
+
for (O = 0; O < ie.length; O += 1) {
|
|
966
|
+
const Se = Oe(u, ie, O);
|
|
967
|
+
Z[O] ? Z[O].p(Se, I) : (Z[O] = Je(Se), Z[O].c(), Z[O].m(D, null));
|
|
968
968
|
}
|
|
969
|
-
for (;
|
|
970
|
-
Z[
|
|
969
|
+
for (; O < Z.length; O += 1)
|
|
970
|
+
Z[O].d(1);
|
|
971
971
|
Z.length = ie.length;
|
|
972
972
|
}
|
|
973
|
-
|
|
973
|
+
I[0] & /*$_*/
|
|
974
974
|
1024 && X !== (X = /*$_*/
|
|
975
|
-
u[10]("verificationCodeLabel")) && n(
|
|
976
|
-
u[17] ?
|
|
977
|
-
131072 && se(
|
|
978
|
-
|
|
975
|
+
u[10]("verificationCodeLabel")) && n(D, "aria-label", X), /*codeError*/
|
|
976
|
+
u[17] ? H ? (H.p(u, I), I[0] & /*codeError*/
|
|
977
|
+
131072 && se(H, 1)) : (H = Qe(u), H.c(), se(H, 1), H.m(R, N)) : H && (_e(), ye(H, 1, 1, () => {
|
|
978
|
+
H = null;
|
|
979
979
|
}), Ce()), /*codeExpiredHint*/
|
|
980
980
|
u[18] && /*remainingSeconds*/
|
|
981
|
-
u[9] === 0 ? z ? (z.p(u,
|
|
982
|
-
262656 && se(z, 1)) : (z =
|
|
981
|
+
u[9] === 0 ? z ? (z.p(u, I), I[0] & /*codeExpiredHint, remainingSeconds*/
|
|
982
|
+
262656 && se(z, 1)) : (z = Xe(u), z.c(), se(z, 1), z.m(R, null)) : z && (_e(), ye(z, 1, 1, () => {
|
|
983
983
|
z = null;
|
|
984
|
-
}), Ce()),
|
|
984
|
+
}), Ce()), I[0] & /*$_*/
|
|
985
985
|
1024 && ae !== (ae = /*$_*/
|
|
986
|
-
u[10]("attemptsLeft") + "") &&
|
|
987
|
-
16 &&
|
|
986
|
+
u[10]("attemptsLeft") + "") && F(fe, ae), I[0] & /*attemptsRemaining*/
|
|
987
|
+
16 && F(
|
|
988
988
|
S,
|
|
989
989
|
/*attemptsRemaining*/
|
|
990
990
|
u[4]
|
|
991
991
|
), /*expiresAt*/
|
|
992
|
-
u[5] ?
|
|
992
|
+
u[5] ? A ? A.p(u, I) : (A = $e(u), A.c(), A.m(v, null)) : A && (A.d(1), A = null), ve === (ve = K(u)) && oe ? oe.p(u, I) : (oe.d(1), oe = ve(u), oe && (oe.c(), oe.m(b, null))), I[0] & /*loading, canResendAt, now*/
|
|
993
993
|
2240 && $ !== ($ = /*loading*/
|
|
994
994
|
u[11] || /*canResendAt*/
|
|
995
995
|
u[6] && /*now*/
|
|
996
996
|
u[7] < /*canResendAt*/
|
|
997
|
-
u[6]) && (b.disabled = $),
|
|
998
|
-
2240 &&
|
|
997
|
+
u[6]) && (b.disabled = $), I[0] & /*loading, canResendAt, now*/
|
|
998
|
+
2240 && U !== (U = /*loading*/
|
|
999
999
|
u[11] || /*canResendAt*/
|
|
1000
1000
|
u[6] && /*now*/
|
|
1001
1001
|
u[7] < /*canResendAt*/
|
|
1002
|
-
u[6]) && n(b, "aria-disabled",
|
|
1002
|
+
u[6]) && n(b, "aria-disabled", U), I[0] & /*loading, $_*/
|
|
1003
1003
|
3072 && Pe !== (Pe = /*loading*/
|
|
1004
1004
|
(u[11] ? (
|
|
1005
1005
|
/*$_*/
|
|
@@ -1007,22 +1007,22 @@ function Ge(t) {
|
|
|
1007
1007
|
) : (
|
|
1008
1008
|
/*$_*/
|
|
1009
1009
|
u[10]("submitCode")
|
|
1010
|
-
)) + "") &&
|
|
1010
|
+
)) + "") && F(de, Pe), I[0] & /*loading, disableSubmitCode*/
|
|
1011
1011
|
1050624 && me !== (me = /*loading*/
|
|
1012
1012
|
u[11] || /*disableSubmitCode*/
|
|
1013
1013
|
u[20]) && (le.disabled = me);
|
|
1014
1014
|
},
|
|
1015
1015
|
d(u) {
|
|
1016
|
-
u && J(e),
|
|
1016
|
+
u && J(e), Lt(Z, u), H && H.d(), z && z.d(), A && A.d(), oe.d(), ue = !1, je(Re);
|
|
1017
1017
|
}
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function Je(t) {
|
|
1021
1021
|
let e, o, i, a = (
|
|
1022
1022
|
/*index*/
|
|
1023
|
-
t[
|
|
1023
|
+
t[74]
|
|
1024
1024
|
), s, d;
|
|
1025
|
-
const
|
|
1025
|
+
const m = () => (
|
|
1026
1026
|
/*input_binding*/
|
|
1027
1027
|
t[50](e, a)
|
|
1028
1028
|
), p = () => (
|
|
@@ -1034,17 +1034,17 @@ function Ze(t) {
|
|
|
1034
1034
|
/*input_handler*/
|
|
1035
1035
|
t[51](
|
|
1036
1036
|
/*index*/
|
|
1037
|
-
t[
|
|
1037
|
+
t[74],
|
|
1038
1038
|
...h
|
|
1039
1039
|
)
|
|
1040
1040
|
);
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function f(...h) {
|
|
1043
1043
|
return (
|
|
1044
1044
|
/*keydown_handler*/
|
|
1045
1045
|
t[52](
|
|
1046
1046
|
/*index*/
|
|
1047
|
-
t[
|
|
1047
|
+
t[74],
|
|
1048
1048
|
...h
|
|
1049
1049
|
)
|
|
1050
1050
|
);
|
|
@@ -1054,14 +1054,14 @@ function Ze(t) {
|
|
|
1054
1054
|
e = w("input"), n(e, "class", "ResetPwdCodeInput"), n(e, "type", "text"), n(e, "maxlength", "1"), e.value = o = /*codeDigits*/
|
|
1055
1055
|
t[8][
|
|
1056
1056
|
/*index*/
|
|
1057
|
-
t[
|
|
1057
|
+
t[74]
|
|
1058
1058
|
], n(e, "inputmode", "numeric"), n(e, "pattern", "\\d*"), n(e, "autocomplete", "one-time-code"), n(e, "placeholder", "•"), n(e, "aria-invalid", i = /*codeError*/
|
|
1059
1059
|
t[17] ? "true" : "false");
|
|
1060
1060
|
},
|
|
1061
1061
|
m(h, _) {
|
|
1062
|
-
Q(h, e, _),
|
|
1062
|
+
Q(h, e, _), m(), s || (d = [
|
|
1063
1063
|
we(e, "input", g),
|
|
1064
|
-
we(e, "keydown",
|
|
1064
|
+
we(e, "keydown", f)
|
|
1065
1065
|
], s = !0);
|
|
1066
1066
|
},
|
|
1067
1067
|
p(h, _) {
|
|
@@ -1069,19 +1069,19 @@ function Ze(t) {
|
|
|
1069
1069
|
256 && o !== (o = /*codeDigits*/
|
|
1070
1070
|
t[8][
|
|
1071
1071
|
/*index*/
|
|
1072
|
-
t[
|
|
1072
|
+
t[74]
|
|
1073
1073
|
]) && e.value !== o && (e.value = o), _[0] & /*codeError*/
|
|
1074
1074
|
131072 && i !== (i = /*codeError*/
|
|
1075
1075
|
t[17] ? "true" : "false") && n(e, "aria-invalid", i), a !== /*index*/
|
|
1076
|
-
t[
|
|
1077
|
-
t[
|
|
1076
|
+
t[74] && (p(), a = /*index*/
|
|
1077
|
+
t[74], m());
|
|
1078
1078
|
},
|
|
1079
1079
|
d(h) {
|
|
1080
|
-
h && J(e), p(), s = !1,
|
|
1080
|
+
h && J(e), p(), s = !1, je(d);
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Qe(t) {
|
|
1085
1085
|
let e, o, i, a;
|
|
1086
1086
|
return {
|
|
1087
1087
|
c() {
|
|
@@ -1095,7 +1095,7 @@ function Je(t) {
|
|
|
1095
1095
|
},
|
|
1096
1096
|
p(s, d) {
|
|
1097
1097
|
(!a || d[0] & /*codeError*/
|
|
1098
|
-
131072) &&
|
|
1098
|
+
131072) && F(
|
|
1099
1099
|
o,
|
|
1100
1100
|
/*codeError*/
|
|
1101
1101
|
s[17]
|
|
@@ -1114,7 +1114,7 @@ function Je(t) {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function Xe(t) {
|
|
1118
1118
|
let e, o, i, a;
|
|
1119
1119
|
return {
|
|
1120
1120
|
c() {
|
|
@@ -1128,7 +1128,7 @@ function Qe(t) {
|
|
|
1128
1128
|
},
|
|
1129
1129
|
p(s, d) {
|
|
1130
1130
|
(!a || d[0] & /*codeExpiredHint*/
|
|
1131
|
-
262144) &&
|
|
1131
|
+
262144) && F(
|
|
1132
1132
|
o,
|
|
1133
1133
|
/*codeExpiredHint*/
|
|
1134
1134
|
s[18]
|
|
@@ -1147,37 +1147,37 @@ function Qe(t) {
|
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function $e(t) {
|
|
1151
1151
|
let e, o, i = (
|
|
1152
1152
|
/*$_*/
|
|
1153
1153
|
t[10]("expiresIn") + ""
|
|
1154
|
-
), a, s, d,
|
|
1154
|
+
), a, s, d, m, p, g;
|
|
1155
1155
|
return {
|
|
1156
1156
|
c() {
|
|
1157
|
-
e = w("span"), o = w("strong"), a = C(i), s = C(":"), d = q(),
|
|
1157
|
+
e = w("span"), o = w("strong"), a = C(i), s = C(":"), d = q(), m = w("span"), p = C(
|
|
1158
1158
|
/*remainingSeconds*/
|
|
1159
1159
|
t[9]
|
|
1160
|
-
), g = C("s"), n(
|
|
1160
|
+
), g = C("s"), n(m, "class", "ResetPwdExpires"), n(e, "class", "ResetPwdMeta");
|
|
1161
1161
|
},
|
|
1162
|
-
m(
|
|
1163
|
-
Q(
|
|
1162
|
+
m(f, h) {
|
|
1163
|
+
Q(f, e, h), l(e, o), l(o, a), l(o, s), l(e, d), l(e, m), l(m, p), l(m, g);
|
|
1164
1164
|
},
|
|
1165
|
-
p(
|
|
1165
|
+
p(f, h) {
|
|
1166
1166
|
h[0] & /*$_*/
|
|
1167
1167
|
1024 && i !== (i = /*$_*/
|
|
1168
|
-
|
|
1169
|
-
512 &&
|
|
1168
|
+
f[10]("expiresIn") + "") && F(a, i), h[0] & /*remainingSeconds*/
|
|
1169
|
+
512 && F(
|
|
1170
1170
|
p,
|
|
1171
1171
|
/*remainingSeconds*/
|
|
1172
|
-
|
|
1172
|
+
f[9]
|
|
1173
1173
|
);
|
|
1174
1174
|
},
|
|
1175
|
-
d(
|
|
1176
|
-
|
|
1175
|
+
d(f) {
|
|
1176
|
+
f && J(e);
|
|
1177
1177
|
}
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function Kt(t) {
|
|
1181
1181
|
let e = (
|
|
1182
1182
|
/*$_*/
|
|
1183
1183
|
t[10]("resendCode") + ""
|
|
@@ -1192,47 +1192,47 @@ function Ht(t) {
|
|
|
1192
1192
|
p(i, a) {
|
|
1193
1193
|
a[0] & /*$_*/
|
|
1194
1194
|
1024 && e !== (e = /*$_*/
|
|
1195
|
-
i[10]("resendCode") + "") &&
|
|
1195
|
+
i[10]("resendCode") + "") && F(o, e);
|
|
1196
1196
|
},
|
|
1197
1197
|
d(i) {
|
|
1198
1198
|
i && J(o);
|
|
1199
1199
|
}
|
|
1200
1200
|
};
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Ot(t) {
|
|
1203
1203
|
let e = (
|
|
1204
1204
|
/*$_*/
|
|
1205
1205
|
t[10]("resendCode") + ""
|
|
1206
|
-
), o, i, a, s, d,
|
|
1206
|
+
), o, i, a, s, d, m;
|
|
1207
1207
|
return {
|
|
1208
1208
|
c() {
|
|
1209
1209
|
o = C(e), i = C(" ("), a = w("span"), s = C(
|
|
1210
1210
|
/*resendSeconds*/
|
|
1211
1211
|
t[21]
|
|
1212
|
-
), d = C("s"),
|
|
1212
|
+
), d = C("s"), m = C(")"), n(a, "class", "ResetPwdResend");
|
|
1213
1213
|
},
|
|
1214
1214
|
m(p, g) {
|
|
1215
|
-
Q(p, o, g), Q(p, i, g), Q(p, a, g), l(a, s), l(a, d), Q(p,
|
|
1215
|
+
Q(p, o, g), Q(p, i, g), Q(p, a, g), l(a, s), l(a, d), Q(p, m, g);
|
|
1216
1216
|
},
|
|
1217
1217
|
p(p, g) {
|
|
1218
1218
|
g[0] & /*$_*/
|
|
1219
1219
|
1024 && e !== (e = /*$_*/
|
|
1220
|
-
p[10]("resendCode") + "") &&
|
|
1221
|
-
2097152 &&
|
|
1220
|
+
p[10]("resendCode") + "") && F(o, e), g[0] & /*resendSeconds*/
|
|
1221
|
+
2097152 && F(
|
|
1222
1222
|
s,
|
|
1223
1223
|
/*resendSeconds*/
|
|
1224
1224
|
p[21]
|
|
1225
1225
|
);
|
|
1226
1226
|
},
|
|
1227
1227
|
d(p) {
|
|
1228
|
-
p && (J(o), J(i), J(a), J(
|
|
1228
|
+
p && (J(o), J(i), J(a), J(m));
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Wt(t) {
|
|
1233
1233
|
let e, o = (
|
|
1234
1234
|
/*isModalOpen*/
|
|
1235
|
-
t[12] &&
|
|
1235
|
+
t[12] && We(t)
|
|
1236
1236
|
);
|
|
1237
1237
|
return {
|
|
1238
1238
|
c() {
|
|
@@ -1244,7 +1244,7 @@ function Ot(t) {
|
|
|
1244
1244
|
p(i, a) {
|
|
1245
1245
|
/*isModalOpen*/
|
|
1246
1246
|
i[12] ? o ? (o.p(i, a), a[0] & /*isModalOpen*/
|
|
1247
|
-
4096 && se(o, 1)) : (o =
|
|
1247
|
+
4096 && se(o, 1)) : (o = We(i), o.c(), se(o, 1), o.m(e, null)) : o && (_e(), ye(o, 1, 1, () => {
|
|
1248
1248
|
o = null;
|
|
1249
1249
|
}), Ce());
|
|
1250
1250
|
},
|
|
@@ -1259,14 +1259,14 @@ function Ot(t) {
|
|
|
1259
1259
|
}
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Bt(t) {
|
|
1263
1263
|
try {
|
|
1264
1264
|
return JSON.parse(t);
|
|
1265
1265
|
} catch (e) {
|
|
1266
1266
|
return;
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function et(t, e = "error") {
|
|
1270
1270
|
window.postMessage(
|
|
1271
1271
|
{
|
|
1272
1272
|
type: "WidgetNotification",
|
|
@@ -1275,20 +1275,20 @@ function $e(t, e = "error") {
|
|
|
1275
1275
|
window.location.href
|
|
1276
1276
|
);
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1279
|
-
let i, a, s, d,
|
|
1280
|
-
|
|
1281
|
-
let { clientstyling: h = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: L = "" } = e, { mbsource:
|
|
1282
|
-
const ae = { duration: 140, easing:
|
|
1278
|
+
function Yt(t, e, o) {
|
|
1279
|
+
let i, a, s, d, m, p, g, f;
|
|
1280
|
+
St(t, jt, (r) => o(10, f = r));
|
|
1281
|
+
let { clientstyling: h = "" } = e, { clientstylingurl: _ = "" } = e, { translationurl: L = "" } = e, { mbsource: B } = e, { phoneregex: Y = "" } = e, { phoneprefixeditable: D = "true" } = e, { smscodelength: X = "6" } = e, { smscodemaxattempts: x = "5" } = e, { smscodettl: R = "5" } = e, { resenddelay: N = "1" } = e, { endpoint: E = "" } = e, { lang: G = "en" } = e, P, v = "phone", k = !1, V = !0;
|
|
1282
|
+
const ae = { duration: 140, easing: Me }, fe = {
|
|
1283
1283
|
duration: 220,
|
|
1284
1284
|
start: 0.96,
|
|
1285
|
-
easing:
|
|
1285
|
+
easing: Me
|
|
1286
1286
|
}, ge = {
|
|
1287
1287
|
duration: 140,
|
|
1288
1288
|
start: 1,
|
|
1289
|
-
easing:
|
|
1289
|
+
easing: Me
|
|
1290
1290
|
};
|
|
1291
|
-
let te = [],
|
|
1291
|
+
let te = [], j = "", S = "", T = "", y = "", b = null, $ = "", U = "", ne = /^[\d\.]+$/.test(x) ? Number(x) : 5, le = Number(/^[\d\.]+$/.test(R) ? R : 5) * 60 * 1e3, Pe = Number(/^[\d\.]+$/.test(N) ? N : 1) * 60 * 1e3, de = null, me = "", ue = null, Re = null, ie = Date.now();
|
|
1292
1292
|
setInterval(
|
|
1293
1293
|
() => {
|
|
1294
1294
|
o(7, ie = Date.now());
|
|
@@ -1306,120 +1306,123 @@ function Bt(t, e, o) {
|
|
|
1306
1306
|
);
|
|
1307
1307
|
} catch (r) {
|
|
1308
1308
|
}
|
|
1309
|
-
o(12,
|
|
1309
|
+
o(12, V = !1);
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1311
|
+
function H(r) {
|
|
1312
1312
|
return Y ? (typeof Y == "string" ? new RegExp(Y) : Y).test(r.trim()) : !1;
|
|
1313
1313
|
}
|
|
1314
|
-
let z = Number(X),
|
|
1314
|
+
let z = Number(X), A = [], K = Array(Number(z)).fill("");
|
|
1315
1315
|
function ve(r, c) {
|
|
1316
|
-
const
|
|
1317
|
-
if (
|
|
1318
|
-
o(8,
|
|
1319
|
-
else if (
|
|
1320
|
-
const ee =
|
|
1321
|
-
ee.forEach((ze,
|
|
1322
|
-
o(8,
|
|
1323
|
-
}),
|
|
1316
|
+
const M = r.target.value.replace(/\D/g, "");
|
|
1317
|
+
if (M.length === 1)
|
|
1318
|
+
o(8, K[c] = M, K), u(c);
|
|
1319
|
+
else if (M.length > 1) {
|
|
1320
|
+
const ee = M.split("").slice(0, z - c);
|
|
1321
|
+
ee.forEach((ze, wt) => {
|
|
1322
|
+
o(8, K[c + wt] = ze, K);
|
|
1323
|
+
}), O(c + ee.length - 1);
|
|
1324
1324
|
}
|
|
1325
|
-
$ =
|
|
1325
|
+
$ = K.join("");
|
|
1326
1326
|
}
|
|
1327
1327
|
function oe(r, c) {
|
|
1328
|
-
r.key === "Backspace" ?
|
|
1328
|
+
r.key === "Backspace" ? K[c] ? o(8, K[c] = "", K) : c > 0 && (I(c), o(8, K[c - 1] = "", K)) : !/\d/.test(r.key) && r.key !== "Tab" && r.key.length === 1 && r.preventDefault();
|
|
1329
1329
|
}
|
|
1330
1330
|
function u(r) {
|
|
1331
1331
|
var c;
|
|
1332
|
-
r < z - 1 && ((c =
|
|
1332
|
+
r < z - 1 && ((c = A[r + 1]) == null || c.focus());
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function I(r) {
|
|
1335
1335
|
var c;
|
|
1336
|
-
r > 0 && ((c =
|
|
1336
|
+
r > 0 && ((c = A[r - 1]) == null || c.focus());
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1338
|
+
function O(r) {
|
|
1339
1339
|
var c;
|
|
1340
|
-
r >= 0 && r < z && ((c =
|
|
1340
|
+
r >= 0 && r < z && ((c = A[r]) == null || c.focus());
|
|
1341
1341
|
}
|
|
1342
1342
|
function Se(r, c) {
|
|
1343
1343
|
return ce(this, null, function* () {
|
|
1344
1344
|
var ze;
|
|
1345
|
-
const
|
|
1345
|
+
const W = yield fetch(r, {
|
|
1346
1346
|
method: "POST",
|
|
1347
1347
|
headers: { "Content-Type": "application/json" },
|
|
1348
1348
|
body: void 0
|
|
1349
|
-
}),
|
|
1350
|
-
if (!
|
|
1351
|
-
throw new
|
|
1349
|
+
}), M = yield W.text(), ee = M ? Bt(M) : void 0;
|
|
1350
|
+
if (!W.ok)
|
|
1351
|
+
throw new He(W.status, (ze = ee == null ? void 0 : ee.error) != null ? ze : W.statusText, ee);
|
|
1352
1352
|
return ee != null ? ee : {};
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function tt(r) {
|
|
1356
1356
|
return ce(this, null, function* () {
|
|
1357
|
-
const { mobileNumber: c, mobilePrefix:
|
|
1358
|
-
|
|
1359
|
-
const ee = `${
|
|
1357
|
+
const { mobileNumber: c, mobilePrefix: W } = r, M = new URLSearchParams({ mobileNumber: c });
|
|
1358
|
+
W && M.set("mobilePrefix", W);
|
|
1359
|
+
const ee = `${E}/v1/player/resetPasswordByMobilePhone?${M.toString()}`;
|
|
1360
1360
|
return yield Se(ee);
|
|
1361
1361
|
});
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1363
|
+
function ot(r) {
|
|
1364
1364
|
return ce(this, null, function* () {
|
|
1365
|
-
const { tokenId: c, validationCode:
|
|
1365
|
+
const { tokenId: c, validationCode: W } = r, M = new URLSearchParams({ tokenId: c, validationCode: W }), ee = `${E}/v1/player/resetPasswordByMobilePhone/validate?${M.toString()}`;
|
|
1366
1366
|
return yield Se(ee);
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1369
|
+
function it() {
|
|
1370
1370
|
return ce(this, null, function* () {
|
|
1371
|
-
const r = new URL(`${
|
|
1371
|
+
const r = new URL(`${E}/v1/player/operatorSupportedPhoneCodes`), c = yield fetch(r.href);
|
|
1372
1372
|
try {
|
|
1373
|
-
return (yield c.json()).phoneCodes.map((
|
|
1374
|
-
} catch (
|
|
1373
|
+
return (yield c.json()).phoneCodes.map((M) => ({ label: M, value: M }));
|
|
1374
|
+
} catch (W) {
|
|
1375
1375
|
return [];
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function rt(r) {
|
|
1380
1380
|
const c = r.target.value;
|
|
1381
1381
|
o(14, S = c);
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1383
|
+
function Ne() {
|
|
1384
1384
|
return ce(this, null, function* () {
|
|
1385
|
-
o(15, T = ""), o(16, y = ""), o(17,
|
|
1385
|
+
o(15, T = ""), o(16, y = ""), o(17, U = ""), o(11, k = !0);
|
|
1386
1386
|
try {
|
|
1387
|
-
if (!
|
|
1388
|
-
o(15, T =
|
|
1387
|
+
if (!H(j)) {
|
|
1388
|
+
o(15, T = f("invalidPhone"));
|
|
1389
1389
|
return;
|
|
1390
1390
|
}
|
|
1391
|
-
const r = yield
|
|
1392
|
-
mobileNumber:
|
|
1391
|
+
const r = yield tt({
|
|
1392
|
+
mobileNumber: j.trim(),
|
|
1393
1393
|
mobilePrefix: (S == null ? void 0 : S.trim()) || void 0
|
|
1394
1394
|
});
|
|
1395
1395
|
if (r != null && r.tokenId) {
|
|
1396
|
-
b = r.tokenId, o(5, de = Date.now() + le), o(6, ue = Date.now() + Pe), o(18, me = ""), $ = "", o(8,
|
|
1397
|
-
const c =
|
|
1398
|
-
o(4, ne = c != null ? c : Number(x)),
|
|
1396
|
+
b = r.tokenId, o(5, de = Date.now() + le), o(6, ue = Date.now() + Pe), o(18, me = ""), $ = "", o(8, K = Array.from({ length: z }, () => ""));
|
|
1397
|
+
const c = At(b);
|
|
1398
|
+
o(4, ne = c != null ? c : Number(x)), Ke(b, ne), o(2, v = "code");
|
|
1399
1399
|
} else
|
|
1400
|
-
o(16, y =
|
|
1400
|
+
o(16, y = f("genericIfRegistered"));
|
|
1401
1401
|
} catch (r) {
|
|
1402
|
-
const { message: c, thirdPartyResponse: { message:
|
|
1403
|
-
o(15, T =
|
|
1402
|
+
const { message: c, thirdPartyResponse: { message: W } = {} } = r;
|
|
1403
|
+
o(15, T = W || c), et(T);
|
|
1404
1404
|
} finally {
|
|
1405
1405
|
o(11, k = !1);
|
|
1406
1406
|
}
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function Te() {
|
|
1410
|
+
o(4, ne = Math.max(0, ne - 1)), Ke(b, ne);
|
|
1411
|
+
}
|
|
1412
|
+
function nt() {
|
|
1410
1413
|
return ce(this, null, function* () {
|
|
1411
|
-
o(17,
|
|
1414
|
+
o(17, U = ""), o(11, k = !0);
|
|
1412
1415
|
try {
|
|
1413
1416
|
if (!$ || $.trim().length !== z || !/^\d+$/.test($.trim())) {
|
|
1414
|
-
o(17,
|
|
1417
|
+
o(17, U = f("enterDigitsCode").replace("{n}", String(z)));
|
|
1415
1418
|
return;
|
|
1416
1419
|
}
|
|
1417
1420
|
if (!b) {
|
|
1418
|
-
o(17,
|
|
1421
|
+
o(17, U = f("invalidRequest"));
|
|
1419
1422
|
return;
|
|
1420
1423
|
}
|
|
1421
|
-
const r = yield
|
|
1422
|
-
Re = r.hashKey.charAt(0) === "/" ? r.hashKey.slice(1) : r.hashKey, o(2, v = "password"),
|
|
1424
|
+
const r = yield ot({ tokenId: b, validationCode: $.trim() });
|
|
1425
|
+
Re = r.hashKey.charAt(0) === "/" ? r.hashKey.slice(1) : r.hashKey, o(2, v = "password"), Ft(b), window.postMessage(
|
|
1423
1426
|
{
|
|
1424
1427
|
type: "SwitchToResetPasswordScreen",
|
|
1425
1428
|
key: Re
|
|
@@ -1427,118 +1430,122 @@ function Bt(t, e, o) {
|
|
|
1427
1430
|
window.location.href
|
|
1428
1431
|
);
|
|
1429
1432
|
} catch (r) {
|
|
1430
|
-
if (o(17,
|
|
1431
|
-
const c = r.payload,
|
|
1432
|
-
switch (
|
|
1433
|
+
if (o(17, U = f("unableToVerify")), r instanceof He) {
|
|
1434
|
+
const c = r.payload, W = r.status, M = ((c == null ? void 0 : c.error) || "").toLowerCase();
|
|
1435
|
+
switch (W) {
|
|
1433
1436
|
case 400: {
|
|
1434
|
-
|
|
1437
|
+
M.includes("invalid validation code") ? (Te(), o(17, U = ne > 0 ? f("incorrectCode") : f("tooManyAttempts"))) : M.includes("expired") ? (o(17, U = f("codeExpired")), o(18, me = f("codeExpired")), o(5, de = null)) : M.includes("not valid") || M.includes("invalid token") ? o(17, U = f("invalidRequest")) : o(17, U = f("unableToVerify"));
|
|
1438
|
+
break;
|
|
1439
|
+
}
|
|
1440
|
+
case 424: {
|
|
1441
|
+
M.includes("input is not match") ? (Te(), o(17, U = f("incorrectCode"))) : M.includes("validation max attempts exceeded") ? (Te(), o(17, U = f("tooManyAttempts"))) : o(17, U = f("unableToVerify"));
|
|
1435
1442
|
break;
|
|
1436
1443
|
}
|
|
1437
1444
|
case 404: {
|
|
1438
|
-
o(17,
|
|
1445
|
+
o(17, U = f("sessionNotFound"));
|
|
1439
1446
|
break;
|
|
1440
1447
|
}
|
|
1441
1448
|
default: {
|
|
1442
|
-
o(17,
|
|
1449
|
+
o(17, U = f("unableToVerify"));
|
|
1443
1450
|
break;
|
|
1444
1451
|
}
|
|
1445
1452
|
}
|
|
1446
|
-
|
|
1453
|
+
et(U);
|
|
1447
1454
|
}
|
|
1448
1455
|
} finally {
|
|
1449
1456
|
o(11, k = !1);
|
|
1450
1457
|
}
|
|
1451
1458
|
});
|
|
1452
1459
|
}
|
|
1453
|
-
function
|
|
1460
|
+
function st() {
|
|
1454
1461
|
return ce(this, null, function* () {
|
|
1455
|
-
k || ue && ie < ue || (yield
|
|
1462
|
+
k || ue && ie < ue || (yield Ne());
|
|
1456
1463
|
});
|
|
1457
1464
|
}
|
|
1458
|
-
|
|
1459
|
-
const
|
|
1465
|
+
qt({ withLocale: "en", translations: {} });
|
|
1466
|
+
const at = (r) => ce(this, null, function* () {
|
|
1460
1467
|
try {
|
|
1461
1468
|
const c = yield fetch(r);
|
|
1462
1469
|
if (!c.ok)
|
|
1463
1470
|
throw new Error(`Fetch failed with status ${c.status}`);
|
|
1464
|
-
const
|
|
1465
|
-
for (const
|
|
1466
|
-
|
|
1471
|
+
const W = yield c.json();
|
|
1472
|
+
for (const M in W)
|
|
1473
|
+
Ve(M, W[M]);
|
|
1467
1474
|
} catch (c) {
|
|
1468
1475
|
console.error("Error fetching translation", c);
|
|
1469
1476
|
}
|
|
1470
1477
|
});
|
|
1471
|
-
Object.keys(
|
|
1472
|
-
|
|
1478
|
+
Object.keys(De).forEach((r) => {
|
|
1479
|
+
Ve(r, De[r]);
|
|
1473
1480
|
});
|
|
1474
|
-
const
|
|
1475
|
-
|
|
1481
|
+
const lt = () => {
|
|
1482
|
+
Ut(G);
|
|
1476
1483
|
};
|
|
1477
|
-
|
|
1484
|
+
Ct(() => ce(this, null, function* () {
|
|
1478
1485
|
var r;
|
|
1479
|
-
return o(13, te = yield
|
|
1486
|
+
return o(13, te = yield it()), o(14, S = (r = te == null ? void 0 : te[0]) == null ? void 0 : r.value), $ && $.length === z && o(8, K = $.split("")), () => {
|
|
1480
1487
|
};
|
|
1481
1488
|
}));
|
|
1482
|
-
function
|
|
1489
|
+
function dt() {
|
|
1483
1490
|
S = this.value, o(14, S);
|
|
1484
1491
|
}
|
|
1485
|
-
function
|
|
1486
|
-
|
|
1492
|
+
function ut() {
|
|
1493
|
+
j = this.value, o(3, j);
|
|
1487
1494
|
}
|
|
1488
|
-
function
|
|
1489
|
-
|
|
1490
|
-
|
|
1495
|
+
function ct(r, c) {
|
|
1496
|
+
qe[r ? "unshift" : "push"](() => {
|
|
1497
|
+
A[c] = r, o(19, A);
|
|
1491
1498
|
});
|
|
1492
1499
|
}
|
|
1493
|
-
const
|
|
1494
|
-
function
|
|
1495
|
-
|
|
1500
|
+
const pt = (r, c) => ve(c, r), ft = (r, c) => oe(c, r);
|
|
1501
|
+
function mt(r) {
|
|
1502
|
+
qe[r ? "unshift" : "push"](() => {
|
|
1496
1503
|
P = r, o(1, P);
|
|
1497
1504
|
});
|
|
1498
1505
|
}
|
|
1499
1506
|
return t.$$set = (r) => {
|
|
1500
|
-
"clientstyling" in r && o(33, h = r.clientstyling), "clientstylingurl" in r && o(34, _ = r.clientstylingurl), "translationurl" in r && o(35, L = r.translationurl), "mbsource" in r && o(36,
|
|
1507
|
+
"clientstyling" in r && o(33, h = r.clientstyling), "clientstylingurl" in r && o(34, _ = r.clientstylingurl), "translationurl" in r && o(35, L = r.translationurl), "mbsource" in r && o(36, B = r.mbsource), "phoneregex" in r && o(37, Y = r.phoneregex), "phoneprefixeditable" in r && o(0, D = r.phoneprefixeditable), "smscodelength" in r && o(38, X = r.smscodelength), "smscodemaxattempts" in r && o(39, x = r.smscodemaxattempts), "smscodettl" in r && o(40, R = r.smscodettl), "resenddelay" in r && o(41, N = r.resenddelay), "endpoint" in r && o(42, E = r.endpoint), "lang" in r && o(43, G = r.lang);
|
|
1501
1508
|
}, t.$$.update = () => {
|
|
1502
1509
|
t.$$.dirty[0] & /*customStylingContainer*/
|
|
1503
1510
|
2 | t.$$.dirty[1] & /*clientstyling*/
|
|
1504
|
-
4 && h && P &&
|
|
1511
|
+
4 && h && P && xt(P, h), t.$$.dirty[0] & /*customStylingContainer*/
|
|
1505
1512
|
2 | t.$$.dirty[1] & /*clientstylingurl*/
|
|
1506
|
-
8 && _ && P &&
|
|
1513
|
+
8 && _ && P && Tt(P, _), t.$$.dirty[0] & /*customStylingContainer*/
|
|
1507
1514
|
2 | t.$$.dirty[1] & /*mbsource*/
|
|
1508
|
-
32 &&
|
|
1509
|
-
4096 && G &&
|
|
1510
|
-
16 && L &&
|
|
1515
|
+
32 && B && P && Mt(P, `${B}.Style`), t.$$.dirty[1] & /*lang*/
|
|
1516
|
+
4096 && G && lt(), t.$$.dirty[1] & /*translationurl*/
|
|
1517
|
+
16 && L && at(L), t.$$.dirty[0] & /*expiresAt, now*/
|
|
1511
1518
|
160 && o(9, i = de ? Math.max(0, Math.ceil((de - ie) / 1e3)) : 0), t.$$.dirty[0] & /*canResendAt, now*/
|
|
1512
1519
|
192 && o(21, a = ue ? Math.max(0, Math.ceil((ue - ie) / 1e3)) : 0), t.$$.dirty[0] & /*expiresAt, remainingSeconds*/
|
|
1513
1520
|
544 && o(44, s = !!de && i === 0), t.$$.dirty[0] & /*step, phone, $_*/
|
|
1514
|
-
1036 && o(15, T = v === "phone" &&
|
|
1515
|
-
256 && o(46, d =
|
|
1516
|
-
256 && o(47,
|
|
1517
|
-
98304 && o(45, p =
|
|
1518
|
-
256 && ($ =
|
|
1521
|
+
1036 && o(15, T = v === "phone" && j ? H(j) ? "" : f("invalidPhone") : ""), t.$$.dirty[0] & /*codeDigits*/
|
|
1522
|
+
256 && o(46, d = K.join("")), t.$$.dirty[0] & /*codeDigits*/
|
|
1523
|
+
256 && o(47, m = K.every((r) => /^\d$/.test(r))), t.$$.dirty[1] & /*isCodeFilled, codeCombined*/
|
|
1524
|
+
98304 && o(45, p = m && d.length === z), t.$$.dirty[0] & /*codeDigits*/
|
|
1525
|
+
256 && ($ = K.join("")), t.$$.dirty[0] & /*attemptsRemaining*/
|
|
1519
1526
|
16 | t.$$.dirty[1] & /*isCodeValid, isTokenExpired*/
|
|
1520
1527
|
24576 && o(20, g = !p || s || ne <= 0);
|
|
1521
1528
|
}, [
|
|
1522
|
-
|
|
1529
|
+
D,
|
|
1523
1530
|
P,
|
|
1524
1531
|
v,
|
|
1525
|
-
|
|
1532
|
+
j,
|
|
1526
1533
|
ne,
|
|
1527
1534
|
de,
|
|
1528
1535
|
ue,
|
|
1529
1536
|
ie,
|
|
1530
|
-
|
|
1537
|
+
K,
|
|
1531
1538
|
i,
|
|
1532
|
-
|
|
1539
|
+
f,
|
|
1533
1540
|
k,
|
|
1534
|
-
|
|
1541
|
+
V,
|
|
1535
1542
|
te,
|
|
1536
1543
|
S,
|
|
1537
1544
|
T,
|
|
1538
1545
|
y,
|
|
1539
|
-
B,
|
|
1540
|
-
me,
|
|
1541
1546
|
U,
|
|
1547
|
+
me,
|
|
1548
|
+
A,
|
|
1542
1549
|
g,
|
|
1543
1550
|
a,
|
|
1544
1551
|
ae,
|
|
@@ -1548,41 +1555,41 @@ function Bt(t, e, o) {
|
|
|
1548
1555
|
z,
|
|
1549
1556
|
ve,
|
|
1550
1557
|
oe,
|
|
1551
|
-
it,
|
|
1552
|
-
Ie,
|
|
1553
1558
|
rt,
|
|
1559
|
+
Ne,
|
|
1554
1560
|
nt,
|
|
1561
|
+
st,
|
|
1555
1562
|
h,
|
|
1556
1563
|
_,
|
|
1557
1564
|
L,
|
|
1558
|
-
|
|
1565
|
+
B,
|
|
1559
1566
|
Y,
|
|
1560
1567
|
X,
|
|
1561
1568
|
x,
|
|
1562
1569
|
R,
|
|
1563
1570
|
N,
|
|
1564
|
-
|
|
1571
|
+
E,
|
|
1565
1572
|
G,
|
|
1566
1573
|
s,
|
|
1567
1574
|
p,
|
|
1568
1575
|
d,
|
|
1569
|
-
|
|
1570
|
-
lt,
|
|
1576
|
+
m,
|
|
1571
1577
|
dt,
|
|
1572
1578
|
ut,
|
|
1573
1579
|
ct,
|
|
1574
1580
|
pt,
|
|
1575
|
-
ft
|
|
1581
|
+
ft,
|
|
1582
|
+
mt
|
|
1576
1583
|
];
|
|
1577
1584
|
}
|
|
1578
|
-
class
|
|
1585
|
+
class Gt extends Pt {
|
|
1579
1586
|
constructor(e) {
|
|
1580
|
-
super(),
|
|
1587
|
+
super(), yt(
|
|
1581
1588
|
this,
|
|
1582
1589
|
e,
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1590
|
+
Yt,
|
|
1591
|
+
Wt,
|
|
1592
|
+
kt,
|
|
1586
1593
|
{
|
|
1587
1594
|
clientstyling: 33,
|
|
1588
1595
|
clientstylingurl: 34,
|
|
@@ -1597,7 +1604,7 @@ class Yt extends ht {
|
|
|
1597
1604
|
endpoint: 42,
|
|
1598
1605
|
lang: 43
|
|
1599
1606
|
},
|
|
1600
|
-
|
|
1607
|
+
Vt,
|
|
1601
1608
|
[-1, -1, -1]
|
|
1602
1609
|
);
|
|
1603
1610
|
}
|
|
@@ -1674,7 +1681,7 @@ class Yt extends ht {
|
|
|
1674
1681
|
this.$$set({ lang: e }), re();
|
|
1675
1682
|
}
|
|
1676
1683
|
}
|
|
1677
|
-
|
|
1684
|
+
Et(Gt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, phoneregex: {}, phoneprefixeditable: {}, smscodelength: {}, smscodemaxattempts: {}, smscodettl: {}, resenddelay: {}, endpoint: {}, lang: {} }, [], [], !0);
|
|
1678
1685
|
export {
|
|
1679
|
-
|
|
1686
|
+
Gt as default
|
|
1680
1687
|
};
|