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