@everymatrix/cashier-page 1.92.8 → 1.92.21
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-C854_1dB.js → CashierError-66WHxjwV.js} +45 -44
- package/components/{CashierError-D638x9x-.js → CashierError-BCtelxyY.js} +46 -45
- package/components/CashierError-BL_rmfvV.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-BUcU3T5U.js → CashierIframeRedirect-C3muwYdO.js} +106 -91
- package/components/{CashierIframeRedirect-BhmYmTKc.js → CashierIframeRedirect-Ti9O6xV-.js} +108 -93
- package/components/{CashierMethodDetails-iZTHVxaU.js → CashierMethodDetails-C7odWYEI.js} +3987 -3408
- package/components/CashierMethodDetails-DjLhLSey.cjs +85 -0
- package/components/{CashierMethodDetails-BOhUmKCH.js → CashierMethodDetails-JQOw_ppF.js} +4016 -3438
- package/components/{CashierMethodsList-B97v3Xuh.js → CashierMethodsList-C-7-CmRx.js} +65 -65
- package/components/CashierMethodsList-CNxb5rVf.cjs +1 -0
- package/components/{CashierMethodsList-eUczF6XC.js → CashierMethodsList-CZxMoF32.js} +56 -56
- package/components/{CashierModal-C4MoXHG7.js → CashierModal-B1pfSpCs.js} +36 -37
- package/components/{CashierModal-BUkNhHpl.js → CashierModal-BsrmgnKi.js} +32 -33
- package/components/CashierModal-DF8meLAZ.cjs +1 -0
- package/components/CashierNotifications-B8bRZMac.cjs +1 -0
- package/components/{CashierNotifications-BatwRhbq.js → CashierNotifications-BXxNDzMM.js} +3 -3
- package/components/{CashierNotifications-C0NjswTn.js → CashierNotifications-DbJuswYZ.js} +5 -5
- package/components/CashierPage-Bhgj76MY.js +4490 -0
- package/components/CashierPage-CIxAkXYb.js +4460 -0
- package/components/CashierPage-iIGUB5g4.cjs +1 -0
- package/components/CashierReceiptPage-B530KWIS.cjs +26 -0
- package/components/{CashierReceiptPage-CdqmVXe9.js → CashierReceiptPage-DGZSqJFO.js} +169 -156
- package/components/{CashierReceiptPage-2rVfG2fm.js → CashierReceiptPage-DjfCUH2F.js} +177 -164
- package/components/{CashierSessionExpirationModal-CK0YLZbU.js → CashierSessionExpirationModal-BKxhGCj9.js} +254 -267
- package/components/CashierSessionExpirationModal-C6owPr_u.cjs +2 -0
- package/components/{CashierSessionExpirationModal-0EbJrsdx.js → CashierSessionExpirationModal-CU8HtTwA.js} +267 -280
- package/components/CashierSpinner-DKYO0FtD.cjs +1 -0
- package/components/{CashierSpinner-hEROg29-.js → CashierSpinner-DMrM0bGx.js} +10 -11
- package/components/{CashierSpinner-DGz_dycp.js → CashierSpinner-gJqeYU1n.js} +12 -13
- package/components/{CashierStepUp-CrJocLXp.js → CashierStepUp-B530YrSp.js} +168 -169
- package/components/{CashierStepUp-q7iSJelQ.js → CashierStepUp-BtmD9q4i.js} +245 -246
- package/components/CashierStepUp-DKytvkqu.cjs +1 -0
- package/components/{CashierTransactionHistory-sGV35WcB.js → CashierTransactionHistory-CWxjn4dO.js} +71 -71
- package/components/CashierTransactionHistory-CYaB1hEN.cjs +1 -0
- package/components/{CashierTransactionHistory-BrgrDNsw.js → CashierTransactionHistory-D1hopcmz.js} +66 -66
- package/components/{CashierVerifications-yC2Ur1H-.js → CashierVerifications-B3UcXWeI.js} +142 -158
- package/components/{CashierVerifications-DnM9z8za.js → CashierVerifications-CWsTc0hE.js} +102 -118
- package/components/CashierVerifications-D3X4oFbB.cjs +1 -0
- package/components/TxnStatusIcon-CWkyVMIU.cjs +1 -0
- package/components/{TxnStatusIcon-BduMMfo6.js → TxnStatusIcon-DCSCOAn2.js} +1 -1
- package/components/{TxnStatusIcon-rwPr0B_L.js → TxnStatusIcon-DRFHs_0F.js} +8 -8
- package/components/{TxnTypeIcons-ByJ8NlBp.js → TxnTypeIcons-Bg7QJKuH.js} +1 -1
- package/components/TxnTypeIcons-CTQXT_j5.cjs +1 -0
- package/components/{TxnTypeIcons-DQrCawdt.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-CFDrfBto.cjs +0 -1
- package/components/CashierCarousel-JhSTmzvt.js +0 -672
- package/components/CashierCarousel-PsCjjLe2.js +0 -675
- package/components/CashierError-zeIQl4g_.cjs +0 -1
- package/components/CashierHeader-Bp8vaWrp.cjs +0 -1
- package/components/CashierHeader-D-mMGt-Y.js +0 -456
- package/components/CashierHeader-il09PBLP.js +0 -456
- package/components/CashierIframeRedirect-CMcw96Fv.cjs +0 -1
- package/components/CashierMethodDetails-DnbNzQW6.cjs +0 -85
- package/components/CashierMethodsList-B_9i2Q2s.cjs +0 -1
- package/components/CashierModal-Dq36GGc7.cjs +0 -1
- package/components/CashierNotifications-BB8FN1j_.cjs +0 -1
- package/components/CashierPage-Cc-WWhS2.cjs +0 -23
- package/components/CashierPage-DRWrUyaV.js +0 -9936
- package/components/CashierPage-HxKce2E6.js +0 -9989
- package/components/CashierReceiptPage-CF7knTfT.cjs +0 -26
- package/components/CashierSessionExpirationModal-Dht4fdo7.cjs +0 -2
- package/components/CashierSpinner-D78lroyw.cjs +0 -1
- package/components/CashierStepUp-Dr4sPwOr.cjs +0 -1
- package/components/CashierTransactionHistory-sQ3KzTVb.cjs +0 -1
- package/components/CashierVerifications-t7V-5Qq2.cjs +0 -1
- package/components/TxnStatusIcon-DwP4kCaz.cjs +0 -1
- package/components/TxnTypeIcons-DwmzII52.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((i,
|
|
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 ? i(c.value) : Promise.resolve(c.value).then(a,
|
|
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 it, $ as
|
|
30
|
-
import { s as ht, a as gt, b as bt } from "./CashierHeader-D-mMGt-Y.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: {
|
|
@@ -113,19 +112,19 @@ function Pe(n, t, e) {
|
|
|
113
112
|
return i[69] = t[e], i[70] = t, i[71] = e, i;
|
|
114
113
|
}
|
|
115
114
|
function yt(n) {
|
|
116
|
-
let t, e, i,
|
|
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
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
149
|
let ie = ge(n), j = ie && ie(n);
|
|
151
|
-
function be(
|
|
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
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(), i = v("div"),
|
|
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,22 +172,22 @@ 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(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "rx", "2"), 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*/
|
|
@@ -196,8 +195,8 @@ function yt(n) {
|
|
|
196
195
|
n[20].EMAIL
|
|
197
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, i,
|
|
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"), i = J("svg"),
|
|
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, i), d(i,
|
|
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, i,
|
|
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(), i = x(), c && c.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, i, _), c && c.m(f, _), 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(i), O(
|
|
328
|
+
f && (O(t), O(i), O(l)), s.d(), c && c.d(f);
|
|
330
329
|
}
|
|
331
330
|
};
|
|
332
331
|
}
|
|
@@ -339,16 +338,16 @@ function Ct(n) {
|
|
|
339
338
|
c() {
|
|
340
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
|
}
|
|
@@ -361,16 +360,16 @@ function Et(n) {
|
|
|
361
360
|
c() {
|
|
362
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,11 +382,11 @@ function Ot(n) {
|
|
|
383
382
|
c() {
|
|
384
383
|
e = L(t);
|
|
385
384
|
},
|
|
386
|
-
m(i,
|
|
387
|
-
S(i, e,
|
|
385
|
+
m(i, l) {
|
|
386
|
+
S(i, e, l);
|
|
388
387
|
},
|
|
389
|
-
p(i,
|
|
390
|
-
|
|
388
|
+
p(i, l) {
|
|
389
|
+
l[0] & /*$_*/
|
|
391
390
|
524288 && t !== (t = /*$_*/
|
|
392
391
|
i[19]("popupMessage") + "") && D(e, t);
|
|
393
392
|
},
|
|
@@ -405,11 +404,11 @@ function St(n) {
|
|
|
405
404
|
c() {
|
|
406
405
|
e = L(t);
|
|
407
406
|
},
|
|
408
|
-
m(i,
|
|
409
|
-
S(i, e,
|
|
407
|
+
m(i, l) {
|
|
408
|
+
S(i, e, l);
|
|
410
409
|
},
|
|
411
|
-
p(i,
|
|
412
|
-
|
|
410
|
+
p(i, l) {
|
|
411
|
+
l[0] & /*$_*/
|
|
413
412
|
524288 && t !== (t = /*$_*/
|
|
414
413
|
i[19]("popupMessageLastWarning") + "") && D(e, t);
|
|
415
414
|
},
|
|
@@ -427,11 +426,11 @@ function xe(n) {
|
|
|
427
426
|
n[8]
|
|
428
427
|
), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
|
|
429
428
|
},
|
|
430
|
-
m(i,
|
|
431
|
-
S(i, t,
|
|
429
|
+
m(i, l) {
|
|
430
|
+
S(i, t, l), d(t, e);
|
|
432
431
|
},
|
|
433
|
-
p(i,
|
|
434
|
-
|
|
432
|
+
p(i, l) {
|
|
433
|
+
l[0] & /*errorMessage*/
|
|
435
434
|
256 && D(
|
|
436
435
|
e,
|
|
437
436
|
/*errorMessage*/
|
|
@@ -444,23 +443,23 @@ function xe(n) {
|
|
|
444
443
|
};
|
|
445
444
|
}
|
|
446
445
|
function De(n) {
|
|
447
|
-
let t, e, i,
|
|
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), i || (
|
|
462
|
+
S(c, t, f), s.m(t, null), i || (l = te(
|
|
464
463
|
t,
|
|
465
464
|
"click",
|
|
466
465
|
/*handleChannelSubmit*/
|
|
@@ -468,15 +467,15 @@ function De(n) {
|
|
|
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(), i = !1,
|
|
478
|
+
c && O(t), s.d(), i = !1, l();
|
|
480
479
|
}
|
|
481
480
|
};
|
|
482
481
|
}
|
|
@@ -489,11 +488,11 @@ function Mt(n) {
|
|
|
489
488
|
c() {
|
|
490
489
|
e = L(t);
|
|
491
490
|
},
|
|
492
|
-
m(i,
|
|
493
|
-
S(i, e,
|
|
491
|
+
m(i, l) {
|
|
492
|
+
S(i, e, l);
|
|
494
493
|
},
|
|
495
|
-
p(i,
|
|
496
|
-
|
|
494
|
+
p(i, l) {
|
|
495
|
+
l[0] & /*$_*/
|
|
497
496
|
524288 && t !== (t = /*$_*/
|
|
498
497
|
i[19]("sendCode") + "") && D(e, t);
|
|
499
498
|
},
|
|
@@ -506,29 +505,29 @@ function Tt(n) {
|
|
|
506
505
|
let t = (
|
|
507
506
|
/*$_*/
|
|
508
507
|
n[19]("waitSeconds") + ""
|
|
509
|
-
), e, i,
|
|
508
|
+
), e, i, l, a;
|
|
510
509
|
return {
|
|
511
510
|
c() {
|
|
512
|
-
e = L(t), i = L(" ("),
|
|
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
|
}
|
|
@@ -536,7 +535,7 @@ function Lt(n) {
|
|
|
536
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*/
|
|
@@ -553,25 +552,25 @@ 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
567
|
524288 && i !== (i = /*$_*/
|
|
569
|
-
m[19]("timeRemaining") + "") && D(
|
|
570
|
-
32 &&
|
|
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) {
|
|
@@ -610,16 +609,16 @@ function zt(n) {
|
|
|
610
609
|
};
|
|
611
610
|
}
|
|
612
611
|
function je(n) {
|
|
613
|
-
let t, e, i,
|
|
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 (
|
|
@@ -652,7 +651,7 @@ function je(n) {
|
|
|
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(
|
|
@@ -672,12 +671,12 @@ function je(n) {
|
|
|
672
671
|
4 && i !== (i = /*char*/
|
|
673
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
|
}
|
|
@@ -685,17 +684,17 @@ function At(n) {
|
|
|
685
684
|
let t, e = (
|
|
686
685
|
/*$_*/
|
|
687
686
|
n[19]("submit") + ""
|
|
688
|
-
), i,
|
|
687
|
+
), i, l, a, u;
|
|
689
688
|
return {
|
|
690
689
|
c() {
|
|
691
|
-
t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled =
|
|
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, i), a || (
|
|
697
|
+
S(s, t, c), d(t, i), a || (u = te(
|
|
699
698
|
t,
|
|
700
699
|
"click",
|
|
701
700
|
/*submitOtp*/
|
|
@@ -706,14 +705,14 @@ function At(n) {
|
|
|
706
705
|
c[0] & /*$_*/
|
|
707
706
|
524288 && e !== (e = /*$_*/
|
|
708
707
|
s[19]("submit") + "") && D(i, e), c[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
709
|
-
40980 &&
|
|
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,93 +720,93 @@ function Rt(n) {
|
|
|
721
720
|
let t, e = (
|
|
722
721
|
/*$_*/
|
|
723
722
|
n[19]("resendOtp") + ""
|
|
724
|
-
), i,
|
|
723
|
+
), i, l, a;
|
|
725
724
|
return {
|
|
726
725
|
c() {
|
|
727
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 i = e(n),
|
|
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
|
-
i === (i = e(a)) &&
|
|
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 i,
|
|
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
803
|
}), ie = () => {
|
|
805
|
-
H && (clearInterval(H), H = null),
|
|
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
806
|
ie();
|
|
808
|
-
}, be = () => new Promise((
|
|
807
|
+
}, be = () => new Promise((o, h) => {
|
|
809
808
|
const g = new URL(`${_}/api/pam/v1/mfa/challenge/${ne}`), A = new Headers();
|
|
810
|
-
A.append("accept", "application/json"), A.append("Content-Type", "application/json"), A.append("X-SessionId", `${w}`), e(16,
|
|
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
812
|
headers: A,
|
|
@@ -817,99 +816,99 @@ function Pt(n, t, e) {
|
|
|
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, z =
|
|
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
|
-
},
|
|
834
|
+
}, P = (o) => {
|
|
835
|
+
e(0, E = o);
|
|
836
|
+
}, p = () => me(this, null, function* () {
|
|
838
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
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 = (
|
|
867
|
+
g[o] = h.toUpperCase(), e(2, b = g), g.join("") !== ce && e(13, ae = !1);
|
|
868
|
+
}, He = (o) => {
|
|
870
869
|
var A, B, fe;
|
|
871
|
-
|
|
872
|
-
const g = (((B = (A =
|
|
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 =
|
|
873
|
+
}, Ce = (o, h) => {
|
|
874
|
+
const g = o.target, A = g.value;
|
|
876
875
|
if (/^[a-z0-9]$/i.test(A)) {
|
|
877
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
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) {
|
|
@@ -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
970
|
const A = g && g.message || `Failed to load config. Status: ${h.status}`;
|
|
972
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
|
-
ze[
|
|
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
|
-
ze[
|
|
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
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,
|
|
1027
|
-
|
|
1025
|
+
pe,
|
|
1026
|
+
l,
|
|
1028
1027
|
i,
|
|
1029
1028
|
a,
|
|
1030
1029
|
de,
|
|
1031
1030
|
P,
|
|
1032
|
-
|
|
1031
|
+
p,
|
|
1033
1032
|
Ve,
|
|
1034
1033
|
He,
|
|
1035
1034
|
Ce,
|
|
@@ -1038,7 +1037,7 @@ 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,
|
|
@@ -1051,10 +1050,10 @@ function Pt(n, t, e) {
|
|
|
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
|
};
|