@everymatrix/general-player-forgot-password-form-nd 1.87.25 → 1.87.27
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-CzyXcPLy.cjs → GeneralPlayerForgotPasswordFormNd-BCevwAd8.cjs} +156 -156
- package/components/{GeneralPlayerForgotPasswordFormNd-CGPuWytt.js → GeneralPlayerForgotPasswordFormNd-Cv7dT37-.js} +1863 -1829
- package/components/{GeneralPlayerForgotPasswordFormNd-CWg7OQqq.js → GeneralPlayerForgotPasswordFormNd-DPJhHp-H.js} +1986 -1953
- package/components/{GeneralPlayerForgotPasswordSmsForm-CZ4sauHW.js → GeneralPlayerForgotPasswordSmsForm-Cw1wUFU2.js} +396 -396
- package/components/{GeneralPlayerForgotPasswordSmsForm-CSDhpguc.cjs → GeneralPlayerForgotPasswordSmsForm-D_Lmxb0s.cjs} +4 -4
- package/components/{GeneralPlayerForgotPasswordSmsForm-DEGxwZar.js → GeneralPlayerForgotPasswordSmsForm-DnCa4PzI.js} +416 -416
- 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
|
-
var
|
|
1
|
+
var le = (t, e, o) => new Promise((i, a) => {
|
|
2
2
|
var s = (p) => {
|
|
3
3
|
try {
|
|
4
4
|
m(o.next(p));
|
|
5
|
-
} catch (
|
|
6
|
-
a(
|
|
5
|
+
} catch (b) {
|
|
6
|
+
a(b);
|
|
7
7
|
}
|
|
8
8
|
}, d = (p) => {
|
|
9
9
|
try {
|
|
10
10
|
m(o.throw(p));
|
|
11
|
-
} catch (
|
|
12
|
-
a(
|
|
11
|
+
} catch (b) {
|
|
12
|
+
a(b);
|
|
13
13
|
}
|
|
14
14
|
}, m = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(s, d);
|
|
15
15
|
m((o = o.apply(t, e)).next());
|
|
16
16
|
});
|
|
17
|
-
import { i as
|
|
18
|
-
function
|
|
17
|
+
import { i as gt, s as vt, $ as Ee, a as ht, b as Pt, S as yt, c as kt, d as St, f as re, e as Rt, g as Q, t as ye, h as ae, j as Re, k as X, l as w, m as Ct, o as _t, n as zt, p as de, q as ke, r as Lt, u as n, v as V, w as l, x as we, y as _, z as q, A as Ue, B as je, C as Le, D as xe, E as Ce, F as Ae, G as xt, H as he, I as Tt, J as Mt, K as Et, L as jt, M as It } from "./GeneralPlayerForgotPasswordFormNd-DPJhHp-H.js";
|
|
18
|
+
function Nt(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 qt(t) {
|
|
22
22
|
const e = t - 1;
|
|
23
23
|
return e * e * e + 1;
|
|
24
24
|
}
|
|
25
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), m = +d.opacity, p = d.filter === "none" ? "" : d.filter,
|
|
28
|
+
function be(t, { delay: e = 0, duration: o = 400, easing: i = Nt, amount: a = 5, opacity: s = 0 } = {}) {
|
|
29
|
+
const d = getComputedStyle(t), m = +d.opacity, p = d.filter === "none" ? "" : d.filter, b = m * (1 - s), [f, v] = vt(a);
|
|
30
30
|
return {
|
|
31
31
|
delay: e,
|
|
32
32
|
duration: o,
|
|
33
33
|
easing: i,
|
|
34
|
-
css: (
|
|
34
|
+
css: (z, L) => `opacity: ${m - b * L}; filter: ${p} blur(${L * f}${v});`
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Fe(t, { delay: e = 0, duration: o = 400, easing: i = gt } = {}) {
|
|
38
38
|
const a = +getComputedStyle(t).opacity;
|
|
39
39
|
return {
|
|
40
40
|
delay: e,
|
|
@@ -43,30 +43,30 @@ function Ae(t, { delay: e = 0, duration: o = 400, easing: i = bt } = {}) {
|
|
|
43
43
|
css: (s) => `opacity: ${s * a}`
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
const d = getComputedStyle(t), m = +d.opacity, p = d.transform === "none" ? "" : d.transform,
|
|
46
|
+
function Ve(t, { delay: e = 0, duration: o = 400, easing: i = qt, start: a = 0, opacity: s = 0 } = {}) {
|
|
47
|
+
const d = getComputedStyle(t), m = +d.opacity, p = d.transform === "none" ? "" : d.transform, b = 1 - a, f = m * (1 - s);
|
|
48
48
|
return {
|
|
49
49
|
delay: e,
|
|
50
50
|
duration: o,
|
|
51
51
|
easing: i,
|
|
52
|
-
css: (
|
|
53
|
-
transform: ${p} scale(${1 -
|
|
54
|
-
opacity: ${m - f *
|
|
52
|
+
css: (v, z) => `
|
|
53
|
+
transform: ${p} scale(${1 - b * z});
|
|
54
|
+
opacity: ${m - f * z}
|
|
55
55
|
`
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Ut({ withLocale: t, translations: e }) {
|
|
59
59
|
Ee.subscribe((o) => {
|
|
60
|
-
o == null && (
|
|
60
|
+
o == null && (ht.set(e), Ee.set(t));
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function De(t, e) {
|
|
64
|
+
Pt(t, e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function At(t) {
|
|
67
67
|
Ee.set(t);
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const He = {
|
|
70
70
|
en: {
|
|
71
71
|
resetTitle: "Reset your password",
|
|
72
72
|
resetSubtitle: "Follow the steps below to securely reset your password.",
|
|
@@ -473,7 +473,7 @@ const De = {
|
|
|
473
473
|
couldNotUpdatePassword: "Could not update password. Please try again."
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
|
-
class
|
|
476
|
+
class Ke extends Error {
|
|
477
477
|
constructor(e, o, i) {
|
|
478
478
|
super(o), this.status = e, this.payload = i;
|
|
479
479
|
}
|
|
@@ -481,13 +481,13 @@ class He extends Error {
|
|
|
481
481
|
function Ie(t) {
|
|
482
482
|
return `reset_attempts_${t}`;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Oe(t, e) {
|
|
485
485
|
try {
|
|
486
486
|
localStorage.setItem(Ie(t), String(e));
|
|
487
487
|
} catch (o) {
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Ft(t) {
|
|
491
491
|
try {
|
|
492
492
|
const e = localStorage.getItem(Ie(t));
|
|
493
493
|
return e != null ? Math.max(0, parseInt(e, 10)) : null;
|
|
@@ -495,108 +495,108 @@ function At(t) {
|
|
|
495
495
|
return null;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Vt(t) {
|
|
499
499
|
try {
|
|
500
500
|
localStorage.removeItem(Ie(t));
|
|
501
501
|
} catch (e) {
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Dt(t) {
|
|
505
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 We(t, e, o) {
|
|
508
508
|
const i = t.slice();
|
|
509
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, m, p,
|
|
511
|
+
function Be(t) {
|
|
512
|
+
let e, o, i, a, s, d, m, p, b = (
|
|
513
513
|
/*$_*/
|
|
514
514
|
t[10]("resetTitle") + ""
|
|
515
|
-
), f,
|
|
515
|
+
), f, v, z, L = (
|
|
516
516
|
/*$_*/
|
|
517
517
|
t[10]("resetSubtitle") + ""
|
|
518
|
-
), B,
|
|
518
|
+
), B, G, D, $, x, k, N, E, Z, h = (
|
|
519
519
|
/*step*/
|
|
520
|
-
t[2] === "phone" &&
|
|
521
|
-
),
|
|
520
|
+
t[2] === "phone" && Ye(t)
|
|
521
|
+
), P = (
|
|
522
522
|
/*step*/
|
|
523
|
-
t[2] === "code" &&
|
|
523
|
+
t[2] === "code" && Je(t)
|
|
524
524
|
);
|
|
525
525
|
return {
|
|
526
526
|
c() {
|
|
527
|
-
e = w("div"), o = w("div"), i = w("button"), a =
|
|
527
|
+
e = w("div"), o = w("div"), i = w("button"), a = _("×"), m = q(), p = w("h2"), f = _(b), v = q(), z = w("p"), B = _(L), G = q(), h && h.c(), D = q(), P && P.c(), n(i, "class", "ResetPwdClose"), n(i, "type", "button"), n(i, "aria-label", s = /*$_*/
|
|
528
528
|
t[10]("close")), n(i, "title", d = /*$_*/
|
|
529
|
-
t[10]("close")), n(p, "id", "ResetPwdTitle"), n(p, "class", "ResetPwdTitle"), n(
|
|
529
|
+
t[10]("close")), n(p, "id", "ResetPwdTitle"), n(p, "class", "ResetPwdTitle"), n(z, "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(
|
|
532
|
-
|
|
531
|
+
m(S, j) {
|
|
532
|
+
X(S, e, j), l(e, o), l(o, i), l(i, a), l(o, m), l(o, p), l(p, f), l(o, v), l(o, z), l(z, B), l(o, G), h && h.m(o, null), l(o, D), P && P.m(o, null), N = !0, E || (Z = we(
|
|
533
533
|
i,
|
|
534
534
|
"click",
|
|
535
535
|
/*closeModal*/
|
|
536
536
|
t[25]
|
|
537
537
|
), E = !0);
|
|
538
538
|
},
|
|
539
|
-
p(
|
|
540
|
-
t =
|
|
539
|
+
p(S, j) {
|
|
540
|
+
t = S, (!N || j[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 || j[0] & /*$_*/
|
|
543
543
|
1024 && d !== (d = /*$_*/
|
|
544
|
-
t[10]("close"))) && n(i, "title", d), (!N ||
|
|
545
|
-
1024) &&
|
|
546
|
-
t[10]("resetTitle") + "") &&
|
|
544
|
+
t[10]("close"))) && n(i, "title", d), (!N || j[0] & /*$_*/
|
|
545
|
+
1024) && b !== (b = /*$_*/
|
|
546
|
+
t[10]("resetTitle") + "") && V(f, b), (!N || j[0] & /*$_*/
|
|
547
547
|
1024) && L !== (L = /*$_*/
|
|
548
|
-
t[10]("resetSubtitle") + "") &&
|
|
549
|
-
t[2] === "phone" ?
|
|
550
|
-
t[2] === "code" ?
|
|
548
|
+
t[10]("resetSubtitle") + "") && V(B, L), /*step*/
|
|
549
|
+
t[2] === "phone" ? h ? h.p(t, j) : (h = Ye(t), h.c(), h.m(o, D)) : h && (h.d(1), h = null), /*step*/
|
|
550
|
+
t[2] === "code" ? P ? P.p(t, j) : (P = Je(t), P.c(), P.m(o, null)) : P && (P.d(1), P = null);
|
|
551
551
|
},
|
|
552
|
-
i(
|
|
553
|
-
N || (
|
|
554
|
-
N && (x && x.end(1),
|
|
552
|
+
i(S) {
|
|
553
|
+
N || (S && ke(() => {
|
|
554
|
+
N && (x && x.end(1), $ = Lt(
|
|
555
555
|
o,
|
|
556
|
-
|
|
556
|
+
Ve,
|
|
557
557
|
/*cardIn*/
|
|
558
558
|
t[23]
|
|
559
|
-
),
|
|
560
|
-
}),
|
|
561
|
-
N && (
|
|
559
|
+
), $.start());
|
|
560
|
+
}), S && ke(() => {
|
|
561
|
+
N && (k || (k = de(
|
|
562
562
|
e,
|
|
563
|
-
|
|
563
|
+
Fe,
|
|
564
564
|
/*overlayFade*/
|
|
565
565
|
t[22],
|
|
566
566
|
!0
|
|
567
|
-
)),
|
|
567
|
+
)), k.run(1));
|
|
568
568
|
}), N = !0);
|
|
569
569
|
},
|
|
570
|
-
o(
|
|
571
|
-
|
|
570
|
+
o(S) {
|
|
571
|
+
$ && $.invalidate(), S && (x = zt(
|
|
572
572
|
o,
|
|
573
|
-
|
|
573
|
+
Ve,
|
|
574
574
|
/*cardOut*/
|
|
575
575
|
t[24]
|
|
576
|
-
)),
|
|
576
|
+
)), S && (k || (k = de(
|
|
577
577
|
e,
|
|
578
|
-
|
|
578
|
+
Fe,
|
|
579
579
|
/*overlayFade*/
|
|
580
580
|
t[22],
|
|
581
581
|
!1
|
|
582
|
-
)),
|
|
582
|
+
)), k.run(0)), N = !1;
|
|
583
583
|
},
|
|
584
|
-
d(
|
|
585
|
-
|
|
584
|
+
d(S) {
|
|
585
|
+
S && Q(e), h && h.d(), P && P.d(), S && x && x.end(), S && k && k.end(), E = !1, Z();
|
|
586
586
|
}
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
|
-
function
|
|
589
|
+
function Ye(t) {
|
|
590
590
|
let e, o, i = (
|
|
591
591
|
/*$_*/
|
|
592
592
|
t[10]("enterPhoneHelp") + ""
|
|
593
|
-
), a, s, d, m, p,
|
|
593
|
+
), a, s, d, m, p, b = (
|
|
594
594
|
/*$_*/
|
|
595
595
|
t[10]("countryCodeLabel") + ""
|
|
596
|
-
), f,
|
|
596
|
+
), f, v, z, L, B, G = (
|
|
597
597
|
/*$_*/
|
|
598
598
|
t[10]("phoneLabel") + ""
|
|
599
|
-
), D,
|
|
599
|
+
), D, $, x, k, N, E, Z, h, P, S = (
|
|
600
600
|
/*loading*/
|
|
601
601
|
(t[11] ? (
|
|
602
602
|
/*$_*/
|
|
@@ -605,42 +605,42 @@ function Be(t) {
|
|
|
605
605
|
/*$_*/
|
|
606
606
|
t[10]("requestCode")
|
|
607
607
|
)) + ""
|
|
608
|
-
),
|
|
609
|
-
function ge(
|
|
608
|
+
), j, ne, me;
|
|
609
|
+
function ge(g, y) {
|
|
610
610
|
return (
|
|
611
611
|
/*phoneprefixeditable*/
|
|
612
|
-
|
|
612
|
+
g[0] === "true" ? Kt : Ht
|
|
613
613
|
);
|
|
614
614
|
}
|
|
615
|
-
let
|
|
615
|
+
let ue = ge(t), U = ue(t), R = (
|
|
616
616
|
/*phoneError*/
|
|
617
|
-
t[15] &&
|
|
618
|
-
),
|
|
617
|
+
t[15] && Ge(t)
|
|
618
|
+
), C = (
|
|
619
619
|
/*phoneInfo*/
|
|
620
|
-
t[16] &&
|
|
620
|
+
t[16] && Ze(t)
|
|
621
621
|
);
|
|
622
622
|
return {
|
|
623
623
|
c() {
|
|
624
|
-
e = w("section"), o = w("p"), a =
|
|
624
|
+
e = w("section"), o = w("p"), a = _(i), s = q(), d = w("div"), m = w("div"), p = w("label"), f = _(b), v = q(), U.c(), z = q(), L = w("div"), B = w("label"), D = _(G), $ = q(), x = w("input"), N = q(), E = w("div"), R && R.c(), Z = q(), C && C.c(), h = q(), P = w("button"), j = _(S), n(o, "class", "ResetPwdHelp"), n(p, "class", "ResetPwdLabel"), n(p, "for", "ResetPwdPrefix"), n(m, "class", "ResetPwdField ResetPwdFieldPrefix"), Le(
|
|
625
625
|
m,
|
|
626
626
|
"ResetPwdFieldFilled",
|
|
627
627
|
/*mobilePrefix*/
|
|
628
628
|
t[14]
|
|
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",
|
|
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", k = /*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(E, "id", "ResetPwdRowErrorsPhone"), n(E, "class", "ResetPwdErrors"), n(E, "role", "alert"), n(E, "aria-live", "assertive"), 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(P, "class", "ResetPwdButton"), n(P, "type", "button"), P.disabled = /*loading*/
|
|
636
636
|
t[11], n(e, "class", "ResetPwdSection ResetPwdSectionPhone");
|
|
637
637
|
},
|
|
638
|
-
m(
|
|
639
|
-
|
|
638
|
+
m(g, y) {
|
|
639
|
+
X(g, e, y), l(e, o), l(o, a), l(e, s), l(e, d), l(d, m), l(m, p), l(p, f), l(m, v), U.m(m, null), l(d, z), l(d, L), l(L, B), l(B, D), l(L, $), l(L, x), xe(
|
|
640
640
|
x,
|
|
641
641
|
/*phone*/
|
|
642
642
|
t[3]
|
|
643
|
-
), l(e, N), l(e, E),
|
|
643
|
+
), l(e, N), l(e, E), R && R.m(E, null), l(E, Z), C && C.m(E, null), l(e, h), l(e, P), l(P, j), ne || (me = [
|
|
644
644
|
we(
|
|
645
645
|
x,
|
|
646
646
|
"input",
|
|
@@ -648,65 +648,65 @@ function Be(t) {
|
|
|
648
648
|
t[49]
|
|
649
649
|
),
|
|
650
650
|
we(
|
|
651
|
-
|
|
651
|
+
P,
|
|
652
652
|
"click",
|
|
653
653
|
/*handleRequestCode*/
|
|
654
654
|
t[30]
|
|
655
655
|
)
|
|
656
|
-
],
|
|
656
|
+
], ne = !0);
|
|
657
657
|
},
|
|
658
|
-
p(
|
|
659
|
-
|
|
658
|
+
p(g, y) {
|
|
659
|
+
y[0] & /*$_*/
|
|
660
660
|
1024 && i !== (i = /*$_*/
|
|
661
|
-
|
|
662
|
-
1024 &&
|
|
663
|
-
|
|
661
|
+
g[10]("enterPhoneHelp") + "") && V(a, i), y[0] & /*$_*/
|
|
662
|
+
1024 && b !== (b = /*$_*/
|
|
663
|
+
g[10]("countryCodeLabel") + "") && V(f, b), ue === (ue = ge(g)) && U ? U.p(g, y) : (U.d(1), U = ue(g), U && (U.c(), U.m(m, null))), y[0] & /*mobilePrefix*/
|
|
664
664
|
16384 && Le(
|
|
665
665
|
m,
|
|
666
666
|
"ResetPwdFieldFilled",
|
|
667
667
|
/*mobilePrefix*/
|
|
668
|
-
|
|
669
|
-
),
|
|
670
|
-
1024 &&
|
|
671
|
-
|
|
672
|
-
32768 &&
|
|
673
|
-
|
|
668
|
+
g[14]
|
|
669
|
+
), y[0] & /*$_*/
|
|
670
|
+
1024 && G !== (G = /*$_*/
|
|
671
|
+
g[10]("phoneLabel") + "") && V(D, G), y[0] & /*phoneError*/
|
|
672
|
+
32768 && k !== (k = /*phoneError*/
|
|
673
|
+
g[15] ? "true" : "false") && n(x, "aria-invalid", k), y[0] & /*phone*/
|
|
674
674
|
8 && xe(
|
|
675
675
|
x,
|
|
676
676
|
/*phone*/
|
|
677
|
-
|
|
678
|
-
),
|
|
677
|
+
g[3]
|
|
678
|
+
), y[0] & /*phone*/
|
|
679
679
|
8 && Le(
|
|
680
680
|
L,
|
|
681
681
|
"ResetPwdFieldFilled",
|
|
682
682
|
/*phone*/
|
|
683
|
-
|
|
683
|
+
g[3]
|
|
684
684
|
), /*phoneError*/
|
|
685
|
-
|
|
686
|
-
32768 &&
|
|
687
|
-
|
|
688
|
-
}),
|
|
689
|
-
|
|
690
|
-
65536 &&
|
|
691
|
-
|
|
692
|
-
}),
|
|
693
|
-
3072 &&
|
|
694
|
-
(
|
|
685
|
+
g[15] ? R ? (R.p(g, y), y[0] & /*phoneError*/
|
|
686
|
+
32768 && ae(R, 1)) : (R = Ge(g), R.c(), ae(R, 1), R.m(E, Z)) : R && (Ce(), ye(R, 1, 1, () => {
|
|
687
|
+
R = null;
|
|
688
|
+
}), Re()), /*phoneInfo*/
|
|
689
|
+
g[16] ? C ? (C.p(g, y), y[0] & /*phoneInfo*/
|
|
690
|
+
65536 && ae(C, 1)) : (C = Ze(g), C.c(), ae(C, 1), C.m(E, null)) : C && (Ce(), ye(C, 1, 1, () => {
|
|
691
|
+
C = null;
|
|
692
|
+
}), Re()), y[0] & /*loading, $_*/
|
|
693
|
+
3072 && S !== (S = /*loading*/
|
|
694
|
+
(g[11] ? (
|
|
695
695
|
/*$_*/
|
|
696
|
-
|
|
696
|
+
g[10]("requesting")
|
|
697
697
|
) : (
|
|
698
698
|
/*$_*/
|
|
699
|
-
|
|
700
|
-
)) + "") &&
|
|
701
|
-
2048 && (
|
|
702
|
-
|
|
699
|
+
g[10]("requestCode")
|
|
700
|
+
)) + "") && V(j, S), y[0] & /*loading*/
|
|
701
|
+
2048 && (P.disabled = /*loading*/
|
|
702
|
+
g[11]);
|
|
703
703
|
},
|
|
704
|
-
d(
|
|
705
|
-
|
|
704
|
+
d(g) {
|
|
705
|
+
g && Q(e), U.d(), R && R.d(), C && C.d(), ne = !1, je(me);
|
|
706
706
|
}
|
|
707
707
|
};
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Ht(t) {
|
|
710
710
|
let e, o, i, a;
|
|
711
711
|
return {
|
|
712
712
|
c() {
|
|
@@ -714,7 +714,7 @@ function Dt(t) {
|
|
|
714
714
|
t[0] !== "true", n(e, "autocomplete", "tel-country-code");
|
|
715
715
|
},
|
|
716
716
|
m(s, d) {
|
|
717
|
-
|
|
717
|
+
X(s, e, d), xe(
|
|
718
718
|
e,
|
|
719
719
|
/*mobilePrefix*/
|
|
720
720
|
t[14]
|
|
@@ -737,11 +737,11 @@ function Dt(t) {
|
|
|
737
737
|
);
|
|
738
738
|
},
|
|
739
739
|
d(s) {
|
|
740
|
-
s &&
|
|
740
|
+
s && Q(e), i = !1, a();
|
|
741
741
|
}
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Kt(t) {
|
|
745
745
|
let e, o;
|
|
746
746
|
return {
|
|
747
747
|
c() {
|
|
@@ -764,7 +764,7 @@ function Ht(t) {
|
|
|
764
764
|
);
|
|
765
765
|
},
|
|
766
766
|
m(i, a) {
|
|
767
|
-
|
|
767
|
+
X(i, e, a);
|
|
768
768
|
},
|
|
769
769
|
p(i, a) {
|
|
770
770
|
a[0] & /*phoneCodes*/
|
|
@@ -784,25 +784,25 @@ function Ht(t) {
|
|
|
784
784
|
i[10]("invalidPrefix")) && he(e, "errorMessage", o);
|
|
785
785
|
},
|
|
786
786
|
d(i) {
|
|
787
|
-
i &&
|
|
787
|
+
i && Q(e);
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function Ge(t) {
|
|
792
792
|
let e, o, i, a;
|
|
793
793
|
return {
|
|
794
794
|
c() {
|
|
795
|
-
e = w("div"), o =
|
|
795
|
+
e = w("div"), o = _(
|
|
796
796
|
/*phoneError*/
|
|
797
797
|
t[15]
|
|
798
798
|
), n(e, "class", "ResetPwdError");
|
|
799
799
|
},
|
|
800
800
|
m(s, d) {
|
|
801
|
-
|
|
801
|
+
X(s, e, d), l(e, o), a = !0;
|
|
802
802
|
},
|
|
803
803
|
p(s, d) {
|
|
804
804
|
(!a || d[0] & /*phoneError*/
|
|
805
|
-
32768) &&
|
|
805
|
+
32768) && V(
|
|
806
806
|
o,
|
|
807
807
|
/*phoneError*/
|
|
808
808
|
s[15]
|
|
@@ -810,32 +810,32 @@ function Ye(t) {
|
|
|
810
810
|
},
|
|
811
811
|
i(s) {
|
|
812
812
|
a || (s && ke(() => {
|
|
813
|
-
a && (i || (i =
|
|
813
|
+
a && (i || (i = de(e, be, { amount: 5 }, !0)), i.run(1));
|
|
814
814
|
}), a = !0);
|
|
815
815
|
},
|
|
816
816
|
o(s) {
|
|
817
|
-
s && (i || (i =
|
|
817
|
+
s && (i || (i = de(e, be, { amount: 5 }, !1)), i.run(0)), a = !1;
|
|
818
818
|
},
|
|
819
819
|
d(s) {
|
|
820
|
-
s &&
|
|
820
|
+
s && Q(e), s && i && i.end();
|
|
821
821
|
}
|
|
822
822
|
};
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function Ze(t) {
|
|
825
825
|
let e, o, i, a;
|
|
826
826
|
return {
|
|
827
827
|
c() {
|
|
828
|
-
e = w("div"), o =
|
|
828
|
+
e = w("div"), o = _(
|
|
829
829
|
/*phoneInfo*/
|
|
830
830
|
t[16]
|
|
831
831
|
), n(e, "class", "ResetPwdHint");
|
|
832
832
|
},
|
|
833
833
|
m(s, d) {
|
|
834
|
-
|
|
834
|
+
X(s, e, d), l(e, o), a = !0;
|
|
835
835
|
},
|
|
836
836
|
p(s, d) {
|
|
837
837
|
(!a || d[0] & /*phoneInfo*/
|
|
838
|
-
65536) &&
|
|
838
|
+
65536) && V(
|
|
839
839
|
o,
|
|
840
840
|
/*phoneInfo*/
|
|
841
841
|
s[16]
|
|
@@ -843,18 +843,18 @@ function Ge(t) {
|
|
|
843
843
|
},
|
|
844
844
|
i(s) {
|
|
845
845
|
a || (s && ke(() => {
|
|
846
|
-
a && (i || (i =
|
|
846
|
+
a && (i || (i = de(e, be, { amount: 5 }, !0)), i.run(1));
|
|
847
847
|
}), a = !0);
|
|
848
848
|
},
|
|
849
849
|
o(s) {
|
|
850
|
-
s && (i || (i =
|
|
850
|
+
s && (i || (i = de(e, be, { amount: 5 }, !1)), i.run(0)), a = !1;
|
|
851
851
|
},
|
|
852
852
|
d(s) {
|
|
853
|
-
s &&
|
|
853
|
+
s && Q(e), s && i && i.end();
|
|
854
854
|
}
|
|
855
855
|
};
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function Je(t) {
|
|
858
858
|
let e, o, i = (
|
|
859
859
|
/*$_*/
|
|
860
860
|
t[10]("enterCodeTitle") + ""
|
|
@@ -864,13 +864,13 @@ function Ze(t) {
|
|
|
864
864
|
/*codeLength*/
|
|
865
865
|
t[26]
|
|
866
866
|
)) + ""
|
|
867
|
-
), p,
|
|
867
|
+
), p, b, f, v, z, L = (
|
|
868
868
|
/*$_*/
|
|
869
869
|
t[10]("verificationCodeLabel") + ""
|
|
870
|
-
), B,
|
|
870
|
+
), B, G, D, $, x, k, N, E, Z, h, P, S, j, ne = (
|
|
871
871
|
/*$_*/
|
|
872
872
|
t[10]("attemptsLeft") + ""
|
|
873
|
-
),
|
|
873
|
+
), me, ge, ue, U, R, C, g, y, ie, ee, H, J, Pe = (
|
|
874
874
|
/*loading*/
|
|
875
875
|
(t[11] ? (
|
|
876
876
|
/*$_*/
|
|
@@ -879,127 +879,127 @@ function Ze(t) {
|
|
|
879
879
|
/*$_*/
|
|
880
880
|
t[10]("submitCode")
|
|
881
881
|
)) + ""
|
|
882
|
-
),
|
|
882
|
+
), Se, se, ve, ce, pe = Ae(Array(
|
|
883
883
|
/*codeLength*/
|
|
884
884
|
t[26]
|
|
885
|
-
)),
|
|
886
|
-
for (let u = 0; u <
|
|
887
|
-
|
|
888
|
-
let
|
|
885
|
+
)), A = [];
|
|
886
|
+
for (let u = 0; u < pe.length; u += 1)
|
|
887
|
+
A[u] = Qe(We(t, pe, u));
|
|
888
|
+
let Y = (
|
|
889
889
|
/*codeError*/
|
|
890
|
-
t[17] &&
|
|
891
|
-
),
|
|
890
|
+
t[17] && Xe(t)
|
|
891
|
+
), K = (
|
|
892
892
|
/*codeExpiredHint*/
|
|
893
893
|
t[18] && /*remainingSeconds*/
|
|
894
|
-
t[9] === 0 &&
|
|
895
|
-
),
|
|
894
|
+
t[9] === 0 && $e(t)
|
|
895
|
+
), T = (
|
|
896
896
|
/*expiresAt*/
|
|
897
|
-
t[5] &&
|
|
897
|
+
t[5] && et(t)
|
|
898
898
|
);
|
|
899
|
-
function
|
|
899
|
+
function fe(u, I) {
|
|
900
900
|
return (
|
|
901
901
|
/*canResendAt*/
|
|
902
902
|
u[6] && /*now*/
|
|
903
903
|
u[7] < /*canResendAt*/
|
|
904
|
-
u[6] ?
|
|
904
|
+
u[6] ? Wt : Ot
|
|
905
905
|
);
|
|
906
906
|
}
|
|
907
|
-
let
|
|
907
|
+
let F = fe(t), oe = F(t);
|
|
908
908
|
return {
|
|
909
909
|
c() {
|
|
910
|
-
e = w("section"), o = w("h3"), a =
|
|
911
|
-
for (let u = 0; u <
|
|
912
|
-
|
|
913
|
-
x = q(),
|
|
910
|
+
e = w("section"), o = w("h3"), a = _(i), s = q(), d = w("p"), p = _(m), b = q(), f = w("div"), v = w("div"), z = w("label"), B = _(L), G = q(), D = w("div");
|
|
911
|
+
for (let u = 0; u < A.length; u += 1)
|
|
912
|
+
A[u].c();
|
|
913
|
+
x = q(), k = w("div"), Y && Y.c(), N = q(), K && K.c(), E = q(), Z = w("div"), h = w("div"), P = w("div"), S = w("span"), j = w("strong"), me = _(ne), ge = _(":"), ue = q(), U = w("span"), R = _(
|
|
914
914
|
/*attemptsRemaining*/
|
|
915
915
|
t[4]
|
|
916
|
-
),
|
|
917
|
-
t[10]("verificationCodeLabel")), n(
|
|
916
|
+
), C = q(), T && T.c(), g = q(), y = w("button"), oe.c(), H = q(), J = w("button"), Se = _(Pe), n(o, "id", "ResetPwdCodeTitle"), n(o, "class", "ResetPwdStepTitle"), n(d, "class", "ResetPwdHelp"), n(z, "class", "ResetPwdLabel"), n(z, "for", "ResetPwdCode"), n(D, "class", "ResetPwdCodeGroup"), n(D, "role", "group"), n(D, "aria-label", $ = /*$_*/
|
|
917
|
+
t[10]("verificationCodeLabel")), n(v, "class", "ResetPwdField ResetPwdFieldCode"), n(f, "class", "ResetPwdRow"), n(f, "aria-describedby", "ResetPwdRowErrorsCode"), n(k, "id", "ResetPwdRowErrorsCode"), n(k, "class", "ResetPwdErrors"), n(k, "role", "alert"), n(k, "aria-live", "assertive"), n(U, "class", "ResetPwdAttempts"), n(S, "class", "ResetPwdMeta"), n(P, "class", "ResetPwdMetaRow"), n(y, "class", "ResetPwdLink"), n(y, "type", "button"), y.disabled = ie = /*loading*/
|
|
918
918
|
t[11] || /*canResendAt*/
|
|
919
919
|
t[6] && /*now*/
|
|
920
920
|
t[7] < /*canResendAt*/
|
|
921
|
-
t[6], n(
|
|
921
|
+
t[6], n(y, "aria-disabled", ee = /*loading*/
|
|
922
922
|
t[11] || /*canResendAt*/
|
|
923
923
|
t[6] && /*now*/
|
|
924
924
|
t[7] < /*canResendAt*/
|
|
925
|
-
t[6]), n(
|
|
925
|
+
t[6]), n(h, "class", "ResetPwdField ResetPwdFieldMeta"), n(Z, "class", "ResetPwdRow"), n(Z, "aria-describedby", "ResetPwdRowErrorsCode"), n(J, "class", "ResetPwdButton"), n(J, "type", "button"), J.disabled = se = /*loading*/
|
|
926
926
|
t[11] || /*disableSubmitCode*/
|
|
927
927
|
t[20], n(e, "class", "ResetPwdSection ResetPwdSectionCode"), n(e, "aria-labelledby", "ResetPwdCodeTitle");
|
|
928
928
|
},
|
|
929
929
|
m(u, I) {
|
|
930
|
-
|
|
931
|
-
for (let O = 0; O <
|
|
932
|
-
|
|
933
|
-
l(e, x), l(e,
|
|
930
|
+
X(u, e, I), l(e, o), l(o, a), l(e, s), l(e, d), l(d, p), l(e, b), l(e, f), l(f, v), l(v, z), l(z, B), l(v, G), l(v, D);
|
|
931
|
+
for (let O = 0; O < A.length; O += 1)
|
|
932
|
+
A[O] && A[O].m(D, null);
|
|
933
|
+
l(e, x), l(e, k), Y && Y.m(k, null), l(k, N), K && K.m(k, null), l(e, E), l(e, Z), l(Z, h), l(h, P), l(P, S), l(S, j), l(j, me), l(j, ge), l(S, ue), l(S, U), l(U, R), l(P, C), T && T.m(P, null), l(h, g), l(h, y), oe.m(y, null), l(e, H), l(e, J), l(J, Se), ve || (ce = [
|
|
934
934
|
we(
|
|
935
|
-
|
|
935
|
+
y,
|
|
936
936
|
"click",
|
|
937
937
|
/*handleResend*/
|
|
938
938
|
t[32]
|
|
939
939
|
),
|
|
940
940
|
we(
|
|
941
|
-
|
|
941
|
+
J,
|
|
942
942
|
"click",
|
|
943
943
|
/*handleVerifyCode*/
|
|
944
944
|
t[31]
|
|
945
945
|
)
|
|
946
|
-
],
|
|
946
|
+
], ve = !0);
|
|
947
947
|
},
|
|
948
948
|
p(u, I) {
|
|
949
949
|
if (I[0] & /*$_*/
|
|
950
950
|
1024 && i !== (i = /*$_*/
|
|
951
|
-
u[10]("enterCodeTitle") + "") &&
|
|
951
|
+
u[10]("enterCodeTitle") + "") && V(a, i), I[0] & /*$_*/
|
|
952
952
|
1024 && m !== (m = /*$_*/
|
|
953
953
|
u[10]("codeSubtitle").replace("{n}", String(
|
|
954
954
|
/*codeLength*/
|
|
955
955
|
u[26]
|
|
956
|
-
)) + "") &&
|
|
956
|
+
)) + "") && V(p, m), I[0] & /*$_*/
|
|
957
957
|
1024 && L !== (L = /*$_*/
|
|
958
|
-
u[10]("verificationCodeLabel") + "") &&
|
|
958
|
+
u[10]("verificationCodeLabel") + "") && V(B, L), I[0] & /*codeDigits, codeError, codeInputs, handleCodeInput, handleCodeKeyDown*/
|
|
959
959
|
403308800) {
|
|
960
|
-
|
|
960
|
+
pe = Ae(Array(
|
|
961
961
|
/*codeLength*/
|
|
962
962
|
u[26]
|
|
963
963
|
));
|
|
964
964
|
let O;
|
|
965
|
-
for (O = 0; O <
|
|
966
|
-
const
|
|
967
|
-
|
|
965
|
+
for (O = 0; O < pe.length; O += 1) {
|
|
966
|
+
const _e = We(u, pe, O);
|
|
967
|
+
A[O] ? A[O].p(_e, I) : (A[O] = Qe(_e), A[O].c(), A[O].m(D, null));
|
|
968
968
|
}
|
|
969
|
-
for (; O <
|
|
970
|
-
|
|
971
|
-
|
|
969
|
+
for (; O < A.length; O += 1)
|
|
970
|
+
A[O].d(1);
|
|
971
|
+
A.length = pe.length;
|
|
972
972
|
}
|
|
973
973
|
I[0] & /*$_*/
|
|
974
|
-
1024 &&
|
|
975
|
-
u[10]("verificationCodeLabel")) && n(D, "aria-label",
|
|
976
|
-
u[17] ?
|
|
977
|
-
131072 &&
|
|
978
|
-
|
|
979
|
-
}),
|
|
974
|
+
1024 && $ !== ($ = /*$_*/
|
|
975
|
+
u[10]("verificationCodeLabel")) && n(D, "aria-label", $), /*codeError*/
|
|
976
|
+
u[17] ? Y ? (Y.p(u, I), I[0] & /*codeError*/
|
|
977
|
+
131072 && ae(Y, 1)) : (Y = Xe(u), Y.c(), ae(Y, 1), Y.m(k, N)) : Y && (Ce(), ye(Y, 1, 1, () => {
|
|
978
|
+
Y = null;
|
|
979
|
+
}), Re()), /*codeExpiredHint*/
|
|
980
980
|
u[18] && /*remainingSeconds*/
|
|
981
|
-
u[9] === 0 ?
|
|
982
|
-
262656 &&
|
|
983
|
-
|
|
984
|
-
}),
|
|
985
|
-
1024 &&
|
|
986
|
-
u[10]("attemptsLeft") + "") &&
|
|
987
|
-
16 &&
|
|
988
|
-
|
|
981
|
+
u[9] === 0 ? K ? (K.p(u, I), I[0] & /*codeExpiredHint, remainingSeconds*/
|
|
982
|
+
262656 && ae(K, 1)) : (K = $e(u), K.c(), ae(K, 1), K.m(k, null)) : K && (Ce(), ye(K, 1, 1, () => {
|
|
983
|
+
K = null;
|
|
984
|
+
}), Re()), I[0] & /*$_*/
|
|
985
|
+
1024 && ne !== (ne = /*$_*/
|
|
986
|
+
u[10]("attemptsLeft") + "") && V(me, ne), I[0] & /*attemptsRemaining*/
|
|
987
|
+
16 && V(
|
|
988
|
+
R,
|
|
989
989
|
/*attemptsRemaining*/
|
|
990
990
|
u[4]
|
|
991
991
|
), /*expiresAt*/
|
|
992
|
-
u[5] ?
|
|
993
|
-
2240 &&
|
|
992
|
+
u[5] ? T ? T.p(u, I) : (T = et(u), T.c(), T.m(P, null)) : T && (T.d(1), T = null), F === (F = fe(u)) && oe ? oe.p(u, I) : (oe.d(1), oe = F(u), oe && (oe.c(), oe.m(y, null))), I[0] & /*loading, canResendAt, now*/
|
|
993
|
+
2240 && ie !== (ie = /*loading*/
|
|
994
994
|
u[11] || /*canResendAt*/
|
|
995
995
|
u[6] && /*now*/
|
|
996
996
|
u[7] < /*canResendAt*/
|
|
997
|
-
u[6]) && (
|
|
998
|
-
2240 &&
|
|
997
|
+
u[6]) && (y.disabled = ie), I[0] & /*loading, canResendAt, now*/
|
|
998
|
+
2240 && ee !== (ee = /*loading*/
|
|
999
999
|
u[11] || /*canResendAt*/
|
|
1000
1000
|
u[6] && /*now*/
|
|
1001
1001
|
u[7] < /*canResendAt*/
|
|
1002
|
-
u[6]) && n(
|
|
1002
|
+
u[6]) && n(y, "aria-disabled", ee), I[0] & /*loading, $_*/
|
|
1003
1003
|
3072 && Pe !== (Pe = /*loading*/
|
|
1004
1004
|
(u[11] ? (
|
|
1005
1005
|
/*$_*/
|
|
@@ -1007,17 +1007,17 @@ function Ze(t) {
|
|
|
1007
1007
|
) : (
|
|
1008
1008
|
/*$_*/
|
|
1009
1009
|
u[10]("submitCode")
|
|
1010
|
-
)) + "") &&
|
|
1011
|
-
1050624 &&
|
|
1010
|
+
)) + "") && V(Se, Pe), I[0] & /*loading, disableSubmitCode*/
|
|
1011
|
+
1050624 && se !== (se = /*loading*/
|
|
1012
1012
|
u[11] || /*disableSubmitCode*/
|
|
1013
|
-
u[20]) && (
|
|
1013
|
+
u[20]) && (J.disabled = se);
|
|
1014
1014
|
},
|
|
1015
1015
|
d(u) {
|
|
1016
|
-
u &&
|
|
1016
|
+
u && Q(e), xt(A, u), Y && Y.d(), K && K.d(), T && T.d(), oe.d(), ve = !1, je(ce);
|
|
1017
1017
|
}
|
|
1018
1018
|
};
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function Qe(t) {
|
|
1021
1021
|
let e, o, i, a = (
|
|
1022
1022
|
/*index*/
|
|
1023
1023
|
t[74]
|
|
@@ -1029,23 +1029,23 @@ function Je(t) {
|
|
|
1029
1029
|
/*input_binding*/
|
|
1030
1030
|
t[50](null, a)
|
|
1031
1031
|
);
|
|
1032
|
-
function
|
|
1032
|
+
function b(...v) {
|
|
1033
1033
|
return (
|
|
1034
1034
|
/*input_handler*/
|
|
1035
1035
|
t[51](
|
|
1036
1036
|
/*index*/
|
|
1037
1037
|
t[74],
|
|
1038
|
-
...
|
|
1038
|
+
...v
|
|
1039
1039
|
)
|
|
1040
1040
|
);
|
|
1041
1041
|
}
|
|
1042
|
-
function f(...
|
|
1042
|
+
function f(...v) {
|
|
1043
1043
|
return (
|
|
1044
1044
|
/*keydown_handler*/
|
|
1045
1045
|
t[52](
|
|
1046
1046
|
/*index*/
|
|
1047
1047
|
t[74],
|
|
1048
|
-
...
|
|
1048
|
+
...v
|
|
1049
1049
|
)
|
|
1050
1050
|
);
|
|
1051
1051
|
}
|
|
@@ -1058,44 +1058,44 @@ function Je(t) {
|
|
|
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
|
-
m(
|
|
1062
|
-
|
|
1063
|
-
we(e, "input",
|
|
1061
|
+
m(v, z) {
|
|
1062
|
+
X(v, e, z), m(), s || (d = [
|
|
1063
|
+
we(e, "input", b),
|
|
1064
1064
|
we(e, "keydown", f)
|
|
1065
1065
|
], s = !0);
|
|
1066
1066
|
},
|
|
1067
|
-
p(
|
|
1068
|
-
t =
|
|
1067
|
+
p(v, z) {
|
|
1068
|
+
t = v, z[0] & /*codeDigits*/
|
|
1069
1069
|
256 && o !== (o = /*codeDigits*/
|
|
1070
1070
|
t[8][
|
|
1071
1071
|
/*index*/
|
|
1072
1072
|
t[74]
|
|
1073
|
-
]) && e.value !== o && (e.value = o),
|
|
1073
|
+
]) && e.value !== o && (e.value = o), z[0] & /*codeError*/
|
|
1074
1074
|
131072 && i !== (i = /*codeError*/
|
|
1075
1075
|
t[17] ? "true" : "false") && n(e, "aria-invalid", i), a !== /*index*/
|
|
1076
1076
|
t[74] && (p(), a = /*index*/
|
|
1077
1077
|
t[74], m());
|
|
1078
1078
|
},
|
|
1079
|
-
d(
|
|
1080
|
-
|
|
1079
|
+
d(v) {
|
|
1080
|
+
v && Q(e), p(), s = !1, je(d);
|
|
1081
1081
|
}
|
|
1082
1082
|
};
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Xe(t) {
|
|
1085
1085
|
let e, o, i, a;
|
|
1086
1086
|
return {
|
|
1087
1087
|
c() {
|
|
1088
|
-
e = w("div"), o =
|
|
1088
|
+
e = w("div"), o = _(
|
|
1089
1089
|
/*codeError*/
|
|
1090
1090
|
t[17]
|
|
1091
1091
|
), n(e, "class", "ResetPwdError");
|
|
1092
1092
|
},
|
|
1093
1093
|
m(s, d) {
|
|
1094
|
-
|
|
1094
|
+
X(s, e, d), l(e, o), a = !0;
|
|
1095
1095
|
},
|
|
1096
1096
|
p(s, d) {
|
|
1097
1097
|
(!a || d[0] & /*codeError*/
|
|
1098
|
-
131072) &&
|
|
1098
|
+
131072) && V(
|
|
1099
1099
|
o,
|
|
1100
1100
|
/*codeError*/
|
|
1101
1101
|
s[17]
|
|
@@ -1103,32 +1103,32 @@ function Qe(t) {
|
|
|
1103
1103
|
},
|
|
1104
1104
|
i(s) {
|
|
1105
1105
|
a || (s && ke(() => {
|
|
1106
|
-
a && (i || (i =
|
|
1106
|
+
a && (i || (i = de(e, be, { amount: 5 }, !0)), i.run(1));
|
|
1107
1107
|
}), a = !0);
|
|
1108
1108
|
},
|
|
1109
1109
|
o(s) {
|
|
1110
|
-
s && (i || (i =
|
|
1110
|
+
s && (i || (i = de(e, be, { amount: 5 }, !1)), i.run(0)), a = !1;
|
|
1111
1111
|
},
|
|
1112
1112
|
d(s) {
|
|
1113
|
-
s &&
|
|
1113
|
+
s && Q(e), s && i && i.end();
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function $e(t) {
|
|
1118
1118
|
let e, o, i, a;
|
|
1119
1119
|
return {
|
|
1120
1120
|
c() {
|
|
1121
|
-
e = w("div"), o =
|
|
1121
|
+
e = w("div"), o = _(
|
|
1122
1122
|
/*codeExpiredHint*/
|
|
1123
1123
|
t[18]
|
|
1124
1124
|
), n(e, "class", "ResetPwdHint");
|
|
1125
1125
|
},
|
|
1126
1126
|
m(s, d) {
|
|
1127
|
-
|
|
1127
|
+
X(s, e, d), l(e, o), a = !0;
|
|
1128
1128
|
},
|
|
1129
1129
|
p(s, d) {
|
|
1130
1130
|
(!a || d[0] & /*codeExpiredHint*/
|
|
1131
|
-
262144) &&
|
|
1131
|
+
262144) && V(
|
|
1132
1132
|
o,
|
|
1133
1133
|
/*codeExpiredHint*/
|
|
1134
1134
|
s[18]
|
|
@@ -1136,137 +1136,137 @@ function Xe(t) {
|
|
|
1136
1136
|
},
|
|
1137
1137
|
i(s) {
|
|
1138
1138
|
a || (s && ke(() => {
|
|
1139
|
-
a && (i || (i =
|
|
1139
|
+
a && (i || (i = de(e, be, { amount: 5 }, !0)), i.run(1));
|
|
1140
1140
|
}), a = !0);
|
|
1141
1141
|
},
|
|
1142
1142
|
o(s) {
|
|
1143
|
-
s && (i || (i =
|
|
1143
|
+
s && (i || (i = de(e, be, { amount: 5 }, !1)), i.run(0)), a = !1;
|
|
1144
1144
|
},
|
|
1145
1145
|
d(s) {
|
|
1146
|
-
s &&
|
|
1146
|
+
s && Q(e), s && i && i.end();
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function et(t) {
|
|
1151
1151
|
let e, o, i = (
|
|
1152
1152
|
/*$_*/
|
|
1153
1153
|
t[10]("expiresIn") + ""
|
|
1154
|
-
), a, s, d, m, p,
|
|
1154
|
+
), a, s, d, m, p, b;
|
|
1155
1155
|
return {
|
|
1156
1156
|
c() {
|
|
1157
|
-
e = w("span"), o = w("strong"), a =
|
|
1157
|
+
e = w("span"), o = w("strong"), a = _(i), s = _(":"), d = q(), m = w("span"), p = _(
|
|
1158
1158
|
/*remainingSeconds*/
|
|
1159
1159
|
t[9]
|
|
1160
|
-
),
|
|
1160
|
+
), b = _("s"), n(m, "class", "ResetPwdExpires"), n(e, "class", "ResetPwdMeta");
|
|
1161
1161
|
},
|
|
1162
|
-
m(f,
|
|
1163
|
-
|
|
1162
|
+
m(f, v) {
|
|
1163
|
+
X(f, e, v), l(e, o), l(o, a), l(o, s), l(e, d), l(e, m), l(m, p), l(m, b);
|
|
1164
1164
|
},
|
|
1165
|
-
p(f,
|
|
1166
|
-
|
|
1165
|
+
p(f, v) {
|
|
1166
|
+
v[0] & /*$_*/
|
|
1167
1167
|
1024 && i !== (i = /*$_*/
|
|
1168
|
-
f[10]("expiresIn") + "") &&
|
|
1169
|
-
512 &&
|
|
1168
|
+
f[10]("expiresIn") + "") && V(a, i), v[0] & /*remainingSeconds*/
|
|
1169
|
+
512 && V(
|
|
1170
1170
|
p,
|
|
1171
1171
|
/*remainingSeconds*/
|
|
1172
1172
|
f[9]
|
|
1173
1173
|
);
|
|
1174
1174
|
},
|
|
1175
1175
|
d(f) {
|
|
1176
|
-
f &&
|
|
1176
|
+
f && Q(e);
|
|
1177
1177
|
}
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function Ot(t) {
|
|
1181
1181
|
let e = (
|
|
1182
1182
|
/*$_*/
|
|
1183
1183
|
t[10]("resendCode") + ""
|
|
1184
1184
|
), o;
|
|
1185
1185
|
return {
|
|
1186
1186
|
c() {
|
|
1187
|
-
o =
|
|
1187
|
+
o = _(e);
|
|
1188
1188
|
},
|
|
1189
1189
|
m(i, a) {
|
|
1190
|
-
|
|
1190
|
+
X(i, o, a);
|
|
1191
1191
|
},
|
|
1192
1192
|
p(i, a) {
|
|
1193
1193
|
a[0] & /*$_*/
|
|
1194
1194
|
1024 && e !== (e = /*$_*/
|
|
1195
|
-
i[10]("resendCode") + "") &&
|
|
1195
|
+
i[10]("resendCode") + "") && V(o, e);
|
|
1196
1196
|
},
|
|
1197
1197
|
d(i) {
|
|
1198
|
-
i &&
|
|
1198
|
+
i && Q(o);
|
|
1199
1199
|
}
|
|
1200
1200
|
};
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function Wt(t) {
|
|
1203
1203
|
let e = (
|
|
1204
1204
|
/*$_*/
|
|
1205
1205
|
t[10]("resendCode") + ""
|
|
1206
1206
|
), o, i, a, s, d, m;
|
|
1207
1207
|
return {
|
|
1208
1208
|
c() {
|
|
1209
|
-
o =
|
|
1209
|
+
o = _(e), i = _(" ("), a = w("span"), s = _(
|
|
1210
1210
|
/*resendSeconds*/
|
|
1211
1211
|
t[21]
|
|
1212
|
-
), d =
|
|
1212
|
+
), d = _("s"), m = _(")"), n(a, "class", "ResetPwdResend");
|
|
1213
1213
|
},
|
|
1214
|
-
m(p,
|
|
1215
|
-
|
|
1214
|
+
m(p, b) {
|
|
1215
|
+
X(p, o, b), X(p, i, b), X(p, a, b), l(a, s), l(a, d), X(p, m, b);
|
|
1216
1216
|
},
|
|
1217
|
-
p(p,
|
|
1218
|
-
|
|
1217
|
+
p(p, b) {
|
|
1218
|
+
b[0] & /*$_*/
|
|
1219
1219
|
1024 && e !== (e = /*$_*/
|
|
1220
|
-
p[10]("resendCode") + "") &&
|
|
1221
|
-
2097152 &&
|
|
1220
|
+
p[10]("resendCode") + "") && V(o, e), b[0] & /*resendSeconds*/
|
|
1221
|
+
2097152 && V(
|
|
1222
1222
|
s,
|
|
1223
1223
|
/*resendSeconds*/
|
|
1224
1224
|
p[21]
|
|
1225
1225
|
);
|
|
1226
1226
|
},
|
|
1227
1227
|
d(p) {
|
|
1228
|
-
p && (
|
|
1228
|
+
p && (Q(o), Q(i), Q(a), Q(m));
|
|
1229
1229
|
}
|
|
1230
1230
|
};
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function Bt(t) {
|
|
1233
1233
|
let e, o = (
|
|
1234
1234
|
/*isModalOpen*/
|
|
1235
|
-
t[12] &&
|
|
1235
|
+
t[12] && Be(t)
|
|
1236
1236
|
);
|
|
1237
1237
|
return {
|
|
1238
1238
|
c() {
|
|
1239
1239
|
e = w("div"), o && o.c();
|
|
1240
1240
|
},
|
|
1241
1241
|
m(i, a) {
|
|
1242
|
-
|
|
1242
|
+
X(i, e, a), o && o.m(e, null), t[53](e);
|
|
1243
1243
|
},
|
|
1244
1244
|
p(i, a) {
|
|
1245
1245
|
/*isModalOpen*/
|
|
1246
1246
|
i[12] ? o ? (o.p(i, a), a[0] & /*isModalOpen*/
|
|
1247
|
-
4096 &&
|
|
1247
|
+
4096 && ae(o, 1)) : (o = Be(i), o.c(), ae(o, 1), o.m(e, null)) : o && (Ce(), ye(o, 1, 1, () => {
|
|
1248
1248
|
o = null;
|
|
1249
|
-
}),
|
|
1249
|
+
}), Re());
|
|
1250
1250
|
},
|
|
1251
1251
|
i(i) {
|
|
1252
|
-
|
|
1252
|
+
ae(o);
|
|
1253
1253
|
},
|
|
1254
1254
|
o(i) {
|
|
1255
1255
|
ye(o);
|
|
1256
1256
|
},
|
|
1257
1257
|
d(i) {
|
|
1258
|
-
i &&
|
|
1258
|
+
i && Q(e), o && o.d(), t[53](null);
|
|
1259
1259
|
}
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Yt(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 tt(t, e = "error") {
|
|
1270
1270
|
window.postMessage(
|
|
1271
1271
|
{
|
|
1272
1272
|
type: "WidgetNotification",
|
|
@@ -1275,27 +1275,27 @@ function et(t, e = "error") {
|
|
|
1275
1275
|
window.location.href
|
|
1276
1276
|
);
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1279
|
-
let i, a, s, d, m, p,
|
|
1280
|
-
|
|
1281
|
-
let { clientstyling:
|
|
1282
|
-
const
|
|
1278
|
+
function Gt(t, e, o) {
|
|
1279
|
+
let i, a, s, d, m, p, b, f;
|
|
1280
|
+
Ct(t, It, (r) => o(10, f = r));
|
|
1281
|
+
let { clientstyling: v = "" } = e, { clientstylingurl: z = "" } = e, { translationurl: L = "" } = e, { mbsource: B } = e, { phoneregex: G = "" } = e, { phoneprefixeditable: D = "true" } = e, { smscodelength: $ = "6" } = e, { smscodemaxattempts: x = "5" } = e, { smscodettl: k = "5" } = e, { resenddelay: N = "1" } = e, { endpoint: E = "" } = e, { lang: Z = "en" } = e, h, P, S = "phone", j = !1, ne = !0;
|
|
1282
|
+
const me = { duration: 140, easing: Me }, ge = {
|
|
1283
1283
|
duration: 220,
|
|
1284
1284
|
start: 0.96,
|
|
1285
1285
|
easing: Me
|
|
1286
|
-
},
|
|
1286
|
+
}, ue = {
|
|
1287
1287
|
duration: 140,
|
|
1288
1288
|
start: 1,
|
|
1289
1289
|
easing: Me
|
|
1290
1290
|
};
|
|
1291
|
-
let
|
|
1291
|
+
let U = [], R = "", C = "", g = "", y = "", ie = null, ee = "", H = "", J = /^[\d\.]+$/.test(x) ? Number(x) : 5, Pe = Number(/^[\d\.]+$/.test(k) ? k : 5) * 60 * 1e3, Se = Number(/^[\d\.]+$/.test(N) ? N : 1) * 60 * 1e3, se = null, ve = "", ce = null, pe = null, A = Date.now();
|
|
1292
1292
|
setInterval(
|
|
1293
1293
|
() => {
|
|
1294
|
-
o(7,
|
|
1294
|
+
o(7, A = Date.now());
|
|
1295
1295
|
},
|
|
1296
1296
|
250
|
|
1297
1297
|
);
|
|
1298
|
-
function
|
|
1298
|
+
function Y() {
|
|
1299
1299
|
try {
|
|
1300
1300
|
window.postMessage(
|
|
1301
1301
|
{
|
|
@@ -1306,68 +1306,68 @@ function Yt(t, e, o) {
|
|
|
1306
1306
|
);
|
|
1307
1307
|
} catch (r) {
|
|
1308
1308
|
}
|
|
1309
|
-
o(12,
|
|
1309
|
+
o(12, ne = !1);
|
|
1310
1310
|
}
|
|
1311
|
-
function
|
|
1312
|
-
return
|
|
1311
|
+
function K(r) {
|
|
1312
|
+
return G ? (typeof G == "string" ? new RegExp(G) : G).test(r.trim()) : !1;
|
|
1313
1313
|
}
|
|
1314
|
-
let
|
|
1315
|
-
function
|
|
1314
|
+
let T = Number($), fe = [], F = Array(Number(T)).fill("");
|
|
1315
|
+
function oe(r, c) {
|
|
1316
1316
|
const M = r.target.value.replace(/\D/g, "");
|
|
1317
1317
|
if (M.length === 1)
|
|
1318
|
-
o(8,
|
|
1318
|
+
o(8, F[c] = M, F), I(c);
|
|
1319
1319
|
else if (M.length > 1) {
|
|
1320
|
-
const
|
|
1321
|
-
|
|
1322
|
-
o(8,
|
|
1323
|
-
}),
|
|
1320
|
+
const te = M.split("").slice(0, T - c);
|
|
1321
|
+
te.forEach((ze, bt) => {
|
|
1322
|
+
o(8, F[c + bt] = ze, F);
|
|
1323
|
+
}), _e(c + te.length - 1);
|
|
1324
1324
|
}
|
|
1325
|
-
|
|
1326
|
-
}
|
|
1327
|
-
function oe(r, c) {
|
|
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();
|
|
1325
|
+
ee = F.join("");
|
|
1329
1326
|
}
|
|
1330
|
-
function u(r) {
|
|
1331
|
-
|
|
1332
|
-
r < z - 1 && ((c = A[r + 1]) == null || c.focus());
|
|
1327
|
+
function u(r, c) {
|
|
1328
|
+
r.key === "Backspace" ? F[c] ? o(8, F[c] = "", F) : c > 0 && (O(c), o(8, F[c - 1] = "", F)) : !/\d/.test(r.key) && r.key !== "Tab" && r.key.length === 1 && r.preventDefault();
|
|
1333
1329
|
}
|
|
1334
1330
|
function I(r) {
|
|
1335
1331
|
var c;
|
|
1336
|
-
r
|
|
1332
|
+
r < T - 1 && ((c = fe[r + 1]) == null || c.focus());
|
|
1337
1333
|
}
|
|
1338
1334
|
function O(r) {
|
|
1339
1335
|
var c;
|
|
1340
|
-
r
|
|
1336
|
+
r > 0 && ((c = fe[r - 1]) == null || c.focus());
|
|
1337
|
+
}
|
|
1338
|
+
function _e(r) {
|
|
1339
|
+
var c;
|
|
1340
|
+
r >= 0 && r < T && ((c = fe[r]) == null || c.focus());
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1342
|
+
function Ne(r, c) {
|
|
1343
|
+
return le(this, null, function* () {
|
|
1344
1344
|
var ze;
|
|
1345
1345
|
const W = yield fetch(r, {
|
|
1346
1346
|
method: "POST",
|
|
1347
1347
|
headers: { "Content-Type": "application/json" },
|
|
1348
1348
|
body: void 0
|
|
1349
|
-
}), M = yield W.text(),
|
|
1349
|
+
}), M = yield W.text(), te = M ? Yt(M) : void 0;
|
|
1350
1350
|
if (!W.ok)
|
|
1351
|
-
throw new
|
|
1352
|
-
return
|
|
1351
|
+
throw new Ke(W.status, (ze = te == null ? void 0 : te.error) != null ? ze : W.statusText, te);
|
|
1352
|
+
return te != null ? te : {};
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return
|
|
1355
|
+
function ot(r) {
|
|
1356
|
+
return le(this, null, function* () {
|
|
1357
1357
|
const { mobileNumber: c, mobilePrefix: W } = r, M = new URLSearchParams({ mobileNumber: c });
|
|
1358
1358
|
W && M.set("mobilePrefix", W);
|
|
1359
|
-
const
|
|
1360
|
-
return yield
|
|
1359
|
+
const te = `${E}/v1/player/resetPasswordByMobilePhone?${M.toString()}`;
|
|
1360
|
+
return yield Ne(te);
|
|
1361
1361
|
});
|
|
1362
1362
|
}
|
|
1363
|
-
function
|
|
1364
|
-
return
|
|
1365
|
-
const { tokenId: c, validationCode: W } = r, M = new URLSearchParams({ tokenId: c, validationCode: W }),
|
|
1366
|
-
return yield
|
|
1363
|
+
function it(r) {
|
|
1364
|
+
return le(this, null, function* () {
|
|
1365
|
+
const { tokenId: c, validationCode: W } = r, M = new URLSearchParams({ tokenId: c, validationCode: W }), te = `${E}/v1/player/resetPasswordByMobilePhone/validate?${M.toString()}`;
|
|
1366
|
+
return yield Ne(te);
|
|
1367
1367
|
});
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1369
|
+
function rt() {
|
|
1370
|
+
return le(this, null, function* () {
|
|
1371
1371
|
const r = new URL(`${E}/v1/player/operatorSupportedPhoneCodes`), c = yield fetch(r.href);
|
|
1372
1372
|
try {
|
|
1373
1373
|
return (yield c.json()).phoneCodes.map((M) => ({ label: M, value: M }));
|
|
@@ -1376,220 +1376,220 @@ function Yt(t, e, o) {
|
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1379
|
+
function nt(r) {
|
|
1380
1380
|
const c = r.target.value;
|
|
1381
|
-
o(14,
|
|
1381
|
+
o(14, C = c);
|
|
1382
1382
|
}
|
|
1383
|
-
function
|
|
1384
|
-
return
|
|
1385
|
-
o(15,
|
|
1383
|
+
function qe() {
|
|
1384
|
+
return le(this, null, function* () {
|
|
1385
|
+
o(15, g = ""), o(16, y = ""), o(17, H = ""), o(11, j = !0);
|
|
1386
1386
|
try {
|
|
1387
|
-
if (!
|
|
1388
|
-
o(15,
|
|
1387
|
+
if (!K(R)) {
|
|
1388
|
+
o(15, g = f("invalidPhone"));
|
|
1389
1389
|
return;
|
|
1390
1390
|
}
|
|
1391
|
-
const r = yield
|
|
1392
|
-
mobileNumber:
|
|
1393
|
-
mobilePrefix: (
|
|
1391
|
+
const r = yield ot({
|
|
1392
|
+
mobileNumber: R.trim(),
|
|
1393
|
+
mobilePrefix: (C == null ? void 0 : C.trim()) || void 0
|
|
1394
1394
|
});
|
|
1395
1395
|
if (r != null && r.tokenId) {
|
|
1396
|
-
|
|
1397
|
-
const c =
|
|
1398
|
-
o(4,
|
|
1396
|
+
ie = r.tokenId, o(5, se = Date.now() + Pe), o(6, ce = Date.now() + Se), o(18, ve = ""), ee = "", o(8, F = Array.from({ length: T }, () => ""));
|
|
1397
|
+
const c = Ft(ie);
|
|
1398
|
+
o(4, J = c != null ? c : Number(x)), Oe(ie, J), o(2, S = "code");
|
|
1399
1399
|
} else
|
|
1400
1400
|
o(16, y = f("genericIfRegistered"));
|
|
1401
1401
|
} catch (r) {
|
|
1402
1402
|
const { message: c, thirdPartyResponse: { message: W } = {} } = r;
|
|
1403
|
-
o(15,
|
|
1403
|
+
o(15, g = W || c), tt(g);
|
|
1404
1404
|
} finally {
|
|
1405
|
-
o(11,
|
|
1405
|
+
o(11, j = !1);
|
|
1406
1406
|
}
|
|
1407
1407
|
});
|
|
1408
1408
|
}
|
|
1409
1409
|
function Te() {
|
|
1410
|
-
o(4,
|
|
1410
|
+
o(4, J = Math.max(0, J - 1)), Oe(ie, J);
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1413
|
-
return
|
|
1414
|
-
o(17,
|
|
1412
|
+
function st() {
|
|
1413
|
+
return le(this, null, function* () {
|
|
1414
|
+
o(17, H = ""), o(11, j = !0);
|
|
1415
1415
|
try {
|
|
1416
|
-
if (
|
|
1417
|
-
o(17,
|
|
1416
|
+
if (!ee || ee.trim().length !== T || !/^\d+$/.test(ee.trim())) {
|
|
1417
|
+
o(17, H = f("enterDigitsCode").replace("{n}", String(T)));
|
|
1418
1418
|
return;
|
|
1419
1419
|
}
|
|
1420
|
-
if (!
|
|
1421
|
-
o(17,
|
|
1420
|
+
if (!ie) {
|
|
1421
|
+
o(17, H = f("invalidRequest"));
|
|
1422
1422
|
return;
|
|
1423
1423
|
}
|
|
1424
|
-
const r = yield
|
|
1425
|
-
|
|
1424
|
+
const r = yield it({ tokenId: ie, validationCode: ee.trim() });
|
|
1425
|
+
pe = r.hashKey.charAt(0) === "/" ? r.hashKey.slice(1) : r.hashKey, o(2, S = "password"), Vt(ie), window.postMessage(
|
|
1426
1426
|
{
|
|
1427
1427
|
type: "SwitchToResetPasswordScreen",
|
|
1428
|
-
key:
|
|
1428
|
+
key: pe
|
|
1429
1429
|
},
|
|
1430
1430
|
window.location.href
|
|
1431
1431
|
);
|
|
1432
1432
|
} catch (r) {
|
|
1433
|
-
if (o(17,
|
|
1433
|
+
if (o(17, H = f("unableToVerify")), r instanceof Ke) {
|
|
1434
1434
|
const c = r.payload, W = r.status, M = ((c == null ? void 0 : c.error) || "").toLowerCase();
|
|
1435
1435
|
switch (W) {
|
|
1436
1436
|
case 400: {
|
|
1437
|
-
M.includes("invalid validation code") ? (Te(), o(17,
|
|
1437
|
+
M.includes("invalid validation code") ? (Te(), o(17, H = J > 0 ? f("incorrectCode") : f("tooManyAttempts"))) : M.includes("expired") ? (o(17, H = f("codeExpired")), o(18, ve = f("codeExpired")), o(5, se = null)) : M.includes("not valid") || M.includes("invalid token") ? o(17, H = f("invalidRequest")) : o(17, H = f("unableToVerify"));
|
|
1438
1438
|
break;
|
|
1439
1439
|
}
|
|
1440
1440
|
case 424: {
|
|
1441
|
-
M.includes("input is not match") ? (Te(), o(17,
|
|
1441
|
+
M.includes("input is not match") ? (Te(), o(17, H = f("incorrectCode"))) : M.includes("validation max attempts exceeded") ? (Te(), o(17, H = f("tooManyAttempts"))) : o(17, H = f("unableToVerify"));
|
|
1442
1442
|
break;
|
|
1443
1443
|
}
|
|
1444
1444
|
case 404: {
|
|
1445
|
-
o(17,
|
|
1445
|
+
o(17, H = f("sessionNotFound"));
|
|
1446
1446
|
break;
|
|
1447
1447
|
}
|
|
1448
1448
|
default: {
|
|
1449
|
-
o(17,
|
|
1449
|
+
o(17, H = f("unableToVerify"));
|
|
1450
1450
|
break;
|
|
1451
1451
|
}
|
|
1452
1452
|
}
|
|
1453
|
-
|
|
1453
|
+
tt(H);
|
|
1454
1454
|
}
|
|
1455
1455
|
} finally {
|
|
1456
|
-
o(11,
|
|
1456
|
+
o(11, j = !1);
|
|
1457
1457
|
}
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
|
-
function
|
|
1461
|
-
return
|
|
1462
|
-
|
|
1460
|
+
function at() {
|
|
1461
|
+
return le(this, null, function* () {
|
|
1462
|
+
j || ce && A < ce || (yield qe());
|
|
1463
1463
|
});
|
|
1464
1464
|
}
|
|
1465
|
-
|
|
1466
|
-
const
|
|
1465
|
+
Ut({ withLocale: "en", translations: {} });
|
|
1466
|
+
const lt = (r) => le(this, null, function* () {
|
|
1467
1467
|
try {
|
|
1468
1468
|
const c = yield fetch(r);
|
|
1469
1469
|
if (!c.ok)
|
|
1470
1470
|
throw new Error(`Fetch failed with status ${c.status}`);
|
|
1471
1471
|
const W = yield c.json();
|
|
1472
1472
|
for (const M in W)
|
|
1473
|
-
|
|
1473
|
+
De(M, W[M]);
|
|
1474
1474
|
} catch (c) {
|
|
1475
1475
|
console.error("Error fetching translation", c);
|
|
1476
1476
|
}
|
|
1477
1477
|
});
|
|
1478
|
-
Object.keys(
|
|
1479
|
-
|
|
1478
|
+
Object.keys(He).forEach((r) => {
|
|
1479
|
+
De(r, He[r]);
|
|
1480
1480
|
});
|
|
1481
|
-
const
|
|
1482
|
-
|
|
1481
|
+
const dt = () => {
|
|
1482
|
+
At(Z);
|
|
1483
1483
|
};
|
|
1484
|
-
|
|
1484
|
+
_t(() => le(this, null, function* () {
|
|
1485
1485
|
var r;
|
|
1486
|
-
return o(13,
|
|
1486
|
+
return o(13, U = yield rt()), o(14, C = (r = U == null ? void 0 : U[0]) == null ? void 0 : r.value), ee && ee.length === T && o(8, F = ee.split("")), () => {
|
|
1487
1487
|
};
|
|
1488
1488
|
}));
|
|
1489
|
-
function dt() {
|
|
1490
|
-
S = this.value, o(14, S);
|
|
1491
|
-
}
|
|
1492
1489
|
function ut() {
|
|
1493
|
-
|
|
1490
|
+
C = this.value, o(14, C);
|
|
1494
1491
|
}
|
|
1495
|
-
function ct(
|
|
1496
|
-
|
|
1497
|
-
|
|
1492
|
+
function ct() {
|
|
1493
|
+
R = this.value, o(3, R);
|
|
1494
|
+
}
|
|
1495
|
+
function pt(r, c) {
|
|
1496
|
+
Ue[r ? "unshift" : "push"](() => {
|
|
1497
|
+
fe[c] = r, o(19, fe);
|
|
1498
1498
|
});
|
|
1499
1499
|
}
|
|
1500
|
-
const
|
|
1501
|
-
function
|
|
1502
|
-
|
|
1503
|
-
|
|
1500
|
+
const ft = (r, c) => oe(c, r), mt = (r, c) => u(c, r);
|
|
1501
|
+
function wt(r) {
|
|
1502
|
+
Ue[r ? "unshift" : "push"](() => {
|
|
1503
|
+
h = r, o(1, h);
|
|
1504
1504
|
});
|
|
1505
1505
|
}
|
|
1506
1506
|
return t.$$set = (r) => {
|
|
1507
|
-
"clientstyling" in r && o(33,
|
|
1507
|
+
"clientstyling" in r && o(33, v = r.clientstyling), "clientstylingurl" in r && o(34, z = r.clientstylingurl), "translationurl" in r && o(35, L = r.translationurl), "mbsource" in r && o(36, B = r.mbsource), "phoneregex" in r && o(37, G = r.phoneregex), "phoneprefixeditable" in r && o(0, D = r.phoneprefixeditable), "smscodelength" in r && o(38, $ = r.smscodelength), "smscodemaxattempts" in r && o(39, x = r.smscodemaxattempts), "smscodettl" in r && o(40, k = r.smscodettl), "resenddelay" in r && o(41, N = r.resenddelay), "endpoint" in r && o(42, E = r.endpoint), "lang" in r && o(43, Z = r.lang);
|
|
1508
1508
|
}, t.$$.update = () => {
|
|
1509
1509
|
t.$$.dirty[0] & /*customStylingContainer*/
|
|
1510
1510
|
2 | t.$$.dirty[1] & /*clientstyling*/
|
|
1511
|
-
4 &&
|
|
1511
|
+
4 && v && h && Tt(h, v), t.$$.dirty[0] & /*customStylingContainer*/
|
|
1512
1512
|
2 | t.$$.dirty[1] & /*clientstylingurl*/
|
|
1513
|
-
8 &&
|
|
1513
|
+
8 && z && h && Mt(h, z), t.$$.dirty[0] & /*customStylingContainer*/
|
|
1514
1514
|
2 | t.$$.dirty[1] & /*mbsource*/
|
|
1515
|
-
32 && B &&
|
|
1516
|
-
4096 &&
|
|
1517
|
-
16 && L &&
|
|
1518
|
-
160 && o(9, i =
|
|
1519
|
-
192 && o(21, a =
|
|
1520
|
-
544 && o(44, s = !!
|
|
1521
|
-
1036 && o(15,
|
|
1522
|
-
256 && o(46, d =
|
|
1523
|
-
256 && o(47, m =
|
|
1524
|
-
98304 && o(45, p = m && d.length ===
|
|
1525
|
-
256 && (
|
|
1515
|
+
32 && B && h && Et(h, `${B}.Style`, P), t.$$.dirty[1] & /*lang*/
|
|
1516
|
+
4096 && Z && dt(), t.$$.dirty[1] & /*translationurl*/
|
|
1517
|
+
16 && L && lt(L), t.$$.dirty[0] & /*expiresAt, now*/
|
|
1518
|
+
160 && o(9, i = se ? Math.max(0, Math.ceil((se - A) / 1e3)) : 0), t.$$.dirty[0] & /*canResendAt, now*/
|
|
1519
|
+
192 && o(21, a = ce ? Math.max(0, Math.ceil((ce - A) / 1e3)) : 0), t.$$.dirty[0] & /*expiresAt, remainingSeconds*/
|
|
1520
|
+
544 && o(44, s = !!se && i === 0), t.$$.dirty[0] & /*step, phone, $_*/
|
|
1521
|
+
1036 && o(15, g = S === "phone" && R ? K(R) ? "" : f("invalidPhone") : ""), t.$$.dirty[0] & /*codeDigits*/
|
|
1522
|
+
256 && o(46, d = F.join("")), t.$$.dirty[0] & /*codeDigits*/
|
|
1523
|
+
256 && o(47, m = F.every((r) => /^\d$/.test(r))), t.$$.dirty[1] & /*isCodeFilled, codeCombined*/
|
|
1524
|
+
98304 && o(45, p = m && d.length === T), t.$$.dirty[0] & /*codeDigits*/
|
|
1525
|
+
256 && (ee = F.join("")), t.$$.dirty[0] & /*attemptsRemaining*/
|
|
1526
1526
|
16 | t.$$.dirty[1] & /*isCodeValid, isTokenExpired*/
|
|
1527
|
-
24576 && o(20,
|
|
1527
|
+
24576 && o(20, b = !p || s || J <= 0);
|
|
1528
1528
|
}, [
|
|
1529
1529
|
D,
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1530
|
+
h,
|
|
1531
|
+
S,
|
|
1532
|
+
R,
|
|
1533
|
+
J,
|
|
1534
|
+
se,
|
|
1535
|
+
ce,
|
|
1536
|
+
A,
|
|
1537
|
+
F,
|
|
1538
1538
|
i,
|
|
1539
1539
|
f,
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
te,
|
|
1543
|
-
S,
|
|
1544
|
-
T,
|
|
1545
|
-
y,
|
|
1540
|
+
j,
|
|
1541
|
+
ne,
|
|
1546
1542
|
U,
|
|
1547
|
-
|
|
1548
|
-
A,
|
|
1543
|
+
C,
|
|
1549
1544
|
g,
|
|
1550
|
-
|
|
1551
|
-
|
|
1545
|
+
y,
|
|
1546
|
+
H,
|
|
1547
|
+
ve,
|
|
1552
1548
|
fe,
|
|
1549
|
+
b,
|
|
1550
|
+
a,
|
|
1551
|
+
me,
|
|
1553
1552
|
ge,
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1553
|
+
ue,
|
|
1554
|
+
Y,
|
|
1555
|
+
T,
|
|
1557
1556
|
oe,
|
|
1558
|
-
|
|
1559
|
-
Ne,
|
|
1557
|
+
u,
|
|
1560
1558
|
nt,
|
|
1559
|
+
qe,
|
|
1561
1560
|
st,
|
|
1562
|
-
|
|
1563
|
-
|
|
1561
|
+
at,
|
|
1562
|
+
v,
|
|
1563
|
+
z,
|
|
1564
1564
|
L,
|
|
1565
1565
|
B,
|
|
1566
|
-
|
|
1567
|
-
|
|
1566
|
+
G,
|
|
1567
|
+
$,
|
|
1568
1568
|
x,
|
|
1569
|
-
|
|
1569
|
+
k,
|
|
1570
1570
|
N,
|
|
1571
1571
|
E,
|
|
1572
|
-
|
|
1572
|
+
Z,
|
|
1573
1573
|
s,
|
|
1574
1574
|
p,
|
|
1575
1575
|
d,
|
|
1576
1576
|
m,
|
|
1577
|
-
dt,
|
|
1578
1577
|
ut,
|
|
1579
1578
|
ct,
|
|
1580
1579
|
pt,
|
|
1581
1580
|
ft,
|
|
1582
|
-
mt
|
|
1581
|
+
mt,
|
|
1582
|
+
wt
|
|
1583
1583
|
];
|
|
1584
1584
|
}
|
|
1585
|
-
class
|
|
1585
|
+
class Zt extends yt {
|
|
1586
1586
|
constructor(e) {
|
|
1587
|
-
super(),
|
|
1587
|
+
super(), kt(
|
|
1588
1588
|
this,
|
|
1589
1589
|
e,
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1590
|
+
Gt,
|
|
1591
|
+
Bt,
|
|
1592
|
+
St,
|
|
1593
1593
|
{
|
|
1594
1594
|
clientstyling: 33,
|
|
1595
1595
|
clientstylingurl: 34,
|
|
@@ -1604,7 +1604,7 @@ class Gt extends Pt {
|
|
|
1604
1604
|
endpoint: 42,
|
|
1605
1605
|
lang: 43
|
|
1606
1606
|
},
|
|
1607
|
-
|
|
1607
|
+
Dt,
|
|
1608
1608
|
[-1, -1, -1]
|
|
1609
1609
|
);
|
|
1610
1610
|
}
|
|
@@ -1681,7 +1681,7 @@ class Gt extends Pt {
|
|
|
1681
1681
|
this.$$set({ lang: e }), re();
|
|
1682
1682
|
}
|
|
1683
1683
|
}
|
|
1684
|
-
|
|
1684
|
+
jt(Zt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, phoneregex: {}, phoneprefixeditable: {}, smscodelength: {}, smscodemaxattempts: {}, smscodettl: {}, resenddelay: {}, endpoint: {}, lang: {} }, [], [], !0);
|
|
1685
1685
|
export {
|
|
1686
|
-
|
|
1686
|
+
Zt as default
|
|
1687
1687
|
};
|