@everymatrix/cashier-page 1.52.6 → 1.53.10
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-bl1anpXG.js +1015 -0
- package/components/{CashierError-B6UnQRtt.js → CashierError-CNghn61_.js} +413 -411
- package/components/{CashierHeader-CGdNSxx6.js → CashierHeader-Cukt_6q5.js} +48 -48
- package/components/{CashierIframeRedirect-BJdtHTt_.js → CashierIframeRedirect-CfOyb27d.js} +6 -6
- package/components/{CashierMethodDetails-KqmAeZHJ.js → CashierMethodDetails-BIl7Is4q.js} +1918 -1932
- package/components/{CashierMethodsList-CEDH8SeP.js → CashierMethodsList-sDyTLsi_.js} +164 -175
- package/components/{CashierModal-XEf2DPsH.js → CashierModal-BvsZYr3E.js} +1 -1
- package/components/{CashierNotifications-Dx7SHS2Y.js → CashierNotifications-DLiOLPVS.js} +1 -1
- package/components/{CashierPage-FLvUxTm9.js → CashierPage-ChYGXNFh.js} +497 -482
- package/components/{CashierReceiptPage-CMTFBpiK.js → CashierReceiptPage-BnZNWRHD.js} +108 -109
- package/components/{CashierSessionExpirationModal-fzGTA_um.js → CashierSessionExpirationModal-m8mfQG7I.js} +198 -198
- package/components/{CashierSpinner-CQi2Ol7j.js → CashierSpinner-BGK4UpXs.js} +1 -1
- package/components/{CashierVerifications-Dvzhkjeh.js → CashierVerifications-ghULlvRf.js} +169 -167
- package/components/{CashierVideoModal-CtEksV6T.js → CashierVideoModal-CIyp7q0i.js} +5 -5
- package/esnext/cashier-page.js +14 -0
- package/package.json +8 -18
- package/components/CashierConfirmModal-Bho8FqJK.js +0 -1052
- package/components/CashierConfirmModal-KmRU3Mgr.cjs +0 -4
- package/components/CashierError-Dj9dAyT_.cjs +0 -5
- package/components/CashierHeader-Ckcwhr6m.cjs +0 -1
- package/components/CashierIframeRedirect-C7zvMq6i.cjs +0 -1
- package/components/CashierMethodDetails-DNWCJ6N7.cjs +0 -18
- package/components/CashierMethodsList-CdcR5ZLX.cjs +0 -1
- package/components/CashierModal-FkJdngyj.cjs +0 -1
- package/components/CashierNotifications-BJzRxOV_.cjs +0 -1
- package/components/CashierPage-gEV6iO9s.cjs +0 -1
- package/components/CashierReceiptPage-B2HQWlzO.cjs +0 -1
- package/components/CashierSessionExpirationModal-rOPH8NgG.cjs +0 -2
- package/components/CashierSpinner-CySOWnIQ.cjs +0 -1
- package/components/CashierVerifications-DmNDgzvD.cjs +0 -1
- package/components/CashierVideoModal-CrU0Y0Mw.cjs +0 -1
- package/es2015/cashier-page.cjs +0 -1
- package/es2015/cashier-page.js +0 -16
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as Ce, b as _e, f as
|
|
2
|
-
import { a as
|
|
3
|
-
import { d as Z, u as
|
|
1
|
+
import { S as Ce, b as _e, f as b, c as Se, a as Ae, d as Oe, g as w, j as V, I as O, k as C, n as G, v as _, w as Te, K as Y, h as A, E as D, M as Me, l as k, A as H, y as Be, z as Le, C as Ie } from "./CashierConfirmModal-bl1anpXG.js";
|
|
2
|
+
import { a as qe, i as xe, $ as Ee, b as Fe } from "./CashierError-CNghn61_.js";
|
|
3
|
+
import { d as Z, u as ze } from "./CashierMethodDetails-BIl7Is4q.js";
|
|
4
4
|
function J(t, i) {
|
|
5
|
-
|
|
5
|
+
qe(t, i);
|
|
6
6
|
}
|
|
7
7
|
function Ue(t) {
|
|
8
|
-
|
|
8
|
+
xe({
|
|
9
9
|
fallbackLocale: "en"
|
|
10
|
-
}),
|
|
10
|
+
}), Ee.set(t);
|
|
11
11
|
}
|
|
12
12
|
const X = {
|
|
13
13
|
en: {
|
|
@@ -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 < "u") {
|
|
69
69
|
let t = function(i) {
|
|
70
70
|
return function(...r) {
|
|
71
71
|
try {
|
|
@@ -77,19 +77,19 @@ if (typeof window != "undefined") {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
customElements.define = t(customElements.define), import("./CashierVideoModal-
|
|
80
|
+
customElements.define = t(customElements.define), import("./CashierVideoModal-CIyp7q0i.js").then(({ default: i }) => {
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
function Re(t) {
|
|
85
|
-
Oe(t, "svelte-
|
|
85
|
+
Oe(t, "svelte-ektv0y", "*,*::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;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
86
86
|
}
|
|
87
87
|
function Q(t, i, r) {
|
|
88
88
|
const s = t.slice();
|
|
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, c, f = Y(
|
|
93
93
|
/*displayMessages*/
|
|
94
94
|
t[4]
|
|
95
95
|
), d = [];
|
|
@@ -104,38 +104,38 @@ 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 = A(), h && h.c(), s = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), D(
|
|
108
|
+
c,
|
|
109
109
|
"clientstylingurl",
|
|
110
110
|
/*clientstylingurl*/
|
|
111
111
|
t[1]
|
|
112
|
-
),
|
|
113
|
-
|
|
112
|
+
), D(
|
|
113
|
+
c,
|
|
114
114
|
"clientstyling",
|
|
115
115
|
/*clientstyling*/
|
|
116
116
|
t[0]
|
|
117
|
-
),
|
|
118
|
-
|
|
117
|
+
), D(
|
|
118
|
+
c,
|
|
119
119
|
"ismobileview",
|
|
120
120
|
/*ismobileview*/
|
|
121
121
|
t[2]
|
|
122
|
-
),
|
|
123
|
-
|
|
122
|
+
), D(
|
|
123
|
+
c,
|
|
124
124
|
"videosrc",
|
|
125
125
|
/*videoSrc*/
|
|
126
126
|
t[8]
|
|
127
127
|
);
|
|
128
128
|
},
|
|
129
129
|
m(a, u) {
|
|
130
|
-
|
|
130
|
+
C(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
|
+
C(a, r, u), h && h.m(a, u), C(a, s, u), C(a, c, u);
|
|
134
134
|
},
|
|
135
135
|
p(a, u) {
|
|
136
136
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
137
137
|
1072) {
|
|
138
|
-
f =
|
|
138
|
+
f = Y(
|
|
139
139
|
/*displayMessages*/
|
|
140
140
|
a[4]
|
|
141
141
|
);
|
|
@@ -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 && D(
|
|
154
|
+
c,
|
|
155
155
|
"clientstylingurl",
|
|
156
156
|
/*clientstylingurl*/
|
|
157
157
|
a[1]
|
|
158
158
|
), u[0] & /*clientstyling*/
|
|
159
|
-
1 &&
|
|
160
|
-
|
|
159
|
+
1 && D(
|
|
160
|
+
c,
|
|
161
161
|
"clientstyling",
|
|
162
162
|
/*clientstyling*/
|
|
163
163
|
a[0]
|
|
164
164
|
), u[0] & /*ismobileview*/
|
|
165
|
-
4 &&
|
|
166
|
-
|
|
165
|
+
4 && D(
|
|
166
|
+
c,
|
|
167
167
|
"ismobileview",
|
|
168
168
|
/*ismobileview*/
|
|
169
169
|
a[2]
|
|
170
170
|
), u[0] & /*videoSrc*/
|
|
171
|
-
256 &&
|
|
172
|
-
|
|
171
|
+
256 && D(
|
|
172
|
+
c,
|
|
173
173
|
"videosrc",
|
|
174
174
|
/*videoSrc*/
|
|
175
175
|
a[8]
|
|
176
176
|
);
|
|
177
177
|
},
|
|
178
178
|
d(a) {
|
|
179
|
-
a && (
|
|
179
|
+
a && (_(i), _(r), _(s), _(c)), Me(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 c(...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
|
+
C(f, i, d), r || (s = H(i, "click", c), r = !0);
|
|
201
201
|
},
|
|
202
202
|
p(f, d) {
|
|
203
203
|
t = f;
|
|
204
204
|
},
|
|
205
205
|
d(f) {
|
|
206
|
-
f &&
|
|
206
|
+
f && _(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, c, 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(...m) {
|
|
220
220
|
return (
|
|
221
221
|
/*click_handler_1*/
|
|
222
222
|
t[19](
|
|
223
223
|
/*index*/
|
|
224
224
|
t[51],
|
|
225
|
-
...
|
|
225
|
+
...m
|
|
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 = A(), c = w("p"), d = A(), n && n.c(), h = A(), V(r, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), O(
|
|
232
232
|
i,
|
|
233
233
|
"ShowAll",
|
|
234
234
|
/*allVerificationsVisible*/
|
|
235
235
|
t[5]
|
|
236
236
|
);
|
|
237
237
|
},
|
|
238
|
-
m(
|
|
239
|
-
|
|
238
|
+
m(m, P) {
|
|
239
|
+
C(m, i, P), k(i, r), k(i, s), k(i, c), c.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(m, P) {
|
|
242
|
+
t = m, P[0] & /*displayMessages*/
|
|
243
243
|
16 && f !== (f = /*message*/
|
|
244
|
-
t[49] + "") && (
|
|
244
|
+
t[49] + "") && (c.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 && O(
|
|
248
248
|
i,
|
|
249
249
|
"ShowAll",
|
|
250
250
|
/*allVerificationsVisible*/
|
|
251
251
|
t[5]
|
|
252
252
|
);
|
|
253
253
|
},
|
|
254
|
-
d(
|
|
255
|
-
|
|
254
|
+
d(m) {
|
|
255
|
+
m && _(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, c, 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 = A(), c = w("div"), d = Be(f), V(r, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), O(
|
|
267
|
+
c,
|
|
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
|
+
C(u, i, n), k(i, r), k(i, s), k(i, c), k(c, d), h || (a = H(
|
|
275
|
+
c,
|
|
276
276
|
"click",
|
|
277
277
|
/*click_handler_2*/
|
|
278
278
|
t[20]
|
|
@@ -282,83 +282,83 @@ 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 && O(
|
|
286
|
+
c,
|
|
287
287
|
"CashierVerificationVideoLinkDesktop",
|
|
288
288
|
/*desktopView*/
|
|
289
289
|
u[6]
|
|
290
290
|
);
|
|
291
291
|
},
|
|
292
292
|
d(u) {
|
|
293
|
-
u &&
|
|
293
|
+
u && _(i), h = !1, a();
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function He(t) {
|
|
298
298
|
let i, r = (
|
|
299
299
|
/*displayMessages*/
|
|
300
300
|
t[4] && $(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"), O(
|
|
305
305
|
i,
|
|
306
306
|
"CashierVerificationsDesktop",
|
|
307
307
|
/*desktopView*/
|
|
308
308
|
t[6]
|
|
309
309
|
);
|
|
310
310
|
},
|
|
311
|
-
m(s,
|
|
312
|
-
|
|
311
|
+
m(s, c) {
|
|
312
|
+
C(s, i, c), r && r.m(i, null), t[21](i);
|
|
313
313
|
},
|
|
314
|
-
p(s,
|
|
314
|
+
p(s, c) {
|
|
315
315
|
/*displayMessages*/
|
|
316
|
-
s[4] ? r ? r.p(s,
|
|
317
|
-
64 &&
|
|
316
|
+
s[4] ? r ? r.p(s, c) : (r = $(s), r.c(), r.m(i, null)) : r && (r.d(1), r = null), c[0] & /*desktopView*/
|
|
317
|
+
64 && O(
|
|
318
318
|
i,
|
|
319
319
|
"CashierVerificationsDesktop",
|
|
320
320
|
/*desktopView*/
|
|
321
321
|
s[6]
|
|
322
322
|
);
|
|
323
323
|
},
|
|
324
|
-
i:
|
|
325
|
-
o:
|
|
324
|
+
i: G,
|
|
325
|
+
o: G,
|
|
326
326
|
d(s) {
|
|
327
|
-
s &&
|
|
327
|
+
s && _(i), r && r.d(), t[21](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
const
|
|
332
|
-
function
|
|
331
|
+
const je = "verification_explanation_video_widgets.MP4", Ne = "760px", Ke = "510px";
|
|
332
|
+
function We(t, i, r) {
|
|
333
333
|
let s;
|
|
334
|
-
|
|
335
|
-
let { endpoint:
|
|
336
|
-
var
|
|
334
|
+
Te(t, Fe, (e) => r(9, s = e)), Z.extend(ze);
|
|
335
|
+
let { endpoint: c } = i, { lang: f = "en" } = i, { translationurl: d = "" } = i, { clientstyling: h = "" } = i, { clientstylingurl: a = "" } = i, { session: u = "" } = i, { customerid: n = "" } = i, { ismobileview: y = "" } = i, m, P = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), B, L, I, q = !0, x = !0, E = !1, F = "";
|
|
336
|
+
var T;
|
|
337
337
|
(function(e) {
|
|
338
338
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
339
|
-
})(
|
|
340
|
-
var
|
|
339
|
+
})(T || (T = {}));
|
|
340
|
+
var z;
|
|
341
341
|
(function(e) {
|
|
342
342
|
e.Requested = "Requested";
|
|
343
|
-
})(
|
|
344
|
-
var
|
|
343
|
+
})(z || (z = {}));
|
|
344
|
+
var p;
|
|
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
|
+
})(p || (p = {}));
|
|
348
|
+
var M;
|
|
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
|
+
})(M || (M = {}));
|
|
352
352
|
const re = [
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
353
|
+
p.InProgress,
|
|
354
|
+
p.Referred,
|
|
355
|
+
p.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((l) => {
|
|
361
|
+
J(l, o[l]);
|
|
362
362
|
});
|
|
363
363
|
}).catch((o) => {
|
|
364
364
|
console.log(o);
|
|
@@ -371,13 +371,13 @@ function Ne(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, m.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((l) => l.text()).then((l) => {
|
|
378
|
+
o.innerHTML = l, setTimeout(
|
|
379
379
|
() => {
|
|
380
|
-
|
|
380
|
+
m.appendChild(o);
|
|
381
381
|
},
|
|
382
382
|
1
|
|
383
383
|
);
|
|
@@ -386,11 +386,11 @@ function Ne(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 l = new URL(`${c}/v1/player/verification/GetKYCStatus`), g = new Headers();
|
|
390
|
+
g.append("accept", "application/json"), g.append("Content-Type", "application/json"), g.append("X-Client-Request-Timestamp", Z.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
391
|
+
const R = {
|
|
392
392
|
method: "POST",
|
|
393
|
-
headers:
|
|
393
|
+
headers: g,
|
|
394
394
|
body: JSON.stringify({
|
|
395
395
|
MerchantId: e,
|
|
396
396
|
CustomerId: o,
|
|
@@ -398,160 +398,162 @@ function Ne(t, i, r) {
|
|
|
398
398
|
AllParameters: !1
|
|
399
399
|
})
|
|
400
400
|
};
|
|
401
|
-
fetch(
|
|
402
|
-
r(17,
|
|
401
|
+
fetch(l, R).then((S) => S.json()).then((S) => {
|
|
402
|
+
r(17, L = S.StaticCdnUrl + "/cashier/operator-assets/" + e), B = fe(S.Verifications), B.VerificationStatuses.forEach((v) => {
|
|
403
403
|
v.VerificationUrlType !== "Widget" && P.add(v.Vendor);
|
|
404
|
-
}), r(4,
|
|
404
|
+
}), r(4, I = 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?.mid,
|
|
412
|
+
customerId: `${o?.mid}~${n}`
|
|
413
413
|
};
|
|
414
414
|
}
|
|
415
415
|
return { merchantId: null, customerId: null };
|
|
416
416
|
}, fe = (e) => {
|
|
417
|
-
var c;
|
|
418
417
|
if (!e || !e.length)
|
|
419
418
|
return {
|
|
420
|
-
VerificationSummaryStatus:
|
|
419
|
+
VerificationSummaryStatus: p.Unverified,
|
|
421
420
|
VerificationStatuses: []
|
|
422
421
|
};
|
|
423
422
|
const o = ue(e);
|
|
424
423
|
if (o && o.length) {
|
|
425
|
-
const
|
|
424
|
+
const l = de(o);
|
|
426
425
|
return {
|
|
427
|
-
VerificationSummaryStatus:
|
|
428
|
-
VerificationUrl:
|
|
429
|
-
VerificationStatuses: N(o,
|
|
426
|
+
VerificationSummaryStatus: l.Status,
|
|
427
|
+
VerificationUrl: l.Flags?.DeferredUrlKey,
|
|
428
|
+
VerificationStatuses: N(o, l.Status)
|
|
430
429
|
};
|
|
431
430
|
} else
|
|
432
431
|
return {
|
|
433
|
-
VerificationSummaryStatus: e.some((
|
|
434
|
-
VerificationStatuses: N(e, [
|
|
432
|
+
VerificationSummaryStatus: e.some((g) => g.Status === p.Failed) ? p.Failed : p.Verified,
|
|
433
|
+
VerificationStatuses: N(e, [p.Failed])
|
|
435
434
|
};
|
|
436
435
|
}, de = (e) => e.reduce(
|
|
437
|
-
(o,
|
|
436
|
+
(o, l) => o ? new Date(o) < new Date(l) ? l : o : l,
|
|
438
437
|
0
|
|
439
|
-
), N = (e, o) => e.filter((
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
}, me = (e) => e.VendorName === B.ShuftiPro && e.Status === g.Referred, K = () => {
|
|
452
|
-
switch (L.VerificationSummaryStatus) {
|
|
453
|
-
case g.InProgress:
|
|
438
|
+
), N = (e, o) => e.filter((l) => o.includes(l.Status)).map((l) => ({
|
|
439
|
+
Type: l.Type,
|
|
440
|
+
Vendor: l.VendorName,
|
|
441
|
+
VerificationDocuments: l.Documents ? [...Object.values(l.Documents)] : [],
|
|
442
|
+
VerificationUrlType: l.Flags?.DeferredUrlTypeKey,
|
|
443
|
+
VerificationUrl: l.Flags?.DeferredUrlKey
|
|
444
|
+
})), ue = (e) => e.filter((o) => re.includes(o.Status) ? o.Flags && o.Flags.DeferredUrlKey || he(o) || me(o) : !1), he = (e) => {
|
|
445
|
+
const o = e.Documents && e.VendorName === T.Manual, l = Object.values(e.Documents).some((g) => g.Status === z.Requested);
|
|
446
|
+
return o && l;
|
|
447
|
+
}, me = (e) => e.VendorName === T.ShuftiPro && e.Status === p.Referred, K = () => {
|
|
448
|
+
switch (B.VerificationSummaryStatus) {
|
|
449
|
+
case p.InProgress:
|
|
454
450
|
const e = [];
|
|
455
451
|
return P.forEach((o) => {
|
|
456
452
|
e.push(pe(o));
|
|
457
453
|
}), e;
|
|
458
|
-
case
|
|
454
|
+
case p.Referred:
|
|
459
455
|
return [s("verification.idenfy.referred-awaiting")];
|
|
460
|
-
case
|
|
456
|
+
case p.Failed:
|
|
461
457
|
return [s("verification.message.failed")];
|
|
462
458
|
}
|
|
463
459
|
}, pe = (e) => {
|
|
464
|
-
const o =
|
|
465
|
-
if (e ===
|
|
460
|
+
const o = B.VerificationStatuses.filter((l) => l.Vendor === e);
|
|
461
|
+
if (e === T.ShuftiPro)
|
|
466
462
|
return ge(o);
|
|
467
463
|
{
|
|
468
|
-
const
|
|
469
|
-
link: `<a href="${o[0].VerificationUrl}" target="_blank">${
|
|
464
|
+
const l = s("verification.idenfy.link-name"), g = {
|
|
465
|
+
link: `<a href="${o[0].VerificationUrl}" target="_blank">${l}</a>`
|
|
470
466
|
};
|
|
471
|
-
return s("verification.idenfy.in-progress", { values:
|
|
467
|
+
return s("verification.idenfy.in-progress", { values: g });
|
|
472
468
|
}
|
|
473
469
|
}, ge = (e) => {
|
|
474
|
-
const o = [],
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
470
|
+
const o = [], l = {}, g = [
|
|
471
|
+
M.Biometric,
|
|
472
|
+
M.Documents,
|
|
473
|
+
M.ProofOfAddress
|
|
478
474
|
];
|
|
479
475
|
e.forEach((v) => {
|
|
480
|
-
|
|
476
|
+
g.includes(v.Type) && (o.push(v.Type), l[v.Type] = ve(v, we(v.Type)));
|
|
481
477
|
});
|
|
482
|
-
let
|
|
483
|
-
return
|
|
478
|
+
let R = o.every((v) => j.has(v)), S = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
|
|
479
|
+
return R ? s("verification.shuftipro.validations-started") : s(S, { values: l });
|
|
484
480
|
}, 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) => {
|
|
485
481
|
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
486
482
|
if (e.target.closest(".verificationLink")) {
|
|
487
|
-
const
|
|
488
|
-
j.add(
|
|
483
|
+
const l = e.target.className.split(" ")[1];
|
|
484
|
+
j.add(l), r(4, I = K());
|
|
489
485
|
}
|
|
490
486
|
return;
|
|
491
487
|
}
|
|
492
|
-
o === 0 && r(5,
|
|
488
|
+
o === 0 && r(5, q = !q);
|
|
493
489
|
}, ye = () => {
|
|
494
|
-
r(6,
|
|
490
|
+
r(6, x = y === "false");
|
|
495
491
|
}, ke = () => {
|
|
496
|
-
r(8,
|
|
492
|
+
r(8, F = L + "/" + f + "/" + je);
|
|
497
493
|
try {
|
|
498
|
-
fetch(
|
|
499
|
-
r(7,
|
|
494
|
+
fetch(F, { method: "HEAD" }).then((e) => {
|
|
495
|
+
r(7, E = e.ok);
|
|
500
496
|
});
|
|
501
|
-
} catch
|
|
502
|
-
r(7,
|
|
497
|
+
} catch {
|
|
498
|
+
r(7, E = !1);
|
|
503
499
|
}
|
|
504
500
|
}, W = () => {
|
|
505
|
-
window.postMessage(
|
|
501
|
+
window.postMessage(
|
|
502
|
+
{
|
|
503
|
+
type: "ShowCashierVideoModal",
|
|
504
|
+
details: x ? Ne : Ke
|
|
505
|
+
},
|
|
506
|
+
window.location.href
|
|
507
|
+
);
|
|
506
508
|
}, Ve = (e, o) => U(o, e), Pe = (e, o) => U(o, e), be = () => W();
|
|
507
509
|
function De(e) {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
+
Ie[e ? "unshift" : "push"](() => {
|
|
511
|
+
m = e, r(3, m);
|
|
510
512
|
});
|
|
511
513
|
}
|
|
512
514
|
return t.$$set = (e) => {
|
|
513
|
-
"endpoint" in e && r(12,
|
|
515
|
+
"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, 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);
|
|
514
516
|
}, t.$$.update = () => {
|
|
515
517
|
t.$$.dirty[0] & /*lang*/
|
|
516
518
|
8192 && f && se(), t.$$.dirty[0] & /*endpoint, session*/
|
|
517
|
-
36864 &&
|
|
519
|
+
36864 && c && u && le(), t.$$.dirty[0] & /*translationurl*/
|
|
518
520
|
16384 && d && oe(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
519
|
-
9 && h &&
|
|
520
|
-
10 && a &&
|
|
521
|
+
9 && h && m && ne(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
522
|
+
10 && a && m && ae(), t.$$.dirty[0] & /*ismobileview*/
|
|
521
523
|
4 && y && ye(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
522
|
-
131072 &&
|
|
524
|
+
131072 && L && ke();
|
|
523
525
|
}, [
|
|
524
526
|
h,
|
|
525
527
|
a,
|
|
526
528
|
y,
|
|
527
|
-
|
|
528
|
-
F,
|
|
529
|
+
m,
|
|
529
530
|
I,
|
|
530
|
-
|
|
531
|
-
z,
|
|
531
|
+
q,
|
|
532
532
|
x,
|
|
533
|
+
E,
|
|
534
|
+
F,
|
|
533
535
|
s,
|
|
534
536
|
U,
|
|
535
537
|
W,
|
|
536
|
-
|
|
538
|
+
c,
|
|
537
539
|
f,
|
|
538
540
|
d,
|
|
539
541
|
u,
|
|
540
542
|
n,
|
|
541
|
-
|
|
543
|
+
L,
|
|
542
544
|
Ve,
|
|
543
545
|
Pe,
|
|
544
546
|
be,
|
|
545
547
|
De
|
|
546
548
|
];
|
|
547
549
|
}
|
|
548
|
-
class
|
|
550
|
+
class Ge extends Ce {
|
|
549
551
|
constructor(i) {
|
|
550
552
|
super(), _e(
|
|
551
553
|
this,
|
|
552
554
|
i,
|
|
553
|
-
|
|
554
|
-
|
|
555
|
+
We,
|
|
556
|
+
He,
|
|
555
557
|
Ae,
|
|
556
558
|
{
|
|
557
559
|
endpoint: 12,
|
|
@@ -571,52 +573,52 @@ class Ke extends Ce {
|
|
|
571
573
|
return this.$$.ctx[12];
|
|
572
574
|
}
|
|
573
575
|
set endpoint(i) {
|
|
574
|
-
this.$$set({ endpoint: i }),
|
|
576
|
+
this.$$set({ endpoint: i }), b();
|
|
575
577
|
}
|
|
576
578
|
get lang() {
|
|
577
579
|
return this.$$.ctx[13];
|
|
578
580
|
}
|
|
579
581
|
set lang(i) {
|
|
580
|
-
this.$$set({ lang: i }),
|
|
582
|
+
this.$$set({ lang: i }), b();
|
|
581
583
|
}
|
|
582
584
|
get translationurl() {
|
|
583
585
|
return this.$$.ctx[14];
|
|
584
586
|
}
|
|
585
587
|
set translationurl(i) {
|
|
586
|
-
this.$$set({ translationurl: i }),
|
|
588
|
+
this.$$set({ translationurl: i }), b();
|
|
587
589
|
}
|
|
588
590
|
get clientstyling() {
|
|
589
591
|
return this.$$.ctx[0];
|
|
590
592
|
}
|
|
591
593
|
set clientstyling(i) {
|
|
592
|
-
this.$$set({ clientstyling: i }),
|
|
594
|
+
this.$$set({ clientstyling: i }), b();
|
|
593
595
|
}
|
|
594
596
|
get clientstylingurl() {
|
|
595
597
|
return this.$$.ctx[1];
|
|
596
598
|
}
|
|
597
599
|
set clientstylingurl(i) {
|
|
598
|
-
this.$$set({ clientstylingurl: i }),
|
|
600
|
+
this.$$set({ clientstylingurl: i }), b();
|
|
599
601
|
}
|
|
600
602
|
get session() {
|
|
601
603
|
return this.$$.ctx[15];
|
|
602
604
|
}
|
|
603
605
|
set session(i) {
|
|
604
|
-
this.$$set({ session: i }),
|
|
606
|
+
this.$$set({ session: i }), b();
|
|
605
607
|
}
|
|
606
608
|
get customerid() {
|
|
607
609
|
return this.$$.ctx[16];
|
|
608
610
|
}
|
|
609
611
|
set customerid(i) {
|
|
610
|
-
this.$$set({ customerid: i }),
|
|
612
|
+
this.$$set({ customerid: i }), b();
|
|
611
613
|
}
|
|
612
614
|
get ismobileview() {
|
|
613
615
|
return this.$$.ctx[2];
|
|
614
616
|
}
|
|
615
617
|
set ismobileview(i) {
|
|
616
|
-
this.$$set({ ismobileview: i }),
|
|
618
|
+
this.$$set({ ismobileview: i }), b();
|
|
617
619
|
}
|
|
618
620
|
}
|
|
619
|
-
Se(
|
|
621
|
+
Se(Ge, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|
|
620
622
|
export {
|
|
621
|
-
|
|
623
|
+
Ge as default
|
|
622
624
|
};
|