@everymatrix/cashier-page 1.69.3 → 1.70.0
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/{CashierMethodDetails-rfZY5K0e.js → CashierMethodDetails-Bd3dJIne.js} +717 -727
- package/components/{CashierMethodDetails-CoqrsZpI.cjs → CashierMethodDetails-C1IkwS7r.cjs} +4 -4
- package/components/{CashierMethodDetails-C-Ut2IGe.js → CashierMethodDetails-CbzQCKZu.js} +721 -731
- package/components/{CashierMethodsList-BamQMAO0.js → CashierMethodsList-C1Roz4a7.js} +1 -1
- package/components/{CashierMethodsList-Cr6mhrvJ.cjs → CashierMethodsList-GlWqnvHm.cjs} +1 -1
- package/components/{CashierMethodsList-C6e55bjb.js → CashierMethodsList-wbpWQlt7.js} +1 -1
- package/components/{CashierPage-BoEfCJ8r.cjs → CashierPage-CeDNrFtr.cjs} +1 -1
- package/components/{CashierPage-CaP6odYj.js → CashierPage-D1XOiV_V.js} +6 -6
- package/components/{CashierPage-BJlHrw66.js → CashierPage-DHASkcsL.js} +6 -6
- package/components/{CashierReceiptPage-BlVH86DW.js → CashierReceiptPage--u9KEoCs.js} +1 -1
- package/components/{CashierReceiptPage-B2GSh9vv.js → CashierReceiptPage-BnvakxJQ.js} +1 -1
- package/components/{CashierReceiptPage-BVS0odD-.cjs → CashierReceiptPage-DT0yYD3A.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-BxNZq7Gf.js → CashierSessionExpirationModal-BM6h05_P.js} +1 -1
- package/components/{CashierSessionExpirationModal-BicBzpY2.cjs → CashierSessionExpirationModal-DQBxk3nF.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-DSBOAXLu.js → CashierSessionExpirationModal-DT7l33oM.js} +1 -1
- package/components/{CashierTransactionHistory-xR2Md4Br.cjs → CashierTransactionHistory-75SCP1rv.cjs} +1 -1
- package/components/{CashierTransactionHistory-BJNXnfke.js → CashierTransactionHistory-CfdEK8dI.js} +1 -1
- package/components/{CashierTransactionHistory-CuT5mUVX.js → CashierTransactionHistory-DxaRw8iZ.js} +1 -1
- package/components/{CashierVerifications-DbJJiIau.cjs → CashierVerifications-BTorcj-t.cjs} +1 -1
- package/components/{CashierVerifications-CTbLuZeN.js → CashierVerifications-Bt9z1qXM.js} +183 -182
- package/components/{CashierVerifications-DnLBDkUg.js → CashierVerifications-BvPWg9O1.js} +118 -117
- 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
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { a as
|
|
3
|
-
import { d as
|
|
4
|
-
function
|
|
5
|
-
|
|
1
|
+
import { S as Oe, b as Be, s as Me, f as y, c as Le, n as Z, e as D, J as T, l as C, o as w, q as V, v as X, K as Q, L as xe, C as b, p as A, z as qe, m as k, A as H, x as Fe, y as ze, E as Ie } from "./CashierConfirmModal-untxGhsx.js";
|
|
2
|
+
import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-B3QY-Z04.js";
|
|
3
|
+
import { d as $, u as Ne, x as je } from "./CashierMethodDetails-Bd3dJIne.js";
|
|
4
|
+
function ee(t, i) {
|
|
5
|
+
Ee(t, i);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
|
|
7
|
+
function We(t) {
|
|
8
|
+
Re({
|
|
9
9
|
fallbackLocale: "en"
|
|
10
|
-
}),
|
|
10
|
+
}), Ue.set(t);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const ie = {
|
|
13
13
|
en: {
|
|
14
14
|
"verification.video.how-to": "How to verify yourself",
|
|
15
15
|
"verification.idenfy.referred-awaiting": "ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back",
|
|
@@ -81,23 +81,23 @@ if (typeof window < "u") {
|
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
84
|
+
function Ke(t) {
|
|
85
|
+
Le(t, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function te(t, i, o) {
|
|
88
88
|
const n = t.slice();
|
|
89
|
-
return n[
|
|
89
|
+
return n[53] = i[o], n[55] = o, n;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
let i, o, n, c, d =
|
|
91
|
+
function oe(t) {
|
|
92
|
+
let i, o, n, c, d = Q(
|
|
93
93
|
/*displayMessages*/
|
|
94
94
|
t[4]
|
|
95
95
|
), f = [];
|
|
96
96
|
for (let a = 0; a < d.length; a += 1)
|
|
97
|
-
f[a] =
|
|
97
|
+
f[a] = se(te(t, d, a));
|
|
98
98
|
let h = (
|
|
99
99
|
/*videoExists*/
|
|
100
|
-
t[7] &&
|
|
100
|
+
t[7] && ne(t)
|
|
101
101
|
);
|
|
102
102
|
return {
|
|
103
103
|
c() {
|
|
@@ -135,21 +135,21 @@ function te(t) {
|
|
|
135
135
|
p(a, u) {
|
|
136
136
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
137
137
|
1072) {
|
|
138
|
-
d =
|
|
138
|
+
d = Q(
|
|
139
139
|
/*displayMessages*/
|
|
140
140
|
a[4]
|
|
141
141
|
);
|
|
142
142
|
let s;
|
|
143
143
|
for (s = 0; s < d.length; s += 1) {
|
|
144
|
-
const P =
|
|
145
|
-
f[s] ? f[s].p(P, u) : (f[s] =
|
|
144
|
+
const P = te(a, d, s);
|
|
145
|
+
f[s] ? f[s].p(P, u) : (f[s] = se(P), f[s].c(), f[s].m(i, null));
|
|
146
146
|
}
|
|
147
147
|
for (; s < f.length; s += 1)
|
|
148
148
|
f[s].d(1);
|
|
149
149
|
f.length = d.length;
|
|
150
150
|
}
|
|
151
151
|
/*videoExists*/
|
|
152
|
-
a[7] ? h ? h.p(a, u) : (h =
|
|
152
|
+
a[7] ? h ? h.p(a, u) : (h = ne(a), h.c(), h.m(n.parentNode, n)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
|
|
153
153
|
2 && b(
|
|
154
154
|
c,
|
|
155
155
|
"clientstylingurl",
|
|
@@ -176,18 +176,18 @@ function te(t) {
|
|
|
176
176
|
);
|
|
177
177
|
},
|
|
178
178
|
d(a) {
|
|
179
|
-
a && (D(i), D(o), D(n), D(c)),
|
|
179
|
+
a && (D(i), D(o), D(n), D(c)), xe(f, a), h && h.d(a);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function re(t) {
|
|
184
184
|
let i, o, n;
|
|
185
185
|
function c(...d) {
|
|
186
186
|
return (
|
|
187
187
|
/*click_handler*/
|
|
188
188
|
t[19](
|
|
189
189
|
/*index*/
|
|
190
|
-
t[
|
|
190
|
+
t[55],
|
|
191
191
|
...d
|
|
192
192
|
)
|
|
193
193
|
);
|
|
@@ -197,7 +197,7 @@ function oe(t) {
|
|
|
197
197
|
i = w("span"), i.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', V(i, "class", "CashierVerificationChevron");
|
|
198
198
|
},
|
|
199
199
|
m(d, f) {
|
|
200
|
-
C(d, i, f), o || (n =
|
|
200
|
+
C(d, i, f), o || (n = H(i, "click", c), o = !0);
|
|
201
201
|
},
|
|
202
202
|
p(d, f) {
|
|
203
203
|
t = d;
|
|
@@ -207,21 +207,21 @@ function oe(t) {
|
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function se(t) {
|
|
211
211
|
let i, o, n, c, d = (
|
|
212
212
|
/*message*/
|
|
213
|
-
t[
|
|
213
|
+
t[53] + ""
|
|
214
214
|
), f, h, a, u, s = (
|
|
215
215
|
/*displayMessages*/
|
|
216
216
|
t[4].length > 1 && /*index*/
|
|
217
|
-
t[
|
|
217
|
+
t[55] === 0 && re(t)
|
|
218
218
|
);
|
|
219
219
|
function P(...p) {
|
|
220
220
|
return (
|
|
221
221
|
/*click_handler_1*/
|
|
222
222
|
t[20](
|
|
223
223
|
/*index*/
|
|
224
|
-
t[
|
|
224
|
+
t[55],
|
|
225
225
|
...p
|
|
226
226
|
)
|
|
227
227
|
);
|
|
@@ -236,14 +236,14 @@ function re(t) {
|
|
|
236
236
|
);
|
|
237
237
|
},
|
|
238
238
|
m(p, g) {
|
|
239
|
-
C(p, i, g), k(i, o), k(i, n), k(i, c), c.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u =
|
|
239
|
+
C(p, i, g), k(i, o), k(i, n), k(i, c), c.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = H(i, "click", P), a = !0);
|
|
240
240
|
},
|
|
241
241
|
p(p, g) {
|
|
242
242
|
t = p, g[0] & /*displayMessages*/
|
|
243
243
|
16 && d !== (d = /*message*/
|
|
244
|
-
t[
|
|
244
|
+
t[53] + "") && (c.innerHTML = d), /*displayMessages*/
|
|
245
245
|
t[4].length > 1 && /*index*/
|
|
246
|
-
t[
|
|
246
|
+
t[55] === 0 ? s ? s.p(t, g) : (s = re(t), s.c(), s.m(i, h)) : s && (s.d(1), s = null), g[0] & /*allVerificationsVisible*/
|
|
247
247
|
32 && T(
|
|
248
248
|
i,
|
|
249
249
|
"ShowAll",
|
|
@@ -256,14 +256,14 @@ function re(t) {
|
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function ne(t) {
|
|
260
260
|
let i, o, n, c, d = (
|
|
261
261
|
/*$_*/
|
|
262
262
|
t[9]("verification.video.how-to") + ""
|
|
263
263
|
), f, h, a;
|
|
264
264
|
return {
|
|
265
265
|
c() {
|
|
266
|
-
i = w("div"), o = w("div"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', n = A(), c = w("div"), f =
|
|
266
|
+
i = w("div"), o = w("div"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', n = A(), c = w("div"), f = ze(d), V(o, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), T(
|
|
267
267
|
c,
|
|
268
268
|
"CashierVerificationVideoLinkDesktop",
|
|
269
269
|
/*desktopView*/
|
|
@@ -271,7 +271,7 @@ function se(t) {
|
|
|
271
271
|
), V(i, "class", "CashierVerificationVideo");
|
|
272
272
|
},
|
|
273
273
|
m(u, s) {
|
|
274
|
-
C(u, i, s), k(i, o), k(i, n), k(i, c), k(c, f), h || (a =
|
|
274
|
+
C(u, i, s), k(i, o), k(i, n), k(i, c), k(c, f), h || (a = H(
|
|
275
275
|
c,
|
|
276
276
|
"click",
|
|
277
277
|
/*click_handler_2*/
|
|
@@ -281,7 +281,7 @@ function se(t) {
|
|
|
281
281
|
p(u, s) {
|
|
282
282
|
s[0] & /*$_*/
|
|
283
283
|
512 && d !== (d = /*$_*/
|
|
284
|
-
u[9]("verification.video.how-to") + "") &&
|
|
284
|
+
u[9]("verification.video.how-to") + "") && Fe(f, d), s[0] & /*desktopView*/
|
|
285
285
|
64 && T(
|
|
286
286
|
c,
|
|
287
287
|
"CashierVerificationVideoLinkDesktop",
|
|
@@ -294,10 +294,10 @@ function se(t) {
|
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Ye(t) {
|
|
298
298
|
let i, o = (
|
|
299
299
|
/*displayMessages*/
|
|
300
|
-
t[4] &&
|
|
300
|
+
t[4] && oe(t)
|
|
301
301
|
);
|
|
302
302
|
return {
|
|
303
303
|
c() {
|
|
@@ -313,7 +313,7 @@ function Ke(t) {
|
|
|
313
313
|
},
|
|
314
314
|
p(n, c) {
|
|
315
315
|
/*displayMessages*/
|
|
316
|
-
n[4] ? o ? o.p(n, c) : (o =
|
|
316
|
+
n[4] ? o ? o.p(n, c) : (o = oe(n), o.c(), o.m(i, null)) : o && (o.d(1), o = null), c[0] & /*desktopView*/
|
|
317
317
|
64 && T(
|
|
318
318
|
i,
|
|
319
319
|
"CashierVerificationsDesktop",
|
|
@@ -321,18 +321,18 @@ function Ke(t) {
|
|
|
321
321
|
n[6]
|
|
322
322
|
);
|
|
323
323
|
},
|
|
324
|
-
i:
|
|
325
|
-
o:
|
|
324
|
+
i: Z,
|
|
325
|
+
o: Z,
|
|
326
326
|
d(n) {
|
|
327
327
|
n && D(i), o && o.d(), t[22](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
const
|
|
332
|
-
function
|
|
331
|
+
const Ge = "verification_explanation_video_widgets.MP4";
|
|
332
|
+
function Je(t, i, o) {
|
|
333
333
|
let n, c;
|
|
334
|
-
|
|
335
|
-
let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: P = "" } = i, { ismobileview: p = "" } = i, { playersession: g = "" } = i, S,
|
|
334
|
+
X(t, He, (e) => o(9, n = e)), X(t, je, (e) => o(28, c = e)), $.extend(Ne);
|
|
335
|
+
let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: P = "" } = i, { ismobileview: p = "" } = i, { playersession: g = "" } = i, S, N = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), M, L, q, F = !0, W = !0, z = !1, I = "";
|
|
336
336
|
var O;
|
|
337
337
|
(function(e) {
|
|
338
338
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
@@ -345,34 +345,34 @@ function Ge(t, i, o) {
|
|
|
345
345
|
(function(e) {
|
|
346
346
|
e.Unknown = "Unknown", e.Unverified = "Unverified", e.InProgress = "InProgress", e.Failed = "Failed", e.Verified = "Verified", e.Referred = "Referred", e.True = "True", e.False = "False", e.AwaitingForResponse = "AwaitingForResponse";
|
|
347
347
|
})(m || (m = {}));
|
|
348
|
-
var
|
|
348
|
+
var B;
|
|
349
349
|
(function(e) {
|
|
350
350
|
e.Unknown = "Unknown", e.Documents = "Documents", e.Age = "Age", e.Pep = "Pep", e.Sanction = "Sanction", e.Aml = "Aml", e.ProofOfAddress = "ProofOfAddress", e.SourceOfWealth = "SourceOfWealth", e.SocialMedia = "SocialMedia", e.Biometric = "Biometric";
|
|
351
|
-
})(
|
|
352
|
-
const
|
|
351
|
+
})(B || (B = {}));
|
|
352
|
+
const ae = [
|
|
353
353
|
m.InProgress,
|
|
354
354
|
m.Referred,
|
|
355
355
|
m.AwaitingForResponse
|
|
356
|
-
],
|
|
356
|
+
], le = () => {
|
|
357
357
|
let e = h;
|
|
358
358
|
if (e)
|
|
359
359
|
return fetch(e).then((r) => r.json()).then((r) => {
|
|
360
360
|
Object.keys(r).forEach((l) => {
|
|
361
|
-
|
|
361
|
+
ee(l, r[l]);
|
|
362
362
|
});
|
|
363
363
|
}).catch((r) => {
|
|
364
364
|
console.log(r);
|
|
365
365
|
});
|
|
366
366
|
};
|
|
367
|
-
Object.keys(
|
|
368
|
-
|
|
367
|
+
Object.keys(ie).forEach((e) => {
|
|
368
|
+
ee(e, ie[e]);
|
|
369
369
|
});
|
|
370
|
-
const
|
|
371
|
-
|
|
372
|
-
},
|
|
370
|
+
const ce = () => {
|
|
371
|
+
We(f);
|
|
372
|
+
}, fe = () => {
|
|
373
373
|
let e = document.createElement("style");
|
|
374
374
|
e.innerHTML = a, S.appendChild(e);
|
|
375
|
-
},
|
|
375
|
+
}, de = () => {
|
|
376
376
|
let e = new URL(u), r = document.createElement("style");
|
|
377
377
|
fetch(e.href).then((l) => l.text()).then((l) => {
|
|
378
378
|
r.innerHTML = l, setTimeout(
|
|
@@ -382,106 +382,107 @@ function Ge(t, i, o) {
|
|
|
382
382
|
1
|
|
383
383
|
);
|
|
384
384
|
});
|
|
385
|
-
},
|
|
386
|
-
o(18, L =
|
|
385
|
+
}, K = () => {
|
|
386
|
+
o(18, L = me());
|
|
387
387
|
const e = new URL(`${d}/v1/player/${P}/verification/GetKYCCustomerStatus?language=${f}`), r = new Headers();
|
|
388
|
-
r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("x-sessionid", `${g}`), r.append("X-Client-Request-Timestamp",
|
|
388
|
+
r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("x-sessionid", `${g}`), r.append("X-Client-Request-Timestamp", $.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
389
389
|
const l = {
|
|
390
390
|
method: "POST",
|
|
391
391
|
headers: r,
|
|
392
392
|
body: JSON.stringify({})
|
|
393
393
|
};
|
|
394
394
|
fetch(e, l).then((v) => v.json()).then((v) => {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
395
|
+
const U = ue(v?.Verifications);
|
|
396
|
+
M = pe(U), M.VerificationStatuses.forEach((x) => {
|
|
397
|
+
x.VerificationUrlType !== "Widget" && N.add(x.Vendor);
|
|
398
|
+
}), o(4, q = G());
|
|
398
399
|
});
|
|
399
|
-
},
|
|
400
|
-
c &&
|
|
401
|
-
},
|
|
400
|
+
}, ue = (e) => e ? e.sort((r, l) => new Date(l.Created).getTime() - new Date(r.Created).getTime()) : [], he = () => {
|
|
401
|
+
c && K();
|
|
402
|
+
}, me = () => {
|
|
402
403
|
let e = (s || c).split(".")[1];
|
|
403
404
|
if (e) {
|
|
404
405
|
let r = JSON.parse(atob(e));
|
|
405
406
|
return r.cdn + "/cashier/operator-assets/" + r?.mid;
|
|
406
407
|
}
|
|
407
408
|
return "";
|
|
408
|
-
},
|
|
409
|
+
}, pe = (e) => {
|
|
409
410
|
if (!e || !e.length)
|
|
410
411
|
return {
|
|
411
412
|
VerificationSummaryStatus: m.Unverified,
|
|
412
413
|
VerificationStatuses: []
|
|
413
414
|
};
|
|
414
|
-
const r =
|
|
415
|
+
const r = ve(e);
|
|
415
416
|
if (r && r.length) {
|
|
416
|
-
const l =
|
|
417
|
+
const l = ge(r);
|
|
417
418
|
return {
|
|
418
419
|
VerificationSummaryStatus: l.Status,
|
|
419
420
|
VerificationUrl: l.Flags?.DeferredUrlKey,
|
|
420
|
-
VerificationStatuses:
|
|
421
|
+
VerificationStatuses: Y(r, l.Status)
|
|
421
422
|
};
|
|
422
423
|
} else
|
|
423
424
|
return {
|
|
424
425
|
VerificationSummaryStatus: e.some((v) => v.Status === m.Failed) ? m.Failed : m.Verified,
|
|
425
|
-
VerificationStatuses:
|
|
426
|
+
VerificationStatuses: Y(e, [m.Failed])
|
|
426
427
|
};
|
|
427
|
-
},
|
|
428
|
+
}, ge = (e) => e.reduce(
|
|
428
429
|
(r, l) => r ? new Date(r) < new Date(l) ? l : r : l,
|
|
429
430
|
0
|
|
430
|
-
),
|
|
431
|
+
), Y = (e, r) => e.filter((l) => r.includes(l.Status)).map((l) => ({
|
|
431
432
|
Type: l.Type,
|
|
432
433
|
Vendor: l.VendorName,
|
|
433
434
|
VerificationDocuments: l.Documents ? [...l.Documents] : [],
|
|
434
435
|
VerificationUrlType: l.FlowInfo?.Type,
|
|
435
436
|
VerificationUrl: l.FlowInfo?.Url
|
|
436
|
-
})),
|
|
437
|
+
})), ve = (e) => e.filter((r) => ae.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || we(r) || ye(r) : !1), we = (e) => {
|
|
437
438
|
const r = e.Documents && e.VendorName === O.Manual, l = e.Documents && e.Documents.some((v) => v.Status === E.Requested);
|
|
438
439
|
return r && l;
|
|
439
|
-
},
|
|
440
|
-
switch (
|
|
440
|
+
}, ye = (e) => e.VendorName === O.ShuftiPro && e.Status === m.Referred, G = () => {
|
|
441
|
+
switch (M.VerificationSummaryStatus) {
|
|
441
442
|
case m.InProgress:
|
|
442
443
|
const e = [];
|
|
443
|
-
return
|
|
444
|
-
e.push(
|
|
444
|
+
return N.forEach((r) => {
|
|
445
|
+
e.push(ke(r));
|
|
445
446
|
}), e;
|
|
446
447
|
case m.Referred:
|
|
447
448
|
return [n("verification.idenfy.referred-awaiting")];
|
|
448
449
|
case m.Failed:
|
|
449
450
|
return [n("verification.message.failed")];
|
|
450
451
|
}
|
|
451
|
-
},
|
|
452
|
-
const r =
|
|
452
|
+
}, ke = (e) => {
|
|
453
|
+
const r = M.VerificationStatuses.filter((l) => l.Vendor === e);
|
|
453
454
|
if (e === O.ShuftiPro)
|
|
454
|
-
return
|
|
455
|
+
return Ve(r);
|
|
455
456
|
{
|
|
456
457
|
const l = n("verification.idenfy.link-name"), v = {
|
|
457
458
|
link: `<a href="${r[0].VerificationUrl}" target="_blank">${l}</a>`
|
|
458
459
|
};
|
|
459
460
|
return n("verification.idenfy.in-progress", { values: v });
|
|
460
461
|
}
|
|
461
|
-
},
|
|
462
|
+
}, Ve = (e) => {
|
|
462
463
|
const r = [], l = {}, v = [
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
B.Biometric,
|
|
465
|
+
B.Documents,
|
|
466
|
+
B.ProofOfAddress
|
|
466
467
|
];
|
|
467
468
|
e.forEach((_) => {
|
|
468
|
-
v.includes(_.Type) && (r.push(_.Type), l[_.Type] =
|
|
469
|
+
v.includes(_.Type) && (r.push(_.Type), l[_.Type] = Pe(_, be(_.Type)));
|
|
469
470
|
});
|
|
470
|
-
let
|
|
471
|
-
return
|
|
472
|
-
},
|
|
471
|
+
let U = r.every((_) => j.has(_)), x = `verification.shuftipro.in-progress.${r.sort().join(".")}`;
|
|
472
|
+
return U ? n("verification.shuftipro.validations-started") : n(x, { values: l });
|
|
473
|
+
}, Pe = (e, r) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${r}</a>`, be = (e) => n(`verification.shuftipro.link-name.${e}`), R = (e, r) => {
|
|
473
474
|
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
474
475
|
if (e.target.closest(".verificationLink")) {
|
|
475
476
|
const l = e.target.className.split(" ")[1];
|
|
476
|
-
|
|
477
|
+
j.add(l), o(4, q = G());
|
|
477
478
|
}
|
|
478
479
|
return;
|
|
479
480
|
}
|
|
480
481
|
r === 0 && o(5, F = !F);
|
|
481
|
-
},
|
|
482
|
-
o(6,
|
|
483
|
-
},
|
|
484
|
-
o(8, I = L + "/" + f + "/" +
|
|
482
|
+
}, De = () => {
|
|
483
|
+
o(6, W = p === "false");
|
|
484
|
+
}, Ce = () => {
|
|
485
|
+
o(8, I = L + "/" + f + "/" + Ge);
|
|
485
486
|
try {
|
|
486
487
|
fetch(I, { method: "HEAD" }).then((e) => {
|
|
487
488
|
o(7, z = e.ok);
|
|
@@ -489,11 +490,11 @@ function Ge(t, i, o) {
|
|
|
489
490
|
} catch {
|
|
490
491
|
o(7, z = !1);
|
|
491
492
|
}
|
|
492
|
-
},
|
|
493
|
+
}, J = () => {
|
|
493
494
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
494
|
-
},
|
|
495
|
-
function
|
|
496
|
-
|
|
495
|
+
}, Se = (e, r) => R(r, e), _e = (e, r) => R(r, e), Ae = () => J();
|
|
496
|
+
function Te(e) {
|
|
497
|
+
qe[e ? "unshift" : "push"](() => {
|
|
497
498
|
S = e, o(3, S);
|
|
498
499
|
});
|
|
499
500
|
}
|
|
@@ -501,14 +502,14 @@ function Ge(t, i, o) {
|
|
|
501
502
|
"endpoint" in e && o(12, d = e.endpoint), "lang" in e && o(13, f = e.lang), "translationurl" in e && o(14, h = e.translationurl), "clientstyling" in e && o(0, a = e.clientstyling), "clientstylingurl" in e && o(1, u = e.clientstylingurl), "session" in e && o(15, s = e.session), "customerid" in e && o(16, P = e.customerid), "ismobileview" in e && o(2, p = e.ismobileview), "playersession" in e && o(17, g = e.playersession);
|
|
502
503
|
}, t.$$.update = () => {
|
|
503
504
|
t.$$.dirty[0] & /*lang*/
|
|
504
|
-
8192 && f &&
|
|
505
|
-
167936 && d && s && g &&
|
|
506
|
-
167936 && d && !s && g &&
|
|
507
|
-
16384 && h &&
|
|
508
|
-
9 && a && S &&
|
|
509
|
-
10 && u && S &&
|
|
510
|
-
4 && p &&
|
|
511
|
-
262144 && L &&
|
|
505
|
+
8192 && f && ce(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
506
|
+
167936 && d && s && g && K(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
507
|
+
167936 && d && !s && g && he(), t.$$.dirty[0] & /*translationurl*/
|
|
508
|
+
16384 && h && le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
509
|
+
9 && a && S && fe(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
510
|
+
10 && u && S && de(), t.$$.dirty[0] & /*ismobileview*/
|
|
511
|
+
4 && p && De(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
512
|
+
262144 && L && Ce();
|
|
512
513
|
}, [
|
|
513
514
|
a,
|
|
514
515
|
u,
|
|
@@ -516,12 +517,12 @@ function Ge(t, i, o) {
|
|
|
516
517
|
S,
|
|
517
518
|
q,
|
|
518
519
|
F,
|
|
519
|
-
|
|
520
|
+
W,
|
|
520
521
|
z,
|
|
521
522
|
I,
|
|
522
523
|
n,
|
|
523
524
|
R,
|
|
524
|
-
|
|
525
|
+
J,
|
|
525
526
|
d,
|
|
526
527
|
f,
|
|
527
528
|
h,
|
|
@@ -529,19 +530,19 @@ function Ge(t, i, o) {
|
|
|
529
530
|
P,
|
|
530
531
|
g,
|
|
531
532
|
L,
|
|
532
|
-
De,
|
|
533
|
-
Ce,
|
|
534
533
|
Se,
|
|
535
|
-
_e
|
|
534
|
+
_e,
|
|
535
|
+
Ae,
|
|
536
|
+
Te
|
|
536
537
|
];
|
|
537
538
|
}
|
|
538
|
-
class
|
|
539
|
+
class Ze extends Oe {
|
|
539
540
|
constructor(i) {
|
|
540
|
-
super(),
|
|
541
|
+
super(), Be(
|
|
541
542
|
this,
|
|
542
543
|
i,
|
|
543
|
-
|
|
544
|
-
|
|
544
|
+
Je,
|
|
545
|
+
Ye,
|
|
545
546
|
Me,
|
|
546
547
|
{
|
|
547
548
|
endpoint: 12,
|
|
@@ -554,7 +555,7 @@ class Je extends Te {
|
|
|
554
555
|
ismobileview: 2,
|
|
555
556
|
playersession: 17
|
|
556
557
|
},
|
|
557
|
-
|
|
558
|
+
Ke,
|
|
558
559
|
[-1, -1]
|
|
559
560
|
);
|
|
560
561
|
}
|
|
@@ -613,7 +614,7 @@ class Je extends Te {
|
|
|
613
614
|
this.$$set({ playersession: i }), y();
|
|
614
615
|
}
|
|
615
616
|
}
|
|
616
|
-
|
|
617
|
+
Ie(Ze, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
|
|
617
618
|
export {
|
|
618
|
-
|
|
619
|
+
Ze as default
|
|
619
620
|
};
|
package/es2015/cashier-page.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CashierPage-CeDNrFtr.cjs")).then(({default:t})=>{!customElements.get("cashier-page")&&customElements.define("cashier-page",t.element)})}
|
package/es2015/cashier-page.js
CHANGED
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CashierPage-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CashierPage-D1XOiV_V.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-page") && customElements.define("cashier-page", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/esnext/cashier-page.js
CHANGED