@everymatrix/cashier-page 1.53.11 → 1.54.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/CashierConfirmModal-BWwXFa2X.js +1052 -0
- package/components/CashierConfirmModal-DvPjAtJP.cjs +4 -0
- package/components/{CashierError-CNghn61_.js → CashierError-DNpUb5Mm.js} +16 -16
- package/components/CashierError-Dmdtq5Bw.cjs +5 -0
- package/components/CashierHeader-CQUqVL_i.cjs +1 -0
- package/components/{CashierHeader-Cukt_6q5.js → CashierHeader-jyno14ok.js} +2 -2
- package/components/{CashierIframeRedirect-CfOyb27d.js → CashierIframeRedirect-Cz4tv7-x.js} +6 -6
- package/components/CashierIframeRedirect-D-OfVohj.cjs +1 -0
- package/components/CashierMethodDetails-CBOh1gd0.cjs +18 -0
- package/components/{CashierMethodDetails-BIl7Is4q.js → CashierMethodDetails-DhPcp2tp.js} +1535 -1521
- package/components/CashierMethodsList-BXQ8slk2.cjs +1 -0
- package/components/{CashierMethodsList-sDyTLsi_.js → CashierMethodsList-tNPWey2d.js} +175 -164
- package/components/{CashierModal-BvsZYr3E.js → CashierModal-BZinftgA.js} +1 -1
- package/components/CashierModal-FVpPS0Cg.cjs +1 -0
- package/components/CashierNotifications-Dt9rQ2vt.cjs +1 -0
- package/components/{CashierNotifications-DLiOLPVS.js → CashierNotifications-VNlsq9BM.js} +1 -1
- package/components/{CashierPage-ChYGXNFh.js → CashierPage-Ci16qWoB.js} +16 -16
- package/components/CashierPage-_uE0Wp1v.cjs +1 -0
- package/components/{CashierReceiptPage-BnZNWRHD.js → CashierReceiptPage-BrSqthh1.js} +109 -108
- package/components/CashierReceiptPage-khlZnWa5.cjs +1 -0
- package/components/{CashierSessionExpirationModal-m8mfQG7I.js → CashierSessionExpirationModal-BaJ2BLlM.js} +64 -64
- package/components/CashierSessionExpirationModal-Ynzjj3_r.cjs +2 -0
- package/components/CashierSpinner-6i7TRj04.cjs +1 -0
- package/components/{CashierSpinner-BGK4UpXs.js → CashierSpinner-DLOGBpHm.js} +1 -1
- package/components/{CashierVerifications-ghULlvRf.js → CashierVerifications-CAlJv-1M.js} +149 -145
- package/components/CashierVerifications-KeQfHgf0.cjs +1 -0
- package/components/{CashierVideoModal-CIyp7q0i.js → CashierVideoModal-CdG4dnYx.js} +1 -1
- package/components/CashierVideoModal-Cgjg5Mzz.cjs +1 -0
- package/es2015/cashier-page.cjs +1 -0
- package/es2015/cashier-page.js +16 -0
- package/package.json +17 -12
- package/components/CashierConfirmModal-bl1anpXG.js +0 -1015
- package/esnext/cashier-page.js +0 -14
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Ce, b as _e, f as
|
|
2
|
-
import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-
|
|
3
|
-
import { d as Z, u as ze } 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 V, I as M, k as _, n as G, v as S, w as Me, K as Y, h as O, E as C, M as Te, l as k, A as H, y as Be, z as Le, C as Ie } from "./CashierConfirmModal-BWwXFa2X.js";
|
|
2
|
+
import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-DNpUb5Mm.js";
|
|
3
|
+
import { d as Z, u as ze } from "./CashierMethodDetails-DhPcp2tp.js";
|
|
4
4
|
function J(t, i) {
|
|
5
5
|
qe(t, i);
|
|
6
6
|
}
|
|
@@ -65,7 +65,7 @@ const X = {
|
|
|
65
65
|
"verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
-
if (typeof window
|
|
68
|
+
if (typeof window != "undefined") {
|
|
69
69
|
let t = function(i) {
|
|
70
70
|
return function(...r) {
|
|
71
71
|
try {
|
|
@@ -77,7 +77,7 @@ if (typeof window < "u") {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
customElements.define = t(customElements.define), import("./CashierVideoModal-
|
|
80
|
+
customElements.define = t(customElements.define), import("./CashierVideoModal-CdG4dnYx.js").then(({ default: i }) => {
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -89,7 +89,7 @@ function Q(t, i, r) {
|
|
|
89
89
|
return s[49] = i[r], s[51] = r, s;
|
|
90
90
|
}
|
|
91
91
|
function $(t) {
|
|
92
|
-
let i, r, s,
|
|
92
|
+
let i, r, s, l, f = Y(
|
|
93
93
|
/*displayMessages*/
|
|
94
94
|
t[4]
|
|
95
95
|
), d = [];
|
|
@@ -104,33 +104,33 @@ function $(t) {
|
|
|
104
104
|
i = w("div");
|
|
105
105
|
for (let a = 0; a < d.length; a += 1)
|
|
106
106
|
d[a].c();
|
|
107
|
-
r =
|
|
108
|
-
|
|
107
|
+
r = O(), h && h.c(), s = O(), l = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), C(
|
|
108
|
+
l,
|
|
109
109
|
"clientstylingurl",
|
|
110
110
|
/*clientstylingurl*/
|
|
111
111
|
t[1]
|
|
112
|
-
),
|
|
113
|
-
|
|
112
|
+
), C(
|
|
113
|
+
l,
|
|
114
114
|
"clientstyling",
|
|
115
115
|
/*clientstyling*/
|
|
116
116
|
t[0]
|
|
117
|
-
),
|
|
118
|
-
|
|
117
|
+
), C(
|
|
118
|
+
l,
|
|
119
119
|
"ismobileview",
|
|
120
120
|
/*ismobileview*/
|
|
121
121
|
t[2]
|
|
122
|
-
),
|
|
123
|
-
|
|
122
|
+
), C(
|
|
123
|
+
l,
|
|
124
124
|
"videosrc",
|
|
125
125
|
/*videoSrc*/
|
|
126
126
|
t[8]
|
|
127
127
|
);
|
|
128
128
|
},
|
|
129
129
|
m(a, u) {
|
|
130
|
-
|
|
130
|
+
_(a, i, u);
|
|
131
131
|
for (let n = 0; n < d.length; n += 1)
|
|
132
132
|
d[n] && d[n].m(i, null);
|
|
133
|
-
|
|
133
|
+
_(a, r, u), h && h.m(a, u), _(a, s, u), _(a, l, u);
|
|
134
134
|
},
|
|
135
135
|
p(a, u) {
|
|
136
136
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
@@ -150,39 +150,39 @@ function $(t) {
|
|
|
150
150
|
}
|
|
151
151
|
/*videoExists*/
|
|
152
152
|
a[7] ? h ? h.p(a, u) : (h = te(a), h.c(), h.m(s.parentNode, s)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
|
|
153
|
-
2 &&
|
|
154
|
-
|
|
153
|
+
2 && C(
|
|
154
|
+
l,
|
|
155
155
|
"clientstylingurl",
|
|
156
156
|
/*clientstylingurl*/
|
|
157
157
|
a[1]
|
|
158
158
|
), u[0] & /*clientstyling*/
|
|
159
|
-
1 &&
|
|
160
|
-
|
|
159
|
+
1 && C(
|
|
160
|
+
l,
|
|
161
161
|
"clientstyling",
|
|
162
162
|
/*clientstyling*/
|
|
163
163
|
a[0]
|
|
164
164
|
), u[0] & /*ismobileview*/
|
|
165
|
-
4 &&
|
|
166
|
-
|
|
165
|
+
4 && C(
|
|
166
|
+
l,
|
|
167
167
|
"ismobileview",
|
|
168
168
|
/*ismobileview*/
|
|
169
169
|
a[2]
|
|
170
170
|
), u[0] & /*videoSrc*/
|
|
171
|
-
256 &&
|
|
172
|
-
|
|
171
|
+
256 && C(
|
|
172
|
+
l,
|
|
173
173
|
"videosrc",
|
|
174
174
|
/*videoSrc*/
|
|
175
175
|
a[8]
|
|
176
176
|
);
|
|
177
177
|
},
|
|
178
178
|
d(a) {
|
|
179
|
-
a && (
|
|
179
|
+
a && (S(i), S(r), S(s), S(l)), Te(d, a), h && h.d(a);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
183
|
function ee(t) {
|
|
184
184
|
let i, r, s;
|
|
185
|
-
function
|
|
185
|
+
function l(...f) {
|
|
186
186
|
return (
|
|
187
187
|
/*click_handler*/
|
|
188
188
|
t[18](
|
|
@@ -197,18 +197,18 @@ function ee(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(f, d) {
|
|
200
|
-
|
|
200
|
+
_(f, i, d), r || (s = H(i, "click", l), r = !0);
|
|
201
201
|
},
|
|
202
202
|
p(f, d) {
|
|
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
|
}
|
|
210
210
|
function ie(t) {
|
|
211
|
-
let i, r, s,
|
|
211
|
+
let i, r, s, l, f = (
|
|
212
212
|
/*message*/
|
|
213
213
|
t[49] + ""
|
|
214
214
|
), d, h, a, u, n = (
|
|
@@ -216,63 +216,63 @@ function ie(t) {
|
|
|
216
216
|
t[4].length > 1 && /*index*/
|
|
217
217
|
t[51] === 0 && ee(t)
|
|
218
218
|
);
|
|
219
|
-
function y(...
|
|
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 = 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 =
|
|
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(), l = w("p"), d = O(), n && n.c(), h = O(), V(r, "class", "IconVerification"), V(l, "class", "text"), V(i, "class", "CashierVerificationMessage"), M(
|
|
232
232
|
i,
|
|
233
233
|
"ShowAll",
|
|
234
234
|
/*allVerificationsVisible*/
|
|
235
235
|
t[5]
|
|
236
236
|
);
|
|
237
237
|
},
|
|
238
|
-
m(
|
|
239
|
-
|
|
238
|
+
m(p, P) {
|
|
239
|
+
_(p, i, P), k(i, r), k(i, s), k(i, l), l.innerHTML = f, k(i, d), n && n.m(i, null), k(i, h), a || (u = H(i, "click", y), a = !0);
|
|
240
240
|
},
|
|
241
|
-
p(
|
|
242
|
-
t =
|
|
241
|
+
p(p, P) {
|
|
242
|
+
t = p, P[0] & /*displayMessages*/
|
|
243
243
|
16 && f !== (f = /*message*/
|
|
244
|
-
t[49] + "") && (
|
|
244
|
+
t[49] + "") && (l.innerHTML = f), /*displayMessages*/
|
|
245
245
|
t[4].length > 1 && /*index*/
|
|
246
246
|
t[51] === 0 ? n ? n.p(t, P) : (n = ee(t), n.c(), n.m(i, h)) : n && (n.d(1), n = null), P[0] & /*allVerificationsVisible*/
|
|
247
|
-
32 &&
|
|
247
|
+
32 && M(
|
|
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), n && n.d(), a = !1, u();
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
259
|
function te(t) {
|
|
260
|
-
let i, r, s,
|
|
260
|
+
let i, r, s, l, f = (
|
|
261
261
|
/*$_*/
|
|
262
262
|
t[9]("verification.video.how-to") + ""
|
|
263
263
|
), d, h, a;
|
|
264
264
|
return {
|
|
265
265
|
c() {
|
|
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 =
|
|
267
|
-
|
|
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(), l = w("div"), d = Be(f), V(r, "class", "IconVideo"), V(l, "class", "CashierVerificationVideoLink"), M(
|
|
267
|
+
l,
|
|
268
268
|
"CashierVerificationVideoLinkDesktop",
|
|
269
269
|
/*desktopView*/
|
|
270
270
|
t[6]
|
|
271
271
|
), V(i, "class", "CashierVerificationVideo");
|
|
272
272
|
},
|
|
273
273
|
m(u, n) {
|
|
274
|
-
|
|
275
|
-
|
|
274
|
+
_(u, i, n), k(i, r), k(i, s), k(i, l), k(l, d), h || (a = H(
|
|
275
|
+
l,
|
|
276
276
|
"click",
|
|
277
277
|
/*click_handler_2*/
|
|
278
278
|
t[20]
|
|
@@ -282,15 +282,15 @@ function te(t) {
|
|
|
282
282
|
n[0] & /*$_*/
|
|
283
283
|
512 && f !== (f = /*$_*/
|
|
284
284
|
u[9]("verification.video.how-to") + "") && Le(d, f), n[0] & /*desktopView*/
|
|
285
|
-
64 &&
|
|
286
|
-
|
|
285
|
+
64 && M(
|
|
286
|
+
l,
|
|
287
287
|
"CashierVerificationVideoLinkDesktop",
|
|
288
288
|
/*desktopView*/
|
|
289
289
|
u[6]
|
|
290
290
|
);
|
|
291
291
|
},
|
|
292
292
|
d(u) {
|
|
293
|
-
u &&
|
|
293
|
+
u && S(i), h = !1, a();
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
@@ -301,20 +301,20 @@ function He(t) {
|
|
|
301
301
|
);
|
|
302
302
|
return {
|
|
303
303
|
c() {
|
|
304
|
-
i = w("div"), r && r.c(), V(i, "class", "CashierVerifications"),
|
|
304
|
+
i = w("div"), r && r.c(), V(i, "class", "CashierVerifications"), M(
|
|
305
305
|
i,
|
|
306
306
|
"CashierVerificationsDesktop",
|
|
307
307
|
/*desktopView*/
|
|
308
308
|
t[6]
|
|
309
309
|
);
|
|
310
310
|
},
|
|
311
|
-
m(s,
|
|
312
|
-
|
|
311
|
+
m(s, l) {
|
|
312
|
+
_(s, i, l), r && r.m(i, null), t[21](i);
|
|
313
313
|
},
|
|
314
|
-
p(s,
|
|
314
|
+
p(s, l) {
|
|
315
315
|
/*displayMessages*/
|
|
316
|
-
s[4] ? r ? r.p(s,
|
|
317
|
-
64 &&
|
|
316
|
+
s[4] ? r ? r.p(s, l) : (r = $(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), l[0] & /*desktopView*/
|
|
317
|
+
64 && M(
|
|
318
318
|
i,
|
|
319
319
|
"CashierVerificationsDesktop",
|
|
320
320
|
/*desktopView*/
|
|
@@ -324,41 +324,41 @@ function He(t) {
|
|
|
324
324
|
i: G,
|
|
325
325
|
o: G,
|
|
326
326
|
d(s) {
|
|
327
|
-
s &&
|
|
327
|
+
s && S(i), r && r.d(), t[21](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
const je = "verification_explanation_video_widgets.MP4", Ne = "760px", Ke = "510px";
|
|
332
332
|
function We(t, i, r) {
|
|
333
333
|
let s;
|
|
334
|
-
|
|
335
|
-
let { endpoint:
|
|
334
|
+
Me(t, Fe, (e) => r(9, s = e)), Z.extend(ze);
|
|
335
|
+
let { endpoint: l } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: h = "" } = i, { clientstylingurl: a = "" } = i, { session: u = "" } = i, { customerid: n = "" } = i, { ismobileview: y = "" } = i, p, P = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), L, I, q, x = !0, E = !0, F = !1, z = "";
|
|
336
336
|
var T;
|
|
337
337
|
(function(e) {
|
|
338
338
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
339
339
|
})(T || (T = {}));
|
|
340
|
-
var
|
|
340
|
+
var U;
|
|
341
341
|
(function(e) {
|
|
342
342
|
e.Requested = "Requested";
|
|
343
|
-
})(
|
|
344
|
-
var
|
|
343
|
+
})(U || (U = {}));
|
|
344
|
+
var g;
|
|
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
|
-
})(
|
|
348
|
-
var
|
|
347
|
+
})(g || (g = {}));
|
|
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
|
-
})(
|
|
351
|
+
})(B || (B = {}));
|
|
352
352
|
const re = [
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
g.InProgress,
|
|
354
|
+
g.Referred,
|
|
355
|
+
g.AwaitingForResponse
|
|
356
356
|
], oe = () => {
|
|
357
357
|
let e = d;
|
|
358
358
|
if (e)
|
|
359
359
|
return fetch(e).then((o) => o.json()).then((o) => {
|
|
360
|
-
Object.keys(o).forEach((
|
|
361
|
-
J(
|
|
360
|
+
Object.keys(o).forEach((c) => {
|
|
361
|
+
J(c, o[c]);
|
|
362
362
|
});
|
|
363
363
|
}).catch((o) => {
|
|
364
364
|
console.log(o);
|
|
@@ -371,13 +371,13 @@ function We(t, i, r) {
|
|
|
371
371
|
Ue(f);
|
|
372
372
|
}, ne = () => {
|
|
373
373
|
let e = document.createElement("style");
|
|
374
|
-
e.innerHTML = h,
|
|
374
|
+
e.innerHTML = h, p.appendChild(e);
|
|
375
375
|
}, ae = () => {
|
|
376
376
|
let e = new URL(a), o = document.createElement("style");
|
|
377
|
-
fetch(e.href).then((
|
|
378
|
-
o.innerHTML =
|
|
377
|
+
fetch(e.href).then((c) => c.text()).then((c) => {
|
|
378
|
+
o.innerHTML = c, setTimeout(
|
|
379
379
|
() => {
|
|
380
|
-
|
|
380
|
+
p.appendChild(o);
|
|
381
381
|
},
|
|
382
382
|
1
|
|
383
383
|
);
|
|
@@ -386,11 +386,11 @@ function We(t, i, r) {
|
|
|
386
386
|
const { merchantId: e, customerId: o } = ce();
|
|
387
387
|
if (!e)
|
|
388
388
|
return;
|
|
389
|
-
const
|
|
390
|
-
|
|
391
|
-
const
|
|
389
|
+
const c = new URL(`${l}/v1/player/verification/GetKYCStatus`), m = new Headers();
|
|
390
|
+
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"));
|
|
391
|
+
const b = {
|
|
392
392
|
method: "POST",
|
|
393
|
-
headers:
|
|
393
|
+
headers: m,
|
|
394
394
|
body: JSON.stringify({
|
|
395
395
|
MerchantId: e,
|
|
396
396
|
CustomerId: o,
|
|
@@ -398,149 +398,153 @@ function We(t, i, r) {
|
|
|
398
398
|
AllParameters: !1
|
|
399
399
|
})
|
|
400
400
|
};
|
|
401
|
-
fetch(
|
|
402
|
-
r(17,
|
|
401
|
+
fetch(c, b).then((A) => A.json()).then((A) => {
|
|
402
|
+
r(17, I = A.StaticCdnUrl + "/cashier/operator-assets/" + e), L = fe(A.Verifications), L.VerificationStatuses.forEach((v) => {
|
|
403
403
|
v.VerificationUrlType !== "Widget" && P.add(v.Vendor);
|
|
404
|
-
}), r(4,
|
|
404
|
+
}), r(4, q = K());
|
|
405
405
|
});
|
|
406
406
|
}, ce = () => {
|
|
407
407
|
let e = u.split(".")[1];
|
|
408
408
|
if (e) {
|
|
409
409
|
let o = JSON.parse(atob(e));
|
|
410
410
|
return {
|
|
411
|
-
merchantId: o
|
|
412
|
-
customerId: `${o
|
|
411
|
+
merchantId: o == null ? void 0 : o.mid,
|
|
412
|
+
customerId: `${o == null ? void 0 : o.mid}~${n}`
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
return { merchantId: null, customerId: null };
|
|
416
416
|
}, fe = (e) => {
|
|
417
|
+
var c;
|
|
417
418
|
if (!e || !e.length)
|
|
418
419
|
return {
|
|
419
|
-
VerificationSummaryStatus:
|
|
420
|
+
VerificationSummaryStatus: g.Unverified,
|
|
420
421
|
VerificationStatuses: []
|
|
421
422
|
};
|
|
422
423
|
const o = ue(e);
|
|
423
424
|
if (o && o.length) {
|
|
424
|
-
const
|
|
425
|
+
const m = de(o);
|
|
425
426
|
return {
|
|
426
|
-
VerificationSummaryStatus:
|
|
427
|
-
VerificationUrl:
|
|
428
|
-
VerificationStatuses: N(o,
|
|
427
|
+
VerificationSummaryStatus: m.Status,
|
|
428
|
+
VerificationUrl: (c = m.Flags) == null ? void 0 : c.DeferredUrlKey,
|
|
429
|
+
VerificationStatuses: N(o, m.Status)
|
|
429
430
|
};
|
|
430
431
|
} else
|
|
431
432
|
return {
|
|
432
|
-
VerificationSummaryStatus: e.some((
|
|
433
|
-
VerificationStatuses: N(e, [
|
|
433
|
+
VerificationSummaryStatus: e.some((b) => b.Status === g.Failed) ? g.Failed : g.Verified,
|
|
434
|
+
VerificationStatuses: N(e, [g.Failed])
|
|
434
435
|
};
|
|
435
436
|
}, de = (e) => e.reduce(
|
|
436
|
-
(o,
|
|
437
|
+
(o, c) => o ? new Date(o) < new Date(c) ? c : o : c,
|
|
437
438
|
0
|
|
438
|
-
), N = (e, o) => e.filter((
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
},
|
|
448
|
-
|
|
449
|
-
|
|
439
|
+
), N = (e, o) => e.filter((c) => o.includes(c.Status)).map((c) => {
|
|
440
|
+
var m, b;
|
|
441
|
+
return {
|
|
442
|
+
Type: c.Type,
|
|
443
|
+
Vendor: c.VendorName,
|
|
444
|
+
VerificationDocuments: c.Documents ? [...Object.values(c.Documents)] : [],
|
|
445
|
+
VerificationUrlType: (m = c.Flags) == null ? void 0 : m.DeferredUrlTypeKey,
|
|
446
|
+
VerificationUrl: (b = c.Flags) == null ? void 0 : b.DeferredUrlKey
|
|
447
|
+
};
|
|
448
|
+
}), ue = (e) => e.filter((o) => re.includes(o.Status) ? o.Flags && o.Flags.DeferredUrlKey || he(o) || me(o) : !1), he = (e) => {
|
|
449
|
+
const o = e.Documents && e.VendorName === T.Manual, c = Object.values(e.Documents).some((m) => m.Status === U.Requested);
|
|
450
|
+
return o && c;
|
|
451
|
+
}, me = (e) => e.VendorName === T.ShuftiPro && e.Status === g.Referred, K = () => {
|
|
452
|
+
switch (L.VerificationSummaryStatus) {
|
|
453
|
+
case g.InProgress:
|
|
450
454
|
const e = [];
|
|
451
455
|
return P.forEach((o) => {
|
|
452
456
|
e.push(pe(o));
|
|
453
457
|
}), e;
|
|
454
|
-
case
|
|
458
|
+
case g.Referred:
|
|
455
459
|
return [s("verification.idenfy.referred-awaiting")];
|
|
456
|
-
case
|
|
460
|
+
case g.Failed:
|
|
457
461
|
return [s("verification.message.failed")];
|
|
458
462
|
}
|
|
459
463
|
}, pe = (e) => {
|
|
460
|
-
const o =
|
|
464
|
+
const o = L.VerificationStatuses.filter((c) => c.Vendor === e);
|
|
461
465
|
if (e === T.ShuftiPro)
|
|
462
466
|
return ge(o);
|
|
463
467
|
{
|
|
464
|
-
const
|
|
465
|
-
link: `<a href="${o[0].VerificationUrl}" target="_blank">${
|
|
468
|
+
const c = s("verification.idenfy.link-name"), m = {
|
|
469
|
+
link: `<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`
|
|
466
470
|
};
|
|
467
|
-
return s("verification.idenfy.in-progress", { values:
|
|
471
|
+
return s("verification.idenfy.in-progress", { values: m });
|
|
468
472
|
}
|
|
469
473
|
}, ge = (e) => {
|
|
470
|
-
const o = [],
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
+
const o = [], c = {}, m = [
|
|
475
|
+
B.Biometric,
|
|
476
|
+
B.Documents,
|
|
477
|
+
B.ProofOfAddress
|
|
474
478
|
];
|
|
475
479
|
e.forEach((v) => {
|
|
476
|
-
|
|
480
|
+
m.includes(v.Type) && (o.push(v.Type), c[v.Type] = ve(v, we(v.Type)));
|
|
477
481
|
});
|
|
478
|
-
let
|
|
479
|
-
return
|
|
480
|
-
}, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => s(`verification.shuftipro.link-name.${e}`),
|
|
482
|
+
let b = o.every((v) => j.has(v)), A = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
|
|
483
|
+
return b ? s("verification.shuftipro.validations-started") : s(A, { values: c });
|
|
484
|
+
}, ve = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, we = (e) => s(`verification.shuftipro.link-name.${e}`), R = (e, o) => {
|
|
481
485
|
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
482
486
|
if (e.target.closest(".verificationLink")) {
|
|
483
|
-
const
|
|
484
|
-
j.add(
|
|
487
|
+
const c = e.target.className.split(" ")[1];
|
|
488
|
+
j.add(c), r(4, q = K());
|
|
485
489
|
}
|
|
486
490
|
return;
|
|
487
491
|
}
|
|
488
|
-
o === 0 && r(5,
|
|
492
|
+
o === 0 && r(5, x = !x);
|
|
489
493
|
}, ye = () => {
|
|
490
|
-
r(6,
|
|
494
|
+
r(6, E = y === "false");
|
|
491
495
|
}, ke = () => {
|
|
492
|
-
r(8,
|
|
496
|
+
r(8, z = I + "/" + f + "/" + je);
|
|
493
497
|
try {
|
|
494
|
-
fetch(
|
|
495
|
-
r(7,
|
|
498
|
+
fetch(z, { method: "HEAD" }).then((e) => {
|
|
499
|
+
r(7, F = e.ok);
|
|
496
500
|
});
|
|
497
|
-
} catch {
|
|
498
|
-
r(7,
|
|
501
|
+
} catch (e) {
|
|
502
|
+
r(7, F = !1);
|
|
499
503
|
}
|
|
500
504
|
}, W = () => {
|
|
501
505
|
window.postMessage(
|
|
502
506
|
{
|
|
503
507
|
type: "ShowCashierVideoModal",
|
|
504
|
-
details:
|
|
508
|
+
details: E ? Ne : Ke
|
|
505
509
|
},
|
|
506
510
|
window.location.href
|
|
507
511
|
);
|
|
508
|
-
}, Ve = (e, o) =>
|
|
512
|
+
}, Ve = (e, o) => R(o, e), Pe = (e, o) => R(o, e), be = () => W();
|
|
509
513
|
function De(e) {
|
|
510
514
|
Ie[e ? "unshift" : "push"](() => {
|
|
511
|
-
|
|
515
|
+
p = e, r(3, p);
|
|
512
516
|
});
|
|
513
517
|
}
|
|
514
518
|
return t.$$set = (e) => {
|
|
515
|
-
"endpoint" in e && r(12,
|
|
519
|
+
"endpoint" in e && r(12, l = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, d = e.translationurl), "clientstyling" in e && r(0, h = e.clientstyling), "clientstylingurl" in e && r(1, a = e.clientstylingurl), "session" in e && r(15, u = e.session), "customerid" in e && r(16, n = e.customerid), "ismobileview" in e && r(2, y = e.ismobileview);
|
|
516
520
|
}, t.$$.update = () => {
|
|
517
521
|
t.$$.dirty[0] & /*lang*/
|
|
518
522
|
8192 && f && se(), t.$$.dirty[0] & /*endpoint, session*/
|
|
519
|
-
36864 &&
|
|
523
|
+
36864 && l && u && le(), t.$$.dirty[0] & /*translationurl*/
|
|
520
524
|
16384 && d && oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
521
|
-
9 && h &&
|
|
522
|
-
10 && a &&
|
|
525
|
+
9 && h && p && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
526
|
+
10 && a && p && ae(), t.$$.dirty[0] & /*ismobileview*/
|
|
523
527
|
4 && y && ye(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
524
|
-
131072 &&
|
|
528
|
+
131072 && I && ke();
|
|
525
529
|
}, [
|
|
526
530
|
h,
|
|
527
531
|
a,
|
|
528
532
|
y,
|
|
529
|
-
|
|
530
|
-
I,
|
|
533
|
+
p,
|
|
531
534
|
q,
|
|
532
535
|
x,
|
|
533
536
|
E,
|
|
534
537
|
F,
|
|
538
|
+
z,
|
|
535
539
|
s,
|
|
536
|
-
|
|
540
|
+
R,
|
|
537
541
|
W,
|
|
538
|
-
|
|
542
|
+
l,
|
|
539
543
|
f,
|
|
540
544
|
d,
|
|
541
545
|
u,
|
|
542
546
|
n,
|
|
543
|
-
|
|
547
|
+
I,
|
|
544
548
|
Ve,
|
|
545
549
|
Pe,
|
|
546
550
|
be,
|
|
@@ -573,49 +577,49 @@ class Ge extends Ce {
|
|
|
573
577
|
return this.$$.ctx[12];
|
|
574
578
|
}
|
|
575
579
|
set endpoint(i) {
|
|
576
|
-
this.$$set({ endpoint: i }),
|
|
580
|
+
this.$$set({ endpoint: i }), D();
|
|
577
581
|
}
|
|
578
582
|
get lang() {
|
|
579
583
|
return this.$$.ctx[13];
|
|
580
584
|
}
|
|
581
585
|
set lang(i) {
|
|
582
|
-
this.$$set({ lang: i }),
|
|
586
|
+
this.$$set({ lang: i }), D();
|
|
583
587
|
}
|
|
584
588
|
get translationurl() {
|
|
585
589
|
return this.$$.ctx[14];
|
|
586
590
|
}
|
|
587
591
|
set translationurl(i) {
|
|
588
|
-
this.$$set({ translationurl: i }),
|
|
592
|
+
this.$$set({ translationurl: i }), D();
|
|
589
593
|
}
|
|
590
594
|
get clientstyling() {
|
|
591
595
|
return this.$$.ctx[0];
|
|
592
596
|
}
|
|
593
597
|
set clientstyling(i) {
|
|
594
|
-
this.$$set({ clientstyling: i }),
|
|
598
|
+
this.$$set({ clientstyling: i }), D();
|
|
595
599
|
}
|
|
596
600
|
get clientstylingurl() {
|
|
597
601
|
return this.$$.ctx[1];
|
|
598
602
|
}
|
|
599
603
|
set clientstylingurl(i) {
|
|
600
|
-
this.$$set({ clientstylingurl: i }),
|
|
604
|
+
this.$$set({ clientstylingurl: i }), D();
|
|
601
605
|
}
|
|
602
606
|
get session() {
|
|
603
607
|
return this.$$.ctx[15];
|
|
604
608
|
}
|
|
605
609
|
set session(i) {
|
|
606
|
-
this.$$set({ session: i }),
|
|
610
|
+
this.$$set({ session: i }), D();
|
|
607
611
|
}
|
|
608
612
|
get customerid() {
|
|
609
613
|
return this.$$.ctx[16];
|
|
610
614
|
}
|
|
611
615
|
set customerid(i) {
|
|
612
|
-
this.$$set({ customerid: i }),
|
|
616
|
+
this.$$set({ customerid: i }), D();
|
|
613
617
|
}
|
|
614
618
|
get ismobileview() {
|
|
615
619
|
return this.$$.ctx[2];
|
|
616
620
|
}
|
|
617
621
|
set ismobileview(i) {
|
|
618
|
-
this.$$set({ ismobileview: i }),
|
|
622
|
+
this.$$set({ ismobileview: i }), D();
|
|
619
623
|
}
|
|
620
624
|
}
|
|
621
625
|
Se(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|