@everymatrix/cashier-page 1.66.0 → 1.66.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierMethodDetails-7JZYjPuV.js → CashierMethodDetails-B6Mr4aP0.js} +2315 -2230
- package/components/{CashierMethodDetails-B0t8S9n5.js → CashierMethodDetails-CCXOr2gb.js} +2392 -2307
- package/components/CashierMethodDetails-D0Y5nPiN.cjs +82 -0
- package/components/{CashierMethodsList-fv4m4Zj7.js → CashierMethodsList-DVjbbHO_.js} +1 -1
- package/components/{CashierMethodsList-DAAzv0XC.cjs → CashierMethodsList-DaNccxCT.cjs} +1 -1
- package/components/{CashierMethodsList-BhVZ3-JZ.js → CashierMethodsList-lyl4lzH4.js} +1 -1
- package/components/{CashierPage-DyaIpXI9.cjs → CashierPage-B6U1sEpL.cjs} +1 -1
- package/components/{CashierPage-BG6JQQQF.js → CashierPage-DwwVZWaQ.js} +477 -451
- package/components/{CashierPage-fDBIKKH9.js → CashierPage-Oq46yP5A.js} +477 -451
- package/components/{CashierReceiptPage-DIxNwL7f.js → CashierReceiptPage-B7SvdgM-.js} +1 -1
- package/components/{CashierReceiptPage-Dy6eRK2A.cjs → CashierReceiptPage-D_fuJVBK.cjs} +1 -1
- package/components/{CashierReceiptPage-B0EbEqRh.js → CashierReceiptPage-YAGlqjjm.js} +1 -1
- package/components/{CashierSessionExpirationModal-IDvKd3j7.js → CashierSessionExpirationModal-B4sZWPat.js} +1 -1
- package/components/{CashierSessionExpirationModal-BX7rgsaG.js → CashierSessionExpirationModal-CZreGxnI.js} +1 -1
- package/components/{CashierSessionExpirationModal-BpmSU_Jq.cjs → CashierSessionExpirationModal-D3E8pXO5.cjs} +1 -1
- package/components/{CashierTransactionHistory-CCrqY3fU.js → CashierTransactionHistory-CGPCwBBR.js} +1 -1
- package/components/{CashierTransactionHistory--JBFAum5.js → CashierTransactionHistory-CNFeJ6tL.js} +1 -1
- package/components/{CashierTransactionHistory-CbZ5PhJH.cjs → CashierTransactionHistory-skFu8ocY.cjs} +1 -1
- package/components/{CashierVerifications-hSfZYoMA.js → CashierVerifications-BPZjO4hX.js} +200 -202
- package/components/{CashierVerifications-m_HqmABL.js → CashierVerifications-BnmIMTOt.js} +145 -147
- package/components/{CashierVerifications-4KMUXyFs.cjs → CashierVerifications-DXULEiAu.cjs} +1 -1
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierMethodDetails-Bn4m0_HO.cjs +0 -18
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { a as Ie, i as
|
|
3
|
-
import { d as Q, u as
|
|
1
|
+
import { S as Oe, b as Te, s as Be, f as k, c as Me, n as J, e as C, J as T, m as S, p as w, v as P, w as Z, K as X, L as Le, D, q as O, A as xe, o as V, B as U, y as qe, z as Fe, E as ze } from "./CashierConfirmModal-4RYp7Eiq.js";
|
|
2
|
+
import { a as Ie, i as Ee, $ as Re, b as Ue } from "./CashierError-DUzkCsXh.js";
|
|
3
|
+
import { d as Q, u as He, x as Ne } from "./CashierMethodDetails-CCXOr2gb.js";
|
|
4
4
|
function $(t, i) {
|
|
5
5
|
Ie(t, i);
|
|
6
6
|
}
|
|
7
7
|
function je(t) {
|
|
8
|
-
|
|
8
|
+
Ee({
|
|
9
9
|
fallbackLocale: "en"
|
|
10
|
-
}),
|
|
10
|
+
}), Re.set(t);
|
|
11
11
|
}
|
|
12
12
|
const ee = {
|
|
13
13
|
en: {
|
|
@@ -81,12 +81,12 @@ if (typeof window != "undefined") {
|
|
|
81
81
|
!customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
84
|
+
function We(t) {
|
|
85
|
+
Me(t, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
86
86
|
}
|
|
87
87
|
function ie(t, i, r) {
|
|
88
88
|
const n = t.slice();
|
|
89
|
-
return n[
|
|
89
|
+
return n[52] = i[r], n[54] = r, n;
|
|
90
90
|
}
|
|
91
91
|
function te(t) {
|
|
92
92
|
let i, r, n, l, d = X(
|
|
@@ -101,25 +101,25 @@ function te(t) {
|
|
|
101
101
|
);
|
|
102
102
|
return {
|
|
103
103
|
c() {
|
|
104
|
-
i =
|
|
104
|
+
i = w("div");
|
|
105
105
|
for (let a = 0; a < f.length; a += 1)
|
|
106
106
|
f[a].c();
|
|
107
|
-
r = O(), h && h.c(), n = O(), l =
|
|
107
|
+
r = O(), h && h.c(), n = O(), l = w("cashier-video-modal"), P(i, "class", "CashierVerificationsWrapper"), D(
|
|
108
108
|
l,
|
|
109
109
|
"clientstylingurl",
|
|
110
110
|
/*clientstylingurl*/
|
|
111
111
|
t[1]
|
|
112
|
-
),
|
|
112
|
+
), D(
|
|
113
113
|
l,
|
|
114
114
|
"clientstyling",
|
|
115
115
|
/*clientstyling*/
|
|
116
116
|
t[0]
|
|
117
|
-
),
|
|
117
|
+
), D(
|
|
118
118
|
l,
|
|
119
119
|
"ismobileview",
|
|
120
120
|
/*ismobileview*/
|
|
121
121
|
t[2]
|
|
122
|
-
),
|
|
122
|
+
), D(
|
|
123
123
|
l,
|
|
124
124
|
"videosrc",
|
|
125
125
|
/*videoSrc*/
|
|
@@ -127,10 +127,10 @@ function te(t) {
|
|
|
127
127
|
);
|
|
128
128
|
},
|
|
129
129
|
m(a, u) {
|
|
130
|
-
|
|
130
|
+
S(a, i, u);
|
|
131
131
|
for (let s = 0; s < f.length; s += 1)
|
|
132
132
|
f[s] && f[s].m(i, null);
|
|
133
|
-
|
|
133
|
+
S(a, r, u), h && h.m(a, u), S(a, n, u), S(a, l, u);
|
|
134
134
|
},
|
|
135
135
|
p(a, u) {
|
|
136
136
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
@@ -141,8 +141,8 @@ function te(t) {
|
|
|
141
141
|
);
|
|
142
142
|
let s;
|
|
143
143
|
for (s = 0; s < d.length; s += 1) {
|
|
144
|
-
const
|
|
145
|
-
f[s] ? f[s].p(
|
|
144
|
+
const b = ie(a, d, s);
|
|
145
|
+
f[s] ? f[s].p(b, u) : (f[s] = oe(b), f[s].c(), f[s].m(i, null));
|
|
146
146
|
}
|
|
147
147
|
for (; s < f.length; s += 1)
|
|
148
148
|
f[s].d(1);
|
|
@@ -150,25 +150,25 @@ function te(t) {
|
|
|
150
150
|
}
|
|
151
151
|
/*videoExists*/
|
|
152
152
|
a[7] ? h ? h.p(a, u) : (h = se(a), h.c(), h.m(n.parentNode, n)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
|
|
153
|
-
2 &&
|
|
153
|
+
2 && D(
|
|
154
154
|
l,
|
|
155
155
|
"clientstylingurl",
|
|
156
156
|
/*clientstylingurl*/
|
|
157
157
|
a[1]
|
|
158
158
|
), u[0] & /*clientstyling*/
|
|
159
|
-
1 &&
|
|
159
|
+
1 && D(
|
|
160
160
|
l,
|
|
161
161
|
"clientstyling",
|
|
162
162
|
/*clientstyling*/
|
|
163
163
|
a[0]
|
|
164
164
|
), u[0] & /*ismobileview*/
|
|
165
|
-
4 &&
|
|
165
|
+
4 && D(
|
|
166
166
|
l,
|
|
167
167
|
"ismobileview",
|
|
168
168
|
/*ismobileview*/
|
|
169
169
|
a[2]
|
|
170
170
|
), u[0] & /*videoSrc*/
|
|
171
|
-
256 &&
|
|
171
|
+
256 && D(
|
|
172
172
|
l,
|
|
173
173
|
"videosrc",
|
|
174
174
|
/*videoSrc*/
|
|
@@ -176,7 +176,7 @@ function te(t) {
|
|
|
176
176
|
);
|
|
177
177
|
},
|
|
178
178
|
d(a) {
|
|
179
|
-
a && (
|
|
179
|
+
a && (C(i), C(r), C(n), C(l)), Le(f, a), h && h.d(a);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
@@ -185,74 +185,74 @@ function re(t) {
|
|
|
185
185
|
function l(...d) {
|
|
186
186
|
return (
|
|
187
187
|
/*click_handler*/
|
|
188
|
-
t[
|
|
188
|
+
t[19](
|
|
189
189
|
/*index*/
|
|
190
|
-
t[
|
|
190
|
+
t[54],
|
|
191
191
|
...d
|
|
192
192
|
)
|
|
193
193
|
);
|
|
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(d, f) {
|
|
200
|
-
|
|
200
|
+
S(d, i, f), r || (n = U(i, "click", l), r = !0);
|
|
201
201
|
},
|
|
202
202
|
p(d, f) {
|
|
203
203
|
t = d;
|
|
204
204
|
},
|
|
205
205
|
d(d) {
|
|
206
|
-
d &&
|
|
206
|
+
d && C(i), r = !1, n();
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
function oe(t) {
|
|
211
211
|
let i, r, n, l, d = (
|
|
212
212
|
/*message*/
|
|
213
|
-
t[
|
|
213
|
+
t[52] + ""
|
|
214
214
|
), f, h, a, u, s = (
|
|
215
215
|
/*displayMessages*/
|
|
216
216
|
t[4].length > 1 && /*index*/
|
|
217
|
-
t[
|
|
217
|
+
t[54] === 0 && re(t)
|
|
218
218
|
);
|
|
219
|
-
function
|
|
219
|
+
function b(...g) {
|
|
220
220
|
return (
|
|
221
221
|
/*click_handler_1*/
|
|
222
|
-
t[
|
|
222
|
+
t[20](
|
|
223
223
|
/*index*/
|
|
224
|
-
t[
|
|
225
|
-
...
|
|
224
|
+
t[54],
|
|
225
|
+
...g
|
|
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>', n = O(), l = w("p"), f = O(), s && s.c(), h = O(), P(r, "class", "IconVerification"), P(l, "class", "text"), P(i, "class", "CashierVerificationMessage"), T(
|
|
232
232
|
i,
|
|
233
233
|
"ShowAll",
|
|
234
234
|
/*allVerificationsVisible*/
|
|
235
235
|
t[5]
|
|
236
236
|
);
|
|
237
237
|
},
|
|
238
|
-
m(
|
|
239
|
-
|
|
238
|
+
m(g, v) {
|
|
239
|
+
S(g, i, v), V(i, r), V(i, n), V(i, l), l.innerHTML = d, V(i, f), s && s.m(i, null), V(i, h), a || (u = U(i, "click", b), a = !0);
|
|
240
240
|
},
|
|
241
|
-
p(
|
|
242
|
-
t =
|
|
241
|
+
p(g, v) {
|
|
242
|
+
t = g, v[0] & /*displayMessages*/
|
|
243
243
|
16 && d !== (d = /*message*/
|
|
244
|
-
t[
|
|
244
|
+
t[52] + "") && (l.innerHTML = d), /*displayMessages*/
|
|
245
245
|
t[4].length > 1 && /*index*/
|
|
246
|
-
t[
|
|
247
|
-
32 &&
|
|
246
|
+
t[54] === 0 ? s ? s.p(t, v) : (s = re(t), s.c(), s.m(i, h)) : s && (s.d(1), s = null), v[0] & /*allVerificationsVisible*/
|
|
247
|
+
32 && T(
|
|
248
248
|
i,
|
|
249
249
|
"ShowAll",
|
|
250
250
|
/*allVerificationsVisible*/
|
|
251
251
|
t[5]
|
|
252
252
|
);
|
|
253
253
|
},
|
|
254
|
-
d(
|
|
255
|
-
|
|
254
|
+
d(g) {
|
|
255
|
+
g && C(i), s && s.d(), a = !1, u();
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
@@ -263,7 +263,7 @@ function se(t) {
|
|
|
263
263
|
), f, h, a;
|
|
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>', n = O(), l = w("div"), f = Fe(d), P(r, "class", "IconVideo"), P(l, "class", "CashierVerificationVideoLink"), T(
|
|
267
267
|
l,
|
|
268
268
|
"CashierVerificationVideoLinkDesktop",
|
|
269
269
|
/*desktopView*/
|
|
@@ -271,18 +271,18 @@ function se(t) {
|
|
|
271
271
|
), P(i, "class", "CashierVerificationVideo");
|
|
272
272
|
},
|
|
273
273
|
m(u, s) {
|
|
274
|
-
|
|
274
|
+
S(u, i, s), V(i, r), V(i, n), V(i, l), V(l, f), h || (a = U(
|
|
275
275
|
l,
|
|
276
276
|
"click",
|
|
277
277
|
/*click_handler_2*/
|
|
278
|
-
t[
|
|
278
|
+
t[21]
|
|
279
279
|
), h = !0);
|
|
280
280
|
},
|
|
281
281
|
p(u, s) {
|
|
282
282
|
s[0] & /*$_*/
|
|
283
283
|
512 && d !== (d = /*$_*/
|
|
284
284
|
u[9]("verification.video.how-to") + "") && qe(f, d), s[0] & /*desktopView*/
|
|
285
|
-
64 &&
|
|
285
|
+
64 && T(
|
|
286
286
|
l,
|
|
287
287
|
"CashierVerificationVideoLinkDesktop",
|
|
288
288
|
/*desktopView*/
|
|
@@ -290,7 +290,7 @@ function se(t) {
|
|
|
290
290
|
);
|
|
291
291
|
},
|
|
292
292
|
d(u) {
|
|
293
|
-
u &&
|
|
293
|
+
u && C(i), h = !1, a();
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
@@ -301,7 +301,7 @@ function Ke(t) {
|
|
|
301
301
|
);
|
|
302
302
|
return {
|
|
303
303
|
c() {
|
|
304
|
-
i =
|
|
304
|
+
i = w("div"), r && r.c(), P(i, "class", "CashierVerifications"), T(
|
|
305
305
|
i,
|
|
306
306
|
"CashierVerificationsDesktop",
|
|
307
307
|
/*desktopView*/
|
|
@@ -309,12 +309,12 @@ function Ke(t) {
|
|
|
309
309
|
);
|
|
310
310
|
},
|
|
311
311
|
m(n, l) {
|
|
312
|
-
|
|
312
|
+
S(n, i, l), r && r.m(i, null), t[22](i);
|
|
313
313
|
},
|
|
314
314
|
p(n, l) {
|
|
315
315
|
/*displayMessages*/
|
|
316
316
|
n[4] ? r ? r.p(n, l) : (r = te(n), r.c(), r.m(i, null)) : r && (r.d(1), r = null), l[0] & /*desktopView*/
|
|
317
|
-
64 &&
|
|
317
|
+
64 && T(
|
|
318
318
|
i,
|
|
319
319
|
"CashierVerificationsDesktop",
|
|
320
320
|
/*desktopView*/
|
|
@@ -324,19 +324,19 @@ function Ke(t) {
|
|
|
324
324
|
i: J,
|
|
325
325
|
o: J,
|
|
326
326
|
d(n) {
|
|
327
|
-
n &&
|
|
327
|
+
n && C(i), r && r.d(), t[22](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
const
|
|
332
|
-
function
|
|
331
|
+
const Ye = "verification_explanation_video_widgets.MP4";
|
|
332
|
+
function Ge(t, i, r) {
|
|
333
333
|
let n, l;
|
|
334
|
-
Z(t, Ue, (e) => r(9, n = e)), Z(t,
|
|
335
|
-
let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid:
|
|
336
|
-
var
|
|
334
|
+
Z(t, Ue, (e) => r(9, n = e)), Z(t, Ne, (e) => r(28, l = e)), Q.extend(He);
|
|
335
|
+
let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: b = "" } = i, { ismobileview: g = "" } = i, { playersession: v = "" } = i, _, H = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), L, x, q, F = !0, j = !0, z = !1, I = "";
|
|
336
|
+
var B;
|
|
337
337
|
(function(e) {
|
|
338
338
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
339
|
-
})(
|
|
339
|
+
})(B || (B = {}));
|
|
340
340
|
var E;
|
|
341
341
|
(function(e) {
|
|
342
342
|
e.Requested = "Requested";
|
|
@@ -345,10 +345,10 @@ function Ye(t, i, r) {
|
|
|
345
345
|
(function(e) {
|
|
346
346
|
e.Unknown = "Unknown", e.Unverified = "Unverified", e.InProgress = "InProgress", e.Failed = "Failed", e.Verified = "Verified", e.Referred = "Referred", e.True = "True", e.False = "False", e.AwaitingForResponse = "AwaitingForResponse";
|
|
347
347
|
})(p || (p = {}));
|
|
348
|
-
var
|
|
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 ne = [
|
|
353
353
|
p.InProgress,
|
|
354
354
|
p.Referred,
|
|
@@ -371,50 +371,40 @@ function Ye(t, i, r) {
|
|
|
371
371
|
je(f);
|
|
372
372
|
}, ce = () => {
|
|
373
373
|
let e = document.createElement("style");
|
|
374
|
-
e.innerHTML = a,
|
|
374
|
+
e.innerHTML = a, _.appendChild(e);
|
|
375
375
|
}, fe = () => {
|
|
376
376
|
let e = new URL(u), o = document.createElement("style");
|
|
377
377
|
fetch(e.href).then((c) => c.text()).then((c) => {
|
|
378
378
|
o.innerHTML = c, setTimeout(
|
|
379
379
|
() => {
|
|
380
|
-
|
|
380
|
+
_.appendChild(o);
|
|
381
381
|
},
|
|
382
382
|
1
|
|
383
383
|
);
|
|
384
384
|
});
|
|
385
|
-
},
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
const c =
|
|
390
|
-
m.append("accept", "application/json"), m.append("Content-Type", "application/json"), m.append("X-Client-Request-Timestamp", Q.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
391
|
-
const b = {
|
|
385
|
+
}, W = () => {
|
|
386
|
+
r(18, x = ue());
|
|
387
|
+
const e = new URL(`${d}/v1/player/${b}/verification/GetKYCCustomerStatus?language=${f}`), o = new Headers();
|
|
388
|
+
o.append("accept", "application/json"), o.append("Content-Type", "application/json"), o.append("x-sessionid", `${v}`), o.append("X-Client-Request-Timestamp", Q.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
389
|
+
const c = {
|
|
392
390
|
method: "POST",
|
|
393
|
-
headers:
|
|
394
|
-
body: JSON.stringify({
|
|
395
|
-
MerchantId: e,
|
|
396
|
-
CustomerId: o,
|
|
397
|
-
All: !1,
|
|
398
|
-
AllParameters: !1
|
|
399
|
-
})
|
|
391
|
+
headers: o,
|
|
392
|
+
body: JSON.stringify({})
|
|
400
393
|
};
|
|
401
|
-
fetch(
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}), r(4,
|
|
394
|
+
fetch(e, c).then((m) => m.json()).then((m) => {
|
|
395
|
+
L = he(m.Verifications), L.VerificationStatuses.forEach((y) => {
|
|
396
|
+
y.VerificationUrlType !== "Widget" && H.add(y.Vendor);
|
|
397
|
+
}), r(4, q = Y());
|
|
405
398
|
});
|
|
406
399
|
}, de = () => {
|
|
407
|
-
l &&
|
|
400
|
+
l && W();
|
|
408
401
|
}, ue = () => {
|
|
409
402
|
let e = (s || l).split(".")[1];
|
|
410
403
|
if (e) {
|
|
411
404
|
let o = JSON.parse(atob(e));
|
|
412
|
-
return
|
|
413
|
-
merchantId: o == null ? void 0 : o.mid,
|
|
414
|
-
customerId: `${o == null ? void 0 : o.mid}~${V}`
|
|
415
|
-
};
|
|
405
|
+
return o.cdn + "/cashier/operator-assets/" + (o == null ? void 0 : o.mid);
|
|
416
406
|
}
|
|
417
|
-
return
|
|
407
|
+
return "";
|
|
418
408
|
}, he = (e) => {
|
|
419
409
|
var c;
|
|
420
410
|
if (!e || !e.length)
|
|
@@ -428,29 +418,29 @@ function Ye(t, i, r) {
|
|
|
428
418
|
return {
|
|
429
419
|
VerificationSummaryStatus: m.Status,
|
|
430
420
|
VerificationUrl: (c = m.Flags) == null ? void 0 : c.DeferredUrlKey,
|
|
431
|
-
VerificationStatuses:
|
|
421
|
+
VerificationStatuses: K(o, m.Status)
|
|
432
422
|
};
|
|
433
423
|
} else
|
|
434
424
|
return {
|
|
435
|
-
VerificationSummaryStatus: e.some((
|
|
436
|
-
VerificationStatuses:
|
|
425
|
+
VerificationSummaryStatus: e.some((y) => y.Status === p.Failed) ? p.Failed : p.Verified,
|
|
426
|
+
VerificationStatuses: K(e, [p.Failed])
|
|
437
427
|
};
|
|
438
428
|
}, me = (e) => e.reduce(
|
|
439
429
|
(o, c) => o ? new Date(o) < new Date(c) ? c : o : c,
|
|
440
430
|
0
|
|
441
|
-
),
|
|
442
|
-
var m,
|
|
431
|
+
), K = (e, o) => e.filter((c) => o.includes(c.Status)).map((c) => {
|
|
432
|
+
var m, y;
|
|
443
433
|
return {
|
|
444
434
|
Type: c.Type,
|
|
445
435
|
Vendor: c.VendorName,
|
|
446
|
-
VerificationDocuments: c.Documents ? [...
|
|
447
|
-
VerificationUrlType: (m = c.
|
|
448
|
-
VerificationUrl: (
|
|
436
|
+
VerificationDocuments: c.Documents ? [...c.Documents] : [],
|
|
437
|
+
VerificationUrlType: (m = c.FlowInfo) == null ? void 0 : m.Type,
|
|
438
|
+
VerificationUrl: (y = c.FlowInfo) == null ? void 0 : y.Url
|
|
449
439
|
};
|
|
450
|
-
}), pe = (e) => e.filter((o) => ne.includes(o.Status) ? o.
|
|
451
|
-
const o = e.Documents && e.VendorName ===
|
|
440
|
+
}), pe = (e) => e.filter((o) => ne.includes(o.Status) ? o.FlowInfo && o.FlowInfo.Url || ge(o) || ve(o) : !1), ge = (e) => {
|
|
441
|
+
const o = e.Documents && e.VendorName === B.Manual, c = e.Documents && e.Documents.some((m) => m.Status === E.Requested);
|
|
452
442
|
return o && c;
|
|
453
|
-
}, ve = (e) => e.VendorName ===
|
|
443
|
+
}, ve = (e) => e.VendorName === B.ShuftiPro && e.Status === p.Referred, Y = () => {
|
|
454
444
|
switch (L.VerificationSummaryStatus) {
|
|
455
445
|
case p.InProgress:
|
|
456
446
|
const e = [];
|
|
@@ -464,7 +454,7 @@ function Ye(t, i, r) {
|
|
|
464
454
|
}
|
|
465
455
|
}, we = (e) => {
|
|
466
456
|
const o = L.VerificationStatuses.filter((c) => c.Vendor === e);
|
|
467
|
-
if (e ===
|
|
457
|
+
if (e === B.ShuftiPro)
|
|
468
458
|
return ye(o);
|
|
469
459
|
{
|
|
470
460
|
const c = n("verification.idenfy.link-name"), m = {
|
|
@@ -474,88 +464,89 @@ function Ye(t, i, r) {
|
|
|
474
464
|
}
|
|
475
465
|
}, ye = (e) => {
|
|
476
466
|
const o = [], c = {}, m = [
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
467
|
+
M.Biometric,
|
|
468
|
+
M.Documents,
|
|
469
|
+
M.ProofOfAddress
|
|
480
470
|
];
|
|
481
|
-
e.forEach((
|
|
482
|
-
m.includes(
|
|
471
|
+
e.forEach((A) => {
|
|
472
|
+
m.includes(A.Type) && (o.push(A.Type), c[A.Type] = ke(A, Ve(A.Type)));
|
|
483
473
|
});
|
|
484
|
-
let
|
|
485
|
-
return
|
|
486
|
-
}, ke = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`,
|
|
474
|
+
let y = o.every((A) => N.has(A)), Ae = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
|
|
475
|
+
return y ? n("verification.shuftipro.validations-started") : n(Ae, { values: c });
|
|
476
|
+
}, ke = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, Ve = (e) => n(`verification.shuftipro.link-name.${e}`), R = (e, o) => {
|
|
487
477
|
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
488
478
|
if (e.target.closest(".verificationLink")) {
|
|
489
479
|
const c = e.target.className.split(" ")[1];
|
|
490
|
-
|
|
480
|
+
N.add(c), r(4, q = Y());
|
|
491
481
|
}
|
|
492
482
|
return;
|
|
493
483
|
}
|
|
494
484
|
o === 0 && r(5, F = !F);
|
|
495
|
-
},
|
|
496
|
-
r(6,
|
|
485
|
+
}, Pe = () => {
|
|
486
|
+
r(6, j = g === "false");
|
|
497
487
|
}, be = () => {
|
|
498
|
-
r(8,
|
|
488
|
+
r(8, I = x + "/" + f + "/" + Ye);
|
|
499
489
|
try {
|
|
500
|
-
fetch(
|
|
501
|
-
r(7,
|
|
490
|
+
fetch(I, { method: "HEAD" }).then((e) => {
|
|
491
|
+
r(7, z = e.ok);
|
|
502
492
|
});
|
|
503
493
|
} catch (e) {
|
|
504
|
-
r(7,
|
|
494
|
+
r(7, z = !1);
|
|
505
495
|
}
|
|
506
496
|
}, G = () => {
|
|
507
497
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
508
|
-
}, De = (e, o) =>
|
|
498
|
+
}, De = (e, o) => R(o, e), Ce = (e, o) => R(o, e), Se = () => G();
|
|
509
499
|
function _e(e) {
|
|
510
|
-
|
|
511
|
-
|
|
500
|
+
xe[e ? "unshift" : "push"](() => {
|
|
501
|
+
_ = e, r(3, _);
|
|
512
502
|
});
|
|
513
503
|
}
|
|
514
504
|
return t.$$set = (e) => {
|
|
515
|
-
"endpoint" in e && r(12, d = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, h = e.translationurl), "clientstyling" in e && r(0, a = e.clientstyling), "clientstylingurl" in e && r(1, u = e.clientstylingurl), "session" in e && r(15, s = e.session), "customerid" in e && r(16,
|
|
505
|
+
"endpoint" in e && r(12, d = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, h = e.translationurl), "clientstyling" in e && r(0, a = e.clientstyling), "clientstylingurl" in e && r(1, u = e.clientstylingurl), "session" in e && r(15, s = e.session), "customerid" in e && r(16, b = e.customerid), "ismobileview" in e && r(2, g = e.ismobileview), "playersession" in e && r(17, v = e.playersession);
|
|
516
506
|
}, t.$$.update = () => {
|
|
517
507
|
t.$$.dirty[0] & /*lang*/
|
|
518
|
-
8192 && f && le(), t.$$.dirty[0] & /*endpoint, session*/
|
|
519
|
-
|
|
520
|
-
|
|
508
|
+
8192 && f && le(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
509
|
+
167936 && d && s && v && W(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
510
|
+
167936 && d && !s && v && de(), t.$$.dirty[0] & /*translationurl*/
|
|
521
511
|
16384 && h && ae(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
522
|
-
9 && a &&
|
|
523
|
-
10 && u &&
|
|
524
|
-
4 &&
|
|
525
|
-
|
|
512
|
+
9 && a && _ && ce(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
513
|
+
10 && u && _ && fe(), t.$$.dirty[0] & /*ismobileview*/
|
|
514
|
+
4 && g && Pe(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
515
|
+
262144 && x && be();
|
|
526
516
|
}, [
|
|
527
517
|
a,
|
|
528
518
|
u,
|
|
529
|
-
v,
|
|
530
519
|
g,
|
|
531
|
-
|
|
520
|
+
_,
|
|
521
|
+
q,
|
|
532
522
|
F,
|
|
533
|
-
|
|
534
|
-
I,
|
|
523
|
+
j,
|
|
535
524
|
z,
|
|
525
|
+
I,
|
|
536
526
|
n,
|
|
537
|
-
|
|
527
|
+
R,
|
|
538
528
|
G,
|
|
539
529
|
d,
|
|
540
530
|
f,
|
|
541
531
|
h,
|
|
542
532
|
s,
|
|
543
|
-
|
|
544
|
-
|
|
533
|
+
b,
|
|
534
|
+
v,
|
|
535
|
+
x,
|
|
545
536
|
De,
|
|
546
537
|
Ce,
|
|
547
538
|
Se,
|
|
548
539
|
_e
|
|
549
540
|
];
|
|
550
541
|
}
|
|
551
|
-
class
|
|
542
|
+
class Je extends Oe {
|
|
552
543
|
constructor(i) {
|
|
553
|
-
super(),
|
|
544
|
+
super(), Te(
|
|
554
545
|
this,
|
|
555
546
|
i,
|
|
556
|
-
|
|
547
|
+
Ge,
|
|
557
548
|
Ke,
|
|
558
|
-
|
|
549
|
+
Be,
|
|
559
550
|
{
|
|
560
551
|
endpoint: 12,
|
|
561
552
|
lang: 13,
|
|
@@ -564,9 +555,10 @@ class Ge extends Ae {
|
|
|
564
555
|
clientstylingurl: 1,
|
|
565
556
|
session: 15,
|
|
566
557
|
customerid: 16,
|
|
567
|
-
ismobileview: 2
|
|
558
|
+
ismobileview: 2,
|
|
559
|
+
playersession: 17
|
|
568
560
|
},
|
|
569
|
-
|
|
561
|
+
We,
|
|
570
562
|
[-1, -1]
|
|
571
563
|
);
|
|
572
564
|
}
|
|
@@ -574,52 +566,58 @@ class Ge extends Ae {
|
|
|
574
566
|
return this.$$.ctx[12];
|
|
575
567
|
}
|
|
576
568
|
set endpoint(i) {
|
|
577
|
-
this.$$set({ endpoint: i }),
|
|
569
|
+
this.$$set({ endpoint: i }), k();
|
|
578
570
|
}
|
|
579
571
|
get lang() {
|
|
580
572
|
return this.$$.ctx[13];
|
|
581
573
|
}
|
|
582
574
|
set lang(i) {
|
|
583
|
-
this.$$set({ lang: i }),
|
|
575
|
+
this.$$set({ lang: i }), k();
|
|
584
576
|
}
|
|
585
577
|
get translationurl() {
|
|
586
578
|
return this.$$.ctx[14];
|
|
587
579
|
}
|
|
588
580
|
set translationurl(i) {
|
|
589
|
-
this.$$set({ translationurl: i }),
|
|
581
|
+
this.$$set({ translationurl: i }), k();
|
|
590
582
|
}
|
|
591
583
|
get clientstyling() {
|
|
592
584
|
return this.$$.ctx[0];
|
|
593
585
|
}
|
|
594
586
|
set clientstyling(i) {
|
|
595
|
-
this.$$set({ clientstyling: i }),
|
|
587
|
+
this.$$set({ clientstyling: i }), k();
|
|
596
588
|
}
|
|
597
589
|
get clientstylingurl() {
|
|
598
590
|
return this.$$.ctx[1];
|
|
599
591
|
}
|
|
600
592
|
set clientstylingurl(i) {
|
|
601
|
-
this.$$set({ clientstylingurl: i }),
|
|
593
|
+
this.$$set({ clientstylingurl: i }), k();
|
|
602
594
|
}
|
|
603
595
|
get session() {
|
|
604
596
|
return this.$$.ctx[15];
|
|
605
597
|
}
|
|
606
598
|
set session(i) {
|
|
607
|
-
this.$$set({ session: i }),
|
|
599
|
+
this.$$set({ session: i }), k();
|
|
608
600
|
}
|
|
609
601
|
get customerid() {
|
|
610
602
|
return this.$$.ctx[16];
|
|
611
603
|
}
|
|
612
604
|
set customerid(i) {
|
|
613
|
-
this.$$set({ customerid: i }),
|
|
605
|
+
this.$$set({ customerid: i }), k();
|
|
614
606
|
}
|
|
615
607
|
get ismobileview() {
|
|
616
608
|
return this.$$.ctx[2];
|
|
617
609
|
}
|
|
618
610
|
set ismobileview(i) {
|
|
619
|
-
this.$$set({ ismobileview: i }),
|
|
611
|
+
this.$$set({ ismobileview: i }), k();
|
|
612
|
+
}
|
|
613
|
+
get playersession() {
|
|
614
|
+
return this.$$.ctx[17];
|
|
615
|
+
}
|
|
616
|
+
set playersession(i) {
|
|
617
|
+
this.$$set({ playersession: i }), k();
|
|
620
618
|
}
|
|
621
619
|
}
|
|
622
|
-
|
|
620
|
+
ze(Je, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
|
|
623
621
|
export {
|
|
624
|
-
|
|
622
|
+
Je as default
|
|
625
623
|
};
|