@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,5 +1,4 @@
|
|
|
1
|
-
import { a as Ke, $ as Ge, S as Ye, b as Je, s as
|
|
2
|
-
import { s as lt, a as rt, b as st } from "./CashierHeader-il09PBLP.js";
|
|
1
|
+
import { a as Ke, $ as Ge, S as Ye, b as Je, s as Ze, f as le, c as Qe, G as ye, e as O, k as S, m as v, o as r, p as $e, q as et, y as Oe, v as P, l as d, x as ee, X as Y, n as R, w as L, a2 as xe, W as J, r as tt, Z as Se, a4 as nt, B as it, C as lt, D as ot, E as rt, F as st } from "./CashierCarousel-B-cM-nlR.js";
|
|
3
2
|
function Me(n, t) {
|
|
4
3
|
Ke(n, t);
|
|
5
4
|
}
|
|
@@ -78,17 +77,17 @@ const Te = {
|
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
79
|
function ct(n) {
|
|
81
|
-
|
|
80
|
+
Qe(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}}');
|
|
82
81
|
}
|
|
83
82
|
function Le(n, t, e) {
|
|
84
83
|
const i = n.slice();
|
|
85
84
|
return i[69] = t[e], i[70] = t, i[71] = e, i;
|
|
86
85
|
}
|
|
87
86
|
function pt(n) {
|
|
88
|
-
let t, e, i,
|
|
87
|
+
let t, e, i, l, a, p, s, u, f, _, w, T, M, b, m, y, C, A = (
|
|
89
88
|
/*$_*/
|
|
90
89
|
n[19]("channelSMS") + ""
|
|
91
|
-
), X,
|
|
90
|
+
), X, W, j, I, te, F, Z, oe, Q, E, z, N, re, se, ae = (
|
|
92
91
|
/*$_*/
|
|
93
92
|
n[19]("channelEmail") + ""
|
|
94
93
|
), q, de, U, B, G, ce, pe;
|
|
@@ -136,7 +135,7 @@ function pt(n) {
|
|
|
136
135
|
let ie = me(n), x = ie && ie(n);
|
|
137
136
|
return {
|
|
138
137
|
c() {
|
|
139
|
-
t = v("div"), K.c(), e = R(), i = v("div"),
|
|
138
|
+
t = v("div"), K.c(), e = R(), i = v("div"), l = v("label"), a = v("div"), p = R(), s = v("input"), f = R(), _ = v("div"), w = Y("svg"), T = Y("path"), M = Y("circle"), b = Y("circle"), m = Y("circle"), y = R(), C = v("span"), X = L(A), W = R(), j = v("label"), I = v("div"), te = R(), F = v("input"), oe = R(), Q = v("div"), E = Y("svg"), z = Y("rect"), N = Y("path"), re = R(), se = v("span"), q = L(ae), de = R(), V && V.c(), U = R(), D && D.c(), B = R(), G = v("div"), x && x.c(), r(t, "class", "OtpDescription"), r(a, "class", "RadioIndicator"), J(
|
|
140
139
|
a,
|
|
141
140
|
"checked",
|
|
142
141
|
/*selectedChannel*/
|
|
@@ -145,8 +144,8 @@ function pt(n) {
|
|
|
145
144
|
), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
|
|
146
145
|
n[20].SMS, s.checked = u = /*selectedChannel*/
|
|
147
146
|
n[0] === /*channels*/
|
|
148
|
-
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(
|
|
149
|
-
|
|
147
|
+
n[20].SMS, r(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), r(M, "cx", "9"), r(M, "cy", "11"), r(M, "r", "0.5"), r(M, "fill", "currentColor"), r(b, "cx", "12"), r(b, "cy", "11"), r(b, "r", "0.5"), r(b, "fill", "currentColor"), r(m, "cx", "15"), r(m, "cy", "11"), r(m, "r", "0.5"), r(m, "fill", "currentColor"), r(w, "xmlns", "http://www.w3.org/2000/svg"), r(w, "width", "24"), r(w, "height", "24"), r(w, "viewBox", "0 0 24 24"), r(w, "fill", "none"), r(w, "stroke", "currentColor"), r(w, "stroke-width", "2"), r(w, "stroke-linecap", "round"), r(w, "stroke-linejoin", "round"), r(_, "class", "ChannelContent"), r(l, "class", "ChannelCheckbox"), J(
|
|
148
|
+
l,
|
|
150
149
|
"selected",
|
|
151
150
|
/*selectedChannel*/
|
|
152
151
|
n[0] === /*channels*/
|
|
@@ -157,10 +156,10 @@ function pt(n) {
|
|
|
157
156
|
/*selectedChannel*/
|
|
158
157
|
n[0] === /*channels*/
|
|
159
158
|
n[20].EMAIL
|
|
160
|
-
), r(
|
|
161
|
-
n[20].EMAIL,
|
|
159
|
+
), r(F, "type", "radio"), r(F, "name", "channel"), F.value = /*channels*/
|
|
160
|
+
n[20].EMAIL, F.checked = Z = /*selectedChannel*/
|
|
162
161
|
n[0] === /*channels*/
|
|
163
|
-
n[20].EMAIL, r(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "rx", "2"), r(N, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r(
|
|
162
|
+
n[20].EMAIL, r(z, "x", "2"), r(z, "y", "4"), r(z, "width", "20"), r(z, "height", "16"), r(z, "rx", "2"), r(N, "d", "m2 7 10 6 10-6"), r(E, "xmlns", "http://www.w3.org/2000/svg"), r(E, "width", "24"), r(E, "height", "24"), r(E, "viewBox", "0 0 24 24"), r(E, "fill", "none"), r(E, "stroke", "currentColor"), r(E, "stroke-width", "2"), r(E, "stroke-linecap", "round"), r(E, "stroke-linejoin", "round"), r(Q, "class", "ChannelContent"), r(j, "class", "ChannelCheckbox"), J(
|
|
164
163
|
j,
|
|
165
164
|
"selected",
|
|
166
165
|
/*selectedChannel*/
|
|
@@ -169,7 +168,7 @@ function pt(n) {
|
|
|
169
168
|
), r(i, "class", "ChannelSelection"), r(G, "class", "OtpActionButtons");
|
|
170
169
|
},
|
|
171
170
|
m(c, k) {
|
|
172
|
-
S(c, t, k), K.m(t, null), S(c, e, k), S(c, i, k), d(i,
|
|
171
|
+
S(c, t, k), K.m(t, null), S(c, e, k), S(c, i, k), d(i, l), d(l, a), d(l, p), 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, X), d(i, W), d(i, j), d(j, I), d(j, te), d(j, F), d(j, oe), d(j, Q), d(Q, E), d(E, z), d(E, N), d(Q, re), d(Q, se), d(se, q), S(c, de, k), V && V.m(c, k), S(c, U, k), D && D.m(c, k), S(c, B, k), S(c, G, k), x && x.m(G, null), ce || (pe = [
|
|
173
172
|
ee(
|
|
174
173
|
s,
|
|
175
174
|
"change",
|
|
@@ -177,7 +176,7 @@ function pt(n) {
|
|
|
177
176
|
n[39]
|
|
178
177
|
),
|
|
179
178
|
ee(
|
|
180
|
-
|
|
179
|
+
F,
|
|
181
180
|
"change",
|
|
182
181
|
/*change_handler_1*/
|
|
183
182
|
n[40]
|
|
@@ -199,7 +198,7 @@ function pt(n) {
|
|
|
199
198
|
524288 && A !== (A = /*$_*/
|
|
200
199
|
c[19]("channelSMS") + "") && P(X, A), k[0] & /*selectedChannel, channels*/
|
|
201
200
|
1048577 && J(
|
|
202
|
-
|
|
201
|
+
l,
|
|
203
202
|
"selected",
|
|
204
203
|
/*selectedChannel*/
|
|
205
204
|
c[0] === /*channels*/
|
|
@@ -212,9 +211,9 @@ function pt(n) {
|
|
|
212
211
|
c[0] === /*channels*/
|
|
213
212
|
c[20].EMAIL
|
|
214
213
|
), k[0] & /*selectedChannel*/
|
|
215
|
-
1 &&
|
|
214
|
+
1 && Z !== (Z = /*selectedChannel*/
|
|
216
215
|
c[0] === /*channels*/
|
|
217
|
-
c[20].EMAIL) && (
|
|
216
|
+
c[20].EMAIL) && (F.checked = Z), k[0] & /*$_*/
|
|
218
217
|
524288 && ae !== (ae = /*$_*/
|
|
219
218
|
c[19]("channelEmail") + "") && P(q, ae), k[0] & /*selectedChannel, channels*/
|
|
220
219
|
1048577 && J(
|
|
@@ -232,7 +231,7 @@ function pt(n) {
|
|
|
232
231
|
};
|
|
233
232
|
}
|
|
234
233
|
function ut(n) {
|
|
235
|
-
let t, e, i,
|
|
234
|
+
let t, e, i, l, a, p, s = (
|
|
236
235
|
/*$_*/
|
|
237
236
|
n[19]("errorHeader") + ""
|
|
238
237
|
), u, f, _, w, T, M, b = (
|
|
@@ -241,13 +240,13 @@ function ut(n) {
|
|
|
241
240
|
), m, y, C;
|
|
242
241
|
return {
|
|
243
242
|
c() {
|
|
244
|
-
t = v("div"), e = v("div"), i = Y("svg"),
|
|
243
|
+
t = v("div"), e = v("div"), i = Y("svg"), l = Y("path"), a = R(), p = v("h2"), u = L(s), f = R(), _ = v("p"), w = L(
|
|
245
244
|
/*errorMessage*/
|
|
246
245
|
n[8]
|
|
247
|
-
), T = R(), M = v("button"), m = L(b), r(
|
|
246
|
+
), T = R(), 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");
|
|
248
247
|
},
|
|
249
248
|
m(A, X) {
|
|
250
|
-
S(A, t, X), d(t, e), d(e, i), d(i,
|
|
249
|
+
S(A, t, X), d(t, e), d(e, i), d(i, l), d(e, a), d(e, p), d(p, u), d(t, f), d(t, _), d(_, w), d(t, T), d(t, M), d(M, m), y || (C = ee(
|
|
251
250
|
M,
|
|
252
251
|
"click",
|
|
253
252
|
/*manualClosePopup*/
|
|
@@ -272,7 +271,7 @@ function ut(n) {
|
|
|
272
271
|
};
|
|
273
272
|
}
|
|
274
273
|
function dt(n) {
|
|
275
|
-
let t, e, i,
|
|
274
|
+
let t, e, i, l;
|
|
276
275
|
function a(f, _) {
|
|
277
276
|
return (
|
|
278
277
|
/*isLastWarning*/
|
|
@@ -285,20 +284,20 @@ function dt(n) {
|
|
|
285
284
|
);
|
|
286
285
|
return {
|
|
287
286
|
c() {
|
|
288
|
-
t = v("p"), s.c(), i = R(), u && u.c(),
|
|
287
|
+
t = v("p"), s.c(), i = R(), u && u.c(), l = tt(), r(t, "class", e = /*isLastWarning*/
|
|
289
288
|
n[10] ? "LastWarningMessage" : "");
|
|
290
289
|
},
|
|
291
290
|
m(f, _) {
|
|
292
|
-
S(f, t, _), s.m(t, null), S(f, i, _), u && u.m(f, _), S(f,
|
|
291
|
+
S(f, t, _), s.m(t, null), S(f, i, _), u && u.m(f, _), S(f, l, _);
|
|
293
292
|
},
|
|
294
293
|
p(f, _) {
|
|
295
294
|
p === (p = a(f)) && s ? s.p(f, _) : (s.d(1), s = p(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
|
|
296
295
|
1024 && e !== (e = /*isLastWarning*/
|
|
297
296
|
f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
|
|
298
|
-
f[6] ? u ? u.p(f, _) : (u = ze(f), u.c(), u.m(
|
|
297
|
+
f[6] ? u ? u.p(f, _) : (u = ze(f), u.c(), u.m(l.parentNode, l)) : u && (u.d(1), u = null);
|
|
299
298
|
},
|
|
300
299
|
d(f) {
|
|
301
|
-
f && (O(t), O(i), O(
|
|
300
|
+
f && (O(t), O(i), O(l)), s.d(), u && u.d(f);
|
|
302
301
|
}
|
|
303
302
|
};
|
|
304
303
|
}
|
|
@@ -311,16 +310,16 @@ function ft(n) {
|
|
|
311
310
|
c() {
|
|
312
311
|
t = v("p"), i = L(e);
|
|
313
312
|
},
|
|
314
|
-
m(
|
|
315
|
-
S(
|
|
313
|
+
m(l, a) {
|
|
314
|
+
S(l, t, a), d(t, i);
|
|
316
315
|
},
|
|
317
|
-
p(
|
|
316
|
+
p(l, a) {
|
|
318
317
|
a[0] & /*$_*/
|
|
319
318
|
524288 && e !== (e = /*$_*/
|
|
320
|
-
(
|
|
319
|
+
(l[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && P(i, e);
|
|
321
320
|
},
|
|
322
|
-
d(
|
|
323
|
-
|
|
321
|
+
d(l) {
|
|
322
|
+
l && O(t);
|
|
324
323
|
}
|
|
325
324
|
};
|
|
326
325
|
}
|
|
@@ -333,16 +332,16 @@ function mt(n) {
|
|
|
333
332
|
c() {
|
|
334
333
|
t = v("p"), i = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
|
|
335
334
|
},
|
|
336
|
-
m(
|
|
337
|
-
S(
|
|
335
|
+
m(l, a) {
|
|
336
|
+
S(l, t, a), d(t, i);
|
|
338
337
|
},
|
|
339
|
-
p(
|
|
338
|
+
p(l, a) {
|
|
340
339
|
a[0] & /*$_*/
|
|
341
340
|
524288 && e !== (e = /*$_*/
|
|
342
|
-
|
|
341
|
+
l[19]("otpExpiredMessage") + "") && P(i, e);
|
|
343
342
|
},
|
|
344
|
-
d(
|
|
345
|
-
|
|
343
|
+
d(l) {
|
|
344
|
+
l && O(t);
|
|
346
345
|
}
|
|
347
346
|
};
|
|
348
347
|
}
|
|
@@ -355,11 +354,11 @@ function ht(n) {
|
|
|
355
354
|
c() {
|
|
356
355
|
e = L(t);
|
|
357
356
|
},
|
|
358
|
-
m(i,
|
|
359
|
-
S(i, e,
|
|
357
|
+
m(i, l) {
|
|
358
|
+
S(i, e, l);
|
|
360
359
|
},
|
|
361
|
-
p(i,
|
|
362
|
-
|
|
360
|
+
p(i, l) {
|
|
361
|
+
l[0] & /*$_*/
|
|
363
362
|
524288 && t !== (t = /*$_*/
|
|
364
363
|
i[19]("popupMessage") + "") && P(e, t);
|
|
365
364
|
},
|
|
@@ -377,11 +376,11 @@ function gt(n) {
|
|
|
377
376
|
c() {
|
|
378
377
|
e = L(t);
|
|
379
378
|
},
|
|
380
|
-
m(i,
|
|
381
|
-
S(i, e,
|
|
379
|
+
m(i, l) {
|
|
380
|
+
S(i, e, l);
|
|
382
381
|
},
|
|
383
|
-
p(i,
|
|
384
|
-
|
|
382
|
+
p(i, l) {
|
|
383
|
+
l[0] & /*$_*/
|
|
385
384
|
524288 && t !== (t = /*$_*/
|
|
386
385
|
i[19]("popupMessageLastWarning") + "") && P(e, t);
|
|
387
386
|
},
|
|
@@ -399,11 +398,11 @@ function ze(n) {
|
|
|
399
398
|
n[8]
|
|
400
399
|
), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
|
|
401
400
|
},
|
|
402
|
-
m(i,
|
|
403
|
-
S(i, t,
|
|
401
|
+
m(i, l) {
|
|
402
|
+
S(i, t, l), d(t, e);
|
|
404
403
|
},
|
|
405
|
-
p(i,
|
|
406
|
-
|
|
404
|
+
p(i, l) {
|
|
405
|
+
l[0] & /*errorMessage*/
|
|
407
406
|
256 && P(
|
|
408
407
|
e,
|
|
409
408
|
/*errorMessage*/
|
|
@@ -416,7 +415,7 @@ function ze(n) {
|
|
|
416
415
|
};
|
|
417
416
|
}
|
|
418
417
|
function Ae(n) {
|
|
419
|
-
let t, e, i,
|
|
418
|
+
let t, e, i, l;
|
|
420
419
|
function a(u, f) {
|
|
421
420
|
return (
|
|
422
421
|
/*currentChannelTimer*/
|
|
@@ -432,7 +431,7 @@ function Ae(n) {
|
|
|
432
431
|
n[16]);
|
|
433
432
|
},
|
|
434
433
|
m(u, f) {
|
|
435
|
-
S(u, t, f), s.m(t, null), i || (
|
|
434
|
+
S(u, t, f), s.m(t, null), i || (l = ee(
|
|
436
435
|
t,
|
|
437
436
|
"click",
|
|
438
437
|
/*handleChannelSubmit*/
|
|
@@ -448,7 +447,7 @@ function Ae(n) {
|
|
|
448
447
|
u[16]);
|
|
449
448
|
},
|
|
450
449
|
d(u) {
|
|
451
|
-
u && O(t), s.d(), i = !1,
|
|
450
|
+
u && O(t), s.d(), i = !1, l();
|
|
452
451
|
}
|
|
453
452
|
};
|
|
454
453
|
}
|
|
@@ -461,11 +460,11 @@ function bt(n) {
|
|
|
461
460
|
c() {
|
|
462
461
|
e = L(t);
|
|
463
462
|
},
|
|
464
|
-
m(i,
|
|
465
|
-
S(i, e,
|
|
463
|
+
m(i, l) {
|
|
464
|
+
S(i, e, l);
|
|
466
465
|
},
|
|
467
|
-
p(i,
|
|
468
|
-
|
|
466
|
+
p(i, l) {
|
|
467
|
+
l[0] & /*$_*/
|
|
469
468
|
524288 && t !== (t = /*$_*/
|
|
470
469
|
i[19]("sendCode") + "") && P(e, t);
|
|
471
470
|
},
|
|
@@ -478,29 +477,29 @@ function wt(n) {
|
|
|
478
477
|
let t = (
|
|
479
478
|
/*$_*/
|
|
480
479
|
n[19]("waitSeconds") + ""
|
|
481
|
-
), e, i,
|
|
480
|
+
), e, i, l, a;
|
|
482
481
|
return {
|
|
483
482
|
c() {
|
|
484
|
-
e = L(t), i = L(" ("),
|
|
483
|
+
e = L(t), i = L(" ("), l = L(
|
|
485
484
|
/*currentChannelTimer*/
|
|
486
485
|
n[17]
|
|
487
486
|
), a = L("s)");
|
|
488
487
|
},
|
|
489
488
|
m(p, s) {
|
|
490
|
-
S(p, e, s), S(p, i, s), S(p,
|
|
489
|
+
S(p, e, s), S(p, i, s), S(p, l, s), S(p, a, s);
|
|
491
490
|
},
|
|
492
491
|
p(p, s) {
|
|
493
492
|
s[0] & /*$_*/
|
|
494
493
|
524288 && t !== (t = /*$_*/
|
|
495
494
|
p[19]("waitSeconds") + "") && P(e, t), s[0] & /*currentChannelTimer*/
|
|
496
495
|
131072 && P(
|
|
497
|
-
|
|
496
|
+
l,
|
|
498
497
|
/*currentChannelTimer*/
|
|
499
498
|
p[17]
|
|
500
499
|
);
|
|
501
500
|
},
|
|
502
501
|
d(p) {
|
|
503
|
-
p && (O(e), O(i), O(
|
|
502
|
+
p && (O(e), O(i), O(l), O(a));
|
|
504
503
|
}
|
|
505
504
|
};
|
|
506
505
|
}
|
|
@@ -508,7 +507,7 @@ function _t(n) {
|
|
|
508
507
|
let t, e, i = (
|
|
509
508
|
/*$_*/
|
|
510
509
|
n[19]("timeRemaining") + ""
|
|
511
|
-
),
|
|
510
|
+
), l, a, p = (
|
|
512
511
|
/*formatTime*/
|
|
513
512
|
n[23](
|
|
514
513
|
/*timeLeft*/
|
|
@@ -525,20 +524,20 @@ function _t(n) {
|
|
|
525
524
|
b[m] = Ie(Le(n, M, m));
|
|
526
525
|
return {
|
|
527
526
|
c() {
|
|
528
|
-
t = v("div"), e = v("div"),
|
|
527
|
+
t = v("div"), e = v("div"), l = L(i), a = R(), s = L(p), u = R(), _ = L(f), w = R(), T = v("div");
|
|
529
528
|
for (let m = 0; m < b.length; m += 1)
|
|
530
529
|
b[m].c();
|
|
531
530
|
r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
|
|
532
531
|
},
|
|
533
532
|
m(m, y) {
|
|
534
|
-
S(m, t, y), d(t, e), d(e,
|
|
533
|
+
S(m, t, y), d(t, e), d(e, l), d(e, a), d(e, s), d(e, u), d(e, _), d(t, w), d(t, T);
|
|
535
534
|
for (let C = 0; C < b.length; C += 1)
|
|
536
535
|
b[C] && b[C].m(T, null);
|
|
537
536
|
},
|
|
538
537
|
p(m, y) {
|
|
539
538
|
if (y[0] & /*$_*/
|
|
540
539
|
524288 && i !== (i = /*$_*/
|
|
541
|
-
m[19]("timeRemaining") + "") && P(
|
|
540
|
+
m[19]("timeRemaining") + "") && P(l, i), y[0] & /*timeLeft*/
|
|
542
541
|
32 && p !== (p = /*formatTime*/
|
|
543
542
|
m[23](
|
|
544
543
|
/*timeLeft*/
|
|
@@ -582,16 +581,16 @@ function yt(n) {
|
|
|
582
581
|
};
|
|
583
582
|
}
|
|
584
583
|
function Ie(n) {
|
|
585
|
-
let t, e, i,
|
|
584
|
+
let t, e, i, l = (
|
|
586
585
|
/*index*/
|
|
587
586
|
n[71]
|
|
588
587
|
), a, p;
|
|
589
588
|
const s = () => (
|
|
590
589
|
/*input_binding*/
|
|
591
|
-
n[41](t,
|
|
590
|
+
n[41](t, l)
|
|
592
591
|
), u = () => (
|
|
593
592
|
/*input_binding*/
|
|
594
|
-
n[41](null,
|
|
593
|
+
n[41](null, l)
|
|
595
594
|
);
|
|
596
595
|
function f(...w) {
|
|
597
596
|
return (
|
|
@@ -644,8 +643,8 @@ function Ie(n) {
|
|
|
644
643
|
4 && i !== (i = /*char*/
|
|
645
644
|
n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
|
|
646
645
|
2048 && (t.disabled = /*inputDisabled*/
|
|
647
|
-
n[11]),
|
|
648
|
-
n[71] && (u(),
|
|
646
|
+
n[11]), l !== /*index*/
|
|
647
|
+
n[71] && (u(), l = /*index*/
|
|
649
648
|
n[71], s());
|
|
650
649
|
},
|
|
651
650
|
d(w) {
|
|
@@ -657,10 +656,10 @@ function vt(n) {
|
|
|
657
656
|
let t, e = (
|
|
658
657
|
/*$_*/
|
|
659
658
|
n[19]("submit") + ""
|
|
660
|
-
), i,
|
|
659
|
+
), i, l, a, p;
|
|
661
660
|
return {
|
|
662
661
|
c() {
|
|
663
|
-
t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled =
|
|
662
|
+
t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled = l = /*otp*/
|
|
664
663
|
n[2].join("").length !== /*config*/
|
|
665
664
|
n[4].inputLength || /*isSubmitting*/
|
|
666
665
|
n[13] || /*maxAttempts*/
|
|
@@ -678,11 +677,11 @@ function vt(n) {
|
|
|
678
677
|
u[0] & /*$_*/
|
|
679
678
|
524288 && e !== (e = /*$_*/
|
|
680
679
|
s[19]("submit") + "") && P(i, e), u[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
681
|
-
40980 &&
|
|
680
|
+
40980 && l !== (l = /*otp*/
|
|
682
681
|
s[2].join("").length !== /*config*/
|
|
683
682
|
s[4].inputLength || /*isSubmitting*/
|
|
684
683
|
s[13] || /*maxAttempts*/
|
|
685
|
-
s[15]) && (t.disabled =
|
|
684
|
+
s[15]) && (t.disabled = l);
|
|
686
685
|
},
|
|
687
686
|
d(s) {
|
|
688
687
|
s && O(t), a = !1, p();
|
|
@@ -693,18 +692,18 @@ function kt(n) {
|
|
|
693
692
|
let t, e = (
|
|
694
693
|
/*$_*/
|
|
695
694
|
n[19]("resendOtp") + ""
|
|
696
|
-
), i,
|
|
695
|
+
), i, l, a;
|
|
697
696
|
return {
|
|
698
697
|
c() {
|
|
699
698
|
t = v("button"), i = L(e), r(t, "class", "OtpButton");
|
|
700
699
|
},
|
|
701
700
|
m(p, s) {
|
|
702
|
-
S(p, t, s), d(t, i),
|
|
701
|
+
S(p, t, s), d(t, i), l || (a = ee(
|
|
703
702
|
t,
|
|
704
703
|
"click",
|
|
705
704
|
/*handleResendOtp*/
|
|
706
705
|
n[27]
|
|
707
|
-
),
|
|
706
|
+
), l = !0);
|
|
708
707
|
},
|
|
709
708
|
p(p, s) {
|
|
710
709
|
s[0] & /*$_*/
|
|
@@ -712,7 +711,7 @@ function kt(n) {
|
|
|
712
711
|
p[19]("resendOtp") + "") && P(i, e);
|
|
713
712
|
},
|
|
714
713
|
d(p) {
|
|
715
|
-
p && O(t),
|
|
714
|
+
p && O(t), l = !1, a();
|
|
716
715
|
}
|
|
717
716
|
};
|
|
718
717
|
}
|
|
@@ -724,59 +723,59 @@ function Ct(n) {
|
|
|
724
723
|
a[7] ? ut : pt
|
|
725
724
|
);
|
|
726
725
|
}
|
|
727
|
-
let i = e(n),
|
|
726
|
+
let i = e(n), l = i(n);
|
|
728
727
|
return {
|
|
729
728
|
c() {
|
|
730
|
-
t = v("div"),
|
|
729
|
+
t = v("div"), l.c(), r(t, "class", "OtpContent");
|
|
731
730
|
},
|
|
732
731
|
m(a, p) {
|
|
733
|
-
S(a, t, p),
|
|
732
|
+
S(a, t, p), l.m(t, null), n[44](t);
|
|
734
733
|
},
|
|
735
734
|
p(a, p) {
|
|
736
|
-
i === (i = e(a)) &&
|
|
735
|
+
i === (i = e(a)) && l ? l.p(a, p) : (l.d(1), l = i(a), l && (l.c(), l.m(t, null)));
|
|
737
736
|
},
|
|
738
737
|
i: ye,
|
|
739
738
|
o: ye,
|
|
740
739
|
d(a) {
|
|
741
|
-
a && O(t),
|
|
740
|
+
a && O(t), l.d(), n[44](null);
|
|
742
741
|
}
|
|
743
742
|
};
|
|
744
743
|
}
|
|
745
744
|
function Et(n, t, e) {
|
|
746
|
-
let i,
|
|
747
|
-
$e(n,
|
|
748
|
-
let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, A = "", X = "",
|
|
745
|
+
let i, l, a;
|
|
746
|
+
$e(n, st, (o) => e(19, a = o));
|
|
747
|
+
let { clientstyling: p = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: f = "en" } = t, { endpoint: _ } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, C = 0, A = "", X = "", W = !1, j = !1, I = "", te = "", F = "", Z = !1, oe = !1, Q = !1, E = "", z = {}, N = null, re = !1, se = !1, ae = "", q, de, U = [], B = null, G = 0, ce = !1, pe = !1;
|
|
749
748
|
const ue = { SMS: "sms", EMAIL: "email" }, $ = {
|
|
750
749
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
751
750
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
752
751
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
753
752
|
};
|
|
754
|
-
Object.keys(Te).forEach((
|
|
755
|
-
Me(
|
|
753
|
+
Object.keys(Te).forEach((o) => {
|
|
754
|
+
Me(o, Te[o]);
|
|
756
755
|
});
|
|
757
756
|
const K = () => {
|
|
758
757
|
at(f);
|
|
759
758
|
}, V = () => {
|
|
760
|
-
fetch(T).then((
|
|
761
|
-
Object.keys(
|
|
762
|
-
Me(h,
|
|
759
|
+
fetch(T).then((o) => o.json()).then((o) => {
|
|
760
|
+
Object.keys(o).forEach((h) => {
|
|
761
|
+
Me(h, o[h]);
|
|
763
762
|
});
|
|
764
|
-
}).catch((
|
|
765
|
-
console.log(
|
|
763
|
+
}).catch((o) => {
|
|
764
|
+
console.log(o);
|
|
766
765
|
});
|
|
767
|
-
}, fe = async (
|
|
768
|
-
if (
|
|
769
|
-
if (e(7, j = !1), e(6,
|
|
766
|
+
}, fe = async (o) => {
|
|
767
|
+
if (o.detail?.["x-step-up-required"]) {
|
|
768
|
+
if (e(7, j = !1), e(6, W = !1), e(8, I = ""), te = o.detail["x-step-up-token"], F = o.detail.flow, !te || !F) {
|
|
770
769
|
e(3, m = !1), e(7, j = !0), e(8, I = a("configError"));
|
|
771
770
|
return;
|
|
772
771
|
}
|
|
773
772
|
e(12, re = !1), e(3, m = !1);
|
|
774
773
|
}
|
|
775
774
|
}, ne = () => {
|
|
776
|
-
B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6,
|
|
775
|
+
B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6, W = !1), e(7, j = !1), e(8, I = ""), e(10, oe = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, re = !1), e(38, z = {});
|
|
777
776
|
}, D = () => {
|
|
778
777
|
ne();
|
|
779
|
-
}, me = () => new Promise((
|
|
778
|
+
}, me = () => new Promise((o, h) => {
|
|
780
779
|
const g = new URL(`${_}/api/pam/v1/mfa/challenge/${te}`), H = new Headers();
|
|
781
780
|
H.append("accept", "application/json"), H.append("Content-Type", "application/json"), H.append("X-SessionId", `${w}`), e(16, pe = !0);
|
|
782
781
|
const _e = {
|
|
@@ -788,23 +787,23 @@ function Et(n, t, e) {
|
|
|
788
787
|
})
|
|
789
788
|
};
|
|
790
789
|
fetch(g, _e).then((Ee) => Ee.json()).then(() => {
|
|
791
|
-
e(15, ce = !1), k(), ge(),
|
|
790
|
+
e(15, ce = !1), k(), ge(), o();
|
|
792
791
|
}).catch((Ee) => {
|
|
793
792
|
h();
|
|
794
793
|
});
|
|
795
794
|
}), ie = () => {
|
|
796
795
|
N && clearInterval(N), N = setInterval(
|
|
797
796
|
() => {
|
|
798
|
-
const
|
|
797
|
+
const o = { ...z };
|
|
799
798
|
let h = !1;
|
|
800
|
-
Object.keys(
|
|
801
|
-
|
|
802
|
-
}), e(38, z =
|
|
799
|
+
Object.keys(o).forEach((g) => {
|
|
800
|
+
o[g] > 0 && (o[g]--, h = !0);
|
|
801
|
+
}), e(38, z = o), !h && N && (clearInterval(N), N = null);
|
|
803
802
|
},
|
|
804
803
|
1e3
|
|
805
804
|
);
|
|
806
|
-
}, x = (
|
|
807
|
-
e(0, E =
|
|
805
|
+
}, x = (o) => {
|
|
806
|
+
e(0, E = o);
|
|
808
807
|
}, c = async () => {
|
|
809
808
|
if (!(!E || z[E] && z[E] > 0)) {
|
|
810
809
|
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
|
|
@@ -813,64 +812,64 @@ function Et(n, t, e) {
|
|
|
813
812
|
...z,
|
|
814
813
|
[E]: 30
|
|
815
814
|
}), ie(), e(12, re = !0), k(), ge();
|
|
816
|
-
} catch (
|
|
817
|
-
console.error("Error submitting channel:",
|
|
815
|
+
} catch (o) {
|
|
816
|
+
console.error("Error submitting channel:", o), e(6, W = !0), e(8, I = a("submissionError"));
|
|
818
817
|
} finally {
|
|
819
818
|
e(3, m = !1);
|
|
820
819
|
}
|
|
821
820
|
}
|
|
822
821
|
}, k = () => {
|
|
823
|
-
const
|
|
824
|
-
G =
|
|
822
|
+
const o = new Date(A), h = new Date(X), g = /* @__PURE__ */ new Date(), H = h.getTime() - g.getTime();
|
|
823
|
+
G = o.getTime() - H;
|
|
825
824
|
const he = Date.now(), _e = Math.max(0, Math.floor((G - he) / 1e3));
|
|
826
825
|
e(5, C = _e);
|
|
827
826
|
}, ge = () => {
|
|
828
827
|
B && clearInterval(B), B = setInterval(
|
|
829
828
|
() => {
|
|
830
|
-
const
|
|
831
|
-
e(5, C = h), e(11,
|
|
829
|
+
const o = Date.now(), h = Math.max(0, Math.floor((G - o) / 1e3));
|
|
830
|
+
e(5, C = h), e(11, Q = h <= 0), h <= 0 && (clearInterval(B), B = null, e(9, Z = !0), e(6, W = !1), e(10, oe = !1));
|
|
832
831
|
},
|
|
833
832
|
1e3
|
|
834
833
|
);
|
|
835
|
-
}, Re = (
|
|
836
|
-
const h = Math.floor(
|
|
834
|
+
}, Re = (o) => {
|
|
835
|
+
const h = Math.floor(o / 60), g = o % 60;
|
|
837
836
|
return `${h.toString().padStart(2, "0")}:${g.toString().padStart(2, "0")}`;
|
|
838
|
-
}, be = (
|
|
837
|
+
}, be = (o, h) => {
|
|
839
838
|
const g = [...b];
|
|
840
|
-
g[
|
|
841
|
-
}, Pe = (
|
|
842
|
-
|
|
843
|
-
const g = (
|
|
839
|
+
g[o] = h.toUpperCase(), e(2, b = g), g.join("") !== ae && e(13, se = !1);
|
|
840
|
+
}, Pe = (o) => {
|
|
841
|
+
o.preventDefault();
|
|
842
|
+
const g = (o.clipboardData?.getData("text")?.trim() || "").slice(0, y.inputLength).split("");
|
|
844
843
|
e(2, b = [...g, ...Array(y.inputLength - g.length).fill("")]), U[g.length]?.focus(), g.length === y.inputLength && Ce();
|
|
845
|
-
}, ve = (
|
|
846
|
-
const g =
|
|
844
|
+
}, ve = (o, h) => {
|
|
845
|
+
const g = o.target, H = g.value;
|
|
847
846
|
/^[a-z0-9]$/i.test(H) && (be(h, H), U[h + 1]?.focus()), g.value = "";
|
|
848
|
-
}, ke = (
|
|
849
|
-
const g =
|
|
847
|
+
}, ke = (o, h) => {
|
|
848
|
+
const g = o.key, H = o.ctrlKey || o.metaKey;
|
|
850
849
|
if (/^[a-z0-9]$/i.test(g)) {
|
|
851
850
|
if (H && g.toLowerCase() === "v")
|
|
852
851
|
return;
|
|
853
|
-
|
|
852
|
+
o.preventDefault(), be(h, g), U[h + 1]?.focus();
|
|
854
853
|
} else
|
|
855
|
-
g === "Backspace" && (
|
|
854
|
+
g === "Backspace" && (o.preventDefault(), b[h] !== "" && be(h, ""), U[h - 1]?.focus());
|
|
856
855
|
}, De = () => {
|
|
857
|
-
|
|
858
|
-
const
|
|
859
|
-
window.dispatchEvent(
|
|
860
|
-
}, je = (
|
|
856
|
+
F == "stateful" && (me(), e(9, Z = !1));
|
|
857
|
+
const o = new CustomEvent("otpResendRequested");
|
|
858
|
+
window.dispatchEvent(o);
|
|
859
|
+
}, je = (o) => {
|
|
861
860
|
window.dispatchEvent(new CustomEvent(
|
|
862
861
|
"otpSubmitted",
|
|
863
862
|
{
|
|
864
863
|
detail: {
|
|
865
|
-
code:
|
|
864
|
+
code: o,
|
|
866
865
|
maxAttempts: y.maxValidationAttempts,
|
|
867
866
|
validatedAttempts: y.numberOfValidateAttempts
|
|
868
867
|
}
|
|
869
868
|
}
|
|
870
869
|
));
|
|
871
|
-
}, Be = async (
|
|
870
|
+
}, Be = async (o) => {
|
|
872
871
|
const h = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, _);
|
|
873
|
-
h.searchParams.append("input",
|
|
872
|
+
h.searchParams.append("input", o);
|
|
874
873
|
try {
|
|
875
874
|
const g = await fetch(h.href, { method: "POST" });
|
|
876
875
|
if (g.status === 200) {
|
|
@@ -894,10 +893,10 @@ function Et(n, t, e) {
|
|
|
894
893
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
895
894
|
return;
|
|
896
895
|
}
|
|
897
|
-
e(6,
|
|
896
|
+
e(6, W = !0), e(8, I = a("invalidOtp")), we();
|
|
898
897
|
return;
|
|
899
898
|
}
|
|
900
|
-
g.message === $.MAX_INVALIDATE && (e(6,
|
|
899
|
+
g.message === $.MAX_INVALIDATE && (e(6, W = !0), e(8, I = a("invalidOtp"))), g.details === $.MAX_ATTEMPTS_EXCEEDED && e(15, ce = !0), console.error("OTP submission failed:", g), e(6, W = !0), e(8, I = a("submissionError"));
|
|
901
900
|
} finally {
|
|
902
901
|
e(3, m = !1);
|
|
903
902
|
}
|
|
@@ -914,59 +913,59 @@ function Et(n, t, e) {
|
|
|
914
913
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
915
914
|
}, Ce = async () => {
|
|
916
915
|
if (b.join("").length !== y.inputLength) {
|
|
917
|
-
e(6,
|
|
916
|
+
e(6, W = !0), e(8, I = a("invalidOtp"));
|
|
918
917
|
return;
|
|
919
918
|
}
|
|
920
|
-
const
|
|
921
|
-
e(13, se = !0), ae =
|
|
919
|
+
const o = b.join("");
|
|
920
|
+
e(13, se = !0), ae = o, e(3, m = !0), e(6, W = !1), e(8, I = ""), F === "stateless" && je(o), F === "stateful" && await Be(o);
|
|
922
921
|
}, we = async () => {
|
|
923
922
|
if (_)
|
|
924
923
|
try {
|
|
925
924
|
e(3, m = !0);
|
|
926
|
-
const
|
|
925
|
+
const o = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, _), h = await fetch(o.href), g = await h.json();
|
|
927
926
|
if (h.ok)
|
|
928
|
-
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9,
|
|
927
|
+
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Z = !1), A = y.expirationTime, X = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, W = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, oe = !0), e(3, m = !1), k(), ge(), e(16, pe = !1);
|
|
929
928
|
else if (g && g.details === $.MAX_ATTEMPTS_EXCEEDED)
|
|
930
929
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
931
930
|
else {
|
|
932
931
|
const H = g && g.message || `Failed to load config. Status: ${h.status}`;
|
|
933
932
|
throw new Error(H);
|
|
934
933
|
}
|
|
935
|
-
} catch (
|
|
936
|
-
e(3, m = !1), e(7, j = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:",
|
|
934
|
+
} catch (o) {
|
|
935
|
+
e(3, m = !1), e(7, j = !0), e(8, I = a("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", o);
|
|
937
936
|
}
|
|
938
937
|
};
|
|
939
938
|
et(() => (window.addEventListener("stepUpAuthRequired", fe, !1), window.addEventListener("closePopup", D, !1), () => {
|
|
940
939
|
window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B), N && clearInterval(N);
|
|
941
940
|
}));
|
|
942
|
-
const Ne = () => x(ue.SMS),
|
|
943
|
-
function
|
|
944
|
-
Oe[
|
|
945
|
-
U[h] =
|
|
941
|
+
const Ne = () => x(ue.SMS), We = () => x(ue.EMAIL);
|
|
942
|
+
function Fe(o, h) {
|
|
943
|
+
Oe[o ? "unshift" : "push"](() => {
|
|
944
|
+
U[h] = o, e(14, U);
|
|
946
945
|
});
|
|
947
946
|
}
|
|
948
|
-
const qe = (
|
|
949
|
-
function Xe(
|
|
950
|
-
Oe[
|
|
951
|
-
q =
|
|
947
|
+
const qe = (o, h) => ve(h, o), Ue = (o, h) => ke(h, o);
|
|
948
|
+
function Xe(o) {
|
|
949
|
+
Oe[o ? "unshift" : "push"](() => {
|
|
950
|
+
q = o, e(1, q);
|
|
952
951
|
});
|
|
953
952
|
}
|
|
954
|
-
return n.$$set = (
|
|
955
|
-
"clientstyling" in
|
|
953
|
+
return n.$$set = (o) => {
|
|
954
|
+
"clientstyling" in o && e(31, p = o.clientstyling), "clientstylingurl" in o && e(32, s = o.clientstylingurl), "mbsource" in o && e(33, u = 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);
|
|
956
955
|
}, n.$$.update = () => {
|
|
957
956
|
n.$$.dirty[0] & /*customStylingContainer*/
|
|
958
957
|
2 | n.$$.dirty[1] & /*clientstyling*/
|
|
959
|
-
1 && p && q &&
|
|
958
|
+
1 && p && q && it(q, p), n.$$.dirty[0] & /*customStylingContainer*/
|
|
960
959
|
2 | n.$$.dirty[1] & /*clientstylingurl*/
|
|
961
|
-
2 && s && q &&
|
|
960
|
+
2 && s && q && lt(q, s), n.$$.dirty[0] & /*customStylingContainer*/
|
|
962
961
|
2 | n.$$.dirty[1] & /*mbsource*/
|
|
963
|
-
4 && u && q &&
|
|
962
|
+
4 && u && q && ot(q, `${u}.Style`, de), n.$$.dirty[1] & /*lang*/
|
|
964
963
|
8 && f && K(), n.$$.dirty[1] & /*lang, translationurl*/
|
|
965
964
|
72 && f && T && V(), n.$$.dirty[0] & /*selectedChannel*/
|
|
966
965
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
967
966
|
128 && e(18, i = E && (!z[E] || z[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
|
|
968
967
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
969
|
-
128 && e(17,
|
|
968
|
+
128 && e(17, l = E && z[E] || 0);
|
|
970
969
|
}, [
|
|
971
970
|
E,
|
|
972
971
|
q,
|
|
@@ -974,18 +973,18 @@ function Et(n, t, e) {
|
|
|
974
973
|
m,
|
|
975
974
|
y,
|
|
976
975
|
C,
|
|
977
|
-
|
|
976
|
+
W,
|
|
978
977
|
j,
|
|
979
978
|
I,
|
|
980
|
-
Q,
|
|
981
|
-
le,
|
|
982
979
|
Z,
|
|
980
|
+
oe,
|
|
981
|
+
Q,
|
|
983
982
|
re,
|
|
984
983
|
se,
|
|
985
984
|
U,
|
|
986
985
|
ce,
|
|
987
986
|
pe,
|
|
988
|
-
|
|
987
|
+
l,
|
|
989
988
|
i,
|
|
990
989
|
a,
|
|
991
990
|
ue,
|
|
@@ -1008,8 +1007,8 @@ function Et(n, t, e) {
|
|
|
1008
1007
|
T,
|
|
1009
1008
|
z,
|
|
1010
1009
|
Ne,
|
|
1011
|
-
Fe,
|
|
1012
1010
|
We,
|
|
1011
|
+
Fe,
|
|
1013
1012
|
qe,
|
|
1014
1013
|
Ue,
|
|
1015
1014
|
Xe
|
|
@@ -1022,7 +1021,7 @@ class Ot extends Ye {
|
|
|
1022
1021
|
t,
|
|
1023
1022
|
Et,
|
|
1024
1023
|
Ct,
|
|
1025
|
-
|
|
1024
|
+
Ze,
|
|
1026
1025
|
{
|
|
1027
1026
|
clientstyling: 31,
|
|
1028
1027
|
clientstylingurl: 32,
|
|
@@ -1041,52 +1040,52 @@ class Ot extends Ye {
|
|
|
1041
1040
|
return this.$$.ctx[31];
|
|
1042
1041
|
}
|
|
1043
1042
|
set clientstyling(t) {
|
|
1044
|
-
this.$$set({ clientstyling: t }),
|
|
1043
|
+
this.$$set({ clientstyling: t }), le();
|
|
1045
1044
|
}
|
|
1046
1045
|
get clientstylingurl() {
|
|
1047
1046
|
return this.$$.ctx[32];
|
|
1048
1047
|
}
|
|
1049
1048
|
set clientstylingurl(t) {
|
|
1050
|
-
this.$$set({ clientstylingurl: t }),
|
|
1049
|
+
this.$$set({ clientstylingurl: t }), le();
|
|
1051
1050
|
}
|
|
1052
1051
|
get mbsource() {
|
|
1053
1052
|
return this.$$.ctx[33];
|
|
1054
1053
|
}
|
|
1055
1054
|
set mbsource(t) {
|
|
1056
|
-
this.$$set({ mbsource: t }),
|
|
1055
|
+
this.$$set({ mbsource: t }), le();
|
|
1057
1056
|
}
|
|
1058
1057
|
get lang() {
|
|
1059
1058
|
return this.$$.ctx[34];
|
|
1060
1059
|
}
|
|
1061
1060
|
set lang(t) {
|
|
1062
|
-
this.$$set({ lang: t }),
|
|
1061
|
+
this.$$set({ lang: t }), le();
|
|
1063
1062
|
}
|
|
1064
1063
|
get endpoint() {
|
|
1065
1064
|
return this.$$.ctx[35];
|
|
1066
1065
|
}
|
|
1067
1066
|
set endpoint(t) {
|
|
1068
|
-
this.$$set({ endpoint: t }),
|
|
1067
|
+
this.$$set({ endpoint: t }), le();
|
|
1069
1068
|
}
|
|
1070
1069
|
get session() {
|
|
1071
1070
|
return this.$$.ctx[36];
|
|
1072
1071
|
}
|
|
1073
1072
|
set session(t) {
|
|
1074
|
-
this.$$set({ session: t }),
|
|
1073
|
+
this.$$set({ session: t }), le();
|
|
1075
1074
|
}
|
|
1076
1075
|
get translationurl() {
|
|
1077
1076
|
return this.$$.ctx[37];
|
|
1078
1077
|
}
|
|
1079
1078
|
set translationurl(t) {
|
|
1080
|
-
this.$$set({ translationurl: t }),
|
|
1079
|
+
this.$$set({ translationurl: t }), le();
|
|
1081
1080
|
}
|
|
1082
1081
|
get templateid() {
|
|
1083
1082
|
return this.$$.ctx[30];
|
|
1084
1083
|
}
|
|
1085
1084
|
set templateid(t) {
|
|
1086
|
-
this.$$set({ templateid: t }),
|
|
1085
|
+
this.$$set({ templateid: t }), le();
|
|
1087
1086
|
}
|
|
1088
1087
|
}
|
|
1089
|
-
|
|
1088
|
+
rt(Ot, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1090
1089
|
export {
|
|
1091
1090
|
Ot as default
|
|
1092
1091
|
};
|