@everymatrix/cashier-page 1.76.0 → 1.76.1

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 (84) hide show
  1. package/components/{CashierError-Do2yNrqx.cjs → CashierError-BQyQ2QE7.cjs} +17 -4
  2. package/components/{CashierError-DW5fJt8u.js → CashierError-DrApuR85.js} +755 -723
  3. package/components/{CashierError-C-zeMshr.js → CashierError-bO6xrjYl.js} +772 -740
  4. package/components/{CashierHeader-DO8Jda8y.js → CashierHeader-BbZGAnuG.js} +35 -35
  5. package/components/{CashierHeader-b4lqjMMD.cjs → CashierHeader-CCegZMC-.cjs} +1 -1
  6. package/components/{CashierHeader-BvRhx3QL.js → CashierHeader-DNaxJTUL.js} +37 -37
  7. package/components/{CashierIframeRedirect-tAMQ7K0U.cjs → CashierIframeRedirect-Blfr3pyV.cjs} +1 -1
  8. package/components/{CashierIframeRedirect-DaYR4ZSu.js → CashierIframeRedirect-C4vwtj8l.js} +28 -28
  9. package/components/{CashierIframeRedirect-BeOg9j9R.js → CashierIframeRedirect-CTxdepS4.js} +34 -34
  10. package/components/{CashierMethodDetails-D1Rbykqx.js → CashierMethodDetails-Baj2EjN-.js} +2781 -2549
  11. package/components/{CashierMethodDetails-3jy1FDno.js → CashierMethodDetails-DVo0cXMI.js} +2832 -2600
  12. package/components/CashierMethodDetails-DdrzL7xr.cjs +86 -0
  13. package/components/{CashierMethodsList-LrhQVCu_.js → CashierMethodsList-DKbeO7Zb.js} +78 -78
  14. package/components/{CashierMethodsList-CscGn4Gv.cjs → CashierMethodsList-DPzaIMdg.cjs} +1 -1
  15. package/components/{CashierMethodsList-B2qR503A.js → CashierMethodsList-Dy8fB_k6.js} +72 -72
  16. package/components/CashierModal-Bn0175Ok.cjs +1 -0
  17. package/components/CashierModal-CvFJoOmo.js +249 -0
  18. package/components/CashierModal-IDFc2AKX.js +249 -0
  19. package/components/{CashierNotifications-BRJ9mXv_.cjs → CashierNotifications-C8NH2amn.cjs} +1 -1
  20. package/components/{CashierNotifications-BD7efj1m.js → CashierNotifications-CN6iz8Le.js} +32 -32
  21. package/components/{CashierNotifications-CUz6gwXF.js → CashierNotifications-Ca26lmek.js} +32 -32
  22. package/components/{CashierPage-BbXHTH84.cjs → CashierPage-CfO-JUd0.cjs} +1 -1
  23. package/components/{CashierPage-Db8ZicVP.js → CashierPage-CyTi5QHc.js} +808 -1186
  24. package/components/{CashierPage-CW6lgArf.js → CashierPage-D5aNp8Ge.js} +808 -1186
  25. package/components/{CashierReceiptPage-CBbzq7O6.js → CashierReceiptPage-0O5m5b_q.js} +112 -112
  26. package/components/{CashierReceiptPage-Br9U1RfK.js → CashierReceiptPage-CihaXe7B.js} +88 -88
  27. package/components/{CashierReceiptPage-Cf5pCh8Z.cjs → CashierReceiptPage-Dpca_ujT.cjs} +1 -1
  28. package/components/{CashierSessionExpirationModal-B8lZyvQF.js → CashierSessionExpirationModal-BLu4TNHt.js} +57 -48
  29. package/components/CashierSessionExpirationModal-Bzf6Fc1m.cjs +2 -0
  30. package/components/{CashierSessionExpirationModal-BZLQ4F3T.js → CashierSessionExpirationModal-DBxlWcf6.js} +57 -48
  31. package/components/{CashierSpinner-B3kDZ7DD.cjs → CashierSpinner-DDvJyQQW.cjs} +1 -1
  32. package/components/{CashierSpinner-u67Lmpn1.js → CashierSpinner-DFcKn5vy.js} +19 -19
  33. package/components/{CashierSpinner-CWDfPPKy.js → CashierSpinner-wbkrOsgH.js} +19 -19
  34. package/components/{CashierTransactionHistory-DVJeMS7y.cjs → CashierTransactionHistory-BtkRWtAp.cjs} +1 -1
  35. package/components/{CashierTransactionHistory-BmG7XPkF.js → CashierTransactionHistory-C-r7zjU6.js} +76 -76
  36. package/components/{CashierTransactionHistory-C81J2b3z.js → CashierTransactionHistory-CCfgwGru.js} +119 -119
  37. package/components/CashierVerifications-BnkVpYfm.cjs +1 -0
  38. package/components/CashierVerifications-C7CPpJhz.js +647 -0
  39. package/components/CashierVerifications-Cwymmpvc.js +643 -0
  40. package/components/{TxnStatusIcon-DlBt7swO.cjs → TxnStatusIcon-CRrx95-L.cjs} +1 -1
  41. package/components/{TxnStatusIcon-Degz9oJQ.js → TxnStatusIcon-CiKk-nYc.js} +27 -27
  42. package/components/{TxnStatusIcon-DK8gf5Ec.js → TxnStatusIcon-DXXsTrZP.js} +23 -23
  43. package/components/{TxnTypeIcons-Cjawm9IS.js → TxnTypeIcons-Cdt9fsws.js} +14 -14
  44. package/components/{TxnTypeIcons-DH1CxqvE.cjs → TxnTypeIcons-DmiRydbQ.cjs} +1 -1
  45. package/components/{TxnTypeIcons-DdfELKt3.js → TxnTypeIcons-FNu8rfdT.js} +14 -14
  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/stencil/index-97d17652-BD-QREJe.js +558 -0
  51. package/stencil/index-97d17652-DJqGt8q2.js +542 -0
  52. package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
  53. package/stencil/index-b2193545-ByMYc64n.cjs +1 -0
  54. package/stencil/index-b2193545-DWKmtYUG.js +503 -0
  55. package/stencil/index-b2193545-Dfy4Cgny.js +519 -0
  56. package/stencil/{ui-image-BWJXFWH1.js → ui-image-4dZyD9yF.js} +1 -1
  57. package/stencil/{ui-image-DIEeZy5u.js → ui-image-6u7OR3Eo.js} +1 -1
  58. package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-CER01gdl.cjs} +1 -1
  59. package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
  60. package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
  61. package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
  62. package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
  63. package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-Dh5Eqdlm.js} +2 -2
  64. package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-_K8Pt3w9.js} +2 -2
  65. package/stencil/{ui-skeleton-4-zrLsIW.js → ui-skeleton-BTr272EW.js} +2 -2
  66. package/stencil/{ui-skeleton-DgAs7VA3.cjs → ui-skeleton-C4Ir1ffm.cjs} +1 -1
  67. package/stencil/{ui-skeleton-9boHSjtG.js → ui-skeleton-P4PO_42z.js} +2 -2
  68. package/stencil/{ui-skeleton-ae35c6f2-8tYGV8SR.js → ui-skeleton-ae35c6f2-BIdXBK8D.js} +1 -1
  69. package/stencil/{ui-skeleton-ae35c6f2-IN_dPA5_.js → ui-skeleton-ae35c6f2-C7WHUwAT.js} +1 -1
  70. package/stencil/{ui-skeleton-ae35c6f2-DLHrpWJM.cjs → ui-skeleton-ae35c6f2-jcrjm-Kl.cjs} +1 -1
  71. package/components/CashierMethodDetails-BccXMt8_.cjs +0 -99
  72. package/components/CashierModal-BU4NlVMY.js +0 -229
  73. package/components/CashierModal-CVXS5J4T.cjs +0 -1
  74. package/components/CashierModal-DvL5giYo.js +0 -229
  75. package/components/CashierSessionExpirationModal-CqZBSAuZ.cjs +0 -2
  76. package/components/CashierVerifications-BluIxyAW.js +0 -595
  77. package/components/CashierVerifications-DMMGPuTt.js +0 -599
  78. package/components/CashierVerifications-DbTUG014.cjs +0 -1
  79. package/stencil/index-97d17652--F7PvMq9.js +0 -542
  80. package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
  81. package/stencil/index-97d17652-CCFHkzJw.js +0 -558
  82. package/stencil/index-b2193545-BoSqyMpB.js +0 -519
  83. package/stencil/index-b2193545-D4dOaNlR.js +0 -503
  84. package/stencil/index-b2193545-DGHOe8n4.cjs +0 -1
@@ -0,0 +1,643 @@
1
+ import { a as Be, i as Me, $ as Le, S as qe, b as Fe, f as A, c as xe, s as ze, d as Ie, g as P, j as V, P as q, k as T, D as Q, p as O, q as $, r as Re, v as Ue, w as Ee, A as je, B as He, R as ee, h as L, G as ie, F as _, l as C, U as Ne, C as Y, y as We, z as Ye, E as Ge } from "./CashierError-DrApuR85.js";
2
+ import { d as te, u as Ke, i as Ze, x as Je } from "./CashierMethodDetails-DVo0cXMI.js";
3
+ function re(t, i) {
4
+ Be(t, i);
5
+ }
6
+ function Xe(t) {
7
+ Me({
8
+ fallbackLocale: "en"
9
+ }), Le.set(t);
10
+ }
11
+ const oe = {
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 Qe(t) {
68
+ Ie(t, "svelte-il1hy", "*,*::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;box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}.ModalContentContainer{height:100%;width:100%;display:flex;flex-direction:column}.CashierVideoWrapper{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;left:0;top:0;z-index:8}.CashierVideo{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.CashierVideo video{object-fit:contain;width:100%;height:90%;justify-self:center}");
69
+ }
70
+ function se(t, i, r) {
71
+ const a = t.slice();
72
+ return a[55] = i[r], a[57] = r, a;
73
+ }
74
+ function $e(t) {
75
+ let i, r, a, s, n, d, v, w, m, f, S, g, y = ee(
76
+ /*displayMessages*/
77
+ t[4]
78
+ ), u = [];
79
+ for (let c = 0; c < y.length; c += 1)
80
+ u[c] = ae(se(t, y, c));
81
+ let k = (
82
+ /*videoExists*/
83
+ t[7] && le(t)
84
+ );
85
+ return {
86
+ c() {
87
+ i = P("div");
88
+ for (let c = 0; c < u.length; c += 1)
89
+ u[c].c();
90
+ r = L(), k && k.c(), a = L(), s = P("cashier-modal"), n = P("div"), d = P("div"), v = P("div"), w = P("video"), m = P("source"), V(i, "class", "CashierVerificationsWrapper"), ie(m.src, f = /*videoSrc*/
91
+ t[8]) || V(m, "src", f), w.controls = !0, V(w, "controlslist", "nodownload"), V(w, "disablepictureinpicture", ""), V(v, "class", "CashierVideo"), V(d, "class", "CashierVideoWrapper"), V(n, "slot", "content"), V(n, "class", "ModalContentContainer"), _(s, "show", S = `${/*modalState*/
92
+ t[10] !== "closed"}`), _(s, "isvideo", g = `${/*modalState*/
93
+ t[10] === "video"}`), _(
94
+ s,
95
+ "clientstylingurl",
96
+ /*clientstylingurl*/
97
+ t[1]
98
+ ), _(
99
+ s,
100
+ "clientstyling",
101
+ /*clientstyling*/
102
+ t[0]
103
+ ), _(
104
+ s,
105
+ "mbsource",
106
+ /*mbsource*/
107
+ t[2]
108
+ );
109
+ },
110
+ m(c, p) {
111
+ T(c, i, p);
112
+ for (let h = 0; h < u.length; h += 1)
113
+ u[h] && u[h].m(i, null);
114
+ T(c, r, p), k && k.m(c, p), T(c, a, p), T(c, s, p), C(s, n), C(n, d), C(d, v), C(v, w), C(w, m);
115
+ },
116
+ p(c, p) {
117
+ if (p[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
118
+ 4144) {
119
+ y = ee(
120
+ /*displayMessages*/
121
+ c[4]
122
+ );
123
+ let h;
124
+ for (h = 0; h < y.length; h += 1) {
125
+ const M = se(c, y, h);
126
+ u[h] ? u[h].p(M, p) : (u[h] = ae(M), u[h].c(), u[h].m(i, null));
127
+ }
128
+ for (; h < u.length; h += 1)
129
+ u[h].d(1);
130
+ u.length = y.length;
131
+ }
132
+ /*videoExists*/
133
+ c[7] ? k ? k.p(c, p) : (k = le(c), k.c(), k.m(a.parentNode, a)) : k && (k.d(1), k = null), p[0] & /*videoSrc*/
134
+ 256 && !ie(m.src, f = /*videoSrc*/
135
+ c[8]) && V(m, "src", f), p[0] & /*modalState*/
136
+ 1024 && S !== (S = `${/*modalState*/
137
+ c[10] !== "closed"}`) && _(s, "show", S), p[0] & /*modalState*/
138
+ 1024 && g !== (g = `${/*modalState*/
139
+ c[10] === "video"}`) && _(s, "isvideo", g), p[0] & /*clientstylingurl*/
140
+ 2 && _(
141
+ s,
142
+ "clientstylingurl",
143
+ /*clientstylingurl*/
144
+ c[1]
145
+ ), p[0] & /*clientstyling*/
146
+ 1 && _(
147
+ s,
148
+ "clientstyling",
149
+ /*clientstyling*/
150
+ c[0]
151
+ ), p[0] & /*mbsource*/
152
+ 4 && _(
153
+ s,
154
+ "mbsource",
155
+ /*mbsource*/
156
+ c[2]
157
+ );
158
+ },
159
+ d(c) {
160
+ c && (O(i), O(r), O(a), O(s)), Ne(u, c), k && k.d(c);
161
+ }
162
+ };
163
+ }
164
+ function ei(t) {
165
+ let i;
166
+ return {
167
+ c() {
168
+ i = P("cashier-spinner"), _(
169
+ i,
170
+ "clientstylingurl",
171
+ /*clientstylingurl*/
172
+ t[1]
173
+ ), _(
174
+ i,
175
+ "clientstyling",
176
+ /*clientstyling*/
177
+ t[0]
178
+ );
179
+ },
180
+ m(r, a) {
181
+ T(r, i, a);
182
+ },
183
+ p(r, a) {
184
+ a[0] & /*clientstylingurl*/
185
+ 2 && _(
186
+ i,
187
+ "clientstylingurl",
188
+ /*clientstylingurl*/
189
+ r[1]
190
+ ), a[0] & /*clientstyling*/
191
+ 1 && _(
192
+ i,
193
+ "clientstyling",
194
+ /*clientstyling*/
195
+ r[0]
196
+ );
197
+ },
198
+ d(r) {
199
+ r && O(i);
200
+ }
201
+ };
202
+ }
203
+ function ne(t) {
204
+ let i, r, a;
205
+ function s(...n) {
206
+ return (
207
+ /*click_handler*/
208
+ t[21](
209
+ /*index*/
210
+ t[57],
211
+ ...n
212
+ )
213
+ );
214
+ }
215
+ return {
216
+ c() {
217
+ i = P("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");
218
+ },
219
+ m(n, d) {
220
+ T(n, i, d), r || (a = Y(i, "click", s), r = !0);
221
+ },
222
+ p(n, d) {
223
+ t = n;
224
+ },
225
+ d(n) {
226
+ n && O(i), r = !1, a();
227
+ }
228
+ };
229
+ }
230
+ function ae(t) {
231
+ let i, r, a, s, n = (
232
+ /*message*/
233
+ t[55] + ""
234
+ ), d, v, w, m, f = (
235
+ /*displayMessages*/
236
+ t[4].length > 1 && /*index*/
237
+ t[57] === 0 && ne(t)
238
+ );
239
+ function S(...g) {
240
+ return (
241
+ /*click_handler_1*/
242
+ t[22](
243
+ /*index*/
244
+ t[57],
245
+ ...g
246
+ )
247
+ );
248
+ }
249
+ return {
250
+ c() {
251
+ i = P("div"), r = P("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>', a = L(), s = P("p"), d = L(), f && f.c(), v = L(), V(r, "class", "IconVerification"), V(s, "class", "text"), V(i, "class", "CashierVerificationMessage"), q(
252
+ i,
253
+ "ShowAll",
254
+ /*allVerificationsVisible*/
255
+ t[5]
256
+ );
257
+ },
258
+ m(g, y) {
259
+ T(g, i, y), C(i, r), C(i, a), C(i, s), s.innerHTML = n, C(i, d), f && f.m(i, null), C(i, v), w || (m = Y(i, "click", S), w = !0);
260
+ },
261
+ p(g, y) {
262
+ t = g, y[0] & /*displayMessages*/
263
+ 16 && n !== (n = /*message*/
264
+ t[55] + "") && (s.innerHTML = n), /*displayMessages*/
265
+ t[4].length > 1 && /*index*/
266
+ t[57] === 0 ? f ? f.p(t, y) : (f = ne(t), f.c(), f.m(i, v)) : f && (f.d(1), f = null), y[0] & /*allVerificationsVisible*/
267
+ 32 && q(
268
+ i,
269
+ "ShowAll",
270
+ /*allVerificationsVisible*/
271
+ t[5]
272
+ );
273
+ },
274
+ d(g) {
275
+ g && O(i), f && f.d(), w = !1, m();
276
+ }
277
+ };
278
+ }
279
+ function le(t) {
280
+ let i, r, a, s, n = (
281
+ /*$_*/
282
+ t[11]("verification.video.how-to") + ""
283
+ ), d, v, w;
284
+ return {
285
+ c() {
286
+ i = P("div"), r = P("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', a = L(), s = P("div"), d = We(n), V(r, "class", "IconVideo"), V(s, "class", "CashierVerificationVideoLink"), q(
287
+ s,
288
+ "CashierVerificationVideoLinkDesktop",
289
+ /*desktopView*/
290
+ t[6]
291
+ ), V(i, "class", "CashierVerificationVideo");
292
+ },
293
+ m(m, f) {
294
+ T(m, i, f), C(i, r), C(i, a), C(i, s), C(s, d), v || (w = Y(
295
+ s,
296
+ "click",
297
+ /*showVideo*/
298
+ t[13]
299
+ ), v = !0);
300
+ },
301
+ p(m, f) {
302
+ f[0] & /*$_*/
303
+ 2048 && n !== (n = /*$_*/
304
+ m[11]("verification.video.how-to") + "") && Ye(d, n), f[0] & /*desktopView*/
305
+ 64 && q(
306
+ s,
307
+ "CashierVerificationVideoLinkDesktop",
308
+ /*desktopView*/
309
+ m[6]
310
+ );
311
+ },
312
+ d(m) {
313
+ m && O(i), v = !1, w();
314
+ }
315
+ };
316
+ }
317
+ function ii(t) {
318
+ let i;
319
+ function r(n, d) {
320
+ if (
321
+ /*isLoading*/
322
+ n[9]
323
+ )
324
+ return ei;
325
+ if (
326
+ /*displayMessages*/
327
+ n[4]
328
+ )
329
+ return $e;
330
+ }
331
+ let a = r(t), s = a && a(t);
332
+ return {
333
+ c() {
334
+ i = P("div"), s && s.c(), V(i, "class", "CashierVerifications"), q(
335
+ i,
336
+ "CashierVerificationsDesktop",
337
+ /*desktopView*/
338
+ t[6]
339
+ );
340
+ },
341
+ m(n, d) {
342
+ T(n, i, d), s && s.m(i, null), t[23](i);
343
+ },
344
+ p(n, d) {
345
+ a === (a = r(n)) && s ? s.p(n, d) : (s && s.d(1), s = a && a(n), s && (s.c(), s.m(i, null))), d[0] & /*desktopView*/
346
+ 64 && q(
347
+ i,
348
+ "CashierVerificationsDesktop",
349
+ /*desktopView*/
350
+ n[6]
351
+ );
352
+ },
353
+ i: Q,
354
+ o: Q,
355
+ d(n) {
356
+ n && O(i), s && s.d(), t[23](null);
357
+ }
358
+ };
359
+ }
360
+ const ti = "verification_explanation_video_widgets.MP4";
361
+ function ri(t, i, r) {
362
+ let a, s;
363
+ $(t, Ge, (e) => r(11, a = e)), $(t, Je, (e) => r(29, s = e)), te.extend(Ke);
364
+ let { endpoint: n } = i, { lang: d = "en" } = i, { translationurl: v = "" } = i, { clientstyling: w = "" } = i, { clientstylingurl: m = "" } = i, { session: f = "" } = i, { customerid: S = "" } = i, { playersession: g = "" } = i, { mbsource: y = "" } = i, u, k = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Set(), p, h, M, I = !0, G = !0, R = !1, U = "", E = !1, j = "closed", ce = window.navigator.userAgent;
365
+ var F;
366
+ (function(e) {
367
+ e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
368
+ })(F || (F = {}));
369
+ var H;
370
+ (function(e) {
371
+ e.Requested = "Requested";
372
+ })(H || (H = {}));
373
+ var b;
374
+ (function(e) {
375
+ 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";
376
+ })(b || (b = {}));
377
+ var x;
378
+ (function(e) {
379
+ 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";
380
+ })(x || (x = {}));
381
+ const K = (e) => {
382
+ e.data && e.data.type === "CloseModal" && r(10, j = "closed");
383
+ };
384
+ Re(() => (window.addEventListener("message", K), Ce(), () => {
385
+ window.removeEventListener("message", K);
386
+ }));
387
+ const fe = [
388
+ b.InProgress,
389
+ b.Referred,
390
+ b.AwaitingForResponse
391
+ ], de = () => {
392
+ let e = v;
393
+ if (e)
394
+ return fetch(e).then((o) => o.json()).then((o) => {
395
+ Object.keys(o).forEach((l) => {
396
+ re(l, o[l]);
397
+ });
398
+ }).catch((o) => {
399
+ console.log(o);
400
+ });
401
+ };
402
+ Object.keys(oe).forEach((e) => {
403
+ re(e, oe[e]);
404
+ });
405
+ const ue = () => {
406
+ Xe(d);
407
+ }, Z = () => {
408
+ r(20, h = pe());
409
+ const e = new URL(`${n}/v1/player/${S}/verification/GetKYCCustomerStatus?language=${d}`), o = new Headers();
410
+ o.append("accept", "application/json"), o.append("Content-Type", "application/json"), o.append("x-sessionid", `${g}`), o.append("X-Client-Request-Timestamp", te.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
411
+ const l = {
412
+ method: "POST",
413
+ headers: o,
414
+ body: JSON.stringify({})
415
+ };
416
+ r(9, E = !0), fetch(e, l).then((D) => D.json()).then((D) => {
417
+ const W = he(D?.Verifications);
418
+ p = ge(W), p.VerificationStatuses.forEach((z) => {
419
+ z.VerificationUrlType !== "Widget" && k.add(z.Vendor);
420
+ }), r(4, M = X());
421
+ }).finally(() => r(9, E = !1));
422
+ }, he = (e) => e ? e.sort((o, l) => new Date(l.Created).getTime() - new Date(o.Created).getTime()) : [], me = () => {
423
+ s && Z();
424
+ }, pe = () => {
425
+ let e = (f || s).split(".")[1];
426
+ if (e) {
427
+ let o = JSON.parse(atob(e));
428
+ return o.cdn + "/cashier/operator-assets/" + o?.mid;
429
+ }
430
+ return "";
431
+ }, ge = (e) => {
432
+ if (!e || !e.length)
433
+ return {
434
+ VerificationSummaryStatus: b.Unverified,
435
+ VerificationStatuses: []
436
+ };
437
+ const o = we(e);
438
+ if (o && o.length) {
439
+ const l = ve(o);
440
+ return {
441
+ VerificationSummaryStatus: l.Status,
442
+ VerificationUrl: l.Flags?.DeferredUrlKey,
443
+ VerificationStatuses: J(o, l.Status)
444
+ };
445
+ } else
446
+ return {
447
+ VerificationSummaryStatus: e.some((D) => D.Status === b.Failed) ? b.Failed : b.Verified,
448
+ VerificationStatuses: J(e, [b.Failed])
449
+ };
450
+ }, ve = (e) => e.reduce(
451
+ (o, l) => o ? new Date(o) < new Date(l) ? l : o : l,
452
+ 0
453
+ ), J = (e, o) => e.filter((l) => o.includes(l.Status)).map((l) => ({
454
+ Type: l.Type,
455
+ Vendor: l.VendorName,
456
+ VerificationDocuments: l.Documents ? [...l.Documents] : [],
457
+ VerificationUrlType: l.FlowInfo?.Type,
458
+ VerificationUrl: l.FlowInfo?.Url
459
+ })), we = (e) => e.filter((o) => fe.includes(o.Status) ? o.FlowInfo && o.FlowInfo.Url || ye(o) || ke(o) : !1), ye = (e) => {
460
+ const o = e.Documents && e.VendorName === F.Manual, l = e.Documents && e.Documents.some((D) => D.Status === H.Requested);
461
+ return o && l;
462
+ }, ke = (e) => e.VendorName === F.ShuftiPro && e.Status === b.Referred, X = () => {
463
+ switch (p.VerificationSummaryStatus) {
464
+ case b.InProgress:
465
+ const e = [];
466
+ return k.forEach((o) => {
467
+ e.push(Ve(o));
468
+ }), e;
469
+ case b.Referred:
470
+ return [a("verification.idenfy.referred-awaiting")];
471
+ case b.Failed:
472
+ return [a("verification.message.failed")];
473
+ }
474
+ }, Ve = (e) => {
475
+ const o = p.VerificationStatuses.filter((l) => l.Vendor === e);
476
+ if (e === F.ShuftiPro)
477
+ return Pe(o);
478
+ {
479
+ const l = a("verification.idenfy.link-name"), D = {
480
+ link: `<a href="${o[0].VerificationUrl}" target="_blank">${l}</a>`
481
+ };
482
+ return a("verification.idenfy.in-progress", { values: D });
483
+ }
484
+ }, Pe = (e) => {
485
+ const o = [], l = {}, D = [
486
+ x.Biometric,
487
+ x.Documents,
488
+ x.ProofOfAddress
489
+ ];
490
+ e.forEach((B) => {
491
+ D.includes(B.Type) && (o.push(B.Type), l[B.Type] = be(B, _e(B.Type)));
492
+ });
493
+ let W = o.every((B) => c.has(B)), z = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
494
+ return W ? a("verification.shuftipro.validations-started") : a(z, { values: l });
495
+ }, be = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, _e = (e) => a(`verification.shuftipro.link-name.${e}`), N = (e, o) => {
496
+ if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
497
+ if (e.target.closest(".verificationLink")) {
498
+ const l = e.target.className.split(" ")[1];
499
+ c.add(l), r(4, M = X());
500
+ }
501
+ return;
502
+ }
503
+ o === 0 && r(5, I = !I);
504
+ }, Ce = () => {
505
+ r(6, G = !Ze(ce));
506
+ }, De = () => {
507
+ r(8, U = h + "/" + d + "/" + ti);
508
+ try {
509
+ fetch(U, { method: "HEAD" }).then((e) => {
510
+ r(7, R = e.ok);
511
+ });
512
+ } catch {
513
+ r(7, R = !1);
514
+ }
515
+ }, Se = () => {
516
+ r(10, j = "video");
517
+ }, Ae = (e, o) => N(o, e), Te = (e, o) => N(o, e);
518
+ function Oe(e) {
519
+ je[e ? "unshift" : "push"](() => {
520
+ u = e, r(3, u);
521
+ });
522
+ }
523
+ return t.$$set = (e) => {
524
+ "endpoint" in e && r(14, n = e.endpoint), "lang" in e && r(15, d = e.lang), "translationurl" in e && r(16, v = e.translationurl), "clientstyling" in e && r(0, w = e.clientstyling), "clientstylingurl" in e && r(1, m = e.clientstylingurl), "session" in e && r(17, f = e.session), "customerid" in e && r(18, S = e.customerid), "playersession" in e && r(19, g = e.playersession), "mbsource" in e && r(2, y = e.mbsource);
525
+ }, t.$$.update = () => {
526
+ t.$$.dirty[0] & /*lang*/
527
+ 32768 && d && ue(), t.$$.dirty[0] & /*endpoint, session, playersession*/
528
+ 671744 && n && f && g && Z(), t.$$.dirty[0] & /*endpoint, session, playersession*/
529
+ 671744 && n && !f && g && me(), t.$$.dirty[0] & /*translationurl*/
530
+ 65536 && v && de(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
531
+ 9 && w && u && He(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
532
+ 10 && m && u && Ue(), t.$$.dirty[0] & /*staticCdnUrl*/
533
+ 1048576 && h && De(), t.$$.dirty[0] & /*mbsource, customStylingContainer*/
534
+ 12 && y && u && Ee(u, `${y}.Style`);
535
+ }, [
536
+ w,
537
+ m,
538
+ y,
539
+ u,
540
+ M,
541
+ I,
542
+ G,
543
+ R,
544
+ U,
545
+ E,
546
+ j,
547
+ a,
548
+ N,
549
+ Se,
550
+ n,
551
+ d,
552
+ v,
553
+ f,
554
+ S,
555
+ g,
556
+ h,
557
+ Ae,
558
+ Te,
559
+ Oe
560
+ ];
561
+ }
562
+ class oi extends qe {
563
+ constructor(i) {
564
+ super(), Fe(
565
+ this,
566
+ i,
567
+ ri,
568
+ ii,
569
+ ze,
570
+ {
571
+ endpoint: 14,
572
+ lang: 15,
573
+ translationurl: 16,
574
+ clientstyling: 0,
575
+ clientstylingurl: 1,
576
+ session: 17,
577
+ customerid: 18,
578
+ playersession: 19,
579
+ mbsource: 2
580
+ },
581
+ Qe,
582
+ [-1, -1]
583
+ );
584
+ }
585
+ get endpoint() {
586
+ return this.$$.ctx[14];
587
+ }
588
+ set endpoint(i) {
589
+ this.$$set({ endpoint: i }), A();
590
+ }
591
+ get lang() {
592
+ return this.$$.ctx[15];
593
+ }
594
+ set lang(i) {
595
+ this.$$set({ lang: i }), A();
596
+ }
597
+ get translationurl() {
598
+ return this.$$.ctx[16];
599
+ }
600
+ set translationurl(i) {
601
+ this.$$set({ translationurl: i }), A();
602
+ }
603
+ get clientstyling() {
604
+ return this.$$.ctx[0];
605
+ }
606
+ set clientstyling(i) {
607
+ this.$$set({ clientstyling: i }), A();
608
+ }
609
+ get clientstylingurl() {
610
+ return this.$$.ctx[1];
611
+ }
612
+ set clientstylingurl(i) {
613
+ this.$$set({ clientstylingurl: i }), A();
614
+ }
615
+ get session() {
616
+ return this.$$.ctx[17];
617
+ }
618
+ set session(i) {
619
+ this.$$set({ session: i }), A();
620
+ }
621
+ get customerid() {
622
+ return this.$$.ctx[18];
623
+ }
624
+ set customerid(i) {
625
+ this.$$set({ customerid: i }), A();
626
+ }
627
+ get playersession() {
628
+ return this.$$.ctx[19];
629
+ }
630
+ set playersession(i) {
631
+ this.$$set({ playersession: i }), A();
632
+ }
633
+ get mbsource() {
634
+ return this.$$.ctx[2];
635
+ }
636
+ set mbsource(i) {
637
+ this.$$set({ mbsource: i }), A();
638
+ }
639
+ }
640
+ xe(oi, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, playersession: {}, mbsource: {} }, [], [], !0);
641
+ export {
642
+ oi as default
643
+ };