@everymatrix/cashier-page 1.87.13 → 1.87.15

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.
Files changed (64) hide show
  1. package/components/{CashierCarousel-1mMP8tyv.cjs → CashierCarousel-BM7TbAtM.cjs} +5 -5
  2. package/components/{CashierCarousel-C-ucwZi1.js → CashierCarousel-DtU6jArX.js} +87 -75
  3. package/components/{CashierCarousel-D-vvfyMH.js → CashierCarousel-FPkYM4AF.js} +85 -73
  4. package/components/CashierError-BQKbDvjD.cjs +1 -0
  5. package/components/{CashierError-B7A15YvS.js → CashierError-DXQuKMKj.js} +187 -158
  6. package/components/{CashierError-D0BJZtGN.js → CashierError-pya-_1QH.js} +187 -158
  7. package/components/{CashierHeader-BV2xXjmR.js → CashierHeader-BqCFd2jK.js} +47 -40
  8. package/components/{CashierHeader-soZetsFk.js → CashierHeader-DeE3EM4e.js} +47 -40
  9. package/components/CashierHeader-uUKKCJPK.cjs +1 -0
  10. package/components/{CashierIframeRedirect-Bz-JLb_U.js → CashierIframeRedirect-BflFh-0a.js} +14 -11
  11. package/components/CashierIframeRedirect-DJYgCtzR.cjs +1 -0
  12. package/components/{CashierIframeRedirect-DWYFdGdL.js → CashierIframeRedirect-v81EcZ5X.js} +14 -11
  13. package/components/{CashierMethodDetails-CnWc6Jl5.js → CashierMethodDetails-0KCeREdt.js} +704 -620
  14. package/components/{CashierMethodDetails-BdlHR1PC.js → CashierMethodDetails-CnUzvRwp.js} +744 -660
  15. package/components/CashierMethodDetails-lolLnwRx.cjs +85 -0
  16. package/components/{CashierMethodsList-DjbJRqd4.js → CashierMethodsList-2SUSPsQ9.js} +91 -79
  17. package/components/CashierMethodsList-CnKPCn1q.cjs +1 -0
  18. package/components/{CashierMethodsList-Bt8EUCAN.js → CashierMethodsList-DfgnHHlo.js} +126 -114
  19. package/components/{CashierModal-BFn5q8yd.js → CashierModal-Bif-o7_I.js} +1 -1
  20. package/components/{CashierModal-7G3Hf7yF.js → CashierModal-Bpk12PZh.js} +1 -1
  21. package/components/{CashierModal-Rg_q9zr6.cjs → CashierModal-CrOigLnu.cjs} +1 -1
  22. package/components/{CashierNotifications-BK1Gy3Hy.js → CashierNotifications-Cl3TvZ5Q.js} +1 -1
  23. package/components/{CashierNotifications-DJjkliEL.cjs → CashierNotifications-DX95fLsU.cjs} +1 -1
  24. package/components/{CashierNotifications-DyaOquWi.js → CashierNotifications-Dca8MDi4.js} +1 -1
  25. package/components/{CashierPage-BW0dTggU.js → CashierPage-BxL4rgo3.js} +1183 -1131
  26. package/components/{CashierPage-Cj-JwUP8.js → CashierPage-CL-F3a-g.js} +711 -659
  27. package/components/CashierPage-Cm5BWzbc.cjs +1 -0
  28. package/components/{CashierReceiptPage-DWg3cN1R.cjs → CashierReceiptPage-BVPNCJFD.cjs} +2 -2
  29. package/components/{CashierReceiptPage-CK3MwTyw.js → CashierReceiptPage-DpUQHCgh.js} +553 -461
  30. package/components/{CashierReceiptPage-CCi_X5vb.js → CashierReceiptPage-W9UaeNqI.js} +562 -470
  31. package/components/{CashierSessionExpirationModal-CFRMQOsS.js → CashierSessionExpirationModal-CpUIvUTh.js} +54 -46
  32. package/components/{CashierSessionExpirationModal-ByMDJhaE.js → CashierSessionExpirationModal-D4cIYZkD.js} +54 -46
  33. package/components/{CashierSessionExpirationModal-k_a6y_b-.cjs → CashierSessionExpirationModal-DuG3MLdQ.cjs} +2 -2
  34. package/components/{CashierSpinner-DhHAyFN5.cjs → CashierSpinner-Bq4laDIQ.cjs} +1 -1
  35. package/components/{CashierSpinner-DhNiwwG8.js → CashierSpinner-CrvdKbSF.js} +1 -1
  36. package/components/{CashierSpinner-VyYLuEkP.js → CashierSpinner-DUlwpFvB.js} +1 -1
  37. package/components/{CashierStepUp-CJPD6aTJ.js → CashierStepUp-B9TiO612.js} +354 -331
  38. package/components/{CashierStepUp-BLfjsWQ6.js → CashierStepUp-BkZ7FxUg.js} +346 -323
  39. package/components/CashierStepUp-DCWLJDbh.cjs +1 -0
  40. package/components/{CashierTransactionHistory-CU8DuAJC.js → CashierTransactionHistory-9FhtIHtk.js} +350 -325
  41. package/components/CashierTransactionHistory-Di9cvoVg.cjs +1 -0
  42. package/components/{CashierTransactionHistory-D8BLMoXS.js → CashierTransactionHistory-Y5PZzBeB.js} +450 -425
  43. package/components/{CashierVerifications-DOSd5kn7.js → CashierVerifications-BuX19TRF.js} +173 -154
  44. package/components/CashierVerifications-Cu-qQMx5.cjs +1 -0
  45. package/components/{CashierVerifications-DkGXFNAT.js → CashierVerifications-Df_XWaiL.js} +165 -146
  46. package/components/{TxnStatusIcon-CQ5vZzXs.js → TxnStatusIcon-Cs1do2tU.js} +1 -1
  47. package/components/{TxnStatusIcon-CsGhPGXz.js → TxnStatusIcon-D9sIZDN_.js} +1 -1
  48. package/components/{TxnStatusIcon-CWiSCMgS.cjs → TxnStatusIcon-DyRurIBj.cjs} +1 -1
  49. package/components/{TxnTypeIcons-C537E5bY.cjs → TxnTypeIcons-D6VXCUVX.cjs} +1 -1
  50. package/components/{TxnTypeIcons-CKeLNGyz.js → TxnTypeIcons-l2hb_98H.js} +1 -1
  51. package/components/{TxnTypeIcons-MnBmprHO.js → TxnTypeIcons-t4xEoQXc.js} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +1 -1
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierError-BvD7radj.cjs +0 -1
  57. package/components/CashierHeader-C8evLxKj.cjs +0 -1
  58. package/components/CashierIframeRedirect-St1aQxMq.cjs +0 -1
  59. package/components/CashierMethodDetails-CjL5-po_.cjs +0 -85
  60. package/components/CashierMethodsList-Bkhyrkpj.cjs +0 -1
  61. package/components/CashierPage-hOVFrtIF.cjs +0 -1
  62. package/components/CashierStepUp-B0J7ai_K.cjs +0 -1
  63. package/components/CashierTransactionHistory-BNiGA4I-.cjs +0 -1
  64. package/components/CashierVerifications-Ddy4p3B5.cjs +0 -1
@@ -10,28 +10,28 @@ var Me = (n, t, e) => t in n ? Qe(n, t, { enumerable: !0, configurable: !0, writ
10
10
  tt.call(t, e) && Me(n, e, t[e]);
11
11
  return n;
12
12
  }, Te = (n, t) => Ze(n, $e(t));
13
- var he = (n, t, e) => new Promise((l, o) => {
13
+ var he = (n, t, e) => new Promise((o, i) => {
14
14
  var a = (c) => {
15
15
  try {
16
16
  s(e.next(c));
17
- } catch (d) {
18
- o(d);
17
+ } catch (f) {
18
+ i(f);
19
19
  }
20
20
  }, u = (c) => {
21
21
  try {
22
22
  s(e.throw(c));
23
- } catch (d) {
24
- o(d);
23
+ } catch (f) {
24
+ i(f);
25
25
  }
26
- }, s = (c) => c.done ? l(c.value) : Promise.resolve(c.value).then(a, u);
26
+ }, s = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(a, u);
27
27
  s((e = e.apply(n, t)).next());
28
28
  });
29
- import { a as nt, $ as lt, S as ot, b as it, s as rt, f as ie, c as st, G as ke, e as O, k as S, m as k, o as r, p as at, q as ct, y as Le, v as x, l as f, x as le, X as Q, n as P, w as L, a0 as je, W as Z, r as pt, Y as Ae, a4 as ut, B as ft, C as dt, D as mt, E as ht, F as gt } from "./CashierCarousel-C-ucwZi1.js";
30
- function Ie(n, t) {
29
+ import { a as nt, $ as ot, S as it, b as lt, s as rt, f as le, c as st, G as ve, e as O, k as S, m as v, o as r, p as at, q as ct, y as Le, v as x, l as d, x as oe, X as Q, n as P, w as L, a0 as je, W as Z, r as pt, Y as Ae, a4 as ut, B as dt, C as ft, D as mt, E as ht, F as gt } from "./CashierCarousel-DtU6jArX.js";
30
+ function ze(n, t) {
31
31
  nt(n, t);
32
32
  }
33
- function wt(n) {
34
- lt.set(n);
33
+ function bt(n) {
34
+ ot.set(n);
35
35
  }
36
36
  const Re = {
37
37
  en: {
@@ -79,37 +79,60 @@ const Re = {
79
79
  channelEmail: "E-posta kodu",
80
80
  sendCode: "Kodu gönder",
81
81
  waitSeconds: "Tekrar göndermeden önce lütfen bekleyin:"
82
+ },
83
+ fr: {
84
+ otpTitle: "La vérification par code est requise",
85
+ popupMessage: "Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d’effectuer la mise à jour.",
86
+ popupMessageLastWarning: "Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",
87
+ minutes: "minutes",
88
+ errorHeader: "Erreur",
89
+ configError: "Impossible de charger les données OTP. Veuillez réessayer plus tard.",
90
+ otpHeading: "Saisir le code OTP",
91
+ resendOtp: "Renvoyer le code OTP",
92
+ submit: "Valider",
93
+ close: "Fermer",
94
+ invalidOtp: "Le code que vous avez saisi n’est pas valide. Veuillez réessayer.",
95
+ accountBlocked: "Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",
96
+ submissionError: "Une erreur s’est produite. Veuillez réessayer.",
97
+ otpExpiredMessage: "Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",
98
+ timeRemaining: "Le code expire dans :",
99
+ selectChannelTitle: "Sélectionner la méthode de vérification",
100
+ selectChannelMessage: "Choisissez comment vous souhaitez recevoir votre code de vérification",
101
+ channelSMS: "SMS",
102
+ channelEmail: "E-mail",
103
+ sendCode: "Envoyer le code",
104
+ waitSeconds: "Veuillez patienter avant de renvoyer le code :"
82
105
  }
83
106
  };
84
- function bt(n) {
107
+ function wt(n) {
85
108
  st(n, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
86
109
  }
87
- function ze(n, t, e) {
88
- const l = n.slice();
89
- return l[69] = t[e], l[70] = t, l[71] = e, l;
110
+ function Ie(n, t, e) {
111
+ const o = n.slice();
112
+ return o[69] = t[e], o[70] = t, o[71] = e, o;
90
113
  }
91
114
  function _t(n) {
92
- let t, e, l, o, a, u, s, c, d, _, b, T, M, w, m, y, C, R = (
115
+ let t, e, o, i, a, u, s, c, f, _, w, T, M, b, m, y, C, R = (
93
116
  /*$_*/
94
117
  n[19]("channelSMS") + ""
95
- ), X, F, H, z, oe, U, $, re, ee, E, A, W, se, ae, ce = (
118
+ ), X, F, V, I, ie, q, $, re, ee, E, A, W, se, ae, ce = (
96
119
  /*$_*/
97
120
  n[19]("channelEmail") + ""
98
- ), q, G, N, te, Y, pe, fe;
99
- function ue(p, v) {
121
+ ), U, G, H, te, Y, pe, de;
122
+ function ue(p, k) {
100
123
  return (
101
124
  /*showResendOtp*/
102
125
  p[9] ? Ct : (
103
126
  /*showOtpInput*/
104
- p[12] ? kt : vt
127
+ p[12] ? vt : kt
105
128
  )
106
129
  );
107
130
  }
108
- let de = ue(n), K = de(n), D = (
131
+ let fe = ue(n), K = fe(n), D = (
109
132
  /*selectedChannel*/
110
133
  n[0] && xe(n)
111
134
  );
112
- function ge(p, v) {
135
+ function ge(p, k) {
113
136
  if (
114
137
  /*isLoading*/
115
138
  p[3] && /*showOtpInput*/
@@ -124,12 +147,12 @@ function _t(n) {
124
147
  return Tt;
125
148
  }
126
149
  let ne = ge(n), j = ne && ne(n);
127
- function we(p, v) {
150
+ function be(p, k) {
128
151
  if (
129
152
  /*showResendOtp*/
130
153
  p[9]
131
154
  )
132
- return It;
155
+ return zt;
133
156
  if (
134
157
  /*showOtpInput*/
135
158
  p[12] && /*config*/
@@ -137,10 +160,10 @@ function _t(n) {
137
160
  )
138
161
  return At;
139
162
  }
140
- let J = we(n), V = J && J(n);
163
+ let J = be(n), N = J && J(n);
141
164
  return {
142
165
  c() {
143
- t = k("div"), K.c(), e = P(), l = k("div"), o = k("label"), a = k("div"), u = P(), s = k("input"), d = P(), _ = k("div"), b = Q("svg"), T = Q("path"), M = Q("circle"), w = Q("circle"), m = Q("circle"), y = P(), C = k("span"), X = L(R), F = P(), H = k("label"), z = k("div"), oe = P(), U = k("input"), re = P(), ee = k("div"), E = Q("svg"), A = Q("rect"), W = Q("path"), se = P(), ae = k("span"), q = L(ce), G = P(), D && D.c(), N = P(), j && j.c(), te = P(), Y = k("div"), V && V.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), Z(
166
+ t = v("div"), K.c(), e = P(), o = v("div"), i = v("label"), a = v("div"), u = P(), s = v("input"), f = P(), _ = v("div"), w = Q("svg"), T = Q("path"), M = Q("circle"), b = Q("circle"), m = Q("circle"), y = P(), C = v("span"), X = L(R), F = P(), V = v("label"), I = v("div"), ie = P(), q = v("input"), re = P(), ee = v("div"), E = Q("svg"), A = Q("rect"), W = Q("path"), se = P(), ae = v("span"), U = L(ce), G = P(), D && D.c(), H = P(), j && j.c(), te = P(), Y = v("div"), N && N.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), Z(
144
167
  a,
145
168
  "checked",
146
169
  /*selectedChannel*/
@@ -149,109 +172,109 @@ function _t(n) {
149
172
  ), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
150
173
  n[20].SMS, s.checked = c = /*selectedChannel*/
151
174
  n[0] === /*channels*/
152
- n[20].SMS, r(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), r(M, "cx", "9"), r(M, "cy", "11"), r(M, "r", "0.5"), r(M, "fill", "currentColor"), r(w, "cx", "12"), r(w, "cy", "11"), r(w, "r", "0.5"), r(w, "fill", "currentColor"), r(m, "cx", "15"), r(m, "cy", "11"), r(m, "r", "0.5"), r(m, "fill", "currentColor"), r(b, "xmlns", "http://www.w3.org/2000/svg"), r(b, "width", "24"), r(b, "height", "24"), r(b, "viewBox", "0 0 24 24"), r(b, "fill", "none"), r(b, "stroke", "currentColor"), r(b, "stroke-width", "2"), r(b, "stroke-linecap", "round"), r(b, "stroke-linejoin", "round"), r(_, "class", "ChannelContent"), r(o, "class", "ChannelCheckbox"), Z(
153
- o,
175
+ n[20].SMS, r(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), r(M, "cx", "9"), r(M, "cy", "11"), r(M, "r", "0.5"), r(M, "fill", "currentColor"), r(b, "cx", "12"), r(b, "cy", "11"), r(b, "r", "0.5"), r(b, "fill", "currentColor"), r(m, "cx", "15"), r(m, "cy", "11"), r(m, "r", "0.5"), r(m, "fill", "currentColor"), r(w, "xmlns", "http://www.w3.org/2000/svg"), r(w, "width", "24"), r(w, "height", "24"), r(w, "viewBox", "0 0 24 24"), r(w, "fill", "none"), r(w, "stroke", "currentColor"), r(w, "stroke-width", "2"), r(w, "stroke-linecap", "round"), r(w, "stroke-linejoin", "round"), r(_, "class", "ChannelContent"), r(i, "class", "ChannelCheckbox"), Z(
176
+ i,
154
177
  "selected",
155
178
  /*selectedChannel*/
156
179
  n[0] === /*channels*/
157
180
  n[20].SMS
158
- ), r(z, "class", "RadioIndicator"), Z(
159
- z,
181
+ ), r(I, "class", "RadioIndicator"), Z(
182
+ I,
160
183
  "checked",
161
184
  /*selectedChannel*/
162
185
  n[0] === /*channels*/
163
186
  n[20].EMAIL
164
- ), r(U, "type", "radio"), r(U, "name", "channel"), U.value = /*channels*/
165
- n[20].EMAIL, U.checked = $ = /*selectedChannel*/
187
+ ), r(q, "type", "radio"), r(q, "name", "channel"), q.value = /*channels*/
188
+ n[20].EMAIL, q.checked = $ = /*selectedChannel*/
166
189
  n[0] === /*channels*/
167
- n[20].EMAIL, r(A, "x", "2"), r(A, "y", "4"), r(A, "width", "20"), r(A, "height", "16"), r(A, "rx", "2"), r(W, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r(ee, "class", "ChannelContent"), r(H, "class", "ChannelCheckbox"), Z(
168
- H,
190
+ n[20].EMAIL, r(A, "x", "2"), r(A, "y", "4"), r(A, "width", "20"), r(A, "height", "16"), r(A, "rx", "2"), r(W, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r(ee, "class", "ChannelContent"), r(V, "class", "ChannelCheckbox"), Z(
191
+ V,
169
192
  "selected",
170
193
  /*selectedChannel*/
171
194
  n[0] === /*channels*/
172
195
  n[20].EMAIL
173
- ), r(l, "class", "ChannelSelection"), r(Y, "class", "OtpActionButtons");
196
+ ), r(o, "class", "ChannelSelection"), r(Y, "class", "OtpActionButtons");
174
197
  },
175
- m(p, v) {
176
- S(p, t, v), K.m(t, null), S(p, e, v), S(p, l, v), f(l, o), f(o, a), f(o, u), f(o, s), f(o, d), f(o, _), f(_, b), f(b, T), f(b, M), f(b, w), f(b, m), f(_, y), f(_, C), f(C, X), f(l, F), f(l, H), f(H, z), f(H, oe), f(H, U), f(H, re), f(H, ee), f(ee, E), f(E, A), f(E, W), f(ee, se), f(ee, ae), f(ae, q), S(p, G, v), D && D.m(p, v), S(p, N, v), j && j.m(p, v), S(p, te, v), S(p, Y, v), V && V.m(Y, null), pe || (fe = [
177
- le(
198
+ m(p, k) {
199
+ S(p, t, k), K.m(t, null), S(p, e, k), S(p, o, k), d(o, i), d(i, a), d(i, u), d(i, s), d(i, f), d(i, _), d(_, w), d(w, T), d(w, M), d(w, b), d(w, m), d(_, y), d(_, C), d(C, X), d(o, F), d(o, V), d(V, I), d(V, ie), d(V, q), d(V, re), d(V, ee), d(ee, E), d(E, A), d(E, W), d(ee, se), d(ee, ae), d(ae, U), S(p, G, k), D && D.m(p, k), S(p, H, k), j && j.m(p, k), S(p, te, k), S(p, Y, k), N && N.m(Y, null), pe || (de = [
200
+ oe(
178
201
  s,
179
202
  "change",
180
203
  /*change_handler*/
181
204
  n[39]
182
205
  ),
183
- le(
184
- U,
206
+ oe(
207
+ q,
185
208
  "change",
186
209
  /*change_handler_1*/
187
210
  n[40]
188
211
  )
189
212
  ], pe = !0);
190
213
  },
191
- p(p, v) {
192
- de === (de = ue(p)) && K ? K.p(p, v) : (K.d(1), K = de(p), K && (K.c(), K.m(t, null))), v[0] & /*selectedChannel, channels*/
214
+ p(p, k) {
215
+ fe === (fe = ue(p)) && K ? K.p(p, k) : (K.d(1), K = fe(p), K && (K.c(), K.m(t, null))), k[0] & /*selectedChannel, channels*/
193
216
  1048577 && Z(
194
217
  a,
195
218
  "checked",
196
219
  /*selectedChannel*/
197
220
  p[0] === /*channels*/
198
221
  p[20].SMS
199
- ), v[0] & /*selectedChannel*/
222
+ ), k[0] & /*selectedChannel*/
200
223
  1 && c !== (c = /*selectedChannel*/
201
224
  p[0] === /*channels*/
202
- p[20].SMS) && (s.checked = c), v[0] & /*$_*/
225
+ p[20].SMS) && (s.checked = c), k[0] & /*$_*/
203
226
  524288 && R !== (R = /*$_*/
204
- p[19]("channelSMS") + "") && x(X, R), v[0] & /*selectedChannel, channels*/
227
+ p[19]("channelSMS") + "") && x(X, R), k[0] & /*selectedChannel, channels*/
205
228
  1048577 && Z(
206
- o,
229
+ i,
207
230
  "selected",
208
231
  /*selectedChannel*/
209
232
  p[0] === /*channels*/
210
233
  p[20].SMS
211
- ), v[0] & /*selectedChannel, channels*/
234
+ ), k[0] & /*selectedChannel, channels*/
212
235
  1048577 && Z(
213
- z,
236
+ I,
214
237
  "checked",
215
238
  /*selectedChannel*/
216
239
  p[0] === /*channels*/
217
240
  p[20].EMAIL
218
- ), v[0] & /*selectedChannel*/
241
+ ), k[0] & /*selectedChannel*/
219
242
  1 && $ !== ($ = /*selectedChannel*/
220
243
  p[0] === /*channels*/
221
- p[20].EMAIL) && (U.checked = $), v[0] & /*$_*/
244
+ p[20].EMAIL) && (q.checked = $), k[0] & /*$_*/
222
245
  524288 && ce !== (ce = /*$_*/
223
- p[19]("channelEmail") + "") && x(q, ce), v[0] & /*selectedChannel, channels*/
246
+ p[19]("channelEmail") + "") && x(U, ce), k[0] & /*selectedChannel, channels*/
224
247
  1048577 && Z(
225
- H,
248
+ V,
226
249
  "selected",
227
250
  /*selectedChannel*/
228
251
  p[0] === /*channels*/
229
252
  p[20].EMAIL
230
253
  ), /*selectedChannel*/
231
- p[0] ? D ? D.p(p, v) : (D = xe(p), D.c(), D.m(N.parentNode, N)) : D && (D.d(1), D = null), ne === (ne = ge(p)) && j ? j.p(p, v) : (j && j.d(1), j = ne && ne(p), j && (j.c(), j.m(te.parentNode, te))), J === (J = we(p)) && V ? V.p(p, v) : (V && V.d(1), V = J && J(p), V && (V.c(), V.m(Y, null)));
254
+ p[0] ? D ? D.p(p, k) : (D = xe(p), D.c(), D.m(H.parentNode, H)) : D && (D.d(1), D = null), ne === (ne = ge(p)) && j ? j.p(p, k) : (j && j.d(1), j = ne && ne(p), j && (j.c(), j.m(te.parentNode, te))), J === (J = be(p)) && N ? N.p(p, k) : (N && N.d(1), N = J && J(p), N && (N.c(), N.m(Y, null)));
232
255
  },
233
256
  d(p) {
234
- p && (O(t), O(e), O(l), O(G), O(N), O(te), O(Y)), K.d(), D && D.d(p), j && j.d(p), V && V.d(), pe = !1, je(fe);
257
+ p && (O(t), O(e), O(o), O(G), O(H), O(te), O(Y)), K.d(), D && D.d(p), j && j.d(p), N && N.d(), pe = !1, je(de);
235
258
  }
236
259
  };
237
260
  }
238
261
  function yt(n) {
239
- let t, e, l, o, a, u, s = (
262
+ let t, e, o, i, a, u, s = (
240
263
  /*$_*/
241
264
  n[19]("errorHeader") + ""
242
- ), c, d, _, b, T, M, w = (
265
+ ), c, f, _, w, T, M, b = (
243
266
  /*$_*/
244
267
  n[19]("close") + ""
245
268
  ), m, y, C;
246
269
  return {
247
270
  c() {
248
- t = k("div"), e = k("div"), l = Q("svg"), o = Q("path"), a = P(), u = k("h2"), c = L(s), d = P(), _ = k("p"), b = L(
271
+ t = v("div"), e = v("div"), o = Q("svg"), i = Q("path"), a = P(), u = v("h2"), c = L(s), f = P(), _ = v("p"), w = L(
249
272
  /*errorMessage*/
250
273
  n[8]
251
- ), T = P(), M = k("button"), m = L(w), r(o, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), r(l, "xmlns", "http://www.w3.org/2000/svg"), r(l, "viewBox", "0 0 512 512"), r(e, "class", "OtpErrorHeader"), r(M, "class", "OtpButton error"), r(t, "class", "OtpError");
274
+ ), T = P(), M = v("button"), m = L(b), r(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), r(o, "xmlns", "http://www.w3.org/2000/svg"), r(o, "viewBox", "0 0 512 512"), r(e, "class", "OtpErrorHeader"), r(M, "class", "OtpButton error"), r(t, "class", "OtpError");
252
275
  },
253
276
  m(R, X) {
254
- S(R, t, X), f(t, e), f(e, l), f(l, o), f(e, a), f(e, u), f(u, c), f(t, d), f(t, _), f(_, b), f(t, T), f(t, M), f(M, m), y || (C = le(
277
+ S(R, t, X), d(t, e), d(e, o), d(o, i), d(e, a), d(e, u), d(u, c), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = oe(
255
278
  M,
256
279
  "click",
257
280
  /*manualClosePopup*/
@@ -263,24 +286,24 @@ function yt(n) {
263
286
  524288 && s !== (s = /*$_*/
264
287
  R[19]("errorHeader") + "") && x(c, s), X[0] & /*errorMessage*/
265
288
  256 && x(
266
- b,
289
+ w,
267
290
  /*errorMessage*/
268
291
  R[8]
269
292
  ), X[0] & /*$_*/
270
- 524288 && w !== (w = /*$_*/
271
- R[19]("close") + "") && x(m, w);
293
+ 524288 && b !== (b = /*$_*/
294
+ R[19]("close") + "") && x(m, b);
272
295
  },
273
296
  d(R) {
274
297
  R && O(t), y = !1, C();
275
298
  }
276
299
  };
277
300
  }
278
- function kt(n) {
279
- let t, e, l, o;
280
- function a(d, _) {
301
+ function vt(n) {
302
+ let t, e, o, i;
303
+ function a(f, _) {
281
304
  return (
282
305
  /*isLastWarning*/
283
- d[10] ? Ot : Et
306
+ f[10] ? Ot : Et
284
307
  );
285
308
  }
286
309
  let u = a(n), s = u(n), c = (
@@ -289,42 +312,42 @@ function kt(n) {
289
312
  );
290
313
  return {
291
314
  c() {
292
- t = k("p"), s.c(), l = P(), c && c.c(), o = pt(), r(t, "class", e = /*isLastWarning*/
315
+ t = v("p"), s.c(), o = P(), c && c.c(), i = pt(), r(t, "class", e = /*isLastWarning*/
293
316
  n[10] ? "LastWarningMessage" : "");
294
317
  },
295
- m(d, _) {
296
- S(d, t, _), s.m(t, null), S(d, l, _), c && c.m(d, _), S(d, o, _);
318
+ m(f, _) {
319
+ S(f, t, _), s.m(t, null), S(f, o, _), c && c.m(f, _), S(f, i, _);
297
320
  },
298
- p(d, _) {
299
- u === (u = a(d)) && s ? s.p(d, _) : (s.d(1), s = u(d), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
321
+ p(f, _) {
322
+ u === (u = a(f)) && s ? s.p(f, _) : (s.d(1), s = u(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
300
323
  1024 && e !== (e = /*isLastWarning*/
301
- d[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
302
- d[6] ? c ? c.p(d, _) : (c = Pe(d), c.c(), c.m(o.parentNode, o)) : c && (c.d(1), c = null);
324
+ f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
325
+ f[6] ? c ? c.p(f, _) : (c = Pe(f), c.c(), c.m(i.parentNode, i)) : c && (c.d(1), c = null);
303
326
  },
304
- d(d) {
305
- d && (O(t), O(l), O(o)), s.d(), c && c.d(d);
327
+ d(f) {
328
+ f && (O(t), O(o), O(i)), s.d(), c && c.d(f);
306
329
  }
307
330
  };
308
331
  }
309
- function vt(n) {
332
+ function kt(n) {
310
333
  let t, e = (
311
334
  /*$_*/
312
335
  (n[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
313
- ), l;
336
+ ), o;
314
337
  return {
315
338
  c() {
316
- t = k("p"), l = L(e);
339
+ t = v("p"), o = L(e);
317
340
  },
318
- m(o, a) {
319
- S(o, t, a), f(t, l);
341
+ m(i, a) {
342
+ S(i, t, a), d(t, o);
320
343
  },
321
- p(o, a) {
344
+ p(i, a) {
322
345
  a[0] & /*$_*/
323
346
  524288 && e !== (e = /*$_*/
324
- (o[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && x(l, e);
347
+ (i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && x(o, e);
325
348
  },
326
- d(o) {
327
- o && O(t);
349
+ d(i) {
350
+ i && O(t);
328
351
  }
329
352
  };
330
353
  }
@@ -332,21 +355,21 @@ function Ct(n) {
332
355
  let t, e = (
333
356
  /*$_*/
334
357
  n[19]("otpExpiredMessage") + ""
335
- ), l;
358
+ ), o;
336
359
  return {
337
360
  c() {
338
- t = k("p"), l = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
361
+ t = v("p"), o = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
339
362
  },
340
- m(o, a) {
341
- S(o, t, a), f(t, l);
363
+ m(i, a) {
364
+ S(i, t, a), d(t, o);
342
365
  },
343
- p(o, a) {
366
+ p(i, a) {
344
367
  a[0] & /*$_*/
345
368
  524288 && e !== (e = /*$_*/
346
- o[19]("otpExpiredMessage") + "") && x(l, e);
369
+ i[19]("otpExpiredMessage") + "") && x(o, e);
347
370
  },
348
- d(o) {
349
- o && O(t);
371
+ d(i) {
372
+ i && O(t);
350
373
  }
351
374
  };
352
375
  }
@@ -359,16 +382,16 @@ function Et(n) {
359
382
  c() {
360
383
  e = L(t);
361
384
  },
362
- m(l, o) {
363
- S(l, e, o);
385
+ m(o, i) {
386
+ S(o, e, i);
364
387
  },
365
- p(l, o) {
366
- o[0] & /*$_*/
388
+ p(o, i) {
389
+ i[0] & /*$_*/
367
390
  524288 && t !== (t = /*$_*/
368
- l[19]("popupMessage") + "") && x(e, t);
391
+ o[19]("popupMessage") + "") && x(e, t);
369
392
  },
370
- d(l) {
371
- l && O(e);
393
+ d(o) {
394
+ o && O(e);
372
395
  }
373
396
  };
374
397
  }
@@ -381,16 +404,16 @@ function Ot(n) {
381
404
  c() {
382
405
  e = L(t);
383
406
  },
384
- m(l, o) {
385
- S(l, e, o);
407
+ m(o, i) {
408
+ S(o, e, i);
386
409
  },
387
- p(l, o) {
388
- o[0] & /*$_*/
410
+ p(o, i) {
411
+ i[0] & /*$_*/
389
412
  524288 && t !== (t = /*$_*/
390
- l[19]("popupMessageLastWarning") + "") && x(e, t);
413
+ o[19]("popupMessageLastWarning") + "") && x(e, t);
391
414
  },
392
- d(l) {
393
- l && O(e);
415
+ d(o) {
416
+ o && O(e);
394
417
  }
395
418
  };
396
419
  }
@@ -398,30 +421,30 @@ function Pe(n) {
398
421
  let t, e;
399
422
  return {
400
423
  c() {
401
- t = k("p"), e = L(
424
+ t = v("p"), e = L(
402
425
  /*errorMessage*/
403
426
  n[8]
404
427
  ), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
405
428
  },
406
- m(l, o) {
407
- S(l, t, o), f(t, e);
429
+ m(o, i) {
430
+ S(o, t, i), d(t, e);
408
431
  },
409
- p(l, o) {
410
- o[0] & /*errorMessage*/
432
+ p(o, i) {
433
+ i[0] & /*errorMessage*/
411
434
  256 && x(
412
435
  e,
413
436
  /*errorMessage*/
414
- l[8]
437
+ o[8]
415
438
  );
416
439
  },
417
- d(l) {
418
- l && O(t);
440
+ d(o) {
441
+ o && O(t);
419
442
  }
420
443
  };
421
444
  }
422
445
  function xe(n) {
423
- let t, e, l, o;
424
- function a(c, d) {
446
+ let t, e, o, i;
447
+ function a(c, f) {
425
448
  return (
426
449
  /*currentChannelTimer*/
427
450
  c[17] > 0 ? Mt : St
@@ -430,29 +453,29 @@ function xe(n) {
430
453
  let u = a(n), s = u(n);
431
454
  return {
432
455
  c() {
433
- t = k("button"), s.c(), r(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
456
+ t = v("button"), s.c(), r(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
434
457
  n[18], Z(t, "disabled", !/*canSubmitChannel*/
435
458
  n[18] || /*waitingForConfig*/
436
459
  n[16]);
437
460
  },
438
- m(c, d) {
439
- S(c, t, d), s.m(t, null), l || (o = le(
461
+ m(c, f) {
462
+ S(c, t, f), s.m(t, null), o || (i = oe(
440
463
  t,
441
464
  "click",
442
465
  /*handleChannelSubmit*/
443
466
  n[22]
444
- ), l = !0);
467
+ ), o = !0);
445
468
  },
446
- p(c, d) {
447
- u === (u = a(c)) && s ? s.p(c, d) : (s.d(1), s = u(c), s && (s.c(), s.m(t, null))), d[0] & /*canSubmitChannel*/
469
+ p(c, f) {
470
+ u === (u = a(c)) && s ? s.p(c, f) : (s.d(1), s = u(c), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
448
471
  262144 && e !== (e = !/*canSubmitChannel*/
449
- c[18]) && (t.disabled = e), d[0] & /*canSubmitChannel, waitingForConfig*/
472
+ c[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
450
473
  327680 && Z(t, "disabled", !/*canSubmitChannel*/
451
474
  c[18] || /*waitingForConfig*/
452
475
  c[16]);
453
476
  },
454
477
  d(c) {
455
- c && O(t), s.d(), l = !1, o();
478
+ c && O(t), s.d(), o = !1, i();
456
479
  }
457
480
  };
458
481
  }
@@ -465,16 +488,16 @@ function St(n) {
465
488
  c() {
466
489
  e = L(t);
467
490
  },
468
- m(l, o) {
469
- S(l, e, o);
491
+ m(o, i) {
492
+ S(o, e, i);
470
493
  },
471
- p(l, o) {
472
- o[0] & /*$_*/
494
+ p(o, i) {
495
+ i[0] & /*$_*/
473
496
  524288 && t !== (t = /*$_*/
474
- l[19]("sendCode") + "") && x(e, t);
497
+ o[19]("sendCode") + "") && x(e, t);
475
498
  },
476
- d(l) {
477
- l && O(e);
499
+ d(o) {
500
+ o && O(e);
478
501
  }
479
502
  };
480
503
  }
@@ -482,74 +505,74 @@ function Mt(n) {
482
505
  let t = (
483
506
  /*$_*/
484
507
  n[19]("waitSeconds") + ""
485
- ), e, l, o, a;
508
+ ), e, o, i, a;
486
509
  return {
487
510
  c() {
488
- e = L(t), l = L(" ("), o = L(
511
+ e = L(t), o = L(" ("), i = L(
489
512
  /*currentChannelTimer*/
490
513
  n[17]
491
514
  ), a = L("s)");
492
515
  },
493
516
  m(u, s) {
494
- S(u, e, s), S(u, l, s), S(u, o, s), S(u, a, s);
517
+ S(u, e, s), S(u, o, s), S(u, i, s), S(u, a, s);
495
518
  },
496
519
  p(u, s) {
497
520
  s[0] & /*$_*/
498
521
  524288 && t !== (t = /*$_*/
499
522
  u[19]("waitSeconds") + "") && x(e, t), s[0] & /*currentChannelTimer*/
500
523
  131072 && x(
501
- o,
524
+ i,
502
525
  /*currentChannelTimer*/
503
526
  u[17]
504
527
  );
505
528
  },
506
529
  d(u) {
507
- u && (O(e), O(l), O(o), O(a));
530
+ u && (O(e), O(o), O(i), O(a));
508
531
  }
509
532
  };
510
533
  }
511
534
  function Tt(n) {
512
- let t, e, l = (
535
+ let t, e, o = (
513
536
  /*$_*/
514
537
  n[19]("timeRemaining") + ""
515
- ), o, a, u = (
538
+ ), i, a, u = (
516
539
  /*formatTime*/
517
540
  n[23](
518
541
  /*timeLeft*/
519
542
  n[5]
520
543
  ) + ""
521
- ), s, c, d = (
544
+ ), s, c, f = (
522
545
  /*$_*/
523
546
  n[19]("minutes") + ""
524
- ), _, b, T, M = Ae(
547
+ ), _, w, T, M = Ae(
525
548
  /*otp*/
526
549
  n[2]
527
- ), w = [];
550
+ ), b = [];
528
551
  for (let m = 0; m < M.length; m += 1)
529
- w[m] = De(ze(n, M, m));
552
+ b[m] = De(Ie(n, M, m));
530
553
  return {
531
554
  c() {
532
- t = k("div"), e = k("div"), o = L(l), a = P(), s = L(u), c = P(), _ = L(d), b = P(), T = k("div");
533
- for (let m = 0; m < w.length; m += 1)
534
- w[m].c();
555
+ t = v("div"), e = v("div"), i = L(o), a = P(), s = L(u), c = P(), _ = L(f), w = P(), T = v("div");
556
+ for (let m = 0; m < b.length; m += 1)
557
+ b[m].c();
535
558
  r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
536
559
  },
537
560
  m(m, y) {
538
- S(m, t, y), f(t, e), f(e, o), f(e, a), f(e, s), f(e, c), f(e, _), f(t, b), f(t, T);
539
- for (let C = 0; C < w.length; C += 1)
540
- w[C] && w[C].m(T, null);
561
+ S(m, t, y), d(t, e), d(e, i), d(e, a), d(e, s), d(e, c), d(e, _), d(t, w), d(t, T);
562
+ for (let C = 0; C < b.length; C += 1)
563
+ b[C] && b[C].m(T, null);
541
564
  },
542
565
  p(m, y) {
543
566
  if (y[0] & /*$_*/
544
- 524288 && l !== (l = /*$_*/
545
- m[19]("timeRemaining") + "") && x(o, l), y[0] & /*timeLeft*/
567
+ 524288 && o !== (o = /*$_*/
568
+ m[19]("timeRemaining") + "") && x(i, o), y[0] & /*timeLeft*/
546
569
  32 && u !== (u = /*formatTime*/
547
570
  m[23](
548
571
  /*timeLeft*/
549
572
  m[5]
550
573
  ) + "") && x(s, u), y[0] & /*$_*/
551
- 524288 && d !== (d = /*$_*/
552
- m[19]("minutes") + "") && x(_, d), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
574
+ 524288 && f !== (f = /*$_*/
575
+ m[19]("minutes") + "") && x(_, f), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
553
576
  117458964) {
554
577
  M = Ae(
555
578
  /*otp*/
@@ -557,16 +580,16 @@ function Tt(n) {
557
580
  );
558
581
  let C;
559
582
  for (C = 0; C < M.length; C += 1) {
560
- const R = ze(m, M, C);
561
- w[C] ? w[C].p(R, y) : (w[C] = De(R), w[C].c(), w[C].m(T, null));
583
+ const R = Ie(m, M, C);
584
+ b[C] ? b[C].p(R, y) : (b[C] = De(R), b[C].c(), b[C].m(T, null));
562
585
  }
563
- for (; C < w.length; C += 1)
564
- w[C].d(1);
565
- w.length = M.length;
586
+ for (; C < b.length; C += 1)
587
+ b[C].d(1);
588
+ b.length = M.length;
566
589
  }
567
590
  },
568
591
  d(m) {
569
- m && O(t), ut(w, m);
592
+ m && O(t), ut(b, m);
570
593
  }
571
594
  };
572
595
  }
@@ -574,64 +597,64 @@ function Lt(n) {
574
597
  let t;
575
598
  return {
576
599
  c() {
577
- t = k("div"), t.innerHTML = '<span class="OtpLoader"></span>', r(t, "class", "OtpLoaderContainer");
600
+ t = v("div"), t.innerHTML = '<span class="OtpLoader"></span>', r(t, "class", "OtpLoaderContainer");
578
601
  },
579
- m(e, l) {
580
- S(e, t, l);
602
+ m(e, o) {
603
+ S(e, t, o);
581
604
  },
582
- p: ke,
605
+ p: ve,
583
606
  d(e) {
584
607
  e && O(t);
585
608
  }
586
609
  };
587
610
  }
588
611
  function De(n) {
589
- let t, e, l, o = (
612
+ let t, e, o, i = (
590
613
  /*index*/
591
614
  n[71]
592
615
  ), a, u;
593
616
  const s = () => (
594
617
  /*input_binding*/
595
- n[41](t, o)
618
+ n[41](t, i)
596
619
  ), c = () => (
597
620
  /*input_binding*/
598
- n[41](null, o)
621
+ n[41](null, i)
599
622
  );
600
- function d(...b) {
623
+ function f(...w) {
601
624
  return (
602
625
  /*input_handler*/
603
626
  n[42](
604
627
  /*index*/
605
628
  n[71],
606
- ...b
629
+ ...w
607
630
  )
608
631
  );
609
632
  }
610
- function _(...b) {
633
+ function _(...w) {
611
634
  return (
612
635
  /*keydown_handler*/
613
636
  n[43](
614
637
  /*index*/
615
638
  n[71],
616
- ...b
639
+ ...w
617
640
  )
618
641
  );
619
642
  }
620
643
  return {
621
644
  c() {
622
- t = k("input"), r(t, "id", `otp-input-${/*index*/
645
+ t = v("input"), r(t, "id", `otp-input-${/*index*/
623
646
  n[71]}`), r(t, "type", "text"), r(t, "class", e = `otp-box ${/*config*/
624
647
  n[4].inputLength % 2 === 0 && /*index*/
625
648
  n[71] === /*config*/
626
- n[4].inputLength / 2 - 1 ? "space" : ""}`), r(t, "maxlength", 1), t.value = l = /*char*/
649
+ n[4].inputLength / 2 - 1 ? "space" : ""}`), r(t, "maxlength", 1), t.value = o = /*char*/
627
650
  n[69], r(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
628
651
  n[11], r(t, "autocomplete", "off");
629
652
  },
630
- m(b, T) {
631
- S(b, t, T), s(), a || (u = [
632
- le(t, "input", d),
633
- le(t, "keydown", _),
634
- le(
653
+ m(w, T) {
654
+ S(w, t, T), s(), a || (u = [
655
+ oe(t, "input", f),
656
+ oe(t, "keydown", _),
657
+ oe(
635
658
  t,
636
659
  "paste",
637
660
  /*handleOnPasteOtp*/
@@ -639,21 +662,21 @@ function De(n) {
639
662
  )
640
663
  ], a = !0);
641
664
  },
642
- p(b, T) {
643
- n = b, T[0] & /*config*/
665
+ p(w, T) {
666
+ n = w, T[0] & /*config*/
644
667
  16 && e !== (e = `otp-box ${/*config*/
645
668
  n[4].inputLength % 2 === 0 && /*index*/
646
669
  n[71] === /*config*/
647
670
  n[4].inputLength / 2 - 1 ? "space" : ""}`) && r(t, "class", e), T[0] & /*otp*/
648
- 4 && l !== (l = /*char*/
649
- n[69]) && t.value !== l && (t.value = l), T[0] & /*inputDisabled*/
671
+ 4 && o !== (o = /*char*/
672
+ n[69]) && t.value !== o && (t.value = o), T[0] & /*inputDisabled*/
650
673
  2048 && (t.disabled = /*inputDisabled*/
651
- n[11]), o !== /*index*/
652
- n[71] && (c(), o = /*index*/
674
+ n[11]), i !== /*index*/
675
+ n[71] && (c(), i = /*index*/
653
676
  n[71], s());
654
677
  },
655
- d(b) {
656
- b && O(t), c(), a = !1, je(u);
678
+ d(w) {
679
+ w && O(t), c(), a = !1, je(u);
657
680
  }
658
681
  };
659
682
  }
@@ -661,17 +684,17 @@ function At(n) {
661
684
  let t, e = (
662
685
  /*$_*/
663
686
  n[19]("submit") + ""
664
- ), l, o, a, u;
687
+ ), o, i, a, u;
665
688
  return {
666
689
  c() {
667
- t = k("button"), l = L(e), r(t, "class", "OtpButton"), t.disabled = o = /*otp*/
690
+ t = v("button"), o = L(e), r(t, "class", "OtpButton"), t.disabled = i = /*otp*/
668
691
  n[2].join("").length !== /*config*/
669
692
  n[4].inputLength || /*isSubmitting*/
670
693
  n[13] || /*maxAttempts*/
671
694
  n[15];
672
695
  },
673
696
  m(s, c) {
674
- S(s, t, c), f(t, l), a || (u = le(
697
+ S(s, t, c), d(t, o), a || (u = oe(
675
698
  t,
676
699
  "click",
677
700
  /*submitOtp*/
@@ -681,42 +704,42 @@ function At(n) {
681
704
  p(s, c) {
682
705
  c[0] & /*$_*/
683
706
  524288 && e !== (e = /*$_*/
684
- s[19]("submit") + "") && x(l, e), c[0] & /*otp, config, isSubmitting, maxAttempts*/
685
- 40980 && o !== (o = /*otp*/
707
+ s[19]("submit") + "") && x(o, e), c[0] & /*otp, config, isSubmitting, maxAttempts*/
708
+ 40980 && i !== (i = /*otp*/
686
709
  s[2].join("").length !== /*config*/
687
710
  s[4].inputLength || /*isSubmitting*/
688
711
  s[13] || /*maxAttempts*/
689
- s[15]) && (t.disabled = o);
712
+ s[15]) && (t.disabled = i);
690
713
  },
691
714
  d(s) {
692
715
  s && O(t), a = !1, u();
693
716
  }
694
717
  };
695
718
  }
696
- function It(n) {
719
+ function zt(n) {
697
720
  let t, e = (
698
721
  /*$_*/
699
722
  n[19]("resendOtp") + ""
700
- ), l, o, a;
723
+ ), o, i, a;
701
724
  return {
702
725
  c() {
703
- t = k("button"), l = L(e), r(t, "class", "OtpButton");
726
+ t = v("button"), o = L(e), r(t, "class", "OtpButton");
704
727
  },
705
728
  m(u, s) {
706
- S(u, t, s), f(t, l), o || (a = le(
729
+ S(u, t, s), d(t, o), i || (a = oe(
707
730
  t,
708
731
  "click",
709
732
  /*handleResendOtp*/
710
733
  n[27]
711
- ), o = !0);
734
+ ), i = !0);
712
735
  },
713
736
  p(u, s) {
714
737
  s[0] & /*$_*/
715
738
  524288 && e !== (e = /*$_*/
716
- u[19]("resendOtp") + "") && x(l, e);
739
+ u[19]("resendOtp") + "") && x(o, e);
717
740
  },
718
741
  d(u) {
719
- u && O(t), o = !1, a();
742
+ u && O(t), i = !1, a();
720
743
  }
721
744
  };
722
745
  }
@@ -728,172 +751,172 @@ function Rt(n) {
728
751
  a[7] ? yt : _t
729
752
  );
730
753
  }
731
- let l = e(n), o = l(n);
754
+ let o = e(n), i = o(n);
732
755
  return {
733
756
  c() {
734
- t = k("div"), o.c(), r(t, "class", "OtpContent");
757
+ t = v("div"), i.c(), r(t, "class", "OtpContent");
735
758
  },
736
759
  m(a, u) {
737
- S(a, t, u), o.m(t, null), n[44](t);
760
+ S(a, t, u), i.m(t, null), n[44](t);
738
761
  },
739
762
  p(a, u) {
740
- l === (l = e(a)) && o ? o.p(a, u) : (o.d(1), o = l(a), o && (o.c(), o.m(t, null)));
763
+ o === (o = e(a)) && i ? i.p(a, u) : (i.d(1), i = o(a), i && (i.c(), i.m(t, null)));
741
764
  },
742
- i: ke,
743
- o: ke,
765
+ i: ve,
766
+ o: ve,
744
767
  d(a) {
745
- a && O(t), o.d(), n[44](null);
768
+ a && O(t), i.d(), n[44](null);
746
769
  }
747
770
  };
748
771
  }
749
- function zt(n, t, e) {
750
- let l, o, a;
751
- at(n, gt, (i) => e(19, a = i));
752
- let { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: c } = t, { lang: d = "en" } = t, { endpoint: _ } = t, { session: b } = t, { translationurl: T } = t, { templateid: M } = t, w = [], m = !0, y = null, C = 0, R = "", X = "", F = !1, H = !1, z = "", oe = "", U = "", $ = !1, re = !1, ee = !1, E = "", A = {}, W = null, se = !1, ae = !1, ce = "", q, G = [], N = null, te = 0, Y = !1, pe = !1;
753
- const fe = { SMS: "sms", EMAIL: "email" }, ue = {
772
+ function It(n, t, e) {
773
+ let o, i, a;
774
+ at(n, gt, (l) => e(19, a = l));
775
+ let { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: c } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, R = "", X = "", F = !1, V = !1, I = "", ie = "", q = "", $ = !1, re = !1, ee = !1, E = "", A = {}, W = null, se = !1, ae = !1, ce = "", U, G = [], H = null, te = 0, Y = !1, pe = !1;
776
+ const de = { SMS: "sms", EMAIL: "email" }, ue = {
754
777
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
755
778
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
756
779
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
757
780
  };
758
- Object.keys(Re).forEach((i) => {
759
- Ie(i, Re[i]);
781
+ Object.keys(Re).forEach((l) => {
782
+ ze(l, Re[l]);
760
783
  });
761
- const de = () => {
762
- wt(d);
784
+ const fe = () => {
785
+ bt(f);
763
786
  }, K = () => {
764
- fetch(T).then((i) => i.json()).then((i) => {
765
- Object.keys(i).forEach((h) => {
766
- Ie(h, i[h]);
787
+ fetch(T).then((l) => l.json()).then((l) => {
788
+ Object.keys(l).forEach((h) => {
789
+ ze(h, l[h]);
767
790
  });
768
- }).catch((i) => {
769
- console.log(i);
791
+ }).catch((l) => {
792
+ console.log(l);
770
793
  });
771
- }, D = (i) => he(this, null, function* () {
794
+ }, D = (l) => he(this, null, function* () {
772
795
  var h;
773
- if ((h = i.detail) != null && h["x-step-up-required"]) {
774
- if (e(7, H = !1), e(6, F = !1), e(8, z = ""), oe = i.detail["x-step-up-token"], U = i.detail.flow, !oe || !U) {
775
- e(3, m = !1), e(7, H = !0), e(8, z = a("configError"));
796
+ if ((h = l.detail) != null && h["x-step-up-required"]) {
797
+ if (e(7, V = !1), e(6, F = !1), e(8, I = ""), ie = l.detail["x-step-up-token"], q = l.detail.flow, !ie || !q) {
798
+ e(3, m = !1), e(7, V = !0), e(8, I = a("configError"));
776
799
  return;
777
800
  }
778
801
  e(12, se = !1), e(3, m = !1);
779
802
  }
780
803
  }), ge = () => {
781
- N && (clearInterval(N), N = null), W && (clearInterval(W), W = null), e(6, F = !1), e(7, H = !1), e(8, z = ""), e(10, re = !1), e(2, w = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, se = !1), e(38, A = {});
804
+ H && (clearInterval(H), H = null), W && (clearInterval(W), W = null), e(6, F = !1), e(7, V = !1), e(8, I = ""), e(10, re = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, se = !1), e(38, A = {});
782
805
  }, ne = () => {
783
806
  ge();
784
- }, j = () => new Promise((i, h) => {
785
- const g = new URL(`${_}/api/pam/v1/mfa/challenge/${oe}`), I = new Headers();
786
- I.append("accept", "application/json"), I.append("Content-Type", "application/json"), I.append("X-SessionId", `${b}`), e(16, pe = !0);
807
+ }, j = () => new Promise((l, h) => {
808
+ const g = new URL(`${_}/api/pam/v1/mfa/challenge/${ie}`), z = new Headers();
809
+ z.append("accept", "application/json"), z.append("Content-Type", "application/json"), z.append("X-SessionId", `${w}`), e(16, pe = !0);
787
810
  const me = {
788
811
  method: "PATCH",
789
- headers: I,
812
+ headers: z,
790
813
  body: JSON.stringify({
791
814
  channel: E,
792
815
  templateId: M
793
816
  })
794
817
  };
795
818
  fetch(g, me).then((Oe) => Oe.json()).then(() => {
796
- e(15, Y = !1), p(), v(), i();
819
+ e(15, Y = !1), p(), k(), l();
797
820
  }).catch((Oe) => {
798
821
  h();
799
822
  });
800
- }), we = () => {
823
+ }), be = () => {
801
824
  W && clearInterval(W), W = setInterval(
802
825
  () => {
803
- const i = ye({}, A);
826
+ const l = ye({}, A);
804
827
  let h = !1;
805
- Object.keys(i).forEach((g) => {
806
- i[g] > 0 && (i[g]--, h = !0);
807
- }), e(38, A = i), !h && W && (clearInterval(W), W = null);
828
+ Object.keys(l).forEach((g) => {
829
+ l[g] > 0 && (l[g]--, h = !0);
830
+ }), e(38, A = l), !h && W && (clearInterval(W), W = null);
808
831
  },
809
832
  1e3
810
833
  );
811
- }, J = (i) => {
812
- e(0, E = i);
813
- }, V = () => he(this, null, function* () {
834
+ }, J = (l) => {
835
+ e(0, E = l);
836
+ }, N = () => he(this, null, function* () {
814
837
  if (!(!E || A[E] && A[E] > 0)) {
815
838
  e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
816
839
  try {
817
840
  yield j(), yield _e(), e(38, A = Te(ye({}, A), {
818
841
  [E]: 30
819
- })), we(), e(12, se = !0), p(), v();
820
- } catch (i) {
821
- console.error("Error submitting channel:", i), e(6, F = !0), e(8, z = a("submissionError"));
842
+ })), be(), e(12, se = !0), p(), k();
843
+ } catch (l) {
844
+ console.error("Error submitting channel:", l), e(6, F = !0), e(8, I = a("submissionError"));
822
845
  } finally {
823
846
  e(3, m = !1);
824
847
  }
825
848
  }
826
849
  }), p = () => {
827
- const i = new Date(R), h = new Date(X), g = /* @__PURE__ */ new Date(), I = h.getTime() - g.getTime();
828
- te = i.getTime() - I;
850
+ const l = new Date(R), h = new Date(X), g = /* @__PURE__ */ new Date(), z = h.getTime() - g.getTime();
851
+ te = l.getTime() - z;
829
852
  const B = Date.now(), me = Math.max(0, Math.floor((te - B) / 1e3));
830
853
  e(5, C = me);
831
- }, v = () => {
832
- N && clearInterval(N), N = setInterval(
854
+ }, k = () => {
855
+ H && clearInterval(H), H = setInterval(
833
856
  () => {
834
- const i = Date.now(), h = Math.max(0, Math.floor((te - i) / 1e3));
835
- e(5, C = h), e(11, ee = h <= 0), h <= 0 && (clearInterval(N), N = null, e(9, $ = !0), e(6, F = !1), e(10, re = !1));
857
+ const l = Date.now(), h = Math.max(0, Math.floor((te - l) / 1e3));
858
+ e(5, C = h), e(11, ee = h <= 0), h <= 0 && (clearInterval(H), H = null, e(9, $ = !0), e(6, F = !1), e(10, re = !1));
836
859
  },
837
860
  1e3
838
861
  );
839
- }, Be = (i) => {
840
- const h = Math.floor(i / 60), g = i % 60;
862
+ }, Be = (l) => {
863
+ const h = Math.floor(l / 60), g = l % 60;
841
864
  return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
842
- }, be = (i, h) => {
843
- const g = [...w];
844
- g[i] = h.toUpperCase(), e(2, w = g), g.join("") !== ce && e(13, ae = !1);
845
- }, He = (i) => {
846
- var I, B, me;
847
- i.preventDefault();
848
- const g = (((B = (I = i.clipboardData) == null ? void 0 : I.getData("text")) == null ? void 0 : B.trim()) || "").slice(0, y.inputLength).split("");
849
- e(2, w = [...g, ...Array(y.inputLength - g.length).fill("")]), (me = G[g.length]) == null || me.focus(), g.length === y.inputLength && Ee();
850
- }, ve = (i, h) => {
851
- const g = i.target, I = g.value;
852
- if (/^[a-z0-9]$/i.test(I)) {
853
- be(h, I);
865
+ }, we = (l, h) => {
866
+ const g = [...b];
867
+ g[l] = h.toUpperCase(), e(2, b = g), g.join("") !== ce && e(13, ae = !1);
868
+ }, Ve = (l) => {
869
+ var z, B, me;
870
+ l.preventDefault();
871
+ const g = (((B = (z = l.clipboardData) == null ? void 0 : z.getData("text")) == null ? void 0 : B.trim()) || "").slice(0, y.inputLength).split("");
872
+ e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), (me = G[g.length]) == null || me.focus(), g.length === y.inputLength && Ee();
873
+ }, ke = (l, h) => {
874
+ const g = l.target, z = g.value;
875
+ if (/^[a-z0-9]$/i.test(z)) {
876
+ we(h, z);
854
877
  const B = G[h + 1];
855
878
  B == null || B.focus();
856
879
  }
857
880
  g.value = "";
858
- }, Ce = (i, h) => {
859
- const g = i.key, I = i.ctrlKey || i.metaKey;
881
+ }, Ce = (l, h) => {
882
+ const g = l.key, z = l.ctrlKey || l.metaKey;
860
883
  if (/^[a-z0-9]$/i.test(g)) {
861
- if (I && g.toLowerCase() === "v")
884
+ if (z && g.toLowerCase() === "v")
862
885
  return;
863
- i.preventDefault(), be(h, g);
886
+ l.preventDefault(), we(h, g);
864
887
  const B = G[h + 1];
865
888
  B == null || B.focus();
866
889
  } else if (g === "Backspace") {
867
- i.preventDefault(), w[h] !== "" && be(h, "");
890
+ l.preventDefault(), b[h] !== "" && we(h, "");
868
891
  const B = G[h - 1];
869
892
  B == null || B.focus();
870
893
  }
871
- }, Ne = () => {
872
- U == "stateful" && (j(), e(9, $ = !1));
873
- const i = new CustomEvent("otpResendRequested");
874
- window.dispatchEvent(i);
875
- }, Ve = (i) => {
894
+ }, He = () => {
895
+ q == "stateful" && (j(), e(9, $ = !1));
896
+ const l = new CustomEvent("otpResendRequested");
897
+ window.dispatchEvent(l);
898
+ }, Ne = (l) => {
876
899
  window.dispatchEvent(new CustomEvent(
877
900
  "otpSubmitted",
878
901
  {
879
902
  detail: {
880
- code: i,
903
+ code: l,
881
904
  maxAttempts: y.maxValidationAttempts,
882
905
  validatedAttempts: y.numberOfValidateAttempts
883
906
  }
884
907
  }
885
908
  ));
886
- }, We = (i) => he(this, null, function* () {
887
- const h = new URL(`/api/nwa/api/v1/mfa/challenge/${oe}/validate`, _);
888
- h.searchParams.append("input", i);
909
+ }, We = (l) => he(this, null, function* () {
910
+ const h = new URL(`/api/nwa/api/v1/mfa/challenge/${ie}/validate`, _);
911
+ h.searchParams.append("input", l);
889
912
  try {
890
913
  const g = yield fetch(h.href, { method: "POST" });
891
914
  if (g.status === 200) {
892
915
  Fe();
893
916
  return;
894
917
  }
895
- const I = yield g.json();
896
- throw new Error(I.message);
918
+ const z = yield g.json();
919
+ throw new Error(z.message);
897
920
  } catch (g) {
898
921
  if (yield _e(), g.message === ue.INTERNAL_SERVER_ERROR) {
899
922
  if (y.numberOfValidateAttempts === y.maxValidationAttempts - 1) {
@@ -909,10 +932,10 @@ function zt(n, t, e) {
909
932
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
910
933
  return;
911
934
  }
912
- e(6, F = !0), e(8, z = a("invalidOtp")), _e();
935
+ e(6, F = !0), e(8, I = a("invalidOtp")), _e();
913
936
  return;
914
937
  }
915
- g.message === ue.MAX_INVALIDATE && (e(6, F = !0), e(8, z = a("invalidOtp"))), g.details === ue.MAX_ATTEMPTS_EXCEEDED && e(15, Y = !0), console.error("OTP submission failed:", g), e(6, F = !0), e(8, z = a("submissionError"));
938
+ g.message === ue.MAX_INVALIDATE && (e(6, F = !0), e(8, I = a("invalidOtp"))), g.details === ue.MAX_ATTEMPTS_EXCEEDED && e(15, Y = !0), console.error("OTP submission failed:", g), e(6, F = !0), e(8, I = a("submissionError"));
916
939
  } finally {
917
940
  e(3, m = !1);
918
941
  }
@@ -925,73 +948,73 @@ function zt(n, t, e) {
925
948
  }
926
949
  }
927
950
  ));
928
- }, Ue = () => {
951
+ }, qe = () => {
929
952
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
930
953
  }, Ee = () => he(this, null, function* () {
931
- if (w.join("").length !== y.inputLength) {
932
- e(6, F = !0), e(8, z = a("invalidOtp"));
954
+ if (b.join("").length !== y.inputLength) {
955
+ e(6, F = !0), e(8, I = a("invalidOtp"));
933
956
  return;
934
957
  }
935
- const i = w.join("");
936
- e(13, ae = !0), ce = i, e(3, m = !0), e(6, F = !1), e(8, z = ""), U === "stateless" && Ve(i), U === "stateful" && (yield We(i));
958
+ const l = b.join("");
959
+ e(13, ae = !0), ce = l, e(3, m = !0), e(6, F = !1), e(8, I = ""), q === "stateless" && Ne(l), q === "stateful" && (yield We(l));
937
960
  }), _e = () => he(this, null, function* () {
938
961
  if (_)
939
962
  try {
940
963
  e(3, m = !0);
941
- const i = new URL(`/api/nwa/api/v1/mfa/challenge/${oe}/config`, _), h = yield fetch(i.href), g = yield h.json();
964
+ const l = new URL(`/api/nwa/api/v1/mfa/challenge/${ie}/config`, _), h = yield fetch(l.href), g = yield h.json();
942
965
  if (h.ok)
943
- e(4, y = g), e(2, w = Array(y.inputLength).fill("")), e(9, $ = !1), R = y.expirationTime, X = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, F = !0), e(8, z = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, re = !0), e(3, m = !1), p(), v(), e(16, pe = !1);
966
+ e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, $ = !1), R = y.expirationTime, X = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, F = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, re = !0), e(3, m = !1), p(), k(), e(16, pe = !1);
944
967
  else if (g && g.details === ue.MAX_ATTEMPTS_EXCEEDED)
945
968
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
946
969
  else {
947
- const I = g && g.message || `Failed to load config. Status: ${h.status}`;
948
- throw new Error(I);
970
+ const z = g && g.message || `Failed to load config. Status: ${h.status}`;
971
+ throw new Error(z);
949
972
  }
950
- } catch (i) {
951
- e(3, m = !1), e(7, H = !0), e(8, z = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", i);
973
+ } catch (l) {
974
+ e(3, m = !1), e(7, V = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", l);
952
975
  }
953
976
  });
954
977
  ct(() => (window.addEventListener("stepUpAuthRequired", D, !1), window.addEventListener("closePopup", ne, !1), () => {
955
- window.removeEventListener("stepUpAuthRequired", D), window.removeEventListener("closePopup", ne, !1), N && clearInterval(N), W && clearInterval(W);
978
+ window.removeEventListener("stepUpAuthRequired", D), window.removeEventListener("closePopup", ne, !1), H && clearInterval(H), W && clearInterval(W);
956
979
  }));
957
- const qe = () => J(fe.SMS), Xe = () => J(fe.EMAIL);
958
- function Ke(i, h) {
959
- Le[i ? "unshift" : "push"](() => {
960
- G[h] = i, e(14, G);
980
+ const Ue = () => J(de.SMS), Xe = () => J(de.EMAIL);
981
+ function Ke(l, h) {
982
+ Le[l ? "unshift" : "push"](() => {
983
+ G[h] = l, e(14, G);
961
984
  });
962
985
  }
963
- const Ge = (i, h) => ve(h, i), Ye = (i, h) => Ce(h, i);
964
- function Je(i) {
965
- Le[i ? "unshift" : "push"](() => {
966
- q = i, e(1, q);
986
+ const Ge = (l, h) => ke(h, l), Ye = (l, h) => Ce(h, l);
987
+ function Je(l) {
988
+ Le[l ? "unshift" : "push"](() => {
989
+ U = l, e(1, U);
967
990
  });
968
991
  }
969
- return n.$$set = (i) => {
970
- "clientstyling" in i && e(31, u = i.clientstyling), "clientstylingurl" in i && e(32, s = i.clientstylingurl), "mbsource" in i && e(33, c = i.mbsource), "lang" in i && e(34, d = i.lang), "endpoint" in i && e(35, _ = i.endpoint), "session" in i && e(36, b = i.session), "translationurl" in i && e(37, T = i.translationurl), "templateid" in i && e(30, M = i.templateid);
992
+ return n.$$set = (l) => {
993
+ "clientstyling" in l && e(31, u = l.clientstyling), "clientstylingurl" in l && e(32, s = l.clientstylingurl), "mbsource" in l && e(33, c = l.mbsource), "lang" in l && e(34, f = l.lang), "endpoint" in l && e(35, _ = l.endpoint), "session" in l && e(36, w = l.session), "translationurl" in l && e(37, T = l.translationurl), "templateid" in l && e(30, M = l.templateid);
971
994
  }, n.$$.update = () => {
972
995
  n.$$.dirty[0] & /*customStylingContainer*/
973
996
  2 | n.$$.dirty[1] & /*clientstyling*/
974
- 1 && u && q && ft(q, u), n.$$.dirty[0] & /*customStylingContainer*/
997
+ 1 && u && U && dt(U, u), n.$$.dirty[0] & /*customStylingContainer*/
975
998
  2 | n.$$.dirty[1] & /*clientstylingurl*/
976
- 2 && s && q && dt(q, s), n.$$.dirty[0] & /*customStylingContainer*/
999
+ 2 && s && U && ft(U, s), n.$$.dirty[0] & /*customStylingContainer*/
977
1000
  2 | n.$$.dirty[1] & /*mbsource*/
978
- 4 && c && q && mt(q, `${c}.Style`), n.$$.dirty[1] & /*lang*/
979
- 8 && d && de(), n.$$.dirty[1] & /*lang, translationurl*/
980
- 72 && d && T && K(), n.$$.dirty[0] & /*selectedChannel*/
1001
+ 4 && c && U && mt(U, `${c}.Style`), n.$$.dirty[1] & /*lang*/
1002
+ 8 && f && fe(), n.$$.dirty[1] & /*lang, translationurl*/
1003
+ 72 && f && T && K(), n.$$.dirty[0] & /*selectedChannel*/
981
1004
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
982
- 128 && e(18, l = E && (!A[E] || A[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
1005
+ 128 && e(18, o = E && (!A[E] || A[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
983
1006
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
984
- 128 && e(17, o = E && A[E] || 0);
1007
+ 128 && e(17, i = E && A[E] || 0);
985
1008
  }, [
986
1009
  E,
987
- q,
988
- w,
1010
+ U,
1011
+ b,
989
1012
  m,
990
1013
  y,
991
1014
  C,
992
1015
  F,
993
- H,
994
- z,
1016
+ V,
1017
+ I,
995
1018
  $,
996
1019
  re,
997
1020
  ee,
@@ -1000,29 +1023,29 @@ function zt(n, t, e) {
1000
1023
  G,
1001
1024
  Y,
1002
1025
  pe,
1026
+ i,
1003
1027
  o,
1004
- l,
1005
1028
  a,
1006
- fe,
1029
+ de,
1007
1030
  J,
1008
- V,
1031
+ N,
1009
1032
  Be,
1010
- He,
1011
- ve,
1033
+ Ve,
1034
+ ke,
1012
1035
  Ce,
1013
- Ne,
1014
- Ue,
1036
+ He,
1037
+ qe,
1015
1038
  Ee,
1016
1039
  M,
1017
1040
  u,
1018
1041
  s,
1019
1042
  c,
1020
- d,
1043
+ f,
1021
1044
  _,
1022
- b,
1045
+ w,
1023
1046
  T,
1024
1047
  A,
1025
- qe,
1048
+ Ue,
1026
1049
  Xe,
1027
1050
  Ke,
1028
1051
  Ge,
@@ -1030,12 +1053,12 @@ function zt(n, t, e) {
1030
1053
  Je
1031
1054
  ];
1032
1055
  }
1033
- class Pt extends ot {
1056
+ class Pt extends it {
1034
1057
  constructor(t) {
1035
- super(), it(
1058
+ super(), lt(
1036
1059
  this,
1037
1060
  t,
1038
- zt,
1061
+ It,
1039
1062
  Rt,
1040
1063
  rt,
1041
1064
  {
@@ -1048,7 +1071,7 @@ class Pt extends ot {
1048
1071
  translationurl: 37,
1049
1072
  templateid: 30
1050
1073
  },
1051
- bt,
1074
+ wt,
1052
1075
  [-1, -1, -1]
1053
1076
  );
1054
1077
  }
@@ -1056,49 +1079,49 @@ class Pt extends ot {
1056
1079
  return this.$$.ctx[31];
1057
1080
  }
1058
1081
  set clientstyling(t) {
1059
- this.$$set({ clientstyling: t }), ie();
1082
+ this.$$set({ clientstyling: t }), le();
1060
1083
  }
1061
1084
  get clientstylingurl() {
1062
1085
  return this.$$.ctx[32];
1063
1086
  }
1064
1087
  set clientstylingurl(t) {
1065
- this.$$set({ clientstylingurl: t }), ie();
1088
+ this.$$set({ clientstylingurl: t }), le();
1066
1089
  }
1067
1090
  get mbsource() {
1068
1091
  return this.$$.ctx[33];
1069
1092
  }
1070
1093
  set mbsource(t) {
1071
- this.$$set({ mbsource: t }), ie();
1094
+ this.$$set({ mbsource: t }), le();
1072
1095
  }
1073
1096
  get lang() {
1074
1097
  return this.$$.ctx[34];
1075
1098
  }
1076
1099
  set lang(t) {
1077
- this.$$set({ lang: t }), ie();
1100
+ this.$$set({ lang: t }), le();
1078
1101
  }
1079
1102
  get endpoint() {
1080
1103
  return this.$$.ctx[35];
1081
1104
  }
1082
1105
  set endpoint(t) {
1083
- this.$$set({ endpoint: t }), ie();
1106
+ this.$$set({ endpoint: t }), le();
1084
1107
  }
1085
1108
  get session() {
1086
1109
  return this.$$.ctx[36];
1087
1110
  }
1088
1111
  set session(t) {
1089
- this.$$set({ session: t }), ie();
1112
+ this.$$set({ session: t }), le();
1090
1113
  }
1091
1114
  get translationurl() {
1092
1115
  return this.$$.ctx[37];
1093
1116
  }
1094
1117
  set translationurl(t) {
1095
- this.$$set({ translationurl: t }), ie();
1118
+ this.$$set({ translationurl: t }), le();
1096
1119
  }
1097
1120
  get templateid() {
1098
1121
  return this.$$.ctx[30];
1099
1122
  }
1100
1123
  set templateid(t) {
1101
- this.$$set({ templateid: t }), ie();
1124
+ this.$$set({ templateid: t }), le();
1102
1125
  }
1103
1126
  }
1104
1127
  ht(Pt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);