@everymatrix/cashier-page 1.71.1 → 1.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{CashierConfirmModal-DV0Fu11y.js → CashierConfirmModal-4RYp7Eiq.js} +35 -35
- package/components/{CashierConfirmModal-CV61pzu0.js → CashierConfirmModal-untxGhsx.js} +35 -35
- package/components/{CashierError-KyWXtIu0.cjs → CashierError-DfpdiheS.cjs} +3 -16
- package/components/{CashierError-BkScPj8N.js → CashierError-Zu3Whx-d.js} +677 -673
- package/components/{CashierError-ePGalbvr.js → CashierError-yts9rF-i.js} +678 -674
- package/components/{CashierHeader-Kzd3yvU8.cjs → CashierHeader-B9cdsOYh.cjs} +1 -1
- package/components/{CashierHeader-CmPaEysf.js → CashierHeader-BX6LLGb8.js} +36 -36
- package/components/{CashierHeader-Dg8-jl7B.js → CashierHeader-C9V5_NVw.js} +38 -38
- package/components/{CashierIframeRedirect-BQzmSTPm.js → CashierIframeRedirect-3Ttb1Wdk.js} +32 -32
- package/components/{CashierIframeRedirect-BZ1-wCfX.js → CashierIframeRedirect-BIMJNSib.js} +39 -39
- package/components/{CashierIframeRedirect-C4Kr5x_V.cjs → CashierIframeRedirect-NF0DKl7A.cjs} +1 -1
- package/components/{CashierMethodDetails-u_rVUMoj.js → CashierMethodDetails-BC_DBHGl.js} +64 -64
- package/components/{CashierMethodDetails-BtMH6r3Q.cjs → CashierMethodDetails-BprYcCjn.cjs} +1 -1
- package/components/{CashierMethodDetails-B-Yt515D.js → CashierMethodDetails-ziDw_Jnc.js} +64 -64
- package/components/{CashierMethodsList-B60-8CGj.js → CashierMethodsList-BSyNYqdF.js} +106 -106
- package/components/{CashierMethodsList-C0gKCE58.js → CashierMethodsList-B_95Nh79.js} +111 -111
- package/components/{CashierMethodsList-D9ij1wCp.cjs → CashierMethodsList-DYPLv5X8.cjs} +1 -1
- package/components/{CashierModal-BfZMj1i-.js → CashierModal-BrwIBn9a.js} +35 -35
- package/components/{CashierModal-CYI7bxDr.js → CashierModal-ZfKvGxFq.js} +40 -40
- package/components/{CashierNotifications-DvJFewVg.js → CashierNotifications-C48iLynX.js} +19 -19
- package/components/{CashierNotifications-CpgeC0kF.js → CashierNotifications-dn6rnyK_.js} +18 -18
- package/components/{CashierPage-BSMzlPhS.cjs → CashierPage-CLnWIWI0.cjs} +1 -1
- package/components/{CashierPage-COc6NFhD.js → CashierPage-TiCjNJq3.js} +105 -105
- package/components/{CashierPage-DHBbqUWt.js → CashierPage-eEYSJ1Ow.js} +178 -178
- package/components/{CashierReceiptPage-D3Bw6Tn_.cjs → CashierReceiptPage-B_Pn8b0K.cjs} +1 -1
- package/components/{CashierReceiptPage-D_NQ57Oy.js → CashierReceiptPage-CCt-NEa3.js} +28 -28
- package/components/{CashierReceiptPage-CBDfIMBb.js → CashierReceiptPage-XKvPw6Kc.js} +28 -28
- package/components/{CashierSessionExpirationModal-DTUpUyPG.js → CashierSessionExpirationModal-BTK1_Bln.js} +46 -55
- package/components/{CashierSessionExpirationModal-BkTqdGkm.js → CashierSessionExpirationModal-CH6Jq1b5.js} +46 -55
- package/components/{CashierSessionExpirationModal-C6AxEE9Y.cjs → CashierSessionExpirationModal-NsD2ZKK4.cjs} +2 -2
- package/components/{CashierSpinner-CnPYs9vs.js → CashierSpinner-BAfTKICK.js} +17 -17
- package/components/{CashierSpinner-CW0tb4Ek.js → CashierSpinner-y6HodxHT.js} +14 -14
- package/components/{CashierTransactionHistory-Bup4C8pj.js → CashierTransactionHistory-CAZZIa-n.js} +95 -95
- package/components/{CashierTransactionHistory-CNWv0g4p.js → CashierTransactionHistory-CSbp2Y4-.js} +82 -82
- package/components/{CashierTransactionHistory-CEpCPJlj.cjs → CashierTransactionHistory-DeOc9EpW.cjs} +1 -1
- package/components/{CashierVerifications-CkLyuHXz.js → CashierVerifications-7iTWQJHM.js} +47 -47
- package/components/{CashierVerifications-6dPbzzfx.cjs → CashierVerifications-CWGsoL5R.cjs} +1 -1
- package/components/{CashierVerifications-CSGLTMyK.js → CashierVerifications-DMXkMmMm.js} +137 -137
- package/components/{CashierVideoModal-D5QKr-_P.js → CashierVideoModal-CVDvqrcy.js} +39 -39
- package/components/{CashierVideoModal-onqH-Fiw.js → CashierVideoModal-DHNu0BQz.js} +38 -38
- 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/stencil/index-97d17652--F7PvMq9.js +542 -0
- package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
- package/stencil/index-97d17652-CCFHkzJw.js +558 -0
- package/stencil/{ui-image-BMiZteNE.cjs → ui-image-BaHsVAxH.cjs} +1 -1
- package/stencil/{ui-image-CX3MBBZL.js → ui-image-C7s6Uvn5.js} +1 -1
- package/stencil/{ui-image-BW8AeEVd.js → ui-image-CHeV8e9p.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-2Ir9VtWc.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-AJGQkQBu.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-pdIH5TBa.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
- package/stencil/{ui-image_2-_K8Pt3w9.js → ui-image_2-Bm97-wkj.js} +2 -2
- package/stencil/{ui-image_2-BGf0VFLf.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
- package/stencil/{ui-image_2-Dh5Eqdlm.js → ui-image_2-qO3reSlr.js} +2 -2
- package/stencil/index-97d17652-BD-QREJe.js +0 -558
- package/stencil/index-97d17652-DJqGt8q2.js +0 -542
- package/stencil/index-97d17652-tiiCeQFu.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { S as Oe, b as
|
|
2
|
-
import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-
|
|
3
|
-
import { d as $, u as
|
|
1
|
+
import { S as Oe, b as Be, s as Me, f as y, c as Le, n as Z, e as C, J as O, m as S, p as w, v as V, w as X, K as Q, L as xe, D, q as T, A as qe, o as k, B as H, y as Fe, z as ze, E as Ie } from "./CashierConfirmModal-4RYp7Eiq.js";
|
|
2
|
+
import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-Zu3Whx-d.js";
|
|
3
|
+
import { d as $, u as Ne, x as je } from "./CashierMethodDetails-ziDw_Jnc.js";
|
|
4
4
|
function ee(t, i) {
|
|
5
5
|
Ee(t, i);
|
|
6
6
|
}
|
|
@@ -77,12 +77,12 @@ 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-DHNu0BQz.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 Ke(t) {
|
|
85
|
-
|
|
85
|
+
Le(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 te(t, i, r) {
|
|
88
88
|
const n = t.slice();
|
|
@@ -127,10 +127,10 @@ function re(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, c, u);
|
|
134
134
|
},
|
|
135
135
|
p(a, u) {
|
|
136
136
|
if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
@@ -176,7 +176,7 @@ function re(t) {
|
|
|
176
176
|
);
|
|
177
177
|
},
|
|
178
178
|
d(a) {
|
|
179
|
-
a && (
|
|
179
|
+
a && (C(i), C(r), C(n), C(c)), xe(f, a), h && h.d(a);
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
182
|
}
|
|
@@ -197,13 +197,13 @@ function oe(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(d, f) {
|
|
200
|
-
|
|
200
|
+
S(d, i, f), r || (n = H(i, "click", c), 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
|
}
|
|
@@ -236,7 +236,7 @@ function se(t) {
|
|
|
236
236
|
);
|
|
237
237
|
},
|
|
238
238
|
m(g, v) {
|
|
239
|
-
|
|
239
|
+
S(g, i, v), k(i, r), k(i, n), k(i, c), c.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = H(i, "click", P), a = !0);
|
|
240
240
|
},
|
|
241
241
|
p(g, v) {
|
|
242
242
|
t = g, v[0] & /*displayMessages*/
|
|
@@ -252,7 +252,7 @@ function se(t) {
|
|
|
252
252
|
);
|
|
253
253
|
},
|
|
254
254
|
d(g) {
|
|
255
|
-
g &&
|
|
255
|
+
g && C(i), s && s.d(), a = !1, u();
|
|
256
256
|
}
|
|
257
257
|
};
|
|
258
258
|
}
|
|
@@ -263,7 +263,7 @@ function ne(t) {
|
|
|
263
263
|
), f, 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>', n = T(), c = w("div"), f =
|
|
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 = T(), c = w("div"), f = ze(d), V(r, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), O(
|
|
267
267
|
c,
|
|
268
268
|
"CashierVerificationVideoLinkDesktop",
|
|
269
269
|
/*desktopView*/
|
|
@@ -271,7 +271,7 @@ function ne(t) {
|
|
|
271
271
|
), V(i, "class", "CashierVerificationVideo");
|
|
272
272
|
},
|
|
273
273
|
m(u, s) {
|
|
274
|
-
|
|
274
|
+
S(u, i, s), k(i, r), k(i, n), k(i, c), k(c, f), h || (a = H(
|
|
275
275
|
c,
|
|
276
276
|
"click",
|
|
277
277
|
/*click_handler_2*/
|
|
@@ -281,7 +281,7 @@ function ne(t) {
|
|
|
281
281
|
p(u, s) {
|
|
282
282
|
s[0] & /*$_*/
|
|
283
283
|
512 && d !== (d = /*$_*/
|
|
284
|
-
u[9]("verification.video.how-to") + "") &&
|
|
284
|
+
u[9]("verification.video.how-to") + "") && Fe(f, d), s[0] & /*desktopView*/
|
|
285
285
|
64 && O(
|
|
286
286
|
c,
|
|
287
287
|
"CashierVerificationVideoLinkDesktop",
|
|
@@ -290,7 +290,7 @@ function ne(t) {
|
|
|
290
290
|
);
|
|
291
291
|
},
|
|
292
292
|
d(u) {
|
|
293
|
-
u &&
|
|
293
|
+
u && C(i), h = !1, a();
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
@@ -309,7 +309,7 @@ function Ye(t) {
|
|
|
309
309
|
);
|
|
310
310
|
},
|
|
311
311
|
m(n, c) {
|
|
312
|
-
|
|
312
|
+
S(n, i, c), r && r.m(i, null), t[22](i);
|
|
313
313
|
},
|
|
314
314
|
p(n, c) {
|
|
315
315
|
/*displayMessages*/
|
|
@@ -321,22 +321,22 @@ function Ye(t) {
|
|
|
321
321
|
n[6]
|
|
322
322
|
);
|
|
323
323
|
},
|
|
324
|
-
i:
|
|
325
|
-
o:
|
|
324
|
+
i: Z,
|
|
325
|
+
o: Z,
|
|
326
326
|
d(n) {
|
|
327
|
-
n &&
|
|
327
|
+
n && C(i), r && r.d(), t[22](null);
|
|
328
328
|
}
|
|
329
329
|
};
|
|
330
330
|
}
|
|
331
331
|
const Ge = "verification_explanation_video_widgets.MP4";
|
|
332
|
-
function
|
|
332
|
+
function Je(t, i, r) {
|
|
333
333
|
let n, c;
|
|
334
|
-
X(t, He, (e) => r(9, n = e)), X(t,
|
|
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: g = "" } = i, { playersession: v = "" } = i, _,
|
|
336
|
-
var
|
|
334
|
+
X(t, He, (e) => r(9, n = e)), X(t, je, (e) => r(28, c = e)), $.extend(Ne);
|
|
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: g = "" } = i, { playersession: v = "" } = i, _, N = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), L, x, F, z = !0, W = !0, I = !1, E = "";
|
|
336
|
+
var B;
|
|
337
337
|
(function(e) {
|
|
338
338
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
339
|
-
})(
|
|
339
|
+
})(B || (B = {}));
|
|
340
340
|
var R;
|
|
341
341
|
(function(e) {
|
|
342
342
|
e.Requested = "Requested";
|
|
@@ -345,10 +345,10 @@ function Ze(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 ae = [
|
|
353
353
|
p.InProgress,
|
|
354
354
|
p.Referred,
|
|
@@ -394,7 +394,7 @@ function Ze(t, i, r) {
|
|
|
394
394
|
fetch(e, l).then((m) => m.json()).then((m) => {
|
|
395
395
|
const b = ue(m == null ? void 0 : m.Verifications);
|
|
396
396
|
L = pe(b), L.VerificationStatuses.forEach((q) => {
|
|
397
|
-
q.VerificationUrlType !== "Widget" &&
|
|
397
|
+
q.VerificationUrlType !== "Widget" && N.add(q.Vendor);
|
|
398
398
|
}), r(4, F = G());
|
|
399
399
|
});
|
|
400
400
|
}, ue = (e) => e ? e.sort((o, l) => new Date(l.Created).getTime() - new Date(o.Created).getTime()) : [], he = () => {
|
|
@@ -439,13 +439,13 @@ function Ze(t, i, r) {
|
|
|
439
439
|
VerificationUrl: (b = l.FlowInfo) == null ? void 0 : b.Url
|
|
440
440
|
};
|
|
441
441
|
}), ve = (e) => e.filter((o) => ae.includes(o.Status) ? o.FlowInfo && o.FlowInfo.Url || we(o) || ye(o) : !1), we = (e) => {
|
|
442
|
-
const o = e.Documents && e.VendorName ===
|
|
442
|
+
const o = e.Documents && e.VendorName === B.Manual, l = e.Documents && e.Documents.some((m) => m.Status === R.Requested);
|
|
443
443
|
return o && l;
|
|
444
|
-
}, ye = (e) => e.VendorName ===
|
|
444
|
+
}, ye = (e) => e.VendorName === B.ShuftiPro && e.Status === p.Referred, G = () => {
|
|
445
445
|
switch (L.VerificationSummaryStatus) {
|
|
446
446
|
case p.InProgress:
|
|
447
447
|
const e = [];
|
|
448
|
-
return
|
|
448
|
+
return N.forEach((o) => {
|
|
449
449
|
e.push(ke(o));
|
|
450
450
|
}), e;
|
|
451
451
|
case p.Referred:
|
|
@@ -455,7 +455,7 @@ function Ze(t, i, r) {
|
|
|
455
455
|
}
|
|
456
456
|
}, ke = (e) => {
|
|
457
457
|
const o = L.VerificationStatuses.filter((l) => l.Vendor === e);
|
|
458
|
-
if (e ===
|
|
458
|
+
if (e === B.ShuftiPro)
|
|
459
459
|
return Ve(o);
|
|
460
460
|
{
|
|
461
461
|
const l = n("verification.idenfy.link-name"), m = {
|
|
@@ -465,20 +465,20 @@ function Ze(t, i, r) {
|
|
|
465
465
|
}
|
|
466
466
|
}, Ve = (e) => {
|
|
467
467
|
const o = [], l = {}, m = [
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
468
|
+
M.Biometric,
|
|
469
|
+
M.Documents,
|
|
470
|
+
M.ProofOfAddress
|
|
471
471
|
];
|
|
472
472
|
e.forEach((A) => {
|
|
473
473
|
m.includes(A.Type) && (o.push(A.Type), l[A.Type] = Pe(A, be(A.Type)));
|
|
474
474
|
});
|
|
475
|
-
let b = o.every((A) =>
|
|
475
|
+
let b = o.every((A) => j.has(A)), q = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
|
|
476
476
|
return b ? n("verification.shuftipro.validations-started") : n(q, { values: l });
|
|
477
477
|
}, Pe = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, be = (e) => n(`verification.shuftipro.link-name.${e}`), U = (e, o) => {
|
|
478
478
|
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
479
479
|
if (e.target.closest(".verificationLink")) {
|
|
480
480
|
const l = e.target.className.split(" ")[1];
|
|
481
|
-
|
|
481
|
+
j.add(l), r(4, F = G());
|
|
482
482
|
}
|
|
483
483
|
return;
|
|
484
484
|
}
|
|
@@ -494,11 +494,11 @@ function Ze(t, i, r) {
|
|
|
494
494
|
} catch (e) {
|
|
495
495
|
r(7, I = !1);
|
|
496
496
|
}
|
|
497
|
-
},
|
|
497
|
+
}, J = () => {
|
|
498
498
|
window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
|
|
499
|
-
}, Se = (e, o) => U(o, e), _e = (e, o) => U(o, e), Ae = () =>
|
|
499
|
+
}, Se = (e, o) => U(o, e), _e = (e, o) => U(o, e), Ae = () => J();
|
|
500
500
|
function Te(e) {
|
|
501
|
-
|
|
501
|
+
qe[e ? "unshift" : "push"](() => {
|
|
502
502
|
_ = e, r(3, _);
|
|
503
503
|
});
|
|
504
504
|
}
|
|
@@ -526,7 +526,7 @@ function Ze(t, i, r) {
|
|
|
526
526
|
E,
|
|
527
527
|
n,
|
|
528
528
|
U,
|
|
529
|
-
|
|
529
|
+
J,
|
|
530
530
|
d,
|
|
531
531
|
f,
|
|
532
532
|
h,
|
|
@@ -540,14 +540,14 @@ function Ze(t, i, r) {
|
|
|
540
540
|
Te
|
|
541
541
|
];
|
|
542
542
|
}
|
|
543
|
-
class
|
|
543
|
+
class Ze extends Oe {
|
|
544
544
|
constructor(i) {
|
|
545
|
-
super(),
|
|
545
|
+
super(), Be(
|
|
546
546
|
this,
|
|
547
547
|
i,
|
|
548
|
-
|
|
548
|
+
Je,
|
|
549
549
|
Ye,
|
|
550
|
-
|
|
550
|
+
Me,
|
|
551
551
|
{
|
|
552
552
|
endpoint: 12,
|
|
553
553
|
lang: 13,
|
|
@@ -618,7 +618,7 @@ class Je extends Oe {
|
|
|
618
618
|
this.$$set({ playersession: i }), y();
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
|
-
|
|
621
|
+
Ie(Ze, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
|
|
622
622
|
export {
|
|
623
|
-
|
|
623
|
+
Ze as default
|
|
624
624
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),T=require("./CashierError-KyWXtIu0.cjs"),A=require("./CashierMethodDetails-BtMH6r3Q.cjs");function j(r,t){T.addMessages(r,t)}function ke(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const N={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function _e(r){i.append_styles(r,"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)}")}function W(r,t,o){const a=r.slice();return a[53]=t[o],a[55]=o,a}function Y(r){let t,o,a,f,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=G(W(r,u,l));let m=r[7]&&Z(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=i.space(),f=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(f,"clientstylingurl",r[1]),i.set_custom_element_data(f,"clientstyling",r[0]),i.set_custom_element_data(f,"ismobileview",r[2]),i.set_custom_element_data(f,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,f,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const y=W(l,u,s);d[s]?d[s].p(y,h):(d[s]=G(y),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=Z(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(f,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(f,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(f,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(f,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(f)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function f(...u){return r[19](r[55],...u)}return{c(){t=i.element("span"),t.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>',i.attr(t,"class","CashierVerificationChevron")},m(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",f),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function G(r){let t,o,a,f,u=r[53]+"",d,m,l,h,s=r[4].length>1&&r[55]===0&&K(r);function y(...v){return r[20](r[55],...v)}return{c(){t=i.element("div"),o=i.element("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>',a=i.space(),f=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(f,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,f),f.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",y),l=!0)},p(v,w){r=v,w[0]&16&&u!==(u=r[53]+"")&&(f.innerHTML=u),r[4].length>1&&r[55]===0?s?s.p(r,w):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),s&&s.d(),l=!1,h()}}}function Z(r){let t,o,a,f,u=r[9]("verification.video.how-to")+"",d,m,l;return{c(){t=i.element("div"),o=i.element("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>',a=i.space(),f=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(f,"class","CashierVerificationVideoLink"),i.toggle_class(f,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,f),i.append(f,d),m||(l=i.listen(f,"click",r[21]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(f,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function Ve(r){let t,o=r[4]&&Y(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,f){i.insert(a,t,f),o&&o.m(t,null),r[22](t)},p(a,f){a[4]?o?o.p(a,f):(o=Y(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),f[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[22](null)}}}const Pe="verification_explanation_video_widgets.MP4";function be(r,t,o){let a,f;i.component_subscribe(r,T.$format,e=>o(9,a=e)),i.component_subscribe(r,A.xPaymentSessionToken,e=>o(28,f=e)),A.dayjs.extend(A.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,_,F=new Set,z=new Set,D,C,O,M=!0,I=!0,B=!1,L="";var P;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(P||(P={}));var q;(function(e){e.Requested="Requested"})(q||(q={}));var g;(function(e){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"})(g||(g={}));var b;(function(e){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"})(b||(b={}));const X=[g.InProgress,g.Referred,g.AwaitingForResponse],Q=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(c=>{j(c,n[c])})}).catch(n=>{console.log(n)})};Object.keys(N).forEach(e=>{j(e,N[e])});const $=()=>{ke(d)},ee=()=>{let e=document.createElement("style");e.innerHTML=l,_.appendChild(e)},ie=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(c=>c.text()).then(c=>{n.innerHTML=c,setTimeout(()=>{_.appendChild(n)},1)})},E=()=>{o(18,C=oe());const e=new URL(`${u}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",A.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:n,body:JSON.stringify({})};fetch(e,c).then(p=>p.json()).then(p=>{const k=te(p==null?void 0:p.Verifications);D=ne(k),D.VerificationStatuses.forEach(S=>{S.VerificationUrlType!=="Widget"&&F.add(S.Vendor)}),o(4,O=U())})},te=e=>e?e.sort((n,c)=>new Date(c.Created).getTime()-new Date(n.Created).getTime()):[],re=()=>{f&&E()},oe=()=>{let e=(s||f).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},ne=e=>{var c;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ae(e);if(n&&n.length){const p=se(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:R(e,[g.Failed])}},se=e=>e.reduce((n,c)=>n?new Date(n)<new Date(c)?c:n:c,0),R=(e,n)=>e.filter(c=>n.includes(c.Status)).map(c=>{var p,k;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=c.FlowInfo)==null?void 0:k.Url}}),ae=e=>e.filter(n=>X.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||le(n)||ce(n):!1),le=e=>{const n=e.Documents&&e.VendorName===P.Manual,c=e.Documents&&e.Documents.some(p=>p.Status===q.Requested);return n&&c},ce=e=>e.VendorName===P.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(fe(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},fe=e=>{const n=D.VerificationStatuses.filter(c=>c.Vendor===e);if(e===P.ShuftiPro)return de(n);{const c=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${c}</a>`};return a("verification.idenfy.in-progress",{values:p})}},de=e=>{const n=[],c={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(V=>{p.includes(V.Type)&&(n.push(V.Type),c[V.Type]=ue(V,he(V.Type)))});let k=n.every(V=>z.has(V)),S=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(S,{values:c})},ue=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,he=e=>a(`verification.shuftipro.link-name.${e}`),x=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const c=e.target.className.split(" ")[1];z.add(c),o(4,O=U())}return}n===0&&o(5,M=!M)},me=()=>{o(6,I=v==="false")},pe=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,B=e.ok)})}catch(e){o(7,B=!1)}},H=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},ge=(e,n)=>x(n,e),ve=(e,n)=>x(n,e),we=()=>H();function ye(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(17,w=e.playersession)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&$(),r.$$.dirty[0]&167936&&u&&s&&w&&E(),r.$$.dirty[0]&167936&&u&&!s&&w&&re(),r.$$.dirty[0]&16384&&m&&Q(),r.$$.dirty[0]&9&&l&&_&&ee(),r.$$.dirty[0]&10&&h&&_&&ie(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&262144&&C&&pe()},[l,h,v,_,O,M,I,B,L,a,x,H,u,d,m,s,y,w,C,ge,ve,we,ye]}class J extends i.SvelteComponent{constructor(t){super(),i.init(this,t,be,Ve,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2,playersession:17},_e,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[17]}set playersession(t){this.$$set({playersession:t}),i.flush()}}i.create_custom_element(J,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{}},[],[],!0);exports.default=J;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),T=require("./CashierError-DfpdiheS.cjs"),A=require("./CashierMethodDetails-BprYcCjn.cjs");function j(r,t){T.addMessages(r,t)}function ke(r){T.init({fallbackLocale:"en"}),T.$locale.set(r)}const N={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function _e(r){i.append_styles(r,"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)}")}function W(r,t,o){const a=r.slice();return a[53]=t[o],a[55]=o,a}function Y(r){let t,o,a,f,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=G(W(r,u,l));let m=r[7]&&Z(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=i.space(),f=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(f,"clientstylingurl",r[1]),i.set_custom_element_data(f,"clientstyling",r[0]),i.set_custom_element_data(f,"ismobileview",r[2]),i.set_custom_element_data(f,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,f,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const y=W(l,u,s);d[s]?d[s].p(y,h):(d[s]=G(y),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=Z(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(f,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(f,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(f,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(f,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(f)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function f(...u){return r[19](r[55],...u)}return{c(){t=i.element("span"),t.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>',i.attr(t,"class","CashierVerificationChevron")},m(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",f),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function G(r){let t,o,a,f,u=r[53]+"",d,m,l,h,s=r[4].length>1&&r[55]===0&&K(r);function y(...v){return r[20](r[55],...v)}return{c(){t=i.element("div"),o=i.element("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>',a=i.space(),f=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(f,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,f),f.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",y),l=!0)},p(v,w){r=v,w[0]&16&&u!==(u=r[53]+"")&&(f.innerHTML=u),r[4].length>1&&r[55]===0?s?s.p(r,w):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),s&&s.d(),l=!1,h()}}}function Z(r){let t,o,a,f,u=r[9]("verification.video.how-to")+"",d,m,l;return{c(){t=i.element("div"),o=i.element("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>',a=i.space(),f=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(f,"class","CashierVerificationVideoLink"),i.toggle_class(f,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,f),i.append(f,d),m||(l=i.listen(f,"click",r[21]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(f,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function Ve(r){let t,o=r[4]&&Y(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,f){i.insert(a,t,f),o&&o.m(t,null),r[22](t)},p(a,f){a[4]?o?o.p(a,f):(o=Y(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),f[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[22](null)}}}const Pe="verification_explanation_video_widgets.MP4";function be(r,t,o){let a,f;i.component_subscribe(r,T.$format,e=>o(9,a=e)),i.component_subscribe(r,A.xPaymentSessionToken,e=>o(28,f=e)),A.dayjs.extend(A.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,_,F=new Set,z=new Set,D,C,O,M=!0,I=!0,B=!1,L="";var P;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(P||(P={}));var q;(function(e){e.Requested="Requested"})(q||(q={}));var g;(function(e){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"})(g||(g={}));var b;(function(e){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"})(b||(b={}));const X=[g.InProgress,g.Referred,g.AwaitingForResponse],Q=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(c=>{j(c,n[c])})}).catch(n=>{console.log(n)})};Object.keys(N).forEach(e=>{j(e,N[e])});const $=()=>{ke(d)},ee=()=>{let e=document.createElement("style");e.innerHTML=l,_.appendChild(e)},ie=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(c=>c.text()).then(c=>{n.innerHTML=c,setTimeout(()=>{_.appendChild(n)},1)})},E=()=>{o(18,C=oe());const e=new URL(`${u}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",A.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:n,body:JSON.stringify({})};fetch(e,c).then(p=>p.json()).then(p=>{const k=te(p==null?void 0:p.Verifications);D=ne(k),D.VerificationStatuses.forEach(S=>{S.VerificationUrlType!=="Widget"&&F.add(S.Vendor)}),o(4,O=U())})},te=e=>e?e.sort((n,c)=>new Date(c.Created).getTime()-new Date(n.Created).getTime()):[],re=()=>{f&&E()},oe=()=>{let e=(s||f).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},ne=e=>{var c;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ae(e);if(n&&n.length){const p=se(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:R(e,[g.Failed])}},se=e=>e.reduce((n,c)=>n?new Date(n)<new Date(c)?c:n:c,0),R=(e,n)=>e.filter(c=>n.includes(c.Status)).map(c=>{var p,k;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=c.FlowInfo)==null?void 0:k.Url}}),ae=e=>e.filter(n=>X.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||le(n)||ce(n):!1),le=e=>{const n=e.Documents&&e.VendorName===P.Manual,c=e.Documents&&e.Documents.some(p=>p.Status===q.Requested);return n&&c},ce=e=>e.VendorName===P.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(fe(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},fe=e=>{const n=D.VerificationStatuses.filter(c=>c.Vendor===e);if(e===P.ShuftiPro)return de(n);{const c=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${c}</a>`};return a("verification.idenfy.in-progress",{values:p})}},de=e=>{const n=[],c={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(V=>{p.includes(V.Type)&&(n.push(V.Type),c[V.Type]=ue(V,he(V.Type)))});let k=n.every(V=>z.has(V)),S=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(S,{values:c})},ue=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,he=e=>a(`verification.shuftipro.link-name.${e}`),x=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const c=e.target.className.split(" ")[1];z.add(c),o(4,O=U())}return}n===0&&o(5,M=!M)},me=()=>{o(6,I=v==="false")},pe=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,B=e.ok)})}catch(e){o(7,B=!1)}},H=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},ge=(e,n)=>x(n,e),ve=(e,n)=>x(n,e),we=()=>H();function ye(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(17,w=e.playersession)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&$(),r.$$.dirty[0]&167936&&u&&s&&w&&E(),r.$$.dirty[0]&167936&&u&&!s&&w&&re(),r.$$.dirty[0]&16384&&m&&Q(),r.$$.dirty[0]&9&&l&&_&&ee(),r.$$.dirty[0]&10&&h&&_&&ie(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&262144&&C&&pe()},[l,h,v,_,O,M,I,B,L,a,x,H,u,d,m,s,y,w,C,ge,ve,we,ye]}class J extends i.SvelteComponent{constructor(t){super(),i.init(this,t,be,Ve,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2,playersession:17},_e,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[17]}set playersession(t){this.$$set({playersession:t}),i.flush()}}i.create_custom_element(J,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{}},[],[],!0);exports.default=J;
|