@everymatrix/cashier-page 1.69.4 → 1.69.69

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 (121) hide show
  1. package/components/CashierCarousel-D5kSWky0.cjs +23 -0
  2. package/components/CashierCarousel-DYqTne2y.js +5414 -0
  3. package/components/CashierCarousel-dZ9EcCOe.js +5377 -0
  4. package/components/CashierError-B5w8w6dD.js +438 -0
  5. package/components/CashierError-DNuC45d1.cjs +1 -0
  6. package/components/CashierError-eMZ_Y8Lb.js +438 -0
  7. package/components/CashierHeader-BHNvb1-z.js +397 -0
  8. package/components/CashierHeader-BovGOLQY.js +397 -0
  9. package/components/CashierHeader-DdCbhGSh.cjs +1 -0
  10. package/components/CashierIframeRedirect-BEiwv80W.js +398 -0
  11. package/components/CashierIframeRedirect-BXHKd8sC.cjs +1 -0
  12. package/components/CashierIframeRedirect-ZwVoUTMf.js +398 -0
  13. package/components/CashierMethodDetails-9BeLdmpe.js +8885 -0
  14. package/components/CashierMethodDetails-CW7C8Yvb.js +8904 -0
  15. package/components/CashierMethodDetails-DUa6HCpd.cjs +85 -0
  16. package/components/CashierMethodsList-BTVaeHdg.js +745 -0
  17. package/components/CashierMethodsList-DylKurFC.cjs +1 -0
  18. package/components/CashierMethodsList-PWU1R3Tc.js +733 -0
  19. package/components/CashierModal-C8mj7URo.js +268 -0
  20. package/components/CashierModal-D9NmY7iy.js +268 -0
  21. package/components/CashierModal-R8kFj8iv.cjs +1 -0
  22. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BngpK8X4.js} +11 -11
  23. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CX7SdGzZ.js} +12 -12
  24. package/components/CashierNotifications-CkPy_2A7.cjs +1 -0
  25. package/components/CashierPage-C6pByXUA.cjs +1 -0
  26. package/components/CashierPage-CstDhtmy.js +2674 -0
  27. package/components/CashierPage-DNab5cLz.js +2674 -0
  28. package/components/CashierReceiptPage-BvZCrXxs.js +1693 -0
  29. package/components/CashierReceiptPage-DsXAwatG.cjs +26 -0
  30. package/components/CashierReceiptPage-unBbB_Jc.js +1689 -0
  31. package/components/CashierSessionExpirationModal-BkVXKSAN.js +1184 -0
  32. package/components/CashierSessionExpirationModal-CpXjSA8u.cjs +2 -0
  33. package/components/CashierSessionExpirationModal-DoZltJgp.js +1184 -0
  34. package/components/CashierSpinner-BEoR90rw.js +78 -0
  35. package/components/CashierSpinner-Bkz2A3Ui.cjs +1 -0
  36. package/components/CashierSpinner-CrIWXsSn.js +78 -0
  37. package/components/CashierTransactionHistory-CnEbhq5N.cjs +1 -0
  38. package/components/CashierTransactionHistory-G-40651N.js +1305 -0
  39. package/components/CashierTransactionHistory-gR1A2f4c.js +1305 -0
  40. package/components/CashierVerifications-4yAcpmBG.js +597 -0
  41. package/components/CashierVerifications-DWfYckzB.cjs +1 -0
  42. package/components/CashierVerifications-dp3vSO1J.js +601 -0
  43. package/components/TxnStatusIcon-Bgj9uqou.cjs +1 -0
  44. package/components/TxnStatusIcon-DPAn1ZlZ.js +142 -0
  45. package/components/TxnStatusIcon-DqWUwgBR.js +142 -0
  46. package/components/TxnTypeIcons-BveshEiq.js +101 -0
  47. package/components/TxnTypeIcons-C4h0GmqA.js +101 -0
  48. package/components/TxnTypeIcons-CBpa5s-y.cjs +1 -0
  49. package/es2015/cashier-page.cjs +1 -1
  50. package/es2015/cashier-page.js +1 -1
  51. package/esnext/cashier-page.js +1 -1
  52. package/package.json +1 -1
  53. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  54. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  55. package/stencil/{index-97d17652-D6HPqRtr.js → index-97d17652--F7PvMq9.js} +2 -2
  56. package/stencil/index-97d17652-BhLhk_xz.cjs +1 -0
  57. package/stencil/{index-97d17652-B0NIExnR.js → index-97d17652-CCFHkzJw.js} +2 -2
  58. package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
  59. package/stencil/index-b2193545-BoSqyMpB.js +519 -0
  60. package/stencil/index-b2193545-D4dOaNlR.js +503 -0
  61. package/stencil/{ui-image-DfVgiF6v.js → ui-image-BWJXFWH1.js} +2 -2
  62. package/stencil/{ui-image-DJSOH8ZL.cjs → ui-image-ByEXiBzx.cjs} +1 -1
  63. package/stencil/{ui-image-BY8ZO6br.js → ui-image-DIEeZy5u.js} +2 -2
  64. package/stencil/{ui-image-b7b48fe5-BXmf73Ou.js → ui-image-b7b48fe5-ByRuJtdE.js} +1 -1
  65. package/stencil/{ui-image-b7b48fe5-c0NIgcTj.js → ui-image-b7b48fe5-D6iig_uN.js} +1 -1
  66. package/stencil/{ui-image-b7b48fe5-DaWM2RbJ.cjs → ui-image-b7b48fe5-DG83WzAo.cjs} +1 -1
  67. package/stencil/{ui-image_2-L-CYescb.js → ui-image_2-Bm97-wkj.js} +2 -2
  68. package/stencil/{ui-image_2-Cdo33umq.cjs → ui-image_2-DdFjzzNO.cjs} +1 -1
  69. package/stencil/{ui-image_2-DbQ7SENq.js → ui-image_2-qO3reSlr.js} +2 -2
  70. package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
  71. package/stencil/ui-skeleton-9boHSjtG.js +29 -0
  72. package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
  73. package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
  74. package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
  75. package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
  76. package/components/CashierConfirmModal-4RYp7Eiq.js +0 -1120
  77. package/components/CashierConfirmModal-DMmJumcl.cjs +0 -4
  78. package/components/CashierConfirmModal-untxGhsx.js +0 -1083
  79. package/components/CashierError-B3QY-Z04.js +0 -3800
  80. package/components/CashierError-B9QN5m8g.cjs +0 -5
  81. package/components/CashierError-lJcr3S9j.js +0 -3800
  82. package/components/CashierHeader-0a_PwGVg.js +0 -401
  83. package/components/CashierHeader-6fDSkiu1.js +0 -401
  84. package/components/CashierHeader-BWRxu_17.cjs +0 -1
  85. package/components/CashierIframeRedirect-2c-BnFeJ.js +0 -378
  86. package/components/CashierIframeRedirect-Bxe3aDw_.js +0 -378
  87. package/components/CashierIframeRedirect-DnE9lXCw.cjs +0 -1
  88. package/components/CashierMethodDetails-Bd3dJIne.js +0 -8271
  89. package/components/CashierMethodDetails-C1IkwS7r.cjs +0 -83
  90. package/components/CashierMethodDetails-CbzQCKZu.js +0 -8285
  91. package/components/CashierMethodsList-C1Roz4a7.js +0 -864
  92. package/components/CashierMethodsList-GlWqnvHm.cjs +0 -1
  93. package/components/CashierMethodsList-wbpWQlt7.js +0 -852
  94. package/components/CashierModal-BrwIBn9a.js +0 -232
  95. package/components/CashierModal-BuM2Yq-y.cjs +0 -1
  96. package/components/CashierModal-ZfKvGxFq.js +0 -232
  97. package/components/CashierNotifications-BLJS7gpv.cjs +0 -1
  98. package/components/CashierPage-CeDNrFtr.cjs +0 -1
  99. package/components/CashierPage-D1XOiV_V.js +0 -2202
  100. package/components/CashierPage-DHASkcsL.js +0 -2202
  101. package/components/CashierReceiptPage--u9KEoCs.js +0 -1174
  102. package/components/CashierReceiptPage-BnvakxJQ.js +0 -1172
  103. package/components/CashierReceiptPage-DT0yYD3A.cjs +0 -1
  104. package/components/CashierSessionExpirationModal-BM6h05_P.js +0 -1208
  105. package/components/CashierSessionExpirationModal-DQBxk3nF.cjs +0 -2
  106. package/components/CashierSessionExpirationModal-DT7l33oM.js +0 -1208
  107. package/components/CashierSpinner-BAfTKICK.js +0 -71
  108. package/components/CashierSpinner-BhmndmKG.cjs +0 -1
  109. package/components/CashierSpinner-y6HodxHT.js +0 -71
  110. package/components/CashierTransactionHistory-75SCP1rv.cjs +0 -1
  111. package/components/CashierTransactionHistory-CfdEK8dI.js +0 -569
  112. package/components/CashierTransactionHistory-DxaRw8iZ.js +0 -569
  113. package/components/CashierVerifications-BTorcj-t.cjs +0 -1
  114. package/components/CashierVerifications-Bt9z1qXM.js +0 -624
  115. package/components/CashierVerifications-BvPWg9O1.js +0 -620
  116. package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
  117. package/components/CashierVideoModal-CVDvqrcy.js +0 -202
  118. package/components/CashierVideoModal-DHNu0BQz.js +0 -202
  119. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  120. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
  121. package/stencil/index-97d17652-DNpK20ur.cjs +0 -1
@@ -1,624 +0,0 @@
1
- import { S as Oe, b as Be, s as Me, f as y, c as Le, n as Z, e as C, J as O, m as S, p as w, v as V, w as X, K as Q, L as xe, D, q as T, A as qe, o as k, B as H, y as Fe, z as ze, E as Ie } from "./CashierConfirmModal-4RYp7Eiq.js";
2
- import { a as Ee, i as Re, $ as Ue, b as He } from "./CashierError-lJcr3S9j.js";
3
- import { d as $, u as Ne, x as je } from "./CashierMethodDetails-CbzQCKZu.js";
4
- function ee(t, i) {
5
- Ee(t, i);
6
- }
7
- function We(t) {
8
- Re({
9
- fallbackLocale: "en"
10
- }), Ue.set(t);
11
- }
12
- const ie = {
13
- en: {
14
- "verification.video.how-to": "How to verify yourself",
15
- "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",
16
- "verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
17
- "verification.idenfy.link-name": "link",
18
- "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",
19
- "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.",
20
- "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.",
21
- "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.",
22
- "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.",
23
- "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.",
24
- "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.",
25
- "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.",
26
- "verification.shuftipro.link-name.Biometric": "Biometric",
27
- "verification.shuftipro.link-name.Documents": "Documents",
28
- "verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
29
- "verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
30
- },
31
- tr: {
32
- "verification.video.how-to": "Kimlik doğrulama nasıl yapılır",
33
- "verification.idenfy.referred-awaiting": "Kimlik doğrulaması işlemde. Doğrulama tamamlandığında size haber vereceğiz",
34
- "verification.message.failed": "Döküman doğrulama başarısız, hesabınız doğrulanamadı",
35
- "verification.idenfy.link-name": "link",
36
- "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",
37
- "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}",
38
- "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.",
39
- "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.",
40
- "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.",
41
- "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.",
42
- "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.",
43
- "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.",
44
- "verification.shuftipro.link-name.Biometric": "Doğrulama Yap",
45
- "verification.shuftipro.link-name.Documents": "Documents",
46
- "verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
47
- "verification.shuftipro.validations-started": "Lütfen Doğrulamayı tamamladıktan sonra işleme devam ediniz"
48
- },
49
- hr: {
50
- "verification.video.how-to": "How to verify yourself",
51
- "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",
52
- "verification.message.failed": "We apologize, but we were unable to verify your account. Please contact support team",
53
- "verification.idenfy.link-name": "link",
54
- "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",
55
- "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.",
56
- "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.",
57
- "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.",
58
- "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.",
59
- "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.",
60
- "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.",
61
- "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.",
62
- "verification.shuftipro.link-name.Biometric": "Biometric",
63
- "verification.shuftipro.link-name.Documents": "Documents",
64
- "verification.shuftipro.link-name.ProofOfAddress": "Proof Of Address",
65
- "verification.shuftipro.validations-started": "After completing verification, please proceed with the transaction"
66
- }
67
- };
68
- if (typeof window != "undefined") {
69
- let t = function(i) {
70
- return function(...r) {
71
- try {
72
- return i.apply(this, r);
73
- } catch (n) {
74
- if (n instanceof DOMException && n.message.includes("has already been used with this registry") || n.message.includes("Cannot define multiple custom elements with the same tag name"))
75
- return !1;
76
- throw n;
77
- }
78
- };
79
- };
80
- customElements.define = t(customElements.define), import("./CashierVideoModal-DHNu0BQz.js").then(({ default: i }) => {
81
- !customElements.get("cashier-video-modal") && customElements.define("cashier-video-modal", i.element);
82
- });
83
- }
84
- function Ke(t) {
85
- Le(t, "svelte-1emynn4", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;-webkit-tap-highlight-color:transparent}.CashierVerifications{box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1))}.CashierVerifications.CashierVerificationsDesktop{border-radius:var(--mmw--border-radius-medium-plus, 6px);overflow:hidden}.CashierVerifications.CashierVerificationsDesktop:has(.CashierVerificationMessage){margin-bottom:var(--emw--spacing-small, 12px)}.CashierVerificationsWrapper{display:flex;flex-direction:column;width:100%}.IconVerification{width:30px;display:flex}.CashierVerificationMessage{display:flex;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.CashierVerificationMessage:first-child{transition:none;cursor:pointer}.CashierVerificationMessage:first-child:hover{background:linear-gradient(0, var(--emw--color-gray-50, #F7F8FA) 0%, var(--emw--color-white, #fff) 100%)}.CashierVerificationMessage:not(.ShowAll):not(:first-child){max-height:0;overflow:hidden}.CashierVerificationMessage:hover .CashierVerificationChevron svg path{opacity:1}svg{height:20px}svg .IconColor{fill:var(--emw--color-warning, #ec9109)}p{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-small, 14px);font-family:inherit;line-height:120%;margin:var(--emw--spacing-small, 12px)}.CashierVerificationsDesktop p{font-size:var(--emw--font-size-medium, 16px)}.text{word-break:break-word}.CashierVerificationChevron{cursor:pointer;margin-left:auto}.CashierVerificationChevron svg{transition:0.25s}.CashierVerificationChevron svg path{fill:var(--mmw--color-grey-290, #666);opacity:0.5}.CashierVerificationChevron:hover svg path{opacity:1}.ShowAll .CashierVerificationChevron svg{-o-transform:rotate(180deg);-ms-transform:rotate(180deg);-moz-transform:rotate(180deg);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.CashierVerificationVideo{display:flex;width:100%;align-items:center;box-sizing:border-box;background:var(--emw--color-gray-50, #F7F8FA);border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);padding:0 var(--emw--spacing-small, 12px);transition:0.5s;max-height:500px}.IconVideo{width:30px;display:flex;justify-content:center}.CashierVerificationVideoLink{cursor:pointer;color:var(--mmw--color-grey-10, #111);font-family:inherit;font-size:var(--emw--font-size-small, 14px);line-height:120%;margin:var(--emw--spacing-small, 12px);text-decoration:underline}.CashierVerificationVideoLinkDesktop{font-size:var(--emw--font-size-medium, 16px)}");
86
- }
87
- function te(t, i, r) {
88
- const n = t.slice();
89
- return n[53] = i[r], n[55] = r, n;
90
- }
91
- function re(t) {
92
- let i, r, n, c, d = Q(
93
- /*displayMessages*/
94
- t[4]
95
- ), f = [];
96
- for (let a = 0; a < d.length; a += 1)
97
- f[a] = se(te(t, d, a));
98
- let h = (
99
- /*videoExists*/
100
- t[7] && ne(t)
101
- );
102
- return {
103
- c() {
104
- i = w("div");
105
- for (let a = 0; a < f.length; a += 1)
106
- f[a].c();
107
- r = T(), h && h.c(), n = T(), c = w("cashier-video-modal"), V(i, "class", "CashierVerificationsWrapper"), D(
108
- c,
109
- "clientstylingurl",
110
- /*clientstylingurl*/
111
- t[1]
112
- ), D(
113
- c,
114
- "clientstyling",
115
- /*clientstyling*/
116
- t[0]
117
- ), D(
118
- c,
119
- "ismobileview",
120
- /*ismobileview*/
121
- t[2]
122
- ), D(
123
- c,
124
- "videosrc",
125
- /*videoSrc*/
126
- t[8]
127
- );
128
- },
129
- m(a, u) {
130
- S(a, i, u);
131
- for (let s = 0; s < f.length; s += 1)
132
- f[s] && f[s].m(i, null);
133
- S(a, r, u), h && h.m(a, u), S(a, n, u), S(a, c, u);
134
- },
135
- p(a, u) {
136
- if (u[0] & /*allVerificationsVisible, showAllVerifications, displayMessages*/
137
- 1072) {
138
- d = Q(
139
- /*displayMessages*/
140
- a[4]
141
- );
142
- let s;
143
- for (s = 0; s < d.length; s += 1) {
144
- const P = te(a, d, s);
145
- f[s] ? f[s].p(P, u) : (f[s] = se(P), f[s].c(), f[s].m(i, null));
146
- }
147
- for (; s < f.length; s += 1)
148
- f[s].d(1);
149
- f.length = d.length;
150
- }
151
- /*videoExists*/
152
- a[7] ? h ? h.p(a, u) : (h = ne(a), h.c(), h.m(n.parentNode, n)) : h && (h.d(1), h = null), u[0] & /*clientstylingurl*/
153
- 2 && D(
154
- c,
155
- "clientstylingurl",
156
- /*clientstylingurl*/
157
- a[1]
158
- ), u[0] & /*clientstyling*/
159
- 1 && D(
160
- c,
161
- "clientstyling",
162
- /*clientstyling*/
163
- a[0]
164
- ), u[0] & /*ismobileview*/
165
- 4 && D(
166
- c,
167
- "ismobileview",
168
- /*ismobileview*/
169
- a[2]
170
- ), u[0] & /*videoSrc*/
171
- 256 && D(
172
- c,
173
- "videosrc",
174
- /*videoSrc*/
175
- a[8]
176
- );
177
- },
178
- d(a) {
179
- a && (C(i), C(r), C(n), C(c)), xe(f, a), h && h.d(a);
180
- }
181
- };
182
- }
183
- function oe(t) {
184
- let i, r, n;
185
- function c(...d) {
186
- return (
187
- /*click_handler*/
188
- t[19](
189
- /*index*/
190
- t[55],
191
- ...d
192
- )
193
- );
194
- }
195
- return {
196
- c() {
197
- i = w("span"), i.innerHTML = '<svg width="25px" height="25px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM8.70711 9.79289C8.31658 9.40237 7.68342 9.40237 7.29289 9.79289C6.90237 10.1834 6.90237 10.8166 7.29289 11.2071L11.2929 15.2071C11.6834 15.5976 12.3166 15.5976 12.7071 15.2071L16.7071 11.2071C17.0976 10.8166 17.0976 10.1834 16.7071 9.79289C16.3166 9.40237 15.6834 9.40237 15.2929 9.79289L12 13.0858L8.70711 9.79289Z" fill="#000000"></path></svg>', V(i, "class", "CashierVerificationChevron");
198
- },
199
- m(d, f) {
200
- S(d, i, f), r || (n = H(i, "click", c), r = !0);
201
- },
202
- p(d, f) {
203
- t = d;
204
- },
205
- d(d) {
206
- d && C(i), r = !1, n();
207
- }
208
- };
209
- }
210
- function se(t) {
211
- let i, r, n, c, d = (
212
- /*message*/
213
- t[53] + ""
214
- ), f, h, a, u, s = (
215
- /*displayMessages*/
216
- t[4].length > 1 && /*index*/
217
- t[55] === 0 && oe(t)
218
- );
219
- function P(...g) {
220
- return (
221
- /*click_handler_1*/
222
- t[20](
223
- /*index*/
224
- t[55],
225
- ...g
226
- )
227
- );
228
- }
229
- return {
230
- c() {
231
- i = w("div"), r = w("div"), r.innerHTML = '<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>', n = T(), c = w("p"), f = T(), s && s.c(), h = T(), V(r, "class", "IconVerification"), V(c, "class", "text"), V(i, "class", "CashierVerificationMessage"), O(
232
- i,
233
- "ShowAll",
234
- /*allVerificationsVisible*/
235
- t[5]
236
- );
237
- },
238
- m(g, v) {
239
- S(g, i, v), k(i, r), k(i, n), k(i, c), c.innerHTML = d, k(i, f), s && s.m(i, null), k(i, h), a || (u = H(i, "click", P), a = !0);
240
- },
241
- p(g, v) {
242
- t = g, v[0] & /*displayMessages*/
243
- 16 && d !== (d = /*message*/
244
- t[53] + "") && (c.innerHTML = d), /*displayMessages*/
245
- t[4].length > 1 && /*index*/
246
- t[55] === 0 ? s ? s.p(t, v) : (s = oe(t), s.c(), s.m(i, h)) : s && (s.d(1), s = null), v[0] & /*allVerificationsVisible*/
247
- 32 && O(
248
- i,
249
- "ShowAll",
250
- /*allVerificationsVisible*/
251
- t[5]
252
- );
253
- },
254
- d(g) {
255
- g && C(i), s && s.d(), a = !1, u();
256
- }
257
- };
258
- }
259
- function ne(t) {
260
- let i, r, n, c, d = (
261
- /*$_*/
262
- t[9]("verification.video.how-to") + ""
263
- ), f, h, a;
264
- return {
265
- c() {
266
- i = w("div"), r = w("div"), r.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 448c-110.532 0-200-89.431-200-200 0-110.495 89.472-200 200-200 110.491 0 200 89.471 200 200 0 110.53-89.431 200-200 200zm107.244-255.2c0 67.052-72.421 68.084-72.421 92.863V300c0 6.627-5.373 12-12 12h-45.647c-6.627 0-12-5.373-12-12v-8.659c0-35.745 27.1-50.034 47.579-61.516 17.561-9.845 28.324-16.541 28.324-29.579 0-17.246-21.999-28.693-39.784-28.693-23.189 0-33.894 10.977-48.942 29.969-4.057 5.12-11.46 6.071-16.666 2.124l-27.824-21.098c-5.107-3.872-6.251-11.066-2.644-16.363C184.846 131.491 214.94 112 261.794 112c49.071 0 101.45 38.304 101.45 88.8zM298 368c0 23.159-18.841 42-42 42s-42-18.841-42-42 18.841-42 42-42 42 18.841 42 42z"></path></svg>', n = T(), c = w("div"), f = ze(d), V(r, "class", "IconVideo"), V(c, "class", "CashierVerificationVideoLink"), O(
267
- c,
268
- "CashierVerificationVideoLinkDesktop",
269
- /*desktopView*/
270
- t[6]
271
- ), V(i, "class", "CashierVerificationVideo");
272
- },
273
- m(u, s) {
274
- S(u, i, s), k(i, r), k(i, n), k(i, c), k(c, f), h || (a = H(
275
- c,
276
- "click",
277
- /*click_handler_2*/
278
- t[21]
279
- ), h = !0);
280
- },
281
- p(u, s) {
282
- s[0] & /*$_*/
283
- 512 && d !== (d = /*$_*/
284
- u[9]("verification.video.how-to") + "") && Fe(f, d), s[0] & /*desktopView*/
285
- 64 && O(
286
- c,
287
- "CashierVerificationVideoLinkDesktop",
288
- /*desktopView*/
289
- u[6]
290
- );
291
- },
292
- d(u) {
293
- u && C(i), h = !1, a();
294
- }
295
- };
296
- }
297
- function Ye(t) {
298
- let i, r = (
299
- /*displayMessages*/
300
- t[4] && re(t)
301
- );
302
- return {
303
- c() {
304
- i = w("div"), r && r.c(), V(i, "class", "CashierVerifications"), O(
305
- i,
306
- "CashierVerificationsDesktop",
307
- /*desktopView*/
308
- t[6]
309
- );
310
- },
311
- m(n, c) {
312
- S(n, i, c), r && r.m(i, null), t[22](i);
313
- },
314
- p(n, c) {
315
- /*displayMessages*/
316
- n[4] ? r ? r.p(n, c) : (r = re(n), r.c(), r.m(i, null)) : r && (r.d(1), r = null), c[0] & /*desktopView*/
317
- 64 && O(
318
- i,
319
- "CashierVerificationsDesktop",
320
- /*desktopView*/
321
- n[6]
322
- );
323
- },
324
- i: Z,
325
- o: Z,
326
- d(n) {
327
- n && C(i), r && r.d(), t[22](null);
328
- }
329
- };
330
- }
331
- const Ge = "verification_explanation_video_widgets.MP4";
332
- function Je(t, i, r) {
333
- let n, c;
334
- X(t, He, (e) => r(9, n = e)), X(t, je, (e) => r(28, c = e)), $.extend(Ne);
335
- let { endpoint: d } = i, { lang: f = "en" } = i, { translationurl: h = "" } = i, { clientstyling: a = "" } = i, { clientstylingurl: u = "" } = i, { session: s = "" } = i, { customerid: P = "" } = i, { ismobileview: g = "" } = i, { playersession: v = "" } = i, _, N = /* @__PURE__ */ new Set(), j = /* @__PURE__ */ new Set(), L, x, F, z = !0, W = !0, I = !1, E = "";
336
- var B;
337
- (function(e) {
338
- e.Manual = "Manual", e.ShuftiPro = "ShuftiPro";
339
- })(B || (B = {}));
340
- var R;
341
- (function(e) {
342
- e.Requested = "Requested";
343
- })(R || (R = {}));
344
- var p;
345
- (function(e) {
346
- e.Unknown = "Unknown", e.Unverified = "Unverified", e.InProgress = "InProgress", e.Failed = "Failed", e.Verified = "Verified", e.Referred = "Referred", e.True = "True", e.False = "False", e.AwaitingForResponse = "AwaitingForResponse";
347
- })(p || (p = {}));
348
- var M;
349
- (function(e) {
350
- e.Unknown = "Unknown", e.Documents = "Documents", e.Age = "Age", e.Pep = "Pep", e.Sanction = "Sanction", e.Aml = "Aml", e.ProofOfAddress = "ProofOfAddress", e.SourceOfWealth = "SourceOfWealth", e.SocialMedia = "SocialMedia", e.Biometric = "Biometric";
351
- })(M || (M = {}));
352
- const ae = [
353
- p.InProgress,
354
- p.Referred,
355
- p.AwaitingForResponse
356
- ], le = () => {
357
- let e = h;
358
- if (e)
359
- return fetch(e).then((o) => o.json()).then((o) => {
360
- Object.keys(o).forEach((l) => {
361
- ee(l, o[l]);
362
- });
363
- }).catch((o) => {
364
- console.log(o);
365
- });
366
- };
367
- Object.keys(ie).forEach((e) => {
368
- ee(e, ie[e]);
369
- });
370
- const ce = () => {
371
- We(f);
372
- }, fe = () => {
373
- let e = document.createElement("style");
374
- e.innerHTML = a, _.appendChild(e);
375
- }, de = () => {
376
- let e = new URL(u), o = document.createElement("style");
377
- fetch(e.href).then((l) => l.text()).then((l) => {
378
- o.innerHTML = l, setTimeout(
379
- () => {
380
- _.appendChild(o);
381
- },
382
- 1
383
- );
384
- });
385
- }, K = () => {
386
- r(18, x = me());
387
- const e = new URL(`${d}/v1/player/${P}/verification/GetKYCCustomerStatus?language=${f}`), o = new Headers();
388
- o.append("accept", "application/json"), o.append("Content-Type", "application/json"), o.append("x-sessionid", `${v}`), o.append("X-Client-Request-Timestamp", $.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));
389
- const l = {
390
- method: "POST",
391
- headers: o,
392
- body: JSON.stringify({})
393
- };
394
- fetch(e, l).then((m) => m.json()).then((m) => {
395
- const b = ue(m == null ? void 0 : m.Verifications);
396
- L = pe(b), L.VerificationStatuses.forEach((q) => {
397
- q.VerificationUrlType !== "Widget" && N.add(q.Vendor);
398
- }), r(4, F = G());
399
- });
400
- }, ue = (e) => e ? e.sort((o, l) => new Date(l.Created).getTime() - new Date(o.Created).getTime()) : [], he = () => {
401
- c && K();
402
- }, me = () => {
403
- let e = (s || c).split(".")[1];
404
- if (e) {
405
- let o = JSON.parse(atob(e));
406
- return o.cdn + "/cashier/operator-assets/" + (o == null ? void 0 : o.mid);
407
- }
408
- return "";
409
- }, pe = (e) => {
410
- var l;
411
- if (!e || !e.length)
412
- return {
413
- VerificationSummaryStatus: p.Unverified,
414
- VerificationStatuses: []
415
- };
416
- const o = ve(e);
417
- if (o && o.length) {
418
- const m = ge(o);
419
- return {
420
- VerificationSummaryStatus: m.Status,
421
- VerificationUrl: (l = m.Flags) == null ? void 0 : l.DeferredUrlKey,
422
- VerificationStatuses: Y(o, m.Status)
423
- };
424
- } else
425
- return {
426
- VerificationSummaryStatus: e.some((b) => b.Status === p.Failed) ? p.Failed : p.Verified,
427
- VerificationStatuses: Y(e, [p.Failed])
428
- };
429
- }, ge = (e) => e.reduce(
430
- (o, l) => o ? new Date(o) < new Date(l) ? l : o : l,
431
- 0
432
- ), Y = (e, o) => e.filter((l) => o.includes(l.Status)).map((l) => {
433
- var m, b;
434
- return {
435
- Type: l.Type,
436
- Vendor: l.VendorName,
437
- VerificationDocuments: l.Documents ? [...l.Documents] : [],
438
- VerificationUrlType: (m = l.FlowInfo) == null ? void 0 : m.Type,
439
- VerificationUrl: (b = l.FlowInfo) == null ? void 0 : b.Url
440
- };
441
- }), ve = (e) => e.filter((o) => ae.includes(o.Status) ? o.FlowInfo && o.FlowInfo.Url || we(o) || ye(o) : !1), we = (e) => {
442
- const o = e.Documents && e.VendorName === B.Manual, l = e.Documents && e.Documents.some((m) => m.Status === R.Requested);
443
- return o && l;
444
- }, ye = (e) => e.VendorName === B.ShuftiPro && e.Status === p.Referred, G = () => {
445
- switch (L.VerificationSummaryStatus) {
446
- case p.InProgress:
447
- const e = [];
448
- return N.forEach((o) => {
449
- e.push(ke(o));
450
- }), e;
451
- case p.Referred:
452
- return [n("verification.idenfy.referred-awaiting")];
453
- case p.Failed:
454
- return [n("verification.message.failed")];
455
- }
456
- }, ke = (e) => {
457
- const o = L.VerificationStatuses.filter((l) => l.Vendor === e);
458
- if (e === B.ShuftiPro)
459
- return Ve(o);
460
- {
461
- const l = n("verification.idenfy.link-name"), m = {
462
- link: `<a href="${o[0].VerificationUrl}" target="_blank">${l}</a>`
463
- };
464
- return n("verification.idenfy.in-progress", { values: m });
465
- }
466
- }, Ve = (e) => {
467
- const o = [], l = {}, m = [
468
- M.Biometric,
469
- M.Documents,
470
- M.ProofOfAddress
471
- ];
472
- e.forEach((A) => {
473
- m.includes(A.Type) && (o.push(A.Type), l[A.Type] = Pe(A, be(A.Type)));
474
- });
475
- let b = o.every((A) => j.has(A)), q = `verification.shuftipro.in-progress.${o.sort().join(".")}`;
476
- return b ? n("verification.shuftipro.validations-started") : n(q, { values: l });
477
- }, Pe = (e, o) => `<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${o}</a>`, be = (e) => n(`verification.shuftipro.link-name.${e}`), U = (e, o) => {
478
- if (e.stopPropagation(), e.target && (e.target.href || e.target.closest("a"))) {
479
- if (e.target.closest(".verificationLink")) {
480
- const l = e.target.className.split(" ")[1];
481
- j.add(l), r(4, F = G());
482
- }
483
- return;
484
- }
485
- o === 0 && r(5, z = !z);
486
- }, De = () => {
487
- r(6, W = g === "false");
488
- }, Ce = () => {
489
- r(8, E = x + "/" + f + "/" + Ge);
490
- try {
491
- fetch(E, { method: "HEAD" }).then((e) => {
492
- r(7, I = e.ok);
493
- });
494
- } catch (e) {
495
- r(7, I = !1);
496
- }
497
- }, J = () => {
498
- window.postMessage({ type: "ShowCashierVideoModal" }, window.location.href);
499
- }, Se = (e, o) => U(o, e), _e = (e, o) => U(o, e), Ae = () => J();
500
- function Te(e) {
501
- qe[e ? "unshift" : "push"](() => {
502
- _ = e, r(3, _);
503
- });
504
- }
505
- return t.$$set = (e) => {
506
- "endpoint" in e && r(12, d = e.endpoint), "lang" in e && r(13, f = e.lang), "translationurl" in e && r(14, h = e.translationurl), "clientstyling" in e && r(0, a = e.clientstyling), "clientstylingurl" in e && r(1, u = e.clientstylingurl), "session" in e && r(15, s = e.session), "customerid" in e && r(16, P = e.customerid), "ismobileview" in e && r(2, g = e.ismobileview), "playersession" in e && r(17, v = e.playersession);
507
- }, t.$$.update = () => {
508
- t.$$.dirty[0] & /*lang*/
509
- 8192 && f && ce(), t.$$.dirty[0] & /*endpoint, session, playersession*/
510
- 167936 && d && s && v && K(), t.$$.dirty[0] & /*endpoint, session, playersession*/
511
- 167936 && d && !s && v && he(), t.$$.dirty[0] & /*translationurl*/
512
- 16384 && h && le(), t.$$.dirty[0] & /*clientstyling, customStylingContainer*/
513
- 9 && a && _ && fe(), t.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
514
- 10 && u && _ && de(), t.$$.dirty[0] & /*ismobileview*/
515
- 4 && g && De(), t.$$.dirty[0] & /*staticCdnUrl*/
516
- 262144 && x && Ce();
517
- }, [
518
- a,
519
- u,
520
- g,
521
- _,
522
- F,
523
- z,
524
- W,
525
- I,
526
- E,
527
- n,
528
- U,
529
- J,
530
- d,
531
- f,
532
- h,
533
- s,
534
- P,
535
- v,
536
- x,
537
- Se,
538
- _e,
539
- Ae,
540
- Te
541
- ];
542
- }
543
- class Ze extends Oe {
544
- constructor(i) {
545
- super(), Be(
546
- this,
547
- i,
548
- Je,
549
- Ye,
550
- Me,
551
- {
552
- endpoint: 12,
553
- lang: 13,
554
- translationurl: 14,
555
- clientstyling: 0,
556
- clientstylingurl: 1,
557
- session: 15,
558
- customerid: 16,
559
- ismobileview: 2,
560
- playersession: 17
561
- },
562
- Ke,
563
- [-1, -1]
564
- );
565
- }
566
- get endpoint() {
567
- return this.$$.ctx[12];
568
- }
569
- set endpoint(i) {
570
- this.$$set({ endpoint: i }), y();
571
- }
572
- get lang() {
573
- return this.$$.ctx[13];
574
- }
575
- set lang(i) {
576
- this.$$set({ lang: i }), y();
577
- }
578
- get translationurl() {
579
- return this.$$.ctx[14];
580
- }
581
- set translationurl(i) {
582
- this.$$set({ translationurl: i }), y();
583
- }
584
- get clientstyling() {
585
- return this.$$.ctx[0];
586
- }
587
- set clientstyling(i) {
588
- this.$$set({ clientstyling: i }), y();
589
- }
590
- get clientstylingurl() {
591
- return this.$$.ctx[1];
592
- }
593
- set clientstylingurl(i) {
594
- this.$$set({ clientstylingurl: i }), y();
595
- }
596
- get session() {
597
- return this.$$.ctx[15];
598
- }
599
- set session(i) {
600
- this.$$set({ session: i }), y();
601
- }
602
- get customerid() {
603
- return this.$$.ctx[16];
604
- }
605
- set customerid(i) {
606
- this.$$set({ customerid: i }), y();
607
- }
608
- get ismobileview() {
609
- return this.$$.ctx[2];
610
- }
611
- set ismobileview(i) {
612
- this.$$set({ ismobileview: i }), y();
613
- }
614
- get playersession() {
615
- return this.$$.ctx[17];
616
- }
617
- set playersession(i) {
618
- this.$$set({ playersession: i }), y();
619
- }
620
- }
621
- Ie(Ze, { endpoint: {}, lang: {}, translationurl: {}, clientstyling: {}, clientstylingurl: {}, session: {}, customerid: {}, ismobileview: {}, playersession: {} }, [], [], !0);
622
- export {
623
- Ze as default
624
- };