@everymatrix/cashier-page 1.48.2 → 1.49.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/{CashierPage-nz3KNFC4.js → CashierPage-CJQeYpKj.js} +23 -1
- package/components/{CashierPage-BuM08oLP.cjs → CashierPage-JvKYXpWN.cjs} +1 -1
- package/components/CashierVerifications-Bu_74-c9.js +617 -0
- package/components/CashierVerifications-BwPmC72g.cjs +1 -0
- package/components/CashierVideoModal-DlhKKfRC.js +191 -0
- package/components/CashierVideoModal-DyD6vHBh.cjs +1 -0
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierVerifications-PTuf6Nph.js +0 -495
- package/components/CashierVerifications-Y25uLnpc.cjs +0 -1
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
import { S as ve, b as we, f as y, c as ye, a as ke, d as Pe, g as b, j as D, I as _, k as T, n as j, v as B, w as be, K as E, M as De, h as I, l as C, A as J, C as Ve } from "./CashierConfirmModal-Bho8FqJK.js";
|
|
2
|
-
import { a as Se, i as Ae, $ as Ce, b as Oe } from "./CashierError-B6Kgc33u.js";
|
|
3
|
-
import { d as H, u as _e } from "./CashierMethodDetails-C1YDBrNk.js";
|
|
4
|
-
function N(o, i) {
|
|
5
|
-
Se(o, i);
|
|
6
|
-
}
|
|
7
|
-
function Te(o) {
|
|
8
|
-
Ae({
|
|
9
|
-
fallbackLocale: "en"
|
|
10
|
-
}), Ce.set(o);
|
|
11
|
-
}
|
|
12
|
-
const W = {
|
|
13
|
-
en: {
|
|
14
|
-
"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",
|
|
15
|
-
"verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
|
|
16
|
-
"verification.idenfy.link-name": "link",
|
|
17
|
-
"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",
|
|
18
|
-
"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.",
|
|
19
|
-
"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.",
|
|
20
|
-
"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.",
|
|
21
|
-
"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.",
|
|
22
|
-
"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.",
|
|
23
|
-
"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.",
|
|
24
|
-
"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.",
|
|
25
|
-
"verification.shuftipro.link-name.Biometric": "Biometric",
|
|
26
|
-
"verification.shuftipro.link-name.Documents": "Documents",
|
|
27
|
-
"verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
|
|
28
|
-
"verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
|
|
29
|
-
},
|
|
30
|
-
tr: {
|
|
31
|
-
"verification.idenfy.referred-awaiting": "Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz",
|
|
32
|
-
"verification.message.failed": "Döküman doğrulama başarısız, hesabınız doğrulanamadı",
|
|
33
|
-
"verification.idenfy.link-name": "link",
|
|
34
|
-
"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",
|
|
35
|
-
"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}",
|
|
36
|
-
"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.",
|
|
37
|
-
"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.",
|
|
38
|
-
"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.",
|
|
39
|
-
"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.",
|
|
40
|
-
"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.",
|
|
41
|
-
"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.",
|
|
42
|
-
"verification.shuftipro.link-name.Biometric": "Doğrulama Yap",
|
|
43
|
-
"verification.shuftipro.link-name.Documents": "Documents",
|
|
44
|
-
"verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
|
|
45
|
-
"verification.shuftipro.validations-started": "Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"
|
|
46
|
-
},
|
|
47
|
-
hr: {
|
|
48
|
-
"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",
|
|
49
|
-
"verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
|
|
50
|
-
"verification.idenfy.link-name": "link",
|
|
51
|
-
"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",
|
|
52
|
-
"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.",
|
|
53
|
-
"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.",
|
|
54
|
-
"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.",
|
|
55
|
-
"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.",
|
|
56
|
-
"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.",
|
|
57
|
-
"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.",
|
|
58
|
-
"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.",
|
|
59
|
-
"verification.shuftipro.link-name.Biometric": "Biometric",
|
|
60
|
-
"verification.shuftipro.link-name.Documents": "Documents",
|
|
61
|
-
"verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
|
|
62
|
-
"verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
function Be(o) {
|
|
66
|
-
Pe(o, "svelte-73xn81", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}");
|
|
67
|
-
}
|
|
68
|
-
function K(o, i, r) {
|
|
69
|
-
const n = o.slice();
|
|
70
|
-
return n[43] = i[r], n[45] = r, n;
|
|
71
|
-
}
|
|
72
|
-
function Y(o) {
|
|
73
|
-
let i, r = E(
|
|
74
|
-
/*displayMessages*/
|
|
75
|
-
o[1]
|
|
76
|
-
), n = [];
|
|
77
|
-
for (let a = 0; a < r.length; a += 1)
|
|
78
|
-
n[a] = Z(K(o, r, a));
|
|
79
|
-
return {
|
|
80
|
-
c() {
|
|
81
|
-
i = b("div");
|
|
82
|
-
for (let a = 0; a < n.length; a += 1)
|
|
83
|
-
n[a].c();
|
|
84
|
-
D(i, "class", "CashierVerificationsWrapper");
|
|
85
|
-
},
|
|
86
|
-
m(a, l) {
|
|
87
|
-
T(a, i, l);
|
|
88
|
-
for (let c = 0; c < n.length; c += 1)
|
|
89
|
-
n[c] && n[c].m(i, null);
|
|
90
|
-
},
|
|
91
|
-
p(a, l) {
|
|
92
|
-
if (l[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
|
|
93
|
-
22) {
|
|
94
|
-
r = E(
|
|
95
|
-
/*displayMessages*/
|
|
96
|
-
a[1]
|
|
97
|
-
);
|
|
98
|
-
let c;
|
|
99
|
-
for (c = 0; c < r.length; c += 1) {
|
|
100
|
-
const m = K(a, r, c);
|
|
101
|
-
n[c] ? n[c].p(m, l) : (n[c] = Z(m), n[c].c(), n[c].m(i, null));
|
|
102
|
-
}
|
|
103
|
-
for (; c < n.length; c += 1)
|
|
104
|
-
n[c].d(1);
|
|
105
|
-
n.length = r.length;
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
d(a) {
|
|
109
|
-
a && B(i), De(n, a);
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function G(o) {
|
|
114
|
-
let i, r, n;
|
|
115
|
-
function a(...l) {
|
|
116
|
-
return (
|
|
117
|
-
/*click_handler*/
|
|
118
|
-
o[13](
|
|
119
|
-
/*index*/
|
|
120
|
-
o[45],
|
|
121
|
-
...l
|
|
122
|
-
)
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
return {
|
|
126
|
-
c() {
|
|
127
|
-
i = b("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>', D(i, "class", "CashierVerificationChevron");
|
|
128
|
-
},
|
|
129
|
-
m(l, c) {
|
|
130
|
-
T(l, i, c), r || (n = J(i, "click", a), r = !0);
|
|
131
|
-
},
|
|
132
|
-
p(l, c) {
|
|
133
|
-
o = l;
|
|
134
|
-
},
|
|
135
|
-
d(l) {
|
|
136
|
-
l && B(i), r = !1, n();
|
|
137
|
-
}
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
function Z(o) {
|
|
141
|
-
let i, r, n, a, l = (
|
|
142
|
-
/*message*/
|
|
143
|
-
o[43] + ""
|
|
144
|
-
), c, m, g, k, f = (
|
|
145
|
-
/*displayMessages*/
|
|
146
|
-
o[1].length > 1 && /*index*/
|
|
147
|
-
o[45] === 0 && G(o)
|
|
148
|
-
);
|
|
149
|
-
function P(...u) {
|
|
150
|
-
return (
|
|
151
|
-
/*click_handler_1*/
|
|
152
|
-
o[14](
|
|
153
|
-
/*index*/
|
|
154
|
-
o[45],
|
|
155
|
-
...u
|
|
156
|
-
)
|
|
157
|
-
);
|
|
158
|
-
}
|
|
159
|
-
return {
|
|
160
|
-
c() {
|
|
161
|
-
i = b("div"), r = b("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', n = I(), a = b("p"), c = I(), f && f.c(), m = I(), D(r, "class", "IconVerification"), D(a, "class", "text"), D(i, "class", "CashierVerificationMessage"), _(
|
|
162
|
-
i,
|
|
163
|
-
"ShowAll",
|
|
164
|
-
/*allVerificationsVisible*/
|
|
165
|
-
o[2]
|
|
166
|
-
);
|
|
167
|
-
},
|
|
168
|
-
m(u, v) {
|
|
169
|
-
T(u, i, v), C(i, r), C(i, n), C(i, a), a.innerHTML = l, C(i, c), f && f.m(i, null), C(i, m), g || (k = J(i, "click", P), g = !0);
|
|
170
|
-
},
|
|
171
|
-
p(u, v) {
|
|
172
|
-
o = u, v[0] & /*displayMessages*/
|
|
173
|
-
2 && l !== (l = /*message*/
|
|
174
|
-
o[43] + "") && (a.innerHTML = l), /*displayMessages*/
|
|
175
|
-
o[1].length > 1 && /*index*/
|
|
176
|
-
o[45] === 0 ? f ? f.p(o, v) : (f = G(o), f.c(), f.m(i, m)) : f && (f.d(1), f = null), v[0] & /*allVerificationsVisible*/
|
|
177
|
-
4 && _(
|
|
178
|
-
i,
|
|
179
|
-
"ShowAll",
|
|
180
|
-
/*allVerificationsVisible*/
|
|
181
|
-
o[2]
|
|
182
|
-
);
|
|
183
|
-
},
|
|
184
|
-
d(u) {
|
|
185
|
-
u && B(i), f && f.d(), g = !1, k();
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function Me(o) {
|
|
190
|
-
let i, r = (
|
|
191
|
-
/*displayMessages*/
|
|
192
|
-
o[1] && Y(o)
|
|
193
|
-
);
|
|
194
|
-
return {
|
|
195
|
-
c() {
|
|
196
|
-
i = b("div"), r && r.c(), D(i, "class", "CashierVerifications"), _(
|
|
197
|
-
i,
|
|
198
|
-
"CashierVerificationsDesktop",
|
|
199
|
-
/*desktopView*/
|
|
200
|
-
o[3]
|
|
201
|
-
);
|
|
202
|
-
},
|
|
203
|
-
m(n, a) {
|
|
204
|
-
T(n, i, a), r && r.m(i, null), o[15](i);
|
|
205
|
-
},
|
|
206
|
-
p(n, a) {
|
|
207
|
-
/*displayMessages*/
|
|
208
|
-
n[1] ? r ? r.p(n, a) : (r = Y(n), r.c(), r.m(i, null)) : r && (r.d(1), r = null), a[0] & /*desktopView*/
|
|
209
|
-
8 && _(
|
|
210
|
-
i,
|
|
211
|
-
"CashierVerificationsDesktop",
|
|
212
|
-
/*desktopView*/
|
|
213
|
-
n[3]
|
|
214
|
-
);
|
|
215
|
-
},
|
|
216
|
-
i: j,
|
|
217
|
-
o: j,
|
|
218
|
-
d(n) {
|
|
219
|
-
n && B(i), r && r.d(), o[15](null);
|
|
220
|
-
}
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
function qe(o, i, r) {
|
|
224
|
-
let n;
|
|
225
|
-
be(o, Oe, (e) => r(21, n = e)), H.extend(_e);
|
|
226
|
-
let { endpoint: a } = i, { lang: l = "en" } = i, { translationurl: c = "" } = i, { clientstyling: m = "" } = i, { clientstylingurl: g = "" } = i, { session: k = "" } = i, { customerid: f = "" } = i, { ismobileview: P = "" } = i, u, v = /* @__PURE__ */ new Set(), x = /* @__PURE__ */ new Set(), O, M, q = !0, R = !0;
|
|
227
|
-
var V;
|
|
228
|
-
(function(e) {
|
|
229
|
-
e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
|
|
230
|
-
})(V || (V = {}));
|
|
231
|
-
var L;
|
|
232
|
-
(function(e) {
|
|
233
|
-
e.Requested = "Requested";
|
|
234
|
-
})(L || (L = {}));
|
|
235
|
-
var h;
|
|
236
|
-
(function(e) {
|
|
237
|
-
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";
|
|
238
|
-
})(h || (h = {}));
|
|
239
|
-
var S;
|
|
240
|
-
(function(e) {
|
|
241
|
-
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";
|
|
242
|
-
})(S || (S = {}));
|
|
243
|
-
const X = [
|
|
244
|
-
h.InProgress,
|
|
245
|
-
h.Referred,
|
|
246
|
-
h.AwaitingForResponse
|
|
247
|
-
], Q = () => {
|
|
248
|
-
let e = c;
|
|
249
|
-
if (e)
|
|
250
|
-
return fetch(e).then((t) => t.json()).then((t) => {
|
|
251
|
-
Object.keys(t).forEach((s) => {
|
|
252
|
-
N(s, t[s]);
|
|
253
|
-
});
|
|
254
|
-
}).catch((t) => {
|
|
255
|
-
console.log(t);
|
|
256
|
-
});
|
|
257
|
-
};
|
|
258
|
-
Object.keys(W).forEach((e) => {
|
|
259
|
-
N(e, W[e]);
|
|
260
|
-
});
|
|
261
|
-
const $ = () => {
|
|
262
|
-
Te(l);
|
|
263
|
-
}, ee = () => {
|
|
264
|
-
let e = document.createElement("style");
|
|
265
|
-
e.innerHTML = m, u.appendChild(e);
|
|
266
|
-
}, ie = () => {
|
|
267
|
-
let e = new URL(g), t = document.createElement("style");
|
|
268
|
-
fetch(e.href).then((s) => s.text()).then((s) => {
|
|
269
|
-
t.innerHTML = s, setTimeout(
|
|
270
|
-
() => {
|
|
271
|
-
u.appendChild(t);
|
|
272
|
-
},
|
|
273
|
-
1
|
|
274
|
-
);
|
|
275
|
-
});
|
|
276
|
-
}, te = () => {
|
|
277
|
-
const { merchantId: e, customerId: t } = re();
|
|
278
|
-
if (!e)
|
|
279
|
-
return;
|
|
280
|
-
const s = new URL(`${a}/v1/player/verification/GetKYCStatus`), d = new Headers();
|
|
281
|
-
d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-Client-Request-Timestamp", H.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
|
|
282
|
-
const w = {
|
|
283
|
-
method: "POST",
|
|
284
|
-
headers: d,
|
|
285
|
-
body: JSON.stringify({
|
|
286
|
-
MerchantId: e,
|
|
287
|
-
CustomerId: t,
|
|
288
|
-
All: !1,
|
|
289
|
-
AllParameters: !1
|
|
290
|
-
})
|
|
291
|
-
};
|
|
292
|
-
fetch(s, w).then((A) => A.json()).then((A) => {
|
|
293
|
-
O = oe(A.Verifications), O.VerificationStatuses.forEach((p) => {
|
|
294
|
-
p.VerificationUrlType !== "Widget" && v.add(p.Vendor);
|
|
295
|
-
}), r(1, M = z());
|
|
296
|
-
});
|
|
297
|
-
}, re = () => {
|
|
298
|
-
let e = k.split(".")[1];
|
|
299
|
-
if (e) {
|
|
300
|
-
let t = JSON.parse(atob(e));
|
|
301
|
-
return {
|
|
302
|
-
merchantId: t == null ? void 0 : t.mid,
|
|
303
|
-
customerId: `${t == null ? void 0 : t.mid}~${f}`
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
return { merchantId: null, customerId: null };
|
|
307
|
-
}, oe = (e) => {
|
|
308
|
-
var s;
|
|
309
|
-
if (!e || !e.length)
|
|
310
|
-
return {
|
|
311
|
-
VerificationSummaryStatus: h.Unverified,
|
|
312
|
-
VerificationStatuses: []
|
|
313
|
-
};
|
|
314
|
-
const t = se(e);
|
|
315
|
-
if (t && t.length) {
|
|
316
|
-
const d = ne(t);
|
|
317
|
-
return {
|
|
318
|
-
VerificationSummaryStatus: d.Status,
|
|
319
|
-
VerificationUrl: (s = d.Flags) == null ? void 0 : s.DeferredUrlKey,
|
|
320
|
-
VerificationStatuses: U(t, d.Status)
|
|
321
|
-
};
|
|
322
|
-
} else
|
|
323
|
-
return {
|
|
324
|
-
VerificationSummaryStatus: e.some((w) => w.Status === h.Failed) ? h.Failed : h.Verified,
|
|
325
|
-
VerificationStatuses: U(e, [h.Failed])
|
|
326
|
-
};
|
|
327
|
-
}, ne = (e) => e.reduce(
|
|
328
|
-
(t, s) => t ? new Date(t) < new Date(s) ? s : t : s,
|
|
329
|
-
0
|
|
330
|
-
), U = (e, t) => e.filter((s) => t.includes(s.Status)).map((s) => {
|
|
331
|
-
var d, w;
|
|
332
|
-
return {
|
|
333
|
-
Type: s.Type,
|
|
334
|
-
Vendor: s.VendorName,
|
|
335
|
-
VerificationDocuments: s.Documents ? [...Object.values(s.Documents)] : [],
|
|
336
|
-
VerificationUrlType: (d = s.Flags) == null ? void 0 : d.DeferredUrlTypeKey,
|
|
337
|
-
VerificationUrl: (w = s.Flags) == null ? void 0 : w.DeferredUrlKey
|
|
338
|
-
};
|
|
339
|
-
}), se = (e) => e.filter((t) => X.includes(t.Status) ? t.Flags && t.Flags.DeferredUrlKey || ae(t) || ce(t) : !1), ae = (e) => {
|
|
340
|
-
const t = e.Documents && e.VendorName === V.Manual, s = Object.values(e.Documents).some((d) => d.Status === L.Requested);
|
|
341
|
-
return t && s;
|
|
342
|
-
}, ce = (e) => e.VendorName === V.ShuftiPro && e.Status === h.Referred, z = () => {
|
|
343
|
-
switch (O.VerificationSummaryStatus) {
|
|
344
|
-
case h.InProgress:
|
|
345
|
-
const e = [];
|
|
346
|
-
return v.forEach((t) => {
|
|
347
|
-
e.push(le(t));
|
|
348
|
-
}), e;
|
|
349
|
-
case h.Referred:
|
|
350
|
-
return [n("verification.idenfy.referred-awaiting")];
|
|
351
|
-
case h.Failed:
|
|
352
|
-
return [n("verification.message.failed")];
|
|
353
|
-
}
|
|
354
|
-
}, le = (e) => {
|
|
355
|
-
const t = O.VerificationStatuses.filter((s) => s.Vendor === e);
|
|
356
|
-
if (e === V.ShuftiPro)
|
|
357
|
-
return fe(t);
|
|
358
|
-
{
|
|
359
|
-
const s = n("verification.idenfy.link-name"), d = {
|
|
360
|
-
link: `<a href="${t[0].VerificationUrl}" target="_blank">${s}</a>`
|
|
361
|
-
};
|
|
362
|
-
return n("verification.idenfy.in-progress", { values: d });
|
|
363
|
-
}
|
|
364
|
-
}, fe = (e) => {
|
|
365
|
-
const t = [], s = {}, d = [
|
|
366
|
-
S.Biometric,
|
|
367
|
-
S.Documents,
|
|
368
|
-
S.ProofOfAddress
|
|
369
|
-
];
|
|
370
|
-
e.forEach((p) => {
|
|
371
|
-
d.includes(p.Type) && (t.push(p.Type), s[p.Type] = de(p, ue(p.Type)));
|
|
372
|
-
});
|
|
373
|
-
let w = t.every((p) => x.has(p)), A = `verification.shuftipro.in-progress.${t.sort().join(".")}`;
|
|
374
|
-
return w ? n("verification.shuftipro.validations-started") : n(A, { values: s });
|
|
375
|
-
}, de = (e, t) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${t}</a>`, ue = (e) => n(`verification.shuftipro.link-name.${e}`), F = (e, t) => {
|
|
376
|
-
if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
|
|
377
|
-
if (e.target.closest(".verificationLink")) {
|
|
378
|
-
const s = e.target.className.split(" ")[1];
|
|
379
|
-
x.add(s), r(1, M = z());
|
|
380
|
-
}
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
t === 0 && r(2, q = !q);
|
|
384
|
-
}, he = () => {
|
|
385
|
-
r(3, R = P === "false");
|
|
386
|
-
}, me = (e, t) => F(t, e), pe = (e, t) => F(t, e);
|
|
387
|
-
function ge(e) {
|
|
388
|
-
Ve[e ? "unshift" : "push"](() => {
|
|
389
|
-
u = e, r(0, u);
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
return o.$$set = (e) => {
|
|
393
|
-
"endpoint" in e && r(5, a = e.endpoint), "lang" in e && r(6, l = e.lang), "translationurl" in e && r(7, c = e.translationurl), "clientstyling" in e && r(8, m = e.clientstyling), "clientstylingurl" in e && r(9, g = e.clientstylingurl), "session" in e && r(10, k = e.session), "customerid" in e && r(11, f = e.customerid), "ismobileview" in e && r(12, P = e.ismobileview);
|
|
394
|
-
}, o.$$.update = () => {
|
|
395
|
-
o.$$.dirty[0] & /*lang*/
|
|
396
|
-
64 && l && $(), o.$$.dirty[0] & /*endpoint, session*/
|
|
397
|
-
1056 && a && k && te(), o.$$.dirty[0] & /*translationurl*/
|
|
398
|
-
128 && c && Q(), o.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
399
|
-
257 && m && u && ee(), o.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
400
|
-
513 && g && u && ie(), o.$$.dirty[0] & /*ismobileview*/
|
|
401
|
-
4096 && P && he();
|
|
402
|
-
}, [
|
|
403
|
-
u,
|
|
404
|
-
M,
|
|
405
|
-
q,
|
|
406
|
-
R,
|
|
407
|
-
F,
|
|
408
|
-
a,
|
|
409
|
-
l,
|
|
410
|
-
c,
|
|
411
|
-
m,
|
|
412
|
-
g,
|
|
413
|
-
k,
|
|
414
|
-
f,
|
|
415
|
-
P,
|
|
416
|
-
me,
|
|
417
|
-
pe,
|
|
418
|
-
ge
|
|
419
|
-
];
|
|
420
|
-
}
|
|
421
|
-
class Le extends ve {
|
|
422
|
-
constructor(i) {
|
|
423
|
-
super(), we(
|
|
424
|
-
this,
|
|
425
|
-
i,
|
|
426
|
-
qe,
|
|
427
|
-
Me,
|
|
428
|
-
ke,
|
|
429
|
-
{
|
|
430
|
-
endpoint: 5,
|
|
431
|
-
lang: 6,
|
|
432
|
-
translationurl: 7,
|
|
433
|
-
clientstyling: 8,
|
|
434
|
-
clientstylingurl: 9,
|
|
435
|
-
session: 10,
|
|
436
|
-
customerid: 11,
|
|
437
|
-
ismobileview: 12
|
|
438
|
-
},
|
|
439
|
-
Be,
|
|
440
|
-
[-1, -1]
|
|
441
|
-
);
|
|
442
|
-
}
|
|
443
|
-
get endpoint() {
|
|
444
|
-
return this.$$.ctx[5];
|
|
445
|
-
}
|
|
446
|
-
set endpoint(i) {
|
|
447
|
-
this.$$set({ endpoint: i }), y();
|
|
448
|
-
}
|
|
449
|
-
get lang() {
|
|
450
|
-
return this.$$.ctx[6];
|
|
451
|
-
}
|
|
452
|
-
set lang(i) {
|
|
453
|
-
this.$$set({ lang: i }), y();
|
|
454
|
-
}
|
|
455
|
-
get translationurl() {
|
|
456
|
-
return this.$$.ctx[7];
|
|
457
|
-
}
|
|
458
|
-
set translationurl(i) {
|
|
459
|
-
this.$$set({ translationurl: i }), y();
|
|
460
|
-
}
|
|
461
|
-
get clientstyling() {
|
|
462
|
-
return this.$$.ctx[8];
|
|
463
|
-
}
|
|
464
|
-
set clientstyling(i) {
|
|
465
|
-
this.$$set({ clientstyling: i }), y();
|
|
466
|
-
}
|
|
467
|
-
get clientstylingurl() {
|
|
468
|
-
return this.$$.ctx[9];
|
|
469
|
-
}
|
|
470
|
-
set clientstylingurl(i) {
|
|
471
|
-
this.$$set({ clientstylingurl: i }), y();
|
|
472
|
-
}
|
|
473
|
-
get session() {
|
|
474
|
-
return this.$$.ctx[10];
|
|
475
|
-
}
|
|
476
|
-
set session(i) {
|
|
477
|
-
this.$$set({ session: i }), y();
|
|
478
|
-
}
|
|
479
|
-
get customerid() {
|
|
480
|
-
return this.$$.ctx[11];
|
|
481
|
-
}
|
|
482
|
-
set customerid(i) {
|
|
483
|
-
this.$$set({ customerid: i }), y();
|
|
484
|
-
}
|
|
485
|
-
get ismobileview() {
|
|
486
|
-
return this.$$.ctx[12];
|
|
487
|
-
}
|
|
488
|
-
set ismobileview(i) {
|
|
489
|
-
this.$$set({ ismobileview: i }), y();
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
ye(Le, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {} }, [], [], !0);
|
|
493
|
-
export {
|
|
494
|
-
Le as default
|
|
495
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./CashierConfirmModal-KmRU3Mgr.cjs"),C=require("./CashierError-B6IaVYAb.cjs"),B=require("./CashierMethodDetails-_tjsOJpf.cjs");function I(n,i){C.addMessages(n,i)}function ce(n){C.init({fallbackLocale:"en"}),C.$locale.set(n)}const x={en:{"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.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.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 fe(n){r.append_styles(n,"svelte-73xn81","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}")}function R(n,i,o){const s=n.slice();return s[43]=i[o],s[45]=o,s}function U(n){let i,o=r.ensure_array_like(n[1]),s=[];for(let l=0;l<o.length;l+=1)s[l]=j(R(n,o,l));return{c(){i=r.element("div");for(let l=0;l<s.length;l+=1)s[l].c();r.attr(i,"class","CashierVerificationsWrapper")},m(l,f){r.insert(l,i,f);for(let c=0;c<s.length;c+=1)s[c]&&s[c].m(i,null)},p(l,f){if(f[0]&22){o=r.ensure_array_like(l[1]);let c;for(c=0;c<o.length;c+=1){const p=R(l,o,c);s[c]?s[c].p(p,f):(s[c]=j(p),s[c].c(),s[c].m(i,null))}for(;c<s.length;c+=1)s[c].d(1);s.length=o.length}},d(l){l&&r.detach(i),r.destroy_each(s,l)}}}function z(n){let i,o,s;function l(...f){return n[13](n[45],...f)}return{c(){i=r.element("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>',r.attr(i,"class","CashierVerificationChevron")},m(f,c){r.insert(f,i,c),o||(s=r.listen(i,"click",l),o=!0)},p(f,c){n=f},d(f){f&&r.detach(i),o=!1,s()}}}function j(n){let i,o,s,l,f=n[43]+"",c,p,v,k,u=n[1].length>1&&n[45]===0&&z(n);function P(...h){return n[14](n[45],...h)}return{c(){i=r.element("div"),o=r.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>',s=r.space(),l=r.element("p"),c=r.space(),u&&u.c(),p=r.space(),r.attr(o,"class","IconVerification"),r.attr(l,"class","text"),r.attr(i,"class","CashierVerificationMessage"),r.toggle_class(i,"ShowAll",n[2])},m(h,w){r.insert(h,i,w),r.append(i,o),r.append(i,s),r.append(i,l),l.innerHTML=f,r.append(i,c),u&&u.m(i,null),r.append(i,p),v||(k=r.listen(i,"click",P),v=!0)},p(h,w){n=h,w[0]&2&&f!==(f=n[43]+"")&&(l.innerHTML=f),n[1].length>1&&n[45]===0?u?u.p(n,w):(u=z(n),u.c(),u.m(i,p)):u&&(u.d(1),u=null),w[0]&4&&r.toggle_class(i,"ShowAll",n[2])},d(h){h&&r.detach(i),u&&u.d(),v=!1,k()}}}function ue(n){let i,o=n[1]&&U(n);return{c(){i=r.element("div"),o&&o.c(),r.attr(i,"class","CashierVerifications"),r.toggle_class(i,"CashierVerificationsDesktop",n[3])},m(s,l){r.insert(s,i,l),o&&o.m(i,null),n[15](i)},p(s,l){s[1]?o?o.p(s,l):(o=U(s),o.c(),o.m(i,null)):o&&(o.d(1),o=null),l[0]&8&&r.toggle_class(i,"CashierVerificationsDesktop",s[3])},i:r.noop,o:r.noop,d(s){s&&r.detach(i),o&&o.d(),n[15](null)}}}function de(n,i,o){let s;r.component_subscribe(n,C.$format,e=>o(21,s=e)),B.dayjs.extend(B.utc);let{endpoint:l}=i,{lang:f="en"}=i,{translationurl:c=""}=i,{clientstyling:p=""}=i,{clientstylingurl:v=""}=i,{session:k=""}=i,{customerid:u=""}=i,{ismobileview:P=""}=i,h,w=new Set,M=new Set,S,A,_=!0,q=!0;var b;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(b||(b={}));var O;(function(e){e.Requested="Requested"})(O||(O={}));var m;(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"})(m||(m={}));var D;(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"})(D||(D={}));const H=[m.InProgress,m.Referred,m.AwaitingForResponse],N=()=>{let e=c;if(e)return fetch(e).then(t=>t.json()).then(t=>{Object.keys(t).forEach(a=>{I(a,t[a])})}).catch(t=>{console.log(t)})};Object.keys(x).forEach(e=>{I(e,x[e])});const W=()=>{ce(f)},K=()=>{let e=document.createElement("style");e.innerHTML=p,h.appendChild(e)},Y=()=>{let e=new URL(v),t=document.createElement("style");fetch(e.href).then(a=>a.text()).then(a=>{t.innerHTML=a,setTimeout(()=>{h.appendChild(t)},1)})},G=()=>{const{merchantId:e,customerId:t}=Z();if(!e)return;const a=new URL(`${l}/v1/player/verification/GetKYCStatus`),d=new Headers;d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-Client-Request-Timestamp",B.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const y={method:"POST",headers:d,body:JSON.stringify({MerchantId:e,CustomerId:t,All:!1,AllParameters:!1})};fetch(a,y).then(V=>V.json()).then(V=>{S=J(V.Verifications),S.VerificationStatuses.forEach(g=>{g.VerificationUrlType!=="Widget"&&w.add(g.Vendor)}),o(1,A=F())})},Z=()=>{let e=k.split(".")[1];if(e){let t=JSON.parse(atob(e));return{merchantId:t==null?void 0:t.mid,customerId:`${t==null?void 0:t.mid}~${u}`}}return{merchantId:null,customerId:null}},J=e=>{var a;if(!e||!e.length)return{VerificationSummaryStatus:m.Unverified,VerificationStatuses:[]};const t=Q(e);if(t&&t.length){const d=X(t);return{VerificationSummaryStatus:d.Status,VerificationUrl:(a=d.Flags)==null?void 0:a.DeferredUrlKey,VerificationStatuses:L(t,d.Status)}}else return{VerificationSummaryStatus:e.some(y=>y.Status===m.Failed)?m.Failed:m.Verified,VerificationStatuses:L(e,[m.Failed])}},X=e=>e.reduce((t,a)=>t?new Date(t)<new Date(a)?a:t:a,0),L=(e,t)=>e.filter(a=>t.includes(a.Status)).map(a=>{var d,y;return{Type:a.Type,Vendor:a.VendorName,VerificationDocuments:a.Documents?[...Object.values(a.Documents)]:[],VerificationUrlType:(d=a.Flags)==null?void 0:d.DeferredUrlTypeKey,VerificationUrl:(y=a.Flags)==null?void 0:y.DeferredUrlKey}}),Q=e=>e.filter(t=>H.includes(t.Status)?t.Flags&&t.Flags.DeferredUrlKey||$(t)||ee(t):!1),$=e=>{const t=e.Documents&&e.VendorName===b.Manual,a=Object.values(e.Documents).some(d=>d.Status===O.Requested);return t&&a},ee=e=>e.VendorName===b.ShuftiPro&&e.Status===m.Referred,F=()=>{switch(S.VerificationSummaryStatus){case m.InProgress:const e=[];return w.forEach(t=>{e.push(ie(t))}),e;case m.Referred:return[s("verification.idenfy.referred-awaiting")];case m.Failed:return[s("verification.message.failed")]}},ie=e=>{const t=S.VerificationStatuses.filter(a=>a.Vendor===e);if(e===b.ShuftiPro)return te(t);{const a=s("verification.idenfy.link-name"),d={link:`<a href="${t[0].VerificationUrl}" target="_blank">${a}</a>`};return s("verification.idenfy.in-progress",{values:d})}},te=e=>{const t=[],a={},d=[D.Biometric,D.Documents,D.ProofOfAddress];e.forEach(g=>{d.includes(g.Type)&&(t.push(g.Type),a[g.Type]=re(g,oe(g.Type)))});let y=t.every(g=>M.has(g)),V=`verification.shuftipro.in-progress.${t.sort().join(".")}`;return y?s("verification.shuftipro.validations-started"):s(V,{values:a})},re=(e,t)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${t}</a>`,oe=e=>s(`verification.shuftipro.link-name.${e}`),T=(e,t)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const a=e.target.className.split(" ")[1];M.add(a),o(1,A=F())}return}t===0&&o(2,_=!_)},ne=()=>{o(3,q=P==="false")},se=(e,t)=>T(t,e),ae=(e,t)=>T(t,e);function le(e){r.binding_callbacks[e?"unshift":"push"](()=>{h=e,o(0,h)})}return n.$$set=e=>{"endpoint"in e&&o(5,l=e.endpoint),"lang"in e&&o(6,f=e.lang),"translationurl"in e&&o(7,c=e.translationurl),"clientstyling"in e&&o(8,p=e.clientstyling),"clientstylingurl"in e&&o(9,v=e.clientstylingurl),"session"in e&&o(10,k=e.session),"customerid"in e&&o(11,u=e.customerid),"ismobileview"in e&&o(12,P=e.ismobileview)},n.$$.update=()=>{n.$$.dirty[0]&64&&f&&W(),n.$$.dirty[0]&1056&&l&&k&&G(),n.$$.dirty[0]&128&&c&&N(),n.$$.dirty[0]&257&&p&&h&&K(),n.$$.dirty[0]&513&&v&&h&&Y(),n.$$.dirty[0]&4096&&P&&ne()},[h,A,_,q,T,l,f,c,p,v,k,u,P,se,ae,le]}class E extends r.SvelteComponent{constructor(i){super(),r.init(this,i,de,ue,r.safe_not_equal,{endpoint:5,lang:6,translationurl:7,clientstyling:8,clientstylingurl:9,session:10,customerid:11,ismobileview:12},fe,[-1,-1])}get endpoint(){return this.$$.ctx[5]}set endpoint(i){this.$$set({endpoint:i}),r.flush()}get lang(){return this.$$.ctx[6]}set lang(i){this.$$set({lang:i}),r.flush()}get translationurl(){return this.$$.ctx[7]}set translationurl(i){this.$$set({translationurl:i}),r.flush()}get clientstyling(){return this.$$.ctx[8]}set clientstyling(i){this.$$set({clientstyling:i}),r.flush()}get clientstylingurl(){return this.$$.ctx[9]}set clientstylingurl(i){this.$$set({clientstylingurl:i}),r.flush()}get session(){return this.$$.ctx[10]}set session(i){this.$$set({session:i}),r.flush()}get customerid(){return this.$$.ctx[11]}set customerid(i){this.$$set({customerid:i}),r.flush()}get ismobileview(){return this.$$.ctx[12]}set ismobileview(i){this.$$set({ismobileview:i}),r.flush()}}r.create_custom_element(E,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{}},[],[],!0);exports.default=E;
|