@everymatrix/cashier-page 1.87.26 → 1.87.102
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-DsekS1gS.js → CashierCarousel-BS_3salc.js} +1328 -1321
- package/components/CashierCarousel-BhLbwlL5.js +5736 -0
- package/components/CashierCarousel-Bwhda3Gl.js +5774 -0
- package/components/CashierCarousel-CfPrrhkY.cjs +23 -0
- package/components/{CashierCarousel-BJw_SNG2.js → CashierCarousel-CyAfjImL.js} +1172 -1166
- package/components/CashierCarousel-GM1WPyu3.cjs +23 -0
- package/components/CashierError-BN1XW0cs.cjs +1 -0
- package/components/{CashierError-B1WXlDdK.js → CashierError-CDBKwx0N.js} +212 -206
- package/components/{CashierError-40KPQU2s.js → CashierError-CV6Kq3fN.js} +212 -206
- package/components/CashierError-CXcO-Kju.js +415 -0
- package/components/CashierError-CXwvUOLy.js +415 -0
- package/components/CashierError-D4Au4WNB.cjs +1 -0
- package/components/{CashierHeader-BZvqRar_.js → CashierHeader-BgAqvq1Q.js} +74 -81
- package/components/CashierHeader-BhGRQhkm.cjs +1 -0
- package/components/CashierHeader-C_Mz7ISU.js +397 -0
- package/components/CashierHeader-CaV1gcjZ.js +397 -0
- package/components/CashierHeader-CmAjJv-w.cjs +1 -0
- package/components/{CashierHeader-BfpTyZmQ.js → CashierHeader-DRj1BUdj.js} +78 -85
- package/components/{CashierIframeRedirect-CyI4soMo.js → CashierIframeRedirect-7uZKKZOy.js} +68 -68
- package/components/CashierIframeRedirect-B76kjw0o.js +389 -0
- package/components/{CashierIframeRedirect-DBSuyK9E.cjs → CashierIframeRedirect-BU-0tKNo.cjs} +1 -1
- package/components/{CashierIframeRedirect-2CfxTUrh.js → CashierIframeRedirect-BkvkX6Ih.js} +68 -68
- package/components/CashierIframeRedirect-Ddt7NW02.cjs +1 -0
- package/components/CashierIframeRedirect-DmvuwOL2.js +389 -0
- package/components/{CashierMethodDetails-U6L33HpX.cjs → CashierMethodDetails-BEykktuA.cjs} +4 -4
- package/components/CashierMethodDetails-BX_W3rwH.js +9887 -0
- package/components/{CashierMethodDetails-CuQYMgbw.js → CashierMethodDetails-Bdko0TrB.js} +1574 -1574
- package/components/{CashierMethodDetails-DFXMp3df.js → CashierMethodDetails-C0EaNINa.js} +1611 -1611
- package/components/CashierMethodDetails-DmvyMFjk.cjs +85 -0
- package/components/CashierMethodDetails-i7grZPp4.js +9927 -0
- package/components/CashierMethodsList-B6tMxcnh.js +794 -0
- package/components/{CashierMethodsList-tRbJ56Bk.js → CashierMethodsList-CRWXDpa-.js} +263 -263
- package/components/{CashierMethodsList-CshlP6d7.js → CashierMethodsList-CVSYKCiY.js} +153 -153
- package/components/CashierMethodsList-DSq72RRw.js +809 -0
- package/components/CashierMethodsList-GOTxtR6r.cjs +1 -0
- package/components/CashierMethodsList-LHoZgwVR.cjs +1 -0
- package/components/{CashierModal-BCs-hvy-.js → CashierModal-B7N_nPHW.js} +162 -146
- package/components/CashierModal-C845c3D0.cjs +1 -0
- package/components/CashierModal-CTYxaPKG.js +366 -0
- package/components/{CashierModal-DdvNZLqY.cjs → CashierModal-Cd1uDEwu.cjs} +1 -1
- package/components/{CashierModal-Cyn1bRtX.js → CashierModal-KhxltwKt.js} +123 -139
- package/components/CashierModal-ndVMjksn.js +382 -0
- package/components/{CashierNotifications-CkRmBcgx.js → CashierNotifications-BmarDqdP.js} +34 -34
- package/components/{CashierNotifications-DfV8x-rA.js → CashierNotifications-Bp4KJnpm.js} +34 -34
- package/components/CashierNotifications-D4fUbROm.js +129 -0
- package/components/CashierNotifications-JNstA5Yb.js +129 -0
- package/components/{CashierNotifications-B93HkTiJ.cjs → CashierNotifications-bGhd7Jsw.cjs} +1 -1
- package/components/CashierNotifications-tfTPEiSk.cjs +1 -0
- package/components/CashierPage-4nTfbT_j.js +3994 -0
- package/components/{CashierPage--A8w0jWY.js → CashierPage-BSByd5RU.js} +79 -79
- package/components/CashierPage-Bd71Nhaq.js +4020 -0
- package/components/CashierPage-CHtYMgc0.cjs +1 -0
- package/components/{CashierPage-DJxPlCxY.js → CashierPage-CZ4TSJkx.js} +81 -81
- package/components/{CashierPage-kf1tVNZU.cjs → CashierPage-DfrmhWzm.cjs} +1 -1
- package/components/{CashierReceiptPage-CZbWQvvv.js → CashierReceiptPage-BD3aDt3T.js} +492 -492
- package/components/{CashierReceiptPage-Bp7jFvov.cjs → CashierReceiptPage-BQpEnTyU.cjs} +2 -2
- package/components/CashierReceiptPage-CnyLmUmL.js +1694 -0
- package/components/CashierReceiptPage-DV7Iz4wR.js +1690 -0
- package/components/{CashierReceiptPage-CofNGFj1.js → CashierReceiptPage-DgxlKvM2.js} +518 -518
- package/components/CashierReceiptPage-HRthn--H.cjs +28 -0
- package/components/CashierSessionExpirationModal-B98EEWed.js +1198 -0
- package/components/CashierSessionExpirationModal-CYcBByMT.cjs +2 -0
- package/components/CashierSessionExpirationModal-Ckhir3qN.cjs +2 -0
- package/components/{CashierSessionExpirationModal-Ckh0MnJn.js → CashierSessionExpirationModal-CvYI4jUg.js} +129 -128
- package/components/CashierSessionExpirationModal-D6FwiFE-.js +1198 -0
- package/components/{CashierSessionExpirationModal-CqqS70E7.js → CashierSessionExpirationModal-DM8-SPd3.js} +131 -130
- package/components/CashierSpinner-C0P8ZCtD.js +78 -0
- package/components/{CashierSpinner-BTDAq-Gk.js → CashierSpinner-CeX51xPH.js} +17 -17
- package/components/CashierSpinner-CikMZBzw.cjs +1 -0
- package/components/CashierSpinner-DJTUb5NI.js +78 -0
- package/components/{CashierSpinner-yhu6RHaO.cjs → CashierSpinner-ODmoTC6W.cjs} +1 -1
- package/components/{CashierSpinner-C8tFNM39.js → CashierSpinner-a2VW8q1r.js} +17 -17
- package/components/CashierStepUp-5um8gbUX.js +1068 -0
- package/components/{CashierStepUp-CHNRsm-i.js → CashierStepUp-Bk5fP7qd.js} +243 -243
- package/components/CashierStepUp-CjnvqYJo.cjs +1 -0
- package/components/CashierStepUp-CxawlCYf.cjs +1 -0
- package/components/CashierStepUp-CyO7gmgP.js +1107 -0
- package/components/{CashierStepUp-BTxHmTK2.js → CashierStepUp-DS-UsgrI.js} +294 -294
- package/components/CashierTransactionHistory-5JNtVHcj.js +1305 -0
- package/components/{CashierTransactionHistory-HclQq8wA.cjs → CashierTransactionHistory-Bwc0I09a.cjs} +1 -1
- package/components/CashierTransactionHistory-Cm3ikVPK.js +1305 -0
- package/components/CashierTransactionHistory-CmgO6bXN.cjs +1 -0
- package/components/{CashierTransactionHistory-DTAdYC2Y.js → CashierTransactionHistory-CoqckbJ2.js} +231 -231
- package/components/{CashierTransactionHistory-Bd7CEoaj.js → CashierTransactionHistory-DO6C0I1a.js} +420 -420
- package/components/{CashierVerifications-fPErTC9e.js → CashierVerifications-B8fkVYVD.js} +88 -88
- package/components/CashierVerifications-BmZYiJaN.js +578 -0
- package/components/{CashierVerifications-b9Eeag80.js → CashierVerifications-CuX4vrPf.js} +95 -95
- package/components/CashierVerifications-DkayuISY.cjs +1 -0
- package/components/CashierVerifications-hID6hjDs.js +582 -0
- package/components/{CashierVerifications--VdCm0A0.cjs → CashierVerifications-mSpdNrML.cjs} +1 -1
- package/components/{TxnStatusIcon-Dm5lj3fd.js → TxnStatusIcon-BDnNMhFD.js} +19 -19
- package/components/{TxnStatusIcon-DRLLqFXC.js → TxnStatusIcon-BZMSpoHv.js} +19 -19
- package/components/{TxnStatusIcon-C8lEFNJK.cjs → TxnStatusIcon-C8bPyggx.cjs} +1 -1
- package/components/TxnStatusIcon-HrmfQdAc.js +142 -0
- package/components/TxnStatusIcon-Le-TBKNh.cjs +1 -0
- package/components/TxnStatusIcon-VvYGYLio.js +142 -0
- package/components/{TxnTypeIcons-CFpm5fsz.cjs → TxnTypeIcons-Cc7Yt6gg.cjs} +1 -1
- package/components/{TxnTypeIcons-B32Qcanf.js → TxnTypeIcons-DZRNYWUy.js} +14 -14
- package/components/{TxnTypeIcons-Dwfdotxd.js → TxnTypeIcons-__im0AE_.js} +14 -14
- package/components/TxnTypeIcons-lKki7AUK.js +101 -0
- package/components/TxnTypeIcons-sZUo9qa8.cjs +1 -0
- package/components/TxnTypeIcons-zM86UKOx.js +101 -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/stencil/index-97d17652-DvplcHtm.js +558 -0
- package/stencil/index-97d17652-ILzgTtTR.cjs +1 -0
- package/stencil/index-97d17652-p-iQtjus.js +542 -0
- package/stencil/index-b2193545-Bvpy7mp9.js +503 -0
- package/stencil/index-b2193545-DxDmFccl.js +519 -0
- package/stencil/index-b2193545-P1qvDl70.cjs +1 -0
- package/stencil/{ui-image-CNaRr0ax.js → ui-image-BIr_PDb-.js} +1 -1
- package/stencil/{ui-image-IJc7Zz_R.cjs → ui-image-CEbrFHSD.cjs} +1 -1
- package/stencil/{ui-image-BsYHwNhO.js → ui-image-D69wsX4B.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-BKRtoUuG.js → ui-image-b7b48fe5-CBB2FKRZ.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-MC0x5ZQd.cjs → ui-image-b7b48fe5-DjCO-ZF4.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-HA45CrsG.js → ui-image-b7b48fe5-rCWcyktd.js} +1 -1
- package/stencil/{ui-image_2-Daq38JGa.js → ui-image_2-BESQEo1l.js} +2 -2
- package/stencil/{ui-image_2-CmVho0dS.js → ui-image_2-BfZmduAK.js} +2 -2
- package/stencil/{ui-image_2-CyqE6j_W.cjs → ui-image_2-ZFidgTXM.cjs} +1 -1
- package/stencil/{ui-skeleton-UxIIZ8UD.cjs → ui-skeleton-CTOStr1f.cjs} +1 -1
- package/stencil/{ui-skeleton-CQ-FgYMx.js → ui-skeleton-UELn0TdO.js} +2 -2
- package/stencil/{ui-skeleton-ed169f8f-BEwquWmd.cjs → ui-skeleton-ed169f8f-6tILWWI7.cjs} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-BMrkXoR5.js → ui-skeleton-ed169f8f-DU5yFWqG.js} +1 -1
- package/stencil/{ui-skeleton-ed169f8f-BNn31z1X.js → ui-skeleton-ed169f8f-DmzkEnLt.js} +1 -1
- package/stencil/{ui-skeleton-B9YTz-WD.js → ui-skeleton-i8axfHXy.js} +2 -2
- package/components/CashierCarousel-Uqj8lOn9.cjs +0 -23
- package/components/CashierError-BOmVvy3N.cjs +0 -1
- package/components/CashierHeader-B7XYr24D.cjs +0 -1
- package/components/CashierMethodsList-DueBSlwx.cjs +0 -1
- package/components/CashierSessionExpirationModal-kLS8veZV.cjs +0 -2
- package/components/CashierStepUp-FR5Znqdo.cjs +0 -1
- package/stencil/index-97d17652-B6BYeRne.js +0 -542
- package/stencil/index-97d17652-BOr4KAqq.js +0 -558
- package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
- package/stencil/index-b2193545-B5Q7rnAU.cjs +0 -1
- package/stencil/index-b2193545-CF_fVoFe.js +0 -519
- package/stencil/index-b2193545-DfttkCgg.js +0 -503
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Ze = 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 ? Ze(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, ve = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
|
|
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
11
|
return n;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, Le = (n, t) => $e(n, et(t));
|
|
13
|
+
var me = (n, t, e) => new Promise((o, i) => {
|
|
14
14
|
var a = (c) => {
|
|
15
15
|
try {
|
|
16
16
|
s(e.next(c));
|
|
17
17
|
} catch (f) {
|
|
18
18
|
i(f);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, p = (c) => {
|
|
21
21
|
try {
|
|
22
22
|
s(e.throw(c));
|
|
23
23
|
} catch (f) {
|
|
24
24
|
i(f);
|
|
25
25
|
}
|
|
26
|
-
}, s = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(a,
|
|
26
|
+
}, s = (c) => c.done ? o(c.value) : Promise.resolve(c.value).then(a, p);
|
|
27
27
|
s((e = e.apply(n, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { a as
|
|
30
|
-
function
|
|
31
|
-
|
|
29
|
+
import { a as ot, $ as it, S as lt, b as rt, f as le, c as st, s as at, d as ct, g as v, j as r, k as O, G as ke, p as S, q as pt, r as ut, v as dt, A as ft, B as Ae, C as mt, D as ht, h as x, R as J, x as L, T as Q, l as d, z as te, y as D, a1 as Be, w as gt, Y as ze, a3 as bt } from "./CashierCarousel-BS_3salc.js";
|
|
30
|
+
function Re(n, t) {
|
|
31
|
+
ot(n, t);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
|
|
33
|
+
function wt(n) {
|
|
34
|
+
it.set(n);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
36
|
+
const Ie = {
|
|
37
37
|
en: {
|
|
38
38
|
otpTitle: "Code verification is required",
|
|
39
39
|
popupMessage: "Please enter the security code received on your SMS/email address to perform the update.",
|
|
@@ -104,66 +104,66 @@ const Re = {
|
|
|
104
104
|
waitSeconds: "Veuillez patienter avant de renvoyer le code :"
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
function
|
|
108
|
-
|
|
107
|
+
function _t(n) {
|
|
108
|
+
ct(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
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Pe(n, t, e) {
|
|
111
111
|
const o = n.slice();
|
|
112
112
|
return o[69] = t[e], o[70] = t, o[71] = e, o;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
let t, e, o, i, a,
|
|
114
|
+
function yt(n) {
|
|
115
|
+
let t, e, o, i, a, p, s, c, f, _, w, T, M, b, m, y, C, R = (
|
|
116
116
|
/*$_*/
|
|
117
117
|
n[19]("channelSMS") + ""
|
|
118
|
-
),
|
|
118
|
+
), K, q, V, I, ne, F, Z, re, $, E, A, W, se, ae, ce = (
|
|
119
119
|
/*$_*/
|
|
120
120
|
n[19]("channelEmail") + ""
|
|
121
|
-
), U,
|
|
122
|
-
function
|
|
121
|
+
), U, he, X, H, Y, pe, ue;
|
|
122
|
+
function de(u, k) {
|
|
123
123
|
return (
|
|
124
124
|
/*showResendOtp*/
|
|
125
|
-
|
|
125
|
+
u[9] ? Et : (
|
|
126
126
|
/*showOtpInput*/
|
|
127
|
-
|
|
127
|
+
u[12] ? kt : Ct
|
|
128
128
|
)
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
|
-
let
|
|
131
|
+
let ee = de(n), G = ee(n), N = (
|
|
132
132
|
/*selectedChannel*/
|
|
133
|
-
n[0] &&
|
|
133
|
+
n[0] && De(n)
|
|
134
134
|
);
|
|
135
|
-
function ge(
|
|
135
|
+
function ge(u, k) {
|
|
136
136
|
if (
|
|
137
137
|
/*isLoading*/
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
u[3] && /*showOtpInput*/
|
|
139
|
+
u[12]
|
|
140
140
|
)
|
|
141
|
-
return
|
|
141
|
+
return At;
|
|
142
142
|
if (
|
|
143
143
|
/*showOtpInput*/
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
u[12] && /*config*/
|
|
145
|
+
u[4]
|
|
146
146
|
)
|
|
147
|
-
return
|
|
147
|
+
return Lt;
|
|
148
148
|
}
|
|
149
|
-
let
|
|
150
|
-
function be(
|
|
149
|
+
let oe = ge(n), j = oe && oe(n);
|
|
150
|
+
function be(u, k) {
|
|
151
151
|
if (
|
|
152
152
|
/*showResendOtp*/
|
|
153
|
-
|
|
153
|
+
u[9]
|
|
154
154
|
)
|
|
155
|
-
return
|
|
155
|
+
return Rt;
|
|
156
156
|
if (
|
|
157
157
|
/*showOtpInput*/
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
u[12] && /*config*/
|
|
159
|
+
u[4]
|
|
160
160
|
)
|
|
161
|
-
return
|
|
161
|
+
return zt;
|
|
162
162
|
}
|
|
163
|
-
let
|
|
163
|
+
let ie = be(n), P = ie && ie(n);
|
|
164
164
|
return {
|
|
165
165
|
c() {
|
|
166
|
-
t = v("div"),
|
|
166
|
+
t = v("div"), G.c(), e = x(), o = v("div"), i = v("label"), a = v("div"), p = x(), s = v("input"), f = x(), _ = v("div"), w = J("svg"), T = J("path"), M = J("circle"), b = J("circle"), m = J("circle"), y = x(), C = v("span"), K = L(R), q = x(), V = v("label"), I = v("div"), ne = x(), F = v("input"), re = x(), $ = v("div"), E = J("svg"), A = J("rect"), W = J("path"), se = x(), ae = v("span"), U = L(ce), he = x(), N && N.c(), X = x(), j && j.c(), H = x(), Y = v("div"), P && P.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), Q(
|
|
167
167
|
a,
|
|
168
168
|
"checked",
|
|
169
169
|
/*selectedChannel*/
|
|
@@ -172,22 +172,22 @@ function _t(n) {
|
|
|
172
172
|
), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
|
|
173
173
|
n[20].SMS, s.checked = c = /*selectedChannel*/
|
|
174
174
|
n[0] === /*channels*/
|
|
175
|
-
n[20].SMS, r(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), r(M, "cx", "9"), r(M, "cy", "11"), r(M, "r", "0.5"), r(M, "fill", "currentColor"), r(b, "cx", "12"), r(b, "cy", "11"), r(b, "r", "0.5"), r(b, "fill", "currentColor"), r(m, "cx", "15"), r(m, "cy", "11"), r(m, "r", "0.5"), r(m, "fill", "currentColor"), r(w, "xmlns", "http://www.w3.org/2000/svg"), r(w, "width", "24"), r(w, "height", "24"), r(w, "viewBox", "0 0 24 24"), r(w, "fill", "none"), r(w, "stroke", "currentColor"), r(w, "stroke-width", "2"), r(w, "stroke-linecap", "round"), r(w, "stroke-linejoin", "round"), r(_, "class", "ChannelContent"), r(i, "class", "ChannelCheckbox"),
|
|
175
|
+
n[20].SMS, r(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), r(M, "cx", "9"), r(M, "cy", "11"), r(M, "r", "0.5"), r(M, "fill", "currentColor"), r(b, "cx", "12"), r(b, "cy", "11"), r(b, "r", "0.5"), r(b, "fill", "currentColor"), r(m, "cx", "15"), r(m, "cy", "11"), r(m, "r", "0.5"), r(m, "fill", "currentColor"), r(w, "xmlns", "http://www.w3.org/2000/svg"), r(w, "width", "24"), r(w, "height", "24"), r(w, "viewBox", "0 0 24 24"), r(w, "fill", "none"), r(w, "stroke", "currentColor"), r(w, "stroke-width", "2"), r(w, "stroke-linecap", "round"), r(w, "stroke-linejoin", "round"), r(_, "class", "ChannelContent"), r(i, "class", "ChannelCheckbox"), Q(
|
|
176
176
|
i,
|
|
177
177
|
"selected",
|
|
178
178
|
/*selectedChannel*/
|
|
179
179
|
n[0] === /*channels*/
|
|
180
180
|
n[20].SMS
|
|
181
|
-
), r(I, "class", "RadioIndicator"),
|
|
181
|
+
), r(I, "class", "RadioIndicator"), Q(
|
|
182
182
|
I,
|
|
183
183
|
"checked",
|
|
184
184
|
/*selectedChannel*/
|
|
185
185
|
n[0] === /*channels*/
|
|
186
186
|
n[20].EMAIL
|
|
187
|
-
), r(
|
|
188
|
-
n[20].EMAIL,
|
|
187
|
+
), r(F, "type", "radio"), r(F, "name", "channel"), F.value = /*channels*/
|
|
188
|
+
n[20].EMAIL, F.checked = Z = /*selectedChannel*/
|
|
189
189
|
n[0] === /*channels*/
|
|
190
|
-
n[20].EMAIL, r(A, "x", "2"), r(A, "y", "4"), r(A, "width", "20"), r(A, "height", "16"), r(A, "rx", "2"), r(W, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r(
|
|
190
|
+
n[20].EMAIL, r(A, "x", "2"), r(A, "y", "4"), r(A, "width", "20"), r(A, "height", "16"), r(A, "rx", "2"), r(W, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r($, "class", "ChannelContent"), r(V, "class", "ChannelCheckbox"), Q(
|
|
191
191
|
V,
|
|
192
192
|
"selected",
|
|
193
193
|
/*selectedChannel*/
|
|
@@ -195,71 +195,71 @@ function _t(n) {
|
|
|
195
195
|
n[20].EMAIL
|
|
196
196
|
), r(o, "class", "ChannelSelection"), r(Y, "class", "OtpActionButtons");
|
|
197
197
|
},
|
|
198
|
-
m(
|
|
199
|
-
|
|
200
|
-
|
|
198
|
+
m(u, k) {
|
|
199
|
+
O(u, t, k), G.m(t, null), O(u, e, k), O(u, o, k), d(o, i), d(i, a), d(i, p), d(i, s), d(i, f), d(i, _), d(_, w), d(w, T), d(w, M), d(w, b), d(w, m), d(_, y), d(_, C), d(C, K), d(o, q), d(o, V), d(V, I), d(V, ne), d(V, F), d(V, re), d(V, $), d($, E), d(E, A), d(E, W), d($, se), d($, ae), d(ae, U), O(u, he, k), N && N.m(u, k), O(u, X, k), j && j.m(u, k), O(u, H, k), O(u, Y, k), P && P.m(Y, null), pe || (ue = [
|
|
200
|
+
te(
|
|
201
201
|
s,
|
|
202
202
|
"change",
|
|
203
203
|
/*change_handler*/
|
|
204
204
|
n[39]
|
|
205
205
|
),
|
|
206
|
-
|
|
207
|
-
|
|
206
|
+
te(
|
|
207
|
+
F,
|
|
208
208
|
"change",
|
|
209
209
|
/*change_handler_1*/
|
|
210
210
|
n[40]
|
|
211
211
|
)
|
|
212
212
|
], pe = !0);
|
|
213
213
|
},
|
|
214
|
-
p(
|
|
215
|
-
|
|
216
|
-
1048577 &&
|
|
214
|
+
p(u, k) {
|
|
215
|
+
ee === (ee = de(u)) && G ? G.p(u, k) : (G.d(1), G = ee(u), G && (G.c(), G.m(t, null))), k[0] & /*selectedChannel, channels*/
|
|
216
|
+
1048577 && Q(
|
|
217
217
|
a,
|
|
218
218
|
"checked",
|
|
219
219
|
/*selectedChannel*/
|
|
220
|
-
|
|
221
|
-
|
|
220
|
+
u[0] === /*channels*/
|
|
221
|
+
u[20].SMS
|
|
222
222
|
), k[0] & /*selectedChannel*/
|
|
223
223
|
1 && c !== (c = /*selectedChannel*/
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
u[0] === /*channels*/
|
|
225
|
+
u[20].SMS) && (s.checked = c), k[0] & /*$_*/
|
|
226
226
|
524288 && R !== (R = /*$_*/
|
|
227
|
-
|
|
228
|
-
1048577 &&
|
|
227
|
+
u[19]("channelSMS") + "") && D(K, R), k[0] & /*selectedChannel, channels*/
|
|
228
|
+
1048577 && Q(
|
|
229
229
|
i,
|
|
230
230
|
"selected",
|
|
231
231
|
/*selectedChannel*/
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
u[0] === /*channels*/
|
|
233
|
+
u[20].SMS
|
|
234
234
|
), k[0] & /*selectedChannel, channels*/
|
|
235
|
-
1048577 &&
|
|
235
|
+
1048577 && Q(
|
|
236
236
|
I,
|
|
237
237
|
"checked",
|
|
238
238
|
/*selectedChannel*/
|
|
239
|
-
|
|
240
|
-
|
|
239
|
+
u[0] === /*channels*/
|
|
240
|
+
u[20].EMAIL
|
|
241
241
|
), k[0] & /*selectedChannel*/
|
|
242
|
-
1 &&
|
|
243
|
-
|
|
244
|
-
|
|
242
|
+
1 && Z !== (Z = /*selectedChannel*/
|
|
243
|
+
u[0] === /*channels*/
|
|
244
|
+
u[20].EMAIL) && (F.checked = Z), k[0] & /*$_*/
|
|
245
245
|
524288 && ce !== (ce = /*$_*/
|
|
246
|
-
|
|
247
|
-
1048577 &&
|
|
246
|
+
u[19]("channelEmail") + "") && D(U, ce), k[0] & /*selectedChannel, channels*/
|
|
247
|
+
1048577 && Q(
|
|
248
248
|
V,
|
|
249
249
|
"selected",
|
|
250
250
|
/*selectedChannel*/
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
u[0] === /*channels*/
|
|
252
|
+
u[20].EMAIL
|
|
253
253
|
), /*selectedChannel*/
|
|
254
|
-
|
|
254
|
+
u[0] ? N ? N.p(u, k) : (N = De(u), N.c(), N.m(X.parentNode, X)) : N && (N.d(1), N = null), oe === (oe = ge(u)) && j ? j.p(u, k) : (j && j.d(1), j = oe && oe(u), j && (j.c(), j.m(H.parentNode, H))), ie === (ie = be(u)) && P ? P.p(u, k) : (P && P.d(1), P = ie && ie(u), P && (P.c(), P.m(Y, null)));
|
|
255
255
|
},
|
|
256
|
-
d(
|
|
257
|
-
|
|
256
|
+
d(u) {
|
|
257
|
+
u && (S(t), S(e), S(o), S(he), S(X), S(H), S(Y)), G.d(), N && N.d(u), j && j.d(u), P && P.d(), pe = !1, Be(ue);
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
|
-
function
|
|
262
|
-
let t, e, o, i, a,
|
|
261
|
+
function vt(n) {
|
|
262
|
+
let t, e, o, i, a, p, s = (
|
|
263
263
|
/*$_*/
|
|
264
264
|
n[19]("errorHeader") + ""
|
|
265
265
|
), c, f, _, w, T, M, b = (
|
|
@@ -268,68 +268,68 @@ function yt(n) {
|
|
|
268
268
|
), m, y, C;
|
|
269
269
|
return {
|
|
270
270
|
c() {
|
|
271
|
-
t = v("div"), e = v("div"), o =
|
|
271
|
+
t = v("div"), e = v("div"), o = J("svg"), i = J("path"), a = x(), p = v("h2"), c = L(s), f = x(), _ = v("p"), w = L(
|
|
272
272
|
/*errorMessage*/
|
|
273
273
|
n[8]
|
|
274
|
-
), T =
|
|
274
|
+
), T = x(), M = v("button"), m = L(b), r(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), r(o, "xmlns", "http://www.w3.org/2000/svg"), r(o, "viewBox", "0 0 512 512"), r(e, "class", "OtpErrorHeader"), r(M, "class", "OtpButton error"), r(t, "class", "OtpError");
|
|
275
275
|
},
|
|
276
|
-
m(R,
|
|
277
|
-
|
|
276
|
+
m(R, K) {
|
|
277
|
+
O(R, t, K), d(t, e), d(e, o), d(o, i), d(e, a), d(e, p), d(p, c), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = te(
|
|
278
278
|
M,
|
|
279
279
|
"click",
|
|
280
280
|
/*manualClosePopup*/
|
|
281
281
|
n[28]
|
|
282
282
|
), y = !0);
|
|
283
283
|
},
|
|
284
|
-
p(R,
|
|
285
|
-
|
|
284
|
+
p(R, K) {
|
|
285
|
+
K[0] & /*$_*/
|
|
286
286
|
524288 && s !== (s = /*$_*/
|
|
287
|
-
R[19]("errorHeader") + "") &&
|
|
288
|
-
256 &&
|
|
287
|
+
R[19]("errorHeader") + "") && D(c, s), K[0] & /*errorMessage*/
|
|
288
|
+
256 && D(
|
|
289
289
|
w,
|
|
290
290
|
/*errorMessage*/
|
|
291
291
|
R[8]
|
|
292
|
-
),
|
|
292
|
+
), K[0] & /*$_*/
|
|
293
293
|
524288 && b !== (b = /*$_*/
|
|
294
|
-
R[19]("close") + "") &&
|
|
294
|
+
R[19]("close") + "") && D(m, b);
|
|
295
295
|
},
|
|
296
296
|
d(R) {
|
|
297
|
-
R &&
|
|
297
|
+
R && S(t), y = !1, C();
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function kt(n) {
|
|
302
302
|
let t, e, o, i;
|
|
303
303
|
function a(f, _) {
|
|
304
304
|
return (
|
|
305
305
|
/*isLastWarning*/
|
|
306
|
-
f[10] ?
|
|
306
|
+
f[10] ? St : Ot
|
|
307
307
|
);
|
|
308
308
|
}
|
|
309
|
-
let
|
|
309
|
+
let p = a(n), s = p(n), c = (
|
|
310
310
|
/*hasErrors*/
|
|
311
|
-
n[6] &&
|
|
311
|
+
n[6] && xe(n)
|
|
312
312
|
);
|
|
313
313
|
return {
|
|
314
314
|
c() {
|
|
315
|
-
t = v("p"), s.c(), o =
|
|
315
|
+
t = v("p"), s.c(), o = x(), c && c.c(), i = gt(), r(t, "class", e = /*isLastWarning*/
|
|
316
316
|
n[10] ? "LastWarningMessage" : "");
|
|
317
317
|
},
|
|
318
318
|
m(f, _) {
|
|
319
|
-
|
|
319
|
+
O(f, t, _), s.m(t, null), O(f, o, _), c && c.m(f, _), O(f, i, _);
|
|
320
320
|
},
|
|
321
321
|
p(f, _) {
|
|
322
|
-
|
|
322
|
+
p === (p = a(f)) && s ? s.p(f, _) : (s.d(1), s = p(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
|
|
323
323
|
1024 && e !== (e = /*isLastWarning*/
|
|
324
324
|
f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
|
|
325
|
-
f[6] ? c ? c.p(f, _) : (c =
|
|
325
|
+
f[6] ? c ? c.p(f, _) : (c = xe(f), c.c(), c.m(i.parentNode, i)) : c && (c.d(1), c = null);
|
|
326
326
|
},
|
|
327
327
|
d(f) {
|
|
328
|
-
f && (
|
|
328
|
+
f && (S(t), S(o), S(i)), s.d(), c && c.d(f);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Ct(n) {
|
|
333
333
|
let t, e = (
|
|
334
334
|
/*$_*/
|
|
335
335
|
(n[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
@@ -339,19 +339,19 @@ function kt(n) {
|
|
|
339
339
|
t = v("p"), o = L(e);
|
|
340
340
|
},
|
|
341
341
|
m(i, a) {
|
|
342
|
-
|
|
342
|
+
O(i, t, a), d(t, o);
|
|
343
343
|
},
|
|
344
344
|
p(i, a) {
|
|
345
345
|
a[0] & /*$_*/
|
|
346
346
|
524288 && e !== (e = /*$_*/
|
|
347
|
-
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") &&
|
|
347
|
+
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && D(o, e);
|
|
348
348
|
},
|
|
349
349
|
d(i) {
|
|
350
|
-
i &&
|
|
350
|
+
i && S(t);
|
|
351
351
|
}
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Et(n) {
|
|
355
355
|
let t, e = (
|
|
356
356
|
/*$_*/
|
|
357
357
|
n[19]("otpExpiredMessage") + ""
|
|
@@ -361,19 +361,19 @@ function Ct(n) {
|
|
|
361
361
|
t = v("p"), o = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
|
|
362
362
|
},
|
|
363
363
|
m(i, a) {
|
|
364
|
-
|
|
364
|
+
O(i, t, a), d(t, o);
|
|
365
365
|
},
|
|
366
366
|
p(i, a) {
|
|
367
367
|
a[0] & /*$_*/
|
|
368
368
|
524288 && e !== (e = /*$_*/
|
|
369
|
-
i[19]("otpExpiredMessage") + "") &&
|
|
369
|
+
i[19]("otpExpiredMessage") + "") && D(o, e);
|
|
370
370
|
},
|
|
371
371
|
d(i) {
|
|
372
|
-
i &&
|
|
372
|
+
i && S(t);
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Ot(n) {
|
|
377
377
|
let t = (
|
|
378
378
|
/*$_*/
|
|
379
379
|
n[19]("popupMessage") + ""
|
|
@@ -383,19 +383,19 @@ function Et(n) {
|
|
|
383
383
|
e = L(t);
|
|
384
384
|
},
|
|
385
385
|
m(o, i) {
|
|
386
|
-
|
|
386
|
+
O(o, e, i);
|
|
387
387
|
},
|
|
388
388
|
p(o, i) {
|
|
389
389
|
i[0] & /*$_*/
|
|
390
390
|
524288 && t !== (t = /*$_*/
|
|
391
|
-
o[19]("popupMessage") + "") &&
|
|
391
|
+
o[19]("popupMessage") + "") && D(e, t);
|
|
392
392
|
},
|
|
393
393
|
d(o) {
|
|
394
|
-
o &&
|
|
394
|
+
o && S(e);
|
|
395
395
|
}
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function St(n) {
|
|
399
399
|
let t = (
|
|
400
400
|
/*$_*/
|
|
401
401
|
n[19]("popupMessageLastWarning") + ""
|
|
@@ -405,19 +405,19 @@ function Ot(n) {
|
|
|
405
405
|
e = L(t);
|
|
406
406
|
},
|
|
407
407
|
m(o, i) {
|
|
408
|
-
|
|
408
|
+
O(o, e, i);
|
|
409
409
|
},
|
|
410
410
|
p(o, i) {
|
|
411
411
|
i[0] & /*$_*/
|
|
412
412
|
524288 && t !== (t = /*$_*/
|
|
413
|
-
o[19]("popupMessageLastWarning") + "") &&
|
|
413
|
+
o[19]("popupMessageLastWarning") + "") && D(e, t);
|
|
414
414
|
},
|
|
415
415
|
d(o) {
|
|
416
|
-
o &&
|
|
416
|
+
o && S(e);
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function xe(n) {
|
|
421
421
|
let t, e;
|
|
422
422
|
return {
|
|
423
423
|
c() {
|
|
@@ -427,39 +427,39 @@ function Pe(n) {
|
|
|
427
427
|
), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
|
|
428
428
|
},
|
|
429
429
|
m(o, i) {
|
|
430
|
-
|
|
430
|
+
O(o, t, i), d(t, e);
|
|
431
431
|
},
|
|
432
432
|
p(o, i) {
|
|
433
433
|
i[0] & /*errorMessage*/
|
|
434
|
-
256 &&
|
|
434
|
+
256 && D(
|
|
435
435
|
e,
|
|
436
436
|
/*errorMessage*/
|
|
437
437
|
o[8]
|
|
438
438
|
);
|
|
439
439
|
},
|
|
440
440
|
d(o) {
|
|
441
|
-
o &&
|
|
441
|
+
o && S(t);
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
}
|
|
445
|
-
function
|
|
445
|
+
function De(n) {
|
|
446
446
|
let t, e, o, i;
|
|
447
447
|
function a(c, f) {
|
|
448
448
|
return (
|
|
449
449
|
/*currentChannelTimer*/
|
|
450
|
-
c[17] > 0 ?
|
|
450
|
+
c[17] > 0 ? Tt : Mt
|
|
451
451
|
);
|
|
452
452
|
}
|
|
453
|
-
let
|
|
453
|
+
let p = a(n), s = p(n);
|
|
454
454
|
return {
|
|
455
455
|
c() {
|
|
456
456
|
t = v("button"), s.c(), r(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
|
|
457
|
-
n[18],
|
|
457
|
+
n[18], Q(t, "disabled", !/*canSubmitChannel*/
|
|
458
458
|
n[18] || /*waitingForConfig*/
|
|
459
459
|
n[16]);
|
|
460
460
|
},
|
|
461
461
|
m(c, f) {
|
|
462
|
-
|
|
462
|
+
O(c, t, f), s.m(t, null), o || (i = te(
|
|
463
463
|
t,
|
|
464
464
|
"click",
|
|
465
465
|
/*handleChannelSubmit*/
|
|
@@ -467,19 +467,19 @@ function xe(n) {
|
|
|
467
467
|
), o = !0);
|
|
468
468
|
},
|
|
469
469
|
p(c, f) {
|
|
470
|
-
|
|
470
|
+
p === (p = a(c)) && s ? s.p(c, f) : (s.d(1), s = p(c), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
|
|
471
471
|
262144 && e !== (e = !/*canSubmitChannel*/
|
|
472
472
|
c[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
|
|
473
|
-
327680 &&
|
|
473
|
+
327680 && Q(t, "disabled", !/*canSubmitChannel*/
|
|
474
474
|
c[18] || /*waitingForConfig*/
|
|
475
475
|
c[16]);
|
|
476
476
|
},
|
|
477
477
|
d(c) {
|
|
478
|
-
c &&
|
|
478
|
+
c && S(t), s.d(), o = !1, i();
|
|
479
479
|
}
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Mt(n) {
|
|
483
483
|
let t = (
|
|
484
484
|
/*$_*/
|
|
485
485
|
n[19]("sendCode") + ""
|
|
@@ -489,19 +489,19 @@ function St(n) {
|
|
|
489
489
|
e = L(t);
|
|
490
490
|
},
|
|
491
491
|
m(o, i) {
|
|
492
|
-
|
|
492
|
+
O(o, e, i);
|
|
493
493
|
},
|
|
494
494
|
p(o, i) {
|
|
495
495
|
i[0] & /*$_*/
|
|
496
496
|
524288 && t !== (t = /*$_*/
|
|
497
|
-
o[19]("sendCode") + "") &&
|
|
497
|
+
o[19]("sendCode") + "") && D(e, t);
|
|
498
498
|
},
|
|
499
499
|
d(o) {
|
|
500
|
-
o &&
|
|
500
|
+
o && S(e);
|
|
501
501
|
}
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function Tt(n) {
|
|
505
505
|
let t = (
|
|
506
506
|
/*$_*/
|
|
507
507
|
n[19]("waitSeconds") + ""
|
|
@@ -513,29 +513,29 @@ function Mt(n) {
|
|
|
513
513
|
n[17]
|
|
514
514
|
), a = L("s)");
|
|
515
515
|
},
|
|
516
|
-
m(
|
|
517
|
-
|
|
516
|
+
m(p, s) {
|
|
517
|
+
O(p, e, s), O(p, o, s), O(p, i, s), O(p, a, s);
|
|
518
518
|
},
|
|
519
|
-
p(
|
|
519
|
+
p(p, s) {
|
|
520
520
|
s[0] & /*$_*/
|
|
521
521
|
524288 && t !== (t = /*$_*/
|
|
522
|
-
|
|
523
|
-
131072 &&
|
|
522
|
+
p[19]("waitSeconds") + "") && D(e, t), s[0] & /*currentChannelTimer*/
|
|
523
|
+
131072 && D(
|
|
524
524
|
i,
|
|
525
525
|
/*currentChannelTimer*/
|
|
526
|
-
|
|
526
|
+
p[17]
|
|
527
527
|
);
|
|
528
528
|
},
|
|
529
|
-
d(
|
|
530
|
-
|
|
529
|
+
d(p) {
|
|
530
|
+
p && (S(e), S(o), S(i), S(a));
|
|
531
531
|
}
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function Lt(n) {
|
|
535
535
|
let t, e, o = (
|
|
536
536
|
/*$_*/
|
|
537
537
|
n[19]("timeRemaining") + ""
|
|
538
|
-
), i, a,
|
|
538
|
+
), i, a, p = (
|
|
539
539
|
/*formatTime*/
|
|
540
540
|
n[23](
|
|
541
541
|
/*timeLeft*/
|
|
@@ -544,44 +544,44 @@ function Tt(n) {
|
|
|
544
544
|
), s, c, f = (
|
|
545
545
|
/*$_*/
|
|
546
546
|
n[19]("minutes") + ""
|
|
547
|
-
), _, w, T, M =
|
|
547
|
+
), _, w, T, M = ze(
|
|
548
548
|
/*otp*/
|
|
549
549
|
n[2]
|
|
550
550
|
), b = [];
|
|
551
551
|
for (let m = 0; m < M.length; m += 1)
|
|
552
|
-
b[m] =
|
|
552
|
+
b[m] = je(Pe(n, M, m));
|
|
553
553
|
return {
|
|
554
554
|
c() {
|
|
555
|
-
t = v("div"), e = v("div"), i = L(o), a =
|
|
555
|
+
t = v("div"), e = v("div"), i = L(o), a = x(), s = L(p), c = x(), _ = L(f), w = x(), T = v("div");
|
|
556
556
|
for (let m = 0; m < b.length; m += 1)
|
|
557
557
|
b[m].c();
|
|
558
558
|
r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
|
|
559
559
|
},
|
|
560
560
|
m(m, y) {
|
|
561
|
-
|
|
561
|
+
O(m, t, y), d(t, e), d(e, i), d(e, a), d(e, s), d(e, c), d(e, _), d(t, w), d(t, T);
|
|
562
562
|
for (let C = 0; C < b.length; C += 1)
|
|
563
563
|
b[C] && b[C].m(T, null);
|
|
564
564
|
},
|
|
565
565
|
p(m, y) {
|
|
566
566
|
if (y[0] & /*$_*/
|
|
567
567
|
524288 && o !== (o = /*$_*/
|
|
568
|
-
m[19]("timeRemaining") + "") &&
|
|
569
|
-
32 &&
|
|
568
|
+
m[19]("timeRemaining") + "") && D(i, o), y[0] & /*timeLeft*/
|
|
569
|
+
32 && p !== (p = /*formatTime*/
|
|
570
570
|
m[23](
|
|
571
571
|
/*timeLeft*/
|
|
572
572
|
m[5]
|
|
573
|
-
) + "") &&
|
|
573
|
+
) + "") && D(s, p), y[0] & /*$_*/
|
|
574
574
|
524288 && f !== (f = /*$_*/
|
|
575
|
-
m[19]("minutes") + "") &&
|
|
575
|
+
m[19]("minutes") + "") && D(_, f), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
576
576
|
117458964) {
|
|
577
|
-
M =
|
|
577
|
+
M = ze(
|
|
578
578
|
/*otp*/
|
|
579
579
|
m[2]
|
|
580
580
|
);
|
|
581
581
|
let C;
|
|
582
582
|
for (C = 0; C < M.length; C += 1) {
|
|
583
|
-
const R =
|
|
584
|
-
b[C] ? b[C].p(R, y) : (b[C] =
|
|
583
|
+
const R = Pe(m, M, C);
|
|
584
|
+
b[C] ? b[C].p(R, y) : (b[C] = je(R), b[C].c(), b[C].m(T, null));
|
|
585
585
|
}
|
|
586
586
|
for (; C < b.length; C += 1)
|
|
587
587
|
b[C].d(1);
|
|
@@ -589,30 +589,30 @@ function Tt(n) {
|
|
|
589
589
|
}
|
|
590
590
|
},
|
|
591
591
|
d(m) {
|
|
592
|
-
m &&
|
|
592
|
+
m && S(t), bt(b, m);
|
|
593
593
|
}
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function At(n) {
|
|
597
597
|
let t;
|
|
598
598
|
return {
|
|
599
599
|
c() {
|
|
600
600
|
t = v("div"), t.innerHTML = '<span class="OtpLoader"></span>', r(t, "class", "OtpLoaderContainer");
|
|
601
601
|
},
|
|
602
602
|
m(e, o) {
|
|
603
|
-
|
|
603
|
+
O(e, t, o);
|
|
604
604
|
},
|
|
605
|
-
p:
|
|
605
|
+
p: ke,
|
|
606
606
|
d(e) {
|
|
607
|
-
e &&
|
|
607
|
+
e && S(t);
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function je(n) {
|
|
612
612
|
let t, e, o, i = (
|
|
613
613
|
/*index*/
|
|
614
614
|
n[71]
|
|
615
|
-
), a,
|
|
615
|
+
), a, p;
|
|
616
616
|
const s = () => (
|
|
617
617
|
/*input_binding*/
|
|
618
618
|
n[41](t, i)
|
|
@@ -651,10 +651,10 @@ function De(n) {
|
|
|
651
651
|
n[11], r(t, "autocomplete", "off");
|
|
652
652
|
},
|
|
653
653
|
m(w, T) {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
654
|
+
O(w, t, T), s(), a || (p = [
|
|
655
|
+
te(t, "input", f),
|
|
656
|
+
te(t, "keydown", _),
|
|
657
|
+
te(
|
|
658
658
|
t,
|
|
659
659
|
"paste",
|
|
660
660
|
/*handleOnPasteOtp*/
|
|
@@ -676,15 +676,15 @@ function De(n) {
|
|
|
676
676
|
n[71], s());
|
|
677
677
|
},
|
|
678
678
|
d(w) {
|
|
679
|
-
w &&
|
|
679
|
+
w && S(t), c(), a = !1, Be(p);
|
|
680
680
|
}
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function zt(n) {
|
|
684
684
|
let t, e = (
|
|
685
685
|
/*$_*/
|
|
686
686
|
n[19]("submit") + ""
|
|
687
|
-
), o, i, a,
|
|
687
|
+
), o, i, a, p;
|
|
688
688
|
return {
|
|
689
689
|
c() {
|
|
690
690
|
t = v("button"), o = L(e), r(t, "class", "OtpButton"), t.disabled = i = /*otp*/
|
|
@@ -694,7 +694,7 @@ function At(n) {
|
|
|
694
694
|
n[15];
|
|
695
695
|
},
|
|
696
696
|
m(s, c) {
|
|
697
|
-
|
|
697
|
+
O(s, t, c), d(t, o), a || (p = te(
|
|
698
698
|
t,
|
|
699
699
|
"click",
|
|
700
700
|
/*submitOtp*/
|
|
@@ -704,7 +704,7 @@ function At(n) {
|
|
|
704
704
|
p(s, c) {
|
|
705
705
|
c[0] & /*$_*/
|
|
706
706
|
524288 && e !== (e = /*$_*/
|
|
707
|
-
s[19]("submit") + "") &&
|
|
707
|
+
s[19]("submit") + "") && D(o, e), c[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
708
708
|
40980 && i !== (i = /*otp*/
|
|
709
709
|
s[2].join("").length !== /*config*/
|
|
710
710
|
s[4].inputLength || /*isSubmitting*/
|
|
@@ -712,11 +712,11 @@ function At(n) {
|
|
|
712
712
|
s[15]) && (t.disabled = i);
|
|
713
713
|
},
|
|
714
714
|
d(s) {
|
|
715
|
-
s &&
|
|
715
|
+
s && S(t), a = !1, p();
|
|
716
716
|
}
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function Rt(n) {
|
|
720
720
|
let t, e = (
|
|
721
721
|
/*$_*/
|
|
722
722
|
n[19]("resendOtp") + ""
|
|
@@ -725,30 +725,30 @@ function zt(n) {
|
|
|
725
725
|
c() {
|
|
726
726
|
t = v("button"), o = L(e), r(t, "class", "OtpButton");
|
|
727
727
|
},
|
|
728
|
-
m(
|
|
729
|
-
|
|
728
|
+
m(p, s) {
|
|
729
|
+
O(p, t, s), d(t, o), i || (a = te(
|
|
730
730
|
t,
|
|
731
731
|
"click",
|
|
732
732
|
/*handleResendOtp*/
|
|
733
733
|
n[27]
|
|
734
734
|
), i = !0);
|
|
735
735
|
},
|
|
736
|
-
p(
|
|
736
|
+
p(p, s) {
|
|
737
737
|
s[0] & /*$_*/
|
|
738
738
|
524288 && e !== (e = /*$_*/
|
|
739
|
-
|
|
739
|
+
p[19]("resendOtp") + "") && D(o, e);
|
|
740
740
|
},
|
|
741
|
-
d(
|
|
742
|
-
|
|
741
|
+
d(p) {
|
|
742
|
+
p && S(t), i = !1, a();
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function It(n) {
|
|
747
747
|
let t;
|
|
748
|
-
function e(a,
|
|
748
|
+
function e(a, p) {
|
|
749
749
|
return (
|
|
750
750
|
/*hasConfigErrors*/
|
|
751
|
-
a[7] ?
|
|
751
|
+
a[7] ? vt : yt
|
|
752
752
|
);
|
|
753
753
|
}
|
|
754
754
|
let o = e(n), i = o(n);
|
|
@@ -756,58 +756,58 @@ function Rt(n) {
|
|
|
756
756
|
c() {
|
|
757
757
|
t = v("div"), i.c(), r(t, "class", "OtpContent");
|
|
758
758
|
},
|
|
759
|
-
m(a,
|
|
760
|
-
|
|
759
|
+
m(a, p) {
|
|
760
|
+
O(a, t, p), i.m(t, null), n[44](t);
|
|
761
761
|
},
|
|
762
|
-
p(a,
|
|
763
|
-
o === (o = e(a)) && i ? i.p(a,
|
|
762
|
+
p(a, p) {
|
|
763
|
+
o === (o = e(a)) && i ? i.p(a, p) : (i.d(1), i = o(a), i && (i.c(), i.m(t, null)));
|
|
764
764
|
},
|
|
765
|
-
i:
|
|
766
|
-
o:
|
|
765
|
+
i: ke,
|
|
766
|
+
o: ke,
|
|
767
767
|
d(a) {
|
|
768
|
-
a &&
|
|
768
|
+
a && S(t), i.d(), n[44](null);
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function Pt(n, t, e) {
|
|
773
773
|
let o, i, a;
|
|
774
|
-
|
|
775
|
-
let { clientstyling:
|
|
776
|
-
const de = { SMS: "sms", EMAIL: "email" },
|
|
774
|
+
pt(n, ft, (l) => e(19, a = l));
|
|
775
|
+
let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: c } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, R = "", K = "", q = !1, V = !1, I = "", ne = "", F = "", Z = !1, re = !1, $ = !1, E = "", A = {}, W = null, se = !1, ae = !1, ce = "", U, he, X = [], H = null, Y = 0, pe = !1, ue = !1;
|
|
776
|
+
const de = { SMS: "sms", EMAIL: "email" }, ee = {
|
|
777
777
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
778
778
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
779
779
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
780
780
|
};
|
|
781
|
-
Object.keys(
|
|
782
|
-
|
|
781
|
+
Object.keys(Ie).forEach((l) => {
|
|
782
|
+
Re(l, Ie[l]);
|
|
783
783
|
});
|
|
784
|
-
const
|
|
785
|
-
|
|
786
|
-
},
|
|
784
|
+
const G = () => {
|
|
785
|
+
wt(f);
|
|
786
|
+
}, N = () => {
|
|
787
787
|
fetch(T).then((l) => l.json()).then((l) => {
|
|
788
788
|
Object.keys(l).forEach((h) => {
|
|
789
|
-
|
|
789
|
+
Re(h, l[h]);
|
|
790
790
|
});
|
|
791
791
|
}).catch((l) => {
|
|
792
792
|
console.log(l);
|
|
793
793
|
});
|
|
794
|
-
},
|
|
794
|
+
}, ge = (l) => me(this, null, function* () {
|
|
795
795
|
var h;
|
|
796
796
|
if ((h = l.detail) != null && h["x-step-up-required"]) {
|
|
797
|
-
if (e(7, V = !1), e(6,
|
|
797
|
+
if (e(7, V = !1), e(6, q = !1), e(8, I = ""), ne = l.detail["x-step-up-token"], F = l.detail.flow, !ne || !F) {
|
|
798
798
|
e(3, m = !1), e(7, V = !0), e(8, I = a("configError"));
|
|
799
799
|
return;
|
|
800
800
|
}
|
|
801
801
|
e(12, se = !1), e(3, m = !1);
|
|
802
802
|
}
|
|
803
|
-
}),
|
|
804
|
-
H && (clearInterval(H), H = null), W && (clearInterval(W), W = null), e(6,
|
|
805
|
-
},
|
|
806
|
-
|
|
807
|
-
},
|
|
808
|
-
const g = new URL(`${_}/api/pam/v1/mfa/challenge/${
|
|
809
|
-
z.append("accept", "application/json"), z.append("Content-Type", "application/json"), z.append("X-SessionId", `${w}`), e(16,
|
|
810
|
-
const
|
|
803
|
+
}), oe = () => {
|
|
804
|
+
H && (clearInterval(H), H = null), W && (clearInterval(W), W = null), e(6, q = !1), e(7, V = !1), e(8, I = ""), e(10, re = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, se = !1), e(38, A = {});
|
|
805
|
+
}, j = () => {
|
|
806
|
+
oe();
|
|
807
|
+
}, be = () => new Promise((l, h) => {
|
|
808
|
+
const g = new URL(`${_}/api/pam/v1/mfa/challenge/${ne}`), z = new Headers();
|
|
809
|
+
z.append("accept", "application/json"), z.append("Content-Type", "application/json"), z.append("X-SessionId", `${w}`), e(16, ue = !0);
|
|
810
|
+
const fe = {
|
|
811
811
|
method: "PATCH",
|
|
812
812
|
headers: z,
|
|
813
813
|
body: JSON.stringify({
|
|
@@ -815,15 +815,15 @@ function It(n, t, e) {
|
|
|
815
815
|
templateId: M
|
|
816
816
|
})
|
|
817
817
|
};
|
|
818
|
-
fetch(g,
|
|
819
|
-
e(15,
|
|
820
|
-
}).catch((
|
|
818
|
+
fetch(g, fe).then((Se) => Se.json()).then(() => {
|
|
819
|
+
e(15, pe = !1), k(), we(), l();
|
|
820
|
+
}).catch((Se) => {
|
|
821
821
|
h();
|
|
822
822
|
});
|
|
823
|
-
}),
|
|
823
|
+
}), ie = () => {
|
|
824
824
|
W && clearInterval(W), W = setInterval(
|
|
825
825
|
() => {
|
|
826
|
-
const l =
|
|
826
|
+
const l = ve({}, A);
|
|
827
827
|
let h = !1;
|
|
828
828
|
Object.keys(l).forEach((g) => {
|
|
829
829
|
l[g] > 0 && (l[g]--, h = !0);
|
|
@@ -831,71 +831,71 @@ function It(n, t, e) {
|
|
|
831
831
|
},
|
|
832
832
|
1e3
|
|
833
833
|
);
|
|
834
|
-
},
|
|
834
|
+
}, P = (l) => {
|
|
835
835
|
e(0, E = l);
|
|
836
|
-
},
|
|
836
|
+
}, u = () => me(this, null, function* () {
|
|
837
837
|
if (!(!E || A[E] && A[E] > 0)) {
|
|
838
838
|
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
|
|
839
839
|
try {
|
|
840
|
-
yield
|
|
840
|
+
yield be(), yield ye(), e(38, A = Le(ve({}, A), {
|
|
841
841
|
[E]: 30
|
|
842
|
-
})),
|
|
842
|
+
})), ie(), e(12, se = !0), k(), we();
|
|
843
843
|
} catch (l) {
|
|
844
|
-
console.error("Error submitting channel:", l), e(6,
|
|
844
|
+
console.error("Error submitting channel:", l), e(6, q = !0), e(8, I = a("submissionError"));
|
|
845
845
|
} finally {
|
|
846
846
|
e(3, m = !1);
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
}),
|
|
850
|
-
const l = new Date(R), h = new Date(
|
|
851
|
-
|
|
852
|
-
const B = Date.now(),
|
|
853
|
-
e(5, C =
|
|
854
|
-
},
|
|
849
|
+
}), k = () => {
|
|
850
|
+
const l = new Date(R), h = new Date(K), g = /* @__PURE__ */ new Date(), z = h.getTime() - g.getTime();
|
|
851
|
+
Y = l.getTime() - z;
|
|
852
|
+
const B = Date.now(), fe = Math.max(0, Math.floor((Y - B) / 1e3));
|
|
853
|
+
e(5, C = fe);
|
|
854
|
+
}, we = () => {
|
|
855
855
|
H && clearInterval(H), H = setInterval(
|
|
856
856
|
() => {
|
|
857
|
-
const l = Date.now(), h = Math.max(0, Math.floor((
|
|
858
|
-
e(5, C = h), e(11,
|
|
857
|
+
const l = Date.now(), h = Math.max(0, Math.floor((Y - l) / 1e3));
|
|
858
|
+
e(5, C = h), e(11, $ = h <= 0), h <= 0 && (clearInterval(H), H = null, e(9, Z = !0), e(6, q = !1), e(10, re = !1));
|
|
859
859
|
},
|
|
860
860
|
1e3
|
|
861
861
|
);
|
|
862
|
-
},
|
|
862
|
+
}, Ve = (l) => {
|
|
863
863
|
const h = Math.floor(l / 60), g = l % 60;
|
|
864
864
|
return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
|
|
865
|
-
},
|
|
865
|
+
}, _e = (l, h) => {
|
|
866
866
|
const g = [...b];
|
|
867
867
|
g[l] = h.toUpperCase(), e(2, b = g), g.join("") !== ce && e(13, ae = !1);
|
|
868
|
-
},
|
|
869
|
-
var z, B,
|
|
868
|
+
}, He = (l) => {
|
|
869
|
+
var z, B, fe;
|
|
870
870
|
l.preventDefault();
|
|
871
871
|
const g = (((B = (z = l.clipboardData) == null ? void 0 : z.getData("text")) == null ? void 0 : B.trim()) || "").slice(0, y.inputLength).split("");
|
|
872
|
-
e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), (
|
|
873
|
-
},
|
|
872
|
+
e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), (fe = X[g.length]) == null || fe.focus(), g.length === y.inputLength && Oe();
|
|
873
|
+
}, Ce = (l, h) => {
|
|
874
874
|
const g = l.target, z = g.value;
|
|
875
875
|
if (/^[a-z0-9]$/i.test(z)) {
|
|
876
|
-
|
|
877
|
-
const B =
|
|
876
|
+
_e(h, z);
|
|
877
|
+
const B = X[h + 1];
|
|
878
878
|
B == null || B.focus();
|
|
879
879
|
}
|
|
880
880
|
g.value = "";
|
|
881
|
-
},
|
|
881
|
+
}, Ee = (l, h) => {
|
|
882
882
|
const g = l.key, z = l.ctrlKey || l.metaKey;
|
|
883
883
|
if (/^[a-z0-9]$/i.test(g)) {
|
|
884
884
|
if (z && g.toLowerCase() === "v")
|
|
885
885
|
return;
|
|
886
|
-
l.preventDefault(),
|
|
887
|
-
const B =
|
|
886
|
+
l.preventDefault(), _e(h, g);
|
|
887
|
+
const B = X[h + 1];
|
|
888
888
|
B == null || B.focus();
|
|
889
889
|
} else if (g === "Backspace") {
|
|
890
|
-
l.preventDefault(), b[h] !== "" &&
|
|
891
|
-
const B =
|
|
890
|
+
l.preventDefault(), b[h] !== "" && _e(h, "");
|
|
891
|
+
const B = X[h - 1];
|
|
892
892
|
B == null || B.focus();
|
|
893
893
|
}
|
|
894
|
-
},
|
|
895
|
-
|
|
894
|
+
}, Ne = () => {
|
|
895
|
+
F == "stateful" && (be(), e(9, Z = !1));
|
|
896
896
|
const l = new CustomEvent("otpResendRequested");
|
|
897
897
|
window.dispatchEvent(l);
|
|
898
|
-
},
|
|
898
|
+
}, We = (l) => {
|
|
899
899
|
window.dispatchEvent(new CustomEvent(
|
|
900
900
|
"otpSubmitted",
|
|
901
901
|
{
|
|
@@ -906,8 +906,8 @@ function It(n, t, e) {
|
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
));
|
|
909
|
-
},
|
|
910
|
-
const h = new URL(`/api/nwa/api/v1/mfa/challenge/${
|
|
909
|
+
}, qe = (l) => me(this, null, function* () {
|
|
910
|
+
const h = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/validate`, _);
|
|
911
911
|
h.searchParams.append("input", l);
|
|
912
912
|
try {
|
|
913
913
|
const g = yield fetch(h.href, { method: "POST" });
|
|
@@ -918,7 +918,7 @@ function It(n, t, e) {
|
|
|
918
918
|
const z = yield g.json();
|
|
919
919
|
throw new Error(z.message);
|
|
920
920
|
} catch (g) {
|
|
921
|
-
if (yield
|
|
921
|
+
if (yield ye(), g.message === ee.INTERNAL_SERVER_ERROR) {
|
|
922
922
|
if (y.numberOfValidateAttempts === y.maxValidationAttempts - 1) {
|
|
923
923
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
924
924
|
{
|
|
@@ -932,10 +932,10 @@ function It(n, t, e) {
|
|
|
932
932
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
933
933
|
return;
|
|
934
934
|
}
|
|
935
|
-
e(6,
|
|
935
|
+
e(6, q = !0), e(8, I = a("invalidOtp")), ye();
|
|
936
936
|
return;
|
|
937
937
|
}
|
|
938
|
-
g.message ===
|
|
938
|
+
g.message === ee.MAX_INVALIDATE && (e(6, q = !0), e(8, I = a("invalidOtp"))), g.details === ee.MAX_ATTEMPTS_EXCEEDED && e(15, pe = !0), console.error("OTP submission failed:", g), e(6, q = !0), e(8, I = a("submissionError"));
|
|
939
939
|
} finally {
|
|
940
940
|
e(3, m = !1);
|
|
941
941
|
}
|
|
@@ -948,23 +948,23 @@ function It(n, t, e) {
|
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
));
|
|
951
|
-
},
|
|
951
|
+
}, Ue = () => {
|
|
952
952
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
953
|
-
},
|
|
953
|
+
}, Oe = () => me(this, null, function* () {
|
|
954
954
|
if (b.join("").length !== y.inputLength) {
|
|
955
|
-
e(6,
|
|
955
|
+
e(6, q = !0), e(8, I = a("invalidOtp"));
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
958
958
|
const l = b.join("");
|
|
959
|
-
e(13, ae = !0), ce = l, e(3, m = !0), e(6,
|
|
960
|
-
}),
|
|
959
|
+
e(13, ae = !0), ce = l, e(3, m = !0), e(6, q = !1), e(8, I = ""), F === "stateless" && We(l), F === "stateful" && (yield qe(l));
|
|
960
|
+
}), ye = () => me(this, null, function* () {
|
|
961
961
|
if (_)
|
|
962
962
|
try {
|
|
963
963
|
e(3, m = !0);
|
|
964
|
-
const l = new URL(`/api/nwa/api/v1/mfa/challenge/${
|
|
964
|
+
const l = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/config`, _), h = yield fetch(l.href), g = yield h.json();
|
|
965
965
|
if (h.ok)
|
|
966
|
-
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9,
|
|
967
|
-
else if (g && g.details ===
|
|
966
|
+
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Z = !1), R = y.expirationTime, K = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, q = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, re = !0), e(3, m = !1), k(), we(), e(16, ue = !1);
|
|
967
|
+
else if (g && g.details === ee.MAX_ATTEMPTS_EXCEEDED)
|
|
968
968
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
969
969
|
else {
|
|
970
970
|
const z = g && g.message || `Failed to load config. Status: ${h.status}`;
|
|
@@ -974,33 +974,33 @@ function It(n, t, e) {
|
|
|
974
974
|
e(3, m = !1), e(7, V = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", l);
|
|
975
975
|
}
|
|
976
976
|
});
|
|
977
|
-
|
|
978
|
-
window.removeEventListener("stepUpAuthRequired",
|
|
977
|
+
ut(() => (window.addEventListener("stepUpAuthRequired", ge, !1), window.addEventListener("closePopup", j, !1), () => {
|
|
978
|
+
window.removeEventListener("stepUpAuthRequired", ge), window.removeEventListener("closePopup", j, !1), H && clearInterval(H), W && clearInterval(W);
|
|
979
979
|
}));
|
|
980
|
-
const
|
|
981
|
-
function
|
|
982
|
-
|
|
983
|
-
|
|
980
|
+
const Xe = () => P(de.SMS), Ke = () => P(de.EMAIL);
|
|
981
|
+
function Ge(l, h) {
|
|
982
|
+
Ae[l ? "unshift" : "push"](() => {
|
|
983
|
+
X[h] = l, e(14, X);
|
|
984
984
|
});
|
|
985
985
|
}
|
|
986
|
-
const
|
|
987
|
-
function
|
|
988
|
-
|
|
986
|
+
const Ye = (l, h) => Ce(h, l), Je = (l, h) => Ee(h, l);
|
|
987
|
+
function Qe(l) {
|
|
988
|
+
Ae[l ? "unshift" : "push"](() => {
|
|
989
989
|
U = l, e(1, U);
|
|
990
990
|
});
|
|
991
991
|
}
|
|
992
992
|
return n.$$set = (l) => {
|
|
993
|
-
"clientstyling" in l && e(31,
|
|
993
|
+
"clientstyling" in l && e(31, p = l.clientstyling), "clientstylingurl" in l && e(32, s = l.clientstylingurl), "mbsource" in l && e(33, c = l.mbsource), "lang" in l && e(34, f = l.lang), "endpoint" in l && e(35, _ = l.endpoint), "session" in l && e(36, w = l.session), "translationurl" in l && e(37, T = l.translationurl), "templateid" in l && e(30, M = l.templateid);
|
|
994
994
|
}, n.$$.update = () => {
|
|
995
995
|
n.$$.dirty[0] & /*customStylingContainer*/
|
|
996
996
|
2 | n.$$.dirty[1] & /*clientstyling*/
|
|
997
|
-
1 &&
|
|
997
|
+
1 && p && U && mt(U, p), n.$$.dirty[0] & /*customStylingContainer*/
|
|
998
998
|
2 | n.$$.dirty[1] & /*clientstylingurl*/
|
|
999
|
-
2 && s && U &&
|
|
999
|
+
2 && s && U && ht(U, s), n.$$.dirty[0] & /*customStylingContainer*/
|
|
1000
1000
|
2 | n.$$.dirty[1] & /*mbsource*/
|
|
1001
|
-
4 && c && U &&
|
|
1002
|
-
8 && f &&
|
|
1003
|
-
72 && f && T &&
|
|
1001
|
+
4 && c && U && dt(U, `${c}.Style`, he), n.$$.dirty[1] & /*lang*/
|
|
1002
|
+
8 && f && G(), n.$$.dirty[1] & /*lang, translationurl*/
|
|
1003
|
+
72 && f && T && N(), n.$$.dirty[0] & /*selectedChannel*/
|
|
1004
1004
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
1005
1005
|
128 && e(18, o = E && (!A[E] || A[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
|
|
1006
1006
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
@@ -1012,32 +1012,32 @@ function It(n, t, e) {
|
|
|
1012
1012
|
m,
|
|
1013
1013
|
y,
|
|
1014
1014
|
C,
|
|
1015
|
-
|
|
1015
|
+
q,
|
|
1016
1016
|
V,
|
|
1017
1017
|
I,
|
|
1018
|
-
|
|
1018
|
+
Z,
|
|
1019
1019
|
re,
|
|
1020
|
-
|
|
1020
|
+
$,
|
|
1021
1021
|
se,
|
|
1022
1022
|
ae,
|
|
1023
|
-
|
|
1024
|
-
Y,
|
|
1023
|
+
X,
|
|
1025
1024
|
pe,
|
|
1025
|
+
ue,
|
|
1026
1026
|
i,
|
|
1027
1027
|
o,
|
|
1028
1028
|
a,
|
|
1029
1029
|
de,
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
Be,
|
|
1030
|
+
P,
|
|
1031
|
+
u,
|
|
1033
1032
|
Ve,
|
|
1034
|
-
ke,
|
|
1035
|
-
Ce,
|
|
1036
1033
|
He,
|
|
1037
|
-
|
|
1034
|
+
Ce,
|
|
1038
1035
|
Ee,
|
|
1036
|
+
Ne,
|
|
1037
|
+
Ue,
|
|
1038
|
+
Oe,
|
|
1039
1039
|
M,
|
|
1040
|
-
|
|
1040
|
+
p,
|
|
1041
1041
|
s,
|
|
1042
1042
|
c,
|
|
1043
1043
|
f,
|
|
@@ -1045,22 +1045,22 @@ function It(n, t, e) {
|
|
|
1045
1045
|
w,
|
|
1046
1046
|
T,
|
|
1047
1047
|
A,
|
|
1048
|
-
Ue,
|
|
1049
1048
|
Xe,
|
|
1050
1049
|
Ke,
|
|
1051
1050
|
Ge,
|
|
1052
1051
|
Ye,
|
|
1053
|
-
Je
|
|
1052
|
+
Je,
|
|
1053
|
+
Qe
|
|
1054
1054
|
];
|
|
1055
1055
|
}
|
|
1056
|
-
class
|
|
1056
|
+
class xt extends lt {
|
|
1057
1057
|
constructor(t) {
|
|
1058
|
-
super(),
|
|
1058
|
+
super(), rt(
|
|
1059
1059
|
this,
|
|
1060
1060
|
t,
|
|
1061
|
+
Pt,
|
|
1061
1062
|
It,
|
|
1062
|
-
|
|
1063
|
-
rt,
|
|
1063
|
+
at,
|
|
1064
1064
|
{
|
|
1065
1065
|
clientstyling: 31,
|
|
1066
1066
|
clientstylingurl: 32,
|
|
@@ -1071,7 +1071,7 @@ class Pt extends it {
|
|
|
1071
1071
|
translationurl: 37,
|
|
1072
1072
|
templateid: 30
|
|
1073
1073
|
},
|
|
1074
|
-
|
|
1074
|
+
_t,
|
|
1075
1075
|
[-1, -1, -1]
|
|
1076
1076
|
);
|
|
1077
1077
|
}
|
|
@@ -1124,7 +1124,7 @@ class Pt extends it {
|
|
|
1124
1124
|
this.$$set({ templateid: t }), le();
|
|
1125
1125
|
}
|
|
1126
1126
|
}
|
|
1127
|
-
|
|
1127
|
+
st(xt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1128
1128
|
export {
|
|
1129
|
-
|
|
1129
|
+
xt as default
|
|
1130
1130
|
};
|