@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 Te, b as Oe, s as Me, f as y, c as Be, n as J, e as D, J as T, l as C, o as w, q as V, v as Z, K as X, L as Le, C as b, p as A, z as xe, m as k, A as U, x as qe, y as Fe, E as ze } from "./CashierConfirmModal-untxGhsx.js";
|
|
2
|
+
import { a as Ie, i as Ee, $ as Re, b as Ue } from "./CashierError-Cns-3PNq.js";
|
|
3
|
+
import { d as Q, u as He, x as Ne } from "./CashierMethodDetails-B6Mr4aP0.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: {
|
|
@@ -67,13 +67,13 @@ const ee = {
|
|
|
67
67
|
};
|
|
68
68
|
if (typeof window < "u") {
|
|
69
69
|
let t = function(i) {
|
|
70
|
-
return function(...
|
|
70
|
+
return function(...o) {
|
|
71
71
|
try {
|
|
72
|
-
return i.apply(this,
|
|
73
|
-
} catch (
|
|
74
|
-
if (
|
|
72
|
+
return i.apply(this, o);
|
|
73
|
+
} catch (n) {
|
|
74
|
+
if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
|
|
75
75
|
return !1;
|
|
76
|
-
throw
|
|
76
|
+
throw n;
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
};
|
|
@@ -81,45 +81,45 @@ if (typeof window < "u") {
|
|
|
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
|
+
Be(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
|
-
function ie(t, i,
|
|
88
|
-
const
|
|
89
|
-
return
|
|
87
|
+
function ie(t, i, o) {
|
|
88
|
+
const n = t.slice();
|
|
89
|
+
return n[52] = i[o], n[54] = o, n;
|
|
90
90
|
}
|
|
91
91
|
function te(t) {
|
|
92
|
-
let i,
|
|
92
|
+
let i, o, n, c, d = X(
|
|
93
93
|
/*displayMessages*/
|
|
94
94
|
t[4]
|
|
95
95
|
), f = [];
|
|
96
96
|
for (let a = 0; a < d.length; a += 1)
|
|
97
|
-
f[a] =
|
|
97
|
+
f[a] = re(ie(t, d, a));
|
|
98
98
|
let h = (
|
|
99
99
|
/*videoExists*/
|
|
100
|
-
t[7] &&
|
|
100
|
+
t[7] && se(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
|
-
|
|
107
|
+
o = A(), h && h.c(), n = A(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), b(
|
|
108
108
|
c,
|
|
109
109
|
"clientstylingurl",
|
|
110
110
|
/*clientstylingurl*/
|
|
111
111
|
t[1]
|
|
112
|
-
),
|
|
112
|
+
), b(
|
|
113
113
|
c,
|
|
114
114
|
"clientstyling",
|
|
115
115
|
/*clientstyling*/
|
|
116
116
|
t[0]
|
|
117
|
-
),
|
|
117
|
+
), b(
|
|
118
118
|
c,
|
|
119
119
|
"ismobileview",
|
|
120
120
|
/*ismobileview*/
|
|
121
121
|
t[2]
|
|
122
|
-
),
|
|
122
|
+
), b(
|
|
123
123
|
c,
|
|
124
124
|
"videosrc",
|
|
125
125
|
/*videoSrc*/
|
|
@@ -127,10 +127,10 @@ function te(t) {
|
|
|
127
127
|
);
|
|
128
128
|
},
|
|
129
129
|
m(a, u) {
|
|
130
|
-
|
|
131
|
-
for (let
|
|
132
|
-
f[
|
|
133
|
-
|
|
130
|
+
C(a, i, u);
|
|
131
|
+
for (let s = 0; s < f.length; s += 1)
|
|
132
|
+
f[s] && f[s].m(i, null);
|
|
133
|
+
C(a, o, u), h && h.m(a, u), C(a, n, u), C(a, c, u);
|
|
134
134
|
},
|
|
135
135
|
p(a, u) {
|
|
136
136
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
@@ -139,36 +139,36 @@ function te(t) {
|
|
|
139
139
|
/*displayMessages*/
|
|
140
140
|
a[4]
|
|
141
141
|
);
|
|
142
|
-
let
|
|
143
|
-
for (
|
|
144
|
-
const
|
|
145
|
-
f[
|
|
142
|
+
let s;
|
|
143
|
+
for (s = 0; s < d.length; s += 1) {
|
|
144
|
+
const P = ie(a, d, s);
|
|
145
|
+
f[s] ? f[s].p(P, u) : (f[s] = re(P), f[s].c(), f[s].m(i, null));
|
|
146
146
|
}
|
|
147
|
-
for (;
|
|
148
|
-
f[
|
|
147
|
+
for (; s < f.length; s += 1)
|
|
148
|
+
f[s].d(1);
|
|
149
149
|
f.length = d.length;
|
|
150
150
|
}
|
|
151
151
|
/*videoExists*/
|
|
152
|
-
a[7] ? h ? h.p(a, u) : (h =
|
|
153
|
-
2 &&
|
|
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 && b(
|
|
154
154
|
c,
|
|
155
155
|
"clientstylingurl",
|
|
156
156
|
/*clientstylingurl*/
|
|
157
157
|
a[1]
|
|
158
158
|
), u[0] & /*clientstyling*/
|
|
159
|
-
1 &&
|
|
159
|
+
1 && b(
|
|
160
160
|
c,
|
|
161
161
|
"clientstyling",
|
|
162
162
|
/*clientstyling*/
|
|
163
163
|
a[0]
|
|
164
164
|
), u[0] & /*ismobileview*/
|
|
165
|
-
4 &&
|
|
165
|
+
4 && b(
|
|
166
166
|
c,
|
|
167
167
|
"ismobileview",
|
|
168
168
|
/*ismobileview*/
|
|
169
169
|
a[2]
|
|
170
170
|
), u[0] & /*videoSrc*/
|
|
171
|
-
256 &&
|
|
171
|
+
256 && b(
|
|
172
172
|
c,
|
|
173
173
|
"videosrc",
|
|
174
174
|
/*videoSrc*/
|
|
@@ -176,113 +176,113 @@ function te(t) {
|
|
|
176
176
|
);
|
|
177
177
|
},
|
|
178
178
|
d(a) {
|
|
179
|
-
a && (
|
|
179
|
+
a && (D(i), D(o), D(n), D(c)), Le(f, a), h && h.d(a);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
function
|
|
184
|
-
let i,
|
|
183
|
+
function oe(t) {
|
|
184
|
+
let i, o, n;
|
|
185
185
|
function c(...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>', V(i, "class", "CashierVerificationChevron");
|
|
198
198
|
},
|
|
199
199
|
m(d, f) {
|
|
200
|
-
|
|
200
|
+
C(d, i, f), o || (n = U(i, "click", c), o = !0);
|
|
201
201
|
},
|
|
202
202
|
p(d, f) {
|
|
203
203
|
t = d;
|
|
204
204
|
},
|
|
205
205
|
d(d) {
|
|
206
|
-
d &&
|
|
206
|
+
d && D(i), o = !1, n();
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
|
-
function
|
|
211
|
-
let i,
|
|
210
|
+
function re(t) {
|
|
211
|
+
let i, o, n, c, d = (
|
|
212
212
|
/*message*/
|
|
213
|
-
t[
|
|
214
|
-
), f, h, a, u,
|
|
213
|
+
t[52] + ""
|
|
214
|
+
), f, h, a, u, s = (
|
|
215
215
|
/*displayMessages*/
|
|
216
216
|
t[4].length > 1 && /*index*/
|
|
217
|
-
t[
|
|
217
|
+
t[54] === 0 && oe(t)
|
|
218
218
|
);
|
|
219
|
-
function
|
|
219
|
+
function P(...p) {
|
|
220
220
|
return (
|
|
221
221
|
/*click_handler_1*/
|
|
222
|
-
t[
|
|
222
|
+
t[20](
|
|
223
223
|
/*index*/
|
|
224
|
-
t[
|
|
225
|
-
...
|
|
224
|
+
t[54],
|
|
225
|
+
...p
|
|
226
226
|
)
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
229
|
return {
|
|
230
230
|
c() {
|
|
231
|
-
i =
|
|
231
|
+
i = w("div"), o = w("div"), o.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 = A(), c = w("p"), f = A(), s && s.c(), h = A(), V(o, "class", "IconVerification"), V(c, "class", "text"), V(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(p, g) {
|
|
239
|
+
C(p, i, g), k(i, o), k(i, n), k(i, c), c.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = U(i, "click", P), a = !0);
|
|
240
240
|
},
|
|
241
|
-
p(
|
|
242
|
-
t =
|
|
241
|
+
p(p, g) {
|
|
242
|
+
t = p, g[0] & /*displayMessages*/
|
|
243
243
|
16 && d !== (d = /*message*/
|
|
244
|
-
t[
|
|
244
|
+
t[52] + "") && (c.innerHTML = d), /*displayMessages*/
|
|
245
245
|
t[4].length > 1 && /*index*/
|
|
246
|
-
t[
|
|
247
|
-
32 &&
|
|
246
|
+
t[54] === 0 ? s ? s.p(t, g) : (s = oe(t), s.c(), s.m(i, h)) : s && (s.d(1), s = null), g[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(p) {
|
|
255
|
+
p && D(i), s && s.d(), a = !1, u();
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
let i,
|
|
259
|
+
function se(t) {
|
|
260
|
+
let i, o, n, c, d = (
|
|
261
261
|
/*$_*/
|
|
262
262
|
t[9]("verification.video.how-to") + ""
|
|
263
263
|
), f, h, a;
|
|
264
264
|
return {
|
|
265
265
|
c() {
|
|
266
|
-
i =
|
|
266
|
+
i = w("div"), o = w("div"), o.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 = A(), c = w("div"), f = Fe(d), V(o, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), T(
|
|
267
267
|
c,
|
|
268
268
|
"CashierVerificationVideoLinkDesktop",
|
|
269
269
|
/*desktopView*/
|
|
270
270
|
t[6]
|
|
271
|
-
),
|
|
271
|
+
), V(i, "class", "CashierVerificationVideo");
|
|
272
272
|
},
|
|
273
|
-
m(u,
|
|
274
|
-
|
|
273
|
+
m(u, s) {
|
|
274
|
+
C(u, i, s), k(i, o), k(i, n), k(i, c), k(c, f), h || (a = U(
|
|
275
275
|
c,
|
|
276
276
|
"click",
|
|
277
277
|
/*click_handler_2*/
|
|
278
|
-
t[
|
|
278
|
+
t[21]
|
|
279
279
|
), h = !0);
|
|
280
280
|
},
|
|
281
|
-
p(u,
|
|
282
|
-
|
|
281
|
+
p(u, s) {
|
|
282
|
+
s[0] & /*$_*/
|
|
283
283
|
512 && d !== (d = /*$_*/
|
|
284
|
-
u[9]("verification.video.how-to") + "") && qe(f, d),
|
|
285
|
-
64 &&
|
|
284
|
+
u[9]("verification.video.how-to") + "") && qe(f, d), s[0] & /*desktopView*/
|
|
285
|
+
64 && T(
|
|
286
286
|
c,
|
|
287
287
|
"CashierVerificationVideoLinkDesktop",
|
|
288
288
|
/*desktopView*/
|
|
@@ -290,57 +290,57 @@ function ne(t) {
|
|
|
290
290
|
);
|
|
291
291
|
},
|
|
292
292
|
d(u) {
|
|
293
|
-
u &&
|
|
293
|
+
u && D(i), h = !1, a();
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
297
|
function Ke(t) {
|
|
298
|
-
let i,
|
|
298
|
+
let i, o = (
|
|
299
299
|
/*displayMessages*/
|
|
300
300
|
t[4] && te(t)
|
|
301
301
|
);
|
|
302
302
|
return {
|
|
303
303
|
c() {
|
|
304
|
-
i =
|
|
304
|
+
i = w("div"), o && o.c(), V(i, "class", "CashierVerifications"), T(
|
|
305
305
|
i,
|
|
306
306
|
"CashierVerificationsDesktop",
|
|
307
307
|
/*desktopView*/
|
|
308
308
|
t[6]
|
|
309
309
|
);
|
|
310
310
|
},
|
|
311
|
-
m(
|
|
312
|
-
|
|
311
|
+
m(n, c) {
|
|
312
|
+
C(n, i, c), o && o.m(i, null), t[22](i);
|
|
313
313
|
},
|
|
314
|
-
p(
|
|
314
|
+
p(n, c) {
|
|
315
315
|
/*displayMessages*/
|
|
316
|
-
|
|
317
|
-
64 &&
|
|
316
|
+
n[4] ? o ? o.p(n, c) : (o = te(n), o.c(), o.m(i, null)) : o && (o.d(1), o = null), c[0] & /*desktopView*/
|
|
317
|
+
64 && T(
|
|
318
318
|
i,
|
|
319
319
|
"CashierVerificationsDesktop",
|
|
320
320
|
/*desktopView*/
|
|
321
|
-
|
|
321
|
+
n[6]
|
|
322
322
|
);
|
|
323
323
|
},
|
|
324
324
|
i: J,
|
|
325
325
|
o: J,
|
|
326
|
-
d(
|
|
327
|
-
|
|
326
|
+
d(n) {
|
|
327
|
+
n && D(i), o && o.d(), t[22](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
|
-
const
|
|
332
|
-
function
|
|
333
|
-
let
|
|
334
|
-
Z(t, Ue, (e) =>
|
|
335
|
-
let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session:
|
|
336
|
-
var
|
|
331
|
+
const Ye = "verification_explanation_video_widgets.MP4";
|
|
332
|
+
function Ge(t, i, o) {
|
|
333
|
+
let n, c;
|
|
334
|
+
Z(t, Ue, (e) => o(9, n = e)), Z(t, Ne, (e) => o(28, c = 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: P = "" } = i, { ismobileview: p = "" } = i, { playersession: g = "" } = i, S, H = /* @__PURE__ */ new Set(), N = /* @__PURE__ */ new Set(), B, L, q, F = !0, j = !0, z = !1, I = "";
|
|
336
|
+
var O;
|
|
337
337
|
(function(e) {
|
|
338
338
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
339
|
-
})(
|
|
340
|
-
var
|
|
339
|
+
})(O || (O = {}));
|
|
340
|
+
var E;
|
|
341
341
|
(function(e) {
|
|
342
342
|
e.Requested = "Requested";
|
|
343
|
-
})(
|
|
343
|
+
})(E || (E = {}));
|
|
344
344
|
var m;
|
|
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";
|
|
@@ -349,19 +349,19 @@ function Ye(t, i, r) {
|
|
|
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
|
-
const
|
|
352
|
+
const ne = [
|
|
353
353
|
m.InProgress,
|
|
354
354
|
m.Referred,
|
|
355
355
|
m.AwaitingForResponse
|
|
356
356
|
], ae = () => {
|
|
357
357
|
let e = h;
|
|
358
358
|
if (e)
|
|
359
|
-
return fetch(e).then((
|
|
360
|
-
Object.keys(
|
|
361
|
-
$(l,
|
|
359
|
+
return fetch(e).then((r) => r.json()).then((r) => {
|
|
360
|
+
Object.keys(r).forEach((l) => {
|
|
361
|
+
$(l, r[l]);
|
|
362
362
|
});
|
|
363
|
-
}).catch((
|
|
364
|
-
console.log(
|
|
363
|
+
}).catch((r) => {
|
|
364
|
+
console.log(r);
|
|
365
365
|
});
|
|
366
366
|
};
|
|
367
367
|
Object.keys(ee).forEach((e) => {
|
|
@@ -371,172 +371,163 @@ 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, S.appendChild(e);
|
|
375
375
|
}, fe = () => {
|
|
376
|
-
let e = new URL(u),
|
|
376
|
+
let e = new URL(u), r = document.createElement("style");
|
|
377
377
|
fetch(e.href).then((l) => l.text()).then((l) => {
|
|
378
|
-
|
|
378
|
+
r.innerHTML = l, setTimeout(
|
|
379
379
|
() => {
|
|
380
|
-
|
|
380
|
+
S.appendChild(r);
|
|
381
381
|
},
|
|
382
382
|
1
|
|
383
383
|
);
|
|
384
384
|
});
|
|
385
|
-
},
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
const l =
|
|
390
|
-
v.append("accept", "application/json"), v.append("Content-Type", "application/json"), v.append("X-Client-Request-Timestamp", Q.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
391
|
-
const U = {
|
|
385
|
+
}, W = () => {
|
|
386
|
+
o(18, L = ue());
|
|
387
|
+
const e = new URL(`${d}/v1/player/${P}/verification/GetKYCCustomerStatus?language=${f}`), r = new Headers();
|
|
388
|
+
r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("x-sessionid", `${g}`), r.append("X-Client-Request-Timestamp", Q.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
389
|
+
const l = {
|
|
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: r,
|
|
392
|
+
body: JSON.stringify({})
|
|
400
393
|
};
|
|
401
|
-
fetch(
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}),
|
|
394
|
+
fetch(e, l).then((v) => v.json()).then((v) => {
|
|
395
|
+
B = he(v.Verifications), B.VerificationStatuses.forEach((x) => {
|
|
396
|
+
x.VerificationUrlType !== "Widget" && H.add(x.Vendor);
|
|
397
|
+
}), o(4, q = Y());
|
|
405
398
|
});
|
|
406
399
|
}, de = () => {
|
|
407
|
-
c &&
|
|
400
|
+
c && W();
|
|
408
401
|
}, ue = () => {
|
|
409
|
-
let e = (
|
|
402
|
+
let e = (s || c).split(".")[1];
|
|
410
403
|
if (e) {
|
|
411
|
-
let
|
|
412
|
-
return
|
|
413
|
-
merchantId: o?.mid,
|
|
414
|
-
customerId: `${o?.mid}~${V}`
|
|
415
|
-
};
|
|
404
|
+
let r = JSON.parse(atob(e));
|
|
405
|
+
return r.cdn + "/cashier/operator-assets/" + r?.mid;
|
|
416
406
|
}
|
|
417
|
-
return
|
|
407
|
+
return "";
|
|
418
408
|
}, he = (e) => {
|
|
419
409
|
if (!e || !e.length)
|
|
420
410
|
return {
|
|
421
411
|
VerificationSummaryStatus: m.Unverified,
|
|
422
412
|
VerificationStatuses: []
|
|
423
413
|
};
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
426
|
-
const l = me(
|
|
414
|
+
const r = pe(e);
|
|
415
|
+
if (r && r.length) {
|
|
416
|
+
const l = me(r);
|
|
427
417
|
return {
|
|
428
418
|
VerificationSummaryStatus: l.Status,
|
|
429
419
|
VerificationUrl: l.Flags?.DeferredUrlKey,
|
|
430
|
-
VerificationStatuses:
|
|
420
|
+
VerificationStatuses: K(r, l.Status)
|
|
431
421
|
};
|
|
432
422
|
} else
|
|
433
423
|
return {
|
|
434
424
|
VerificationSummaryStatus: e.some((v) => v.Status === m.Failed) ? m.Failed : m.Verified,
|
|
435
|
-
VerificationStatuses:
|
|
425
|
+
VerificationStatuses: K(e, [m.Failed])
|
|
436
426
|
};
|
|
437
427
|
}, me = (e) => e.reduce(
|
|
438
|
-
(
|
|
428
|
+
(r, l) => r ? new Date(r) < new Date(l) ? l : r : l,
|
|
439
429
|
0
|
|
440
|
-
),
|
|
430
|
+
), K = (e, r) => e.filter((l) => r.includes(l.Status)).map((l) => ({
|
|
441
431
|
Type: l.Type,
|
|
442
432
|
Vendor: l.VendorName,
|
|
443
|
-
VerificationDocuments: l.Documents ? [...
|
|
444
|
-
VerificationUrlType: l.
|
|
445
|
-
VerificationUrl: l.
|
|
446
|
-
})), pe = (e) => e.filter((
|
|
447
|
-
const
|
|
448
|
-
return
|
|
449
|
-
}, ve = (e) => e.VendorName ===
|
|
433
|
+
VerificationDocuments: l.Documents ? [...l.Documents] : [],
|
|
434
|
+
VerificationUrlType: l.FlowInfo?.Type,
|
|
435
|
+
VerificationUrl: l.FlowInfo?.Url
|
|
436
|
+
})), pe = (e) => e.filter((r) => ne.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || ge(r) || ve(r) : !1), ge = (e) => {
|
|
437
|
+
const r = e.Documents && e.VendorName === O.Manual, l = e.Documents && e.Documents.some((v) => v.Status === E.Requested);
|
|
438
|
+
return r && l;
|
|
439
|
+
}, ve = (e) => e.VendorName === O.ShuftiPro && e.Status === m.Referred, Y = () => {
|
|
450
440
|
switch (B.VerificationSummaryStatus) {
|
|
451
441
|
case m.InProgress:
|
|
452
442
|
const e = [];
|
|
453
|
-
return H.forEach((
|
|
454
|
-
e.push(we(
|
|
443
|
+
return H.forEach((r) => {
|
|
444
|
+
e.push(we(r));
|
|
455
445
|
}), e;
|
|
456
446
|
case m.Referred:
|
|
457
|
-
return [
|
|
447
|
+
return [n("verification.idenfy.referred-awaiting")];
|
|
458
448
|
case m.Failed:
|
|
459
|
-
return [
|
|
449
|
+
return [n("verification.message.failed")];
|
|
460
450
|
}
|
|
461
451
|
}, we = (e) => {
|
|
462
|
-
const
|
|
463
|
-
if (e ===
|
|
464
|
-
return ye(
|
|
452
|
+
const r = B.VerificationStatuses.filter((l) => l.Vendor === e);
|
|
453
|
+
if (e === O.ShuftiPro)
|
|
454
|
+
return ye(r);
|
|
465
455
|
{
|
|
466
|
-
const l =
|
|
467
|
-
link: `<a href="${
|
|
456
|
+
const l = n("verification.idenfy.link-name"), v = {
|
|
457
|
+
link: `<a href="${r[0].VerificationUrl}" target="_blank">${l}</a>`
|
|
468
458
|
};
|
|
469
|
-
return
|
|
459
|
+
return n("verification.idenfy.in-progress", { values: v });
|
|
470
460
|
}
|
|
471
461
|
}, ye = (e) => {
|
|
472
|
-
const
|
|
462
|
+
const r = [], l = {}, v = [
|
|
473
463
|
M.Biometric,
|
|
474
464
|
M.Documents,
|
|
475
465
|
M.ProofOfAddress
|
|
476
466
|
];
|
|
477
|
-
e.forEach((
|
|
478
|
-
v.includes(
|
|
467
|
+
e.forEach((_) => {
|
|
468
|
+
v.includes(_.Type) && (r.push(_.Type), l[_.Type] = ke(_, Ve(_.Type)));
|
|
479
469
|
});
|
|
480
|
-
let
|
|
481
|
-
return
|
|
482
|
-
}, ke = (e,
|
|
470
|
+
let x = r.every((_) => N.has(_)), Ae = `verification.shuftipro.in-progress.${r.sort().join(".")}`;
|
|
471
|
+
return x ? n("verification.shuftipro.validations-started") : n(Ae, { values: l });
|
|
472
|
+
}, ke = (e, r) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${r}</a>`, Ve = (e) => n(`verification.shuftipro.link-name.${e}`), R = (e, r) => {
|
|
483
473
|
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
484
474
|
if (e.target.closest(".verificationLink")) {
|
|
485
475
|
const l = e.target.className.split(" ")[1];
|
|
486
|
-
|
|
476
|
+
N.add(l), o(4, q = Y());
|
|
487
477
|
}
|
|
488
478
|
return;
|
|
489
479
|
}
|
|
490
|
-
|
|
491
|
-
},
|
|
492
|
-
|
|
480
|
+
r === 0 && o(5, F = !F);
|
|
481
|
+
}, Pe = () => {
|
|
482
|
+
o(6, j = p === "false");
|
|
493
483
|
}, be = () => {
|
|
494
|
-
|
|
484
|
+
o(8, I = L + "/" + f + "/" + Ye);
|
|
495
485
|
try {
|
|
496
486
|
fetch(I, { method: "HEAD" }).then((e) => {
|
|
497
|
-
|
|
487
|
+
o(7, z = e.ok);
|
|
498
488
|
});
|
|
499
489
|
} catch {
|
|
500
|
-
|
|
490
|
+
o(7, z = !1);
|
|
501
491
|
}
|
|
502
492
|
}, G = () => {
|
|
503
493
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
504
|
-
}, De = (e,
|
|
494
|
+
}, De = (e, r) => R(r, e), Ce = (e, r) => R(r, e), Se = () => G();
|
|
505
495
|
function _e(e) {
|
|
506
|
-
|
|
507
|
-
|
|
496
|
+
xe[e ? "unshift" : "push"](() => {
|
|
497
|
+
S = e, o(3, S);
|
|
508
498
|
});
|
|
509
499
|
}
|
|
510
500
|
return t.$$set = (e) => {
|
|
511
|
-
"endpoint" in e &&
|
|
501
|
+
"endpoint" in e && o(12, d = e.endpoint), "lang" in e && o(13, f = e.lang), "translationurl" in e && o(14, h = e.translationurl), "clientstyling" in e && o(0, a = e.clientstyling), "clientstylingurl" in e && o(1, u = e.clientstylingurl), "session" in e && o(15, s = e.session), "customerid" in e && o(16, P = e.customerid), "ismobileview" in e && o(2, p = e.ismobileview), "playersession" in e && o(17, g = e.playersession);
|
|
512
502
|
}, t.$$.update = () => {
|
|
513
503
|
t.$$.dirty[0] & /*lang*/
|
|
514
|
-
8192 && f && le(), t.$$.dirty[0] & /*endpoint, session*/
|
|
515
|
-
|
|
516
|
-
|
|
504
|
+
8192 && f && le(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
505
|
+
167936 && d && s && g && W(), t.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
506
|
+
167936 && d && !s && g && de(), t.$$.dirty[0] & /*translationurl*/
|
|
517
507
|
16384 && h && ae(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
518
|
-
9 && a &&
|
|
519
|
-
10 && u &&
|
|
520
|
-
4 &&
|
|
521
|
-
|
|
508
|
+
9 && a && S && ce(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
509
|
+
10 && u && S && fe(), t.$$.dirty[0] & /*ismobileview*/
|
|
510
|
+
4 && p && Pe(), t.$$.dirty[0] & /*staticCdnUrl*/
|
|
511
|
+
262144 && L && be();
|
|
522
512
|
}, [
|
|
523
513
|
a,
|
|
524
514
|
u,
|
|
525
|
-
g,
|
|
526
515
|
p,
|
|
516
|
+
S,
|
|
527
517
|
q,
|
|
528
|
-
x,
|
|
529
|
-
N,
|
|
530
518
|
F,
|
|
519
|
+
j,
|
|
520
|
+
z,
|
|
531
521
|
I,
|
|
532
|
-
|
|
533
|
-
|
|
522
|
+
n,
|
|
523
|
+
R,
|
|
534
524
|
G,
|
|
535
525
|
d,
|
|
536
526
|
f,
|
|
537
527
|
h,
|
|
538
|
-
|
|
539
|
-
|
|
528
|
+
s,
|
|
529
|
+
P,
|
|
530
|
+
g,
|
|
540
531
|
L,
|
|
541
532
|
De,
|
|
542
533
|
Ce,
|
|
@@ -544,14 +535,14 @@ function Ye(t, i, r) {
|
|
|
544
535
|
_e
|
|
545
536
|
];
|
|
546
537
|
}
|
|
547
|
-
class
|
|
538
|
+
class Je extends Te {
|
|
548
539
|
constructor(i) {
|
|
549
540
|
super(), Oe(
|
|
550
541
|
this,
|
|
551
542
|
i,
|
|
552
|
-
|
|
543
|
+
Ge,
|
|
553
544
|
Ke,
|
|
554
|
-
|
|
545
|
+
Me,
|
|
555
546
|
{
|
|
556
547
|
endpoint: 12,
|
|
557
548
|
lang: 13,
|
|
@@ -560,9 +551,10 @@ class Ge extends Ae {
|
|
|
560
551
|
clientstylingurl: 1,
|
|
561
552
|
session: 15,
|
|
562
553
|
customerid: 16,
|
|
563
|
-
ismobileview: 2
|
|
554
|
+
ismobileview: 2,
|
|
555
|
+
playersession: 17
|
|
564
556
|
},
|
|
565
|
-
|
|
557
|
+
We,
|
|
566
558
|
[-1, -1]
|
|
567
559
|
);
|
|
568
560
|
}
|
|
@@ -570,52 +562,58 @@ class Ge extends Ae {
|
|
|
570
562
|
return this.$$.ctx[12];
|
|
571
563
|
}
|
|
572
564
|
set endpoint(i) {
|
|
573
|
-
this.$$set({ endpoint: i }),
|
|
565
|
+
this.$$set({ endpoint: i }), y();
|
|
574
566
|
}
|
|
575
567
|
get lang() {
|
|
576
568
|
return this.$$.ctx[13];
|
|
577
569
|
}
|
|
578
570
|
set lang(i) {
|
|
579
|
-
this.$$set({ lang: i }),
|
|
571
|
+
this.$$set({ lang: i }), y();
|
|
580
572
|
}
|
|
581
573
|
get translationurl() {
|
|
582
574
|
return this.$$.ctx[14];
|
|
583
575
|
}
|
|
584
576
|
set translationurl(i) {
|
|
585
|
-
this.$$set({ translationurl: i }),
|
|
577
|
+
this.$$set({ translationurl: i }), y();
|
|
586
578
|
}
|
|
587
579
|
get clientstyling() {
|
|
588
580
|
return this.$$.ctx[0];
|
|
589
581
|
}
|
|
590
582
|
set clientstyling(i) {
|
|
591
|
-
this.$$set({ clientstyling: i }),
|
|
583
|
+
this.$$set({ clientstyling: i }), y();
|
|
592
584
|
}
|
|
593
585
|
get clientstylingurl() {
|
|
594
586
|
return this.$$.ctx[1];
|
|
595
587
|
}
|
|
596
588
|
set clientstylingurl(i) {
|
|
597
|
-
this.$$set({ clientstylingurl: i }),
|
|
589
|
+
this.$$set({ clientstylingurl: i }), y();
|
|
598
590
|
}
|
|
599
591
|
get session() {
|
|
600
592
|
return this.$$.ctx[15];
|
|
601
593
|
}
|
|
602
594
|
set session(i) {
|
|
603
|
-
this.$$set({ session: i }),
|
|
595
|
+
this.$$set({ session: i }), y();
|
|
604
596
|
}
|
|
605
597
|
get customerid() {
|
|
606
598
|
return this.$$.ctx[16];
|
|
607
599
|
}
|
|
608
600
|
set customerid(i) {
|
|
609
|
-
this.$$set({ customerid: i }),
|
|
601
|
+
this.$$set({ customerid: i }), y();
|
|
610
602
|
}
|
|
611
603
|
get ismobileview() {
|
|
612
604
|
return this.$$.ctx[2];
|
|
613
605
|
}
|
|
614
606
|
set ismobileview(i) {
|
|
615
|
-
this.$$set({ ismobileview: i }),
|
|
607
|
+
this.$$set({ ismobileview: i }), y();
|
|
608
|
+
}
|
|
609
|
+
get playersession() {
|
|
610
|
+
return this.$$.ctx[17];
|
|
611
|
+
}
|
|
612
|
+
set playersession(i) {
|
|
613
|
+
this.$$set({ playersession: i }), y();
|
|
616
614
|
}
|
|
617
615
|
}
|
|
618
|
-
|
|
616
|
+
ze(Je, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
|
|
619
617
|
export {
|
|
620
|
-
|
|
618
|
+
Je as default
|
|
621
619
|
};
|