@everymatrix/cashier-page 1.93.20 → 1.93.39

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