@everymatrix/cashier-page 1.77.25 → 1.77.26
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/{CashierCarousel-D9RhCULN.js → CashierCarousel-8hy7C-Hc.js} +970 -991
- package/components/CashierCarousel-CMHHOrjm.cjs +23 -0
- package/components/{CashierCarousel-C-jIotRi.js → CashierCarousel-CTAl631F.js} +1141 -1162
- package/components/{CashierError-DFUpmwPW.js → CashierError-B-mGufxN.js} +29 -29
- package/components/{CashierError-gMoSUhpw.js → CashierError-BpvGGYHk.js} +32 -32
- package/components/{CashierError-am916cR_.cjs → CashierError-DXU0vohJ.cjs} +1 -1
- package/components/{CashierHeader-Z4vR_fbH.js → CashierHeader-BbPVdDSy.js} +49 -49
- package/components/{CashierHeader-B3IckLiD.cjs → CashierHeader-Ch27ai33.cjs} +1 -1
- package/components/{CashierHeader-CK_NVBvX.js → CashierHeader-Dt53rt72.js} +50 -50
- package/components/{CashierIframeRedirect-CdQkuIPa.cjs → CashierIframeRedirect-C_lzvCiQ.cjs} +1 -1
- package/components/{CashierIframeRedirect-Cae_sEXq.js → CashierIframeRedirect-DDwa62_J.js} +32 -32
- package/components/{CashierIframeRedirect-Cs3dAZqE.js → CashierIframeRedirect-DFqk8jV8.js} +42 -42
- package/components/{CashierMethodDetails-khwdIxvu.js → CashierMethodDetails-BswSN85a.js} +522 -522
- package/components/{CashierMethodDetails-DWh8sNEJ.js → CashierMethodDetails-CGu0vT5f.js} +180 -180
- package/components/{CashierMethodDetails-f2nVnAEu.cjs → CashierMethodDetails-DEqy0Axp.cjs} +2 -2
- package/components/{CashierMethodsList-DXkNlgio.js → CashierMethodsList-D9pQQPn8.js} +39 -39
- package/components/{CashierMethodsList-DeCIPW3N.cjs → CashierMethodsList-DfTNLel1.cjs} +1 -1
- package/components/{CashierMethodsList-CZkxXZST.js → CashierMethodsList-wKjHJTnI.js} +38 -38
- package/components/{CashierModal-By3PyyVz.js → CashierModal-C4wQBswd.js} +36 -36
- package/components/{CashierModal-pKGYmx2d.js → CashierModal-DJYOMvm6.js} +37 -37
- package/components/{CashierModal-D2cxw8Kv.cjs → CashierModal-Nya61zKi.cjs} +1 -1
- package/components/{CashierNotifications-Cot8tKyV.js → CashierNotifications-CuIRG1fU.js} +33 -33
- package/components/{CashierNotifications-64xrf21d.js → CashierNotifications-D3DnlGgu.js} +34 -34
- package/components/{CashierNotifications-o1UTpxCw.cjs → CashierNotifications-U6wVwYzB.cjs} +1 -1
- package/components/{CashierPage-D537sTlX.js → CashierPage-BRGPiScz.js} +115 -115
- package/components/{CashierPage-CDVatUXZ.js → CashierPage-CeQNpD59.js} +138 -138
- package/components/{CashierPage-CJxWyfnl.cjs → CashierPage-Cntnp_3f.cjs} +1 -1
- package/components/{CashierReceiptPage-ZjlpnjxZ.js → CashierReceiptPage-BJ33QbnV.js} +85 -85
- package/components/{CashierReceiptPage-DJVOcSy_.js → CashierReceiptPage-ClJPgidb.js} +88 -88
- package/components/{CashierReceiptPage-vffilP0r.cjs → CashierReceiptPage-KWljug_9.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-BfRG-VY2.js → CashierSessionExpirationModal-BV2HUMWf.js} +59 -50
- package/components/{CashierSessionExpirationModal-BCfqE6Qk.js → CashierSessionExpirationModal-CvGVtyf5.js} +118 -109
- package/components/{CashierSessionExpirationModal-BgZuMP6W.cjs → CashierSessionExpirationModal-DITljBPL.cjs} +2 -2
- package/components/{CashierSpinner-fUvoz21a.js → CashierSpinner-BSlrvjni.js} +16 -16
- package/components/{CashierSpinner-CIpXwm9I.js → CashierSpinner-C175vtkA.js} +16 -16
- package/components/{CashierSpinner-DOCzNsD8.cjs → CashierSpinner-msj_XpO-.cjs} +1 -1
- package/components/{CashierTransactionHistory-C_77nNRF.cjs → CashierTransactionHistory-CfOZEGn-.cjs} +1 -1
- package/components/{CashierTransactionHistory-DLBclLcC.js → CashierTransactionHistory-Cv2FL_zi.js} +104 -104
- package/components/{CashierTransactionHistory-CHPwXvGA.js → CashierTransactionHistory-DFs4bnVj.js} +61 -61
- package/components/{CashierVerifications-B-e9bu7a.js → CashierVerifications-Bl-okfn_.js} +75 -75
- package/components/{CashierVerifications-D1I7kgbX.cjs → CashierVerifications-C7-keFiS.cjs} +1 -1
- package/components/{CashierVerifications-DAfJTpBE.js → CashierVerifications-DdisN2u9.js} +36 -36
- package/components/{TxnStatusIcon-C5YEVJGC.js → TxnStatusIcon-DLuaaRoA.js} +19 -19
- package/components/{TxnStatusIcon-Dx4SpBKR.cjs → TxnStatusIcon-Dfxg1kzJ.cjs} +1 -1
- package/components/{TxnStatusIcon-Cdbn57Qc.js → TxnStatusIcon-mzkkoROK.js} +19 -19
- package/components/{TxnTypeIcons-DaYTcY0u.js → TxnTypeIcons-CHAbo_FI.js} +14 -14
- package/components/{TxnTypeIcons-Dl8aWDV4.js → TxnTypeIcons-D3fc1OY6.js} +14 -14
- package/components/{TxnTypeIcons-D-p9WLvQ.cjs → TxnTypeIcons-DIvNxsdh.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/stencil/index-97d17652-BD-QREJe.js +558 -0
- package/stencil/index-97d17652-DJqGt8q2.js +542 -0
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/index-b2193545-BhpttWPO.cjs +1 -0
- package/stencil/index-b2193545-DWKmtYUG.js +503 -0
- package/stencil/index-b2193545-Dfy4Cgny.js +519 -0
- package/stencil/{ui-image-BWJXFWH1.js → ui-image-4dZyD9yF.js} +1 -1
- package/stencil/{ui-image-DIEeZy5u.js → ui-image-6u7OR3Eo.js} +1 -1
- package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-CER01gdl.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/stencil/{ui-skeleton-4-zrLsIW.js → ui-skeleton-BTr272EW.js} +2 -2
- package/stencil/{ui-skeleton-9boHSjtG.js → ui-skeleton-P4PO_42z.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-IN_dPA5_.js → ui-skeleton-ae35c6f2-BIdXBK8D.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-8tYGV8SR.js → ui-skeleton-ae35c6f2-C7WHUwAT.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CKgUXOQC.cjs → ui-skeleton-ae35c6f2-D-MGUxCy.cjs} +1 -1
- package/stencil/{ui-skeleton-_yJvAdAL.cjs → ui-skeleton-gIFE_2eg.cjs} +1 -1
- package/components/CashierCarousel-DXPbv83E.cjs +0 -23
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
- package/stencil/index-b2193545-B8kMF2bI.cjs +0 -1
- package/stencil/index-b2193545-BoSqyMpB.js +0 -519
- package/stencil/index-b2193545-D4dOaNlR.js +0 -503
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { d as Q, u as Ye, x as Ke } from "./CashierMethodDetails-
|
|
1
|
+
import { a as xe, i as Fe, $ as Oe, S as Be, b as Me, f as T, c as qe, s as Le, d as Ee, g as b, j as l, O as F, k as O, I as G, q as B, r as J, v as ze, w as Ie, x as Re, P as He, D as Ue, E as je, G as U, R as X, Z as j, h as E, z as se, l as g, B as ne, A as ae, U as Ne, H as We } from "./CashierCarousel-CTAl631F.js";
|
|
2
|
+
import { d as Q, u as Ye, x as Ke } from "./CashierMethodDetails-CGu0vT5f.js";
|
|
3
3
|
function $(o, i) {
|
|
4
|
-
|
|
4
|
+
xe(o, i);
|
|
5
5
|
}
|
|
6
6
|
function Ze(o) {
|
|
7
|
-
|
|
7
|
+
Fe({
|
|
8
8
|
fallbackLocale: "en"
|
|
9
9
|
}), Oe.set(o);
|
|
10
10
|
}
|
|
@@ -68,7 +68,7 @@ const ee = {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
function Ge(o) {
|
|
71
|
-
|
|
71
|
+
Ee(o, "svelte-16iaxkf", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--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%;background-color:var(--emw--color-white, #ffffff);border-radius:10px}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.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(--emw--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:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}p{color:var(--emw--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}.text a{color:var(--emw--color-primary, #3854FF);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--emw--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(--emw--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;fill:var(--emw--color-primary, #3854FF)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #3854FF);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
|
|
72
72
|
}
|
|
73
73
|
function ie(o, i, t) {
|
|
74
74
|
const s = o.slice();
|
|
@@ -84,14 +84,14 @@ function Je(o) {
|
|
|
84
84
|
i = b("div"), t && t.c(), l(i, "class", "CashierVerificationsWrapper");
|
|
85
85
|
},
|
|
86
86
|
m(s, n) {
|
|
87
|
-
|
|
87
|
+
O(s, i, n), t && t.m(i, null);
|
|
88
88
|
},
|
|
89
89
|
p(s, n) {
|
|
90
90
|
/*displayMessages*/
|
|
91
91
|
s[3].length > 0 ? t ? t.p(s, n) : (t = te(s), t.c(), t.m(i, null)) : t && (t.d(1), t = null);
|
|
92
92
|
},
|
|
93
93
|
d(s) {
|
|
94
|
-
s &&
|
|
94
|
+
s && B(i), t && t.d();
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
}
|
|
@@ -112,7 +112,7 @@ function Xe(o) {
|
|
|
112
112
|
);
|
|
113
113
|
},
|
|
114
114
|
m(t, s) {
|
|
115
|
-
|
|
115
|
+
O(t, i, s);
|
|
116
116
|
},
|
|
117
117
|
p(t, s) {
|
|
118
118
|
s[0] & /*clientstylingurl*/
|
|
@@ -130,7 +130,7 @@ function Xe(o) {
|
|
|
130
130
|
);
|
|
131
131
|
},
|
|
132
132
|
d(t) {
|
|
133
|
-
t &&
|
|
133
|
+
t && B(i);
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
136
|
}
|
|
@@ -138,7 +138,7 @@ function te(o) {
|
|
|
138
138
|
let i, t, s, n, a, d, v, C = (
|
|
139
139
|
/*$_*/
|
|
140
140
|
o[8]("verificationsRequired") + ""
|
|
141
|
-
),
|
|
141
|
+
), k, V, _, A, w, D, q, R, S = X(
|
|
142
142
|
/*displayMessages*/
|
|
143
143
|
o[3]
|
|
144
144
|
), h = [];
|
|
@@ -150,15 +150,15 @@ function te(o) {
|
|
|
150
150
|
);
|
|
151
151
|
return {
|
|
152
152
|
c() {
|
|
153
|
-
i = b("div"), t = j("svg"), s = j("path"), n = j("path"), a = j("path"), d = E(), v = b("p"),
|
|
153
|
+
i = b("div"), t = j("svg"), s = j("path"), n = j("path"), a = j("path"), d = E(), v = b("p"), k = se(C), V = E(), _ = b("span"), _.innerHTML = '<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>', A = E(), w = b("div");
|
|
154
154
|
for (let f = 0; f < h.length; f += 1)
|
|
155
155
|
h[f].c();
|
|
156
|
-
D = E(), p && p.c(), l(s, "d", "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"), l(s, "stroke", "#6E738F"), l(s, "stroke-width", "2"), l(s, "stroke-linecap", "round"), l(s, "stroke-linejoin", "round"), l(n, "d", "M12 8V12"), l(n, "stroke", "#6E738F"), l(n, "stroke-width", "2"), l(n, "stroke-linecap", "round"), l(n, "stroke-linejoin", "round"), l(a, "d", "M12 16H12.01"), l(a, "stroke", "#6E738F"), l(a, "stroke-width", "2"), l(a, "stroke-linecap", "round"), l(a, "stroke-linejoin", "round"), l(t, "width", "24"), l(t, "height", "24"), l(t, "viewBox", "0 0 24 24"), l(t, "fill", "none"), l(t, "xmlns", "http://www.w3.org/2000/svg"), l(_, "class", "CashierVerificationChevron"),
|
|
156
|
+
D = E(), p && p.c(), l(s, "d", "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"), l(s, "stroke", "#6E738F"), l(s, "stroke-width", "2"), l(s, "stroke-linecap", "round"), l(s, "stroke-linejoin", "round"), l(n, "d", "M12 8V12"), l(n, "stroke", "#6E738F"), l(n, "stroke-width", "2"), l(n, "stroke-linecap", "round"), l(n, "stroke-linejoin", "round"), l(a, "d", "M12 16H12.01"), l(a, "stroke", "#6E738F"), l(a, "stroke-width", "2"), l(a, "stroke-linecap", "round"), l(a, "stroke-linejoin", "round"), l(t, "width", "24"), l(t, "height", "24"), l(t, "viewBox", "0 0 24 24"), l(t, "fill", "none"), l(t, "xmlns", "http://www.w3.org/2000/svg"), l(_, "class", "CashierVerificationChevron"), F(
|
|
157
157
|
_,
|
|
158
158
|
"ShowVerifications",
|
|
159
159
|
/*allVerificationsVisible*/
|
|
160
160
|
o[4]
|
|
161
|
-
), l(i, "class", "VerificationsHeader"), l(w, "class", "VerificationsList"),
|
|
161
|
+
), l(i, "class", "VerificationsHeader"), l(w, "class", "VerificationsList"), F(
|
|
162
162
|
w,
|
|
163
163
|
"ShowVerifications",
|
|
164
164
|
/*allVerificationsVisible*/
|
|
@@ -166,7 +166,7 @@ function te(o) {
|
|
|
166
166
|
);
|
|
167
167
|
},
|
|
168
168
|
m(f, P) {
|
|
169
|
-
|
|
169
|
+
O(f, i, P), g(i, t), g(t, s), g(t, n), g(t, a), g(i, d), g(i, v), g(v, k), g(i, V), g(i, _), O(f, A, P), O(f, w, P);
|
|
170
170
|
for (let u = 0; u < h.length; u += 1)
|
|
171
171
|
h[u] && h[u].m(w, null);
|
|
172
172
|
g(w, D), p && p.m(w, null), q || (R = ne(
|
|
@@ -179,8 +179,8 @@ function te(o) {
|
|
|
179
179
|
p(f, P) {
|
|
180
180
|
if (P[0] & /*$_*/
|
|
181
181
|
256 && C !== (C = /*$_*/
|
|
182
|
-
f[8]("verificationsRequired") + "") &&
|
|
183
|
-
16 &&
|
|
182
|
+
f[8]("verificationsRequired") + "") && ae(k, C), P[0] & /*allVerificationsVisible*/
|
|
183
|
+
16 && F(
|
|
184
184
|
_,
|
|
185
185
|
"ShowVerifications",
|
|
186
186
|
/*allVerificationsVisible*/
|
|
@@ -202,7 +202,7 @@ function te(o) {
|
|
|
202
202
|
}
|
|
203
203
|
/*videoExists*/
|
|
204
204
|
f[6] ? p ? p.p(f, P) : (p = oe(f), p.c(), p.m(w, null)) : p && (p.d(1), p = null), P[0] & /*allVerificationsVisible*/
|
|
205
|
-
16 &&
|
|
205
|
+
16 && F(
|
|
206
206
|
w,
|
|
207
207
|
"ShowVerifications",
|
|
208
208
|
/*allVerificationsVisible*/
|
|
@@ -210,7 +210,7 @@ function te(o) {
|
|
|
210
210
|
);
|
|
211
211
|
},
|
|
212
212
|
d(f) {
|
|
213
|
-
f && (
|
|
213
|
+
f && (B(i), B(A), B(w)), Ne(h, f), p && p.d(), q = !1, R();
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
}
|
|
@@ -224,7 +224,7 @@ function re(o) {
|
|
|
224
224
|
i = b("div"), t = b("div"), t.innerHTML = '<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>', s = E(), n = b("p"), l(t, "class", "IconVerification"), l(n, "class", "text"), l(i, "class", "CashierVerificationMessage Test");
|
|
225
225
|
},
|
|
226
226
|
m(d, v) {
|
|
227
|
-
|
|
227
|
+
O(d, i, v), g(i, t), g(i, s), g(i, n), n.innerHTML = a;
|
|
228
228
|
},
|
|
229
229
|
p(d, v) {
|
|
230
230
|
v[0] & /*displayMessages*/
|
|
@@ -232,7 +232,7 @@ function re(o) {
|
|
|
232
232
|
d[53] + "") && (n.innerHTML = a);
|
|
233
233
|
},
|
|
234
234
|
d(d) {
|
|
235
|
-
d &&
|
|
235
|
+
d && B(i);
|
|
236
236
|
}
|
|
237
237
|
};
|
|
238
238
|
}
|
|
@@ -243,34 +243,34 @@ function oe(o) {
|
|
|
243
243
|
), d, v, C;
|
|
244
244
|
return {
|
|
245
245
|
c() {
|
|
246
|
-
i = b("div"), t = b("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', s = E(), n = b("div"), d =
|
|
246
|
+
i = b("div"), t = b("div"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', s = E(), n = b("div"), d = se(a), l(t, "class", "IconVideo"), l(n, "class", "CashierVerificationVideoLink"), F(
|
|
247
247
|
n,
|
|
248
248
|
"CashierVerificationVideoLinkDesktop",
|
|
249
249
|
/*desktopView*/
|
|
250
250
|
o[5]
|
|
251
251
|
), l(i, "class", "CashierVerificationVideo Test");
|
|
252
252
|
},
|
|
253
|
-
m(
|
|
254
|
-
|
|
253
|
+
m(k, V) {
|
|
254
|
+
O(k, i, V), g(i, t), g(i, s), g(i, n), g(n, d), v || (C = ne(
|
|
255
255
|
i,
|
|
256
256
|
"click",
|
|
257
257
|
/*showVideo*/
|
|
258
258
|
o[10]
|
|
259
259
|
), v = !0);
|
|
260
260
|
},
|
|
261
|
-
p(
|
|
261
|
+
p(k, V) {
|
|
262
262
|
V[0] & /*$_*/
|
|
263
263
|
256 && a !== (a = /*$_*/
|
|
264
|
-
|
|
265
|
-
32 &&
|
|
264
|
+
k[8]("verification.video.how-to") + "") && ae(d, a), V[0] & /*desktopView*/
|
|
265
|
+
32 && F(
|
|
266
266
|
n,
|
|
267
267
|
"CashierVerificationVideoLinkDesktop",
|
|
268
268
|
/*desktopView*/
|
|
269
|
-
|
|
269
|
+
k[5]
|
|
270
270
|
);
|
|
271
271
|
},
|
|
272
|
-
d(
|
|
273
|
-
|
|
272
|
+
d(k) {
|
|
273
|
+
k && B(i), v = !1, C();
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
}
|
|
@@ -291,7 +291,7 @@ function Qe(o) {
|
|
|
291
291
|
let s = t(o), n = s && s(o);
|
|
292
292
|
return {
|
|
293
293
|
c() {
|
|
294
|
-
i = b("div"), n && n.c(), l(i, "class", "CashierVerifications"),
|
|
294
|
+
i = b("div"), n && n.c(), l(i, "class", "CashierVerifications"), F(
|
|
295
295
|
i,
|
|
296
296
|
"CashierVerificationsDesktop",
|
|
297
297
|
/*desktopView*/
|
|
@@ -299,11 +299,11 @@ function Qe(o) {
|
|
|
299
299
|
);
|
|
300
300
|
},
|
|
301
301
|
m(a, d) {
|
|
302
|
-
|
|
302
|
+
O(a, i, d), n && n.m(i, null), o[19](i);
|
|
303
303
|
},
|
|
304
304
|
p(a, d) {
|
|
305
305
|
s === (s = t(a)) && n ? n.p(a, d) : (n && n.d(1), n = s && s(a), n && (n.c(), n.m(i, null))), d[0] & /*desktopView*/
|
|
306
|
-
32 &&
|
|
306
|
+
32 && F(
|
|
307
307
|
i,
|
|
308
308
|
"CashierVerificationsDesktop",
|
|
309
309
|
/*desktopView*/
|
|
@@ -313,7 +313,7 @@ function Qe(o) {
|
|
|
313
313
|
i: G,
|
|
314
314
|
o: G,
|
|
315
315
|
d(a) {
|
|
316
|
-
a &&
|
|
316
|
+
a && B(i), n && n.d(), o[19](null);
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
319
|
}
|
|
@@ -321,7 +321,7 @@ const $e = "verification_explanation_video_widgets.MP4";
|
|
|
321
321
|
function ei(o, i, t) {
|
|
322
322
|
let s, n;
|
|
323
323
|
J(o, We, (e) => t(8, s = e)), J(o, Ke, (e) => t(27, n = e)), Q.extend(Ye);
|
|
324
|
-
let { endpoint: a } = i, { lang: d = "en" } = i, { translationurl: v = "" } = i, { clientstyling: C = "" } = i, { clientstylingurl:
|
|
324
|
+
let { endpoint: a } = i, { lang: d = "en" } = i, { translationurl: v = "" } = i, { clientstyling: C = "" } = i, { clientstylingurl: k = "" } = i, { session: V = "" } = i, { customerid: _ = "" } = i, { playersession: A = "" } = i, { mbsource: w = "" } = i, D, q = /* @__PURE__ */ new Set(), R = /* @__PURE__ */ new Set(), S, h, p, f = !1, P = !0, u = !1, L = "", N = !1, ce = window.navigator.userAgent;
|
|
325
325
|
var z;
|
|
326
326
|
(function(e) {
|
|
327
327
|
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
@@ -330,10 +330,10 @@ function ei(o, i, t) {
|
|
|
330
330
|
(function(e) {
|
|
331
331
|
e.Requested = "Requested";
|
|
332
332
|
})(W || (W = {}));
|
|
333
|
-
var
|
|
333
|
+
var y;
|
|
334
334
|
(function(e) {
|
|
335
335
|
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";
|
|
336
|
-
})(
|
|
336
|
+
})(y || (y = {}));
|
|
337
337
|
var I;
|
|
338
338
|
(function(e) {
|
|
339
339
|
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";
|
|
@@ -341,13 +341,13 @@ function ei(o, i, t) {
|
|
|
341
341
|
const Y = (e) => {
|
|
342
342
|
e.data && e.data.type;
|
|
343
343
|
};
|
|
344
|
-
|
|
344
|
+
ze(() => (window.addEventListener("message", Y), Se(), () => {
|
|
345
345
|
window.removeEventListener("message", Y);
|
|
346
346
|
}));
|
|
347
347
|
const le = [
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
348
|
+
y.InProgress,
|
|
349
|
+
y.Referred,
|
|
350
|
+
y.AwaitingForResponse
|
|
351
351
|
], fe = () => {
|
|
352
352
|
let e = v;
|
|
353
353
|
if (e)
|
|
@@ -374,10 +374,10 @@ function ei(o, i, t) {
|
|
|
374
374
|
body: JSON.stringify({})
|
|
375
375
|
};
|
|
376
376
|
t(7, N = !0), fetch(e, c).then((m) => m.json()).then((m) => {
|
|
377
|
-
const
|
|
378
|
-
S = pe(
|
|
377
|
+
const x = ue(m == null ? void 0 : m.Verifications);
|
|
378
|
+
S = pe(x), S.VerificationStatuses.forEach((H) => {
|
|
379
379
|
H.VerificationUrlType !== "Widget" && q.add(H.Vendor);
|
|
380
|
-
}), t(3, p =
|
|
380
|
+
}), t(3, p = ye());
|
|
381
381
|
}).finally(() => t(7, N = !1));
|
|
382
382
|
}, ue = (e) => e ? e.sort((r, c) => new Date(c.Created).getTime() - new Date(r.Created).getTime()) : [], he = () => {
|
|
383
383
|
n && K();
|
|
@@ -392,7 +392,7 @@ function ei(o, i, t) {
|
|
|
392
392
|
var c;
|
|
393
393
|
if (!e || !e.length)
|
|
394
394
|
return {
|
|
395
|
-
VerificationSummaryStatus:
|
|
395
|
+
VerificationSummaryStatus: y.Unverified,
|
|
396
396
|
VerificationStatuses: []
|
|
397
397
|
};
|
|
398
398
|
const r = ve(e);
|
|
@@ -405,34 +405,34 @@ function ei(o, i, t) {
|
|
|
405
405
|
};
|
|
406
406
|
} else
|
|
407
407
|
return {
|
|
408
|
-
VerificationSummaryStatus: e.some((
|
|
409
|
-
VerificationStatuses: Z(e, [
|
|
408
|
+
VerificationSummaryStatus: e.some((x) => x.Status === y.Failed) ? y.Failed : y.Verified,
|
|
409
|
+
VerificationStatuses: Z(e, [y.Failed])
|
|
410
410
|
};
|
|
411
411
|
}, ge = (e) => e.reduce(
|
|
412
412
|
(r, c) => r ? new Date(r) < new Date(c) ? c : r : c,
|
|
413
413
|
0
|
|
414
414
|
), Z = (e, r) => e.filter((c) => r.includes(c.Status)).map((c) => {
|
|
415
|
-
var m,
|
|
415
|
+
var m, x;
|
|
416
416
|
return {
|
|
417
417
|
Type: c.Type,
|
|
418
418
|
Vendor: c.VendorName,
|
|
419
419
|
VerificationDocuments: c.Documents ? [...c.Documents] : [],
|
|
420
420
|
VerificationUrlType: (m = c.FlowInfo) == null ? void 0 : m.Type,
|
|
421
|
-
VerificationUrl: (
|
|
421
|
+
VerificationUrl: (x = c.FlowInfo) == null ? void 0 : x.Url
|
|
422
422
|
};
|
|
423
|
-
}), ve = (e) => e.filter((r) => le.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || we(r) ||
|
|
423
|
+
}), ve = (e) => e.filter((r) => le.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || we(r) || ke(r) : !1), we = (e) => {
|
|
424
424
|
const r = e.Documents && e.VendorName === z.Manual, c = e.Documents && e.Documents.some((m) => m.Status === W.Requested);
|
|
425
425
|
return r && c;
|
|
426
|
-
},
|
|
426
|
+
}, ke = (e) => e.VendorName === z.ShuftiPro && e.Status === y.Referred, ye = () => {
|
|
427
427
|
switch (S.VerificationSummaryStatus) {
|
|
428
|
-
case
|
|
428
|
+
case y.InProgress:
|
|
429
429
|
const e = [];
|
|
430
430
|
return q.forEach((r) => {
|
|
431
431
|
e.push(Ve(r));
|
|
432
432
|
}), e;
|
|
433
|
-
case
|
|
433
|
+
case y.Referred:
|
|
434
434
|
return [s("verification.idenfy.referred-awaiting")];
|
|
435
|
-
case
|
|
435
|
+
case y.Failed:
|
|
436
436
|
return [s("verification.message.failed")];
|
|
437
437
|
}
|
|
438
438
|
}, Ve = (e) => {
|
|
@@ -454,12 +454,12 @@ function ei(o, i, t) {
|
|
|
454
454
|
e.forEach((M) => {
|
|
455
455
|
m.includes(M.Type) && (r.push(M.Type), c[M.Type] = be(M, Ce(M.Type)));
|
|
456
456
|
});
|
|
457
|
-
let
|
|
458
|
-
return
|
|
457
|
+
let x = r.every((M) => R.has(M)), H = `verification.shuftipro.in-progress.${r.sort().join(".")}`;
|
|
458
|
+
return x ? s("verification.shuftipro.validations-started") : s(H, { values: c });
|
|
459
459
|
}, be = (e, r) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${r}</a>`, Ce = (e) => s(`verification.shuftipro.link-name.${e}`), De = () => {
|
|
460
460
|
t(4, f = !f);
|
|
461
461
|
}, Se = () => {
|
|
462
|
-
t(5, P = !
|
|
462
|
+
t(5, P = !He(ce));
|
|
463
463
|
}, _e = () => {
|
|
464
464
|
L = h + "/" + d + "/" + $e;
|
|
465
465
|
try {
|
|
@@ -477,26 +477,26 @@ function ei(o, i, t) {
|
|
|
477
477
|
}
|
|
478
478
|
));
|
|
479
479
|
};
|
|
480
|
-
function
|
|
481
|
-
|
|
480
|
+
function Te(e) {
|
|
481
|
+
Ue[e ? "unshift" : "push"](() => {
|
|
482
482
|
D = e, t(2, D);
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
485
|
return o.$$set = (e) => {
|
|
486
|
-
"endpoint" in e && t(11, a = e.endpoint), "lang" in e && t(12, d = e.lang), "translationurl" in e && t(13, v = e.translationurl), "clientstyling" in e && t(0, C = e.clientstyling), "clientstylingurl" in e && t(1,
|
|
486
|
+
"endpoint" in e && t(11, a = e.endpoint), "lang" in e && t(12, d = e.lang), "translationurl" in e && t(13, v = e.translationurl), "clientstyling" in e && t(0, C = e.clientstyling), "clientstylingurl" in e && t(1, k = e.clientstylingurl), "session" in e && t(14, V = e.session), "customerid" in e && t(15, _ = e.customerid), "playersession" in e && t(16, A = e.playersession), "mbsource" in e && t(17, w = e.mbsource);
|
|
487
487
|
}, o.$$.update = () => {
|
|
488
488
|
o.$$.dirty[0] & /*lang*/
|
|
489
489
|
4096 && d && de(), o.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
490
490
|
83968 && a && V && A && K(), o.$$.dirty[0] & /*endpoint, session, playersession*/
|
|
491
491
|
83968 && a && !V && A && he(), o.$$.dirty[0] & /*translationurl*/
|
|
492
492
|
8192 && v && fe(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
493
|
-
5 && C && D &&
|
|
494
|
-
6 &&
|
|
493
|
+
5 && C && D && je(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
494
|
+
6 && k && D && Ie(), o.$$.dirty[0] & /*staticCdnUrl*/
|
|
495
495
|
262144 && h && _e(), o.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
496
|
-
131076 && w && D &&
|
|
496
|
+
131076 && w && D && Re(D, `${w}.Style`);
|
|
497
497
|
}, [
|
|
498
498
|
C,
|
|
499
|
-
|
|
499
|
+
k,
|
|
500
500
|
D,
|
|
501
501
|
p,
|
|
502
502
|
f,
|
|
@@ -514,7 +514,7 @@ function ei(o, i, t) {
|
|
|
514
514
|
A,
|
|
515
515
|
w,
|
|
516
516
|
h,
|
|
517
|
-
|
|
517
|
+
Te
|
|
518
518
|
];
|
|
519
519
|
}
|
|
520
520
|
class ii extends Be {
|
|
@@ -524,7 +524,7 @@ class ii extends Be {
|
|
|
524
524
|
i,
|
|
525
525
|
ei,
|
|
526
526
|
Qe,
|
|
527
|
-
|
|
527
|
+
Le,
|
|
528
528
|
{
|
|
529
529
|
endpoint: 11,
|
|
530
530
|
lang: 12,
|
|
@@ -544,58 +544,58 @@ class ii extends Be {
|
|
|
544
544
|
return this.$$.ctx[11];
|
|
545
545
|
}
|
|
546
546
|
set endpoint(i) {
|
|
547
|
-
this.$$set({ endpoint: i }),
|
|
547
|
+
this.$$set({ endpoint: i }), T();
|
|
548
548
|
}
|
|
549
549
|
get lang() {
|
|
550
550
|
return this.$$.ctx[12];
|
|
551
551
|
}
|
|
552
552
|
set lang(i) {
|
|
553
|
-
this.$$set({ lang: i }),
|
|
553
|
+
this.$$set({ lang: i }), T();
|
|
554
554
|
}
|
|
555
555
|
get translationurl() {
|
|
556
556
|
return this.$$.ctx[13];
|
|
557
557
|
}
|
|
558
558
|
set translationurl(i) {
|
|
559
|
-
this.$$set({ translationurl: i }),
|
|
559
|
+
this.$$set({ translationurl: i }), T();
|
|
560
560
|
}
|
|
561
561
|
get clientstyling() {
|
|
562
562
|
return this.$$.ctx[0];
|
|
563
563
|
}
|
|
564
564
|
set clientstyling(i) {
|
|
565
|
-
this.$$set({ clientstyling: i }),
|
|
565
|
+
this.$$set({ clientstyling: i }), T();
|
|
566
566
|
}
|
|
567
567
|
get clientstylingurl() {
|
|
568
568
|
return this.$$.ctx[1];
|
|
569
569
|
}
|
|
570
570
|
set clientstylingurl(i) {
|
|
571
|
-
this.$$set({ clientstylingurl: i }),
|
|
571
|
+
this.$$set({ clientstylingurl: i }), T();
|
|
572
572
|
}
|
|
573
573
|
get session() {
|
|
574
574
|
return this.$$.ctx[14];
|
|
575
575
|
}
|
|
576
576
|
set session(i) {
|
|
577
|
-
this.$$set({ session: i }),
|
|
577
|
+
this.$$set({ session: i }), T();
|
|
578
578
|
}
|
|
579
579
|
get customerid() {
|
|
580
580
|
return this.$$.ctx[15];
|
|
581
581
|
}
|
|
582
582
|
set customerid(i) {
|
|
583
|
-
this.$$set({ customerid: i }),
|
|
583
|
+
this.$$set({ customerid: i }), T();
|
|
584
584
|
}
|
|
585
585
|
get playersession() {
|
|
586
586
|
return this.$$.ctx[16];
|
|
587
587
|
}
|
|
588
588
|
set playersession(i) {
|
|
589
|
-
this.$$set({ playersession: i }),
|
|
589
|
+
this.$$set({ playersession: i }), T();
|
|
590
590
|
}
|
|
591
591
|
get mbsource() {
|
|
592
592
|
return this.$$.ctx[17];
|
|
593
593
|
}
|
|
594
594
|
set mbsource(i) {
|
|
595
|
-
this.$$set({ mbsource: i }),
|
|
595
|
+
this.$$set({ mbsource: i }), T();
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
|
|
598
|
+
qe(ii, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, playersession: {}, mbsource: {} }, [], [], !0);
|
|
599
599
|
export {
|
|
600
600
|
ii as default
|
|
601
601
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-DXPbv83E.cjs"),q=require("./CashierMethodDetails-f2nVnAEu.cjs");function H(n,t){e.addMessages(n,t)}function ge(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const j={en:{verificationsRequired:"Verifications Required","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:{verificationsRequired:"Doğrulamalar Gerekli","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:{verificationsRequired:"Potrebne su provjere","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"}};function ve(n){e.append_styles(n,"svelte-16iaxkf","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--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%;background-color:var(--emw--color-white, #ffffff);border-radius:10px}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.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(--emw--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:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}p{color:var(--emw--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}.text a{color:var(--emw--color-primary, #3854FF);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--emw--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(--emw--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;fill:var(--emw--color-primary, #3854FF)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #3854FF);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function U(n,t,r){const s=n.slice();return s[53]=t[r],s}function we(n){let t,r=n[3].length>0&&N(n);return{c(){t=e.element("div"),r&&r.c(),e.attr(t,"class","CashierVerificationsWrapper")},m(s,a){e.insert(s,t,a),r&&r.m(t,null)},p(s,a){s[3].length>0?r?r.p(s,a):(r=N(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&e.detach(t),r&&r.d()}}}function ye(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[1]),e.set_custom_element_data(t,"clientstyling",n[0])},m(r,s){e.insert(r,t,s)},p(r,s){s[0]&2&&e.set_custom_element_data(t,"clientstylingurl",r[1]),s[0]&1&&e.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&e.detach(t)}}}function N(n){let t,r,s,a,l,d,g,P=n[8]("verificationsRequired")+"",w,k,C,D,v,_,T,x,b=e.ensure_array_like(n[3]),h=[];for(let f=0;f<b.length;f+=1)h[f]=W(U(n,b,f));let m=n[6]&&Y(n);return{c(){t=e.element("div"),r=e.svg_element("svg"),s=e.svg_element("path"),a=e.svg_element("path"),l=e.svg_element("path"),d=e.space(),g=e.element("p"),w=e.text(P),k=e.space(),C=e.element("span"),C.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',D=e.space(),v=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();_=e.space(),m&&m.c(),e.attr(s,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),e.attr(s,"stroke","#6E738F"),e.attr(s,"stroke-width","2"),e.attr(s,"stroke-linecap","round"),e.attr(s,"stroke-linejoin","round"),e.attr(a,"d","M12 8V12"),e.attr(a,"stroke","#6E738F"),e.attr(a,"stroke-width","2"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(l,"d","M12 16H12.01"),e.attr(l,"stroke","#6E738F"),e.attr(l,"stroke-width","2"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(r,"width","24"),e.attr(r,"height","24"),e.attr(r,"viewBox","0 0 24 24"),e.attr(r,"fill","none"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"class","CashierVerificationChevron"),e.toggle_class(C,"ShowVerifications",n[4]),e.attr(t,"class","VerificationsHeader"),e.attr(v,"class","VerificationsList"),e.toggle_class(v,"ShowVerifications",n[4])},m(f,V){e.insert(f,t,V),e.append(t,r),e.append(r,s),e.append(r,a),e.append(r,l),e.append(t,d),e.append(t,g),e.append(g,w),e.append(t,k),e.append(t,C),e.insert(f,D,V),e.insert(f,v,V);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(v,null);e.append(v,_),m&&m.m(v,null),T||(x=e.listen(t,"click",n[9]),T=!0)},p(f,V){if(V[0]&256&&P!==(P=f[8]("verificationsRequired")+"")&&e.set_data(w,P),V[0]&16&&e.toggle_class(C,"ShowVerifications",f[4]),V[0]&8){b=e.ensure_array_like(f[3]);let u;for(u=0;u<b.length;u+=1){const F=U(f,b,u);h[u]?h[u].p(F,V):(h[u]=W(F),h[u].c(),h[u].m(v,_))}for(;u<h.length;u+=1)h[u].d(1);h.length=b.length}f[6]?m?m.p(f,V):(m=Y(f),m.c(),m.m(v,null)):m&&(m.d(1),m=null),V[0]&16&&e.toggle_class(v,"ShowVerifications",f[4])},d(f){f&&(e.detach(t),e.detach(D),e.detach(v)),e.destroy_each(h,f),m&&m.d(),T=!1,x()}}}function W(n){let t,r,s,a,l=n[53]+"";return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',s=e.space(),a=e.element("p"),e.attr(r,"class","IconVerification"),e.attr(a,"class","text"),e.attr(t,"class","CashierVerificationMessage Test")},m(d,g){e.insert(d,t,g),e.append(t,r),e.append(t,s),e.append(t,a),a.innerHTML=l},p(d,g){g[0]&8&&l!==(l=d[53]+"")&&(a.innerHTML=l)},d(d){d&&e.detach(t)}}}function Y(n){let t,r,s,a,l=n[8]("verification.video.how-to")+"",d,g,P;return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',s=e.space(),a=e.element("div"),d=e.text(l),e.attr(r,"class","IconVideo"),e.attr(a,"class","CashierVerificationVideoLink"),e.toggle_class(a,"CashierVerificationVideoLinkDesktop",n[5]),e.attr(t,"class","CashierVerificationVideo Test")},m(w,k){e.insert(w,t,k),e.append(t,r),e.append(t,s),e.append(t,a),e.append(a,d),g||(P=e.listen(t,"click",n[10]),g=!0)},p(w,k){k[0]&256&&l!==(l=w[8]("verification.video.how-to")+"")&&e.set_data(d,l),k[0]&32&&e.toggle_class(a,"CashierVerificationVideoLinkDesktop",w[5])},d(w){w&&e.detach(t),g=!1,P()}}}function ke(n){let t;function r(l,d){if(l[7])return ye;if(l[3])return we}let s=r(n),a=s&&s(n);return{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierVerifications"),e.toggle_class(t,"CashierVerificationsDesktop",n[5])},m(l,d){e.insert(l,t,d),a&&a.m(t,null),n[19](t)},p(l,d){s===(s=r(l))&&a?a.p(l,d):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(t,null))),d[0]&32&&e.toggle_class(t,"CashierVerificationsDesktop",l[5])},i:e.noop,o:e.noop,d(l){l&&e.detach(t),a&&a.d(),n[19](null)}}}const Ve="verification_explanation_video_widgets.MP4";function Pe(n,t,r){let s,a;e.component_subscribe(n,e.$format,i=>r(8,s=i)),e.component_subscribe(n,q.xPaymentSessionToken,i=>r(27,a=i)),q.dayjs.extend(q.utc);let{endpoint:l}=t,{lang:d="en"}=t,{translationurl:g=""}=t,{clientstyling:P=""}=t,{clientstylingurl:w=""}=t,{session:k=""}=t,{customerid:C=""}=t,{playersession:D=""}=t,{mbsource:v=""}=t,_,T=new Set,x=new Set,b,h,m,f=!1,V=!0,u=!1,F="",L=!1,Z=window.navigator.userAgent;var M;(function(i){i.Manual="Manual",i.ShuftiPro="ShuftiPro"})(M||(M={}));var E;(function(i){i.Requested="Requested"})(E||(E={}));var y;(function(i){i.Unknown="Unknown",i.Unverified="Unverified",i.InProgress="InProgress",i.Failed="Failed",i.Verified="Verified",i.Referred="Referred",i.True="True",i.False="False",i.AwaitingForResponse="AwaitingForResponse"})(y||(y={}));var O;(function(i){i.Unknown="Unknown",i.Documents="Documents",i.Age="Age",i.Pep="Pep",i.Sanction="Sanction",i.Aml="Aml",i.ProofOfAddress="ProofOfAddress",i.SourceOfWealth="SourceOfWealth",i.SocialMedia="SocialMedia",i.Biometric="Biometric"})(O||(O={}));const z=i=>{i.data&&i.data.type};e.onMount(()=>(window.addEventListener("message",z),ue(),()=>{window.removeEventListener("message",z)}));const G=[y.InProgress,y.Referred,y.AwaitingForResponse],J=()=>{let i=g;if(i)return fetch(i).then(o=>o.json()).then(o=>{Object.keys(o).forEach(c=>{H(c,o[c])})}).catch(o=>{console.log(o)})};Object.keys(j).forEach(i=>{H(i,j[i])});const X=()=>{ge(d)},I=()=>{r(18,h=ee());const i=new URL(`${l}/v1/player/${C}/verification/GetKYCCustomerStatus?language=${d}`),o=new Headers;o.append("accept","application/json"),o.append("Content-Type","application/json"),o.append("x-sessionid",`${D}`),o.append("X-Client-Request-Timestamp",q.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:o,body:JSON.stringify({})};r(7,L=!0),fetch(i,c).then(p=>p.json()).then(p=>{const S=Q(p==null?void 0:p.Verifications);b=ie(S),b.VerificationStatuses.forEach(B=>{B.VerificationUrlType!=="Widget"&&T.add(B.Vendor)}),r(3,m=se())}).finally(()=>r(7,L=!1))},Q=i=>i?i.sort((o,c)=>new Date(c.Created).getTime()-new Date(o.Created).getTime()):[],$=()=>{a&&I()},ee=()=>{let i=(k||a).split(".")[1];if(i){let o=JSON.parse(atob(i));return o.cdn+"/cashier/operator-assets/"+(o==null?void 0:o.mid)}return""},ie=i=>{var c;if(!i||!i.length)return{VerificationSummaryStatus:y.Unverified,VerificationStatuses:[]};const o=re(i);if(o&&o.length){const p=te(o);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(o,p.Status)}}else return{VerificationSummaryStatus:i.some(S=>S.Status===y.Failed)?y.Failed:y.Verified,VerificationStatuses:R(i,[y.Failed])}},te=i=>i.reduce((o,c)=>o?new Date(o)<new Date(c)?c:o:c,0),R=(i,o)=>i.filter(c=>o.includes(c.Status)).map(c=>{var p,S;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(S=c.FlowInfo)==null?void 0:S.Url}}),re=i=>i.filter(o=>G.includes(o.Status)?o.FlowInfo&&o.FlowInfo.Url||oe(o)||ne(o):!1),oe=i=>{const o=i.Documents&&i.VendorName===M.Manual,c=i.Documents&&i.Documents.some(p=>p.Status===E.Requested);return o&&c},ne=i=>i.VendorName===M.ShuftiPro&&i.Status===y.Referred,se=()=>{switch(b.VerificationSummaryStatus){case y.InProgress:const i=[];return T.forEach(o=>{i.push(ae(o))}),i;case y.Referred:return[s("verification.idenfy.referred-awaiting")];case y.Failed:return[s("verification.message.failed")]}},ae=i=>{const o=b.VerificationStatuses.filter(c=>c.Vendor===i);if(i===M.ShuftiPro)return le(o);{const c=s("verification.idenfy.link-name"),p={link:`<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`};return s("verification.idenfy.in-progress",{values:p})}},le=i=>{const o=[],c={},p=[O.Biometric,O.Documents,O.ProofOfAddress];i.forEach(A=>{p.includes(A.Type)&&(o.push(A.Type),c[A.Type]=ce(A,fe(A.Type)))});let S=o.every(A=>x.has(A)),B=`verification.shuftipro.in-progress.${o.sort().join(".")}`;return S?s("verification.shuftipro.validations-started"):s(B,{values:c})},ce=(i,o)=>`<a class="verificationLink ${i.Type}" href=" ${i.VerificationUrl} " target="_blank">${o}</a>`,fe=i=>s(`verification.shuftipro.link-name.${i}`),de=()=>{r(4,f=!f)},ue=()=>{r(5,V=!e.isMobile(Z))},he=()=>{F=h+"/"+d+"/"+Ve;try{fetch(F,{method:"HEAD"}).then(i=>{r(6,u=i.ok)})}catch(i){r(6,u=!1)}},pe=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:F}}}))};function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{_=i,r(2,_)})}return n.$$set=i=>{"endpoint"in i&&r(11,l=i.endpoint),"lang"in i&&r(12,d=i.lang),"translationurl"in i&&r(13,g=i.translationurl),"clientstyling"in i&&r(0,P=i.clientstyling),"clientstylingurl"in i&&r(1,w=i.clientstylingurl),"session"in i&&r(14,k=i.session),"customerid"in i&&r(15,C=i.customerid),"playersession"in i&&r(16,D=i.playersession),"mbsource"in i&&r(17,v=i.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&4096&&d&&X(),n.$$.dirty[0]&83968&&l&&k&&D&&I(),n.$$.dirty[0]&83968&&l&&!k&&D&&$(),n.$$.dirty[0]&8192&&g&&J(),n.$$.dirty[0]&5&&P&&_&&e.setClientStyling(),n.$$.dirty[0]&6&&w&&_&&e.setClientStylingURL(),n.$$.dirty[0]&262144&&h&&he(),n.$$.dirty[0]&131076&&v&&_&&e.setStreamStyling(_,`${v}.Style`)},[P,w,_,m,f,V,u,L,s,de,pe,l,d,g,k,C,D,v,h,me]}class K extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Pe,ke,e.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},ve,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),e.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),e.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=K;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierCarousel-CMHHOrjm.cjs"),q=require("./CashierMethodDetails-DEqy0Axp.cjs");function H(n,t){e.addMessages(n,t)}function ge(n){e.init({fallbackLocale:"en"}),e.$locale.set(n)}const j={en:{verificationsRequired:"Verifications Required","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:{verificationsRequired:"Doğrulamalar Gerekli","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:{verificationsRequired:"Potrebne su provjere","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"}};function ve(n){e.append_styles(n,"svelte-16iaxkf","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{position:relative}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--emw--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%;background-color:var(--emw--color-white, #ffffff);border-radius:10px}.VerificationsHeader{display:flex;align-items:center}.VerificationsList{max-height:0;overflow:hidden;transform:translateY(-10px);opacity:0;transition:max-height 0.3s ease, transform 0.3s ease, opacity 0.3s ease}.VerificationsList.ShowVerifications{max-height:100%;transform:translateY(0);opacity:1}.CashierVerificationChevron.ShowVerifications svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.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(--emw--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:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}p{color:var(--emw--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}.text a{color:var(--emw--color-primary, #3854FF);font-weight:500}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--emw--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(--emw--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;fill:var(--emw--color-primary, #3854FF)}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-primary, #3854FF);font-family:inherit;font-size:var(--emw--font-size-small, 12px);line-height:120%;margin:var(--emw--spacing-small, 12px);font-weight:500}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function U(n,t,r){const s=n.slice();return s[53]=t[r],s}function we(n){let t,r=n[3].length>0&&N(n);return{c(){t=e.element("div"),r&&r.c(),e.attr(t,"class","CashierVerificationsWrapper")},m(s,a){e.insert(s,t,a),r&&r.m(t,null)},p(s,a){s[3].length>0?r?r.p(s,a):(r=N(s),r.c(),r.m(t,null)):r&&(r.d(1),r=null)},d(s){s&&e.detach(t),r&&r.d()}}}function ye(n){let t;return{c(){t=e.element("cashier-spinner"),e.set_custom_element_data(t,"clientstylingurl",n[1]),e.set_custom_element_data(t,"clientstyling",n[0])},m(r,s){e.insert(r,t,s)},p(r,s){s[0]&2&&e.set_custom_element_data(t,"clientstylingurl",r[1]),s[0]&1&&e.set_custom_element_data(t,"clientstyling",r[0])},d(r){r&&e.detach(t)}}}function N(n){let t,r,s,a,l,d,g,P=n[8]("verificationsRequired")+"",w,k,C,D,v,_,T,x,b=e.ensure_array_like(n[3]),h=[];for(let f=0;f<b.length;f+=1)h[f]=W(U(n,b,f));let m=n[6]&&Y(n);return{c(){t=e.element("div"),r=e.svg_element("svg"),s=e.svg_element("path"),a=e.svg_element("path"),l=e.svg_element("path"),d=e.space(),g=e.element("p"),w=e.text(P),k=e.space(),C=e.element("span"),C.innerHTML='<svg width="13" height="8" viewBox="0 0 13 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.335805 2.19101L5.63841 7.62117C5.75331 7.74121 5.89002 7.83649 6.04064 7.9015C6.19127 7.96652 6.35282 8 6.51599 8C6.67917 8 6.84072 7.96652 6.99135 7.9015C7.14197 7.83649 7.27868 7.74121 7.39358 7.62117L12.6344 2.19101C12.7502 2.07195 12.8422 1.93031 12.9049 1.77424C12.9677 1.61818 13 1.45078 13 1.28171C13 1.11265 12.9677 0.945251 12.9049 0.789186C12.8422 0.633121 12.7502 0.491475 12.6344 0.372417C12.4028 0.133886 12.0895 -7.95968e-08 11.763 -1.08144e-07C11.4364 -1.36691e-07 11.1232 0.133886 10.8916 0.372417L6.51599 4.90609L2.14042 0.372417C1.91019 0.135815 1.59946 0.00242849 1.27519 0.00101368C1.11252 3.90151e-05 0.951266 0.0323442 0.80067 0.0960778C0.650074 0.159811 0.513102 0.25372 0.397606 0.372416C0.277618 0.48719 0.180769 0.625461 0.112655 0.779242C0.0445407 0.933023 0.00651199 1.09926 0.000765141 1.26836C-0.00498171 1.43746 0.0216687 1.60606 0.0791753 1.76442C0.136682 1.92279 0.223905 2.06777 0.335805 2.19101Z" fill="#6E738F"></path></svg>',D=e.space(),v=e.element("div");for(let f=0;f<h.length;f+=1)h[f].c();_=e.space(),m&&m.c(),e.attr(s,"d","M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"),e.attr(s,"stroke","#6E738F"),e.attr(s,"stroke-width","2"),e.attr(s,"stroke-linecap","round"),e.attr(s,"stroke-linejoin","round"),e.attr(a,"d","M12 8V12"),e.attr(a,"stroke","#6E738F"),e.attr(a,"stroke-width","2"),e.attr(a,"stroke-linecap","round"),e.attr(a,"stroke-linejoin","round"),e.attr(l,"d","M12 16H12.01"),e.attr(l,"stroke","#6E738F"),e.attr(l,"stroke-width","2"),e.attr(l,"stroke-linecap","round"),e.attr(l,"stroke-linejoin","round"),e.attr(r,"width","24"),e.attr(r,"height","24"),e.attr(r,"viewBox","0 0 24 24"),e.attr(r,"fill","none"),e.attr(r,"xmlns","http://www.w3.org/2000/svg"),e.attr(C,"class","CashierVerificationChevron"),e.toggle_class(C,"ShowVerifications",n[4]),e.attr(t,"class","VerificationsHeader"),e.attr(v,"class","VerificationsList"),e.toggle_class(v,"ShowVerifications",n[4])},m(f,V){e.insert(f,t,V),e.append(t,r),e.append(r,s),e.append(r,a),e.append(r,l),e.append(t,d),e.append(t,g),e.append(g,w),e.append(t,k),e.append(t,C),e.insert(f,D,V),e.insert(f,v,V);for(let u=0;u<h.length;u+=1)h[u]&&h[u].m(v,null);e.append(v,_),m&&m.m(v,null),T||(x=e.listen(t,"click",n[9]),T=!0)},p(f,V){if(V[0]&256&&P!==(P=f[8]("verificationsRequired")+"")&&e.set_data(w,P),V[0]&16&&e.toggle_class(C,"ShowVerifications",f[4]),V[0]&8){b=e.ensure_array_like(f[3]);let u;for(u=0;u<b.length;u+=1){const F=U(f,b,u);h[u]?h[u].p(F,V):(h[u]=W(F),h[u].c(),h[u].m(v,_))}for(;u<h.length;u+=1)h[u].d(1);h.length=b.length}f[6]?m?m.p(f,V):(m=Y(f),m.c(),m.m(v,null)):m&&(m.d(1),m=null),V[0]&16&&e.toggle_class(v,"ShowVerifications",f[4])},d(f){f&&(e.detach(t),e.detach(D),e.detach(v)),e.destroy_each(h,f),m&&m.d(),T=!1,x()}}}function W(n){let t,r,s,a,l=n[53]+"";return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15 2H6C5.46957 2 4.96086 2.21071 4.58579 2.58579C4.21071 2.96086 4 3.46957 4 4V20C4 20.5304 4.21071 21.0391 4.58579 21.4142C4.96086 21.7893 5.46957 22 6 22H18C18.5304 22 19.0391 21.7893 19.4142 21.4142C19.7893 21.0391 20 20.5304 20 20V7L15 2Z" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14 2V6C14 6.53043 14.2107 7.03914 14.5858 7.41421C14.9609 7.78929 15.4696 8 16 8H20" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10 9H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 13H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M16 17H8" stroke="#6E738F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>',s=e.space(),a=e.element("p"),e.attr(r,"class","IconVerification"),e.attr(a,"class","text"),e.attr(t,"class","CashierVerificationMessage Test")},m(d,g){e.insert(d,t,g),e.append(t,r),e.append(t,s),e.append(t,a),a.innerHTML=l},p(d,g){g[0]&8&&l!==(l=d[53]+"")&&(a.innerHTML=l)},d(d){d&&e.detach(t)}}}function Y(n){let t,r,s,a,l=n[8]("verification.video.how-to")+"",d,g,P;return{c(){t=e.element("div"),r=e.element("div"),r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>',s=e.space(),a=e.element("div"),d=e.text(l),e.attr(r,"class","IconVideo"),e.attr(a,"class","CashierVerificationVideoLink"),e.toggle_class(a,"CashierVerificationVideoLinkDesktop",n[5]),e.attr(t,"class","CashierVerificationVideo Test")},m(w,k){e.insert(w,t,k),e.append(t,r),e.append(t,s),e.append(t,a),e.append(a,d),g||(P=e.listen(t,"click",n[10]),g=!0)},p(w,k){k[0]&256&&l!==(l=w[8]("verification.video.how-to")+"")&&e.set_data(d,l),k[0]&32&&e.toggle_class(a,"CashierVerificationVideoLinkDesktop",w[5])},d(w){w&&e.detach(t),g=!1,P()}}}function ke(n){let t;function r(l,d){if(l[7])return ye;if(l[3])return we}let s=r(n),a=s&&s(n);return{c(){t=e.element("div"),a&&a.c(),e.attr(t,"class","CashierVerifications"),e.toggle_class(t,"CashierVerificationsDesktop",n[5])},m(l,d){e.insert(l,t,d),a&&a.m(t,null),n[19](t)},p(l,d){s===(s=r(l))&&a?a.p(l,d):(a&&a.d(1),a=s&&s(l),a&&(a.c(),a.m(t,null))),d[0]&32&&e.toggle_class(t,"CashierVerificationsDesktop",l[5])},i:e.noop,o:e.noop,d(l){l&&e.detach(t),a&&a.d(),n[19](null)}}}const Ve="verification_explanation_video_widgets.MP4";function Pe(n,t,r){let s,a;e.component_subscribe(n,e.$format,i=>r(8,s=i)),e.component_subscribe(n,q.xPaymentSessionToken,i=>r(27,a=i)),q.dayjs.extend(q.utc);let{endpoint:l}=t,{lang:d="en"}=t,{translationurl:g=""}=t,{clientstyling:P=""}=t,{clientstylingurl:w=""}=t,{session:k=""}=t,{customerid:C=""}=t,{playersession:D=""}=t,{mbsource:v=""}=t,_,T=new Set,x=new Set,b,h,m,f=!1,V=!0,u=!1,F="",L=!1,Z=window.navigator.userAgent;var M;(function(i){i.Manual="Manual",i.ShuftiPro="ShuftiPro"})(M||(M={}));var E;(function(i){i.Requested="Requested"})(E||(E={}));var y;(function(i){i.Unknown="Unknown",i.Unverified="Unverified",i.InProgress="InProgress",i.Failed="Failed",i.Verified="Verified",i.Referred="Referred",i.True="True",i.False="False",i.AwaitingForResponse="AwaitingForResponse"})(y||(y={}));var O;(function(i){i.Unknown="Unknown",i.Documents="Documents",i.Age="Age",i.Pep="Pep",i.Sanction="Sanction",i.Aml="Aml",i.ProofOfAddress="ProofOfAddress",i.SourceOfWealth="SourceOfWealth",i.SocialMedia="SocialMedia",i.Biometric="Biometric"})(O||(O={}));const z=i=>{i.data&&i.data.type};e.onMount(()=>(window.addEventListener("message",z),ue(),()=>{window.removeEventListener("message",z)}));const G=[y.InProgress,y.Referred,y.AwaitingForResponse],J=()=>{let i=g;if(i)return fetch(i).then(o=>o.json()).then(o=>{Object.keys(o).forEach(c=>{H(c,o[c])})}).catch(o=>{console.log(o)})};Object.keys(j).forEach(i=>{H(i,j[i])});const X=()=>{ge(d)},I=()=>{r(18,h=ee());const i=new URL(`${l}/v1/player/${C}/verification/GetKYCCustomerStatus?language=${d}`),o=new Headers;o.append("accept","application/json"),o.append("Content-Type","application/json"),o.append("x-sessionid",`${D}`),o.append("X-Client-Request-Timestamp",q.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:o,body:JSON.stringify({})};r(7,L=!0),fetch(i,c).then(p=>p.json()).then(p=>{const S=Q(p==null?void 0:p.Verifications);b=ie(S),b.VerificationStatuses.forEach(B=>{B.VerificationUrlType!=="Widget"&&T.add(B.Vendor)}),r(3,m=se())}).finally(()=>r(7,L=!1))},Q=i=>i?i.sort((o,c)=>new Date(c.Created).getTime()-new Date(o.Created).getTime()):[],$=()=>{a&&I()},ee=()=>{let i=(k||a).split(".")[1];if(i){let o=JSON.parse(atob(i));return o.cdn+"/cashier/operator-assets/"+(o==null?void 0:o.mid)}return""},ie=i=>{var c;if(!i||!i.length)return{VerificationSummaryStatus:y.Unverified,VerificationStatuses:[]};const o=re(i);if(o&&o.length){const p=te(o);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(o,p.Status)}}else return{VerificationSummaryStatus:i.some(S=>S.Status===y.Failed)?y.Failed:y.Verified,VerificationStatuses:R(i,[y.Failed])}},te=i=>i.reduce((o,c)=>o?new Date(o)<new Date(c)?c:o:c,0),R=(i,o)=>i.filter(c=>o.includes(c.Status)).map(c=>{var p,S;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(S=c.FlowInfo)==null?void 0:S.Url}}),re=i=>i.filter(o=>G.includes(o.Status)?o.FlowInfo&&o.FlowInfo.Url||oe(o)||ne(o):!1),oe=i=>{const o=i.Documents&&i.VendorName===M.Manual,c=i.Documents&&i.Documents.some(p=>p.Status===E.Requested);return o&&c},ne=i=>i.VendorName===M.ShuftiPro&&i.Status===y.Referred,se=()=>{switch(b.VerificationSummaryStatus){case y.InProgress:const i=[];return T.forEach(o=>{i.push(ae(o))}),i;case y.Referred:return[s("verification.idenfy.referred-awaiting")];case y.Failed:return[s("verification.message.failed")]}},ae=i=>{const o=b.VerificationStatuses.filter(c=>c.Vendor===i);if(i===M.ShuftiPro)return le(o);{const c=s("verification.idenfy.link-name"),p={link:`<a href="${o[0].VerificationUrl}" target="_blank">${c}</a>`};return s("verification.idenfy.in-progress",{values:p})}},le=i=>{const o=[],c={},p=[O.Biometric,O.Documents,O.ProofOfAddress];i.forEach(A=>{p.includes(A.Type)&&(o.push(A.Type),c[A.Type]=ce(A,fe(A.Type)))});let S=o.every(A=>x.has(A)),B=`verification.shuftipro.in-progress.${o.sort().join(".")}`;return S?s("verification.shuftipro.validations-started"):s(B,{values:c})},ce=(i,o)=>`<a class="verificationLink ${i.Type}" href=" ${i.VerificationUrl} " target="_blank">${o}</a>`,fe=i=>s(`verification.shuftipro.link-name.${i}`),de=()=>{r(4,f=!f)},ue=()=>{r(5,V=!e.isMobile(Z))},he=()=>{F=h+"/"+d+"/"+Ve;try{fetch(F,{method:"HEAD"}).then(i=>{r(6,u=i.ok)})}catch(i){r(6,u=!1)}},pe=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:F}}}))};function me(i){e.binding_callbacks[i?"unshift":"push"](()=>{_=i,r(2,_)})}return n.$$set=i=>{"endpoint"in i&&r(11,l=i.endpoint),"lang"in i&&r(12,d=i.lang),"translationurl"in i&&r(13,g=i.translationurl),"clientstyling"in i&&r(0,P=i.clientstyling),"clientstylingurl"in i&&r(1,w=i.clientstylingurl),"session"in i&&r(14,k=i.session),"customerid"in i&&r(15,C=i.customerid),"playersession"in i&&r(16,D=i.playersession),"mbsource"in i&&r(17,v=i.mbsource)},n.$$.update=()=>{n.$$.dirty[0]&4096&&d&&X(),n.$$.dirty[0]&83968&&l&&k&&D&&I(),n.$$.dirty[0]&83968&&l&&!k&&D&&$(),n.$$.dirty[0]&8192&&g&&J(),n.$$.dirty[0]&5&&P&&_&&e.setClientStyling(),n.$$.dirty[0]&6&&w&&_&&e.setClientStylingURL(),n.$$.dirty[0]&262144&&h&&he(),n.$$.dirty[0]&131076&&v&&_&&e.setStreamStyling(_,`${v}.Style`)},[P,w,_,m,f,V,u,L,s,de,pe,l,d,g,k,C,D,v,h,me]}class K extends e.SvelteComponent{constructor(t){super(),e.init$1(this,t,Pe,ke,e.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},ve,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),e.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),e.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),e.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(K,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=K;
|