@everymatrix/cashier-page 1.98.2 → 1.98.28
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-f_qsXekV.cjs → CashierCarousel-BSgX_-9d.cjs} +1 -1
- package/components/{CashierCarousel-Czejzxty.js → CashierCarousel-BSxRIpNj.js} +2 -2
- package/components/CashierCarousel-BnsrLQLz.cjs +1 -0
- package/components/{CashierCarousel-Bf6gJqkU.js → CashierCarousel-BsryNC67.js} +2 -2
- package/components/CashierCarousel-CIrhQ1F1.js +711 -0
- package/components/CashierCarousel-CLl1dEO0.js +711 -0
- package/components/CashierCarousel-CibDHVzx.js +708 -0
- package/components/CashierCarousel-D0dDvgaj.js +708 -0
- package/components/CashierCarousel-DVLQpSbh.js +711 -0
- package/components/CashierCarousel-Dh5Q3q4o.cjs +1 -0
- package/components/CashierCarousel-DucLdPiP.cjs +1 -0
- package/components/CashierCarousel-jiScaw1m.js +708 -0
- package/components/CashierError-B19WWS6q.js +849 -0
- package/components/{CashierError-hcK0afiS.js → CashierError-BgzGU74G.js} +2 -2
- package/components/CashierError-C9QJqSOU.cjs +1 -0
- package/components/CashierError-CJMwmI7N.js +849 -0
- package/components/CashierError-CL9tcScj.js +849 -0
- package/components/CashierError-CpI-ZvDt.js +849 -0
- package/components/CashierError-DY-spTTl.js +849 -0
- package/components/CashierError-DhQtatzN.cjs +1 -0
- package/components/CashierError-f4ZqXuJH.js +849 -0
- package/components/CashierError-mFSpkELc.cjs +1 -0
- package/components/{CashierError-C8kkOFyU.cjs → CashierError-nb2MHtLH.cjs} +1 -1
- package/components/{CashierError-DfwqJ2fH.js → CashierError-ulLnVgQF.js} +2 -2
- package/components/{CashierHeader-DTq0Ii_z.cjs → CashierHeader-9Jv4Zu9U.cjs} +1 -1
- package/components/CashierHeader-CmmEk0QP.cjs +1 -0
- package/components/{CashierHeader-Bzr7QbWI.js → CashierHeader-CnMNnCMA.js} +1 -1
- package/components/{CashierHeader-urhajSOg.js → CashierHeader-CyXIVUoS.js} +1 -1
- package/components/CashierHeader-DA_ReO25.cjs +1 -0
- package/components/CashierHeader-DEksQqYQ.js +477 -0
- package/components/CashierHeader-DwvRD5WU.js +477 -0
- package/components/CashierHeader-J44Qka8M.js +477 -0
- package/components/CashierHeader-SrIA_1me.cjs +1 -0
- package/components/CashierHeader-TK2-BiHl.js +477 -0
- package/components/CashierHeader-jQ2-E617.js +477 -0
- package/components/CashierHeader-vy8HyWPz.js +477 -0
- package/components/{CashierIframeRedirect-DQTLp1ii.cjs → CashierIframeRedirect-5s9ZtG-5.cjs} +1 -1
- package/components/{CashierIframeRedirect-BjvcMIUe.js → CashierIframeRedirect-BUy5m6fN.js} +3 -3
- package/components/{CashierIframeRedirect-CakDu2kh.js → CashierIframeRedirect-BseB9TAg.js} +3 -3
- package/components/CashierIframeRedirect-C2UcYLWG.cjs +1 -0
- package/components/CashierIframeRedirect-CB1_eaMN.cjs +1 -0
- package/components/CashierIframeRedirect-CTHqad7Z.js +387 -0
- package/components/CashierIframeRedirect-CyY79191.js +387 -0
- package/components/CashierIframeRedirect-DOCts-eZ.js +387 -0
- package/components/CashierIframeRedirect-DdKFPBSa.js +387 -0
- package/components/CashierIframeRedirect-Dhu2OC9A.js +387 -0
- package/components/CashierIframeRedirect-N8QJeLeb.cjs +1 -0
- package/components/CashierIframeRedirect-lM7pHpa9.js +387 -0
- package/components/CashierMethodDetails-B-klrcoA.js +11831 -0
- package/components/{CashierMethodDetails-CpXwGPIN.js → CashierMethodDetails-BHGrCcE3.js} +3513 -3309
- package/components/CashierMethodDetails-BWknB3e7.js +11385 -0
- package/components/CashierMethodDetails-C38oxecJ.js +11821 -0
- package/components/CashierMethodDetails-CEt1JRHd.js +11758 -0
- package/components/{CashierMethodDetails-G-V4Ng68.js → CashierMethodDetails-CR-B6W_o.js} +3438 -3195
- package/components/CashierMethodDetails-CoVztEid.cjs +238 -0
- package/components/CashierMethodDetails-D0FWPJ2H.js +11336 -0
- package/components/CashierMethodDetails-DT4GvTpz.cjs +238 -0
- package/components/CashierMethodDetails-DVnlD9Uk.cjs +85 -0
- package/components/CashierMethodDetails-DmHKHr2M.cjs +238 -0
- package/components/CashierMethodDetails-jCkj4SrI.js +11821 -0
- package/components/{CashierMethodsList-__ubl0wC.js → CashierMethodsList-7ACO_YE6.js} +2 -2
- package/components/{CashierMethodsList-CrjZk6Lu.cjs → CashierMethodsList-BvOniQPF.cjs} +1 -1
- package/components/{CashierMethodsList-BSBs8VQe.js → CashierMethodsList-BxvD9zAR.js} +2 -2
- package/components/CashierMethodsList-BzQxrxu_.cjs +1 -0
- package/components/CashierMethodsList-CMaD5FXj.js +955 -0
- package/components/CashierMethodsList-C_ldRYq_.js +969 -0
- package/components/CashierMethodsList-Cr1BX878.js +969 -0
- package/components/CashierMethodsList-Cy2Vsr78.js +955 -0
- package/components/CashierMethodsList-DR3WLcjt.cjs +1 -0
- package/components/CashierMethodsList-DYRS6KJx.cjs +1 -0
- package/components/CashierMethodsList-KXr3hScy.js +955 -0
- package/components/CashierMethodsList-u11i0SYf.js +969 -0
- package/components/{CashierModal-CUfcwGFc.js → CashierModal-4iF9ylQT.js} +2 -2
- package/components/{CashierModal-S0I_OTAX.js → CashierModal-B-UWvltM.js} +2 -2
- package/components/{CashierModal-DOLOU87I.cjs → CashierModal-BdpiH2_j.cjs} +1 -1
- package/components/CashierModal-BitlQX-o.cjs +1 -0
- package/components/CashierModal-C0Xof_AE.js +402 -0
- package/components/CashierModal-CcawnfUI.cjs +1 -0
- package/components/CashierModal-CevNAvJE.js +386 -0
- package/components/CashierModal-DJ3Q9obn.js +402 -0
- package/components/CashierModal-Dsi_oVHh.js +402 -0
- package/components/CashierModal-DwEKUjMK.cjs +1 -0
- package/components/CashierModal-Ke9TZX5s.js +386 -0
- package/components/CashierModal-aBGB4ejQ.js +386 -0
- package/components/{CashierNotifications-IFGcr_LG.js → CashierNotifications-BVJkJQAP.js} +1 -1
- package/components/{CashierNotifications-C1H4Vh5J.cjs → CashierNotifications-B_kxAZOz.cjs} +1 -1
- package/components/{CashierNotifications-CtV0hRJX.js → CashierNotifications-BanZGIkE.js} +1 -1
- package/components/CashierNotifications-C2ND2S-i.cjs +1 -0
- package/components/CashierNotifications-CY2B13Wf.js +129 -0
- package/components/CashierNotifications-CyCI6ksG.js +129 -0
- package/components/CashierNotifications-DOZcnn7M.js +129 -0
- package/components/CashierNotifications-DnmlBB_Q.cjs +1 -0
- package/components/CashierNotifications-DquKOU8w.js +129 -0
- package/components/CashierNotifications-Du8trHf6.js +129 -0
- package/components/CashierNotifications-WS_5AwbR.js +129 -0
- package/components/CashierNotifications-wQG099OX.cjs +1 -0
- package/components/CashierPage-895aolw0.js +10288 -0
- package/components/{CashierPage-CsWPGoer.js → CashierPage-BKglURO0.js} +1839 -1819
- package/components/CashierPage-BU42FSzD.js +10307 -0
- package/components/CashierPage-BkADSeGN.cjs +23 -0
- package/components/CashierPage-Bmy89dKm.cjs +23 -0
- package/components/CashierPage-Bz6JgmrH.js +10235 -0
- package/components/CashierPage-Cdtyq0lf.js +10307 -0
- package/components/{CashierPage-BdSO4Kkp.cjs → CashierPage-DEYpTaJv.cjs} +6 -6
- package/components/CashierPage-DYXRnLVw.js +10254 -0
- package/components/{CashierPage-Cz4FxfTh.js → CashierPage-DmYelgiN.js} +1321 -1301
- package/components/CashierPage-TRzKwGkj.cjs +23 -0
- package/components/CashierPage-mGP6lkFv.js +10254 -0
- package/components/{CashierReceiptPage-BmtjEhfQ.cjs → CashierReceiptPage-2-P4gA2W.cjs} +1 -1
- package/components/{CashierReceiptPage-CsZ2X8h0.js → CashierReceiptPage-B3cqHXqT.js} +2 -2
- package/components/CashierReceiptPage-BCh5OfiT.cjs +29 -0
- package/components/{CashierReceiptPage-CUDd62pl.js → CashierReceiptPage-BjTVzjuc.js} +2 -2
- package/components/CashierReceiptPage-BoZ2EpUX.cjs +29 -0
- package/components/CashierReceiptPage-CEQajL7m.js +2043 -0
- package/components/CashierReceiptPage-CGcmTBRp.js +2063 -0
- package/components/CashierReceiptPage-D5PB-1VI.js +2063 -0
- package/components/CashierReceiptPage-DNsdCwQQ.js +2043 -0
- package/components/CashierReceiptPage-DWyirru6.js +2063 -0
- package/components/CashierReceiptPage-DkwFQrzl.cjs +29 -0
- package/components/CashierReceiptPage-mvS7a_9t.js +2043 -0
- package/components/{CashierSessionExpirationModal-CHSYKSo3.cjs → CashierSessionExpirationModal-15tJe60J.cjs} +1 -1
- package/components/CashierSessionExpirationModal-B0TYP3cY.cjs +2 -0
- package/components/{CashierSessionExpirationModal-ATq1dRDU.js → CashierSessionExpirationModal-BZyLc1_S.js} +2 -2
- package/components/{CashierSessionExpirationModal-BRxPI0Ti.js → CashierSessionExpirationModal-BrfbbbF-.js} +2 -2
- package/components/CashierSessionExpirationModal-BrhADqF1.js +1212 -0
- package/components/CashierSessionExpirationModal-CIrMZkSD.cjs +2 -0
- package/components/CashierSessionExpirationModal-CY385n9R.js +1212 -0
- package/components/CashierSessionExpirationModal-Cb456WpL.cjs +2 -0
- package/components/CashierSessionExpirationModal-CePJRUlu.js +1212 -0
- package/components/CashierSessionExpirationModal-DXVLX-Ja.js +1212 -0
- package/components/CashierSessionExpirationModal-IfrOHdOp.js +1212 -0
- package/components/CashierSessionExpirationModal-i5NfYzNE.js +1212 -0
- package/components/{CashierSpinner-C19gXhq9.cjs → CashierSpinner-BF0PvrCl.cjs} +1 -1
- package/components/{CashierSpinner-jFUh6F7b.js → CashierSpinner-BQv2AMHG.js} +2 -2
- package/components/{CashierSpinner-BqCb-59t.js → CashierSpinner-Bpe0d0oQ.js} +2 -2
- package/components/CashierSpinner-BvhJgDvg.js +79 -0
- package/components/CashierSpinner-C9Ra-0IT.js +79 -0
- package/components/CashierSpinner-CB2IDF99.js +79 -0
- package/components/CashierSpinner-CFUNSysS.js +79 -0
- package/components/CashierSpinner-CKdmXXKt.cjs +1 -0
- package/components/CashierSpinner-D6D1AmR0.cjs +1 -0
- package/components/CashierSpinner-DrZub22H.js +79 -0
- package/components/CashierSpinner-bOYmQpsr.js +79 -0
- package/components/CashierSpinner-mcvtpHVb.cjs +1 -0
- package/components/{CashierStepUp-C5DouUMp.cjs → CashierStepUp-4fnHnyQH.cjs} +1 -1
- package/components/{CashierStepUp-zIiSmEbQ.js → CashierStepUp-B3Ph1OSf.js} +2 -2
- package/components/{CashierStepUp-CxSz41Vf.js → CashierStepUp-CKae09kD.js} +2 -2
- package/components/CashierStepUp-CNHvoNU1.js +1161 -0
- package/components/CashierStepUp-CVfdA9uX.js +1201 -0
- package/components/CashierStepUp-ChUBdlnk.cjs +1 -0
- package/components/CashierStepUp-Cj8xEgHC.js +1264 -0
- package/components/CashierStepUp-Ck0xq8Xm.js +1201 -0
- package/components/CashierStepUp-DH4pCg7V.cjs +1 -0
- package/components/CashierStepUp-DIQ9DrxX.cjs +1 -0
- package/components/CashierStepUp-DfYWcQde.js +1161 -0
- package/components/CashierStepUp-iS4DfmUJ.js +1304 -0
- package/components/{CashierTransactionHistory-Bf4_gQXC.js → CashierTransactionHistory-B6FzMX9a.js} +4 -4
- package/components/{CashierTransactionHistory-2foxp-kj.js → CashierTransactionHistory-B9a9qQjo.js} +4 -4
- package/components/{CashierTransactionHistory-DtzHolEj.cjs → CashierTransactionHistory-BSRmZpn2.cjs} +1 -1
- package/components/CashierTransactionHistory-Bkqw8dMT.cjs +1 -0
- package/components/CashierTransactionHistory-C8SSHcED.js +1415 -0
- package/components/CashierTransactionHistory-C9q1W_66.js +1415 -0
- package/components/CashierTransactionHistory-CoTFYN7l.js +1415 -0
- package/components/CashierTransactionHistory-D5wsFJEM.js +1415 -0
- package/components/CashierTransactionHistory-DkPMVofl.js +1415 -0
- package/components/CashierTransactionHistory-DrZj3C3r.cjs +1 -0
- package/components/CashierTransactionHistory-_uQpfmaM.js +1415 -0
- package/components/CashierTransactionHistory-veYBG-Kr.cjs +1 -0
- package/components/{CashierVerifications-C-BDFVdf.js → CashierVerifications-BEFmSXtj.js} +3 -3
- package/components/{CashierVerifications-BW_Fdmjo.js → CashierVerifications-BI_yu8fO.js} +3 -3
- package/components/{CashierVerifications-Cvtcf_QP.cjs → CashierVerifications-BUuzc2KV.cjs} +1 -1
- package/components/CashierVerifications-BZPBsrmc.cjs +1 -0
- package/components/CashierVerifications-Bu-KbeZF.cjs +1 -0
- package/components/CashierVerifications-Bu0ALHD1.js +722 -0
- package/components/CashierVerifications-C3vBxGTw.js +726 -0
- package/components/CashierVerifications-CA42knBf.js +722 -0
- package/components/CashierVerifications-CBtYGTLV.js +726 -0
- package/components/CashierVerifications-CJjMkvTK.js +722 -0
- package/components/CashierVerifications-D692oxDO.js +726 -0
- package/components/CashierVerifications-nyuz_0L4.cjs +1 -0
- package/components/{TxnStatusIcon-CsOuFLUK.js → TxnStatusIcon-8ewM4ccO.js} +1 -1
- package/components/TxnStatusIcon-B6x0tb9z.js +142 -0
- package/components/{TxnStatusIcon-CQ0B6L44.js → TxnStatusIcon-B99-DjyY.js} +1 -1
- package/components/TxnStatusIcon-BO-jJSDC.js +142 -0
- package/components/TxnStatusIcon-Bw8L-eXX.js +142 -0
- package/components/{TxnStatusIcon-D1f0ODI-.cjs → TxnStatusIcon-CgTqMiw9.cjs} +1 -1
- package/components/TxnStatusIcon-CspMEKjU.cjs +1 -0
- package/components/TxnStatusIcon-DKI_hVK8.cjs +1 -0
- package/components/TxnStatusIcon-ObLzHWKw.cjs +1 -0
- package/components/TxnStatusIcon-T3_oGTiJ.js +142 -0
- package/components/TxnStatusIcon-_ohfqibs.js +142 -0
- package/components/TxnStatusIcon-xhjNtEZS.js +142 -0
- package/components/{TxnTypeIcons-DnGbYWhl.cjs → TxnTypeIcons-2TqkD6dM.cjs} +1 -1
- package/components/{TxnTypeIcons-Cs_PtzhK.js → TxnTypeIcons-5Ao_1BRX.js} +1 -1
- package/components/{TxnTypeIcons-FO4JNHVy.js → TxnTypeIcons-BL543vM-.js} +1 -1
- package/components/TxnTypeIcons-BxLbK2qP.cjs +1 -0
- package/components/TxnTypeIcons-CM9KOumw.js +101 -0
- package/components/TxnTypeIcons-Cv_QN0g3.js +101 -0
- package/components/TxnTypeIcons-DFX30GCY.js +101 -0
- package/components/TxnTypeIcons-DhQNGQt2.js +101 -0
- package/components/TxnTypeIcons-Dv_tv357.js +101 -0
- package/components/TxnTypeIcons-SOn0rg4y.cjs +1 -0
- package/components/TxnTypeIcons-gD4j8VCB.js +101 -0
- package/components/TxnTypeIcons-mX1zqVBL.cjs +1 -0
- 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/CashierMethodDetails-Dsu9mU8Z.cjs +0 -238
|
@@ -0,0 +1,1201 @@
|
|
|
1
|
+
var Qe = Object.defineProperty, $e = Object.defineProperties;
|
|
2
|
+
var et = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Me = Object.getOwnPropertySymbols;
|
|
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, ye = (n, t) => {
|
|
6
|
+
for (var e in t || (t = {}))
|
|
7
|
+
tt.call(t, e) && Te(n, e, t[e]);
|
|
8
|
+
if (Me)
|
|
9
|
+
for (var e of Me(t))
|
|
10
|
+
nt.call(t, e) && Te(n, e, t[e]);
|
|
11
|
+
return n;
|
|
12
|
+
}, Le = (n, t) => $e(n, et(t));
|
|
13
|
+
var me = (n, t, e) => new Promise((i, r) => {
|
|
14
|
+
var a = (c) => {
|
|
15
|
+
try {
|
|
16
|
+
s(e.next(c));
|
|
17
|
+
} catch (f) {
|
|
18
|
+
r(f);
|
|
19
|
+
}
|
|
20
|
+
}, d = (c) => {
|
|
21
|
+
try {
|
|
22
|
+
s(e.throw(c));
|
|
23
|
+
} catch (f) {
|
|
24
|
+
r(f);
|
|
25
|
+
}
|
|
26
|
+
}, s = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(a, d);
|
|
27
|
+
s((e = e.apply(n, t)).next());
|
|
28
|
+
});
|
|
29
|
+
import { a as it, $ as rt, S as ot, b as lt, s as st, f as oe, c as at, y as Se, e as E, k as O, m as k, o as l, p as ct, q as dt, x as ze, v as x, l as p, z as te, Q as Z, n as D, w as L, F as Be, L as J, r as ut, D as Pe, E as pt, A as ft, B as mt } from "./CashierPage-Cdtyq0lf.js";
|
|
30
|
+
import { s as gt, a as ht, b as bt } from "./CashierHeader-vy8HyWPz.js";
|
|
31
|
+
function Ae(n, t) {
|
|
32
|
+
it(n, t);
|
|
33
|
+
}
|
|
34
|
+
function wt(n) {
|
|
35
|
+
rt.set(n);
|
|
36
|
+
}
|
|
37
|
+
const Ie = {
|
|
38
|
+
en: {
|
|
39
|
+
otpTitle: "Code verification is required",
|
|
40
|
+
popupMessage: "Please enter the security code received on your SMS/email address to perform the update.",
|
|
41
|
+
popupMessageLastWarning: "If the next validation attempt is failed, your transaction will fail and you will be returned back to payment method.",
|
|
42
|
+
minutes: "minutes",
|
|
43
|
+
errorHeader: "Error",
|
|
44
|
+
configError: "Unable to load OTP data. Please try again later.",
|
|
45
|
+
otpHeading: "Enter OTP",
|
|
46
|
+
resendOtp: "Resent OTP",
|
|
47
|
+
submit: "Submit",
|
|
48
|
+
close: "Close",
|
|
49
|
+
invalidOtp: "The code you've sent is not valid. Please try again.",
|
|
50
|
+
accountBlocked: "Too many attempts for OTP. Your account has been blocked for one hour.",
|
|
51
|
+
submissionError: "Something went wrong. Please try again.",
|
|
52
|
+
otpExpiredMessage: "Validation code has expired, please request a new one to continue.",
|
|
53
|
+
timeRemaining: "Code expires in:",
|
|
54
|
+
selectChannelTitle: "Select verification method",
|
|
55
|
+
selectChannelMessage: "Choose how you would like to receive your verification code",
|
|
56
|
+
channelSMS: "SMS",
|
|
57
|
+
channelEmail: "Email",
|
|
58
|
+
sendCode: "Send code",
|
|
59
|
+
waitSeconds: "Please wait for before resending:"
|
|
60
|
+
},
|
|
61
|
+
tr: {
|
|
62
|
+
otpTitle: "Kod doğrulaması gereklidir",
|
|
63
|
+
popupMessage: "Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",
|
|
64
|
+
popupMessageLastWarning: "Bir sonraki doğrulama denemesi başarısız olursa, işleminiz başarısız olacak ve ödeme yöntemine geri döndürüleceksiniz.",
|
|
65
|
+
minutes: "dakika",
|
|
66
|
+
errorHeader: "Hata",
|
|
67
|
+
configError: "OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",
|
|
68
|
+
otpHeading: "OTP Girin",
|
|
69
|
+
resendOtp: "OTP'yi Yeniden Gönder",
|
|
70
|
+
submit: "Gönder",
|
|
71
|
+
close: "Kapat",
|
|
72
|
+
invalidOtp: "Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",
|
|
73
|
+
accountBlocked: "OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",
|
|
74
|
+
submissionError: "Bir şeyler ters gitti. Lütfen tekrar deneyin.",
|
|
75
|
+
otpExpiredMessage: "Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",
|
|
76
|
+
timeRemaining: "Kodun süresi doluyor:",
|
|
77
|
+
selectChannelTitle: "Doğrulama yöntemi seçin",
|
|
78
|
+
selectChannelMessage: "Doğrulama kodunuzu nasıl almak istediğinizi seçin",
|
|
79
|
+
channelSMS: "SMS kodu",
|
|
80
|
+
channelEmail: "E-posta kodu",
|
|
81
|
+
sendCode: "Kodu gönder",
|
|
82
|
+
waitSeconds: "Tekrar göndermeden önce lütfen bekleyin:"
|
|
83
|
+
},
|
|
84
|
+
fr: {
|
|
85
|
+
otpTitle: "La vérification par code est requise",
|
|
86
|
+
popupMessage: "Veuillez saisir le code de sécurité reçu par SMS ou par e-mail afin d'effectuer la mise à jour.",
|
|
87
|
+
popupMessageLastWarning: "Si la prochaine tentative de validation échoue, votre transaction échouera et vous serez redirigé vers le moyen de paiement.",
|
|
88
|
+
minutes: "minutes",
|
|
89
|
+
errorHeader: "Erreur",
|
|
90
|
+
configError: "Impossible de charger les données OTP. Veuillez réessayer plus tard.",
|
|
91
|
+
otpHeading: "Saisir le code OTP",
|
|
92
|
+
resendOtp: "Renvoyer le code OTP",
|
|
93
|
+
submit: "Valider",
|
|
94
|
+
close: "Fermer",
|
|
95
|
+
invalidOtp: "Le code que vous avez saisi n'est pas valide. Veuillez réessayer.",
|
|
96
|
+
accountBlocked: "Trop de tentatives de code OTP. Votre compte a été bloqué pendant une heure.",
|
|
97
|
+
submissionError: "Une erreur s'est produite. Veuillez réessayer.",
|
|
98
|
+
otpExpiredMessage: "Le code de validation a expiré. Veuillez en demander un nouveau pour continuer.",
|
|
99
|
+
timeRemaining: "Le code expire dans :",
|
|
100
|
+
selectChannelTitle: "Sélectionner la méthode de vérification",
|
|
101
|
+
selectChannelMessage: "Choisissez comment vous souhaitez recevoir votre code de vérification",
|
|
102
|
+
channelSMS: "SMS",
|
|
103
|
+
channelEmail: "E-mail",
|
|
104
|
+
sendCode: "Envoyer le code",
|
|
105
|
+
waitSeconds: "Veuillez patienter avant de renvoyer le code :"
|
|
106
|
+
},
|
|
107
|
+
da: {
|
|
108
|
+
otpTitle: "Kodebekræftelse er påkrævet",
|
|
109
|
+
popupMessage: "Indtast venligst sikkerhedskoden modtaget på din SMS/e-mailadresse for at udføre opdateringen.",
|
|
110
|
+
popupMessageLastWarning: "Hvis det næste valideringsforsøg mislykkes, vil din transaktion mislykkes, og du vil blive sendt tilbage til betalingsmetoden.",
|
|
111
|
+
minutes: "minutter",
|
|
112
|
+
errorHeader: "Fejl",
|
|
113
|
+
configError: "Kan ikke indlæse OTP-data. Prøv venligst igen senere.",
|
|
114
|
+
otpHeading: "Indtast OTP",
|
|
115
|
+
resendOtp: "Send OTP igen",
|
|
116
|
+
submit: "Indsend",
|
|
117
|
+
close: "Luk",
|
|
118
|
+
invalidOtp: "Koden du har sendt er ikke gyldig. Prøv venligst igen.",
|
|
119
|
+
accountBlocked: "For mange forsøg på OTP. Din konto er blevet blokeret i en time.",
|
|
120
|
+
submissionError: "Noget gik galt. Prøv venligst igen.",
|
|
121
|
+
otpExpiredMessage: "Valideringskoden er udløbet. Anmod venligst om en ny for at fortsætte.",
|
|
122
|
+
timeRemaining: "Koden udløber om:",
|
|
123
|
+
selectChannelTitle: "Vælg bekræftelsesmetode",
|
|
124
|
+
selectChannelMessage: "Vælg, hvordan du gerne vil modtage din bekræftelseskode",
|
|
125
|
+
channelSMS: "SMS",
|
|
126
|
+
channelEmail: "E-mail",
|
|
127
|
+
sendCode: "Send kode",
|
|
128
|
+
waitSeconds: "Vent venligst før genafsendelse:"
|
|
129
|
+
},
|
|
130
|
+
de: {
|
|
131
|
+
otpTitle: "Code-Verifizierung ist erforderlich",
|
|
132
|
+
popupMessage: "Bitte geben Sie den Sicherheitscode ein, den Sie per SMS/E-Mail erhalten haben, um die Aktualisierung durchzuführen.",
|
|
133
|
+
popupMessageLastWarning: "Wenn der nächste Validierungsversuch fehlschlägt, schlägt Ihre Transaktion fehl und Sie werden zur Zahlungsmethode zurückgeleitet.",
|
|
134
|
+
minutes: "Minuten",
|
|
135
|
+
errorHeader: "Fehler",
|
|
136
|
+
configError: "OTP-Daten können nicht geladen werden. Bitte versuchen Sie es später erneut.",
|
|
137
|
+
otpHeading: "OTP eingeben",
|
|
138
|
+
resendOtp: "OTP erneut senden",
|
|
139
|
+
submit: "Absenden",
|
|
140
|
+
close: "Schließen",
|
|
141
|
+
invalidOtp: "Der von Ihnen gesendete Code ist ungültig. Bitte versuchen Sie es erneut.",
|
|
142
|
+
accountBlocked: "Zu viele OTP-Versuche. Ihr Konto wurde für eine Stunde gesperrt.",
|
|
143
|
+
submissionError: "Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",
|
|
144
|
+
otpExpiredMessage: "Der Validierungscode ist abgelaufen. Bitte fordern Sie einen neuen an, um fortzufahren.",
|
|
145
|
+
timeRemaining: "Code läuft ab in:",
|
|
146
|
+
selectChannelTitle: "Verifizierungsmethode auswählen",
|
|
147
|
+
selectChannelMessage: "Wählen Sie, wie Sie Ihren Verifizierungscode erhalten möchten",
|
|
148
|
+
channelSMS: "SMS",
|
|
149
|
+
channelEmail: "E-Mail",
|
|
150
|
+
sendCode: "Code senden",
|
|
151
|
+
waitSeconds: "Bitte warten Sie, bevor Sie erneut senden:"
|
|
152
|
+
},
|
|
153
|
+
nl: {
|
|
154
|
+
otpTitle: "Codeverificatie is vereist",
|
|
155
|
+
popupMessage: "Voer de beveiligingscode in die u via SMS/e-mail heeft ontvangen om de update uit te voeren.",
|
|
156
|
+
popupMessageLastWarning: "Als de volgende validatiepoging mislukt, zal uw transactie mislukken en wordt u teruggestuurd naar de betaalmethode.",
|
|
157
|
+
minutes: "minuten",
|
|
158
|
+
errorHeader: "Fout",
|
|
159
|
+
configError: "Kan OTP-gegevens niet laden. Probeer het later opnieuw.",
|
|
160
|
+
otpHeading: "OTP invoeren",
|
|
161
|
+
resendOtp: "OTP opnieuw verzenden",
|
|
162
|
+
submit: "Verzenden",
|
|
163
|
+
close: "Sluiten",
|
|
164
|
+
invalidOtp: "De code die u heeft verzonden is niet geldig. Probeer het opnieuw.",
|
|
165
|
+
accountBlocked: "Te veel OTP-pogingen. Uw account is voor één uur geblokkeerd.",
|
|
166
|
+
submissionError: "Er is iets misgegaan. Probeer het opnieuw.",
|
|
167
|
+
otpExpiredMessage: "De validatiecode is verlopen. Vraag een nieuwe aan om door te gaan.",
|
|
168
|
+
timeRemaining: "Code verloopt over:",
|
|
169
|
+
selectChannelTitle: "Verificatiemethode selecteren",
|
|
170
|
+
selectChannelMessage: "Kies hoe u uw verificatiecode wilt ontvangen",
|
|
171
|
+
channelSMS: "SMS",
|
|
172
|
+
channelEmail: "E-mail",
|
|
173
|
+
sendCode: "Code verzenden",
|
|
174
|
+
waitSeconds: "Wacht even voordat u opnieuw verzendt:"
|
|
175
|
+
}
|
|
176
|
+
};
|
|
177
|
+
function vt(n) {
|
|
178
|
+
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}}');
|
|
179
|
+
}
|
|
180
|
+
function Re(n, t, e) {
|
|
181
|
+
const i = n.slice();
|
|
182
|
+
return i[69] = t[e], i[70] = t, i[71] = e, i;
|
|
183
|
+
}
|
|
184
|
+
function _t(n) {
|
|
185
|
+
let t, e, i, r, a, d, s, c, f, v, w, T, M, b, m, _, S, A = (
|
|
186
|
+
/*$_*/
|
|
187
|
+
n[19]("channelSMS") + ""
|
|
188
|
+
), X, N, H, I, ne, K, Q, le, $, C, z, F, se, ae, ce = (
|
|
189
|
+
/*$_*/
|
|
190
|
+
n[19]("channelEmail") + ""
|
|
191
|
+
), U, ge, q, j, Y, de, ue;
|
|
192
|
+
function pe(u, y) {
|
|
193
|
+
return (
|
|
194
|
+
/*showResendOtp*/
|
|
195
|
+
u[9] ? Ct : (
|
|
196
|
+
/*showOtpInput*/
|
|
197
|
+
u[12] ? yt : St
|
|
198
|
+
)
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
let ee = pe(n), G = ee(n), W = (
|
|
202
|
+
/*selectedChannel*/
|
|
203
|
+
n[0] && xe(n)
|
|
204
|
+
);
|
|
205
|
+
function he(u, y) {
|
|
206
|
+
if (
|
|
207
|
+
/*isLoading*/
|
|
208
|
+
u[3] && /*showOtpInput*/
|
|
209
|
+
u[12]
|
|
210
|
+
)
|
|
211
|
+
return zt;
|
|
212
|
+
if (
|
|
213
|
+
/*showOtpInput*/
|
|
214
|
+
u[12] && /*config*/
|
|
215
|
+
u[4]
|
|
216
|
+
)
|
|
217
|
+
return Lt;
|
|
218
|
+
}
|
|
219
|
+
let ie = he(n), V = ie && ie(n);
|
|
220
|
+
function be(u, y) {
|
|
221
|
+
if (
|
|
222
|
+
/*showResendOtp*/
|
|
223
|
+
u[9]
|
|
224
|
+
)
|
|
225
|
+
return At;
|
|
226
|
+
if (
|
|
227
|
+
/*showOtpInput*/
|
|
228
|
+
u[12] && /*config*/
|
|
229
|
+
u[4]
|
|
230
|
+
)
|
|
231
|
+
return Pt;
|
|
232
|
+
}
|
|
233
|
+
let re = be(n), R = re && re(n);
|
|
234
|
+
return {
|
|
235
|
+
c() {
|
|
236
|
+
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 = Z("svg"), T = Z("path"), M = Z("circle"), b = Z("circle"), m = Z("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 = Z("svg"), z = Z("rect"), F = Z("path"), se = D(), ae = k("span"), U = L(ce), ge = D(), W && W.c(), q = D(), V && V.c(), j = D(), Y = k("div"), R && R.c(), l(t, "class", "OtpDescription"), l(a, "class", "RadioIndicator"), J(
|
|
237
|
+
a,
|
|
238
|
+
"checked",
|
|
239
|
+
/*selectedChannel*/
|
|
240
|
+
n[0] === /*channels*/
|
|
241
|
+
n[20].SMS
|
|
242
|
+
), l(s, "type", "radio"), l(s, "name", "channel"), s.value = /*channels*/
|
|
243
|
+
n[20].SMS, s.checked = c = /*selectedChannel*/
|
|
244
|
+
n[0] === /*channels*/
|
|
245
|
+
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(
|
|
246
|
+
r,
|
|
247
|
+
"selected",
|
|
248
|
+
/*selectedChannel*/
|
|
249
|
+
n[0] === /*channels*/
|
|
250
|
+
n[20].SMS
|
|
251
|
+
), l(I, "class", "RadioIndicator"), J(
|
|
252
|
+
I,
|
|
253
|
+
"checked",
|
|
254
|
+
/*selectedChannel*/
|
|
255
|
+
n[0] === /*channels*/
|
|
256
|
+
n[20].EMAIL
|
|
257
|
+
), l(K, "type", "radio"), l(K, "name", "channel"), K.value = /*channels*/
|
|
258
|
+
n[20].EMAIL, K.checked = Q = /*selectedChannel*/
|
|
259
|
+
n[0] === /*channels*/
|
|
260
|
+
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(
|
|
261
|
+
H,
|
|
262
|
+
"selected",
|
|
263
|
+
/*selectedChannel*/
|
|
264
|
+
n[0] === /*channels*/
|
|
265
|
+
n[20].EMAIL
|
|
266
|
+
), l(i, "class", "ChannelSelection"), l(Y, "class", "OtpActionButtons");
|
|
267
|
+
},
|
|
268
|
+
m(u, y) {
|
|
269
|
+
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, Y, y), R && R.m(Y, null), de || (ue = [
|
|
270
|
+
te(
|
|
271
|
+
s,
|
|
272
|
+
"change",
|
|
273
|
+
/*change_handler*/
|
|
274
|
+
n[39]
|
|
275
|
+
),
|
|
276
|
+
te(
|
|
277
|
+
K,
|
|
278
|
+
"change",
|
|
279
|
+
/*change_handler_1*/
|
|
280
|
+
n[40]
|
|
281
|
+
)
|
|
282
|
+
], de = !0);
|
|
283
|
+
},
|
|
284
|
+
p(u, y) {
|
|
285
|
+
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*/
|
|
286
|
+
1048577 && J(
|
|
287
|
+
a,
|
|
288
|
+
"checked",
|
|
289
|
+
/*selectedChannel*/
|
|
290
|
+
u[0] === /*channels*/
|
|
291
|
+
u[20].SMS
|
|
292
|
+
), y[0] & /*selectedChannel*/
|
|
293
|
+
1 && c !== (c = /*selectedChannel*/
|
|
294
|
+
u[0] === /*channels*/
|
|
295
|
+
u[20].SMS) && (s.checked = c), y[0] & /*$_*/
|
|
296
|
+
524288 && A !== (A = /*$_*/
|
|
297
|
+
u[19]("channelSMS") + "") && x(X, A), y[0] & /*selectedChannel, channels*/
|
|
298
|
+
1048577 && J(
|
|
299
|
+
r,
|
|
300
|
+
"selected",
|
|
301
|
+
/*selectedChannel*/
|
|
302
|
+
u[0] === /*channels*/
|
|
303
|
+
u[20].SMS
|
|
304
|
+
), y[0] & /*selectedChannel, channels*/
|
|
305
|
+
1048577 && J(
|
|
306
|
+
I,
|
|
307
|
+
"checked",
|
|
308
|
+
/*selectedChannel*/
|
|
309
|
+
u[0] === /*channels*/
|
|
310
|
+
u[20].EMAIL
|
|
311
|
+
), y[0] & /*selectedChannel*/
|
|
312
|
+
1 && Q !== (Q = /*selectedChannel*/
|
|
313
|
+
u[0] === /*channels*/
|
|
314
|
+
u[20].EMAIL) && (K.checked = Q), y[0] & /*$_*/
|
|
315
|
+
524288 && ce !== (ce = /*$_*/
|
|
316
|
+
u[19]("channelEmail") + "") && x(U, ce), y[0] & /*selectedChannel, channels*/
|
|
317
|
+
1048577 && J(
|
|
318
|
+
H,
|
|
319
|
+
"selected",
|
|
320
|
+
/*selectedChannel*/
|
|
321
|
+
u[0] === /*channels*/
|
|
322
|
+
u[20].EMAIL
|
|
323
|
+
), /*selectedChannel*/
|
|
324
|
+
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(Y, null)));
|
|
325
|
+
},
|
|
326
|
+
d(u) {
|
|
327
|
+
u && (E(t), E(e), E(i), E(ge), E(q), E(j), E(Y)), G.d(), W && W.d(u), V && V.d(u), R && R.d(), de = !1, Be(ue);
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
}
|
|
331
|
+
function kt(n) {
|
|
332
|
+
let t, e, i, r, a, d, s = (
|
|
333
|
+
/*$_*/
|
|
334
|
+
n[19]("errorHeader") + ""
|
|
335
|
+
), c, f, v, w, T, M, b = (
|
|
336
|
+
/*$_*/
|
|
337
|
+
n[19]("close") + ""
|
|
338
|
+
), m, _, S;
|
|
339
|
+
return {
|
|
340
|
+
c() {
|
|
341
|
+
t = k("div"), e = k("div"), i = Z("svg"), r = Z("path"), a = D(), d = k("h2"), c = L(s), f = D(), v = k("p"), w = L(
|
|
342
|
+
/*errorMessage*/
|
|
343
|
+
n[8]
|
|
344
|
+
), 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");
|
|
345
|
+
},
|
|
346
|
+
m(A, X) {
|
|
347
|
+
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(
|
|
348
|
+
M,
|
|
349
|
+
"click",
|
|
350
|
+
/*manualClosePopup*/
|
|
351
|
+
n[28]
|
|
352
|
+
), _ = !0);
|
|
353
|
+
},
|
|
354
|
+
p(A, X) {
|
|
355
|
+
X[0] & /*$_*/
|
|
356
|
+
524288 && s !== (s = /*$_*/
|
|
357
|
+
A[19]("errorHeader") + "") && x(c, s), X[0] & /*errorMessage*/
|
|
358
|
+
256 && x(
|
|
359
|
+
w,
|
|
360
|
+
/*errorMessage*/
|
|
361
|
+
A[8]
|
|
362
|
+
), X[0] & /*$_*/
|
|
363
|
+
524288 && b !== (b = /*$_*/
|
|
364
|
+
A[19]("close") + "") && x(m, b);
|
|
365
|
+
},
|
|
366
|
+
d(A) {
|
|
367
|
+
A && E(t), _ = !1, S();
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
function yt(n) {
|
|
372
|
+
let t, e, i, r;
|
|
373
|
+
function a(f, v) {
|
|
374
|
+
return (
|
|
375
|
+
/*isLastWarning*/
|
|
376
|
+
f[10] ? Ot : Et
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
let d = a(n), s = d(n), c = (
|
|
380
|
+
/*hasErrors*/
|
|
381
|
+
n[6] && De(n)
|
|
382
|
+
);
|
|
383
|
+
return {
|
|
384
|
+
c() {
|
|
385
|
+
t = k("p"), s.c(), i = D(), c && c.c(), r = ut(), l(t, "class", e = /*isLastWarning*/
|
|
386
|
+
n[10] ? "LastWarningMessage" : "");
|
|
387
|
+
},
|
|
388
|
+
m(f, v) {
|
|
389
|
+
O(f, t, v), s.m(t, null), O(f, i, v), c && c.m(f, v), O(f, r, v);
|
|
390
|
+
},
|
|
391
|
+
p(f, v) {
|
|
392
|
+
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*/
|
|
393
|
+
1024 && e !== (e = /*isLastWarning*/
|
|
394
|
+
f[10] ? "LastWarningMessage" : "") && l(t, "class", e), /*hasErrors*/
|
|
395
|
+
f[6] ? c ? c.p(f, v) : (c = De(f), c.c(), c.m(r.parentNode, r)) : c && (c.d(1), c = null);
|
|
396
|
+
},
|
|
397
|
+
d(f) {
|
|
398
|
+
f && (E(t), E(i), E(r)), s.d(), c && c.d(f);
|
|
399
|
+
}
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
function St(n) {
|
|
403
|
+
let t, e = (
|
|
404
|
+
/*$_*/
|
|
405
|
+
(n[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
406
|
+
), i;
|
|
407
|
+
return {
|
|
408
|
+
c() {
|
|
409
|
+
t = k("p"), i = L(e);
|
|
410
|
+
},
|
|
411
|
+
m(r, a) {
|
|
412
|
+
O(r, t, a), p(t, i);
|
|
413
|
+
},
|
|
414
|
+
p(r, a) {
|
|
415
|
+
a[0] & /*$_*/
|
|
416
|
+
524288 && e !== (e = /*$_*/
|
|
417
|
+
(r[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && x(i, e);
|
|
418
|
+
},
|
|
419
|
+
d(r) {
|
|
420
|
+
r && E(t);
|
|
421
|
+
}
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
function Ct(n) {
|
|
425
|
+
let t, e = (
|
|
426
|
+
/*$_*/
|
|
427
|
+
n[19]("otpExpiredMessage") + ""
|
|
428
|
+
), i;
|
|
429
|
+
return {
|
|
430
|
+
c() {
|
|
431
|
+
t = k("p"), i = L(e), l(t, "class", "OtpNoticeMessage"), l(t, "role", "alert");
|
|
432
|
+
},
|
|
433
|
+
m(r, a) {
|
|
434
|
+
O(r, t, a), p(t, i);
|
|
435
|
+
},
|
|
436
|
+
p(r, a) {
|
|
437
|
+
a[0] & /*$_*/
|
|
438
|
+
524288 && e !== (e = /*$_*/
|
|
439
|
+
r[19]("otpExpiredMessage") + "") && x(i, e);
|
|
440
|
+
},
|
|
441
|
+
d(r) {
|
|
442
|
+
r && E(t);
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
function Et(n) {
|
|
447
|
+
let t = (
|
|
448
|
+
/*$_*/
|
|
449
|
+
n[19]("popupMessage") + ""
|
|
450
|
+
), e;
|
|
451
|
+
return {
|
|
452
|
+
c() {
|
|
453
|
+
e = L(t);
|
|
454
|
+
},
|
|
455
|
+
m(i, r) {
|
|
456
|
+
O(i, e, r);
|
|
457
|
+
},
|
|
458
|
+
p(i, r) {
|
|
459
|
+
r[0] & /*$_*/
|
|
460
|
+
524288 && t !== (t = /*$_*/
|
|
461
|
+
i[19]("popupMessage") + "") && x(e, t);
|
|
462
|
+
},
|
|
463
|
+
d(i) {
|
|
464
|
+
i && E(e);
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
function Ot(n) {
|
|
469
|
+
let t = (
|
|
470
|
+
/*$_*/
|
|
471
|
+
n[19]("popupMessageLastWarning") + ""
|
|
472
|
+
), e;
|
|
473
|
+
return {
|
|
474
|
+
c() {
|
|
475
|
+
e = L(t);
|
|
476
|
+
},
|
|
477
|
+
m(i, r) {
|
|
478
|
+
O(i, e, r);
|
|
479
|
+
},
|
|
480
|
+
p(i, r) {
|
|
481
|
+
r[0] & /*$_*/
|
|
482
|
+
524288 && t !== (t = /*$_*/
|
|
483
|
+
i[19]("popupMessageLastWarning") + "") && x(e, t);
|
|
484
|
+
},
|
|
485
|
+
d(i) {
|
|
486
|
+
i && E(e);
|
|
487
|
+
}
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
function De(n) {
|
|
491
|
+
let t, e;
|
|
492
|
+
return {
|
|
493
|
+
c() {
|
|
494
|
+
t = k("p"), e = L(
|
|
495
|
+
/*errorMessage*/
|
|
496
|
+
n[8]
|
|
497
|
+
), l(t, "class", "OtpErrorMessage"), l(t, "role", "alert");
|
|
498
|
+
},
|
|
499
|
+
m(i, r) {
|
|
500
|
+
O(i, t, r), p(t, e);
|
|
501
|
+
},
|
|
502
|
+
p(i, r) {
|
|
503
|
+
r[0] & /*errorMessage*/
|
|
504
|
+
256 && x(
|
|
505
|
+
e,
|
|
506
|
+
/*errorMessage*/
|
|
507
|
+
i[8]
|
|
508
|
+
);
|
|
509
|
+
},
|
|
510
|
+
d(i) {
|
|
511
|
+
i && E(t);
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
function xe(n) {
|
|
516
|
+
let t, e, i, r;
|
|
517
|
+
function a(c, f) {
|
|
518
|
+
return (
|
|
519
|
+
/*currentChannelTimer*/
|
|
520
|
+
c[17] > 0 ? Tt : Mt
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
let d = a(n), s = d(n);
|
|
524
|
+
return {
|
|
525
|
+
c() {
|
|
526
|
+
t = k("button"), s.c(), l(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
|
|
527
|
+
n[18], J(t, "disabled", !/*canSubmitChannel*/
|
|
528
|
+
n[18] || /*waitingForConfig*/
|
|
529
|
+
n[16]);
|
|
530
|
+
},
|
|
531
|
+
m(c, f) {
|
|
532
|
+
O(c, t, f), s.m(t, null), i || (r = te(
|
|
533
|
+
t,
|
|
534
|
+
"click",
|
|
535
|
+
/*handleChannelSubmit*/
|
|
536
|
+
n[22]
|
|
537
|
+
), i = !0);
|
|
538
|
+
},
|
|
539
|
+
p(c, f) {
|
|
540
|
+
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*/
|
|
541
|
+
262144 && e !== (e = !/*canSubmitChannel*/
|
|
542
|
+
c[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
|
|
543
|
+
327680 && J(t, "disabled", !/*canSubmitChannel*/
|
|
544
|
+
c[18] || /*waitingForConfig*/
|
|
545
|
+
c[16]);
|
|
546
|
+
},
|
|
547
|
+
d(c) {
|
|
548
|
+
c && E(t), s.d(), i = !1, r();
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
function Mt(n) {
|
|
553
|
+
let t = (
|
|
554
|
+
/*$_*/
|
|
555
|
+
n[19]("sendCode") + ""
|
|
556
|
+
), e;
|
|
557
|
+
return {
|
|
558
|
+
c() {
|
|
559
|
+
e = L(t);
|
|
560
|
+
},
|
|
561
|
+
m(i, r) {
|
|
562
|
+
O(i, e, r);
|
|
563
|
+
},
|
|
564
|
+
p(i, r) {
|
|
565
|
+
r[0] & /*$_*/
|
|
566
|
+
524288 && t !== (t = /*$_*/
|
|
567
|
+
i[19]("sendCode") + "") && x(e, t);
|
|
568
|
+
},
|
|
569
|
+
d(i) {
|
|
570
|
+
i && E(e);
|
|
571
|
+
}
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
function Tt(n) {
|
|
575
|
+
let t = (
|
|
576
|
+
/*$_*/
|
|
577
|
+
n[19]("waitSeconds") + ""
|
|
578
|
+
), e, i, r, a;
|
|
579
|
+
return {
|
|
580
|
+
c() {
|
|
581
|
+
e = L(t), i = L(" ("), r = L(
|
|
582
|
+
/*currentChannelTimer*/
|
|
583
|
+
n[17]
|
|
584
|
+
), a = L("s)");
|
|
585
|
+
},
|
|
586
|
+
m(d, s) {
|
|
587
|
+
O(d, e, s), O(d, i, s), O(d, r, s), O(d, a, s);
|
|
588
|
+
},
|
|
589
|
+
p(d, s) {
|
|
590
|
+
s[0] & /*$_*/
|
|
591
|
+
524288 && t !== (t = /*$_*/
|
|
592
|
+
d[19]("waitSeconds") + "") && x(e, t), s[0] & /*currentChannelTimer*/
|
|
593
|
+
131072 && x(
|
|
594
|
+
r,
|
|
595
|
+
/*currentChannelTimer*/
|
|
596
|
+
d[17]
|
|
597
|
+
);
|
|
598
|
+
},
|
|
599
|
+
d(d) {
|
|
600
|
+
d && (E(e), E(i), E(r), E(a));
|
|
601
|
+
}
|
|
602
|
+
};
|
|
603
|
+
}
|
|
604
|
+
function Lt(n) {
|
|
605
|
+
let t, e, i = (
|
|
606
|
+
/*$_*/
|
|
607
|
+
n[19]("timeRemaining") + ""
|
|
608
|
+
), r, a, d = (
|
|
609
|
+
/*formatTime*/
|
|
610
|
+
n[23](
|
|
611
|
+
/*timeLeft*/
|
|
612
|
+
n[5]
|
|
613
|
+
) + ""
|
|
614
|
+
), s, c, f = (
|
|
615
|
+
/*$_*/
|
|
616
|
+
n[19]("minutes") + ""
|
|
617
|
+
), v, w, T, M = Pe(
|
|
618
|
+
/*otp*/
|
|
619
|
+
n[2]
|
|
620
|
+
), b = [];
|
|
621
|
+
for (let m = 0; m < M.length; m += 1)
|
|
622
|
+
b[m] = Ve(Re(n, M, m));
|
|
623
|
+
return {
|
|
624
|
+
c() {
|
|
625
|
+
t = k("div"), e = k("div"), r = L(i), a = D(), s = L(d), c = D(), v = L(f), w = D(), T = k("div");
|
|
626
|
+
for (let m = 0; m < b.length; m += 1)
|
|
627
|
+
b[m].c();
|
|
628
|
+
l(e, "class", "OtpTimer"), l(T, "class", "OtpField"), l(t, "class", "OtpFieldWrapper");
|
|
629
|
+
},
|
|
630
|
+
m(m, _) {
|
|
631
|
+
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);
|
|
632
|
+
for (let S = 0; S < b.length; S += 1)
|
|
633
|
+
b[S] && b[S].m(T, null);
|
|
634
|
+
},
|
|
635
|
+
p(m, _) {
|
|
636
|
+
if (_[0] & /*$_*/
|
|
637
|
+
524288 && i !== (i = /*$_*/
|
|
638
|
+
m[19]("timeRemaining") + "") && x(r, i), _[0] & /*timeLeft*/
|
|
639
|
+
32 && d !== (d = /*formatTime*/
|
|
640
|
+
m[23](
|
|
641
|
+
/*timeLeft*/
|
|
642
|
+
m[5]
|
|
643
|
+
) + "") && x(s, d), _[0] & /*$_*/
|
|
644
|
+
524288 && f !== (f = /*$_*/
|
|
645
|
+
m[19]("minutes") + "") && x(v, f), _[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
646
|
+
117458964) {
|
|
647
|
+
M = Pe(
|
|
648
|
+
/*otp*/
|
|
649
|
+
m[2]
|
|
650
|
+
);
|
|
651
|
+
let S;
|
|
652
|
+
for (S = 0; S < M.length; S += 1) {
|
|
653
|
+
const A = Re(m, M, S);
|
|
654
|
+
b[S] ? b[S].p(A, _) : (b[S] = Ve(A), b[S].c(), b[S].m(T, null));
|
|
655
|
+
}
|
|
656
|
+
for (; S < b.length; S += 1)
|
|
657
|
+
b[S].d(1);
|
|
658
|
+
b.length = M.length;
|
|
659
|
+
}
|
|
660
|
+
},
|
|
661
|
+
d(m) {
|
|
662
|
+
m && E(t), pt(b, m);
|
|
663
|
+
}
|
|
664
|
+
};
|
|
665
|
+
}
|
|
666
|
+
function zt(n) {
|
|
667
|
+
let t;
|
|
668
|
+
return {
|
|
669
|
+
c() {
|
|
670
|
+
t = k("div"), t.innerHTML = '<span class="OtpLoader"></span>', l(t, "class", "OtpLoaderContainer");
|
|
671
|
+
},
|
|
672
|
+
m(e, i) {
|
|
673
|
+
O(e, t, i);
|
|
674
|
+
},
|
|
675
|
+
p: Se,
|
|
676
|
+
d(e) {
|
|
677
|
+
e && E(t);
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
function Ve(n) {
|
|
682
|
+
let t, e, i, r = (
|
|
683
|
+
/*index*/
|
|
684
|
+
n[71]
|
|
685
|
+
), a, d;
|
|
686
|
+
const s = () => (
|
|
687
|
+
/*input_binding*/
|
|
688
|
+
n[41](t, r)
|
|
689
|
+
), c = () => (
|
|
690
|
+
/*input_binding*/
|
|
691
|
+
n[41](null, r)
|
|
692
|
+
);
|
|
693
|
+
function f(...w) {
|
|
694
|
+
return (
|
|
695
|
+
/*input_handler*/
|
|
696
|
+
n[42](
|
|
697
|
+
/*index*/
|
|
698
|
+
n[71],
|
|
699
|
+
...w
|
|
700
|
+
)
|
|
701
|
+
);
|
|
702
|
+
}
|
|
703
|
+
function v(...w) {
|
|
704
|
+
return (
|
|
705
|
+
/*keydown_handler*/
|
|
706
|
+
n[43](
|
|
707
|
+
/*index*/
|
|
708
|
+
n[71],
|
|
709
|
+
...w
|
|
710
|
+
)
|
|
711
|
+
);
|
|
712
|
+
}
|
|
713
|
+
return {
|
|
714
|
+
c() {
|
|
715
|
+
t = k("input"), l(t, "id", `otp-input-${/*index*/
|
|
716
|
+
n[71]}`), l(t, "type", "text"), l(t, "class", e = `otp-box ${/*config*/
|
|
717
|
+
n[4].inputLength % 2 === 0 && /*index*/
|
|
718
|
+
n[71] === /*config*/
|
|
719
|
+
n[4].inputLength / 2 - 1 ? "space" : ""}`), l(t, "maxlength", 1), t.value = i = /*char*/
|
|
720
|
+
n[69], l(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
721
|
+
n[11], l(t, "autocomplete", "off");
|
|
722
|
+
},
|
|
723
|
+
m(w, T) {
|
|
724
|
+
O(w, t, T), s(), a || (d = [
|
|
725
|
+
te(t, "input", f),
|
|
726
|
+
te(t, "keydown", v),
|
|
727
|
+
te(
|
|
728
|
+
t,
|
|
729
|
+
"paste",
|
|
730
|
+
/*handleOnPasteOtp*/
|
|
731
|
+
n[24]
|
|
732
|
+
)
|
|
733
|
+
], a = !0);
|
|
734
|
+
},
|
|
735
|
+
p(w, T) {
|
|
736
|
+
n = w, T[0] & /*config*/
|
|
737
|
+
16 && e !== (e = `otp-box ${/*config*/
|
|
738
|
+
n[4].inputLength % 2 === 0 && /*index*/
|
|
739
|
+
n[71] === /*config*/
|
|
740
|
+
n[4].inputLength / 2 - 1 ? "space" : ""}`) && l(t, "class", e), T[0] & /*otp*/
|
|
741
|
+
4 && i !== (i = /*char*/
|
|
742
|
+
n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
|
|
743
|
+
2048 && (t.disabled = /*inputDisabled*/
|
|
744
|
+
n[11]), r !== /*index*/
|
|
745
|
+
n[71] && (c(), r = /*index*/
|
|
746
|
+
n[71], s());
|
|
747
|
+
},
|
|
748
|
+
d(w) {
|
|
749
|
+
w && E(t), c(), a = !1, Be(d);
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
function Pt(n) {
|
|
754
|
+
let t, e = (
|
|
755
|
+
/*$_*/
|
|
756
|
+
n[19]("submit") + ""
|
|
757
|
+
), i, r, a, d;
|
|
758
|
+
return {
|
|
759
|
+
c() {
|
|
760
|
+
t = k("button"), i = L(e), l(t, "class", "OtpButton"), t.disabled = r = /*otp*/
|
|
761
|
+
n[2].join("").length !== /*config*/
|
|
762
|
+
n[4].inputLength || /*isSubmitting*/
|
|
763
|
+
n[13] || /*maxAttempts*/
|
|
764
|
+
n[15];
|
|
765
|
+
},
|
|
766
|
+
m(s, c) {
|
|
767
|
+
O(s, t, c), p(t, i), a || (d = te(
|
|
768
|
+
t,
|
|
769
|
+
"click",
|
|
770
|
+
/*submitOtp*/
|
|
771
|
+
n[29]
|
|
772
|
+
), a = !0);
|
|
773
|
+
},
|
|
774
|
+
p(s, c) {
|
|
775
|
+
c[0] & /*$_*/
|
|
776
|
+
524288 && e !== (e = /*$_*/
|
|
777
|
+
s[19]("submit") + "") && x(i, e), c[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
778
|
+
40980 && r !== (r = /*otp*/
|
|
779
|
+
s[2].join("").length !== /*config*/
|
|
780
|
+
s[4].inputLength || /*isSubmitting*/
|
|
781
|
+
s[13] || /*maxAttempts*/
|
|
782
|
+
s[15]) && (t.disabled = r);
|
|
783
|
+
},
|
|
784
|
+
d(s) {
|
|
785
|
+
s && E(t), a = !1, d();
|
|
786
|
+
}
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
function At(n) {
|
|
790
|
+
let t, e = (
|
|
791
|
+
/*$_*/
|
|
792
|
+
n[19]("resendOtp") + ""
|
|
793
|
+
), i, r, a;
|
|
794
|
+
return {
|
|
795
|
+
c() {
|
|
796
|
+
t = k("button"), i = L(e), l(t, "class", "OtpButton");
|
|
797
|
+
},
|
|
798
|
+
m(d, s) {
|
|
799
|
+
O(d, t, s), p(t, i), r || (a = te(
|
|
800
|
+
t,
|
|
801
|
+
"click",
|
|
802
|
+
/*handleResendOtp*/
|
|
803
|
+
n[27]
|
|
804
|
+
), r = !0);
|
|
805
|
+
},
|
|
806
|
+
p(d, s) {
|
|
807
|
+
s[0] & /*$_*/
|
|
808
|
+
524288 && e !== (e = /*$_*/
|
|
809
|
+
d[19]("resendOtp") + "") && x(i, e);
|
|
810
|
+
},
|
|
811
|
+
d(d) {
|
|
812
|
+
d && E(t), r = !1, a();
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
function It(n) {
|
|
817
|
+
let t;
|
|
818
|
+
function e(a, d) {
|
|
819
|
+
return (
|
|
820
|
+
/*hasConfigErrors*/
|
|
821
|
+
a[7] ? kt : _t
|
|
822
|
+
);
|
|
823
|
+
}
|
|
824
|
+
let i = e(n), r = i(n);
|
|
825
|
+
return {
|
|
826
|
+
c() {
|
|
827
|
+
t = k("div"), r.c(), l(t, "class", "OtpContent");
|
|
828
|
+
},
|
|
829
|
+
m(a, d) {
|
|
830
|
+
O(a, t, d), r.m(t, null), n[44](t);
|
|
831
|
+
},
|
|
832
|
+
p(a, d) {
|
|
833
|
+
i === (i = e(a)) && r ? r.p(a, d) : (r.d(1), r = i(a), r && (r.c(), r.m(t, null)));
|
|
834
|
+
},
|
|
835
|
+
i: Se,
|
|
836
|
+
o: Se,
|
|
837
|
+
d(a) {
|
|
838
|
+
a && E(t), r.d(), n[44](null);
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
function Rt(n, t, e) {
|
|
843
|
+
let i, r, a;
|
|
844
|
+
ct(n, mt, (o) => e(19, a = o));
|
|
845
|
+
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, Y = 0, de = !1, ue = !1;
|
|
846
|
+
const pe = { SMS: "sms", EMAIL: "email" }, ee = {
|
|
847
|
+
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
848
|
+
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
849
|
+
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
850
|
+
};
|
|
851
|
+
Object.keys(Ie).forEach((o) => {
|
|
852
|
+
Ae(o, Ie[o]);
|
|
853
|
+
});
|
|
854
|
+
const G = () => {
|
|
855
|
+
wt(f);
|
|
856
|
+
}, W = () => {
|
|
857
|
+
fetch(T).then((o) => o.json()).then((o) => {
|
|
858
|
+
Object.keys(o).forEach((g) => {
|
|
859
|
+
Ae(g, o[g]);
|
|
860
|
+
});
|
|
861
|
+
}).catch((o) => {
|
|
862
|
+
console.log(o);
|
|
863
|
+
});
|
|
864
|
+
}, he = (o) => me(this, null, function* () {
|
|
865
|
+
var g;
|
|
866
|
+
if ((g = o.detail) != null && g["x-step-up-required"]) {
|
|
867
|
+
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) {
|
|
868
|
+
e(3, m = !1), e(7, H = !0), e(8, I = a("configError"));
|
|
869
|
+
return;
|
|
870
|
+
}
|
|
871
|
+
e(12, se = !1), e(3, m = !1);
|
|
872
|
+
}
|
|
873
|
+
}), ie = () => {
|
|
874
|
+
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 = {});
|
|
875
|
+
}, V = () => {
|
|
876
|
+
ie();
|
|
877
|
+
}, be = () => new Promise((o, g) => {
|
|
878
|
+
const h = new URL(`${v}/api/pam/v1/mfa/challenge/${ne}`), P = new Headers();
|
|
879
|
+
P.append("accept", "application/json"), P.append("Content-Type", "application/json"), P.append("X-SessionId", `${w}`), e(16, ue = !0);
|
|
880
|
+
const fe = {
|
|
881
|
+
method: "PATCH",
|
|
882
|
+
headers: P,
|
|
883
|
+
body: JSON.stringify({
|
|
884
|
+
channel: C,
|
|
885
|
+
templateId: M
|
|
886
|
+
})
|
|
887
|
+
};
|
|
888
|
+
fetch(h, fe).then((Oe) => Oe.json()).then(() => {
|
|
889
|
+
e(15, de = !1), y(), we(), o();
|
|
890
|
+
}).catch((Oe) => {
|
|
891
|
+
g();
|
|
892
|
+
});
|
|
893
|
+
}), re = () => {
|
|
894
|
+
F && clearInterval(F), F = setInterval(
|
|
895
|
+
() => {
|
|
896
|
+
const o = ye({}, z);
|
|
897
|
+
let g = !1;
|
|
898
|
+
Object.keys(o).forEach((h) => {
|
|
899
|
+
o[h] > 0 && (o[h]--, g = !0);
|
|
900
|
+
}), e(38, z = o), !g && F && (clearInterval(F), F = null);
|
|
901
|
+
},
|
|
902
|
+
1e3
|
|
903
|
+
);
|
|
904
|
+
}, R = (o) => {
|
|
905
|
+
e(0, C = o);
|
|
906
|
+
}, u = () => me(this, null, function* () {
|
|
907
|
+
if (!(!C || z[C] && z[C] > 0)) {
|
|
908
|
+
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${C}`);
|
|
909
|
+
try {
|
|
910
|
+
yield be(), yield ke(), e(38, z = Le(ye({}, z), {
|
|
911
|
+
[C]: 30
|
|
912
|
+
})), re(), e(12, se = !0), y(), we();
|
|
913
|
+
} catch (o) {
|
|
914
|
+
console.error("Error submitting channel:", o), e(6, N = !0), e(8, I = a("submissionError"));
|
|
915
|
+
} finally {
|
|
916
|
+
e(3, m = !1);
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
}), y = () => {
|
|
920
|
+
const o = new Date(A), g = new Date(X), h = /* @__PURE__ */ new Date(), P = g.getTime() - h.getTime();
|
|
921
|
+
Y = o.getTime() - P;
|
|
922
|
+
const B = Date.now(), fe = Math.max(0, Math.floor((Y - B) / 1e3));
|
|
923
|
+
e(5, S = fe);
|
|
924
|
+
}, we = () => {
|
|
925
|
+
j && clearInterval(j), j = setInterval(
|
|
926
|
+
() => {
|
|
927
|
+
const o = Date.now(), g = Math.max(0, Math.floor((Y - o) / 1e3));
|
|
928
|
+
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));
|
|
929
|
+
},
|
|
930
|
+
1e3
|
|
931
|
+
);
|
|
932
|
+
}, He = (o) => {
|
|
933
|
+
const g = Math.floor(o / 60), h = o % 60;
|
|
934
|
+
return `${g.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
|
|
935
|
+
}, ve = (o, g) => {
|
|
936
|
+
const h = [...b];
|
|
937
|
+
h[o] = g.toUpperCase(), e(2, b = h), h.join("") !== ce && e(13, ae = !1);
|
|
938
|
+
}, je = (o) => {
|
|
939
|
+
var P, B, fe;
|
|
940
|
+
o.preventDefault();
|
|
941
|
+
const h = (((B = (P = o.clipboardData) == null ? void 0 : P.getData("text")) == null ? void 0 : B.trim()) || "").slice(0, _.inputLength).split("");
|
|
942
|
+
e(2, b = [...h, ...Array(_.inputLength - h.length).fill("")]), (fe = q[h.length]) == null || fe.focus(), h.length === _.inputLength && _e();
|
|
943
|
+
}, Ce = (o, g) => {
|
|
944
|
+
const h = o.target, P = h.value;
|
|
945
|
+
if (/^[a-z0-9]$/i.test(P)) {
|
|
946
|
+
ve(g, P);
|
|
947
|
+
const B = q[g + 1];
|
|
948
|
+
B == null || B.focus();
|
|
949
|
+
}
|
|
950
|
+
h.value = "";
|
|
951
|
+
}, Ee = (o, g) => {
|
|
952
|
+
const h = o.key, P = o.ctrlKey || o.metaKey;
|
|
953
|
+
if (/^[a-z0-9]$/i.test(h)) {
|
|
954
|
+
if (P && h.toLowerCase() === "v")
|
|
955
|
+
return;
|
|
956
|
+
o.preventDefault(), ve(g, h);
|
|
957
|
+
const B = q[g + 1];
|
|
958
|
+
B == null || B.focus();
|
|
959
|
+
} else if (h === "Backspace") {
|
|
960
|
+
o.preventDefault(), b[g] !== "" && ve(g, "");
|
|
961
|
+
const B = q[g - 1];
|
|
962
|
+
B == null || B.focus();
|
|
963
|
+
} else
|
|
964
|
+
h === "Enter" && (o.preventDefault(), _e());
|
|
965
|
+
}, We = () => {
|
|
966
|
+
K == "stateful" && (be(), e(9, Q = !1));
|
|
967
|
+
const o = new CustomEvent("otpResendRequested");
|
|
968
|
+
window.dispatchEvent(o);
|
|
969
|
+
}, Fe = (o) => {
|
|
970
|
+
window.dispatchEvent(new CustomEvent(
|
|
971
|
+
"otpSubmitted",
|
|
972
|
+
{
|
|
973
|
+
detail: {
|
|
974
|
+
code: o,
|
|
975
|
+
maxAttempts: _.maxValidationAttempts,
|
|
976
|
+
validatedAttempts: _.numberOfValidateAttempts
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
));
|
|
980
|
+
}, Ne = (o) => me(this, null, function* () {
|
|
981
|
+
const g = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/validate`, v);
|
|
982
|
+
g.searchParams.append("input", o);
|
|
983
|
+
try {
|
|
984
|
+
const h = yield fetch(g.href, { method: "POST" });
|
|
985
|
+
if (h.status === 200) {
|
|
986
|
+
Ke();
|
|
987
|
+
return;
|
|
988
|
+
}
|
|
989
|
+
const P = yield h.json();
|
|
990
|
+
throw new Error(P.message);
|
|
991
|
+
} catch (h) {
|
|
992
|
+
if (yield ke(), h.message === ee.INTERNAL_SERVER_ERROR) {
|
|
993
|
+
if (_.numberOfValidateAttempts === _.maxValidationAttempts - 1) {
|
|
994
|
+
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
995
|
+
{
|
|
996
|
+
type: "WidgetNotification",
|
|
997
|
+
data: {
|
|
998
|
+
type: "error",
|
|
999
|
+
message: a("accountBlocked")
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
window.location.href
|
|
1003
|
+
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
1004
|
+
return;
|
|
1005
|
+
}
|
|
1006
|
+
e(6, N = !0), e(8, I = a("invalidOtp")), ke();
|
|
1007
|
+
return;
|
|
1008
|
+
}
|
|
1009
|
+
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"));
|
|
1010
|
+
} finally {
|
|
1011
|
+
e(3, m = !1);
|
|
1012
|
+
}
|
|
1013
|
+
}), Ke = () => {
|
|
1014
|
+
window.dispatchEvent(new CustomEvent(
|
|
1015
|
+
"otpSuccess",
|
|
1016
|
+
{
|
|
1017
|
+
detail: {
|
|
1018
|
+
message: "User successfully authenticated"
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
));
|
|
1022
|
+
}, Ue = () => {
|
|
1023
|
+
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
1024
|
+
}, _e = () => me(this, null, function* () {
|
|
1025
|
+
if (b.join("").length !== _.inputLength) {
|
|
1026
|
+
e(6, N = !0), e(8, I = a("invalidOtp"));
|
|
1027
|
+
return;
|
|
1028
|
+
}
|
|
1029
|
+
const o = b.join("");
|
|
1030
|
+
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));
|
|
1031
|
+
}), ke = () => me(this, null, function* () {
|
|
1032
|
+
if (v)
|
|
1033
|
+
try {
|
|
1034
|
+
e(3, m = !0);
|
|
1035
|
+
const o = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/config`, v), g = yield fetch(o.href), h = yield g.json();
|
|
1036
|
+
if (g.ok)
|
|
1037
|
+
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);
|
|
1038
|
+
else if (h && h.details === ee.MAX_ATTEMPTS_EXCEEDED)
|
|
1039
|
+
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
1040
|
+
else {
|
|
1041
|
+
const P = h && h.message || `Failed to load config. Status: ${g.status}`;
|
|
1042
|
+
throw new Error(P);
|
|
1043
|
+
}
|
|
1044
|
+
} catch (o) {
|
|
1045
|
+
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);
|
|
1046
|
+
}
|
|
1047
|
+
});
|
|
1048
|
+
dt(() => (window.addEventListener("stepUpAuthRequired", he, !1), window.addEventListener("closePopup", V, !1), () => {
|
|
1049
|
+
window.removeEventListener("stepUpAuthRequired", he), window.removeEventListener("closePopup", V, !1), j && clearInterval(j), F && clearInterval(F);
|
|
1050
|
+
}));
|
|
1051
|
+
const qe = () => R(pe.SMS), Xe = () => R(pe.EMAIL);
|
|
1052
|
+
function Ge(o, g) {
|
|
1053
|
+
ze[o ? "unshift" : "push"](() => {
|
|
1054
|
+
q[g] = o, e(14, q);
|
|
1055
|
+
});
|
|
1056
|
+
}
|
|
1057
|
+
const Ye = (o, g) => Ce(g, o), Ze = (o, g) => Ee(g, o);
|
|
1058
|
+
function Je(o) {
|
|
1059
|
+
ze[o ? "unshift" : "push"](() => {
|
|
1060
|
+
U = o, e(1, U);
|
|
1061
|
+
});
|
|
1062
|
+
}
|
|
1063
|
+
return n.$$set = (o) => {
|
|
1064
|
+
"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);
|
|
1065
|
+
}, n.$$.update = () => {
|
|
1066
|
+
n.$$.dirty[0] & /*customStylingContainer*/
|
|
1067
|
+
2 | n.$$.dirty[1] & /*clientstyling*/
|
|
1068
|
+
1 && d && U && gt(U, d), n.$$.dirty[0] & /*customStylingContainer*/
|
|
1069
|
+
2 | n.$$.dirty[1] & /*clientstylingurl*/
|
|
1070
|
+
2 && s && U && ht(U, s), n.$$.dirty[0] & /*customStylingContainer*/
|
|
1071
|
+
2 | n.$$.dirty[1] & /*mbsource*/
|
|
1072
|
+
4 && c && U && bt(U, `${c}.Style`, ge), n.$$.dirty[1] & /*lang*/
|
|
1073
|
+
8 && f && G(), n.$$.dirty[1] & /*lang, translationurl*/
|
|
1074
|
+
72 && f && T && W(), n.$$.dirty[0] & /*selectedChannel*/
|
|
1075
|
+
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
1076
|
+
128 && e(18, i = C && (!z[C] || z[C] === 0)), n.$$.dirty[0] & /*selectedChannel*/
|
|
1077
|
+
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
1078
|
+
128 && e(17, r = C && z[C] || 0);
|
|
1079
|
+
}, [
|
|
1080
|
+
C,
|
|
1081
|
+
U,
|
|
1082
|
+
b,
|
|
1083
|
+
m,
|
|
1084
|
+
_,
|
|
1085
|
+
S,
|
|
1086
|
+
N,
|
|
1087
|
+
H,
|
|
1088
|
+
I,
|
|
1089
|
+
Q,
|
|
1090
|
+
le,
|
|
1091
|
+
$,
|
|
1092
|
+
se,
|
|
1093
|
+
ae,
|
|
1094
|
+
q,
|
|
1095
|
+
de,
|
|
1096
|
+
ue,
|
|
1097
|
+
r,
|
|
1098
|
+
i,
|
|
1099
|
+
a,
|
|
1100
|
+
pe,
|
|
1101
|
+
R,
|
|
1102
|
+
u,
|
|
1103
|
+
He,
|
|
1104
|
+
je,
|
|
1105
|
+
Ce,
|
|
1106
|
+
Ee,
|
|
1107
|
+
We,
|
|
1108
|
+
Ue,
|
|
1109
|
+
_e,
|
|
1110
|
+
M,
|
|
1111
|
+
d,
|
|
1112
|
+
s,
|
|
1113
|
+
c,
|
|
1114
|
+
f,
|
|
1115
|
+
v,
|
|
1116
|
+
w,
|
|
1117
|
+
T,
|
|
1118
|
+
z,
|
|
1119
|
+
qe,
|
|
1120
|
+
Xe,
|
|
1121
|
+
Ge,
|
|
1122
|
+
Ye,
|
|
1123
|
+
Ze,
|
|
1124
|
+
Je
|
|
1125
|
+
];
|
|
1126
|
+
}
|
|
1127
|
+
class Dt extends ot {
|
|
1128
|
+
constructor(t) {
|
|
1129
|
+
super(), lt(
|
|
1130
|
+
this,
|
|
1131
|
+
t,
|
|
1132
|
+
Rt,
|
|
1133
|
+
It,
|
|
1134
|
+
st,
|
|
1135
|
+
{
|
|
1136
|
+
clientstyling: 31,
|
|
1137
|
+
clientstylingurl: 32,
|
|
1138
|
+
mbsource: 33,
|
|
1139
|
+
lang: 34,
|
|
1140
|
+
endpoint: 35,
|
|
1141
|
+
session: 36,
|
|
1142
|
+
translationurl: 37,
|
|
1143
|
+
templateid: 30
|
|
1144
|
+
},
|
|
1145
|
+
vt,
|
|
1146
|
+
[-1, -1, -1]
|
|
1147
|
+
);
|
|
1148
|
+
}
|
|
1149
|
+
get clientstyling() {
|
|
1150
|
+
return this.$$.ctx[31];
|
|
1151
|
+
}
|
|
1152
|
+
set clientstyling(t) {
|
|
1153
|
+
this.$$set({ clientstyling: t }), oe();
|
|
1154
|
+
}
|
|
1155
|
+
get clientstylingurl() {
|
|
1156
|
+
return this.$$.ctx[32];
|
|
1157
|
+
}
|
|
1158
|
+
set clientstylingurl(t) {
|
|
1159
|
+
this.$$set({ clientstylingurl: t }), oe();
|
|
1160
|
+
}
|
|
1161
|
+
get mbsource() {
|
|
1162
|
+
return this.$$.ctx[33];
|
|
1163
|
+
}
|
|
1164
|
+
set mbsource(t) {
|
|
1165
|
+
this.$$set({ mbsource: t }), oe();
|
|
1166
|
+
}
|
|
1167
|
+
get lang() {
|
|
1168
|
+
return this.$$.ctx[34];
|
|
1169
|
+
}
|
|
1170
|
+
set lang(t) {
|
|
1171
|
+
this.$$set({ lang: t }), oe();
|
|
1172
|
+
}
|
|
1173
|
+
get endpoint() {
|
|
1174
|
+
return this.$$.ctx[35];
|
|
1175
|
+
}
|
|
1176
|
+
set endpoint(t) {
|
|
1177
|
+
this.$$set({ endpoint: t }), oe();
|
|
1178
|
+
}
|
|
1179
|
+
get session() {
|
|
1180
|
+
return this.$$.ctx[36];
|
|
1181
|
+
}
|
|
1182
|
+
set session(t) {
|
|
1183
|
+
this.$$set({ session: t }), oe();
|
|
1184
|
+
}
|
|
1185
|
+
get translationurl() {
|
|
1186
|
+
return this.$$.ctx[37];
|
|
1187
|
+
}
|
|
1188
|
+
set translationurl(t) {
|
|
1189
|
+
this.$$set({ translationurl: t }), oe();
|
|
1190
|
+
}
|
|
1191
|
+
get templateid() {
|
|
1192
|
+
return this.$$.ctx[30];
|
|
1193
|
+
}
|
|
1194
|
+
set templateid(t) {
|
|
1195
|
+
this.$$set({ templateid: t }), oe();
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
ft(Dt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1199
|
+
export {
|
|
1200
|
+
Dt as default
|
|
1201
|
+
};
|