@everymatrix/general-player-forgot-password-form-nd 1.99.49 → 1.99.51
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-B71CZA-Y.js → GeneralPlayerForgotPasswordFormNd-4H6CrJiu.js} +1403 -1392
- package/components/{GeneralPlayerForgotPasswordFormNd-R1aJ-_do.js → GeneralPlayerForgotPasswordFormNd-DP9lhIu4.js} +1492 -1481
- package/components/{GeneralPlayerForgotPasswordFormNd-Ck_gYoYL.cjs → GeneralPlayerForgotPasswordFormNd-iZ8hBbEo.cjs} +149 -149
- package/components/{GeneralPlayerForgotPasswordSmsForm-S6nv3XTI.js → GeneralPlayerForgotPasswordSmsForm-BdCAn9GD.js} +440 -438
- package/components/{GeneralPlayerForgotPasswordSmsForm-r5pI22vd.cjs → GeneralPlayerForgotPasswordSmsForm-BdHpkBJQ.cjs} +4 -4
- package/components/{GeneralPlayerForgotPasswordSmsForm-nPmIVaQD.js → GeneralPlayerForgotPasswordSmsForm-C2LAat4o.js} +390 -388
- 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,24 +1,24 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
function
|
|
1
|
+
import { i as gt, s as ht, $ as Me, a as vt, b as Pt, S as yt, c as kt, f as ne, d as St, e as Ct, g as Rt, h as Z, t as Pe, j as ae, k as Se, l as Ce, m as Q, n as p, o as _t, p as zt, q as Lt, r as xt, u as ue, v as ye, w as Tt, x as n, y as F, z as l, A as me, B as C, C as U, D as qe, E as Ee, F as _e, G as ze, H as Ae, I as Mt, J as ge, K as Et, L as jt, M as It, N as Nt } from "./GeneralPlayerForgotPasswordFormNd-4H6CrJiu.js";
|
|
2
|
+
function qt(t) {
|
|
3
3
|
return t < 0.5 ? 4 * t * t * t : 0.5 * Math.pow(2 * t - 2, 3) + 1;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function At(t) {
|
|
6
6
|
const e = t - 1;
|
|
7
7
|
return e * e * e + 1;
|
|
8
8
|
}
|
|
9
9
|
function xe(t) {
|
|
10
10
|
return --t * t * t * t * t + 1;
|
|
11
11
|
}
|
|
12
|
-
function we(t, { delay: e = 0, duration: o = 400, easing: i =
|
|
13
|
-
const d = getComputedStyle(t), f = +d.opacity, m = d.filter === "none" ? "" : d.filter, y = f * (1 - s), [c,
|
|
12
|
+
function we(t, { delay: e = 0, duration: o = 400, easing: i = qt, amount: a = 5, opacity: s = 0 } = {}) {
|
|
13
|
+
const d = getComputedStyle(t), f = +d.opacity, m = d.filter === "none" ? "" : d.filter, y = f * (1 - s), [c, h] = ht(a);
|
|
14
14
|
return {
|
|
15
15
|
delay: e,
|
|
16
16
|
duration: o,
|
|
17
17
|
easing: i,
|
|
18
|
-
css: (
|
|
18
|
+
css: (R, _) => `opacity: ${f - y * _}; filter: ${m} blur(${_ * c}${h});`
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ue(t, { delay: e = 0, duration: o = 400, easing: i = gt } = {}) {
|
|
22
22
|
const a = +getComputedStyle(t).opacity;
|
|
23
23
|
return {
|
|
24
24
|
delay: e,
|
|
@@ -27,28 +27,28 @@ function Ae(t, { delay: e = 0, duration: o = 400, easing: i = bt } = {}) {
|
|
|
27
27
|
css: (s) => `opacity: ${s * a}`
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Fe(t, { delay: e = 0, duration: o = 400, easing: i = At, start: a = 0, opacity: s = 0 } = {}) {
|
|
31
31
|
const d = getComputedStyle(t), f = +d.opacity, m = d.transform === "none" ? "" : d.transform, y = 1 - a, c = f * (1 - s);
|
|
32
32
|
return {
|
|
33
33
|
delay: e,
|
|
34
34
|
duration: o,
|
|
35
35
|
easing: i,
|
|
36
|
-
css: (
|
|
37
|
-
transform: ${m} scale(${1 - y *
|
|
38
|
-
opacity: ${f - c *
|
|
36
|
+
css: (h, R) => `
|
|
37
|
+
transform: ${m} scale(${1 - y * R});
|
|
38
|
+
opacity: ${f - c * R}
|
|
39
39
|
`
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
o == null && (
|
|
42
|
+
function Ut({ withLocale: t, translations: e }) {
|
|
43
|
+
Me.subscribe((o) => {
|
|
44
|
+
o == null && (vt.set(e), Me.set(t));
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
47
|
+
function Te(t, e) {
|
|
48
|
+
Pt(t, e);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function Ft(t) {
|
|
51
|
+
Me.set(t);
|
|
52
52
|
}
|
|
53
53
|
const Ve = {
|
|
54
54
|
en: {
|
|
@@ -462,89 +462,89 @@ class De extends Error {
|
|
|
462
462
|
super(o), this.status = e, this.payload = i;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function je(t) {
|
|
466
466
|
return `reset_attempts_${t}`;
|
|
467
467
|
}
|
|
468
468
|
function He(t, e) {
|
|
469
469
|
try {
|
|
470
|
-
localStorage.setItem(
|
|
470
|
+
localStorage.setItem(je(t), String(e));
|
|
471
471
|
} catch {
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Vt(t) {
|
|
475
475
|
try {
|
|
476
|
-
const e = localStorage.getItem(
|
|
476
|
+
const e = localStorage.getItem(je(t));
|
|
477
477
|
return e != null ? Math.max(0, parseInt(e, 10)) : null;
|
|
478
478
|
} catch {
|
|
479
479
|
return null;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Dt(t) {
|
|
483
483
|
try {
|
|
484
|
-
localStorage.removeItem(
|
|
484
|
+
localStorage.removeItem(je(t));
|
|
485
485
|
} catch {
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
|
|
488
|
+
function Ht(t) {
|
|
489
|
+
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}}");
|
|
490
490
|
}
|
|
491
491
|
function Ke(t, e, o) {
|
|
492
492
|
const i = t.slice();
|
|
493
|
-
return i[
|
|
493
|
+
return i[73] = e[o], i[74] = e, i[75] = o, i;
|
|
494
494
|
}
|
|
495
495
|
function Oe(t) {
|
|
496
496
|
let e, o, i, a, s, d, f, m, y = (
|
|
497
497
|
/*$_*/
|
|
498
498
|
t[10]("resetTitle") + ""
|
|
499
|
-
), c,
|
|
499
|
+
), c, h, R, _ = (
|
|
500
500
|
/*$_*/
|
|
501
501
|
t[10]("resetSubtitle") + ""
|
|
502
|
-
), B,
|
|
502
|
+
), V, B, D, X, x, k, N, E, Y, v = (
|
|
503
503
|
/*step*/
|
|
504
504
|
t[2] === "phone" && We(t)
|
|
505
|
-
),
|
|
505
|
+
), P = (
|
|
506
506
|
/*step*/
|
|
507
507
|
t[2] === "code" && Ge(t)
|
|
508
508
|
);
|
|
509
509
|
return {
|
|
510
510
|
c() {
|
|
511
|
-
e = p("div"), o = p("div"), i = p("button"), a =
|
|
511
|
+
e = p("div"), o = p("div"), i = p("button"), a = C("×"), f = U(), m = p("h2"), c = C(y), h = U(), R = p("p"), V = C(_), B = U(), v && v.c(), D = U(), P && P.c(), n(i, "class", "ResetPwdClose"), n(i, "type", "button"), n(i, "aria-label", s = /*$_*/
|
|
512
512
|
t[10]("close")), n(i, "title", d = /*$_*/
|
|
513
|
-
t[10]("close")), n(m, "id", "ResetPwdTitle"), n(m, "class", "ResetPwdTitle"), n(
|
|
513
|
+
t[10]("close")), n(m, "id", "ResetPwdTitle"), n(m, "class", "ResetPwdTitle"), n(R, "class", "ResetPwdSub"), n(o, "class", "ResetPwdCard"), n(e, "class", "ResetPwdOverlay"), n(e, "role", "dialog"), n(e, "aria-modal", "true"), n(e, "aria-labelledby", "ResetPwdTitle");
|
|
514
514
|
},
|
|
515
|
-
m(S,
|
|
516
|
-
|
|
515
|
+
m(S, q) {
|
|
516
|
+
Q(S, e, q), l(e, o), l(o, i), l(i, a), l(o, f), l(o, m), l(m, c), l(o, h), l(o, R), l(R, V), l(o, B), v && v.m(o, null), l(o, D), P && P.m(o, null), N = !0, E || (Y = me(
|
|
517
517
|
i,
|
|
518
518
|
"click",
|
|
519
519
|
/*closeModal*/
|
|
520
520
|
t[25]
|
|
521
521
|
), E = !0);
|
|
522
522
|
},
|
|
523
|
-
p(S,
|
|
524
|
-
t = S, (!N ||
|
|
523
|
+
p(S, q) {
|
|
524
|
+
t = S, (!N || q[0] & /*$_*/
|
|
525
525
|
1024 && s !== (s = /*$_*/
|
|
526
|
-
t[10]("close"))) && n(i, "aria-label", s), (!N ||
|
|
526
|
+
t[10]("close"))) && n(i, "aria-label", s), (!N || q[0] & /*$_*/
|
|
527
527
|
1024 && d !== (d = /*$_*/
|
|
528
|
-
t[10]("close"))) && n(i, "title", d), (!N ||
|
|
528
|
+
t[10]("close"))) && n(i, "title", d), (!N || q[0] & /*$_*/
|
|
529
529
|
1024) && y !== (y = /*$_*/
|
|
530
|
-
t[10]("resetTitle") + "") && F(c, y), (!N ||
|
|
531
|
-
1024) &&
|
|
532
|
-
t[10]("resetSubtitle") + "") && F(
|
|
533
|
-
t[2] === "phone" ?
|
|
534
|
-
t[2] === "code" ?
|
|
530
|
+
t[10]("resetTitle") + "") && F(c, y), (!N || q[0] & /*$_*/
|
|
531
|
+
1024) && _ !== (_ = /*$_*/
|
|
532
|
+
t[10]("resetSubtitle") + "") && F(V, _), /*step*/
|
|
533
|
+
t[2] === "phone" ? v ? v.p(t, q) : (v = We(t), v.c(), v.m(o, D)) : v && (v.d(1), v = null), /*step*/
|
|
534
|
+
t[2] === "code" ? P ? P.p(t, q) : (P = Ge(t), P.c(), P.m(o, null)) : P && (P.d(1), P = null);
|
|
535
535
|
},
|
|
536
536
|
i(S) {
|
|
537
537
|
N || (S && ye(() => {
|
|
538
|
-
N && (
|
|
538
|
+
N && (x && x.end(1), X = Tt(
|
|
539
539
|
o,
|
|
540
|
-
|
|
540
|
+
Fe,
|
|
541
541
|
/*cardIn*/
|
|
542
542
|
t[23]
|
|
543
|
-
),
|
|
543
|
+
), X.start());
|
|
544
544
|
}), S && ye(() => {
|
|
545
|
-
N && (k || (k =
|
|
545
|
+
N && (k || (k = ue(
|
|
546
546
|
e,
|
|
547
|
-
|
|
547
|
+
Ue,
|
|
548
548
|
/*overlayFade*/
|
|
549
549
|
t[22],
|
|
550
550
|
!0
|
|
@@ -552,21 +552,21 @@ function Oe(t) {
|
|
|
552
552
|
}), N = !0);
|
|
553
553
|
},
|
|
554
554
|
o(S) {
|
|
555
|
-
|
|
555
|
+
X && X.invalidate(), S && (x = xt(
|
|
556
556
|
o,
|
|
557
|
-
|
|
557
|
+
Fe,
|
|
558
558
|
/*cardOut*/
|
|
559
559
|
t[24]
|
|
560
|
-
)), S && (k || (k =
|
|
560
|
+
)), S && (k || (k = ue(
|
|
561
561
|
e,
|
|
562
|
-
|
|
562
|
+
Ue,
|
|
563
563
|
/*overlayFade*/
|
|
564
564
|
t[22],
|
|
565
565
|
!1
|
|
566
566
|
)), k.run(0)), N = !1;
|
|
567
567
|
},
|
|
568
568
|
d(S) {
|
|
569
|
-
S &&
|
|
569
|
+
S && Z(e), v && v.d(), P && P.d(), S && x && x.end(), S && k && k.end(), E = !1, Y();
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
572
|
}
|
|
@@ -577,10 +577,10 @@ function We(t) {
|
|
|
577
577
|
), a, s, d, f, m, y = (
|
|
578
578
|
/*$_*/
|
|
579
579
|
t[10]("countryCodeLabel") + ""
|
|
580
|
-
), c,
|
|
580
|
+
), c, h, R, _, V, B = (
|
|
581
581
|
/*$_*/
|
|
582
582
|
t[10]("phoneLabel") + ""
|
|
583
|
-
),
|
|
583
|
+
), D, X, x, k, N, E, Y, v, P, S = (
|
|
584
584
|
/*loading*/
|
|
585
585
|
(t[11] ? (
|
|
586
586
|
/*$_*/
|
|
@@ -589,91 +589,91 @@ function We(t) {
|
|
|
589
589
|
/*$_*/
|
|
590
590
|
t[10]("requestCode")
|
|
591
591
|
)) + ""
|
|
592
|
-
),
|
|
593
|
-
function be(b,
|
|
592
|
+
), q, $, ce;
|
|
593
|
+
function be(b, g) {
|
|
594
594
|
return (
|
|
595
595
|
/*phoneprefixeditable*/
|
|
596
|
-
b[0] === "true" ?
|
|
596
|
+
b[0] === "true" ? Ot : Kt
|
|
597
597
|
);
|
|
598
598
|
}
|
|
599
|
-
let
|
|
599
|
+
let pe = be(t), G = pe(t), j = (
|
|
600
600
|
/*phoneError*/
|
|
601
601
|
t[15] && Be(t)
|
|
602
|
-
),
|
|
602
|
+
), z = (
|
|
603
603
|
/*phoneInfo*/
|
|
604
604
|
t[16] && Ye(t)
|
|
605
605
|
);
|
|
606
606
|
return {
|
|
607
607
|
c() {
|
|
608
|
-
e = p("section"), o = p("p"), a =
|
|
608
|
+
e = p("section"), o = p("p"), a = C(i), s = U(), d = p("div"), f = p("div"), m = p("label"), c = C(y), h = U(), G.c(), R = U(), _ = p("div"), V = p("label"), D = C(B), X = U(), x = p("input"), N = U(), E = p("div"), j && j.c(), Y = U(), z && z.c(), v = U(), P = p("button"), q = C(S), n(o, "class", "ResetPwdHelp"), n(m, "class", "ResetPwdLabel"), n(m, "for", "ResetPwdPrefix"), n(f, "class", "ResetPwdField ResetPwdFieldPrefix"), _e(
|
|
609
609
|
f,
|
|
610
610
|
"ResetPwdFieldFilled",
|
|
611
611
|
/*mobilePrefix*/
|
|
612
612
|
t[14]
|
|
613
|
-
), n(
|
|
614
|
-
t[15] ? "true" : "false"), n(
|
|
615
|
-
|
|
613
|
+
), n(V, "class", "ResetPwdLabel"), n(V, "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*/
|
|
614
|
+
t[15] ? "true" : "false"), n(_, "class", "ResetPwdField ResetPwdFieldPhone"), _e(
|
|
615
|
+
_,
|
|
616
616
|
"ResetPwdFieldFilled",
|
|
617
617
|
/*phone*/
|
|
618
618
|
t[3]
|
|
619
|
-
), 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(
|
|
619
|
+
), 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*/
|
|
620
620
|
t[11], n(e, "class", "ResetPwdSection ResetPwdSectionPhone");
|
|
621
621
|
},
|
|
622
|
-
m(b,
|
|
623
|
-
|
|
624
|
-
|
|
622
|
+
m(b, g) {
|
|
623
|
+
Q(b, e, g), l(e, o), l(o, a), l(e, s), l(e, d), l(d, f), l(f, m), l(m, c), l(f, h), G.m(f, null), l(d, R), l(d, _), l(_, V), l(V, D), l(_, X), l(_, x), ze(
|
|
624
|
+
x,
|
|
625
625
|
/*phone*/
|
|
626
626
|
t[3]
|
|
627
|
-
), l(e, N), l(e, E),
|
|
627
|
+
), l(e, N), l(e, E), j && j.m(E, null), l(E, Y), z && z.m(E, null), l(e, v), l(e, P), l(P, q), $ || (ce = [
|
|
628
628
|
me(
|
|
629
|
-
|
|
629
|
+
x,
|
|
630
630
|
"input",
|
|
631
631
|
/*input_input_handler_1*/
|
|
632
632
|
t[49]
|
|
633
633
|
),
|
|
634
634
|
me(
|
|
635
|
-
|
|
635
|
+
P,
|
|
636
636
|
"click",
|
|
637
637
|
/*handleRequestCode*/
|
|
638
638
|
t[30]
|
|
639
639
|
)
|
|
640
|
-
],
|
|
640
|
+
], $ = !0);
|
|
641
641
|
},
|
|
642
|
-
p(b,
|
|
643
|
-
|
|
642
|
+
p(b, g) {
|
|
643
|
+
g[0] & /*$_*/
|
|
644
644
|
1024 && i !== (i = /*$_*/
|
|
645
|
-
b[10]("enterPhoneHelp") + "") && F(a, i),
|
|
645
|
+
b[10]("enterPhoneHelp") + "") && F(a, i), g[0] & /*$_*/
|
|
646
646
|
1024 && y !== (y = /*$_*/
|
|
647
|
-
b[10]("countryCodeLabel") + "") && F(c, y),
|
|
647
|
+
b[10]("countryCodeLabel") + "") && F(c, y), pe === (pe = be(b)) && G ? G.p(b, g) : (G.d(1), G = pe(b), G && (G.c(), G.m(f, null))), g[0] & /*mobilePrefix*/
|
|
648
648
|
16384 && _e(
|
|
649
649
|
f,
|
|
650
650
|
"ResetPwdFieldFilled",
|
|
651
651
|
/*mobilePrefix*/
|
|
652
652
|
b[14]
|
|
653
|
-
),
|
|
654
|
-
1024 &&
|
|
655
|
-
b[10]("phoneLabel") + "") && F(
|
|
653
|
+
), g[0] & /*$_*/
|
|
654
|
+
1024 && B !== (B = /*$_*/
|
|
655
|
+
b[10]("phoneLabel") + "") && F(D, B), g[0] & /*phoneError*/
|
|
656
656
|
32768 && k !== (k = /*phoneError*/
|
|
657
|
-
b[15] ? "true" : "false") && n(
|
|
657
|
+
b[15] ? "true" : "false") && n(x, "aria-invalid", k), g[0] & /*phone*/
|
|
658
658
|
8 && ze(
|
|
659
|
-
|
|
659
|
+
x,
|
|
660
660
|
/*phone*/
|
|
661
661
|
b[3]
|
|
662
|
-
),
|
|
662
|
+
), g[0] & /*phone*/
|
|
663
663
|
8 && _e(
|
|
664
|
-
|
|
664
|
+
_,
|
|
665
665
|
"ResetPwdFieldFilled",
|
|
666
666
|
/*phone*/
|
|
667
667
|
b[3]
|
|
668
668
|
), /*phoneError*/
|
|
669
|
-
b[15] ?
|
|
670
|
-
32768 &&
|
|
671
|
-
|
|
669
|
+
b[15] ? j ? (j.p(b, g), g[0] & /*phoneError*/
|
|
670
|
+
32768 && ae(j, 1)) : (j = Be(b), j.c(), ae(j, 1), j.m(E, Y)) : j && (Se(), Pe(j, 1, 1, () => {
|
|
671
|
+
j = null;
|
|
672
672
|
}), Ce()), /*phoneInfo*/
|
|
673
|
-
b[16] ?
|
|
674
|
-
65536 &&
|
|
675
|
-
|
|
676
|
-
}), Ce()),
|
|
673
|
+
b[16] ? z ? (z.p(b, g), g[0] & /*phoneInfo*/
|
|
674
|
+
65536 && ae(z, 1)) : (z = Ye(b), z.c(), ae(z, 1), z.m(E, null)) : z && (Se(), Pe(z, 1, 1, () => {
|
|
675
|
+
z = null;
|
|
676
|
+
}), Ce()), g[0] & /*loading, $_*/
|
|
677
677
|
3072 && S !== (S = /*loading*/
|
|
678
678
|
(b[11] ? (
|
|
679
679
|
/*$_*/
|
|
@@ -681,16 +681,16 @@ function We(t) {
|
|
|
681
681
|
) : (
|
|
682
682
|
/*$_*/
|
|
683
683
|
b[10]("requestCode")
|
|
684
|
-
)) + "") && F(
|
|
685
|
-
2048 && (
|
|
684
|
+
)) + "") && F(q, S), g[0] & /*loading*/
|
|
685
|
+
2048 && (P.disabled = /*loading*/
|
|
686
686
|
b[11]);
|
|
687
687
|
},
|
|
688
688
|
d(b) {
|
|
689
|
-
b &&
|
|
689
|
+
b && Z(e), G.d(), j && j.d(), z && z.d(), $ = !1, Ee(ce);
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Kt(t) {
|
|
694
694
|
let e, o, i, a;
|
|
695
695
|
return {
|
|
696
696
|
c() {
|
|
@@ -698,7 +698,7 @@ function Dt(t) {
|
|
|
698
698
|
t[0] !== "true", n(e, "autocomplete", "tel-country-code");
|
|
699
699
|
},
|
|
700
700
|
m(s, d) {
|
|
701
|
-
|
|
701
|
+
Q(s, e, d), ze(
|
|
702
702
|
e,
|
|
703
703
|
/*mobilePrefix*/
|
|
704
704
|
t[14]
|
|
@@ -721,26 +721,26 @@ function Dt(t) {
|
|
|
721
721
|
);
|
|
722
722
|
},
|
|
723
723
|
d(s) {
|
|
724
|
-
s &&
|
|
724
|
+
s && Z(e), i = !1, a();
|
|
725
725
|
}
|
|
726
726
|
};
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function Ot(t) {
|
|
729
729
|
let e, o;
|
|
730
730
|
return {
|
|
731
731
|
c() {
|
|
732
|
-
e = p("vaadin-combo-box"),
|
|
732
|
+
e = p("vaadin-combo-box"), ge(
|
|
733
733
|
e,
|
|
734
734
|
"items",
|
|
735
735
|
/*phoneCodes*/
|
|
736
736
|
t[13]
|
|
737
|
-
),
|
|
737
|
+
), ge(
|
|
738
738
|
e,
|
|
739
739
|
"value",
|
|
740
740
|
/*mobilePrefix*/
|
|
741
741
|
t[14]
|
|
742
|
-
),
|
|
743
|
-
t[10]("invalidPrefix")),
|
|
742
|
+
), ge(e, "errorMessage", o = /*$_*/
|
|
743
|
+
t[10]("invalidPrefix")), ge(
|
|
744
744
|
e,
|
|
745
745
|
"onChange",
|
|
746
746
|
/*handlePrefixDropdown*/
|
|
@@ -748,27 +748,27 @@ function Ht(t) {
|
|
|
748
748
|
);
|
|
749
749
|
},
|
|
750
750
|
m(i, a) {
|
|
751
|
-
|
|
751
|
+
Q(i, e, a);
|
|
752
752
|
},
|
|
753
753
|
p(i, a) {
|
|
754
754
|
a[0] & /*phoneCodes*/
|
|
755
|
-
8192 &&
|
|
755
|
+
8192 && ge(
|
|
756
756
|
e,
|
|
757
757
|
"items",
|
|
758
758
|
/*phoneCodes*/
|
|
759
759
|
i[13]
|
|
760
760
|
), a[0] & /*mobilePrefix*/
|
|
761
|
-
16384 &&
|
|
761
|
+
16384 && ge(
|
|
762
762
|
e,
|
|
763
763
|
"value",
|
|
764
764
|
/*mobilePrefix*/
|
|
765
765
|
i[14]
|
|
766
766
|
), a[0] & /*$_*/
|
|
767
767
|
1024 && o !== (o = /*$_*/
|
|
768
|
-
i[10]("invalidPrefix")) &&
|
|
768
|
+
i[10]("invalidPrefix")) && ge(e, "errorMessage", o);
|
|
769
769
|
},
|
|
770
770
|
d(i) {
|
|
771
|
-
i &&
|
|
771
|
+
i && Z(e);
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
774
|
}
|
|
@@ -776,13 +776,13 @@ function Be(t) {
|
|
|
776
776
|
let e, o, i, a;
|
|
777
777
|
return {
|
|
778
778
|
c() {
|
|
779
|
-
e = p("div"), o =
|
|
779
|
+
e = p("div"), o = C(
|
|
780
780
|
/*phoneError*/
|
|
781
781
|
t[15]
|
|
782
782
|
), n(e, "class", "ResetPwdError");
|
|
783
783
|
},
|
|
784
784
|
m(s, d) {
|
|
785
|
-
|
|
785
|
+
Q(s, e, d), l(e, o), a = !0;
|
|
786
786
|
},
|
|
787
787
|
p(s, d) {
|
|
788
788
|
(!a || d[0] & /*phoneError*/
|
|
@@ -794,14 +794,14 @@ function Be(t) {
|
|
|
794
794
|
},
|
|
795
795
|
i(s) {
|
|
796
796
|
a || (s && ye(() => {
|
|
797
|
-
a && (i || (i =
|
|
797
|
+
a && (i || (i = ue(e, we, { amount: 5 }, !0)), i.run(1));
|
|
798
798
|
}), a = !0);
|
|
799
799
|
},
|
|
800
800
|
o(s) {
|
|
801
|
-
s && (i || (i =
|
|
801
|
+
s && (i || (i = ue(e, we, { amount: 5 }, !1)), i.run(0)), a = !1;
|
|
802
802
|
},
|
|
803
803
|
d(s) {
|
|
804
|
-
s &&
|
|
804
|
+
s && Z(e), s && i && i.end();
|
|
805
805
|
}
|
|
806
806
|
};
|
|
807
807
|
}
|
|
@@ -809,13 +809,13 @@ function Ye(t) {
|
|
|
809
809
|
let e, o, i, a;
|
|
810
810
|
return {
|
|
811
811
|
c() {
|
|
812
|
-
e = p("div"), o =
|
|
812
|
+
e = p("div"), o = C(
|
|
813
813
|
/*phoneInfo*/
|
|
814
814
|
t[16]
|
|
815
815
|
), n(e, "class", "ResetPwdHint");
|
|
816
816
|
},
|
|
817
817
|
m(s, d) {
|
|
818
|
-
|
|
818
|
+
Q(s, e, d), l(e, o), a = !0;
|
|
819
819
|
},
|
|
820
820
|
p(s, d) {
|
|
821
821
|
(!a || d[0] & /*phoneInfo*/
|
|
@@ -827,14 +827,14 @@ function Ye(t) {
|
|
|
827
827
|
},
|
|
828
828
|
i(s) {
|
|
829
829
|
a || (s && ye(() => {
|
|
830
|
-
a && (i || (i =
|
|
830
|
+
a && (i || (i = ue(e, we, { amount: 5 }, !0)), i.run(1));
|
|
831
831
|
}), a = !0);
|
|
832
832
|
},
|
|
833
833
|
o(s) {
|
|
834
|
-
s && (i || (i =
|
|
834
|
+
s && (i || (i = ue(e, we, { amount: 5 }, !1)), i.run(0)), a = !1;
|
|
835
835
|
},
|
|
836
836
|
d(s) {
|
|
837
|
-
s &&
|
|
837
|
+
s && Z(e), s && i && i.end();
|
|
838
838
|
}
|
|
839
839
|
};
|
|
840
840
|
}
|
|
@@ -848,13 +848,13 @@ function Ge(t) {
|
|
|
848
848
|
/*codeLength*/
|
|
849
849
|
t[26]
|
|
850
850
|
)) + ""
|
|
851
|
-
), m, y, c,
|
|
851
|
+
), m, y, c, h, R, _ = (
|
|
852
852
|
/*$_*/
|
|
853
853
|
t[10]("verificationCodeLabel") + ""
|
|
854
|
-
), B,
|
|
854
|
+
), V, B, D, X, x, k, N, E, Y, v, P, S, q, $ = (
|
|
855
855
|
/*$_*/
|
|
856
856
|
t[10]("attemptsLeft") + ""
|
|
857
|
-
),
|
|
857
|
+
), ce, be, pe, G, j, z, b, g, fe, re, te, T, oe = (
|
|
858
858
|
/*loading*/
|
|
859
859
|
(t[11] ? (
|
|
860
860
|
/*$_*/
|
|
@@ -863,71 +863,71 @@ function Ge(t) {
|
|
|
863
863
|
/*$_*/
|
|
864
864
|
t[10]("submitCode")
|
|
865
865
|
)) + ""
|
|
866
|
-
), ke,
|
|
866
|
+
), ke, he, le, ve, ie = Ae(Array(
|
|
867
867
|
/*codeLength*/
|
|
868
868
|
t[26]
|
|
869
|
-
)),
|
|
870
|
-
for (let u = 0; u <
|
|
871
|
-
|
|
872
|
-
let
|
|
869
|
+
)), O = [];
|
|
870
|
+
for (let u = 0; u < ie.length; u += 1)
|
|
871
|
+
O[u] = Je(Ke(t, ie, u));
|
|
872
|
+
let A = (
|
|
873
873
|
/*codeError*/
|
|
874
874
|
t[17] && Ze(t)
|
|
875
|
-
),
|
|
875
|
+
), W = (
|
|
876
876
|
/*codeExpiredHint*/
|
|
877
877
|
t[18] && /*remainingSeconds*/
|
|
878
878
|
t[9] === 0 && Qe(t)
|
|
879
|
-
),
|
|
879
|
+
), J = (
|
|
880
880
|
/*expiresAt*/
|
|
881
881
|
t[5] && Xe(t)
|
|
882
882
|
);
|
|
883
|
-
function
|
|
883
|
+
function ee(u, I) {
|
|
884
884
|
return (
|
|
885
885
|
/*canResendAt*/
|
|
886
886
|
u[6] && /*now*/
|
|
887
887
|
u[7] < /*canResendAt*/
|
|
888
|
-
u[6] ?
|
|
888
|
+
u[6] ? Bt : Wt
|
|
889
889
|
);
|
|
890
890
|
}
|
|
891
|
-
let
|
|
891
|
+
let se = ee(t), L = se(t);
|
|
892
892
|
return {
|
|
893
893
|
c() {
|
|
894
|
-
e = p("section"), o = p("h3"), a =
|
|
895
|
-
for (let u = 0; u <
|
|
896
|
-
|
|
897
|
-
|
|
894
|
+
e = p("section"), o = p("h3"), a = C(i), s = U(), d = p("p"), m = C(f), y = U(), c = p("div"), h = p("div"), R = p("label"), V = C(_), B = U(), D = p("div");
|
|
895
|
+
for (let u = 0; u < O.length; u += 1)
|
|
896
|
+
O[u].c();
|
|
897
|
+
x = U(), k = p("div"), A && A.c(), N = U(), W && W.c(), E = U(), Y = p("div"), v = p("div"), P = p("div"), S = p("span"), q = p("strong"), ce = C($), be = C(":"), pe = U(), G = p("span"), j = C(
|
|
898
898
|
/*attemptsRemaining*/
|
|
899
899
|
t[4]
|
|
900
|
-
),
|
|
901
|
-
t[10]("verificationCodeLabel")), n(
|
|
900
|
+
), z = U(), J && J.c(), b = U(), g = p("button"), L.c(), te = U(), T = p("button"), ke = C(oe), n(o, "id", "ResetPwdCodeTitle"), n(o, "class", "ResetPwdStepTitle"), n(d, "class", "ResetPwdHelp"), n(R, "class", "ResetPwdLabel"), n(R, "for", "ResetPwdCode"), n(D, "class", "ResetPwdCodeGroup"), n(D, "role", "group"), n(D, "aria-label", X = /*$_*/
|
|
901
|
+
t[10]("verificationCodeLabel")), n(h, "class", "ResetPwdField ResetPwdFieldCode"), n(c, "class", "ResetPwdRow"), n(c, "aria-describedby", "ResetPwdRowErrorsCode"), n(k, "id", "ResetPwdRowErrorsCode"), n(k, "class", "ResetPwdErrors"), n(k, "role", "alert"), n(k, "aria-live", "assertive"), n(G, "class", "ResetPwdAttempts"), n(S, "class", "ResetPwdMeta"), n(P, "class", "ResetPwdMetaRow"), n(g, "class", "ResetPwdLink"), n(g, "type", "button"), g.disabled = fe = /*loading*/
|
|
902
902
|
t[11] || /*canResendAt*/
|
|
903
903
|
t[6] && /*now*/
|
|
904
904
|
t[7] < /*canResendAt*/
|
|
905
|
-
t[6], n(
|
|
905
|
+
t[6], n(g, "aria-disabled", re = /*loading*/
|
|
906
906
|
t[11] || /*canResendAt*/
|
|
907
907
|
t[6] && /*now*/
|
|
908
908
|
t[7] < /*canResendAt*/
|
|
909
|
-
t[6]), n(
|
|
909
|
+
t[6]), n(v, "class", "ResetPwdField ResetPwdFieldMeta"), n(Y, "class", "ResetPwdRow"), n(Y, "aria-describedby", "ResetPwdRowErrorsCode"), n(T, "class", "ResetPwdButton"), n(T, "type", "button"), T.disabled = he = /*loading*/
|
|
910
910
|
t[11] || /*disableSubmitCode*/
|
|
911
911
|
t[20], n(e, "class", "ResetPwdSection ResetPwdSectionCode"), n(e, "aria-labelledby", "ResetPwdCodeTitle");
|
|
912
912
|
},
|
|
913
913
|
m(u, I) {
|
|
914
|
-
|
|
915
|
-
for (let
|
|
916
|
-
|
|
917
|
-
l(e,
|
|
914
|
+
Q(u, e, I), l(e, o), l(o, a), l(e, s), l(e, d), l(d, m), l(e, y), l(e, c), l(c, h), l(h, R), l(R, V), l(h, B), l(h, D);
|
|
915
|
+
for (let H = 0; H < O.length; H += 1)
|
|
916
|
+
O[H] && O[H].m(D, null);
|
|
917
|
+
l(e, x), l(e, k), A && A.m(k, null), l(k, N), W && W.m(k, null), l(e, E), l(e, Y), l(Y, v), l(v, P), l(P, S), l(S, q), l(q, ce), l(q, be), l(S, pe), l(S, G), l(G, j), l(P, z), J && J.m(P, null), l(v, b), l(v, g), L.m(g, null), l(e, te), l(e, T), l(T, ke), le || (ve = [
|
|
918
918
|
me(
|
|
919
|
-
|
|
919
|
+
g,
|
|
920
920
|
"click",
|
|
921
921
|
/*handleResend*/
|
|
922
922
|
t[32]
|
|
923
923
|
),
|
|
924
924
|
me(
|
|
925
|
-
|
|
925
|
+
T,
|
|
926
926
|
"click",
|
|
927
927
|
/*handleVerifyCode*/
|
|
928
928
|
t[31]
|
|
929
929
|
)
|
|
930
|
-
],
|
|
930
|
+
], le = !0);
|
|
931
931
|
},
|
|
932
932
|
p(u, I) {
|
|
933
933
|
if (I[0] & /*$_*/
|
|
@@ -938,73 +938,73 @@ function Ge(t) {
|
|
|
938
938
|
/*codeLength*/
|
|
939
939
|
u[26]
|
|
940
940
|
)) + "") && F(m, f), I[0] & /*$_*/
|
|
941
|
-
1024 &&
|
|
942
|
-
u[10]("verificationCodeLabel") + "") && F(
|
|
941
|
+
1024 && _ !== (_ = /*$_*/
|
|
942
|
+
u[10]("verificationCodeLabel") + "") && F(V, _), I[0] & /*codeDigits, codeError, codeInputs, handleCodeInput, handleCodeKeyDown*/
|
|
943
943
|
403308800) {
|
|
944
|
-
|
|
944
|
+
ie = Ae(Array(
|
|
945
945
|
/*codeLength*/
|
|
946
946
|
u[26]
|
|
947
947
|
));
|
|
948
|
-
let
|
|
949
|
-
for (
|
|
950
|
-
const Re = Ke(u,
|
|
951
|
-
|
|
948
|
+
let H;
|
|
949
|
+
for (H = 0; H < ie.length; H += 1) {
|
|
950
|
+
const Re = Ke(u, ie, H);
|
|
951
|
+
O[H] ? O[H].p(Re, I) : (O[H] = Je(Re), O[H].c(), O[H].m(D, null));
|
|
952
952
|
}
|
|
953
|
-
for (;
|
|
954
|
-
|
|
955
|
-
|
|
953
|
+
for (; H < O.length; H += 1)
|
|
954
|
+
O[H].d(1);
|
|
955
|
+
O.length = ie.length;
|
|
956
956
|
}
|
|
957
957
|
I[0] & /*$_*/
|
|
958
|
-
1024 &&
|
|
959
|
-
u[10]("verificationCodeLabel")) && n(
|
|
960
|
-
u[17] ?
|
|
961
|
-
131072 &&
|
|
962
|
-
|
|
958
|
+
1024 && X !== (X = /*$_*/
|
|
959
|
+
u[10]("verificationCodeLabel")) && n(D, "aria-label", X), /*codeError*/
|
|
960
|
+
u[17] ? A ? (A.p(u, I), I[0] & /*codeError*/
|
|
961
|
+
131072 && ae(A, 1)) : (A = Ze(u), A.c(), ae(A, 1), A.m(k, N)) : A && (Se(), Pe(A, 1, 1, () => {
|
|
962
|
+
A = null;
|
|
963
963
|
}), Ce()), /*codeExpiredHint*/
|
|
964
964
|
u[18] && /*remainingSeconds*/
|
|
965
|
-
u[9] === 0 ?
|
|
966
|
-
262656 &&
|
|
967
|
-
|
|
965
|
+
u[9] === 0 ? W ? (W.p(u, I), I[0] & /*codeExpiredHint, remainingSeconds*/
|
|
966
|
+
262656 && ae(W, 1)) : (W = Qe(u), W.c(), ae(W, 1), W.m(k, null)) : W && (Se(), Pe(W, 1, 1, () => {
|
|
967
|
+
W = null;
|
|
968
968
|
}), Ce()), I[0] & /*$_*/
|
|
969
|
-
1024 &&
|
|
970
|
-
u[10]("attemptsLeft") + "") && F(
|
|
969
|
+
1024 && $ !== ($ = /*$_*/
|
|
970
|
+
u[10]("attemptsLeft") + "") && F(ce, $), I[0] & /*attemptsRemaining*/
|
|
971
971
|
16 && F(
|
|
972
|
-
|
|
972
|
+
j,
|
|
973
973
|
/*attemptsRemaining*/
|
|
974
974
|
u[4]
|
|
975
975
|
), /*expiresAt*/
|
|
976
|
-
u[5] ?
|
|
977
|
-
2240 &&
|
|
976
|
+
u[5] ? J ? J.p(u, I) : (J = Xe(u), J.c(), J.m(P, null)) : J && (J.d(1), J = null), se === (se = ee(u)) && L ? L.p(u, I) : (L.d(1), L = se(u), L && (L.c(), L.m(g, null))), I[0] & /*loading, canResendAt, now*/
|
|
977
|
+
2240 && fe !== (fe = /*loading*/
|
|
978
978
|
u[11] || /*canResendAt*/
|
|
979
979
|
u[6] && /*now*/
|
|
980
980
|
u[7] < /*canResendAt*/
|
|
981
|
-
u[6]) && (
|
|
982
|
-
2240 &&
|
|
981
|
+
u[6]) && (g.disabled = fe), I[0] & /*loading, canResendAt, now*/
|
|
982
|
+
2240 && re !== (re = /*loading*/
|
|
983
983
|
u[11] || /*canResendAt*/
|
|
984
984
|
u[6] && /*now*/
|
|
985
985
|
u[7] < /*canResendAt*/
|
|
986
|
-
u[6]) && n(
|
|
987
|
-
3072 &&
|
|
986
|
+
u[6]) && n(g, "aria-disabled", re), I[0] & /*loading, $_*/
|
|
987
|
+
3072 && oe !== (oe = /*loading*/
|
|
988
988
|
(u[11] ? (
|
|
989
989
|
/*$_*/
|
|
990
990
|
u[10]("verifying")
|
|
991
991
|
) : (
|
|
992
992
|
/*$_*/
|
|
993
993
|
u[10]("submitCode")
|
|
994
|
-
)) + "") && F(ke,
|
|
995
|
-
1050624 &&
|
|
994
|
+
)) + "") && F(ke, oe), I[0] & /*loading, disableSubmitCode*/
|
|
995
|
+
1050624 && he !== (he = /*loading*/
|
|
996
996
|
u[11] || /*disableSubmitCode*/
|
|
997
|
-
u[20]) && (
|
|
997
|
+
u[20]) && (T.disabled = he);
|
|
998
998
|
},
|
|
999
999
|
d(u) {
|
|
1000
|
-
u &&
|
|
1000
|
+
u && Z(e), Mt(O, u), A && A.d(), W && W.d(), J && J.d(), L.d(), le = !1, Ee(ve);
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
1004
|
function Je(t) {
|
|
1005
1005
|
let e, o, i, a = (
|
|
1006
1006
|
/*index*/
|
|
1007
|
-
t[
|
|
1007
|
+
t[75]
|
|
1008
1008
|
), s, d;
|
|
1009
1009
|
const f = () => (
|
|
1010
1010
|
/*input_binding*/
|
|
@@ -1013,23 +1013,23 @@ function Je(t) {
|
|
|
1013
1013
|
/*input_binding*/
|
|
1014
1014
|
t[50](null, a)
|
|
1015
1015
|
);
|
|
1016
|
-
function y(...
|
|
1016
|
+
function y(...h) {
|
|
1017
1017
|
return (
|
|
1018
1018
|
/*input_handler*/
|
|
1019
1019
|
t[51](
|
|
1020
1020
|
/*index*/
|
|
1021
|
-
t[
|
|
1022
|
-
...
|
|
1021
|
+
t[75],
|
|
1022
|
+
...h
|
|
1023
1023
|
)
|
|
1024
1024
|
);
|
|
1025
1025
|
}
|
|
1026
|
-
function c(...
|
|
1026
|
+
function c(...h) {
|
|
1027
1027
|
return (
|
|
1028
1028
|
/*keydown_handler*/
|
|
1029
1029
|
t[52](
|
|
1030
1030
|
/*index*/
|
|
1031
|
-
t[
|
|
1032
|
-
...
|
|
1031
|
+
t[75],
|
|
1032
|
+
...h
|
|
1033
1033
|
)
|
|
1034
1034
|
);
|
|
1035
1035
|
}
|
|
@@ -1038,30 +1038,30 @@ function Je(t) {
|
|
|
1038
1038
|
e = p("input"), n(e, "class", "ResetPwdCodeInput"), n(e, "type", "text"), n(e, "maxlength", "1"), e.value = o = /*codeDigits*/
|
|
1039
1039
|
t[8][
|
|
1040
1040
|
/*index*/
|
|
1041
|
-
t[
|
|
1041
|
+
t[75]
|
|
1042
1042
|
], n(e, "inputmode", "numeric"), n(e, "pattern", "\\d*"), n(e, "autocomplete", "one-time-code"), n(e, "placeholder", "•"), n(e, "aria-invalid", i = /*codeError*/
|
|
1043
1043
|
t[17] ? "true" : "false");
|
|
1044
1044
|
},
|
|
1045
|
-
m(
|
|
1046
|
-
|
|
1045
|
+
m(h, R) {
|
|
1046
|
+
Q(h, e, R), f(), s || (d = [
|
|
1047
1047
|
me(e, "input", y),
|
|
1048
1048
|
me(e, "keydown", c)
|
|
1049
1049
|
], s = !0);
|
|
1050
1050
|
},
|
|
1051
|
-
p(
|
|
1052
|
-
t =
|
|
1051
|
+
p(h, R) {
|
|
1052
|
+
t = h, R[0] & /*codeDigits*/
|
|
1053
1053
|
256 && o !== (o = /*codeDigits*/
|
|
1054
1054
|
t[8][
|
|
1055
1055
|
/*index*/
|
|
1056
|
-
t[
|
|
1057
|
-
]) && e.value !== o && (e.value = o),
|
|
1056
|
+
t[75]
|
|
1057
|
+
]) && e.value !== o && (e.value = o), R[0] & /*codeError*/
|
|
1058
1058
|
131072 && i !== (i = /*codeError*/
|
|
1059
1059
|
t[17] ? "true" : "false") && n(e, "aria-invalid", i), a !== /*index*/
|
|
1060
|
-
t[
|
|
1061
|
-
t[
|
|
1060
|
+
t[75] && (m(), a = /*index*/
|
|
1061
|
+
t[75], f());
|
|
1062
1062
|
},
|
|
1063
|
-
d(
|
|
1064
|
-
|
|
1063
|
+
d(h) {
|
|
1064
|
+
h && Z(e), m(), s = !1, Ee(d);
|
|
1065
1065
|
}
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
@@ -1069,13 +1069,13 @@ function Ze(t) {
|
|
|
1069
1069
|
let e, o, i, a;
|
|
1070
1070
|
return {
|
|
1071
1071
|
c() {
|
|
1072
|
-
e = p("div"), o =
|
|
1072
|
+
e = p("div"), o = C(
|
|
1073
1073
|
/*codeError*/
|
|
1074
1074
|
t[17]
|
|
1075
1075
|
), n(e, "class", "ResetPwdError");
|
|
1076
1076
|
},
|
|
1077
1077
|
m(s, d) {
|
|
1078
|
-
|
|
1078
|
+
Q(s, e, d), l(e, o), a = !0;
|
|
1079
1079
|
},
|
|
1080
1080
|
p(s, d) {
|
|
1081
1081
|
(!a || d[0] & /*codeError*/
|
|
@@ -1087,14 +1087,14 @@ function Ze(t) {
|
|
|
1087
1087
|
},
|
|
1088
1088
|
i(s) {
|
|
1089
1089
|
a || (s && ye(() => {
|
|
1090
|
-
a && (i || (i =
|
|
1090
|
+
a && (i || (i = ue(e, we, { amount: 5 }, !0)), i.run(1));
|
|
1091
1091
|
}), a = !0);
|
|
1092
1092
|
},
|
|
1093
1093
|
o(s) {
|
|
1094
|
-
s && (i || (i =
|
|
1094
|
+
s && (i || (i = ue(e, we, { amount: 5 }, !1)), i.run(0)), a = !1;
|
|
1095
1095
|
},
|
|
1096
1096
|
d(s) {
|
|
1097
|
-
s &&
|
|
1097
|
+
s && Z(e), s && i && i.end();
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
@@ -1102,13 +1102,13 @@ function Qe(t) {
|
|
|
1102
1102
|
let e, o, i, a;
|
|
1103
1103
|
return {
|
|
1104
1104
|
c() {
|
|
1105
|
-
e = p("div"), o =
|
|
1105
|
+
e = p("div"), o = C(
|
|
1106
1106
|
/*codeExpiredHint*/
|
|
1107
1107
|
t[18]
|
|
1108
1108
|
), n(e, "class", "ResetPwdHint");
|
|
1109
1109
|
},
|
|
1110
1110
|
m(s, d) {
|
|
1111
|
-
|
|
1111
|
+
Q(s, e, d), l(e, o), a = !0;
|
|
1112
1112
|
},
|
|
1113
1113
|
p(s, d) {
|
|
1114
1114
|
(!a || d[0] & /*codeExpiredHint*/
|
|
@@ -1120,14 +1120,14 @@ function Qe(t) {
|
|
|
1120
1120
|
},
|
|
1121
1121
|
i(s) {
|
|
1122
1122
|
a || (s && ye(() => {
|
|
1123
|
-
a && (i || (i =
|
|
1123
|
+
a && (i || (i = ue(e, we, { amount: 5 }, !0)), i.run(1));
|
|
1124
1124
|
}), a = !0);
|
|
1125
1125
|
},
|
|
1126
1126
|
o(s) {
|
|
1127
|
-
s && (i || (i =
|
|
1127
|
+
s && (i || (i = ue(e, we, { amount: 5 }, !1)), i.run(0)), a = !1;
|
|
1128
1128
|
},
|
|
1129
1129
|
d(s) {
|
|
1130
|
-
s &&
|
|
1130
|
+
s && Z(e), s && i && i.end();
|
|
1131
1131
|
}
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
@@ -1138,18 +1138,18 @@ function Xe(t) {
|
|
|
1138
1138
|
), a, s, d, f, m, y;
|
|
1139
1139
|
return {
|
|
1140
1140
|
c() {
|
|
1141
|
-
e = p("span"), o = p("strong"), a =
|
|
1141
|
+
e = p("span"), o = p("strong"), a = C(i), s = C(":"), d = U(), f = p("span"), m = C(
|
|
1142
1142
|
/*remainingSeconds*/
|
|
1143
1143
|
t[9]
|
|
1144
|
-
), y =
|
|
1144
|
+
), y = C("s"), n(f, "class", "ResetPwdExpires"), n(e, "class", "ResetPwdMeta");
|
|
1145
1145
|
},
|
|
1146
|
-
m(c,
|
|
1147
|
-
|
|
1146
|
+
m(c, h) {
|
|
1147
|
+
Q(c, e, h), l(e, o), l(o, a), l(o, s), l(e, d), l(e, f), l(f, m), l(f, y);
|
|
1148
1148
|
},
|
|
1149
|
-
p(c,
|
|
1150
|
-
|
|
1149
|
+
p(c, h) {
|
|
1150
|
+
h[0] & /*$_*/
|
|
1151
1151
|
1024 && i !== (i = /*$_*/
|
|
1152
|
-
c[10]("expiresIn") + "") && F(a, i),
|
|
1152
|
+
c[10]("expiresIn") + "") && F(a, i), h[0] & /*remainingSeconds*/
|
|
1153
1153
|
512 && F(
|
|
1154
1154
|
m,
|
|
1155
1155
|
/*remainingSeconds*/
|
|
@@ -1157,21 +1157,21 @@ function Xe(t) {
|
|
|
1157
1157
|
);
|
|
1158
1158
|
},
|
|
1159
1159
|
d(c) {
|
|
1160
|
-
c &&
|
|
1160
|
+
c && Z(e);
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Wt(t) {
|
|
1165
1165
|
let e = (
|
|
1166
1166
|
/*$_*/
|
|
1167
1167
|
t[10]("resendCode") + ""
|
|
1168
1168
|
), o;
|
|
1169
1169
|
return {
|
|
1170
1170
|
c() {
|
|
1171
|
-
o =
|
|
1171
|
+
o = C(e);
|
|
1172
1172
|
},
|
|
1173
1173
|
m(i, a) {
|
|
1174
|
-
|
|
1174
|
+
Q(i, o, a);
|
|
1175
1175
|
},
|
|
1176
1176
|
p(i, a) {
|
|
1177
1177
|
a[0] & /*$_*/
|
|
@@ -1179,24 +1179,24 @@ function Kt(t) {
|
|
|
1179
1179
|
i[10]("resendCode") + "") && F(o, e);
|
|
1180
1180
|
},
|
|
1181
1181
|
d(i) {
|
|
1182
|
-
i &&
|
|
1182
|
+
i && Z(o);
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Bt(t) {
|
|
1187
1187
|
let e = (
|
|
1188
1188
|
/*$_*/
|
|
1189
1189
|
t[10]("resendCode") + ""
|
|
1190
1190
|
), o, i, a, s, d, f;
|
|
1191
1191
|
return {
|
|
1192
1192
|
c() {
|
|
1193
|
-
o =
|
|
1193
|
+
o = C(e), i = C(" ("), a = p("span"), s = C(
|
|
1194
1194
|
/*resendSeconds*/
|
|
1195
1195
|
t[21]
|
|
1196
|
-
), d =
|
|
1196
|
+
), d = C("s"), f = C(")"), n(a, "class", "ResetPwdResend");
|
|
1197
1197
|
},
|
|
1198
1198
|
m(m, y) {
|
|
1199
|
-
|
|
1199
|
+
Q(m, o, y), Q(m, i, y), Q(m, a, y), l(a, s), l(a, d), Q(m, f, y);
|
|
1200
1200
|
},
|
|
1201
1201
|
p(m, y) {
|
|
1202
1202
|
y[0] & /*$_*/
|
|
@@ -1209,11 +1209,11 @@ function Ot(t) {
|
|
|
1209
1209
|
);
|
|
1210
1210
|
},
|
|
1211
1211
|
d(m) {
|
|
1212
|
-
m && (
|
|
1212
|
+
m && (Z(o), Z(i), Z(a), Z(f));
|
|
1213
1213
|
}
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function Yt(t) {
|
|
1217
1217
|
let e, o = (
|
|
1218
1218
|
/*isModalOpen*/
|
|
1219
1219
|
t[12] && Oe(t)
|
|
@@ -1223,27 +1223,27 @@ function Wt(t) {
|
|
|
1223
1223
|
e = p("div"), o && o.c();
|
|
1224
1224
|
},
|
|
1225
1225
|
m(i, a) {
|
|
1226
|
-
|
|
1226
|
+
Q(i, e, a), o && o.m(e, null), t[53](e);
|
|
1227
1227
|
},
|
|
1228
1228
|
p(i, a) {
|
|
1229
1229
|
/*isModalOpen*/
|
|
1230
1230
|
i[12] ? o ? (o.p(i, a), a[0] & /*isModalOpen*/
|
|
1231
|
-
4096 &&
|
|
1231
|
+
4096 && ae(o, 1)) : (o = Oe(i), o.c(), ae(o, 1), o.m(e, null)) : o && (Se(), Pe(o, 1, 1, () => {
|
|
1232
1232
|
o = null;
|
|
1233
1233
|
}), Ce());
|
|
1234
1234
|
},
|
|
1235
1235
|
i(i) {
|
|
1236
|
-
|
|
1236
|
+
ae(o);
|
|
1237
1237
|
},
|
|
1238
1238
|
o(i) {
|
|
1239
1239
|
Pe(o);
|
|
1240
1240
|
},
|
|
1241
1241
|
d(i) {
|
|
1242
|
-
i &&
|
|
1242
|
+
i && Z(e), o && o.d(), t[53](null);
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function Gt(t) {
|
|
1247
1247
|
try {
|
|
1248
1248
|
return JSON.parse(t);
|
|
1249
1249
|
} catch {
|
|
@@ -1259,27 +1259,27 @@ function $e(t, e = "error") {
|
|
|
1259
1259
|
window.location.href
|
|
1260
1260
|
);
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Jt(t, e, o) {
|
|
1263
1263
|
let i, a, s, d, f, m, y, c;
|
|
1264
|
-
|
|
1265
|
-
let { clientstyling:
|
|
1266
|
-
const
|
|
1264
|
+
_t(t, Et, (r) => o(10, c = r));
|
|
1265
|
+
let { clientstyling: h = "" } = e, { clientstylingurl: R = "" } = e, { translationurl: _ = "" } = e, { mbsource: V } = e, { phoneregex: B = "" } = e, { phoneprefixeditable: D = "true" } = e, { smscodelength: X = "6" } = e, { smscodemaxattempts: x = "5" } = e, { smscodettl: k = "5" } = e, { resenddelay: N = "1" } = e, { endpoint: E = "" } = e, { lang: Y = "en" } = e, v, P, S, q = "phone", $ = !1, ce = !0;
|
|
1266
|
+
const be = { duration: 140, easing: xe }, pe = {
|
|
1267
1267
|
duration: 220,
|
|
1268
1268
|
start: 0.96,
|
|
1269
1269
|
easing: xe
|
|
1270
|
-
},
|
|
1270
|
+
}, G = {
|
|
1271
1271
|
duration: 140,
|
|
1272
1272
|
start: 1,
|
|
1273
1273
|
easing: xe
|
|
1274
1274
|
};
|
|
1275
|
-
let
|
|
1275
|
+
let j = [], z = "", b = "", g = "", fe = "", re = null, te = "", T = "", oe = /^[\d\.]+$/.test(x) ? Number(x) : 5, ke = Number(/^[\d\.]+$/.test(k) ? k : 5) * 60 * 1e3, he = Number(/^[\d\.]+$/.test(N) ? N : 1) * 60 * 1e3, le = null, ve = "", ie = null, O = null, A = Date.now();
|
|
1276
1276
|
setInterval(
|
|
1277
1277
|
() => {
|
|
1278
1278
|
o(7, A = Date.now());
|
|
1279
1279
|
},
|
|
1280
1280
|
250
|
|
1281
1281
|
);
|
|
1282
|
-
function
|
|
1282
|
+
function W() {
|
|
1283
1283
|
try {
|
|
1284
1284
|
window.postMessage(
|
|
1285
1285
|
{
|
|
@@ -1290,57 +1290,57 @@ function Yt(t, e, o) {
|
|
|
1290
1290
|
);
|
|
1291
1291
|
} catch {
|
|
1292
1292
|
}
|
|
1293
|
-
o(12,
|
|
1293
|
+
o(12, ce = !1);
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1296
|
-
return
|
|
1295
|
+
function J(r) {
|
|
1296
|
+
return B ? (typeof B == "string" ? new RegExp(B) : B).test(r.trim()) : !1;
|
|
1297
1297
|
}
|
|
1298
|
-
let
|
|
1299
|
-
function
|
|
1298
|
+
let ee = Number(X), se = [], L = Array(Number(ee)).fill("");
|
|
1299
|
+
function u(r, w) {
|
|
1300
1300
|
const M = r.target.value.replace(/\D/g, "");
|
|
1301
1301
|
if (M.length === 1)
|
|
1302
|
-
o(8,
|
|
1302
|
+
o(8, L[w] = M, L), H(w);
|
|
1303
1303
|
else if (M.length > 1) {
|
|
1304
|
-
const
|
|
1305
|
-
|
|
1306
|
-
o(8,
|
|
1307
|
-
}),
|
|
1304
|
+
const de = M.split("").slice(0, ee - w);
|
|
1305
|
+
de.forEach((wt, bt) => {
|
|
1306
|
+
o(8, L[w + bt] = wt, L);
|
|
1307
|
+
}), et(w + de.length - 1);
|
|
1308
1308
|
}
|
|
1309
|
-
|
|
1310
|
-
}
|
|
1311
|
-
function u(r, w) {
|
|
1312
|
-
r.key === "Backspace" ? U[w] ? o(8, U[w] = "", U) : w > 0 && (O(w), o(8, U[w - 1] = "", U)) : !/\d/.test(r.key) && r.key !== "Tab" && r.key.length === 1 && r.preventDefault();
|
|
1309
|
+
te = L.join("");
|
|
1313
1310
|
}
|
|
1314
|
-
function I(r) {
|
|
1315
|
-
r
|
|
1311
|
+
function I(r, w) {
|
|
1312
|
+
r.key === "Backspace" ? L[w] ? o(8, L[w] = "", L) : w > 0 && (Re(w), o(8, L[w - 1] = "", L)) : !/\d/.test(r.key) && r.key !== "Tab" && r.key.length === 1 && r.preventDefault();
|
|
1316
1313
|
}
|
|
1317
|
-
function
|
|
1318
|
-
r
|
|
1314
|
+
function H(r) {
|
|
1315
|
+
r < ee - 1 && se[r + 1]?.focus();
|
|
1319
1316
|
}
|
|
1320
1317
|
function Re(r) {
|
|
1321
|
-
r
|
|
1318
|
+
r > 0 && se[r - 1]?.focus();
|
|
1319
|
+
}
|
|
1320
|
+
function et(r) {
|
|
1321
|
+
r >= 0 && r < ee && se[r]?.focus();
|
|
1322
1322
|
}
|
|
1323
|
-
async function
|
|
1324
|
-
const
|
|
1323
|
+
async function Ie(r, w) {
|
|
1324
|
+
const K = await fetch(r, {
|
|
1325
1325
|
method: "POST",
|
|
1326
1326
|
headers: { "Content-Type": "application/json" },
|
|
1327
1327
|
body: void 0
|
|
1328
|
-
}), M = await
|
|
1329
|
-
if (!
|
|
1330
|
-
throw new De(
|
|
1331
|
-
return
|
|
1332
|
-
}
|
|
1333
|
-
async function et(r) {
|
|
1334
|
-
const { mobileNumber: w, mobilePrefix: W } = r, M = new URLSearchParams({ mobileNumber: w });
|
|
1335
|
-
W && M.set("mobilePrefix", W);
|
|
1336
|
-
const ae = `${E}/v1/player/resetPasswordByMobilePhone?${M.toString()}`;
|
|
1337
|
-
return await je(ae);
|
|
1328
|
+
}), M = await K.text(), de = M ? Gt(M) : void 0;
|
|
1329
|
+
if (!K.ok)
|
|
1330
|
+
throw new De(K.status, de?.error ?? K.statusText, de);
|
|
1331
|
+
return de ?? {};
|
|
1338
1332
|
}
|
|
1339
1333
|
async function tt(r) {
|
|
1340
|
-
const {
|
|
1341
|
-
|
|
1334
|
+
const { mobileNumber: w, mobilePrefix: K } = r, M = new URLSearchParams({ mobileNumber: w });
|
|
1335
|
+
K && M.set("mobilePrefix", K);
|
|
1336
|
+
const de = `${E}/v1/player/resetPasswordByMobilePhone?${M.toString()}`;
|
|
1337
|
+
return await Ie(de);
|
|
1338
|
+
}
|
|
1339
|
+
async function ot(r) {
|
|
1340
|
+
const { tokenId: w, validationCode: K } = r, M = new URLSearchParams({ tokenId: w, validationCode: K }), de = `${E}/v1/player/resetPasswordByMobilePhone/validate?${M.toString()}`;
|
|
1341
|
+
return await Ie(de);
|
|
1342
1342
|
}
|
|
1343
|
-
async function
|
|
1343
|
+
async function it() {
|
|
1344
1344
|
const r = new URL(`${E}/v1/player/operatorSupportedPhoneCodes`), w = await fetch(r.href);
|
|
1345
1345
|
try {
|
|
1346
1346
|
return (await w.json()).phoneCodes.map((M) => ({ label: M, value: M }));
|
|
@@ -1348,211 +1348,213 @@ function Yt(t, e, o) {
|
|
|
1348
1348
|
return [];
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function rt(r) {
|
|
1352
1352
|
const w = r.target.value;
|
|
1353
|
-
o(14,
|
|
1353
|
+
o(14, b = w);
|
|
1354
1354
|
}
|
|
1355
|
-
async function
|
|
1356
|
-
o(15,
|
|
1355
|
+
async function Ne() {
|
|
1356
|
+
o(15, g = ""), o(16, fe = ""), o(17, T = ""), o(11, $ = !0);
|
|
1357
1357
|
try {
|
|
1358
|
-
if (!
|
|
1359
|
-
o(15,
|
|
1358
|
+
if (!J(z)) {
|
|
1359
|
+
o(15, g = c("invalidPhone"));
|
|
1360
1360
|
return;
|
|
1361
1361
|
}
|
|
1362
|
-
const r = await
|
|
1363
|
-
mobileNumber:
|
|
1364
|
-
mobilePrefix:
|
|
1362
|
+
const r = await tt({
|
|
1363
|
+
mobileNumber: z.trim(),
|
|
1364
|
+
mobilePrefix: b?.trim() || void 0
|
|
1365
1365
|
});
|
|
1366
1366
|
if (r?.tokenId) {
|
|
1367
|
-
|
|
1368
|
-
const w =
|
|
1369
|
-
o(4,
|
|
1367
|
+
re = r.tokenId, o(5, le = Date.now() + ke), o(6, ie = Date.now() + he), o(18, ve = ""), te = "", o(8, L = Array.from({ length: ee }, () => ""));
|
|
1368
|
+
const w = Vt(re);
|
|
1369
|
+
o(4, oe = w ?? Number(x)), He(re, oe), o(2, q = "code");
|
|
1370
1370
|
} else
|
|
1371
|
-
o(16,
|
|
1371
|
+
o(16, fe = c("genericIfRegistered").replace("{n}", String(ee)));
|
|
1372
1372
|
} catch (r) {
|
|
1373
|
-
const { message: w, thirdPartyResponse: { message:
|
|
1374
|
-
o(15,
|
|
1373
|
+
const { message: w, thirdPartyResponse: { message: K } = {} } = r;
|
|
1374
|
+
o(15, g = K || w), $e(g);
|
|
1375
1375
|
} finally {
|
|
1376
|
-
o(11,
|
|
1376
|
+
o(11, $ = !1);
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
1379
|
function Le() {
|
|
1380
|
-
o(4,
|
|
1380
|
+
o(4, oe = Math.max(0, oe - 1)), He(re, oe);
|
|
1381
1381
|
}
|
|
1382
|
-
async function
|
|
1383
|
-
o(17,
|
|
1382
|
+
async function nt() {
|
|
1383
|
+
o(17, T = ""), o(11, $ = !0);
|
|
1384
1384
|
try {
|
|
1385
|
-
if (!
|
|
1386
|
-
o(17,
|
|
1385
|
+
if (!te || te.trim().length !== ee || !/^\d+$/.test(te.trim())) {
|
|
1386
|
+
o(17, T = c("enterDigitsCode").replace("{n}", String(ee)));
|
|
1387
1387
|
return;
|
|
1388
1388
|
}
|
|
1389
|
-
if (!
|
|
1390
|
-
o(17,
|
|
1389
|
+
if (!re) {
|
|
1390
|
+
o(17, T = c("invalidRequest"));
|
|
1391
1391
|
return;
|
|
1392
1392
|
}
|
|
1393
|
-
const r = await
|
|
1394
|
-
|
|
1393
|
+
const r = await ot({ tokenId: re, validationCode: te.trim() });
|
|
1394
|
+
O = r.hashKey.charAt(0) === "/" ? r.hashKey.slice(1) : r.hashKey, o(2, q = "password"), Dt(re), window.postMessage(
|
|
1395
1395
|
{
|
|
1396
1396
|
type: "SwitchToResetPasswordScreen",
|
|
1397
|
-
key:
|
|
1397
|
+
key: O
|
|
1398
1398
|
},
|
|
1399
1399
|
window.location.href
|
|
1400
1400
|
);
|
|
1401
1401
|
} catch (r) {
|
|
1402
|
-
if (o(17,
|
|
1403
|
-
const w = r.payload,
|
|
1404
|
-
switch (
|
|
1402
|
+
if (o(17, T = c("unableToVerify")), r instanceof De) {
|
|
1403
|
+
const w = r.payload, K = r.status, M = (w?.error || "").toLowerCase();
|
|
1404
|
+
switch (K) {
|
|
1405
1405
|
case 400: {
|
|
1406
|
-
M.includes("invalid validation code") ? (Le(), o(17,
|
|
1406
|
+
M.includes("invalid validation code") ? (Le(), o(17, T = oe > 0 ? c("incorrectCode") : c("tooManyAttempts"))) : M.includes("expired") ? (o(17, T = c("codeExpired")), o(18, ve = c("codeExpired")), o(5, le = null)) : M.includes("not valid") || M.includes("invalid token") ? o(17, T = c("invalidRequest")) : o(17, T = c("unableToVerify"));
|
|
1407
1407
|
break;
|
|
1408
1408
|
}
|
|
1409
1409
|
case 424: {
|
|
1410
|
-
M.includes("input is not match") ? (Le(), o(17,
|
|
1410
|
+
M.includes("input is not match") ? (Le(), o(17, T = c("incorrectCode"))) : M.includes("validation max attempts exceeded") ? (Le(), o(17, T = c("tooManyAttempts"))) : o(17, T = c("unableToVerify"));
|
|
1411
1411
|
break;
|
|
1412
1412
|
}
|
|
1413
1413
|
case 404: {
|
|
1414
|
-
o(17,
|
|
1414
|
+
o(17, T = c("sessionNotFound"));
|
|
1415
1415
|
break;
|
|
1416
1416
|
}
|
|
1417
1417
|
default: {
|
|
1418
|
-
o(17,
|
|
1418
|
+
o(17, T = c("unableToVerify"));
|
|
1419
1419
|
break;
|
|
1420
1420
|
}
|
|
1421
1421
|
}
|
|
1422
|
-
$e(
|
|
1422
|
+
$e(T);
|
|
1423
1423
|
}
|
|
1424
1424
|
} finally {
|
|
1425
|
-
o(11,
|
|
1425
|
+
o(11, $ = !1);
|
|
1426
1426
|
}
|
|
1427
1427
|
}
|
|
1428
|
-
async function
|
|
1429
|
-
|
|
1428
|
+
async function st() {
|
|
1429
|
+
$ || ie && A < ie || await Ne();
|
|
1430
1430
|
}
|
|
1431
|
-
|
|
1432
|
-
const
|
|
1431
|
+
Ut({ withLocale: "en", translations: {} });
|
|
1432
|
+
const at = async (r) => {
|
|
1433
1433
|
try {
|
|
1434
1434
|
const w = await fetch(r);
|
|
1435
1435
|
if (!w.ok)
|
|
1436
1436
|
throw new Error(`Fetch failed with status ${w.status}`);
|
|
1437
|
-
const
|
|
1438
|
-
for (const M in
|
|
1439
|
-
|
|
1437
|
+
const K = await w.json();
|
|
1438
|
+
for (const M in K)
|
|
1439
|
+
Te(M, K[M]);
|
|
1440
1440
|
} catch (w) {
|
|
1441
1441
|
console.error("Error fetching translation", w);
|
|
1442
1442
|
}
|
|
1443
1443
|
};
|
|
1444
1444
|
Object.keys(Ve).forEach((r) => {
|
|
1445
|
-
|
|
1445
|
+
Te(r, Ve[r]);
|
|
1446
1446
|
});
|
|
1447
|
-
const
|
|
1448
|
-
|
|
1447
|
+
const lt = () => {
|
|
1448
|
+
Ft(Y);
|
|
1449
1449
|
};
|
|
1450
|
-
|
|
1450
|
+
zt(async () => (o(13, j = await it()), o(14, b = j?.[0]?.value), te && te.length === ee && o(8, L = te.split("")), () => {
|
|
1451
|
+
S && S.unsubscribe();
|
|
1451
1452
|
}));
|
|
1452
|
-
function lt() {
|
|
1453
|
-
x = this.value, o(14, x);
|
|
1454
|
-
}
|
|
1455
1453
|
function dt() {
|
|
1456
|
-
|
|
1454
|
+
b = this.value, o(14, b);
|
|
1455
|
+
}
|
|
1456
|
+
function ut() {
|
|
1457
|
+
z = this.value, o(3, z);
|
|
1457
1458
|
}
|
|
1458
|
-
function
|
|
1459
|
-
|
|
1460
|
-
|
|
1459
|
+
function ct(r, w) {
|
|
1460
|
+
qe[r ? "unshift" : "push"](() => {
|
|
1461
|
+
se[w] = r, o(19, se);
|
|
1461
1462
|
});
|
|
1462
1463
|
}
|
|
1463
|
-
const
|
|
1464
|
-
function
|
|
1465
|
-
|
|
1466
|
-
|
|
1464
|
+
const pt = (r, w) => u(w, r), ft = (r, w) => I(w, r);
|
|
1465
|
+
function mt(r) {
|
|
1466
|
+
qe[r ? "unshift" : "push"](() => {
|
|
1467
|
+
v = r, o(1, v);
|
|
1467
1468
|
});
|
|
1468
1469
|
}
|
|
1469
1470
|
return t.$$set = (r) => {
|
|
1470
|
-
"clientstyling" in r && o(33,
|
|
1471
|
+
"clientstyling" in r && o(33, h = r.clientstyling), "clientstylingurl" in r && o(34, R = r.clientstylingurl), "translationurl" in r && o(35, _ = r.translationurl), "mbsource" in r && o(36, V = r.mbsource), "phoneregex" in r && o(37, B = 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, k = r.smscodettl), "resenddelay" in r && o(41, N = r.resenddelay), "endpoint" in r && o(42, E = r.endpoint), "lang" in r && o(43, Y = r.lang);
|
|
1471
1472
|
}, t.$$.update = () => {
|
|
1472
1473
|
t.$$.dirty[0] & /*customStylingContainer*/
|
|
1473
1474
|
2 | t.$$.dirty[1] & /*clientstyling*/
|
|
1474
|
-
4 &&
|
|
1475
|
+
4 && h && v && jt(v, h), t.$$.dirty[0] & /*customStylingContainer*/
|
|
1475
1476
|
2 | t.$$.dirty[1] & /*clientstylingurl*/
|
|
1476
|
-
8 &&
|
|
1477
|
+
8 && R && v && It(v, R), t.$$.dirty[0] & /*customStylingContainer*/
|
|
1477
1478
|
2 | t.$$.dirty[1] & /*mbsource*/
|
|
1478
|
-
32 &&
|
|
1479
|
-
4096 &&
|
|
1480
|
-
16 &&
|
|
1481
|
-
160 && o(9, i =
|
|
1482
|
-
192 && o(21, a =
|
|
1483
|
-
544 && o(44, s = !!
|
|
1484
|
-
1036 && o(15,
|
|
1485
|
-
256 && o(46, d =
|
|
1486
|
-
256 && o(47, f =
|
|
1487
|
-
98304 && o(45, m = f && d.length ===
|
|
1488
|
-
256 && (
|
|
1479
|
+
32 && V && v && Nt(v, `${V}.Style`, P), t.$$.dirty[1] & /*lang*/
|
|
1480
|
+
4096 && Y && lt(), t.$$.dirty[1] & /*translationurl*/
|
|
1481
|
+
16 && _ && at(_), t.$$.dirty[0] & /*expiresAt, now*/
|
|
1482
|
+
160 && o(9, i = le ? Math.max(0, Math.ceil((le - A) / 1e3)) : 0), t.$$.dirty[0] & /*canResendAt, now*/
|
|
1483
|
+
192 && o(21, a = ie ? Math.max(0, Math.ceil((ie - A) / 1e3)) : 0), t.$$.dirty[0] & /*expiresAt, remainingSeconds*/
|
|
1484
|
+
544 && o(44, s = !!le && i === 0), t.$$.dirty[0] & /*step, phone, $_*/
|
|
1485
|
+
1036 && o(15, g = q === "phone" && z ? J(z) ? "" : c("invalidPhone") : ""), t.$$.dirty[0] & /*codeDigits*/
|
|
1486
|
+
256 && o(46, d = L.join("")), t.$$.dirty[0] & /*codeDigits*/
|
|
1487
|
+
256 && o(47, f = L.every((r) => /^\d$/.test(r))), t.$$.dirty[1] & /*isCodeFilled, codeCombined*/
|
|
1488
|
+
98304 && o(45, m = f && d.length === ee), t.$$.dirty[0] & /*codeDigits*/
|
|
1489
|
+
256 && (te = L.join("")), t.$$.dirty[0] & /*attemptsRemaining*/
|
|
1489
1490
|
16 | t.$$.dirty[1] & /*isCodeValid, isTokenExpired*/
|
|
1490
|
-
24576 && o(20, y = !m || s ||
|
|
1491
|
+
24576 && o(20, y = !m || s || oe <= 0), t.$$.dirty[1] & /*mbsource, translationurl*/
|
|
1492
|
+
48 && V && !_ && (S = Lt(`${V}.Translation`, void 0, Te, !0));
|
|
1491
1493
|
}, [
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1494
|
+
D,
|
|
1495
|
+
v,
|
|
1496
|
+
q,
|
|
1497
|
+
z,
|
|
1498
|
+
oe,
|
|
1499
|
+
le,
|
|
1500
|
+
ie,
|
|
1499
1501
|
A,
|
|
1500
|
-
|
|
1502
|
+
L,
|
|
1501
1503
|
i,
|
|
1502
1504
|
c,
|
|
1505
|
+
$,
|
|
1506
|
+
ce,
|
|
1503
1507
|
j,
|
|
1504
|
-
re,
|
|
1505
|
-
D,
|
|
1506
|
-
x,
|
|
1507
1508
|
b,
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1509
|
+
g,
|
|
1510
|
+
fe,
|
|
1511
|
+
T,
|
|
1512
|
+
ve,
|
|
1513
|
+
se,
|
|
1512
1514
|
y,
|
|
1513
1515
|
a,
|
|
1514
|
-
fe,
|
|
1515
1516
|
be,
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1517
|
+
pe,
|
|
1518
|
+
G,
|
|
1519
|
+
W,
|
|
1520
|
+
ee,
|
|
1520
1521
|
u,
|
|
1521
|
-
|
|
1522
|
-
Ie,
|
|
1522
|
+
I,
|
|
1523
1523
|
rt,
|
|
1524
|
+
Ne,
|
|
1524
1525
|
nt,
|
|
1525
|
-
|
|
1526
|
+
st,
|
|
1527
|
+
h,
|
|
1528
|
+
R,
|
|
1526
1529
|
_,
|
|
1527
|
-
|
|
1530
|
+
V,
|
|
1528
1531
|
B,
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
L,
|
|
1532
|
+
X,
|
|
1533
|
+
x,
|
|
1532
1534
|
k,
|
|
1533
1535
|
N,
|
|
1534
1536
|
E,
|
|
1535
|
-
|
|
1537
|
+
Y,
|
|
1536
1538
|
s,
|
|
1537
1539
|
m,
|
|
1538
1540
|
d,
|
|
1539
1541
|
f,
|
|
1540
|
-
lt,
|
|
1541
1542
|
dt,
|
|
1542
1543
|
ut,
|
|
1543
1544
|
ct,
|
|
1544
1545
|
pt,
|
|
1545
|
-
ft
|
|
1546
|
+
ft,
|
|
1547
|
+
mt
|
|
1546
1548
|
];
|
|
1547
1549
|
}
|
|
1548
|
-
class
|
|
1550
|
+
class Zt extends yt {
|
|
1549
1551
|
constructor(e) {
|
|
1550
|
-
super(),
|
|
1552
|
+
super(), kt(
|
|
1551
1553
|
this,
|
|
1552
1554
|
e,
|
|
1555
|
+
Jt,
|
|
1553
1556
|
Yt,
|
|
1554
|
-
|
|
1555
|
-
kt,
|
|
1557
|
+
St,
|
|
1556
1558
|
{
|
|
1557
1559
|
clientstyling: 33,
|
|
1558
1560
|
clientstylingurl: 34,
|
|
@@ -1567,7 +1569,7 @@ class Gt extends Pt {
|
|
|
1567
1569
|
endpoint: 42,
|
|
1568
1570
|
lang: 43
|
|
1569
1571
|
},
|
|
1570
|
-
|
|
1572
|
+
Ht,
|
|
1571
1573
|
[-1, -1, -1]
|
|
1572
1574
|
);
|
|
1573
1575
|
}
|
|
@@ -1575,76 +1577,76 @@ class Gt extends Pt {
|
|
|
1575
1577
|
return this.$$.ctx[33];
|
|
1576
1578
|
}
|
|
1577
1579
|
set clientstyling(e) {
|
|
1578
|
-
this.$$set({ clientstyling: e }),
|
|
1580
|
+
this.$$set({ clientstyling: e }), ne();
|
|
1579
1581
|
}
|
|
1580
1582
|
get clientstylingurl() {
|
|
1581
1583
|
return this.$$.ctx[34];
|
|
1582
1584
|
}
|
|
1583
1585
|
set clientstylingurl(e) {
|
|
1584
|
-
this.$$set({ clientstylingurl: e }),
|
|
1586
|
+
this.$$set({ clientstylingurl: e }), ne();
|
|
1585
1587
|
}
|
|
1586
1588
|
get translationurl() {
|
|
1587
1589
|
return this.$$.ctx[35];
|
|
1588
1590
|
}
|
|
1589
1591
|
set translationurl(e) {
|
|
1590
|
-
this.$$set({ translationurl: e }),
|
|
1592
|
+
this.$$set({ translationurl: e }), ne();
|
|
1591
1593
|
}
|
|
1592
1594
|
get mbsource() {
|
|
1593
1595
|
return this.$$.ctx[36];
|
|
1594
1596
|
}
|
|
1595
1597
|
set mbsource(e) {
|
|
1596
|
-
this.$$set({ mbsource: e }),
|
|
1598
|
+
this.$$set({ mbsource: e }), ne();
|
|
1597
1599
|
}
|
|
1598
1600
|
get phoneregex() {
|
|
1599
1601
|
return this.$$.ctx[37];
|
|
1600
1602
|
}
|
|
1601
1603
|
set phoneregex(e) {
|
|
1602
|
-
this.$$set({ phoneregex: e }),
|
|
1604
|
+
this.$$set({ phoneregex: e }), ne();
|
|
1603
1605
|
}
|
|
1604
1606
|
get phoneprefixeditable() {
|
|
1605
1607
|
return this.$$.ctx[0];
|
|
1606
1608
|
}
|
|
1607
1609
|
set phoneprefixeditable(e) {
|
|
1608
|
-
this.$$set({ phoneprefixeditable: e }),
|
|
1610
|
+
this.$$set({ phoneprefixeditable: e }), ne();
|
|
1609
1611
|
}
|
|
1610
1612
|
get smscodelength() {
|
|
1611
1613
|
return this.$$.ctx[38];
|
|
1612
1614
|
}
|
|
1613
1615
|
set smscodelength(e) {
|
|
1614
|
-
this.$$set({ smscodelength: e }),
|
|
1616
|
+
this.$$set({ smscodelength: e }), ne();
|
|
1615
1617
|
}
|
|
1616
1618
|
get smscodemaxattempts() {
|
|
1617
1619
|
return this.$$.ctx[39];
|
|
1618
1620
|
}
|
|
1619
1621
|
set smscodemaxattempts(e) {
|
|
1620
|
-
this.$$set({ smscodemaxattempts: e }),
|
|
1622
|
+
this.$$set({ smscodemaxattempts: e }), ne();
|
|
1621
1623
|
}
|
|
1622
1624
|
get smscodettl() {
|
|
1623
1625
|
return this.$$.ctx[40];
|
|
1624
1626
|
}
|
|
1625
1627
|
set smscodettl(e) {
|
|
1626
|
-
this.$$set({ smscodettl: e }),
|
|
1628
|
+
this.$$set({ smscodettl: e }), ne();
|
|
1627
1629
|
}
|
|
1628
1630
|
get resenddelay() {
|
|
1629
1631
|
return this.$$.ctx[41];
|
|
1630
1632
|
}
|
|
1631
1633
|
set resenddelay(e) {
|
|
1632
|
-
this.$$set({ resenddelay: e }),
|
|
1634
|
+
this.$$set({ resenddelay: e }), ne();
|
|
1633
1635
|
}
|
|
1634
1636
|
get endpoint() {
|
|
1635
1637
|
return this.$$.ctx[42];
|
|
1636
1638
|
}
|
|
1637
1639
|
set endpoint(e) {
|
|
1638
|
-
this.$$set({ endpoint: e }),
|
|
1640
|
+
this.$$set({ endpoint: e }), ne();
|
|
1639
1641
|
}
|
|
1640
1642
|
get lang() {
|
|
1641
1643
|
return this.$$.ctx[43];
|
|
1642
1644
|
}
|
|
1643
1645
|
set lang(e) {
|
|
1644
|
-
this.$$set({ lang: e }),
|
|
1646
|
+
this.$$set({ lang: e }), ne();
|
|
1645
1647
|
}
|
|
1646
1648
|
}
|
|
1647
|
-
|
|
1649
|
+
Ct(Zt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, phoneregex: {}, phoneprefixeditable: {}, smscodelength: {}, smscodemaxattempts: {}, smscodettl: {}, resenddelay: {}, endpoint: {}, lang: {} }, [], [], !0);
|
|
1648
1650
|
export {
|
|
1649
|
-
|
|
1651
|
+
Zt as default
|
|
1650
1652
|
};
|