@everymatrix/cashier-page 1.90.19 → 1.90.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-DFhtsGVX.cjs → CashierCarousel-D8fstPgf.cjs} +1 -1
- package/components/{CashierCarousel-CRe8tdgq.js → CashierCarousel-DynXfcQe.js} +2 -2
- package/components/{CashierCarousel-DUiGDZ_M.js → CashierCarousel-ti976axe.js} +2 -2
- package/components/{CashierError-DmcUDMAZ.js → CashierError-6oWTzjqv.js} +2 -2
- package/components/{CashierError-COApJyuC.cjs → CashierError-BdaqUnCv.cjs} +1 -1
- package/components/{CashierError-KZDBDGct.js → CashierError-DoLrYlTr.js} +2 -2
- package/components/{CashierHeader-CNphogJA.cjs → CashierHeader-D0NRcNvL.cjs} +1 -1
- package/components/{CashierHeader-8rryROE-.js → CashierHeader-DmKyFM7e.js} +1 -1
- package/components/{CashierHeader-h0672mBD.js → CashierHeader-lmRz4KZ1.js} +1 -1
- package/components/{CashierIframeRedirect-C1_euvGi.js → CashierIframeRedirect-B0AfjWFn.js} +3 -3
- package/components/{CashierIframeRedirect-DtiFH4OC.js → CashierIframeRedirect-B0kSc_vJ.js} +3 -3
- package/components/{CashierIframeRedirect-qI-DB98G.cjs → CashierIframeRedirect-DsTf3Ns9.cjs} +1 -1
- package/components/CashierMethodDetails-BcCMtcx1.cjs +85 -0
- package/components/CashierMethodDetails-CE3hxUzQ.js +10743 -0
- package/components/CashierMethodDetails-DOtOJbKT.js +10783 -0
- package/components/{CashierMethodsList-D8_s8ctR.js → CashierMethodsList-CKw9nrrm.js} +2 -2
- package/components/{CashierMethodsList-D9YCGise.js → CashierMethodsList-DWWmFwMG.js} +2 -2
- package/components/{CashierMethodsList-nTP6mt0S.cjs → CashierMethodsList-_zTTZ54Z.cjs} +1 -1
- package/components/{CashierModal-CSrzoIT1.cjs → CashierModal-CuE7cpuX.cjs} +1 -1
- package/components/{CashierModal-Bx7GpTZt.js → CashierModal-DTJQWLIe.js} +2 -2
- package/components/{CashierModal-B-H9ed8l.js → CashierModal-v8zC9LGO.js} +2 -2
- package/components/{CashierNotifications-GcF5dfav.js → CashierNotifications-D7mXXvzD.js} +1 -1
- package/components/{CashierNotifications-zloVL1Cj.js → CashierNotifications-qo9ArgCg.js} +1 -1
- package/components/{CashierNotifications-Dr0UKkNe.cjs → CashierNotifications-yGGRgRNJ.cjs} +1 -1
- package/components/{CashierPage-B1L9BM6s.js → CashierPage-C-ATa8ws.js} +979 -912
- package/components/CashierPage-CAjB96zt.cjs +23 -0
- package/components/{CashierPage-CHjKyzGy.js → CashierPage-FI7wOUey.js} +1371 -1304
- package/components/{CashierReceiptPage-DYGqjtjC.cjs → CashierReceiptPage-CiflWdaz.cjs} +1 -1
- package/components/{CashierReceiptPage-BuDIe8Uc.js → CashierReceiptPage-DL0ZMuq-.js} +3 -3
- package/components/{CashierReceiptPage-u4B0FQ0x.js → CashierReceiptPage-YQY0yyoh.js} +3 -3
- package/components/{CashierSessionExpirationModal-DXHhuf_i.js → CashierSessionExpirationModal-D9nG3lIk.js} +2 -2
- package/components/{CashierSessionExpirationModal--yEFpxyV.cjs → CashierSessionExpirationModal-DFUTuUZB.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-C-i6lnRT.js → CashierSessionExpirationModal-eHDZ3GxJ.js} +2 -2
- package/components/{CashierSpinner-CJHqbBB8.js → CashierSpinner-B6GXes-1.js} +2 -2
- package/components/{CashierSpinner-DECf0Pol.cjs → CashierSpinner-BYUcQY9I.cjs} +1 -1
- package/components/{CashierSpinner-5tOLfhy9.js → CashierSpinner-cjtAQFKh.js} +2 -2
- package/components/CashierStepUp-D0vnfZoa.cjs +1 -0
- package/components/{CashierStepUp-DzR0JJ6M.js → CashierStepUp-VfhTY3CX.js} +154 -154
- package/components/{CashierStepUp-DzWjzop2.js → CashierStepUp-roW6vSqX.js} +159 -159
- package/components/{CashierTransactionHistory-BpucLEIr.cjs → CashierTransactionHistory-BYu1r0mg.cjs} +1 -1
- package/components/{CashierTransactionHistory-w8Wo2gjM.js → CashierTransactionHistory-CKfzFY6T.js} +5 -5
- package/components/{CashierTransactionHistory-0wSipipe.js → CashierTransactionHistory-D0HsBTjL.js} +5 -5
- package/components/{CashierVerifications-CytyUovD.js → CashierVerifications-BLoNEXGR.js} +3 -3
- package/components/{CashierVerifications-BRg5D2sO.js → CashierVerifications-BjKcKMFL.js} +3 -3
- package/components/{CashierVerifications-CuWZEHhl.cjs → CashierVerifications-TNAyqFe7.cjs} +1 -1
- package/components/{TxnStatusIcon-BfeyO2sR.js → TxnStatusIcon-CA6WI_wW.js} +1 -1
- package/components/{TxnStatusIcon-dlWlj0MG.js → TxnStatusIcon-Dq5CNxeh.js} +1 -1
- package/components/{TxnStatusIcon-BrsoBxnY.cjs → TxnStatusIcon-aTcNgyC-.cjs} +1 -1
- package/components/{TxnTypeIcons-D1F-Ysgt.cjs → TxnTypeIcons-CcZcJGfX.cjs} +1 -1
- package/components/{TxnTypeIcons-CxBRzEpf.js → TxnTypeIcons-CqDoJkqm.js} +1 -1
- package/components/{TxnTypeIcons-C0RZZWxp.js → TxnTypeIcons-F1CgXgzM.js} +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/CashierMethodDetails-C5yR53NI.cjs +0 -85
- package/components/CashierMethodDetails-DX4gKtdW.js +0 -10774
- package/components/CashierMethodDetails-EBCjLZR0.js +0 -10734
- package/components/CashierPage-DG3GWF9_.cjs +0 -23
- package/components/CashierStepUp-C37wVTqO.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as Ke, $ as Ge, S as Ye, b as Je, s as Qe, f as
|
|
2
|
-
import { s as lt, a as rt, b as st } from "./CashierHeader-
|
|
1
|
+
import { a as Ke, $ as Ge, S as Ye, b as Je, s as Qe, f as oe, d as Ze, z as ye, g as O, l as S, n as v, p as r, q as $e, r as et, y as Oe, w as P, m as d, A as ee, P as Y, o as R, x as L, F as xe, L as J, v as tt, D as Se, E as nt, c as it, B as ot } from "./CashierPage-FI7wOUey.js";
|
|
2
|
+
import { s as lt, a as rt, b as st } from "./CashierHeader-DmKyFM7e.js";
|
|
3
3
|
function Me(n, t) {
|
|
4
4
|
Ke(n, t);
|
|
5
5
|
}
|
|
@@ -46,8 +46,8 @@ const Te = {
|
|
|
46
46
|
submissionError: "Bir şeyler ters gitti. Lütfen tekrar deneyin.",
|
|
47
47
|
otpExpiredMessage: "Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",
|
|
48
48
|
timeRemaining: "Kodun süresi doluyor:",
|
|
49
|
-
selectChannelTitle: "
|
|
50
|
-
selectChannelMessage: "
|
|
49
|
+
selectChannelTitle: "Doğrulama yöntemi seçin",
|
|
50
|
+
selectChannelMessage: "Doğrulama kodunuzu nasıl almak istediğinizi seçin",
|
|
51
51
|
channelSMS: "SMS kodu",
|
|
52
52
|
channelEmail: "E-posta kodu",
|
|
53
53
|
sendCode: "Kodu gönder",
|
|
@@ -81,14 +81,14 @@ function ct(n) {
|
|
|
81
81
|
Ze(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
82
|
}
|
|
83
83
|
function Le(n, t, e) {
|
|
84
|
-
const
|
|
85
|
-
return
|
|
84
|
+
const i = n.slice();
|
|
85
|
+
return i[69] = t[e], i[70] = t, i[71] = e, i;
|
|
86
86
|
}
|
|
87
87
|
function pt(n) {
|
|
88
|
-
let t, e,
|
|
88
|
+
let t, e, i, o, a, p, s, u, f, _, w, T, M, b, m, y, C, A = (
|
|
89
89
|
/*$_*/
|
|
90
90
|
n[19]("channelSMS") + ""
|
|
91
|
-
), X, F, j, I, te, W, Q, le, Z, E,
|
|
91
|
+
), X, F, j, I, te, W, Q, le, Z, E, z, N, re, se, ae = (
|
|
92
92
|
/*$_*/
|
|
93
93
|
n[19]("channelEmail") + ""
|
|
94
94
|
), q, de, U, B, G, ce, pe;
|
|
@@ -103,7 +103,7 @@ function pt(n) {
|
|
|
103
103
|
}
|
|
104
104
|
let $ = ue(n), K = $(n), V = (
|
|
105
105
|
/*selectedChannel*/
|
|
106
|
-
n[0] &&
|
|
106
|
+
n[0] && Ae(n)
|
|
107
107
|
);
|
|
108
108
|
function fe(c, k) {
|
|
109
109
|
if (
|
|
@@ -133,10 +133,10 @@ function pt(n) {
|
|
|
133
133
|
)
|
|
134
134
|
return vt;
|
|
135
135
|
}
|
|
136
|
-
let
|
|
136
|
+
let ie = me(n), x = ie && ie(n);
|
|
137
137
|
return {
|
|
138
138
|
c() {
|
|
139
|
-
t = v("div"), K.c(), e = R(),
|
|
139
|
+
t = v("div"), K.c(), e = R(), i = v("div"), o = 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), F = R(), j = v("label"), I = v("div"), te = R(), W = v("input"), le = R(), Z = 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
140
|
a,
|
|
141
141
|
"checked",
|
|
142
142
|
/*selectedChannel*/
|
|
@@ -145,8 +145,8 @@ function pt(n) {
|
|
|
145
145
|
), r(s, "type", "radio"), r(s, "name", "channel"), s.value = /*channels*/
|
|
146
146
|
n[20].SMS, s.checked = u = /*selectedChannel*/
|
|
147
147
|
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
|
-
|
|
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(o, "class", "ChannelCheckbox"), J(
|
|
149
|
+
o,
|
|
150
150
|
"selected",
|
|
151
151
|
/*selectedChannel*/
|
|
152
152
|
n[0] === /*channels*/
|
|
@@ -160,16 +160,16 @@ function pt(n) {
|
|
|
160
160
|
), r(W, "type", "radio"), r(W, "name", "channel"), W.value = /*channels*/
|
|
161
161
|
n[20].EMAIL, W.checked = Q = /*selectedChannel*/
|
|
162
162
|
n[0] === /*channels*/
|
|
163
|
-
n[20].EMAIL, r(
|
|
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(Z, "class", "ChannelContent"), r(j, "class", "ChannelCheckbox"), J(
|
|
164
164
|
j,
|
|
165
165
|
"selected",
|
|
166
166
|
/*selectedChannel*/
|
|
167
167
|
n[0] === /*channels*/
|
|
168
168
|
n[20].EMAIL
|
|
169
|
-
), r(
|
|
169
|
+
), r(i, "class", "ChannelSelection"), r(G, "class", "OtpActionButtons");
|
|
170
170
|
},
|
|
171
171
|
m(c, k) {
|
|
172
|
-
S(c, t, k), K.m(t, null), S(c, e, k), S(c,
|
|
172
|
+
S(c, t, k), K.m(t, null), S(c, e, k), S(c, i, k), d(i, o), d(o, a), d(o, p), d(o, s), d(o, f), d(o, _), d(_, w), d(w, T), d(w, M), d(w, b), d(w, m), d(_, y), d(_, C), d(C, X), d(i, F), d(i, j), d(j, I), d(j, te), d(j, W), d(j, le), d(j, Z), d(Z, E), d(E, z), d(E, N), d(Z, re), d(Z, 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
173
|
ee(
|
|
174
174
|
s,
|
|
175
175
|
"change",
|
|
@@ -196,10 +196,10 @@ function pt(n) {
|
|
|
196
196
|
1 && u !== (u = /*selectedChannel*/
|
|
197
197
|
c[0] === /*channels*/
|
|
198
198
|
c[20].SMS) && (s.checked = u), k[0] & /*$_*/
|
|
199
|
-
524288 &&
|
|
200
|
-
c[19]("channelSMS") + "") && P(X,
|
|
199
|
+
524288 && A !== (A = /*$_*/
|
|
200
|
+
c[19]("channelSMS") + "") && P(X, A), k[0] & /*selectedChannel, channels*/
|
|
201
201
|
1048577 && J(
|
|
202
|
-
|
|
202
|
+
o,
|
|
203
203
|
"selected",
|
|
204
204
|
/*selectedChannel*/
|
|
205
205
|
c[0] === /*channels*/
|
|
@@ -224,15 +224,15 @@ function pt(n) {
|
|
|
224
224
|
c[0] === /*channels*/
|
|
225
225
|
c[20].EMAIL
|
|
226
226
|
), /*selectedChannel*/
|
|
227
|
-
c[0] ? V ? V.p(c, k) : (V =
|
|
227
|
+
c[0] ? V ? V.p(c, k) : (V = Ae(c), V.c(), V.m(U.parentNode, U)) : V && (V.d(1), V = null), ne === (ne = fe(c)) && D ? D.p(c, k) : (D && D.d(1), D = ne && ne(c), D && (D.c(), D.m(B.parentNode, B))), ie === (ie = me(c)) && x ? x.p(c, k) : (x && x.d(1), x = ie && ie(c), x && (x.c(), x.m(G, null)));
|
|
228
228
|
},
|
|
229
229
|
d(c) {
|
|
230
|
-
c && (O(t), O(e), O(
|
|
230
|
+
c && (O(t), O(e), O(i), O(de), O(U), O(B), O(G)), K.d(), V && V.d(c), D && D.d(c), x && x.d(), ce = !1, xe(pe);
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
function ut(n) {
|
|
235
|
-
let t, e,
|
|
235
|
+
let t, e, i, o, a, p, s = (
|
|
236
236
|
/*$_*/
|
|
237
237
|
n[19]("errorHeader") + ""
|
|
238
238
|
), u, f, _, w, T, M, b = (
|
|
@@ -241,38 +241,38 @@ function ut(n) {
|
|
|
241
241
|
), m, y, C;
|
|
242
242
|
return {
|
|
243
243
|
c() {
|
|
244
|
-
t = v("div"), e = v("div"),
|
|
244
|
+
t = v("div"), e = v("div"), i = Y("svg"), o = Y("path"), a = R(), p = v("h2"), u = L(s), f = R(), _ = v("p"), w = L(
|
|
245
245
|
/*errorMessage*/
|
|
246
246
|
n[8]
|
|
247
|
-
), T = R(), M = v("button"), m = L(b), r(
|
|
247
|
+
), T = R(), M = v("button"), m = L(b), r(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"), 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
248
|
},
|
|
249
|
-
m(
|
|
250
|
-
S(
|
|
249
|
+
m(A, X) {
|
|
250
|
+
S(A, t, X), d(t, e), d(e, i), d(i, o), 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
251
|
M,
|
|
252
252
|
"click",
|
|
253
253
|
/*manualClosePopup*/
|
|
254
254
|
n[28]
|
|
255
255
|
), y = !0);
|
|
256
256
|
},
|
|
257
|
-
p(
|
|
257
|
+
p(A, X) {
|
|
258
258
|
X[0] & /*$_*/
|
|
259
259
|
524288 && s !== (s = /*$_*/
|
|
260
|
-
|
|
260
|
+
A[19]("errorHeader") + "") && P(u, s), X[0] & /*errorMessage*/
|
|
261
261
|
256 && P(
|
|
262
262
|
w,
|
|
263
263
|
/*errorMessage*/
|
|
264
|
-
|
|
264
|
+
A[8]
|
|
265
265
|
), X[0] & /*$_*/
|
|
266
266
|
524288 && b !== (b = /*$_*/
|
|
267
|
-
|
|
267
|
+
A[19]("close") + "") && P(m, b);
|
|
268
268
|
},
|
|
269
|
-
d(
|
|
270
|
-
|
|
269
|
+
d(A) {
|
|
270
|
+
A && O(t), y = !1, C();
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
function dt(n) {
|
|
275
|
-
let t, e,
|
|
275
|
+
let t, e, i, o;
|
|
276
276
|
function a(f, _) {
|
|
277
277
|
return (
|
|
278
278
|
/*isLastWarning*/
|
|
@@ -281,24 +281,24 @@ function dt(n) {
|
|
|
281
281
|
}
|
|
282
282
|
let p = a(n), s = p(n), u = (
|
|
283
283
|
/*hasErrors*/
|
|
284
|
-
n[6] &&
|
|
284
|
+
n[6] && ze(n)
|
|
285
285
|
);
|
|
286
286
|
return {
|
|
287
287
|
c() {
|
|
288
|
-
t = v("p"), s.c(),
|
|
288
|
+
t = v("p"), s.c(), i = R(), u && u.c(), o = tt(), r(t, "class", e = /*isLastWarning*/
|
|
289
289
|
n[10] ? "LastWarningMessage" : "");
|
|
290
290
|
},
|
|
291
291
|
m(f, _) {
|
|
292
|
-
S(f, t, _), s.m(t, null), S(f,
|
|
292
|
+
S(f, t, _), s.m(t, null), S(f, i, _), u && u.m(f, _), S(f, o, _);
|
|
293
293
|
},
|
|
294
294
|
p(f, _) {
|
|
295
295
|
p === (p = a(f)) && s ? s.p(f, _) : (s.d(1), s = p(f), s && (s.c(), s.m(t, null))), _[0] & /*isLastWarning*/
|
|
296
296
|
1024 && e !== (e = /*isLastWarning*/
|
|
297
297
|
f[10] ? "LastWarningMessage" : "") && r(t, "class", e), /*hasErrors*/
|
|
298
|
-
f[6] ? u ? u.p(f, _) : (u =
|
|
298
|
+
f[6] ? u ? u.p(f, _) : (u = ze(f), u.c(), u.m(o.parentNode, o)) : u && (u.d(1), u = null);
|
|
299
299
|
},
|
|
300
300
|
d(f) {
|
|
301
|
-
f && (O(t), O(
|
|
301
|
+
f && (O(t), O(i), O(o)), s.d(), u && u.d(f);
|
|
302
302
|
}
|
|
303
303
|
};
|
|
304
304
|
}
|
|
@@ -306,21 +306,21 @@ function ft(n) {
|
|
|
306
306
|
let t, e = (
|
|
307
307
|
/*$_*/
|
|
308
308
|
(n[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
309
|
-
),
|
|
309
|
+
), i;
|
|
310
310
|
return {
|
|
311
311
|
c() {
|
|
312
|
-
t = v("p"),
|
|
312
|
+
t = v("p"), i = L(e);
|
|
313
313
|
},
|
|
314
|
-
m(
|
|
315
|
-
S(
|
|
314
|
+
m(o, a) {
|
|
315
|
+
S(o, t, a), d(t, i);
|
|
316
316
|
},
|
|
317
|
-
p(
|
|
317
|
+
p(o, a) {
|
|
318
318
|
a[0] & /*$_*/
|
|
319
319
|
524288 && e !== (e = /*$_*/
|
|
320
|
-
(
|
|
320
|
+
(o[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && P(i, e);
|
|
321
321
|
},
|
|
322
|
-
d(
|
|
323
|
-
|
|
322
|
+
d(o) {
|
|
323
|
+
o && O(t);
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
}
|
|
@@ -328,21 +328,21 @@ function mt(n) {
|
|
|
328
328
|
let t, e = (
|
|
329
329
|
/*$_*/
|
|
330
330
|
n[19]("otpExpiredMessage") + ""
|
|
331
|
-
),
|
|
331
|
+
), i;
|
|
332
332
|
return {
|
|
333
333
|
c() {
|
|
334
|
-
t = v("p"),
|
|
334
|
+
t = v("p"), i = L(e), r(t, "class", "OtpNoticeMessage"), r(t, "role", "alert");
|
|
335
335
|
},
|
|
336
|
-
m(
|
|
337
|
-
S(
|
|
336
|
+
m(o, a) {
|
|
337
|
+
S(o, t, a), d(t, i);
|
|
338
338
|
},
|
|
339
|
-
p(
|
|
339
|
+
p(o, a) {
|
|
340
340
|
a[0] & /*$_*/
|
|
341
341
|
524288 && e !== (e = /*$_*/
|
|
342
|
-
|
|
342
|
+
o[19]("otpExpiredMessage") + "") && P(i, e);
|
|
343
343
|
},
|
|
344
|
-
d(
|
|
345
|
-
|
|
344
|
+
d(o) {
|
|
345
|
+
o && O(t);
|
|
346
346
|
}
|
|
347
347
|
};
|
|
348
348
|
}
|
|
@@ -355,16 +355,16 @@ function ht(n) {
|
|
|
355
355
|
c() {
|
|
356
356
|
e = L(t);
|
|
357
357
|
},
|
|
358
|
-
m(
|
|
359
|
-
S(
|
|
358
|
+
m(i, o) {
|
|
359
|
+
S(i, e, o);
|
|
360
360
|
},
|
|
361
|
-
p(
|
|
362
|
-
|
|
361
|
+
p(i, o) {
|
|
362
|
+
o[0] & /*$_*/
|
|
363
363
|
524288 && t !== (t = /*$_*/
|
|
364
|
-
|
|
364
|
+
i[19]("popupMessage") + "") && P(e, t);
|
|
365
365
|
},
|
|
366
|
-
d(
|
|
367
|
-
|
|
366
|
+
d(i) {
|
|
367
|
+
i && O(e);
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
}
|
|
@@ -377,20 +377,20 @@ function gt(n) {
|
|
|
377
377
|
c() {
|
|
378
378
|
e = L(t);
|
|
379
379
|
},
|
|
380
|
-
m(
|
|
381
|
-
S(
|
|
380
|
+
m(i, o) {
|
|
381
|
+
S(i, e, o);
|
|
382
382
|
},
|
|
383
|
-
p(
|
|
384
|
-
|
|
383
|
+
p(i, o) {
|
|
384
|
+
o[0] & /*$_*/
|
|
385
385
|
524288 && t !== (t = /*$_*/
|
|
386
|
-
|
|
386
|
+
i[19]("popupMessageLastWarning") + "") && P(e, t);
|
|
387
387
|
},
|
|
388
|
-
d(
|
|
389
|
-
|
|
388
|
+
d(i) {
|
|
389
|
+
i && O(e);
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
|
-
function
|
|
393
|
+
function ze(n) {
|
|
394
394
|
let t, e;
|
|
395
395
|
return {
|
|
396
396
|
c() {
|
|
@@ -399,24 +399,24 @@ function Ae(n) {
|
|
|
399
399
|
n[8]
|
|
400
400
|
), r(t, "class", "OtpErrorMessage"), r(t, "role", "alert");
|
|
401
401
|
},
|
|
402
|
-
m(
|
|
403
|
-
S(
|
|
402
|
+
m(i, o) {
|
|
403
|
+
S(i, t, o), d(t, e);
|
|
404
404
|
},
|
|
405
|
-
p(
|
|
406
|
-
|
|
405
|
+
p(i, o) {
|
|
406
|
+
o[0] & /*errorMessage*/
|
|
407
407
|
256 && P(
|
|
408
408
|
e,
|
|
409
409
|
/*errorMessage*/
|
|
410
|
-
|
|
410
|
+
i[8]
|
|
411
411
|
);
|
|
412
412
|
},
|
|
413
|
-
d(
|
|
414
|
-
|
|
413
|
+
d(i) {
|
|
414
|
+
i && O(t);
|
|
415
415
|
}
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
let t, e,
|
|
418
|
+
function Ae(n) {
|
|
419
|
+
let t, e, i, o;
|
|
420
420
|
function a(u, f) {
|
|
421
421
|
return (
|
|
422
422
|
/*currentChannelTimer*/
|
|
@@ -432,12 +432,12 @@ function ze(n) {
|
|
|
432
432
|
n[16]);
|
|
433
433
|
},
|
|
434
434
|
m(u, f) {
|
|
435
|
-
S(u, t, f), s.m(t, null),
|
|
435
|
+
S(u, t, f), s.m(t, null), i || (o = ee(
|
|
436
436
|
t,
|
|
437
437
|
"click",
|
|
438
438
|
/*handleChannelSubmit*/
|
|
439
439
|
n[22]
|
|
440
|
-
),
|
|
440
|
+
), i = !0);
|
|
441
441
|
},
|
|
442
442
|
p(u, f) {
|
|
443
443
|
p === (p = a(u)) && s ? s.p(u, f) : (s.d(1), s = p(u), s && (s.c(), s.m(t, null))), f[0] & /*canSubmitChannel*/
|
|
@@ -448,7 +448,7 @@ function ze(n) {
|
|
|
448
448
|
u[16]);
|
|
449
449
|
},
|
|
450
450
|
d(u) {
|
|
451
|
-
u && O(t), s.d(),
|
|
451
|
+
u && O(t), s.d(), i = !1, o();
|
|
452
452
|
}
|
|
453
453
|
};
|
|
454
454
|
}
|
|
@@ -461,16 +461,16 @@ function bt(n) {
|
|
|
461
461
|
c() {
|
|
462
462
|
e = L(t);
|
|
463
463
|
},
|
|
464
|
-
m(
|
|
465
|
-
S(
|
|
464
|
+
m(i, o) {
|
|
465
|
+
S(i, e, o);
|
|
466
466
|
},
|
|
467
|
-
p(
|
|
468
|
-
|
|
467
|
+
p(i, o) {
|
|
468
|
+
o[0] & /*$_*/
|
|
469
469
|
524288 && t !== (t = /*$_*/
|
|
470
|
-
|
|
470
|
+
i[19]("sendCode") + "") && P(e, t);
|
|
471
471
|
},
|
|
472
|
-
d(
|
|
473
|
-
|
|
472
|
+
d(i) {
|
|
473
|
+
i && O(e);
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
476
|
}
|
|
@@ -478,37 +478,37 @@ function wt(n) {
|
|
|
478
478
|
let t = (
|
|
479
479
|
/*$_*/
|
|
480
480
|
n[19]("waitSeconds") + ""
|
|
481
|
-
), e,
|
|
481
|
+
), e, i, o, a;
|
|
482
482
|
return {
|
|
483
483
|
c() {
|
|
484
|
-
e = L(t),
|
|
484
|
+
e = L(t), i = L(" ("), o = L(
|
|
485
485
|
/*currentChannelTimer*/
|
|
486
486
|
n[17]
|
|
487
487
|
), a = L("s)");
|
|
488
488
|
},
|
|
489
489
|
m(p, s) {
|
|
490
|
-
S(p, e, s), S(p,
|
|
490
|
+
S(p, e, s), S(p, i, s), S(p, o, s), S(p, a, s);
|
|
491
491
|
},
|
|
492
492
|
p(p, s) {
|
|
493
493
|
s[0] & /*$_*/
|
|
494
494
|
524288 && t !== (t = /*$_*/
|
|
495
495
|
p[19]("waitSeconds") + "") && P(e, t), s[0] & /*currentChannelTimer*/
|
|
496
496
|
131072 && P(
|
|
497
|
-
|
|
497
|
+
o,
|
|
498
498
|
/*currentChannelTimer*/
|
|
499
499
|
p[17]
|
|
500
500
|
);
|
|
501
501
|
},
|
|
502
502
|
d(p) {
|
|
503
|
-
p && (O(e), O(
|
|
503
|
+
p && (O(e), O(i), O(o), O(a));
|
|
504
504
|
}
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
function _t(n) {
|
|
508
|
-
let t, e,
|
|
508
|
+
let t, e, i = (
|
|
509
509
|
/*$_*/
|
|
510
510
|
n[19]("timeRemaining") + ""
|
|
511
|
-
),
|
|
511
|
+
), o, a, p = (
|
|
512
512
|
/*formatTime*/
|
|
513
513
|
n[23](
|
|
514
514
|
/*timeLeft*/
|
|
@@ -525,20 +525,20 @@ function _t(n) {
|
|
|
525
525
|
b[m] = Ie(Le(n, M, m));
|
|
526
526
|
return {
|
|
527
527
|
c() {
|
|
528
|
-
t = v("div"), e = v("div"),
|
|
528
|
+
t = v("div"), e = v("div"), o = L(i), a = R(), s = L(p), u = R(), _ = L(f), w = R(), T = v("div");
|
|
529
529
|
for (let m = 0; m < b.length; m += 1)
|
|
530
530
|
b[m].c();
|
|
531
531
|
r(e, "class", "OtpTimer"), r(T, "class", "OtpField"), r(t, "class", "OtpFieldWrapper");
|
|
532
532
|
},
|
|
533
533
|
m(m, y) {
|
|
534
|
-
S(m, t, y), d(t, e), d(e,
|
|
534
|
+
S(m, t, y), d(t, e), d(e, o), d(e, a), d(e, s), d(e, u), d(e, _), d(t, w), d(t, T);
|
|
535
535
|
for (let C = 0; C < b.length; C += 1)
|
|
536
536
|
b[C] && b[C].m(T, null);
|
|
537
537
|
},
|
|
538
538
|
p(m, y) {
|
|
539
539
|
if (y[0] & /*$_*/
|
|
540
|
-
524288 &&
|
|
541
|
-
m[19]("timeRemaining") + "") && P(
|
|
540
|
+
524288 && i !== (i = /*$_*/
|
|
541
|
+
m[19]("timeRemaining") + "") && P(o, i), y[0] & /*timeLeft*/
|
|
542
542
|
32 && p !== (p = /*formatTime*/
|
|
543
543
|
m[23](
|
|
544
544
|
/*timeLeft*/
|
|
@@ -553,8 +553,8 @@ function _t(n) {
|
|
|
553
553
|
);
|
|
554
554
|
let C;
|
|
555
555
|
for (C = 0; C < M.length; C += 1) {
|
|
556
|
-
const
|
|
557
|
-
b[C] ? b[C].p(
|
|
556
|
+
const A = Le(m, M, C);
|
|
557
|
+
b[C] ? b[C].p(A, y) : (b[C] = Ie(A), b[C].c(), b[C].m(T, null));
|
|
558
558
|
}
|
|
559
559
|
for (; C < b.length; C += 1)
|
|
560
560
|
b[C].d(1);
|
|
@@ -572,8 +572,8 @@ function yt(n) {
|
|
|
572
572
|
c() {
|
|
573
573
|
t = v("div"), t.innerHTML = '<span class="OtpLoader"></span>', r(t, "class", "OtpLoaderContainer");
|
|
574
574
|
},
|
|
575
|
-
m(e,
|
|
576
|
-
S(e, t,
|
|
575
|
+
m(e, i) {
|
|
576
|
+
S(e, t, i);
|
|
577
577
|
},
|
|
578
578
|
p: ye,
|
|
579
579
|
d(e) {
|
|
@@ -582,16 +582,16 @@ function yt(n) {
|
|
|
582
582
|
};
|
|
583
583
|
}
|
|
584
584
|
function Ie(n) {
|
|
585
|
-
let t, e,
|
|
585
|
+
let t, e, i, o = (
|
|
586
586
|
/*index*/
|
|
587
587
|
n[71]
|
|
588
588
|
), a, p;
|
|
589
589
|
const s = () => (
|
|
590
590
|
/*input_binding*/
|
|
591
|
-
n[41](t,
|
|
591
|
+
n[41](t, o)
|
|
592
592
|
), u = () => (
|
|
593
593
|
/*input_binding*/
|
|
594
|
-
n[41](null,
|
|
594
|
+
n[41](null, o)
|
|
595
595
|
);
|
|
596
596
|
function f(...w) {
|
|
597
597
|
return (
|
|
@@ -619,7 +619,7 @@ function Ie(n) {
|
|
|
619
619
|
n[71]}`), r(t, "type", "text"), r(t, "class", e = `otp-box ${/*config*/
|
|
620
620
|
n[4].inputLength % 2 === 0 && /*index*/
|
|
621
621
|
n[71] === /*config*/
|
|
622
|
-
n[4].inputLength / 2 - 1 ? "space" : ""}`), r(t, "maxlength", 1), t.value =
|
|
622
|
+
n[4].inputLength / 2 - 1 ? "space" : ""}`), r(t, "maxlength", 1), t.value = i = /*char*/
|
|
623
623
|
n[69], r(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
624
624
|
n[11], r(t, "autocomplete", "off");
|
|
625
625
|
},
|
|
@@ -641,11 +641,11 @@ function Ie(n) {
|
|
|
641
641
|
n[4].inputLength % 2 === 0 && /*index*/
|
|
642
642
|
n[71] === /*config*/
|
|
643
643
|
n[4].inputLength / 2 - 1 ? "space" : ""}`) && r(t, "class", e), T[0] & /*otp*/
|
|
644
|
-
4 &&
|
|
645
|
-
n[69]) && t.value !==
|
|
644
|
+
4 && i !== (i = /*char*/
|
|
645
|
+
n[69]) && t.value !== i && (t.value = i), T[0] & /*inputDisabled*/
|
|
646
646
|
2048 && (t.disabled = /*inputDisabled*/
|
|
647
|
-
n[11]),
|
|
648
|
-
n[71] && (u(),
|
|
647
|
+
n[11]), o !== /*index*/
|
|
648
|
+
n[71] && (u(), o = /*index*/
|
|
649
649
|
n[71], s());
|
|
650
650
|
},
|
|
651
651
|
d(w) {
|
|
@@ -657,17 +657,17 @@ function vt(n) {
|
|
|
657
657
|
let t, e = (
|
|
658
658
|
/*$_*/
|
|
659
659
|
n[19]("submit") + ""
|
|
660
|
-
),
|
|
660
|
+
), i, o, a, p;
|
|
661
661
|
return {
|
|
662
662
|
c() {
|
|
663
|
-
t = v("button"),
|
|
663
|
+
t = v("button"), i = L(e), r(t, "class", "OtpButton"), t.disabled = o = /*otp*/
|
|
664
664
|
n[2].join("").length !== /*config*/
|
|
665
665
|
n[4].inputLength || /*isSubmitting*/
|
|
666
666
|
n[13] || /*maxAttempts*/
|
|
667
667
|
n[15];
|
|
668
668
|
},
|
|
669
669
|
m(s, u) {
|
|
670
|
-
S(s, t, u), d(t,
|
|
670
|
+
S(s, t, u), d(t, i), a || (p = ee(
|
|
671
671
|
t,
|
|
672
672
|
"click",
|
|
673
673
|
/*submitOtp*/
|
|
@@ -677,12 +677,12 @@ function vt(n) {
|
|
|
677
677
|
p(s, u) {
|
|
678
678
|
u[0] & /*$_*/
|
|
679
679
|
524288 && e !== (e = /*$_*/
|
|
680
|
-
s[19]("submit") + "") && P(
|
|
681
|
-
40980 &&
|
|
680
|
+
s[19]("submit") + "") && P(i, e), u[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
681
|
+
40980 && o !== (o = /*otp*/
|
|
682
682
|
s[2].join("").length !== /*config*/
|
|
683
683
|
s[4].inputLength || /*isSubmitting*/
|
|
684
684
|
s[13] || /*maxAttempts*/
|
|
685
|
-
s[15]) && (t.disabled =
|
|
685
|
+
s[15]) && (t.disabled = o);
|
|
686
686
|
},
|
|
687
687
|
d(s) {
|
|
688
688
|
s && O(t), a = !1, p();
|
|
@@ -693,26 +693,26 @@ function kt(n) {
|
|
|
693
693
|
let t, e = (
|
|
694
694
|
/*$_*/
|
|
695
695
|
n[19]("resendOtp") + ""
|
|
696
|
-
),
|
|
696
|
+
), i, o, a;
|
|
697
697
|
return {
|
|
698
698
|
c() {
|
|
699
|
-
t = v("button"),
|
|
699
|
+
t = v("button"), i = L(e), r(t, "class", "OtpButton");
|
|
700
700
|
},
|
|
701
701
|
m(p, s) {
|
|
702
|
-
S(p, t, s), d(t,
|
|
702
|
+
S(p, t, s), d(t, i), o || (a = ee(
|
|
703
703
|
t,
|
|
704
704
|
"click",
|
|
705
705
|
/*handleResendOtp*/
|
|
706
706
|
n[27]
|
|
707
|
-
),
|
|
707
|
+
), o = !0);
|
|
708
708
|
},
|
|
709
709
|
p(p, s) {
|
|
710
710
|
s[0] & /*$_*/
|
|
711
711
|
524288 && e !== (e = /*$_*/
|
|
712
|
-
p[19]("resendOtp") + "") && P(
|
|
712
|
+
p[19]("resendOtp") + "") && P(i, e);
|
|
713
713
|
},
|
|
714
714
|
d(p) {
|
|
715
|
-
p && O(t),
|
|
715
|
+
p && O(t), o = !1, a();
|
|
716
716
|
}
|
|
717
717
|
};
|
|
718
718
|
}
|
|
@@ -724,28 +724,28 @@ function Ct(n) {
|
|
|
724
724
|
a[7] ? ut : pt
|
|
725
725
|
);
|
|
726
726
|
}
|
|
727
|
-
let
|
|
727
|
+
let i = e(n), o = i(n);
|
|
728
728
|
return {
|
|
729
729
|
c() {
|
|
730
|
-
t = v("div"),
|
|
730
|
+
t = v("div"), o.c(), r(t, "class", "OtpContent");
|
|
731
731
|
},
|
|
732
732
|
m(a, p) {
|
|
733
|
-
S(a, t, p),
|
|
733
|
+
S(a, t, p), o.m(t, null), n[44](t);
|
|
734
734
|
},
|
|
735
735
|
p(a, p) {
|
|
736
|
-
|
|
736
|
+
i === (i = e(a)) && o ? o.p(a, p) : (o.d(1), o = i(a), o && (o.c(), o.m(t, null)));
|
|
737
737
|
},
|
|
738
738
|
i: ye,
|
|
739
739
|
o: ye,
|
|
740
740
|
d(a) {
|
|
741
|
-
a && O(t),
|
|
741
|
+
a && O(t), o.d(), n[44](null);
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
744
|
}
|
|
745
745
|
function Et(n, t, e) {
|
|
746
|
-
let
|
|
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,
|
|
746
|
+
let i, o, a;
|
|
747
|
+
$e(n, ot, (l) => e(19, a = l));
|
|
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 = "", F = !1, j = !1, I = "", te = "", W = "", Q = !1, le = !1, Z = !1, E = "", z = {}, N = null, re = !1, se = !1, ae = "", q, de, U = [], B = null, G = 0, ce = !1, pe = !1;
|
|
749
749
|
const ue = { SMS: "sms", EMAIL: "email" }, $ = {
|
|
750
750
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
751
751
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
@@ -773,7 +773,7 @@ function Et(n, t, e) {
|
|
|
773
773
|
e(12, re = !1), e(3, m = !1);
|
|
774
774
|
}
|
|
775
775
|
}, ne = () => {
|
|
776
|
-
B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6, F = !1), e(7, j = !1), e(8, I = ""), e(10, le = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, re = !1), e(38,
|
|
776
|
+
B && (clearInterval(B), B = null), N && (clearInterval(N), N = null), e(6, F = !1), e(7, j = !1), e(8, I = ""), e(10, le = !1), e(2, b = []), e(4, y = null), e(3, m = !0), e(0, E = ""), e(12, re = !1), e(38, z = {});
|
|
777
777
|
}, D = () => {
|
|
778
778
|
ne();
|
|
779
779
|
}, me = () => new Promise((l, h) => {
|
|
@@ -792,27 +792,27 @@ function Et(n, t, e) {
|
|
|
792
792
|
}).catch((Ee) => {
|
|
793
793
|
h();
|
|
794
794
|
});
|
|
795
|
-
}),
|
|
795
|
+
}), ie = () => {
|
|
796
796
|
N && clearInterval(N), N = setInterval(
|
|
797
797
|
() => {
|
|
798
|
-
const l = { ...
|
|
798
|
+
const l = { ...z };
|
|
799
799
|
let h = !1;
|
|
800
800
|
Object.keys(l).forEach((g) => {
|
|
801
801
|
l[g] > 0 && (l[g]--, h = !0);
|
|
802
|
-
}), e(38,
|
|
802
|
+
}), e(38, z = l), !h && N && (clearInterval(N), N = null);
|
|
803
803
|
},
|
|
804
804
|
1e3
|
|
805
805
|
);
|
|
806
806
|
}, x = (l) => {
|
|
807
807
|
e(0, E = l);
|
|
808
808
|
}, c = async () => {
|
|
809
|
-
if (!(!E ||
|
|
809
|
+
if (!(!E || z[E] && z[E] > 0)) {
|
|
810
810
|
e(3, m = !0), M && M.startsWith("2fa-") && e(30, M = `2fa-${E}`);
|
|
811
811
|
try {
|
|
812
|
-
await me(), await we(), e(38,
|
|
813
|
-
...
|
|
812
|
+
await me(), await we(), e(38, z = {
|
|
813
|
+
...z,
|
|
814
814
|
[E]: 30
|
|
815
|
-
}),
|
|
815
|
+
}), ie(), e(12, re = !0), k(), ge();
|
|
816
816
|
} catch (l) {
|
|
817
817
|
console.error("Error submitting channel:", l), e(6, F = !0), e(8, I = a("submissionError"));
|
|
818
818
|
} finally {
|
|
@@ -820,7 +820,7 @@ function Et(n, t, e) {
|
|
|
820
820
|
}
|
|
821
821
|
}
|
|
822
822
|
}, k = () => {
|
|
823
|
-
const l = new Date(
|
|
823
|
+
const l = new Date(A), h = new Date(X), g = /* @__PURE__ */ new Date(), H = h.getTime() - g.getTime();
|
|
824
824
|
G = l.getTime() - H;
|
|
825
825
|
const he = Date.now(), _e = Math.max(0, Math.floor((G - he) / 1e3));
|
|
826
826
|
e(5, C = _e);
|
|
@@ -925,7 +925,7 @@ function Et(n, t, e) {
|
|
|
925
925
|
e(3, m = !0);
|
|
926
926
|
const l = new URL(`/api/nwa/api/v1/mfa/challenge/${te}/config`, _), h = await fetch(l.href), g = await h.json();
|
|
927
927
|
if (h.ok)
|
|
928
|
-
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Q = !1),
|
|
928
|
+
e(4, y = g), e(2, b = Array(y.inputLength).fill("")), e(9, Q = !1), A = y.expirationTime, X = y.serverTime, y.numberOfValidateAttempts !== 0 && (e(6, F = !0), e(8, I = a("invalidOtp"))), y.numberOfValidateAttempts === y.maxValidationAttempts - 1 && e(10, le = !0), e(3, m = !1), k(), ge(), e(16, pe = !1);
|
|
929
929
|
else if (g && g.details === $.MAX_ATTEMPTS_EXCEEDED)
|
|
930
930
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
931
931
|
else {
|
|
@@ -964,9 +964,9 @@ function Et(n, t, e) {
|
|
|
964
964
|
8 && f && K(), n.$$.dirty[1] & /*lang, translationurl*/
|
|
965
965
|
72 && f && T && V(), n.$$.dirty[0] & /*selectedChannel*/
|
|
966
966
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
967
|
-
128 && e(18,
|
|
967
|
+
128 && e(18, i = E && (!z[E] || z[E] === 0)), n.$$.dirty[0] & /*selectedChannel*/
|
|
968
968
|
1 | n.$$.dirty[1] & /*channelSubmitTimers*/
|
|
969
|
-
128 && e(17,
|
|
969
|
+
128 && e(17, o = E && z[E] || 0);
|
|
970
970
|
}, [
|
|
971
971
|
E,
|
|
972
972
|
q,
|
|
@@ -985,8 +985,8 @@ function Et(n, t, e) {
|
|
|
985
985
|
U,
|
|
986
986
|
ce,
|
|
987
987
|
pe,
|
|
988
|
-
i,
|
|
989
988
|
o,
|
|
989
|
+
i,
|
|
990
990
|
a,
|
|
991
991
|
ue,
|
|
992
992
|
x,
|
|
@@ -1006,7 +1006,7 @@ function Et(n, t, e) {
|
|
|
1006
1006
|
_,
|
|
1007
1007
|
w,
|
|
1008
1008
|
T,
|
|
1009
|
-
|
|
1009
|
+
z,
|
|
1010
1010
|
Ne,
|
|
1011
1011
|
Fe,
|
|
1012
1012
|
We,
|
|
@@ -1041,52 +1041,52 @@ class Ot extends Ye {
|
|
|
1041
1041
|
return this.$$.ctx[31];
|
|
1042
1042
|
}
|
|
1043
1043
|
set clientstyling(t) {
|
|
1044
|
-
this.$$set({ clientstyling: t }),
|
|
1044
|
+
this.$$set({ clientstyling: t }), oe();
|
|
1045
1045
|
}
|
|
1046
1046
|
get clientstylingurl() {
|
|
1047
1047
|
return this.$$.ctx[32];
|
|
1048
1048
|
}
|
|
1049
1049
|
set clientstylingurl(t) {
|
|
1050
|
-
this.$$set({ clientstylingurl: t }),
|
|
1050
|
+
this.$$set({ clientstylingurl: t }), oe();
|
|
1051
1051
|
}
|
|
1052
1052
|
get mbsource() {
|
|
1053
1053
|
return this.$$.ctx[33];
|
|
1054
1054
|
}
|
|
1055
1055
|
set mbsource(t) {
|
|
1056
|
-
this.$$set({ mbsource: t }),
|
|
1056
|
+
this.$$set({ mbsource: t }), oe();
|
|
1057
1057
|
}
|
|
1058
1058
|
get lang() {
|
|
1059
1059
|
return this.$$.ctx[34];
|
|
1060
1060
|
}
|
|
1061
1061
|
set lang(t) {
|
|
1062
|
-
this.$$set({ lang: t }),
|
|
1062
|
+
this.$$set({ lang: t }), oe();
|
|
1063
1063
|
}
|
|
1064
1064
|
get endpoint() {
|
|
1065
1065
|
return this.$$.ctx[35];
|
|
1066
1066
|
}
|
|
1067
1067
|
set endpoint(t) {
|
|
1068
|
-
this.$$set({ endpoint: t }),
|
|
1068
|
+
this.$$set({ endpoint: t }), oe();
|
|
1069
1069
|
}
|
|
1070
1070
|
get session() {
|
|
1071
1071
|
return this.$$.ctx[36];
|
|
1072
1072
|
}
|
|
1073
1073
|
set session(t) {
|
|
1074
|
-
this.$$set({ session: t }),
|
|
1074
|
+
this.$$set({ session: t }), oe();
|
|
1075
1075
|
}
|
|
1076
1076
|
get translationurl() {
|
|
1077
1077
|
return this.$$.ctx[37];
|
|
1078
1078
|
}
|
|
1079
1079
|
set translationurl(t) {
|
|
1080
|
-
this.$$set({ translationurl: t }),
|
|
1080
|
+
this.$$set({ translationurl: t }), oe();
|
|
1081
1081
|
}
|
|
1082
1082
|
get templateid() {
|
|
1083
1083
|
return this.$$.ctx[30];
|
|
1084
1084
|
}
|
|
1085
1085
|
set templateid(t) {
|
|
1086
|
-
this.$$set({ templateid: t }),
|
|
1086
|
+
this.$$set({ templateid: t }), oe();
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
|
-
|
|
1089
|
+
it(Ot, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
1090
1090
|
export {
|
|
1091
1091
|
Ot as default
|
|
1092
1092
|
};
|