@everymatrix/cashier-page 1.90.38 → 1.91.1

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 (78) hide show
  1. package/components/CashierCarousel-BNcnaN7U.js +672 -0
  2. package/components/CashierCarousel-CDhxtgjT.cjs +1 -0
  3. package/components/CashierCarousel-tfVH51fj.js +675 -0
  4. package/components/{CashierError-KbAGLdoj.js → CashierError-BBZp_vCz.js} +16 -15
  5. package/components/CashierError-BqvEnGrr.cjs +1 -0
  6. package/components/{CashierError-konEQwnP.js → CashierError-CJCuZ3gS.js} +16 -15
  7. package/components/CashierHeader-BGA-Qd-S.js +456 -0
  8. package/components/CashierHeader-BKL2lJFV.cjs +1 -0
  9. package/components/CashierHeader-Bt5aV48_.js +456 -0
  10. package/components/CashierIframeRedirect-BFSErhBp.cjs +1 -0
  11. package/components/{CashierIframeRedirect-C3muwYdO.js → CashierIframeRedirect-BmdHdE-5.js} +91 -106
  12. package/components/{CashierIframeRedirect-Ti9O6xV-.js → CashierIframeRedirect-pYzLGWrC.js} +93 -108
  13. package/components/CashierMethodDetails-DVZrNpfS.cjs +85 -0
  14. package/components/{CashierMethodDetails-B3kqjVcJ.js → CashierMethodDetails-DcSOxSSa.js} +2955 -3380
  15. package/components/{CashierMethodDetails-BuXvXCMn.js → CashierMethodDetails-pX-AJWAC.js} +2965 -3390
  16. package/components/{CashierMethodsList-Dz_ZPGDZ.js → CashierMethodsList-Bdv9g-e3.js} +56 -56
  17. package/components/CashierMethodsList-CKVmXdTC.cjs +1 -0
  18. package/components/{CashierMethodsList-DxIhgxEL.js → CashierMethodsList-D1cLe15i.js} +65 -65
  19. package/components/{CashierModal-BsrmgnKi.js → CashierModal-B3zx276E.js} +33 -32
  20. package/components/CashierModal-J_mZ6ODP.cjs +1 -0
  21. package/components/{CashierModal-B1pfSpCs.js → CashierModal-v3KI6AFW.js} +37 -36
  22. package/components/{CashierNotifications-DbJuswYZ.js → CashierNotifications-B2R2A9Ph.js} +5 -5
  23. package/components/{CashierNotifications-BXxNDzMM.js → CashierNotifications-CS6nM02T.js} +3 -3
  24. package/components/CashierNotifications-D-OhK4CJ.cjs +1 -0
  25. package/components/CashierPage-7d2gkNjC.js +9989 -0
  26. package/components/CashierPage-N8z4Zzox.js +9936 -0
  27. package/components/CashierPage-flG2gyRG.cjs +23 -0
  28. package/components/{CashierReceiptPage-DLZjvQui.js → CashierReceiptPage-BAvDYneB.js} +125 -138
  29. package/components/{CashierReceiptPage-DLp3xTRl.js → CashierReceiptPage-BHsVpacF.js} +125 -138
  30. package/components/CashierReceiptPage-BLOSwHFv.cjs +26 -0
  31. package/components/{CashierSessionExpirationModal-DnrJB7FX.js → CashierSessionExpirationModal-Bxct5zbr.js} +280 -267
  32. package/components/{CashierSessionExpirationModal-D9rAlcNI.js → CashierSessionExpirationModal-fN2A0ywt.js} +267 -254
  33. package/components/CashierSessionExpirationModal-vmiK0fHD.cjs +2 -0
  34. package/components/{CashierSpinner-DMrM0bGx.js → CashierSpinner-Ake8hCVD.js} +11 -10
  35. package/components/CashierSpinner-BUQIDK1i.cjs +1 -0
  36. package/components/{CashierSpinner-gJqeYU1n.js → CashierSpinner-DXjWZCDg.js} +13 -12
  37. package/components/CashierStepUp-BtrSk7D-.cjs +1 -0
  38. package/components/{CashierStepUp-BtmD9q4i.js → CashierStepUp-CcGk8qq_.js} +246 -245
  39. package/components/{CashierStepUp-B530YrSp.js → CashierStepUp-D2XsYRPV.js} +169 -168
  40. package/components/CashierTransactionHistory-0iCdtdJ1.cjs +1 -0
  41. package/components/{CashierTransactionHistory-DGGy4ffC.js → CashierTransactionHistory-C_yz5IP4.js} +71 -71
  42. package/components/{CashierTransactionHistory-DjJSyWXf.js → CashierTransactionHistory-Dr-rQ2Vi.js} +66 -66
  43. package/components/{CashierVerifications-CNMavkzY.js → CashierVerifications-DKRqica1.js} +158 -142
  44. package/components/{CashierVerifications-DWiOQPvm.js → CashierVerifications-dqSxyAIe.js} +118 -102
  45. package/components/CashierVerifications-v1QrnVcB.cjs +1 -0
  46. package/components/{TxnStatusIcon-DRFHs_0F.js → TxnStatusIcon-BBJGYEAU.js} +1 -1
  47. package/components/TxnStatusIcon-BWEAB3rw.cjs +1 -0
  48. package/components/{TxnStatusIcon-DCSCOAn2.js → TxnStatusIcon-BkGptsYx.js} +8 -8
  49. package/components/{TxnTypeIcons-Bg7QJKuH.js → TxnTypeIcons-BDTJpcOb.js} +1 -1
  50. package/components/TxnTypeIcons-Bjn-FpNT.cjs +1 -0
  51. package/components/{TxnTypeIcons-D37zQDwq.js → TxnTypeIcons-Bmdgcbf2.js} +1 -1
  52. package/es2015/cashier-page.cjs +1 -1
  53. package/es2015/cashier-page.js +7 -7
  54. package/esnext/cashier-page.js +1 -1
  55. package/package.json +1 -1
  56. package/components/CashierCarousel-B-cM-nlR.js +0 -5797
  57. package/components/CashierCarousel-CXoovlrR.js +0 -5835
  58. package/components/CashierCarousel-DMrMmClP.cjs +0 -23
  59. package/components/CashierError-CHGdRh2_.cjs +0 -1
  60. package/components/CashierHeader-B7FnLv3f.js +0 -397
  61. package/components/CashierHeader-BbP0idUh.js +0 -397
  62. package/components/CashierHeader-PvXFHPzQ.cjs +0 -1
  63. package/components/CashierIframeRedirect-C0AQ3pLh.cjs +0 -1
  64. package/components/CashierMethodDetails-31NnDFlx.cjs +0 -85
  65. package/components/CashierMethodsList-Dpc1Qnt_.cjs +0 -1
  66. package/components/CashierModal-DF8meLAZ.cjs +0 -1
  67. package/components/CashierNotifications-B8bRZMac.cjs +0 -1
  68. package/components/CashierPage-CrLOKCt7.js +0 -4485
  69. package/components/CashierPage-DDNG9YBM.cjs +0 -1
  70. package/components/CashierPage-Ra2kFFdS.js +0 -4455
  71. package/components/CashierReceiptPage-CGntD3Ym.cjs +0 -26
  72. package/components/CashierSessionExpirationModal-BE-FRBRq.cjs +0 -2
  73. package/components/CashierSpinner-DKYO0FtD.cjs +0 -1
  74. package/components/CashierStepUp-DKytvkqu.cjs +0 -1
  75. package/components/CashierTransactionHistory-DK7tE0EW.cjs +0 -1
  76. package/components/CashierVerifications-8c9sENE2.cjs +0 -1
  77. package/components/TxnStatusIcon-CWkyVMIU.cjs +0 -1
  78. package/components/TxnTypeIcons-CTQXT_j5.cjs +0 -1
@@ -1,8 +1,8 @@
1
- var Qe = Object.defineProperty, $e = Object.defineProperties;
1
+ var Ze = Object.defineProperty, $e = Object.defineProperties;
2
2
  var et = Object.getOwnPropertyDescriptors;
3
3
  var Me = Object.getOwnPropertySymbols;
4
4
  var tt = Object.prototype.hasOwnProperty, nt = Object.prototype.propertyIsEnumerable;
5
- var Te = (n, t, e) => t in n ? Qe(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ve = (n, t) => {
5
+ var Te = (n, t, e) => t in n ? Ze(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ve = (n, t) => {
6
6
  for (var e in t || (t = {}))
7
7
  tt.call(t, e) && Te(n, e, t[e]);
8
8
  if (Me)
@@ -10,28 +10,29 @@ var Te = (n, t, e) => t in n ? Qe(n, t, { enumerable: !0, configurable: !0, writ
10
10
  nt.call(t, e) && Te(n, e, t[e]);
11
11
  return n;
12
12
  }, Le = (n, t) => $e(n, et(t));
13
- var me = (n, t, e) => new Promise((i, l) => {
13
+ var me = (n, t, e) => new Promise((i, o) => {
14
14
  var a = (c) => {
15
15
  try {
16
16
  s(e.next(c));
17
17
  } catch (f) {
18
- l(f);
18
+ o(f);
19
19
  }
20
- }, u = (c) => {
20
+ }, p = (c) => {
21
21
  try {
22
22
  s(e.throw(c));
23
23
  } catch (f) {
24
- l(f);
24
+ o(f);
25
25
  }
26
- }, s = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(a, u);
26
+ }, s = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(a, p);
27
27
  s((e = e.apply(n, t)).next());
28
28
  });
29
- import { a as it, $ as lt, S as ot, b as rt, s as st, f as oe, c as at, G as ke, e as O, k as S, m as v, o as r, p as ct, q as ut, y as ze, v as D, l as d, x as te, X as J, n as x, w as L, a2 as Be, W as Z, r as pt, Z as Ae, a4 as dt, B as ft, C as mt, D as ht, E as gt, F as bt } from "./CashierCarousel-CXoovlrR.js";
29
+ import { a as it, $ as ot, S as lt, b as rt, s as st, f as le, c as at, y as ke, e as O, k as S, m as v, o as r, p as ct, q as pt, x as ze, v as D, l as d, z as te, P as J, n as x, w as L, F as Be, L as Q, r as ut, D as Ae, E as dt, A as ft, B as mt } from "./CashierPage-7d2gkNjC.js";
30
+ import { s as ht, a as gt, b as bt } from "./CashierHeader-BGA-Qd-S.js";
30
31
  function Re(n, t) {
31
32
  it(n, t);
32
33
  }
33
34
  function wt(n) {
34
- lt.set(n);
35
+ ot.set(n);
35
36
  }
36
37
  const Ie = {
37
38
  en: {
@@ -112,19 +113,19 @@ function Pe(n, t, e) {
112
113
  return i[69] = t[e], i[70] = t, i[71] = e, i;
113
114
  }
114
115
  function yt(n) {
115
- let t, e, i, l, a, u, s, c, f, _, w, T, M, b, m, y, C, R = (
116
+ let t, e, i, o, a, p, s, c, f, _, w, T, M, b, m, y, C, R = (
116
117
  /*$_*/
117
118
  n[19]("channelSMS") + ""
118
- ), K, F, V, I, ne, q, Q, re, $, E, z, W, se, ae, ce = (
119
+ ), K, W, V, I, ne, q, Z, re, $, E, z, F, se, ae, ce = (
119
120
  /*$_*/
120
121
  n[19]("channelEmail") + ""
121
- ), U, he, X, H, Y, ue, pe;
122
- function de(p, k) {
122
+ ), U, he, X, H, Y, pe, ue;
123
+ function de(u, k) {
123
124
  return (
124
125
  /*showResendOtp*/
125
- p[9] ? Et : (
126
+ u[9] ? Et : (
126
127
  /*showOtpInput*/
127
- p[12] ? kt : Ct
128
+ u[12] ? kt : Ct
128
129
  )
129
130
  );
130
131
  }
@@ -132,38 +133,38 @@ function yt(n) {
132
133
  /*selectedChannel*/
133
134
  n[0] && De(n)
134
135
  );
135
- function ge(p, k) {
136
+ function ge(u, k) {
136
137
  if (
137
138
  /*isLoading*/
138
- p[3] && /*showOtpInput*/
139
- p[12]
139
+ u[3] && /*showOtpInput*/
140
+ u[12]
140
141
  )
141
142
  return zt;
142
143
  if (
143
144
  /*showOtpInput*/
144
- p[12] && /*config*/
145
- p[4]
145
+ u[12] && /*config*/
146
+ u[4]
146
147
  )
147
148
  return Lt;
148
149
  }
149
150
  let ie = ge(n), j = ie && ie(n);
150
- function be(p, k) {
151
+ function be(u, k) {
151
152
  if (
152
153
  /*showResendOtp*/
153
- p[9]
154
+ u[9]
154
155
  )
155
156
  return Rt;
156
157
  if (
157
158
  /*showOtpInput*/
158
- p[12] && /*config*/
159
- p[4]
159
+ u[12] && /*config*/
160
+ u[4]
160
161
  )
161
162
  return At;
162
163
  }
163
- let le = be(n), P = le && le(n);
164
+ let oe = be(n), P = oe && oe(n);
164
165
  return {
165
166
  c() {
166
- t = v("div"), G.c(), e = x(), i = v("div"), l = v("label"), a = v("div"), u = x(), s = v("input"), f = x(), _ = v("div"), w = J("svg"), T = J("path"), M = J("circle"), b = J("circle"), m = J("circle"), y = x(), C = v("span"), K = L(R), F = x(), V = v("label"), I = v("div"), ne = x(), q = v("input"), re = x(), $ = v("div"), E = J("svg"), z = J("rect"), W = J("path"), se = x(), ae = v("span"), U = L(ce), he = x(), N && N.c(), X = x(), j && j.c(), H = x(), Y = v("div"), P && P.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), Z(
167
+ t = v("div"), G.c(), e = x(), i = v("div"), o = v("label"), a = v("div"), p = x(), s = v("input"), f = x(), _ = v("div"), w = J("svg"), T = J("path"), M = J("circle"), b = J("circle"), m = J("circle"), y = x(), C = v("span"), K = L(R), W = x(), V = v("label"), I = v("div"), ne = x(), q = v("input"), re = x(), $ = v("div"), E = J("svg"), z = J("rect"), F = J("path"), se = x(), ae = v("span"), U = L(ce), he = x(), N && N.c(), X = x(), j && j.c(), H = x(), Y = v("div"), P && P.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), Q(
167
168
  a,
168
169
  "checked",
169
170
  /*selectedChannel*/
@@ -172,22 +173,22 @@ function yt(n) {
172
173
  ), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
173
174
  n[20].SMS, s.checked = c = /*selectedChannel*/
174
175
  n[0] === /*channels*/
175
- n[20].SMS, r(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), r(M, "cx", "9"), r(M, "cy", "11"), r(M, "r", "0.5"), r(M, "fill", "currentColor"), r(b, "cx", "12"), r(b, "cy", "11"), r(b, "r", "0.5"), r(b, "fill", "currentColor"), r(m, "cx", "15"), r(m, "cy", "11"), r(m, "r", "0.5"), r(m, "fill", "currentColor"), r(w, "xmlns", "http://www.w3.org/2000/svg"), r(w, "width", "24"), r(w, "height", "24"), r(w, "viewBox", "0 0 24 24"), r(w, "fill", "none"), r(w, "stroke", "currentColor"), r(w, "stroke-width", "2"), r(w, "stroke-linecap", "round"), r(w, "stroke-linejoin", "round"), r(_, "class", "ChannelContent"), r(l, "class", "ChannelCheckbox"), Z(
176
- l,
176
+ 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(o, "class", "ChannelCheckbox"), Q(
177
+ o,
177
178
  "selected",
178
179
  /*selectedChannel*/
179
180
  n[0] === /*channels*/
180
181
  n[20].SMS
181
- ), r(I, "class", "RadioIndicator"), Z(
182
+ ), r(I, "class", "RadioIndicator"), Q(
182
183
  I,
183
184
  "checked",
184
185
  /*selectedChannel*/
185
186
  n[0] === /*channels*/
186
187
  n[20].EMAIL
187
188
  ), r(q, "type", "radio"), r(q, "name", "channel"), q.value = /*channels*/
188
- n[20].EMAIL, q.checked = Q = /*selectedChannel*/
189
+ n[20].EMAIL, q.checked = Z = /*selectedChannel*/
189
190
  n[0] === /*channels*/
190
- n[20].EMAIL, r(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "rx", "2"), r(W, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r($, "class", "ChannelContent"), r(V, "class", "ChannelCheckbox"), Z(
191
+ n[20].EMAIL, r(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "rx", "2"), r(F, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r($, "class", "ChannelContent"), r(V, "class", "ChannelCheckbox"), Q(
191
192
  V,
192
193
  "selected",
193
194
  /*selectedChannel*/
@@ -195,8 +196,8 @@ function yt(n) {
195
196
  n[20].EMAIL
196
197
  ), r(i, "class", "ChannelSelection"), r(Y, "class", "OtpActionButtons");
197
198
  },
198
- m(p, k) {
199
- S(p, t, k), G.m(t, null), S(p, e, k), S(p, i, k), d(i, l), d(l, a), d(l, u), 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, K), d(i, F), d(i, V), d(V, I), d(V, ne), d(V, q), d(V, re), d(V, $), d($, E), d(E, z), d(E, W), d($, se), d($, ae), d(ae, U), S(p, he, k), N && N.m(p, k), S(p, X, k), j && j.m(p, k), S(p, H, k), S(p, Y, k), P && P.m(Y, null), ue || (pe = [
199
+ m(u, k) {
200
+ S(u, t, k), G.m(t, null), S(u, e, k), S(u, i, k), d(i, o), d(o, a), d(o, p), d(o, s), d(o, f), d(o, _), d(_, w), d(w, T), d(w, M), d(w, b), d(w, m), d(_, y), d(_, C), d(C, K), d(i, W), d(i, V), d(V, I), d(V, ne), d(V, q), d(V, re), d(V, $), d($, E), d(E, z), d(E, F), d($, se), d($, ae), d(ae, U), S(u, he, k), N && N.m(u, k), S(u, X, k), j && j.m(u, k), S(u, H, k), S(u, Y, k), P && P.m(Y, null), pe || (ue = [
200
201
  te(
201
202
  s,
202
203
  "change",
@@ -209,57 +210,57 @@ function yt(n) {
209
210
  /*change_handler_1*/
210
211
  n[40]
211
212
  )
212
- ], ue = !0);
213
+ ], pe = !0);
213
214
  },
214
- p(p, k) {
215
- ee === (ee = de(p)) && G ? G.p(p, k) : (G.d(1), G = ee(p), G && (G.c(), G.m(t, null))), k[0] & /*selectedChannel, channels*/
216
- 1048577 && Z(
215
+ p(u, k) {
216
+ ee === (ee = de(u)) && G ? G.p(u, k) : (G.d(1), G = ee(u), G && (G.c(), G.m(t, null))), k[0] & /*selectedChannel, channels*/
217
+ 1048577 && Q(
217
218
  a,
218
219
  "checked",
219
220
  /*selectedChannel*/
220
- p[0] === /*channels*/
221
- p[20].SMS
221
+ u[0] === /*channels*/
222
+ u[20].SMS
222
223
  ), k[0] & /*selectedChannel*/
223
224
  1 && c !== (c = /*selectedChannel*/
224
- p[0] === /*channels*/
225
- p[20].SMS) && (s.checked = c), k[0] & /*$_*/
225
+ u[0] === /*channels*/
226
+ u[20].SMS) && (s.checked = c), k[0] & /*$_*/
226
227
  524288 && R !== (R = /*$_*/
227
- p[19]("channelSMS") + "") && D(K, R), k[0] & /*selectedChannel, channels*/
228
- 1048577 && Z(
229
- l,
228
+ u[19]("channelSMS") + "") && D(K, R), k[0] & /*selectedChannel, channels*/
229
+ 1048577 && Q(
230
+ o,
230
231
  "selected",
231
232
  /*selectedChannel*/
232
- p[0] === /*channels*/
233
- p[20].SMS
233
+ u[0] === /*channels*/
234
+ u[20].SMS
234
235
  ), k[0] & /*selectedChannel, channels*/
235
- 1048577 && Z(
236
+ 1048577 && Q(
236
237
  I,
237
238
  "checked",
238
239
  /*selectedChannel*/
239
- p[0] === /*channels*/
240
- p[20].EMAIL
240
+ u[0] === /*channels*/
241
+ u[20].EMAIL
241
242
  ), k[0] & /*selectedChannel*/
242
- 1 && Q !== (Q = /*selectedChannel*/
243
- p[0] === /*channels*/
244
- p[20].EMAIL) && (q.checked = Q), k[0] & /*$_*/
243
+ 1 && Z !== (Z = /*selectedChannel*/
244
+ u[0] === /*channels*/
245
+ u[20].EMAIL) && (q.checked = Z), k[0] & /*$_*/
245
246
  524288 && ce !== (ce = /*$_*/
246
- p[19]("channelEmail") + "") && D(U, ce), k[0] & /*selectedChannel, channels*/
247
- 1048577 && Z(
247
+ u[19]("channelEmail") + "") && D(U, ce), k[0] & /*selectedChannel, channels*/
248
+ 1048577 && Q(
248
249
  V,
249
250
  "selected",
250
251
  /*selectedChannel*/
251
- p[0] === /*channels*/
252
- p[20].EMAIL
252
+ u[0] === /*channels*/
253
+ u[20].EMAIL
253
254
  ), /*selectedChannel*/
254
- p[0] ? N ? N.p(p, k) : (N = De(p), N.c(), N.m(X.parentNode, X)) : N && (N.d(1), N = null), ie === (ie = ge(p)) && j ? j.p(p, k) : (j && j.d(1), j = ie && ie(p), j && (j.c(), j.m(H.parentNode, H))), le === (le = be(p)) && P ? P.p(p, k) : (P && P.d(1), P = le && le(p), P && (P.c(), P.m(Y, null)));
255
+ u[0] ? N ? N.p(u, k) : (N = De(u), N.c(), N.m(X.parentNode, X)) : N && (N.d(1), N = null), ie === (ie = ge(u)) && j ? j.p(u, k) : (j && j.d(1), j = ie && ie(u), j && (j.c(), j.m(H.parentNode, H))), oe === (oe = be(u)) && P ? P.p(u, k) : (P && P.d(1), P = oe && oe(u), P && (P.c(), P.m(Y, null)));
255
256
  },
256
- d(p) {
257
- p && (O(t), O(e), O(i), O(he), O(X), O(H), O(Y)), G.d(), N && N.d(p), j && j.d(p), P && P.d(), ue = !1, Be(pe);
257
+ d(u) {
258
+ u && (O(t), O(e), O(i), O(he), O(X), O(H), O(Y)), G.d(), N && N.d(u), j && j.d(u), P && P.d(), pe = !1, Be(ue);
258
259
  }
259
260
  };
260
261
  }
261
262
  function vt(n) {
262
- let t, e, i, l, a, u, s = (
263
+ let t, e, i, o, a, p, s = (
263
264
  /*$_*/
264
265
  n[19]("errorHeader") + ""
265
266
  ), c, f, _, w, T, M, b = (
@@ -268,13 +269,13 @@ function vt(n) {
268
269
  ), m, y, C;
269
270
  return {
270
271
  c() {
271
- t = v("div"), e = v("div"), i = J("svg"), l = J("path"), a = x(), u = v("h2"), c = L(s), f = x(), _ = v("p"), w = L(
272
+ t = v("div"), e = v("div"), i = J("svg"), o = J("path"), a = x(), p = v("h2"), c = L(s), f = x(), _ = v("p"), w = L(
272
273
  /*errorMessage*/
273
274
  n[8]
274
- ), T = x(), 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");
275
+ ), T = x(), M = v("button"), m = L(b), r(o, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), r(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");
275
276
  },
276
277
  m(R, K) {
277
- S(R, t, K), d(t, e), d(e, i), d(i, l), d(e, a), d(e, u), d(u, c), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = te(
278
+ S(R, t, K), d(t, e), d(e, i), d(i, o), d(e, a), d(e, p), d(p, c), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = te(
278
279
  M,
279
280
  "click",
280
281
  /*manualClosePopup*/
@@ -299,33 +300,33 @@ function vt(n) {
299
300
  };
300
301
  }
301
302
  function kt(n) {
302
- let t, e, i, l;
303
+ let t, e, i, o;
303
304
  function a(f, _) {
304
305
  return (
305
306
  /*isLastWarning*/
306
307
  f[10] ? St : Ot
307
308
  );
308
309
  }
309
- let u = a(n), s = u(n), c = (
310
+ let p = a(n), s = p(n), c = (
310
311
  /*hasErrors*/
311
312
  n[6] && xe(n)
312
313
  );
313
314
  return {
314
315
  c() {
315
- t = v("p"), s.c(), i = x(), c && c.c(), l = pt(), r(t, "class", e = /*isLastWarning*/
316
+ t = v("p"), s.c(), i = x(), c && c.c(), o = ut(), r(t, "class", e = /*isLastWarning*/
316
317
  n[10] ? "LastWarningMessage" : "");
317
318
  },
318
319
  m(f, _) {
319
- S(f, t, _), s.m(t, null), S(f, i, _), c && c.m(f, _), S(f, l, _);
320
+ S(f, t, _), s.m(t, null), S(f, i, _), c && c.m(f, _), S(f, o, _);
320
321
  },
321
322
  p(f, _) {
322
- u === (u = a(f)) && s ? s.p(f, _) : (s.d(1), s = u(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
323
+ p === (p = a(f)) && s ? s.p(f, _) : (s.d(1), s = p(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
323
324
  1024 && e !== (e = /*isLastWarning*/
324
325
  f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
325
- f[6] ? c ? c.p(f, _) : (c = xe(f), c.c(), c.m(l.parentNode, l)) : c && (c.d(1), c = null);
326
+ f[6] ? c ? c.p(f, _) : (c = xe(f), c.c(), c.m(o.parentNode, o)) : c && (c.d(1), c = null);
326
327
  },
327
328
  d(f) {
328
- f && (O(t), O(i), O(l)), s.d(), c && c.d(f);
329
+ f && (O(t), O(i), O(o)), s.d(), c && c.d(f);
329
330
  }
330
331
  };
331
332
  }
@@ -338,16 +339,16 @@ function Ct(n) {
338
339
  c() {
339
340
  t = v("p"), i = L(e);
340
341
  },
341
- m(l, a) {
342
- S(l, t, a), d(t, i);
342
+ m(o, a) {
343
+ S(o, t, a), d(t, i);
343
344
  },
344
- p(l, a) {
345
+ p(o, a) {
345
346
  a[0] & /*$_*/
346
347
  524288 && e !== (e = /*$_*/
347
- (l[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && D(i, e);
348
+ (o[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && D(i, e);
348
349
  },
349
- d(l) {
350
- l && O(t);
350
+ d(o) {
351
+ o && O(t);
351
352
  }
352
353
  };
353
354
  }
@@ -360,16 +361,16 @@ function Et(n) {
360
361
  c() {
361
362
  t = v("p"), i = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
362
363
  },
363
- m(l, a) {
364
- S(l, t, a), d(t, i);
364
+ m(o, a) {
365
+ S(o, t, a), d(t, i);
365
366
  },
366
- p(l, a) {
367
+ p(o, a) {
367
368
  a[0] & /*$_*/
368
369
  524288 && e !== (e = /*$_*/
369
- l[19]("otpExpiredMessage") + "") && D(i, e);
370
+ o[19]("otpExpiredMessage") + "") && D(i, e);
370
371
  },
371
- d(l) {
372
- l && O(t);
372
+ d(o) {
373
+ o && O(t);
373
374
  }
374
375
  };
375
376
  }
@@ -382,11 +383,11 @@ function Ot(n) {
382
383
  c() {
383
384
  e = L(t);
384
385
  },
385
- m(i, l) {
386
- S(i, e, l);
386
+ m(i, o) {
387
+ S(i, e, o);
387
388
  },
388
- p(i, l) {
389
- l[0] & /*$_*/
389
+ p(i, o) {
390
+ o[0] & /*$_*/
390
391
  524288 && t !== (t = /*$_*/
391
392
  i[19]("popupMessage") + "") && D(e, t);
392
393
  },
@@ -404,11 +405,11 @@ function St(n) {
404
405
  c() {
405
406
  e = L(t);
406
407
  },
407
- m(i, l) {
408
- S(i, e, l);
408
+ m(i, o) {
409
+ S(i, e, o);
409
410
  },
410
- p(i, l) {
411
- l[0] & /*$_*/
411
+ p(i, o) {
412
+ o[0] & /*$_*/
412
413
  524288 && t !== (t = /*$_*/
413
414
  i[19]("popupMessageLastWarning") + "") && D(e, t);
414
415
  },
@@ -426,11 +427,11 @@ function xe(n) {
426
427
  n[8]
427
428
  ), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
428
429
  },
429
- m(i, l) {
430
- S(i, t, l), d(t, e);
430
+ m(i, o) {
431
+ S(i, t, o), d(t, e);
431
432
  },
432
- p(i, l) {
433
- l[0] & /*errorMessage*/
433
+ p(i, o) {
434
+ o[0] & /*errorMessage*/
434
435
  256 && D(
435
436
  e,
436
437
  /*errorMessage*/
@@ -443,23 +444,23 @@ function xe(n) {
443
444
  };
444
445
  }
445
446
  function De(n) {
446
- let t, e, i, l;
447
+ let t, e, i, o;
447
448
  function a(c, f) {
448
449
  return (
449
450
  /*currentChannelTimer*/
450
451
  c[17] > 0 ? Tt : Mt
451
452
  );
452
453
  }
453
- let u = a(n), s = u(n);
454
+ let p = a(n), s = p(n);
454
455
  return {
455
456
  c() {
456
457
  t = v("button"), s.c(), r(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
457
- n[18], Z(t, "disabled", !/*canSubmitChannel*/
458
+ n[18], Q(t, "disabled", !/*canSubmitChannel*/
458
459
  n[18] || /*waitingForConfig*/
459
460
  n[16]);
460
461
  },
461
462
  m(c, f) {
462
- S(c, t, f), s.m(t, null), i || (l = te(
463
+ S(c, t, f), s.m(t, null), i || (o = te(
463
464
  t,
464
465
  "click",
465
466
  /*handleChannelSubmit*/
@@ -467,15 +468,15 @@ function De(n) {
467
468
  ), i = !0);
468
469
  },
469
470
  p(c, f) {
470
- u === (u = a(c)) && s ? s.p(c, f) : (s.d(1), s = u(c), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
471
+ p === (p = a(c)) && s ? s.p(c, f) : (s.d(1), s = p(c), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
471
472
  262144 && e !== (e = !/*canSubmitChannel*/
472
473
  c[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
473
- 327680 && Z(t, "disabled", !/*canSubmitChannel*/
474
+ 327680 && Q(t, "disabled", !/*canSubmitChannel*/
474
475
  c[18] || /*waitingForConfig*/
475
476
  c[16]);
476
477
  },
477
478
  d(c) {
478
- c && O(t), s.d(), i = !1, l();
479
+ c && O(t), s.d(), i = !1, o();
479
480
  }
480
481
  };
481
482
  }
@@ -488,11 +489,11 @@ function Mt(n) {
488
489
  c() {
489
490
  e = L(t);
490
491
  },
491
- m(i, l) {
492
- S(i, e, l);
492
+ m(i, o) {
493
+ S(i, e, o);
493
494
  },
494
- p(i, l) {
495
- l[0] & /*$_*/
495
+ p(i, o) {
496
+ o[0] & /*$_*/
496
497
  524288 && t !== (t = /*$_*/
497
498
  i[19]("sendCode") + "") && D(e, t);
498
499
  },
@@ -505,29 +506,29 @@ function Tt(n) {
505
506
  let t = (
506
507
  /*$_*/
507
508
  n[19]("waitSeconds") + ""
508
- ), e, i, l, a;
509
+ ), e, i, o, a;
509
510
  return {
510
511
  c() {
511
- e = L(t), i = L(" ("), l = L(
512
+ e = L(t), i = L(" ("), o = L(
512
513
  /*currentChannelTimer*/
513
514
  n[17]
514
515
  ), a = L("s)");
515
516
  },
516
- m(u, s) {
517
- S(u, e, s), S(u, i, s), S(u, l, s), S(u, a, s);
517
+ m(p, s) {
518
+ S(p, e, s), S(p, i, s), S(p, o, s), S(p, a, s);
518
519
  },
519
- p(u, s) {
520
+ p(p, s) {
520
521
  s[0] & /*$_*/
521
522
  524288 && t !== (t = /*$_*/
522
- u[19]("waitSeconds") + "") && D(e, t), s[0] & /*currentChannelTimer*/
523
+ p[19]("waitSeconds") + "") && D(e, t), s[0] & /*currentChannelTimer*/
523
524
  131072 && D(
524
- l,
525
+ o,
525
526
  /*currentChannelTimer*/
526
- u[17]
527
+ p[17]
527
528
  );
528
529
  },
529
- d(u) {
530
- u && (O(e), O(i), O(l), O(a));
530
+ d(p) {
531
+ p && (O(e), O(i), O(o), O(a));
531
532
  }
532
533
  };
533
534
  }
@@ -535,7 +536,7 @@ function Lt(n) {
535
536
  let t, e, i = (
536
537
  /*$_*/
537
538
  n[19]("timeRemaining") + ""
538
- ), l, a, u = (
539
+ ), o, a, p = (
539
540
  /*formatTime*/
540
541
  n[23](
541
542
  /*timeLeft*/
@@ -552,25 +553,25 @@ function Lt(n) {
552
553
  b[m] = je(Pe(n, M, m));
553
554
  return {
554
555
  c() {
555
- t = v("div"), e = v("div"), l = L(i), a = x(), s = L(u), c = x(), _ = L(f), w = x(), T = v("div");
556
+ t = v("div"), e = v("div"), o = L(i), a = x(), s = L(p), c = x(), _ = L(f), w = x(), T = v("div");
556
557
  for (let m = 0; m < b.length; m += 1)
557
558
  b[m].c();
558
559
  r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
559
560
  },
560
561
  m(m, y) {
561
- S(m, t, y), d(t, e), d(e, l), d(e, a), d(e, s), d(e, c), d(e, _), d(t, w), d(t, T);
562
+ S(m, t, y), d(t, e), d(e, o), d(e, a), d(e, s), d(e, c), d(e, _), d(t, w), d(t, T);
562
563
  for (let C = 0; C < b.length; C += 1)
563
564
  b[C] && b[C].m(T, null);
564
565
  },
565
566
  p(m, y) {
566
567
  if (y[0] & /*$_*/
567
568
  524288 && i !== (i = /*$_*/
568
- m[19]("timeRemaining") + "") && D(l, i), y[0] & /*timeLeft*/
569
- 32 && u !== (u = /*formatTime*/
569
+ m[19]("timeRemaining") + "") && D(o, i), y[0] & /*timeLeft*/
570
+ 32 && p !== (p = /*formatTime*/
570
571
  m[23](
571
572
  /*timeLeft*/
572
573
  m[5]
573
- ) + "") && D(s, u), y[0] & /*$_*/
574
+ ) + "") && D(s, p), y[0] & /*$_*/
574
575
  524288 && f !== (f = /*$_*/
575
576
  m[19]("minutes") + "") && D(_, f), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
576
577
  117458964) {
@@ -609,16 +610,16 @@ function zt(n) {
609
610
  };
610
611
  }
611
612
  function je(n) {
612
- let t, e, i, l = (
613
+ let t, e, i, o = (
613
614
  /*index*/
614
615
  n[71]
615
- ), a, u;
616
+ ), a, p;
616
617
  const s = () => (
617
618
  /*input_binding*/
618
- n[41](t, l)
619
+ n[41](t, o)
619
620
  ), c = () => (
620
621
  /*input_binding*/
621
- n[41](null, l)
622
+ n[41](null, o)
622
623
  );
623
624
  function f(...w) {
624
625
  return (
@@ -651,7 +652,7 @@ function je(n) {
651
652
  n[11], r(t, "autocomplete", "off");
652
653
  },
653
654
  m(w, T) {
654
- S(w, t, T), s(), a || (u = [
655
+ S(w, t, T), s(), a || (p = [
655
656
  te(t, "input", f),
656
657
  te(t, "keydown", _),
657
658
  te(
@@ -671,12 +672,12 @@ function je(n) {
671
672
  4 && i !== (i = /*char*/
672
673
  n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
673
674
  2048 && (t.disabled = /*inputDisabled*/
674
- n[11]), l !== /*index*/
675
- n[71] && (c(), l = /*index*/
675
+ n[11]), o !== /*index*/
676
+ n[71] && (c(), o = /*index*/
676
677
  n[71], s());
677
678
  },
678
679
  d(w) {
679
- w && O(t), c(), a = !1, Be(u);
680
+ w && O(t), c(), a = !1, Be(p);
680
681
  }
681
682
  };
682
683
  }
@@ -684,17 +685,17 @@ function At(n) {
684
685
  let t, e = (
685
686
  /*$_*/
686
687
  n[19]("submit") + ""
687
- ), i, l, a, u;
688
+ ), i, o, a, p;
688
689
  return {
689
690
  c() {
690
- t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled = l = /*otp*/
691
+ t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled = o = /*otp*/
691
692
  n[2].join("").length !== /*config*/
692
693
  n[4].inputLength || /*isSubmitting*/
693
694
  n[13] || /*maxAttempts*/
694
695
  n[15];
695
696
  },
696
697
  m(s, c) {
697
- S(s, t, c), d(t, i), a || (u = te(
698
+ S(s, t, c), d(t, i), a || (p = te(
698
699
  t,
699
700
  "click",
700
701
  /*submitOtp*/
@@ -705,14 +706,14 @@ function At(n) {
705
706
  c[0] & /*$_*/
706
707
  524288 && e !== (e = /*$_*/
707
708
  s[19]("submit") + "") && D(i, e), c[0] & /*otp, config, isSubmitting, maxAttempts*/
708
- 40980 && l !== (l = /*otp*/
709
+ 40980 && o !== (o = /*otp*/
709
710
  s[2].join("").length !== /*config*/
710
711
  s[4].inputLength || /*isSubmitting*/
711
712
  s[13] || /*maxAttempts*/
712
- s[15]) && (t.disabled = l);
713
+ s[15]) && (t.disabled = o);
713
714
  },
714
715
  d(s) {
715
- s && O(t), a = !1, u();
716
+ s && O(t), a = !1, p();
716
717
  }
717
718
  };
718
719
  }
@@ -720,93 +721,93 @@ function Rt(n) {
720
721
  let t, e = (
721
722
  /*$_*/
722
723
  n[19]("resendOtp") + ""
723
- ), i, l, a;
724
+ ), i, o, a;
724
725
  return {
725
726
  c() {
726
727
  t = v("button"), i = L(e), r(t, "class", "OtpButton");
727
728
  },
728
- m(u, s) {
729
- S(u, t, s), d(t, i), l || (a = te(
729
+ m(p, s) {
730
+ S(p, t, s), d(t, i), o || (a = te(
730
731
  t,
731
732
  "click",
732
733
  /*handleResendOtp*/
733
734
  n[27]
734
- ), l = !0);
735
+ ), o = !0);
735
736
  },
736
- p(u, s) {
737
+ p(p, s) {
737
738
  s[0] & /*$_*/
738
739
  524288 && e !== (e = /*$_*/
739
- u[19]("resendOtp") + "") && D(i, e);
740
+ p[19]("resendOtp") + "") && D(i, e);
740
741
  },
741
- d(u) {
742
- u && O(t), l = !1, a();
742
+ d(p) {
743
+ p && O(t), o = !1, a();
743
744
  }
744
745
  };
745
746
  }
746
747
  function It(n) {
747
748
  let t;
748
- function e(a, u) {
749
+ function e(a, p) {
749
750
  return (
750
751
  /*hasConfigErrors*/
751
752
  a[7] ? vt : yt
752
753
  );
753
754
  }
754
- let i = e(n), l = i(n);
755
+ let i = e(n), o = i(n);
755
756
  return {
756
757
  c() {
757
- t = v("div"), l.c(), r(t, "class", "OtpContent");
758
+ t = v("div"), o.c(), r(t, "class", "OtpContent");
758
759
  },
759
- m(a, u) {
760
- S(a, t, u), l.m(t, null), n[44](t);
760
+ m(a, p) {
761
+ S(a, t, p), o.m(t, null), n[44](t);
761
762
  },
762
- p(a, u) {
763
- i === (i = e(a)) && l ? l.p(a, u) : (l.d(1), l = i(a), l && (l.c(), l.m(t, null)));
763
+ p(a, p) {
764
+ i === (i = e(a)) && o ? o.p(a, p) : (o.d(1), o = i(a), o && (o.c(), o.m(t, null)));
764
765
  },
765
766
  i: ke,
766
767
  o: ke,
767
768
  d(a) {
768
- a && O(t), l.d(), n[44](null);
769
+ a && O(t), o.d(), n[44](null);
769
770
  }
770
771
  };
771
772
  }
772
773
  function Pt(n, t, e) {
773
- let i, l, a;
774
- ct(n, bt, (o) => e(19, a = o));
775
- let { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: c } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, R = "", K = "", F = !1, V = !1, I = "", ne = "", q = "", Q = !1, re = !1, $ = !1, E = "", z = {}, W = null, se = !1, ae = !1, ce = "", U, he, X = [], H = null, Y = 0, ue = !1, pe = !1;
774
+ let i, o, a;
775
+ ct(n, mt, (l) => e(19, a = l));
776
+ let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: c } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, R = "", K = "", W = !1, V = !1, I = "", ne = "", q = "", Z = !1, re = !1, $ = !1, E = "", z = {}, F = null, se = !1, ae = !1, ce = "", U, he, X = [], H = null, Y = 0, pe = !1, ue = !1;
776
777
  const de = { SMS: "sms", EMAIL: "email" }, ee = {
777
778
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
778
779
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
779
780
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
780
781
  };
781
- Object.keys(Ie).forEach((o) => {
782
- Re(o, Ie[o]);
782
+ Object.keys(Ie).forEach((l) => {
783
+ Re(l, Ie[l]);
783
784
  });
784
785
  const G = () => {
785
786
  wt(f);
786
787
  }, N = () => {
787
- fetch(T).then((o) => o.json()).then((o) => {
788
- Object.keys(o).forEach((h) => {
789
- Re(h, o[h]);
788
+ fetch(T).then((l) => l.json()).then((l) => {
789
+ Object.keys(l).forEach((h) => {
790
+ Re(h, l[h]);
790
791
  });
791
- }).catch((o) => {
792
- console.log(o);
792
+ }).catch((l) => {
793
+ console.log(l);
793
794
  });
794
- }, ge = (o) => me(this, null, function* () {
795
+ }, ge = (l) => me(this, null, function* () {
795
796
  var h;
796
- if ((h = o.detail) != null && h["x-step-up-required"]) {
797
- if (e(7, V = !1), e(6, F = !1), e(8, I = ""), ne = o.detail["x-step-up-token"], q = o.detail.flow, !ne || !q) {
797
+ if ((h = l.detail) != null && h["x-step-up-required"]) {
798
+ if (e(7, V = !1), e(6, W = !1), e(8, I = ""), ne = l.detail["x-step-up-token"], q = l.detail.flow, !ne || !q) {
798
799
  e(3, m = !1), e(7, V = !0), e(8, I = a("configError"));
799
800
  return;
800
801
  }
801
802
  e(12, se = !1), e(3, m = !1);
802
803
  }
803
804
  }), ie = () => {
804
- H && (clearInterval(H), H = null), W && (clearInterval(W), W = null), e(6, F = !1), e(7, V = !1), e(8, I = ""), e(10, re = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, se = !1), e(38, z = {});
805
+ H && (clearInterval(H), H = null), F && (clearInterval(F), F = 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, se = !1), e(38, z = {});
805
806
  }, j = () => {
806
807
  ie();
807
- }, be = () => new Promise((o, h) => {
808
+ }, be = () => new Promise((l, h) => {
808
809
  const g = new URL(`${_}/api/pam/v1/mfa/challenge/${ne}`), A = new Headers();
809
- A.append("accept", "application/json"), A.append("Content-Type", "application/json"), A.append("X-SessionId", `${w}`), e(16, pe = !0);
810
+ A.append("accept", "application/json"), A.append("Content-Type", "application/json"), A.append("X-SessionId", `${w}`), e(16, ue = !0);
810
811
  const fe = {
811
812
  method: "PATCH",
812
813
  headers: A,
@@ -816,99 +817,99 @@ function Pt(n, t, e) {
816
817
  })
817
818
  };
818
819
  fetch(g, fe).then((Se) => Se.json()).then(() => {
819
- e(15, ue = !1), k(), we(), o();
820
+ e(15, pe = !1), k(), we(), l();
820
821
  }).catch((Se) => {
821
822
  h();
822
823
  });
823
- }), le = () => {
824
- W && clearInterval(W), W = setInterval(
824
+ }), oe = () => {
825
+ F && clearInterval(F), F = setInterval(
825
826
  () => {
826
- const o = ve({}, z);
827
+ const l = ve({}, z);
827
828
  let h = !1;
828
- Object.keys(o).forEach((g) => {
829
- o[g] > 0 && (o[g]--, h = !0);
830
- }), e(38, z = o), !h && W && (clearInterval(W), W = null);
829
+ Object.keys(l).forEach((g) => {
830
+ l[g] > 0 && (l[g]--, h = !0);
831
+ }), e(38, z = l), !h && F && (clearInterval(F), F = null);
831
832
  },
832
833
  1e3
833
834
  );
834
- }, P = (o) => {
835
- e(0, E = o);
836
- }, p = () => me(this, null, function* () {
835
+ }, P = (l) => {
836
+ e(0, E = l);
837
+ }, u = () => me(this, null, function* () {
837
838
  if (!(!E || z[E] && z[E] > 0)) {
838
839
  e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
839
840
  try {
840
841
  yield be(), yield ye(), e(38, z = Le(ve({}, z), {
841
842
  [E]: 30
842
- })), le(), e(12, se = !0), k(), we();
843
- } catch (o) {
844
- console.error("Error submitting channel:", o), e(6, F = !0), e(8, I = a("submissionError"));
843
+ })), oe(), e(12, se = !0), k(), we();
844
+ } catch (l) {
845
+ console.error("Error submitting channel:", l), e(6, W = !0), e(8, I = a("submissionError"));
845
846
  } finally {
846
847
  e(3, m = !1);
847
848
  }
848
849
  }
849
850
  }), k = () => {
850
- const o = new Date(R), h = new Date(K), g = /* @__PURE__ */ new Date(), A = h.getTime() - g.getTime();
851
- Y = o.getTime() - A;
851
+ const l = new Date(R), h = new Date(K), g = /* @__PURE__ */ new Date(), A = h.getTime() - g.getTime();
852
+ Y = l.getTime() - A;
852
853
  const B = Date.now(), fe = Math.max(0, Math.floor((Y - B) / 1e3));
853
854
  e(5, C = fe);
854
855
  }, we = () => {
855
856
  H && clearInterval(H), H = setInterval(
856
857
  () => {
857
- const o = Date.now(), h = Math.max(0, Math.floor((Y - o) / 1e3));
858
- e(5, C = h), e(11, $ = h <= 0), h <= 0 && (clearInterval(H), H = null, e(9, Q = !0), e(6, F = !1), e(10, re = !1));
858
+ const l = Date.now(), h = Math.max(0, Math.floor((Y - l) / 1e3));
859
+ e(5, C = h), e(11, $ = h <= 0), h <= 0 && (clearInterval(H), H = null, e(9, Z = !0), e(6, W = !1), e(10, re = !1));
859
860
  },
860
861
  1e3
861
862
  );
862
- }, Ve = (o) => {
863
- const h = Math.floor(o / 60), g = o % 60;
863
+ }, Ve = (l) => {
864
+ const h = Math.floor(l / 60), g = l % 60;
864
865
  return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
865
- }, _e = (o, h) => {
866
+ }, _e = (l, h) => {
866
867
  const g = [...b];
867
- g[o] = h.toUpperCase(), e(2, b = g), g.join("") !== ce && e(13, ae = !1);
868
- }, He = (o) => {
868
+ g[l] = h.toUpperCase(), e(2, b = g), g.join("") !== ce && e(13, ae = !1);
869
+ }, He = (l) => {
869
870
  var A, B, fe;
870
- o.preventDefault();
871
- const g = (((B = (A = o.clipboardData) == null ? void 0 : A.getData("text")) == null ? void 0 : B.trim()) || "").slice(0, y.inputLength).split("");
871
+ l.preventDefault();
872
+ const g = (((B = (A = l.clipboardData) == null ? void 0 : A.getData("text")) == null ? void 0 : B.trim()) || "").slice(0, y.inputLength).split("");
872
873
  e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), (fe = X[g.length]) == null || fe.focus(), g.length === y.inputLength && Oe();
873
- }, Ce = (o, h) => {
874
- const g = o.target, A = g.value;
874
+ }, Ce = (l, h) => {
875
+ const g = l.target, A = g.value;
875
876
  if (/^[a-z0-9]$/i.test(A)) {
876
877
  _e(h, A);
877
878
  const B = X[h + 1];
878
879
  B == null || B.focus();
879
880
  }
880
881
  g.value = "";
881
- }, Ee = (o, h) => {
882
- const g = o.key, A = o.ctrlKey || o.metaKey;
882
+ }, Ee = (l, h) => {
883
+ const g = l.key, A = l.ctrlKey || l.metaKey;
883
884
  if (/^[a-z0-9]$/i.test(g)) {
884
885
  if (A && g.toLowerCase() === "v")
885
886
  return;
886
- o.preventDefault(), _e(h, g);
887
+ l.preventDefault(), _e(h, g);
887
888
  const B = X[h + 1];
888
889
  B == null || B.focus();
889
890
  } else if (g === "Backspace") {
890
- o.preventDefault(), b[h] !== "" && _e(h, "");
891
+ l.preventDefault(), b[h] !== "" && _e(h, "");
891
892
  const B = X[h - 1];
892
893
  B == null || B.focus();
893
894
  }
894
895
  }, Ne = () => {
895
- q == "stateful" && (be(), e(9, Q = !1));
896
- const o = new CustomEvent("otpResendRequested");
897
- window.dispatchEvent(o);
898
- }, We = (o) => {
896
+ q == "stateful" && (be(), e(9, Z = !1));
897
+ const l = new CustomEvent("otpResendRequested");
898
+ window.dispatchEvent(l);
899
+ }, Fe = (l) => {
899
900
  window.dispatchEvent(new CustomEvent(
900
901
  "otpSubmitted",
901
902
  {
902
903
  detail: {
903
- code: o,
904
+ code: l,
904
905
  maxAttempts: y.maxValidationAttempts,
905
906
  validatedAttempts: y.numberOfValidateAttempts
906
907
  }
907
908
  }
908
909
  ));
909
- }, Fe = (o) => me(this, null, function* () {
910
+ }, We = (l) => me(this, null, function* () {
910
911
  const h = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/validate`, _);
911
- h.searchParams.append("input", o);
912
+ h.searchParams.append("input", l);
912
913
  try {
913
914
  const g = yield fetch(h.href, { method: "POST" });
914
915
  if (g.status === 200) {
@@ -932,10 +933,10 @@ function Pt(n, t, e) {
932
933
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
933
934
  return;
934
935
  }
935
- e(6, F = !0), e(8, I = a("invalidOtp")), ye();
936
+ e(6, W = !0), e(8, I = a("invalidOtp")), ye();
936
937
  return;
937
938
  }
938
- g.message === ee.MAX_INVALIDATE && (e(6, F = !0), e(8, I = a("invalidOtp"))), g.details === ee.MAX_ATTEMPTS_EXCEEDED && e(15, ue = !0), console.error("OTP submission failed:", g), e(6, F = !0), e(8, I = a("submissionError"));
939
+ g.message === ee.MAX_INVALIDATE && (e(6, W = !0), e(8, I = a("invalidOtp"))), g.details === ee.MAX_ATTEMPTS_EXCEEDED && e(15, pe = !0), console.error("OTP submission failed:", g), e(6, W = !0), e(8, I = a("submissionError"));
939
940
  } finally {
940
941
  e(3, m = !1);
941
942
  }
@@ -952,59 +953,59 @@ function Pt(n, t, e) {
952
953
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
953
954
  }, Oe = () => me(this, null, function* () {
954
955
  if (b.join("").length !== y.inputLength) {
955
- e(6, F = !0), e(8, I = a("invalidOtp"));
956
+ e(6, W = !0), e(8, I = a("invalidOtp"));
956
957
  return;
957
958
  }
958
- const o = b.join("");
959
- e(13, ae = !0), ce = o, e(3, m = !0), e(6, F = !1), e(8, I = ""), q === "stateless" && We(o), q === "stateful" && (yield Fe(o));
959
+ const l = b.join("");
960
+ e(13, ae = !0), ce = l, e(3, m = !0), e(6, W = !1), e(8, I = ""), q === "stateless" && Fe(l), q === "stateful" && (yield We(l));
960
961
  }), ye = () => me(this, null, function* () {
961
962
  if (_)
962
963
  try {
963
964
  e(3, m = !0);
964
- const o = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/config`, _), h = yield fetch(o.href), g = yield h.json();
965
+ const l = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/config`, _), h = yield fetch(l.href), g = yield h.json();
965
966
  if (h.ok)
966
- e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Q = !1), R = y.expirationTime, K = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, F = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, re = !0), e(3, m = !1), k(), we(), e(16, pe = !1);
967
+ e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Z = !1), R = y.expirationTime, K = 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), k(), we(), e(16, ue = !1);
967
968
  else if (g && g.details === ee.MAX_ATTEMPTS_EXCEEDED)
968
969
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
969
970
  else {
970
971
  const A = g && g.message || `Failed to load config. Status: ${h.status}`;
971
972
  throw new Error(A);
972
973
  }
973
- } catch (o) {
974
- e(3, m = !1), e(7, V = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", o);
974
+ } catch (l) {
975
+ e(3, m = !1), e(7, V = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", l);
975
976
  }
976
977
  });
977
- ut(() => (window.addEventListener("stepUpAuthRequired", ge, !1), window.addEventListener("closePopup", j, !1), () => {
978
- window.removeEventListener("stepUpAuthRequired", ge), window.removeEventListener("closePopup", j, !1), H && clearInterval(H), W && clearInterval(W);
978
+ pt(() => (window.addEventListener("stepUpAuthRequired", ge, !1), window.addEventListener("closePopup", j, !1), () => {
979
+ window.removeEventListener("stepUpAuthRequired", ge), window.removeEventListener("closePopup", j, !1), H && clearInterval(H), F && clearInterval(F);
979
980
  }));
980
981
  const Xe = () => P(de.SMS), Ke = () => P(de.EMAIL);
981
- function Ge(o, h) {
982
- ze[o ? "unshift" : "push"](() => {
983
- X[h] = o, e(14, X);
982
+ function Ge(l, h) {
983
+ ze[l ? "unshift" : "push"](() => {
984
+ X[h] = l, e(14, X);
984
985
  });
985
986
  }
986
- const Ye = (o, h) => Ce(h, o), Je = (o, h) => Ee(h, o);
987
- function Ze(o) {
988
- ze[o ? "unshift" : "push"](() => {
989
- U = o, e(1, U);
987
+ const Ye = (l, h) => Ce(h, l), Je = (l, h) => Ee(h, l);
988
+ function Qe(l) {
989
+ ze[l ? "unshift" : "push"](() => {
990
+ U = l, e(1, U);
990
991
  });
991
992
  }
992
- return n.$$set = (o) => {
993
- "clientstyling" in o && e(31, u = o.clientstyling), "clientstylingurl" in o && e(32, s = o.clientstylingurl), "mbsource" in o && e(33, c = 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);
993
+ return n.$$set = (l) => {
994
+ "clientstyling" in l && e(31, p = l.clientstyling), "clientstylingurl" in l && e(32, s = l.clientstylingurl), "mbsource" in l && e(33, c = l.mbsource), "lang" in l && e(34, f = l.lang), "endpoint" in l && e(35, _ = l.endpoint), "session" in l && e(36, w = l.session), "translationurl" in l && e(37, T = l.translationurl), "templateid" in l && e(30, M = l.templateid);
994
995
  }, n.$$.update = () => {
995
996
  n.$$.dirty[0] & /*customStylingContainer*/
996
997
  2 | n.$$.dirty[1] & /*clientstyling*/
997
- 1 && u && U && ft(U, u), n.$$.dirty[0] & /*customStylingContainer*/
998
+ 1 && p && U && ht(U, p), n.$$.dirty[0] & /*customStylingContainer*/
998
999
  2 | n.$$.dirty[1] & /*clientstylingurl*/
999
- 2 && s && U && mt(U, s), n.$$.dirty[0] & /*customStylingContainer*/
1000
+ 2 && s && U && gt(U, s), n.$$.dirty[0] & /*customStylingContainer*/
1000
1001
  2 | n.$$.dirty[1] & /*mbsource*/
1001
- 4 && c && U && ht(U, `${c}.Style`, he), n.$$.dirty[1] & /*lang*/
1002
+ 4 && c && U && bt(U, `${c}.Style`, he), n.$$.dirty[1] & /*lang*/
1002
1003
  8 && f && G(), n.$$.dirty[1] & /*lang, translationurl*/
1003
1004
  72 && f && T && N(), n.$$.dirty[0] & /*selectedChannel*/
1004
1005
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
1005
1006
  128 && e(18, i = E && (!z[E] || z[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
1006
1007
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
1007
- 128 && e(17, l = E && z[E] || 0);
1008
+ 128 && e(17, o = E && z[E] || 0);
1008
1009
  }, [
1009
1010
  E,
1010
1011
  U,
@@ -1012,23 +1013,23 @@ function Pt(n, t, e) {
1012
1013
  m,
1013
1014
  y,
1014
1015
  C,
1015
- F,
1016
+ W,
1016
1017
  V,
1017
1018
  I,
1018
- Q,
1019
+ Z,
1019
1020
  re,
1020
1021
  $,
1021
1022
  se,
1022
1023
  ae,
1023
1024
  X,
1024
- ue,
1025
1025
  pe,
1026
- l,
1026
+ ue,
1027
+ o,
1027
1028
  i,
1028
1029
  a,
1029
1030
  de,
1030
1031
  P,
1031
- p,
1032
+ u,
1032
1033
  Ve,
1033
1034
  He,
1034
1035
  Ce,
@@ -1037,7 +1038,7 @@ function Pt(n, t, e) {
1037
1038
  Ue,
1038
1039
  Oe,
1039
1040
  M,
1040
- u,
1041
+ p,
1041
1042
  s,
1042
1043
  c,
1043
1044
  f,
@@ -1050,10 +1051,10 @@ function Pt(n, t, e) {
1050
1051
  Ge,
1051
1052
  Ye,
1052
1053
  Je,
1053
- Ze
1054
+ Qe
1054
1055
  ];
1055
1056
  }
1056
- class xt extends ot {
1057
+ class xt extends lt {
1057
1058
  constructor(t) {
1058
1059
  super(), rt(
1059
1060
  this,
@@ -1079,52 +1080,52 @@ class xt extends ot {
1079
1080
  return this.$$.ctx[31];
1080
1081
  }
1081
1082
  set clientstyling(t) {
1082
- this.$$set({ clientstyling: t }), oe();
1083
+ this.$$set({ clientstyling: t }), le();
1083
1084
  }
1084
1085
  get clientstylingurl() {
1085
1086
  return this.$$.ctx[32];
1086
1087
  }
1087
1088
  set clientstylingurl(t) {
1088
- this.$$set({ clientstylingurl: t }), oe();
1089
+ this.$$set({ clientstylingurl: t }), le();
1089
1090
  }
1090
1091
  get mbsource() {
1091
1092
  return this.$$.ctx[33];
1092
1093
  }
1093
1094
  set mbsource(t) {
1094
- this.$$set({ mbsource: t }), oe();
1095
+ this.$$set({ mbsource: t }), le();
1095
1096
  }
1096
1097
  get lang() {
1097
1098
  return this.$$.ctx[34];
1098
1099
  }
1099
1100
  set lang(t) {
1100
- this.$$set({ lang: t }), oe();
1101
+ this.$$set({ lang: t }), le();
1101
1102
  }
1102
1103
  get endpoint() {
1103
1104
  return this.$$.ctx[35];
1104
1105
  }
1105
1106
  set endpoint(t) {
1106
- this.$$set({ endpoint: t }), oe();
1107
+ this.$$set({ endpoint: t }), le();
1107
1108
  }
1108
1109
  get session() {
1109
1110
  return this.$$.ctx[36];
1110
1111
  }
1111
1112
  set session(t) {
1112
- this.$$set({ session: t }), oe();
1113
+ this.$$set({ session: t }), le();
1113
1114
  }
1114
1115
  get translationurl() {
1115
1116
  return this.$$.ctx[37];
1116
1117
  }
1117
1118
  set translationurl(t) {
1118
- this.$$set({ translationurl: t }), oe();
1119
+ this.$$set({ translationurl: t }), le();
1119
1120
  }
1120
1121
  get templateid() {
1121
1122
  return this.$$.ctx[30];
1122
1123
  }
1123
1124
  set templateid(t) {
1124
- this.$$set({ templateid: t }), oe();
1125
+ this.$$set({ templateid: t }), le();
1125
1126
  }
1126
1127
  }
1127
- gt(xt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
1128
+ ft(xt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
1128
1129
  export {
1129
1130
  xt as default
1130
1131
  };