@everymatrix/cashier-page 1.76.4 → 1.76.6

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.
Files changed (60) hide show
  1. package/components/{CashierError-DsMwtzxf.cjs → CashierError-D4Ly9gf-.cjs} +4 -4
  2. package/components/{CashierError-Em-_czPe.js → CashierError-JGcUDe5q.js} +1 -1
  3. package/components/{CashierError-yvKyTaTC.js → CashierError-Pah8UQRU.js} +1 -1
  4. package/components/{CashierHeader-CuDEl1w1.cjs → CashierHeader-7TEoWnmr.cjs} +1 -1
  5. package/components/{CashierHeader-Dxi8Jtj4.js → CashierHeader-B-6229QC.js} +1 -1
  6. package/components/{CashierHeader-RLJk1gKN.js → CashierHeader-hmszYvmh.js} +1 -1
  7. package/components/{CashierIframeRedirect-N_09LMIf.js → CashierIframeRedirect-CeCwhuEC.js} +3 -3
  8. package/components/{CashierIframeRedirect-Cco7Gb7R.js → CashierIframeRedirect-D-UbBdvU.js} +3 -3
  9. package/components/{CashierIframeRedirect-CnJ84d_e.cjs → CashierIframeRedirect-DufSDCHc.cjs} +1 -1
  10. package/components/CashierMethodDetails-CCvGvImq.cjs +100 -0
  11. package/components/{CashierMethodDetails-I1ULEoTT.js → CashierMethodDetails-DIPaEztP.js} +3155 -3424
  12. package/components/{CashierMethodDetails-Dkt9M8SJ.js → CashierMethodDetails-DL0jGlq-.js} +3066 -3335
  13. package/components/{CashierMethodsList-B-8ChoCF.js → CashierMethodsList-Be1K_DSz.js} +2 -2
  14. package/components/{CashierMethodsList-v4GpQIuZ.cjs → CashierMethodsList-CmMjF5Qz.cjs} +1 -1
  15. package/components/{CashierMethodsList-Ws4f-d0D.js → CashierMethodsList-XVaC4KBw.js} +2 -2
  16. package/components/CashierModal-BD1P0e2M.js +268 -0
  17. package/components/CashierModal-CJQYy1vM.js +268 -0
  18. package/components/CashierModal-Du43ecUa.cjs +1 -0
  19. package/components/{CashierNotifications-BCh3NAch.cjs → CashierNotifications-4k9EHney.cjs} +1 -1
  20. package/components/{CashierNotifications-B2IF5AKx.js → CashierNotifications-BkEBfVRL.js} +1 -1
  21. package/components/{CashierNotifications-BpwG5KTj.js → CashierNotifications-Du3gv_p2.js} +1 -1
  22. package/components/CashierPage-CEg5bfhM.js +2555 -0
  23. package/components/CashierPage-D6O-bppA.js +2555 -0
  24. package/components/CashierPage-DY8eNfgA.cjs +1 -0
  25. package/components/{CashierReceiptPage-B5AHJwdZ.js → CashierReceiptPage-BHip2xEe.js} +93 -98
  26. package/components/CashierReceiptPage-BJa57cwt.cjs +1 -0
  27. package/components/{CashierReceiptPage-BagkO30m.js → CashierReceiptPage-qZhdiDvO.js} +87 -92
  28. package/components/{CashierSessionExpirationModal-NGNJ3oLH.cjs → CashierSessionExpirationModal--BscQIqY.cjs} +2 -2
  29. package/components/{CashierSessionExpirationModal-BJo_prcQ.js → CashierSessionExpirationModal-OdxW_IRP.js} +4 -4
  30. package/components/{CashierSessionExpirationModal-D1JlHD-p.js → CashierSessionExpirationModal-lfnxQ2Xv.js} +4 -4
  31. package/components/{CashierSpinner-C22FDQ97.js → CashierSpinner-BhprtVru.js} +1 -1
  32. package/components/{CashierSpinner-BUwNkgvV.js → CashierSpinner-dlGI7cAT.js} +1 -1
  33. package/components/{CashierSpinner-B2gn5ROq.cjs → CashierSpinner-frLgxxaM.cjs} +1 -1
  34. package/components/{CashierTransactionHistory-CVIrofQA.js → CashierTransactionHistory-BmQFMz-n.js} +5 -5
  35. package/components/{CashierTransactionHistory-qeDvpFLP.js → CashierTransactionHistory-CzTqqXqb.js} +5 -5
  36. package/components/{CashierTransactionHistory-ox8r32fd.cjs → CashierTransactionHistory-D72Vabz1.cjs} +1 -1
  37. package/components/CashierVerifications-CNFGuUrd.js +604 -0
  38. package/components/CashierVerifications-CTurGxxs.js +608 -0
  39. package/components/CashierVerifications-lT3j_QiA.cjs +1 -0
  40. package/components/{TxnStatusIcon-nKCGcJ5M.js → TxnStatusIcon-C49SJ8zW.js} +1 -1
  41. package/components/{TxnStatusIcon-B04w0fo2.js → TxnStatusIcon-PU4w1Svj.js} +1 -1
  42. package/components/{TxnStatusIcon-DFkrUixr.cjs → TxnStatusIcon-TDn0xXca.cjs} +1 -1
  43. package/components/{TxnTypeIcons-CKT9qv8s.js → TxnTypeIcons-B4sAslci.js} +1 -1
  44. package/components/{TxnTypeIcons-B37wJ04B.cjs → TxnTypeIcons-Bf_EvSei.cjs} +1 -1
  45. package/components/{TxnTypeIcons-CpvqiIon.js → TxnTypeIcons-BoUx1A9V.js} +1 -1
  46. package/es2015/cashier-page.cjs +1 -1
  47. package/es2015/cashier-page.js +1 -1
  48. package/esnext/cashier-page.js +1 -1
  49. package/package.json +1 -1
  50. package/components/CashierMethodDetails-BdOa371S.cjs +0 -99
  51. package/components/CashierModal-BXxFqB-I.cjs +0 -1
  52. package/components/CashierModal-CASS0-KJ.js +0 -249
  53. package/components/CashierModal-ClAusfBV.js +0 -249
  54. package/components/CashierPage-BBV2mhMw.js +0 -2343
  55. package/components/CashierPage-CGrBSaaJ.cjs +0 -1
  56. package/components/CashierPage-DrzPS3IQ.js +0 -2343
  57. package/components/CashierReceiptPage-Bp8508qg.cjs +0 -1
  58. package/components/CashierVerifications-BI0KHSGz.js +0 -647
  59. package/components/CashierVerifications-BcD3FsVC.js +0 -643
  60. package/components/CashierVerifications-CoUPH9y3.cjs +0 -1
@@ -0,0 +1,608 @@
1
+ import { a as Oe, i as Te, $ as Be, S as Me, b as Le, s as xe, f as y, c as qe, y as X, e as b, N as C, k as D, m as w, o as V, p as Q, q as Fe, x as ze, F as q, O as $, P as Ie, n as B, r as Ee, l as k, z as N, v as Re, w as Ue, A as He, B as Ne, C as je, D as We, E as Ye } from "./CashierError-JGcUDe5q.js";
2
+ import { d as ee, u as Ke, i as Ge, x as Ze } from "./CashierMethodDetails-DIPaEztP.js";
3
+ function ie(t, i) {
4
+ Oe(t, i);
5
+ }
6
+ function Je(t) {
7
+ Te({
8
+ fallbackLocale: "en"
9
+ }), Be.set(t);
10
+ }
11
+ const te = {
12
+ en: {
13
+ "verification.video.how-to": "How to verify yourself",
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.video.how-to": "Kimlik doğrulama nasıl yapılır",
32
+ "verification.idenfy.referred-awaiting": "Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz",
33
+ "verification.message.failed": "Döküman doğrulama başarısız, hesabınız doğrulanamadı",
34
+ "verification.idenfy.link-name": "link",
35
+ "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",
36
+ "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}",
37
+ "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.",
38
+ "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.",
39
+ "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.",
40
+ "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.",
41
+ "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.",
42
+ "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.",
43
+ "verification.shuftipro.link-name.Biometric": "Doğrulama Yap",
44
+ "verification.shuftipro.link-name.Documents": "Documents",
45
+ "verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
46
+ "verification.shuftipro.validations-started": "Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"
47
+ },
48
+ hr: {
49
+ "verification.video.how-to": "How to verify yourself",
50
+ "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",
51
+ "verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
52
+ "verification.idenfy.link-name": "link",
53
+ "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",
54
+ "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.",
55
+ "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.",
56
+ "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.",
57
+ "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.",
58
+ "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.",
59
+ "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.",
60
+ "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.",
61
+ "verification.shuftipro.link-name.Biometric": "Biometric",
62
+ "verification.shuftipro.link-name.Documents": "Documents",
63
+ "verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
64
+ "verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
65
+ }
66
+ };
67
+ function Xe(t) {
68
+ qe(t, "svelte-ltlo52", "*,*::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%}.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: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(--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}.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}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
69
+ }
70
+ function re(t, i, o) {
71
+ const a = t.slice();
72
+ return a[55] = i[o], a[57] = o, a;
73
+ }
74
+ function Qe(t) {
75
+ let i, o, a, n = $(
76
+ /*displayMessages*/
77
+ t[3]
78
+ ), s = [];
79
+ for (let l = 0; l < n.length; l += 1)
80
+ s[l] = se(re(t, n, l));
81
+ let c = (
82
+ /*videoExists*/
83
+ t[6] && ne(t)
84
+ );
85
+ return {
86
+ c() {
87
+ i = w("div");
88
+ for (let l = 0; l < s.length; l += 1)
89
+ s[l].c();
90
+ o = B(), c && c.c(), a = Ee(), V(i, "class", "CashierVerificationsWrapper");
91
+ },
92
+ m(l, h) {
93
+ D(l, i, h);
94
+ for (let d = 0; d < s.length; d += 1)
95
+ s[d] && s[d].m(i, null);
96
+ D(l, o, h), c && c.m(l, h), D(l, a, h);
97
+ },
98
+ p(l, h) {
99
+ if (h[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
100
+ 536) {
101
+ n = $(
102
+ /*displayMessages*/
103
+ l[3]
104
+ );
105
+ let d;
106
+ for (d = 0; d < n.length; d += 1) {
107
+ const u = re(l, n, d);
108
+ s[d] ? s[d].p(u, h) : (s[d] = se(u), s[d].c(), s[d].m(i, null));
109
+ }
110
+ for (; d < s.length; d += 1)
111
+ s[d].d(1);
112
+ s.length = n.length;
113
+ }
114
+ /*videoExists*/
115
+ l[6] ? c ? c.p(l, h) : (c = ne(l), c.c(), c.m(a.parentNode, a)) : c && (c.d(1), c = null);
116
+ },
117
+ d(l) {
118
+ l && (b(i), b(o), b(a)), Ie(s, l), c && c.d(l);
119
+ }
120
+ };
121
+ }
122
+ function $e(t) {
123
+ let i;
124
+ return {
125
+ c() {
126
+ i = w("cashier-spinner"), q(
127
+ i,
128
+ "clientstylingurl",
129
+ /*clientstylingurl*/
130
+ t[1]
131
+ ), q(
132
+ i,
133
+ "clientstyling",
134
+ /*clientstyling*/
135
+ t[0]
136
+ );
137
+ },
138
+ m(o, a) {
139
+ D(o, i, a);
140
+ },
141
+ p(o, a) {
142
+ a[0] & /*clientstylingurl*/
143
+ 2 && q(
144
+ i,
145
+ "clientstylingurl",
146
+ /*clientstylingurl*/
147
+ o[1]
148
+ ), a[0] & /*clientstyling*/
149
+ 1 && q(
150
+ i,
151
+ "clientstyling",
152
+ /*clientstyling*/
153
+ o[0]
154
+ );
155
+ },
156
+ d(o) {
157
+ o && b(i);
158
+ }
159
+ };
160
+ }
161
+ function oe(t) {
162
+ let i, o, a;
163
+ function n(...s) {
164
+ return (
165
+ /*click_handler*/
166
+ t[19](
167
+ /*index*/
168
+ t[57],
169
+ ...s
170
+ )
171
+ );
172
+ }
173
+ return {
174
+ c() {
175
+ i = w("span"), i.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', V(i, "class", "CashierVerificationChevron");
176
+ },
177
+ m(s, c) {
178
+ D(s, i, c), o || (a = N(i, "click", n), o = !0);
179
+ },
180
+ p(s, c) {
181
+ t = s;
182
+ },
183
+ d(s) {
184
+ s && b(i), o = !1, a();
185
+ }
186
+ };
187
+ }
188
+ function se(t) {
189
+ let i, o, a, n, s = (
190
+ /*message*/
191
+ t[55] + ""
192
+ ), c, l, h, d, u = (
193
+ /*displayMessages*/
194
+ t[3].length > 1 && /*index*/
195
+ t[57] === 0 && oe(t)
196
+ );
197
+ function A(...g) {
198
+ return (
199
+ /*click_handler_1*/
200
+ t[20](
201
+ /*index*/
202
+ t[57],
203
+ ...g
204
+ )
205
+ );
206
+ }
207
+ return {
208
+ c() {
209
+ i = w("div"), o = w("div"), o.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', a = B(), n = w("p"), c = B(), u && u.c(), l = B(), V(o, "class", "IconVerification"), V(n, "class", "text"), V(i, "class", "CashierVerificationMessage"), C(
210
+ i,
211
+ "ShowAll",
212
+ /*allVerificationsVisible*/
213
+ t[4]
214
+ );
215
+ },
216
+ m(g, v) {
217
+ D(g, i, v), k(i, o), k(i, a), k(i, n), n.innerHTML = s, k(i, c), u && u.m(i, null), k(i, l), h || (d = N(i, "click", A), h = !0);
218
+ },
219
+ p(g, v) {
220
+ t = g, v[0] & /*displayMessages*/
221
+ 8 && s !== (s = /*message*/
222
+ t[55] + "") && (n.innerHTML = s), /*displayMessages*/
223
+ t[3].length > 1 && /*index*/
224
+ t[57] === 0 ? u ? u.p(t, v) : (u = oe(t), u.c(), u.m(i, l)) : u && (u.d(1), u = null), v[0] & /*allVerificationsVisible*/
225
+ 16 && C(
226
+ i,
227
+ "ShowAll",
228
+ /*allVerificationsVisible*/
229
+ t[4]
230
+ );
231
+ },
232
+ d(g) {
233
+ g && b(i), u && u.d(), h = !1, d();
234
+ }
235
+ };
236
+ }
237
+ function ne(t) {
238
+ let i, o, a, n, s = (
239
+ /*$_*/
240
+ t[8]("verification.video.how-to") + ""
241
+ ), c, l, h;
242
+ return {
243
+ c() {
244
+ i = w("div"), o = w("div"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', a = B(), n = w("div"), c = Ue(s), V(o, "class", "IconVideo"), V(n, "class", "CashierVerificationVideoLink"), C(
245
+ n,
246
+ "CashierVerificationVideoLinkDesktop",
247
+ /*desktopView*/
248
+ t[5]
249
+ ), V(i, "class", "CashierVerificationVideo");
250
+ },
251
+ m(d, u) {
252
+ D(d, i, u), k(i, o), k(i, a), k(i, n), k(n, c), l || (h = N(
253
+ n,
254
+ "click",
255
+ /*showVideo*/
256
+ t[10]
257
+ ), l = !0);
258
+ },
259
+ p(d, u) {
260
+ u[0] & /*$_*/
261
+ 256 && s !== (s = /*$_*/
262
+ d[8]("verification.video.how-to") + "") && Re(c, s), u[0] & /*desktopView*/
263
+ 32 && C(
264
+ n,
265
+ "CashierVerificationVideoLinkDesktop",
266
+ /*desktopView*/
267
+ d[5]
268
+ );
269
+ },
270
+ d(d) {
271
+ d && b(i), l = !1, h();
272
+ }
273
+ };
274
+ }
275
+ function ei(t) {
276
+ let i;
277
+ function o(s, c) {
278
+ if (
279
+ /*isLoading*/
280
+ s[7]
281
+ )
282
+ return $e;
283
+ if (
284
+ /*displayMessages*/
285
+ s[3]
286
+ )
287
+ return Qe;
288
+ }
289
+ let a = o(t), n = a && a(t);
290
+ return {
291
+ c() {
292
+ i = w("div"), n && n.c(), V(i, "class", "CashierVerifications"), C(
293
+ i,
294
+ "CashierVerificationsDesktop",
295
+ /*desktopView*/
296
+ t[5]
297
+ );
298
+ },
299
+ m(s, c) {
300
+ D(s, i, c), n && n.m(i, null), t[21](i);
301
+ },
302
+ p(s, c) {
303
+ a === (a = o(s)) && n ? n.p(s, c) : (n && n.d(1), n = a && a(s), n && (n.c(), n.m(i, null))), c[0] & /*desktopView*/
304
+ 32 && C(
305
+ i,
306
+ "CashierVerificationsDesktop",
307
+ /*desktopView*/
308
+ s[5]
309
+ );
310
+ },
311
+ i: X,
312
+ o: X,
313
+ d(s) {
314
+ s && b(i), n && n.d(), t[21](null);
315
+ }
316
+ };
317
+ }
318
+ const ii = "verification_explanation_video_widgets.MP4";
319
+ function ti(t, i, o) {
320
+ let a, n;
321
+ Q(t, Ye, (e) => o(8, a = e)), Q(t, Ze, (e) => o(29, n = e)), ee.extend(Ke);
322
+ let { endpoint: s } = i, { lang: c = "en" } = i, { translationurl: l = "" } = i, { clientstyling: h = "" } = i, { clientstylingurl: d = "" } = i, { session: u = "" } = i, { customerid: A = "" } = i, { playersession: g = "" } = i, { mbsource: v = "" } = i, S, j = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), M, L, F, z = !0, Y = !0, I = !1, E = "", R = !1, ae = window.navigator.userAgent;
323
+ var O;
324
+ (function(e) {
325
+ e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
326
+ })(O || (O = {}));
327
+ var U;
328
+ (function(e) {
329
+ e.Requested = "Requested";
330
+ })(U || (U = {}));
331
+ var p;
332
+ (function(e) {
333
+ 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";
334
+ })(p || (p = {}));
335
+ var T;
336
+ (function(e) {
337
+ 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";
338
+ })(T || (T = {}));
339
+ const K = (e) => {
340
+ e.data && e.data.type;
341
+ };
342
+ Fe(() => (window.addEventListener("message", K), be(), () => {
343
+ window.removeEventListener("message", K);
344
+ }));
345
+ const ce = [
346
+ p.InProgress,
347
+ p.Referred,
348
+ p.AwaitingForResponse
349
+ ], le = () => {
350
+ let e = l;
351
+ if (e)
352
+ return fetch(e).then((r) => r.json()).then((r) => {
353
+ Object.keys(r).forEach((f) => {
354
+ ie(f, r[f]);
355
+ });
356
+ }).catch((r) => {
357
+ console.log(r);
358
+ });
359
+ };
360
+ Object.keys(te).forEach((e) => {
361
+ ie(e, te[e]);
362
+ });
363
+ const fe = () => {
364
+ Je(c);
365
+ }, G = () => {
366
+ o(18, L = he());
367
+ const e = new URL(`${s}/v1/player/${A}/verification/GetKYCCustomerStatus?language=${c}`), r = new Headers();
368
+ r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("x-sessionid", `${g}`), r.append("X-Client-Request-Timestamp", ee.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
369
+ const f = {
370
+ method: "POST",
371
+ headers: r,
372
+ body: JSON.stringify({})
373
+ };
374
+ o(7, R = !0), fetch(e, f).then((m) => m.json()).then((m) => {
375
+ const P = de(m == null ? void 0 : m.Verifications);
376
+ M = me(P), M.VerificationStatuses.forEach((x) => {
377
+ x.VerificationUrlType !== "Widget" && j.add(x.Vendor);
378
+ }), o(3, F = J());
379
+ }).finally(() => o(7, R = !1));
380
+ }, de = (e) => e ? e.sort((r, f) => new Date(f.Created).getTime() - new Date(r.Created).getTime()) : [], ue = () => {
381
+ n && G();
382
+ }, he = () => {
383
+ let e = (u || n).split(".")[1];
384
+ if (e) {
385
+ let r = JSON.parse(atob(e));
386
+ return r.cdn + "/cashier/operator-assets/" + (r == null ? void 0 : r.mid);
387
+ }
388
+ return "";
389
+ }, me = (e) => {
390
+ var f;
391
+ if (!e || !e.length)
392
+ return {
393
+ VerificationSummaryStatus: p.Unverified,
394
+ VerificationStatuses: []
395
+ };
396
+ const r = ge(e);
397
+ if (r && r.length) {
398
+ const m = pe(r);
399
+ return {
400
+ VerificationSummaryStatus: m.Status,
401
+ VerificationUrl: (f = m.Flags) == null ? void 0 : f.DeferredUrlKey,
402
+ VerificationStatuses: Z(r, m.Status)
403
+ };
404
+ } else
405
+ return {
406
+ VerificationSummaryStatus: e.some((P) => P.Status === p.Failed) ? p.Failed : p.Verified,
407
+ VerificationStatuses: Z(e, [p.Failed])
408
+ };
409
+ }, pe = (e) => e.reduce(
410
+ (r, f) => r ? new Date(r) < new Date(f) ? f : r : f,
411
+ 0
412
+ ), Z = (e, r) => e.filter((f) => r.includes(f.Status)).map((f) => {
413
+ var m, P;
414
+ return {
415
+ Type: f.Type,
416
+ Vendor: f.VendorName,
417
+ VerificationDocuments: f.Documents ? [...f.Documents] : [],
418
+ VerificationUrlType: (m = f.FlowInfo) == null ? void 0 : m.Type,
419
+ VerificationUrl: (P = f.FlowInfo) == null ? void 0 : P.Url
420
+ };
421
+ }), ge = (e) => e.filter((r) => ce.includes(r.Status) ? r.FlowInfo && r.FlowInfo.Url || ve(r) || we(r) : !1), ve = (e) => {
422
+ const r = e.Documents && e.VendorName === O.Manual, f = e.Documents && e.Documents.some((m) => m.Status === U.Requested);
423
+ return r && f;
424
+ }, we = (e) => e.VendorName === O.ShuftiPro && e.Status === p.Referred, J = () => {
425
+ switch (M.VerificationSummaryStatus) {
426
+ case p.InProgress:
427
+ const e = [];
428
+ return j.forEach((r) => {
429
+ e.push(ye(r));
430
+ }), e;
431
+ case p.Referred:
432
+ return [a("verification.idenfy.referred-awaiting")];
433
+ case p.Failed:
434
+ return [a("verification.message.failed")];
435
+ }
436
+ }, ye = (e) => {
437
+ const r = M.VerificationStatuses.filter((f) => f.Vendor === e);
438
+ if (e === O.ShuftiPro)
439
+ return ke(r);
440
+ {
441
+ const f = a("verification.idenfy.link-name"), m = {
442
+ link: `<a href="${r[0].VerificationUrl}" target="_blank">${f}</a>`
443
+ };
444
+ return a("verification.idenfy.in-progress", { values: m });
445
+ }
446
+ }, ke = (e) => {
447
+ const r = [], f = {}, m = [
448
+ T.Biometric,
449
+ T.Documents,
450
+ T.ProofOfAddress
451
+ ];
452
+ e.forEach((_) => {
453
+ m.includes(_.Type) && (r.push(_.Type), f[_.Type] = Ve(_, Pe(_.Type)));
454
+ });
455
+ let P = r.every((_) => W.has(_)), x = `verification.shuftipro.in-progress.${r.sort().join(".")}`;
456
+ return P ? a("verification.shuftipro.validations-started") : a(x, { values: f });
457
+ }, Ve = (e, r) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${r}</a>`, Pe = (e) => a(`verification.shuftipro.link-name.${e}`), H = (e, r) => {
458
+ if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
459
+ if (e.target.closest(".verificationLink")) {
460
+ const f = e.target.className.split(" ")[1];
461
+ W.add(f), o(3, F = J());
462
+ }
463
+ return;
464
+ }
465
+ r === 0 && o(4, z = !z);
466
+ }, be = () => {
467
+ o(5, Y = !Ge(ae));
468
+ }, De = () => {
469
+ E = L + "/" + c + "/" + ii;
470
+ try {
471
+ fetch(E, { method: "HEAD" }).then((e) => {
472
+ o(6, I = e.ok);
473
+ });
474
+ } catch (e) {
475
+ o(6, I = !1);
476
+ }
477
+ }, Se = () => {
478
+ window.dispatchEvent(new CustomEvent(
479
+ "modal-update",
480
+ {
481
+ detail: { type: "video", data: { videoSrc: E } }
482
+ }
483
+ ));
484
+ }, _e = (e, r) => H(r, e), Ce = (e, r) => H(r, e);
485
+ function Ae(e) {
486
+ ze[e ? "unshift" : "push"](() => {
487
+ S = e, o(2, S);
488
+ });
489
+ }
490
+ return t.$$set = (e) => {
491
+ "endpoint" in e && o(11, s = e.endpoint), "lang" in e && o(12, c = e.lang), "translationurl" in e && o(13, l = e.translationurl), "clientstyling" in e && o(0, h = e.clientstyling), "clientstylingurl" in e && o(1, d = e.clientstylingurl), "session" in e && o(14, u = e.session), "customerid" in e && o(15, A = e.customerid), "playersession" in e && o(16, g = e.playersession), "mbsource" in e && o(17, v = e.mbsource);
492
+ }, t.$$.update = () => {
493
+ t.$$.dirty[0] & /*lang*/
494
+ 4096 && c && fe(), t.$$.dirty[0] & /*endpoint, session, playersession*/
495
+ 83968 && s && u && g && G(), t.$$.dirty[0] & /*endpoint, session, playersession*/
496
+ 83968 && s && !u && g && ue(), t.$$.dirty[0] & /*translationurl*/
497
+ 8192 && l && le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
498
+ 5 && h && S && He(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
499
+ 6 && d && S && Ne(), t.$$.dirty[0] & /*staticCdnUrl*/
500
+ 262144 && L && De(), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
501
+ 131076 && v && S && je(S, `${v}.Style`);
502
+ }, [
503
+ h,
504
+ d,
505
+ S,
506
+ F,
507
+ z,
508
+ Y,
509
+ I,
510
+ R,
511
+ a,
512
+ H,
513
+ Se,
514
+ s,
515
+ c,
516
+ l,
517
+ u,
518
+ A,
519
+ g,
520
+ v,
521
+ L,
522
+ _e,
523
+ Ce,
524
+ Ae
525
+ ];
526
+ }
527
+ class ri extends Me {
528
+ constructor(i) {
529
+ super(), Le(
530
+ this,
531
+ i,
532
+ ti,
533
+ ei,
534
+ xe,
535
+ {
536
+ endpoint: 11,
537
+ lang: 12,
538
+ translationurl: 13,
539
+ clientstyling: 0,
540
+ clientstylingurl: 1,
541
+ session: 14,
542
+ customerid: 15,
543
+ playersession: 16,
544
+ mbsource: 17
545
+ },
546
+ Xe,
547
+ [-1, -1]
548
+ );
549
+ }
550
+ get endpoint() {
551
+ return this.$$.ctx[11];
552
+ }
553
+ set endpoint(i) {
554
+ this.$$set({ endpoint: i }), y();
555
+ }
556
+ get lang() {
557
+ return this.$$.ctx[12];
558
+ }
559
+ set lang(i) {
560
+ this.$$set({ lang: i }), y();
561
+ }
562
+ get translationurl() {
563
+ return this.$$.ctx[13];
564
+ }
565
+ set translationurl(i) {
566
+ this.$$set({ translationurl: i }), y();
567
+ }
568
+ get clientstyling() {
569
+ return this.$$.ctx[0];
570
+ }
571
+ set clientstyling(i) {
572
+ this.$$set({ clientstyling: i }), y();
573
+ }
574
+ get clientstylingurl() {
575
+ return this.$$.ctx[1];
576
+ }
577
+ set clientstylingurl(i) {
578
+ this.$$set({ clientstylingurl: i }), y();
579
+ }
580
+ get session() {
581
+ return this.$$.ctx[14];
582
+ }
583
+ set session(i) {
584
+ this.$$set({ session: i }), y();
585
+ }
586
+ get customerid() {
587
+ return this.$$.ctx[15];
588
+ }
589
+ set customerid(i) {
590
+ this.$$set({ customerid: i }), y();
591
+ }
592
+ get playersession() {
593
+ return this.$$.ctx[16];
594
+ }
595
+ set playersession(i) {
596
+ this.$$set({ playersession: i }), y();
597
+ }
598
+ get mbsource() {
599
+ return this.$$.ctx[17];
600
+ }
601
+ set mbsource(i) {
602
+ this.$$set({ mbsource: i }), y();
603
+ }
604
+ }
605
+ We(ri, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, playersession: {}, mbsource: {} }, [], [], !0);
606
+ export {
607
+ ri as default
608
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierError-D4Ly9gf-.cjs"),D=require("./CashierMethodDetails-CCvGvImq.cjs");function H(r,t){i.addMessages(r,t)}function we(r){i.init({fallbackLocale:"en"}),i.$locale.set(r)}const N={en:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"},tr:{"verification.video.how-to":"Kimlik doğrulama nasıl yapılır","verification.idenfy.referred-awaiting":"Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz","verification.message.failed":"Döküman doğrulama başarısız, hesabınız doğrulanamadı","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"Hesabınızdan çekim yapabilmek için kullanıcı doğrulaması gerekiyor. Lütfen kimliğinizi hazır edin ve {link} adresinden doğrulamayı başlatın","verification.shuftipro.in-progress.Biometric":"İşlemi gerçekleştirmek için kullanıcı doğrulamasını geçmeniz gerekmektedir. Doğrulamayı başlatmak için Lütfen linke tıklayın {Biometric}","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Doğrulama Yap","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"},hr:{"verification.video.how-to":"How to verify yourself","verification.idenfy.referred-awaiting":"ID verification is in progress. We will inform you as soon as verification is completed and you can withdraw money back","verification.message.failed":"We apologize, but we were unable to verify your account. Please contact support team","verification.idenfy.link-name":"link","verification.idenfy.in-progress":"To withdraw funds to your account you are required to pass user verification. Please have your ID ready and follow the {link} to start verification","verification.shuftipro.in-progress.Biometric":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification.","verification.shuftipro.in-progress.Biometric.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {Documents} verification.","verification.shuftipro.in-progress.Biometric.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification, {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Biometric.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Biometric} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.Documents":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification.","verification.shuftipro.in-progress.Documents.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {Documents} verification and {ProofOfAddress} verification.","verification.shuftipro.in-progress.ProofOfAddress":"To proceed with a transaction you are required to pass user verification. Please follow the link to start {ProofOfAddress} verification.","verification.shuftipro.link-name.Biometric":"Biometric","verification.shuftipro.link-name.Documents":"Documents","verification.shuftipro.link-name.ProofOfAddress":"Proof Of Address","verification.shuftipro.validations-started":"After completing verification, please proceed with the transaction"}};function ye(r){i.append_styles(r,"svelte-ltlo52","*,*::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%}.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: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(--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}.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}.CashierVerificationVideoLink{cursor:pointer;color:var(--emw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}")}function W(r,t,n){const l=r.slice();return l[55]=t[n],l[57]=n,l}function ke(r){let t,n,l,a=i.ensure_array_like(r[3]),s=[];for(let f=0;f<a.length;f+=1)s[f]=K(W(r,a,f));let c=r[6]&&G(r);return{c(){t=i.element("div");for(let f=0;f<s.length;f+=1)s[f].c();n=i.space(),c&&c.c(),l=i.empty(),i.attr(t,"class","CashierVerificationsWrapper")},m(f,m){i.insert(f,t,m);for(let u=0;u<s.length;u+=1)s[u]&&s[u].m(t,null);i.insert(f,n,m),c&&c.m(f,m),i.insert(f,l,m)},p(f,m){if(m[0]&536){a=i.ensure_array_like(f[3]);let u;for(u=0;u<a.length;u+=1){const h=W(f,a,u);s[u]?s[u].p(h,m):(s[u]=K(h),s[u].c(),s[u].m(t,null))}for(;u<s.length;u+=1)s[u].d(1);s.length=a.length}f[6]?c?c.p(f,m):(c=G(f),c.c(),c.m(l.parentNode,l)):c&&(c.d(1),c=null)},d(f){f&&(i.detach(t),i.detach(n),i.detach(l)),i.destroy_each(s,f),c&&c.d(f)}}}function _e(r){let t;return{c(){t=i.element("cashier-spinner"),i.set_custom_element_data(t,"clientstylingurl",r[1]),i.set_custom_element_data(t,"clientstyling",r[0])},m(n,l){i.insert(n,t,l)},p(n,l){l[0]&2&&i.set_custom_element_data(t,"clientstylingurl",n[1]),l[0]&1&&i.set_custom_element_data(t,"clientstyling",n[0])},d(n){n&&i.detach(t)}}}function Y(r){let t,n,l;function a(...s){return r[19](r[57],...s)}return{c(){t=i.element("span"),t.innerHTML='<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>',i.attr(t,"class","CashierVerificationChevron")},m(s,c){i.insert(s,t,c),n||(l=i.listen(t,"click",a),n=!0)},p(s,c){r=s},d(s){s&&i.detach(t),n=!1,l()}}}function K(r){let t,n,l,a,s=r[55]+"",c,f,m,u,h=r[3].length>1&&r[57]===0&&Y(r);function V(...v){return r[20](r[57],...v)}return{c(){t=i.element("div"),n=i.element("div"),n.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>',l=i.space(),a=i.element("p"),c=i.space(),h&&h.c(),f=i.space(),i.attr(n,"class","IconVerification"),i.attr(a,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[4])},m(v,w){i.insert(v,t,w),i.append(t,n),i.append(t,l),i.append(t,a),a.innerHTML=s,i.append(t,c),h&&h.m(t,null),i.append(t,f),m||(u=i.listen(t,"click",V),m=!0)},p(v,w){r=v,w[0]&8&&s!==(s=r[55]+"")&&(a.innerHTML=s),r[3].length>1&&r[57]===0?h?h.p(r,w):(h=Y(r),h.c(),h.m(t,f)):h&&(h.d(1),h=null),w[0]&16&&i.toggle_class(t,"ShowAll",r[4])},d(v){v&&i.detach(t),h&&h.d(),m=!1,u()}}}function G(r){let t,n,l,a,s=r[8]("verification.video.how-to")+"",c,f,m;return{c(){t=i.element("div"),n=i.element("div"),n.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>',l=i.space(),a=i.element("div"),c=i.text(s),i.attr(n,"class","IconVideo"),i.attr(a,"class","CashierVerificationVideoLink"),i.toggle_class(a,"CashierVerificationVideoLinkDesktop",r[5]),i.attr(t,"class","CashierVerificationVideo")},m(u,h){i.insert(u,t,h),i.append(t,n),i.append(t,l),i.append(t,a),i.append(a,c),f||(m=i.listen(a,"click",r[10]),f=!0)},p(u,h){h[0]&256&&s!==(s=u[8]("verification.video.how-to")+"")&&i.set_data(c,s),h[0]&32&&i.toggle_class(a,"CashierVerificationVideoLinkDesktop",u[5])},d(u){u&&i.detach(t),f=!1,m()}}}function Ve(r){let t;function n(s,c){if(s[7])return _e;if(s[3])return ke}let l=n(r),a=l&&l(r);return{c(){t=i.element("div"),a&&a.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[5])},m(s,c){i.insert(s,t,c),a&&a.m(t,null),r[21](t)},p(s,c){l===(l=n(s))&&a?a.p(s,c):(a&&a.d(1),a=l&&l(s),a&&(a.c(),a.m(t,null))),c[0]&32&&i.toggle_class(t,"CashierVerificationsDesktop",s[5])},i:i.noop,o:i.noop,d(s){s&&i.detach(t),a&&a.d(),r[21](null)}}}const Pe="verification_explanation_video_widgets.MP4";function be(r,t,n){let l,a;i.component_subscribe(r,i.$format,e=>n(8,l=e)),i.component_subscribe(r,D.xPaymentSessionToken,e=>n(29,a=e)),D.dayjs.extend(D.utc);let{endpoint:s}=t,{lang:c="en"}=t,{translationurl:f=""}=t,{clientstyling:m=""}=t,{clientstylingurl:u=""}=t,{session:h=""}=t,{customerid:V=""}=t,{playersession:v=""}=t,{mbsource:w=""}=t,k,F=new Set,z=new Set,S,C,T,O=!0,I=!0,B=!1,M="",L=!1,J=window.navigator.userAgent;var P;(function(e){e.Manual="Manual",e.ShuftiPro="ShuftiPro"})(P||(P={}));var q;(function(e){e.Requested="Requested"})(q||(q={}));var g;(function(e){e.Unknown="Unknown",e.Unverified="Unverified",e.InProgress="InProgress",e.Failed="Failed",e.Verified="Verified",e.Referred="Referred",e.True="True",e.False="False",e.AwaitingForResponse="AwaitingForResponse"})(g||(g={}));var b;(function(e){e.Unknown="Unknown",e.Documents="Documents",e.Age="Age",e.Pep="Pep",e.Sanction="Sanction",e.Aml="Aml",e.ProofOfAddress="ProofOfAddress",e.SourceOfWealth="SourceOfWealth",e.SocialMedia="SocialMedia",e.Biometric="Biometric"})(b||(b={}));const E=e=>{e.data&&e.data.type};i.onMount(()=>(window.addEventListener("message",E),ue(),()=>{window.removeEventListener("message",E)}));const X=[g.InProgress,g.Referred,g.AwaitingForResponse],Q=()=>{let e=f;if(e)return fetch(e).then(o=>o.json()).then(o=>{Object.keys(o).forEach(d=>{H(d,o[d])})}).catch(o=>{console.log(o)})};Object.keys(N).forEach(e=>{H(e,N[e])});const $=()=>{we(c)},R=()=>{n(18,C=te());const e=new URL(`${s}/v1/player/${V}/verification/GetKYCCustomerStatus?language=${c}`),o=new Headers;o.append("accept","application/json"),o.append("Content-Type","application/json"),o.append("x-sessionid",`${v}`),o.append("X-Client-Request-Timestamp",D.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const d={method:"POST",headers:o,body:JSON.stringify({})};n(7,L=!0),fetch(e,d).then(p=>p.json()).then(p=>{const y=ee(p==null?void 0:p.Verifications);S=re(y),S.VerificationStatuses.forEach(A=>{A.VerificationUrlType!=="Widget"&&F.add(A.Vendor)}),n(3,T=j())}).finally(()=>n(7,L=!1))},ee=e=>e?e.sort((o,d)=>new Date(d.Created).getTime()-new Date(o.Created).getTime()):[],ie=()=>{a&&R()},te=()=>{let e=(h||a).split(".")[1];if(e){let o=JSON.parse(atob(e));return o.cdn+"/cashier/operator-assets/"+(o==null?void 0:o.mid)}return""},re=e=>{var d;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const o=ne(e);if(o&&o.length){const p=oe(o);return{VerificationSummaryStatus:p.Status,VerificationUrl:(d=p.Flags)==null?void 0:d.DeferredUrlKey,VerificationStatuses:U(o,p.Status)}}else return{VerificationSummaryStatus:e.some(y=>y.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:U(e,[g.Failed])}},oe=e=>e.reduce((o,d)=>o?new Date(o)<new Date(d)?d:o:d,0),U=(e,o)=>e.filter(d=>o.includes(d.Status)).map(d=>{var p,y;return{Type:d.Type,Vendor:d.VendorName,VerificationDocuments:d.Documents?[...d.Documents]:[],VerificationUrlType:(p=d.FlowInfo)==null?void 0:p.Type,VerificationUrl:(y=d.FlowInfo)==null?void 0:y.Url}}),ne=e=>e.filter(o=>X.includes(o.Status)?o.FlowInfo&&o.FlowInfo.Url||se(o)||ae(o):!1),se=e=>{const o=e.Documents&&e.VendorName===P.Manual,d=e.Documents&&e.Documents.some(p=>p.Status===q.Requested);return o&&d},ae=e=>e.VendorName===P.ShuftiPro&&e.Status===g.Referred,j=()=>{switch(S.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(o=>{e.push(le(o))}),e;case g.Referred:return[l("verification.idenfy.referred-awaiting")];case g.Failed:return[l("verification.message.failed")]}},le=e=>{const o=S.VerificationStatuses.filter(d=>d.Vendor===e);if(e===P.ShuftiPro)return ce(o);{const d=l("verification.idenfy.link-name"),p={link:`<a href="${o[0].VerificationUrl}" target="_blank">${d}</a>`};return l("verification.idenfy.in-progress",{values:p})}},ce=e=>{const o=[],d={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(_=>{p.includes(_.Type)&&(o.push(_.Type),d[_.Type]=fe(_,de(_.Type)))});let y=o.every(_=>z.has(_)),A=`verification.shuftipro.in-progress.${o.sort().join(".")}`;return y?l("verification.shuftipro.validations-started"):l(A,{values:d})},fe=(e,o)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`,de=e=>l(`verification.shuftipro.link-name.${e}`),x=(e,o)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const d=e.target.className.split(" ")[1];z.add(d),n(3,T=j())}return}o===0&&n(4,O=!O)},ue=()=>{n(5,I=!D.isMobile(J))},he=()=>{M=C+"/"+c+"/"+Pe;try{fetch(M,{method:"HEAD"}).then(e=>{n(6,B=e.ok)})}catch(e){n(6,B=!1)}},me=()=>{window.dispatchEvent(new CustomEvent("modal-update",{detail:{type:"video",data:{videoSrc:M}}}))},pe=(e,o)=>x(o,e),ge=(e,o)=>x(o,e);function ve(e){i.binding_callbacks[e?"unshift":"push"](()=>{k=e,n(2,k)})}return r.$$set=e=>{"endpoint"in e&&n(11,s=e.endpoint),"lang"in e&&n(12,c=e.lang),"translationurl"in e&&n(13,f=e.translationurl),"clientstyling"in e&&n(0,m=e.clientstyling),"clientstylingurl"in e&&n(1,u=e.clientstylingurl),"session"in e&&n(14,h=e.session),"customerid"in e&&n(15,V=e.customerid),"playersession"in e&&n(16,v=e.playersession),"mbsource"in e&&n(17,w=e.mbsource)},r.$$.update=()=>{r.$$.dirty[0]&4096&&c&&$(),r.$$.dirty[0]&83968&&s&&h&&v&&R(),r.$$.dirty[0]&83968&&s&&!h&&v&&ie(),r.$$.dirty[0]&8192&&f&&Q(),r.$$.dirty[0]&5&&m&&k&&i.setClientStyling(),r.$$.dirty[0]&6&&u&&k&&i.setClientStylingURL(),r.$$.dirty[0]&262144&&C&&he(),r.$$.dirty[0]&131076&&w&&k&&i.setStreamStyling(k,`${w}.Style`)},[m,u,k,T,O,I,B,L,l,x,me,s,c,f,h,V,v,w,C,pe,ge,ve]}class Z extends i.SvelteComponent{constructor(t){super(),i.init$1(this,t,be,Ve,i.safe_not_equal,{endpoint:11,lang:12,translationurl:13,clientstyling:0,clientstylingurl:1,session:14,customerid:15,playersession:16,mbsource:17},ye,[-1,-1])}get endpoint(){return this.$$.ctx[11]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(t){this.$$set({translationurl:t}),i.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(t){this.$$set({clientstyling:t}),i.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),i.flush()}get session(){return this.$$.ctx[14]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[15]}set customerid(t){this.$$set({customerid:t}),i.flush()}get playersession(){return this.$$.ctx[16]}set playersession(t){this.$$set({playersession:t}),i.flush()}get mbsource(){return this.$$.ctx[17]}set mbsource(t){this.$$set({mbsource:t}),i.flush()}}i.create_custom_element(Z,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},playersession:{},mbsource:{}},[],[],!0);exports.default=Z;