@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
|
@@ -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,
|
|
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,
|
|
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
|
-
|
|
18
|
+
r(f);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, d = (c) => {
|
|
21
21
|
try {
|
|
22
22
|
s(e.throw(c));
|
|
23
23
|
} catch (f) {
|
|
24
|
-
|
|
24
|
+
r(f);
|
|
25
25
|
}
|
|
26
|
-
}, s = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(a,
|
|
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
|
|
30
|
-
function
|
|
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
|
-
|
|
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 d
|
|
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 n
|
|
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 s
|
|
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
|
|
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
|
|
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
|
|
115
|
-
let t, e, i,
|
|
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
|
-
),
|
|
187
|
+
), X, N, H, I, ne, K, Q, le, $, C, z, F, se, ae, ce = (
|
|
119
188
|
/*$_*/
|
|
120
189
|
n[19]("channelEmail") + ""
|
|
121
|
-
), U,
|
|
122
|
-
function
|
|
190
|
+
), U, ge, q, j, Z, de, ue;
|
|
191
|
+
function pe(u, y) {
|
|
123
192
|
return (
|
|
124
193
|
/*showResendOtp*/
|
|
125
|
-
|
|
194
|
+
u[9] ? Ct : (
|
|
126
195
|
/*showOtpInput*/
|
|
127
|
-
|
|
196
|
+
u[12] ? yt : St
|
|
128
197
|
)
|
|
129
198
|
);
|
|
130
199
|
}
|
|
131
|
-
let ee =
|
|
200
|
+
let ee = pe(n), G = ee(n), W = (
|
|
132
201
|
/*selectedChannel*/
|
|
133
|
-
n[0] &&
|
|
202
|
+
n[0] && xe(n)
|
|
134
203
|
);
|
|
135
|
-
function
|
|
204
|
+
function he(u, y) {
|
|
136
205
|
if (
|
|
137
206
|
/*isLoading*/
|
|
138
|
-
|
|
139
|
-
|
|
207
|
+
u[3] && /*showOtpInput*/
|
|
208
|
+
u[12]
|
|
140
209
|
)
|
|
141
210
|
return zt;
|
|
142
211
|
if (
|
|
143
212
|
/*showOtpInput*/
|
|
144
|
-
|
|
145
|
-
|
|
213
|
+
u[12] && /*config*/
|
|
214
|
+
u[4]
|
|
146
215
|
)
|
|
147
216
|
return Lt;
|
|
148
217
|
}
|
|
149
|
-
let ie =
|
|
150
|
-
function be(
|
|
218
|
+
let ie = he(n), V = ie && ie(n);
|
|
219
|
+
function be(u, y) {
|
|
151
220
|
if (
|
|
152
221
|
/*showResendOtp*/
|
|
153
|
-
|
|
222
|
+
u[9]
|
|
154
223
|
)
|
|
155
|
-
return
|
|
224
|
+
return At;
|
|
156
225
|
if (
|
|
157
226
|
/*showOtpInput*/
|
|
158
|
-
|
|
159
|
-
|
|
227
|
+
u[12] && /*config*/
|
|
228
|
+
u[4]
|
|
160
229
|
)
|
|
161
|
-
return
|
|
230
|
+
return Pt;
|
|
162
231
|
}
|
|
163
|
-
let
|
|
232
|
+
let re = be(n), R = re && re(n);
|
|
164
233
|
return {
|
|
165
234
|
c() {
|
|
166
|
-
t =
|
|
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
|
-
),
|
|
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,
|
|
176
|
-
|
|
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
|
-
),
|
|
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
|
-
),
|
|
188
|
-
n[20].EMAIL,
|
|
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,
|
|
191
|
-
|
|
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
|
-
),
|
|
265
|
+
), l(i, "class", "ChannelSelection"), l(Z, "class", "OtpActionButtons");
|
|
197
266
|
},
|
|
198
|
-
m(
|
|
199
|
-
|
|
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
|
-
|
|
276
|
+
K,
|
|
208
277
|
"change",
|
|
209
278
|
/*change_handler_1*/
|
|
210
279
|
n[40]
|
|
211
280
|
)
|
|
212
|
-
],
|
|
281
|
+
], de = !0);
|
|
213
282
|
},
|
|
214
|
-
p(
|
|
215
|
-
ee === (ee =
|
|
216
|
-
1048577 &&
|
|
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
|
-
|
|
221
|
-
|
|
222
|
-
),
|
|
289
|
+
u[0] === /*channels*/
|
|
290
|
+
u[20].SMS
|
|
291
|
+
), y[0] & /*selectedChannel*/
|
|
223
292
|
1 && c !== (c = /*selectedChannel*/
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
524288 &&
|
|
227
|
-
|
|
228
|
-
1048577 &&
|
|
229
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
),
|
|
235
|
-
1048577 &&
|
|
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
|
-
|
|
240
|
-
|
|
241
|
-
),
|
|
308
|
+
u[0] === /*channels*/
|
|
309
|
+
u[20].EMAIL
|
|
310
|
+
), y[0] & /*selectedChannel*/
|
|
242
311
|
1 && Q !== (Q = /*selectedChannel*/
|
|
243
|
-
|
|
244
|
-
|
|
312
|
+
u[0] === /*channels*/
|
|
313
|
+
u[20].EMAIL) && (K.checked = Q), y[0] & /*$_*/
|
|
245
314
|
524288 && ce !== (ce = /*$_*/
|
|
246
|
-
|
|
247
|
-
1048577 &&
|
|
248
|
-
|
|
315
|
+
u[19]("channelEmail") + "") && x(U, ce), y[0] & /*selectedChannel, channels*/
|
|
316
|
+
1048577 && J(
|
|
317
|
+
H,
|
|
249
318
|
"selected",
|
|
250
319
|
/*selectedChannel*/
|
|
251
|
-
|
|
252
|
-
|
|
320
|
+
u[0] === /*channels*/
|
|
321
|
+
u[20].EMAIL
|
|
253
322
|
), /*selectedChannel*/
|
|
254
|
-
|
|
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(
|
|
257
|
-
|
|
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
|
|
262
|
-
let t, e, i,
|
|
330
|
+
function kt(n) {
|
|
331
|
+
let t, e, i, r, a, d, s = (
|
|
263
332
|
/*$_*/
|
|
264
333
|
n[19]("errorHeader") + ""
|
|
265
|
-
), c, f,
|
|
334
|
+
), c, f, v, w, T, M, b = (
|
|
266
335
|
/*$_*/
|
|
267
336
|
n[19]("close") + ""
|
|
268
|
-
), m,
|
|
337
|
+
), m, _, S;
|
|
269
338
|
return {
|
|
270
339
|
c() {
|
|
271
|
-
t =
|
|
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 =
|
|
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(
|
|
277
|
-
|
|
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
|
-
),
|
|
351
|
+
), _ = !0);
|
|
283
352
|
},
|
|
284
|
-
p(
|
|
285
|
-
|
|
353
|
+
p(A, X) {
|
|
354
|
+
X[0] & /*$_*/
|
|
286
355
|
524288 && s !== (s = /*$_*/
|
|
287
|
-
|
|
288
|
-
256 &&
|
|
356
|
+
A[19]("errorHeader") + "") && x(c, s), X[0] & /*errorMessage*/
|
|
357
|
+
256 && x(
|
|
289
358
|
w,
|
|
290
359
|
/*errorMessage*/
|
|
291
|
-
|
|
292
|
-
),
|
|
360
|
+
A[8]
|
|
361
|
+
), X[0] & /*$_*/
|
|
293
362
|
524288 && b !== (b = /*$_*/
|
|
294
|
-
|
|
363
|
+
A[19]("close") + "") && x(m, b);
|
|
295
364
|
},
|
|
296
|
-
d(
|
|
297
|
-
|
|
365
|
+
d(A) {
|
|
366
|
+
A && E(t), _ = !1, S();
|
|
298
367
|
}
|
|
299
368
|
};
|
|
300
369
|
}
|
|
301
|
-
function
|
|
302
|
-
let t, e, i,
|
|
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] ?
|
|
375
|
+
f[10] ? Ot : Et
|
|
307
376
|
);
|
|
308
377
|
}
|
|
309
|
-
let
|
|
378
|
+
let d = a(n), s = d(n), c = (
|
|
310
379
|
/*hasErrors*/
|
|
311
|
-
n[6] &&
|
|
380
|
+
n[6] && De(n)
|
|
312
381
|
);
|
|
313
382
|
return {
|
|
314
383
|
c() {
|
|
315
|
-
t =
|
|
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
|
-
|
|
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
|
-
|
|
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" : "") &&
|
|
325
|
-
f[6] ? c ? c.p(f,
|
|
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 && (
|
|
397
|
+
f && (E(t), E(i), E(r)), s.d(), c && c.d(f);
|
|
329
398
|
}
|
|
330
399
|
};
|
|
331
400
|
}
|
|
332
|
-
function
|
|
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 =
|
|
408
|
+
t = k("p"), i = L(e);
|
|
340
409
|
},
|
|
341
|
-
m(
|
|
342
|
-
|
|
410
|
+
m(r, a) {
|
|
411
|
+
O(r, t, a), p(t, i);
|
|
343
412
|
},
|
|
344
|
-
p(
|
|
413
|
+
p(r, a) {
|
|
345
414
|
a[0] & /*$_*/
|
|
346
415
|
524288 && e !== (e = /*$_*/
|
|
347
|
-
(
|
|
416
|
+
(r[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && x(i, e);
|
|
348
417
|
},
|
|
349
|
-
d(
|
|
350
|
-
|
|
418
|
+
d(r) {
|
|
419
|
+
r && E(t);
|
|
351
420
|
}
|
|
352
421
|
};
|
|
353
422
|
}
|
|
354
|
-
function
|
|
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 =
|
|
430
|
+
t = k("p"), i = L(e), l(t, "class", "OtpNoticeMessage"), l(t, "role", "alert");
|
|
362
431
|
},
|
|
363
|
-
m(
|
|
364
|
-
|
|
432
|
+
m(r, a) {
|
|
433
|
+
O(r, t, a), p(t, i);
|
|
365
434
|
},
|
|
366
|
-
p(
|
|
435
|
+
p(r, a) {
|
|
367
436
|
a[0] & /*$_*/
|
|
368
437
|
524288 && e !== (e = /*$_*/
|
|
369
|
-
|
|
438
|
+
r[19]("otpExpiredMessage") + "") && x(i, e);
|
|
370
439
|
},
|
|
371
|
-
d(
|
|
372
|
-
|
|
440
|
+
d(r) {
|
|
441
|
+
r && E(t);
|
|
373
442
|
}
|
|
374
443
|
};
|
|
375
444
|
}
|
|
376
|
-
function
|
|
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,
|
|
386
|
-
|
|
454
|
+
m(i, r) {
|
|
455
|
+
O(i, e, r);
|
|
387
456
|
},
|
|
388
|
-
p(i,
|
|
389
|
-
|
|
457
|
+
p(i, r) {
|
|
458
|
+
r[0] & /*$_*/
|
|
390
459
|
524288 && t !== (t = /*$_*/
|
|
391
|
-
i[19]("popupMessage") + "") &&
|
|
460
|
+
i[19]("popupMessage") + "") && x(e, t);
|
|
392
461
|
},
|
|
393
462
|
d(i) {
|
|
394
|
-
i &&
|
|
463
|
+
i && E(e);
|
|
395
464
|
}
|
|
396
465
|
};
|
|
397
466
|
}
|
|
398
|
-
function
|
|
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,
|
|
408
|
-
|
|
476
|
+
m(i, r) {
|
|
477
|
+
O(i, e, r);
|
|
409
478
|
},
|
|
410
|
-
p(i,
|
|
411
|
-
|
|
479
|
+
p(i, r) {
|
|
480
|
+
r[0] & /*$_*/
|
|
412
481
|
524288 && t !== (t = /*$_*/
|
|
413
|
-
i[19]("popupMessageLastWarning") + "") &&
|
|
482
|
+
i[19]("popupMessageLastWarning") + "") && x(e, t);
|
|
414
483
|
},
|
|
415
484
|
d(i) {
|
|
416
|
-
i &&
|
|
485
|
+
i && E(e);
|
|
417
486
|
}
|
|
418
487
|
};
|
|
419
488
|
}
|
|
420
|
-
function
|
|
489
|
+
function De(n) {
|
|
421
490
|
let t, e;
|
|
422
491
|
return {
|
|
423
492
|
c() {
|
|
424
|
-
t =
|
|
493
|
+
t = k("p"), e = L(
|
|
425
494
|
/*errorMessage*/
|
|
426
495
|
n[8]
|
|
427
|
-
),
|
|
496
|
+
), l(t, "class", "OtpErrorMessage"), l(t, "role", "alert");
|
|
428
497
|
},
|
|
429
|
-
m(i,
|
|
430
|
-
|
|
498
|
+
m(i, r) {
|
|
499
|
+
O(i, t, r), p(t, e);
|
|
431
500
|
},
|
|
432
|
-
p(i,
|
|
433
|
-
|
|
434
|
-
256 &&
|
|
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 &&
|
|
510
|
+
i && E(t);
|
|
442
511
|
}
|
|
443
512
|
};
|
|
444
513
|
}
|
|
445
|
-
function
|
|
446
|
-
let t, e, i,
|
|
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
|
|
522
|
+
let d = a(n), s = d(n);
|
|
454
523
|
return {
|
|
455
524
|
c() {
|
|
456
|
-
t =
|
|
457
|
-
n[18],
|
|
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
|
-
|
|
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
|
-
|
|
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 &&
|
|
542
|
+
327680 && J(t, "disabled", !/*canSubmitChannel*/
|
|
474
543
|
c[18] || /*waitingForConfig*/
|
|
475
544
|
c[16]);
|
|
476
545
|
},
|
|
477
546
|
d(c) {
|
|
478
|
-
c &&
|
|
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,
|
|
492
|
-
|
|
560
|
+
m(i, r) {
|
|
561
|
+
O(i, e, r);
|
|
493
562
|
},
|
|
494
|
-
p(i,
|
|
495
|
-
|
|
563
|
+
p(i, r) {
|
|
564
|
+
r[0] & /*$_*/
|
|
496
565
|
524288 && t !== (t = /*$_*/
|
|
497
|
-
i[19]("sendCode") + "") &&
|
|
566
|
+
i[19]("sendCode") + "") && x(e, t);
|
|
498
567
|
},
|
|
499
568
|
d(i) {
|
|
500
|
-
i &&
|
|
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,
|
|
577
|
+
), e, i, r, a;
|
|
509
578
|
return {
|
|
510
579
|
c() {
|
|
511
|
-
e = L(t), i = 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(
|
|
517
|
-
|
|
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(
|
|
588
|
+
p(d, s) {
|
|
520
589
|
s[0] & /*$_*/
|
|
521
590
|
524288 && t !== (t = /*$_*/
|
|
522
|
-
|
|
523
|
-
131072 &&
|
|
524
|
-
|
|
591
|
+
d[19]("waitSeconds") + "") && x(e, t), s[0] & /*currentChannelTimer*/
|
|
592
|
+
131072 && x(
|
|
593
|
+
r,
|
|
525
594
|
/*currentChannelTimer*/
|
|
526
|
-
|
|
595
|
+
d[17]
|
|
527
596
|
);
|
|
528
597
|
},
|
|
529
|
-
d(
|
|
530
|
-
|
|
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
|
-
),
|
|
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
|
-
),
|
|
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] =
|
|
621
|
+
b[m] = Ve(Re(n, M, m));
|
|
553
622
|
return {
|
|
554
623
|
c() {
|
|
555
|
-
t =
|
|
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
|
-
|
|
627
|
+
l(e, "class", "OtpTimer"), l(T, "class", "OtpField"), l(t, "class", "OtpFieldWrapper");
|
|
559
628
|
},
|
|
560
|
-
m(m,
|
|
561
|
-
|
|
562
|
-
for (let
|
|
563
|
-
b[
|
|
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,
|
|
566
|
-
if (
|
|
634
|
+
p(m, _) {
|
|
635
|
+
if (_[0] & /*$_*/
|
|
567
636
|
524288 && i !== (i = /*$_*/
|
|
568
|
-
m[19]("timeRemaining") + "") &&
|
|
569
|
-
32 &&
|
|
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
|
-
) + "") &&
|
|
642
|
+
) + "") && x(s, d), _[0] & /*$_*/
|
|
574
643
|
524288 && f !== (f = /*$_*/
|
|
575
|
-
m[19]("minutes") + "") &&
|
|
644
|
+
m[19]("minutes") + "") && x(v, f), _[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
576
645
|
117458964) {
|
|
577
|
-
M =
|
|
646
|
+
M = Pe(
|
|
578
647
|
/*otp*/
|
|
579
648
|
m[2]
|
|
580
649
|
);
|
|
581
|
-
let
|
|
582
|
-
for (
|
|
583
|
-
const
|
|
584
|
-
b[
|
|
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 (;
|
|
587
|
-
b[
|
|
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 &&
|
|
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 =
|
|
669
|
+
t = k("div"), t.innerHTML = '<span class="OtpLoader"></span>', l(t, "class", "OtpLoaderContainer");
|
|
601
670
|
},
|
|
602
671
|
m(e, i) {
|
|
603
|
-
|
|
672
|
+
O(e, t, i);
|
|
604
673
|
},
|
|
605
|
-
p:
|
|
674
|
+
p: ye,
|
|
606
675
|
d(e) {
|
|
607
|
-
e &&
|
|
676
|
+
e && E(t);
|
|
608
677
|
}
|
|
609
678
|
};
|
|
610
679
|
}
|
|
611
|
-
function
|
|
612
|
-
let t, e, i,
|
|
680
|
+
function Ve(n) {
|
|
681
|
+
let t, e, i, r = (
|
|
613
682
|
/*index*/
|
|
614
683
|
n[71]
|
|
615
|
-
), a,
|
|
684
|
+
), a, d;
|
|
616
685
|
const s = () => (
|
|
617
686
|
/*input_binding*/
|
|
618
|
-
n[41](t,
|
|
687
|
+
n[41](t, r)
|
|
619
688
|
), c = () => (
|
|
620
689
|
/*input_binding*/
|
|
621
|
-
n[41](null,
|
|
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
|
|
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 =
|
|
646
|
-
n[71]}`),
|
|
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" : ""}`),
|
|
650
|
-
n[69],
|
|
651
|
-
n[11],
|
|
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
|
-
|
|
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" : ""}`) &&
|
|
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]),
|
|
675
|
-
n[71] && (c(),
|
|
743
|
+
n[11]), r !== /*index*/
|
|
744
|
+
n[71] && (c(), r = /*index*/
|
|
676
745
|
n[71], s());
|
|
677
746
|
},
|
|
678
747
|
d(w) {
|
|
679
|
-
w &&
|
|
748
|
+
w && E(t), c(), a = !1, Be(d);
|
|
680
749
|
}
|
|
681
750
|
};
|
|
682
751
|
}
|
|
683
|
-
function
|
|
752
|
+
function Pt(n) {
|
|
684
753
|
let t, e = (
|
|
685
754
|
/*$_*/
|
|
686
755
|
n[19]("submit") + ""
|
|
687
|
-
), i,
|
|
756
|
+
), i, r, a, d;
|
|
688
757
|
return {
|
|
689
758
|
c() {
|
|
690
|
-
t =
|
|
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
|
-
|
|
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") + "") &&
|
|
708
|
-
40980 &&
|
|
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 =
|
|
781
|
+
s[15]) && (t.disabled = r);
|
|
713
782
|
},
|
|
714
783
|
d(s) {
|
|
715
|
-
s &&
|
|
784
|
+
s && E(t), a = !1, d();
|
|
716
785
|
}
|
|
717
786
|
};
|
|
718
787
|
}
|
|
719
|
-
function
|
|
788
|
+
function At(n) {
|
|
720
789
|
let t, e = (
|
|
721
790
|
/*$_*/
|
|
722
791
|
n[19]("resendOtp") + ""
|
|
723
|
-
), i,
|
|
792
|
+
), i, r, a;
|
|
724
793
|
return {
|
|
725
794
|
c() {
|
|
726
|
-
t =
|
|
795
|
+
t = k("button"), i = L(e), l(t, "class", "OtpButton");
|
|
727
796
|
},
|
|
728
|
-
m(
|
|
729
|
-
|
|
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
|
-
),
|
|
803
|
+
), r = !0);
|
|
735
804
|
},
|
|
736
|
-
p(
|
|
805
|
+
p(d, s) {
|
|
737
806
|
s[0] & /*$_*/
|
|
738
807
|
524288 && e !== (e = /*$_*/
|
|
739
|
-
|
|
808
|
+
d[19]("resendOtp") + "") && x(i, e);
|
|
740
809
|
},
|
|
741
|
-
d(
|
|
742
|
-
|
|
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,
|
|
817
|
+
function e(a, d) {
|
|
749
818
|
return (
|
|
750
819
|
/*hasConfigErrors*/
|
|
751
|
-
a[7] ?
|
|
820
|
+
a[7] ? kt : _t
|
|
752
821
|
);
|
|
753
822
|
}
|
|
754
|
-
let i = e(n),
|
|
823
|
+
let i = e(n), r = i(n);
|
|
755
824
|
return {
|
|
756
825
|
c() {
|
|
757
|
-
t =
|
|
826
|
+
t = k("div"), r.c(), l(t, "class", "OtpContent");
|
|
758
827
|
},
|
|
759
|
-
m(a,
|
|
760
|
-
|
|
828
|
+
m(a, d) {
|
|
829
|
+
O(a, t, d), r.m(t, null), n[44](t);
|
|
761
830
|
},
|
|
762
|
-
p(a,
|
|
763
|
-
i === (i = e(a)) &&
|
|
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:
|
|
766
|
-
o:
|
|
834
|
+
i: ye,
|
|
835
|
+
o: ye,
|
|
767
836
|
d(a) {
|
|
768
|
-
a &&
|
|
837
|
+
a && E(t), r.d(), n[44](null);
|
|
769
838
|
}
|
|
770
839
|
};
|
|
771
840
|
}
|
|
772
|
-
function
|
|
773
|
-
let i,
|
|
841
|
+
function Rt(n, t, e) {
|
|
842
|
+
let i, r, a;
|
|
774
843
|
ct(n, bt, (o) => e(19, a = o));
|
|
775
|
-
let { clientstyling:
|
|
776
|
-
const
|
|
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
|
-
|
|
851
|
+
Ae(o, Ie[o]);
|
|
783
852
|
});
|
|
784
853
|
const G = () => {
|
|
785
854
|
wt(f);
|
|
786
|
-
},
|
|
855
|
+
}, W = () => {
|
|
787
856
|
fetch(T).then((o) => o.json()).then((o) => {
|
|
788
|
-
Object.keys(o).forEach((
|
|
789
|
-
|
|
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
|
-
},
|
|
795
|
-
var
|
|
796
|
-
if ((
|
|
797
|
-
if (e(7,
|
|
798
|
-
e(3, m = !1), e(7,
|
|
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
|
-
|
|
805
|
-
},
|
|
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,
|
|
808
|
-
const
|
|
809
|
-
|
|
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:
|
|
881
|
+
headers: P,
|
|
813
882
|
body: JSON.stringify({
|
|
814
|
-
channel:
|
|
883
|
+
channel: C,
|
|
815
884
|
templateId: M
|
|
816
885
|
})
|
|
817
886
|
};
|
|
818
|
-
fetch(
|
|
819
|
-
e(15,
|
|
820
|
-
}).catch((
|
|
821
|
-
|
|
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
|
-
}),
|
|
824
|
-
|
|
892
|
+
}), re = () => {
|
|
893
|
+
F && clearInterval(F), F = setInterval(
|
|
825
894
|
() => {
|
|
826
|
-
const o =
|
|
827
|
-
let
|
|
828
|
-
Object.keys(o).forEach((
|
|
829
|
-
o[
|
|
830
|
-
}), e(38, z = o), !
|
|
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
|
-
},
|
|
835
|
-
e(0,
|
|
836
|
-
},
|
|
837
|
-
if (!(!
|
|
838
|
-
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${
|
|
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
|
|
841
|
-
[
|
|
842
|
-
})),
|
|
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,
|
|
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
|
-
}),
|
|
850
|
-
const o = new Date(
|
|
851
|
-
|
|
852
|
-
const B = Date.now(), fe = Math.max(0, Math.floor((
|
|
853
|
-
e(5,
|
|
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
|
-
|
|
924
|
+
j && clearInterval(j), j = setInterval(
|
|
856
925
|
() => {
|
|
857
|
-
const o = Date.now(),
|
|
858
|
-
e(5,
|
|
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
|
-
|
|
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
|
|
872
|
-
e(2, b = [...
|
|
873
|
-
},
|
|
874
|
-
const
|
|
875
|
-
if (/^[a-z0-9]$/i.test(
|
|
876
|
-
|
|
877
|
-
const B =
|
|
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
|
-
|
|
881
|
-
},
|
|
882
|
-
const
|
|
883
|
-
if (/^[a-z0-9]$/i.test(
|
|
884
|
-
if (
|
|
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(),
|
|
887
|
-
const B =
|
|
955
|
+
o.preventDefault(), ve(g, h);
|
|
956
|
+
const B = q[g + 1];
|
|
888
957
|
B == null || B.focus();
|
|
889
|
-
} else if (
|
|
890
|
-
o.preventDefault(), b[
|
|
891
|
-
const B =
|
|
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
|
-
},
|
|
895
|
-
|
|
963
|
+
}, We = () => {
|
|
964
|
+
K == "stateful" && (be(), e(9, Q = !1));
|
|
896
965
|
const o = new CustomEvent("otpResendRequested");
|
|
897
966
|
window.dispatchEvent(o);
|
|
898
|
-
},
|
|
967
|
+
}, Fe = (o) => {
|
|
899
968
|
window.dispatchEvent(new CustomEvent(
|
|
900
969
|
"otpSubmitted",
|
|
901
970
|
{
|
|
902
971
|
detail: {
|
|
903
972
|
code: o,
|
|
904
|
-
maxAttempts:
|
|
905
|
-
validatedAttempts:
|
|
973
|
+
maxAttempts: _.maxValidationAttempts,
|
|
974
|
+
validatedAttempts: _.numberOfValidateAttempts
|
|
906
975
|
}
|
|
907
976
|
}
|
|
908
977
|
));
|
|
909
|
-
},
|
|
910
|
-
const
|
|
911
|
-
|
|
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
|
|
914
|
-
if (
|
|
915
|
-
|
|
982
|
+
const h = yield fetch(g.href, { method: "POST" });
|
|
983
|
+
if (h.status === 200) {
|
|
984
|
+
Ke();
|
|
916
985
|
return;
|
|
917
986
|
}
|
|
918
|
-
const
|
|
919
|
-
throw new Error(
|
|
920
|
-
} catch (
|
|
921
|
-
if (yield
|
|
922
|
-
if (
|
|
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,
|
|
1004
|
+
e(6, N = !0), e(8, I = a("invalidOtp")), _e();
|
|
936
1005
|
return;
|
|
937
1006
|
}
|
|
938
|
-
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
954
|
-
if (b.join("").length !==
|
|
955
|
-
e(6,
|
|
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,
|
|
960
|
-
}),
|
|
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`,
|
|
965
|
-
if (
|
|
966
|
-
e(4,
|
|
967
|
-
else if (
|
|
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
|
|
971
|
-
throw new Error(
|
|
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,
|
|
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
|
-
|
|
978
|
-
window.removeEventListener("stepUpAuthRequired",
|
|
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
|
|
981
|
-
function Ge(o,
|
|
1049
|
+
const qe = () => R(pe.SMS), Xe = () => R(pe.EMAIL);
|
|
1050
|
+
function Ge(o, g) {
|
|
982
1051
|
ze[o ? "unshift" : "push"](() => {
|
|
983
|
-
|
|
1052
|
+
q[g] = o, e(14, q);
|
|
984
1053
|
});
|
|
985
1054
|
}
|
|
986
|
-
const
|
|
987
|
-
function
|
|
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,
|
|
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 &&
|
|
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 &&
|
|
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 &&
|
|
1072
|
+
72 && f && T && W(), n.$$.dirty[0] & /*selectedChannel*/
|
|
1004
1073
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
1005
|
-
128 && e(18, i =
|
|
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,
|
|
1076
|
+
128 && e(17, r = C && z[C] || 0);
|
|
1008
1077
|
}, [
|
|
1009
|
-
|
|
1078
|
+
C,
|
|
1010
1079
|
U,
|
|
1011
1080
|
b,
|
|
1012
1081
|
m,
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1082
|
+
_,
|
|
1083
|
+
S,
|
|
1084
|
+
N,
|
|
1085
|
+
H,
|
|
1017
1086
|
I,
|
|
1018
1087
|
Q,
|
|
1019
|
-
|
|
1088
|
+
le,
|
|
1020
1089
|
$,
|
|
1021
1090
|
se,
|
|
1022
1091
|
ae,
|
|
1023
|
-
|
|
1092
|
+
q,
|
|
1093
|
+
de,
|
|
1024
1094
|
ue,
|
|
1025
|
-
|
|
1026
|
-
l,
|
|
1095
|
+
r,
|
|
1027
1096
|
i,
|
|
1028
1097
|
a,
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
Ve,
|
|
1098
|
+
pe,
|
|
1099
|
+
R,
|
|
1100
|
+
u,
|
|
1033
1101
|
He,
|
|
1102
|
+
je,
|
|
1103
|
+
Se,
|
|
1034
1104
|
Ce,
|
|
1035
|
-
|
|
1036
|
-
Ne,
|
|
1105
|
+
We,
|
|
1037
1106
|
Ue,
|
|
1038
|
-
|
|
1107
|
+
Ee,
|
|
1039
1108
|
M,
|
|
1040
|
-
|
|
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
|
|
1125
|
+
class Dt extends ot {
|
|
1057
1126
|
constructor(t) {
|
|
1058
|
-
super(),
|
|
1127
|
+
super(), lt(
|
|
1059
1128
|
this,
|
|
1060
1129
|
t,
|
|
1061
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1196
|
+
ht(Dt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1128
1197
|
export {
|
|
1129
|
-
|
|
1198
|
+
Dt as default
|
|
1130
1199
|
};
|