@everymatrix/cashier-page 1.98.7 → 1.98.9

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 (63) hide show
  1. package/components/{CashierCarousel-CLl1dEO0.js → CashierCarousel-BzdUV7XF.js} +160 -136
  2. package/components/{CashierCarousel-jiScaw1m.js → CashierCarousel-FFsdS-lS.js} +166 -142
  3. package/components/CashierCarousel-zmZZjXPR.cjs +1 -0
  4. package/components/{CashierError-BgzGU74G.js → CashierError-DM9cHWYk.js} +282 -178
  5. package/components/{CashierError-nb2MHtLH.cjs → CashierError-DtmAFp4L.cjs} +1 -1
  6. package/components/{CashierError-ulLnVgQF.js → CashierError-R9QTGjHi.js} +282 -178
  7. package/components/{CashierHeader-DEksQqYQ.js → CashierHeader-BGa8_twf.js} +144 -130
  8. package/components/{CashierHeader-jQ2-E617.js → CashierHeader-BoWdCzOy.js} +144 -130
  9. package/components/CashierHeader-DL7CeVPX.cjs +1 -0
  10. package/components/{CashierIframeRedirect-BUy5m6fN.js → CashierIframeRedirect-BGDgKj5q.js} +38 -32
  11. package/components/{CashierIframeRedirect-CyY79191.js → CashierIframeRedirect-ByL4GN6L.js} +38 -32
  12. package/components/CashierIframeRedirect-DwOnILP1.cjs +1 -0
  13. package/components/{CashierMethodDetails-DmHKHr2M.cjs → CashierMethodDetails-CMadBp5s.cjs} +4 -4
  14. package/components/{CashierMethodDetails-BHGrCcE3.js → CashierMethodDetails-DgFi6GOg.js} +1345 -1149
  15. package/components/{CashierMethodDetails-B-klrcoA.js → CashierMethodDetails-DwAKidqM.js} +1500 -1304
  16. package/components/{CashierMethodsList-u11i0SYf.js → CashierMethodsList-B0Y7Ov2y.js} +136 -112
  17. package/components/CashierMethodsList-BKSWzfhx.cjs +1 -0
  18. package/components/{CashierMethodsList-KXr3hScy.js → CashierMethodsList-BttlgP8I.js} +152 -128
  19. package/components/{CashierModal-Ke9TZX5s.js → CashierModal-BAqyZ3yN.js} +2 -2
  20. package/components/{CashierModal-4iF9ylQT.js → CashierModal-CTEreymk.js} +2 -2
  21. package/components/{CashierModal-CcawnfUI.cjs → CashierModal-DYiiDdjF.cjs} +1 -1
  22. package/components/{CashierNotifications-DquKOU8w.js → CashierNotifications-5vMGexnB.js} +1 -1
  23. package/components/{CashierNotifications-CY2B13Wf.js → CashierNotifications-C9DAtUCd.js} +1 -1
  24. package/components/{CashierNotifications-wQG099OX.cjs → CashierNotifications-DeciL3hL.cjs} +1 -1
  25. package/components/{CashierPage-895aolw0.js → CashierPage-Cyh00U_t.js} +1216 -1118
  26. package/components/{CashierPage-DEYpTaJv.cjs → CashierPage-Datx6Ztd.cjs} +6 -6
  27. package/components/{CashierPage-Bz6JgmrH.js → CashierPage-DmSMSwFD.js} +712 -614
  28. package/components/{CashierReceiptPage-CGcmTBRp.js → CashierReceiptPage-2QLgzHKu.js} +486 -302
  29. package/components/{CashierReceiptPage-BCh5OfiT.cjs → CashierReceiptPage-CljAf_RX.cjs} +2 -2
  30. package/components/{CashierReceiptPage-DNsdCwQQ.js → CashierReceiptPage-zipsq7HA.js} +483 -299
  31. package/components/{CashierSessionExpirationModal-i5NfYzNE.js → CashierSessionExpirationModal-BHUuaz3G.js} +141 -125
  32. package/components/CashierSessionExpirationModal-BhdcM6-i.cjs +2 -0
  33. package/components/{CashierSessionExpirationModal-IfrOHdOp.js → CashierSessionExpirationModal-CPiyWnR6.js} +141 -125
  34. package/components/{CashierSpinner-bOYmQpsr.js → CashierSpinner-CfN6GP0k.js} +2 -2
  35. package/components/{CashierSpinner-CKdmXXKt.cjs → CashierSpinner-DK9MV_jW.cjs} +1 -1
  36. package/components/{CashierSpinner-C9Ra-0IT.js → CashierSpinner-DlmmgiCp.js} +2 -2
  37. package/components/{CashierStepUp-B3Ph1OSf.js → CashierStepUp-D4IutqnI.js} +397 -351
  38. package/components/{CashierStepUp-CKae09kD.js → CashierStepUp-DBkCHzU6.js} +371 -325
  39. package/components/CashierStepUp-f6d-L0Pv.cjs +1 -0
  40. package/components/{CashierTransactionHistory-_uQpfmaM.js → CashierTransactionHistory-Bfx6cEFg.js} +522 -472
  41. package/components/{CashierTransactionHistory-DkPMVofl.js → CashierTransactionHistory-BmgU4GU7.js} +494 -444
  42. package/components/CashierTransactionHistory-Bxd87eQt.cjs +1 -0
  43. package/components/CashierVerifications-B-u47VhR.cjs +1 -0
  44. package/components/{CashierVerifications-CA42knBf.js → CashierVerifications-Bi_7cW9r.js} +256 -210
  45. package/components/{CashierVerifications-C3vBxGTw.js → CashierVerifications-UTO3n0Ei.js} +245 -199
  46. package/components/{TxnStatusIcon-T3_oGTiJ.js → TxnStatusIcon-CDynHfdT.js} +1 -1
  47. package/components/{TxnStatusIcon-_ohfqibs.js → TxnStatusIcon-XWXNjZi6.js} +1 -1
  48. package/components/{TxnStatusIcon-ObLzHWKw.cjs → TxnStatusIcon-xNz_TX3o.cjs} +1 -1
  49. package/components/{TxnTypeIcons-DhQNGQt2.js → TxnTypeIcons-Bui9VGqk.js} +1 -1
  50. package/components/{TxnTypeIcons-gD4j8VCB.js → TxnTypeIcons-D0YhmAk8.js} +1 -1
  51. package/components/{TxnTypeIcons-mX1zqVBL.cjs → TxnTypeIcons-D3xjja9q.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/CashierCarousel-Dh5Q3q4o.cjs +0 -1
  57. package/components/CashierHeader-DA_ReO25.cjs +0 -1
  58. package/components/CashierIframeRedirect-CB1_eaMN.cjs +0 -1
  59. package/components/CashierMethodsList-BvOniQPF.cjs +0 -1
  60. package/components/CashierSessionExpirationModal-CIrMZkSD.cjs +0 -2
  61. package/components/CashierStepUp-DIQ9DrxX.cjs +0 -1
  62. package/components/CashierTransactionHistory-Bkqw8dMT.cjs +0 -1
  63. package/components/CashierVerifications-BZPBsrmc.cjs +0 -1
@@ -1,5 +1,5 @@
1
- import { a as Xe, $ as Ge, S as Ye, b as Ze, s as Je, f as re, d as Qe, z as ye, g as E, l as O, n as y, p as l, q as $e, r as et, y as Ee, w as R, m as p, A as ee, Q as Y, o as x, x as L, F as Ae, L as Z, v as tt, D as Oe, E as nt, c as it, B as rt } from "./CashierPage-Bz6JgmrH.js";
2
- import { s as ot, a as lt, b as st } from "./CashierHeader-jQ2-E617.js";
1
+ import { a as Xe, $ as Ge, S as Ze, b as Ye, s as Je, f as oe, d as Qe, z as ke, g as O, l as C, n as k, p as l, q as $e, r as et, y as Oe, w as R, m as p, A as ee, Q as Z, o as x, x as z, F as Ae, L as Y, v as tt, D as Ce, E as nt, c as it, B as ot } from "./CashierPage-DmSMSwFD.js";
2
+ import { s as rt, a as lt, b as st } from "./CashierHeader-BoWdCzOy.js";
3
3
  function Me(n, t) {
4
4
  Xe(n, t);
5
5
  }
@@ -144,84 +144,130 @@ const Te = {
144
144
  channelEmail: "E-mail",
145
145
  sendCode: "Code verzenden",
146
146
  waitSeconds: "Wacht even voordat u opnieuw verzendt:"
147
+ },
148
+ ru: {
149
+ otpTitle: "Требуется подтверждение кода",
150
+ popupMessage: "Пожалуйста, введите код безопасности, полученный по SMS/на электронную почту, чтобы выполнить обновление.",
151
+ popupMessageLastWarning: "Если следующая попытка проверки не удастся, ваша операция завершится ошибкой, и вы будете возвращены к способу оплаты.",
152
+ minutes: "минут",
153
+ errorHeader: "Ошибка",
154
+ configError: "Не удалось загрузить данные OTP. Пожалуйста, попробуйте позже.",
155
+ otpHeading: "Введите OTP",
156
+ resendOtp: "Отправить OTP повторно",
157
+ submit: "Отправить",
158
+ close: "Закрыть",
159
+ invalidOtp: "Отправленный вами код недействителен. Пожалуйста, попробуйте снова.",
160
+ accountBlocked: "Слишком много попыток ввода OTP. Ваш аккаунт заблокирован на один час.",
161
+ submissionError: "Что-то пошло не так. Пожалуйста, попробуйте снова.",
162
+ otpExpiredMessage: "Код подтверждения истёк, пожалуйста, запросите новый, чтобы продолжить.",
163
+ timeRemaining: "Код истекает через:",
164
+ selectChannelTitle: "Выберите способ подтверждения",
165
+ selectChannelMessage: "Выберите, как вы хотите получить код подтверждения",
166
+ channelSMS: "SMS",
167
+ channelEmail: "Email",
168
+ sendCode: "Отправить код",
169
+ waitSeconds: "Пожалуйста, подождите перед повторной отправкой:"
170
+ },
171
+ az: {
172
+ otpTitle: "Kod təsdiqi tələb olunur",
173
+ popupMessage: "Yeniləməni icra etmək üçün SMS/e-poçt ünvanınıza göndərilən təhlükəsizlik kodunu daxil edin.",
174
+ popupMessageLastWarning: "Növbəti təsdiqləmə cəhdi baş tutmasa, əməliyyatınız alınmayacaq və ödəniş üsuluna qaytarılacaqsınız.",
175
+ minutes: "dəqiqə",
176
+ errorHeader: "Xəta",
177
+ configError: "OTP məlumatları yüklənə bilmədi. Zəhmət olmasa sonra yenidən cəhd edin.",
178
+ otpHeading: "OTP daxil edin",
179
+ resendOtp: "OTP-ni yenidən göndər",
180
+ submit: "Göndər",
181
+ close: "Bağla",
182
+ invalidOtp: "Göndərdiyiniz kod yalnışdır. Zəhmət olmasa yenidən cəhd edin.",
183
+ accountBlocked: "OTP üçün çox sayda cəhd edildi. Hesabınız bir saat müddətinə bloklanıb.",
184
+ submissionError: "Nəsə səhv getdi. Zəhmət olmasa yenidən cəhd edin.",
185
+ otpExpiredMessage: "Təsdiqləmə kodunun müddəti bitib, davam etmək üçün yenisini tələb edin.",
186
+ timeRemaining: "Kodun müddəti bitir:",
187
+ selectChannelTitle: "Təsdiqləmə üsulunu seçin",
188
+ selectChannelMessage: "Təsdiqləmə kodunuzu necə almaq istədiyinizi seçin",
189
+ channelSMS: "SMS",
190
+ channelEmail: "E-poçt",
191
+ sendCode: "Kodu göndər",
192
+ waitSeconds: "Yenidən göndərmədən əvvəl zəhmət olmasa gözləyin:"
147
193
  }
148
194
  };
149
- function ct(n) {
195
+ function dt(n) {
150
196
  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}}');
151
197
  }
152
- function Le(n, t, e) {
198
+ function ze(n, t, e) {
153
199
  const i = n.slice();
154
200
  return i[69] = t[e], i[70] = t, i[71] = e, i;
155
201
  }
156
- function ut(n) {
157
- let t, e, i, r, a, u, s, d, f, v, w, T, M, b, m, _, S, I = (
202
+ function ct(n) {
203
+ let t, e, i, o, a, c, s, u, f, v, w, T, M, b, m, y, S, P = (
158
204
  /*$_*/
159
205
  n[19]("channelSMS") + ""
160
- ), q, F, V, P, te, N, J, oe, Q, C, z, W, le, se, ae = (
206
+ ), U, W, V, I, te, N, J, re, Q, E, L, q, le, se, ae = (
161
207
  /*$_*/
162
208
  n[19]("channelEmail") + ""
163
- ), K, pe, U, B, G, ce, ue;
164
- function de(c, k) {
209
+ ), F, pe, K, B, G, de, ce;
210
+ function ue(d, _) {
165
211
  return (
166
212
  /*showResendOtp*/
167
- c[9] ? mt : (
213
+ d[9] ? mt : (
168
214
  /*showOtpInput*/
169
- c[12] ? pt : ft
215
+ d[12] ? pt : ft
170
216
  )
171
217
  );
172
218
  }
173
- let $ = de(n), X = $(n), H = (
219
+ let $ = ue(n), X = $(n), H = (
174
220
  /*selectedChannel*/
175
- n[0] && Ie(n)
221
+ n[0] && Pe(n)
176
222
  );
177
- function fe(c, k) {
223
+ function fe(d, _) {
178
224
  if (
179
225
  /*isLoading*/
180
- c[3] && /*showOtpInput*/
181
- c[12]
226
+ d[3] && /*showOtpInput*/
227
+ d[12]
182
228
  )
183
- return _t;
229
+ return yt;
184
230
  if (
185
231
  /*showOtpInput*/
186
- c[12] && /*config*/
187
- c[4]
232
+ d[12] && /*config*/
233
+ d[4]
188
234
  )
189
235
  return vt;
190
236
  }
191
237
  let ne = fe(n), D = ne && ne(n);
192
- function me(c, k) {
238
+ function me(d, _) {
193
239
  if (
194
240
  /*showResendOtp*/
195
- c[9]
241
+ d[9]
196
242
  )
197
- return kt;
243
+ return _t;
198
244
  if (
199
245
  /*showOtpInput*/
200
- c[12] && /*config*/
201
- c[4]
246
+ d[12] && /*config*/
247
+ d[4]
202
248
  )
203
- return yt;
249
+ return kt;
204
250
  }
205
251
  let ie = me(n), A = ie && ie(n);
206
252
  return {
207
253
  c() {
208
- t = y("div"), X.c(), e = x(), i = y("div"), r = y("label"), a = y("div"), u = x(), s = y("input"), f = x(), v = y("div"), w = Y("svg"), T = Y("path"), M = Y("circle"), b = Y("circle"), m = Y("circle"), _ = x(), S = y("span"), q = L(I), F = x(), V = y("label"), P = y("div"), te = x(), N = y("input"), oe = x(), Q = y("div"), C = Y("svg"), z = Y("rect"), W = Y("path"), le = x(), se = y("span"), K = L(ae), pe = x(), H && H.c(), U = x(), D && D.c(), B = x(), G = y("div"), A && A.c(), l(t, "class", "OtpDescription"), l(a, "class", "RadioIndicator"), Z(
254
+ t = k("div"), X.c(), e = x(), i = k("div"), o = k("label"), a = k("div"), c = x(), s = k("input"), f = x(), v = k("div"), w = Z("svg"), T = Z("path"), M = Z("circle"), b = Z("circle"), m = Z("circle"), y = x(), S = k("span"), U = z(P), W = x(), V = k("label"), I = k("div"), te = x(), N = k("input"), re = x(), Q = k("div"), E = Z("svg"), L = Z("rect"), q = Z("path"), le = x(), se = k("span"), F = z(ae), pe = x(), H && H.c(), K = x(), D && D.c(), B = x(), G = k("div"), A && A.c(), l(t, "class", "OtpDescription"), l(a, "class", "RadioIndicator"), Y(
209
255
  a,
210
256
  "checked",
211
257
  /*selectedChannel*/
212
258
  n[0] === /*channels*/
213
259
  n[20].SMS
214
260
  ), l(s, "type", "radio"), l(s, "name", "channel"), s.value = /*channels*/
215
- n[20].SMS, s.checked = d = /*selectedChannel*/
261
+ n[20].SMS, s.checked = u = /*selectedChannel*/
216
262
  n[0] === /*channels*/
217
- 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"), Z(
218
- r,
263
+ 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(o, "class", "ChannelCheckbox"), Y(
264
+ o,
219
265
  "selected",
220
266
  /*selectedChannel*/
221
267
  n[0] === /*channels*/
222
268
  n[20].SMS
223
- ), l(P, "class", "RadioIndicator"), Z(
224
- P,
269
+ ), l(I, "class", "RadioIndicator"), Y(
270
+ I,
225
271
  "checked",
226
272
  /*selectedChannel*/
227
273
  n[0] === /*channels*/
@@ -229,7 +275,7 @@ function ut(n) {
229
275
  ), l(N, "type", "radio"), l(N, "name", "channel"), N.value = /*channels*/
230
276
  n[20].EMAIL, N.checked = J = /*selectedChannel*/
231
277
  n[0] === /*channels*/
232
- 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"), Z(
278
+ n[20].EMAIL, l(L, "x", "2"), l(L, "y", "4"), l(L, "width", "20"), l(L, "height", "16"), l(L, "rx", "2"), l(q, "d", "m2 7 10 6 10-6"), l(E, "xmlns", "http://www.w3.org/2000/svg"), l(E, "width", "24"), l(E, "height", "24"), l(E, "viewBox", "0 0 24 24"), l(E, "fill", "none"), l(E, "stroke", "currentColor"), l(E, "stroke-width", "2"), l(E, "stroke-linecap", "round"), l(E, "stroke-linejoin", "round"), l(Q, "class", "ChannelContent"), l(V, "class", "ChannelCheckbox"), Y(
233
279
  V,
234
280
  "selected",
235
281
  /*selectedChannel*/
@@ -237,8 +283,8 @@ function ut(n) {
237
283
  n[20].EMAIL
238
284
  ), l(i, "class", "ChannelSelection"), l(G, "class", "OtpActionButtons");
239
285
  },
240
- m(c, k) {
241
- O(c, t, k), X.m(t, null), O(c, e, k), O(c, i, k), 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, k), H && H.m(c, k), O(c, U, k), D && D.m(c, k), O(c, B, k), O(c, G, k), A && A.m(G, null), ce || (ue = [
286
+ m(d, _) {
287
+ C(d, t, _), X.m(t, null), C(d, e, _), C(d, i, _), p(i, o), p(o, a), p(o, c), p(o, s), p(o, f), p(o, v), p(v, w), p(w, T), p(w, M), p(w, b), p(w, m), p(v, y), p(v, S), p(S, U), p(i, W), p(i, V), p(V, I), p(V, te), p(V, N), p(V, re), p(V, Q), p(Q, E), p(E, L), p(E, q), p(Q, le), p(Q, se), p(se, F), C(d, pe, _), H && H.m(d, _), C(d, K, _), D && D.m(d, _), C(d, B, _), C(d, G, _), A && A.m(G, null), de || (ce = [
242
288
  ee(
243
289
  s,
244
290
  "change",
@@ -251,123 +297,123 @@ function ut(n) {
251
297
  /*change_handler_1*/
252
298
  n[40]
253
299
  )
254
- ], ce = !0);
300
+ ], de = !0);
255
301
  },
256
- p(c, k) {
257
- $ === ($ = de(c)) && X ? X.p(c, k) : (X.d(1), X = $(c), X && (X.c(), X.m(t, null))), k[0] & /*selectedChannel, channels*/
258
- 1048577 && Z(
302
+ p(d, _) {
303
+ $ === ($ = ue(d)) && X ? X.p(d, _) : (X.d(1), X = $(d), X && (X.c(), X.m(t, null))), _[0] & /*selectedChannel, channels*/
304
+ 1048577 && Y(
259
305
  a,
260
306
  "checked",
261
307
  /*selectedChannel*/
262
- c[0] === /*channels*/
263
- c[20].SMS
264
- ), k[0] & /*selectedChannel*/
265
- 1 && d !== (d = /*selectedChannel*/
266
- c[0] === /*channels*/
267
- c[20].SMS) && (s.checked = d), k[0] & /*$_*/
268
- 524288 && I !== (I = /*$_*/
269
- c[19]("channelSMS") + "") && R(q, I), k[0] & /*selectedChannel, channels*/
270
- 1048577 && Z(
271
- r,
308
+ d[0] === /*channels*/
309
+ d[20].SMS
310
+ ), _[0] & /*selectedChannel*/
311
+ 1 && u !== (u = /*selectedChannel*/
312
+ d[0] === /*channels*/
313
+ d[20].SMS) && (s.checked = u), _[0] & /*$_*/
314
+ 524288 && P !== (P = /*$_*/
315
+ d[19]("channelSMS") + "") && R(U, P), _[0] & /*selectedChannel, channels*/
316
+ 1048577 && Y(
317
+ o,
272
318
  "selected",
273
319
  /*selectedChannel*/
274
- c[0] === /*channels*/
275
- c[20].SMS
276
- ), k[0] & /*selectedChannel, channels*/
277
- 1048577 && Z(
278
- P,
320
+ d[0] === /*channels*/
321
+ d[20].SMS
322
+ ), _[0] & /*selectedChannel, channels*/
323
+ 1048577 && Y(
324
+ I,
279
325
  "checked",
280
326
  /*selectedChannel*/
281
- c[0] === /*channels*/
282
- c[20].EMAIL
283
- ), k[0] & /*selectedChannel*/
327
+ d[0] === /*channels*/
328
+ d[20].EMAIL
329
+ ), _[0] & /*selectedChannel*/
284
330
  1 && J !== (J = /*selectedChannel*/
285
- c[0] === /*channels*/
286
- c[20].EMAIL) && (N.checked = J), k[0] & /*$_*/
331
+ d[0] === /*channels*/
332
+ d[20].EMAIL) && (N.checked = J), _[0] & /*$_*/
287
333
  524288 && ae !== (ae = /*$_*/
288
- c[19]("channelEmail") + "") && R(K, ae), k[0] & /*selectedChannel, channels*/
289
- 1048577 && Z(
334
+ d[19]("channelEmail") + "") && R(F, ae), _[0] & /*selectedChannel, channels*/
335
+ 1048577 && Y(
290
336
  V,
291
337
  "selected",
292
338
  /*selectedChannel*/
293
- c[0] === /*channels*/
294
- c[20].EMAIL
339
+ d[0] === /*channels*/
340
+ d[20].EMAIL
295
341
  ), /*selectedChannel*/
296
- c[0] ? H ? H.p(c, k) : (H = Ie(c), H.c(), H.m(U.parentNode, U)) : H && (H.d(1), H = 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)) && A ? A.p(c, k) : (A && A.d(1), A = ie && ie(c), A && (A.c(), A.m(G, null)));
342
+ d[0] ? H ? H.p(d, _) : (H = Pe(d), H.c(), H.m(K.parentNode, K)) : H && (H.d(1), H = null), ne === (ne = fe(d)) && D ? D.p(d, _) : (D && D.d(1), D = ne && ne(d), D && (D.c(), D.m(B.parentNode, B))), ie === (ie = me(d)) && A ? A.p(d, _) : (A && A.d(1), A = ie && ie(d), A && (A.c(), A.m(G, null)));
297
343
  },
298
- d(c) {
299
- 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);
344
+ d(d) {
345
+ d && (O(t), O(e), O(i), O(pe), O(K), O(B), O(G)), X.d(), H && H.d(d), D && D.d(d), A && A.d(), de = !1, Ae(ce);
300
346
  }
301
347
  };
302
348
  }
303
- function dt(n) {
304
- let t, e, i, r, a, u, s = (
349
+ function ut(n) {
350
+ let t, e, i, o, a, c, s = (
305
351
  /*$_*/
306
352
  n[19]("errorHeader") + ""
307
- ), d, f, v, w, T, M, b = (
353
+ ), u, f, v, w, T, M, b = (
308
354
  /*$_*/
309
355
  n[19]("close") + ""
310
- ), m, _, S;
356
+ ), m, y, S;
311
357
  return {
312
358
  c() {
313
- t = y("div"), e = y("div"), i = Y("svg"), r = Y("path"), a = x(), u = y("h2"), d = L(s), f = x(), v = y("p"), w = L(
359
+ t = k("div"), e = k("div"), i = Z("svg"), o = Z("path"), a = x(), c = k("h2"), u = z(s), f = x(), v = k("p"), w = z(
314
360
  /*errorMessage*/
315
361
  n[8]
316
- ), T = x(), M = y("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");
362
+ ), T = x(), M = k("button"), m = z(b), l(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"), 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");
317
363
  },
318
- m(I, q) {
319
- 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(
364
+ m(P, U) {
365
+ C(P, t, U), p(t, e), p(e, i), p(i, o), p(e, a), p(e, c), p(c, u), p(t, f), p(t, v), p(v, w), p(t, T), p(t, M), p(M, m), y || (S = ee(
320
366
  M,
321
367
  "click",
322
368
  /*manualClosePopup*/
323
369
  n[28]
324
- ), _ = !0);
370
+ ), y = !0);
325
371
  },
326
- p(I, q) {
327
- q[0] & /*$_*/
372
+ p(P, U) {
373
+ U[0] & /*$_*/
328
374
  524288 && s !== (s = /*$_*/
329
- I[19]("errorHeader") + "") && R(d, s), q[0] & /*errorMessage*/
375
+ P[19]("errorHeader") + "") && R(u, s), U[0] & /*errorMessage*/
330
376
  256 && R(
331
377
  w,
332
378
  /*errorMessage*/
333
- I[8]
334
- ), q[0] & /*$_*/
379
+ P[8]
380
+ ), U[0] & /*$_*/
335
381
  524288 && b !== (b = /*$_*/
336
- I[19]("close") + "") && R(m, b);
382
+ P[19]("close") + "") && R(m, b);
337
383
  },
338
- d(I) {
339
- I && E(t), _ = !1, S();
384
+ d(P) {
385
+ P && O(t), y = !1, S();
340
386
  }
341
387
  };
342
388
  }
343
389
  function pt(n) {
344
- let t, e, i, r;
390
+ let t, e, i, o;
345
391
  function a(f, v) {
346
392
  return (
347
393
  /*isLastWarning*/
348
394
  f[10] ? ht : gt
349
395
  );
350
396
  }
351
- let u = a(n), s = u(n), d = (
397
+ let c = a(n), s = c(n), u = (
352
398
  /*hasErrors*/
353
- n[6] && ze(n)
399
+ n[6] && Le(n)
354
400
  );
355
401
  return {
356
402
  c() {
357
- t = y("p"), s.c(), i = x(), d && d.c(), r = tt(), l(t, "class", e = /*isLastWarning*/
403
+ t = k("p"), s.c(), i = x(), u && u.c(), o = tt(), l(t, "class", e = /*isLastWarning*/
358
404
  n[10] ? "LastWarningMessage" : "");
359
405
  },
360
406
  m(f, v) {
361
- O(f, t, v), s.m(t, null), O(f, i, v), d && d.m(f, v), O(f, r, v);
407
+ C(f, t, v), s.m(t, null), C(f, i, v), u && u.m(f, v), C(f, o, v);
362
408
  },
363
409
  p(f, v) {
364
- 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*/
410
+ c === (c = a(f)) && s ? s.p(f, v) : (s.d(1), s = c(f), s && (s.c(), s.m(t, null))), v[0] & /*isLastWarning*/
365
411
  1024 && e !== (e = /*isLastWarning*/
366
412
  f[10] ? "LastWarningMessage" : "") && l(t, "class", e), /*hasErrors*/
367
- f[6] ? d ? d.p(f, v) : (d = ze(f), d.c(), d.m(r.parentNode, r)) : d && (d.d(1), d = null);
413
+ f[6] ? u ? u.p(f, v) : (u = Le(f), u.c(), u.m(o.parentNode, o)) : u && (u.d(1), u = null);
368
414
  },
369
415
  d(f) {
370
- f && (E(t), E(i), E(r)), s.d(), d && d.d(f);
416
+ f && (O(t), O(i), O(o)), s.d(), u && u.d(f);
371
417
  }
372
418
  };
373
419
  }
@@ -378,18 +424,18 @@ function ft(n) {
378
424
  ), i;
379
425
  return {
380
426
  c() {
381
- t = y("p"), i = L(e);
427
+ t = k("p"), i = z(e);
382
428
  },
383
- m(r, a) {
384
- O(r, t, a), p(t, i);
429
+ m(o, a) {
430
+ C(o, t, a), p(t, i);
385
431
  },
386
- p(r, a) {
432
+ p(o, a) {
387
433
  a[0] & /*$_*/
388
434
  524288 && e !== (e = /*$_*/
389
- (r[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && R(i, e);
435
+ (o[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && R(i, e);
390
436
  },
391
- d(r) {
392
- r && E(t);
437
+ d(o) {
438
+ o && O(t);
393
439
  }
394
440
  };
395
441
  }
@@ -400,18 +446,18 @@ function mt(n) {
400
446
  ), i;
401
447
  return {
402
448
  c() {
403
- t = y("p"), i = L(e), l(t, "class", "OtpNoticeMessage"), l(t, "role", "alert");
449
+ t = k("p"), i = z(e), l(t, "class", "OtpNoticeMessage"), l(t, "role", "alert");
404
450
  },
405
- m(r, a) {
406
- O(r, t, a), p(t, i);
451
+ m(o, a) {
452
+ C(o, t, a), p(t, i);
407
453
  },
408
- p(r, a) {
454
+ p(o, a) {
409
455
  a[0] & /*$_*/
410
456
  524288 && e !== (e = /*$_*/
411
- r[19]("otpExpiredMessage") + "") && R(i, e);
457
+ o[19]("otpExpiredMessage") + "") && R(i, e);
412
458
  },
413
- d(r) {
414
- r && E(t);
459
+ d(o) {
460
+ o && O(t);
415
461
  }
416
462
  };
417
463
  }
@@ -422,18 +468,18 @@ function gt(n) {
422
468
  ), e;
423
469
  return {
424
470
  c() {
425
- e = L(t);
471
+ e = z(t);
426
472
  },
427
- m(i, r) {
428
- O(i, e, r);
473
+ m(i, o) {
474
+ C(i, e, o);
429
475
  },
430
- p(i, r) {
431
- r[0] & /*$_*/
476
+ p(i, o) {
477
+ o[0] & /*$_*/
432
478
  524288 && t !== (t = /*$_*/
433
479
  i[19]("popupMessage") + "") && R(e, t);
434
480
  },
435
481
  d(i) {
436
- i && E(e);
482
+ i && O(e);
437
483
  }
438
484
  };
439
485
  }
@@ -444,35 +490,35 @@ function ht(n) {
444
490
  ), e;
445
491
  return {
446
492
  c() {
447
- e = L(t);
493
+ e = z(t);
448
494
  },
449
- m(i, r) {
450
- O(i, e, r);
495
+ m(i, o) {
496
+ C(i, e, o);
451
497
  },
452
- p(i, r) {
453
- r[0] & /*$_*/
498
+ p(i, o) {
499
+ o[0] & /*$_*/
454
500
  524288 && t !== (t = /*$_*/
455
501
  i[19]("popupMessageLastWarning") + "") && R(e, t);
456
502
  },
457
503
  d(i) {
458
- i && E(e);
504
+ i && O(e);
459
505
  }
460
506
  };
461
507
  }
462
- function ze(n) {
508
+ function Le(n) {
463
509
  let t, e;
464
510
  return {
465
511
  c() {
466
- t = y("p"), e = L(
512
+ t = k("p"), e = z(
467
513
  /*errorMessage*/
468
514
  n[8]
469
515
  ), l(t, "class", "OtpErrorMessage"), l(t, "role", "alert");
470
516
  },
471
- m(i, r) {
472
- O(i, t, r), p(t, e);
517
+ m(i, o) {
518
+ C(i, t, o), p(t, e);
473
519
  },
474
- p(i, r) {
475
- r[0] & /*errorMessage*/
520
+ p(i, o) {
521
+ o[0] & /*errorMessage*/
476
522
  256 && R(
477
523
  e,
478
524
  /*errorMessage*/
@@ -480,44 +526,44 @@ function ze(n) {
480
526
  );
481
527
  },
482
528
  d(i) {
483
- i && E(t);
529
+ i && O(t);
484
530
  }
485
531
  };
486
532
  }
487
- function Ie(n) {
488
- let t, e, i, r;
489
- function a(d, f) {
533
+ function Pe(n) {
534
+ let t, e, i, o;
535
+ function a(u, f) {
490
536
  return (
491
537
  /*currentChannelTimer*/
492
- d[17] > 0 ? wt : bt
538
+ u[17] > 0 ? wt : bt
493
539
  );
494
540
  }
495
- let u = a(n), s = u(n);
541
+ let c = a(n), s = c(n);
496
542
  return {
497
543
  c() {
498
- t = y("button"), s.c(), l(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
499
- n[18], Z(t, "disabled", !/*canSubmitChannel*/
544
+ t = k("button"), s.c(), l(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
545
+ n[18], Y(t, "disabled", !/*canSubmitChannel*/
500
546
  n[18] || /*waitingForConfig*/
501
547
  n[16]);
502
548
  },
503
- m(d, f) {
504
- O(d, t, f), s.m(t, null), i || (r = ee(
549
+ m(u, f) {
550
+ C(u, t, f), s.m(t, null), i || (o = ee(
505
551
  t,
506
552
  "click",
507
553
  /*handleChannelSubmit*/
508
554
  n[22]
509
555
  ), i = !0);
510
556
  },
511
- p(d, f) {
512
- 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*/
557
+ p(u, f) {
558
+ c === (c = a(u)) && s ? s.p(u, f) : (s.d(1), s = c(u), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
513
559
  262144 && e !== (e = !/*canSubmitChannel*/
514
- d[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
515
- 327680 && Z(t, "disabled", !/*canSubmitChannel*/
516
- d[18] || /*waitingForConfig*/
517
- d[16]);
560
+ u[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
561
+ 327680 && Y(t, "disabled", !/*canSubmitChannel*/
562
+ u[18] || /*waitingForConfig*/
563
+ u[16]);
518
564
  },
519
- d(d) {
520
- d && E(t), s.d(), i = !1, r();
565
+ d(u) {
566
+ u && O(t), s.d(), i = !1, o();
521
567
  }
522
568
  };
523
569
  }
@@ -528,18 +574,18 @@ function bt(n) {
528
574
  ), e;
529
575
  return {
530
576
  c() {
531
- e = L(t);
577
+ e = z(t);
532
578
  },
533
- m(i, r) {
534
- O(i, e, r);
579
+ m(i, o) {
580
+ C(i, e, o);
535
581
  },
536
- p(i, r) {
537
- r[0] & /*$_*/
582
+ p(i, o) {
583
+ o[0] & /*$_*/
538
584
  524288 && t !== (t = /*$_*/
539
585
  i[19]("sendCode") + "") && R(e, t);
540
586
  },
541
587
  d(i) {
542
- i && E(e);
588
+ i && O(e);
543
589
  }
544
590
  };
545
591
  }
@@ -547,29 +593,29 @@ function wt(n) {
547
593
  let t = (
548
594
  /*$_*/
549
595
  n[19]("waitSeconds") + ""
550
- ), e, i, r, a;
596
+ ), e, i, o, a;
551
597
  return {
552
598
  c() {
553
- e = L(t), i = L(" ("), r = L(
599
+ e = z(t), i = z(" ("), o = z(
554
600
  /*currentChannelTimer*/
555
601
  n[17]
556
- ), a = L("s)");
602
+ ), a = z("s)");
557
603
  },
558
- m(u, s) {
559
- O(u, e, s), O(u, i, s), O(u, r, s), O(u, a, s);
604
+ m(c, s) {
605
+ C(c, e, s), C(c, i, s), C(c, o, s), C(c, a, s);
560
606
  },
561
- p(u, s) {
607
+ p(c, s) {
562
608
  s[0] & /*$_*/
563
609
  524288 && t !== (t = /*$_*/
564
- u[19]("waitSeconds") + "") && R(e, t), s[0] & /*currentChannelTimer*/
610
+ c[19]("waitSeconds") + "") && R(e, t), s[0] & /*currentChannelTimer*/
565
611
  131072 && R(
566
- r,
612
+ o,
567
613
  /*currentChannelTimer*/
568
- u[17]
614
+ c[17]
569
615
  );
570
616
  },
571
- d(u) {
572
- u && (E(e), E(i), E(r), E(a));
617
+ d(c) {
618
+ c && (O(e), O(i), O(o), O(a));
573
619
  }
574
620
  };
575
621
  }
@@ -577,53 +623,53 @@ function vt(n) {
577
623
  let t, e, i = (
578
624
  /*$_*/
579
625
  n[19]("timeRemaining") + ""
580
- ), r, a, u = (
626
+ ), o, a, c = (
581
627
  /*formatTime*/
582
628
  n[23](
583
629
  /*timeLeft*/
584
630
  n[5]
585
631
  ) + ""
586
- ), s, d, f = (
632
+ ), s, u, f = (
587
633
  /*$_*/
588
634
  n[19]("minutes") + ""
589
- ), v, w, T, M = Oe(
635
+ ), v, w, T, M = Ce(
590
636
  /*otp*/
591
637
  n[2]
592
638
  ), b = [];
593
639
  for (let m = 0; m < M.length; m += 1)
594
- b[m] = Pe(Le(n, M, m));
640
+ b[m] = Ie(ze(n, M, m));
595
641
  return {
596
642
  c() {
597
- t = y("div"), e = y("div"), r = L(i), a = x(), s = L(u), d = x(), v = L(f), w = x(), T = y("div");
643
+ t = k("div"), e = k("div"), o = z(i), a = x(), s = z(c), u = x(), v = z(f), w = x(), T = k("div");
598
644
  for (let m = 0; m < b.length; m += 1)
599
645
  b[m].c();
600
646
  l(e, "class", "OtpTimer"), l(T, "class", "OtpField"), l(t, "class", "OtpFieldWrapper");
601
647
  },
602
- m(m, _) {
603
- 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);
648
+ m(m, y) {
649
+ C(m, t, y), p(t, e), p(e, o), p(e, a), p(e, s), p(e, u), p(e, v), p(t, w), p(t, T);
604
650
  for (let S = 0; S < b.length; S += 1)
605
651
  b[S] && b[S].m(T, null);
606
652
  },
607
- p(m, _) {
608
- if (_[0] & /*$_*/
653
+ p(m, y) {
654
+ if (y[0] & /*$_*/
609
655
  524288 && i !== (i = /*$_*/
610
- m[19]("timeRemaining") + "") && R(r, i), _[0] & /*timeLeft*/
611
- 32 && u !== (u = /*formatTime*/
656
+ m[19]("timeRemaining") + "") && R(o, i), y[0] & /*timeLeft*/
657
+ 32 && c !== (c = /*formatTime*/
612
658
  m[23](
613
659
  /*timeLeft*/
614
660
  m[5]
615
- ) + "") && R(s, u), _[0] & /*$_*/
661
+ ) + "") && R(s, c), y[0] & /*$_*/
616
662
  524288 && f !== (f = /*$_*/
617
- m[19]("minutes") + "") && R(v, f), _[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
663
+ m[19]("minutes") + "") && R(v, f), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
618
664
  117458964) {
619
- M = Oe(
665
+ M = Ce(
620
666
  /*otp*/
621
667
  m[2]
622
668
  );
623
669
  let S;
624
670
  for (S = 0; S < M.length; S += 1) {
625
- const I = Le(m, M, S);
626
- b[S] ? b[S].p(I, _) : (b[S] = Pe(I), b[S].c(), b[S].m(T, null));
671
+ const P = ze(m, M, S);
672
+ b[S] ? b[S].p(P, y) : (b[S] = Ie(P), b[S].c(), b[S].m(T, null));
627
673
  }
628
674
  for (; S < b.length; S += 1)
629
675
  b[S].d(1);
@@ -631,36 +677,36 @@ function vt(n) {
631
677
  }
632
678
  },
633
679
  d(m) {
634
- m && E(t), nt(b, m);
680
+ m && O(t), nt(b, m);
635
681
  }
636
682
  };
637
683
  }
638
- function _t(n) {
684
+ function yt(n) {
639
685
  let t;
640
686
  return {
641
687
  c() {
642
- t = y("div"), t.innerHTML = '<span class="OtpLoader"></span>', l(t, "class", "OtpLoaderContainer");
688
+ t = k("div"), t.innerHTML = '<span class="OtpLoader"></span>', l(t, "class", "OtpLoaderContainer");
643
689
  },
644
690
  m(e, i) {
645
- O(e, t, i);
691
+ C(e, t, i);
646
692
  },
647
- p: ye,
693
+ p: ke,
648
694
  d(e) {
649
- e && E(t);
695
+ e && O(t);
650
696
  }
651
697
  };
652
698
  }
653
- function Pe(n) {
654
- let t, e, i, r = (
699
+ function Ie(n) {
700
+ let t, e, i, o = (
655
701
  /*index*/
656
702
  n[71]
657
- ), a, u;
703
+ ), a, c;
658
704
  const s = () => (
659
705
  /*input_binding*/
660
- n[41](t, r)
661
- ), d = () => (
706
+ n[41](t, o)
707
+ ), u = () => (
662
708
  /*input_binding*/
663
- n[41](null, r)
709
+ n[41](null, o)
664
710
  );
665
711
  function f(...w) {
666
712
  return (
@@ -684,7 +730,7 @@ function Pe(n) {
684
730
  }
685
731
  return {
686
732
  c() {
687
- t = y("input"), l(t, "id", `otp-input-${/*index*/
733
+ t = k("input"), l(t, "id", `otp-input-${/*index*/
688
734
  n[71]}`), l(t, "type", "text"), l(t, "class", e = `otp-box ${/*config*/
689
735
  n[4].inputLength % 2 === 0 && /*index*/
690
736
  n[71] === /*config*/
@@ -693,7 +739,7 @@ function Pe(n) {
693
739
  n[11], l(t, "autocomplete", "off");
694
740
  },
695
741
  m(w, T) {
696
- O(w, t, T), s(), a || (u = [
742
+ C(w, t, T), s(), a || (c = [
697
743
  ee(t, "input", f),
698
744
  ee(t, "keydown", v),
699
745
  ee(
@@ -713,233 +759,233 @@ function Pe(n) {
713
759
  4 && i !== (i = /*char*/
714
760
  n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
715
761
  2048 && (t.disabled = /*inputDisabled*/
716
- n[11]), r !== /*index*/
717
- n[71] && (d(), r = /*index*/
762
+ n[11]), o !== /*index*/
763
+ n[71] && (u(), o = /*index*/
718
764
  n[71], s());
719
765
  },
720
766
  d(w) {
721
- w && E(t), d(), a = !1, Ae(u);
767
+ w && O(t), u(), a = !1, Ae(c);
722
768
  }
723
769
  };
724
770
  }
725
- function yt(n) {
771
+ function kt(n) {
726
772
  let t, e = (
727
773
  /*$_*/
728
774
  n[19]("submit") + ""
729
- ), i, r, a, u;
775
+ ), i, o, a, c;
730
776
  return {
731
777
  c() {
732
- t = y("button"), i = L(e), l(t, "class", "OtpButton"), t.disabled = r = /*otp*/
778
+ t = k("button"), i = z(e), l(t, "class", "OtpButton"), t.disabled = o = /*otp*/
733
779
  n[2].join("").length !== /*config*/
734
780
  n[4].inputLength || /*isSubmitting*/
735
781
  n[13] || /*maxAttempts*/
736
782
  n[15];
737
783
  },
738
- m(s, d) {
739
- O(s, t, d), p(t, i), a || (u = ee(
784
+ m(s, u) {
785
+ C(s, t, u), p(t, i), a || (c = ee(
740
786
  t,
741
787
  "click",
742
788
  /*submitOtp*/
743
789
  n[29]
744
790
  ), a = !0);
745
791
  },
746
- p(s, d) {
747
- d[0] & /*$_*/
792
+ p(s, u) {
793
+ u[0] & /*$_*/
748
794
  524288 && e !== (e = /*$_*/
749
- s[19]("submit") + "") && R(i, e), d[0] & /*otp, config, isSubmitting, maxAttempts*/
750
- 40980 && r !== (r = /*otp*/
795
+ s[19]("submit") + "") && R(i, e), u[0] & /*otp, config, isSubmitting, maxAttempts*/
796
+ 40980 && o !== (o = /*otp*/
751
797
  s[2].join("").length !== /*config*/
752
798
  s[4].inputLength || /*isSubmitting*/
753
799
  s[13] || /*maxAttempts*/
754
- s[15]) && (t.disabled = r);
800
+ s[15]) && (t.disabled = o);
755
801
  },
756
802
  d(s) {
757
- s && E(t), a = !1, u();
803
+ s && O(t), a = !1, c();
758
804
  }
759
805
  };
760
806
  }
761
- function kt(n) {
807
+ function _t(n) {
762
808
  let t, e = (
763
809
  /*$_*/
764
810
  n[19]("resendOtp") + ""
765
- ), i, r, a;
811
+ ), i, o, a;
766
812
  return {
767
813
  c() {
768
- t = y("button"), i = L(e), l(t, "class", "OtpButton");
814
+ t = k("button"), i = z(e), l(t, "class", "OtpButton");
769
815
  },
770
- m(u, s) {
771
- O(u, t, s), p(t, i), r || (a = ee(
816
+ m(c, s) {
817
+ C(c, t, s), p(t, i), o || (a = ee(
772
818
  t,
773
819
  "click",
774
820
  /*handleResendOtp*/
775
821
  n[27]
776
- ), r = !0);
822
+ ), o = !0);
777
823
  },
778
- p(u, s) {
824
+ p(c, s) {
779
825
  s[0] & /*$_*/
780
826
  524288 && e !== (e = /*$_*/
781
- u[19]("resendOtp") + "") && R(i, e);
827
+ c[19]("resendOtp") + "") && R(i, e);
782
828
  },
783
- d(u) {
784
- u && E(t), r = !1, a();
829
+ d(c) {
830
+ c && O(t), o = !1, a();
785
831
  }
786
832
  };
787
833
  }
788
834
  function St(n) {
789
835
  let t;
790
- function e(a, u) {
836
+ function e(a, c) {
791
837
  return (
792
838
  /*hasConfigErrors*/
793
- a[7] ? dt : ut
839
+ a[7] ? ut : ct
794
840
  );
795
841
  }
796
- let i = e(n), r = i(n);
842
+ let i = e(n), o = i(n);
797
843
  return {
798
844
  c() {
799
- t = y("div"), r.c(), l(t, "class", "OtpContent");
845
+ t = k("div"), o.c(), l(t, "class", "OtpContent");
800
846
  },
801
- m(a, u) {
802
- O(a, t, u), r.m(t, null), n[44](t);
847
+ m(a, c) {
848
+ C(a, t, c), o.m(t, null), n[44](t);
803
849
  },
804
- p(a, u) {
805
- i === (i = e(a)) && r ? r.p(a, u) : (r.d(1), r = i(a), r && (r.c(), r.m(t, null)));
850
+ p(a, c) {
851
+ i === (i = e(a)) && o ? o.p(a, c) : (o.d(1), o = i(a), o && (o.c(), o.m(t, null)));
806
852
  },
807
- i: ye,
808
- o: ye,
853
+ i: ke,
854
+ o: ke,
809
855
  d(a) {
810
- a && E(t), r.d(), n[44](null);
856
+ a && O(t), o.d(), n[44](null);
811
857
  }
812
858
  };
813
859
  }
814
- function Ct(n, t, e) {
815
- let i, r, a;
816
- $e(n, rt, (o) => e(19, a = o));
817
- 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;
818
- const de = { SMS: "sms", EMAIL: "email" }, $ = {
860
+ function Et(n, t, e) {
861
+ let i, o, a;
862
+ $e(n, ot, (r) => e(19, a = r));
863
+ let { clientstyling: c = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: f = "en" } = t, { endpoint: v } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, S = 0, P = "", U = "", W = !1, V = !1, I = "", te = "", N = "", J = !1, re = !1, Q = !1, E = "", L = {}, q = null, le = !1, se = !1, ae = "", F, pe, K = [], B = null, G = 0, de = !1, ce = !1;
864
+ const ue = { SMS: "sms", EMAIL: "email" }, $ = {
819
865
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
820
866
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
821
867
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
822
868
  };
823
- Object.keys(Te).forEach((o) => {
824
- Me(o, Te[o]);
869
+ Object.keys(Te).forEach((r) => {
870
+ Me(r, Te[r]);
825
871
  });
826
872
  const X = () => {
827
873
  at(f);
828
874
  }, H = () => {
829
- fetch(T).then((o) => o.json()).then((o) => {
830
- Object.keys(o).forEach((g) => {
831
- Me(g, o[g]);
875
+ fetch(T).then((r) => r.json()).then((r) => {
876
+ Object.keys(r).forEach((g) => {
877
+ Me(g, r[g]);
832
878
  });
833
- }).catch((o) => {
834
- console.log(o);
879
+ }).catch((r) => {
880
+ console.log(r);
835
881
  });
836
- }, fe = async (o) => {
837
- if (o.detail?.["x-step-up-required"]) {
838
- 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) {
839
- e(3, m = !1), e(7, V = !0), e(8, P = a("configError"));
882
+ }, fe = async (r) => {
883
+ if (r.detail?.["x-step-up-required"]) {
884
+ if (e(7, V = !1), e(6, W = !1), e(8, I = ""), te = r.detail["x-step-up-token"], N = r.detail.flow, !te || !N) {
885
+ e(3, m = !1), e(7, V = !0), e(8, I = a("configError"));
840
886
  return;
841
887
  }
842
888
  e(12, le = !1), e(3, m = !1);
843
889
  }
844
890
  }, ne = () => {
845
- 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 = {});
891
+ B && (clearInterval(B), B = null), q && (clearInterval(q), q = null), e(6, W = !1), e(7, V = !1), e(8, I = ""), e(10, re = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, le = !1), e(38, L = {});
846
892
  }, D = () => {
847
893
  ne();
848
- }, me = () => new Promise((o, g) => {
894
+ }, me = () => new Promise((r, g) => {
849
895
  const h = new URL(`${v}/api/pam/v1/mfa/challenge/${te}`), j = new Headers();
850
- j.append("accept", "application/json"), j.append("Content-Type", "application/json"), j.append("X-SessionId", `${w}`), e(16, ue = !0);
851
- const _e = {
896
+ j.append("accept", "application/json"), j.append("Content-Type", "application/json"), j.append("X-SessionId", `${w}`), e(16, ce = !0);
897
+ const ye = {
852
898
  method: "PATCH",
853
899
  headers: j,
854
900
  body: JSON.stringify({
855
- channel: C,
901
+ channel: E,
856
902
  templateId: M
857
903
  })
858
904
  };
859
- fetch(h, _e).then((Ce) => Ce.json()).then(() => {
860
- e(15, ce = !1), k(), he(), o();
861
- }).catch((Ce) => {
905
+ fetch(h, ye).then((Ee) => Ee.json()).then(() => {
906
+ e(15, de = !1), _(), he(), r();
907
+ }).catch((Ee) => {
862
908
  g();
863
909
  });
864
910
  }), ie = () => {
865
- W && clearInterval(W), W = setInterval(
911
+ q && clearInterval(q), q = setInterval(
866
912
  () => {
867
- const o = { ...z };
913
+ const r = { ...L };
868
914
  let g = !1;
869
- Object.keys(o).forEach((h) => {
870
- o[h] > 0 && (o[h]--, g = !0);
871
- }), e(38, z = o), !g && W && (clearInterval(W), W = null);
915
+ Object.keys(r).forEach((h) => {
916
+ r[h] > 0 && (r[h]--, g = !0);
917
+ }), e(38, L = r), !g && q && (clearInterval(q), q = null);
872
918
  },
873
919
  1e3
874
920
  );
875
- }, A = (o) => {
876
- e(0, C = o);
877
- }, c = async () => {
878
- if (!(!C || z[C] && z[C] > 0)) {
879
- e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${C}`);
921
+ }, A = (r) => {
922
+ e(0, E = r);
923
+ }, d = async () => {
924
+ if (!(!E || L[E] && L[E] > 0)) {
925
+ e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
880
926
  try {
881
- await me(), await ve(), e(38, z = {
882
- ...z,
883
- [C]: 30
884
- }), ie(), e(12, le = !0), k(), he();
885
- } catch (o) {
886
- console.error("Error submitting channel:", o), e(6, F = !0), e(8, P = a("submissionError"));
927
+ await me(), await ve(), e(38, L = {
928
+ ...L,
929
+ [E]: 30
930
+ }), ie(), e(12, le = !0), _(), he();
931
+ } catch (r) {
932
+ console.error("Error submitting channel:", r), e(6, W = !0), e(8, I = a("submissionError"));
887
933
  } finally {
888
934
  e(3, m = !1);
889
935
  }
890
936
  }
891
- }, k = () => {
892
- const o = new Date(I), g = new Date(q), h = /* @__PURE__ */ new Date(), j = g.getTime() - h.getTime();
893
- G = o.getTime() - j;
894
- const ge = Date.now(), _e = Math.max(0, Math.floor((G - ge) / 1e3));
895
- e(5, S = _e);
937
+ }, _ = () => {
938
+ const r = new Date(P), g = new Date(U), h = /* @__PURE__ */ new Date(), j = g.getTime() - h.getTime();
939
+ G = r.getTime() - j;
940
+ const ge = Date.now(), ye = Math.max(0, Math.floor((G - ge) / 1e3));
941
+ e(5, S = ye);
896
942
  }, he = () => {
897
943
  B && clearInterval(B), B = setInterval(
898
944
  () => {
899
- const o = Date.now(), g = Math.max(0, Math.floor((G - o) / 1e3));
900
- 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));
945
+ const r = Date.now(), g = Math.max(0, Math.floor((G - r) / 1e3));
946
+ e(5, S = g), e(11, Q = g <= 0), g <= 0 && (clearInterval(B), B = null, e(9, J = !0), e(6, W = !1), e(10, re = !1));
901
947
  },
902
948
  1e3
903
949
  );
904
- }, xe = (o) => {
905
- const g = Math.floor(o / 60), h = o % 60;
950
+ }, xe = (r) => {
951
+ const g = Math.floor(r / 60), h = r % 60;
906
952
  return `${g.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
907
- }, be = (o, g) => {
953
+ }, be = (r, g) => {
908
954
  const h = [...b];
909
- h[o] = g.toUpperCase(), e(2, b = h), h.join("") !== ae && e(13, se = !1);
910
- }, Re = (o) => {
911
- o.preventDefault();
912
- const h = (o.clipboardData?.getData("text")?.trim() || "").slice(0, _.inputLength).split("");
913
- e(2, b = [...h, ...Array(_.inputLength - h.length).fill("")]), U[h.length]?.focus(), h.length === _.inputLength && we();
914
- }, ke = (o, g) => {
915
- const h = o.target, j = h.value;
916
- /^[a-z0-9]$/i.test(j) && (be(g, j), U[g + 1]?.focus()), h.value = "";
917
- }, Se = (o, g) => {
918
- const h = o.key, j = o.ctrlKey || o.metaKey;
955
+ h[r] = g.toUpperCase(), e(2, b = h), h.join("") !== ae && e(13, se = !1);
956
+ }, Re = (r) => {
957
+ r.preventDefault();
958
+ const h = (r.clipboardData?.getData("text")?.trim() || "").slice(0, y.inputLength).split("");
959
+ e(2, b = [...h, ...Array(y.inputLength - h.length).fill("")]), K[h.length]?.focus(), h.length === y.inputLength && we();
960
+ }, _e = (r, g) => {
961
+ const h = r.target, j = h.value;
962
+ /^[a-z0-9]$/i.test(j) && (be(g, j), K[g + 1]?.focus()), h.value = "";
963
+ }, Se = (r, g) => {
964
+ const h = r.key, j = r.ctrlKey || r.metaKey;
919
965
  if (/^[a-z0-9]$/i.test(h)) {
920
966
  if (j && h.toLowerCase() === "v")
921
967
  return;
922
- o.preventDefault(), be(g, h), U[g + 1]?.focus();
968
+ r.preventDefault(), be(g, h), K[g + 1]?.focus();
923
969
  } else
924
- h === "Backspace" ? (o.preventDefault(), b[g] !== "" && be(g, ""), U[g - 1]?.focus()) : h === "Enter" && (o.preventDefault(), we());
970
+ h === "Backspace" ? (r.preventDefault(), b[g] !== "" && be(g, ""), K[g - 1]?.focus()) : h === "Enter" && (r.preventDefault(), we());
925
971
  }, De = () => {
926
972
  N == "stateful" && (me(), e(9, J = !1));
927
- const o = new CustomEvent("otpResendRequested");
928
- window.dispatchEvent(o);
929
- }, Ve = (o) => {
973
+ const r = new CustomEvent("otpResendRequested");
974
+ window.dispatchEvent(r);
975
+ }, Ve = (r) => {
930
976
  window.dispatchEvent(new CustomEvent(
931
977
  "otpSubmitted",
932
978
  {
933
979
  detail: {
934
- code: o,
935
- maxAttempts: _.maxValidationAttempts,
936
- validatedAttempts: _.numberOfValidateAttempts
980
+ code: r,
981
+ maxAttempts: y.maxValidationAttempts,
982
+ validatedAttempts: y.numberOfValidateAttempts
937
983
  }
938
984
  }
939
985
  ));
940
- }, Be = async (o) => {
986
+ }, Be = async (r) => {
941
987
  const g = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, v);
942
- g.searchParams.append("input", o);
988
+ g.searchParams.append("input", r);
943
989
  try {
944
990
  const h = await fetch(g.href, { method: "POST" });
945
991
  if (h.status === 200) {
@@ -950,7 +996,7 @@ function Ct(n, t, e) {
950
996
  throw new Error(j.message);
951
997
  } catch (h) {
952
998
  if (await ve(), h.message === $.INTERNAL_SERVER_ERROR) {
953
- if (_.numberOfValidateAttempts === _.maxValidationAttempts - 1) {
999
+ if (y.numberOfValidateAttempts === y.maxValidationAttempts - 1) {
954
1000
  window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
955
1001
  {
956
1002
  type: "WidgetNotification",
@@ -963,10 +1009,10 @@ function Ct(n, t, e) {
963
1009
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
964
1010
  return;
965
1011
  }
966
- e(6, F = !0), e(8, P = a("invalidOtp")), ve();
1012
+ e(6, W = !0), e(8, I = a("invalidOtp")), ve();
967
1013
  return;
968
1014
  }
969
- 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"));
1015
+ h.message === $.MAX_INVALIDATE && (e(6, W = !0), e(8, I = a("invalidOtp"))), h.details === $.MAX_ATTEMPTS_EXCEEDED && e(15, de = !0), console.error("OTP submission failed:", h), e(6, W = !0), e(8, I = a("submissionError"));
970
1016
  } finally {
971
1017
  e(3, m = !1);
972
1018
  }
@@ -982,114 +1028,114 @@ function Ct(n, t, e) {
982
1028
  }, je = () => {
983
1029
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
984
1030
  }, we = async () => {
985
- if (b.join("").length !== _.inputLength) {
986
- e(6, F = !0), e(8, P = a("invalidOtp"));
1031
+ if (b.join("").length !== y.inputLength) {
1032
+ e(6, W = !0), e(8, I = a("invalidOtp"));
987
1033
  return;
988
1034
  }
989
- const o = b.join("");
990
- 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);
1035
+ const r = b.join("");
1036
+ e(13, se = !0), ae = r, e(3, m = !0), e(6, W = !1), e(8, I = ""), N === "stateless" && Ve(r), N === "stateful" && await Be(r);
991
1037
  }, ve = async () => {
992
1038
  if (v)
993
1039
  try {
994
1040
  e(3, m = !0);
995
- const o = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, v), g = await fetch(o.href), h = await g.json();
1041
+ const r = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, v), g = await fetch(r.href), h = await g.json();
996
1042
  if (g.ok)
997
- 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), k(), he(), e(16, ue = !1);
1043
+ e(4, y = h), e(2, b = Array(y.inputLength).fill("")), e(9, J = !1), P = y.expirationTime, U = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, W = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, re = !0), e(3, m = !1), _(), he(), e(16, ce = !1);
998
1044
  else if (h && h.details === $.MAX_ATTEMPTS_EXCEEDED)
999
1045
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
1000
1046
  else {
1001
1047
  const j = h && h.message || `Failed to load config. Status: ${g.status}`;
1002
1048
  throw new Error(j);
1003
1049
  }
1004
- } catch (o) {
1005
- 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);
1050
+ } catch (r) {
1051
+ e(3, m = !1), e(7, V = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", r);
1006
1052
  }
1007
1053
  };
1008
1054
  et(() => (window.addEventListener("stepUpAuthRequired", fe, !1), window.addEventListener("closePopup", D, !1), () => {
1009
- window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B), W && clearInterval(W);
1055
+ window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B), q && clearInterval(q);
1010
1056
  }));
1011
- const We = () => A(de.SMS), Fe = () => A(de.EMAIL);
1012
- function Ne(o, g) {
1013
- Ee[o ? "unshift" : "push"](() => {
1014
- U[g] = o, e(14, U);
1057
+ const qe = () => A(ue.SMS), We = () => A(ue.EMAIL);
1058
+ function Ne(r, g) {
1059
+ Oe[r ? "unshift" : "push"](() => {
1060
+ K[g] = r, e(14, K);
1015
1061
  });
1016
1062
  }
1017
- const Ke = (o, g) => ke(g, o), Ue = (o, g) => Se(g, o);
1018
- function qe(o) {
1019
- Ee[o ? "unshift" : "push"](() => {
1020
- K = o, e(1, K);
1063
+ const Fe = (r, g) => _e(g, r), Ke = (r, g) => Se(g, r);
1064
+ function Ue(r) {
1065
+ Oe[r ? "unshift" : "push"](() => {
1066
+ F = r, e(1, F);
1021
1067
  });
1022
1068
  }
1023
- return n.$$set = (o) => {
1024
- "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);
1069
+ return n.$$set = (r) => {
1070
+ "clientstyling" in r && e(31, c = r.clientstyling), "clientstylingurl" in r && e(32, s = r.clientstylingurl), "mbsource" in r && e(33, u = r.mbsource), "lang" in r && e(34, f = r.lang), "endpoint" in r && e(35, v = r.endpoint), "session" in r && e(36, w = r.session), "translationurl" in r && e(37, T = r.translationurl), "templateid" in r && e(30, M = r.templateid);
1025
1071
  }, n.$$.update = () => {
1026
1072
  n.$$.dirty[0] & /*customStylingContainer*/
1027
1073
  2 | n.$$.dirty[1] & /*clientstyling*/
1028
- 1 && u && K && ot(K, u), n.$$.dirty[0] & /*customStylingContainer*/
1074
+ 1 && c && F && rt(F, c), n.$$.dirty[0] & /*customStylingContainer*/
1029
1075
  2 | n.$$.dirty[1] & /*clientstylingurl*/
1030
- 2 && s && K && lt(K, s), n.$$.dirty[0] & /*customStylingContainer*/
1076
+ 2 && s && F && lt(F, s), n.$$.dirty[0] & /*customStylingContainer*/
1031
1077
  2 | n.$$.dirty[1] & /*mbsource*/
1032
- 4 && d && K && st(K, `${d}.Style`, pe), n.$$.dirty[1] & /*lang*/
1078
+ 4 && u && F && st(F, `${u}.Style`, pe), n.$$.dirty[1] & /*lang*/
1033
1079
  8 && f && X(), n.$$.dirty[1] & /*lang, translationurl*/
1034
1080
  72 && f && T && H(), n.$$.dirty[0] & /*selectedChannel*/
1035
1081
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
1036
- 128 && e(18, i = C && (!z[C] || z[C] === 0)), n.$$.dirty[0] & /*selectedChannel*/
1082
+ 128 && e(18, i = E && (!L[E] || L[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
1037
1083
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
1038
- 128 && e(17, r = C && z[C] || 0);
1084
+ 128 && e(17, o = E && L[E] || 0);
1039
1085
  }, [
1040
- C,
1041
- K,
1086
+ E,
1087
+ F,
1042
1088
  b,
1043
1089
  m,
1044
- _,
1090
+ y,
1045
1091
  S,
1046
- F,
1092
+ W,
1047
1093
  V,
1048
- P,
1094
+ I,
1049
1095
  J,
1050
- oe,
1096
+ re,
1051
1097
  Q,
1052
1098
  le,
1053
1099
  se,
1054
- U,
1100
+ K,
1101
+ de,
1055
1102
  ce,
1056
- ue,
1057
- r,
1103
+ o,
1058
1104
  i,
1059
1105
  a,
1060
- de,
1106
+ ue,
1061
1107
  A,
1062
- c,
1108
+ d,
1063
1109
  xe,
1064
1110
  Re,
1065
- ke,
1111
+ _e,
1066
1112
  Se,
1067
1113
  De,
1068
1114
  je,
1069
1115
  we,
1070
1116
  M,
1071
- u,
1117
+ c,
1072
1118
  s,
1073
- d,
1119
+ u,
1074
1120
  f,
1075
1121
  v,
1076
1122
  w,
1077
1123
  T,
1078
- z,
1124
+ L,
1125
+ qe,
1079
1126
  We,
1080
- Fe,
1081
1127
  Ne,
1128
+ Fe,
1082
1129
  Ke,
1083
- Ue,
1084
- qe
1130
+ Ue
1085
1131
  ];
1086
1132
  }
1087
- class Et extends Ye {
1133
+ class Ot extends Ze {
1088
1134
  constructor(t) {
1089
- super(), Ze(
1135
+ super(), Ye(
1090
1136
  this,
1091
1137
  t,
1092
- Ct,
1138
+ Et,
1093
1139
  St,
1094
1140
  Je,
1095
1141
  {
@@ -1102,7 +1148,7 @@ class Et extends Ye {
1102
1148
  translationurl: 37,
1103
1149
  templateid: 30
1104
1150
  },
1105
- ct,
1151
+ dt,
1106
1152
  [-1, -1, -1]
1107
1153
  );
1108
1154
  }
@@ -1110,52 +1156,52 @@ class Et extends Ye {
1110
1156
  return this.$$.ctx[31];
1111
1157
  }
1112
1158
  set clientstyling(t) {
1113
- this.$$set({ clientstyling: t }), re();
1159
+ this.$$set({ clientstyling: t }), oe();
1114
1160
  }
1115
1161
  get clientstylingurl() {
1116
1162
  return this.$$.ctx[32];
1117
1163
  }
1118
1164
  set clientstylingurl(t) {
1119
- this.$$set({ clientstylingurl: t }), re();
1165
+ this.$$set({ clientstylingurl: t }), oe();
1120
1166
  }
1121
1167
  get mbsource() {
1122
1168
  return this.$$.ctx[33];
1123
1169
  }
1124
1170
  set mbsource(t) {
1125
- this.$$set({ mbsource: t }), re();
1171
+ this.$$set({ mbsource: t }), oe();
1126
1172
  }
1127
1173
  get lang() {
1128
1174
  return this.$$.ctx[34];
1129
1175
  }
1130
1176
  set lang(t) {
1131
- this.$$set({ lang: t }), re();
1177
+ this.$$set({ lang: t }), oe();
1132
1178
  }
1133
1179
  get endpoint() {
1134
1180
  return this.$$.ctx[35];
1135
1181
  }
1136
1182
  set endpoint(t) {
1137
- this.$$set({ endpoint: t }), re();
1183
+ this.$$set({ endpoint: t }), oe();
1138
1184
  }
1139
1185
  get session() {
1140
1186
  return this.$$.ctx[36];
1141
1187
  }
1142
1188
  set session(t) {
1143
- this.$$set({ session: t }), re();
1189
+ this.$$set({ session: t }), oe();
1144
1190
  }
1145
1191
  get translationurl() {
1146
1192
  return this.$$.ctx[37];
1147
1193
  }
1148
1194
  set translationurl(t) {
1149
- this.$$set({ translationurl: t }), re();
1195
+ this.$$set({ translationurl: t }), oe();
1150
1196
  }
1151
1197
  get templateid() {
1152
1198
  return this.$$.ctx[30];
1153
1199
  }
1154
1200
  set templateid(t) {
1155
- this.$$set({ templateid: t }), re();
1201
+ this.$$set({ templateid: t }), oe();
1156
1202
  }
1157
1203
  }
1158
- it(Et, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
1204
+ it(Ot, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
1159
1205
  export {
1160
- Et as default
1206
+ Ot as default
1161
1207
  };