@everymatrix/cashier-page 1.89.3 → 1.89.100
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-B-cM-nlR.js +5797 -0
- package/components/CashierCarousel-CXoovlrR.js +5835 -0
- package/components/CashierCarousel-DMrMmClP.cjs +23 -0
- package/components/{CashierError-Ojxcg-Ka.js → CashierError-BadEP4Hf.js} +272 -197
- package/components/{CashierError-B4wZJoy3.js → CashierError-CbEfmBWG.js} +272 -197
- package/components/CashierError-CfXNs5SO.cjs +1 -0
- package/components/CashierHeader-B7FnLv3f.js +397 -0
- package/components/CashierHeader-BbP0idUh.js +397 -0
- package/components/CashierHeader-PvXFHPzQ.cjs +1 -0
- package/components/CashierIframeRedirect-C0AQ3pLh.cjs +1 -0
- package/components/{CashierIframeRedirect-D4_P5tea.js → CashierIframeRedirect-C3muwYdO.js} +106 -91
- package/components/{CashierIframeRedirect-CweMc_nE.js → CashierIframeRedirect-Ti9O6xV-.js} +108 -93
- package/components/CashierMethodDetails-Bpr9Q04a.cjs +85 -0
- package/components/CashierMethodDetails-C1YivsY0.js +11217 -0
- package/components/CashierMethodDetails-Dm0LrfPv.js +11177 -0
- package/components/CashierMethodsList-BQyTMxwJ.cjs +1 -0
- package/components/{CashierMethodsList-ZIeDaX82.js → CashierMethodsList-Becd-_0j.js} +276 -282
- package/components/{CashierMethodsList-DT2-Xs0d.js → CashierMethodsList-BgT8GtZO.js} +338 -345
- package/components/{CashierModal-auMot9uK.js → CashierModal-B1pfSpCs.js} +39 -40
- package/components/{CashierModal-1ob-ORdo.js → CashierModal-BsrmgnKi.js} +35 -36
- package/components/CashierModal-DF8meLAZ.cjs +1 -0
- package/components/CashierNotifications-B8bRZMac.cjs +1 -0
- package/components/{CashierNotifications-1zS4jTFr.js → CashierNotifications-BXxNDzMM.js} +3 -3
- package/components/{CashierNotifications-W-vKJfau.js → CashierNotifications-DbJuswYZ.js} +5 -5
- package/components/CashierPage-B-8PEr0a.js +4470 -0
- package/components/CashierPage-BvBfbCf3.cjs +1 -0
- package/components/CashierPage-DpttN4Et.js +4500 -0
- package/components/{CashierReceiptPage-BRnTuxiH.js → CashierReceiptPage-COp3NsUw.js} +541 -537
- package/components/{CashierReceiptPage-D_7vOvSQ.js → CashierReceiptPage-CQ6d-Cj-.js} +614 -570
- package/components/CashierReceiptPage-pHomkDwd.cjs +28 -0
- package/components/{CashierSessionExpirationModal-pj6DNvOs.js → CashierSessionExpirationModal-B4o06oWl.js} +267 -280
- package/components/CashierSessionExpirationModal-CwFxQe0o.cjs +2 -0
- package/components/{CashierSessionExpirationModal-CaUKhvg_.js → CashierSessionExpirationModal-v2UJ63eL.js} +254 -267
- package/components/CashierSpinner-DKYO0FtD.cjs +1 -0
- package/components/{CashierSpinner-BWVLhGca.js → CashierSpinner-DMrM0bGx.js} +10 -11
- package/components/{CashierSpinner-N3hAvTEu.js → CashierSpinner-gJqeYU1n.js} +12 -13
- package/components/{CashierStepUp-CBhNhpVX.js → CashierStepUp-B530YrSp.js} +226 -227
- package/components/{CashierStepUp-Dlw2xvmv.js → CashierStepUp-BtmD9q4i.js} +300 -301
- package/components/CashierStepUp-DKytvkqu.cjs +1 -0
- package/components/{CashierTransactionHistory-D3VWhujp.js → CashierTransactionHistory-CsBXpcL2.js} +71 -71
- package/components/CashierTransactionHistory-DKbhA_Rk.cjs +1 -0
- package/components/{CashierTransactionHistory-B1-7-cnI.js → CashierTransactionHistory-d_VQTD25.js} +66 -66
- package/components/CashierVerifications-CaqLtBnF.cjs +1 -0
- package/components/{CashierVerifications-DG89tnTY.js → CashierVerifications-D7ImXlXI.js} +264 -269
- package/components/{CashierVerifications-Bqv3zHaE.js → CashierVerifications-DCEd6r59.js} +268 -273
- package/components/TxnStatusIcon-CWkyVMIU.cjs +1 -0
- package/components/{TxnStatusIcon-f6MQV7GX.js → TxnStatusIcon-DCSCOAn2.js} +1 -1
- package/components/{TxnStatusIcon-C6FZzOb5.js → TxnStatusIcon-DRFHs_0F.js} +8 -8
- package/components/{TxnTypeIcons-C7BUNYMQ.js → TxnTypeIcons-Bg7QJKuH.js} +1 -1
- package/components/TxnTypeIcons-CTQXT_j5.cjs +1 -0
- package/components/{TxnTypeIcons-DnwUM158.js → TxnTypeIcons-D37zQDwq.js} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +7 -7
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-BoRWOAWM.js +0 -674
- package/components/CashierCarousel-DEYnlAHr.cjs +0 -1
- package/components/CashierCarousel-KMbJ36Hw.js +0 -671
- package/components/CashierError-DTpeCDrd.cjs +0 -1
- package/components/CashierHeader-70bDXUYr.js +0 -456
- package/components/CashierHeader-C3wqXw8i.js +0 -456
- package/components/CashierHeader-DTiQ2Uql.cjs +0 -1
- package/components/CashierIframeRedirect-LL9whfSj.cjs +0 -1
- package/components/CashierMethodDetails-BbgZJsGx.js +0 -10753
- package/components/CashierMethodDetails-C0EHnoEF.js +0 -10713
- package/components/CashierMethodDetails-DKWU_-EC.cjs +0 -85
- package/components/CashierMethodsList-BfeSUOP6.cjs +0 -1
- package/components/CashierModal-CGNr1dtp.cjs +0 -1
- package/components/CashierNotifications-DwpVx88o.cjs +0 -1
- package/components/CashierPage-CsT0xRQt.js +0 -9765
- package/components/CashierPage-Cz6Sy2lO.js +0 -9818
- package/components/CashierPage-D7cZXI1W.cjs +0 -23
- package/components/CashierReceiptPage-1gI7UF3o.cjs +0 -28
- package/components/CashierSessionExpirationModal-DUuiIJeI.cjs +0 -2
- package/components/CashierSpinner-BY_PNaky.cjs +0 -1
- package/components/CashierStepUp-10z4YQDr.cjs +0 -1
- package/components/CashierTransactionHistory-hd_XBwhR.cjs +0 -1
- package/components/CashierVerifications-B0qGbQ_e.cjs +0 -1
- package/components/TxnStatusIcon-Cp6DCnG3.cjs +0 -1
- package/components/TxnTypeIcons-BLR0KOZr.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Qe = Object.defineProperty, $e = Object.defineProperties;
|
|
2
2
|
var et = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Me = Object.getOwnPropertySymbols;
|
|
4
4
|
var tt = Object.prototype.hasOwnProperty, nt = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Te = (n, t, e) => t in n ?
|
|
5
|
+
var Te = (n, t, e) => t in n ? Qe(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
7
|
tt.call(t, e) && Te(n, e, t[e]);
|
|
8
8
|
if (Me)
|
|
@@ -10,29 +10,28 @@ var Te = (n, t, e) => t in n ? Ze(n, t, { enumerable: !0, configurable: !0, writ
|
|
|
10
10
|
nt.call(t, e) && Te(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
12
|
}, Le = (n, t) => $e(n, et(t));
|
|
13
|
-
var me = (n, t, e) => new Promise((
|
|
13
|
+
var me = (n, t, e) => new Promise((i, l) => {
|
|
14
14
|
var a = (c) => {
|
|
15
15
|
try {
|
|
16
16
|
s(e.next(c));
|
|
17
17
|
} catch (f) {
|
|
18
|
-
|
|
18
|
+
l(f);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, u = (c) => {
|
|
21
21
|
try {
|
|
22
22
|
s(e.throw(c));
|
|
23
23
|
} catch (f) {
|
|
24
|
-
|
|
24
|
+
l(f);
|
|
25
25
|
}
|
|
26
|
-
}, s = (c) => c.done ?
|
|
26
|
+
}, s = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(a, u);
|
|
27
27
|
s((e = e.apply(n, t)).next());
|
|
28
28
|
});
|
|
29
|
-
import { a as
|
|
30
|
-
import { s as ht, a as gt, b as bt } from "./CashierHeader-C3wqXw8i.js";
|
|
29
|
+
import { a as it, $ as lt, S as ot, b as rt, s as st, f as oe, c as at, G as ke, e as O, k as S, m as v, o as r, p as ct, q as ut, y as ze, v as D, l as d, x as te, X as J, n as x, w as L, a2 as Be, W as Z, r as pt, Z as Ae, a4 as dt, B as ft, C as mt, D as ht, E as gt, F as bt } from "./CashierCarousel-CXoovlrR.js";
|
|
31
30
|
function Re(n, t) {
|
|
32
|
-
|
|
31
|
+
it(n, t);
|
|
33
32
|
}
|
|
34
33
|
function wt(n) {
|
|
35
|
-
|
|
34
|
+
lt.set(n);
|
|
36
35
|
}
|
|
37
36
|
const Ie = {
|
|
38
37
|
en: {
|
|
@@ -74,8 +73,8 @@ const Ie = {
|
|
|
74
73
|
submissionError: "Bir şeyler ters gitti. Lütfen tekrar deneyin.",
|
|
75
74
|
otpExpiredMessage: "Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",
|
|
76
75
|
timeRemaining: "Kodun süresi doluyor:",
|
|
77
|
-
selectChannelTitle: "
|
|
78
|
-
selectChannelMessage: "
|
|
76
|
+
selectChannelTitle: "Doğrulama yöntemi seçin",
|
|
77
|
+
selectChannelMessage: "Doğrulama kodunuzu nasıl almak istediğinizi seçin",
|
|
79
78
|
channelSMS: "SMS kodu",
|
|
80
79
|
channelEmail: "E-posta kodu",
|
|
81
80
|
sendCode: "Kodu gönder",
|
|
@@ -109,23 +108,23 @@ function _t(n) {
|
|
|
109
108
|
at(n, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
|
|
110
109
|
}
|
|
111
110
|
function Pe(n, t, e) {
|
|
112
|
-
const
|
|
113
|
-
return
|
|
111
|
+
const i = n.slice();
|
|
112
|
+
return i[69] = t[e], i[70] = t, i[71] = e, i;
|
|
114
113
|
}
|
|
115
114
|
function yt(n) {
|
|
116
|
-
let t, e,
|
|
115
|
+
let t, e, i, l, a, u, s, c, f, _, w, T, M, b, m, y, C, R = (
|
|
117
116
|
/*$_*/
|
|
118
117
|
n[19]("channelSMS") + ""
|
|
119
|
-
), K,
|
|
118
|
+
), K, F, V, I, ne, q, Q, re, $, E, z, W, se, ae, ce = (
|
|
120
119
|
/*$_*/
|
|
121
120
|
n[19]("channelEmail") + ""
|
|
122
|
-
), U, he, X, H, Y,
|
|
123
|
-
function de(
|
|
121
|
+
), U, he, X, H, Y, ue, pe;
|
|
122
|
+
function de(p, k) {
|
|
124
123
|
return (
|
|
125
124
|
/*showResendOtp*/
|
|
126
|
-
|
|
125
|
+
p[9] ? Et : (
|
|
127
126
|
/*showOtpInput*/
|
|
128
|
-
|
|
127
|
+
p[12] ? kt : Ct
|
|
129
128
|
)
|
|
130
129
|
);
|
|
131
130
|
}
|
|
@@ -133,38 +132,38 @@ function yt(n) {
|
|
|
133
132
|
/*selectedChannel*/
|
|
134
133
|
n[0] && De(n)
|
|
135
134
|
);
|
|
136
|
-
function ge(
|
|
135
|
+
function ge(p, k) {
|
|
137
136
|
if (
|
|
138
137
|
/*isLoading*/
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
p[3] && /*showOtpInput*/
|
|
139
|
+
p[12]
|
|
141
140
|
)
|
|
142
|
-
return
|
|
141
|
+
return zt;
|
|
143
142
|
if (
|
|
144
143
|
/*showOtpInput*/
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
p[12] && /*config*/
|
|
145
|
+
p[4]
|
|
147
146
|
)
|
|
148
147
|
return Lt;
|
|
149
148
|
}
|
|
150
|
-
let
|
|
151
|
-
function be(
|
|
149
|
+
let ie = ge(n), j = ie && ie(n);
|
|
150
|
+
function be(p, k) {
|
|
152
151
|
if (
|
|
153
152
|
/*showResendOtp*/
|
|
154
|
-
|
|
153
|
+
p[9]
|
|
155
154
|
)
|
|
156
155
|
return Rt;
|
|
157
156
|
if (
|
|
158
157
|
/*showOtpInput*/
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
p[12] && /*config*/
|
|
159
|
+
p[4]
|
|
161
160
|
)
|
|
162
|
-
return
|
|
161
|
+
return At;
|
|
163
162
|
}
|
|
164
|
-
let
|
|
163
|
+
let le = be(n), P = le && le(n);
|
|
165
164
|
return {
|
|
166
165
|
c() {
|
|
167
|
-
t = v("div"), G.c(), e = x(),
|
|
166
|
+
t = v("div"), G.c(), e = x(), i = v("div"), l = v("label"), a = v("div"), u = 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), F = x(), V = v("label"), I = v("div"), ne = x(), q = v("input"), re = x(), $ = v("div"), E = J("svg"), z = 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"), Z(
|
|
168
167
|
a,
|
|
169
168
|
"checked",
|
|
170
169
|
/*selectedChannel*/
|
|
@@ -173,31 +172,31 @@ function yt(n) {
|
|
|
173
172
|
), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
|
|
174
173
|
n[20].SMS, s.checked = c = /*selectedChannel*/
|
|
175
174
|
n[0] === /*channels*/
|
|
176
|
-
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(
|
|
177
|
-
|
|
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(l, "class", "ChannelCheckbox"), Z(
|
|
176
|
+
l,
|
|
178
177
|
"selected",
|
|
179
178
|
/*selectedChannel*/
|
|
180
179
|
n[0] === /*channels*/
|
|
181
180
|
n[20].SMS
|
|
182
|
-
), r(I, "class", "RadioIndicator"),
|
|
181
|
+
), r(I, "class", "RadioIndicator"), Z(
|
|
183
182
|
I,
|
|
184
183
|
"checked",
|
|
185
184
|
/*selectedChannel*/
|
|
186
185
|
n[0] === /*channels*/
|
|
187
186
|
n[20].EMAIL
|
|
188
187
|
), r(q, "type", "radio"), r(q, "name", "channel"), q.value = /*channels*/
|
|
189
|
-
n[20].EMAIL, q.checked =
|
|
188
|
+
n[20].EMAIL, q.checked = Q = /*selectedChannel*/
|
|
190
189
|
n[0] === /*channels*/
|
|
191
|
-
n[20].EMAIL, r(
|
|
190
|
+
n[20].EMAIL, r(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "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"), Z(
|
|
192
191
|
V,
|
|
193
192
|
"selected",
|
|
194
193
|
/*selectedChannel*/
|
|
195
194
|
n[0] === /*channels*/
|
|
196
195
|
n[20].EMAIL
|
|
197
|
-
), r(
|
|
196
|
+
), r(i, "class", "ChannelSelection"), r(Y, "class", "OtpActionButtons");
|
|
198
197
|
},
|
|
199
|
-
m(
|
|
200
|
-
S(
|
|
198
|
+
m(p, k) {
|
|
199
|
+
S(p, t, k), G.m(t, null), S(p, e, k), S(p, i, k), d(i, l), d(l, a), d(l, u), d(l, s), d(l, f), d(l, _), d(_, w), d(w, T), d(w, M), d(w, b), d(w, m), d(_, y), d(_, C), d(C, K), d(i, F), d(i, V), d(V, I), d(V, ne), d(V, q), d(V, re), d(V, $), d($, E), d(E, z), d(E, W), d($, se), d($, ae), d(ae, U), S(p, he, k), N && N.m(p, k), S(p, X, k), j && j.m(p, k), S(p, H, k), S(p, Y, k), P && P.m(Y, null), ue || (pe = [
|
|
201
200
|
te(
|
|
202
201
|
s,
|
|
203
202
|
"change",
|
|
@@ -210,57 +209,57 @@ function yt(n) {
|
|
|
210
209
|
/*change_handler_1*/
|
|
211
210
|
n[40]
|
|
212
211
|
)
|
|
213
|
-
],
|
|
212
|
+
], ue = !0);
|
|
214
213
|
},
|
|
215
|
-
p(
|
|
216
|
-
ee === (ee = de(
|
|
217
|
-
1048577 &&
|
|
214
|
+
p(p, k) {
|
|
215
|
+
ee === (ee = de(p)) && G ? G.p(p, k) : (G.d(1), G = ee(p), G && (G.c(), G.m(t, null))), k[0] & /*selectedChannel, channels*/
|
|
216
|
+
1048577 && Z(
|
|
218
217
|
a,
|
|
219
218
|
"checked",
|
|
220
219
|
/*selectedChannel*/
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
p[0] === /*channels*/
|
|
221
|
+
p[20].SMS
|
|
223
222
|
), k[0] & /*selectedChannel*/
|
|
224
223
|
1 && c !== (c = /*selectedChannel*/
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
p[0] === /*channels*/
|
|
225
|
+
p[20].SMS) && (s.checked = c), k[0] & /*$_*/
|
|
227
226
|
524288 && R !== (R = /*$_*/
|
|
228
|
-
|
|
229
|
-
1048577 &&
|
|
230
|
-
|
|
227
|
+
p[19]("channelSMS") + "") && D(K, R), k[0] & /*selectedChannel, channels*/
|
|
228
|
+
1048577 && Z(
|
|
229
|
+
l,
|
|
231
230
|
"selected",
|
|
232
231
|
/*selectedChannel*/
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
p[0] === /*channels*/
|
|
233
|
+
p[20].SMS
|
|
235
234
|
), k[0] & /*selectedChannel, channels*/
|
|
236
|
-
1048577 &&
|
|
235
|
+
1048577 && Z(
|
|
237
236
|
I,
|
|
238
237
|
"checked",
|
|
239
238
|
/*selectedChannel*/
|
|
240
|
-
|
|
241
|
-
|
|
239
|
+
p[0] === /*channels*/
|
|
240
|
+
p[20].EMAIL
|
|
242
241
|
), k[0] & /*selectedChannel*/
|
|
243
|
-
1 &&
|
|
244
|
-
|
|
245
|
-
|
|
242
|
+
1 && Q !== (Q = /*selectedChannel*/
|
|
243
|
+
p[0] === /*channels*/
|
|
244
|
+
p[20].EMAIL) && (q.checked = Q), k[0] & /*$_*/
|
|
246
245
|
524288 && ce !== (ce = /*$_*/
|
|
247
|
-
|
|
248
|
-
1048577 &&
|
|
246
|
+
p[19]("channelEmail") + "") && D(U, ce), k[0] & /*selectedChannel, channels*/
|
|
247
|
+
1048577 && Z(
|
|
249
248
|
V,
|
|
250
249
|
"selected",
|
|
251
250
|
/*selectedChannel*/
|
|
252
|
-
|
|
253
|
-
|
|
251
|
+
p[0] === /*channels*/
|
|
252
|
+
p[20].EMAIL
|
|
254
253
|
), /*selectedChannel*/
|
|
255
|
-
|
|
254
|
+
p[0] ? N ? N.p(p, k) : (N = De(p), N.c(), N.m(X.parentNode, X)) : N && (N.d(1), N = null), ie === (ie = ge(p)) && j ? j.p(p, k) : (j && j.d(1), j = ie && ie(p), j && (j.c(), j.m(H.parentNode, H))), le === (le = be(p)) && P ? P.p(p, k) : (P && P.d(1), P = le && le(p), P && (P.c(), P.m(Y, null)));
|
|
256
255
|
},
|
|
257
|
-
d(
|
|
258
|
-
|
|
256
|
+
d(p) {
|
|
257
|
+
p && (O(t), O(e), O(i), O(he), O(X), O(H), O(Y)), G.d(), N && N.d(p), j && j.d(p), P && P.d(), ue = !1, Be(pe);
|
|
259
258
|
}
|
|
260
259
|
};
|
|
261
260
|
}
|
|
262
261
|
function vt(n) {
|
|
263
|
-
let t, e,
|
|
262
|
+
let t, e, i, l, a, u, s = (
|
|
264
263
|
/*$_*/
|
|
265
264
|
n[19]("errorHeader") + ""
|
|
266
265
|
), c, f, _, w, T, M, b = (
|
|
@@ -269,13 +268,13 @@ function vt(n) {
|
|
|
269
268
|
), m, y, C;
|
|
270
269
|
return {
|
|
271
270
|
c() {
|
|
272
|
-
t = v("div"), e = v("div"),
|
|
271
|
+
t = v("div"), e = v("div"), i = J("svg"), l = J("path"), a = x(), u = v("h2"), c = L(s), f = x(), _ = v("p"), w = L(
|
|
273
272
|
/*errorMessage*/
|
|
274
273
|
n[8]
|
|
275
|
-
), T = x(), M = v("button"), m = L(b), r(
|
|
274
|
+
), T = x(), M = v("button"), m = L(b), r(l, "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(i, "xmlns", "http://www.w3.org/2000/svg"), r(i, "viewBox", "0 0 512 512"), r(e, "class", "OtpErrorHeader"), r(M, "class", "OtpButton error"), r(t, "class", "OtpError");
|
|
276
275
|
},
|
|
277
276
|
m(R, K) {
|
|
278
|
-
S(R, t, K), d(t, e), d(e,
|
|
277
|
+
S(R, t, K), d(t, e), d(e, i), d(i, l), d(e, a), d(e, u), d(u, c), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = te(
|
|
279
278
|
M,
|
|
280
279
|
"click",
|
|
281
280
|
/*manualClosePopup*/
|
|
@@ -300,33 +299,33 @@ function vt(n) {
|
|
|
300
299
|
};
|
|
301
300
|
}
|
|
302
301
|
function kt(n) {
|
|
303
|
-
let t, e,
|
|
302
|
+
let t, e, i, l;
|
|
304
303
|
function a(f, _) {
|
|
305
304
|
return (
|
|
306
305
|
/*isLastWarning*/
|
|
307
306
|
f[10] ? St : Ot
|
|
308
307
|
);
|
|
309
308
|
}
|
|
310
|
-
let
|
|
309
|
+
let u = a(n), s = u(n), c = (
|
|
311
310
|
/*hasErrors*/
|
|
312
311
|
n[6] && xe(n)
|
|
313
312
|
);
|
|
314
313
|
return {
|
|
315
314
|
c() {
|
|
316
|
-
t = v("p"), s.c(),
|
|
315
|
+
t = v("p"), s.c(), i = x(), c && c.c(), l = pt(), r(t, "class", e = /*isLastWarning*/
|
|
317
316
|
n[10] ? "LastWarningMessage" : "");
|
|
318
317
|
},
|
|
319
318
|
m(f, _) {
|
|
320
|
-
S(f, t, _), s.m(t, null), S(f,
|
|
319
|
+
S(f, t, _), s.m(t, null), S(f, i, _), c && c.m(f, _), S(f, l, _);
|
|
321
320
|
},
|
|
322
321
|
p(f, _) {
|
|
323
|
-
|
|
322
|
+
u === (u = a(f)) && s ? s.p(f, _) : (s.d(1), s = u(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
|
|
324
323
|
1024 && e !== (e = /*isLastWarning*/
|
|
325
324
|
f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
|
|
326
|
-
f[6] ? c ? c.p(f, _) : (c = xe(f), c.c(), c.m(
|
|
325
|
+
f[6] ? c ? c.p(f, _) : (c = xe(f), c.c(), c.m(l.parentNode, l)) : c && (c.d(1), c = null);
|
|
327
326
|
},
|
|
328
327
|
d(f) {
|
|
329
|
-
f && (O(t), O(
|
|
328
|
+
f && (O(t), O(i), O(l)), s.d(), c && c.d(f);
|
|
330
329
|
}
|
|
331
330
|
};
|
|
332
331
|
}
|
|
@@ -334,21 +333,21 @@ function Ct(n) {
|
|
|
334
333
|
let t, e = (
|
|
335
334
|
/*$_*/
|
|
336
335
|
(n[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
337
|
-
),
|
|
336
|
+
), i;
|
|
338
337
|
return {
|
|
339
338
|
c() {
|
|
340
|
-
t = v("p"),
|
|
339
|
+
t = v("p"), i = L(e);
|
|
341
340
|
},
|
|
342
|
-
m(
|
|
343
|
-
S(
|
|
341
|
+
m(l, a) {
|
|
342
|
+
S(l, t, a), d(t, i);
|
|
344
343
|
},
|
|
345
|
-
p(
|
|
344
|
+
p(l, a) {
|
|
346
345
|
a[0] & /*$_*/
|
|
347
346
|
524288 && e !== (e = /*$_*/
|
|
348
|
-
(
|
|
347
|
+
(l[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && D(i, e);
|
|
349
348
|
},
|
|
350
|
-
d(
|
|
351
|
-
|
|
349
|
+
d(l) {
|
|
350
|
+
l && O(t);
|
|
352
351
|
}
|
|
353
352
|
};
|
|
354
353
|
}
|
|
@@ -356,21 +355,21 @@ function Et(n) {
|
|
|
356
355
|
let t, e = (
|
|
357
356
|
/*$_*/
|
|
358
357
|
n[19]("otpExpiredMessage") + ""
|
|
359
|
-
),
|
|
358
|
+
), i;
|
|
360
359
|
return {
|
|
361
360
|
c() {
|
|
362
|
-
t = v("p"),
|
|
361
|
+
t = v("p"), i = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
|
|
363
362
|
},
|
|
364
|
-
m(
|
|
365
|
-
S(
|
|
363
|
+
m(l, a) {
|
|
364
|
+
S(l, t, a), d(t, i);
|
|
366
365
|
},
|
|
367
|
-
p(
|
|
366
|
+
p(l, a) {
|
|
368
367
|
a[0] & /*$_*/
|
|
369
368
|
524288 && e !== (e = /*$_*/
|
|
370
|
-
|
|
369
|
+
l[19]("otpExpiredMessage") + "") && D(i, e);
|
|
371
370
|
},
|
|
372
|
-
d(
|
|
373
|
-
|
|
371
|
+
d(l) {
|
|
372
|
+
l && O(t);
|
|
374
373
|
}
|
|
375
374
|
};
|
|
376
375
|
}
|
|
@@ -383,16 +382,16 @@ function Ot(n) {
|
|
|
383
382
|
c() {
|
|
384
383
|
e = L(t);
|
|
385
384
|
},
|
|
386
|
-
m(
|
|
387
|
-
S(
|
|
385
|
+
m(i, l) {
|
|
386
|
+
S(i, e, l);
|
|
388
387
|
},
|
|
389
|
-
p(
|
|
390
|
-
|
|
388
|
+
p(i, l) {
|
|
389
|
+
l[0] & /*$_*/
|
|
391
390
|
524288 && t !== (t = /*$_*/
|
|
392
|
-
|
|
391
|
+
i[19]("popupMessage") + "") && D(e, t);
|
|
393
392
|
},
|
|
394
|
-
d(
|
|
395
|
-
|
|
393
|
+
d(i) {
|
|
394
|
+
i && O(e);
|
|
396
395
|
}
|
|
397
396
|
};
|
|
398
397
|
}
|
|
@@ -405,16 +404,16 @@ function St(n) {
|
|
|
405
404
|
c() {
|
|
406
405
|
e = L(t);
|
|
407
406
|
},
|
|
408
|
-
m(
|
|
409
|
-
S(
|
|
407
|
+
m(i, l) {
|
|
408
|
+
S(i, e, l);
|
|
410
409
|
},
|
|
411
|
-
p(
|
|
412
|
-
|
|
410
|
+
p(i, l) {
|
|
411
|
+
l[0] & /*$_*/
|
|
413
412
|
524288 && t !== (t = /*$_*/
|
|
414
|
-
|
|
413
|
+
i[19]("popupMessageLastWarning") + "") && D(e, t);
|
|
415
414
|
},
|
|
416
|
-
d(
|
|
417
|
-
|
|
415
|
+
d(i) {
|
|
416
|
+
i && O(e);
|
|
418
417
|
}
|
|
419
418
|
};
|
|
420
419
|
}
|
|
@@ -427,56 +426,56 @@ function xe(n) {
|
|
|
427
426
|
n[8]
|
|
428
427
|
), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
|
|
429
428
|
},
|
|
430
|
-
m(
|
|
431
|
-
S(
|
|
429
|
+
m(i, l) {
|
|
430
|
+
S(i, t, l), d(t, e);
|
|
432
431
|
},
|
|
433
|
-
p(
|
|
434
|
-
|
|
432
|
+
p(i, l) {
|
|
433
|
+
l[0] & /*errorMessage*/
|
|
435
434
|
256 && D(
|
|
436
435
|
e,
|
|
437
436
|
/*errorMessage*/
|
|
438
|
-
|
|
437
|
+
i[8]
|
|
439
438
|
);
|
|
440
439
|
},
|
|
441
|
-
d(
|
|
442
|
-
|
|
440
|
+
d(i) {
|
|
441
|
+
i && O(t);
|
|
443
442
|
}
|
|
444
443
|
};
|
|
445
444
|
}
|
|
446
445
|
function De(n) {
|
|
447
|
-
let t, e,
|
|
446
|
+
let t, e, i, l;
|
|
448
447
|
function a(c, f) {
|
|
449
448
|
return (
|
|
450
449
|
/*currentChannelTimer*/
|
|
451
450
|
c[17] > 0 ? Tt : Mt
|
|
452
451
|
);
|
|
453
452
|
}
|
|
454
|
-
let
|
|
453
|
+
let u = a(n), s = u(n);
|
|
455
454
|
return {
|
|
456
455
|
c() {
|
|
457
456
|
t = v("button"), s.c(), r(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
|
|
458
|
-
n[18],
|
|
457
|
+
n[18], Z(t, "disabled", !/*canSubmitChannel*/
|
|
459
458
|
n[18] || /*waitingForConfig*/
|
|
460
459
|
n[16]);
|
|
461
460
|
},
|
|
462
461
|
m(c, f) {
|
|
463
|
-
S(c, t, f), s.m(t, null),
|
|
462
|
+
S(c, t, f), s.m(t, null), i || (l = te(
|
|
464
463
|
t,
|
|
465
464
|
"click",
|
|
466
465
|
/*handleChannelSubmit*/
|
|
467
466
|
n[22]
|
|
468
|
-
),
|
|
467
|
+
), i = !0);
|
|
469
468
|
},
|
|
470
469
|
p(c, f) {
|
|
471
|
-
|
|
470
|
+
u === (u = a(c)) && s ? s.p(c, f) : (s.d(1), s = u(c), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
|
|
472
471
|
262144 && e !== (e = !/*canSubmitChannel*/
|
|
473
472
|
c[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
|
|
474
|
-
327680 &&
|
|
473
|
+
327680 && Z(t, "disabled", !/*canSubmitChannel*/
|
|
475
474
|
c[18] || /*waitingForConfig*/
|
|
476
475
|
c[16]);
|
|
477
476
|
},
|
|
478
477
|
d(c) {
|
|
479
|
-
c && O(t), s.d(),
|
|
478
|
+
c && O(t), s.d(), i = !1, l();
|
|
480
479
|
}
|
|
481
480
|
};
|
|
482
481
|
}
|
|
@@ -489,16 +488,16 @@ function Mt(n) {
|
|
|
489
488
|
c() {
|
|
490
489
|
e = L(t);
|
|
491
490
|
},
|
|
492
|
-
m(
|
|
493
|
-
S(
|
|
491
|
+
m(i, l) {
|
|
492
|
+
S(i, e, l);
|
|
494
493
|
},
|
|
495
|
-
p(
|
|
496
|
-
|
|
494
|
+
p(i, l) {
|
|
495
|
+
l[0] & /*$_*/
|
|
497
496
|
524288 && t !== (t = /*$_*/
|
|
498
|
-
|
|
497
|
+
i[19]("sendCode") + "") && D(e, t);
|
|
499
498
|
},
|
|
500
|
-
d(
|
|
501
|
-
|
|
499
|
+
d(i) {
|
|
500
|
+
i && O(e);
|
|
502
501
|
}
|
|
503
502
|
};
|
|
504
503
|
}
|
|
@@ -506,37 +505,37 @@ function Tt(n) {
|
|
|
506
505
|
let t = (
|
|
507
506
|
/*$_*/
|
|
508
507
|
n[19]("waitSeconds") + ""
|
|
509
|
-
), e,
|
|
508
|
+
), e, i, l, a;
|
|
510
509
|
return {
|
|
511
510
|
c() {
|
|
512
|
-
e = L(t),
|
|
511
|
+
e = L(t), i = L(" ("), l = L(
|
|
513
512
|
/*currentChannelTimer*/
|
|
514
513
|
n[17]
|
|
515
514
|
), a = L("s)");
|
|
516
515
|
},
|
|
517
|
-
m(
|
|
518
|
-
S(
|
|
516
|
+
m(u, s) {
|
|
517
|
+
S(u, e, s), S(u, i, s), S(u, l, s), S(u, a, s);
|
|
519
518
|
},
|
|
520
|
-
p(
|
|
519
|
+
p(u, s) {
|
|
521
520
|
s[0] & /*$_*/
|
|
522
521
|
524288 && t !== (t = /*$_*/
|
|
523
|
-
|
|
522
|
+
u[19]("waitSeconds") + "") && D(e, t), s[0] & /*currentChannelTimer*/
|
|
524
523
|
131072 && D(
|
|
525
|
-
|
|
524
|
+
l,
|
|
526
525
|
/*currentChannelTimer*/
|
|
527
|
-
|
|
526
|
+
u[17]
|
|
528
527
|
);
|
|
529
528
|
},
|
|
530
|
-
d(
|
|
531
|
-
|
|
529
|
+
d(u) {
|
|
530
|
+
u && (O(e), O(i), O(l), O(a));
|
|
532
531
|
}
|
|
533
532
|
};
|
|
534
533
|
}
|
|
535
534
|
function Lt(n) {
|
|
536
|
-
let t, e,
|
|
535
|
+
let t, e, i = (
|
|
537
536
|
/*$_*/
|
|
538
537
|
n[19]("timeRemaining") + ""
|
|
539
|
-
),
|
|
538
|
+
), l, a, u = (
|
|
540
539
|
/*formatTime*/
|
|
541
540
|
n[23](
|
|
542
541
|
/*timeLeft*/
|
|
@@ -545,7 +544,7 @@ function Lt(n) {
|
|
|
545
544
|
), s, c, f = (
|
|
546
545
|
/*$_*/
|
|
547
546
|
n[19]("minutes") + ""
|
|
548
|
-
), _, w, T, M =
|
|
547
|
+
), _, w, T, M = Ae(
|
|
549
548
|
/*otp*/
|
|
550
549
|
n[2]
|
|
551
550
|
), b = [];
|
|
@@ -553,29 +552,29 @@ function Lt(n) {
|
|
|
553
552
|
b[m] = je(Pe(n, M, m));
|
|
554
553
|
return {
|
|
555
554
|
c() {
|
|
556
|
-
t = v("div"), e = v("div"),
|
|
555
|
+
t = v("div"), e = v("div"), l = L(i), a = x(), s = L(u), c = x(), _ = L(f), w = x(), T = v("div");
|
|
557
556
|
for (let m = 0; m < b.length; m += 1)
|
|
558
557
|
b[m].c();
|
|
559
558
|
r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
|
|
560
559
|
},
|
|
561
560
|
m(m, y) {
|
|
562
|
-
S(m, t, y), d(t, e), d(e,
|
|
561
|
+
S(m, t, y), d(t, e), d(e, l), d(e, a), d(e, s), d(e, c), d(e, _), d(t, w), d(t, T);
|
|
563
562
|
for (let C = 0; C < b.length; C += 1)
|
|
564
563
|
b[C] && b[C].m(T, null);
|
|
565
564
|
},
|
|
566
565
|
p(m, y) {
|
|
567
566
|
if (y[0] & /*$_*/
|
|
568
|
-
524288 &&
|
|
569
|
-
m[19]("timeRemaining") + "") && D(
|
|
570
|
-
32 &&
|
|
567
|
+
524288 && i !== (i = /*$_*/
|
|
568
|
+
m[19]("timeRemaining") + "") && D(l, i), y[0] & /*timeLeft*/
|
|
569
|
+
32 && u !== (u = /*formatTime*/
|
|
571
570
|
m[23](
|
|
572
571
|
/*timeLeft*/
|
|
573
572
|
m[5]
|
|
574
|
-
) + "") && D(s,
|
|
573
|
+
) + "") && D(s, u), y[0] & /*$_*/
|
|
575
574
|
524288 && f !== (f = /*$_*/
|
|
576
575
|
m[19]("minutes") + "") && D(_, f), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
577
576
|
117458964) {
|
|
578
|
-
M =
|
|
577
|
+
M = Ae(
|
|
579
578
|
/*otp*/
|
|
580
579
|
m[2]
|
|
581
580
|
);
|
|
@@ -594,14 +593,14 @@ function Lt(n) {
|
|
|
594
593
|
}
|
|
595
594
|
};
|
|
596
595
|
}
|
|
597
|
-
function
|
|
596
|
+
function zt(n) {
|
|
598
597
|
let t;
|
|
599
598
|
return {
|
|
600
599
|
c() {
|
|
601
600
|
t = v("div"), t.innerHTML = '<span class="OtpLoader"></span>', r(t, "class", "OtpLoaderContainer");
|
|
602
601
|
},
|
|
603
|
-
m(e,
|
|
604
|
-
S(e, t,
|
|
602
|
+
m(e, i) {
|
|
603
|
+
S(e, t, i);
|
|
605
604
|
},
|
|
606
605
|
p: ke,
|
|
607
606
|
d(e) {
|
|
@@ -610,16 +609,16 @@ function At(n) {
|
|
|
610
609
|
};
|
|
611
610
|
}
|
|
612
611
|
function je(n) {
|
|
613
|
-
let t, e,
|
|
612
|
+
let t, e, i, l = (
|
|
614
613
|
/*index*/
|
|
615
614
|
n[71]
|
|
616
|
-
), a,
|
|
615
|
+
), a, u;
|
|
617
616
|
const s = () => (
|
|
618
617
|
/*input_binding*/
|
|
619
|
-
n[41](t,
|
|
618
|
+
n[41](t, l)
|
|
620
619
|
), c = () => (
|
|
621
620
|
/*input_binding*/
|
|
622
|
-
n[41](null,
|
|
621
|
+
n[41](null, l)
|
|
623
622
|
);
|
|
624
623
|
function f(...w) {
|
|
625
624
|
return (
|
|
@@ -647,12 +646,12 @@ function je(n) {
|
|
|
647
646
|
n[71]}`), r(t, "type", "text"), r(t, "class", e = `otp-box ${/*config*/
|
|
648
647
|
n[4].inputLength % 2 === 0 && /*index*/
|
|
649
648
|
n[71] === /*config*/
|
|
650
|
-
n[4].inputLength / 2 - 1 ? "space" : ""}`), r(t, "maxlength", 1), t.value =
|
|
649
|
+
n[4].inputLength / 2 - 1 ? "space" : ""}`), r(t, "maxlength", 1), t.value = i = /*char*/
|
|
651
650
|
n[69], r(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
652
651
|
n[11], r(t, "autocomplete", "off");
|
|
653
652
|
},
|
|
654
653
|
m(w, T) {
|
|
655
|
-
S(w, t, T), s(), a || (
|
|
654
|
+
S(w, t, T), s(), a || (u = [
|
|
656
655
|
te(t, "input", f),
|
|
657
656
|
te(t, "keydown", _),
|
|
658
657
|
te(
|
|
@@ -669,33 +668,33 @@ function je(n) {
|
|
|
669
668
|
n[4].inputLength % 2 === 0 && /*index*/
|
|
670
669
|
n[71] === /*config*/
|
|
671
670
|
n[4].inputLength / 2 - 1 ? "space" : ""}`) && r(t, "class", e), T[0] & /*otp*/
|
|
672
|
-
4 &&
|
|
673
|
-
n[69]) && t.value !==
|
|
671
|
+
4 && i !== (i = /*char*/
|
|
672
|
+
n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
|
|
674
673
|
2048 && (t.disabled = /*inputDisabled*/
|
|
675
|
-
n[11]),
|
|
676
|
-
n[71] && (c(),
|
|
674
|
+
n[11]), l !== /*index*/
|
|
675
|
+
n[71] && (c(), l = /*index*/
|
|
677
676
|
n[71], s());
|
|
678
677
|
},
|
|
679
678
|
d(w) {
|
|
680
|
-
w && O(t), c(), a = !1, Be(
|
|
679
|
+
w && O(t), c(), a = !1, Be(u);
|
|
681
680
|
}
|
|
682
681
|
};
|
|
683
682
|
}
|
|
684
|
-
function
|
|
683
|
+
function At(n) {
|
|
685
684
|
let t, e = (
|
|
686
685
|
/*$_*/
|
|
687
686
|
n[19]("submit") + ""
|
|
688
|
-
),
|
|
687
|
+
), i, l, a, u;
|
|
689
688
|
return {
|
|
690
689
|
c() {
|
|
691
|
-
t = v("button"),
|
|
690
|
+
t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled = l = /*otp*/
|
|
692
691
|
n[2].join("").length !== /*config*/
|
|
693
692
|
n[4].inputLength || /*isSubmitting*/
|
|
694
693
|
n[13] || /*maxAttempts*/
|
|
695
694
|
n[15];
|
|
696
695
|
},
|
|
697
696
|
m(s, c) {
|
|
698
|
-
S(s, t, c), d(t,
|
|
697
|
+
S(s, t, c), d(t, i), a || (u = te(
|
|
699
698
|
t,
|
|
700
699
|
"click",
|
|
701
700
|
/*submitOtp*/
|
|
@@ -705,15 +704,15 @@ function zt(n) {
|
|
|
705
704
|
p(s, c) {
|
|
706
705
|
c[0] & /*$_*/
|
|
707
706
|
524288 && e !== (e = /*$_*/
|
|
708
|
-
s[19]("submit") + "") && D(
|
|
709
|
-
40980 &&
|
|
707
|
+
s[19]("submit") + "") && D(i, e), c[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
708
|
+
40980 && l !== (l = /*otp*/
|
|
710
709
|
s[2].join("").length !== /*config*/
|
|
711
710
|
s[4].inputLength || /*isSubmitting*/
|
|
712
711
|
s[13] || /*maxAttempts*/
|
|
713
|
-
s[15]) && (t.disabled =
|
|
712
|
+
s[15]) && (t.disabled = l);
|
|
714
713
|
},
|
|
715
714
|
d(s) {
|
|
716
|
-
s && O(t), a = !1,
|
|
715
|
+
s && O(t), a = !1, u();
|
|
717
716
|
}
|
|
718
717
|
};
|
|
719
718
|
}
|
|
@@ -721,203 +720,203 @@ function Rt(n) {
|
|
|
721
720
|
let t, e = (
|
|
722
721
|
/*$_*/
|
|
723
722
|
n[19]("resendOtp") + ""
|
|
724
|
-
),
|
|
723
|
+
), i, l, a;
|
|
725
724
|
return {
|
|
726
725
|
c() {
|
|
727
|
-
t = v("button"),
|
|
726
|
+
t = v("button"), i = L(e), r(t, "class", "OtpButton");
|
|
728
727
|
},
|
|
729
|
-
m(
|
|
730
|
-
S(
|
|
728
|
+
m(u, s) {
|
|
729
|
+
S(u, t, s), d(t, i), l || (a = te(
|
|
731
730
|
t,
|
|
732
731
|
"click",
|
|
733
732
|
/*handleResendOtp*/
|
|
734
733
|
n[27]
|
|
735
|
-
),
|
|
734
|
+
), l = !0);
|
|
736
735
|
},
|
|
737
|
-
p(
|
|
736
|
+
p(u, s) {
|
|
738
737
|
s[0] & /*$_*/
|
|
739
738
|
524288 && e !== (e = /*$_*/
|
|
740
|
-
|
|
739
|
+
u[19]("resendOtp") + "") && D(i, e);
|
|
741
740
|
},
|
|
742
|
-
d(
|
|
743
|
-
|
|
741
|
+
d(u) {
|
|
742
|
+
u && O(t), l = !1, a();
|
|
744
743
|
}
|
|
745
744
|
};
|
|
746
745
|
}
|
|
747
746
|
function It(n) {
|
|
748
747
|
let t;
|
|
749
|
-
function e(a,
|
|
748
|
+
function e(a, u) {
|
|
750
749
|
return (
|
|
751
750
|
/*hasConfigErrors*/
|
|
752
751
|
a[7] ? vt : yt
|
|
753
752
|
);
|
|
754
753
|
}
|
|
755
|
-
let
|
|
754
|
+
let i = e(n), l = i(n);
|
|
756
755
|
return {
|
|
757
756
|
c() {
|
|
758
|
-
t = v("div"),
|
|
757
|
+
t = v("div"), l.c(), r(t, "class", "OtpContent");
|
|
759
758
|
},
|
|
760
|
-
m(a,
|
|
761
|
-
S(a, t,
|
|
759
|
+
m(a, u) {
|
|
760
|
+
S(a, t, u), l.m(t, null), n[44](t);
|
|
762
761
|
},
|
|
763
|
-
p(a,
|
|
764
|
-
|
|
762
|
+
p(a, u) {
|
|
763
|
+
i === (i = e(a)) && l ? l.p(a, u) : (l.d(1), l = i(a), l && (l.c(), l.m(t, null)));
|
|
765
764
|
},
|
|
766
765
|
i: ke,
|
|
767
766
|
o: ke,
|
|
768
767
|
d(a) {
|
|
769
|
-
a && O(t),
|
|
768
|
+
a && O(t), l.d(), n[44](null);
|
|
770
769
|
}
|
|
771
770
|
};
|
|
772
771
|
}
|
|
773
772
|
function Pt(n, t, e) {
|
|
774
|
-
let
|
|
775
|
-
ct(n,
|
|
776
|
-
let { clientstyling:
|
|
773
|
+
let i, l, a;
|
|
774
|
+
ct(n, bt, (o) => e(19, a = o));
|
|
775
|
+
let { clientstyling: u = "" } = 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 = "", F = !1, V = !1, I = "", ne = "", q = "", Q = !1, re = !1, $ = !1, E = "", z = {}, W = null, se = !1, ae = !1, ce = "", U, he, X = [], H = null, Y = 0, ue = !1, pe = !1;
|
|
777
776
|
const de = { SMS: "sms", EMAIL: "email" }, ee = {
|
|
778
777
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
779
778
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
780
779
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
781
780
|
};
|
|
782
|
-
Object.keys(Ie).forEach((
|
|
783
|
-
Re(
|
|
781
|
+
Object.keys(Ie).forEach((o) => {
|
|
782
|
+
Re(o, Ie[o]);
|
|
784
783
|
});
|
|
785
784
|
const G = () => {
|
|
786
785
|
wt(f);
|
|
787
786
|
}, N = () => {
|
|
788
|
-
fetch(T).then((
|
|
789
|
-
Object.keys(
|
|
790
|
-
Re(h,
|
|
787
|
+
fetch(T).then((o) => o.json()).then((o) => {
|
|
788
|
+
Object.keys(o).forEach((h) => {
|
|
789
|
+
Re(h, o[h]);
|
|
791
790
|
});
|
|
792
|
-
}).catch((
|
|
793
|
-
console.log(
|
|
791
|
+
}).catch((o) => {
|
|
792
|
+
console.log(o);
|
|
794
793
|
});
|
|
795
|
-
}, ge = (
|
|
794
|
+
}, ge = (o) => me(this, null, function* () {
|
|
796
795
|
var h;
|
|
797
|
-
if ((h =
|
|
798
|
-
if (e(7, V = !1), e(6,
|
|
796
|
+
if ((h = o.detail) != null && h["x-step-up-required"]) {
|
|
797
|
+
if (e(7, V = !1), e(6, F = !1), e(8, I = ""), ne = o.detail["x-step-up-token"], q = o.detail.flow, !ne || !q) {
|
|
799
798
|
e(3, m = !1), e(7, V = !0), e(8, I = a("configError"));
|
|
800
799
|
return;
|
|
801
800
|
}
|
|
802
801
|
e(12, se = !1), e(3, m = !1);
|
|
803
802
|
}
|
|
804
|
-
}),
|
|
805
|
-
H && (clearInterval(H), H = null),
|
|
803
|
+
}), ie = () => {
|
|
804
|
+
H && (clearInterval(H), H = null), W && (clearInterval(W), W = null), e(6, F = !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, z = {});
|
|
806
805
|
}, j = () => {
|
|
807
|
-
|
|
808
|
-
}, be = () => new Promise((
|
|
809
|
-
const g = new URL(`${_}/api/pam/v1/mfa/challenge/${ne}`),
|
|
810
|
-
|
|
806
|
+
ie();
|
|
807
|
+
}, be = () => new Promise((o, h) => {
|
|
808
|
+
const g = new URL(`${_}/api/pam/v1/mfa/challenge/${ne}`), A = new Headers();
|
|
809
|
+
A.append("accept", "application/json"), A.append("Content-Type", "application/json"), A.append("X-SessionId", `${w}`), e(16, pe = !0);
|
|
811
810
|
const fe = {
|
|
812
811
|
method: "PATCH",
|
|
813
|
-
headers:
|
|
812
|
+
headers: A,
|
|
814
813
|
body: JSON.stringify({
|
|
815
814
|
channel: E,
|
|
816
815
|
templateId: M
|
|
817
816
|
})
|
|
818
817
|
};
|
|
819
818
|
fetch(g, fe).then((Se) => Se.json()).then(() => {
|
|
820
|
-
e(15,
|
|
819
|
+
e(15, ue = !1), k(), we(), o();
|
|
821
820
|
}).catch((Se) => {
|
|
822
821
|
h();
|
|
823
822
|
});
|
|
824
|
-
}),
|
|
825
|
-
|
|
823
|
+
}), le = () => {
|
|
824
|
+
W && clearInterval(W), W = setInterval(
|
|
826
825
|
() => {
|
|
827
|
-
const
|
|
826
|
+
const o = ve({}, z);
|
|
828
827
|
let h = !1;
|
|
829
|
-
Object.keys(
|
|
830
|
-
|
|
831
|
-
}), e(38,
|
|
828
|
+
Object.keys(o).forEach((g) => {
|
|
829
|
+
o[g] > 0 && (o[g]--, h = !0);
|
|
830
|
+
}), e(38, z = o), !h && W && (clearInterval(W), W = null);
|
|
832
831
|
},
|
|
833
832
|
1e3
|
|
834
833
|
);
|
|
835
|
-
}, P = (
|
|
836
|
-
e(0, E =
|
|
837
|
-
},
|
|
838
|
-
if (!(!E ||
|
|
834
|
+
}, P = (o) => {
|
|
835
|
+
e(0, E = o);
|
|
836
|
+
}, p = () => me(this, null, function* () {
|
|
837
|
+
if (!(!E || z[E] && z[E] > 0)) {
|
|
839
838
|
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
|
|
840
839
|
try {
|
|
841
|
-
yield be(), yield ye(), e(38,
|
|
840
|
+
yield be(), yield ye(), e(38, z = Le(ve({}, z), {
|
|
842
841
|
[E]: 30
|
|
843
|
-
})),
|
|
844
|
-
} catch (
|
|
845
|
-
console.error("Error submitting channel:",
|
|
842
|
+
})), le(), e(12, se = !0), k(), we();
|
|
843
|
+
} catch (o) {
|
|
844
|
+
console.error("Error submitting channel:", o), e(6, F = !0), e(8, I = a("submissionError"));
|
|
846
845
|
} finally {
|
|
847
846
|
e(3, m = !1);
|
|
848
847
|
}
|
|
849
848
|
}
|
|
850
849
|
}), k = () => {
|
|
851
|
-
const
|
|
852
|
-
Y =
|
|
850
|
+
const o = new Date(R), h = new Date(K), g = /* @__PURE__ */ new Date(), A = h.getTime() - g.getTime();
|
|
851
|
+
Y = o.getTime() - A;
|
|
853
852
|
const B = Date.now(), fe = Math.max(0, Math.floor((Y - B) / 1e3));
|
|
854
853
|
e(5, C = fe);
|
|
855
854
|
}, we = () => {
|
|
856
855
|
H && clearInterval(H), H = setInterval(
|
|
857
856
|
() => {
|
|
858
|
-
const
|
|
859
|
-
e(5, C = h), e(11, $ = h <= 0), h <= 0 && (clearInterval(H), H = null, e(9,
|
|
857
|
+
const o = Date.now(), h = Math.max(0, Math.floor((Y - o) / 1e3));
|
|
858
|
+
e(5, C = h), e(11, $ = h <= 0), h <= 0 && (clearInterval(H), H = null, e(9, Q = !0), e(6, F = !1), e(10, re = !1));
|
|
860
859
|
},
|
|
861
860
|
1e3
|
|
862
861
|
);
|
|
863
|
-
}, Ve = (
|
|
864
|
-
const h = Math.floor(
|
|
862
|
+
}, Ve = (o) => {
|
|
863
|
+
const h = Math.floor(o / 60), g = o % 60;
|
|
865
864
|
return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
|
|
866
|
-
}, _e = (
|
|
865
|
+
}, _e = (o, h) => {
|
|
867
866
|
const g = [...b];
|
|
868
|
-
g[
|
|
869
|
-
}, He = (
|
|
870
|
-
var
|
|
871
|
-
|
|
872
|
-
const g = (((B = (
|
|
867
|
+
g[o] = h.toUpperCase(), e(2, b = g), g.join("") !== ce && e(13, ae = !1);
|
|
868
|
+
}, He = (o) => {
|
|
869
|
+
var A, B, fe;
|
|
870
|
+
o.preventDefault();
|
|
871
|
+
const g = (((B = (A = o.clipboardData) == null ? void 0 : A.getData("text")) == null ? void 0 : B.trim()) || "").slice(0, y.inputLength).split("");
|
|
873
872
|
e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), (fe = X[g.length]) == null || fe.focus(), g.length === y.inputLength && Oe();
|
|
874
|
-
}, Ce = (
|
|
875
|
-
const g =
|
|
876
|
-
if (/^[a-z0-9]$/i.test(
|
|
877
|
-
_e(h,
|
|
873
|
+
}, Ce = (o, h) => {
|
|
874
|
+
const g = o.target, A = g.value;
|
|
875
|
+
if (/^[a-z0-9]$/i.test(A)) {
|
|
876
|
+
_e(h, A);
|
|
878
877
|
const B = X[h + 1];
|
|
879
878
|
B == null || B.focus();
|
|
880
879
|
}
|
|
881
880
|
g.value = "";
|
|
882
|
-
}, Ee = (
|
|
883
|
-
const g =
|
|
881
|
+
}, Ee = (o, h) => {
|
|
882
|
+
const g = o.key, A = o.ctrlKey || o.metaKey;
|
|
884
883
|
if (/^[a-z0-9]$/i.test(g)) {
|
|
885
|
-
if (
|
|
884
|
+
if (A && g.toLowerCase() === "v")
|
|
886
885
|
return;
|
|
887
|
-
|
|
886
|
+
o.preventDefault(), _e(h, g);
|
|
888
887
|
const B = X[h + 1];
|
|
889
888
|
B == null || B.focus();
|
|
890
889
|
} else if (g === "Backspace") {
|
|
891
|
-
|
|
890
|
+
o.preventDefault(), b[h] !== "" && _e(h, "");
|
|
892
891
|
const B = X[h - 1];
|
|
893
892
|
B == null || B.focus();
|
|
894
893
|
}
|
|
895
894
|
}, Ne = () => {
|
|
896
|
-
q == "stateful" && (be(), e(9,
|
|
897
|
-
const
|
|
898
|
-
window.dispatchEvent(
|
|
899
|
-
},
|
|
895
|
+
q == "stateful" && (be(), e(9, Q = !1));
|
|
896
|
+
const o = new CustomEvent("otpResendRequested");
|
|
897
|
+
window.dispatchEvent(o);
|
|
898
|
+
}, We = (o) => {
|
|
900
899
|
window.dispatchEvent(new CustomEvent(
|
|
901
900
|
"otpSubmitted",
|
|
902
901
|
{
|
|
903
902
|
detail: {
|
|
904
|
-
code:
|
|
903
|
+
code: o,
|
|
905
904
|
maxAttempts: y.maxValidationAttempts,
|
|
906
905
|
validatedAttempts: y.numberOfValidateAttempts
|
|
907
906
|
}
|
|
908
907
|
}
|
|
909
908
|
));
|
|
910
|
-
},
|
|
909
|
+
}, Fe = (o) => me(this, null, function* () {
|
|
911
910
|
const h = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/validate`, _);
|
|
912
|
-
h.searchParams.append("input",
|
|
911
|
+
h.searchParams.append("input", o);
|
|
913
912
|
try {
|
|
914
913
|
const g = yield fetch(h.href, { method: "POST" });
|
|
915
914
|
if (g.status === 200) {
|
|
916
915
|
qe();
|
|
917
916
|
return;
|
|
918
917
|
}
|
|
919
|
-
const
|
|
920
|
-
throw new Error(
|
|
918
|
+
const A = yield g.json();
|
|
919
|
+
throw new Error(A.message);
|
|
921
920
|
} catch (g) {
|
|
922
921
|
if (yield ye(), g.message === ee.INTERNAL_SERVER_ERROR) {
|
|
923
922
|
if (y.numberOfValidateAttempts === y.maxValidationAttempts - 1) {
|
|
@@ -933,10 +932,10 @@ function Pt(n, t, e) {
|
|
|
933
932
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
934
933
|
return;
|
|
935
934
|
}
|
|
936
|
-
e(6,
|
|
935
|
+
e(6, F = !0), e(8, I = a("invalidOtp")), ye();
|
|
937
936
|
return;
|
|
938
937
|
}
|
|
939
|
-
g.message === ee.MAX_INVALIDATE && (e(6,
|
|
938
|
+
g.message === ee.MAX_INVALIDATE && (e(6, F = !0), e(8, I = a("invalidOtp"))), g.details === ee.MAX_ATTEMPTS_EXCEEDED && e(15, ue = !0), console.error("OTP submission failed:", g), e(6, F = !0), e(8, I = a("submissionError"));
|
|
940
939
|
} finally {
|
|
941
940
|
e(3, m = !1);
|
|
942
941
|
}
|
|
@@ -953,59 +952,59 @@ function Pt(n, t, e) {
|
|
|
953
952
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
954
953
|
}, Oe = () => me(this, null, function* () {
|
|
955
954
|
if (b.join("").length !== y.inputLength) {
|
|
956
|
-
e(6,
|
|
955
|
+
e(6, F = !0), e(8, I = a("invalidOtp"));
|
|
957
956
|
return;
|
|
958
957
|
}
|
|
959
|
-
const
|
|
960
|
-
e(13, ae = !0), ce =
|
|
958
|
+
const o = b.join("");
|
|
959
|
+
e(13, ae = !0), ce = o, e(3, m = !0), e(6, F = !1), e(8, I = ""), q === "stateless" && We(o), q === "stateful" && (yield Fe(o));
|
|
961
960
|
}), ye = () => me(this, null, function* () {
|
|
962
961
|
if (_)
|
|
963
962
|
try {
|
|
964
963
|
e(3, m = !0);
|
|
965
|
-
const
|
|
964
|
+
const o = new URL(`/api/nwa/api/v1/mfa/challenge/${ne}/config`, _), h = yield fetch(o.href), g = yield h.json();
|
|
966
965
|
if (h.ok)
|
|
967
|
-
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9,
|
|
966
|
+
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Q = !1), R = y.expirationTime, K = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, F = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, re = !0), e(3, m = !1), k(), we(), e(16, pe = !1);
|
|
968
967
|
else if (g && g.details === ee.MAX_ATTEMPTS_EXCEEDED)
|
|
969
968
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
970
969
|
else {
|
|
971
|
-
const
|
|
972
|
-
throw new Error(
|
|
970
|
+
const A = g && g.message || `Failed to load config. Status: ${h.status}`;
|
|
971
|
+
throw new Error(A);
|
|
973
972
|
}
|
|
974
|
-
} catch (
|
|
975
|
-
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:",
|
|
973
|
+
} catch (o) {
|
|
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:", o);
|
|
976
975
|
}
|
|
977
976
|
});
|
|
978
|
-
|
|
979
|
-
window.removeEventListener("stepUpAuthRequired", ge), window.removeEventListener("closePopup", j, !1), H && clearInterval(H),
|
|
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);
|
|
980
979
|
}));
|
|
981
980
|
const Xe = () => P(de.SMS), Ke = () => P(de.EMAIL);
|
|
982
|
-
function Ge(
|
|
983
|
-
|
|
984
|
-
X[h] =
|
|
981
|
+
function Ge(o, h) {
|
|
982
|
+
ze[o ? "unshift" : "push"](() => {
|
|
983
|
+
X[h] = o, e(14, X);
|
|
985
984
|
});
|
|
986
985
|
}
|
|
987
|
-
const Ye = (
|
|
988
|
-
function
|
|
989
|
-
|
|
990
|
-
U =
|
|
986
|
+
const Ye = (o, h) => Ce(h, o), Je = (o, h) => Ee(h, o);
|
|
987
|
+
function Ze(o) {
|
|
988
|
+
ze[o ? "unshift" : "push"](() => {
|
|
989
|
+
U = o, e(1, U);
|
|
991
990
|
});
|
|
992
991
|
}
|
|
993
|
-
return n.$$set = (
|
|
994
|
-
"clientstyling" in
|
|
992
|
+
return n.$$set = (o) => {
|
|
993
|
+
"clientstyling" in o && e(31, u = o.clientstyling), "clientstylingurl" in o && e(32, s = o.clientstylingurl), "mbsource" in o && e(33, c = o.mbsource), "lang" in o && e(34, f = o.lang), "endpoint" in o && e(35, _ = o.endpoint), "session" in o && e(36, w = o.session), "translationurl" in o && e(37, T = o.translationurl), "templateid" in o && e(30, M = o.templateid);
|
|
995
994
|
}, n.$$.update = () => {
|
|
996
995
|
n.$$.dirty[0] & /*customStylingContainer*/
|
|
997
996
|
2 | n.$$.dirty[1] & /*clientstyling*/
|
|
998
|
-
1 &&
|
|
997
|
+
1 && u && U && ft(U, u), n.$$.dirty[0] & /*customStylingContainer*/
|
|
999
998
|
2 | n.$$.dirty[1] & /*clientstylingurl*/
|
|
1000
|
-
2 && s && U &&
|
|
999
|
+
2 && s && U && mt(U, s), n.$$.dirty[0] & /*customStylingContainer*/
|
|
1001
1000
|
2 | n.$$.dirty[1] & /*mbsource*/
|
|
1002
|
-
4 && c && U &&
|
|
1001
|
+
4 && c && U && ht(U, `${c}.Style`, he), n.$$.dirty[1] & /*lang*/
|
|
1003
1002
|
8 && f && G(), n.$$.dirty[1] & /*lang, translationurl*/
|
|
1004
1003
|
72 && f && T && N(), n.$$.dirty[0] & /*selectedChannel*/
|
|
1005
1004
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
1006
|
-
128 && e(18,
|
|
1005
|
+
128 && e(18, i = E && (!z[E] || z[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
|
|
1007
1006
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
1008
|
-
128 && e(17,
|
|
1007
|
+
128 && e(17, l = E && z[E] || 0);
|
|
1009
1008
|
}, [
|
|
1010
1009
|
E,
|
|
1011
1010
|
U,
|
|
@@ -1013,23 +1012,23 @@ function Pt(n, t, e) {
|
|
|
1013
1012
|
m,
|
|
1014
1013
|
y,
|
|
1015
1014
|
C,
|
|
1016
|
-
|
|
1015
|
+
F,
|
|
1017
1016
|
V,
|
|
1018
1017
|
I,
|
|
1019
|
-
|
|
1018
|
+
Q,
|
|
1020
1019
|
re,
|
|
1021
1020
|
$,
|
|
1022
1021
|
se,
|
|
1023
1022
|
ae,
|
|
1024
1023
|
X,
|
|
1025
|
-
pe,
|
|
1026
1024
|
ue,
|
|
1025
|
+
pe,
|
|
1026
|
+
l,
|
|
1027
1027
|
i,
|
|
1028
|
-
o,
|
|
1029
1028
|
a,
|
|
1030
1029
|
de,
|
|
1031
1030
|
P,
|
|
1032
|
-
|
|
1031
|
+
p,
|
|
1033
1032
|
Ve,
|
|
1034
1033
|
He,
|
|
1035
1034
|
Ce,
|
|
@@ -1038,23 +1037,23 @@ function Pt(n, t, e) {
|
|
|
1038
1037
|
Ue,
|
|
1039
1038
|
Oe,
|
|
1040
1039
|
M,
|
|
1041
|
-
|
|
1040
|
+
u,
|
|
1042
1041
|
s,
|
|
1043
1042
|
c,
|
|
1044
1043
|
f,
|
|
1045
1044
|
_,
|
|
1046
1045
|
w,
|
|
1047
1046
|
T,
|
|
1048
|
-
|
|
1047
|
+
z,
|
|
1049
1048
|
Xe,
|
|
1050
1049
|
Ke,
|
|
1051
1050
|
Ge,
|
|
1052
1051
|
Ye,
|
|
1053
1052
|
Je,
|
|
1054
|
-
|
|
1053
|
+
Ze
|
|
1055
1054
|
];
|
|
1056
1055
|
}
|
|
1057
|
-
class xt extends
|
|
1056
|
+
class xt extends ot {
|
|
1058
1057
|
constructor(t) {
|
|
1059
1058
|
super(), rt(
|
|
1060
1059
|
this,
|
|
@@ -1080,52 +1079,52 @@ class xt extends lt {
|
|
|
1080
1079
|
return this.$$.ctx[31];
|
|
1081
1080
|
}
|
|
1082
1081
|
set clientstyling(t) {
|
|
1083
|
-
this.$$set({ clientstyling: t }),
|
|
1082
|
+
this.$$set({ clientstyling: t }), oe();
|
|
1084
1083
|
}
|
|
1085
1084
|
get clientstylingurl() {
|
|
1086
1085
|
return this.$$.ctx[32];
|
|
1087
1086
|
}
|
|
1088
1087
|
set clientstylingurl(t) {
|
|
1089
|
-
this.$$set({ clientstylingurl: t }),
|
|
1088
|
+
this.$$set({ clientstylingurl: t }), oe();
|
|
1090
1089
|
}
|
|
1091
1090
|
get mbsource() {
|
|
1092
1091
|
return this.$$.ctx[33];
|
|
1093
1092
|
}
|
|
1094
1093
|
set mbsource(t) {
|
|
1095
|
-
this.$$set({ mbsource: t }),
|
|
1094
|
+
this.$$set({ mbsource: t }), oe();
|
|
1096
1095
|
}
|
|
1097
1096
|
get lang() {
|
|
1098
1097
|
return this.$$.ctx[34];
|
|
1099
1098
|
}
|
|
1100
1099
|
set lang(t) {
|
|
1101
|
-
this.$$set({ lang: t }),
|
|
1100
|
+
this.$$set({ lang: t }), oe();
|
|
1102
1101
|
}
|
|
1103
1102
|
get endpoint() {
|
|
1104
1103
|
return this.$$.ctx[35];
|
|
1105
1104
|
}
|
|
1106
1105
|
set endpoint(t) {
|
|
1107
|
-
this.$$set({ endpoint: t }),
|
|
1106
|
+
this.$$set({ endpoint: t }), oe();
|
|
1108
1107
|
}
|
|
1109
1108
|
get session() {
|
|
1110
1109
|
return this.$$.ctx[36];
|
|
1111
1110
|
}
|
|
1112
1111
|
set session(t) {
|
|
1113
|
-
this.$$set({ session: t }),
|
|
1112
|
+
this.$$set({ session: t }), oe();
|
|
1114
1113
|
}
|
|
1115
1114
|
get translationurl() {
|
|
1116
1115
|
return this.$$.ctx[37];
|
|
1117
1116
|
}
|
|
1118
1117
|
set translationurl(t) {
|
|
1119
|
-
this.$$set({ translationurl: t }),
|
|
1118
|
+
this.$$set({ translationurl: t }), oe();
|
|
1120
1119
|
}
|
|
1121
1120
|
get templateid() {
|
|
1122
1121
|
return this.$$.ctx[30];
|
|
1123
1122
|
}
|
|
1124
1123
|
set templateid(t) {
|
|
1125
|
-
this.$$set({ templateid: t }),
|
|
1124
|
+
this.$$set({ templateid: t }), oe();
|
|
1126
1125
|
}
|
|
1127
1126
|
}
|
|
1128
|
-
|
|
1127
|
+
gt(xt, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1129
1128
|
export {
|
|
1130
1129
|
xt as default
|
|
1131
1130
|
};
|