@everymatrix/cashier-page 1.98.7 → 1.98.9
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-CLl1dEO0.js → CashierCarousel-BzdUV7XF.js} +160 -136
- package/components/{CashierCarousel-jiScaw1m.js → CashierCarousel-FFsdS-lS.js} +166 -142
- package/components/CashierCarousel-zmZZjXPR.cjs +1 -0
- package/components/{CashierError-BgzGU74G.js → CashierError-DM9cHWYk.js} +282 -178
- package/components/{CashierError-nb2MHtLH.cjs → CashierError-DtmAFp4L.cjs} +1 -1
- package/components/{CashierError-ulLnVgQF.js → CashierError-R9QTGjHi.js} +282 -178
- package/components/{CashierHeader-DEksQqYQ.js → CashierHeader-BGa8_twf.js} +144 -130
- package/components/{CashierHeader-jQ2-E617.js → CashierHeader-BoWdCzOy.js} +144 -130
- package/components/CashierHeader-DL7CeVPX.cjs +1 -0
- package/components/{CashierIframeRedirect-BUy5m6fN.js → CashierIframeRedirect-BGDgKj5q.js} +38 -32
- package/components/{CashierIframeRedirect-CyY79191.js → CashierIframeRedirect-ByL4GN6L.js} +38 -32
- package/components/CashierIframeRedirect-DwOnILP1.cjs +1 -0
- package/components/{CashierMethodDetails-DmHKHr2M.cjs → CashierMethodDetails-CMadBp5s.cjs} +4 -4
- package/components/{CashierMethodDetails-BHGrCcE3.js → CashierMethodDetails-DgFi6GOg.js} +1345 -1149
- package/components/{CashierMethodDetails-B-klrcoA.js → CashierMethodDetails-DwAKidqM.js} +1500 -1304
- package/components/{CashierMethodsList-u11i0SYf.js → CashierMethodsList-B0Y7Ov2y.js} +136 -112
- package/components/CashierMethodsList-BKSWzfhx.cjs +1 -0
- package/components/{CashierMethodsList-KXr3hScy.js → CashierMethodsList-BttlgP8I.js} +152 -128
- package/components/{CashierModal-Ke9TZX5s.js → CashierModal-BAqyZ3yN.js} +2 -2
- package/components/{CashierModal-4iF9ylQT.js → CashierModal-CTEreymk.js} +2 -2
- package/components/{CashierModal-CcawnfUI.cjs → CashierModal-DYiiDdjF.cjs} +1 -1
- package/components/{CashierNotifications-DquKOU8w.js → CashierNotifications-5vMGexnB.js} +1 -1
- package/components/{CashierNotifications-CY2B13Wf.js → CashierNotifications-C9DAtUCd.js} +1 -1
- package/components/{CashierNotifications-wQG099OX.cjs → CashierNotifications-DeciL3hL.cjs} +1 -1
- package/components/{CashierPage-895aolw0.js → CashierPage-Cyh00U_t.js} +1216 -1118
- package/components/{CashierPage-DEYpTaJv.cjs → CashierPage-Datx6Ztd.cjs} +6 -6
- package/components/{CashierPage-Bz6JgmrH.js → CashierPage-DmSMSwFD.js} +712 -614
- package/components/{CashierReceiptPage-CGcmTBRp.js → CashierReceiptPage-2QLgzHKu.js} +486 -302
- package/components/{CashierReceiptPage-BCh5OfiT.cjs → CashierReceiptPage-CljAf_RX.cjs} +2 -2
- package/components/{CashierReceiptPage-DNsdCwQQ.js → CashierReceiptPage-zipsq7HA.js} +483 -299
- package/components/{CashierSessionExpirationModal-i5NfYzNE.js → CashierSessionExpirationModal-BHUuaz3G.js} +141 -125
- package/components/CashierSessionExpirationModal-BhdcM6-i.cjs +2 -0
- package/components/{CashierSessionExpirationModal-IfrOHdOp.js → CashierSessionExpirationModal-CPiyWnR6.js} +141 -125
- package/components/{CashierSpinner-bOYmQpsr.js → CashierSpinner-CfN6GP0k.js} +2 -2
- package/components/{CashierSpinner-CKdmXXKt.cjs → CashierSpinner-DK9MV_jW.cjs} +1 -1
- package/components/{CashierSpinner-C9Ra-0IT.js → CashierSpinner-DlmmgiCp.js} +2 -2
- package/components/{CashierStepUp-B3Ph1OSf.js → CashierStepUp-D4IutqnI.js} +397 -351
- package/components/{CashierStepUp-CKae09kD.js → CashierStepUp-DBkCHzU6.js} +371 -325
- package/components/CashierStepUp-f6d-L0Pv.cjs +1 -0
- package/components/{CashierTransactionHistory-_uQpfmaM.js → CashierTransactionHistory-Bfx6cEFg.js} +522 -472
- package/components/{CashierTransactionHistory-DkPMVofl.js → CashierTransactionHistory-BmgU4GU7.js} +494 -444
- package/components/CashierTransactionHistory-Bxd87eQt.cjs +1 -0
- package/components/CashierVerifications-B-u47VhR.cjs +1 -0
- package/components/{CashierVerifications-CA42knBf.js → CashierVerifications-Bi_7cW9r.js} +256 -210
- package/components/{CashierVerifications-C3vBxGTw.js → CashierVerifications-UTO3n0Ei.js} +245 -199
- package/components/{TxnStatusIcon-T3_oGTiJ.js → TxnStatusIcon-CDynHfdT.js} +1 -1
- package/components/{TxnStatusIcon-_ohfqibs.js → TxnStatusIcon-XWXNjZi6.js} +1 -1
- package/components/{TxnStatusIcon-ObLzHWKw.cjs → TxnStatusIcon-xNz_TX3o.cjs} +1 -1
- package/components/{TxnTypeIcons-DhQNGQt2.js → TxnTypeIcons-Bui9VGqk.js} +1 -1
- package/components/{TxnTypeIcons-gD4j8VCB.js → TxnTypeIcons-D0YhmAk8.js} +1 -1
- package/components/{TxnTypeIcons-mX1zqVBL.cjs → TxnTypeIcons-D3xjja9q.cjs} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierCarousel-Dh5Q3q4o.cjs +0 -1
- package/components/CashierHeader-DA_ReO25.cjs +0 -1
- package/components/CashierIframeRedirect-CB1_eaMN.cjs +0 -1
- package/components/CashierMethodsList-BvOniQPF.cjs +0 -1
- package/components/CashierSessionExpirationModal-CIrMZkSD.cjs +0 -2
- package/components/CashierStepUp-DIQ9DrxX.cjs +0 -1
- package/components/CashierTransactionHistory-Bkqw8dMT.cjs +0 -1
- package/components/CashierVerifications-BZPBsrmc.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Xe, $ as Ge, S as
|
|
2
|
-
import { s as
|
|
1
|
+
import { a as Xe, $ as Ge, S as Ze, b as Ye, s as Je, f as oe, d as Qe, z as ke, g as O, l as C, n as k, p as l, q as $e, r as et, y as Oe, w as R, m as p, A as ee, Q as Z, o as x, x as z, F as Ae, L as Y, v as tt, D as Ce, E as nt, c as it, B as ot } from "./CashierPage-DmSMSwFD.js";
|
|
2
|
+
import { s as rt, a as lt, b as st } from "./CashierHeader-BoWdCzOy.js";
|
|
3
3
|
function Me(n, t) {
|
|
4
4
|
Xe(n, t);
|
|
5
5
|
}
|
|
@@ -144,84 +144,130 @@ const Te = {
|
|
|
144
144
|
channelEmail: "E-mail",
|
|
145
145
|
sendCode: "Code verzenden",
|
|
146
146
|
waitSeconds: "Wacht even voordat u opnieuw verzendt:"
|
|
147
|
+
},
|
|
148
|
+
ru: {
|
|
149
|
+
otpTitle: "Требуется подтверждение кода",
|
|
150
|
+
popupMessage: "Пожалуйста, введите код безопасности, полученный по SMS/на электронную почту, чтобы выполнить обновление.",
|
|
151
|
+
popupMessageLastWarning: "Если следующая попытка проверки не удастся, ваша операция завершится ошибкой, и вы будете возвращены к способу оплаты.",
|
|
152
|
+
minutes: "минут",
|
|
153
|
+
errorHeader: "Ошибка",
|
|
154
|
+
configError: "Не удалось загрузить данные OTP. Пожалуйста, попробуйте позже.",
|
|
155
|
+
otpHeading: "Введите OTP",
|
|
156
|
+
resendOtp: "Отправить OTP повторно",
|
|
157
|
+
submit: "Отправить",
|
|
158
|
+
close: "Закрыть",
|
|
159
|
+
invalidOtp: "Отправленный вами код недействителен. Пожалуйста, попробуйте снова.",
|
|
160
|
+
accountBlocked: "Слишком много попыток ввода OTP. Ваш аккаунт заблокирован на один час.",
|
|
161
|
+
submissionError: "Что-то пошло не так. Пожалуйста, попробуйте снова.",
|
|
162
|
+
otpExpiredMessage: "Код подтверждения истёк, пожалуйста, запросите новый, чтобы продолжить.",
|
|
163
|
+
timeRemaining: "Код истекает через:",
|
|
164
|
+
selectChannelTitle: "Выберите способ подтверждения",
|
|
165
|
+
selectChannelMessage: "Выберите, как вы хотите получить код подтверждения",
|
|
166
|
+
channelSMS: "SMS",
|
|
167
|
+
channelEmail: "Email",
|
|
168
|
+
sendCode: "Отправить код",
|
|
169
|
+
waitSeconds: "Пожалуйста, подождите перед повторной отправкой:"
|
|
170
|
+
},
|
|
171
|
+
az: {
|
|
172
|
+
otpTitle: "Kod təsdiqi tələb olunur",
|
|
173
|
+
popupMessage: "Yeniləməni icra etmək üçün SMS/e-poçt ünvanınıza göndərilən təhlükəsizlik kodunu daxil edin.",
|
|
174
|
+
popupMessageLastWarning: "Növbəti təsdiqləmə cəhdi baş tutmasa, əməliyyatınız alınmayacaq və ödəniş üsuluna qaytarılacaqsınız.",
|
|
175
|
+
minutes: "dəqiqə",
|
|
176
|
+
errorHeader: "Xəta",
|
|
177
|
+
configError: "OTP məlumatları yüklənə bilmədi. Zəhmət olmasa sonra yenidən cəhd edin.",
|
|
178
|
+
otpHeading: "OTP daxil edin",
|
|
179
|
+
resendOtp: "OTP-ni yenidən göndər",
|
|
180
|
+
submit: "Göndər",
|
|
181
|
+
close: "Bağla",
|
|
182
|
+
invalidOtp: "Göndərdiyiniz kod yalnışdır. Zəhmət olmasa yenidən cəhd edin.",
|
|
183
|
+
accountBlocked: "OTP üçün çox sayda cəhd edildi. Hesabınız bir saat müddətinə bloklanıb.",
|
|
184
|
+
submissionError: "Nəsə səhv getdi. Zəhmət olmasa yenidən cəhd edin.",
|
|
185
|
+
otpExpiredMessage: "Təsdiqləmə kodunun müddəti bitib, davam etmək üçün yenisini tələb edin.",
|
|
186
|
+
timeRemaining: "Kodun müddəti bitir:",
|
|
187
|
+
selectChannelTitle: "Təsdiqləmə üsulunu seçin",
|
|
188
|
+
selectChannelMessage: "Təsdiqləmə kodunuzu necə almaq istədiyinizi seçin",
|
|
189
|
+
channelSMS: "SMS",
|
|
190
|
+
channelEmail: "E-poçt",
|
|
191
|
+
sendCode: "Kodu göndər",
|
|
192
|
+
waitSeconds: "Yenidən göndərmədən əvvəl zəhmət olmasa gözləyin:"
|
|
147
193
|
}
|
|
148
194
|
};
|
|
149
|
-
function
|
|
195
|
+
function dt(n) {
|
|
150
196
|
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}}');
|
|
151
197
|
}
|
|
152
|
-
function
|
|
198
|
+
function ze(n, t, e) {
|
|
153
199
|
const i = n.slice();
|
|
154
200
|
return i[69] = t[e], i[70] = t, i[71] = e, i;
|
|
155
201
|
}
|
|
156
|
-
function
|
|
157
|
-
let t, e, i,
|
|
202
|
+
function ct(n) {
|
|
203
|
+
let t, e, i, o, a, c, s, u, f, v, w, T, M, b, m, y, S, P = (
|
|
158
204
|
/*$_*/
|
|
159
205
|
n[19]("channelSMS") + ""
|
|
160
|
-
),
|
|
206
|
+
), U, W, V, I, te, N, J, re, Q, E, L, q, le, se, ae = (
|
|
161
207
|
/*$_*/
|
|
162
208
|
n[19]("channelEmail") + ""
|
|
163
|
-
),
|
|
164
|
-
function
|
|
209
|
+
), F, pe, K, B, G, de, ce;
|
|
210
|
+
function ue(d, _) {
|
|
165
211
|
return (
|
|
166
212
|
/*showResendOtp*/
|
|
167
|
-
|
|
213
|
+
d[9] ? mt : (
|
|
168
214
|
/*showOtpInput*/
|
|
169
|
-
|
|
215
|
+
d[12] ? pt : ft
|
|
170
216
|
)
|
|
171
217
|
);
|
|
172
218
|
}
|
|
173
|
-
let $ =
|
|
219
|
+
let $ = ue(n), X = $(n), H = (
|
|
174
220
|
/*selectedChannel*/
|
|
175
|
-
n[0] &&
|
|
221
|
+
n[0] && Pe(n)
|
|
176
222
|
);
|
|
177
|
-
function fe(
|
|
223
|
+
function fe(d, _) {
|
|
178
224
|
if (
|
|
179
225
|
/*isLoading*/
|
|
180
|
-
|
|
181
|
-
|
|
226
|
+
d[3] && /*showOtpInput*/
|
|
227
|
+
d[12]
|
|
182
228
|
)
|
|
183
|
-
return
|
|
229
|
+
return yt;
|
|
184
230
|
if (
|
|
185
231
|
/*showOtpInput*/
|
|
186
|
-
|
|
187
|
-
|
|
232
|
+
d[12] && /*config*/
|
|
233
|
+
d[4]
|
|
188
234
|
)
|
|
189
235
|
return vt;
|
|
190
236
|
}
|
|
191
237
|
let ne = fe(n), D = ne && ne(n);
|
|
192
|
-
function me(
|
|
238
|
+
function me(d, _) {
|
|
193
239
|
if (
|
|
194
240
|
/*showResendOtp*/
|
|
195
|
-
|
|
241
|
+
d[9]
|
|
196
242
|
)
|
|
197
|
-
return
|
|
243
|
+
return _t;
|
|
198
244
|
if (
|
|
199
245
|
/*showOtpInput*/
|
|
200
|
-
|
|
201
|
-
|
|
246
|
+
d[12] && /*config*/
|
|
247
|
+
d[4]
|
|
202
248
|
)
|
|
203
|
-
return
|
|
249
|
+
return kt;
|
|
204
250
|
}
|
|
205
251
|
let ie = me(n), A = ie && ie(n);
|
|
206
252
|
return {
|
|
207
253
|
c() {
|
|
208
|
-
t =
|
|
254
|
+
t = k("div"), X.c(), e = x(), i = k("div"), o = k("label"), a = k("div"), c = x(), s = k("input"), f = x(), v = k("div"), w = Z("svg"), T = Z("path"), M = Z("circle"), b = Z("circle"), m = Z("circle"), y = x(), S = k("span"), U = z(P), W = x(), V = k("label"), I = k("div"), te = x(), N = k("input"), re = x(), Q = k("div"), E = Z("svg"), L = Z("rect"), q = Z("path"), le = x(), se = k("span"), F = z(ae), pe = x(), H && H.c(), K = x(), D && D.c(), B = x(), G = k("div"), A && A.c(), l(t, "class", "OtpDescription"), l(a, "class", "RadioIndicator"), Y(
|
|
209
255
|
a,
|
|
210
256
|
"checked",
|
|
211
257
|
/*selectedChannel*/
|
|
212
258
|
n[0] === /*channels*/
|
|
213
259
|
n[20].SMS
|
|
214
260
|
), l(s, "type", "radio"), l(s, "name", "channel"), s.value = /*channels*/
|
|
215
|
-
n[20].SMS, s.checked =
|
|
261
|
+
n[20].SMS, s.checked = u = /*selectedChannel*/
|
|
216
262
|
n[0] === /*channels*/
|
|
217
|
-
n[20].SMS, l(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), l(M, "cx", "9"), l(M, "cy", "11"), l(M, "r", "0.5"), l(M, "fill", "currentColor"), l(b, "cx", "12"), l(b, "cy", "11"), l(b, "r", "0.5"), l(b, "fill", "currentColor"), l(m, "cx", "15"), l(m, "cy", "11"), l(m, "r", "0.5"), l(m, "fill", "currentColor"), l(w, "xmlns", "http://www.w3.org/2000/svg"), l(w, "width", "24"), l(w, "height", "24"), l(w, "viewBox", "0 0 24 24"), l(w, "fill", "none"), l(w, "stroke", "currentColor"), l(w, "stroke-width", "2"), l(w, "stroke-linecap", "round"), l(w, "stroke-linejoin", "round"), l(v, "class", "ChannelContent"), l(
|
|
218
|
-
|
|
263
|
+
n[20].SMS, l(T, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), l(M, "cx", "9"), l(M, "cy", "11"), l(M, "r", "0.5"), l(M, "fill", "currentColor"), l(b, "cx", "12"), l(b, "cy", "11"), l(b, "r", "0.5"), l(b, "fill", "currentColor"), l(m, "cx", "15"), l(m, "cy", "11"), l(m, "r", "0.5"), l(m, "fill", "currentColor"), l(w, "xmlns", "http://www.w3.org/2000/svg"), l(w, "width", "24"), l(w, "height", "24"), l(w, "viewBox", "0 0 24 24"), l(w, "fill", "none"), l(w, "stroke", "currentColor"), l(w, "stroke-width", "2"), l(w, "stroke-linecap", "round"), l(w, "stroke-linejoin", "round"), l(v, "class", "ChannelContent"), l(o, "class", "ChannelCheckbox"), Y(
|
|
264
|
+
o,
|
|
219
265
|
"selected",
|
|
220
266
|
/*selectedChannel*/
|
|
221
267
|
n[0] === /*channels*/
|
|
222
268
|
n[20].SMS
|
|
223
|
-
), l(
|
|
224
|
-
|
|
269
|
+
), l(I, "class", "RadioIndicator"), Y(
|
|
270
|
+
I,
|
|
225
271
|
"checked",
|
|
226
272
|
/*selectedChannel*/
|
|
227
273
|
n[0] === /*channels*/
|
|
@@ -229,7 +275,7 @@ function ut(n) {
|
|
|
229
275
|
), l(N, "type", "radio"), l(N, "name", "channel"), N.value = /*channels*/
|
|
230
276
|
n[20].EMAIL, N.checked = J = /*selectedChannel*/
|
|
231
277
|
n[0] === /*channels*/
|
|
232
|
-
n[20].EMAIL, l(
|
|
278
|
+
n[20].EMAIL, l(L, "x", "2"), l(L, "y", "4"), l(L, "width", "20"), l(L, "height", "16"), l(L, "rx", "2"), l(q, "d", "m2 7 10 6 10-6"), l(E, "xmlns", "http://www.w3.org/2000/svg"), l(E, "width", "24"), l(E, "height", "24"), l(E, "viewBox", "0 0 24 24"), l(E, "fill", "none"), l(E, "stroke", "currentColor"), l(E, "stroke-width", "2"), l(E, "stroke-linecap", "round"), l(E, "stroke-linejoin", "round"), l(Q, "class", "ChannelContent"), l(V, "class", "ChannelCheckbox"), Y(
|
|
233
279
|
V,
|
|
234
280
|
"selected",
|
|
235
281
|
/*selectedChannel*/
|
|
@@ -237,8 +283,8 @@ function ut(n) {
|
|
|
237
283
|
n[20].EMAIL
|
|
238
284
|
), l(i, "class", "ChannelSelection"), l(G, "class", "OtpActionButtons");
|
|
239
285
|
},
|
|
240
|
-
m(
|
|
241
|
-
|
|
286
|
+
m(d, _) {
|
|
287
|
+
C(d, t, _), X.m(t, null), C(d, e, _), C(d, i, _), p(i, o), p(o, a), p(o, c), p(o, s), p(o, f), p(o, v), p(v, w), p(w, T), p(w, M), p(w, b), p(w, m), p(v, y), p(v, S), p(S, U), p(i, W), p(i, V), p(V, I), p(V, te), p(V, N), p(V, re), p(V, Q), p(Q, E), p(E, L), p(E, q), p(Q, le), p(Q, se), p(se, F), C(d, pe, _), H && H.m(d, _), C(d, K, _), D && D.m(d, _), C(d, B, _), C(d, G, _), A && A.m(G, null), de || (ce = [
|
|
242
288
|
ee(
|
|
243
289
|
s,
|
|
244
290
|
"change",
|
|
@@ -251,123 +297,123 @@ function ut(n) {
|
|
|
251
297
|
/*change_handler_1*/
|
|
252
298
|
n[40]
|
|
253
299
|
)
|
|
254
|
-
],
|
|
300
|
+
], de = !0);
|
|
255
301
|
},
|
|
256
|
-
p(
|
|
257
|
-
$ === ($ =
|
|
258
|
-
1048577 &&
|
|
302
|
+
p(d, _) {
|
|
303
|
+
$ === ($ = ue(d)) && X ? X.p(d, _) : (X.d(1), X = $(d), X && (X.c(), X.m(t, null))), _[0] & /*selectedChannel, channels*/
|
|
304
|
+
1048577 && Y(
|
|
259
305
|
a,
|
|
260
306
|
"checked",
|
|
261
307
|
/*selectedChannel*/
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
),
|
|
265
|
-
1 &&
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
524288 &&
|
|
269
|
-
|
|
270
|
-
1048577 &&
|
|
271
|
-
|
|
308
|
+
d[0] === /*channels*/
|
|
309
|
+
d[20].SMS
|
|
310
|
+
), _[0] & /*selectedChannel*/
|
|
311
|
+
1 && u !== (u = /*selectedChannel*/
|
|
312
|
+
d[0] === /*channels*/
|
|
313
|
+
d[20].SMS) && (s.checked = u), _[0] & /*$_*/
|
|
314
|
+
524288 && P !== (P = /*$_*/
|
|
315
|
+
d[19]("channelSMS") + "") && R(U, P), _[0] & /*selectedChannel, channels*/
|
|
316
|
+
1048577 && Y(
|
|
317
|
+
o,
|
|
272
318
|
"selected",
|
|
273
319
|
/*selectedChannel*/
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
),
|
|
277
|
-
1048577 &&
|
|
278
|
-
|
|
320
|
+
d[0] === /*channels*/
|
|
321
|
+
d[20].SMS
|
|
322
|
+
), _[0] & /*selectedChannel, channels*/
|
|
323
|
+
1048577 && Y(
|
|
324
|
+
I,
|
|
279
325
|
"checked",
|
|
280
326
|
/*selectedChannel*/
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
),
|
|
327
|
+
d[0] === /*channels*/
|
|
328
|
+
d[20].EMAIL
|
|
329
|
+
), _[0] & /*selectedChannel*/
|
|
284
330
|
1 && J !== (J = /*selectedChannel*/
|
|
285
|
-
|
|
286
|
-
|
|
331
|
+
d[0] === /*channels*/
|
|
332
|
+
d[20].EMAIL) && (N.checked = J), _[0] & /*$_*/
|
|
287
333
|
524288 && ae !== (ae = /*$_*/
|
|
288
|
-
|
|
289
|
-
1048577 &&
|
|
334
|
+
d[19]("channelEmail") + "") && R(F, ae), _[0] & /*selectedChannel, channels*/
|
|
335
|
+
1048577 && Y(
|
|
290
336
|
V,
|
|
291
337
|
"selected",
|
|
292
338
|
/*selectedChannel*/
|
|
293
|
-
|
|
294
|
-
|
|
339
|
+
d[0] === /*channels*/
|
|
340
|
+
d[20].EMAIL
|
|
295
341
|
), /*selectedChannel*/
|
|
296
|
-
|
|
342
|
+
d[0] ? H ? H.p(d, _) : (H = Pe(d), H.c(), H.m(K.parentNode, K)) : H && (H.d(1), H = null), ne === (ne = fe(d)) && D ? D.p(d, _) : (D && D.d(1), D = ne && ne(d), D && (D.c(), D.m(B.parentNode, B))), ie === (ie = me(d)) && A ? A.p(d, _) : (A && A.d(1), A = ie && ie(d), A && (A.c(), A.m(G, null)));
|
|
297
343
|
},
|
|
298
|
-
d(
|
|
299
|
-
|
|
344
|
+
d(d) {
|
|
345
|
+
d && (O(t), O(e), O(i), O(pe), O(K), O(B), O(G)), X.d(), H && H.d(d), D && D.d(d), A && A.d(), de = !1, Ae(ce);
|
|
300
346
|
}
|
|
301
347
|
};
|
|
302
348
|
}
|
|
303
|
-
function
|
|
304
|
-
let t, e, i,
|
|
349
|
+
function ut(n) {
|
|
350
|
+
let t, e, i, o, a, c, s = (
|
|
305
351
|
/*$_*/
|
|
306
352
|
n[19]("errorHeader") + ""
|
|
307
|
-
),
|
|
353
|
+
), u, f, v, w, T, M, b = (
|
|
308
354
|
/*$_*/
|
|
309
355
|
n[19]("close") + ""
|
|
310
|
-
), m,
|
|
356
|
+
), m, y, S;
|
|
311
357
|
return {
|
|
312
358
|
c() {
|
|
313
|
-
t =
|
|
359
|
+
t = k("div"), e = k("div"), i = Z("svg"), o = Z("path"), a = x(), c = k("h2"), u = z(s), f = x(), v = k("p"), w = z(
|
|
314
360
|
/*errorMessage*/
|
|
315
361
|
n[8]
|
|
316
|
-
), T = x(), M =
|
|
362
|
+
), T = x(), M = k("button"), m = z(b), l(o, "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"), l(i, "xmlns", "http://www.w3.org/2000/svg"), l(i, "viewBox", "0 0 512 512"), l(e, "class", "OtpErrorHeader"), l(M, "class", "OtpButton error"), l(t, "class", "OtpError");
|
|
317
363
|
},
|
|
318
|
-
m(
|
|
319
|
-
|
|
364
|
+
m(P, U) {
|
|
365
|
+
C(P, t, U), p(t, e), p(e, i), p(i, o), p(e, a), p(e, c), p(c, u), p(t, f), p(t, v), p(v, w), p(t, T), p(t, M), p(M, m), y || (S = ee(
|
|
320
366
|
M,
|
|
321
367
|
"click",
|
|
322
368
|
/*manualClosePopup*/
|
|
323
369
|
n[28]
|
|
324
|
-
),
|
|
370
|
+
), y = !0);
|
|
325
371
|
},
|
|
326
|
-
p(
|
|
327
|
-
|
|
372
|
+
p(P, U) {
|
|
373
|
+
U[0] & /*$_*/
|
|
328
374
|
524288 && s !== (s = /*$_*/
|
|
329
|
-
|
|
375
|
+
P[19]("errorHeader") + "") && R(u, s), U[0] & /*errorMessage*/
|
|
330
376
|
256 && R(
|
|
331
377
|
w,
|
|
332
378
|
/*errorMessage*/
|
|
333
|
-
|
|
334
|
-
),
|
|
379
|
+
P[8]
|
|
380
|
+
), U[0] & /*$_*/
|
|
335
381
|
524288 && b !== (b = /*$_*/
|
|
336
|
-
|
|
382
|
+
P[19]("close") + "") && R(m, b);
|
|
337
383
|
},
|
|
338
|
-
d(
|
|
339
|
-
|
|
384
|
+
d(P) {
|
|
385
|
+
P && O(t), y = !1, S();
|
|
340
386
|
}
|
|
341
387
|
};
|
|
342
388
|
}
|
|
343
389
|
function pt(n) {
|
|
344
|
-
let t, e, i,
|
|
390
|
+
let t, e, i, o;
|
|
345
391
|
function a(f, v) {
|
|
346
392
|
return (
|
|
347
393
|
/*isLastWarning*/
|
|
348
394
|
f[10] ? ht : gt
|
|
349
395
|
);
|
|
350
396
|
}
|
|
351
|
-
let
|
|
397
|
+
let c = a(n), s = c(n), u = (
|
|
352
398
|
/*hasErrors*/
|
|
353
|
-
n[6] &&
|
|
399
|
+
n[6] && Le(n)
|
|
354
400
|
);
|
|
355
401
|
return {
|
|
356
402
|
c() {
|
|
357
|
-
t =
|
|
403
|
+
t = k("p"), s.c(), i = x(), u && u.c(), o = tt(), l(t, "class", e = /*isLastWarning*/
|
|
358
404
|
n[10] ? "LastWarningMessage" : "");
|
|
359
405
|
},
|
|
360
406
|
m(f, v) {
|
|
361
|
-
|
|
407
|
+
C(f, t, v), s.m(t, null), C(f, i, v), u && u.m(f, v), C(f, o, v);
|
|
362
408
|
},
|
|
363
409
|
p(f, v) {
|
|
364
|
-
|
|
410
|
+
c === (c = a(f)) && s ? s.p(f, v) : (s.d(1), s = c(f), s && (s.c(), s.m(t, null))), v[0] & /*isLastWarning*/
|
|
365
411
|
1024 && e !== (e = /*isLastWarning*/
|
|
366
412
|
f[10] ? "LastWarningMessage" : "") && l(t, "class", e), /*hasErrors*/
|
|
367
|
-
f[6] ?
|
|
413
|
+
f[6] ? u ? u.p(f, v) : (u = Le(f), u.c(), u.m(o.parentNode, o)) : u && (u.d(1), u = null);
|
|
368
414
|
},
|
|
369
415
|
d(f) {
|
|
370
|
-
f && (
|
|
416
|
+
f && (O(t), O(i), O(o)), s.d(), u && u.d(f);
|
|
371
417
|
}
|
|
372
418
|
};
|
|
373
419
|
}
|
|
@@ -378,18 +424,18 @@ function ft(n) {
|
|
|
378
424
|
), i;
|
|
379
425
|
return {
|
|
380
426
|
c() {
|
|
381
|
-
t =
|
|
427
|
+
t = k("p"), i = z(e);
|
|
382
428
|
},
|
|
383
|
-
m(
|
|
384
|
-
|
|
429
|
+
m(o, a) {
|
|
430
|
+
C(o, t, a), p(t, i);
|
|
385
431
|
},
|
|
386
|
-
p(
|
|
432
|
+
p(o, a) {
|
|
387
433
|
a[0] & /*$_*/
|
|
388
434
|
524288 && e !== (e = /*$_*/
|
|
389
|
-
(
|
|
435
|
+
(o[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && R(i, e);
|
|
390
436
|
},
|
|
391
|
-
d(
|
|
392
|
-
|
|
437
|
+
d(o) {
|
|
438
|
+
o && O(t);
|
|
393
439
|
}
|
|
394
440
|
};
|
|
395
441
|
}
|
|
@@ -400,18 +446,18 @@ function mt(n) {
|
|
|
400
446
|
), i;
|
|
401
447
|
return {
|
|
402
448
|
c() {
|
|
403
|
-
t =
|
|
449
|
+
t = k("p"), i = z(e), l(t, "class", "OtpNoticeMessage"), l(t, "role", "alert");
|
|
404
450
|
},
|
|
405
|
-
m(
|
|
406
|
-
|
|
451
|
+
m(o, a) {
|
|
452
|
+
C(o, t, a), p(t, i);
|
|
407
453
|
},
|
|
408
|
-
p(
|
|
454
|
+
p(o, a) {
|
|
409
455
|
a[0] & /*$_*/
|
|
410
456
|
524288 && e !== (e = /*$_*/
|
|
411
|
-
|
|
457
|
+
o[19]("otpExpiredMessage") + "") && R(i, e);
|
|
412
458
|
},
|
|
413
|
-
d(
|
|
414
|
-
|
|
459
|
+
d(o) {
|
|
460
|
+
o && O(t);
|
|
415
461
|
}
|
|
416
462
|
};
|
|
417
463
|
}
|
|
@@ -422,18 +468,18 @@ function gt(n) {
|
|
|
422
468
|
), e;
|
|
423
469
|
return {
|
|
424
470
|
c() {
|
|
425
|
-
e =
|
|
471
|
+
e = z(t);
|
|
426
472
|
},
|
|
427
|
-
m(i,
|
|
428
|
-
|
|
473
|
+
m(i, o) {
|
|
474
|
+
C(i, e, o);
|
|
429
475
|
},
|
|
430
|
-
p(i,
|
|
431
|
-
|
|
476
|
+
p(i, o) {
|
|
477
|
+
o[0] & /*$_*/
|
|
432
478
|
524288 && t !== (t = /*$_*/
|
|
433
479
|
i[19]("popupMessage") + "") && R(e, t);
|
|
434
480
|
},
|
|
435
481
|
d(i) {
|
|
436
|
-
i &&
|
|
482
|
+
i && O(e);
|
|
437
483
|
}
|
|
438
484
|
};
|
|
439
485
|
}
|
|
@@ -444,35 +490,35 @@ function ht(n) {
|
|
|
444
490
|
), e;
|
|
445
491
|
return {
|
|
446
492
|
c() {
|
|
447
|
-
e =
|
|
493
|
+
e = z(t);
|
|
448
494
|
},
|
|
449
|
-
m(i,
|
|
450
|
-
|
|
495
|
+
m(i, o) {
|
|
496
|
+
C(i, e, o);
|
|
451
497
|
},
|
|
452
|
-
p(i,
|
|
453
|
-
|
|
498
|
+
p(i, o) {
|
|
499
|
+
o[0] & /*$_*/
|
|
454
500
|
524288 && t !== (t = /*$_*/
|
|
455
501
|
i[19]("popupMessageLastWarning") + "") && R(e, t);
|
|
456
502
|
},
|
|
457
503
|
d(i) {
|
|
458
|
-
i &&
|
|
504
|
+
i && O(e);
|
|
459
505
|
}
|
|
460
506
|
};
|
|
461
507
|
}
|
|
462
|
-
function
|
|
508
|
+
function Le(n) {
|
|
463
509
|
let t, e;
|
|
464
510
|
return {
|
|
465
511
|
c() {
|
|
466
|
-
t =
|
|
512
|
+
t = k("p"), e = z(
|
|
467
513
|
/*errorMessage*/
|
|
468
514
|
n[8]
|
|
469
515
|
), l(t, "class", "OtpErrorMessage"), l(t, "role", "alert");
|
|
470
516
|
},
|
|
471
|
-
m(i,
|
|
472
|
-
|
|
517
|
+
m(i, o) {
|
|
518
|
+
C(i, t, o), p(t, e);
|
|
473
519
|
},
|
|
474
|
-
p(i,
|
|
475
|
-
|
|
520
|
+
p(i, o) {
|
|
521
|
+
o[0] & /*errorMessage*/
|
|
476
522
|
256 && R(
|
|
477
523
|
e,
|
|
478
524
|
/*errorMessage*/
|
|
@@ -480,44 +526,44 @@ function ze(n) {
|
|
|
480
526
|
);
|
|
481
527
|
},
|
|
482
528
|
d(i) {
|
|
483
|
-
i &&
|
|
529
|
+
i && O(t);
|
|
484
530
|
}
|
|
485
531
|
};
|
|
486
532
|
}
|
|
487
|
-
function
|
|
488
|
-
let t, e, i,
|
|
489
|
-
function a(
|
|
533
|
+
function Pe(n) {
|
|
534
|
+
let t, e, i, o;
|
|
535
|
+
function a(u, f) {
|
|
490
536
|
return (
|
|
491
537
|
/*currentChannelTimer*/
|
|
492
|
-
|
|
538
|
+
u[17] > 0 ? wt : bt
|
|
493
539
|
);
|
|
494
540
|
}
|
|
495
|
-
let
|
|
541
|
+
let c = a(n), s = c(n);
|
|
496
542
|
return {
|
|
497
543
|
c() {
|
|
498
|
-
t =
|
|
499
|
-
n[18],
|
|
544
|
+
t = k("button"), s.c(), l(t, "class", "OtpButton"), t.disabled = e = !/*canSubmitChannel*/
|
|
545
|
+
n[18], Y(t, "disabled", !/*canSubmitChannel*/
|
|
500
546
|
n[18] || /*waitingForConfig*/
|
|
501
547
|
n[16]);
|
|
502
548
|
},
|
|
503
|
-
m(
|
|
504
|
-
|
|
549
|
+
m(u, f) {
|
|
550
|
+
C(u, t, f), s.m(t, null), i || (o = ee(
|
|
505
551
|
t,
|
|
506
552
|
"click",
|
|
507
553
|
/*handleChannelSubmit*/
|
|
508
554
|
n[22]
|
|
509
555
|
), i = !0);
|
|
510
556
|
},
|
|
511
|
-
p(
|
|
512
|
-
|
|
557
|
+
p(u, f) {
|
|
558
|
+
c === (c = a(u)) && s ? s.p(u, f) : (s.d(1), s = c(u), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
|
|
513
559
|
262144 && e !== (e = !/*canSubmitChannel*/
|
|
514
|
-
|
|
515
|
-
327680 &&
|
|
516
|
-
|
|
517
|
-
|
|
560
|
+
u[18]) && (t.disabled = e), f[0] & /*canSubmitChannel, waitingForConfig*/
|
|
561
|
+
327680 && Y(t, "disabled", !/*canSubmitChannel*/
|
|
562
|
+
u[18] || /*waitingForConfig*/
|
|
563
|
+
u[16]);
|
|
518
564
|
},
|
|
519
|
-
d(
|
|
520
|
-
|
|
565
|
+
d(u) {
|
|
566
|
+
u && O(t), s.d(), i = !1, o();
|
|
521
567
|
}
|
|
522
568
|
};
|
|
523
569
|
}
|
|
@@ -528,18 +574,18 @@ function bt(n) {
|
|
|
528
574
|
), e;
|
|
529
575
|
return {
|
|
530
576
|
c() {
|
|
531
|
-
e =
|
|
577
|
+
e = z(t);
|
|
532
578
|
},
|
|
533
|
-
m(i,
|
|
534
|
-
|
|
579
|
+
m(i, o) {
|
|
580
|
+
C(i, e, o);
|
|
535
581
|
},
|
|
536
|
-
p(i,
|
|
537
|
-
|
|
582
|
+
p(i, o) {
|
|
583
|
+
o[0] & /*$_*/
|
|
538
584
|
524288 && t !== (t = /*$_*/
|
|
539
585
|
i[19]("sendCode") + "") && R(e, t);
|
|
540
586
|
},
|
|
541
587
|
d(i) {
|
|
542
|
-
i &&
|
|
588
|
+
i && O(e);
|
|
543
589
|
}
|
|
544
590
|
};
|
|
545
591
|
}
|
|
@@ -547,29 +593,29 @@ function wt(n) {
|
|
|
547
593
|
let t = (
|
|
548
594
|
/*$_*/
|
|
549
595
|
n[19]("waitSeconds") + ""
|
|
550
|
-
), e, i,
|
|
596
|
+
), e, i, o, a;
|
|
551
597
|
return {
|
|
552
598
|
c() {
|
|
553
|
-
e =
|
|
599
|
+
e = z(t), i = z(" ("), o = z(
|
|
554
600
|
/*currentChannelTimer*/
|
|
555
601
|
n[17]
|
|
556
|
-
), a =
|
|
602
|
+
), a = z("s)");
|
|
557
603
|
},
|
|
558
|
-
m(
|
|
559
|
-
|
|
604
|
+
m(c, s) {
|
|
605
|
+
C(c, e, s), C(c, i, s), C(c, o, s), C(c, a, s);
|
|
560
606
|
},
|
|
561
|
-
p(
|
|
607
|
+
p(c, s) {
|
|
562
608
|
s[0] & /*$_*/
|
|
563
609
|
524288 && t !== (t = /*$_*/
|
|
564
|
-
|
|
610
|
+
c[19]("waitSeconds") + "") && R(e, t), s[0] & /*currentChannelTimer*/
|
|
565
611
|
131072 && R(
|
|
566
|
-
|
|
612
|
+
o,
|
|
567
613
|
/*currentChannelTimer*/
|
|
568
|
-
|
|
614
|
+
c[17]
|
|
569
615
|
);
|
|
570
616
|
},
|
|
571
|
-
d(
|
|
572
|
-
|
|
617
|
+
d(c) {
|
|
618
|
+
c && (O(e), O(i), O(o), O(a));
|
|
573
619
|
}
|
|
574
620
|
};
|
|
575
621
|
}
|
|
@@ -577,53 +623,53 @@ function vt(n) {
|
|
|
577
623
|
let t, e, i = (
|
|
578
624
|
/*$_*/
|
|
579
625
|
n[19]("timeRemaining") + ""
|
|
580
|
-
),
|
|
626
|
+
), o, a, c = (
|
|
581
627
|
/*formatTime*/
|
|
582
628
|
n[23](
|
|
583
629
|
/*timeLeft*/
|
|
584
630
|
n[5]
|
|
585
631
|
) + ""
|
|
586
|
-
), s,
|
|
632
|
+
), s, u, f = (
|
|
587
633
|
/*$_*/
|
|
588
634
|
n[19]("minutes") + ""
|
|
589
|
-
), v, w, T, M =
|
|
635
|
+
), v, w, T, M = Ce(
|
|
590
636
|
/*otp*/
|
|
591
637
|
n[2]
|
|
592
638
|
), b = [];
|
|
593
639
|
for (let m = 0; m < M.length; m += 1)
|
|
594
|
-
b[m] =
|
|
640
|
+
b[m] = Ie(ze(n, M, m));
|
|
595
641
|
return {
|
|
596
642
|
c() {
|
|
597
|
-
t =
|
|
643
|
+
t = k("div"), e = k("div"), o = z(i), a = x(), s = z(c), u = x(), v = z(f), w = x(), T = k("div");
|
|
598
644
|
for (let m = 0; m < b.length; m += 1)
|
|
599
645
|
b[m].c();
|
|
600
646
|
l(e, "class", "OtpTimer"), l(T, "class", "OtpField"), l(t, "class", "OtpFieldWrapper");
|
|
601
647
|
},
|
|
602
|
-
m(m,
|
|
603
|
-
|
|
648
|
+
m(m, y) {
|
|
649
|
+
C(m, t, y), p(t, e), p(e, o), p(e, a), p(e, s), p(e, u), p(e, v), p(t, w), p(t, T);
|
|
604
650
|
for (let S = 0; S < b.length; S += 1)
|
|
605
651
|
b[S] && b[S].m(T, null);
|
|
606
652
|
},
|
|
607
|
-
p(m,
|
|
608
|
-
if (
|
|
653
|
+
p(m, y) {
|
|
654
|
+
if (y[0] & /*$_*/
|
|
609
655
|
524288 && i !== (i = /*$_*/
|
|
610
|
-
m[19]("timeRemaining") + "") && R(
|
|
611
|
-
32 &&
|
|
656
|
+
m[19]("timeRemaining") + "") && R(o, i), y[0] & /*timeLeft*/
|
|
657
|
+
32 && c !== (c = /*formatTime*/
|
|
612
658
|
m[23](
|
|
613
659
|
/*timeLeft*/
|
|
614
660
|
m[5]
|
|
615
|
-
) + "") && R(s,
|
|
661
|
+
) + "") && R(s, c), y[0] & /*$_*/
|
|
616
662
|
524288 && f !== (f = /*$_*/
|
|
617
|
-
m[19]("minutes") + "") && R(v, f),
|
|
663
|
+
m[19]("minutes") + "") && R(v, f), y[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
618
664
|
117458964) {
|
|
619
|
-
M =
|
|
665
|
+
M = Ce(
|
|
620
666
|
/*otp*/
|
|
621
667
|
m[2]
|
|
622
668
|
);
|
|
623
669
|
let S;
|
|
624
670
|
for (S = 0; S < M.length; S += 1) {
|
|
625
|
-
const
|
|
626
|
-
b[S] ? b[S].p(
|
|
671
|
+
const P = ze(m, M, S);
|
|
672
|
+
b[S] ? b[S].p(P, y) : (b[S] = Ie(P), b[S].c(), b[S].m(T, null));
|
|
627
673
|
}
|
|
628
674
|
for (; S < b.length; S += 1)
|
|
629
675
|
b[S].d(1);
|
|
@@ -631,36 +677,36 @@ function vt(n) {
|
|
|
631
677
|
}
|
|
632
678
|
},
|
|
633
679
|
d(m) {
|
|
634
|
-
m &&
|
|
680
|
+
m && O(t), nt(b, m);
|
|
635
681
|
}
|
|
636
682
|
};
|
|
637
683
|
}
|
|
638
|
-
function
|
|
684
|
+
function yt(n) {
|
|
639
685
|
let t;
|
|
640
686
|
return {
|
|
641
687
|
c() {
|
|
642
|
-
t =
|
|
688
|
+
t = k("div"), t.innerHTML = '<span class="OtpLoader"></span>', l(t, "class", "OtpLoaderContainer");
|
|
643
689
|
},
|
|
644
690
|
m(e, i) {
|
|
645
|
-
|
|
691
|
+
C(e, t, i);
|
|
646
692
|
},
|
|
647
|
-
p:
|
|
693
|
+
p: ke,
|
|
648
694
|
d(e) {
|
|
649
|
-
e &&
|
|
695
|
+
e && O(t);
|
|
650
696
|
}
|
|
651
697
|
};
|
|
652
698
|
}
|
|
653
|
-
function
|
|
654
|
-
let t, e, i,
|
|
699
|
+
function Ie(n) {
|
|
700
|
+
let t, e, i, o = (
|
|
655
701
|
/*index*/
|
|
656
702
|
n[71]
|
|
657
|
-
), a,
|
|
703
|
+
), a, c;
|
|
658
704
|
const s = () => (
|
|
659
705
|
/*input_binding*/
|
|
660
|
-
n[41](t,
|
|
661
|
-
),
|
|
706
|
+
n[41](t, o)
|
|
707
|
+
), u = () => (
|
|
662
708
|
/*input_binding*/
|
|
663
|
-
n[41](null,
|
|
709
|
+
n[41](null, o)
|
|
664
710
|
);
|
|
665
711
|
function f(...w) {
|
|
666
712
|
return (
|
|
@@ -684,7 +730,7 @@ function Pe(n) {
|
|
|
684
730
|
}
|
|
685
731
|
return {
|
|
686
732
|
c() {
|
|
687
|
-
t =
|
|
733
|
+
t = k("input"), l(t, "id", `otp-input-${/*index*/
|
|
688
734
|
n[71]}`), l(t, "type", "text"), l(t, "class", e = `otp-box ${/*config*/
|
|
689
735
|
n[4].inputLength % 2 === 0 && /*index*/
|
|
690
736
|
n[71] === /*config*/
|
|
@@ -693,7 +739,7 @@ function Pe(n) {
|
|
|
693
739
|
n[11], l(t, "autocomplete", "off");
|
|
694
740
|
},
|
|
695
741
|
m(w, T) {
|
|
696
|
-
|
|
742
|
+
C(w, t, T), s(), a || (c = [
|
|
697
743
|
ee(t, "input", f),
|
|
698
744
|
ee(t, "keydown", v),
|
|
699
745
|
ee(
|
|
@@ -713,233 +759,233 @@ function Pe(n) {
|
|
|
713
759
|
4 && i !== (i = /*char*/
|
|
714
760
|
n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
|
|
715
761
|
2048 && (t.disabled = /*inputDisabled*/
|
|
716
|
-
n[11]),
|
|
717
|
-
n[71] && (
|
|
762
|
+
n[11]), o !== /*index*/
|
|
763
|
+
n[71] && (u(), o = /*index*/
|
|
718
764
|
n[71], s());
|
|
719
765
|
},
|
|
720
766
|
d(w) {
|
|
721
|
-
w &&
|
|
767
|
+
w && O(t), u(), a = !1, Ae(c);
|
|
722
768
|
}
|
|
723
769
|
};
|
|
724
770
|
}
|
|
725
|
-
function
|
|
771
|
+
function kt(n) {
|
|
726
772
|
let t, e = (
|
|
727
773
|
/*$_*/
|
|
728
774
|
n[19]("submit") + ""
|
|
729
|
-
), i,
|
|
775
|
+
), i, o, a, c;
|
|
730
776
|
return {
|
|
731
777
|
c() {
|
|
732
|
-
t =
|
|
778
|
+
t = k("button"), i = z(e), l(t, "class", "OtpButton"), t.disabled = o = /*otp*/
|
|
733
779
|
n[2].join("").length !== /*config*/
|
|
734
780
|
n[4].inputLength || /*isSubmitting*/
|
|
735
781
|
n[13] || /*maxAttempts*/
|
|
736
782
|
n[15];
|
|
737
783
|
},
|
|
738
|
-
m(s,
|
|
739
|
-
|
|
784
|
+
m(s, u) {
|
|
785
|
+
C(s, t, u), p(t, i), a || (c = ee(
|
|
740
786
|
t,
|
|
741
787
|
"click",
|
|
742
788
|
/*submitOtp*/
|
|
743
789
|
n[29]
|
|
744
790
|
), a = !0);
|
|
745
791
|
},
|
|
746
|
-
p(s,
|
|
747
|
-
|
|
792
|
+
p(s, u) {
|
|
793
|
+
u[0] & /*$_*/
|
|
748
794
|
524288 && e !== (e = /*$_*/
|
|
749
|
-
s[19]("submit") + "") && R(i, e),
|
|
750
|
-
40980 &&
|
|
795
|
+
s[19]("submit") + "") && R(i, e), u[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
796
|
+
40980 && o !== (o = /*otp*/
|
|
751
797
|
s[2].join("").length !== /*config*/
|
|
752
798
|
s[4].inputLength || /*isSubmitting*/
|
|
753
799
|
s[13] || /*maxAttempts*/
|
|
754
|
-
s[15]) && (t.disabled =
|
|
800
|
+
s[15]) && (t.disabled = o);
|
|
755
801
|
},
|
|
756
802
|
d(s) {
|
|
757
|
-
s &&
|
|
803
|
+
s && O(t), a = !1, c();
|
|
758
804
|
}
|
|
759
805
|
};
|
|
760
806
|
}
|
|
761
|
-
function
|
|
807
|
+
function _t(n) {
|
|
762
808
|
let t, e = (
|
|
763
809
|
/*$_*/
|
|
764
810
|
n[19]("resendOtp") + ""
|
|
765
|
-
), i,
|
|
811
|
+
), i, o, a;
|
|
766
812
|
return {
|
|
767
813
|
c() {
|
|
768
|
-
t =
|
|
814
|
+
t = k("button"), i = z(e), l(t, "class", "OtpButton");
|
|
769
815
|
},
|
|
770
|
-
m(
|
|
771
|
-
|
|
816
|
+
m(c, s) {
|
|
817
|
+
C(c, t, s), p(t, i), o || (a = ee(
|
|
772
818
|
t,
|
|
773
819
|
"click",
|
|
774
820
|
/*handleResendOtp*/
|
|
775
821
|
n[27]
|
|
776
|
-
),
|
|
822
|
+
), o = !0);
|
|
777
823
|
},
|
|
778
|
-
p(
|
|
824
|
+
p(c, s) {
|
|
779
825
|
s[0] & /*$_*/
|
|
780
826
|
524288 && e !== (e = /*$_*/
|
|
781
|
-
|
|
827
|
+
c[19]("resendOtp") + "") && R(i, e);
|
|
782
828
|
},
|
|
783
|
-
d(
|
|
784
|
-
|
|
829
|
+
d(c) {
|
|
830
|
+
c && O(t), o = !1, a();
|
|
785
831
|
}
|
|
786
832
|
};
|
|
787
833
|
}
|
|
788
834
|
function St(n) {
|
|
789
835
|
let t;
|
|
790
|
-
function e(a,
|
|
836
|
+
function e(a, c) {
|
|
791
837
|
return (
|
|
792
838
|
/*hasConfigErrors*/
|
|
793
|
-
a[7] ?
|
|
839
|
+
a[7] ? ut : ct
|
|
794
840
|
);
|
|
795
841
|
}
|
|
796
|
-
let i = e(n),
|
|
842
|
+
let i = e(n), o = i(n);
|
|
797
843
|
return {
|
|
798
844
|
c() {
|
|
799
|
-
t =
|
|
845
|
+
t = k("div"), o.c(), l(t, "class", "OtpContent");
|
|
800
846
|
},
|
|
801
|
-
m(a,
|
|
802
|
-
|
|
847
|
+
m(a, c) {
|
|
848
|
+
C(a, t, c), o.m(t, null), n[44](t);
|
|
803
849
|
},
|
|
804
|
-
p(a,
|
|
805
|
-
i === (i = e(a)) &&
|
|
850
|
+
p(a, c) {
|
|
851
|
+
i === (i = e(a)) && o ? o.p(a, c) : (o.d(1), o = i(a), o && (o.c(), o.m(t, null)));
|
|
806
852
|
},
|
|
807
|
-
i:
|
|
808
|
-
o:
|
|
853
|
+
i: ke,
|
|
854
|
+
o: ke,
|
|
809
855
|
d(a) {
|
|
810
|
-
a &&
|
|
856
|
+
a && O(t), o.d(), n[44](null);
|
|
811
857
|
}
|
|
812
858
|
};
|
|
813
859
|
}
|
|
814
|
-
function
|
|
815
|
-
let i,
|
|
816
|
-
$e(n,
|
|
817
|
-
let { clientstyling:
|
|
818
|
-
const
|
|
860
|
+
function Et(n, t, e) {
|
|
861
|
+
let i, o, a;
|
|
862
|
+
$e(n, ot, (r) => e(19, a = r));
|
|
863
|
+
let { clientstyling: c = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: f = "en" } = t, { endpoint: v } = t, { session: w } = t, { translationurl: T } = t, { templateid: M } = t, b = [], m = !0, y = null, S = 0, P = "", U = "", W = !1, V = !1, I = "", te = "", N = "", J = !1, re = !1, Q = !1, E = "", L = {}, q = null, le = !1, se = !1, ae = "", F, pe, K = [], B = null, G = 0, de = !1, ce = !1;
|
|
864
|
+
const ue = { SMS: "sms", EMAIL: "email" }, $ = {
|
|
819
865
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
820
866
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
821
867
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
822
868
|
};
|
|
823
|
-
Object.keys(Te).forEach((
|
|
824
|
-
Me(
|
|
869
|
+
Object.keys(Te).forEach((r) => {
|
|
870
|
+
Me(r, Te[r]);
|
|
825
871
|
});
|
|
826
872
|
const X = () => {
|
|
827
873
|
at(f);
|
|
828
874
|
}, H = () => {
|
|
829
|
-
fetch(T).then((
|
|
830
|
-
Object.keys(
|
|
831
|
-
Me(g,
|
|
875
|
+
fetch(T).then((r) => r.json()).then((r) => {
|
|
876
|
+
Object.keys(r).forEach((g) => {
|
|
877
|
+
Me(g, r[g]);
|
|
832
878
|
});
|
|
833
|
-
}).catch((
|
|
834
|
-
console.log(
|
|
879
|
+
}).catch((r) => {
|
|
880
|
+
console.log(r);
|
|
835
881
|
});
|
|
836
|
-
}, fe = async (
|
|
837
|
-
if (
|
|
838
|
-
if (e(7, V = !1), e(6,
|
|
839
|
-
e(3, m = !1), e(7, V = !0), e(8,
|
|
882
|
+
}, fe = async (r) => {
|
|
883
|
+
if (r.detail?.["x-step-up-required"]) {
|
|
884
|
+
if (e(7, V = !1), e(6, W = !1), e(8, I = ""), te = r.detail["x-step-up-token"], N = r.detail.flow, !te || !N) {
|
|
885
|
+
e(3, m = !1), e(7, V = !0), e(8, I = a("configError"));
|
|
840
886
|
return;
|
|
841
887
|
}
|
|
842
888
|
e(12, le = !1), e(3, m = !1);
|
|
843
889
|
}
|
|
844
890
|
}, ne = () => {
|
|
845
|
-
B && (clearInterval(B), B = null),
|
|
891
|
+
B && (clearInterval(B), B = null), q && (clearInterval(q), q = null), e(6, W = !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, le = !1), e(38, L = {});
|
|
846
892
|
}, D = () => {
|
|
847
893
|
ne();
|
|
848
|
-
}, me = () => new Promise((
|
|
894
|
+
}, me = () => new Promise((r, g) => {
|
|
849
895
|
const h = new URL(`${v}/api/pam/v1/mfa/challenge/${te}`), j = new Headers();
|
|
850
|
-
j.append("accept", "application/json"), j.append("Content-Type", "application/json"), j.append("X-SessionId", `${w}`), e(16,
|
|
851
|
-
const
|
|
896
|
+
j.append("accept", "application/json"), j.append("Content-Type", "application/json"), j.append("X-SessionId", `${w}`), e(16, ce = !0);
|
|
897
|
+
const ye = {
|
|
852
898
|
method: "PATCH",
|
|
853
899
|
headers: j,
|
|
854
900
|
body: JSON.stringify({
|
|
855
|
-
channel:
|
|
901
|
+
channel: E,
|
|
856
902
|
templateId: M
|
|
857
903
|
})
|
|
858
904
|
};
|
|
859
|
-
fetch(h,
|
|
860
|
-
e(15,
|
|
861
|
-
}).catch((
|
|
905
|
+
fetch(h, ye).then((Ee) => Ee.json()).then(() => {
|
|
906
|
+
e(15, de = !1), _(), he(), r();
|
|
907
|
+
}).catch((Ee) => {
|
|
862
908
|
g();
|
|
863
909
|
});
|
|
864
910
|
}), ie = () => {
|
|
865
|
-
|
|
911
|
+
q && clearInterval(q), q = setInterval(
|
|
866
912
|
() => {
|
|
867
|
-
const
|
|
913
|
+
const r = { ...L };
|
|
868
914
|
let g = !1;
|
|
869
|
-
Object.keys(
|
|
870
|
-
|
|
871
|
-
}), e(38,
|
|
915
|
+
Object.keys(r).forEach((h) => {
|
|
916
|
+
r[h] > 0 && (r[h]--, g = !0);
|
|
917
|
+
}), e(38, L = r), !g && q && (clearInterval(q), q = null);
|
|
872
918
|
},
|
|
873
919
|
1e3
|
|
874
920
|
);
|
|
875
|
-
}, A = (
|
|
876
|
-
e(0,
|
|
877
|
-
},
|
|
878
|
-
if (!(!
|
|
879
|
-
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${
|
|
921
|
+
}, A = (r) => {
|
|
922
|
+
e(0, E = r);
|
|
923
|
+
}, d = async () => {
|
|
924
|
+
if (!(!E || L[E] && L[E] > 0)) {
|
|
925
|
+
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
|
|
880
926
|
try {
|
|
881
|
-
await me(), await ve(), e(38,
|
|
882
|
-
...
|
|
883
|
-
[
|
|
884
|
-
}), ie(), e(12, le = !0),
|
|
885
|
-
} catch (
|
|
886
|
-
console.error("Error submitting channel:",
|
|
927
|
+
await me(), await ve(), e(38, L = {
|
|
928
|
+
...L,
|
|
929
|
+
[E]: 30
|
|
930
|
+
}), ie(), e(12, le = !0), _(), he();
|
|
931
|
+
} catch (r) {
|
|
932
|
+
console.error("Error submitting channel:", r), e(6, W = !0), e(8, I = a("submissionError"));
|
|
887
933
|
} finally {
|
|
888
934
|
e(3, m = !1);
|
|
889
935
|
}
|
|
890
936
|
}
|
|
891
|
-
},
|
|
892
|
-
const
|
|
893
|
-
G =
|
|
894
|
-
const ge = Date.now(),
|
|
895
|
-
e(5, S =
|
|
937
|
+
}, _ = () => {
|
|
938
|
+
const r = new Date(P), g = new Date(U), h = /* @__PURE__ */ new Date(), j = g.getTime() - h.getTime();
|
|
939
|
+
G = r.getTime() - j;
|
|
940
|
+
const ge = Date.now(), ye = Math.max(0, Math.floor((G - ge) / 1e3));
|
|
941
|
+
e(5, S = ye);
|
|
896
942
|
}, he = () => {
|
|
897
943
|
B && clearInterval(B), B = setInterval(
|
|
898
944
|
() => {
|
|
899
|
-
const
|
|
900
|
-
e(5, S = g), e(11, Q = g <= 0), g <= 0 && (clearInterval(B), B = null, e(9, J = !0), e(6,
|
|
945
|
+
const r = Date.now(), g = Math.max(0, Math.floor((G - r) / 1e3));
|
|
946
|
+
e(5, S = g), e(11, Q = g <= 0), g <= 0 && (clearInterval(B), B = null, e(9, J = !0), e(6, W = !1), e(10, re = !1));
|
|
901
947
|
},
|
|
902
948
|
1e3
|
|
903
949
|
);
|
|
904
|
-
}, xe = (
|
|
905
|
-
const g = Math.floor(
|
|
950
|
+
}, xe = (r) => {
|
|
951
|
+
const g = Math.floor(r / 60), h = r % 60;
|
|
906
952
|
return `${g.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
|
|
907
|
-
}, be = (
|
|
953
|
+
}, be = (r, g) => {
|
|
908
954
|
const h = [...b];
|
|
909
|
-
h[
|
|
910
|
-
}, Re = (
|
|
911
|
-
|
|
912
|
-
const h = (
|
|
913
|
-
e(2, b = [...h, ...Array(
|
|
914
|
-
},
|
|
915
|
-
const h =
|
|
916
|
-
/^[a-z0-9]$/i.test(j) && (be(g, j),
|
|
917
|
-
}, Se = (
|
|
918
|
-
const h =
|
|
955
|
+
h[r] = g.toUpperCase(), e(2, b = h), h.join("") !== ae && e(13, se = !1);
|
|
956
|
+
}, Re = (r) => {
|
|
957
|
+
r.preventDefault();
|
|
958
|
+
const h = (r.clipboardData?.getData("text")?.trim() || "").slice(0, y.inputLength).split("");
|
|
959
|
+
e(2, b = [...h, ...Array(y.inputLength - h.length).fill("")]), K[h.length]?.focus(), h.length === y.inputLength && we();
|
|
960
|
+
}, _e = (r, g) => {
|
|
961
|
+
const h = r.target, j = h.value;
|
|
962
|
+
/^[a-z0-9]$/i.test(j) && (be(g, j), K[g + 1]?.focus()), h.value = "";
|
|
963
|
+
}, Se = (r, g) => {
|
|
964
|
+
const h = r.key, j = r.ctrlKey || r.metaKey;
|
|
919
965
|
if (/^[a-z0-9]$/i.test(h)) {
|
|
920
966
|
if (j && h.toLowerCase() === "v")
|
|
921
967
|
return;
|
|
922
|
-
|
|
968
|
+
r.preventDefault(), be(g, h), K[g + 1]?.focus();
|
|
923
969
|
} else
|
|
924
|
-
h === "Backspace" ? (
|
|
970
|
+
h === "Backspace" ? (r.preventDefault(), b[g] !== "" && be(g, ""), K[g - 1]?.focus()) : h === "Enter" && (r.preventDefault(), we());
|
|
925
971
|
}, De = () => {
|
|
926
972
|
N == "stateful" && (me(), e(9, J = !1));
|
|
927
|
-
const
|
|
928
|
-
window.dispatchEvent(
|
|
929
|
-
}, Ve = (
|
|
973
|
+
const r = new CustomEvent("otpResendRequested");
|
|
974
|
+
window.dispatchEvent(r);
|
|
975
|
+
}, Ve = (r) => {
|
|
930
976
|
window.dispatchEvent(new CustomEvent(
|
|
931
977
|
"otpSubmitted",
|
|
932
978
|
{
|
|
933
979
|
detail: {
|
|
934
|
-
code:
|
|
935
|
-
maxAttempts:
|
|
936
|
-
validatedAttempts:
|
|
980
|
+
code: r,
|
|
981
|
+
maxAttempts: y.maxValidationAttempts,
|
|
982
|
+
validatedAttempts: y.numberOfValidateAttempts
|
|
937
983
|
}
|
|
938
984
|
}
|
|
939
985
|
));
|
|
940
|
-
}, Be = async (
|
|
986
|
+
}, Be = async (r) => {
|
|
941
987
|
const g = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/validate`, v);
|
|
942
|
-
g.searchParams.append("input",
|
|
988
|
+
g.searchParams.append("input", r);
|
|
943
989
|
try {
|
|
944
990
|
const h = await fetch(g.href, { method: "POST" });
|
|
945
991
|
if (h.status === 200) {
|
|
@@ -950,7 +996,7 @@ function Ct(n, t, e) {
|
|
|
950
996
|
throw new Error(j.message);
|
|
951
997
|
} catch (h) {
|
|
952
998
|
if (await ve(), h.message === $.INTERNAL_SERVER_ERROR) {
|
|
953
|
-
if (
|
|
999
|
+
if (y.numberOfValidateAttempts === y.maxValidationAttempts - 1) {
|
|
954
1000
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
955
1001
|
{
|
|
956
1002
|
type: "WidgetNotification",
|
|
@@ -963,10 +1009,10 @@ function Ct(n, t, e) {
|
|
|
963
1009
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
964
1010
|
return;
|
|
965
1011
|
}
|
|
966
|
-
e(6,
|
|
1012
|
+
e(6, W = !0), e(8, I = a("invalidOtp")), ve();
|
|
967
1013
|
return;
|
|
968
1014
|
}
|
|
969
|
-
h.message === $.MAX_INVALIDATE && (e(6,
|
|
1015
|
+
h.message === $.MAX_INVALIDATE && (e(6, W = !0), e(8, I = a("invalidOtp"))), h.details === $.MAX_ATTEMPTS_EXCEEDED && e(15, de = !0), console.error("OTP submission failed:", h), e(6, W = !0), e(8, I = a("submissionError"));
|
|
970
1016
|
} finally {
|
|
971
1017
|
e(3, m = !1);
|
|
972
1018
|
}
|
|
@@ -982,114 +1028,114 @@ function Ct(n, t, e) {
|
|
|
982
1028
|
}, je = () => {
|
|
983
1029
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
984
1030
|
}, we = async () => {
|
|
985
|
-
if (b.join("").length !==
|
|
986
|
-
e(6,
|
|
1031
|
+
if (b.join("").length !== y.inputLength) {
|
|
1032
|
+
e(6, W = !0), e(8, I = a("invalidOtp"));
|
|
987
1033
|
return;
|
|
988
1034
|
}
|
|
989
|
-
const
|
|
990
|
-
e(13, se = !0), ae =
|
|
1035
|
+
const r = b.join("");
|
|
1036
|
+
e(13, se = !0), ae = r, e(3, m = !0), e(6, W = !1), e(8, I = ""), N === "stateless" && Ve(r), N === "stateful" && await Be(r);
|
|
991
1037
|
}, ve = async () => {
|
|
992
1038
|
if (v)
|
|
993
1039
|
try {
|
|
994
1040
|
e(3, m = !0);
|
|
995
|
-
const
|
|
1041
|
+
const r = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, v), g = await fetch(r.href), h = await g.json();
|
|
996
1042
|
if (g.ok)
|
|
997
|
-
e(4,
|
|
1043
|
+
e(4, y = h), e(2, b = Array(y.inputLength).fill("")), e(9, J = !1), P = y.expirationTime, U = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, W = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, re = !0), e(3, m = !1), _(), he(), e(16, ce = !1);
|
|
998
1044
|
else if (h && h.details === $.MAX_ATTEMPTS_EXCEEDED)
|
|
999
1045
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
1000
1046
|
else {
|
|
1001
1047
|
const j = h && h.message || `Failed to load config. Status: ${g.status}`;
|
|
1002
1048
|
throw new Error(j);
|
|
1003
1049
|
}
|
|
1004
|
-
} catch (
|
|
1005
|
-
e(3, m = !1), e(7, V = !0), e(8,
|
|
1050
|
+
} catch (r) {
|
|
1051
|
+
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:", r);
|
|
1006
1052
|
}
|
|
1007
1053
|
};
|
|
1008
1054
|
et(() => (window.addEventListener("stepUpAuthRequired", fe, !1), window.addEventListener("closePopup", D, !1), () => {
|
|
1009
|
-
window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B),
|
|
1055
|
+
window.removeEventListener("stepUpAuthRequired", fe), window.removeEventListener("closePopup", D, !1), B && clearInterval(B), q && clearInterval(q);
|
|
1010
1056
|
}));
|
|
1011
|
-
const
|
|
1012
|
-
function Ne(
|
|
1013
|
-
|
|
1014
|
-
|
|
1057
|
+
const qe = () => A(ue.SMS), We = () => A(ue.EMAIL);
|
|
1058
|
+
function Ne(r, g) {
|
|
1059
|
+
Oe[r ? "unshift" : "push"](() => {
|
|
1060
|
+
K[g] = r, e(14, K);
|
|
1015
1061
|
});
|
|
1016
1062
|
}
|
|
1017
|
-
const
|
|
1018
|
-
function
|
|
1019
|
-
|
|
1020
|
-
|
|
1063
|
+
const Fe = (r, g) => _e(g, r), Ke = (r, g) => Se(g, r);
|
|
1064
|
+
function Ue(r) {
|
|
1065
|
+
Oe[r ? "unshift" : "push"](() => {
|
|
1066
|
+
F = r, e(1, F);
|
|
1021
1067
|
});
|
|
1022
1068
|
}
|
|
1023
|
-
return n.$$set = (
|
|
1024
|
-
"clientstyling" in
|
|
1069
|
+
return n.$$set = (r) => {
|
|
1070
|
+
"clientstyling" in r && e(31, c = r.clientstyling), "clientstylingurl" in r && e(32, s = r.clientstylingurl), "mbsource" in r && e(33, u = r.mbsource), "lang" in r && e(34, f = r.lang), "endpoint" in r && e(35, v = r.endpoint), "session" in r && e(36, w = r.session), "translationurl" in r && e(37, T = r.translationurl), "templateid" in r && e(30, M = r.templateid);
|
|
1025
1071
|
}, n.$$.update = () => {
|
|
1026
1072
|
n.$$.dirty[0] & /*customStylingContainer*/
|
|
1027
1073
|
2 | n.$$.dirty[1] & /*clientstyling*/
|
|
1028
|
-
1 &&
|
|
1074
|
+
1 && c && F && rt(F, c), n.$$.dirty[0] & /*customStylingContainer*/
|
|
1029
1075
|
2 | n.$$.dirty[1] & /*clientstylingurl*/
|
|
1030
|
-
2 && s &&
|
|
1076
|
+
2 && s && F && lt(F, s), n.$$.dirty[0] & /*customStylingContainer*/
|
|
1031
1077
|
2 | n.$$.dirty[1] & /*mbsource*/
|
|
1032
|
-
4 &&
|
|
1078
|
+
4 && u && F && st(F, `${u}.Style`, pe), n.$$.dirty[1] & /*lang*/
|
|
1033
1079
|
8 && f && X(), n.$$.dirty[1] & /*lang, translationurl*/
|
|
1034
1080
|
72 && f && T && H(), n.$$.dirty[0] & /*selectedChannel*/
|
|
1035
1081
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
1036
|
-
128 && e(18, i =
|
|
1082
|
+
128 && e(18, i = E && (!L[E] || L[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
|
|
1037
1083
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
1038
|
-
128 && e(17,
|
|
1084
|
+
128 && e(17, o = E && L[E] || 0);
|
|
1039
1085
|
}, [
|
|
1040
|
-
|
|
1041
|
-
|
|
1086
|
+
E,
|
|
1087
|
+
F,
|
|
1042
1088
|
b,
|
|
1043
1089
|
m,
|
|
1044
|
-
|
|
1090
|
+
y,
|
|
1045
1091
|
S,
|
|
1046
|
-
|
|
1092
|
+
W,
|
|
1047
1093
|
V,
|
|
1048
|
-
|
|
1094
|
+
I,
|
|
1049
1095
|
J,
|
|
1050
|
-
|
|
1096
|
+
re,
|
|
1051
1097
|
Q,
|
|
1052
1098
|
le,
|
|
1053
1099
|
se,
|
|
1054
|
-
|
|
1100
|
+
K,
|
|
1101
|
+
de,
|
|
1055
1102
|
ce,
|
|
1056
|
-
|
|
1057
|
-
r,
|
|
1103
|
+
o,
|
|
1058
1104
|
i,
|
|
1059
1105
|
a,
|
|
1060
|
-
|
|
1106
|
+
ue,
|
|
1061
1107
|
A,
|
|
1062
|
-
|
|
1108
|
+
d,
|
|
1063
1109
|
xe,
|
|
1064
1110
|
Re,
|
|
1065
|
-
|
|
1111
|
+
_e,
|
|
1066
1112
|
Se,
|
|
1067
1113
|
De,
|
|
1068
1114
|
je,
|
|
1069
1115
|
we,
|
|
1070
1116
|
M,
|
|
1071
|
-
|
|
1117
|
+
c,
|
|
1072
1118
|
s,
|
|
1073
|
-
|
|
1119
|
+
u,
|
|
1074
1120
|
f,
|
|
1075
1121
|
v,
|
|
1076
1122
|
w,
|
|
1077
1123
|
T,
|
|
1078
|
-
|
|
1124
|
+
L,
|
|
1125
|
+
qe,
|
|
1079
1126
|
We,
|
|
1080
|
-
Fe,
|
|
1081
1127
|
Ne,
|
|
1128
|
+
Fe,
|
|
1082
1129
|
Ke,
|
|
1083
|
-
Ue
|
|
1084
|
-
qe
|
|
1130
|
+
Ue
|
|
1085
1131
|
];
|
|
1086
1132
|
}
|
|
1087
|
-
class
|
|
1133
|
+
class Ot extends Ze {
|
|
1088
1134
|
constructor(t) {
|
|
1089
|
-
super(),
|
|
1135
|
+
super(), Ye(
|
|
1090
1136
|
this,
|
|
1091
1137
|
t,
|
|
1092
|
-
|
|
1138
|
+
Et,
|
|
1093
1139
|
St,
|
|
1094
1140
|
Je,
|
|
1095
1141
|
{
|
|
@@ -1102,7 +1148,7 @@ class Et extends Ye {
|
|
|
1102
1148
|
translationurl: 37,
|
|
1103
1149
|
templateid: 30
|
|
1104
1150
|
},
|
|
1105
|
-
|
|
1151
|
+
dt,
|
|
1106
1152
|
[-1, -1, -1]
|
|
1107
1153
|
);
|
|
1108
1154
|
}
|
|
@@ -1110,52 +1156,52 @@ class Et extends Ye {
|
|
|
1110
1156
|
return this.$$.ctx[31];
|
|
1111
1157
|
}
|
|
1112
1158
|
set clientstyling(t) {
|
|
1113
|
-
this.$$set({ clientstyling: t }),
|
|
1159
|
+
this.$$set({ clientstyling: t }), oe();
|
|
1114
1160
|
}
|
|
1115
1161
|
get clientstylingurl() {
|
|
1116
1162
|
return this.$$.ctx[32];
|
|
1117
1163
|
}
|
|
1118
1164
|
set clientstylingurl(t) {
|
|
1119
|
-
this.$$set({ clientstylingurl: t }),
|
|
1165
|
+
this.$$set({ clientstylingurl: t }), oe();
|
|
1120
1166
|
}
|
|
1121
1167
|
get mbsource() {
|
|
1122
1168
|
return this.$$.ctx[33];
|
|
1123
1169
|
}
|
|
1124
1170
|
set mbsource(t) {
|
|
1125
|
-
this.$$set({ mbsource: t }),
|
|
1171
|
+
this.$$set({ mbsource: t }), oe();
|
|
1126
1172
|
}
|
|
1127
1173
|
get lang() {
|
|
1128
1174
|
return this.$$.ctx[34];
|
|
1129
1175
|
}
|
|
1130
1176
|
set lang(t) {
|
|
1131
|
-
this.$$set({ lang: t }),
|
|
1177
|
+
this.$$set({ lang: t }), oe();
|
|
1132
1178
|
}
|
|
1133
1179
|
get endpoint() {
|
|
1134
1180
|
return this.$$.ctx[35];
|
|
1135
1181
|
}
|
|
1136
1182
|
set endpoint(t) {
|
|
1137
|
-
this.$$set({ endpoint: t }),
|
|
1183
|
+
this.$$set({ endpoint: t }), oe();
|
|
1138
1184
|
}
|
|
1139
1185
|
get session() {
|
|
1140
1186
|
return this.$$.ctx[36];
|
|
1141
1187
|
}
|
|
1142
1188
|
set session(t) {
|
|
1143
|
-
this.$$set({ session: t }),
|
|
1189
|
+
this.$$set({ session: t }), oe();
|
|
1144
1190
|
}
|
|
1145
1191
|
get translationurl() {
|
|
1146
1192
|
return this.$$.ctx[37];
|
|
1147
1193
|
}
|
|
1148
1194
|
set translationurl(t) {
|
|
1149
|
-
this.$$set({ translationurl: t }),
|
|
1195
|
+
this.$$set({ translationurl: t }), oe();
|
|
1150
1196
|
}
|
|
1151
1197
|
get templateid() {
|
|
1152
1198
|
return this.$$.ctx[30];
|
|
1153
1199
|
}
|
|
1154
1200
|
set templateid(t) {
|
|
1155
|
-
this.$$set({ templateid: t }),
|
|
1201
|
+
this.$$set({ templateid: t }), oe();
|
|
1156
1202
|
}
|
|
1157
1203
|
}
|
|
1158
|
-
it(
|
|
1204
|
+
it(Ot, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1159
1205
|
export {
|
|
1160
|
-
|
|
1206
|
+
Ot as default
|
|
1161
1207
|
};
|