@everymatrix/general-player-forgot-password-form-nd 1.87.25 → 1.87.27

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