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