@everymatrix/general-player-forgot-password-form-nd 1.85.5 → 1.85.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{GeneralPlayerForgotPasswordFormNd-fV-zedcH.js → GeneralPlayerForgotPasswordFormNd-CxWaMZ-H.js} +1 -1
- package/components/{GeneralPlayerForgotPasswordFormNd-BUHmQ4bm.cjs → GeneralPlayerForgotPasswordFormNd-DKhLI8CP.cjs} +1 -1
- package/components/{GeneralPlayerForgotPasswordFormNd-DmF1pc4p.js → GeneralPlayerForgotPasswordFormNd-DSdVVjUO.js} +1 -1
- package/components/{GeneralPlayerForgotPasswordSmsForm-Dv9H1vME.js → GeneralPlayerForgotPasswordSmsForm-BHCK5b0Y.js} +314 -307
- package/components/{GeneralPlayerForgotPasswordSmsForm-Dcjz0B3u.js → GeneralPlayerForgotPasswordSmsForm-C94Fg4vY.js} +322 -315
- package/components/{GeneralPlayerForgotPasswordSmsForm-DBjwfb5b.cjs → GeneralPlayerForgotPasswordSmsForm-DUo-Gv6e.cjs} +3 -3
- package/es2015/general-player-forgot-password-form-nd.cjs +1 -1
- package/es2015/general-player-forgot-password-form-nd.js +1 -1
- package/esnext/general-player-forgot-password-form-nd.js +1 -1
- package/package.json +1 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
function
|
|
1
|
+
import { i as wt, s as bt, $ as Te, a as gt, b as ht, S as vt, c as Pt, f as oe, d as yt, e as kt, g as Ct, h as Z, t as Pe, j as se, k as Re, l as Q, m as p, n as Rt, o as St, p as _t, q as ce, r as ye, u as zt, v as s, w as F, x as l, y as me, z as R, A as q, B as Ie, C as Me, D as _e, E as ze, F as Se, G as Ne, H as Lt, I as he, J as xt, K as Tt, L as Mt, M as Et } from "./GeneralPlayerForgotPasswordFormNd-CxWaMZ-H.js";
|
|
2
|
+
function jt(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 It(t) {
|
|
6
6
|
const e = t - 1;
|
|
7
7
|
return e * e * e + 1;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
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 - n), [c,
|
|
12
|
+
function we(t, { delay: e = 0, duration: o = 400, easing: i = jt, amount: a = 5, opacity: n = 0 } = {}) {
|
|
13
|
+
const d = getComputedStyle(t), f = +d.opacity, m = d.filter === "none" ? "" : d.filter, y = f * (1 - n), [c, h] = bt(a);
|
|
14
14
|
return {
|
|
15
15
|
delay: e,
|
|
16
16
|
duration: o,
|
|
17
17
|
easing: i,
|
|
18
|
-
css: (
|
|
18
|
+
css: (S, L) => `opacity: ${f - y * L}; filter: ${m} blur(${L * c}${h});`
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function qe(t, { delay: e = 0, duration: o = 400, easing: i = wt } = {}) {
|
|
22
22
|
const a = +getComputedStyle(t).opacity;
|
|
23
23
|
return {
|
|
24
24
|
delay: e,
|
|
@@ -27,30 +27,30 @@ function Ne(t, { delay: e = 0, duration: o = 400, easing: i = mt } = {}) {
|
|
|
27
27
|
css: (n) => `opacity: ${n * a}`
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Ae(t, { delay: e = 0, duration: o = 400, easing: i = It, start: a = 0, opacity: n = 0 } = {}) {
|
|
31
31
|
const d = getComputedStyle(t), f = +d.opacity, m = d.transform === "none" ? "" : d.transform, y = 1 - a, c = f * (1 - n);
|
|
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, S) => `
|
|
37
|
+
transform: ${m} scale(${1 - y * S});
|
|
38
|
+
opacity: ${f - c * S}
|
|
39
39
|
`
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
44
|
-
o == null && (
|
|
42
|
+
function Nt({ withLocale: t, translations: e }) {
|
|
43
|
+
Te.subscribe((o) => {
|
|
44
|
+
o == null && (gt.set(e), Te.set(t));
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
function Ue(t, e) {
|
|
48
|
-
|
|
48
|
+
ht(t, e);
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
50
|
+
function qt(t) {
|
|
51
|
+
Te.set(t);
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const Fe = {
|
|
54
54
|
en: {
|
|
55
55
|
resetTitle: "Reset your password",
|
|
56
56
|
resetSubtitle: "Follow the steps below to securely reset your password.",
|
|
@@ -457,23 +457,23 @@ const Ae = {
|
|
|
457
457
|
couldNotUpdatePassword: "Could not update password. Please try again."
|
|
458
458
|
}
|
|
459
459
|
};
|
|
460
|
-
class
|
|
460
|
+
class Ve extends Error {
|
|
461
461
|
constructor(e, o, i) {
|
|
462
462
|
super(o), this.status = e, this.payload = i;
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function Ee(t) {
|
|
466
466
|
return `reset_attempts_${t}`;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function De(t, e) {
|
|
469
469
|
try {
|
|
470
|
-
localStorage.setItem(
|
|
470
|
+
localStorage.setItem(Ee(t), String(e));
|
|
471
471
|
} catch {
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function At(t) {
|
|
475
475
|
try {
|
|
476
|
-
const e = localStorage.getItem(
|
|
476
|
+
const e = localStorage.getItem(Ee(t));
|
|
477
477
|
return e != null ? Math.max(0, parseInt(e, 10)) : null;
|
|
478
478
|
} catch {
|
|
479
479
|
return null;
|
|
@@ -481,106 +481,106 @@ function qt(t) {
|
|
|
481
481
|
}
|
|
482
482
|
function Ut(t) {
|
|
483
483
|
try {
|
|
484
|
-
localStorage.removeItem(
|
|
484
|
+
localStorage.removeItem(Ee(t));
|
|
485
485
|
} catch {
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
489
|
-
|
|
488
|
+
function Ft(t) {
|
|
489
|
+
Ct(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
|
-
function
|
|
491
|
+
function He(t, e, o) {
|
|
492
492
|
const i = t.slice();
|
|
493
|
-
return i[
|
|
493
|
+
return i[72] = e[o], i[73] = e, i[74] = o, i;
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Ke(t) {
|
|
496
496
|
let e, o, i, a, n, d, f, m, y = (
|
|
497
497
|
/*$_*/
|
|
498
498
|
t[10]("resetTitle") + ""
|
|
499
|
-
), c,
|
|
499
|
+
), c, h, S, L = (
|
|
500
500
|
/*$_*/
|
|
501
501
|
t[10]("resetSubtitle") + ""
|
|
502
|
-
),
|
|
502
|
+
), B, Y, D, X, x, C, N, E, G, v = (
|
|
503
503
|
/*step*/
|
|
504
|
-
t[2] === "phone" &&
|
|
504
|
+
t[2] === "phone" && Oe(t)
|
|
505
505
|
), g = (
|
|
506
506
|
/*step*/
|
|
507
|
-
t[2] === "code" &&
|
|
507
|
+
t[2] === "code" && Ye(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 = R("×"), f = q(), m = p("h2"), c = R(y), h = q(), S = p("p"), B = R(L), Y = q(), v && v.c(), D = q(), g && g.c(), s(i, "class", "ResetPwdClose"), s(i, "type", "button"), s(i, "aria-label", n = /*$_*/
|
|
512
512
|
t[10]("close")), s(i, "title", d = /*$_*/
|
|
513
|
-
t[10]("close")), s(m, "id", "ResetPwdTitle"), s(m, "class", "ResetPwdTitle"), s(
|
|
513
|
+
t[10]("close")), s(m, "id", "ResetPwdTitle"), s(m, "class", "ResetPwdTitle"), s(S, "class", "ResetPwdSub"), s(o, "class", "ResetPwdCard"), s(e, "class", "ResetPwdOverlay"), s(e, "role", "dialog"), s(e, "aria-modal", "true"), s(e, "aria-labelledby", "ResetPwdTitle");
|
|
514
514
|
},
|
|
515
|
-
m(k,
|
|
516
|
-
Q(k, e,
|
|
515
|
+
m(k, V) {
|
|
516
|
+
Q(k, e, V), l(e, o), l(o, i), l(i, a), l(o, f), l(o, m), l(m, c), l(o, h), l(o, S), l(S, B), l(o, Y), v && v.m(o, null), l(o, D), g && g.m(o, null), N = !0, E || (G = me(
|
|
517
517
|
i,
|
|
518
518
|
"click",
|
|
519
519
|
/*closeModal*/
|
|
520
520
|
t[25]
|
|
521
|
-
),
|
|
521
|
+
), E = !0);
|
|
522
522
|
},
|
|
523
|
-
p(k,
|
|
524
|
-
t = k, (!N ||
|
|
523
|
+
p(k, V) {
|
|
524
|
+
t = k, (!N || V[0] & /*$_*/
|
|
525
525
|
1024 && n !== (n = /*$_*/
|
|
526
|
-
t[10]("close"))) && s(i, "aria-label", n), (!N ||
|
|
526
|
+
t[10]("close"))) && s(i, "aria-label", n), (!N || V[0] & /*$_*/
|
|
527
527
|
1024 && d !== (d = /*$_*/
|
|
528
|
-
t[10]("close"))) && s(i, "title", d), (!N ||
|
|
528
|
+
t[10]("close"))) && s(i, "title", d), (!N || V[0] & /*$_*/
|
|
529
529
|
1024) && y !== (y = /*$_*/
|
|
530
|
-
t[10]("resetTitle") + "") &&
|
|
530
|
+
t[10]("resetTitle") + "") && F(c, y), (!N || V[0] & /*$_*/
|
|
531
531
|
1024) && L !== (L = /*$_*/
|
|
532
|
-
t[10]("resetSubtitle") + "") &&
|
|
533
|
-
t[2] === "phone" ?
|
|
534
|
-
t[2] === "code" ? g ? g.p(t,
|
|
532
|
+
t[10]("resetSubtitle") + "") && F(B, L), /*step*/
|
|
533
|
+
t[2] === "phone" ? v ? v.p(t, V) : (v = Oe(t), v.c(), v.m(o, D)) : v && (v.d(1), v = null), /*step*/
|
|
534
|
+
t[2] === "code" ? g ? g.p(t, V) : (g = Ye(t), g.c(), g.m(o, null)) : g && (g.d(1), g = null);
|
|
535
535
|
},
|
|
536
536
|
i(k) {
|
|
537
537
|
N || (k && ye(() => {
|
|
538
|
-
N && (x && x.end(1), X =
|
|
538
|
+
N && (x && x.end(1), X = zt(
|
|
539
539
|
o,
|
|
540
|
-
|
|
540
|
+
Ae,
|
|
541
541
|
/*cardIn*/
|
|
542
542
|
t[23]
|
|
543
543
|
), X.start());
|
|
544
544
|
}), k && ye(() => {
|
|
545
|
-
N && (
|
|
545
|
+
N && (C || (C = ce(
|
|
546
546
|
e,
|
|
547
|
-
|
|
547
|
+
qe,
|
|
548
548
|
/*overlayFade*/
|
|
549
549
|
t[22],
|
|
550
550
|
!0
|
|
551
|
-
)),
|
|
551
|
+
)), C.run(1));
|
|
552
552
|
}), N = !0);
|
|
553
553
|
},
|
|
554
554
|
o(k) {
|
|
555
|
-
X && X.invalidate(), k && (x =
|
|
555
|
+
X && X.invalidate(), k && (x = _t(
|
|
556
556
|
o,
|
|
557
|
-
|
|
557
|
+
Ae,
|
|
558
558
|
/*cardOut*/
|
|
559
559
|
t[24]
|
|
560
|
-
)), k && (
|
|
560
|
+
)), k && (C || (C = ce(
|
|
561
561
|
e,
|
|
562
|
-
|
|
562
|
+
qe,
|
|
563
563
|
/*overlayFade*/
|
|
564
564
|
t[22],
|
|
565
565
|
!1
|
|
566
|
-
)),
|
|
566
|
+
)), C.run(0)), N = !1;
|
|
567
567
|
},
|
|
568
568
|
d(k) {
|
|
569
|
-
k && Z(e),
|
|
569
|
+
k && Z(e), v && v.d(), g && g.d(), k && x && x.end(), k && C && C.end(), E = !1, G();
|
|
570
570
|
}
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function Oe(t) {
|
|
574
574
|
let e, o, i = (
|
|
575
575
|
/*$_*/
|
|
576
576
|
t[10]("enterPhoneHelp") + ""
|
|
577
577
|
), a, n, d, f, m, y = (
|
|
578
578
|
/*$_*/
|
|
579
579
|
t[10]("countryCodeLabel") + ""
|
|
580
|
-
), c,
|
|
580
|
+
), c, h, S, L, B, Y = (
|
|
581
581
|
/*$_*/
|
|
582
582
|
t[10]("phoneLabel") + ""
|
|
583
|
-
),
|
|
583
|
+
), D, X, x, C, N, E, G, v, g, k = (
|
|
584
584
|
/*loading*/
|
|
585
585
|
(t[11] ? (
|
|
586
586
|
/*$_*/
|
|
@@ -589,42 +589,42 @@ function Ke(t) {
|
|
|
589
589
|
/*$_*/
|
|
590
590
|
t[10]("requestCode")
|
|
591
591
|
)) + ""
|
|
592
|
-
),
|
|
592
|
+
), V, ne, pe;
|
|
593
593
|
function be(P, b) {
|
|
594
594
|
return (
|
|
595
595
|
/*phoneprefixeditable*/
|
|
596
|
-
P[0] === "true" ?
|
|
596
|
+
P[0] === "true" ? Dt : Vt
|
|
597
597
|
);
|
|
598
598
|
}
|
|
599
|
-
let ie = be(t),
|
|
599
|
+
let ie = be(t), j = ie(t), _ = (
|
|
600
600
|
/*phoneError*/
|
|
601
|
-
t[15] &&
|
|
601
|
+
t[15] && We(t)
|
|
602
602
|
), T = (
|
|
603
603
|
/*phoneInfo*/
|
|
604
|
-
t[16] &&
|
|
604
|
+
t[16] && Be(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 = R(i), n = q(), d = p("div"), f = p("div"), m = p("label"), c = R(y), h = q(), j.c(), S = q(), L = p("div"), B = p("label"), D = R(Y), X = q(), x = p("input"), N = q(), E = p("div"), _ && _.c(), G = q(), T && T.c(), v = q(), g = p("button"), V = R(k), s(o, "class", "ResetPwdHelp"), s(m, "class", "ResetPwdLabel"), s(m, "for", "ResetPwdPrefix"), s(f, "class", "ResetPwdField ResetPwdFieldPrefix"), _e(
|
|
609
609
|
f,
|
|
610
610
|
"ResetPwdFieldFilled",
|
|
611
611
|
/*mobilePrefix*/
|
|
612
612
|
t[14]
|
|
613
|
-
), s(
|
|
613
|
+
), s(B, "class", "ResetPwdLabel"), s(B, "for", "ResetPwdPhone"), s(x, "id", "ResetPwdPhone"), s(x, "class", "ResetPwdInput ResetPwdInputPhone"), s(x, "type", "tel"), s(x, "autocomplete", "tel-national"), s(x, "aria-invalid", C = /*phoneError*/
|
|
614
614
|
t[15] ? "true" : "false"), s(L, "class", "ResetPwdField ResetPwdFieldPhone"), _e(
|
|
615
615
|
L,
|
|
616
616
|
"ResetPwdFieldFilled",
|
|
617
617
|
/*phone*/
|
|
618
618
|
t[3]
|
|
619
|
-
), s(d, "class", "ResetPwdRow"), s(d, "aria-describedby", "ResetPwdRowErrorsPhone"), s(
|
|
619
|
+
), s(d, "class", "ResetPwdRow"), s(d, "aria-describedby", "ResetPwdRowErrorsPhone"), s(E, "id", "ResetPwdRowErrorsPhone"), s(E, "class", "ResetPwdErrors"), s(E, "role", "alert"), s(E, "aria-live", "assertive"), s(g, "class", "ResetPwdButton"), s(g, "type", "button"), g.disabled = /*loading*/
|
|
620
620
|
t[11], s(e, "class", "ResetPwdSection ResetPwdSectionPhone");
|
|
621
621
|
},
|
|
622
622
|
m(P, b) {
|
|
623
|
-
Q(P, e, b), l(e, o), l(o, a), l(e, n), l(e, d), l(d, f), l(f, m), l(m, c), l(f,
|
|
623
|
+
Q(P, e, b), l(e, o), l(o, a), l(e, n), l(e, d), l(d, f), l(f, m), l(m, c), l(f, h), j.m(f, null), l(d, S), l(d, L), l(L, B), l(B, D), l(L, X), l(L, x), ze(
|
|
624
624
|
x,
|
|
625
625
|
/*phone*/
|
|
626
626
|
t[3]
|
|
627
|
-
), l(e, N), l(e,
|
|
627
|
+
), l(e, N), l(e, E), _ && _.m(E, null), l(E, G), T && T.m(E, null), l(e, v), l(e, g), l(g, V), ne || (pe = [
|
|
628
628
|
me(
|
|
629
629
|
x,
|
|
630
630
|
"input",
|
|
@@ -642,9 +642,9 @@ function Ke(t) {
|
|
|
642
642
|
p(P, b) {
|
|
643
643
|
b[0] & /*$_*/
|
|
644
644
|
1024 && i !== (i = /*$_*/
|
|
645
|
-
P[10]("enterPhoneHelp") + "") &&
|
|
645
|
+
P[10]("enterPhoneHelp") + "") && F(a, i), b[0] & /*$_*/
|
|
646
646
|
1024 && y !== (y = /*$_*/
|
|
647
|
-
P[10]("countryCodeLabel") + "") &&
|
|
647
|
+
P[10]("countryCodeLabel") + "") && F(c, y), ie === (ie = be(P)) && j ? j.p(P, b) : (j.d(1), j = ie(P), j && (j.c(), j.m(f, null))), b[0] & /*mobilePrefix*/
|
|
648
648
|
16384 && _e(
|
|
649
649
|
f,
|
|
650
650
|
"ResetPwdFieldFilled",
|
|
@@ -652,9 +652,9 @@ function Ke(t) {
|
|
|
652
652
|
P[14]
|
|
653
653
|
), b[0] & /*$_*/
|
|
654
654
|
1024 && Y !== (Y = /*$_*/
|
|
655
|
-
P[10]("phoneLabel") + "") &&
|
|
656
|
-
32768 &&
|
|
657
|
-
P[15] ? "true" : "false") && s(x, "aria-invalid",
|
|
655
|
+
P[10]("phoneLabel") + "") && F(D, Y), b[0] & /*phoneError*/
|
|
656
|
+
32768 && C !== (C = /*phoneError*/
|
|
657
|
+
P[15] ? "true" : "false") && s(x, "aria-invalid", C), b[0] & /*phone*/
|
|
658
658
|
8 && ze(
|
|
659
659
|
x,
|
|
660
660
|
/*phone*/
|
|
@@ -667,13 +667,13 @@ function Ke(t) {
|
|
|
667
667
|
P[3]
|
|
668
668
|
), /*phoneError*/
|
|
669
669
|
P[15] ? _ ? (_.p(P, b), b[0] & /*phoneError*/
|
|
670
|
-
32768 && se(_, 1)) : (_ =
|
|
670
|
+
32768 && se(_, 1)) : (_ = We(P), _.c(), se(_, 1), _.m(E, G)) : _ && (Se(), Pe(_, 1, 1, () => {
|
|
671
671
|
_ = null;
|
|
672
|
-
}),
|
|
672
|
+
}), Re()), /*phoneInfo*/
|
|
673
673
|
P[16] ? T ? (T.p(P, b), b[0] & /*phoneInfo*/
|
|
674
|
-
65536 && se(T, 1)) : (T =
|
|
674
|
+
65536 && se(T, 1)) : (T = Be(P), T.c(), se(T, 1), T.m(E, null)) : T && (Se(), Pe(T, 1, 1, () => {
|
|
675
675
|
T = null;
|
|
676
|
-
}),
|
|
676
|
+
}), Re()), b[0] & /*loading, $_*/
|
|
677
677
|
3072 && k !== (k = /*loading*/
|
|
678
678
|
(P[11] ? (
|
|
679
679
|
/*$_*/
|
|
@@ -681,16 +681,16 @@ function Ke(t) {
|
|
|
681
681
|
) : (
|
|
682
682
|
/*$_*/
|
|
683
683
|
P[10]("requestCode")
|
|
684
|
-
)) + "") &&
|
|
684
|
+
)) + "") && F(V, k), b[0] & /*loading*/
|
|
685
685
|
2048 && (g.disabled = /*loading*/
|
|
686
686
|
P[11]);
|
|
687
687
|
},
|
|
688
688
|
d(P) {
|
|
689
|
-
P && Z(e),
|
|
689
|
+
P && Z(e), j.d(), _ && _.d(), T && T.d(), ne = !1, Me(pe);
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function Vt(t) {
|
|
694
694
|
let e, o, i, a;
|
|
695
695
|
return {
|
|
696
696
|
c() {
|
|
@@ -725,22 +725,22 @@ function Ft(t) {
|
|
|
725
725
|
}
|
|
726
726
|
};
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function Dt(t) {
|
|
729
729
|
let e, o;
|
|
730
730
|
return {
|
|
731
731
|
c() {
|
|
732
|
-
e = p("vaadin-combo-box"),
|
|
732
|
+
e = p("vaadin-combo-box"), he(
|
|
733
733
|
e,
|
|
734
734
|
"items",
|
|
735
735
|
/*phoneCodes*/
|
|
736
736
|
t[13]
|
|
737
|
-
),
|
|
737
|
+
), he(
|
|
738
738
|
e,
|
|
739
739
|
"value",
|
|
740
740
|
/*mobilePrefix*/
|
|
741
741
|
t[14]
|
|
742
|
-
),
|
|
743
|
-
t[10]("invalidPrefix")),
|
|
742
|
+
), he(e, "errorMessage", o = /*$_*/
|
|
743
|
+
t[10]("invalidPrefix")), he(
|
|
744
744
|
e,
|
|
745
745
|
"onChange",
|
|
746
746
|
/*handlePrefixDropdown*/
|
|
@@ -752,31 +752,31 @@ function Vt(t) {
|
|
|
752
752
|
},
|
|
753
753
|
p(i, a) {
|
|
754
754
|
a[0] & /*phoneCodes*/
|
|
755
|
-
8192 &&
|
|
755
|
+
8192 && he(
|
|
756
756
|
e,
|
|
757
757
|
"items",
|
|
758
758
|
/*phoneCodes*/
|
|
759
759
|
i[13]
|
|
760
760
|
), a[0] & /*mobilePrefix*/
|
|
761
|
-
16384 &&
|
|
761
|
+
16384 && he(
|
|
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")) && he(e, "errorMessage", o);
|
|
769
769
|
},
|
|
770
770
|
d(i) {
|
|
771
771
|
i && Z(e);
|
|
772
772
|
}
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function We(t) {
|
|
776
776
|
let e, o, i, a;
|
|
777
777
|
return {
|
|
778
778
|
c() {
|
|
779
|
-
e = p("div"), o =
|
|
779
|
+
e = p("div"), o = R(
|
|
780
780
|
/*phoneError*/
|
|
781
781
|
t[15]
|
|
782
782
|
), s(e, "class", "ResetPwdError");
|
|
@@ -786,7 +786,7 @@ function Oe(t) {
|
|
|
786
786
|
},
|
|
787
787
|
p(n, d) {
|
|
788
788
|
(!a || d[0] & /*phoneError*/
|
|
789
|
-
32768) &&
|
|
789
|
+
32768) && F(
|
|
790
790
|
o,
|
|
791
791
|
/*phoneError*/
|
|
792
792
|
n[15]
|
|
@@ -805,11 +805,11 @@ function Oe(t) {
|
|
|
805
805
|
}
|
|
806
806
|
};
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function Be(t) {
|
|
809
809
|
let e, o, i, a;
|
|
810
810
|
return {
|
|
811
811
|
c() {
|
|
812
|
-
e = p("div"), o =
|
|
812
|
+
e = p("div"), o = R(
|
|
813
813
|
/*phoneInfo*/
|
|
814
814
|
t[16]
|
|
815
815
|
), s(e, "class", "ResetPwdHint");
|
|
@@ -819,7 +819,7 @@ function We(t) {
|
|
|
819
819
|
},
|
|
820
820
|
p(n, d) {
|
|
821
821
|
(!a || d[0] & /*phoneInfo*/
|
|
822
|
-
65536) &&
|
|
822
|
+
65536) && F(
|
|
823
823
|
o,
|
|
824
824
|
/*phoneInfo*/
|
|
825
825
|
n[16]
|
|
@@ -838,7 +838,7 @@ function We(t) {
|
|
|
838
838
|
}
|
|
839
839
|
};
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Ye(t) {
|
|
842
842
|
let e, o, i = (
|
|
843
843
|
/*$_*/
|
|
844
844
|
t[10]("enterCodeTitle") + ""
|
|
@@ -848,13 +848,13 @@ function Be(t) {
|
|
|
848
848
|
/*codeLength*/
|
|
849
849
|
t[26]
|
|
850
850
|
)) + ""
|
|
851
|
-
), m, y, c,
|
|
851
|
+
), m, y, c, h, S, L = (
|
|
852
852
|
/*$_*/
|
|
853
853
|
t[10]("verificationCodeLabel") + ""
|
|
854
|
-
),
|
|
854
|
+
), B, Y, D, X, x, C, N, E, G, v, g, k, V, ne = (
|
|
855
855
|
/*$_*/
|
|
856
856
|
t[10]("attemptsLeft") + ""
|
|
857
|
-
), pe, be, ie,
|
|
857
|
+
), pe, be, ie, j, _, T, P, b, $, A, re, ae, ve = (
|
|
858
858
|
/*loading*/
|
|
859
859
|
(t[11] ? (
|
|
860
860
|
/*$_*/
|
|
@@ -863,58 +863,58 @@ function Be(t) {
|
|
|
863
863
|
/*$_*/
|
|
864
864
|
t[10]("submitCode")
|
|
865
865
|
)) + ""
|
|
866
|
-
), le, fe, de, ke, te =
|
|
866
|
+
), le, fe, de, ke, te = Ne(Array(
|
|
867
867
|
/*codeLength*/
|
|
868
868
|
t[26]
|
|
869
869
|
)), J = [];
|
|
870
870
|
for (let u = 0; u < te.length; u += 1)
|
|
871
|
-
J[u] =
|
|
872
|
-
let
|
|
871
|
+
J[u] = Ge(He(t, te, u));
|
|
872
|
+
let H = (
|
|
873
873
|
/*codeError*/
|
|
874
|
-
t[17] &&
|
|
874
|
+
t[17] && Je(t)
|
|
875
875
|
), z = (
|
|
876
876
|
/*codeExpiredHint*/
|
|
877
877
|
t[18] && /*remainingSeconds*/
|
|
878
|
-
t[9] === 0 &&
|
|
878
|
+
t[9] === 0 && Ze(t)
|
|
879
879
|
), U = (
|
|
880
880
|
/*expiresAt*/
|
|
881
|
-
t[5] &&
|
|
881
|
+
t[5] && Qe(t)
|
|
882
882
|
);
|
|
883
|
-
function
|
|
883
|
+
function K(u, I) {
|
|
884
884
|
return (
|
|
885
885
|
/*canResendAt*/
|
|
886
886
|
u[6] && /*now*/
|
|
887
887
|
u[7] < /*canResendAt*/
|
|
888
|
-
u[6] ?
|
|
888
|
+
u[6] ? Kt : Ht
|
|
889
889
|
);
|
|
890
890
|
}
|
|
891
|
-
let ge =
|
|
891
|
+
let ge = K(t), ee = ge(t);
|
|
892
892
|
return {
|
|
893
893
|
c() {
|
|
894
|
-
e = p("section"), o = p("h3"), a =
|
|
894
|
+
e = p("section"), o = p("h3"), a = R(i), n = q(), d = p("p"), m = R(f), y = q(), c = p("div"), h = p("div"), S = p("label"), B = R(L), Y = q(), D = p("div");
|
|
895
895
|
for (let u = 0; u < J.length; u += 1)
|
|
896
896
|
J[u].c();
|
|
897
|
-
x = q(),
|
|
897
|
+
x = q(), C = p("div"), H && H.c(), N = q(), z && z.c(), E = q(), G = p("div"), v = p("div"), g = p("div"), k = p("span"), V = p("strong"), pe = R(ne), be = R(":"), ie = q(), j = p("span"), _ = R(
|
|
898
898
|
/*attemptsRemaining*/
|
|
899
899
|
t[4]
|
|
900
|
-
), T = q(), U && U.c(), P = q(), b = p("button"), ee.c(), re = q(), ae = p("button"), le =
|
|
901
|
-
t[10]("verificationCodeLabel")), s(
|
|
900
|
+
), T = q(), U && U.c(), P = q(), b = p("button"), ee.c(), re = q(), ae = p("button"), le = R(ve), s(o, "id", "ResetPwdCodeTitle"), s(o, "class", "ResetPwdStepTitle"), s(d, "class", "ResetPwdHelp"), s(S, "class", "ResetPwdLabel"), s(S, "for", "ResetPwdCode"), s(D, "class", "ResetPwdCodeGroup"), s(D, "role", "group"), s(D, "aria-label", X = /*$_*/
|
|
901
|
+
t[10]("verificationCodeLabel")), s(h, "class", "ResetPwdField ResetPwdFieldCode"), s(c, "class", "ResetPwdRow"), s(c, "aria-describedby", "ResetPwdRowErrorsCode"), s(C, "id", "ResetPwdRowErrorsCode"), s(C, "class", "ResetPwdErrors"), s(C, "role", "alert"), s(C, "aria-live", "assertive"), s(j, "class", "ResetPwdAttempts"), s(k, "class", "ResetPwdMeta"), s(g, "class", "ResetPwdMetaRow"), s(b, "class", "ResetPwdLink"), s(b, "type", "button"), b.disabled = $ = /*loading*/
|
|
902
902
|
t[11] || /*canResendAt*/
|
|
903
903
|
t[6] && /*now*/
|
|
904
904
|
t[7] < /*canResendAt*/
|
|
905
|
-
t[6], s(b, "aria-disabled",
|
|
905
|
+
t[6], s(b, "aria-disabled", A = /*loading*/
|
|
906
906
|
t[11] || /*canResendAt*/
|
|
907
907
|
t[6] && /*now*/
|
|
908
908
|
t[7] < /*canResendAt*/
|
|
909
|
-
t[6]), s(
|
|
909
|
+
t[6]), s(v, "class", "ResetPwdField ResetPwdFieldMeta"), s(G, "class", "ResetPwdRow"), s(G, "aria-describedby", "ResetPwdRowErrorsCode"), s(ae, "class", "ResetPwdButton"), s(ae, "type", "button"), ae.disabled = fe = /*loading*/
|
|
910
910
|
t[11] || /*disableSubmitCode*/
|
|
911
911
|
t[20], s(e, "class", "ResetPwdSection ResetPwdSectionCode"), s(e, "aria-labelledby", "ResetPwdCodeTitle");
|
|
912
912
|
},
|
|
913
|
-
m(u,
|
|
914
|
-
Q(u, e,
|
|
915
|
-
for (let
|
|
916
|
-
J[
|
|
917
|
-
l(e, x), l(e,
|
|
913
|
+
m(u, I) {
|
|
914
|
+
Q(u, e, I), l(e, o), l(o, a), l(e, n), l(e, d), l(d, m), l(e, y), l(e, c), l(c, h), l(h, S), l(S, B), l(h, Y), l(h, D);
|
|
915
|
+
for (let O = 0; O < J.length; O += 1)
|
|
916
|
+
J[O] && J[O].m(D, null);
|
|
917
|
+
l(e, x), l(e, C), H && H.m(C, null), l(C, N), z && z.m(C, null), l(e, E), l(e, G), l(G, v), l(v, g), l(g, k), l(k, V), l(V, pe), l(V, be), l(k, ie), l(k, j), l(j, _), l(g, T), U && U.m(g, null), l(v, P), l(v, b), ee.m(b, null), l(e, re), l(e, ae), l(ae, le), de || (ke = [
|
|
918
918
|
me(
|
|
919
919
|
b,
|
|
920
920
|
"click",
|
|
@@ -929,82 +929,82 @@ function Be(t) {
|
|
|
929
929
|
)
|
|
930
930
|
], de = !0);
|
|
931
931
|
},
|
|
932
|
-
p(u,
|
|
933
|
-
if (
|
|
932
|
+
p(u, I) {
|
|
933
|
+
if (I[0] & /*$_*/
|
|
934
934
|
1024 && i !== (i = /*$_*/
|
|
935
|
-
u[10]("enterCodeTitle") + "") &&
|
|
935
|
+
u[10]("enterCodeTitle") + "") && F(a, i), I[0] & /*$_*/
|
|
936
936
|
1024 && f !== (f = /*$_*/
|
|
937
937
|
u[10]("codeSubtitle").replace("{n}", String(
|
|
938
938
|
/*codeLength*/
|
|
939
939
|
u[26]
|
|
940
|
-
)) + "") &&
|
|
940
|
+
)) + "") && F(m, f), I[0] & /*$_*/
|
|
941
941
|
1024 && L !== (L = /*$_*/
|
|
942
|
-
u[10]("verificationCodeLabel") + "") &&
|
|
942
|
+
u[10]("verificationCodeLabel") + "") && F(B, L), I[0] & /*codeDigits, codeError, codeInputs, handleCodeInput, handleCodeKeyDown*/
|
|
943
943
|
403308800) {
|
|
944
|
-
te =
|
|
944
|
+
te = Ne(Array(
|
|
945
945
|
/*codeLength*/
|
|
946
946
|
u[26]
|
|
947
947
|
));
|
|
948
|
-
let
|
|
949
|
-
for (
|
|
950
|
-
const
|
|
951
|
-
J[
|
|
948
|
+
let O;
|
|
949
|
+
for (O = 0; O < te.length; O += 1) {
|
|
950
|
+
const Ce = He(u, te, O);
|
|
951
|
+
J[O] ? J[O].p(Ce, I) : (J[O] = Ge(Ce), J[O].c(), J[O].m(D, null));
|
|
952
952
|
}
|
|
953
|
-
for (;
|
|
954
|
-
J[
|
|
953
|
+
for (; O < J.length; O += 1)
|
|
954
|
+
J[O].d(1);
|
|
955
955
|
J.length = te.length;
|
|
956
956
|
}
|
|
957
|
-
|
|
957
|
+
I[0] & /*$_*/
|
|
958
958
|
1024 && X !== (X = /*$_*/
|
|
959
|
-
u[10]("verificationCodeLabel")) && s(
|
|
960
|
-
u[17] ?
|
|
961
|
-
131072 && se(
|
|
962
|
-
|
|
963
|
-
}),
|
|
959
|
+
u[10]("verificationCodeLabel")) && s(D, "aria-label", X), /*codeError*/
|
|
960
|
+
u[17] ? H ? (H.p(u, I), I[0] & /*codeError*/
|
|
961
|
+
131072 && se(H, 1)) : (H = Je(u), H.c(), se(H, 1), H.m(C, N)) : H && (Se(), Pe(H, 1, 1, () => {
|
|
962
|
+
H = null;
|
|
963
|
+
}), Re()), /*codeExpiredHint*/
|
|
964
964
|
u[18] && /*remainingSeconds*/
|
|
965
|
-
u[9] === 0 ? z ? (z.p(u,
|
|
966
|
-
262656 && se(z, 1)) : (z =
|
|
965
|
+
u[9] === 0 ? z ? (z.p(u, I), I[0] & /*codeExpiredHint, remainingSeconds*/
|
|
966
|
+
262656 && se(z, 1)) : (z = Ze(u), z.c(), se(z, 1), z.m(C, null)) : z && (Se(), Pe(z, 1, 1, () => {
|
|
967
967
|
z = null;
|
|
968
|
-
}),
|
|
968
|
+
}), Re()), I[0] & /*$_*/
|
|
969
969
|
1024 && ne !== (ne = /*$_*/
|
|
970
|
-
u[10]("attemptsLeft") + "") &&
|
|
971
|
-
16 &&
|
|
970
|
+
u[10]("attemptsLeft") + "") && F(pe, ne), I[0] & /*attemptsRemaining*/
|
|
971
|
+
16 && F(
|
|
972
972
|
_,
|
|
973
973
|
/*attemptsRemaining*/
|
|
974
974
|
u[4]
|
|
975
975
|
), /*expiresAt*/
|
|
976
|
-
u[5] ? U ? U.p(u,
|
|
976
|
+
u[5] ? U ? U.p(u, I) : (U = Qe(u), U.c(), U.m(g, null)) : U && (U.d(1), U = null), ge === (ge = K(u)) && ee ? ee.p(u, I) : (ee.d(1), ee = ge(u), ee && (ee.c(), ee.m(b, null))), I[0] & /*loading, canResendAt, now*/
|
|
977
977
|
2240 && $ !== ($ = /*loading*/
|
|
978
978
|
u[11] || /*canResendAt*/
|
|
979
979
|
u[6] && /*now*/
|
|
980
980
|
u[7] < /*canResendAt*/
|
|
981
|
-
u[6]) && (b.disabled = $),
|
|
982
|
-
2240 &&
|
|
981
|
+
u[6]) && (b.disabled = $), I[0] & /*loading, canResendAt, now*/
|
|
982
|
+
2240 && A !== (A = /*loading*/
|
|
983
983
|
u[11] || /*canResendAt*/
|
|
984
984
|
u[6] && /*now*/
|
|
985
985
|
u[7] < /*canResendAt*/
|
|
986
|
-
u[6]) && s(b, "aria-disabled",
|
|
987
|
-
3072 &&
|
|
986
|
+
u[6]) && s(b, "aria-disabled", A), I[0] & /*loading, $_*/
|
|
987
|
+
3072 && ve !== (ve = /*loading*/
|
|
988
988
|
(u[11] ? (
|
|
989
989
|
/*$_*/
|
|
990
990
|
u[10]("verifying")
|
|
991
991
|
) : (
|
|
992
992
|
/*$_*/
|
|
993
993
|
u[10]("submitCode")
|
|
994
|
-
)) + "") &&
|
|
994
|
+
)) + "") && F(le, ve), I[0] & /*loading, disableSubmitCode*/
|
|
995
995
|
1050624 && fe !== (fe = /*loading*/
|
|
996
996
|
u[11] || /*disableSubmitCode*/
|
|
997
997
|
u[20]) && (ae.disabled = fe);
|
|
998
998
|
},
|
|
999
999
|
d(u) {
|
|
1000
|
-
u && Z(e),
|
|
1000
|
+
u && Z(e), Lt(J, u), H && H.d(), z && z.d(), U && U.d(), ee.d(), de = !1, Me(ke);
|
|
1001
1001
|
}
|
|
1002
1002
|
};
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function Ge(t) {
|
|
1005
1005
|
let e, o, i, a = (
|
|
1006
1006
|
/*index*/
|
|
1007
|
-
t[
|
|
1007
|
+
t[74]
|
|
1008
1008
|
), n, d;
|
|
1009
1009
|
const f = () => (
|
|
1010
1010
|
/*input_binding*/
|
|
@@ -1013,23 +1013,23 @@ function Ye(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[74],
|
|
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[74],
|
|
1032
|
+
...h
|
|
1033
1033
|
)
|
|
1034
1034
|
);
|
|
1035
1035
|
}
|
|
@@ -1038,38 +1038,38 @@ function Ye(t) {
|
|
|
1038
1038
|
e = p("input"), s(e, "class", "ResetPwdCodeInput"), s(e, "type", "text"), s(e, "maxlength", "1"), e.value = o = /*codeDigits*/
|
|
1039
1039
|
t[8][
|
|
1040
1040
|
/*index*/
|
|
1041
|
-
t[
|
|
1041
|
+
t[74]
|
|
1042
1042
|
], s(e, "inputmode", "numeric"), s(e, "pattern", "\\d*"), s(e, "autocomplete", "one-time-code"), s(e, "placeholder", "•"), s(e, "aria-invalid", i = /*codeError*/
|
|
1043
1043
|
t[17] ? "true" : "false");
|
|
1044
1044
|
},
|
|
1045
|
-
m(
|
|
1046
|
-
Q(
|
|
1045
|
+
m(h, S) {
|
|
1046
|
+
Q(h, e, S), f(), n || (d = [
|
|
1047
1047
|
me(e, "input", y),
|
|
1048
1048
|
me(e, "keydown", c)
|
|
1049
1049
|
], n = !0);
|
|
1050
1050
|
},
|
|
1051
|
-
p(
|
|
1052
|
-
t =
|
|
1051
|
+
p(h, S) {
|
|
1052
|
+
t = h, S[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[74]
|
|
1057
|
+
]) && e.value !== o && (e.value = o), S[0] & /*codeError*/
|
|
1058
1058
|
131072 && i !== (i = /*codeError*/
|
|
1059
1059
|
t[17] ? "true" : "false") && s(e, "aria-invalid", i), a !== /*index*/
|
|
1060
|
-
t[
|
|
1061
|
-
t[
|
|
1060
|
+
t[74] && (m(), a = /*index*/
|
|
1061
|
+
t[74], f());
|
|
1062
1062
|
},
|
|
1063
|
-
d(
|
|
1064
|
-
|
|
1063
|
+
d(h) {
|
|
1064
|
+
h && Z(e), m(), n = !1, Me(d);
|
|
1065
1065
|
}
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function Je(t) {
|
|
1069
1069
|
let e, o, i, a;
|
|
1070
1070
|
return {
|
|
1071
1071
|
c() {
|
|
1072
|
-
e = p("div"), o =
|
|
1072
|
+
e = p("div"), o = R(
|
|
1073
1073
|
/*codeError*/
|
|
1074
1074
|
t[17]
|
|
1075
1075
|
), s(e, "class", "ResetPwdError");
|
|
@@ -1079,7 +1079,7 @@ function Ge(t) {
|
|
|
1079
1079
|
},
|
|
1080
1080
|
p(n, d) {
|
|
1081
1081
|
(!a || d[0] & /*codeError*/
|
|
1082
|
-
131072) &&
|
|
1082
|
+
131072) && F(
|
|
1083
1083
|
o,
|
|
1084
1084
|
/*codeError*/
|
|
1085
1085
|
n[17]
|
|
@@ -1098,11 +1098,11 @@ function Ge(t) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
};
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function Ze(t) {
|
|
1102
1102
|
let e, o, i, a;
|
|
1103
1103
|
return {
|
|
1104
1104
|
c() {
|
|
1105
|
-
e = p("div"), o =
|
|
1105
|
+
e = p("div"), o = R(
|
|
1106
1106
|
/*codeExpiredHint*/
|
|
1107
1107
|
t[18]
|
|
1108
1108
|
), s(e, "class", "ResetPwdHint");
|
|
@@ -1112,7 +1112,7 @@ function Je(t) {
|
|
|
1112
1112
|
},
|
|
1113
1113
|
p(n, d) {
|
|
1114
1114
|
(!a || d[0] & /*codeExpiredHint*/
|
|
1115
|
-
262144) &&
|
|
1115
|
+
262144) && F(
|
|
1116
1116
|
o,
|
|
1117
1117
|
/*codeExpiredHint*/
|
|
1118
1118
|
n[18]
|
|
@@ -1131,26 +1131,26 @@ function Je(t) {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1134
|
+
function Qe(t) {
|
|
1135
1135
|
let e, o, i = (
|
|
1136
1136
|
/*$_*/
|
|
1137
1137
|
t[10]("expiresIn") + ""
|
|
1138
1138
|
), a, n, 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 = R(i), n = R(":"), d = q(), f = p("span"), m = R(
|
|
1142
1142
|
/*remainingSeconds*/
|
|
1143
1143
|
t[9]
|
|
1144
|
-
), y =
|
|
1144
|
+
), y = R("s"), s(f, "class", "ResetPwdExpires"), s(e, "class", "ResetPwdMeta");
|
|
1145
1145
|
},
|
|
1146
|
-
m(c,
|
|
1147
|
-
Q(c, e,
|
|
1146
|
+
m(c, h) {
|
|
1147
|
+
Q(c, e, h), l(e, o), l(o, a), l(o, n), 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") + "") &&
|
|
1153
|
-
512 &&
|
|
1152
|
+
c[10]("expiresIn") + "") && F(a, i), h[0] & /*remainingSeconds*/
|
|
1153
|
+
512 && F(
|
|
1154
1154
|
m,
|
|
1155
1155
|
/*remainingSeconds*/
|
|
1156
1156
|
c[9]
|
|
@@ -1161,14 +1161,14 @@ function Ze(t) {
|
|
|
1161
1161
|
}
|
|
1162
1162
|
};
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Ht(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 = R(e);
|
|
1172
1172
|
},
|
|
1173
1173
|
m(i, a) {
|
|
1174
1174
|
Q(i, o, a);
|
|
@@ -1176,24 +1176,24 @@ function Dt(t) {
|
|
|
1176
1176
|
p(i, a) {
|
|
1177
1177
|
a[0] & /*$_*/
|
|
1178
1178
|
1024 && e !== (e = /*$_*/
|
|
1179
|
-
i[10]("resendCode") + "") &&
|
|
1179
|
+
i[10]("resendCode") + "") && F(o, e);
|
|
1180
1180
|
},
|
|
1181
1181
|
d(i) {
|
|
1182
1182
|
i && Z(o);
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Kt(t) {
|
|
1187
1187
|
let e = (
|
|
1188
1188
|
/*$_*/
|
|
1189
1189
|
t[10]("resendCode") + ""
|
|
1190
1190
|
), o, i, a, n, d, f;
|
|
1191
1191
|
return {
|
|
1192
1192
|
c() {
|
|
1193
|
-
o =
|
|
1193
|
+
o = R(e), i = R(" ("), a = p("span"), n = R(
|
|
1194
1194
|
/*resendSeconds*/
|
|
1195
1195
|
t[21]
|
|
1196
|
-
), d =
|
|
1196
|
+
), d = R("s"), f = R(")"), s(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, n), l(a, d), Q(m, f, y);
|
|
@@ -1201,8 +1201,8 @@ function Ht(t) {
|
|
|
1201
1201
|
p(m, y) {
|
|
1202
1202
|
y[0] & /*$_*/
|
|
1203
1203
|
1024 && e !== (e = /*$_*/
|
|
1204
|
-
m[10]("resendCode") + "") &&
|
|
1205
|
-
2097152 &&
|
|
1204
|
+
m[10]("resendCode") + "") && F(o, e), y[0] & /*resendSeconds*/
|
|
1205
|
+
2097152 && F(
|
|
1206
1206
|
n,
|
|
1207
1207
|
/*resendSeconds*/
|
|
1208
1208
|
m[21]
|
|
@@ -1213,10 +1213,10 @@ function Ht(t) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
};
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1216
|
+
function Ot(t) {
|
|
1217
1217
|
let e, o = (
|
|
1218
1218
|
/*isModalOpen*/
|
|
1219
|
-
t[12] &&
|
|
1219
|
+
t[12] && Ke(t)
|
|
1220
1220
|
);
|
|
1221
1221
|
return {
|
|
1222
1222
|
c() {
|
|
@@ -1228,9 +1228,9 @@ function Kt(t) {
|
|
|
1228
1228
|
p(i, a) {
|
|
1229
1229
|
/*isModalOpen*/
|
|
1230
1230
|
i[12] ? o ? (o.p(i, a), a[0] & /*isModalOpen*/
|
|
1231
|
-
4096 && se(o, 1)) : (o =
|
|
1231
|
+
4096 && se(o, 1)) : (o = Ke(i), o.c(), se(o, 1), o.m(e, null)) : o && (Se(), Pe(o, 1, 1, () => {
|
|
1232
1232
|
o = null;
|
|
1233
|
-
}),
|
|
1233
|
+
}), Re());
|
|
1234
1234
|
},
|
|
1235
1235
|
i(i) {
|
|
1236
1236
|
se(o);
|
|
@@ -1243,14 +1243,14 @@ function Kt(t) {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
};
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1246
|
+
function Wt(t) {
|
|
1247
1247
|
try {
|
|
1248
1248
|
return JSON.parse(t);
|
|
1249
1249
|
} catch {
|
|
1250
1250
|
return;
|
|
1251
1251
|
}
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function Xe(t, e = "error") {
|
|
1254
1254
|
window.postMessage(
|
|
1255
1255
|
{
|
|
1256
1256
|
type: "WidgetNotification",
|
|
@@ -1259,20 +1259,20 @@ function Qe(t, e = "error") {
|
|
|
1259
1259
|
window.location.href
|
|
1260
1260
|
);
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Bt(t, e, o) {
|
|
1263
1263
|
let i, a, n, d, f, m, y, c;
|
|
1264
|
-
Rt(t,
|
|
1265
|
-
let { clientstyling:
|
|
1266
|
-
const ne = { duration: 140, easing:
|
|
1264
|
+
Rt(t, xt, (r) => o(10, c = r));
|
|
1265
|
+
let { clientstyling: h = "" } = e, { clientstylingurl: S = "" } = e, { translationurl: L = "" } = e, { mbsource: B } = e, { phoneregex: Y = "" } = e, { phoneprefixeditable: D = "true" } = e, { smscodelength: X = "6" } = e, { smscodemaxattempts: x = "5" } = e, { smscodettl: C = "5" } = e, { resenddelay: N = "1" } = e, { endpoint: E = "" } = e, { lang: G = "en" } = e, v, g = "phone", k = !1, V = !0;
|
|
1266
|
+
const ne = { duration: 140, easing: xe }, pe = {
|
|
1267
1267
|
duration: 220,
|
|
1268
1268
|
start: 0.96,
|
|
1269
|
-
easing:
|
|
1269
|
+
easing: xe
|
|
1270
1270
|
}, be = {
|
|
1271
1271
|
duration: 140,
|
|
1272
1272
|
start: 1,
|
|
1273
|
-
easing:
|
|
1273
|
+
easing: xe
|
|
1274
1274
|
};
|
|
1275
|
-
let ie = [],
|
|
1275
|
+
let ie = [], j = "", _ = "", T = "", P = "", b = null, $ = "", A = "", re = /^[\d\.]+$/.test(x) ? Number(x) : 5, ae = Number(/^[\d\.]+$/.test(C) ? C : 5) * 60 * 1e3, ve = Number(/^[\d\.]+$/.test(N) ? N : 1) * 60 * 1e3, le = null, fe = "", de = null, ke = null, te = Date.now();
|
|
1276
1276
|
setInterval(
|
|
1277
1277
|
() => {
|
|
1278
1278
|
o(7, te = Date.now());
|
|
@@ -1290,104 +1290,107 @@ function Wt(t, e, o) {
|
|
|
1290
1290
|
);
|
|
1291
1291
|
} catch {
|
|
1292
1292
|
}
|
|
1293
|
-
o(12,
|
|
1293
|
+
o(12, V = !1);
|
|
1294
1294
|
}
|
|
1295
|
-
function
|
|
1295
|
+
function H(r) {
|
|
1296
1296
|
return Y ? (typeof Y == "string" ? new RegExp(Y) : Y).test(r.trim()) : !1;
|
|
1297
1297
|
}
|
|
1298
|
-
let z = Number(X), U = [],
|
|
1298
|
+
let z = Number(X), U = [], K = Array(Number(z)).fill("");
|
|
1299
1299
|
function ge(r, w) {
|
|
1300
|
-
const
|
|
1301
|
-
if (
|
|
1302
|
-
o(8,
|
|
1303
|
-
else if (
|
|
1304
|
-
const ue =
|
|
1305
|
-
ue.forEach((
|
|
1306
|
-
o(8,
|
|
1307
|
-
}),
|
|
1300
|
+
const M = r.target.value.replace(/\D/g, "");
|
|
1301
|
+
if (M.length === 1)
|
|
1302
|
+
o(8, K[w] = M, K), u(w);
|
|
1303
|
+
else if (M.length > 1) {
|
|
1304
|
+
const ue = M.split("").slice(0, z - w);
|
|
1305
|
+
ue.forEach((ft, mt) => {
|
|
1306
|
+
o(8, K[w + mt] = ft, K);
|
|
1307
|
+
}), O(w + ue.length - 1);
|
|
1308
1308
|
}
|
|
1309
|
-
$ =
|
|
1309
|
+
$ = K.join("");
|
|
1310
1310
|
}
|
|
1311
1311
|
function ee(r, w) {
|
|
1312
|
-
r.key === "Backspace" ?
|
|
1312
|
+
r.key === "Backspace" ? K[w] ? o(8, K[w] = "", K) : w > 0 && (I(w), o(8, K[w - 1] = "", K)) : !/\d/.test(r.key) && r.key !== "Tab" && r.key.length === 1 && r.preventDefault();
|
|
1313
1313
|
}
|
|
1314
1314
|
function u(r) {
|
|
1315
1315
|
r < z - 1 && U[r + 1]?.focus();
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1317
|
+
function I(r) {
|
|
1318
1318
|
r > 0 && U[r - 1]?.focus();
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function O(r) {
|
|
1321
1321
|
r >= 0 && r < z && U[r]?.focus();
|
|
1322
1322
|
}
|
|
1323
|
-
async function
|
|
1324
|
-
const
|
|
1323
|
+
async function Ce(r, w) {
|
|
1324
|
+
const W = await fetch(r, {
|
|
1325
1325
|
method: "POST",
|
|
1326
1326
|
headers: { "Content-Type": "application/json" },
|
|
1327
1327
|
body: void 0
|
|
1328
|
-
}),
|
|
1329
|
-
if (!
|
|
1330
|
-
throw new
|
|
1328
|
+
}), M = await W.text(), ue = M ? Wt(M) : void 0;
|
|
1329
|
+
if (!W.ok)
|
|
1330
|
+
throw new Ve(W.status, ue?.error ?? W.statusText, ue);
|
|
1331
1331
|
return ue ?? {};
|
|
1332
1332
|
}
|
|
1333
|
-
async function Xe(r) {
|
|
1334
|
-
const { mobileNumber: w, mobilePrefix: O } = r, I = new URLSearchParams({ mobileNumber: w });
|
|
1335
|
-
O && I.set("mobilePrefix", O);
|
|
1336
|
-
const ue = `${M}/v1/player/resetPasswordByMobilePhone?${I.toString()}`;
|
|
1337
|
-
return await Re(ue);
|
|
1338
|
-
}
|
|
1339
1333
|
async function $e(r) {
|
|
1340
|
-
const {
|
|
1341
|
-
|
|
1334
|
+
const { mobileNumber: w, mobilePrefix: W } = r, M = new URLSearchParams({ mobileNumber: w });
|
|
1335
|
+
W && M.set("mobilePrefix", W);
|
|
1336
|
+
const ue = `${E}/v1/player/resetPasswordByMobilePhone?${M.toString()}`;
|
|
1337
|
+
return await Ce(ue);
|
|
1338
|
+
}
|
|
1339
|
+
async function et(r) {
|
|
1340
|
+
const { tokenId: w, validationCode: W } = r, M = new URLSearchParams({ tokenId: w, validationCode: W }), ue = `${E}/v1/player/resetPasswordByMobilePhone/validate?${M.toString()}`;
|
|
1341
|
+
return await Ce(ue);
|
|
1342
1342
|
}
|
|
1343
|
-
async function
|
|
1344
|
-
const r = new URL(`${
|
|
1343
|
+
async function tt() {
|
|
1344
|
+
const r = new URL(`${E}/v1/player/operatorSupportedPhoneCodes`), w = await fetch(r.href);
|
|
1345
1345
|
try {
|
|
1346
|
-
return (await w.json()).phoneCodes.map((
|
|
1346
|
+
return (await w.json()).phoneCodes.map((M) => ({ label: M, value: M }));
|
|
1347
1347
|
} catch {
|
|
1348
1348
|
return [];
|
|
1349
1349
|
}
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function ot(r) {
|
|
1352
1352
|
const w = r.target.value;
|
|
1353
1353
|
o(14, _ = w);
|
|
1354
1354
|
}
|
|
1355
|
-
async function
|
|
1356
|
-
o(15, T = ""), o(16, P = ""), o(17,
|
|
1355
|
+
async function je() {
|
|
1356
|
+
o(15, T = ""), o(16, P = ""), o(17, A = ""), o(11, k = !0);
|
|
1357
1357
|
try {
|
|
1358
|
-
if (!
|
|
1358
|
+
if (!H(j)) {
|
|
1359
1359
|
o(15, T = c("invalidPhone"));
|
|
1360
1360
|
return;
|
|
1361
1361
|
}
|
|
1362
|
-
const r = await
|
|
1363
|
-
mobileNumber:
|
|
1362
|
+
const r = await $e({
|
|
1363
|
+
mobileNumber: j.trim(),
|
|
1364
1364
|
mobilePrefix: _?.trim() || void 0
|
|
1365
1365
|
});
|
|
1366
1366
|
if (r?.tokenId) {
|
|
1367
|
-
b = r.tokenId, o(5, le = Date.now() + ae), o(6, de = Date.now() +
|
|
1368
|
-
const w =
|
|
1369
|
-
o(4, re = w ?? Number(x)),
|
|
1367
|
+
b = r.tokenId, o(5, le = Date.now() + ae), o(6, de = Date.now() + ve), o(18, fe = ""), $ = "", o(8, K = Array.from({ length: z }, () => ""));
|
|
1368
|
+
const w = At(b);
|
|
1369
|
+
o(4, re = w ?? Number(x)), De(b, re), o(2, g = "code");
|
|
1370
1370
|
} else
|
|
1371
1371
|
o(16, P = c("genericIfRegistered"));
|
|
1372
1372
|
} catch (r) {
|
|
1373
|
-
const { message: w, thirdPartyResponse: { message:
|
|
1374
|
-
o(15, T =
|
|
1373
|
+
const { message: w, thirdPartyResponse: { message: W } = {} } = r;
|
|
1374
|
+
o(15, T = W || w), Xe(T);
|
|
1375
1375
|
} finally {
|
|
1376
1376
|
o(11, k = !1);
|
|
1377
1377
|
}
|
|
1378
1378
|
}
|
|
1379
|
-
|
|
1380
|
-
o(
|
|
1379
|
+
function Le() {
|
|
1380
|
+
o(4, re = Math.max(0, re - 1)), De(b, re);
|
|
1381
|
+
}
|
|
1382
|
+
async function it() {
|
|
1383
|
+
o(17, A = ""), o(11, k = !0);
|
|
1381
1384
|
try {
|
|
1382
1385
|
if (!$ || $.trim().length !== z || !/^\d+$/.test($.trim())) {
|
|
1383
|
-
o(17,
|
|
1386
|
+
o(17, A = c("enterDigitsCode").replace("{n}", String(z)));
|
|
1384
1387
|
return;
|
|
1385
1388
|
}
|
|
1386
1389
|
if (!b) {
|
|
1387
|
-
o(17,
|
|
1390
|
+
o(17, A = c("invalidRequest"));
|
|
1388
1391
|
return;
|
|
1389
1392
|
}
|
|
1390
|
-
const r = await
|
|
1393
|
+
const r = await et({ tokenId: b, validationCode: $.trim() });
|
|
1391
1394
|
ke = r.hashKey.charAt(0) === "/" ? r.hashKey.slice(1) : r.hashKey, o(2, g = "password"), Ut(b), window.postMessage(
|
|
1392
1395
|
{
|
|
1393
1396
|
type: "SwitchToResetPasswordScreen",
|
|
@@ -1396,110 +1399,114 @@ function Wt(t, e, o) {
|
|
|
1396
1399
|
window.location.href
|
|
1397
1400
|
);
|
|
1398
1401
|
} catch (r) {
|
|
1399
|
-
if (o(17,
|
|
1400
|
-
const w = r.payload,
|
|
1401
|
-
switch (
|
|
1402
|
+
if (o(17, A = c("unableToVerify")), r instanceof Ve) {
|
|
1403
|
+
const w = r.payload, W = r.status, M = (w?.error || "").toLowerCase();
|
|
1404
|
+
switch (W) {
|
|
1402
1405
|
case 400: {
|
|
1403
|
-
|
|
1406
|
+
M.includes("invalid validation code") ? (Le(), o(17, A = re > 0 ? c("incorrectCode") : c("tooManyAttempts"))) : M.includes("expired") ? (o(17, A = c("codeExpired")), o(18, fe = c("codeExpired")), o(5, le = null)) : M.includes("not valid") || M.includes("invalid token") ? o(17, A = c("invalidRequest")) : o(17, A = c("unableToVerify"));
|
|
1407
|
+
break;
|
|
1408
|
+
}
|
|
1409
|
+
case 424: {
|
|
1410
|
+
M.includes("input is not match") ? (Le(), o(17, A = c("incorrectCode"))) : M.includes("validation max attempts exceeded") ? (Le(), o(17, A = c("tooManyAttempts"))) : o(17, A = c("unableToVerify"));
|
|
1404
1411
|
break;
|
|
1405
1412
|
}
|
|
1406
1413
|
case 404: {
|
|
1407
|
-
o(17,
|
|
1414
|
+
o(17, A = c("sessionNotFound"));
|
|
1408
1415
|
break;
|
|
1409
1416
|
}
|
|
1410
1417
|
default: {
|
|
1411
|
-
o(17,
|
|
1418
|
+
o(17, A = c("unableToVerify"));
|
|
1412
1419
|
break;
|
|
1413
1420
|
}
|
|
1414
1421
|
}
|
|
1415
|
-
|
|
1422
|
+
Xe(A);
|
|
1416
1423
|
}
|
|
1417
1424
|
} finally {
|
|
1418
1425
|
o(11, k = !1);
|
|
1419
1426
|
}
|
|
1420
1427
|
}
|
|
1421
|
-
async function
|
|
1422
|
-
k || de && te < de || await
|
|
1428
|
+
async function rt() {
|
|
1429
|
+
k || de && te < de || await je();
|
|
1423
1430
|
}
|
|
1424
|
-
|
|
1425
|
-
const
|
|
1431
|
+
Nt({ withLocale: "en", translations: {} });
|
|
1432
|
+
const st = async (r) => {
|
|
1426
1433
|
try {
|
|
1427
1434
|
const w = await fetch(r);
|
|
1428
1435
|
if (!w.ok)
|
|
1429
1436
|
throw new Error(`Fetch failed with status ${w.status}`);
|
|
1430
|
-
const
|
|
1431
|
-
for (const
|
|
1432
|
-
Ue(
|
|
1437
|
+
const W = await w.json();
|
|
1438
|
+
for (const M in W)
|
|
1439
|
+
Ue(M, W[M]);
|
|
1433
1440
|
} catch (w) {
|
|
1434
1441
|
console.error("Error fetching translation", w);
|
|
1435
1442
|
}
|
|
1436
1443
|
};
|
|
1437
|
-
Object.keys(
|
|
1438
|
-
Ue(r,
|
|
1444
|
+
Object.keys(Fe).forEach((r) => {
|
|
1445
|
+
Ue(r, Fe[r]);
|
|
1439
1446
|
});
|
|
1440
|
-
const
|
|
1441
|
-
|
|
1447
|
+
const nt = () => {
|
|
1448
|
+
qt(G);
|
|
1442
1449
|
};
|
|
1443
|
-
St(async () => (o(13, ie = await
|
|
1450
|
+
St(async () => (o(13, ie = await tt()), o(14, _ = ie?.[0]?.value), $ && $.length === z && o(8, K = $.split("")), () => {
|
|
1444
1451
|
}));
|
|
1445
|
-
function
|
|
1452
|
+
function at() {
|
|
1446
1453
|
_ = this.value, o(14, _);
|
|
1447
1454
|
}
|
|
1448
|
-
function
|
|
1449
|
-
|
|
1455
|
+
function lt() {
|
|
1456
|
+
j = this.value, o(3, j);
|
|
1450
1457
|
}
|
|
1451
|
-
function
|
|
1452
|
-
|
|
1458
|
+
function dt(r, w) {
|
|
1459
|
+
Ie[r ? "unshift" : "push"](() => {
|
|
1453
1460
|
U[w] = r, o(19, U);
|
|
1454
1461
|
});
|
|
1455
1462
|
}
|
|
1456
|
-
const
|
|
1457
|
-
function
|
|
1458
|
-
|
|
1459
|
-
|
|
1463
|
+
const ut = (r, w) => ge(w, r), ct = (r, w) => ee(w, r);
|
|
1464
|
+
function pt(r) {
|
|
1465
|
+
Ie[r ? "unshift" : "push"](() => {
|
|
1466
|
+
v = r, o(1, v);
|
|
1460
1467
|
});
|
|
1461
1468
|
}
|
|
1462
1469
|
return t.$$set = (r) => {
|
|
1463
|
-
"clientstyling" in r && o(33,
|
|
1470
|
+
"clientstyling" in r && o(33, h = r.clientstyling), "clientstylingurl" in r && o(34, S = r.clientstylingurl), "translationurl" in r && o(35, L = r.translationurl), "mbsource" in r && o(36, B = r.mbsource), "phoneregex" in r && o(37, Y = r.phoneregex), "phoneprefixeditable" in r && o(0, D = r.phoneprefixeditable), "smscodelength" in r && o(38, X = r.smscodelength), "smscodemaxattempts" in r && o(39, x = r.smscodemaxattempts), "smscodettl" in r && o(40, C = r.smscodettl), "resenddelay" in r && o(41, N = r.resenddelay), "endpoint" in r && o(42, E = r.endpoint), "lang" in r && o(43, G = r.lang);
|
|
1464
1471
|
}, t.$$.update = () => {
|
|
1465
1472
|
t.$$.dirty[0] & /*customStylingContainer*/
|
|
1466
1473
|
2 | t.$$.dirty[1] & /*clientstyling*/
|
|
1467
|
-
4 &&
|
|
1474
|
+
4 && h && v && Tt(v, h), t.$$.dirty[0] & /*customStylingContainer*/
|
|
1468
1475
|
2 | t.$$.dirty[1] & /*clientstylingurl*/
|
|
1469
|
-
8 &&
|
|
1476
|
+
8 && S && v && Mt(v, S), t.$$.dirty[0] & /*customStylingContainer*/
|
|
1470
1477
|
2 | t.$$.dirty[1] & /*mbsource*/
|
|
1471
|
-
32 &&
|
|
1472
|
-
4096 && G &&
|
|
1473
|
-
16 && L &&
|
|
1478
|
+
32 && B && v && Et(v, `${B}.Style`), t.$$.dirty[1] & /*lang*/
|
|
1479
|
+
4096 && G && nt(), t.$$.dirty[1] & /*translationurl*/
|
|
1480
|
+
16 && L && st(L), t.$$.dirty[0] & /*expiresAt, now*/
|
|
1474
1481
|
160 && o(9, i = le ? Math.max(0, Math.ceil((le - te) / 1e3)) : 0), t.$$.dirty[0] & /*canResendAt, now*/
|
|
1475
1482
|
192 && o(21, a = de ? Math.max(0, Math.ceil((de - te) / 1e3)) : 0), t.$$.dirty[0] & /*expiresAt, remainingSeconds*/
|
|
1476
1483
|
544 && o(44, n = !!le && i === 0), t.$$.dirty[0] & /*step, phone, $_*/
|
|
1477
|
-
1036 && o(15, T = g === "phone" &&
|
|
1478
|
-
256 && o(46, d =
|
|
1479
|
-
256 && o(47, f =
|
|
1484
|
+
1036 && o(15, T = g === "phone" && j ? H(j) ? "" : c("invalidPhone") : ""), t.$$.dirty[0] & /*codeDigits*/
|
|
1485
|
+
256 && o(46, d = K.join("")), t.$$.dirty[0] & /*codeDigits*/
|
|
1486
|
+
256 && o(47, f = K.every((r) => /^\d$/.test(r))), t.$$.dirty[1] & /*isCodeFilled, codeCombined*/
|
|
1480
1487
|
98304 && o(45, m = f && d.length === z), t.$$.dirty[0] & /*codeDigits*/
|
|
1481
|
-
256 && ($ =
|
|
1488
|
+
256 && ($ = K.join("")), t.$$.dirty[0] & /*attemptsRemaining*/
|
|
1482
1489
|
16 | t.$$.dirty[1] & /*isCodeValid, isTokenExpired*/
|
|
1483
1490
|
24576 && o(20, y = !m || n || re <= 0);
|
|
1484
1491
|
}, [
|
|
1485
|
-
|
|
1486
|
-
|
|
1492
|
+
D,
|
|
1493
|
+
v,
|
|
1487
1494
|
g,
|
|
1488
|
-
|
|
1495
|
+
j,
|
|
1489
1496
|
re,
|
|
1490
1497
|
le,
|
|
1491
1498
|
de,
|
|
1492
1499
|
te,
|
|
1493
|
-
|
|
1500
|
+
K,
|
|
1494
1501
|
i,
|
|
1495
1502
|
c,
|
|
1496
1503
|
k,
|
|
1497
|
-
|
|
1504
|
+
V,
|
|
1498
1505
|
ie,
|
|
1499
1506
|
_,
|
|
1500
1507
|
T,
|
|
1501
1508
|
P,
|
|
1502
|
-
|
|
1509
|
+
A,
|
|
1503
1510
|
fe,
|
|
1504
1511
|
U,
|
|
1505
1512
|
y,
|
|
@@ -1511,41 +1518,41 @@ function Wt(t, e, o) {
|
|
|
1511
1518
|
z,
|
|
1512
1519
|
ge,
|
|
1513
1520
|
ee,
|
|
1514
|
-
tt,
|
|
1515
|
-
Ee,
|
|
1516
1521
|
ot,
|
|
1522
|
+
je,
|
|
1517
1523
|
it,
|
|
1518
|
-
|
|
1519
|
-
|
|
1524
|
+
rt,
|
|
1525
|
+
h,
|
|
1526
|
+
S,
|
|
1520
1527
|
L,
|
|
1521
|
-
|
|
1528
|
+
B,
|
|
1522
1529
|
Y,
|
|
1523
1530
|
X,
|
|
1524
1531
|
x,
|
|
1525
|
-
|
|
1532
|
+
C,
|
|
1526
1533
|
N,
|
|
1527
|
-
|
|
1534
|
+
E,
|
|
1528
1535
|
G,
|
|
1529
1536
|
n,
|
|
1530
1537
|
m,
|
|
1531
1538
|
d,
|
|
1532
1539
|
f,
|
|
1533
|
-
nt,
|
|
1534
1540
|
at,
|
|
1535
1541
|
lt,
|
|
1536
1542
|
dt,
|
|
1537
1543
|
ut,
|
|
1538
|
-
ct
|
|
1544
|
+
ct,
|
|
1545
|
+
pt
|
|
1539
1546
|
];
|
|
1540
1547
|
}
|
|
1541
|
-
class
|
|
1548
|
+
class Yt extends vt {
|
|
1542
1549
|
constructor(e) {
|
|
1543
|
-
super(),
|
|
1550
|
+
super(), Pt(
|
|
1544
1551
|
this,
|
|
1545
1552
|
e,
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1553
|
+
Bt,
|
|
1554
|
+
Ot,
|
|
1555
|
+
yt,
|
|
1549
1556
|
{
|
|
1550
1557
|
clientstyling: 33,
|
|
1551
1558
|
clientstylingurl: 34,
|
|
@@ -1560,7 +1567,7 @@ class Bt extends vt {
|
|
|
1560
1567
|
endpoint: 42,
|
|
1561
1568
|
lang: 43
|
|
1562
1569
|
},
|
|
1563
|
-
|
|
1570
|
+
Ft,
|
|
1564
1571
|
[-1, -1, -1]
|
|
1565
1572
|
);
|
|
1566
1573
|
}
|
|
@@ -1637,7 +1644,7 @@ class Bt extends vt {
|
|
|
1637
1644
|
this.$$set({ lang: e }), oe();
|
|
1638
1645
|
}
|
|
1639
1646
|
}
|
|
1640
|
-
|
|
1647
|
+
kt(Yt, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, phoneregex: {}, phoneprefixeditable: {}, smscodelength: {}, smscodemaxattempts: {}, smscodettl: {}, resenddelay: {}, endpoint: {}, lang: {} }, [], [], !0);
|
|
1641
1648
|
export {
|
|
1642
|
-
|
|
1649
|
+
Yt as default
|
|
1643
1650
|
};
|