@everymatrix/cashier-page 1.50.0 → 1.50.1
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/{CashierError-B6Kgc33u.js → CashierError-B6UnQRtt.js} +204 -197
- package/components/{CashierError-B6IaVYAb.cjs → CashierError-Dj9dAyT_.cjs} +2 -2
- package/components/{CashierHeader-DisTPfvX.js → CashierHeader-D_5W3qac.js} +1 -1
- package/components/{CashierHeader-iNNp6cpC.cjs → CashierHeader-PU4xmDh7.cjs} +1 -1
- package/components/{CashierIframeRedirect-DkJY9SOb.js → CashierIframeRedirect-AfYctO93.js} +2 -2
- package/components/{CashierIframeRedirect-schHNvai.cjs → CashierIframeRedirect-DPigb3i8.cjs} +1 -1
- package/components/{CashierMethodDetails-BSTbYrHT.js → CashierMethodDetails-CaayB8Ta.js} +4 -4
- package/components/{CashierMethodDetails-BjsnmtMr.cjs → CashierMethodDetails-DmHFfFH5.cjs} +1 -1
- package/components/{CashierMethodsList-CmTYla6n.js → CashierMethodsList-COmRGzya.js} +2 -2
- package/components/{CashierMethodsList-C75jsuOd.cjs → CashierMethodsList-jXH4wahr.cjs} +1 -1
- package/components/{CashierPage-aTsZIWLP.js → CashierPage-9uZbyjKm.js} +7 -29
- package/components/{CashierPage-DiyftSnl.cjs → CashierPage-B4HjN4Bk.cjs} +1 -1
- package/components/{CashierReceiptPage-BMbXsPzB.js → CashierReceiptPage-C5JK2JOI.js} +2 -2
- package/components/{CashierReceiptPage-BLPzX5RM.cjs → CashierReceiptPage-H9Qapwm1.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-HOfAhCNe.js → CashierSessionExpirationModal-CLyCURw1.js} +2 -2
- package/components/{CashierSessionExpirationModal-q87nskSB.cjs → CashierSessionExpirationModal-ToViCtAl.cjs} +1 -1
- package/components/{CashierVerifications-BVBxmsiH.cjs → CashierVerifications-B43LfrCs.cjs} +1 -1
- package/components/{CashierVerifications-DE4G3q6t.js → CashierVerifications-B82QHoUu.js} +145 -151
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { S as Ce, b as _e, f as
|
|
2
|
-
import { a as Fe, i as Ie, $ as xe, b as ze } from "./CashierError-
|
|
3
|
-
import { d as Z, u as Ee } from "./CashierMethodDetails-
|
|
1
|
+
import { S as Ce, b as _e, f as D, c as Se, a as Ae, d as Oe, g as w, j as P, I as q, k as _, n as Y, v as S, w as Me, K as G, h as O, E as C, M as Be, l as k, A as R, y as Te, z as Le, C as qe } from "./CashierConfirmModal-Bho8FqJK.js";
|
|
2
|
+
import { a as Fe, i as Ie, $ as xe, b as ze } from "./CashierError-B6UnQRtt.js";
|
|
3
|
+
import { d as Z, u as Ee } from "./CashierMethodDetails-CaayB8Ta.js";
|
|
4
4
|
function J(t, i) {
|
|
5
5
|
Fe(t, i);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function Ue(t) {
|
|
8
8
|
Ie({
|
|
9
9
|
fallbackLocale: "en"
|
|
10
10
|
}), xe.set(t);
|
|
@@ -81,7 +81,7 @@ if (typeof window != "undefined") {
|
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function Re(t) {
|
|
85
85
|
Oe(t, "svelte-3l7kfy", "*,*::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{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;line-height:120%;margin:var(--emw--spacing-small, 12px)}");
|
|
86
86
|
}
|
|
87
87
|
function Q(t, i, r) {
|
|
@@ -93,18 +93,18 @@ function $(t) {
|
|
|
93
93
|
/*displayMessages*/
|
|
94
94
|
t[4]
|
|
95
95
|
), d = [];
|
|
96
|
-
for (let
|
|
97
|
-
d[
|
|
98
|
-
let
|
|
96
|
+
for (let n = 0; n < f.length; n += 1)
|
|
97
|
+
d[n] = ie(Q(t, f, n));
|
|
98
|
+
let u = (
|
|
99
99
|
/*videoExists*/
|
|
100
100
|
t[7] && te(t)
|
|
101
101
|
);
|
|
102
102
|
return {
|
|
103
103
|
c() {
|
|
104
|
-
i =
|
|
105
|
-
for (let
|
|
106
|
-
d[
|
|
107
|
-
r =
|
|
104
|
+
i = w("div");
|
|
105
|
+
for (let n = 0; n < d.length; n += 1)
|
|
106
|
+
d[n].c();
|
|
107
|
+
r = O(), u && u.c(), s = O(), c = w("cashier-video-modal"), P(i, "class", "CashierVerificationsWrapper"), C(
|
|
108
108
|
c,
|
|
109
109
|
"clientstylingurl",
|
|
110
110
|
/*clientstylingurl*/
|
|
@@ -126,57 +126,57 @@ function $(t) {
|
|
|
126
126
|
t[8]
|
|
127
127
|
);
|
|
128
128
|
},
|
|
129
|
-
m(
|
|
130
|
-
_(
|
|
131
|
-
for (let
|
|
132
|
-
d[
|
|
133
|
-
_(
|
|
129
|
+
m(n, h) {
|
|
130
|
+
_(n, i, h);
|
|
131
|
+
for (let a = 0; a < d.length; a += 1)
|
|
132
|
+
d[a] && d[a].m(i, null);
|
|
133
|
+
_(n, r, h), u && u.m(n, h), _(n, s, h), _(n, c, h);
|
|
134
134
|
},
|
|
135
|
-
p(
|
|
136
|
-
if (
|
|
135
|
+
p(n, h) {
|
|
136
|
+
if (h[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
137
137
|
1072) {
|
|
138
138
|
f = G(
|
|
139
139
|
/*displayMessages*/
|
|
140
|
-
|
|
140
|
+
n[4]
|
|
141
141
|
);
|
|
142
|
-
let
|
|
143
|
-
for (
|
|
144
|
-
const
|
|
145
|
-
d[
|
|
142
|
+
let a;
|
|
143
|
+
for (a = 0; a < f.length; a += 1) {
|
|
144
|
+
const y = Q(n, f, a);
|
|
145
|
+
d[a] ? d[a].p(y, h) : (d[a] = ie(y), d[a].c(), d[a].m(i, null));
|
|
146
146
|
}
|
|
147
|
-
for (;
|
|
148
|
-
d[
|
|
147
|
+
for (; a < d.length; a += 1)
|
|
148
|
+
d[a].d(1);
|
|
149
149
|
d.length = f.length;
|
|
150
150
|
}
|
|
151
151
|
/*videoExists*/
|
|
152
|
-
|
|
152
|
+
n[7] ? u ? u.p(n, h) : (u = te(n), u.c(), u.m(s.parentNode, s)) : u && (u.d(1), u = null), h[0] & /*clientstylingurl*/
|
|
153
153
|
2 && C(
|
|
154
154
|
c,
|
|
155
155
|
"clientstylingurl",
|
|
156
156
|
/*clientstylingurl*/
|
|
157
|
-
|
|
158
|
-
),
|
|
157
|
+
n[1]
|
|
158
|
+
), h[0] & /*clientstyling*/
|
|
159
159
|
1 && C(
|
|
160
160
|
c,
|
|
161
161
|
"clientstyling",
|
|
162
162
|
/*clientstyling*/
|
|
163
|
-
|
|
164
|
-
),
|
|
163
|
+
n[0]
|
|
164
|
+
), h[0] & /*ismobileview*/
|
|
165
165
|
4 && C(
|
|
166
166
|
c,
|
|
167
167
|
"ismobileview",
|
|
168
168
|
/*ismobileview*/
|
|
169
|
-
|
|
170
|
-
),
|
|
169
|
+
n[2]
|
|
170
|
+
), h[0] & /*videoSrc*/
|
|
171
171
|
256 && C(
|
|
172
172
|
c,
|
|
173
173
|
"videosrc",
|
|
174
174
|
/*videoSrc*/
|
|
175
|
-
|
|
175
|
+
n[8]
|
|
176
176
|
);
|
|
177
177
|
},
|
|
178
|
-
d(
|
|
179
|
-
|
|
178
|
+
d(n) {
|
|
179
|
+
n && (S(i), S(r), S(s), S(c)), Be(d, n), u && u.d(n);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
@@ -194,7 +194,7 @@ function ee(t) {
|
|
|
194
194
|
}
|
|
195
195
|
return {
|
|
196
196
|
c() {
|
|
197
|
-
i =
|
|
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>', P(i, "class", "CashierVerificationChevron");
|
|
198
198
|
},
|
|
199
199
|
m(f, d) {
|
|
200
200
|
_(f, i, d), r || (s = R(i, "click", c), r = !0);
|
|
@@ -203,7 +203,7 @@ function ee(t) {
|
|
|
203
203
|
t = f;
|
|
204
204
|
},
|
|
205
205
|
d(f) {
|
|
206
|
-
f &&
|
|
206
|
+
f && S(i), r = !1, s();
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
}
|
|
@@ -211,48 +211,48 @@ function ie(t) {
|
|
|
211
211
|
let i, r, s, c, f = (
|
|
212
212
|
/*message*/
|
|
213
213
|
t[49] + ""
|
|
214
|
-
), d,
|
|
214
|
+
), d, u, n, h, a = (
|
|
215
215
|
/*displayMessages*/
|
|
216
216
|
t[4].length > 1 && /*index*/
|
|
217
217
|
t[51] === 0 && ee(t)
|
|
218
218
|
);
|
|
219
|
-
function
|
|
219
|
+
function y(...p) {
|
|
220
220
|
return (
|
|
221
221
|
/*click_handler_1*/
|
|
222
222
|
t[19](
|
|
223
223
|
/*index*/
|
|
224
224
|
t[51],
|
|
225
|
-
...
|
|
225
|
+
...p
|
|
226
226
|
)
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
229
|
return {
|
|
230
230
|
c() {
|
|
231
|
-
i =
|
|
231
|
+
i = w("div"), r = w("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', s = O(), c = w("p"), d = O(), a && a.c(), u = O(), P(r, "class", "IconVerification"), P(c, "class", "text"), P(i, "class", "CashierVerificationMessage"), q(
|
|
232
232
|
i,
|
|
233
233
|
"ShowAll",
|
|
234
234
|
/*allVerificationsVisible*/
|
|
235
235
|
t[5]
|
|
236
236
|
);
|
|
237
237
|
},
|
|
238
|
-
m(
|
|
239
|
-
_(
|
|
238
|
+
m(p, b) {
|
|
239
|
+
_(p, i, b), k(i, r), k(i, s), k(i, c), c.innerHTML = f, k(i, d), a && a.m(i, null), k(i, u), n || (h = R(i, "click", y), n = !0);
|
|
240
240
|
},
|
|
241
|
-
p(
|
|
242
|
-
t =
|
|
241
|
+
p(p, b) {
|
|
242
|
+
t = p, b[0] & /*displayMessages*/
|
|
243
243
|
16 && f !== (f = /*message*/
|
|
244
244
|
t[49] + "") && (c.innerHTML = f), /*displayMessages*/
|
|
245
245
|
t[4].length > 1 && /*index*/
|
|
246
|
-
t[51] === 0 ?
|
|
247
|
-
32 &&
|
|
246
|
+
t[51] === 0 ? a ? a.p(t, b) : (a = ee(t), a.c(), a.m(i, u)) : a && (a.d(1), a = null), b[0] & /*allVerificationsVisible*/
|
|
247
|
+
32 && q(
|
|
248
248
|
i,
|
|
249
249
|
"ShowAll",
|
|
250
250
|
/*allVerificationsVisible*/
|
|
251
251
|
t[5]
|
|
252
252
|
);
|
|
253
253
|
},
|
|
254
|
-
d(
|
|
255
|
-
|
|
254
|
+
d(p) {
|
|
255
|
+
p && S(i), a && a.d(), n = !1, h();
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
@@ -260,26 +260,26 @@ function te(t) {
|
|
|
260
260
|
let i, r, s, c, f = (
|
|
261
261
|
/*$_*/
|
|
262
262
|
t[9]("verification.video.how-to") + ""
|
|
263
|
-
), d,
|
|
263
|
+
), d, u, n;
|
|
264
264
|
return {
|
|
265
265
|
c() {
|
|
266
|
-
i =
|
|
266
|
+
i = w("div"), r = w("div"), r.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>', s = O(), c = w("div"), d = Te(f), P(r, "class", "IconVideo"), P(c, "class", "CashierVerificationVideoLink"), P(i, "class", "CashierVerificationVideo");
|
|
267
267
|
},
|
|
268
|
-
m(
|
|
269
|
-
_(
|
|
268
|
+
m(h, a) {
|
|
269
|
+
_(h, i, a), k(i, r), k(i, s), k(i, c), k(c, d), u || (n = R(
|
|
270
270
|
c,
|
|
271
271
|
"click",
|
|
272
272
|
/*click_handler_2*/
|
|
273
273
|
t[20]
|
|
274
|
-
),
|
|
274
|
+
), u = !0);
|
|
275
275
|
},
|
|
276
|
-
p(
|
|
277
|
-
|
|
276
|
+
p(h, a) {
|
|
277
|
+
a[0] & /*$_*/
|
|
278
278
|
512 && f !== (f = /*$_*/
|
|
279
|
-
|
|
279
|
+
h[9]("verification.video.how-to") + "") && Le(d, f);
|
|
280
280
|
},
|
|
281
|
-
d(
|
|
282
|
-
|
|
281
|
+
d(h) {
|
|
282
|
+
h && S(i), u = !1, n();
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
}
|
|
@@ -290,7 +290,7 @@ function je(t) {
|
|
|
290
290
|
);
|
|
291
291
|
return {
|
|
292
292
|
c() {
|
|
293
|
-
i =
|
|
293
|
+
i = w("div"), r && r.c(), P(i, "class", "CashierVerifications"), q(
|
|
294
294
|
i,
|
|
295
295
|
"CashierVerificationsDesktop",
|
|
296
296
|
/*desktopView*/
|
|
@@ -303,7 +303,7 @@ function je(t) {
|
|
|
303
303
|
p(s, c) {
|
|
304
304
|
/*displayMessages*/
|
|
305
305
|
s[4] ? r ? r.p(s, c) : (r = $(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), c[0] & /*desktopView*/
|
|
306
|
-
64 &&
|
|
306
|
+
64 && q(
|
|
307
307
|
i,
|
|
308
308
|
"CashierVerificationsDesktop",
|
|
309
309
|
/*desktopView*/
|
|
@@ -313,7 +313,7 @@ function je(t) {
|
|
|
313
313
|
i: Y,
|
|
314
314
|
o: Y,
|
|
315
315
|
d(s) {
|
|
316
|
-
s &&
|
|
316
|
+
s && S(i), r && r.d(), t[21](null);
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
319
|
}
|
|
@@ -321,27 +321,27 @@ const He = "verification_explanation_video_widgets.MP4";
|
|
|
321
321
|
function Ne(t, i, r) {
|
|
322
322
|
let s;
|
|
323
323
|
Me(t, ze, (e) => r(9, s = e)), Z.extend(Ee);
|
|
324
|
-
let { endpoint: c } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, {
|
|
325
|
-
var
|
|
324
|
+
let { endpoint: c } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: u = "" } = i, { clientstylingurl: n = "" } = i, { session: h = "" } = i, { customerid: a = "" } = i, { ismobileview: y = "" } = i, p, b = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), T, L, F, I = !0, H = !0, x = !1, z = "";
|
|
325
|
+
var M;
|
|
326
326
|
(function(e) {
|
|
327
327
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
328
|
-
})(
|
|
329
|
-
var
|
|
328
|
+
})(M || (M = {}));
|
|
329
|
+
var E;
|
|
330
330
|
(function(e) {
|
|
331
331
|
e.Requested = "Requested";
|
|
332
|
-
})(
|
|
333
|
-
var
|
|
332
|
+
})(E || (E = {}));
|
|
333
|
+
var g;
|
|
334
334
|
(function(e) {
|
|
335
335
|
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";
|
|
336
|
-
})(
|
|
337
|
-
var
|
|
336
|
+
})(g || (g = {}));
|
|
337
|
+
var B;
|
|
338
338
|
(function(e) {
|
|
339
339
|
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";
|
|
340
|
-
})(
|
|
340
|
+
})(B || (B = {}));
|
|
341
341
|
const re = [
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
342
|
+
g.InProgress,
|
|
343
|
+
g.Referred,
|
|
344
|
+
g.AwaitingForResponse
|
|
345
345
|
], oe = () => {
|
|
346
346
|
let e = d;
|
|
347
347
|
if (e)
|
|
@@ -357,16 +357,16 @@ function Ne(t, i, r) {
|
|
|
357
357
|
J(e, X[e]);
|
|
358
358
|
});
|
|
359
359
|
const se = () => {
|
|
360
|
-
|
|
360
|
+
Ue(f);
|
|
361
361
|
}, ne = () => {
|
|
362
362
|
let e = document.createElement("style");
|
|
363
|
-
e.innerHTML =
|
|
363
|
+
e.innerHTML = u, p.appendChild(e);
|
|
364
364
|
}, ae = () => {
|
|
365
|
-
let e = new URL(
|
|
365
|
+
let e = new URL(n), o = document.createElement("style");
|
|
366
366
|
fetch(e.href).then((l) => l.text()).then((l) => {
|
|
367
367
|
o.innerHTML = l, setTimeout(
|
|
368
368
|
() => {
|
|
369
|
-
|
|
369
|
+
p.appendChild(o);
|
|
370
370
|
},
|
|
371
371
|
1
|
|
372
372
|
);
|
|
@@ -377,7 +377,7 @@ function Ne(t, i, r) {
|
|
|
377
377
|
return;
|
|
378
378
|
const l = new URL(`${c}/v1/player/verification/GetKYCStatus`), m = new Headers();
|
|
379
379
|
m.append("accept", "application/json"), m.append("Content-Type", "application/json"), m.append("X-Client-Request-Timestamp", Z.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
380
|
-
const
|
|
380
|
+
const V = {
|
|
381
381
|
method: "POST",
|
|
382
382
|
headers: m,
|
|
383
383
|
body: JSON.stringify({
|
|
@@ -387,18 +387,18 @@ function Ne(t, i, r) {
|
|
|
387
387
|
AllParameters: !1
|
|
388
388
|
})
|
|
389
389
|
};
|
|
390
|
-
fetch(l,
|
|
391
|
-
T = fe(
|
|
392
|
-
|
|
393
|
-
}), r(4,
|
|
390
|
+
fetch(l, V).then((A) => A.json()).then((A) => {
|
|
391
|
+
r(17, L = A.StaticCdnUrl + "/cashier/operator-assets/" + e), T = fe(A.Verifications), T.VerificationStatuses.forEach((v) => {
|
|
392
|
+
v.VerificationUrlType !== "Widget" && b.add(v.Vendor);
|
|
393
|
+
}), r(4, F = K());
|
|
394
394
|
});
|
|
395
395
|
}, ce = () => {
|
|
396
|
-
let e =
|
|
396
|
+
let e = h.split(".")[1];
|
|
397
397
|
if (e) {
|
|
398
398
|
let o = JSON.parse(atob(e));
|
|
399
399
|
return {
|
|
400
400
|
merchantId: o == null ? void 0 : o.mid,
|
|
401
|
-
customerId: `${o == null ? void 0 : o.mid}~${
|
|
401
|
+
customerId: `${o == null ? void 0 : o.mid}~${a}`
|
|
402
402
|
};
|
|
403
403
|
}
|
|
404
404
|
return { merchantId: null, customerId: null };
|
|
@@ -406,7 +406,7 @@ function Ne(t, i, r) {
|
|
|
406
406
|
var l;
|
|
407
407
|
if (!e || !e.length)
|
|
408
408
|
return {
|
|
409
|
-
VerificationSummaryStatus:
|
|
409
|
+
VerificationSummaryStatus: g.Unverified,
|
|
410
410
|
VerificationStatuses: []
|
|
411
411
|
};
|
|
412
412
|
const o = ue(e);
|
|
@@ -419,39 +419,39 @@ function Ne(t, i, r) {
|
|
|
419
419
|
};
|
|
420
420
|
} else
|
|
421
421
|
return {
|
|
422
|
-
VerificationSummaryStatus: e.some((
|
|
423
|
-
VerificationStatuses: N(e, [
|
|
422
|
+
VerificationSummaryStatus: e.some((V) => V.Status === g.Failed) ? g.Failed : g.Verified,
|
|
423
|
+
VerificationStatuses: N(e, [g.Failed])
|
|
424
424
|
};
|
|
425
425
|
}, de = (e) => e.reduce(
|
|
426
426
|
(o, l) => o ? new Date(o) < new Date(l) ? l : o : l,
|
|
427
427
|
0
|
|
428
428
|
), N = (e, o) => e.filter((l) => o.includes(l.Status)).map((l) => {
|
|
429
|
-
var m,
|
|
429
|
+
var m, V;
|
|
430
430
|
return {
|
|
431
431
|
Type: l.Type,
|
|
432
432
|
Vendor: l.VendorName,
|
|
433
433
|
VerificationDocuments: l.Documents ? [...Object.values(l.Documents)] : [],
|
|
434
434
|
VerificationUrlType: (m = l.Flags) == null ? void 0 : m.DeferredUrlTypeKey,
|
|
435
|
-
VerificationUrl: (
|
|
435
|
+
VerificationUrl: (V = l.Flags) == null ? void 0 : V.DeferredUrlKey
|
|
436
436
|
};
|
|
437
437
|
}), ue = (e) => e.filter((o) => re.includes(o.Status) ? o.Flags && o.Flags.DeferredUrlKey || he(o) || me(o) : !1), he = (e) => {
|
|
438
|
-
const o = e.Documents && e.VendorName ===
|
|
438
|
+
const o = e.Documents && e.VendorName === M.Manual, l = Object.values(e.Documents).some((m) => m.Status === E.Requested);
|
|
439
439
|
return o && l;
|
|
440
|
-
}, me = (e) => e.VendorName ===
|
|
440
|
+
}, me = (e) => e.VendorName === M.ShuftiPro && e.Status === g.Referred, K = () => {
|
|
441
441
|
switch (T.VerificationSummaryStatus) {
|
|
442
|
-
case
|
|
442
|
+
case g.InProgress:
|
|
443
443
|
const e = [];
|
|
444
|
-
return
|
|
444
|
+
return b.forEach((o) => {
|
|
445
445
|
e.push(pe(o));
|
|
446
446
|
}), e;
|
|
447
|
-
case
|
|
447
|
+
case g.Referred:
|
|
448
448
|
return [s("verification.idenfy.referred-awaiting")];
|
|
449
|
-
case
|
|
449
|
+
case g.Failed:
|
|
450
450
|
return [s("verification.message.failed")];
|
|
451
451
|
}
|
|
452
452
|
}, pe = (e) => {
|
|
453
453
|
const o = T.VerificationStatuses.filter((l) => l.Vendor === e);
|
|
454
|
-
if (e ===
|
|
454
|
+
if (e === M.ShuftiPro)
|
|
455
455
|
return ge(o);
|
|
456
456
|
{
|
|
457
457
|
const l = s("verification.idenfy.link-name"), m = {
|
|
@@ -461,72 +461,73 @@ function Ne(t, i, r) {
|
|
|
461
461
|
}
|
|
462
462
|
}, ge = (e) => {
|
|
463
463
|
const o = [], l = {}, m = [
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
464
|
+
B.Biometric,
|
|
465
|
+
B.Documents,
|
|
466
|
+
B.ProofOfAddress
|
|
467
467
|
];
|
|
468
|
-
e.forEach((
|
|
469
|
-
m.includes(
|
|
468
|
+
e.forEach((v) => {
|
|
469
|
+
m.includes(v.Type) && (o.push(v.Type), l[v.Type] = ve(v, we(v.Type)));
|
|
470
470
|
});
|
|
471
|
-
let
|
|
472
|
-
return
|
|
473
|
-
}, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => s(`verification.shuftipro.link-name.${e}`),
|
|
471
|
+
let V = o.every((v) => j.has(v)), A = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
|
|
472
|
+
return V ? s("verification.shuftipro.validations-started") : s(A, { values: l });
|
|
473
|
+
}, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => s(`verification.shuftipro.link-name.${e}`), U = (e, o) => {
|
|
474
474
|
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
475
475
|
if (e.target.closest(".verificationLink")) {
|
|
476
476
|
const l = e.target.className.split(" ")[1];
|
|
477
|
-
j.add(l), r(4,
|
|
477
|
+
j.add(l), r(4, F = K());
|
|
478
478
|
}
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
|
-
o === 0 && r(5,
|
|
481
|
+
o === 0 && r(5, I = !I);
|
|
482
482
|
}, ye = () => {
|
|
483
|
-
r(6, H =
|
|
483
|
+
r(6, H = y === "false");
|
|
484
484
|
}, ke = () => {
|
|
485
|
-
r(8,
|
|
485
|
+
r(8, z = L + "/" + f + "/" + He);
|
|
486
486
|
try {
|
|
487
|
-
fetch(
|
|
488
|
-
r(7,
|
|
487
|
+
fetch(z, { method: "HEAD" }).then((e) => {
|
|
488
|
+
r(7, x = e.ok);
|
|
489
489
|
});
|
|
490
490
|
} catch (e) {
|
|
491
|
-
r(7,
|
|
491
|
+
r(7, x = !1);
|
|
492
492
|
}
|
|
493
493
|
}, W = () => {
|
|
494
494
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
495
|
-
}, Pe = (e, o) =>
|
|
495
|
+
}, Pe = (e, o) => U(o, e), be = (e, o) => U(o, e), Ve = () => W();
|
|
496
496
|
function De(e) {
|
|
497
497
|
qe[e ? "unshift" : "push"](() => {
|
|
498
|
-
|
|
498
|
+
p = e, r(3, p);
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
return t.$$set = (e) => {
|
|
502
|
-
"endpoint" in e && r(12, c = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "
|
|
502
|
+
"endpoint" in e && r(12, c = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "clientstyling" in e && r(0, u = e.clientstyling), "clientstylingurl" in e && r(1, n = e.clientstylingurl), "session" in e && r(15, h = e.session), "customerid" in e && r(16, a = e.customerid), "ismobileview" in e && r(2, y = e.ismobileview);
|
|
503
503
|
}, t.$$.update = () => {
|
|
504
504
|
t.$$.dirty[0] & /*lang*/
|
|
505
505
|
8192 && f && se(), t.$$.dirty[0] & /*endpoint, session*/
|
|
506
|
-
|
|
506
|
+
36864 && c && h && le(), t.$$.dirty[0] & /*translationurl*/
|
|
507
507
|
16384 && d && oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
508
|
-
9 &&
|
|
509
|
-
10 &&
|
|
510
|
-
4 &&
|
|
511
|
-
|
|
512
|
-
|
|
508
|
+
9 && u && p && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
509
|
+
10 && n && p && ae(), t.$$.dirty[0] & /*ismobileview*/
|
|
510
|
+
4 && y && ye(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
511
|
+
131072 && L && ke();
|
|
512
|
+
}, [
|
|
513
513
|
u,
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
n,
|
|
515
|
+
y,
|
|
516
|
+
p,
|
|
517
517
|
F,
|
|
518
|
-
H,
|
|
519
518
|
I,
|
|
519
|
+
H,
|
|
520
520
|
x,
|
|
521
|
+
z,
|
|
521
522
|
s,
|
|
522
|
-
|
|
523
|
+
U,
|
|
523
524
|
W,
|
|
524
525
|
c,
|
|
525
526
|
f,
|
|
526
527
|
d,
|
|
527
528
|
h,
|
|
528
|
-
|
|
529
|
-
|
|
529
|
+
a,
|
|
530
|
+
L,
|
|
530
531
|
Pe,
|
|
531
532
|
be,
|
|
532
533
|
Ve,
|
|
@@ -540,19 +541,18 @@ class Ke extends Ce {
|
|
|
540
541
|
i,
|
|
541
542
|
Ne,
|
|
542
543
|
je,
|
|
543
|
-
|
|
544
|
+
Ae,
|
|
544
545
|
{
|
|
545
546
|
endpoint: 12,
|
|
546
547
|
lang: 13,
|
|
547
548
|
translationurl: 14,
|
|
548
|
-
assetsurl: 15,
|
|
549
549
|
clientstyling: 0,
|
|
550
550
|
clientstylingurl: 1,
|
|
551
|
-
session:
|
|
552
|
-
customerid:
|
|
551
|
+
session: 15,
|
|
552
|
+
customerid: 16,
|
|
553
553
|
ismobileview: 2
|
|
554
554
|
},
|
|
555
|
-
|
|
555
|
+
Re,
|
|
556
556
|
[-1, -1]
|
|
557
557
|
);
|
|
558
558
|
}
|
|
@@ -560,58 +560,52 @@ class Ke extends Ce {
|
|
|
560
560
|
return this.$$.ctx[12];
|
|
561
561
|
}
|
|
562
562
|
set endpoint(i) {
|
|
563
|
-
this.$$set({ endpoint: i }),
|
|
563
|
+
this.$$set({ endpoint: i }), D();
|
|
564
564
|
}
|
|
565
565
|
get lang() {
|
|
566
566
|
return this.$$.ctx[13];
|
|
567
567
|
}
|
|
568
568
|
set lang(i) {
|
|
569
|
-
this.$$set({ lang: i }),
|
|
569
|
+
this.$$set({ lang: i }), D();
|
|
570
570
|
}
|
|
571
571
|
get translationurl() {
|
|
572
572
|
return this.$$.ctx[14];
|
|
573
573
|
}
|
|
574
574
|
set translationurl(i) {
|
|
575
|
-
this.$$set({ translationurl: i }),
|
|
576
|
-
}
|
|
577
|
-
get assetsurl() {
|
|
578
|
-
return this.$$.ctx[15];
|
|
579
|
-
}
|
|
580
|
-
set assetsurl(i) {
|
|
581
|
-
this.$$set({ assetsurl: i }), k();
|
|
575
|
+
this.$$set({ translationurl: i }), D();
|
|
582
576
|
}
|
|
583
577
|
get clientstyling() {
|
|
584
578
|
return this.$$.ctx[0];
|
|
585
579
|
}
|
|
586
580
|
set clientstyling(i) {
|
|
587
|
-
this.$$set({ clientstyling: i }),
|
|
581
|
+
this.$$set({ clientstyling: i }), D();
|
|
588
582
|
}
|
|
589
583
|
get clientstylingurl() {
|
|
590
584
|
return this.$$.ctx[1];
|
|
591
585
|
}
|
|
592
586
|
set clientstylingurl(i) {
|
|
593
|
-
this.$$set({ clientstylingurl: i }),
|
|
587
|
+
this.$$set({ clientstylingurl: i }), D();
|
|
594
588
|
}
|
|
595
589
|
get session() {
|
|
596
|
-
return this.$$.ctx[
|
|
590
|
+
return this.$$.ctx[15];
|
|
597
591
|
}
|
|
598
592
|
set session(i) {
|
|
599
|
-
this.$$set({ session: i }),
|
|
593
|
+
this.$$set({ session: i }), D();
|
|
600
594
|
}
|
|
601
595
|
get customerid() {
|
|
602
|
-
return this.$$.ctx[
|
|
596
|
+
return this.$$.ctx[16];
|
|
603
597
|
}
|
|
604
598
|
set customerid(i) {
|
|
605
|
-
this.$$set({ customerid: i }),
|
|
599
|
+
this.$$set({ customerid: i }), D();
|
|
606
600
|
}
|
|
607
601
|
get ismobileview() {
|
|
608
602
|
return this.$$.ctx[2];
|
|
609
603
|
}
|
|
610
604
|
set ismobileview(i) {
|
|
611
|
-
this.$$set({ ismobileview: i }),
|
|
605
|
+
this.$$set({ ismobileview: i }), D();
|
|
612
606
|
}
|
|
613
607
|
}
|
|
614
|
-
|
|
608
|
+
Se(Ke, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|
|
615
609
|
export {
|
|
616
610
|
Ke as default
|
|
617
611
|
};
|
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-B4HjN4Bk.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-9uZbyjKm.js").then(({ default: t }) => {
|
|
14
14
|
!customElements.get("cashier-page") && customElements.define("cashier-page", t.element);
|
|
15
15
|
});
|
|
16
16
|
}
|