@everymatrix/cashier-page 1.92.8 → 1.92.21

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-B-cM-nlR.js +5797 -0
  2. package/components/CashierCarousel-CXoovlrR.js +5835 -0
  3. package/components/CashierCarousel-DMrMmClP.cjs +23 -0
  4. package/components/{CashierError-C854_1dB.js → CashierError-66WHxjwV.js} +45 -44
  5. package/components/{CashierError-D638x9x-.js → CashierError-BCtelxyY.js} +46 -45
  6. package/components/CashierError-BL_rmfvV.cjs +1 -0
  7. package/components/CashierHeader-B7FnLv3f.js +397 -0
  8. package/components/CashierHeader-BbP0idUh.js +397 -0
  9. package/components/CashierHeader-PvXFHPzQ.cjs +1 -0
  10. package/components/CashierIframeRedirect-C0AQ3pLh.cjs +1 -0
  11. package/components/{CashierIframeRedirect-BUcU3T5U.js → CashierIframeRedirect-C3muwYdO.js} +106 -91
  12. package/components/{CashierIframeRedirect-BhmYmTKc.js → CashierIframeRedirect-Ti9O6xV-.js} +108 -93
  13. package/components/{CashierMethodDetails-iZTHVxaU.js → CashierMethodDetails-C7odWYEI.js} +3987 -3408
  14. package/components/CashierMethodDetails-DjLhLSey.cjs +85 -0
  15. package/components/{CashierMethodDetails-BOhUmKCH.js → CashierMethodDetails-JQOw_ppF.js} +4016 -3438
  16. package/components/{CashierMethodsList-B97v3Xuh.js → CashierMethodsList-C-7-CmRx.js} +65 -65
  17. package/components/CashierMethodsList-CNxb5rVf.cjs +1 -0
  18. package/components/{CashierMethodsList-eUczF6XC.js → CashierMethodsList-CZxMoF32.js} +56 -56
  19. package/components/{CashierModal-C4MoXHG7.js → CashierModal-B1pfSpCs.js} +36 -37
  20. package/components/{CashierModal-BUkNhHpl.js → CashierModal-BsrmgnKi.js} +32 -33
  21. package/components/CashierModal-DF8meLAZ.cjs +1 -0
  22. package/components/CashierNotifications-B8bRZMac.cjs +1 -0
  23. package/components/{CashierNotifications-BatwRhbq.js → CashierNotifications-BXxNDzMM.js} +3 -3
  24. package/components/{CashierNotifications-C0NjswTn.js → CashierNotifications-DbJuswYZ.js} +5 -5
  25. package/components/CashierPage-Bhgj76MY.js +4490 -0
  26. package/components/CashierPage-CIxAkXYb.js +4460 -0
  27. package/components/CashierPage-iIGUB5g4.cjs +1 -0
  28. package/components/CashierReceiptPage-B530KWIS.cjs +26 -0
  29. package/components/{CashierReceiptPage-CdqmVXe9.js → CashierReceiptPage-DGZSqJFO.js} +169 -156
  30. package/components/{CashierReceiptPage-2rVfG2fm.js → CashierReceiptPage-DjfCUH2F.js} +177 -164
  31. package/components/{CashierSessionExpirationModal-CK0YLZbU.js → CashierSessionExpirationModal-BKxhGCj9.js} +254 -267
  32. package/components/CashierSessionExpirationModal-C6owPr_u.cjs +2 -0
  33. package/components/{CashierSessionExpirationModal-0EbJrsdx.js → CashierSessionExpirationModal-CU8HtTwA.js} +267 -280
  34. package/components/CashierSpinner-DKYO0FtD.cjs +1 -0
  35. package/components/{CashierSpinner-hEROg29-.js → CashierSpinner-DMrM0bGx.js} +10 -11
  36. package/components/{CashierSpinner-DGz_dycp.js → CashierSpinner-gJqeYU1n.js} +12 -13
  37. package/components/{CashierStepUp-CrJocLXp.js → CashierStepUp-B530YrSp.js} +168 -169
  38. package/components/{CashierStepUp-q7iSJelQ.js → CashierStepUp-BtmD9q4i.js} +245 -246
  39. package/components/CashierStepUp-DKytvkqu.cjs +1 -0
  40. package/components/{CashierTransactionHistory-sGV35WcB.js → CashierTransactionHistory-CWxjn4dO.js} +71 -71
  41. package/components/CashierTransactionHistory-CYaB1hEN.cjs +1 -0
  42. package/components/{CashierTransactionHistory-BrgrDNsw.js → CashierTransactionHistory-D1hopcmz.js} +66 -66
  43. package/components/{CashierVerifications-yC2Ur1H-.js → CashierVerifications-B3UcXWeI.js} +142 -158
  44. package/components/{CashierVerifications-DnM9z8za.js → CashierVerifications-CWsTc0hE.js} +102 -118
  45. package/components/CashierVerifications-D3X4oFbB.cjs +1 -0
  46. package/components/TxnStatusIcon-CWkyVMIU.cjs +1 -0
  47. package/components/{TxnStatusIcon-BduMMfo6.js → TxnStatusIcon-DCSCOAn2.js} +1 -1
  48. package/components/{TxnStatusIcon-rwPr0B_L.js → TxnStatusIcon-DRFHs_0F.js} +8 -8
  49. package/components/{TxnTypeIcons-ByJ8NlBp.js → TxnTypeIcons-Bg7QJKuH.js} +1 -1
  50. package/components/TxnTypeIcons-CTQXT_j5.cjs +1 -0
  51. package/components/{TxnTypeIcons-DQrCawdt.js → TxnTypeIcons-D37zQDwq.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-CFDrfBto.cjs +0 -1
  57. package/components/CashierCarousel-JhSTmzvt.js +0 -672
  58. package/components/CashierCarousel-PsCjjLe2.js +0 -675
  59. package/components/CashierError-zeIQl4g_.cjs +0 -1
  60. package/components/CashierHeader-Bp8vaWrp.cjs +0 -1
  61. package/components/CashierHeader-D-mMGt-Y.js +0 -456
  62. package/components/CashierHeader-il09PBLP.js +0 -456
  63. package/components/CashierIframeRedirect-CMcw96Fv.cjs +0 -1
  64. package/components/CashierMethodDetails-DnbNzQW6.cjs +0 -85
  65. package/components/CashierMethodsList-B_9i2Q2s.cjs +0 -1
  66. package/components/CashierModal-Dq36GGc7.cjs +0 -1
  67. package/components/CashierNotifications-BB8FN1j_.cjs +0 -1
  68. package/components/CashierPage-Cc-WWhS2.cjs +0 -23
  69. package/components/CashierPage-DRWrUyaV.js +0 -9936
  70. package/components/CashierPage-HxKce2E6.js +0 -9989
  71. package/components/CashierReceiptPage-CF7knTfT.cjs +0 -26
  72. package/components/CashierSessionExpirationModal-Dht4fdo7.cjs +0 -2
  73. package/components/CashierSpinner-D78lroyw.cjs +0 -1
  74. package/components/CashierStepUp-Dr4sPwOr.cjs +0 -1
  75. package/components/CashierTransactionHistory-sQ3KzTVb.cjs +0 -1
  76. package/components/CashierVerifications-t7V-5Qq2.cjs +0 -1
  77. package/components/TxnStatusIcon-DwP4kCaz.cjs +0 -1
  78. package/components/TxnTypeIcons-DwmzII52.cjs +0 -1
@@ -1,5 +1,4 @@
1
- import { a as Ke, $ as Ge, S as Ye, b as Je, s as Qe, f as oe, d as Ze, z as ye, g as O, l as S, n as v, p as r, q as $e, r as et, y as Oe, w as P, m as d, A as ee, P as Y, o as R, x as L, F as xe, L as J, v as tt, D as Se, E as nt, c as it, B as ot } from "./CashierPage-DRWrUyaV.js";
2
- import { s as lt, a as rt, b as st } from "./CashierHeader-il09PBLP.js";
1
+ import { a as Ke, $ as Ge, S as Ye, b as Je, s as Ze, f as le, c as Qe, G as ye, e as O, k as S, m as v, o as r, p as $e, q as et, y as Oe, v as P, l as d, x as ee, X as Y, n as R, w as L, a2 as xe, W as J, r as tt, Z as Se, a4 as nt, B as it, C as lt, D as ot, E as rt, F as st } from "./CashierCarousel-B-cM-nlR.js";
3
2
  function Me(n, t) {
4
3
  Ke(n, t);
5
4
  }
@@ -78,17 +77,17 @@ const Te = {
78
77
  }
79
78
  };
80
79
  function ct(n) {
81
- Ze(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}}');
80
+ Qe(n, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
82
81
  }
83
82
  function Le(n, t, e) {
84
83
  const i = n.slice();
85
84
  return i[69] = t[e], i[70] = t, i[71] = e, i;
86
85
  }
87
86
  function pt(n) {
88
- let t, e, i, o, a, p, s, u, f, _, w, T, M, b, m, y, C, A = (
87
+ let t, e, i, l, a, p, s, u, f, _, w, T, M, b, m, y, C, A = (
89
88
  /*$_*/
90
89
  n[19]("channelSMS") + ""
91
- ), X, F, j, I, te, W, Q, le, Z, E, z, N, re, se, ae = (
90
+ ), X, W, j, I, te, F, Z, oe, Q, E, z, N, re, se, ae = (
92
91
  /*$_*/
93
92
  n[19]("channelEmail") + ""
94
93
  ), q, de, U, B, G, ce, pe;
@@ -136,7 +135,7 @@ function pt(n) {
136
135
  let ie = me(n), x = ie && ie(n);
137
136
  return {
138
137
  c() {
139
- t = v("div"), K.c(), e = R(), i = v("div"), o = v("label"), a = v("div"), p = R(), s = v("input"), f = R(), _ = v("div"), w = Y("svg"), T = Y("path"), M = Y("circle"), b = Y("circle"), m = Y("circle"), y = R(), C = v("span"), X = L(A), F = R(), j = v("label"), I = v("div"), te = R(), W = v("input"), le = R(), Z = v("div"), E = Y("svg"), z = Y("rect"), N = Y("path"), re = R(), se = v("span"), q = L(ae), de = R(), V && V.c(), U = R(), D && D.c(), B = R(), G = v("div"), x && x.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), J(
138
+ t = v("div"), K.c(), e = R(), i = v("div"), l = v("label"), a = v("div"), p = R(), s = v("input"), f = R(), _ = v("div"), w = Y("svg"), T = Y("path"), M = Y("circle"), b = Y("circle"), m = Y("circle"), y = R(), C = v("span"), X = L(A), W = R(), j = v("label"), I = v("div"), te = R(), F = v("input"), oe = R(), Q = v("div"), E = Y("svg"), z = Y("rect"), N = Y("path"), re = R(), se = v("span"), q = L(ae), de = R(), V && V.c(), U = R(), D && D.c(), B = R(), G = v("div"), x && x.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), J(
140
139
  a,
141
140
  "checked",
142
141
  /*selectedChannel*/
@@ -145,8 +144,8 @@ function pt(n) {
145
144
  ), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
146
145
  n[20].SMS, s.checked = u = /*selectedChannel*/
147
146
  n[0] === /*channels*/
148
- 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"), J(
149
- o,
147
+ n[20].SMS, r(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), r(M, "cx", "9"), r(M, "cy", "11"), r(M, "r", "0.5"), r(M, "fill", "currentColor"), r(b, "cx", "12"), r(b, "cy", "11"), r(b, "r", "0.5"), r(b, "fill", "currentColor"), r(m, "cx", "15"), r(m, "cy", "11"), r(m, "r", "0.5"), r(m, "fill", "currentColor"), r(w, "xmlns", "http://www.w3.org/2000/svg"), r(w, "width", "24"), r(w, "height", "24"), r(w, "viewBox", "0 0 24 24"), r(w, "fill", "none"), r(w, "stroke", "currentColor"), r(w, "stroke-width", "2"), r(w, "stroke-linecap", "round"), r(w, "stroke-linejoin", "round"), r(_, "class", "ChannelContent"), r(l, "class", "ChannelCheckbox"), J(
148
+ l,
150
149
  "selected",
151
150
  /*selectedChannel*/
152
151
  n[0] === /*channels*/
@@ -157,10 +156,10 @@ function pt(n) {
157
156
  /*selectedChannel*/
158
157
  n[0] === /*channels*/
159
158
  n[20].EMAIL
160
- ), r(W, "type", "radio"), r(W, "name", "channel"), W.value = /*channels*/
161
- n[20].EMAIL, W.checked = Q = /*selectedChannel*/
159
+ ), r(F, "type", "radio"), r(F, "name", "channel"), F.value = /*channels*/
160
+ n[20].EMAIL, F.checked = Z = /*selectedChannel*/
162
161
  n[0] === /*channels*/
163
- n[20].EMAIL, r(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "rx", "2"), r(N, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r(Z, "class", "ChannelContent"), r(j, "class", "ChannelCheckbox"), J(
162
+ n[20].EMAIL, r(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "rx", "2"), r(N, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r(Q, "class", "ChannelContent"), r(j, "class", "ChannelCheckbox"), J(
164
163
  j,
165
164
  "selected",
166
165
  /*selectedChannel*/
@@ -169,7 +168,7 @@ function pt(n) {
169
168
  ), r(i, "class", "ChannelSelection"), r(G, "class", "OtpActionButtons");
170
169
  },
171
170
  m(c, k) {
172
- S(c, t, k), K.m(t, null), S(c, e, k), S(c, 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, X), d(i, F), d(i, j), d(j, I), d(j, te), d(j, W), d(j, le), d(j, Z), d(Z, E), d(E, z), d(E, N), d(Z, re), d(Z, se), d(se, q), S(c, de, k), V && V.m(c, k), S(c, U, k), D && D.m(c, k), S(c, B, k), S(c, G, k), x && x.m(G, null), ce || (pe = [
171
+ S(c, t, k), K.m(t, null), S(c, e, k), S(c, i, k), d(i, l), d(l, a), d(l, p), d(l, s), d(l, f), d(l, _), d(_, w), d(w, T), d(w, M), d(w, b), d(w, m), d(_, y), d(_, C), d(C, X), d(i, W), d(i, j), d(j, I), d(j, te), d(j, F), d(j, oe), d(j, Q), d(Q, E), d(E, z), d(E, N), d(Q, re), d(Q, se), d(se, q), S(c, de, k), V && V.m(c, k), S(c, U, k), D && D.m(c, k), S(c, B, k), S(c, G, k), x && x.m(G, null), ce || (pe = [
173
172
  ee(
174
173
  s,
175
174
  "change",
@@ -177,7 +176,7 @@ function pt(n) {
177
176
  n[39]
178
177
  ),
179
178
  ee(
180
- W,
179
+ F,
181
180
  "change",
182
181
  /*change_handler_1*/
183
182
  n[40]
@@ -199,7 +198,7 @@ function pt(n) {
199
198
  524288 && A !== (A = /*$_*/
200
199
  c[19]("channelSMS") + "") && P(X, A), k[0] & /*selectedChannel, channels*/
201
200
  1048577 && J(
202
- o,
201
+ l,
203
202
  "selected",
204
203
  /*selectedChannel*/
205
204
  c[0] === /*channels*/
@@ -212,9 +211,9 @@ function pt(n) {
212
211
  c[0] === /*channels*/
213
212
  c[20].EMAIL
214
213
  ), k[0] & /*selectedChannel*/
215
- 1 && Q !== (Q = /*selectedChannel*/
214
+ 1 && Z !== (Z = /*selectedChannel*/
216
215
  c[0] === /*channels*/
217
- c[20].EMAIL) && (W.checked = Q), k[0] & /*$_*/
216
+ c[20].EMAIL) && (F.checked = Z), k[0] & /*$_*/
218
217
  524288 && ae !== (ae = /*$_*/
219
218
  c[19]("channelEmail") + "") && P(q, ae), k[0] & /*selectedChannel, channels*/
220
219
  1048577 && J(
@@ -232,7 +231,7 @@ function pt(n) {
232
231
  };
233
232
  }
234
233
  function ut(n) {
235
- let t, e, i, o, a, p, s = (
234
+ let t, e, i, l, a, p, s = (
236
235
  /*$_*/
237
236
  n[19]("errorHeader") + ""
238
237
  ), u, f, _, w, T, M, b = (
@@ -241,13 +240,13 @@ function ut(n) {
241
240
  ), m, y, C;
242
241
  return {
243
242
  c() {
244
- t = v("div"), e = v("div"), i = Y("svg"), o = Y("path"), a = R(), p = v("h2"), u = L(s), f = R(), _ = v("p"), w = L(
243
+ t = v("div"), e = v("div"), i = Y("svg"), l = Y("path"), a = R(), p = v("h2"), u = L(s), f = R(), _ = v("p"), w = L(
245
244
  /*errorMessage*/
246
245
  n[8]
247
- ), T = R(), 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");
246
+ ), T = R(), M = v("button"), m = L(b), r(l, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), r(i, "xmlns", "http://www.w3.org/2000/svg"), r(i, "viewBox", "0 0 512 512"), r(e, "class", "OtpErrorHeader"), r(M, "class", "OtpButton error"), r(t, "class", "OtpError");
248
247
  },
249
248
  m(A, X) {
250
- S(A, t, X), d(t, e), d(e, i), d(i, o), d(e, a), d(e, p), d(p, u), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = ee(
249
+ S(A, t, X), d(t, e), d(e, i), d(i, l), d(e, a), d(e, p), d(p, u), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = ee(
251
250
  M,
252
251
  "click",
253
252
  /*manualClosePopup*/
@@ -272,7 +271,7 @@ function ut(n) {
272
271
  };
273
272
  }
274
273
  function dt(n) {
275
- let t, e, i, o;
274
+ let t, e, i, l;
276
275
  function a(f, _) {
277
276
  return (
278
277
  /*isLastWarning*/
@@ -285,20 +284,20 @@ function dt(n) {
285
284
  );
286
285
  return {
287
286
  c() {
288
- t = v("p"), s.c(), i = R(), u && u.c(), o = tt(), r(t, "class", e = /*isLastWarning*/
287
+ t = v("p"), s.c(), i = R(), u && u.c(), l = tt(), r(t, "class", e = /*isLastWarning*/
289
288
  n[10] ? "LastWarningMessage" : "");
290
289
  },
291
290
  m(f, _) {
292
- S(f, t, _), s.m(t, null), S(f, i, _), u && u.m(f, _), S(f, o, _);
291
+ S(f, t, _), s.m(t, null), S(f, i, _), u && u.m(f, _), S(f, l, _);
293
292
  },
294
293
  p(f, _) {
295
294
  p === (p = a(f)) && s ? s.p(f, _) : (s.d(1), s = p(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
296
295
  1024 && e !== (e = /*isLastWarning*/
297
296
  f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
298
- f[6] ? u ? u.p(f, _) : (u = ze(f), u.c(), u.m(o.parentNode, o)) : u && (u.d(1), u = null);
297
+ f[6] ? u ? u.p(f, _) : (u = ze(f), u.c(), u.m(l.parentNode, l)) : u && (u.d(1), u = null);
299
298
  },
300
299
  d(f) {
301
- f && (O(t), O(i), O(o)), s.d(), u && u.d(f);
300
+ f && (O(t), O(i), O(l)), s.d(), u && u.d(f);
302
301
  }
303
302
  };
304
303
  }
@@ -311,16 +310,16 @@ function ft(n) {
311
310
  c() {
312
311
  t = v("p"), i = L(e);
313
312
  },
314
- m(o, a) {
315
- S(o, t, a), d(t, i);
313
+ m(l, a) {
314
+ S(l, t, a), d(t, i);
316
315
  },
317
- p(o, a) {
316
+ p(l, a) {
318
317
  a[0] & /*$_*/
319
318
  524288 && e !== (e = /*$_*/
320
- (o[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && P(i, e);
319
+ (l[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && P(i, e);
321
320
  },
322
- d(o) {
323
- o && O(t);
321
+ d(l) {
322
+ l && O(t);
324
323
  }
325
324
  };
326
325
  }
@@ -333,16 +332,16 @@ function mt(n) {
333
332
  c() {
334
333
  t = v("p"), i = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
335
334
  },
336
- m(o, a) {
337
- S(o, t, a), d(t, i);
335
+ m(l, a) {
336
+ S(l, t, a), d(t, i);
338
337
  },
339
- p(o, a) {
338
+ p(l, a) {
340
339
  a[0] & /*$_*/
341
340
  524288 && e !== (e = /*$_*/
342
- o[19]("otpExpiredMessage") + "") && P(i, e);
341
+ l[19]("otpExpiredMessage") + "") && P(i, e);
343
342
  },
344
- d(o) {
345
- o && O(t);
343
+ d(l) {
344
+ l && O(t);
346
345
  }
347
346
  };
348
347
  }
@@ -355,11 +354,11 @@ function ht(n) {
355
354
  c() {
356
355
  e = L(t);
357
356
  },
358
- m(i, o) {
359
- S(i, e, o);
357
+ m(i, l) {
358
+ S(i, e, l);
360
359
  },
361
- p(i, o) {
362
- o[0] & /*$_*/
360
+ p(i, l) {
361
+ l[0] & /*$_*/
363
362
  524288 && t !== (t = /*$_*/
364
363
  i[19]("popupMessage") + "") && P(e, t);
365
364
  },
@@ -377,11 +376,11 @@ function gt(n) {
377
376
  c() {
378
377
  e = L(t);
379
378
  },
380
- m(i, o) {
381
- S(i, e, o);
379
+ m(i, l) {
380
+ S(i, e, l);
382
381
  },
383
- p(i, o) {
384
- o[0] & /*$_*/
382
+ p(i, l) {
383
+ l[0] & /*$_*/
385
384
  524288 && t !== (t = /*$_*/
386
385
  i[19]("popupMessageLastWarning") + "") && P(e, t);
387
386
  },
@@ -399,11 +398,11 @@ function ze(n) {
399
398
  n[8]
400
399
  ), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
401
400
  },
402
- m(i, o) {
403
- S(i, t, o), d(t, e);
401
+ m(i, l) {
402
+ S(i, t, l), d(t, e);
404
403
  },
405
- p(i, o) {
406
- o[0] & /*errorMessage*/
404
+ p(i, l) {
405
+ l[0] & /*errorMessage*/
407
406
  256 && P(
408
407
  e,
409
408
  /*errorMessage*/
@@ -416,7 +415,7 @@ function ze(n) {
416
415
  };
417
416
  }
418
417
  function Ae(n) {
419
- let t, e, i, o;
418
+ let t, e, i, l;
420
419
  function a(u, f) {
421
420
  return (
422
421
  /*currentChannelTimer*/
@@ -432,7 +431,7 @@ function Ae(n) {
432
431
  n[16]);
433
432
  },
434
433
  m(u, f) {
435
- S(u, t, f), s.m(t, null), i || (o = ee(
434
+ S(u, t, f), s.m(t, null), i || (l = ee(
436
435
  t,
437
436
  "click",
438
437
  /*handleChannelSubmit*/
@@ -448,7 +447,7 @@ function Ae(n) {
448
447
  u[16]);
449
448
  },
450
449
  d(u) {
451
- u && O(t), s.d(), i = !1, o();
450
+ u && O(t), s.d(), i = !1, l();
452
451
  }
453
452
  };
454
453
  }
@@ -461,11 +460,11 @@ function bt(n) {
461
460
  c() {
462
461
  e = L(t);
463
462
  },
464
- m(i, o) {
465
- S(i, e, o);
463
+ m(i, l) {
464
+ S(i, e, l);
466
465
  },
467
- p(i, o) {
468
- o[0] & /*$_*/
466
+ p(i, l) {
467
+ l[0] & /*$_*/
469
468
  524288 && t !== (t = /*$_*/
470
469
  i[19]("sendCode") + "") && P(e, t);
471
470
  },
@@ -478,29 +477,29 @@ function wt(n) {
478
477
  let t = (
479
478
  /*$_*/
480
479
  n[19]("waitSeconds") + ""
481
- ), e, i, o, a;
480
+ ), e, i, l, a;
482
481
  return {
483
482
  c() {
484
- e = L(t), i = L(" ("), o = L(
483
+ e = L(t), i = L(" ("), l = L(
485
484
  /*currentChannelTimer*/
486
485
  n[17]
487
486
  ), a = L("s)");
488
487
  },
489
488
  m(p, s) {
490
- S(p, e, s), S(p, i, s), S(p, o, s), S(p, a, s);
489
+ S(p, e, s), S(p, i, s), S(p, l, s), S(p, a, s);
491
490
  },
492
491
  p(p, s) {
493
492
  s[0] & /*$_*/
494
493
  524288 && t !== (t = /*$_*/
495
494
  p[19]("waitSeconds") + "") && P(e, t), s[0] & /*currentChannelTimer*/
496
495
  131072 && P(
497
- o,
496
+ l,
498
497
  /*currentChannelTimer*/
499
498
  p[17]
500
499
  );
501
500
  },
502
501
  d(p) {
503
- p && (O(e), O(i), O(o), O(a));
502
+ p && (O(e), O(i), O(l), O(a));
504
503
  }
505
504
  };
506
505
  }
@@ -508,7 +507,7 @@ function _t(n) {
508
507
  let t, e, i = (
509
508
  /*$_*/
510
509
  n[19]("timeRemaining") + ""
511
- ), o, a, p = (
510
+ ), l, a, p = (
512
511
  /*formatTime*/
513
512
  n[23](
514
513
  /*timeLeft*/
@@ -525,20 +524,20 @@ function _t(n) {
525
524
  b[m] = Ie(Le(n, M, m));
526
525
  return {
527
526
  c() {
528
- t = v("div"), e = v("div"), o = L(i), a = R(), s = L(p), u = R(), _ = L(f), w = R(), T = v("div");
527
+ t = v("div"), e = v("div"), l = L(i), a = R(), s = L(p), u = R(), _ = L(f), w = R(), T = v("div");
529
528
  for (let m = 0; m < b.length; m += 1)
530
529
  b[m].c();
531
530
  r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
532
531
  },
533
532
  m(m, y) {
534
- S(m, t, y), d(t, e), d(e, o), d(e, a), d(e, s), d(e, u), d(e, _), d(t, w), d(t, T);
533
+ S(m, t, y), d(t, e), d(e, l), d(e, a), d(e, s), d(e, u), d(e, _), d(t, w), d(t, T);
535
534
  for (let C = 0; C < b.length; C += 1)
536
535
  b[C] && b[C].m(T, null);
537
536
  },
538
537
  p(m, y) {
539
538
  if (y[0] & /*$_*/
540
539
  524288 && i !== (i = /*$_*/
541
- m[19]("timeRemaining") + "") && P(o, i), y[0] & /*timeLeft*/
540
+ m[19]("timeRemaining") + "") && P(l, i), y[0] & /*timeLeft*/
542
541
  32 && p !== (p = /*formatTime*/
543
542
  m[23](
544
543
  /*timeLeft*/
@@ -582,16 +581,16 @@ function yt(n) {
582
581
  };
583
582
  }
584
583
  function Ie(n) {
585
- let t, e, i, o = (
584
+ let t, e, i, l = (
586
585
  /*index*/
587
586
  n[71]
588
587
  ), a, p;
589
588
  const s = () => (
590
589
  /*input_binding*/
591
- n[41](t, o)
590
+ n[41](t, l)
592
591
  ), u = () => (
593
592
  /*input_binding*/
594
- n[41](null, o)
593
+ n[41](null, l)
595
594
  );
596
595
  function f(...w) {
597
596
  return (
@@ -644,8 +643,8 @@ function Ie(n) {
644
643
  4 && i !== (i = /*char*/
645
644
  n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
646
645
  2048 && (t.disabled = /*inputDisabled*/
647
- n[11]), o !== /*index*/
648
- n[71] && (u(), o = /*index*/
646
+ n[11]), l !== /*index*/
647
+ n[71] && (u(), l = /*index*/
649
648
  n[71], s());
650
649
  },
651
650
  d(w) {
@@ -657,10 +656,10 @@ function vt(n) {
657
656
  let t, e = (
658
657
  /*$_*/
659
658
  n[19]("submit") + ""
660
- ), i, o, a, p;
659
+ ), i, l, a, p;
661
660
  return {
662
661
  c() {
663
- t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled = o = /*otp*/
662
+ t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled = l = /*otp*/
664
663
  n[2].join("").length !== /*config*/
665
664
  n[4].inputLength || /*isSubmitting*/
666
665
  n[13] || /*maxAttempts*/
@@ -678,11 +677,11 @@ function vt(n) {
678
677
  u[0] & /*$_*/
679
678
  524288 && e !== (e = /*$_*/
680
679
  s[19]("submit") + "") && P(i, e), u[0] & /*otp, config, isSubmitting, maxAttempts*/
681
- 40980 && o !== (o = /*otp*/
680
+ 40980 && l !== (l = /*otp*/
682
681
  s[2].join("").length !== /*config*/
683
682
  s[4].inputLength || /*isSubmitting*/
684
683
  s[13] || /*maxAttempts*/
685
- s[15]) && (t.disabled = o);
684
+ s[15]) && (t.disabled = l);
686
685
  },
687
686
  d(s) {
688
687
  s && O(t), a = !1, p();
@@ -693,18 +692,18 @@ function kt(n) {
693
692
  let t, e = (
694
693
  /*$_*/
695
694
  n[19]("resendOtp") + ""
696
- ), i, o, a;
695
+ ), i, l, a;
697
696
  return {
698
697
  c() {
699
698
  t = v("button"), i = L(e), r(t, "class", "OtpButton");
700
699
  },
701
700
  m(p, s) {
702
- S(p, t, s), d(t, i), o || (a = ee(
701
+ S(p, t, s), d(t, i), l || (a = ee(
703
702
  t,
704
703
  "click",
705
704
  /*handleResendOtp*/
706
705
  n[27]
707
- ), o = !0);
706
+ ), l = !0);
708
707
  },
709
708
  p(p, s) {
710
709
  s[0] & /*$_*/
@@ -712,7 +711,7 @@ function kt(n) {
712
711
  p[19]("resendOtp") + "") && P(i, e);
713
712
  },
714
713
  d(p) {
715
- p && O(t), o = !1, a();
714
+ p && O(t), l = !1, a();
716
715
  }
717
716
  };
718
717
  }
@@ -724,59 +723,59 @@ function Ct(n) {
724
723
  a[7] ? ut : pt
725
724
  );
726
725
  }
727
- let i = e(n), o = i(n);
726
+ let i = e(n), l = i(n);
728
727
  return {
729
728
  c() {
730
- t = v("div"), o.c(), r(t, "class", "OtpContent");
729
+ t = v("div"), l.c(), r(t, "class", "OtpContent");
731
730
  },
732
731
  m(a, p) {
733
- S(a, t, p), o.m(t, null), n[44](t);
732
+ S(a, t, p), l.m(t, null), n[44](t);
734
733
  },
735
734
  p(a, p) {
736
- i === (i = e(a)) && o ? o.p(a, p) : (o.d(1), o = i(a), o && (o.c(), o.m(t, null)));
735
+ i === (i = e(a)) && l ? l.p(a, p) : (l.d(1), l = i(a), l && (l.c(), l.m(t, null)));
737
736
  },
738
737
  i: ye,
739
738
  o: ye,
740
739
  d(a) {
741
- a && O(t), o.d(), n[44](null);
740
+ a && O(t), l.d(), n[44](null);
742
741
  }
743
742
  };
744
743
  }
745
744
  function Et(n, t, e) {
746
- let i, o, a;
747
- $e(n, ot, (l) => e(19, a = l));
748
- let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, A = "", X = "", F = !1, j = !1, I = "", te = "", W = "", Q = !1, le = !1, Z = !1, E = "", z = {}, N = null, re = !1, se = !1, ae = "", q, de, U = [], B = null, G = 0, ce = !1, pe = !1;
745
+ let i, l, a;
746
+ $e(n, st, (o) => e(19, a = o));
747
+ let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, A = "", X = "", W = !1, j = !1, I = "", te = "", F = "", Z = !1, oe = !1, Q = !1, E = "", z = {}, N = null, re = !1, se = !1, ae = "", q, de, U = [], B = null, G = 0, ce = !1, pe = !1;
749
748
  const ue = { SMS: "sms", EMAIL: "email" }, $ = {
750
749
  MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
751
750
  INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
752
751
  MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
753
752
  };
754
- Object.keys(Te).forEach((l) => {
755
- Me(l, Te[l]);
753
+ Object.keys(Te).forEach((o) => {
754
+ Me(o, Te[o]);
756
755
  });
757
756
  const K = () => {
758
757
  at(f);
759
758
  }, V = () => {
760
- fetch(T).then((l) => l.json()).then((l) => {
761
- Object.keys(l).forEach((h) => {
762
- Me(h, l[h]);
759
+ fetch(T).then((o) => o.json()).then((o) => {
760
+ Object.keys(o).forEach((h) => {
761
+ Me(h, o[h]);
763
762
  });
764
- }).catch((l) => {
765
- console.log(l);
763
+ }).catch((o) => {
764
+ console.log(o);
766
765
  });
767
- }, fe = async (l) => {
768
- if (l.detail?.["x-step-up-required"]) {
769
- if (e(7, j = !1), e(6, F = !1), e(8, I = ""), te = l.detail["x-step-up-token"], W = l.detail.flow, !te || !W) {
766
+ }, fe = async (o) => {
767
+ if (o.detail?.["x-step-up-required"]) {
768
+ if (e(7, j = !1), e(6, W = !1), e(8, I = ""), te = o.detail["x-step-up-token"], F = o.detail.flow, !te || !F) {
770
769
  e(3, m = !1), e(7, j = !0), e(8, I = a("configError"));
771
770
  return;
772
771
  }
773
772
  e(12, re = !1), e(3, m = !1);
774
773
  }
775
774
  }, ne = () => {
776
- B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6, F = !1), e(7, j = !1), e(8, I = ""), e(10, le = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, re = !1), e(38, z = {});
775
+ B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6, W = !1), e(7, j = !1), e(8, I = ""), e(10, oe = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, re = !1), e(38, z = {});
777
776
  }, D = () => {
778
777
  ne();
779
- }, me = () => new Promise((l, h) => {
778
+ }, me = () => new Promise((o, h) => {
780
779
  const g = new URL(`${_}/api/pam/v1/mfa/challenge/${te}`), H = new Headers();
781
780
  H.append("accept", "application/json"), H.append("Content-Type", "application/json"), H.append("X-SessionId", `${w}`), e(16, pe = !0);
782
781
  const _e = {
@@ -788,23 +787,23 @@ function Et(n, t, e) {
788
787
  })
789
788
  };
790
789
  fetch(g, _e).then((Ee) => Ee.json()).then(() => {
791
- e(15, ce = !1), k(), ge(), l();
790
+ e(15, ce = !1), k(), ge(), o();
792
791
  }).catch((Ee) => {
793
792
  h();
794
793
  });
795
794
  }), ie = () => {
796
795
  N && clearInterval(N), N = setInterval(
797
796
  () => {
798
- const l = { ...z };
797
+ const o = { ...z };
799
798
  let h = !1;
800
- Object.keys(l).forEach((g) => {
801
- l[g] > 0 && (l[g]--, h = !0);
802
- }), e(38, z = l), !h && N && (clearInterval(N), N = null);
799
+ Object.keys(o).forEach((g) => {
800
+ o[g] > 0 && (o[g]--, h = !0);
801
+ }), e(38, z = o), !h && N && (clearInterval(N), N = null);
803
802
  },
804
803
  1e3
805
804
  );
806
- }, x = (l) => {
807
- e(0, E = l);
805
+ }, x = (o) => {
806
+ e(0, E = o);
808
807
  }, c = async () => {
809
808
  if (!(!E || z[E] && z[E] > 0)) {
810
809
  e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
@@ -813,64 +812,64 @@ function Et(n, t, e) {
813
812
  ...z,
814
813
  [E]: 30
815
814
  }), ie(), e(12, re = !0), k(), ge();
816
- } catch (l) {
817
- console.error("Error submitting channel:", l), e(6, F = !0), e(8, I = a("submissionError"));
815
+ } catch (o) {
816
+ console.error("Error submitting channel:", o), e(6, W = !0), e(8, I = a("submissionError"));
818
817
  } finally {
819
818
  e(3, m = !1);
820
819
  }
821
820
  }
822
821
  }, k = () => {
823
- const l = new Date(A), h = new Date(X), g = /* @__PURE__ */ new Date(), H = h.getTime() - g.getTime();
824
- G = l.getTime() - H;
822
+ const o = new Date(A), h = new Date(X), g = /* @__PURE__ */ new Date(), H = h.getTime() - g.getTime();
823
+ G = o.getTime() - H;
825
824
  const he = Date.now(), _e = Math.max(0, Math.floor((G - he) / 1e3));
826
825
  e(5, C = _e);
827
826
  }, ge = () => {
828
827
  B && clearInterval(B), B = setInterval(
829
828
  () => {
830
- const l = Date.now(), h = Math.max(0, Math.floor((G - l) / 1e3));
831
- e(5, C = h), e(11, Z = h <= 0), h <= 0 && (clearInterval(B), B = null, e(9, Q = !0), e(6, F = !1), e(10, le = !1));
829
+ const o = Date.now(), h = Math.max(0, Math.floor((G - o) / 1e3));
830
+ e(5, C = h), e(11, Q = h <= 0), h <= 0 && (clearInterval(B), B = null, e(9, Z = !0), e(6, W = !1), e(10, oe = !1));
832
831
  },
833
832
  1e3
834
833
  );
835
- }, Re = (l) => {
836
- const h = Math.floor(l / 60), g = l % 60;
834
+ }, Re = (o) => {
835
+ const h = Math.floor(o / 60), g = o % 60;
837
836
  return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
838
- }, be = (l, h) => {
837
+ }, be = (o, h) => {
839
838
  const g = [...b];
840
- g[l] = h.toUpperCase(), e(2, b = g), g.join("") !== ae && e(13, se = !1);
841
- }, Pe = (l) => {
842
- l.preventDefault();
843
- const g = (l.clipboardData?.getData("text")?.trim() || "").slice(0, y.inputLength).split("");
839
+ g[o] = h.toUpperCase(), e(2, b = g), g.join("") !== ae && e(13, se = !1);
840
+ }, Pe = (o) => {
841
+ o.preventDefault();
842
+ const g = (o.clipboardData?.getData("text")?.trim() || "").slice(0, y.inputLength).split("");
844
843
  e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), U[g.length]?.focus(), g.length === y.inputLength && Ce();
845
- }, ve = (l, h) => {
846
- const g = l.target, H = g.value;
844
+ }, ve = (o, h) => {
845
+ const g = o.target, H = g.value;
847
846
  /^[a-z0-9]$/i.test(H) && (be(h, H), U[h + 1]?.focus()), g.value = "";
848
- }, ke = (l, h) => {
849
- const g = l.key, H = l.ctrlKey || l.metaKey;
847
+ }, ke = (o, h) => {
848
+ const g = o.key, H = o.ctrlKey || o.metaKey;
850
849
  if (/^[a-z0-9]$/i.test(g)) {
851
850
  if (H && g.toLowerCase() === "v")
852
851
  return;
853
- l.preventDefault(), be(h, g), U[h + 1]?.focus();
852
+ o.preventDefault(), be(h, g), U[h + 1]?.focus();
854
853
  } else
855
- g === "Backspace" && (l.preventDefault(), b[h] !== "" && be(h, ""), U[h - 1]?.focus());
854
+ g === "Backspace" && (o.preventDefault(), b[h] !== "" && be(h, ""), U[h - 1]?.focus());
856
855
  }, De = () => {
857
- W == "stateful" && (me(), e(9, Q = !1));
858
- const l = new CustomEvent("otpResendRequested");
859
- window.dispatchEvent(l);
860
- }, je = (l) => {
856
+ F == "stateful" && (me(), e(9, Z = !1));
857
+ const o = new CustomEvent("otpResendRequested");
858
+ window.dispatchEvent(o);
859
+ }, je = (o) => {
861
860
  window.dispatchEvent(new CustomEvent(
862
861
  "otpSubmitted",
863
862
  {
864
863
  detail: {
865
- code: l,
864
+ code: o,
866
865
  maxAttempts: y.maxValidationAttempts,
867
866
  validatedAttempts: y.numberOfValidateAttempts
868
867
  }
869
868
  }
870
869
  ));
871
- }, Be = async (l) => {
870
+ }, Be = async (o) => {
872
871
  const h = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, _);
873
- h.searchParams.append("input", l);
872
+ h.searchParams.append("input", o);
874
873
  try {
875
874
  const g = await fetch(h.href, { method: "POST" });
876
875
  if (g.status === 200) {
@@ -894,10 +893,10 @@ function Et(n, t, e) {
894
893
  ), window.dispatchEvent(new CustomEvent("manualClosePopup"));
895
894
  return;
896
895
  }
897
- e(6, F = !0), e(8, I = a("invalidOtp")), we();
896
+ e(6, W = !0), e(8, I = a("invalidOtp")), we();
898
897
  return;
899
898
  }
900
- g.message === $.MAX_INVALIDATE && (e(6, F = !0), e(8, I = a("invalidOtp"))), g.details === $.MAX_ATTEMPTS_EXCEEDED && e(15, ce = !0), console.error("OTP submission failed:", g), e(6, F = !0), e(8, I = a("submissionError"));
899
+ g.message === $.MAX_INVALIDATE && (e(6, W = !0), e(8, I = a("invalidOtp"))), g.details === $.MAX_ATTEMPTS_EXCEEDED && e(15, ce = !0), console.error("OTP submission failed:", g), e(6, W = !0), e(8, I = a("submissionError"));
901
900
  } finally {
902
901
  e(3, m = !1);
903
902
  }
@@ -914,59 +913,59 @@ function Et(n, t, e) {
914
913
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
915
914
  }, Ce = async () => {
916
915
  if (b.join("").length !== y.inputLength) {
917
- e(6, F = !0), e(8, I = a("invalidOtp"));
916
+ e(6, W = !0), e(8, I = a("invalidOtp"));
918
917
  return;
919
918
  }
920
- const l = b.join("");
921
- e(13, se = !0), ae = l, e(3, m = !0), e(6, F = !1), e(8, I = ""), W === "stateless" && je(l), W === "stateful" && await Be(l);
919
+ const o = b.join("");
920
+ e(13, se = !0), ae = o, e(3, m = !0), e(6, W = !1), e(8, I = ""), F === "stateless" && je(o), F === "stateful" && await Be(o);
922
921
  }, we = async () => {
923
922
  if (_)
924
923
  try {
925
924
  e(3, m = !0);
926
- const l = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, _), h = await fetch(l.href), g = await h.json();
925
+ const o = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, _), h = await fetch(o.href), g = await h.json();
927
926
  if (h.ok)
928
- e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Q = !1), A = y.expirationTime, X = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, F = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, le = !0), e(3, m = !1), k(), ge(), e(16, pe = !1);
927
+ e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Z = !1), A = y.expirationTime, X = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, W = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, oe = !0), e(3, m = !1), k(), ge(), e(16, pe = !1);
929
928
  else if (g && g.details === $.MAX_ATTEMPTS_EXCEEDED)
930
929
  window.dispatchEvent(new CustomEvent("manualClosePopup"));
931
930
  else {
932
931
  const H = g && g.message || `Failed to load config. Status: ${h.status}`;
933
932
  throw new Error(H);
934
933
  }
935
- } catch (l) {
936
- e(3, m = !1), e(7, j = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", l);
934
+ } catch (o) {
935
+ e(3, m = !1), e(7, j = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", o);
937
936
  }
938
937
  };
939
938
  et(() => (window.addEventListener("stepUpAuthRequired", fe, !1), window.addEventListener("closePopup", D, !1), () => {
940
939
  window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B), N && clearInterval(N);
941
940
  }));
942
- const Ne = () => x(ue.SMS), Fe = () => x(ue.EMAIL);
943
- function We(l, h) {
944
- Oe[l ? "unshift" : "push"](() => {
945
- U[h] = l, e(14, U);
941
+ const Ne = () => x(ue.SMS), We = () => x(ue.EMAIL);
942
+ function Fe(o, h) {
943
+ Oe[o ? "unshift" : "push"](() => {
944
+ U[h] = o, e(14, U);
946
945
  });
947
946
  }
948
- const qe = (l, h) => ve(h, l), Ue = (l, h) => ke(h, l);
949
- function Xe(l) {
950
- Oe[l ? "unshift" : "push"](() => {
951
- q = l, e(1, q);
947
+ const qe = (o, h) => ve(h, o), Ue = (o, h) => ke(h, o);
948
+ function Xe(o) {
949
+ Oe[o ? "unshift" : "push"](() => {
950
+ q = o, e(1, q);
952
951
  });
953
952
  }
954
- return n.$$set = (l) => {
955
- "clientstyling" in l && e(31, p = l.clientstyling), "clientstylingurl" in l && e(32, s = l.clientstylingurl), "mbsource" in l && e(33, u = l.mbsource), "lang" in l && e(34, f = l.lang), "endpoint" in l && e(35, _ = l.endpoint), "session" in l && e(36, w = l.session), "translationurl" in l && e(37, T = l.translationurl), "templateid" in l && e(30, M = l.templateid);
953
+ return n.$$set = (o) => {
954
+ "clientstyling" in o && e(31, p = o.clientstyling), "clientstylingurl" in o && e(32, s = o.clientstylingurl), "mbsource" in o && e(33, u = o.mbsource), "lang" in o && e(34, f = o.lang), "endpoint" in o && e(35, _ = o.endpoint), "session" in o && e(36, w = o.session), "translationurl" in o && e(37, T = o.translationurl), "templateid" in o && e(30, M = o.templateid);
956
955
  }, n.$$.update = () => {
957
956
  n.$$.dirty[0] & /*customStylingContainer*/
958
957
  2 | n.$$.dirty[1] & /*clientstyling*/
959
- 1 && p && q && lt(q, p), n.$$.dirty[0] & /*customStylingContainer*/
958
+ 1 && p && q && it(q, p), n.$$.dirty[0] & /*customStylingContainer*/
960
959
  2 | n.$$.dirty[1] & /*clientstylingurl*/
961
- 2 && s && q && rt(q, s), n.$$.dirty[0] & /*customStylingContainer*/
960
+ 2 && s && q && lt(q, s), n.$$.dirty[0] & /*customStylingContainer*/
962
961
  2 | n.$$.dirty[1] & /*mbsource*/
963
- 4 && u && q && st(q, `${u}.Style`, de), n.$$.dirty[1] & /*lang*/
962
+ 4 && u && q && ot(q, `${u}.Style`, de), n.$$.dirty[1] & /*lang*/
964
963
  8 && f && K(), n.$$.dirty[1] & /*lang, translationurl*/
965
964
  72 && f && T && V(), n.$$.dirty[0] & /*selectedChannel*/
966
965
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
967
966
  128 && e(18, i = E && (!z[E] || z[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
968
967
  1 | n.$$.dirty[1] & /*channelSubmitTimers*/
969
- 128 && e(17, o = E && z[E] || 0);
968
+ 128 && e(17, l = E && z[E] || 0);
970
969
  }, [
971
970
  E,
972
971
  q,
@@ -974,18 +973,18 @@ function Et(n, t, e) {
974
973
  m,
975
974
  y,
976
975
  C,
977
- F,
976
+ W,
978
977
  j,
979
978
  I,
980
- Q,
981
- le,
982
979
  Z,
980
+ oe,
981
+ Q,
983
982
  re,
984
983
  se,
985
984
  U,
986
985
  ce,
987
986
  pe,
988
- o,
987
+ l,
989
988
  i,
990
989
  a,
991
990
  ue,
@@ -1008,8 +1007,8 @@ function Et(n, t, e) {
1008
1007
  T,
1009
1008
  z,
1010
1009
  Ne,
1011
- Fe,
1012
1010
  We,
1011
+ Fe,
1013
1012
  qe,
1014
1013
  Ue,
1015
1014
  Xe
@@ -1022,7 +1021,7 @@ class Ot extends Ye {
1022
1021
  t,
1023
1022
  Et,
1024
1023
  Ct,
1025
- Qe,
1024
+ Ze,
1026
1025
  {
1027
1026
  clientstyling: 31,
1028
1027
  clientstylingurl: 32,
@@ -1041,52 +1040,52 @@ class Ot extends Ye {
1041
1040
  return this.$$.ctx[31];
1042
1041
  }
1043
1042
  set clientstyling(t) {
1044
- this.$$set({ clientstyling: t }), oe();
1043
+ this.$$set({ clientstyling: t }), le();
1045
1044
  }
1046
1045
  get clientstylingurl() {
1047
1046
  return this.$$.ctx[32];
1048
1047
  }
1049
1048
  set clientstylingurl(t) {
1050
- this.$$set({ clientstylingurl: t }), oe();
1049
+ this.$$set({ clientstylingurl: t }), le();
1051
1050
  }
1052
1051
  get mbsource() {
1053
1052
  return this.$$.ctx[33];
1054
1053
  }
1055
1054
  set mbsource(t) {
1056
- this.$$set({ mbsource: t }), oe();
1055
+ this.$$set({ mbsource: t }), le();
1057
1056
  }
1058
1057
  get lang() {
1059
1058
  return this.$$.ctx[34];
1060
1059
  }
1061
1060
  set lang(t) {
1062
- this.$$set({ lang: t }), oe();
1061
+ this.$$set({ lang: t }), le();
1063
1062
  }
1064
1063
  get endpoint() {
1065
1064
  return this.$$.ctx[35];
1066
1065
  }
1067
1066
  set endpoint(t) {
1068
- this.$$set({ endpoint: t }), oe();
1067
+ this.$$set({ endpoint: t }), le();
1069
1068
  }
1070
1069
  get session() {
1071
1070
  return this.$$.ctx[36];
1072
1071
  }
1073
1072
  set session(t) {
1074
- this.$$set({ session: t }), oe();
1073
+ this.$$set({ session: t }), le();
1075
1074
  }
1076
1075
  get translationurl() {
1077
1076
  return this.$$.ctx[37];
1078
1077
  }
1079
1078
  set translationurl(t) {
1080
- this.$$set({ translationurl: t }), oe();
1079
+ this.$$set({ translationurl: t }), le();
1081
1080
  }
1082
1081
  get templateid() {
1083
1082
  return this.$$.ctx[30];
1084
1083
  }
1085
1084
  set templateid(t) {
1086
- this.$$set({ templateid: t }), oe();
1085
+ this.$$set({ templateid: t }), le();
1087
1086
  }
1088
1087
  }
1089
- it(Ot, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
1088
+ rt(Ot, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
1090
1089
  export {
1091
1090
  Ot as default
1092
1091
  };