@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,11 +1,11 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
function
|
|
3
|
-
|
|
1
|
+
import { a as Ke, $ as Ge, S as Ye, b as Je, f as ie, c as Qe, s as Ze, d as $e, g as v, j as r, k as O, G as ye, p as S, q as et, r as tt, v as nt, A as ot, B as Oe, C as it, D as lt, h as R, R as Y, x as L, T as J, l as d, z as ee, y as P, a1 as xe, w as rt, Y as Se, a3 as st } from "./CashierCarousel-CyAfjImL.js";
|
|
2
|
+
function Me(n, t) {
|
|
3
|
+
Ke(n, t);
|
|
4
4
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
5
|
+
function at(n) {
|
|
6
|
+
Ge.set(n);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
8
|
+
const Te = {
|
|
9
9
|
en: {
|
|
10
10
|
otpTitle: "Code verification is required",
|
|
11
11
|
popupMessage: "Please enter the security code received on your SMS/email address to perform the update.",
|
|
@@ -76,66 +76,66 @@ const Me = {
|
|
|
76
76
|
waitSeconds: "Veuillez patienter avant de renvoyer le code :"
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
-
function
|
|
80
|
-
|
|
79
|
+
function ct(n) {
|
|
80
|
+
$e(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}}');
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Le(n, t, e) {
|
|
83
83
|
const o = n.slice();
|
|
84
84
|
return o[69] = t[e], o[70] = t, o[71] = e, o;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
let t, e, o, i, a, p, s, u, f, _, w, T, M, b, m, y, C,
|
|
86
|
+
function pt(n) {
|
|
87
|
+
let t, e, o, i, a, p, s, u, f, _, w, T, M, b, m, y, C, z = (
|
|
88
88
|
/*$_*/
|
|
89
89
|
n[19]("channelSMS") + ""
|
|
90
|
-
),
|
|
90
|
+
), X, W, j, I, te, q, Q, le, Z, E, A, N, re, se, ae = (
|
|
91
91
|
/*$_*/
|
|
92
92
|
n[19]("channelEmail") + ""
|
|
93
|
-
),
|
|
94
|
-
function
|
|
93
|
+
), F, de, U, B, G, ce, pe;
|
|
94
|
+
function ue(c, k) {
|
|
95
95
|
return (
|
|
96
96
|
/*showResendOtp*/
|
|
97
|
-
c[9] ?
|
|
97
|
+
c[9] ? mt : (
|
|
98
98
|
/*showOtpInput*/
|
|
99
|
-
c[12] ?
|
|
99
|
+
c[12] ? dt : ft
|
|
100
100
|
)
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
|
-
let
|
|
103
|
+
let $ = ue(n), K = $(n), V = (
|
|
104
104
|
/*selectedChannel*/
|
|
105
|
-
n[0] &&
|
|
105
|
+
n[0] && ze(n)
|
|
106
106
|
);
|
|
107
|
-
function
|
|
107
|
+
function fe(c, k) {
|
|
108
108
|
if (
|
|
109
109
|
/*isLoading*/
|
|
110
110
|
c[3] && /*showOtpInput*/
|
|
111
111
|
c[12]
|
|
112
112
|
)
|
|
113
|
-
return
|
|
113
|
+
return yt;
|
|
114
114
|
if (
|
|
115
115
|
/*showOtpInput*/
|
|
116
116
|
c[12] && /*config*/
|
|
117
117
|
c[4]
|
|
118
118
|
)
|
|
119
|
-
return
|
|
119
|
+
return _t;
|
|
120
120
|
}
|
|
121
|
-
let
|
|
122
|
-
function
|
|
121
|
+
let ne = fe(n), D = ne && ne(n);
|
|
122
|
+
function me(c, k) {
|
|
123
123
|
if (
|
|
124
124
|
/*showResendOtp*/
|
|
125
125
|
c[9]
|
|
126
126
|
)
|
|
127
|
-
return
|
|
127
|
+
return kt;
|
|
128
128
|
if (
|
|
129
129
|
/*showOtpInput*/
|
|
130
130
|
c[12] && /*config*/
|
|
131
131
|
c[4]
|
|
132
132
|
)
|
|
133
|
-
return
|
|
133
|
+
return vt;
|
|
134
134
|
}
|
|
135
|
-
let
|
|
135
|
+
let oe = me(n), x = oe && oe(n);
|
|
136
136
|
return {
|
|
137
137
|
c() {
|
|
138
|
-
t = v("div"),
|
|
138
|
+
t = v("div"), K.c(), e = R(), o = v("div"), i = v("label"), a = v("div"), p = R(), s = v("input"), f = R(), _ = v("div"), w = Y("svg"), T = Y("path"), M = Y("circle"), b = Y("circle"), m = Y("circle"), y = R(), C = v("span"), X = L(z), W = R(), j = v("label"), I = v("div"), te = R(), q = v("input"), le = R(), Z = v("div"), E = Y("svg"), A = Y("rect"), N = Y("path"), re = R(), se = v("span"), F = L(ae), de = R(), V && V.c(), U = R(), D && D.c(), B = R(), G = v("div"), x && x.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), J(
|
|
139
139
|
a,
|
|
140
140
|
"checked",
|
|
141
141
|
/*selectedChannel*/
|
|
@@ -144,22 +144,22 @@ function ct(n) {
|
|
|
144
144
|
), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
|
|
145
145
|
n[20].SMS, s.checked = u = /*selectedChannel*/
|
|
146
146
|
n[0] === /*channels*/
|
|
147
|
-
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"),
|
|
147
|
+
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"), J(
|
|
148
148
|
i,
|
|
149
149
|
"selected",
|
|
150
150
|
/*selectedChannel*/
|
|
151
151
|
n[0] === /*channels*/
|
|
152
152
|
n[20].SMS
|
|
153
|
-
), r(
|
|
154
|
-
|
|
153
|
+
), r(I, "class", "RadioIndicator"), J(
|
|
154
|
+
I,
|
|
155
155
|
"checked",
|
|
156
156
|
/*selectedChannel*/
|
|
157
157
|
n[0] === /*channels*/
|
|
158
158
|
n[20].EMAIL
|
|
159
|
-
), r(
|
|
160
|
-
n[20].EMAIL,
|
|
159
|
+
), r(q, "type", "radio"), r(q, "name", "channel"), q.value = /*channels*/
|
|
160
|
+
n[20].EMAIL, q.checked = Q = /*selectedChannel*/
|
|
161
161
|
n[0] === /*channels*/
|
|
162
|
-
n[20].EMAIL, r(A, "x", "2"), r(A, "y", "4"), r(A, "width", "20"), r(A, "height", "16"), r(A, "rx", "2"), r(N, "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(
|
|
162
|
+
n[20].EMAIL, r(A, "x", "2"), r(A, "y", "4"), r(A, "width", "20"), r(A, "height", "16"), r(A, "rx", "2"), r(N, "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(Z, "class", "ChannelContent"), r(j, "class", "ChannelCheckbox"), J(
|
|
163
163
|
j,
|
|
164
164
|
"selected",
|
|
165
165
|
/*selectedChannel*/
|
|
@@ -168,15 +168,15 @@ function ct(n) {
|
|
|
168
168
|
), r(o, "class", "ChannelSelection"), r(G, "class", "OtpActionButtons");
|
|
169
169
|
},
|
|
170
170
|
m(c, k) {
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
O(c, t, k), K.m(t, null), O(c, e, k), O(c, 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, X), d(o, W), d(o, j), d(j, I), d(j, te), d(j, q), d(j, le), d(j, Z), d(Z, E), d(E, A), d(E, N), d(Z, re), d(Z, se), d(se, F), O(c, de, k), V && V.m(c, k), O(c, U, k), D && D.m(c, k), O(c, B, k), O(c, G, k), x && x.m(G, null), ce || (pe = [
|
|
172
|
+
ee(
|
|
173
173
|
s,
|
|
174
174
|
"change",
|
|
175
175
|
/*change_handler*/
|
|
176
176
|
n[39]
|
|
177
177
|
),
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
ee(
|
|
179
|
+
q,
|
|
180
180
|
"change",
|
|
181
181
|
/*change_handler_1*/
|
|
182
182
|
n[40]
|
|
@@ -184,8 +184,8 @@ function ct(n) {
|
|
|
184
184
|
], ce = !0);
|
|
185
185
|
},
|
|
186
186
|
p(c, k) {
|
|
187
|
-
|
|
188
|
-
1048577 &&
|
|
187
|
+
$ === ($ = ue(c)) && K ? K.p(c, k) : (K.d(1), K = $(c), K && (K.c(), K.m(t, null))), k[0] & /*selectedChannel, channels*/
|
|
188
|
+
1048577 && J(
|
|
189
189
|
a,
|
|
190
190
|
"checked",
|
|
191
191
|
/*selectedChannel*/
|
|
@@ -195,42 +195,42 @@ function ct(n) {
|
|
|
195
195
|
1 && u !== (u = /*selectedChannel*/
|
|
196
196
|
c[0] === /*channels*/
|
|
197
197
|
c[20].SMS) && (s.checked = u), k[0] & /*$_*/
|
|
198
|
-
524288 &&
|
|
199
|
-
c[19]("channelSMS") + "") &&
|
|
200
|
-
1048577 &&
|
|
198
|
+
524288 && z !== (z = /*$_*/
|
|
199
|
+
c[19]("channelSMS") + "") && P(X, z), k[0] & /*selectedChannel, channels*/
|
|
200
|
+
1048577 && J(
|
|
201
201
|
i,
|
|
202
202
|
"selected",
|
|
203
203
|
/*selectedChannel*/
|
|
204
204
|
c[0] === /*channels*/
|
|
205
205
|
c[20].SMS
|
|
206
206
|
), k[0] & /*selectedChannel, channels*/
|
|
207
|
-
1048577 &&
|
|
208
|
-
|
|
207
|
+
1048577 && J(
|
|
208
|
+
I,
|
|
209
209
|
"checked",
|
|
210
210
|
/*selectedChannel*/
|
|
211
211
|
c[0] === /*channels*/
|
|
212
212
|
c[20].EMAIL
|
|
213
213
|
), k[0] & /*selectedChannel*/
|
|
214
|
-
1 &&
|
|
214
|
+
1 && Q !== (Q = /*selectedChannel*/
|
|
215
215
|
c[0] === /*channels*/
|
|
216
|
-
c[20].EMAIL) && (
|
|
216
|
+
c[20].EMAIL) && (q.checked = Q), k[0] & /*$_*/
|
|
217
217
|
524288 && ae !== (ae = /*$_*/
|
|
218
|
-
c[19]("channelEmail") + "") &&
|
|
219
|
-
1048577 &&
|
|
218
|
+
c[19]("channelEmail") + "") && P(F, ae), k[0] & /*selectedChannel, channels*/
|
|
219
|
+
1048577 && J(
|
|
220
220
|
j,
|
|
221
221
|
"selected",
|
|
222
222
|
/*selectedChannel*/
|
|
223
223
|
c[0] === /*channels*/
|
|
224
224
|
c[20].EMAIL
|
|
225
225
|
), /*selectedChannel*/
|
|
226
|
-
c[0] ?
|
|
226
|
+
c[0] ? V ? V.p(c, k) : (V = ze(c), V.c(), V.m(U.parentNode, U)) : V && (V.d(1), V = null), ne === (ne = fe(c)) && D ? D.p(c, k) : (D && D.d(1), D = ne && ne(c), D && (D.c(), D.m(B.parentNode, B))), oe === (oe = me(c)) && x ? x.p(c, k) : (x && x.d(1), x = oe && oe(c), x && (x.c(), x.m(G, null)));
|
|
227
227
|
},
|
|
228
228
|
d(c) {
|
|
229
|
-
c && (
|
|
229
|
+
c && (S(t), S(e), S(o), S(de), S(U), S(B), S(G)), K.d(), V && V.d(c), D && D.d(c), x && x.d(), ce = !1, xe(pe);
|
|
230
230
|
}
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function ut(n) {
|
|
234
234
|
let t, e, o, i, a, p, s = (
|
|
235
235
|
/*$_*/
|
|
236
236
|
n[19]("errorHeader") + ""
|
|
@@ -240,68 +240,68 @@ function pt(n) {
|
|
|
240
240
|
), m, y, C;
|
|
241
241
|
return {
|
|
242
242
|
c() {
|
|
243
|
-
t = v("div"), e = v("div"), o =
|
|
243
|
+
t = v("div"), e = v("div"), o = Y("svg"), i = Y("path"), a = R(), p = v("h2"), u = L(s), f = R(), _ = v("p"), w = L(
|
|
244
244
|
/*errorMessage*/
|
|
245
245
|
n[8]
|
|
246
|
-
), T =
|
|
246
|
+
), T = R(), 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");
|
|
247
247
|
},
|
|
248
|
-
m(
|
|
249
|
-
|
|
248
|
+
m(z, X) {
|
|
249
|
+
O(z, t, X), d(t, e), d(e, o), d(o, i), d(e, a), d(e, p), d(p, u), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = ee(
|
|
250
250
|
M,
|
|
251
251
|
"click",
|
|
252
252
|
/*manualClosePopup*/
|
|
253
253
|
n[28]
|
|
254
254
|
), y = !0);
|
|
255
255
|
},
|
|
256
|
-
p(
|
|
257
|
-
|
|
256
|
+
p(z, X) {
|
|
257
|
+
X[0] & /*$_*/
|
|
258
258
|
524288 && s !== (s = /*$_*/
|
|
259
|
-
|
|
260
|
-
256 &&
|
|
259
|
+
z[19]("errorHeader") + "") && P(u, s), X[0] & /*errorMessage*/
|
|
260
|
+
256 && P(
|
|
261
261
|
w,
|
|
262
262
|
/*errorMessage*/
|
|
263
|
-
|
|
264
|
-
),
|
|
263
|
+
z[8]
|
|
264
|
+
), X[0] & /*$_*/
|
|
265
265
|
524288 && b !== (b = /*$_*/
|
|
266
|
-
|
|
266
|
+
z[19]("close") + "") && P(m, b);
|
|
267
267
|
},
|
|
268
|
-
d(
|
|
269
|
-
|
|
268
|
+
d(z) {
|
|
269
|
+
z && S(t), y = !1, C();
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function dt(n) {
|
|
274
274
|
let t, e, o, i;
|
|
275
275
|
function a(f, _) {
|
|
276
276
|
return (
|
|
277
277
|
/*isLastWarning*/
|
|
278
|
-
f[10] ?
|
|
278
|
+
f[10] ? gt : ht
|
|
279
279
|
);
|
|
280
280
|
}
|
|
281
281
|
let p = a(n), s = p(n), u = (
|
|
282
282
|
/*hasErrors*/
|
|
283
|
-
n[6] &&
|
|
283
|
+
n[6] && Ae(n)
|
|
284
284
|
);
|
|
285
285
|
return {
|
|
286
286
|
c() {
|
|
287
|
-
t = v("p"), s.c(), o =
|
|
287
|
+
t = v("p"), s.c(), o = R(), u && u.c(), i = rt(), r(t, "class", e = /*isLastWarning*/
|
|
288
288
|
n[10] ? "LastWarningMessage" : "");
|
|
289
289
|
},
|
|
290
290
|
m(f, _) {
|
|
291
|
-
|
|
291
|
+
O(f, t, _), s.m(t, null), O(f, o, _), u && u.m(f, _), O(f, i, _);
|
|
292
292
|
},
|
|
293
293
|
p(f, _) {
|
|
294
294
|
p === (p = a(f)) && s ? s.p(f, _) : (s.d(1), s = p(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
|
|
295
295
|
1024 && e !== (e = /*isLastWarning*/
|
|
296
296
|
f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
|
|
297
|
-
f[6] ? u ? u.p(f, _) : (u =
|
|
297
|
+
f[6] ? u ? u.p(f, _) : (u = Ae(f), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
|
|
298
298
|
},
|
|
299
299
|
d(f) {
|
|
300
|
-
f && (
|
|
300
|
+
f && (S(t), S(o), S(i)), s.d(), u && u.d(f);
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function ft(n) {
|
|
305
305
|
let t, e = (
|
|
306
306
|
/*$_*/
|
|
307
307
|
(n[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
@@ -311,19 +311,19 @@ function dt(n) {
|
|
|
311
311
|
t = v("p"), o = L(e);
|
|
312
312
|
},
|
|
313
313
|
m(i, a) {
|
|
314
|
-
|
|
314
|
+
O(i, t, a), d(t, o);
|
|
315
315
|
},
|
|
316
316
|
p(i, a) {
|
|
317
317
|
a[0] & /*$_*/
|
|
318
318
|
524288 && e !== (e = /*$_*/
|
|
319
|
-
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") &&
|
|
319
|
+
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && P(o, e);
|
|
320
320
|
},
|
|
321
321
|
d(i) {
|
|
322
|
-
i &&
|
|
322
|
+
i && S(t);
|
|
323
323
|
}
|
|
324
324
|
};
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function mt(n) {
|
|
327
327
|
let t, e = (
|
|
328
328
|
/*$_*/
|
|
329
329
|
n[19]("otpExpiredMessage") + ""
|
|
@@ -333,19 +333,19 @@ function ft(n) {
|
|
|
333
333
|
t = v("p"), o = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
|
|
334
334
|
},
|
|
335
335
|
m(i, a) {
|
|
336
|
-
|
|
336
|
+
O(i, t, a), d(t, o);
|
|
337
337
|
},
|
|
338
338
|
p(i, a) {
|
|
339
339
|
a[0] & /*$_*/
|
|
340
340
|
524288 && e !== (e = /*$_*/
|
|
341
|
-
i[19]("otpExpiredMessage") + "") &&
|
|
341
|
+
i[19]("otpExpiredMessage") + "") && P(o, e);
|
|
342
342
|
},
|
|
343
343
|
d(i) {
|
|
344
|
-
i &&
|
|
344
|
+
i && S(t);
|
|
345
345
|
}
|
|
346
346
|
};
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function ht(n) {
|
|
349
349
|
let t = (
|
|
350
350
|
/*$_*/
|
|
351
351
|
n[19]("popupMessage") + ""
|
|
@@ -355,19 +355,19 @@ function mt(n) {
|
|
|
355
355
|
e = L(t);
|
|
356
356
|
},
|
|
357
357
|
m(o, i) {
|
|
358
|
-
|
|
358
|
+
O(o, e, i);
|
|
359
359
|
},
|
|
360
360
|
p(o, i) {
|
|
361
361
|
i[0] & /*$_*/
|
|
362
362
|
524288 && t !== (t = /*$_*/
|
|
363
|
-
o[19]("popupMessage") + "") &&
|
|
363
|
+
o[19]("popupMessage") + "") && P(e, t);
|
|
364
364
|
},
|
|
365
365
|
d(o) {
|
|
366
|
-
o &&
|
|
366
|
+
o && S(e);
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function gt(n) {
|
|
371
371
|
let t = (
|
|
372
372
|
/*$_*/
|
|
373
373
|
n[19]("popupMessageLastWarning") + ""
|
|
@@ -377,19 +377,19 @@ function ht(n) {
|
|
|
377
377
|
e = L(t);
|
|
378
378
|
},
|
|
379
379
|
m(o, i) {
|
|
380
|
-
|
|
380
|
+
O(o, e, i);
|
|
381
381
|
},
|
|
382
382
|
p(o, i) {
|
|
383
383
|
i[0] & /*$_*/
|
|
384
384
|
524288 && t !== (t = /*$_*/
|
|
385
|
-
o[19]("popupMessageLastWarning") + "") &&
|
|
385
|
+
o[19]("popupMessageLastWarning") + "") && P(e, t);
|
|
386
386
|
},
|
|
387
387
|
d(o) {
|
|
388
|
-
o &&
|
|
388
|
+
o && S(e);
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Ae(n) {
|
|
393
393
|
let t, e;
|
|
394
394
|
return {
|
|
395
395
|
c() {
|
|
@@ -399,39 +399,39 @@ function Le(n) {
|
|
|
399
399
|
), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
|
|
400
400
|
},
|
|
401
401
|
m(o, i) {
|
|
402
|
-
|
|
402
|
+
O(o, t, i), d(t, e);
|
|
403
403
|
},
|
|
404
404
|
p(o, i) {
|
|
405
405
|
i[0] & /*errorMessage*/
|
|
406
|
-
256 &&
|
|
406
|
+
256 && P(
|
|
407
407
|
e,
|
|
408
408
|
/*errorMessage*/
|
|
409
409
|
o[8]
|
|
410
410
|
);
|
|
411
411
|
},
|
|
412
412
|
d(o) {
|
|
413
|
-
o &&
|
|
413
|
+
o && S(t);
|
|
414
414
|
}
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
|
-
function
|
|
417
|
+
function ze(n) {
|
|
418
418
|
let t, e, o, i;
|
|
419
419
|
function a(u, f) {
|
|
420
420
|
return (
|
|
421
421
|
/*currentChannelTimer*/
|
|
422
|
-
u[17] > 0 ?
|
|
422
|
+
u[17] > 0 ? wt : bt
|
|
423
423
|
);
|
|
424
424
|
}
|
|
425
425
|
let p = a(n), s = p(n);
|
|
426
426
|
return {
|
|
427
427
|
c() {
|
|
428
428
|
t = v("button"), s.c(), r(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
|
|
429
|
-
n[18],
|
|
429
|
+
n[18], J(t, "disabled", !/*canSubmitChannel*/
|
|
430
430
|
n[18] || /*waitingForConfig*/
|
|
431
431
|
n[16]);
|
|
432
432
|
},
|
|
433
433
|
m(u, f) {
|
|
434
|
-
|
|
434
|
+
O(u, t, f), s.m(t, null), o || (i = ee(
|
|
435
435
|
t,
|
|
436
436
|
"click",
|
|
437
437
|
/*handleChannelSubmit*/
|
|
@@ -442,16 +442,16 @@ function Ae(n) {
|
|
|
442
442
|
p === (p = a(u)) && s ? s.p(u, f) : (s.d(1), s = p(u), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
|
|
443
443
|
262144 && e !== (e = !/*canSubmitChannel*/
|
|
444
444
|
u[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
|
|
445
|
-
327680 &&
|
|
445
|
+
327680 && J(t, "disabled", !/*canSubmitChannel*/
|
|
446
446
|
u[18] || /*waitingForConfig*/
|
|
447
447
|
u[16]);
|
|
448
448
|
},
|
|
449
449
|
d(u) {
|
|
450
|
-
u &&
|
|
450
|
+
u && S(t), s.d(), o = !1, i();
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function bt(n) {
|
|
455
455
|
let t = (
|
|
456
456
|
/*$_*/
|
|
457
457
|
n[19]("sendCode") + ""
|
|
@@ -461,19 +461,19 @@ function gt(n) {
|
|
|
461
461
|
e = L(t);
|
|
462
462
|
},
|
|
463
463
|
m(o, i) {
|
|
464
|
-
|
|
464
|
+
O(o, e, i);
|
|
465
465
|
},
|
|
466
466
|
p(o, i) {
|
|
467
467
|
i[0] & /*$_*/
|
|
468
468
|
524288 && t !== (t = /*$_*/
|
|
469
|
-
o[19]("sendCode") + "") &&
|
|
469
|
+
o[19]("sendCode") + "") && P(e, t);
|
|
470
470
|
},
|
|
471
471
|
d(o) {
|
|
472
|
-
o &&
|
|
472
|
+
o && S(e);
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function wt(n) {
|
|
477
477
|
let t = (
|
|
478
478
|
/*$_*/
|
|
479
479
|
n[19]("waitSeconds") + ""
|
|
@@ -486,24 +486,24 @@ function bt(n) {
|
|
|
486
486
|
), a = L("s)");
|
|
487
487
|
},
|
|
488
488
|
m(p, s) {
|
|
489
|
-
|
|
489
|
+
O(p, e, s), O(p, o, s), O(p, i, s), O(p, a, s);
|
|
490
490
|
},
|
|
491
491
|
p(p, s) {
|
|
492
492
|
s[0] & /*$_*/
|
|
493
493
|
524288 && t !== (t = /*$_*/
|
|
494
|
-
p[19]("waitSeconds") + "") &&
|
|
495
|
-
131072 &&
|
|
494
|
+
p[19]("waitSeconds") + "") && P(e, t), s[0] & /*currentChannelTimer*/
|
|
495
|
+
131072 && P(
|
|
496
496
|
i,
|
|
497
497
|
/*currentChannelTimer*/
|
|
498
498
|
p[17]
|
|
499
499
|
);
|
|
500
500
|
},
|
|
501
501
|
d(p) {
|
|
502
|
-
p && (
|
|
502
|
+
p && (S(e), S(o), S(i), S(a));
|
|
503
503
|
}
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function _t(n) {
|
|
507
507
|
let t, e, o = (
|
|
508
508
|
/*$_*/
|
|
509
509
|
n[19]("timeRemaining") + ""
|
|
@@ -516,44 +516,44 @@ function wt(n) {
|
|
|
516
516
|
), s, u, f = (
|
|
517
517
|
/*$_*/
|
|
518
518
|
n[19]("minutes") + ""
|
|
519
|
-
), _, w, T, M =
|
|
519
|
+
), _, w, T, M = Se(
|
|
520
520
|
/*otp*/
|
|
521
521
|
n[2]
|
|
522
522
|
), b = [];
|
|
523
523
|
for (let m = 0; m < M.length; m += 1)
|
|
524
|
-
b[m] = Ie(
|
|
524
|
+
b[m] = Ie(Le(n, M, m));
|
|
525
525
|
return {
|
|
526
526
|
c() {
|
|
527
|
-
t = v("div"), e = v("div"), i = L(o), a =
|
|
527
|
+
t = v("div"), e = v("div"), i = L(o), a = R(), s = L(p), u = R(), _ = L(f), w = R(), T = v("div");
|
|
528
528
|
for (let m = 0; m < b.length; m += 1)
|
|
529
529
|
b[m].c();
|
|
530
530
|
r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
|
|
531
531
|
},
|
|
532
532
|
m(m, y) {
|
|
533
|
-
|
|
533
|
+
O(m, t, y), d(t, e), d(e, i), d(e, a), d(e, s), d(e, u), d(e, _), d(t, w), d(t, T);
|
|
534
534
|
for (let C = 0; C < b.length; C += 1)
|
|
535
535
|
b[C] && b[C].m(T, null);
|
|
536
536
|
},
|
|
537
537
|
p(m, y) {
|
|
538
538
|
if (y[0] & /*$_*/
|
|
539
539
|
524288 && o !== (o = /*$_*/
|
|
540
|
-
m[19]("timeRemaining") + "") &&
|
|
540
|
+
m[19]("timeRemaining") + "") && P(i, o), y[0] & /*timeLeft*/
|
|
541
541
|
32 && p !== (p = /*formatTime*/
|
|
542
542
|
m[23](
|
|
543
543
|
/*timeLeft*/
|
|
544
544
|
m[5]
|
|
545
|
-
) + "") &&
|
|
545
|
+
) + "") && P(s, p), y[0] & /*$_*/
|
|
546
546
|
524288 && f !== (f = /*$_*/
|
|
547
|
-
m[19]("minutes") + "") &&
|
|
547
|
+
m[19]("minutes") + "") && P(_, f), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
548
548
|
117458964) {
|
|
549
|
-
M =
|
|
549
|
+
M = Se(
|
|
550
550
|
/*otp*/
|
|
551
551
|
m[2]
|
|
552
552
|
);
|
|
553
553
|
let C;
|
|
554
554
|
for (C = 0; C < M.length; C += 1) {
|
|
555
|
-
const
|
|
556
|
-
b[C] ? b[C].p(
|
|
555
|
+
const z = Le(m, M, C);
|
|
556
|
+
b[C] ? b[C].p(z, y) : (b[C] = Ie(z), b[C].c(), b[C].m(T, null));
|
|
557
557
|
}
|
|
558
558
|
for (; C < b.length; C += 1)
|
|
559
559
|
b[C].d(1);
|
|
@@ -561,22 +561,22 @@ function wt(n) {
|
|
|
561
561
|
}
|
|
562
562
|
},
|
|
563
563
|
d(m) {
|
|
564
|
-
m &&
|
|
564
|
+
m && S(t), st(b, m);
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
}
|
|
568
|
-
function
|
|
568
|
+
function yt(n) {
|
|
569
569
|
let t;
|
|
570
570
|
return {
|
|
571
571
|
c() {
|
|
572
572
|
t = v("div"), t.innerHTML = '<span class="OtpLoader"></span>', r(t, "class", "OtpLoaderContainer");
|
|
573
573
|
},
|
|
574
574
|
m(e, o) {
|
|
575
|
-
|
|
575
|
+
O(e, t, o);
|
|
576
576
|
},
|
|
577
|
-
p:
|
|
577
|
+
p: ye,
|
|
578
578
|
d(e) {
|
|
579
|
-
e &&
|
|
579
|
+
e && S(t);
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
}
|
|
@@ -623,10 +623,10 @@ function Ie(n) {
|
|
|
623
623
|
n[11], r(t, "autocomplete", "off");
|
|
624
624
|
},
|
|
625
625
|
m(w, T) {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
626
|
+
O(w, t, T), s(), a || (p = [
|
|
627
|
+
ee(t, "input", f),
|
|
628
|
+
ee(t, "keydown", _),
|
|
629
|
+
ee(
|
|
630
630
|
t,
|
|
631
631
|
"paste",
|
|
632
632
|
/*handleOnPasteOtp*/
|
|
@@ -648,11 +648,11 @@ function Ie(n) {
|
|
|
648
648
|
n[71], s());
|
|
649
649
|
},
|
|
650
650
|
d(w) {
|
|
651
|
-
w &&
|
|
651
|
+
w && S(t), u(), a = !1, xe(p);
|
|
652
652
|
}
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function vt(n) {
|
|
656
656
|
let t, e = (
|
|
657
657
|
/*$_*/
|
|
658
658
|
n[19]("submit") + ""
|
|
@@ -666,7 +666,7 @@ function yt(n) {
|
|
|
666
666
|
n[15];
|
|
667
667
|
},
|
|
668
668
|
m(s, u) {
|
|
669
|
-
|
|
669
|
+
O(s, t, u), d(t, o), a || (p = ee(
|
|
670
670
|
t,
|
|
671
671
|
"click",
|
|
672
672
|
/*submitOtp*/
|
|
@@ -676,7 +676,7 @@ function yt(n) {
|
|
|
676
676
|
p(s, u) {
|
|
677
677
|
u[0] & /*$_*/
|
|
678
678
|
524288 && e !== (e = /*$_*/
|
|
679
|
-
s[19]("submit") + "") &&
|
|
679
|
+
s[19]("submit") + "") && P(o, e), u[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
680
680
|
40980 && i !== (i = /*otp*/
|
|
681
681
|
s[2].join("").length !== /*config*/
|
|
682
682
|
s[4].inputLength || /*isSubmitting*/
|
|
@@ -684,11 +684,11 @@ function yt(n) {
|
|
|
684
684
|
s[15]) && (t.disabled = i);
|
|
685
685
|
},
|
|
686
686
|
d(s) {
|
|
687
|
-
s &&
|
|
687
|
+
s && S(t), a = !1, p();
|
|
688
688
|
}
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
|
-
function
|
|
691
|
+
function kt(n) {
|
|
692
692
|
let t, e = (
|
|
693
693
|
/*$_*/
|
|
694
694
|
n[19]("resendOtp") + ""
|
|
@@ -698,7 +698,7 @@ function vt(n) {
|
|
|
698
698
|
t = v("button"), o = L(e), r(t, "class", "OtpButton");
|
|
699
699
|
},
|
|
700
700
|
m(p, s) {
|
|
701
|
-
|
|
701
|
+
O(p, t, s), d(t, o), i || (a = ee(
|
|
702
702
|
t,
|
|
703
703
|
"click",
|
|
704
704
|
/*handleResendOtp*/
|
|
@@ -708,19 +708,19 @@ function vt(n) {
|
|
|
708
708
|
p(p, s) {
|
|
709
709
|
s[0] & /*$_*/
|
|
710
710
|
524288 && e !== (e = /*$_*/
|
|
711
|
-
p[19]("resendOtp") + "") &&
|
|
711
|
+
p[19]("resendOtp") + "") && P(o, e);
|
|
712
712
|
},
|
|
713
713
|
d(p) {
|
|
714
|
-
p &&
|
|
714
|
+
p && S(t), i = !1, a();
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function Ct(n) {
|
|
719
719
|
let t;
|
|
720
720
|
function e(a, p) {
|
|
721
721
|
return (
|
|
722
722
|
/*hasConfigErrors*/
|
|
723
|
-
a[7] ?
|
|
723
|
+
a[7] ? ut : pt
|
|
724
724
|
);
|
|
725
725
|
}
|
|
726
726
|
let o = e(n), i = o(n);
|
|
@@ -729,56 +729,56 @@ function kt(n) {
|
|
|
729
729
|
t = v("div"), i.c(), r(t, "class", "OtpContent");
|
|
730
730
|
},
|
|
731
731
|
m(a, p) {
|
|
732
|
-
|
|
732
|
+
O(a, t, p), i.m(t, null), n[44](t);
|
|
733
733
|
},
|
|
734
734
|
p(a, p) {
|
|
735
735
|
o === (o = e(a)) && i ? i.p(a, p) : (i.d(1), i = o(a), i && (i.c(), i.m(t, null)));
|
|
736
736
|
},
|
|
737
|
-
i:
|
|
738
|
-
o:
|
|
737
|
+
i: ye,
|
|
738
|
+
o: ye,
|
|
739
739
|
d(a) {
|
|
740
|
-
a &&
|
|
740
|
+
a && S(t), i.d(), n[44](null);
|
|
741
741
|
}
|
|
742
742
|
};
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function Et(n, t, e) {
|
|
745
745
|
let o, i, a;
|
|
746
|
-
|
|
747
|
-
let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0,
|
|
748
|
-
const ue = { SMS: "sms", EMAIL: "email" },
|
|
746
|
+
et(n, ot, (l) => e(19, a = l));
|
|
747
|
+
let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, z = "", X = "", W = !1, j = !1, I = "", te = "", q = "", Q = !1, le = !1, Z = !1, E = "", A = {}, N = null, re = !1, se = !1, ae = "", F, de, U = [], B = null, G = 0, ce = !1, pe = !1;
|
|
748
|
+
const ue = { SMS: "sms", EMAIL: "email" }, $ = {
|
|
749
749
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
750
750
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
751
751
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
752
752
|
};
|
|
753
|
-
Object.keys(
|
|
754
|
-
|
|
753
|
+
Object.keys(Te).forEach((l) => {
|
|
754
|
+
Me(l, Te[l]);
|
|
755
755
|
});
|
|
756
|
-
const
|
|
757
|
-
|
|
758
|
-
},
|
|
756
|
+
const K = () => {
|
|
757
|
+
at(f);
|
|
758
|
+
}, V = () => {
|
|
759
759
|
fetch(T).then((l) => l.json()).then((l) => {
|
|
760
760
|
Object.keys(l).forEach((h) => {
|
|
761
|
-
|
|
761
|
+
Me(h, l[h]);
|
|
762
762
|
});
|
|
763
763
|
}).catch((l) => {
|
|
764
764
|
console.log(l);
|
|
765
765
|
});
|
|
766
|
-
},
|
|
766
|
+
}, fe = async (l) => {
|
|
767
767
|
if (l.detail?.["x-step-up-required"]) {
|
|
768
|
-
if (e(7, j = !1), e(6, W = !1), e(8,
|
|
769
|
-
e(3, m = !1), e(7, j = !0), e(8,
|
|
768
|
+
if (e(7, j = !1), e(6, W = !1), e(8, I = ""), te = l.detail["x-step-up-token"], q = l.detail.flow, !te || !q) {
|
|
769
|
+
e(3, m = !1), e(7, j = !0), e(8, I = a("configError"));
|
|
770
770
|
return;
|
|
771
771
|
}
|
|
772
772
|
e(12, re = !1), e(3, m = !1);
|
|
773
773
|
}
|
|
774
|
-
},
|
|
775
|
-
B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6, W = !1), e(7, j = !1), e(8,
|
|
776
|
-
},
|
|
777
|
-
|
|
778
|
-
},
|
|
779
|
-
const g = new URL(`${_}/api/pam/v1/mfa/challenge/${
|
|
780
|
-
H.append("accept", "application/json"), H.append("Content-Type", "application/json"), H.append("X-SessionId", `${w}`), e(16,
|
|
781
|
-
const
|
|
774
|
+
}, ne = () => {
|
|
775
|
+
B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6, W = !1), e(7, j = !1), e(8, I = ""), e(10, le = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, re = !1), e(38, A = {});
|
|
776
|
+
}, D = () => {
|
|
777
|
+
ne();
|
|
778
|
+
}, me = () => new Promise((l, h) => {
|
|
779
|
+
const g = new URL(`${_}/api/pam/v1/mfa/challenge/${te}`), H = new Headers();
|
|
780
|
+
H.append("accept", "application/json"), H.append("Content-Type", "application/json"), H.append("X-SessionId", `${w}`), e(16, pe = !0);
|
|
781
|
+
const _e = {
|
|
782
782
|
method: "PATCH",
|
|
783
783
|
headers: H,
|
|
784
784
|
body: JSON.stringify({
|
|
@@ -786,12 +786,12 @@ function Ct(n, t, e) {
|
|
|
786
786
|
templateId: M
|
|
787
787
|
})
|
|
788
788
|
};
|
|
789
|
-
fetch(g,
|
|
790
|
-
e(15,
|
|
791
|
-
}).catch((
|
|
789
|
+
fetch(g, _e).then((Ee) => Ee.json()).then(() => {
|
|
790
|
+
e(15, ce = !1), k(), ge(), l();
|
|
791
|
+
}).catch((Ee) => {
|
|
792
792
|
h();
|
|
793
793
|
});
|
|
794
|
-
}),
|
|
794
|
+
}), oe = () => {
|
|
795
795
|
N && clearInterval(N), N = setInterval(
|
|
796
796
|
() => {
|
|
797
797
|
const l = { ...A };
|
|
@@ -802,61 +802,61 @@ function Ct(n, t, e) {
|
|
|
802
802
|
},
|
|
803
803
|
1e3
|
|
804
804
|
);
|
|
805
|
-
},
|
|
805
|
+
}, x = (l) => {
|
|
806
806
|
e(0, E = l);
|
|
807
|
-
},
|
|
807
|
+
}, c = async () => {
|
|
808
808
|
if (!(!E || A[E] && A[E] > 0)) {
|
|
809
809
|
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
|
|
810
810
|
try {
|
|
811
|
-
await
|
|
811
|
+
await me(), await we(), e(38, A = {
|
|
812
812
|
...A,
|
|
813
813
|
[E]: 30
|
|
814
|
-
}),
|
|
814
|
+
}), oe(), e(12, re = !0), k(), ge();
|
|
815
815
|
} catch (l) {
|
|
816
|
-
console.error("Error submitting channel:", l), e(6, W = !0), e(8,
|
|
816
|
+
console.error("Error submitting channel:", l), e(6, W = !0), e(8, I = a("submissionError"));
|
|
817
817
|
} finally {
|
|
818
818
|
e(3, m = !1);
|
|
819
819
|
}
|
|
820
820
|
}
|
|
821
|
-
}, c = () => {
|
|
822
|
-
const l = new Date(I), h = new Date(U), g = /* @__PURE__ */ new Date(), H = h.getTime() - g.getTime();
|
|
823
|
-
ee = l.getTime() - H;
|
|
824
|
-
const fe = Date.now(), we = Math.max(0, Math.floor((ee - fe) / 1e3));
|
|
825
|
-
e(5, C = we);
|
|
826
821
|
}, k = () => {
|
|
822
|
+
const l = new Date(z), h = new Date(X), g = /* @__PURE__ */ new Date(), H = h.getTime() - g.getTime();
|
|
823
|
+
G = l.getTime() - H;
|
|
824
|
+
const he = Date.now(), _e = Math.max(0, Math.floor((G - he) / 1e3));
|
|
825
|
+
e(5, C = _e);
|
|
826
|
+
}, ge = () => {
|
|
827
827
|
B && clearInterval(B), B = setInterval(
|
|
828
828
|
() => {
|
|
829
|
-
const l = Date.now(), h = Math.max(0, Math.floor((
|
|
830
|
-
e(5, C = h), e(11,
|
|
829
|
+
const l = Date.now(), h = Math.max(0, Math.floor((G - l) / 1e3));
|
|
830
|
+
e(5, C = h), e(11, Z = h <= 0), h <= 0 && (clearInterval(B), B = null, e(9, Q = !0), e(6, W = !1), e(10, le = !1));
|
|
831
831
|
},
|
|
832
832
|
1e3
|
|
833
833
|
);
|
|
834
|
-
},
|
|
834
|
+
}, Re = (l) => {
|
|
835
835
|
const h = Math.floor(l / 60), g = l % 60;
|
|
836
836
|
return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
|
|
837
|
-
},
|
|
837
|
+
}, be = (l, h) => {
|
|
838
838
|
const g = [...b];
|
|
839
839
|
g[l] = h.toUpperCase(), e(2, b = g), g.join("") !== ae && e(13, se = !1);
|
|
840
|
-
},
|
|
840
|
+
}, Pe = (l) => {
|
|
841
841
|
l.preventDefault();
|
|
842
842
|
const g = (l.clipboardData?.getData("text")?.trim() || "").slice(0, y.inputLength).split("");
|
|
843
|
-
e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]),
|
|
844
|
-
}, ye = (l, h) => {
|
|
845
|
-
const g = l.target, H = g.value;
|
|
846
|
-
/^[a-z0-9]$/i.test(H) && (ge(h, H), K[h + 1]?.focus()), g.value = "";
|
|
843
|
+
e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), U[g.length]?.focus(), g.length === y.inputLength && Ce();
|
|
847
844
|
}, ve = (l, h) => {
|
|
845
|
+
const g = l.target, H = g.value;
|
|
846
|
+
/^[a-z0-9]$/i.test(H) && (be(h, H), U[h + 1]?.focus()), g.value = "";
|
|
847
|
+
}, ke = (l, h) => {
|
|
848
848
|
const g = l.key, H = l.ctrlKey || l.metaKey;
|
|
849
849
|
if (/^[a-z0-9]$/i.test(g)) {
|
|
850
850
|
if (H && g.toLowerCase() === "v")
|
|
851
851
|
return;
|
|
852
|
-
l.preventDefault(),
|
|
852
|
+
l.preventDefault(), be(h, g), U[h + 1]?.focus();
|
|
853
853
|
} else
|
|
854
|
-
g === "Backspace" && (l.preventDefault(), b[h] !== "" &&
|
|
855
|
-
},
|
|
856
|
-
|
|
854
|
+
g === "Backspace" && (l.preventDefault(), b[h] !== "" && be(h, ""), U[h - 1]?.focus());
|
|
855
|
+
}, De = () => {
|
|
856
|
+
q == "stateful" && (me(), e(9, Q = !1));
|
|
857
857
|
const l = new CustomEvent("otpResendRequested");
|
|
858
858
|
window.dispatchEvent(l);
|
|
859
|
-
},
|
|
859
|
+
}, je = (l) => {
|
|
860
860
|
window.dispatchEvent(new CustomEvent(
|
|
861
861
|
"otpSubmitted",
|
|
862
862
|
{
|
|
@@ -867,19 +867,19 @@ function Ct(n, t, e) {
|
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
));
|
|
870
|
-
},
|
|
871
|
-
const h = new URL(`/api/nwa/api/v1/mfa/challenge/${
|
|
870
|
+
}, Be = async (l) => {
|
|
871
|
+
const h = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, _);
|
|
872
872
|
h.searchParams.append("input", l);
|
|
873
873
|
try {
|
|
874
874
|
const g = await fetch(h.href, { method: "POST" });
|
|
875
875
|
if (g.status === 200) {
|
|
876
|
-
|
|
876
|
+
Ve();
|
|
877
877
|
return;
|
|
878
878
|
}
|
|
879
879
|
const H = await g.json();
|
|
880
880
|
throw new Error(H.message);
|
|
881
881
|
} catch (g) {
|
|
882
|
-
if (await
|
|
882
|
+
if (await we(), g.message === $.INTERNAL_SERVER_ERROR) {
|
|
883
883
|
if (y.numberOfValidateAttempts === y.maxValidationAttempts - 1) {
|
|
884
884
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
885
885
|
{
|
|
@@ -893,14 +893,14 @@ function Ct(n, t, e) {
|
|
|
893
893
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
894
894
|
return;
|
|
895
895
|
}
|
|
896
|
-
e(6, W = !0), e(8,
|
|
896
|
+
e(6, W = !0), e(8, I = a("invalidOtp")), we();
|
|
897
897
|
return;
|
|
898
898
|
}
|
|
899
|
-
g.message ===
|
|
899
|
+
g.message === $.MAX_INVALIDATE && (e(6, W = !0), e(8, I = a("invalidOtp"))), g.details === $.MAX_ATTEMPTS_EXCEEDED && e(15, ce = !0), console.error("OTP submission failed:", g), e(6, W = !0), e(8, I = a("submissionError"));
|
|
900
900
|
} finally {
|
|
901
901
|
e(3, m = !1);
|
|
902
902
|
}
|
|
903
|
-
},
|
|
903
|
+
}, Ve = () => {
|
|
904
904
|
window.dispatchEvent(new CustomEvent(
|
|
905
905
|
"otpSuccess",
|
|
906
906
|
{
|
|
@@ -909,45 +909,45 @@ function Ct(n, t, e) {
|
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
));
|
|
912
|
-
},
|
|
912
|
+
}, He = () => {
|
|
913
913
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
914
|
-
},
|
|
914
|
+
}, Ce = async () => {
|
|
915
915
|
if (b.join("").length !== y.inputLength) {
|
|
916
|
-
e(6, W = !0), e(8,
|
|
916
|
+
e(6, W = !0), e(8, I = a("invalidOtp"));
|
|
917
917
|
return;
|
|
918
918
|
}
|
|
919
919
|
const l = b.join("");
|
|
920
|
-
e(13, se = !0), ae = l, e(3, m = !0), e(6, W = !1), e(8,
|
|
921
|
-
},
|
|
920
|
+
e(13, se = !0), ae = l, e(3, m = !0), e(6, W = !1), e(8, I = ""), q === "stateless" && je(l), q === "stateful" && await Be(l);
|
|
921
|
+
}, we = async () => {
|
|
922
922
|
if (_)
|
|
923
923
|
try {
|
|
924
924
|
e(3, m = !0);
|
|
925
|
-
const l = new URL(`/api/nwa/api/v1/mfa/challenge/${
|
|
925
|
+
const l = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, _), h = await fetch(l.href), g = await h.json();
|
|
926
926
|
if (h.ok)
|
|
927
|
-
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9,
|
|
928
|
-
else if (g && g.details ===
|
|
927
|
+
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Q = !1), z = y.expirationTime, X = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, W = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, le = !0), e(3, m = !1), k(), ge(), e(16, pe = !1);
|
|
928
|
+
else if (g && g.details === $.MAX_ATTEMPTS_EXCEEDED)
|
|
929
929
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
930
930
|
else {
|
|
931
931
|
const H = g && g.message || `Failed to load config. Status: ${h.status}`;
|
|
932
932
|
throw new Error(H);
|
|
933
933
|
}
|
|
934
934
|
} catch (l) {
|
|
935
|
-
e(3, m = !1), e(7, j = !0), e(8,
|
|
935
|
+
e(3, m = !1), e(7, j = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", l);
|
|
936
936
|
}
|
|
937
937
|
};
|
|
938
|
-
|
|
939
|
-
window.removeEventListener("stepUpAuthRequired",
|
|
938
|
+
tt(() => (window.addEventListener("stepUpAuthRequired", fe, !1), window.addEventListener("closePopup", D, !1), () => {
|
|
939
|
+
window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B), N && clearInterval(N);
|
|
940
940
|
}));
|
|
941
|
-
const
|
|
942
|
-
function
|
|
943
|
-
|
|
944
|
-
|
|
941
|
+
const Ne = () => x(ue.SMS), We = () => x(ue.EMAIL);
|
|
942
|
+
function qe(l, h) {
|
|
943
|
+
Oe[l ? "unshift" : "push"](() => {
|
|
944
|
+
U[h] = l, e(14, U);
|
|
945
945
|
});
|
|
946
946
|
}
|
|
947
|
-
const Fe = (l, h) =>
|
|
948
|
-
function
|
|
949
|
-
|
|
950
|
-
|
|
947
|
+
const Fe = (l, h) => ve(h, l), Ue = (l, h) => ke(h, l);
|
|
948
|
+
function Xe(l) {
|
|
949
|
+
Oe[l ? "unshift" : "push"](() => {
|
|
950
|
+
F = l, e(1, F);
|
|
951
951
|
});
|
|
952
952
|
}
|
|
953
953
|
return n.$$set = (l) => {
|
|
@@ -955,48 +955,48 @@ function Ct(n, t, e) {
|
|
|
955
955
|
}, n.$$.update = () => {
|
|
956
956
|
n.$$.dirty[0] & /*customStylingContainer*/
|
|
957
957
|
2 | n.$$.dirty[1] & /*clientstyling*/
|
|
958
|
-
1 && p &&
|
|
958
|
+
1 && p && F && it(F, p), n.$$.dirty[0] & /*customStylingContainer*/
|
|
959
959
|
2 | n.$$.dirty[1] & /*clientstylingurl*/
|
|
960
|
-
2 && s &&
|
|
960
|
+
2 && s && F && lt(F, s), n.$$.dirty[0] & /*customStylingContainer*/
|
|
961
961
|
2 | n.$$.dirty[1] & /*mbsource*/
|
|
962
|
-
4 && u &&
|
|
963
|
-
8 && f &&
|
|
964
|
-
72 && f && T &&
|
|
962
|
+
4 && u && F && nt(F, `${u}.Style`, de), n.$$.dirty[1] & /*lang*/
|
|
963
|
+
8 && f && K(), n.$$.dirty[1] & /*lang, translationurl*/
|
|
964
|
+
72 && f && T && V(), n.$$.dirty[0] & /*selectedChannel*/
|
|
965
965
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
966
966
|
128 && e(18, o = E && (!A[E] || A[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
|
|
967
967
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
968
968
|
128 && e(17, i = E && A[E] || 0);
|
|
969
969
|
}, [
|
|
970
970
|
E,
|
|
971
|
-
|
|
971
|
+
F,
|
|
972
972
|
b,
|
|
973
973
|
m,
|
|
974
974
|
y,
|
|
975
975
|
C,
|
|
976
976
|
W,
|
|
977
977
|
j,
|
|
978
|
-
|
|
979
|
-
|
|
978
|
+
I,
|
|
979
|
+
Q,
|
|
980
980
|
le,
|
|
981
|
-
|
|
981
|
+
Z,
|
|
982
982
|
re,
|
|
983
983
|
se,
|
|
984
|
-
|
|
985
|
-
G,
|
|
984
|
+
U,
|
|
986
985
|
ce,
|
|
986
|
+
pe,
|
|
987
987
|
i,
|
|
988
988
|
o,
|
|
989
989
|
a,
|
|
990
990
|
ue,
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
xe,
|
|
991
|
+
x,
|
|
992
|
+
c,
|
|
994
993
|
Re,
|
|
995
|
-
ye,
|
|
996
|
-
ve,
|
|
997
994
|
Pe,
|
|
998
|
-
|
|
995
|
+
ve,
|
|
999
996
|
ke,
|
|
997
|
+
De,
|
|
998
|
+
He,
|
|
999
|
+
Ce,
|
|
1000
1000
|
M,
|
|
1001
1001
|
p,
|
|
1002
1002
|
s,
|
|
@@ -1006,22 +1006,22 @@ function Ct(n, t, e) {
|
|
|
1006
1006
|
w,
|
|
1007
1007
|
T,
|
|
1008
1008
|
A,
|
|
1009
|
-
He,
|
|
1010
1009
|
Ne,
|
|
1011
1010
|
We,
|
|
1012
|
-
Fe,
|
|
1013
1011
|
qe,
|
|
1014
|
-
|
|
1012
|
+
Fe,
|
|
1013
|
+
Ue,
|
|
1014
|
+
Xe
|
|
1015
1015
|
];
|
|
1016
1016
|
}
|
|
1017
|
-
class
|
|
1017
|
+
class Ot extends Ye {
|
|
1018
1018
|
constructor(t) {
|
|
1019
|
-
super(),
|
|
1019
|
+
super(), Je(
|
|
1020
1020
|
this,
|
|
1021
1021
|
t,
|
|
1022
|
+
Et,
|
|
1022
1023
|
Ct,
|
|
1023
|
-
|
|
1024
|
-
Je,
|
|
1024
|
+
Ze,
|
|
1025
1025
|
{
|
|
1026
1026
|
clientstyling: 31,
|
|
1027
1027
|
clientstylingurl: 32,
|
|
@@ -1032,7 +1032,7 @@ class Et extends Ge {
|
|
|
1032
1032
|
translationurl: 37,
|
|
1033
1033
|
templateid: 30
|
|
1034
1034
|
},
|
|
1035
|
-
|
|
1035
|
+
ct,
|
|
1036
1036
|
[-1, -1, -1]
|
|
1037
1037
|
);
|
|
1038
1038
|
}
|
|
@@ -1085,7 +1085,7 @@ class Et extends Ge {
|
|
|
1085
1085
|
this.$$set({ templateid: t }), ie();
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
|
-
|
|
1088
|
+
Qe(Ot, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1089
1089
|
export {
|
|
1090
|
-
|
|
1090
|
+
Ot as default
|
|
1091
1091
|
};
|