@everymatrix/cashier-page 1.93.40 → 1.93.47

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 (67) hide show
  1. package/components/{CashierCarousel-DwrGzk7c.js → CashierCarousel-BF_HlGOD.js} +286 -250
  2. package/components/{CashierCarousel-DMrMmClP.cjs → CashierCarousel-BekweMPA.cjs} +5 -5
  3. package/components/{CashierCarousel-DJXsZKF9.js → CashierCarousel-CLJ0LFIF.js} +268 -232
  4. package/components/CashierError-BbVldMYx.js +833 -0
  5. package/components/CashierError-_gnSAmvS.js +817 -0
  6. package/components/CashierError-fUSdzhdH.cjs +1 -0
  7. package/components/CashierHeader-CCqfqjfy.cjs +1 -0
  8. package/components/{CashierHeader-DJYOdmdi.js → CashierHeader-D9k7KIOI.js} +130 -109
  9. package/components/{CashierHeader-BNDmkX5f.js → CashierHeader-DTBnopYC.js} +131 -110
  10. package/components/{CashierIframeRedirect-CbC9sVb1.js → CashierIframeRedirect-B3zzWY9U.js} +48 -39
  11. package/components/CashierIframeRedirect-BjtL1epU.cjs +1 -0
  12. package/components/{CashierIframeRedirect-CF8dL6ee.js → CashierIframeRedirect-FZgVK5wR.js} +48 -39
  13. package/components/{CashierMethodDetails-D5zqf686.js → CashierMethodDetails-BN8LoDZ1.js} +2037 -1740
  14. package/components/{CashierMethodDetails-RvdJ1C5s.js → CashierMethodDetails-py8KKi7t.js} +2300 -2003
  15. package/components/CashierMethodDetails-u2h3SU3c.cjs +85 -0
  16. package/components/{CashierMethodsList-lFN0tDnv.js → CashierMethodsList-BE96YY1z.js} +178 -134
  17. package/components/{CashierMethodsList-Cbh3LWkT.js → CashierMethodsList-BmwaSmdj.js} +202 -158
  18. package/components/CashierMethodsList-D-0ZGLG0.cjs +1 -0
  19. package/components/{CashierModal-ZV_9oeml.js → CashierModal-CSQpOKaO.js} +1 -1
  20. package/components/{CashierModal-BLrymidc.cjs → CashierModal-D_cTbvqs.cjs} +1 -1
  21. package/components/{CashierModal-CV1Fn4BP.js → CashierModal-o_uhTD6s.js} +1 -1
  22. package/components/{CashierNotifications-C_xReVni.js → CashierNotifications-B-gpCpQP.js} +1 -1
  23. package/components/{CashierNotifications-DHKh64xU.js → CashierNotifications-DZHeYrIW.js} +1 -1
  24. package/components/{CashierNotifications-B8bRZMac.cjs → CashierNotifications-O-t5pi8m.cjs} +1 -1
  25. package/components/CashierPage-BWORfrCZ.cjs +1 -0
  26. package/components/{CashierPage-CD2qxexq.js → CashierPage-CA-3qT5L.js} +1678 -1482
  27. package/components/{CashierPage-2KmHM6zH.js → CashierPage-D3SYqRh-.js} +1859 -1663
  28. package/components/{CashierReceiptPage-BHu7eFQe.js → CashierReceiptPage-BTzWX7Lu.js} +758 -482
  29. package/components/{CashierReceiptPage-DECgCKrA.cjs → CashierReceiptPage-nURXd6N9.cjs} +2 -2
  30. package/components/{CashierReceiptPage-yyz93m_1.js → CashierReceiptPage-tFb9hekO.js} +799 -523
  31. package/components/{CashierSessionExpirationModal-DulGbuH9.js → CashierSessionExpirationModal-D3EpNWbi.js} +325 -301
  32. package/components/{CashierSessionExpirationModal-DSlaopTF.js → CashierSessionExpirationModal-qtleHMFy.js} +353 -329
  33. package/components/CashierSessionExpirationModal-xXJ85FUG.cjs +2 -0
  34. package/components/{CashierSpinner-D3HhhmOb.js → CashierSpinner-B0vWR4K9.js} +1 -1
  35. package/components/{CashierSpinner-DKYO0FtD.cjs → CashierSpinner-BNkBVuft.cjs} +1 -1
  36. package/components/{CashierSpinner-DyemUXs_.js → CashierSpinner-Dg8R5Bdz.js} +1 -1
  37. package/components/CashierStepUp-BFJ7us6S.cjs +1 -0
  38. package/components/{CashierStepUp-CSZd5C7z.js → CashierStepUp-CDPGUhQW.js} +462 -393
  39. package/components/{CashierStepUp-CmTcFbG9.js → CashierStepUp-D_qwOVdk.js} +450 -381
  40. package/components/CashierTransactionHistory-CidnZYRB.cjs +1 -0
  41. package/components/{CashierTransactionHistory-BbYNhBtq.js → CashierTransactionHistory-Cy88TMkO.js} +561 -486
  42. package/components/{CashierTransactionHistory-CThHgzsf.js → CashierTransactionHistory-DvhQhmOp.js} +548 -473
  43. package/components/{CashierVerifications-DC27ce9g.js → CashierVerifications-6REZDHnj.js} +305 -244
  44. package/components/{CashierVerifications-BbrGxnsr.js → CashierVerifications-BrnqK9Tl.js} +301 -248
  45. package/components/CashierVerifications-DtiuUtMy.cjs +1 -0
  46. package/components/{TxnStatusIcon-CWkyVMIU.cjs → TxnStatusIcon-BcQgw6kQ.cjs} +1 -1
  47. package/components/{TxnStatusIcon-ssLhQR5N.js → TxnStatusIcon-CT8QMlhW.js} +1 -1
  48. package/components/{TxnStatusIcon-BwvCa-Ig.js → TxnStatusIcon-W5JMdIgF.js} +1 -1
  49. package/components/{TxnTypeIcons-B84nFRMh.js → TxnTypeIcons-D0LUvdSq.js} +1 -1
  50. package/components/{TxnTypeIcons-DhwUYw-o.js → TxnTypeIcons-DmYGvDDw.js} +1 -1
  51. package/components/{TxnTypeIcons-CTQXT_j5.cjs → TxnTypeIcons-keA0IcNM.cjs} +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-BL_rmfvV.cjs +0 -1
  57. package/components/CashierError-Bqtyy8-q.js +0 -638
  58. package/components/CashierError-D054pa3k.js +0 -654
  59. package/components/CashierHeader-PvXFHPzQ.cjs +0 -1
  60. package/components/CashierIframeRedirect-C0AQ3pLh.cjs +0 -1
  61. package/components/CashierMethodDetails-KWA_Sq4l.cjs +0 -85
  62. package/components/CashierMethodsList-Bgo_LwHP.cjs +0 -1
  63. package/components/CashierPage-xLl95GUo.cjs +0 -1
  64. package/components/CashierSessionExpirationModal-Chi9ZGEw.cjs +0 -2
  65. package/components/CashierStepUp-DKytvkqu.cjs +0 -1
  66. package/components/CashierTransactionHistory-SwiU26Df.cjs +0 -1
  67. package/components/CashierVerifications-WhS-2imA.cjs +0 -1
@@ -1,6 +1,6 @@
1
- import { a as Ke, $ as Ge, S as Ye, b as Je, s as Ze, f as le, c as Qe, G as ye, e as O, k as S, m as v, o as r, p as $e, q as et, y as Oe, v as P, l as d, x as ee, X as Y, n as R, w as L, a2 as xe, W as J, r as tt, Z as Se, a4 as nt, B as it, C as lt, D as ot, E as rt, F as st } from "./CashierCarousel-DJXsZKF9.js";
1
+ import { a as Xe, $ as Ge, S as Ze, b as Ye, s as Je, f as re, c as Qe, G as _e, e as E, k as O, m as k, o as l, p as $e, q as et, y as Ee, v as R, l as p, x as ee, X as Z, n as x, w as L, a2 as Ae, W as Y, r as tt, Z as Oe, a4 as nt, B as it, C as rt, D as ot, E as lt, F as st } from "./CashierCarousel-CLJ0LFIF.js";
2
2
  function Me(n, t) {
3
- Ke(n, t);
3
+ Xe(n, t);
4
4
  }
5
5
  function at(n) {
6
6
  Ge.set(n);
@@ -54,7 +54,7 @@ const Te = {
54
54
  },
55
55
  fr: {
56
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 deffectuer la mise à jour.",
57
+ popupMessage: "Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d'effectuer la mise à jour.",
58
58
  popupMessageLastWarning: "Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",
59
59
  minutes: "minutes",
60
60
  errorHeader: "Erreur",
@@ -63,9 +63,9 @@ const Te = {
63
63
  resendOtp: "Renvoyer le code OTP",
64
64
  submit: "Valider",
65
65
  close: "Fermer",
66
- invalidOtp: "Le code que vous avez saisi nest pas valide. Veuillez réessayer.",
66
+ invalidOtp: "Le code que vous avez saisi n'est pas valide. Veuillez réessayer.",
67
67
  accountBlocked: "Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",
68
- submissionError: "Une erreur sest produite. Veuillez réessayer.",
68
+ submissionError: "Une erreur s'est produite. Veuillez réessayer.",
69
69
  otpExpiredMessage: "Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",
70
70
  timeRemaining: "Le code expire dans :",
71
71
  selectChannelTitle: "Sélectionner la méthode de vérification",
@@ -74,6 +74,75 @@ const Te = {
74
74
  channelEmail: "E-mail",
75
75
  sendCode: "Envoyer le code",
76
76
  waitSeconds: "Veuillez patienter avant de renvoyer le code :"
77
+ },
78
+ da: {
79
+ otpTitle: "Kodebekræftelse er påkrævet",
80
+ popupMessage: "Indtast venligst sikkerhedskoden modtaget på din SMS/e-mailadresse for at udføre opdateringen.",
81
+ popupMessageLastWarning: "Hvis det næste valideringsforsøg mislykkes, vil din transaktion mislykkes, og du vil blive sendt tilbage til betalingsmetoden.",
82
+ minutes: "minutter",
83
+ errorHeader: "Fejl",
84
+ configError: "Kan ikke indlæse OTP-data. Prøv venligst igen senere.",
85
+ otpHeading: "Indtast OTP",
86
+ resendOtp: "Send OTP igen",
87
+ submit: "Indsend",
88
+ close: "Luk",
89
+ invalidOtp: "Koden du har sendt er ikke gyldig. Prøv venligst igen.",
90
+ accountBlocked: "For mange forsøg på OTP. Din konto er blevet blokeret i en time.",
91
+ submissionError: "Noget gik galt. Prøv venligst igen.",
92
+ otpExpiredMessage: "Valideringskoden er udløbet. Anmod venligst om en ny for at fortsætte.",
93
+ timeRemaining: "Koden udløber om:",
94
+ selectChannelTitle: "Vælg bekræftelsesmetode",
95
+ selectChannelMessage: "Vælg, hvordan du gerne vil modtage din bekræftelseskode",
96
+ channelSMS: "SMS",
97
+ channelEmail: "E-mail",
98
+ sendCode: "Send kode",
99
+ waitSeconds: "Vent venligst før genafsendelse:"
100
+ },
101
+ de: {
102
+ otpTitle: "Code-Verifizierung ist erforderlich",
103
+ popupMessage: "Bitte geben Sie den Sicherheitscode ein, den Sie per SMS/E-Mail erhalten haben, um die Aktualisierung durchzuführen.",
104
+ popupMessageLastWarning: "Wenn der nächste Validierungsversuch fehlschlägt, schlägt Ihre Transaktion fehl und Sie werden zur Zahlungsmethode zurückgeleitet.",
105
+ minutes: "Minuten",
106
+ errorHeader: "Fehler",
107
+ configError: "OTP-Daten können nicht geladen werden. Bitte versuchen Sie es später erneut.",
108
+ otpHeading: "OTP eingeben",
109
+ resendOtp: "OTP erneut senden",
110
+ submit: "Absenden",
111
+ close: "Schließen",
112
+ invalidOtp: "Der von Ihnen gesendete Code ist ungültig. Bitte versuchen Sie es erneut.",
113
+ accountBlocked: "Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",
114
+ submissionError: "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",
115
+ otpExpiredMessage: "Der Validierungscode ist abgelaufen. Bitte fordern Sie einen neuen an, um fortzufahren.",
116
+ timeRemaining: "Code läuft ab in:",
117
+ selectChannelTitle: "Verifizierungsmethode auswählen",
118
+ selectChannelMessage: "Wählen Sie, wie Sie Ihren Verifizierungscode erhalten möchten",
119
+ channelSMS: "SMS",
120
+ channelEmail: "E-Mail",
121
+ sendCode: "Code senden",
122
+ waitSeconds: "Bitte warten Sie, bevor Sie erneut senden:"
123
+ },
124
+ nl: {
125
+ otpTitle: "Codeverificatie is vereist",
126
+ popupMessage: "Voer de beveiligingscode in die u via SMS/e-mail heeft ontvangen om de update uit te voeren.",
127
+ popupMessageLastWarning: "Als de volgende validatiepoging mislukt, zal uw transactie mislukken en wordt u teruggestuurd naar de betaalmethode.",
128
+ minutes: "minuten",
129
+ errorHeader: "Fout",
130
+ configError: "Kan OTP-gegevens niet laden. Probeer het later opnieuw.",
131
+ otpHeading: "OTP invoeren",
132
+ resendOtp: "OTP opnieuw verzenden",
133
+ submit: "Verzenden",
134
+ close: "Sluiten",
135
+ invalidOtp: "De code die u heeft verzonden is niet geldig. Probeer het opnieuw.",
136
+ accountBlocked: "Te veel OTP-pogingen. Uw account is voor één uur geblokkeerd.",
137
+ submissionError: "Er is iets misgegaan. Probeer het opnieuw.",
138
+ otpExpiredMessage: "De validatiecode is verlopen. Vraag een nieuwe aan om door te gaan.",
139
+ timeRemaining: "Code verloopt over:",
140
+ selectChannelTitle: "Verificatiemethode selecteren",
141
+ selectChannelMessage: "Kies hoe u uw verificatiecode wilt ontvangen",
142
+ channelSMS: "SMS",
143
+ channelEmail: "E-mail",
144
+ sendCode: "Code verzenden",
145
+ waitSeconds: "Wacht even voordat u opnieuw verzendt:"
77
146
  }
78
147
  };
79
148
  function ct(n) {
@@ -83,92 +152,92 @@ function Le(n, t, e) {
83
152
  const i = n.slice();
84
153
  return i[69] = t[e], i[70] = t, i[71] = e, i;
85
154
  }
86
- function pt(n) {
87
- let t, e, i, l, a, p, s, u, f, _, w, T, M, b, m, y, C, A = (
155
+ function ut(n) {
156
+ let t, e, i, r, a, u, s, d, f, v, w, T, M, b, m, _, S, I = (
88
157
  /*$_*/
89
158
  n[19]("channelSMS") + ""
90
- ), X, W, j, I, te, F, Z, oe, Q, E, z, N, re, se, ae = (
159
+ ), q, F, V, P, te, N, J, oe, Q, C, z, W, le, se, ae = (
91
160
  /*$_*/
92
161
  n[19]("channelEmail") + ""
93
- ), q, de, U, B, G, ce, pe;
94
- function ue(c, k) {
162
+ ), K, pe, U, B, G, ce, ue;
163
+ function de(c, y) {
95
164
  return (
96
165
  /*showResendOtp*/
97
166
  c[9] ? mt : (
98
167
  /*showOtpInput*/
99
- c[12] ? dt : ft
168
+ c[12] ? pt : ft
100
169
  )
101
170
  );
102
171
  }
103
- let $ = ue(n), K = $(n), V = (
172
+ let $ = de(n), X = $(n), H = (
104
173
  /*selectedChannel*/
105
- n[0] && Ae(n)
174
+ n[0] && Ie(n)
106
175
  );
107
- function fe(c, k) {
176
+ function fe(c, y) {
108
177
  if (
109
178
  /*isLoading*/
110
179
  c[3] && /*showOtpInput*/
111
180
  c[12]
112
181
  )
113
- return yt;
182
+ return _t;
114
183
  if (
115
184
  /*showOtpInput*/
116
185
  c[12] && /*config*/
117
186
  c[4]
118
187
  )
119
- return _t;
188
+ return vt;
120
189
  }
121
190
  let ne = fe(n), D = ne && ne(n);
122
- function me(c, k) {
191
+ function me(c, y) {
123
192
  if (
124
193
  /*showResendOtp*/
125
194
  c[9]
126
195
  )
127
- return kt;
196
+ return yt;
128
197
  if (
129
198
  /*showOtpInput*/
130
199
  c[12] && /*config*/
131
200
  c[4]
132
201
  )
133
- return vt;
202
+ return kt;
134
203
  }
135
- let ie = me(n), x = ie && ie(n);
204
+ let ie = me(n), A = ie && ie(n);
136
205
  return {
137
206
  c() {
138
- t = v("div"), K.c(), e = R(), i = v("div"), l = v("label"), a = v("div"), p = R(), s = v("input"), f = R(), _ = v("div"), w = Y("svg"), T = Y("path"), M = Y("circle"), b = Y("circle"), m = Y("circle"), y = R(), C = v("span"), X = L(A), W = R(), j = v("label"), I = v("div"), te = R(), F = v("input"), oe = R(), Q = v("div"), E = Y("svg"), z = Y("rect"), N = Y("path"), re = R(), se = v("span"), q = L(ae), de = R(), V && V.c(), U = R(), D && D.c(), B = R(), G = v("div"), x && x.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), J(
207
+ t = k("div"), X.c(), e = x(), i = k("div"), r = k("label"), a = k("div"), u = x(), s = k("input"), f = x(), v = k("div"), w = Z("svg"), T = Z("path"), M = Z("circle"), b = Z("circle"), m = Z("circle"), _ = x(), S = k("span"), q = L(I), F = x(), V = k("label"), P = k("div"), te = x(), N = k("input"), oe = x(), Q = k("div"), C = Z("svg"), z = Z("rect"), W = Z("path"), le = x(), se = k("span"), K = L(ae), pe = x(), H && H.c(), U = x(), D && D.c(), B = x(), G = k("div"), A && A.c(), l(t, "class", "OtpDescription"), l(a, "class", "RadioIndicator"), Y(
139
208
  a,
140
209
  "checked",
141
210
  /*selectedChannel*/
142
211
  n[0] === /*channels*/
143
212
  n[20].SMS
144
- ), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
145
- n[20].SMS, s.checked = u = /*selectedChannel*/
213
+ ), l(s, "type", "radio"), l(s, "name", "channel"), s.value = /*channels*/
214
+ n[20].SMS, s.checked = d = /*selectedChannel*/
146
215
  n[0] === /*channels*/
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(l, "class", "ChannelCheckbox"), J(
148
- l,
216
+ n[20].SMS, l(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), l(M, "cx", "9"), l(M, "cy", "11"), l(M, "r", "0.5"), l(M, "fill", "currentColor"), l(b, "cx", "12"), l(b, "cy", "11"), l(b, "r", "0.5"), l(b, "fill", "currentColor"), l(m, "cx", "15"), l(m, "cy", "11"), l(m, "r", "0.5"), l(m, "fill", "currentColor"), l(w, "xmlns", "http://www.w3.org/2000/svg"), l(w, "width", "24"), l(w, "height", "24"), l(w, "viewBox", "0 0 24 24"), l(w, "fill", "none"), l(w, "stroke", "currentColor"), l(w, "stroke-width", "2"), l(w, "stroke-linecap", "round"), l(w, "stroke-linejoin", "round"), l(v, "class", "ChannelContent"), l(r, "class", "ChannelCheckbox"), Y(
217
+ r,
149
218
  "selected",
150
219
  /*selectedChannel*/
151
220
  n[0] === /*channels*/
152
221
  n[20].SMS
153
- ), r(I, "class", "RadioIndicator"), J(
154
- I,
222
+ ), l(P, "class", "RadioIndicator"), Y(
223
+ P,
155
224
  "checked",
156
225
  /*selectedChannel*/
157
226
  n[0] === /*channels*/
158
227
  n[20].EMAIL
159
- ), r(F, "type", "radio"), r(F, "name", "channel"), F.value = /*channels*/
160
- n[20].EMAIL, F.checked = Z = /*selectedChannel*/
228
+ ), l(N, "type", "radio"), l(N, "name", "channel"), N.value = /*channels*/
229
+ n[20].EMAIL, N.checked = J = /*selectedChannel*/
161
230
  n[0] === /*channels*/
162
- n[20].EMAIL, r(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "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(Q, "class", "ChannelContent"), r(j, "class", "ChannelCheckbox"), J(
163
- j,
231
+ n[20].EMAIL, l(z, "x", "2"), l(z, "y", "4"), l(z, "width", "20"), l(z, "height", "16"), l(z, "rx", "2"), l(W, "d", "m2 7 10 6 10-6"), l(C, "xmlns", "http://www.w3.org/2000/svg"), l(C, "width", "24"), l(C, "height", "24"), l(C, "viewBox", "0 0 24 24"), l(C, "fill", "none"), l(C, "stroke", "currentColor"), l(C, "stroke-width", "2"), l(C, "stroke-linecap", "round"), l(C, "stroke-linejoin", "round"), l(Q, "class", "ChannelContent"), l(V, "class", "ChannelCheckbox"), Y(
232
+ V,
164
233
  "selected",
165
234
  /*selectedChannel*/
166
235
  n[0] === /*channels*/
167
236
  n[20].EMAIL
168
- ), r(i, "class", "ChannelSelection"), r(G, "class", "OtpActionButtons");
237
+ ), l(i, "class", "ChannelSelection"), l(G, "class", "OtpActionButtons");
169
238
  },
170
- m(c, k) {
171
- S(c, t, k), K.m(t, null), S(c, e, k), S(c, i, k), d(i, l), d(l, a), d(l, p), d(l, s), d(l, f), d(l, _), d(_, w), d(w, T), d(w, M), d(w, b), d(w, m), d(_, y), d(_, C), d(C, X), d(i, W), d(i, j), d(j, I), d(j, te), d(j, F), d(j, oe), d(j, Q), d(Q, E), d(E, z), d(E, N), d(Q, re), d(Q, se), d(se, q), S(c, de, k), V && V.m(c, k), S(c, U, k), D && D.m(c, k), S(c, B, k), S(c, G, k), x && x.m(G, null), ce || (pe = [
239
+ m(c, y) {
240
+ O(c, t, y), X.m(t, null), O(c, e, y), O(c, i, y), p(i, r), p(r, a), p(r, u), p(r, s), p(r, f), p(r, v), p(v, w), p(w, T), p(w, M), p(w, b), p(w, m), p(v, _), p(v, S), p(S, q), p(i, F), p(i, V), p(V, P), p(V, te), p(V, N), p(V, oe), p(V, Q), p(Q, C), p(C, z), p(C, W), p(Q, le), p(Q, se), p(se, K), O(c, pe, y), H && H.m(c, y), O(c, U, y), D && D.m(c, y), O(c, B, y), O(c, G, y), A && A.m(G, null), ce || (ue = [
172
241
  ee(
173
242
  s,
174
243
  "change",
@@ -176,128 +245,128 @@ function pt(n) {
176
245
  n[39]
177
246
  ),
178
247
  ee(
179
- F,
248
+ N,
180
249
  "change",
181
250
  /*change_handler_1*/
182
251
  n[40]
183
252
  )
184
253
  ], ce = !0);
185
254
  },
186
- p(c, k) {
187
- $ === ($ = ue(c)) && K ? K.p(c, k) : (K.d(1), K = $(c), K && (K.c(), K.m(t, null))), k[0] & /*selectedChannel, channels*/
188
- 1048577 && J(
255
+ p(c, y) {
256
+ $ === ($ = de(c)) && X ? X.p(c, y) : (X.d(1), X = $(c), X && (X.c(), X.m(t, null))), y[0] & /*selectedChannel, channels*/
257
+ 1048577 && Y(
189
258
  a,
190
259
  "checked",
191
260
  /*selectedChannel*/
192
261
  c[0] === /*channels*/
193
262
  c[20].SMS
194
- ), k[0] & /*selectedChannel*/
195
- 1 && u !== (u = /*selectedChannel*/
263
+ ), y[0] & /*selectedChannel*/
264
+ 1 && d !== (d = /*selectedChannel*/
196
265
  c[0] === /*channels*/
197
- c[20].SMS) && (s.checked = u), k[0] & /*$_*/
198
- 524288 && A !== (A = /*$_*/
199
- c[19]("channelSMS") + "") && P(X, A), k[0] & /*selectedChannel, channels*/
200
- 1048577 && J(
201
- l,
266
+ c[20].SMS) && (s.checked = d), y[0] & /*$_*/
267
+ 524288 && I !== (I = /*$_*/
268
+ c[19]("channelSMS") + "") && R(q, I), y[0] & /*selectedChannel, channels*/
269
+ 1048577 && Y(
270
+ r,
202
271
  "selected",
203
272
  /*selectedChannel*/
204
273
  c[0] === /*channels*/
205
274
  c[20].SMS
206
- ), k[0] & /*selectedChannel, channels*/
207
- 1048577 && J(
208
- I,
275
+ ), y[0] & /*selectedChannel, channels*/
276
+ 1048577 && Y(
277
+ P,
209
278
  "checked",
210
279
  /*selectedChannel*/
211
280
  c[0] === /*channels*/
212
281
  c[20].EMAIL
213
- ), k[0] & /*selectedChannel*/
214
- 1 && Z !== (Z = /*selectedChannel*/
282
+ ), y[0] & /*selectedChannel*/
283
+ 1 && J !== (J = /*selectedChannel*/
215
284
  c[0] === /*channels*/
216
- c[20].EMAIL) && (F.checked = Z), k[0] & /*$_*/
285
+ c[20].EMAIL) && (N.checked = J), y[0] & /*$_*/
217
286
  524288 && ae !== (ae = /*$_*/
218
- c[19]("channelEmail") + "") && P(q, ae), k[0] & /*selectedChannel, channels*/
219
- 1048577 && J(
220
- j,
287
+ c[19]("channelEmail") + "") && R(K, ae), y[0] & /*selectedChannel, channels*/
288
+ 1048577 && Y(
289
+ V,
221
290
  "selected",
222
291
  /*selectedChannel*/
223
292
  c[0] === /*channels*/
224
293
  c[20].EMAIL
225
294
  ), /*selectedChannel*/
226
- c[0] ? V ? V.p(c, k) : (V = Ae(c), V.c(), V.m(U.parentNode, U)) : V && (V.d(1), V = null), ne === (ne = fe(c)) && D ? D.p(c, k) : (D && D.d(1), D = ne && ne(c), D && (D.c(), D.m(B.parentNode, B))), ie === (ie = me(c)) && x ? x.p(c, k) : (x && x.d(1), x = ie && ie(c), x && (x.c(), x.m(G, null)));
295
+ c[0] ? H ? H.p(c, y) : (H = Ie(c), H.c(), H.m(U.parentNode, U)) : H && (H.d(1), H = null), ne === (ne = fe(c)) && D ? D.p(c, y) : (D && D.d(1), D = ne && ne(c), D && (D.c(), D.m(B.parentNode, B))), ie === (ie = me(c)) && A ? A.p(c, y) : (A && A.d(1), A = ie && ie(c), A && (A.c(), A.m(G, null)));
227
296
  },
228
297
  d(c) {
229
- c && (O(t), O(e), O(i), O(de), O(U), O(B), O(G)), K.d(), V && V.d(c), D && D.d(c), x && x.d(), ce = !1, xe(pe);
298
+ c && (E(t), E(e), E(i), E(pe), E(U), E(B), E(G)), X.d(), H && H.d(c), D && D.d(c), A && A.d(), ce = !1, Ae(ue);
230
299
  }
231
300
  };
232
301
  }
233
- function ut(n) {
234
- let t, e, i, l, a, p, s = (
302
+ function dt(n) {
303
+ let t, e, i, r, a, u, s = (
235
304
  /*$_*/
236
305
  n[19]("errorHeader") + ""
237
- ), u, f, _, w, T, M, b = (
306
+ ), d, f, v, w, T, M, b = (
238
307
  /*$_*/
239
308
  n[19]("close") + ""
240
- ), m, y, C;
309
+ ), m, _, S;
241
310
  return {
242
311
  c() {
243
- t = v("div"), e = v("div"), i = Y("svg"), l = Y("path"), a = R(), p = v("h2"), u = L(s), f = R(), _ = v("p"), w = L(
312
+ t = k("div"), e = k("div"), i = Z("svg"), r = Z("path"), a = x(), u = k("h2"), d = L(s), f = x(), v = k("p"), w = L(
244
313
  /*errorMessage*/
245
314
  n[8]
246
- ), T = R(), M = v("button"), m = L(b), r(l, "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(i, "xmlns", "http://www.w3.org/2000/svg"), r(i, "viewBox", "0 0 512 512"), r(e, "class", "OtpErrorHeader"), r(M, "class", "OtpButton error"), r(t, "class", "OtpError");
315
+ ), T = x(), M = k("button"), m = L(b), l(r, "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"), l(i, "xmlns", "http://www.w3.org/2000/svg"), l(i, "viewBox", "0 0 512 512"), l(e, "class", "OtpErrorHeader"), l(M, "class", "OtpButton error"), l(t, "class", "OtpError");
247
316
  },
248
- m(A, X) {
249
- S(A, t, X), d(t, e), d(e, i), d(i, l), 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 = ee(
317
+ m(I, q) {
318
+ O(I, t, q), p(t, e), p(e, i), p(i, r), p(e, a), p(e, u), p(u, d), p(t, f), p(t, v), p(v, w), p(t, T), p(t, M), p(M, m), _ || (S = ee(
250
319
  M,
251
320
  "click",
252
321
  /*manualClosePopup*/
253
322
  n[28]
254
- ), y = !0);
323
+ ), _ = !0);
255
324
  },
256
- p(A, X) {
257
- X[0] & /*$_*/
325
+ p(I, q) {
326
+ q[0] & /*$_*/
258
327
  524288 && s !== (s = /*$_*/
259
- A[19]("errorHeader") + "") && P(u, s), X[0] & /*errorMessage*/
260
- 256 && P(
328
+ I[19]("errorHeader") + "") && R(d, s), q[0] & /*errorMessage*/
329
+ 256 && R(
261
330
  w,
262
331
  /*errorMessage*/
263
- A[8]
264
- ), X[0] & /*$_*/
332
+ I[8]
333
+ ), q[0] & /*$_*/
265
334
  524288 && b !== (b = /*$_*/
266
- A[19]("close") + "") && P(m, b);
335
+ I[19]("close") + "") && R(m, b);
267
336
  },
268
- d(A) {
269
- A && O(t), y = !1, C();
337
+ d(I) {
338
+ I && E(t), _ = !1, S();
270
339
  }
271
340
  };
272
341
  }
273
- function dt(n) {
274
- let t, e, i, l;
275
- function a(f, _) {
342
+ function pt(n) {
343
+ let t, e, i, r;
344
+ function a(f, v) {
276
345
  return (
277
346
  /*isLastWarning*/
278
- f[10] ? gt : ht
347
+ f[10] ? ht : gt
279
348
  );
280
349
  }
281
- let p = a(n), s = p(n), u = (
350
+ let u = a(n), s = u(n), d = (
282
351
  /*hasErrors*/
283
352
  n[6] && ze(n)
284
353
  );
285
354
  return {
286
355
  c() {
287
- t = v("p"), s.c(), i = R(), u && u.c(), l = tt(), r(t, "class", e = /*isLastWarning*/
356
+ t = k("p"), s.c(), i = x(), d && d.c(), r = tt(), l(t, "class", e = /*isLastWarning*/
288
357
  n[10] ? "LastWarningMessage" : "");
289
358
  },
290
- m(f, _) {
291
- S(f, t, _), s.m(t, null), S(f, i, _), u && u.m(f, _), S(f, l, _);
359
+ m(f, v) {
360
+ O(f, t, v), s.m(t, null), O(f, i, v), d && d.m(f, v), O(f, r, v);
292
361
  },
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*/
362
+ p(f, v) {
363
+ u === (u = a(f)) && s ? s.p(f, v) : (s.d(1), s = u(f), s && (s.c(), s.m(t, null))), v[0] & /*isLastWarning*/
295
364
  1024 && e !== (e = /*isLastWarning*/
296
- f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
297
- f[6] ? u ? u.p(f, _) : (u = ze(f), u.c(), u.m(l.parentNode, l)) : u && (u.d(1), u = null);
365
+ f[10] ? "LastWarningMessage" : "") && l(t, "class", e), /*hasErrors*/
366
+ f[6] ? d ? d.p(f, v) : (d = ze(f), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null);
298
367
  },
299
368
  d(f) {
300
- f && (O(t), O(i), O(l)), s.d(), u && u.d(f);
369
+ f && (E(t), E(i), E(r)), s.d(), d && d.d(f);
301
370
  }
302
371
  };
303
372
  }
@@ -308,18 +377,18 @@ function ft(n) {
308
377
  ), i;
309
378
  return {
310
379
  c() {
311
- t = v("p"), i = L(e);
380
+ t = k("p"), i = L(e);
312
381
  },
313
- m(l, a) {
314
- S(l, t, a), d(t, i);
382
+ m(r, a) {
383
+ O(r, t, a), p(t, i);
315
384
  },
316
- p(l, a) {
385
+ p(r, a) {
317
386
  a[0] & /*$_*/
318
387
  524288 && e !== (e = /*$_*/
319
- (l[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && P(i, e);
388
+ (r[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && R(i, e);
320
389
  },
321
- d(l) {
322
- l && O(t);
390
+ d(r) {
391
+ r && E(t);
323
392
  }
324
393
  };
325
394
  }
@@ -330,22 +399,22 @@ function mt(n) {
330
399
  ), i;
331
400
  return {
332
401
  c() {
333
- t = v("p"), i = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
402
+ t = k("p"), i = L(e), l(t, "class", "OtpNoticeMessage"), l(t, "role", "alert");
334
403
  },
335
- m(l, a) {
336
- S(l, t, a), d(t, i);
404
+ m(r, a) {
405
+ O(r, t, a), p(t, i);
337
406
  },
338
- p(l, a) {
407
+ p(r, a) {
339
408
  a[0] & /*$_*/
340
409
  524288 && e !== (e = /*$_*/
341
- l[19]("otpExpiredMessage") + "") && P(i, e);
410
+ r[19]("otpExpiredMessage") + "") && R(i, e);
342
411
  },
343
- d(l) {
344
- l && O(t);
412
+ d(r) {
413
+ r && E(t);
345
414
  }
346
415
  };
347
416
  }
348
- function ht(n) {
417
+ function gt(n) {
349
418
  let t = (
350
419
  /*$_*/
351
420
  n[19]("popupMessage") + ""
@@ -354,20 +423,20 @@ function ht(n) {
354
423
  c() {
355
424
  e = L(t);
356
425
  },
357
- m(i, l) {
358
- S(i, e, l);
426
+ m(i, r) {
427
+ O(i, e, r);
359
428
  },
360
- p(i, l) {
361
- l[0] & /*$_*/
429
+ p(i, r) {
430
+ r[0] & /*$_*/
362
431
  524288 && t !== (t = /*$_*/
363
- i[19]("popupMessage") + "") && P(e, t);
432
+ i[19]("popupMessage") + "") && R(e, t);
364
433
  },
365
434
  d(i) {
366
- i && O(e);
435
+ i && E(e);
367
436
  }
368
437
  };
369
438
  }
370
- function gt(n) {
439
+ function ht(n) {
371
440
  let t = (
372
441
  /*$_*/
373
442
  n[19]("popupMessageLastWarning") + ""
@@ -376,16 +445,16 @@ function gt(n) {
376
445
  c() {
377
446
  e = L(t);
378
447
  },
379
- m(i, l) {
380
- S(i, e, l);
448
+ m(i, r) {
449
+ O(i, e, r);
381
450
  },
382
- p(i, l) {
383
- l[0] & /*$_*/
451
+ p(i, r) {
452
+ r[0] & /*$_*/
384
453
  524288 && t !== (t = /*$_*/
385
- i[19]("popupMessageLastWarning") + "") && P(e, t);
454
+ i[19]("popupMessageLastWarning") + "") && R(e, t);
386
455
  },
387
456
  d(i) {
388
- i && O(e);
457
+ i && E(e);
389
458
  }
390
459
  };
391
460
  }
@@ -393,61 +462,61 @@ function ze(n) {
393
462
  let t, e;
394
463
  return {
395
464
  c() {
396
- t = v("p"), e = L(
465
+ t = k("p"), e = L(
397
466
  /*errorMessage*/
398
467
  n[8]
399
- ), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
468
+ ), l(t, "class", "OtpErrorMessage"), l(t, "role", "alert");
400
469
  },
401
- m(i, l) {
402
- S(i, t, l), d(t, e);
470
+ m(i, r) {
471
+ O(i, t, r), p(t, e);
403
472
  },
404
- p(i, l) {
405
- l[0] & /*errorMessage*/
406
- 256 && P(
473
+ p(i, r) {
474
+ r[0] & /*errorMessage*/
475
+ 256 && R(
407
476
  e,
408
477
  /*errorMessage*/
409
478
  i[8]
410
479
  );
411
480
  },
412
481
  d(i) {
413
- i && O(t);
482
+ i && E(t);
414
483
  }
415
484
  };
416
485
  }
417
- function Ae(n) {
418
- let t, e, i, l;
419
- function a(u, f) {
486
+ function Ie(n) {
487
+ let t, e, i, r;
488
+ function a(d, f) {
420
489
  return (
421
490
  /*currentChannelTimer*/
422
- u[17] > 0 ? wt : bt
491
+ d[17] > 0 ? wt : bt
423
492
  );
424
493
  }
425
- let p = a(n), s = p(n);
494
+ let u = a(n), s = u(n);
426
495
  return {
427
496
  c() {
428
- t = v("button"), s.c(), r(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
429
- n[18], J(t, "disabled", !/*canSubmitChannel*/
497
+ t = k("button"), s.c(), l(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
498
+ n[18], Y(t, "disabled", !/*canSubmitChannel*/
430
499
  n[18] || /*waitingForConfig*/
431
500
  n[16]);
432
501
  },
433
- m(u, f) {
434
- S(u, t, f), s.m(t, null), i || (l = ee(
502
+ m(d, f) {
503
+ O(d, t, f), s.m(t, null), i || (r = ee(
435
504
  t,
436
505
  "click",
437
506
  /*handleChannelSubmit*/
438
507
  n[22]
439
508
  ), i = !0);
440
509
  },
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*/
510
+ p(d, f) {
511
+ u === (u = a(d)) && s ? s.p(d, f) : (s.d(1), s = u(d), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
443
512
  262144 && e !== (e = !/*canSubmitChannel*/
444
- u[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
445
- 327680 && J(t, "disabled", !/*canSubmitChannel*/
446
- u[18] || /*waitingForConfig*/
447
- u[16]);
513
+ d[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
514
+ 327680 && Y(t, "disabled", !/*canSubmitChannel*/
515
+ d[18] || /*waitingForConfig*/
516
+ d[16]);
448
517
  },
449
- d(u) {
450
- u && O(t), s.d(), i = !1, l();
518
+ d(d) {
519
+ d && E(t), s.d(), i = !1, r();
451
520
  }
452
521
  };
453
522
  }
@@ -460,16 +529,16 @@ function bt(n) {
460
529
  c() {
461
530
  e = L(t);
462
531
  },
463
- m(i, l) {
464
- S(i, e, l);
532
+ m(i, r) {
533
+ O(i, e, r);
465
534
  },
466
- p(i, l) {
467
- l[0] & /*$_*/
535
+ p(i, r) {
536
+ r[0] & /*$_*/
468
537
  524288 && t !== (t = /*$_*/
469
- i[19]("sendCode") + "") && P(e, t);
538
+ i[19]("sendCode") + "") && R(e, t);
470
539
  },
471
540
  d(i) {
472
- i && O(e);
541
+ i && E(e);
473
542
  }
474
543
  };
475
544
  }
@@ -477,120 +546,120 @@ function wt(n) {
477
546
  let t = (
478
547
  /*$_*/
479
548
  n[19]("waitSeconds") + ""
480
- ), e, i, l, a;
549
+ ), e, i, r, a;
481
550
  return {
482
551
  c() {
483
- e = L(t), i = L(" ("), l = L(
552
+ e = L(t), i = L(" ("), r = L(
484
553
  /*currentChannelTimer*/
485
554
  n[17]
486
555
  ), a = L("s)");
487
556
  },
488
- m(p, s) {
489
- S(p, e, s), S(p, i, s), S(p, l, s), S(p, a, s);
557
+ m(u, s) {
558
+ O(u, e, s), O(u, i, s), O(u, r, s), O(u, a, s);
490
559
  },
491
- p(p, s) {
560
+ p(u, s) {
492
561
  s[0] & /*$_*/
493
562
  524288 && t !== (t = /*$_*/
494
- p[19]("waitSeconds") + "") && P(e, t), s[0] & /*currentChannelTimer*/
495
- 131072 && P(
496
- l,
563
+ u[19]("waitSeconds") + "") && R(e, t), s[0] & /*currentChannelTimer*/
564
+ 131072 && R(
565
+ r,
497
566
  /*currentChannelTimer*/
498
- p[17]
567
+ u[17]
499
568
  );
500
569
  },
501
- d(p) {
502
- p && (O(e), O(i), O(l), O(a));
570
+ d(u) {
571
+ u && (E(e), E(i), E(r), E(a));
503
572
  }
504
573
  };
505
574
  }
506
- function _t(n) {
575
+ function vt(n) {
507
576
  let t, e, i = (
508
577
  /*$_*/
509
578
  n[19]("timeRemaining") + ""
510
- ), l, a, p = (
579
+ ), r, a, u = (
511
580
  /*formatTime*/
512
581
  n[23](
513
582
  /*timeLeft*/
514
583
  n[5]
515
584
  ) + ""
516
- ), s, u, f = (
585
+ ), s, d, f = (
517
586
  /*$_*/
518
587
  n[19]("minutes") + ""
519
- ), _, w, T, M = Se(
588
+ ), v, w, T, M = Oe(
520
589
  /*otp*/
521
590
  n[2]
522
591
  ), b = [];
523
592
  for (let m = 0; m < M.length; m += 1)
524
- b[m] = Ie(Le(n, M, m));
593
+ b[m] = Pe(Le(n, M, m));
525
594
  return {
526
595
  c() {
527
- t = v("div"), e = v("div"), l = L(i), a = R(), s = L(p), u = R(), _ = L(f), w = R(), T = v("div");
596
+ t = k("div"), e = k("div"), r = L(i), a = x(), s = L(u), d = x(), v = L(f), w = x(), T = k("div");
528
597
  for (let m = 0; m < b.length; m += 1)
529
598
  b[m].c();
530
- r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
599
+ l(e, "class", "OtpTimer"), l(T, "class", "OtpField"), l(t, "class", "OtpFieldWrapper");
531
600
  },
532
- m(m, y) {
533
- S(m, t, y), d(t, e), d(e, l), 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);
601
+ m(m, _) {
602
+ O(m, t, _), p(t, e), p(e, r), p(e, a), p(e, s), p(e, d), p(e, v), p(t, w), p(t, T);
603
+ for (let S = 0; S < b.length; S += 1)
604
+ b[S] && b[S].m(T, null);
536
605
  },
537
- p(m, y) {
538
- if (y[0] & /*$_*/
606
+ p(m, _) {
607
+ if (_[0] & /*$_*/
539
608
  524288 && i !== (i = /*$_*/
540
- m[19]("timeRemaining") + "") && P(l, i), y[0] & /*timeLeft*/
541
- 32 && p !== (p = /*formatTime*/
609
+ m[19]("timeRemaining") + "") && R(r, i), _[0] & /*timeLeft*/
610
+ 32 && u !== (u = /*formatTime*/
542
611
  m[23](
543
612
  /*timeLeft*/
544
613
  m[5]
545
- ) + "") && P(s, p), y[0] & /*$_*/
614
+ ) + "") && R(s, u), _[0] & /*$_*/
546
615
  524288 && f !== (f = /*$_*/
547
- m[19]("minutes") + "") && P(_, f), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
616
+ m[19]("minutes") + "") && R(v, f), _[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
548
617
  117458964) {
549
- M = Se(
618
+ M = Oe(
550
619
  /*otp*/
551
620
  m[2]
552
621
  );
553
- let C;
554
- for (C = 0; C < M.length; C += 1) {
555
- const A = Le(m, M, C);
556
- b[C] ? b[C].p(A, y) : (b[C] = Ie(A), b[C].c(), b[C].m(T, null));
622
+ let S;
623
+ for (S = 0; S < M.length; S += 1) {
624
+ const I = Le(m, M, S);
625
+ b[S] ? b[S].p(I, _) : (b[S] = Pe(I), b[S].c(), b[S].m(T, null));
557
626
  }
558
- for (; C < b.length; C += 1)
559
- b[C].d(1);
627
+ for (; S < b.length; S += 1)
628
+ b[S].d(1);
560
629
  b.length = M.length;
561
630
  }
562
631
  },
563
632
  d(m) {
564
- m && O(t), nt(b, m);
633
+ m && E(t), nt(b, m);
565
634
  }
566
635
  };
567
636
  }
568
- function yt(n) {
637
+ function _t(n) {
569
638
  let t;
570
639
  return {
571
640
  c() {
572
- t = v("div"), t.innerHTML = '<span class="OtpLoader"></span>', r(t, "class", "OtpLoaderContainer");
641
+ t = k("div"), t.innerHTML = '<span class="OtpLoader"></span>', l(t, "class", "OtpLoaderContainer");
573
642
  },
574
643
  m(e, i) {
575
- S(e, t, i);
644
+ O(e, t, i);
576
645
  },
577
- p: ye,
646
+ p: _e,
578
647
  d(e) {
579
- e && O(t);
648
+ e && E(t);
580
649
  }
581
650
  };
582
651
  }
583
- function Ie(n) {
584
- let t, e, i, l = (
652
+ function Pe(n) {
653
+ let t, e, i, r = (
585
654
  /*index*/
586
655
  n[71]
587
- ), a, p;
656
+ ), a, u;
588
657
  const s = () => (
589
658
  /*input_binding*/
590
- n[41](t, l)
591
- ), u = () => (
659
+ n[41](t, r)
660
+ ), d = () => (
592
661
  /*input_binding*/
593
- n[41](null, l)
662
+ n[41](null, r)
594
663
  );
595
664
  function f(...w) {
596
665
  return (
@@ -602,7 +671,7 @@ function Ie(n) {
602
671
  )
603
672
  );
604
673
  }
605
- function _(...w) {
674
+ function v(...w) {
606
675
  return (
607
676
  /*keydown_handler*/
608
677
  n[43](
@@ -614,18 +683,18 @@ function Ie(n) {
614
683
  }
615
684
  return {
616
685
  c() {
617
- t = v("input"), r(t, "id", `otp-input-${/*index*/
618
- n[71]}`), r(t, "type", "text"), r(t, "class", e = `otp-box ${/*config*/
686
+ t = k("input"), l(t, "id", `otp-input-${/*index*/
687
+ n[71]}`), l(t, "type", "text"), l(t, "class", e = `otp-box ${/*config*/
619
688
  n[4].inputLength % 2 === 0 && /*index*/
620
689
  n[71] === /*config*/
621
- n[4].inputLength / 2 - 1 ? "space" : ""}`), r(t, "maxlength", 1), t.value = i = /*char*/
622
- n[69], r(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
623
- n[11], r(t, "autocomplete", "off");
690
+ n[4].inputLength / 2 - 1 ? "space" : ""}`), l(t, "maxlength", 1), t.value = i = /*char*/
691
+ n[69], l(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
692
+ n[11], l(t, "autocomplete", "off");
624
693
  },
625
694
  m(w, T) {
626
- S(w, t, T), s(), a || (p = [
695
+ O(w, t, T), s(), a || (u = [
627
696
  ee(t, "input", f),
628
- ee(t, "keydown", _),
697
+ ee(t, "keydown", v),
629
698
  ee(
630
699
  t,
631
700
  "paste",
@@ -639,113 +708,113 @@ function Ie(n) {
639
708
  16 && e !== (e = `otp-box ${/*config*/
640
709
  n[4].inputLength % 2 === 0 && /*index*/
641
710
  n[71] === /*config*/
642
- n[4].inputLength / 2 - 1 ? "space" : ""}`) && r(t, "class", e), T[0] & /*otp*/
711
+ n[4].inputLength / 2 - 1 ? "space" : ""}`) && l(t, "class", e), T[0] & /*otp*/
643
712
  4 && i !== (i = /*char*/
644
713
  n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
645
714
  2048 && (t.disabled = /*inputDisabled*/
646
- n[11]), l !== /*index*/
647
- n[71] && (u(), l = /*index*/
715
+ n[11]), r !== /*index*/
716
+ n[71] && (d(), r = /*index*/
648
717
  n[71], s());
649
718
  },
650
719
  d(w) {
651
- w && O(t), u(), a = !1, xe(p);
720
+ w && E(t), d(), a = !1, Ae(u);
652
721
  }
653
722
  };
654
723
  }
655
- function vt(n) {
724
+ function kt(n) {
656
725
  let t, e = (
657
726
  /*$_*/
658
727
  n[19]("submit") + ""
659
- ), i, l, a, p;
728
+ ), i, r, a, u;
660
729
  return {
661
730
  c() {
662
- t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled = l = /*otp*/
731
+ t = k("button"), i = L(e), l(t, "class", "OtpButton"), t.disabled = r = /*otp*/
663
732
  n[2].join("").length !== /*config*/
664
733
  n[4].inputLength || /*isSubmitting*/
665
734
  n[13] || /*maxAttempts*/
666
735
  n[15];
667
736
  },
668
- m(s, u) {
669
- S(s, t, u), d(t, i), a || (p = ee(
737
+ m(s, d) {
738
+ O(s, t, d), p(t, i), a || (u = ee(
670
739
  t,
671
740
  "click",
672
741
  /*submitOtp*/
673
742
  n[29]
674
743
  ), a = !0);
675
744
  },
676
- p(s, u) {
677
- u[0] & /*$_*/
745
+ p(s, d) {
746
+ d[0] & /*$_*/
678
747
  524288 && e !== (e = /*$_*/
679
- s[19]("submit") + "") && P(i, e), u[0] & /*otp, config, isSubmitting, maxAttempts*/
680
- 40980 && l !== (l = /*otp*/
748
+ s[19]("submit") + "") && R(i, e), d[0] & /*otp, config, isSubmitting, maxAttempts*/
749
+ 40980 && r !== (r = /*otp*/
681
750
  s[2].join("").length !== /*config*/
682
751
  s[4].inputLength || /*isSubmitting*/
683
752
  s[13] || /*maxAttempts*/
684
- s[15]) && (t.disabled = l);
753
+ s[15]) && (t.disabled = r);
685
754
  },
686
755
  d(s) {
687
- s && O(t), a = !1, p();
756
+ s && E(t), a = !1, u();
688
757
  }
689
758
  };
690
759
  }
691
- function kt(n) {
760
+ function yt(n) {
692
761
  let t, e = (
693
762
  /*$_*/
694
763
  n[19]("resendOtp") + ""
695
- ), i, l, a;
764
+ ), i, r, a;
696
765
  return {
697
766
  c() {
698
- t = v("button"), i = L(e), r(t, "class", "OtpButton");
767
+ t = k("button"), i = L(e), l(t, "class", "OtpButton");
699
768
  },
700
- m(p, s) {
701
- S(p, t, s), d(t, i), l || (a = ee(
769
+ m(u, s) {
770
+ O(u, t, s), p(t, i), r || (a = ee(
702
771
  t,
703
772
  "click",
704
773
  /*handleResendOtp*/
705
774
  n[27]
706
- ), l = !0);
775
+ ), r = !0);
707
776
  },
708
- p(p, s) {
777
+ p(u, s) {
709
778
  s[0] & /*$_*/
710
779
  524288 && e !== (e = /*$_*/
711
- p[19]("resendOtp") + "") && P(i, e);
780
+ u[19]("resendOtp") + "") && R(i, e);
712
781
  },
713
- d(p) {
714
- p && O(t), l = !1, a();
782
+ d(u) {
783
+ u && E(t), r = !1, a();
715
784
  }
716
785
  };
717
786
  }
718
- function Ct(n) {
787
+ function St(n) {
719
788
  let t;
720
- function e(a, p) {
789
+ function e(a, u) {
721
790
  return (
722
791
  /*hasConfigErrors*/
723
- a[7] ? ut : pt
792
+ a[7] ? dt : ut
724
793
  );
725
794
  }
726
- let i = e(n), l = i(n);
795
+ let i = e(n), r = i(n);
727
796
  return {
728
797
  c() {
729
- t = v("div"), l.c(), r(t, "class", "OtpContent");
798
+ t = k("div"), r.c(), l(t, "class", "OtpContent");
730
799
  },
731
- m(a, p) {
732
- S(a, t, p), l.m(t, null), n[44](t);
800
+ m(a, u) {
801
+ O(a, t, u), r.m(t, null), n[44](t);
733
802
  },
734
- p(a, p) {
735
- i === (i = e(a)) && l ? l.p(a, p) : (l.d(1), l = i(a), l && (l.c(), l.m(t, null)));
803
+ p(a, u) {
804
+ i === (i = e(a)) && r ? r.p(a, u) : (r.d(1), r = i(a), r && (r.c(), r.m(t, null)));
736
805
  },
737
- i: ye,
738
- o: ye,
806
+ i: _e,
807
+ o: _e,
739
808
  d(a) {
740
- a && O(t), l.d(), n[44](null);
809
+ a && E(t), r.d(), n[44](null);
741
810
  }
742
811
  };
743
812
  }
744
- function Et(n, t, e) {
745
- let i, l, a;
813
+ function Ct(n, t, e) {
814
+ let i, r, a;
746
815
  $e(n, st, (o) => e(19, a = o));
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, A = "", X = "", W = !1, j = !1, I = "", te = "", F = "", Z = !1, oe = !1, Q = !1, E = "", z = {}, N = null, re = !1, se = !1, ae = "", q, de, U = [], B = null, G = 0, ce = !1, pe = !1;
748
- const ue = { SMS: "sms", EMAIL: "email" }, $ = {
816
+ let { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: d } = t, { lang: f = "en" } = t, { endpoint: v } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, _ = null, S = 0, I = "", q = "", F = !1, V = !1, P = "", te = "", N = "", J = !1, oe = !1, Q = !1, C = "", z = {}, W = null, le = !1, se = !1, ae = "", K, pe, U = [], B = null, G = 0, ce = !1, ue = !1;
817
+ const de = { SMS: "sms", EMAIL: "email" }, $ = {
749
818
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
750
819
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
751
820
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
@@ -753,134 +822,134 @@ function Et(n, t, e) {
753
822
  Object.keys(Te).forEach((o) => {
754
823
  Me(o, Te[o]);
755
824
  });
756
- const K = () => {
825
+ const X = () => {
757
826
  at(f);
758
- }, V = () => {
827
+ }, H = () => {
759
828
  fetch(T).then((o) => o.json()).then((o) => {
760
- Object.keys(o).forEach((h) => {
761
- Me(h, o[h]);
829
+ Object.keys(o).forEach((g) => {
830
+ Me(g, o[g]);
762
831
  });
763
832
  }).catch((o) => {
764
833
  console.log(o);
765
834
  });
766
835
  }, fe = async (o) => {
767
836
  if (o.detail?.["x-step-up-required"]) {
768
- if (e(7, j = !1), e(6, W = !1), e(8, I = ""), te = o.detail["x-step-up-token"], F = o.detail.flow, !te || !F) {
769
- e(3, m = !1), e(7, j = !0), e(8, I = a("configError"));
837
+ if (e(7, V = !1), e(6, F = !1), e(8, P = ""), te = o.detail["x-step-up-token"], N = o.detail.flow, !te || !N) {
838
+ e(3, m = !1), e(7, V = !0), e(8, P = a("configError"));
770
839
  return;
771
840
  }
772
- e(12, re = !1), e(3, m = !1);
841
+ e(12, le = !1), e(3, m = !1);
773
842
  }
774
843
  }, ne = () => {
775
- B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6, W = !1), e(7, j = !1), e(8, I = ""), e(10, oe = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, re = !1), e(38, z = {});
844
+ B && (clearInterval(B), B = null), W && (clearInterval(W), W = null), e(6, F = !1), e(7, V = !1), e(8, P = ""), e(10, oe = !1), e(2, b = []), e(4, _ = null), e(3, m = !0), e(0, C = ""), e(12, le = !1), e(38, z = {});
776
845
  }, D = () => {
777
846
  ne();
778
- }, me = () => new Promise((o, h) => {
779
- const g = new URL(`${_}/api/pam/v1/mfa/challenge/${te}`), H = new Headers();
780
- H.append("accept", "application/json"), H.append("Content-Type", "application/json"), H.append("X-SessionId", `${w}`), e(16, pe = !0);
781
- const _e = {
847
+ }, me = () => new Promise((o, g) => {
848
+ const h = new URL(`${v}/api/pam/v1/mfa/challenge/${te}`), j = new Headers();
849
+ j.append("accept", "application/json"), j.append("Content-Type", "application/json"), j.append("X-SessionId", `${w}`), e(16, ue = !0);
850
+ const ve = {
782
851
  method: "PATCH",
783
- headers: H,
852
+ headers: j,
784
853
  body: JSON.stringify({
785
- channel: E,
854
+ channel: C,
786
855
  templateId: M
787
856
  })
788
857
  };
789
- fetch(g, _e).then((Ee) => Ee.json()).then(() => {
790
- e(15, ce = !1), k(), ge(), o();
791
- }).catch((Ee) => {
792
- h();
858
+ fetch(h, ve).then((Ce) => Ce.json()).then(() => {
859
+ e(15, ce = !1), y(), he(), o();
860
+ }).catch((Ce) => {
861
+ g();
793
862
  });
794
863
  }), ie = () => {
795
- N && clearInterval(N), N = setInterval(
864
+ W && clearInterval(W), W = setInterval(
796
865
  () => {
797
866
  const o = { ...z };
798
- let h = !1;
799
- Object.keys(o).forEach((g) => {
800
- o[g] > 0 && (o[g]--, h = !0);
801
- }), e(38, z = o), !h && N && (clearInterval(N), N = null);
867
+ let g = !1;
868
+ Object.keys(o).forEach((h) => {
869
+ o[h] > 0 && (o[h]--, g = !0);
870
+ }), e(38, z = o), !g && W && (clearInterval(W), W = null);
802
871
  },
803
872
  1e3
804
873
  );
805
- }, x = (o) => {
806
- e(0, E = o);
874
+ }, A = (o) => {
875
+ e(0, C = o);
807
876
  }, c = async () => {
808
- if (!(!E || z[E] && z[E] > 0)) {
809
- e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
877
+ if (!(!C || z[C] && z[C] > 0)) {
878
+ e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${C}`);
810
879
  try {
811
880
  await me(), await we(), e(38, z = {
812
881
  ...z,
813
- [E]: 30
814
- }), ie(), e(12, re = !0), k(), ge();
882
+ [C]: 30
883
+ }), ie(), e(12, le = !0), y(), he();
815
884
  } catch (o) {
816
- console.error("Error submitting channel:", o), e(6, W = !0), e(8, I = a("submissionError"));
885
+ console.error("Error submitting channel:", o), e(6, F = !0), e(8, P = a("submissionError"));
817
886
  } finally {
818
887
  e(3, m = !1);
819
888
  }
820
889
  }
821
- }, k = () => {
822
- const o = new Date(A), h = new Date(X), g = /* @__PURE__ */ new Date(), H = h.getTime() - g.getTime();
823
- G = o.getTime() - H;
824
- const he = Date.now(), _e = Math.max(0, Math.floor((G - he) / 1e3));
825
- e(5, C = _e);
826
- }, ge = () => {
890
+ }, y = () => {
891
+ const o = new Date(I), g = new Date(q), h = /* @__PURE__ */ new Date(), j = g.getTime() - h.getTime();
892
+ G = o.getTime() - j;
893
+ const ge = Date.now(), ve = Math.max(0, Math.floor((G - ge) / 1e3));
894
+ e(5, S = ve);
895
+ }, he = () => {
827
896
  B && clearInterval(B), B = setInterval(
828
897
  () => {
829
- const o = Date.now(), h = Math.max(0, Math.floor((G - o) / 1e3));
830
- e(5, C = h), e(11, Q = h <= 0), h <= 0 && (clearInterval(B), B = null, e(9, Z = !0), e(6, W = !1), e(10, oe = !1));
898
+ const o = Date.now(), g = Math.max(0, Math.floor((G - o) / 1e3));
899
+ e(5, S = g), e(11, Q = g <= 0), g <= 0 && (clearInterval(B), B = null, e(9, J = !0), e(6, F = !1), e(10, oe = !1));
831
900
  },
832
901
  1e3
833
902
  );
903
+ }, xe = (o) => {
904
+ const g = Math.floor(o / 60), h = o % 60;
905
+ return `${g.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
906
+ }, be = (o, g) => {
907
+ const h = [...b];
908
+ h[o] = g.toUpperCase(), e(2, b = h), h.join("") !== ae && e(13, se = !1);
834
909
  }, Re = (o) => {
835
- const h = Math.floor(o / 60), g = o % 60;
836
- return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
837
- }, be = (o, h) => {
838
- const g = [...b];
839
- g[o] = h.toUpperCase(), e(2, b = g), g.join("") !== ae && e(13, se = !1);
840
- }, Pe = (o) => {
841
910
  o.preventDefault();
842
- const g = (o.clipboardData?.getData("text")?.trim() || "").slice(0, y.inputLength).split("");
843
- e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), U[g.length]?.focus(), g.length === y.inputLength && Ce();
844
- }, ve = (o, h) => {
845
- const g = o.target, H = g.value;
846
- /^[a-z0-9]$/i.test(H) && (be(h, H), U[h + 1]?.focus()), g.value = "";
847
- }, ke = (o, h) => {
848
- const g = o.key, H = o.ctrlKey || o.metaKey;
849
- if (/^[a-z0-9]$/i.test(g)) {
850
- if (H && g.toLowerCase() === "v")
911
+ const h = (o.clipboardData?.getData("text")?.trim() || "").slice(0, _.inputLength).split("");
912
+ e(2, b = [...h, ...Array(_.inputLength - h.length).fill("")]), U[h.length]?.focus(), h.length === _.inputLength && Se();
913
+ }, ke = (o, g) => {
914
+ const h = o.target, j = h.value;
915
+ /^[a-z0-9]$/i.test(j) && (be(g, j), U[g + 1]?.focus()), h.value = "";
916
+ }, ye = (o, g) => {
917
+ const h = o.key, j = o.ctrlKey || o.metaKey;
918
+ if (/^[a-z0-9]$/i.test(h)) {
919
+ if (j && h.toLowerCase() === "v")
851
920
  return;
852
- o.preventDefault(), be(h, g), U[h + 1]?.focus();
921
+ o.preventDefault(), be(g, h), U[g + 1]?.focus();
853
922
  } else
854
- g === "Backspace" && (o.preventDefault(), b[h] !== "" && be(h, ""), U[h - 1]?.focus());
923
+ h === "Backspace" && (o.preventDefault(), b[g] !== "" && be(g, ""), U[g - 1]?.focus());
855
924
  }, De = () => {
856
- F == "stateful" && (me(), e(9, Z = !1));
925
+ N == "stateful" && (me(), e(9, J = !1));
857
926
  const o = new CustomEvent("otpResendRequested");
858
927
  window.dispatchEvent(o);
859
- }, je = (o) => {
928
+ }, Ve = (o) => {
860
929
  window.dispatchEvent(new CustomEvent(
861
930
  "otpSubmitted",
862
931
  {
863
932
  detail: {
864
933
  code: o,
865
- maxAttempts: y.maxValidationAttempts,
866
- validatedAttempts: y.numberOfValidateAttempts
934
+ maxAttempts: _.maxValidationAttempts,
935
+ validatedAttempts: _.numberOfValidateAttempts
867
936
  }
868
937
  }
869
938
  ));
870
939
  }, Be = async (o) => {
871
- const h = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, _);
872
- h.searchParams.append("input", o);
940
+ const g = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, v);
941
+ g.searchParams.append("input", o);
873
942
  try {
874
- const g = await fetch(h.href, { method: "POST" });
875
- if (g.status === 200) {
876
- Ve();
943
+ const h = await fetch(g.href, { method: "POST" });
944
+ if (h.status === 200) {
945
+ He();
877
946
  return;
878
947
  }
879
- const H = await g.json();
880
- throw new Error(H.message);
881
- } catch (g) {
882
- if (await we(), g.message === $.INTERNAL_SERVER_ERROR) {
883
- if (y.numberOfValidateAttempts === y.maxValidationAttempts - 1) {
948
+ const j = await h.json();
949
+ throw new Error(j.message);
950
+ } catch (h) {
951
+ if (await we(), h.message === $.INTERNAL_SERVER_ERROR) {
952
+ if (_.numberOfValidateAttempts === _.maxValidationAttempts - 1) {
884
953
  window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
885
954
  {
886
955
  type: "WidgetNotification",
@@ -893,14 +962,14 @@ function Et(n, t, e) {
893
962
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
894
963
  return;
895
964
  }
896
- e(6, W = !0), e(8, I = a("invalidOtp")), we();
965
+ e(6, F = !0), e(8, P = a("invalidOtp")), we();
897
966
  return;
898
967
  }
899
- g.message === $.MAX_INVALIDATE && (e(6, W = !0), e(8, I = a("invalidOtp"))), g.details === $.MAX_ATTEMPTS_EXCEEDED && e(15, ce = !0), console.error("OTP submission failed:", g), e(6, W = !0), e(8, I = a("submissionError"));
968
+ h.message === $.MAX_INVALIDATE && (e(6, F = !0), e(8, P = a("invalidOtp"))), h.details === $.MAX_ATTEMPTS_EXCEEDED && e(15, ce = !0), console.error("OTP submission failed:", h), e(6, F = !0), e(8, P = a("submissionError"));
900
969
  } finally {
901
970
  e(3, m = !1);
902
971
  }
903
- }, Ve = () => {
972
+ }, He = () => {
904
973
  window.dispatchEvent(new CustomEvent(
905
974
  "otpSuccess",
906
975
  {
@@ -909,119 +978,119 @@ function Et(n, t, e) {
909
978
  }
910
979
  }
911
980
  ));
912
- }, He = () => {
981
+ }, je = () => {
913
982
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
914
- }, Ce = async () => {
915
- if (b.join("").length !== y.inputLength) {
916
- e(6, W = !0), e(8, I = a("invalidOtp"));
983
+ }, Se = async () => {
984
+ if (b.join("").length !== _.inputLength) {
985
+ e(6, F = !0), e(8, P = a("invalidOtp"));
917
986
  return;
918
987
  }
919
988
  const o = b.join("");
920
- e(13, se = !0), ae = o, e(3, m = !0), e(6, W = !1), e(8, I = ""), F === "stateless" && je(o), F === "stateful" && await Be(o);
989
+ e(13, se = !0), ae = o, e(3, m = !0), e(6, F = !1), e(8, P = ""), N === "stateless" && Ve(o), N === "stateful" && await Be(o);
921
990
  }, we = async () => {
922
- if (_)
991
+ if (v)
923
992
  try {
924
993
  e(3, m = !0);
925
- const o = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, _), h = await fetch(o.href), g = await h.json();
926
- if (h.ok)
927
- e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Z = !1), A = y.expirationTime, X = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, W = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, oe = !0), e(3, m = !1), k(), ge(), e(16, pe = !1);
928
- else if (g && g.details === $.MAX_ATTEMPTS_EXCEEDED)
994
+ const o = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, v), g = await fetch(o.href), h = await g.json();
995
+ if (g.ok)
996
+ e(4, _ = h), e(2, b = Array(_.inputLength).fill("")), e(9, J = !1), I = _.expirationTime, q = _.serverTime, _.numberOfValidateAttempts !== 0 && (e(6, F = !0), e(8, P = a("invalidOtp"))), _.numberOfValidateAttempts === _.maxValidationAttempts - 1 && e(10, oe = !0), e(3, m = !1), y(), he(), e(16, ue = !1);
997
+ else if (h && h.details === $.MAX_ATTEMPTS_EXCEEDED)
929
998
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
930
999
  else {
931
- const H = g && g.message || `Failed to load config. Status: ${h.status}`;
932
- throw new Error(H);
1000
+ const j = h && h.message || `Failed to load config. Status: ${g.status}`;
1001
+ throw new Error(j);
933
1002
  }
934
1003
  } catch (o) {
935
- e(3, m = !1), e(7, j = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", o);
1004
+ e(3, m = !1), e(7, V = !0), e(8, P = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", o);
936
1005
  }
937
1006
  };
938
1007
  et(() => (window.addEventListener("stepUpAuthRequired", fe, !1), window.addEventListener("closePopup", D, !1), () => {
939
- window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B), N && clearInterval(N);
1008
+ window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B), W && clearInterval(W);
940
1009
  }));
941
- const Ne = () => x(ue.SMS), We = () => x(ue.EMAIL);
942
- function Fe(o, h) {
943
- Oe[o ? "unshift" : "push"](() => {
944
- U[h] = o, e(14, U);
1010
+ const We = () => A(de.SMS), Fe = () => A(de.EMAIL);
1011
+ function Ne(o, g) {
1012
+ Ee[o ? "unshift" : "push"](() => {
1013
+ U[g] = o, e(14, U);
945
1014
  });
946
1015
  }
947
- const qe = (o, h) => ve(h, o), Ue = (o, h) => ke(h, o);
948
- function Xe(o) {
949
- Oe[o ? "unshift" : "push"](() => {
950
- q = o, e(1, q);
1016
+ const Ke = (o, g) => ke(g, o), Ue = (o, g) => ye(g, o);
1017
+ function qe(o) {
1018
+ Ee[o ? "unshift" : "push"](() => {
1019
+ K = o, e(1, K);
951
1020
  });
952
1021
  }
953
1022
  return n.$$set = (o) => {
954
- "clientstyling" in o && e(31, p = o.clientstyling), "clientstylingurl" in o && e(32, s = o.clientstylingurl), "mbsource" in o && e(33, u = o.mbsource), "lang" in o && e(34, f = o.lang), "endpoint" in o && e(35, _ = o.endpoint), "session" in o && e(36, w = o.session), "translationurl" in o && e(37, T = o.translationurl), "templateid" in o && e(30, M = o.templateid);
1023
+ "clientstyling" in o && e(31, u = o.clientstyling), "clientstylingurl" in o && e(32, s = o.clientstylingurl), "mbsource" in o && e(33, d = o.mbsource), "lang" in o && e(34, f = o.lang), "endpoint" in o && e(35, v = o.endpoint), "session" in o && e(36, w = o.session), "translationurl" in o && e(37, T = o.translationurl), "templateid" in o && e(30, M = o.templateid);
955
1024
  }, n.$$.update = () => {
956
1025
  n.$$.dirty[0] & /*customStylingContainer*/
957
1026
  2 | n.$$.dirty[1] & /*clientstyling*/
958
- 1 && p && q && it(q, p), n.$$.dirty[0] & /*customStylingContainer*/
1027
+ 1 && u && K && it(K, u), n.$$.dirty[0] & /*customStylingContainer*/
959
1028
  2 | n.$$.dirty[1] & /*clientstylingurl*/
960
- 2 && s && q && lt(q, s), n.$$.dirty[0] & /*customStylingContainer*/
1029
+ 2 && s && K && rt(K, s), n.$$.dirty[0] & /*customStylingContainer*/
961
1030
  2 | n.$$.dirty[1] & /*mbsource*/
962
- 4 && u && q && ot(q, `${u}.Style`, de), n.$$.dirty[1] & /*lang*/
963
- 8 && f && K(), n.$$.dirty[1] & /*lang, translationurl*/
964
- 72 && f && T && V(), n.$$.dirty[0] & /*selectedChannel*/
1031
+ 4 && d && K && ot(K, `${d}.Style`, pe), n.$$.dirty[1] & /*lang*/
1032
+ 8 && f && X(), n.$$.dirty[1] & /*lang, translationurl*/
1033
+ 72 && f && T && H(), n.$$.dirty[0] & /*selectedChannel*/
965
1034
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
966
- 128 && e(18, i = E && (!z[E] || z[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
1035
+ 128 && e(18, i = C && (!z[C] || z[C] === 0)), n.$$.dirty[0] & /*selectedChannel*/
967
1036
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
968
- 128 && e(17, l = E && z[E] || 0);
1037
+ 128 && e(17, r = C && z[C] || 0);
969
1038
  }, [
970
- E,
971
- q,
1039
+ C,
1040
+ K,
972
1041
  b,
973
1042
  m,
974
- y,
975
- C,
976
- W,
977
- j,
978
- I,
979
- Z,
1043
+ _,
1044
+ S,
1045
+ F,
1046
+ V,
1047
+ P,
1048
+ J,
980
1049
  oe,
981
1050
  Q,
982
- re,
1051
+ le,
983
1052
  se,
984
1053
  U,
985
1054
  ce,
986
- pe,
987
- l,
1055
+ ue,
1056
+ r,
988
1057
  i,
989
1058
  a,
990
- ue,
991
- x,
1059
+ de,
1060
+ A,
992
1061
  c,
1062
+ xe,
993
1063
  Re,
994
- Pe,
995
- ve,
996
1064
  ke,
1065
+ ye,
997
1066
  De,
998
- He,
999
- Ce,
1067
+ je,
1068
+ Se,
1000
1069
  M,
1001
- p,
1002
- s,
1003
1070
  u,
1071
+ s,
1072
+ d,
1004
1073
  f,
1005
- _,
1074
+ v,
1006
1075
  w,
1007
1076
  T,
1008
1077
  z,
1009
- Ne,
1010
1078
  We,
1011
1079
  Fe,
1012
- qe,
1080
+ Ne,
1081
+ Ke,
1013
1082
  Ue,
1014
- Xe
1083
+ qe
1015
1084
  ];
1016
1085
  }
1017
- class Ot extends Ye {
1086
+ class Et extends Ze {
1018
1087
  constructor(t) {
1019
- super(), Je(
1088
+ super(), Ye(
1020
1089
  this,
1021
1090
  t,
1022
- Et,
1023
1091
  Ct,
1024
- Ze,
1092
+ St,
1093
+ Je,
1025
1094
  {
1026
1095
  clientstyling: 31,
1027
1096
  clientstylingurl: 32,
@@ -1040,52 +1109,52 @@ class Ot extends Ye {
1040
1109
  return this.$$.ctx[31];
1041
1110
  }
1042
1111
  set clientstyling(t) {
1043
- this.$$set({ clientstyling: t }), le();
1112
+ this.$$set({ clientstyling: t }), re();
1044
1113
  }
1045
1114
  get clientstylingurl() {
1046
1115
  return this.$$.ctx[32];
1047
1116
  }
1048
1117
  set clientstylingurl(t) {
1049
- this.$$set({ clientstylingurl: t }), le();
1118
+ this.$$set({ clientstylingurl: t }), re();
1050
1119
  }
1051
1120
  get mbsource() {
1052
1121
  return this.$$.ctx[33];
1053
1122
  }
1054
1123
  set mbsource(t) {
1055
- this.$$set({ mbsource: t }), le();
1124
+ this.$$set({ mbsource: t }), re();
1056
1125
  }
1057
1126
  get lang() {
1058
1127
  return this.$$.ctx[34];
1059
1128
  }
1060
1129
  set lang(t) {
1061
- this.$$set({ lang: t }), le();
1130
+ this.$$set({ lang: t }), re();
1062
1131
  }
1063
1132
  get endpoint() {
1064
1133
  return this.$$.ctx[35];
1065
1134
  }
1066
1135
  set endpoint(t) {
1067
- this.$$set({ endpoint: t }), le();
1136
+ this.$$set({ endpoint: t }), re();
1068
1137
  }
1069
1138
  get session() {
1070
1139
  return this.$$.ctx[36];
1071
1140
  }
1072
1141
  set session(t) {
1073
- this.$$set({ session: t }), le();
1142
+ this.$$set({ session: t }), re();
1074
1143
  }
1075
1144
  get translationurl() {
1076
1145
  return this.$$.ctx[37];
1077
1146
  }
1078
1147
  set translationurl(t) {
1079
- this.$$set({ translationurl: t }), le();
1148
+ this.$$set({ translationurl: t }), re();
1080
1149
  }
1081
1150
  get templateid() {
1082
1151
  return this.$$.ctx[30];
1083
1152
  }
1084
1153
  set templateid(t) {
1085
- this.$$set({ templateid: t }), le();
1154
+ this.$$set({ templateid: t }), re();
1086
1155
  }
1087
1156
  }
1088
- rt(Ot, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
1157
+ lt(Et, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
1089
1158
  export {
1090
- Ot as default
1159
+ Et as default
1091
1160
  };