@everymatrix/cashier-page 1.93.65 → 1.93.75
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-CyiT2xsa.js → CashierMethodDetails-B80VNj_D.js} +652 -632
- package/components/{CashierMethodDetails-p9l4Iluu.cjs → CashierMethodDetails-DL0E2K7D.cjs} +4 -4
- package/components/{CashierMethodDetails-vTXZEUgh.js → CashierMethodDetails-DOxjgBPP.js} +468 -448
- package/components/{CashierMethodsList-By3SBa7K.js → CashierMethodsList-AGyi-1WS.js} +378 -355
- package/components/{CashierMethodsList-CZdQjuPQ.js → CashierMethodsList-BMD1_XUn.js} +303 -308
- package/components/CashierMethodsList-DhXCE9bn.cjs +1 -0
- package/components/{CashierPage-CBLhCGtM.js → CashierPage-Cl1B-pXl.js} +39 -6
- package/components/{CashierPage-ChksZ7x2.js → CashierPage-wnVVxtWE.js} +39 -6
- package/components/CashierPage-z3O2UFl5.cjs +1 -0
- package/components/{CashierReceiptPage-C9vc8Tdq.js → CashierReceiptPage-DIbzZT8o.js} +2 -2
- package/components/{CashierReceiptPage-D7uA7grn.cjs → CashierReceiptPage-DjD6wuB3.cjs} +1 -1
- package/components/{CashierReceiptPage-DiyMd0oq.js → CashierReceiptPage-HK4kGpqY.js} +2 -2
- package/components/{CashierSessionExpirationModal-DsVCou9W.js → CashierSessionExpirationModal-BI0TSNVV.js} +416 -408
- package/components/{CashierSessionExpirationModal-u83AoXvo.js → CashierSessionExpirationModal-C6eNs52S.js} +402 -394
- package/components/CashierSessionExpirationModal-kmyaKGHm.cjs +2 -0
- package/components/{CashierTransactionHistory-Dx7mVKOh.cjs → CashierTransactionHistory-CXBAT5C2.cjs} +1 -1
- package/components/{CashierTransactionHistory-Dd5ydbYM.js → CashierTransactionHistory-CXUPvjmQ.js} +2 -2
- package/components/{CashierTransactionHistory-JR1DrsVh.js → CashierTransactionHistory-CnmFGuup.js} +2 -2
- package/components/{CashierVerifications-C_73oFvm.cjs → CashierVerifications-C_dhaXxc.cjs} +1 -1
- package/components/{CashierVerifications-clMzLemr.js → CashierVerifications-DqJGumEc.js} +166 -158
- package/components/{CashierVerifications-0enYZZLD.js → CashierVerifications-fkBvQqBz.js} +164 -156
- 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/CashierMethodsList-CUErZLfD.cjs +0 -1
- package/components/CashierPage-9HFOkmPt.cjs +0 -1
- package/components/CashierSessionExpirationModal-TeGdT9SY.cjs +0 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { d as oe, u as
|
|
3
|
-
const
|
|
4
|
-
typeof window != "undefined" && !window.__EMWCashierI18n && (window.__EMWCashierI18n =
|
|
5
|
-
const
|
|
1
|
+
import { a as Ne, $ as qe, i as He, b as Re, c as Ue, S as We, d as je, s as Ke, f as I, e as Xe, H as ee, h as O, W as C, m as L, o as P, q as c, r as ie, v as Ye, N as Ge, A as Ze, C as X, Z as te, a4 as Je, x as de, a3 as re, n as v, a8 as Qe, z as ue, X as Y, p as q, y as me, L as $e, D as ei, E as ii, F as ti, G as ri } from "./CashierCarousel-CwYg_hFh.js";
|
|
2
|
+
import { d as oe, u as oi, x as ni } from "./CashierMethodDetails-B80VNj_D.js";
|
|
3
|
+
const W = typeof window != "undefined" && window.__EMWCashierI18n || { dictionary: Ue, locale: Re, init: He, addMessages: Ne, format: qe };
|
|
4
|
+
typeof window != "undefined" && !window.__EMWCashierI18n && (window.__EMWCashierI18n = W);
|
|
5
|
+
const si = W.format;
|
|
6
6
|
function ne(r, i) {
|
|
7
|
-
|
|
7
|
+
W.addMessages(r, i);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
9
|
+
function ai(r) {
|
|
10
|
+
W.init({
|
|
11
11
|
fallbackLocale: "en"
|
|
12
|
-
}),
|
|
12
|
+
}), W.locale.set(r);
|
|
13
13
|
}
|
|
14
14
|
const se = {
|
|
15
15
|
en: {
|
|
@@ -127,14 +127,14 @@ const se = {
|
|
|
127
127
|
"FE.verificationShuftiproValidationsStarted": "Na het voltooien van de verificatie, ga dan door met de transactie"
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
|
-
function
|
|
131
|
-
|
|
130
|
+
function fi(r) {
|
|
131
|
+
Xe(r, "svelte-1kmyt1l", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications .CashierVerificationsWrapper:has(.CashierVerificationMessage){margin:var(--emw--spacing-small, 12px) auto}.CashierVerificationsWrapper{width:100%;padding:10px;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);position:relative;overflow:hidden;isolation:isolate;flex-direction:column;background-color:rgba(255, 255, 255, 0.063);display:flex;z-index:1;width:97%;margin:auto;cursor:pointer;user-select:none}.CashierVerificationsWrapper::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary) 0%, var(--emw--color-black) 100%);background-size:200% 200%;animation:gradientWave 8s ease infinite}.CashierVerificationsWrapper::after{content:"";position:absolute;inset:-2px;z-index:-2;border-radius:inherit;background:linear-gradient(135deg, var(--emw--color-primary), var(--emw--color-black) transparent);background-size:200% 200%;animation:gradientWave 8s ease infinite reverse;filter:blur(10px);opacity:0.6}@keyframes gradientWave{0%{background-position:0% 50%}50%{background-position:100% 50%}100%{background-position:0% 50%}}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:var(--verifications-list-height, 0);transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotateX(180deg);-ms-transform:rotateX(180deg);-moz-transform:rotateX(180deg);-webkit-transform:rotateX(180deg);transform:rotateX(180deg)}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:rgba(0, 0, 0, 0.15);border-radius:10px;margin-bottom:10px;padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg path{stroke:var(--emw--color-typography, var(--emw--color-white, #ffffff))}p{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-weight:500;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;font-weight:200;font-size:12px}.text a{color:var(--emw--color-primary, #f9c408);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s;margin-right:5px}.CashierVerificationChevron svg path{fill:var(--emw--color-typography, var(--emw--color-white, #ffffff));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:rotateX(90deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center;fill:var(--emw--color-primary, #f9c408)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #f9c408);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}');
|
|
132
132
|
}
|
|
133
133
|
function ae(r, i, t) {
|
|
134
134
|
const n = r.slice();
|
|
135
|
-
return n[
|
|
135
|
+
return n[59] = i[t], n;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function ci(r) {
|
|
138
138
|
let i, t = (
|
|
139
139
|
/*displayMessages*/
|
|
140
140
|
r[3].length > 0 && fe(r)
|
|
@@ -155,7 +155,7 @@ function fi(r) {
|
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function li(r) {
|
|
159
159
|
let i;
|
|
160
160
|
return {
|
|
161
161
|
c() {
|
|
@@ -195,78 +195,78 @@ function ci(r) {
|
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
function fe(r) {
|
|
198
|
-
let i, t, n, s, a, d, p,
|
|
198
|
+
let i, t, n, s, a, d, p, V = (
|
|
199
199
|
/*$_*/
|
|
200
200
|
r[9]("FE.verificationsRequired") + ""
|
|
201
|
-
), w, b,
|
|
202
|
-
r[8]}px`,
|
|
201
|
+
), w, b, D, A, S, k, B, E, x = `${/*verificationsListHeight*/
|
|
202
|
+
r[8]}px`, H, T, z = te(
|
|
203
203
|
/*displayMessages*/
|
|
204
204
|
r[3]
|
|
205
|
-
),
|
|
206
|
-
for (let l = 0; l <
|
|
207
|
-
|
|
205
|
+
), g = [];
|
|
206
|
+
for (let l = 0; l < z.length; l += 1)
|
|
207
|
+
g[l] = ce(ae(r, z, l));
|
|
208
208
|
let h = (
|
|
209
209
|
/*videoExists*/
|
|
210
210
|
r[6] && le(r)
|
|
211
211
|
);
|
|
212
212
|
return {
|
|
213
213
|
c() {
|
|
214
|
-
i = P("div"), t = Y("svg"), n = Y("path"), s = Y("path"), a = Y("path"), d =
|
|
215
|
-
for (let l = 0; l <
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
214
|
+
i = P("div"), t = Y("svg"), n = Y("path"), s = Y("path"), a = Y("path"), d = q(), p = P("p"), w = me(V), b = q(), D = P("span"), D.innerHTML = '<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>', A = q(), S = P("div"), k = P("div");
|
|
215
|
+
for (let l = 0; l < g.length; l += 1)
|
|
216
|
+
g[l].c();
|
|
217
|
+
B = q(), h && h.c(), c(n, "d", "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"), c(n, "stroke", "#6E738F"), c(n, "stroke-width", "2"), c(n, "stroke-linecap", "round"), c(n, "stroke-linejoin", "round"), c(s, "d", "M12 8V12"), c(s, "stroke", "#6E738F"), c(s, "stroke-width", "2"), c(s, "stroke-linecap", "round"), c(s, "stroke-linejoin", "round"), c(a, "d", "M12 16H12.01"), c(a, "stroke", "#6E738F"), c(a, "stroke-width", "2"), c(a, "stroke-linecap", "round"), c(a, "stroke-linejoin", "round"), c(t, "width", "24"), c(t, "height", "24"), c(t, "viewBox", "0 0 24 24"), c(t, "fill", "none"), c(t, "xmlns", "http://www.w3.org/2000/svg"), c(D, "class", "CashierVerificationChevron"), C(
|
|
218
|
+
D,
|
|
219
219
|
"ShowVerifications",
|
|
220
220
|
/*allVerificationsVisible*/
|
|
221
221
|
r[4]
|
|
222
|
-
), c(i, "class", "VerificationsHeader"), c(k, "class", "VerificationsListInner"),
|
|
222
|
+
), c(i, "class", "VerificationsHeader"), c(k, "class", "VerificationsListInner"), $e(() => (
|
|
223
223
|
/*div1_elementresize_handler*/
|
|
224
|
-
r[
|
|
224
|
+
r[22].call(k)
|
|
225
225
|
)), c(S, "class", "VerificationsList"), C(
|
|
226
226
|
S,
|
|
227
227
|
"ShowVerifications",
|
|
228
228
|
/*allVerificationsVisible*/
|
|
229
229
|
r[4]
|
|
230
|
-
), re(S, "--verifications-list-height",
|
|
230
|
+
), re(S, "--verifications-list-height", x);
|
|
231
231
|
},
|
|
232
232
|
m(l, F) {
|
|
233
|
-
L(l, i, F), v(i, t), v(t, n), v(t, s), v(t, a), v(i, d), v(i, p), v(p, w), v(i, b), v(i,
|
|
234
|
-
for (let u = 0; u <
|
|
235
|
-
|
|
236
|
-
v(k,
|
|
233
|
+
L(l, i, F), v(i, t), v(t, n), v(t, s), v(t, a), v(i, d), v(i, p), v(p, w), v(i, b), v(i, D), L(l, A, F), L(l, S, F), v(S, k);
|
|
234
|
+
for (let u = 0; u < g.length; u += 1)
|
|
235
|
+
g[u] && g[u].m(k, null);
|
|
236
|
+
v(k, B), h && h.m(k, null), E = Qe(
|
|
237
237
|
k,
|
|
238
238
|
/*div1_elementresize_handler*/
|
|
239
|
-
r[
|
|
240
|
-
),
|
|
239
|
+
r[22].bind(k)
|
|
240
|
+
), H || (T = ue(
|
|
241
241
|
i,
|
|
242
242
|
"click",
|
|
243
243
|
/*toggleVerifications*/
|
|
244
244
|
r[10]
|
|
245
|
-
),
|
|
245
|
+
), H = !0);
|
|
246
246
|
},
|
|
247
247
|
p(l, F) {
|
|
248
248
|
if (F[0] & /*$_*/
|
|
249
|
-
512 &&
|
|
250
|
-
l[9]("FE.verificationsRequired") + "") && de(w,
|
|
249
|
+
512 && V !== (V = /*$_*/
|
|
250
|
+
l[9]("FE.verificationsRequired") + "") && de(w, V), F[0] & /*allVerificationsVisible*/
|
|
251
251
|
16 && C(
|
|
252
|
-
|
|
252
|
+
D,
|
|
253
253
|
"ShowVerifications",
|
|
254
254
|
/*allVerificationsVisible*/
|
|
255
255
|
l[4]
|
|
256
256
|
), F[0] & /*displayMessages*/
|
|
257
257
|
8) {
|
|
258
|
-
|
|
258
|
+
z = te(
|
|
259
259
|
/*displayMessages*/
|
|
260
260
|
l[3]
|
|
261
261
|
);
|
|
262
262
|
let u;
|
|
263
|
-
for (u = 0; u <
|
|
264
|
-
const
|
|
265
|
-
|
|
263
|
+
for (u = 0; u < z.length; u += 1) {
|
|
264
|
+
const N = ae(l, z, u);
|
|
265
|
+
g[u] ? g[u].p(N, F) : (g[u] = ce(N), g[u].c(), g[u].m(k, B));
|
|
266
266
|
}
|
|
267
|
-
for (; u <
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
for (; u < g.length; u += 1)
|
|
268
|
+
g[u].d(1);
|
|
269
|
+
g.length = z.length;
|
|
270
270
|
}
|
|
271
271
|
/*videoExists*/
|
|
272
272
|
l[6] ? h ? h.p(l, F) : (h = le(l), h.c(), h.m(k, null)) : h && (h.d(1), h = null), F[0] & /*allVerificationsVisible*/
|
|
@@ -276,22 +276,22 @@ function fe(r) {
|
|
|
276
276
|
/*allVerificationsVisible*/
|
|
277
277
|
l[4]
|
|
278
278
|
), F[0] & /*verificationsListHeight*/
|
|
279
|
-
256 &&
|
|
280
|
-
l[8]}px`) && re(S, "--verifications-list-height",
|
|
279
|
+
256 && x !== (x = `${/*verificationsListHeight*/
|
|
280
|
+
l[8]}px`) && re(S, "--verifications-list-height", x);
|
|
281
281
|
},
|
|
282
282
|
d(l) {
|
|
283
|
-
l && (O(i), O(
|
|
283
|
+
l && (O(i), O(A), O(S)), Je(g, l), h && h.d(), E(), H = !1, T();
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
287
|
function ce(r) {
|
|
288
288
|
let i, t, n, s, a = (
|
|
289
289
|
/*message*/
|
|
290
|
-
r[
|
|
290
|
+
r[59] + ""
|
|
291
291
|
);
|
|
292
292
|
return {
|
|
293
293
|
c() {
|
|
294
|
-
i = P("div"), t = P("div"), t.innerHTML = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>', n =
|
|
294
|
+
i = P("div"), t = P("div"), t.innerHTML = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>', n = q(), s = P("p"), c(t, "class", "IconVerification"), c(s, "class", "text"), c(i, "class", "CashierVerificationMessage Test");
|
|
295
295
|
},
|
|
296
296
|
m(d, p) {
|
|
297
297
|
L(d, i, p), v(i, t), v(i, n), v(i, s), s.innerHTML = a;
|
|
@@ -299,7 +299,7 @@ function ce(r) {
|
|
|
299
299
|
p(d, p) {
|
|
300
300
|
p[0] & /*displayMessages*/
|
|
301
301
|
8 && a !== (a = /*message*/
|
|
302
|
-
d[
|
|
302
|
+
d[59] + "") && (s.innerHTML = a);
|
|
303
303
|
},
|
|
304
304
|
d(d) {
|
|
305
305
|
d && O(i);
|
|
@@ -310,10 +310,10 @@ function le(r) {
|
|
|
310
310
|
let i, t, n, s, a = (
|
|
311
311
|
/*$_*/
|
|
312
312
|
r[9]("FE.verificationVideoHowTo") + ""
|
|
313
|
-
), d, p,
|
|
313
|
+
), d, p, V;
|
|
314
314
|
return {
|
|
315
315
|
c() {
|
|
316
|
-
i = P("div"), t = P("div"), t.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 =
|
|
316
|
+
i = P("div"), t = P("div"), t.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 = q(), s = P("div"), d = me(a), c(t, "class", "IconVideo"), c(s, "class", "CashierVerificationVideoLink"), C(
|
|
317
317
|
s,
|
|
318
318
|
"CashierVerificationVideoLinkDesktop",
|
|
319
319
|
/*desktopView*/
|
|
@@ -321,7 +321,7 @@ function le(r) {
|
|
|
321
321
|
), c(i, "class", "CashierVerificationVideo Test");
|
|
322
322
|
},
|
|
323
323
|
m(w, b) {
|
|
324
|
-
L(w, i, b), v(i, t), v(i, n), v(i, s), v(s, d), p || (
|
|
324
|
+
L(w, i, b), v(i, t), v(i, n), v(i, s), v(s, d), p || (V = ue(
|
|
325
325
|
i,
|
|
326
326
|
"click",
|
|
327
327
|
/*showVideo*/
|
|
@@ -340,23 +340,23 @@ function le(r) {
|
|
|
340
340
|
);
|
|
341
341
|
},
|
|
342
342
|
d(w) {
|
|
343
|
-
w && O(i), p = !1,
|
|
343
|
+
w && O(i), p = !1, V();
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function di(r) {
|
|
348
348
|
let i;
|
|
349
349
|
function t(a, d) {
|
|
350
350
|
if (
|
|
351
351
|
/*isLoading*/
|
|
352
352
|
a[7]
|
|
353
353
|
)
|
|
354
|
-
return
|
|
354
|
+
return li;
|
|
355
355
|
if (
|
|
356
356
|
/*displayMessages*/
|
|
357
357
|
a[3]
|
|
358
358
|
)
|
|
359
|
-
return
|
|
359
|
+
return ci;
|
|
360
360
|
}
|
|
361
361
|
let n = t(r), s = n && n(r);
|
|
362
362
|
return {
|
|
@@ -369,7 +369,7 @@ function li(r) {
|
|
|
369
369
|
);
|
|
370
370
|
},
|
|
371
371
|
m(a, d) {
|
|
372
|
-
L(a, i, d), s && s.m(i, null), r[
|
|
372
|
+
L(a, i, d), s && s.m(i, null), r[23](i);
|
|
373
373
|
},
|
|
374
374
|
p(a, d) {
|
|
375
375
|
n === (n = t(a)) && s ? s.p(a, d) : (s && s.d(1), s = n && n(a), s && (s.c(), s.m(i, null))), d[0] & /*desktopView*/
|
|
@@ -383,19 +383,19 @@ function li(r) {
|
|
|
383
383
|
i: ee,
|
|
384
384
|
o: ee,
|
|
385
385
|
d(a) {
|
|
386
|
-
a && O(i), s && s.d(), r[
|
|
386
|
+
a && O(i), s && s.d(), r[23](null);
|
|
387
387
|
}
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
|
-
const
|
|
391
|
-
function
|
|
390
|
+
const ui = "verification_explanation_video_widgets.MP4";
|
|
391
|
+
function mi(r, i, t) {
|
|
392
392
|
let n, s;
|
|
393
|
-
ie(r,
|
|
394
|
-
let { endpoint: a } = i, { lang: d = "en" } = i, { translationurl: p = "" } = i, { clientstyling:
|
|
395
|
-
var
|
|
393
|
+
ie(r, si, (e) => t(9, n = e)), ie(r, ni, (e) => t(32, s = e)), oe.extend(oi);
|
|
394
|
+
let { endpoint: a } = i, { lang: d = "en" } = i, { translationurl: p = "" } = i, { clientstyling: V = "" } = i, { clientstylingurl: w = "" } = i, { session: b = "" } = i, { customerid: D = "" } = i, { playersession: A = "" } = i, { userroles: S = "" } = i, { mbsource: k = "" } = i, { usecashiertranslations: B = "false" } = i, E, x = /* @__PURE__ */ new Set(), H = /* @__PURE__ */ new Set(), T, z, g, h = !1, l = !0, F = !1, u = "", N = !1, ge, j = [], G = 0, he = window.navigator.userAgent;
|
|
395
|
+
var R;
|
|
396
396
|
(function(e) {
|
|
397
397
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
398
|
-
})(
|
|
398
|
+
})(R || (R = {}));
|
|
399
399
|
var Z;
|
|
400
400
|
(function(e) {
|
|
401
401
|
e.Requested = "Requested";
|
|
@@ -404,21 +404,21 @@ function ui(r, i, t) {
|
|
|
404
404
|
(function(e) {
|
|
405
405
|
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";
|
|
406
406
|
})(y || (y = {}));
|
|
407
|
-
var
|
|
407
|
+
var U;
|
|
408
408
|
(function(e) {
|
|
409
409
|
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";
|
|
410
|
-
})(
|
|
410
|
+
})(U || (U = {}));
|
|
411
411
|
const J = (e) => {
|
|
412
412
|
e.data && e.data.type;
|
|
413
413
|
};
|
|
414
|
-
|
|
414
|
+
Ye(() => (window.addEventListener("message", J), Ce(), () => {
|
|
415
415
|
window.removeEventListener("message", J);
|
|
416
416
|
}));
|
|
417
417
|
const ve = [
|
|
418
418
|
y.InProgress,
|
|
419
419
|
y.Referred,
|
|
420
420
|
y.AwaitingForResponse
|
|
421
|
-
],
|
|
421
|
+
], pe = () => {
|
|
422
422
|
let e = p;
|
|
423
423
|
if (e)
|
|
424
424
|
return fetch(e).then((o) => o.json()).then((o) => {
|
|
@@ -429,181 +429,182 @@ function ui(r, i, t) {
|
|
|
429
429
|
console.log(o);
|
|
430
430
|
});
|
|
431
431
|
};
|
|
432
|
-
Object.keys(se).forEach((e) => {
|
|
432
|
+
B == "false" && Object.keys(se).forEach((e) => {
|
|
433
433
|
ne(e, se[e]);
|
|
434
434
|
});
|
|
435
|
-
const
|
|
436
|
-
|
|
435
|
+
const ke = () => {
|
|
436
|
+
ai(d);
|
|
437
437
|
}, Q = () => {
|
|
438
|
-
t(
|
|
439
|
-
const e = new URL(`${a}/v1/player/${
|
|
440
|
-
o.append("accept", "application/json"), o.append("Content-Type", "application/json"), o.append("x-sessionid", `${
|
|
438
|
+
t(21, z = Fe());
|
|
439
|
+
const e = new URL(`${a}/v1/player/${D}/verification/GetKYCCustomerStatus?language=${d}`), o = new Headers();
|
|
440
|
+
o.append("accept", "application/json"), o.append("Content-Type", "application/json"), o.append("x-sessionid", `${A}`), o.append("X-Client-Request-Timestamp", oe.utc().format("YYYY-MM-DD HH:mm:ss.SSS")), Array.isArray(j) && j.length > 0 && j.indexOf("MM_CHANNEL_BETA") != -1 && o.append("MM_CHANNEL", "BETA");
|
|
441
441
|
const f = {
|
|
442
442
|
method: "POST",
|
|
443
443
|
headers: o,
|
|
444
444
|
body: JSON.stringify({})
|
|
445
445
|
};
|
|
446
|
-
t(7,
|
|
447
|
-
const _ =
|
|
448
|
-
|
|
449
|
-
K.VerificationUrlType !== "Widget" &&
|
|
450
|
-
}), t(3,
|
|
451
|
-
}).finally(() => t(7,
|
|
452
|
-
},
|
|
446
|
+
t(7, N = !0), fetch(e, f).then((m) => m.json()).then((m) => {
|
|
447
|
+
const _ = we(m == null ? void 0 : m.Verifications);
|
|
448
|
+
T = ye(_), T.VerificationStatuses.forEach((K) => {
|
|
449
|
+
K.VerificationUrlType !== "Widget" && x.add(K.Vendor);
|
|
450
|
+
}), t(3, g = ze());
|
|
451
|
+
}).finally(() => t(7, N = !1));
|
|
452
|
+
}, we = (e) => e ? e.sort((o, f) => new Date(f.Created).getTime() - new Date(o.Created).getTime()) : [], Se = () => {
|
|
453
453
|
s && Q();
|
|
454
|
-
},
|
|
454
|
+
}, Fe = () => {
|
|
455
455
|
let e = (b || s).split(".")[1];
|
|
456
456
|
if (e) {
|
|
457
457
|
let o = JSON.parse(atob(e));
|
|
458
458
|
return o.cdn + "/cashier/operator-assets/" + (o == null ? void 0 : o.mid);
|
|
459
459
|
}
|
|
460
460
|
return "";
|
|
461
|
-
},
|
|
461
|
+
}, ye = (e) => {
|
|
462
462
|
var f;
|
|
463
463
|
if (!e || !e.length)
|
|
464
464
|
return {
|
|
465
465
|
VerificationSummaryStatus: y.Unverified,
|
|
466
466
|
VerificationStatuses: []
|
|
467
467
|
};
|
|
468
|
-
const o =
|
|
468
|
+
const o = be(e);
|
|
469
469
|
if (o && o.length) {
|
|
470
|
-
const
|
|
470
|
+
const m = Pe(o);
|
|
471
471
|
return {
|
|
472
|
-
VerificationSummaryStatus:
|
|
473
|
-
VerificationUrl: (f =
|
|
474
|
-
VerificationStatuses: $(o,
|
|
472
|
+
VerificationSummaryStatus: m.Status,
|
|
473
|
+
VerificationUrl: (f = m.Flags) == null ? void 0 : f.DeferredUrlKey,
|
|
474
|
+
VerificationStatuses: $(o, m.Status)
|
|
475
475
|
};
|
|
476
476
|
} else
|
|
477
477
|
return {
|
|
478
478
|
VerificationSummaryStatus: e.some((_) => _.Status === y.Failed) ? y.Failed : y.Verified,
|
|
479
479
|
VerificationStatuses: $(e, [y.Failed])
|
|
480
480
|
};
|
|
481
|
-
},
|
|
481
|
+
}, Pe = (e) => e.reduce(
|
|
482
482
|
(o, f) => o ? new Date(o) < new Date(f) ? f : o : f,
|
|
483
483
|
0
|
|
484
484
|
), $ = (e, o) => e.filter((f) => o.includes(f.Status)).map((f) => {
|
|
485
|
-
var
|
|
485
|
+
var m, _;
|
|
486
486
|
return {
|
|
487
487
|
Type: f.Type,
|
|
488
488
|
Vendor: f.VendorName,
|
|
489
489
|
VerificationDocuments: f.Documents ? [...f.Documents] : [],
|
|
490
|
-
VerificationUrlType: (
|
|
490
|
+
VerificationUrlType: (m = f.FlowInfo) == null ? void 0 : m.Type,
|
|
491
491
|
VerificationUrl: (_ = f.FlowInfo) == null ? void 0 : _.Url
|
|
492
492
|
};
|
|
493
|
-
}),
|
|
494
|
-
const o = e.Documents && e.VendorName ===
|
|
493
|
+
}), be = (e) => e.filter((o) => ve.includes(o.Status) ? o.FlowInfo && o.FlowInfo.Url || Ve(o) || Ee(o) : !1), Ve = (e) => {
|
|
494
|
+
const o = e.Documents && e.VendorName === R.Manual, f = e.Documents && e.Documents.some((m) => m.Status === Z.Requested);
|
|
495
495
|
return o && f;
|
|
496
|
-
},
|
|
497
|
-
switch (
|
|
496
|
+
}, Ee = (e) => e.VendorName === R.ShuftiPro && e.Status === y.Referred, ze = () => {
|
|
497
|
+
switch (T.VerificationSummaryStatus) {
|
|
498
498
|
case y.InProgress:
|
|
499
499
|
const e = [];
|
|
500
|
-
return
|
|
501
|
-
e.push(
|
|
500
|
+
return x.forEach((o) => {
|
|
501
|
+
e.push(Ie(o));
|
|
502
502
|
}), e;
|
|
503
503
|
case y.Referred:
|
|
504
504
|
return [n("FE.verificationIdenfyReferredAwaiting")];
|
|
505
505
|
case y.Failed:
|
|
506
506
|
return [n("FE.verificationMessageFailed")];
|
|
507
507
|
}
|
|
508
|
-
},
|
|
509
|
-
const o =
|
|
510
|
-
if (e ===
|
|
511
|
-
return
|
|
508
|
+
}, Ie = (e) => {
|
|
509
|
+
const o = T.VerificationStatuses.filter((f) => f.Vendor === e);
|
|
510
|
+
if (e === R.ShuftiPro)
|
|
511
|
+
return De(o);
|
|
512
512
|
{
|
|
513
|
-
const f = n("FE.verificationIdenfyLinkName"),
|
|
513
|
+
const f = n("FE.verificationIdenfyLinkName"), m = {
|
|
514
514
|
link: `<a href="${o[0].VerificationUrl}" target="_blank">${f}</a>`
|
|
515
515
|
};
|
|
516
|
-
return n("FE.verificationIdenfyInProgress", { values:
|
|
516
|
+
return n("FE.verificationIdenfyInProgress", { values: m });
|
|
517
517
|
}
|
|
518
|
-
},
|
|
519
|
-
const o = [], f = {},
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
518
|
+
}, De = (e) => {
|
|
519
|
+
const o = [], f = {}, m = [
|
|
520
|
+
U.Biometric,
|
|
521
|
+
U.Documents,
|
|
522
|
+
U.ProofOfAddress
|
|
523
523
|
];
|
|
524
|
-
e.forEach((
|
|
525
|
-
|
|
524
|
+
e.forEach((M) => {
|
|
525
|
+
m.includes(M.Type) && (o.push(M.Type), f[M.Type] = Ae(M, Be(M.Type)));
|
|
526
526
|
});
|
|
527
|
-
let _ = o.every((
|
|
527
|
+
let _ = o.every((M) => H.has(M)), K = `FE.verificationShuftiproInProgress${o.sort().join("")}`;
|
|
528
528
|
return _ ? n("FE.verificationShuftiproValidationsStarted") : n(K, { values: f });
|
|
529
|
-
},
|
|
530
|
-
t(4,
|
|
531
|
-
}, _e = () => {
|
|
532
|
-
t(5, h = !Ye(ge));
|
|
529
|
+
}, Ae = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, Be = (e) => n(`FE.verificationShuftiproLinkName${e}`), _e = () => {
|
|
530
|
+
t(4, h = !h);
|
|
533
531
|
}, Ce = () => {
|
|
534
|
-
|
|
532
|
+
t(5, l = !Ge(he));
|
|
533
|
+
}, Oe = () => {
|
|
534
|
+
u = z + "/" + d + "/" + ui;
|
|
535
535
|
try {
|
|
536
|
-
fetch(
|
|
537
|
-
t(6,
|
|
536
|
+
fetch(u, { method: "HEAD" }).then((e) => {
|
|
537
|
+
t(6, F = e.ok);
|
|
538
538
|
});
|
|
539
539
|
} catch (e) {
|
|
540
|
-
t(6,
|
|
540
|
+
t(6, F = !1);
|
|
541
541
|
}
|
|
542
|
-
}, Oe = () => {
|
|
543
|
-
S.length > 0 && (j = S.split(","));
|
|
544
542
|
}, Le = () => {
|
|
543
|
+
S.length > 0 && (j = S.split(","));
|
|
544
|
+
}, xe = () => {
|
|
545
545
|
window.dispatchEvent(new CustomEvent(
|
|
546
546
|
"modal-update",
|
|
547
547
|
{
|
|
548
|
-
detail: { type: "video", data: { videoSrc:
|
|
548
|
+
detail: { type: "video", data: { videoSrc: u } }
|
|
549
549
|
}
|
|
550
550
|
));
|
|
551
551
|
};
|
|
552
|
-
function
|
|
552
|
+
function Te() {
|
|
553
553
|
G = this.clientHeight, t(8, G);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
|
|
557
|
-
|
|
555
|
+
function Me(e) {
|
|
556
|
+
Ze[e ? "unshift" : "push"](() => {
|
|
557
|
+
E = e, t(2, E);
|
|
558
558
|
});
|
|
559
559
|
}
|
|
560
560
|
return r.$$set = (e) => {
|
|
561
|
-
"endpoint" in e && t(12, a = e.endpoint), "lang" in e && t(13, d = e.lang), "translationurl" in e && t(14, p = e.translationurl), "clientstyling" in e && t(0,
|
|
561
|
+
"endpoint" in e && t(12, a = e.endpoint), "lang" in e && t(13, d = e.lang), "translationurl" in e && t(14, p = e.translationurl), "clientstyling" in e && t(0, V = e.clientstyling), "clientstylingurl" in e && t(1, w = e.clientstylingurl), "session" in e && t(15, b = e.session), "customerid" in e && t(16, D = e.customerid), "playersession" in e && t(17, A = e.playersession), "userroles" in e && t(18, S = e.userroles), "mbsource" in e && t(19, k = e.mbsource), "usecashiertranslations" in e && t(20, B = e.usecashiertranslations);
|
|
562
562
|
}, r.$$.update = () => {
|
|
563
563
|
r.$$.dirty[0] & /*userroles*/
|
|
564
|
-
262144 && S &&
|
|
565
|
-
8192 && d &&
|
|
566
|
-
167936 && a && b &&
|
|
567
|
-
167936 && a && !b &&
|
|
568
|
-
|
|
569
|
-
5 &&
|
|
570
|
-
6 && w &&
|
|
571
|
-
|
|
572
|
-
524292 && k &&
|
|
564
|
+
262144 && S && Le(), r.$$.dirty[0] & /*lang*/
|
|
565
|
+
8192 && d && ke(), r.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
566
|
+
167936 && a && b && A && Q(), r.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
567
|
+
167936 && a && !b && A && Se(), r.$$.dirty[0] & /*usecashiertranslations, translationurl*/
|
|
568
|
+
1064960 && B == "false" && p && pe(), r.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
569
|
+
5 && V && E && ei(E, V), r.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
570
|
+
6 && w && E && ii(E, w), r.$$.dirty[0] & /*staticCdnUrl*/
|
|
571
|
+
2097152 && z && Oe(), r.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
572
|
+
524292 && k && E && ti(E, `${k}.Style`, ge);
|
|
573
573
|
}, [
|
|
574
|
-
E,
|
|
575
|
-
w,
|
|
576
574
|
V,
|
|
577
|
-
|
|
578
|
-
|
|
575
|
+
w,
|
|
576
|
+
E,
|
|
577
|
+
g,
|
|
579
578
|
h,
|
|
580
579
|
l,
|
|
581
|
-
|
|
580
|
+
F,
|
|
581
|
+
N,
|
|
582
582
|
G,
|
|
583
583
|
n,
|
|
584
|
-
|
|
585
|
-
|
|
584
|
+
_e,
|
|
585
|
+
xe,
|
|
586
586
|
a,
|
|
587
587
|
d,
|
|
588
588
|
p,
|
|
589
589
|
b,
|
|
590
|
-
z,
|
|
591
590
|
D,
|
|
591
|
+
A,
|
|
592
592
|
S,
|
|
593
593
|
k,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
Te
|
|
594
|
+
B,
|
|
595
|
+
z,
|
|
596
|
+
Te,
|
|
597
|
+
Me
|
|
597
598
|
];
|
|
598
599
|
}
|
|
599
|
-
class
|
|
600
|
+
class gi extends We {
|
|
600
601
|
constructor(i) {
|
|
601
|
-
super(),
|
|
602
|
+
super(), je(
|
|
602
603
|
this,
|
|
603
604
|
i,
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
605
|
+
mi,
|
|
606
|
+
di,
|
|
607
|
+
Ke,
|
|
607
608
|
{
|
|
608
609
|
endpoint: 12,
|
|
609
610
|
lang: 13,
|
|
@@ -614,9 +615,10 @@ class mi extends Ue {
|
|
|
614
615
|
customerid: 16,
|
|
615
616
|
playersession: 17,
|
|
616
617
|
userroles: 18,
|
|
617
|
-
mbsource: 19
|
|
618
|
+
mbsource: 19,
|
|
619
|
+
usecashiertranslations: 20
|
|
618
620
|
},
|
|
619
|
-
|
|
621
|
+
fi,
|
|
620
622
|
[-1, -1]
|
|
621
623
|
);
|
|
622
624
|
}
|
|
@@ -680,8 +682,14 @@ class mi extends Ue {
|
|
|
680
682
|
set mbsource(i) {
|
|
681
683
|
this.$$set({ mbsource: i }), I();
|
|
682
684
|
}
|
|
685
|
+
get usecashiertranslations() {
|
|
686
|
+
return this.$$.ctx[20];
|
|
687
|
+
}
|
|
688
|
+
set usecashiertranslations(i) {
|
|
689
|
+
this.$$set({ usecashiertranslations: i }), I();
|
|
690
|
+
}
|
|
683
691
|
}
|
|
684
|
-
|
|
692
|
+
ri(gi, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, playersession: {}, userroles: {}, mbsource: {}, usecashiertranslations: {} }, [], [], !0);
|
|
685
693
|
export {
|
|
686
|
-
|
|
694
|
+
gi as default
|
|
687
695
|
};
|