@everymatrix/cashier-page 1.72.2 → 1.73.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/components/{CashierConfirmModal-4RYp7Eiq.js → CashierConfirmModal-BCk4hvRj.js} +3 -3
  2. package/components/{CashierConfirmModal-untxGhsx.js → CashierConfirmModal-DXlKhIue.js} +3 -3
  3. package/components/{CashierError-Zu3Whx-d.js → CashierError-BydkW7s_.js} +2 -2
  4. package/components/{CashierError-DfpdiheS.cjs → CashierError-Dpt_Z7yL.cjs} +1 -1
  5. package/components/{CashierError-yts9rF-i.js → CashierError-Dz_HsnJl.js} +2 -2
  6. package/components/{CashierHeader-BX6LLGb8.js → CashierHeader-86wrgmgP.js} +2 -2
  7. package/components/{CashierHeader-B9cdsOYh.cjs → CashierHeader-BXKYku0i.cjs} +1 -1
  8. package/components/{CashierHeader-C9V5_NVw.js → CashierHeader-DtS_U-De.js} +2 -2
  9. package/components/CashierIframeRedirect-BARMuRTc.cjs +1 -0
  10. package/components/CashierIframeRedirect-CmqcfGcT.js +429 -0
  11. package/components/CashierIframeRedirect-Xzpx4Rjk.js +429 -0
  12. package/components/{CashierMethodDetails-D1ZeLJFI.js → CashierMethodDetails-B1jSb3IC.js} +3506 -2966
  13. package/components/{CashierMethodDetails-DhkT1TEG.js → CashierMethodDetails-CZ1Xj4bB.js} +3415 -2875
  14. package/components/CashierMethodDetails-D9tO8F-N.cjs +99 -0
  15. package/components/CashierMethodsList-BoP67Zj_.js +828 -0
  16. package/components/CashierMethodsList-F_QBfadW.cjs +1 -0
  17. package/components/{CashierMethodsList-Bd0awrSP.js → CashierMethodsList-pOyUlgCs.js} +372 -396
  18. package/components/CashierModal-B4b12-Am.js +229 -0
  19. package/components/CashierModal-C-yyjQ8m.cjs +1 -0
  20. package/components/CashierModal-DCgiaC4V.js +229 -0
  21. package/components/{CashierNotifications-dn6rnyK_.js → CashierNotifications-BZCaBrRm.js} +1 -1
  22. package/components/{CashierNotifications-C48iLynX.js → CashierNotifications-CWqwdi55.js} +1 -1
  23. package/components/{CashierPage-DagcI5W-.js → CashierPage-B14Zambu.js} +824 -587
  24. package/components/{CashierPage-BbiDGdpa.js → CashierPage-BVN_y5LM.js} +824 -587
  25. package/components/CashierPage-BZCoKtSr.cjs +1 -0
  26. package/components/CashierReceiptPage-BM8IB2en.js +1451 -0
  27. package/components/CashierReceiptPage-DY4vYKOg.cjs +1 -0
  28. package/components/CashierReceiptPage-hbrIFE7Z.js +1453 -0
  29. package/components/CashierSessionExpirationModal-4QgY4tj0.js +1205 -0
  30. package/components/CashierSessionExpirationModal-B-JloK58.cjs +2 -0
  31. package/components/CashierSessionExpirationModal-BZjFbzTF.js +1205 -0
  32. package/components/CashierSpinner-BdeNFm1c.js +79 -0
  33. package/components/CashierSpinner-COjPdCUV.js +79 -0
  34. package/components/CashierSpinner-CpkB8Zoj.cjs +1 -0
  35. package/components/CashierTransactionHistory-BRRK3_Wm.cjs +1 -0
  36. package/components/CashierTransactionHistory-DwBe7fCZ.js +614 -0
  37. package/components/CashierTransactionHistory-DzdL--gs.js +614 -0
  38. package/components/{CashierVerifications-8ZmmqlLE.js → CashierVerifications-Ct5BMC4Z.js} +324 -277
  39. package/components/CashierVerifications-DEJgktmX.cjs +1 -0
  40. package/components/{CashierVerifications-DJ8j0wXs.js → CashierVerifications-bo5F0ePz.js} +332 -285
  41. package/components/CashierVideoModal-8I67tMwv.cjs +1 -0
  42. package/components/{CashierVideoModal-CVDvqrcy.js → CashierVideoModal-CQLJKJAK.js} +91 -94
  43. package/components/{CashierVideoModal-DHNu0BQz.js → CashierVideoModal-CzRdJr4V.js} +91 -94
  44. package/es2015/cashier-page.cjs +1 -1
  45. package/es2015/cashier-page.js +1 -1
  46. package/esnext/cashier-page.js +1 -1
  47. package/package.json +1 -1
  48. package/stencil/app-globals-0f993ce5-BD-Q0C8R.cjs +1 -0
  49. package/stencil/app-globals-0f993ce5-Cgk0KVAu.js +7 -0
  50. package/stencil/index-b2193545-B8kMF2bI.cjs +1 -0
  51. package/stencil/index-b2193545-BoSqyMpB.js +519 -0
  52. package/stencil/index-b2193545-D4dOaNlR.js +503 -0
  53. package/stencil/{ui-image-C7s6Uvn5.js → ui-image-BWJXFWH1.js} +1 -1
  54. package/stencil/{ui-image-BaHsVAxH.cjs → ui-image-ByEXiBzx.cjs} +1 -1
  55. package/stencil/{ui-image-CHeV8e9p.js → ui-image-DIEeZy5u.js} +1 -1
  56. package/stencil/ui-skeleton-4-zrLsIW.js +11 -0
  57. package/stencil/ui-skeleton-9boHSjtG.js +29 -0
  58. package/stencil/ui-skeleton-_yJvAdAL.cjs +1 -0
  59. package/stencil/ui-skeleton-ae35c6f2-8tYGV8SR.js +155 -0
  60. package/stencil/ui-skeleton-ae35c6f2-CKgUXOQC.cjs +55 -0
  61. package/stencil/ui-skeleton-ae35c6f2-IN_dPA5_.js +155 -0
  62. package/components/CashierIframeRedirect-3Ttb1Wdk.js +0 -378
  63. package/components/CashierIframeRedirect-BIMJNSib.js +0 -378
  64. package/components/CashierIframeRedirect-NF0DKl7A.cjs +0 -1
  65. package/components/CashierMethodDetails-Cgu5TXSP.cjs +0 -84
  66. package/components/CashierMethodsList-D4ou6zMr.cjs +0 -1
  67. package/components/CashierMethodsList-z8dlFfeS.js +0 -852
  68. package/components/CashierModal-BrwIBn9a.js +0 -232
  69. package/components/CashierModal-BuM2Yq-y.cjs +0 -1
  70. package/components/CashierModal-ZfKvGxFq.js +0 -232
  71. package/components/CashierPage-eEO1eHcj.cjs +0 -1
  72. package/components/CashierReceiptPage--SlIuxeH.js +0 -1174
  73. package/components/CashierReceiptPage-Si7b2HWz.js +0 -1172
  74. package/components/CashierReceiptPage-dUPhckvS.cjs +0 -1
  75. package/components/CashierSessionExpirationModal-BmFSh_r0.js +0 -1208
  76. package/components/CashierSessionExpirationModal-CVnU7oKj.cjs +0 -2
  77. package/components/CashierSessionExpirationModal-QHzlcCYu.js +0 -1208
  78. package/components/CashierSpinner-BAfTKICK.js +0 -71
  79. package/components/CashierSpinner-BhmndmKG.cjs +0 -1
  80. package/components/CashierSpinner-y6HodxHT.js +0 -71
  81. package/components/CashierTransactionHistory-CBJrAtki.js +0 -569
  82. package/components/CashierTransactionHistory-DwYyVBtn.cjs +0 -1
  83. package/components/CashierTransactionHistory-LW9NA8-t.js +0 -569
  84. package/components/CashierVerifications-CYRbG7DV.cjs +0 -1
  85. package/components/CashierVideoModal-BZg_b6bd.cjs +0 -1
  86. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  87. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
@@ -0,0 +1,614 @@
1
+ import { S as it, b as nt, s as at, f as M, c as lt, n as J, e as E, l as O, o as v, q as e, v as rt, F as ot, z as ct, K as V, L as ut, g as X, D as dt, t as ht, k as ft, x as W, m as r, p as L, y as j, C as q, V as mt, G as vt, W as gt, J as K, A as pt, N as k, E as yt } from "./CashierConfirmModal-DXlKhIue.js";
2
+ import { f as Q } from "./CashierModal-DCgiaC4V.js";
3
+ import { a as wt, $ as Tt, i as bt, b as _t } from "./CashierError-Dz_HsnJl.js";
4
+ import { d as xt } from "./CashierMethodDetails-CZ1Xj4bB.js";
5
+ import { s as kt, a as Ct, b as St } from "./CashierIframeRedirect-Xzpx4Rjk.js";
6
+ bt({
7
+ fallbackLocale: "en"
8
+ });
9
+ function Z(a, t) {
10
+ wt(a, t);
11
+ }
12
+ function Ht(a) {
13
+ Tt.set(a);
14
+ }
15
+ const $ = {
16
+ en: {
17
+ transactionHistoryTitle: "Transaction History",
18
+ transactionIdTitle: "ID",
19
+ transactionDateTitle: "Date",
20
+ transactionTypeTitle: "Type",
21
+ transactionStatusTitle: "Status",
22
+ copyTransactionId: "Transaction Id copied to clipboard",
23
+ transactionStatus: {
24
+ Authorized: "Authorized",
25
+ Success: "Success",
26
+ Failed: "Failed",
27
+ Rejected: "Rejected",
28
+ Pending: "Pending"
29
+ },
30
+ transactionType: {
31
+ Deposit: "Deposit",
32
+ Withdraw: "Withdraw"
33
+ }
34
+ },
35
+ tr: {
36
+ transactionHistoryTitle: "İşlem Geçmişi",
37
+ transactionIdTitle: "İşlem ID'si",
38
+ transactionDateTitle: "Tarih",
39
+ transactionTypeTitle: "Tip",
40
+ transactionStatusTitle: "Durum",
41
+ copyTransactionId: "İşlem ID’si kopyalandı",
42
+ transactionStatus: {
43
+ Authorized: "Onaylandı",
44
+ Success: "Başarılı",
45
+ Failed: "Başarısız",
46
+ Rejected: "Reddedildi",
47
+ Pending: "Beklemede"
48
+ },
49
+ transactionType: {
50
+ Deposit: "Para Yatır",
51
+ Withdraw: "Çekim"
52
+ }
53
+ }
54
+ };
55
+ function Dt(a) {
56
+ lt(a, "svelte-1cus01h", ".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{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}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{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-1cus01h table.svelte-1cus01h{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-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{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-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{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-1cus01h.svelte-1cus01h{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-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
57
+ }
58
+ function tt(a, t, s) {
59
+ const i = a.slice();
60
+ return i[27] = t[s], i;
61
+ }
62
+ function zt(a) {
63
+ let t;
64
+ return {
65
+ c() {
66
+ t = v("cashier-spinner"), q(
67
+ t,
68
+ "clientstylingurl",
69
+ /*clientstylingurl*/
70
+ a[1]
71
+ ), q(
72
+ t,
73
+ "clientstyling",
74
+ /*clientstyling*/
75
+ a[0]
76
+ ), q(t, "class", "svelte-1cus01h");
77
+ },
78
+ m(s, i) {
79
+ O(s, t, i);
80
+ },
81
+ p(s, i) {
82
+ i & /*clientstylingurl*/
83
+ 2 && q(
84
+ t,
85
+ "clientstylingurl",
86
+ /*clientstylingurl*/
87
+ s[1]
88
+ ), i & /*clientstyling*/
89
+ 1 && q(
90
+ t,
91
+ "clientstyling",
92
+ /*clientstyling*/
93
+ s[0]
94
+ );
95
+ },
96
+ d(s) {
97
+ s && E(t);
98
+ }
99
+ };
100
+ }
101
+ function It(a) {
102
+ let t, s, i, l = (
103
+ /*$_*/
104
+ a[8]("transactionHistoryTitle") + ""
105
+ ), o, c, f, w, C, S, y, z, I = (
106
+ /*$_*/
107
+ a[8]("transactionIdTitle") + ""
108
+ ), P, H, g, B = (
109
+ /*$_*/
110
+ a[8]("transactionDateTitle") + ""
111
+ ), A, x, R, F = (
112
+ /*$_*/
113
+ a[8]("transactionTypeTitle") + ""
114
+ ), U, Y, N, D = (
115
+ /*$_*/
116
+ a[8]("transactionStatusTitle") + ""
117
+ ), p, u, _, n = (
118
+ /*copied*/
119
+ a[5] && et(a)
120
+ ), d = V(
121
+ /*txnHistory*/
122
+ a[4]
123
+ ), m = [];
124
+ for (let h = 0; h < d.length; h += 1)
125
+ m[h] = st(tt(a, d, h));
126
+ return {
127
+ c() {
128
+ t = v("div"), n && n.c(), s = L(), i = v("h3"), o = j(l), c = L(), f = v("div"), w = v("div"), C = v("table"), S = v("thead"), y = v("tr"), z = v("td"), P = j(I), H = L(), g = v("td"), A = j(B), x = L(), R = v("td"), U = j(F), Y = L(), N = v("td"), p = j(D), u = L(), _ = v("tbody");
129
+ for (let h = 0; h < m.length; h += 1)
130
+ m[h].c();
131
+ e(i, "class", "CashierTransactionHistoryTitle svelte-1cus01h"), e(z, "class", "svelte-1cus01h"), e(g, "class", "svelte-1cus01h"), e(R, "class", "svelte-1cus01h"), e(N, "class", "svelte-1cus01h"), e(y, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(_, "class", "svelte-1cus01h"), e(C, "class", "svelte-1cus01h"), e(w, "class", "CashierTransactionHistoryContent svelte-1cus01h"), e(f, "class", "CashierTransactionHistoryWrapper svelte-1cus01h"), e(t, "class", "CashierTransactionHistory svelte-1cus01h");
132
+ },
133
+ m(h, T) {
134
+ O(h, t, T), n && n.m(t, null), r(t, s), r(t, i), r(i, o), r(t, c), r(t, f), r(f, w), r(w, C), r(C, S), r(S, y), r(y, z), r(z, P), r(y, H), r(y, g), r(g, A), r(y, x), r(y, R), r(R, U), r(y, Y), r(y, N), r(N, p), r(C, u), r(C, _);
135
+ for (let b = 0; b < m.length; b += 1)
136
+ m[b] && m[b].m(_, null);
137
+ a[18](t);
138
+ },
139
+ p(h, T) {
140
+ if (/*copied*/
141
+ h[5] ? n ? (n.p(h, T), T & /*copied*/
142
+ 32 && X(n, 1)) : (n = et(h), n.c(), X(n, 1), n.m(t, s)) : n && (dt(), ht(n, 1, 1, () => {
143
+ n = null;
144
+ }), ft()), T & /*$_*/
145
+ 256 && l !== (l = /*$_*/
146
+ h[8]("transactionHistoryTitle") + "") && W(o, l), T & /*$_*/
147
+ 256 && I !== (I = /*$_*/
148
+ h[8]("transactionIdTitle") + "") && W(P, I), T & /*$_*/
149
+ 256 && B !== (B = /*$_*/
150
+ h[8]("transactionDateTitle") + "") && W(A, B), T & /*$_*/
151
+ 256 && F !== (F = /*$_*/
152
+ h[8]("transactionTypeTitle") + "") && W(U, F), T & /*$_*/
153
+ 256 && D !== (D = /*$_*/
154
+ h[8]("transactionStatusTitle") + "") && W(p, D), T & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
155
+ 944) {
156
+ d = V(
157
+ /*txnHistory*/
158
+ h[4]
159
+ );
160
+ let b;
161
+ for (b = 0; b < d.length; b += 1) {
162
+ const G = tt(h, d, b);
163
+ m[b] ? m[b].p(G, T) : (m[b] = st(G), m[b].c(), m[b].m(_, null));
164
+ }
165
+ for (; b < m.length; b += 1)
166
+ m[b].d(1);
167
+ m.length = d.length;
168
+ }
169
+ },
170
+ d(h) {
171
+ h && E(t), n && n.d(), ut(m, h), a[18](null);
172
+ }
173
+ };
174
+ }
175
+ function et(a) {
176
+ let t, s = (
177
+ /*$_*/
178
+ a[8]("copyTransactionId") + ""
179
+ ), i, l, o, c;
180
+ return {
181
+ c() {
182
+ t = v("div"), i = j(s), e(t, "class", "CopyTooltip svelte-1cus01h");
183
+ },
184
+ m(f, w) {
185
+ O(f, t, w), r(t, i), c = !0;
186
+ },
187
+ p(f, w) {
188
+ a = f, (!c || w & /*$_*/
189
+ 256) && s !== (s = /*$_*/
190
+ a[8]("copyTransactionId") + "") && W(i, s);
191
+ },
192
+ i(f) {
193
+ c || (f && vt(() => {
194
+ c && (o && o.end(1), l = gt(t, Q, { duration: 100 }), l.start());
195
+ }), c = !0);
196
+ },
197
+ o(f) {
198
+ l && l.invalidate(), f && (o = mt(t, Q, { duration: (
199
+ /*tooltipduration*/
200
+ a[2]
201
+ ) })), c = !1;
202
+ },
203
+ d(f) {
204
+ f && E(t), f && o && o.end();
205
+ }
206
+ };
207
+ }
208
+ function At(a) {
209
+ let t, s, i;
210
+ return {
211
+ c() {
212
+ t = k("svg"), s = k("circle"), i = k("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
213
+ },
214
+ m(l, o) {
215
+ O(l, t, o), r(t, s), r(t, i);
216
+ },
217
+ d(l) {
218
+ l && E(t);
219
+ }
220
+ };
221
+ }
222
+ function Ft(a) {
223
+ let t, s, i, l;
224
+ return {
225
+ c() {
226
+ t = k("svg"), s = k("circle"), i = k("text"), l = j("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
227
+ },
228
+ m(o, c) {
229
+ O(o, t, c), r(t, s), r(t, i), r(i, l);
230
+ },
231
+ d(o) {
232
+ o && E(t);
233
+ }
234
+ };
235
+ }
236
+ function jt(a) {
237
+ let t, s, i;
238
+ return {
239
+ c() {
240
+ t = k("svg"), s = k("circle"), i = k("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
241
+ },
242
+ m(l, o) {
243
+ O(l, t, o), r(t, s), r(t, i);
244
+ },
245
+ d(l) {
246
+ l && E(t);
247
+ }
248
+ };
249
+ }
250
+ function Pt(a) {
251
+ let t, s, i;
252
+ return {
253
+ c() {
254
+ t = k("svg"), s = k("circle"), i = k("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
255
+ },
256
+ m(l, o) {
257
+ O(l, t, o), r(t, s), r(t, i);
258
+ },
259
+ d(l) {
260
+ l && E(t);
261
+ }
262
+ };
263
+ }
264
+ function Rt(a) {
265
+ let t, s, i, l;
266
+ return {
267
+ c() {
268
+ t = k("svg"), s = k("circle"), i = k("text"), l = j("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
269
+ },
270
+ m(o, c) {
271
+ O(o, t, c), r(t, s), r(t, i), r(i, l);
272
+ },
273
+ d(o) {
274
+ o && E(t);
275
+ }
276
+ };
277
+ }
278
+ function st(a) {
279
+ let t, s, i = (
280
+ /*transaction*/
281
+ a[27].Code + ""
282
+ ), l, o, c, f = (
283
+ /*transaction*/
284
+ a[27].Date + ""
285
+ ), w, C, S, y = (
286
+ /*$_*/
287
+ a[8](`transactionType.${/*transaction*/
288
+ a[27].Type}`) + ""
289
+ ), z, I, P, H, g, B, A, x = (
290
+ /*$_*/
291
+ a[8](`transactionStatus.${/*transaction*/
292
+ a[27].Status}`) + ""
293
+ ), R, F, U, Y;
294
+ function N(u, _) {
295
+ if (
296
+ /*transaction*/
297
+ u[27].Status === /*TransactionMainStatus*/
298
+ u[7].Authorized
299
+ )
300
+ return Rt;
301
+ if (
302
+ /*transaction*/
303
+ u[27].Status === /*TransactionMainStatus*/
304
+ u[7].Failed
305
+ )
306
+ return Pt;
307
+ if (
308
+ /*transaction*/
309
+ u[27].Status === /*TransactionMainStatus*/
310
+ u[7].Pending
311
+ )
312
+ return jt;
313
+ if (
314
+ /*transaction*/
315
+ u[27].Status === /*TransactionMainStatus*/
316
+ u[7].Rejected
317
+ )
318
+ return Ft;
319
+ if (
320
+ /*transaction*/
321
+ u[27].Status === /*TransactionMainStatus*/
322
+ u[7].Success
323
+ )
324
+ return At;
325
+ }
326
+ let D = N(a), p = D && D(a);
327
+ return {
328
+ c() {
329
+ t = v("tr"), s = v("td"), l = j(i), o = L(), c = v("td"), w = j(f), C = L(), S = v("td"), z = j(y), I = L(), P = v("td"), H = v("div"), g = v("span"), p && p.c(), B = L(), A = v("span"), R = j(x), F = L(), e(s, "class", "CashierTransactionId svelte-1cus01h"), K(
330
+ s,
331
+ "copied",
332
+ /*copied*/
333
+ a[5]
334
+ ), e(c, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(g, "class", "CashierTransactionHistoryIcon svelte-1cus01h"), e(A, "class", "CashierTransactionHistoryStatusText svelte-1cus01h"), e(H, "class", "CashierTransactionHistoryStatus svelte-1cus01h"), e(P, "class", "svelte-1cus01h"), e(t, "class", "svelte-1cus01h");
335
+ },
336
+ m(u, _) {
337
+ O(u, t, _), r(t, s), r(s, l), r(t, o), r(t, c), r(c, w), r(t, C), r(t, S), r(S, z), r(t, I), r(t, P), r(P, H), r(H, g), p && p.m(g, null), r(H, B), r(H, A), r(A, R), r(t, F), U || (Y = pt(
338
+ s,
339
+ "mousedown",
340
+ /*mousedown_handler*/
341
+ a[17]
342
+ ), U = !0);
343
+ },
344
+ p(u, _) {
345
+ _ & /*txnHistory*/
346
+ 16 && i !== (i = /*transaction*/
347
+ u[27].Code + "") && W(l, i), _ & /*copied*/
348
+ 32 && K(
349
+ s,
350
+ "copied",
351
+ /*copied*/
352
+ u[5]
353
+ ), _ & /*txnHistory*/
354
+ 16 && f !== (f = /*transaction*/
355
+ u[27].Date + "") && W(w, f), _ & /*$_, txnHistory*/
356
+ 272 && y !== (y = /*$_*/
357
+ u[8](`transactionType.${/*transaction*/
358
+ u[27].Type}`) + "") && W(z, y), D !== (D = N(u)) && (p && p.d(1), p = D && D(u), p && (p.c(), p.m(g, null))), _ & /*$_, txnHistory*/
359
+ 272 && x !== (x = /*$_*/
360
+ u[8](`transactionStatus.${/*transaction*/
361
+ u[27].Status}`) + "") && W(R, x);
362
+ },
363
+ d(u) {
364
+ u && E(t), p && p.d(), U = !1, Y();
365
+ }
366
+ };
367
+ }
368
+ function Lt(a) {
369
+ let t;
370
+ function s(o, c) {
371
+ if (
372
+ /*txnHistory*/
373
+ o[4].length
374
+ )
375
+ return It;
376
+ if (
377
+ /*isLoading*/
378
+ o[6]
379
+ )
380
+ return zt;
381
+ }
382
+ let i = s(a), l = i && i(a);
383
+ return {
384
+ c() {
385
+ t = v("div"), l && l.c(), e(t, "class", "CashierTransactionHistoryContainer svelte-1cus01h");
386
+ },
387
+ m(o, c) {
388
+ O(o, t, c), l && l.m(t, null);
389
+ },
390
+ p(o, [c]) {
391
+ i === (i = s(o)) && l ? l.p(o, c) : (l && l.d(1), l = i && i(o), l && (l.c(), l.m(t, null)));
392
+ },
393
+ i: J,
394
+ o: J,
395
+ d(o) {
396
+ o && E(t), l && l.d();
397
+ }
398
+ };
399
+ }
400
+ const Bt = "DD.MM.YYYY";
401
+ function Mt(a, t, s) {
402
+ let i;
403
+ rt(a, _t, (n) => s(8, i = n));
404
+ let { endpoint: l } = t, { session: o } = t, { lang: c = "en" } = t, { customerid: f } = t, { clientstyling: w = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: S } = t, { tooltipduration: y = 1e3 } = t, { txncount: z = 3 } = t, { mbsource: I = "" } = t, P = [], H = !1, g, B, A = !1;
405
+ var x;
406
+ (function(n) {
407
+ n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
408
+ })(x || (x = {}));
409
+ const R = [
410
+ "Authorized",
411
+ "Success",
412
+ "Failed",
413
+ "Rejected",
414
+ "PendingApprovalStage1",
415
+ "PendingApprovalStage2",
416
+ "PendingApprovalStage3",
417
+ "PendingNotification",
418
+ "PendingOfflineNotification",
419
+ "PendingConfirmation"
420
+ ];
421
+ var F;
422
+ (function(n) {
423
+ n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
424
+ })(F || (F = {})), ot(() => () => {
425
+ });
426
+ const U = () => {
427
+ let n = S;
428
+ if (n)
429
+ return fetch(n).then((d) => d.json()).then((d) => {
430
+ Object.keys(d).forEach((m) => {
431
+ Z(m, d[m]);
432
+ });
433
+ }).catch((d) => {
434
+ console.log(d);
435
+ });
436
+ };
437
+ Object.keys($).forEach((n) => {
438
+ Z(n, $[n]);
439
+ });
440
+ const Y = () => {
441
+ Ht(c);
442
+ }, N = () => {
443
+ const n = new URL(`${l}/api/v1/mm/payment/gettransactionshistory`), d = new Headers();
444
+ d.append("accept", "application/json"), d.append("Content-Type", "application/json"), d.append("X-SessionId", `${o}`);
445
+ const m = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), h = {
446
+ method: "POST",
447
+ mode: "cors",
448
+ headers: d,
449
+ body: JSON.stringify({
450
+ language: c,
451
+ customerId: f,
452
+ count: z,
453
+ page: 0,
454
+ fromDate: m,
455
+ toDate: null,
456
+ statuses: {
457
+ [x.Deposit]: R,
458
+ [x.Withdraw]: R,
459
+ [x.Refund]: ["Unknown"],
460
+ [x.TaxDeduction]: ["Unknown"],
461
+ [x.Unknown]: ["Unknown"]
462
+ },
463
+ calculateProfit: !1
464
+ })
465
+ };
466
+ s(6, A = !0), fetch(n, h).then((T) => T.json()).then((T) => {
467
+ s(4, P = D(T?.items || []));
468
+ }).catch((T) => console.log(T)).finally(() => s(6, A = !1));
469
+ }, D = (n) => n.map((d) => {
470
+ let m = d.generalFields.status;
471
+ return d.generalFields.status.toLowerCase().includes("pending") && (m = F.Pending), {
472
+ Code: d.generalFields.code,
473
+ Date: xt(d.generalFields.created).format(Bt),
474
+ Status: m,
475
+ Type: d.generalFields.type
476
+ };
477
+ }) || [], p = (n) => {
478
+ const d = n.currentTarget;
479
+ n.target === d && navigator.clipboard.writeText(d.innerText).then(() => {
480
+ s(5, H = !0), clearTimeout(B), B = setTimeout(
481
+ () => {
482
+ s(5, H = !1);
483
+ },
484
+ 2e3
485
+ );
486
+ }).catch((m) => {
487
+ console.error("Could not copy text: ", m);
488
+ });
489
+ }, u = (n) => p(n);
490
+ function _(n) {
491
+ ct[n ? "unshift" : "push"](() => {
492
+ g = n, s(3, g);
493
+ });
494
+ }
495
+ return a.$$set = (n) => {
496
+ "endpoint" in n && s(10, l = n.endpoint), "session" in n && s(11, o = n.session), "lang" in n && s(12, c = n.lang), "customerid" in n && s(13, f = n.customerid), "clientstyling" in n && s(0, w = n.clientstyling), "clientstylingurl" in n && s(1, C = n.clientstylingurl), "translationurl" in n && s(14, S = n.translationurl), "tooltipduration" in n && s(2, y = n.tooltipduration), "txncount" in n && s(15, z = n.txncount), "mbsource" in n && s(16, I = n.mbsource);
497
+ }, a.$$.update = () => {
498
+ a.$$.dirty & /*lang*/
499
+ 4096 && c && Y(), a.$$.dirty & /*clientstyling, customStylingContainer*/
500
+ 9 && w && g && kt(g, w), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
501
+ 10 && C && g && Ct(g, C), a.$$.dirty & /*endpoint, session, customerid, lang*/
502
+ 15360 && l && o && f && c && N(), a.$$.dirty & /*translationurl*/
503
+ 16384 && S && U(), a.$$.dirty & /*mbsource, customStylingContainer*/
504
+ 65544 && I && g && St(g, `${I}.Style`);
505
+ }, [
506
+ w,
507
+ C,
508
+ y,
509
+ g,
510
+ P,
511
+ H,
512
+ A,
513
+ F,
514
+ i,
515
+ p,
516
+ l,
517
+ o,
518
+ c,
519
+ f,
520
+ S,
521
+ z,
522
+ I,
523
+ u,
524
+ _
525
+ ];
526
+ }
527
+ class Wt extends it {
528
+ constructor(t) {
529
+ super(), nt(
530
+ this,
531
+ t,
532
+ Mt,
533
+ Lt,
534
+ at,
535
+ {
536
+ endpoint: 10,
537
+ session: 11,
538
+ lang: 12,
539
+ customerid: 13,
540
+ clientstyling: 0,
541
+ clientstylingurl: 1,
542
+ translationurl: 14,
543
+ tooltipduration: 2,
544
+ txncount: 15,
545
+ mbsource: 16
546
+ },
547
+ Dt
548
+ );
549
+ }
550
+ get endpoint() {
551
+ return this.$$.ctx[10];
552
+ }
553
+ set endpoint(t) {
554
+ this.$$set({ endpoint: t }), M();
555
+ }
556
+ get session() {
557
+ return this.$$.ctx[11];
558
+ }
559
+ set session(t) {
560
+ this.$$set({ session: t }), M();
561
+ }
562
+ get lang() {
563
+ return this.$$.ctx[12];
564
+ }
565
+ set lang(t) {
566
+ this.$$set({ lang: t }), M();
567
+ }
568
+ get customerid() {
569
+ return this.$$.ctx[13];
570
+ }
571
+ set customerid(t) {
572
+ this.$$set({ customerid: t }), M();
573
+ }
574
+ get clientstyling() {
575
+ return this.$$.ctx[0];
576
+ }
577
+ set clientstyling(t) {
578
+ this.$$set({ clientstyling: t }), M();
579
+ }
580
+ get clientstylingurl() {
581
+ return this.$$.ctx[1];
582
+ }
583
+ set clientstylingurl(t) {
584
+ this.$$set({ clientstylingurl: t }), M();
585
+ }
586
+ get translationurl() {
587
+ return this.$$.ctx[14];
588
+ }
589
+ set translationurl(t) {
590
+ this.$$set({ translationurl: t }), M();
591
+ }
592
+ get tooltipduration() {
593
+ return this.$$.ctx[2];
594
+ }
595
+ set tooltipduration(t) {
596
+ this.$$set({ tooltipduration: t }), M();
597
+ }
598
+ get txncount() {
599
+ return this.$$.ctx[15];
600
+ }
601
+ set txncount(t) {
602
+ this.$$set({ txncount: t }), M();
603
+ }
604
+ get mbsource() {
605
+ return this.$$.ctx[16];
606
+ }
607
+ set mbsource(t) {
608
+ this.$$set({ mbsource: t }), M();
609
+ }
610
+ }
611
+ yt(Wt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {} }, [], [], !0);
612
+ export {
613
+ Wt as default
614
+ };