@everymatrix/cashier-page 1.69.4 → 1.69.70

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-CBJt8F6x.js +5377 -0
  2. package/components/CashierCarousel-CfmPEPcN.js +5414 -0
  3. package/components/CashierCarousel-D5kSWky0.cjs +23 -0
  4. package/components/CashierError-CdOvfojJ.js +438 -0
  5. package/components/CashierError-DGNe2xuq.js +438 -0
  6. package/components/CashierError-DNuC45d1.cjs +1 -0
  7. package/components/CashierHeader-Cs8CEaF9.js +397 -0
  8. package/components/CashierHeader-DdCbhGSh.cjs +1 -0
  9. package/components/CashierHeader-xmXCTyKW.js +397 -0
  10. package/components/CashierIframeRedirect-BXHKd8sC.cjs +1 -0
  11. package/components/CashierIframeRedirect-WvZUPBqV.js +398 -0
  12. package/components/CashierIframeRedirect-qUGXGx3s.js +398 -0
  13. package/components/CashierMethodDetails-CZH49Fbk.js +8896 -0
  14. package/components/CashierMethodDetails-D-yMmahK.cjs +85 -0
  15. package/components/CashierMethodDetails-DtBMR3Gl.js +8873 -0
  16. package/components/CashierMethodsList-BashajhV.js +745 -0
  17. package/components/CashierMethodsList-DSEMnW8P.cjs +1 -0
  18. package/components/CashierMethodsList-WHF8nfid.js +733 -0
  19. package/components/CashierModal-C3xM7LBv.js +268 -0
  20. package/components/CashierModal-Dt6jrD_7.js +268 -0
  21. package/components/CashierModal-R8kFj8iv.cjs +1 -0
  22. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BlLqvSEs.js} +11 -11
  23. package/components/CashierNotifications-CkPy_2A7.cjs +1 -0
  24. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-DE3qEdiQ.js} +12 -12
  25. package/components/CashierPage-CRr4WELR.cjs +1 -0
  26. package/components/CashierPage-CokXt1Bz.js +2674 -0
  27. package/components/CashierPage-D3wSp1F6.js +2674 -0
  28. package/components/CashierReceiptPage-COrAdE73.cjs +26 -0
  29. package/components/CashierReceiptPage-DOh9j1sj.js +1693 -0
  30. package/components/CashierReceiptPage-DRKp8sTO.js +1689 -0
  31. package/components/CashierSessionExpirationModal-DpWXu2Pn.cjs +2 -0
  32. package/components/CashierSessionExpirationModal-Dz0mjHXB.js +1184 -0
  33. package/components/CashierSessionExpirationModal-S7cl-cVx.js +1184 -0
  34. package/components/CashierSpinner-BOrGTt9R.js +78 -0
  35. package/components/CashierSpinner-Bkz2A3Ui.cjs +1 -0
  36. package/components/CashierSpinner-ClchrEIo.js +78 -0
  37. package/components/CashierTransactionHistory-BckTfimD.js +1305 -0
  38. package/components/CashierTransactionHistory-ByijXCaI.cjs +1 -0
  39. package/components/CashierTransactionHistory-Dp7iiTLc.js +1305 -0
  40. package/components/CashierVerifications-BPurxVwq.js +597 -0
  41. package/components/CashierVerifications-DCnW6JT6.cjs +1 -0
  42. package/components/CashierVerifications-DySlpNtZ.js +601 -0
  43. package/components/TxnStatusIcon-B8ahOe2h.js +142 -0
  44. package/components/TxnStatusIcon-Bgj9uqou.cjs +1 -0
  45. package/components/TxnStatusIcon-CcSmN-7i.js +142 -0
  46. package/components/TxnTypeIcons-CBpa5s-y.cjs +1 -0
  47. package/components/TxnTypeIcons-DA9zdId9.js +101 -0
  48. package/components/TxnTypeIcons-zaR71CG9.js +101 -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,569 +0,0 @@
1
- import { S as it, b as nt, s as at, f as U, c as lt, n as J, e as W, m as N, x as ot, w as rt, K as V, L as ct, g as X, k as ft, t as dt, l as ut, y as B, o as l, p as v, q as j, z as I, v as e, A as ht, V as mt, F as vt, W as pt, J as G, B as gt, N as T, E as xt } from "./CashierConfirmModal-4RYp7Eiq.js";
2
- import { f as K } from "./CashierModal-ZfKvGxFq.js";
3
- import { a as kt, $ as wt, i as yt, b as Tt } from "./CashierError-lJcr3S9j.js";
4
- import { d as bt } from "./CashierMethodDetails-CbzQCKZu.js";
5
- yt({
6
- fallbackLocale: "en"
7
- });
8
- function Q(a, t) {
9
- kt(a, t);
10
- }
11
- function _t(a) {
12
- wt.set(a);
13
- }
14
- const Z = {
15
- en: {
16
- transactionHistoryTitle: "Transaction History",
17
- transactionIdTitle: "ID",
18
- transactionDateTitle: "Date",
19
- transactionTypeTitle: "Type",
20
- transactionStatusTitle: "Status",
21
- copyTransactionId: "Transaction Id copied to clipboard",
22
- transactionStatus: {
23
- Authorized: "Authorized",
24
- Success: "Success",
25
- Failed: "Failed",
26
- Rejected: "Rejected",
27
- Pending: "Pending"
28
- },
29
- transactionType: {
30
- Deposit: "Deposit",
31
- Withdraw: "Withdraw"
32
- }
33
- },
34
- tr: {
35
- transactionHistoryTitle: "İşlem Geçmişi",
36
- transactionIdTitle: "İşlem ID'si",
37
- transactionDateTitle: "Tarih",
38
- transactionTypeTitle: "Tip",
39
- transactionStatusTitle: "Durum",
40
- copyTransactionId: "İşlem ID’si kopyalandı",
41
- transactionStatus: {
42
- Authorized: "Onaylandı",
43
- Success: "Başarılı",
44
- Failed: "Başarısız",
45
- Rejected: "Reddedildi",
46
- Pending: "Beklemede"
47
- },
48
- transactionType: {
49
- Deposit: "Para Yatır",
50
- Withdraw: "Çekim"
51
- }
52
- }
53
- };
54
- function Ct(a, t) {
55
- if (a) {
56
- const s = document.createElement("style");
57
- s.innerHTML = t, a.appendChild(s);
58
- }
59
- }
60
- function St(a, t) {
61
- const s = new URL(t);
62
- fetch(s.href).then((i) => i.text()).then((i) => {
63
- const o = document.createElement("style");
64
- o.innerHTML = i, a && a.appendChild(o);
65
- }).catch((i) => {
66
- console.error("There was an error while trying to load client styling from URL", i);
67
- });
68
- }
69
- function Ht(a) {
70
- lt(a, "svelte-1kx4sff", ".svelte-1kx4sff.svelte-1kx4sff,.svelte-1kx4sff.svelte-1kx4sff::before,.svelte-1kx4sff.svelte-1kx4sff::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1kx4sff.svelte-1kx4sff{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistory.svelte-1kx4sff.svelte-1kx4sff{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1kx4sff table.svelte-1kx4sff{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1kx4sff table.svelte-1kx4sff:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1kx4sff thead tr.svelte-1kx4sff{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1kx4sff tbody tr.svelte-1kx4sff{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1kx4sff td:last-child .CashierTransactionHistoryStatusText.svelte-1kx4sff{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1kx4sff tr.svelte-1kx4sff{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1kx4sff .CopyTooltip.svelte-1kx4sff{width:100%}.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionId.svelte-1kx4sff{max-width:135px}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionHistoryWrapper.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1kx4sff table.svelte-1kx4sff{table-layout:fixed}.CashierTransactionHistory.svelte-1kx4sff table td.svelte-1kx4sff{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1kx4sff.svelte-1kx4sff{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-1kx4sff.svelte-1kx4sff{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-1kx4sff.svelte-1kx4sff{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1kx4sff.svelte-1kx4sff:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1kx4sff.svelte-1kx4sff{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1kx4sff.svelte-1kx4sff{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1kx4sff.svelte-1kx4sff{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1kx4sff.svelte-1kx4sff{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
71
- }
72
- function $(a, t, s) {
73
- const i = a.slice();
74
- return i[24] = t[s], i[26] = s, i;
75
- }
76
- function tt(a) {
77
- let t, s, i, o = (
78
- /*$_*/
79
- a[5]("transactionHistoryTitle") + ""
80
- ), c, d, u, x, b, _, p, H, L = (
81
- /*$_*/
82
- a[5]("transactionIdTitle") + ""
83
- ), z, k, C, y = (
84
- /*$_*/
85
- a[5]("transactionDateTitle") + ""
86
- ), A, D, R, M = (
87
- /*$_*/
88
- a[5]("transactionTypeTitle") + ""
89
- ), E, Y, P, S = (
90
- /*$_*/
91
- a[5]("transactionStatusTitle") + ""
92
- ), g, n, r, f = (
93
- /*copied*/
94
- a[3] && et(a)
95
- ), O = V(
96
- /*txnHistory*/
97
- a[2]
98
- ), m = [];
99
- for (let h = 0; h < O.length; h += 1)
100
- m[h] = st($(a, O, h));
101
- return {
102
- c() {
103
- t = v("div"), f && f.c(), s = j(), i = v("h3"), c = I(o), d = j(), u = v("div"), x = v("div"), b = v("table"), _ = v("thead"), p = v("tr"), H = v("td"), z = I(L), k = j(), C = v("td"), A = I(y), D = j(), R = v("td"), E = I(M), Y = j(), P = v("td"), g = I(S), n = j(), r = v("tbody");
104
- for (let h = 0; h < m.length; h += 1)
105
- m[h].c();
106
- e(i, "class", "CashierTransactionHistoryTitle svelte-1kx4sff"), e(H, "class", "svelte-1kx4sff"), e(C, "class", "svelte-1kx4sff"), e(R, "class", "svelte-1kx4sff"), e(P, "class", "svelte-1kx4sff"), e(p, "class", "svelte-1kx4sff"), e(_, "class", "svelte-1kx4sff"), e(r, "class", "svelte-1kx4sff"), e(b, "class", "svelte-1kx4sff"), e(x, "class", "CashierTransactionHistoryContent svelte-1kx4sff"), e(u, "class", "CashierTransactionHistoryWrapper svelte-1kx4sff"), e(t, "class", "CashierTransactionHistory svelte-1kx4sff");
107
- },
108
- m(h, F) {
109
- N(h, t, F), f && f.m(t, null), l(t, s), l(t, i), l(i, c), l(t, d), l(t, u), l(u, x), l(x, b), l(b, _), l(_, p), l(p, H), l(H, z), l(p, k), l(p, C), l(C, A), l(p, D), l(p, R), l(R, E), l(p, Y), l(p, P), l(P, g), l(b, n), l(b, r);
110
- for (let w = 0; w < m.length; w += 1)
111
- m[w] && m[w].m(r, null);
112
- a[16](t);
113
- },
114
- p(h, F) {
115
- if (/*copied*/
116
- h[3] ? f ? (f.p(h, F), F & /*copied*/
117
- 8 && X(f, 1)) : (f = et(h), f.c(), X(f, 1), f.m(t, s)) : f && (ft(), dt(f, 1, 1, () => {
118
- f = null;
119
- }), ut()), F & /*$_*/
120
- 32 && o !== (o = /*$_*/
121
- h[5]("transactionHistoryTitle") + "") && B(c, o), F & /*$_*/
122
- 32 && L !== (L = /*$_*/
123
- h[5]("transactionIdTitle") + "") && B(z, L), F & /*$_*/
124
- 32 && y !== (y = /*$_*/
125
- h[5]("transactionDateTitle") + "") && B(A, y), F & /*$_*/
126
- 32 && M !== (M = /*$_*/
127
- h[5]("transactionTypeTitle") + "") && B(E, M), F & /*$_*/
128
- 32 && S !== (S = /*$_*/
129
- h[5]("transactionStatusTitle") + "") && B(g, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
- 124) {
131
- O = V(
132
- /*txnHistory*/
133
- h[2]
134
- );
135
- let w;
136
- for (w = 0; w < O.length; w += 1) {
137
- const q = $(h, O, w);
138
- m[w] ? m[w].p(q, F) : (m[w] = st(q), m[w].c(), m[w].m(r, null));
139
- }
140
- for (; w < m.length; w += 1)
141
- m[w].d(1);
142
- m.length = O.length;
143
- }
144
- },
145
- d(h) {
146
- h && W(t), f && f.d(), ct(m, h), a[16](null);
147
- }
148
- };
149
- }
150
- function et(a) {
151
- let t, s = (
152
- /*$_*/
153
- a[5]("copyTransactionId") + ""
154
- ), i, o, c, d;
155
- return {
156
- c() {
157
- t = v("div"), i = I(s), e(t, "class", "CopyTooltip svelte-1kx4sff");
158
- },
159
- m(u, x) {
160
- N(u, t, x), l(t, i), d = !0;
161
- },
162
- p(u, x) {
163
- a = u, (!d || x & /*$_*/
164
- 32) && s !== (s = /*$_*/
165
- a[5]("copyTransactionId") + "") && B(i, s);
166
- },
167
- i(u) {
168
- d || (u && vt(() => {
169
- d && (c && c.end(1), o = pt(t, K, { duration: 100 }), o.start());
170
- }), d = !0);
171
- },
172
- o(u) {
173
- o && o.invalidate(), u && (c = mt(t, K, { duration: (
174
- /*tooltipduration*/
175
- a[0]
176
- ) })), d = !1;
177
- },
178
- d(u) {
179
- u && W(t), u && c && c.end();
180
- }
181
- };
182
- }
183
- function zt(a) {
184
- let t, s, i;
185
- return {
186
- c() {
187
- t = T("svg"), s = T("circle"), i = T("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#25bf00"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "d", "M8 12L11 15L16 9"), e(i, "stroke", "#25bf00"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
188
- },
189
- m(o, c) {
190
- N(o, t, c), l(t, s), l(t, i);
191
- },
192
- d(o) {
193
- o && W(t);
194
- }
195
- };
196
- }
197
- function Dt(a) {
198
- let t, s, i, o;
199
- return {
200
- c() {
201
- t = T("svg"), s = T("circle"), i = T("text"), o = I("R"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#dd6617d4"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#dd6617d4"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
202
- },
203
- m(c, d) {
204
- N(c, t, d), l(t, s), l(t, i), l(i, o);
205
- },
206
- d(c) {
207
- c && W(t);
208
- }
209
- };
210
- }
211
- function It(a) {
212
- let t, s, i;
213
- return {
214
- c() {
215
- t = T("svg"), s = T("circle"), i = T("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#f0a85f"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "d", "M12 7V12L15 14"), e(i, "stroke", "#f0a85f"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
216
- },
217
- m(o, c) {
218
- N(o, t, c), l(t, s), l(t, i);
219
- },
220
- d(o) {
221
- o && W(t);
222
- }
223
- };
224
- }
225
- function At(a) {
226
- let t, s, i;
227
- return {
228
- c() {
229
- t = T("svg"), s = T("circle"), i = T("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#e76049"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "d", "M9 9L15 15M15 9L9 15"), e(i, "stroke", "#e76049"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
230
- },
231
- m(o, c) {
232
- N(o, t, c), l(t, s), l(t, i);
233
- },
234
- d(o) {
235
- o && W(t);
236
- }
237
- };
238
- }
239
- function Ft(a) {
240
- let t, s, i, o;
241
- return {
242
- c() {
243
- t = T("svg"), s = T("circle"), i = T("text"), o = I("A"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#32b398"), e(s, "stroke-width", "2"), e(s, "class", "svelte-1kx4sff"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#32b398"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-1kx4sff"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-1kx4sff");
244
- },
245
- m(c, d) {
246
- N(c, t, d), l(t, s), l(t, i), l(i, o);
247
- },
248
- d(c) {
249
- c && W(t);
250
- }
251
- };
252
- }
253
- function st(a) {
254
- let t, s, i = (
255
- /*transaction*/
256
- a[24].Code + ""
257
- ), o, c, d, u = (
258
- /*transaction*/
259
- a[24].Date + ""
260
- ), x, b, _, p = (
261
- /*$_*/
262
- a[5](`transactionType.${/*transaction*/
263
- a[24].Type}`) + ""
264
- ), H, L, z, k, C, y, A, D = (
265
- /*$_*/
266
- a[5](`transactionStatus.${/*transaction*/
267
- a[24].Status}`) + ""
268
- ), R, M, E, Y;
269
- function P(n, r) {
270
- if (
271
- /*transaction*/
272
- n[24].Status === /*TransactionMainStatus*/
273
- n[4].Authorized
274
- )
275
- return Ft;
276
- if (
277
- /*transaction*/
278
- n[24].Status === /*TransactionMainStatus*/
279
- n[4].Failed
280
- )
281
- return At;
282
- if (
283
- /*transaction*/
284
- n[24].Status === /*TransactionMainStatus*/
285
- n[4].Pending
286
- )
287
- return It;
288
- if (
289
- /*transaction*/
290
- n[24].Status === /*TransactionMainStatus*/
291
- n[4].Rejected
292
- )
293
- return Dt;
294
- if (
295
- /*transaction*/
296
- n[24].Status === /*TransactionMainStatus*/
297
- n[4].Success
298
- )
299
- return zt;
300
- }
301
- let S = P(a), g = S && S(a);
302
- return {
303
- c() {
304
- t = v("tr"), s = v("td"), o = I(i), c = j(), d = v("td"), x = I(u), b = j(), _ = v("td"), H = I(p), L = j(), z = v("td"), k = v("div"), C = v("span"), g && g.c(), y = j(), A = v("span"), R = I(D), M = j(), e(s, "class", "CashierTransactionId svelte-1kx4sff"), G(
305
- s,
306
- "copied",
307
- /*copied*/
308
- a[3]
309
- ), e(d, "class", "svelte-1kx4sff"), e(_, "class", "svelte-1kx4sff"), e(C, "class", "CashierTransactionHistoryIcon svelte-1kx4sff"), e(A, "class", "CashierTransactionHistoryStatusText svelte-1kx4sff"), e(k, "class", "CashierTransactionHistoryStatus svelte-1kx4sff"), e(z, "class", "svelte-1kx4sff"), e(t, "class", "svelte-1kx4sff");
310
- },
311
- m(n, r) {
312
- N(n, t, r), l(t, s), l(s, o), l(t, c), l(t, d), l(d, x), l(t, b), l(t, _), l(_, H), l(t, L), l(t, z), l(z, k), l(k, C), g && g.m(C, null), l(k, y), l(k, A), l(A, R), l(t, M), E || (Y = gt(
313
- s,
314
- "mousedown",
315
- /*mousedown_handler*/
316
- a[15]
317
- ), E = !0);
318
- },
319
- p(n, r) {
320
- r & /*txnHistory*/
321
- 4 && i !== (i = /*transaction*/
322
- n[24].Code + "") && B(o, i), r & /*copied*/
323
- 8 && G(
324
- s,
325
- "copied",
326
- /*copied*/
327
- n[3]
328
- ), r & /*txnHistory*/
329
- 4 && u !== (u = /*transaction*/
330
- n[24].Date + "") && B(x, u), r & /*$_, txnHistory*/
331
- 36 && p !== (p = /*$_*/
332
- n[5](`transactionType.${/*transaction*/
333
- n[24].Type}`) + "") && B(H, p), S !== (S = P(n)) && (g && g.d(1), g = S && S(n), g && (g.c(), g.m(C, null))), r & /*$_, txnHistory*/
334
- 36 && D !== (D = /*$_*/
335
- n[5](`transactionStatus.${/*transaction*/
336
- n[24].Status}`) + "") && B(R, D);
337
- },
338
- d(n) {
339
- n && W(t), g && g.d(), E = !1, Y();
340
- }
341
- };
342
- }
343
- function jt(a) {
344
- let t, s = (
345
- /*txnHistory*/
346
- a[2].length && tt(a)
347
- );
348
- return {
349
- c() {
350
- s && s.c(), t = ot();
351
- },
352
- m(i, o) {
353
- s && s.m(i, o), N(i, t, o);
354
- },
355
- p(i, [o]) {
356
- /*txnHistory*/
357
- i[2].length ? s ? s.p(i, o) : (s = tt(i), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null);
358
- },
359
- i: J,
360
- o: J,
361
- d(i) {
362
- i && W(t), s && s.d(i);
363
- }
364
- };
365
- }
366
- const Lt = "DD.MM.YYYY";
367
- function Rt(a, t, s) {
368
- let i;
369
- rt(a, Tt, (n) => s(5, i = n));
370
- let { endpoint: o } = t, { session: c } = t, { lang: d = "en" } = t, { customerid: u } = t, { clientstyling: x = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: _ } = t, { tooltipduration: p = 1e3 } = t, { txncount: H = 3 } = t, L = [], z = !1, k, C;
371
- var y;
372
- (function(n) {
373
- n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
374
- })(y || (y = {}));
375
- const A = [
376
- "Authorized",
377
- "Success",
378
- "Failed",
379
- "Rejected",
380
- "PendingApprovalStage1",
381
- "PendingApprovalStage2",
382
- "PendingApprovalStage3",
383
- "PendingNotification",
384
- "PendingOfflineNotification",
385
- "PendingConfirmation"
386
- ];
387
- var D;
388
- (function(n) {
389
- n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
390
- })(D || (D = {}));
391
- const R = () => {
392
- let n = _;
393
- if (n)
394
- return fetch(n).then((r) => r.json()).then((r) => {
395
- Object.keys(r).forEach((f) => {
396
- Q(f, r[f]);
397
- });
398
- }).catch((r) => {
399
- console.log(r);
400
- });
401
- };
402
- Object.keys(Z).forEach((n) => {
403
- Q(n, Z[n]);
404
- });
405
- const M = () => {
406
- _t(d);
407
- }, E = () => {
408
- const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
409
- r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
410
- const f = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), O = {
411
- method: "POST",
412
- mode: "cors",
413
- headers: r,
414
- body: JSON.stringify({
415
- language: d,
416
- customerId: u,
417
- count: H,
418
- page: 0,
419
- fromDate: f,
420
- toDate: null,
421
- statuses: {
422
- [y.Deposit]: A,
423
- [y.Withdraw]: A,
424
- [y.Refund]: ["Unknown"],
425
- [y.TaxDeduction]: ["Unknown"],
426
- [y.Unknown]: ["Unknown"]
427
- },
428
- calculateProfit: !1
429
- })
430
- };
431
- fetch(n, O).then((m) => m.json()).then((m) => {
432
- s(2, L = Y((m == null ? void 0 : m.items) || []));
433
- }).catch((m) => console.log(m));
434
- }, Y = (n) => n.map((r) => {
435
- let f = r.generalFields.status;
436
- return r.generalFields.status.toLowerCase().includes("pending") && (f = D.Pending), {
437
- Code: r.generalFields.code,
438
- Date: bt(r.generalFields.created).format(Lt),
439
- Status: f,
440
- Type: r.generalFields.type
441
- };
442
- }) || [], P = (n) => {
443
- const r = n.currentTarget;
444
- n.target === r && navigator.clipboard.writeText(r.innerText).then(() => {
445
- s(3, z = !0), clearTimeout(C), C = setTimeout(
446
- () => {
447
- s(3, z = !1);
448
- },
449
- 2e3
450
- );
451
- }).catch((f) => {
452
- console.error("Could not copy text: ", f);
453
- });
454
- }, S = (n) => P(n);
455
- function g(n) {
456
- ht[n ? "unshift" : "push"](() => {
457
- k = n, s(1, k);
458
- });
459
- }
460
- return a.$$set = (n) => {
461
- "endpoint" in n && s(7, o = n.endpoint), "session" in n && s(8, c = n.session), "lang" in n && s(9, d = n.lang), "customerid" in n && s(10, u = n.customerid), "clientstyling" in n && s(11, x = n.clientstyling), "clientstylingurl" in n && s(12, b = n.clientstylingurl), "translationurl" in n && s(13, _ = n.translationurl), "tooltipduration" in n && s(0, p = n.tooltipduration), "txncount" in n && s(14, H = n.txncount);
462
- }, a.$$.update = () => {
463
- a.$$.dirty & /*lang*/
464
- 512 && d && M(), a.$$.dirty & /*clientstyling, customStylingContainer*/
465
- 2050 && x && k && Ct(k, x), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
466
- 4098 && b && k && St(k, b), a.$$.dirty & /*endpoint, session, customerid, lang*/
467
- 1920 && o && c && u && d && E(), a.$$.dirty & /*translationurl*/
468
- 8192 && _ && R();
469
- }, [
470
- p,
471
- k,
472
- L,
473
- z,
474
- D,
475
- i,
476
- P,
477
- o,
478
- c,
479
- d,
480
- u,
481
- x,
482
- b,
483
- _,
484
- H,
485
- S,
486
- g
487
- ];
488
- }
489
- class Pt extends it {
490
- constructor(t) {
491
- super(), nt(
492
- this,
493
- t,
494
- Rt,
495
- jt,
496
- at,
497
- {
498
- endpoint: 7,
499
- session: 8,
500
- lang: 9,
501
- customerid: 10,
502
- clientstyling: 11,
503
- clientstylingurl: 12,
504
- translationurl: 13,
505
- tooltipduration: 0,
506
- txncount: 14
507
- },
508
- Ht
509
- );
510
- }
511
- get endpoint() {
512
- return this.$$.ctx[7];
513
- }
514
- set endpoint(t) {
515
- this.$$set({ endpoint: t }), U();
516
- }
517
- get session() {
518
- return this.$$.ctx[8];
519
- }
520
- set session(t) {
521
- this.$$set({ session: t }), U();
522
- }
523
- get lang() {
524
- return this.$$.ctx[9];
525
- }
526
- set lang(t) {
527
- this.$$set({ lang: t }), U();
528
- }
529
- get customerid() {
530
- return this.$$.ctx[10];
531
- }
532
- set customerid(t) {
533
- this.$$set({ customerid: t }), U();
534
- }
535
- get clientstyling() {
536
- return this.$$.ctx[11];
537
- }
538
- set clientstyling(t) {
539
- this.$$set({ clientstyling: t }), U();
540
- }
541
- get clientstylingurl() {
542
- return this.$$.ctx[12];
543
- }
544
- set clientstylingurl(t) {
545
- this.$$set({ clientstylingurl: t }), U();
546
- }
547
- get translationurl() {
548
- return this.$$.ctx[13];
549
- }
550
- set translationurl(t) {
551
- this.$$set({ translationurl: t }), U();
552
- }
553
- get tooltipduration() {
554
- return this.$$.ctx[0];
555
- }
556
- set tooltipduration(t) {
557
- this.$$set({ tooltipduration: t }), U();
558
- }
559
- get txncount() {
560
- return this.$$.ctx[14];
561
- }
562
- set txncount(t) {
563
- this.$$set({ txncount: t }), U();
564
- }
565
- }
566
- xt(Pt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
567
- export {
568
- Pt as default
569
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./CashierConfirmModal-DMmJumcl.cjs"),T=require("./CashierError-B9QN5m8g.cjs"),A=require("./CashierMethodDetails-C1IkwS7r.cjs");function j(r,t){T.addMessages(r,t)}function ke(r){T.init({fallbackLocale:"en"}),T.$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"}};if(typeof window!="undefined"){let r=function(t){return function(...o){try{return t.apply(this,o)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CashierVideoModal-BZg_b6bd.cjs")).then(({default:t})=>{!customElements.get("cashier-video-modal")&&customElements.define("cashier-video-modal",t.element)})}function _e(r){i.append_styles(r,"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)}")}function W(r,t,o){const a=r.slice();return a[53]=t[o],a[55]=o,a}function Y(r){let t,o,a,f,u=i.ensure_array_like(r[4]),d=[];for(let l=0;l<u.length;l+=1)d[l]=G(W(r,u,l));let m=r[7]&&Z(r);return{c(){t=i.element("div");for(let l=0;l<d.length;l+=1)d[l].c();o=i.space(),m&&m.c(),a=i.space(),f=i.element("cashier-video-modal"),i.attr(t,"class","CashierVerificationsWrapper"),i.set_custom_element_data(f,"clientstylingurl",r[1]),i.set_custom_element_data(f,"clientstyling",r[0]),i.set_custom_element_data(f,"ismobileview",r[2]),i.set_custom_element_data(f,"videosrc",r[8])},m(l,h){i.insert(l,t,h);for(let s=0;s<d.length;s+=1)d[s]&&d[s].m(t,null);i.insert(l,o,h),m&&m.m(l,h),i.insert(l,a,h),i.insert(l,f,h)},p(l,h){if(h[0]&1072){u=i.ensure_array_like(l[4]);let s;for(s=0;s<u.length;s+=1){const y=W(l,u,s);d[s]?d[s].p(y,h):(d[s]=G(y),d[s].c(),d[s].m(t,null))}for(;s<d.length;s+=1)d[s].d(1);d.length=u.length}l[7]?m?m.p(l,h):(m=Z(l),m.c(),m.m(a.parentNode,a)):m&&(m.d(1),m=null),h[0]&2&&i.set_custom_element_data(f,"clientstylingurl",l[1]),h[0]&1&&i.set_custom_element_data(f,"clientstyling",l[0]),h[0]&4&&i.set_custom_element_data(f,"ismobileview",l[2]),h[0]&256&&i.set_custom_element_data(f,"videosrc",l[8])},d(l){l&&(i.detach(t),i.detach(o),i.detach(a),i.detach(f)),i.destroy_each(d,l),m&&m.d(l)}}}function K(r){let t,o,a;function f(...u){return r[19](r[55],...u)}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(u,d){i.insert(u,t,d),o||(a=i.listen(t,"click",f),o=!0)},p(u,d){r=u},d(u){u&&i.detach(t),o=!1,a()}}}function G(r){let t,o,a,f,u=r[53]+"",d,m,l,h,s=r[4].length>1&&r[55]===0&&K(r);function y(...v){return r[20](r[55],...v)}return{c(){t=i.element("div"),o=i.element("div"),o.innerHTML='<svg width="64px" height="64px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#ffffff"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><path d="M4.39254 16.2614C2.64803 13.1941 1.66074 9.71783 1.51646 6.15051C1.50127 5.77507 1.70918 5.42812 2.04153 5.25282L11.5335 0.246091C11.8254 0.0920859 12.1746 0.0920859 12.4665 0.246091L21.9585 5.25282C22.2908 5.42812 22.4987 5.77507 22.4835 6.15051C22.3393 9.71783 21.352 13.1941 19.6075 16.2614C17.8618 19.3307 15.4169 21.8869 12.4986 23.7001C12.1931 23.8899 11.8069 23.8899 11.5014 23.7001C8.58313 21.8869 6.13817 19.3307 4.39254 16.2614Z" fill="#fa9200"></path><path d="M8.25 12.75L11.25 15L17.25 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></g></svg>',a=i.space(),f=i.element("p"),d=i.space(),s&&s.c(),m=i.space(),i.attr(o,"class","IconVerification"),i.attr(f,"class","text"),i.attr(t,"class","CashierVerificationMessage"),i.toggle_class(t,"ShowAll",r[5])},m(v,w){i.insert(v,t,w),i.append(t,o),i.append(t,a),i.append(t,f),f.innerHTML=u,i.append(t,d),s&&s.m(t,null),i.append(t,m),l||(h=i.listen(t,"click",y),l=!0)},p(v,w){r=v,w[0]&16&&u!==(u=r[53]+"")&&(f.innerHTML=u),r[4].length>1&&r[55]===0?s?s.p(r,w):(s=K(r),s.c(),s.m(t,m)):s&&(s.d(1),s=null),w[0]&32&&i.toggle_class(t,"ShowAll",r[5])},d(v){v&&i.detach(t),s&&s.d(),l=!1,h()}}}function Z(r){let t,o,a,f,u=r[9]("verification.video.how-to")+"",d,m,l;return{c(){t=i.element("div"),o=i.element("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=i.space(),f=i.element("div"),d=i.text(u),i.attr(o,"class","IconVideo"),i.attr(f,"class","CashierVerificationVideoLink"),i.toggle_class(f,"CashierVerificationVideoLinkDesktop",r[6]),i.attr(t,"class","CashierVerificationVideo")},m(h,s){i.insert(h,t,s),i.append(t,o),i.append(t,a),i.append(t,f),i.append(f,d),m||(l=i.listen(f,"click",r[21]),m=!0)},p(h,s){s[0]&512&&u!==(u=h[9]("verification.video.how-to")+"")&&i.set_data(d,u),s[0]&64&&i.toggle_class(f,"CashierVerificationVideoLinkDesktop",h[6])},d(h){h&&i.detach(t),m=!1,l()}}}function Ve(r){let t,o=r[4]&&Y(r);return{c(){t=i.element("div"),o&&o.c(),i.attr(t,"class","CashierVerifications"),i.toggle_class(t,"CashierVerificationsDesktop",r[6])},m(a,f){i.insert(a,t,f),o&&o.m(t,null),r[22](t)},p(a,f){a[4]?o?o.p(a,f):(o=Y(a),o.c(),o.m(t,null)):o&&(o.d(1),o=null),f[0]&64&&i.toggle_class(t,"CashierVerificationsDesktop",a[6])},i:i.noop,o:i.noop,d(a){a&&i.detach(t),o&&o.d(),r[22](null)}}}const Pe="verification_explanation_video_widgets.MP4";function be(r,t,o){let a,f;i.component_subscribe(r,T.$format,e=>o(9,a=e)),i.component_subscribe(r,A.xPaymentSessionToken,e=>o(28,f=e)),A.dayjs.extend(A.utc);let{endpoint:u}=t,{lang:d="en"}=t,{translationurl:m=""}=t,{clientstyling:l=""}=t,{clientstylingurl:h=""}=t,{session:s=""}=t,{customerid:y=""}=t,{ismobileview:v=""}=t,{playersession:w=""}=t,_,F=new Set,z=new Set,D,C,O,M=!0,I=!0,B=!1,L="";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 X=[g.InProgress,g.Referred,g.AwaitingForResponse],Q=()=>{let e=m;if(e)return fetch(e).then(n=>n.json()).then(n=>{Object.keys(n).forEach(c=>{j(c,n[c])})}).catch(n=>{console.log(n)})};Object.keys(N).forEach(e=>{j(e,N[e])});const $=()=>{ke(d)},ee=()=>{let e=document.createElement("style");e.innerHTML=l,_.appendChild(e)},ie=()=>{let e=new URL(h),n=document.createElement("style");fetch(e.href).then(c=>c.text()).then(c=>{n.innerHTML=c,setTimeout(()=>{_.appendChild(n)},1)})},E=()=>{o(18,C=oe());const e=new URL(`${u}/v1/player/${y}/verification/GetKYCCustomerStatus?language=${d}`),n=new Headers;n.append("accept","application/json"),n.append("Content-Type","application/json"),n.append("x-sessionid",`${w}`),n.append("X-Client-Request-Timestamp",A.dayjs.utc().format("YYYY-MM-DD HH:mm:ss.SSS"));const c={method:"POST",headers:n,body:JSON.stringify({})};fetch(e,c).then(p=>p.json()).then(p=>{const k=te(p==null?void 0:p.Verifications);D=ne(k),D.VerificationStatuses.forEach(S=>{S.VerificationUrlType!=="Widget"&&F.add(S.Vendor)}),o(4,O=U())})},te=e=>e?e.sort((n,c)=>new Date(c.Created).getTime()-new Date(n.Created).getTime()):[],re=()=>{f&&E()},oe=()=>{let e=(s||f).split(".")[1];if(e){let n=JSON.parse(atob(e));return n.cdn+"/cashier/operator-assets/"+(n==null?void 0:n.mid)}return""},ne=e=>{var c;if(!e||!e.length)return{VerificationSummaryStatus:g.Unverified,VerificationStatuses:[]};const n=ae(e);if(n&&n.length){const p=se(n);return{VerificationSummaryStatus:p.Status,VerificationUrl:(c=p.Flags)==null?void 0:c.DeferredUrlKey,VerificationStatuses:R(n,p.Status)}}else return{VerificationSummaryStatus:e.some(k=>k.Status===g.Failed)?g.Failed:g.Verified,VerificationStatuses:R(e,[g.Failed])}},se=e=>e.reduce((n,c)=>n?new Date(n)<new Date(c)?c:n:c,0),R=(e,n)=>e.filter(c=>n.includes(c.Status)).map(c=>{var p,k;return{Type:c.Type,Vendor:c.VendorName,VerificationDocuments:c.Documents?[...c.Documents]:[],VerificationUrlType:(p=c.FlowInfo)==null?void 0:p.Type,VerificationUrl:(k=c.FlowInfo)==null?void 0:k.Url}}),ae=e=>e.filter(n=>X.includes(n.Status)?n.FlowInfo&&n.FlowInfo.Url||le(n)||ce(n):!1),le=e=>{const n=e.Documents&&e.VendorName===P.Manual,c=e.Documents&&e.Documents.some(p=>p.Status===q.Requested);return n&&c},ce=e=>e.VendorName===P.ShuftiPro&&e.Status===g.Referred,U=()=>{switch(D.VerificationSummaryStatus){case g.InProgress:const e=[];return F.forEach(n=>{e.push(fe(n))}),e;case g.Referred:return[a("verification.idenfy.referred-awaiting")];case g.Failed:return[a("verification.message.failed")]}},fe=e=>{const n=D.VerificationStatuses.filter(c=>c.Vendor===e);if(e===P.ShuftiPro)return de(n);{const c=a("verification.idenfy.link-name"),p={link:`<a href="${n[0].VerificationUrl}" target="_blank">${c}</a>`};return a("verification.idenfy.in-progress",{values:p})}},de=e=>{const n=[],c={},p=[b.Biometric,b.Documents,b.ProofOfAddress];e.forEach(V=>{p.includes(V.Type)&&(n.push(V.Type),c[V.Type]=ue(V,he(V.Type)))});let k=n.every(V=>z.has(V)),S=`verification.shuftipro.in-progress.${n.sort().join(".")}`;return k?a("verification.shuftipro.validations-started"):a(S,{values:c})},ue=(e,n)=>`<a class="verificationLink ${e.Type}" href=" ${e.VerificationUrl} " target="_blank">${n}</a>`,he=e=>a(`verification.shuftipro.link-name.${e}`),x=(e,n)=>{if(e.stopPropagation(),e.target&&(e.target.href||e.target.closest("a"))){if(e.target.closest(".verificationLink")){const c=e.target.className.split(" ")[1];z.add(c),o(4,O=U())}return}n===0&&o(5,M=!M)},me=()=>{o(6,I=v==="false")},pe=()=>{o(8,L=C+"/"+d+"/"+Pe);try{fetch(L,{method:"HEAD"}).then(e=>{o(7,B=e.ok)})}catch(e){o(7,B=!1)}},H=()=>{window.postMessage({type:"ShowCashierVideoModal"},window.location.href)},ge=(e,n)=>x(n,e),ve=(e,n)=>x(n,e),we=()=>H();function ye(e){i.binding_callbacks[e?"unshift":"push"](()=>{_=e,o(3,_)})}return r.$$set=e=>{"endpoint"in e&&o(12,u=e.endpoint),"lang"in e&&o(13,d=e.lang),"translationurl"in e&&o(14,m=e.translationurl),"clientstyling"in e&&o(0,l=e.clientstyling),"clientstylingurl"in e&&o(1,h=e.clientstylingurl),"session"in e&&o(15,s=e.session),"customerid"in e&&o(16,y=e.customerid),"ismobileview"in e&&o(2,v=e.ismobileview),"playersession"in e&&o(17,w=e.playersession)},r.$$.update=()=>{r.$$.dirty[0]&8192&&d&&$(),r.$$.dirty[0]&167936&&u&&s&&w&&E(),r.$$.dirty[0]&167936&&u&&!s&&w&&re(),r.$$.dirty[0]&16384&&m&&Q(),r.$$.dirty[0]&9&&l&&_&&ee(),r.$$.dirty[0]&10&&h&&_&&ie(),r.$$.dirty[0]&4&&v&&me(),r.$$.dirty[0]&262144&&C&&pe()},[l,h,v,_,O,M,I,B,L,a,x,H,u,d,m,s,y,w,C,ge,ve,we,ye]}class J extends i.SvelteComponent{constructor(t){super(),i.init(this,t,be,Ve,i.safe_not_equal,{endpoint:12,lang:13,translationurl:14,clientstyling:0,clientstylingurl:1,session:15,customerid:16,ismobileview:2,playersession:17},_e,[-1,-1])}get endpoint(){return this.$$.ctx[12]}set endpoint(t){this.$$set({endpoint:t}),i.flush()}get lang(){return this.$$.ctx[13]}set lang(t){this.$$set({lang:t}),i.flush()}get translationurl(){return this.$$.ctx[14]}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[15]}set session(t){this.$$set({session:t}),i.flush()}get customerid(){return this.$$.ctx[16]}set customerid(t){this.$$set({customerid:t}),i.flush()}get ismobileview(){return this.$$.ctx[2]}set ismobileview(t){this.$$set({ismobileview:t}),i.flush()}get playersession(){return this.$$.ctx[17]}set playersession(t){this.$$set({playersession:t}),i.flush()}}i.create_custom_element(J,{endpoint:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},session:{},customerid:{},ismobileview:{},playersession:{}},[],[],!0);exports.default=J;