@everymatrix/transaction-history-page 1.99.21 → 1.99.23

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 (43) hide show
  1. package/components/{CashierHeader-C-qJN0cc.js → CashierHeader-CEH4zO4J.js} +2 -2
  2. package/components/{CashierHeader-mDz7QEgo.cjs → CashierHeader-CLbaINNA.cjs} +1 -1
  3. package/components/{CashierHeader-CepeWBtU.js → CashierHeader-D3DU9EnS.js} +2 -2
  4. package/components/{CashierPagination-BvPiMA5z.js → CashierPagination-BdRmbBlR.js} +26 -26
  5. package/components/{CashierPagination-BHdfwCys.cjs → CashierPagination-DJyzXWzM.cjs} +1 -1
  6. package/components/{CashierPagination-CFX0DYAq.js → CashierPagination-DlWd0Yv8.js} +26 -26
  7. package/components/CashierTransactionHistory-D78dIvEf.cjs +1 -0
  8. package/components/CashierTransactionHistory-DqtGySZa.js +1602 -0
  9. package/components/{CashierTransactionHistory-CSxIsT0K.js → CashierTransactionHistory-Qigrv5hs.js} +654 -526
  10. package/components/{EmptyStateIcon-Dn2bi74b.js → EmptyStateIcon-ByK3gge9.js} +1 -1
  11. package/components/{EmptyStateIcon-H4iJ6uD7.js → EmptyStateIcon-D_lRvfK1.js} +1 -1
  12. package/components/{Tooltip-iRopEMp5.js → Tooltip-8VarO1d4.js} +8 -8
  13. package/components/{Tooltip-CicO5Q6_.js → Tooltip-CHXwiPAo.js} +8 -8
  14. package/components/{TransactionHistoryCalendar-DT6QCpB8.js → TransactionHistoryCalendar-B24w9Wyo.js} +2 -2
  15. package/components/{TransactionHistoryCalendar-Bj21qFp-.js → TransactionHistoryCalendar-BYXhzKhZ.js} +2 -2
  16. package/components/{TransactionHistoryCalendar-CEHg8DZo.cjs → TransactionHistoryCalendar-DpkxNsNG.cjs} +1 -1
  17. package/components/{TransactionHistoryPage-Bu_qLhVI.cjs → TransactionHistoryPage-CjCc0Np8.cjs} +1 -1
  18. package/components/{TransactionHistoryPage-CSt8kVK6.js → TransactionHistoryPage-DVQXlUp9.js} +6 -6
  19. package/components/{TransactionHistoryPage-D6cdPR7s.js → TransactionHistoryPage-DanSdYUL.js} +6 -6
  20. package/components/{TxnStatusIcon-CTkF3uAv.js → TxnStatusIcon-BL-XGmUN.js} +1 -1
  21. package/components/{TxnStatusIcon-Dn0Hqt1J.js → TxnStatusIcon-DYZApfDK.js} +1 -1
  22. package/components/{TxnTypeIcons-BT0RQXu_.js → TxnTypeIcons-5zksHenR.js} +1 -1
  23. package/components/{TxnTypeIcons-Cq8oOZVY.js → TxnTypeIcons-C8u1rdVM.js} +1 -1
  24. package/es2015/transaction-history-page.cjs +1 -1
  25. package/es2015/transaction-history-page.js +1 -1
  26. package/esnext/transaction-history-page.js +1 -1
  27. package/package.json +1 -1
  28. package/components/CashierTransactionHistory-CAWbL_F2.js +0 -1474
  29. package/components/CashierTransactionHistory-ahZ0tHzL.cjs +0 -1
  30. package/stencil/app-globals-0f993ce5-D-kw1sls.js +0 -5
  31. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
  32. package/stencil/index-97d17652-B6BYeRne.js +0 -542
  33. package/stencil/index-97d17652-BOr4KAqq.js +0 -558
  34. package/stencil/index-97d17652-zTl06Vn9.cjs +0 -1
  35. package/stencil/ui-image-BX-FBhad.cjs +0 -1
  36. package/stencil/ui-image-CP8Lp7fB.js +0 -25
  37. package/stencil/ui-image-Ch-GHki1.js +0 -7
  38. package/stencil/ui-image-b7b48fe5-BKRtoUuG.js +0 -39
  39. package/stencil/ui-image-b7b48fe5-HA45CrsG.js +0 -39
  40. package/stencil/ui-image-b7b48fe5-MC0x5ZQd.cjs +0 -1
  41. package/stencil/ui-image_2-CmVho0dS.js +0 -157
  42. package/stencil/ui-image_2-CyqE6j_W.cjs +0 -55
  43. package/stencil/ui-image_2-Daq38JGa.js +0 -157
@@ -0,0 +1,1602 @@
1
+ import { K as dt, S as st, i as it, s as nt, j, k as at, n as M, d as H, L as Le, f as c, a as I, b as u, C as He, v as h, w as A, c as lt, t as U, m as P, p as pe, q as he, y as mt, z as ft, M as $, N as Se, A as S, O as ee, B as q, o as _e, D as pt, P as ht, Q as rt, R as ot, I as ct, U as Ce, l as Ae, u as Re, e as De, x as ze } from "./Tooltip-CHXwiPAo.js";
2
+ import { a as vt, $ as gt, i as yt, f as te, s as Tt, b as xt, c as _t, d as wt } from "./TransactionHistoryPage-DVQXlUp9.js";
3
+ import { T as qt } from "./TxnTypeIcons-C8u1rdVM.js";
4
+ import { T as bt } from "./TxnStatusIcon-BL-XGmUN.js";
5
+ function Ee(i, { delay: e = 0, duration: s = 400, easing: t = dt } = {}) {
6
+ const n = +getComputedStyle(i).opacity;
7
+ return {
8
+ delay: e,
9
+ duration: s,
10
+ easing: t,
11
+ css: (o) => `opacity: ${o * n}`
12
+ };
13
+ }
14
+ yt({
15
+ fallbackLocale: "en"
16
+ });
17
+ function Ue(i, e) {
18
+ vt(i, e);
19
+ }
20
+ function kt(i) {
21
+ gt.set(i);
22
+ }
23
+ const We = {
24
+ en: {
25
+ transactionHistoryTitle: "Transaction History",
26
+ transactionCodeTitle: "ID",
27
+ transactionDateTitle: "Date",
28
+ transactionDateTimeTitle: "Date",
29
+ transactionTypeTitle: "Type",
30
+ transactionStatusTitle: "Status",
31
+ transactionStatusIconTitle: "Status",
32
+ transactionTypeIconTitle: "Type",
33
+ copyTransactionId: "Transaction Id copied to clipboard",
34
+ transactionAmountTitle: "Amount",
35
+ transactionPaymentMethodTitle: "Payment Method",
36
+ transactionRejectionNoteTitle: "Rejection Note",
37
+ transactionStatus: {
38
+ Authorized: "Authorized",
39
+ Success: "Success",
40
+ Failed: "Failed",
41
+ Rejected: "Rejected",
42
+ Pending: "Pending"
43
+ },
44
+ transactionType: {
45
+ Deposit: "Deposit",
46
+ Withdraw: "Withdraw"
47
+ }
48
+ },
49
+ tr: {
50
+ transactionHistoryTitle: "İşlem Geçmişi",
51
+ transactionIdTitle: "İşlem ID'si",
52
+ transactionDateTitle: "Tarih",
53
+ transactionDateTimeTitle: "Tarih",
54
+ transactionTypeTitle: "Tip",
55
+ transactionStatusTitle: "Durum",
56
+ transactionStatusIconTitle: "Durum",
57
+ transactionTypeIconTitle: "Tip",
58
+ transactionAmountTitle: "Tutar",
59
+ transactionRejectionNoteTitle: "Reddetme Notu",
60
+ transactionPaymentMethodTitle: "Ödeme Yöntemi",
61
+ copyTransactionId: "İşlem ID’si kopyalandı",
62
+ transactionStatus: {
63
+ Authorized: "Onaylandı",
64
+ Success: "Başarılı",
65
+ Failed: "Başarısız",
66
+ Rejected: "Reddedildi",
67
+ Pending: "Beklemede"
68
+ },
69
+ transactionType: {
70
+ Deposit: "Para Yatır",
71
+ Withdraw: "Çekim"
72
+ }
73
+ },
74
+ fr: {
75
+ transactionHistoryTitle: "Historique des transactions",
76
+ transactionCodeTitle: "ID",
77
+ transactionDateTitle: "Date",
78
+ transactionDateTimeTitle: "Date",
79
+ transactionTypeTitle: "Type",
80
+ transactionStatusTitle: "Statut",
81
+ transactionStatusIconTitle: "Statut",
82
+ transactionTypeIconTitle: "Type",
83
+ copyTransactionId: "ID de transaction copié dans le presse-papiers",
84
+ transactionAmountTitle: "Montant",
85
+ transactionPaymentMethodTitle: "Moyen de paiement",
86
+ transactionRejectionNoteTitle: "Motif du rejet",
87
+ transactionStatus: {
88
+ Authorized: "Autorisé",
89
+ Success: "Succès",
90
+ Failed: "Échec",
91
+ Rejected: "Rejeté",
92
+ Pending: "En attente"
93
+ },
94
+ transactionType: {
95
+ Deposit: "Dépôt",
96
+ Withdraw: "Retrait"
97
+ }
98
+ },
99
+ da: {
100
+ transactionHistoryTitle: "Transaktionshistorik",
101
+ transactionCodeTitle: "ID",
102
+ transactionDateTitle: "Dato",
103
+ transactionDateTimeTitle: "Dato",
104
+ transactionTypeTitle: "Type",
105
+ transactionStatusTitle: "Status",
106
+ transactionStatusIconTitle: "Status",
107
+ transactionTypeIconTitle: "Type",
108
+ copyTransactionId: "Transaktions-ID kopieret til udklipsholder",
109
+ transactionAmountTitle: "Beløb",
110
+ transactionPaymentMethodTitle: "Betalingsmetode",
111
+ transactionRejectionNoteTitle: "Afvisningsnotat",
112
+ transactionStatus: {
113
+ Authorized: "Godkendt",
114
+ Success: "Succes",
115
+ Failed: "Mislykkedes",
116
+ Rejected: "Afvist",
117
+ Pending: "Afventer"
118
+ },
119
+ transactionType: {
120
+ Deposit: "Indbetaling",
121
+ Withdraw: "Udbetaling"
122
+ }
123
+ },
124
+ de: {
125
+ transactionHistoryTitle: "Transaktionsverlauf",
126
+ transactionCodeTitle: "ID",
127
+ transactionDateTitle: "Datum",
128
+ transactionDateTimeTitle: "Datum",
129
+ transactionTypeTitle: "Typ",
130
+ transactionStatusTitle: "Status",
131
+ transactionStatusIconTitle: "Status",
132
+ transactionTypeIconTitle: "Typ",
133
+ copyTransactionId: "Transaktions-ID in die Zwischenablage kopiert",
134
+ transactionAmountTitle: "Betrag",
135
+ transactionPaymentMethodTitle: "Zahlungsmethode",
136
+ transactionRejectionNoteTitle: "Ablehnungsnotiz",
137
+ transactionStatus: {
138
+ Authorized: "Autorisiert",
139
+ Success: "Erfolgreich",
140
+ Failed: "Fehlgeschlagen",
141
+ Rejected: "Abgelehnt",
142
+ Pending: "Ausstehend"
143
+ },
144
+ transactionType: {
145
+ Deposit: "Einzahlung",
146
+ Withdraw: "Auszahlung"
147
+ }
148
+ },
149
+ nl: {
150
+ transactionHistoryTitle: "Transactiegeschiedenis",
151
+ transactionCodeTitle: "ID",
152
+ transactionDateTitle: "Datum",
153
+ transactionDateTimeTitle: "Datum",
154
+ transactionTypeTitle: "Type",
155
+ transactionStatusTitle: "Status",
156
+ transactionStatusIconTitle: "Status",
157
+ transactionTypeIconTitle: "Type",
158
+ copyTransactionId: "Transactie-ID gekopieerd naar klembord",
159
+ transactionAmountTitle: "Bedrag",
160
+ transactionPaymentMethodTitle: "Betaalmethode",
161
+ transactionRejectionNoteTitle: "Afwijzingsnotitie",
162
+ transactionStatus: {
163
+ Authorized: "Geautoriseerd",
164
+ Success: "Geslaagd",
165
+ Failed: "Mislukt",
166
+ Rejected: "Afgewezen",
167
+ Pending: "In behandeling"
168
+ },
169
+ transactionType: {
170
+ Deposit: "Storting",
171
+ Withdraw: "Opname"
172
+ }
173
+ },
174
+ ru: {
175
+ transactionHistoryTitle: "История операций",
176
+ transactionCodeTitle: "ID",
177
+ transactionDateTitle: "Дата",
178
+ transactionDateTimeTitle: "Дата",
179
+ transactionTypeTitle: "Тип",
180
+ transactionStatusTitle: "Статус",
181
+ transactionStatusIconTitle: "Статус",
182
+ transactionTypeIconTitle: "Тип",
183
+ copyTransactionId: "ID операции скопирован в буфер обмена",
184
+ transactionAmountTitle: "Сумма",
185
+ transactionPaymentMethodTitle: "Способ оплаты",
186
+ transactionRejectionNoteTitle: "Причина отказа",
187
+ transactionStatus: {
188
+ Authorized: "Авторизовано",
189
+ Success: "Успешно",
190
+ Failed: "Неудача",
191
+ Rejected: "Отклонено",
192
+ Pending: "В обработке"
193
+ },
194
+ transactionType: {
195
+ Deposit: "Депозит",
196
+ Withdraw: "Вывод"
197
+ }
198
+ },
199
+ az: {
200
+ transactionHistoryTitle: "Əməliyyat Tarixçəsi",
201
+ transactionCodeTitle: "ID",
202
+ transactionDateTitle: "Tarix",
203
+ transactionDateTimeTitle: "Tarix",
204
+ transactionTypeTitle: "Növ",
205
+ transactionStatusTitle: "Status",
206
+ transactionStatusIconTitle: "Status",
207
+ transactionTypeIconTitle: "Növ",
208
+ copyTransactionId: "Əməliyyat ID-si mübadilə buferinə kopyalandı",
209
+ transactionAmountTitle: "Məbləğ",
210
+ transactionPaymentMethodTitle: "Ödəniş üsulu",
211
+ transactionRejectionNoteTitle: "Rədd qeydi",
212
+ transactionStatus: {
213
+ Authorized: "Təsdiqlənib",
214
+ Success: "Uğurlu",
215
+ Failed: "Alınmadı",
216
+ Rejected: "Rədd edildi",
217
+ Pending: "Gözləmədə"
218
+ },
219
+ transactionType: {
220
+ Deposit: "Depozit",
221
+ Withdraw: "Çıxarış"
222
+ }
223
+ }
224
+ };
225
+ function Ct(i) {
226
+ at(i, "svelte-1nr7vqj", ".HostContainer.svelte-1nr7vqj{display:block}.UiContainer.svelte-1nr7vqj{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.Hidden.svelte-1nr7vqj{opacity:0;transition:opacity 0.5s ease-in-out}.Visible.svelte-1nr7vqj{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}.Skeleton.svelte-1nr7vqj{animation:svelte-1nr7vqj-skeleton-loading 1s linear infinite alternate}.SkeletonImage.svelte-1nr7vqj{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}@keyframes svelte-1nr7vqj-skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}");
227
+ }
228
+ function Ve(i) {
229
+ let e;
230
+ return {
231
+ c() {
232
+ e = h("div"), e.innerHTML = '<div class="SkeletonImage Skeleton svelte-1nr7vqj"></div>', c(e, "class", "UiContainer svelte-1nr7vqj");
233
+ },
234
+ m(s, t) {
235
+ I(s, e, t);
236
+ },
237
+ d(s) {
238
+ s && H(e);
239
+ }
240
+ };
241
+ }
242
+ function Dt(i) {
243
+ let e, s, t, n, o, d, r, a = !/*imgLoaded*/
244
+ i[4] && Ve();
245
+ return {
246
+ c() {
247
+ e = h("div"), a && a.c(), s = A(), t = h("img"), Le(t.src, n = /*src*/
248
+ i[0]) || c(t, "src", n), c(
249
+ t,
250
+ "alt",
251
+ /*alt*/
252
+ i[1]
253
+ ), c(
254
+ t,
255
+ "width",
256
+ /*width*/
257
+ i[2]
258
+ ), c(
259
+ t,
260
+ "height",
261
+ /*height*/
262
+ i[3]
263
+ ), c(t, "class", o = "UiContainer " + /*imgLoaded*/
264
+ (i[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj"), c(t, "loading", "lazy"), c(e, "class", "HostContainer hydrated svelte-1nr7vqj");
265
+ },
266
+ m(f, g) {
267
+ I(f, e, g), a && a.m(e, null), u(e, s), u(e, t), d || (r = He(
268
+ t,
269
+ "load",
270
+ /*load_handler*/
271
+ i[5]
272
+ ), d = !0);
273
+ },
274
+ p(f, [g]) {
275
+ /*imgLoaded*/
276
+ f[4] ? a && (a.d(1), a = null) : a || (a = Ve(), a.c(), a.m(e, s)), g & /*src*/
277
+ 1 && !Le(t.src, n = /*src*/
278
+ f[0]) && c(t, "src", n), g & /*alt*/
279
+ 2 && c(
280
+ t,
281
+ "alt",
282
+ /*alt*/
283
+ f[1]
284
+ ), g & /*width*/
285
+ 4 && c(
286
+ t,
287
+ "width",
288
+ /*width*/
289
+ f[2]
290
+ ), g & /*height*/
291
+ 8 && c(
292
+ t,
293
+ "height",
294
+ /*height*/
295
+ f[3]
296
+ ), g & /*imgLoaded*/
297
+ 16 && o !== (o = "UiContainer " + /*imgLoaded*/
298
+ (f[4] ? "Visible" : "Hidden") + " svelte-1nr7vqj") && c(t, "class", o);
299
+ },
300
+ i: M,
301
+ o: M,
302
+ d(f) {
303
+ f && H(e), a && a.d(), d = !1, r();
304
+ }
305
+ };
306
+ }
307
+ function St(i, e, s) {
308
+ let { src: t } = e, { alt: n = void 0 } = e, { width: o = void 0 } = e, { height: d = void 0 } = e, r = !1;
309
+ const a = () => s(4, r = !0);
310
+ return i.$$set = (f) => {
311
+ "src" in f && s(0, t = f.src), "alt" in f && s(1, n = f.alt), "width" in f && s(2, o = f.width), "height" in f && s(3, d = f.height);
312
+ }, [t, n, o, d, r, a];
313
+ }
314
+ class ut extends st {
315
+ constructor(e) {
316
+ super(), it(this, e, St, Dt, nt, { src: 0, alt: 1, width: 2, height: 3 }, Ct);
317
+ }
318
+ get src() {
319
+ return this.$$.ctx[0];
320
+ }
321
+ set src(e) {
322
+ this.$$set({ src: e }), j();
323
+ }
324
+ get alt() {
325
+ return this.$$.ctx[1];
326
+ }
327
+ set alt(e) {
328
+ this.$$set({ alt: e }), j();
329
+ }
330
+ get width() {
331
+ return this.$$.ctx[2];
332
+ }
333
+ set width(e) {
334
+ this.$$set({ width: e }), j();
335
+ }
336
+ get height() {
337
+ return this.$$.ctx[3];
338
+ }
339
+ set height(e) {
340
+ this.$$set({ height: e }), j();
341
+ }
342
+ }
343
+ lt(ut, { src: {}, alt: {}, width: {}, height: {} }, [], [], !0);
344
+ function Ht(i) {
345
+ at(i, "svelte-1xsmrqu", '.svelte-1xsmrqu.svelte-1xsmrqu,.svelte-1xsmrqu.svelte-1xsmrqu::before,.svelte-1xsmrqu.svelte-1xsmrqu::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1xsmrqu.svelte-1xsmrqu{width:50%;max-width:400px;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, rgba(249, 196, 5, 0.6078431373));transform:translateX(-50%);color:var(--emw--color-typography-button, #000000);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:2;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:15px;position:fixed;left:50%;top:40%;box-shadow:inset 0px 0px 0px 2px rgba(255, 255, 255, 0.2)}.CashierTransactionHistoryContainer.svelte-1xsmrqu.svelte-1xsmrqu{position:relative;width:calc(100% - 20px);margin:auto}.CashierTransactionHistory.svelte-1xsmrqu.svelte-1xsmrqu{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-1xsmrqu table.svelte-1xsmrqu{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;text-align:center;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-1xsmrqu table.svelte-1xsmrqu:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1xsmrqu thead tr.svelte-1xsmrqu{color:var(--emw--color-primary, #F9C405);font-size:12px;height:50px;background-color:rgba(255, 255, 255, 0.05)}.CashierTransactionHistory.svelte-1xsmrqu tbody tr.svelte-1xsmrqu{color:var(--emw--color-typography, #fff);font-size:12px;font-weight:200}.CashierTransactionHistory.svelte-1xsmrqu tbody tr.svelte-1xsmrqu:not(:last-child):not(.Expanded){border-bottom:1px solid rgba(232, 233, 235, 0.2117647059)}.CashierTransactionHistory.svelte-1xsmrqu .TypeIcon.svelte-1xsmrqu{display:flex}.CashierTransactionHistory.svelte-1xsmrqu .StatusIcon svg.svelte-1xsmrqu{flex:0 0 auto;width:18px;height:18px}.CashierTransactionHistory.svelte-1xsmrqu .StatusIcon span.svelte-1xsmrqu{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;width:80px}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu{max-width:250px;vertical-align:middle;height:40px;line-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-1xsmrqu td:last-child .CashierTransactionHistoryStatusText.svelte-1xsmrqu{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu:first-child{text-align:left;border-radius:10px 0 0 10px}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu:last-child{border-radius:0 10px 10px 0}.CashierTransactionHistory.svelte-1xsmrqu td .ExpandedContent.svelte-1xsmrqu{line-height:100%}.CashierTransactionHistory.svelte-1xsmrqu tr.svelte-1xsmrqu{position:relative}.CashierTransactionHistory.svelte-1xsmrqu tr.svelte-1xsmrqu:not(.ExpandedRow):not(.CashierTransactionHistoryHeader):not(.AllowExpand):hover{background:var(--emw--color-gray-50, #F7F8FA)}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1xsmrqu .CopyTooltip.svelte-1xsmrqu{width:100%}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu:has(.Code){max-width:135px}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1xsmrqu .CashierTransactionHistoryWrapper.svelte-1xsmrqu{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1xsmrqu td.svelte-1xsmrqu{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1xsmrqu td.column-TypeIcon.svelte-1xsmrqu:first-child{width:40px;text-align:left}.CashierTransactionHistory.svelte-1xsmrqu td.column-Code.svelte-1xsmrqu:first-child{max-width:60px;text-align:left}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1xsmrqu table.svelte-1xsmrqu{table-layout:fixed}.CashierTransactionHistory.svelte-1xsmrqu table td.svelte-1xsmrqu{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1xsmrqu.svelte-1xsmrqu{background:var(--emw--color-cashier-bg, var(--emw--color-background, #23281F));width:100%;box-sizing:border-box;border-radius:16px;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);padding:10px;z-index:1}.CashierTransactionHistoryWrapper.svelte-1xsmrqu.svelte-1xsmrqu::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:16px;background:linear-gradient(140deg, var(--emw--color-black, #000000) 5%, var(--emw--color-cashier-bg, var(--emw--color-background, #23281F)) 60%, var(--emw--color-white, #f5f5f5) 95%);opacity:0.2}.CashierTransactionHistoryTitle.svelte-1xsmrqu.svelte-1xsmrqu{display:none;color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 500);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.Code.svelte-1xsmrqu.svelte-1xsmrqu{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none;line-height:inherit;display:inline}.StatusIcon.svelte-1xsmrqu.svelte-1xsmrqu{display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-x-small, 6px)}.StatusIcon.svelte-1xsmrqu .StatusIconText.svelte-1xsmrqu{width:100px}.CashierTransactionHistoryStatus.svelte-1xsmrqu.svelte-1xsmrqu{display:flex;gap:5px}.Amount.Withdraw.svelte-1xsmrqu.svelte-1xsmrqu:before{content:"-"}.Amount.Deposit.svelte-1xsmrqu.svelte-1xsmrqu:before{content:"+"}.Amount.Deposit.Success.svelte-1xsmrqu.svelte-1xsmrqu{color:var(--emw--color-primary-dark, #4b975d)}.CashierTransactionHistoryStatusText.svelte-1xsmrqu.svelte-1xsmrqu{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1xsmrqu.svelte-1xsmrqu{width:100%;overflow:auto}.CashierTransactionHistoryIcon.svelte-1xsmrqu.svelte-1xsmrqu{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}.TransactionHistoryRow.svelte-1xsmrqu.svelte-1xsmrqu{cursor:pointer}.ShortHistory.svelte-1xsmrqu .CashierTransactionHistoryTitle.svelte-1xsmrqu{display:inline-block;margin:10px;font-weight:500}.ShortHistory.svelte-1xsmrqu .TransactionHistoryRow.svelte-1xsmrqu{cursor:auto}.ShortHistory.svelte-1xsmrqu .TransactionHistoryRow.svelte-1xsmrqu:hover{background:unset}.ExpandedContent.svelte-1xsmrqu.svelte-1xsmrqu{padding:var(--emw--spacing-large, 30px) var(--emw--spacing-small, 12px);position:relative;display:flex;flex-wrap:wrap;gap:var(--emw--spacing-small, 12px)}.ExpandedContent.svelte-1xsmrqu .DetailsLogo.svelte-1xsmrqu{width:65px;position:absolute;top:var(--emw--spacing-large, 30px);right:var(--emw--spacing-small, 12px)}.StaticDetails.svelte-1xsmrqu.svelte-1xsmrqu,.DynamicDetails.svelte-1xsmrqu.svelte-1xsmrqu{display:flex;flex-direction:column;gap:var(--emw--spacing-small, 12px);width:100%}.StaticDetails.svelte-1xsmrqu .DetailsTitle.svelte-1xsmrqu,.DynamicDetails.svelte-1xsmrqu .DetailsTitle.svelte-1xsmrqu{color:var(--emw--color-typography, var(--emw--color-white, #ffffff));font-size:var(--emw--font-size-medium, 16px);padding-right:6px}.StaticDetails.svelte-1xsmrqu .DetailsValue.svelte-1xsmrqu,.DynamicDetails.svelte-1xsmrqu .DetailsValue.svelte-1xsmrqu{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 12px);font-weight:200;white-space:normal;overflow-wrap:break-word;max-width:100%;word-break:normal}.DetailsRow.svelte-1xsmrqu.svelte-1xsmrqu{display:flex;align-items:center;flex-wrap:wrap;word-break:normal;overflow-wrap:break-word;white-space:normal}td.svelte-1xsmrqu.svelte-1xsmrqu:has(.Code){max-width:250px}td.svelte-1xsmrqu.svelte-1xsmrqu:has(.Code):hover{background:rgba(255, 255, 255, 0.2);border-radius:10px}.CopyCode.svelte-1xsmrqu.svelte-1xsmrqu{display:inline-flex;gap:6px;align-items:center;cursor:pointer;border-radius:var(--mmw--border-radius-medium-plus, 6px);padding:4px 6px;max-width:60%}.CopyCode.svelte-1xsmrqu.svelte-1xsmrqu:hover{background:var(--emw--color-primary, rgba(249, 196, 5, 0.4117647059))}.CopyCode.svelte-1xsmrqu span.svelte-1xsmrqu{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.CopyCode.svelte-1xsmrqu svg.svelte-1xsmrqu{flex-shrink:0}');
346
+ }
347
+ function Be(i, e, s) {
348
+ const t = i.slice();
349
+ return t[45] = e[s], t[47] = s, t;
350
+ }
351
+ function Oe(i, e, s) {
352
+ const t = i.slice();
353
+ return t[48] = e[s][0], t[49] = e[s][1], t;
354
+ }
355
+ function Ye(i, e, s) {
356
+ const t = i.slice();
357
+ return t[52] = e[s], t[47] = s, t;
358
+ }
359
+ function Ge(i, e, s) {
360
+ const t = i.slice();
361
+ return t[52] = e[s], t[47] = s, t;
362
+ }
363
+ function It(i) {
364
+ let e;
365
+ return {
366
+ c() {
367
+ e = h("cashier-spinner"), _e(
368
+ e,
369
+ "clientstylingurl",
370
+ /*clientstylingurl*/
371
+ i[1]
372
+ ), _e(
373
+ e,
374
+ "clientstyling",
375
+ /*clientstyling*/
376
+ i[0]
377
+ ), _e(e, "class", "svelte-1xsmrqu");
378
+ },
379
+ m(s, t) {
380
+ I(s, e, t);
381
+ },
382
+ p(s, t) {
383
+ t[0] & /*clientstylingurl*/
384
+ 2 && _e(
385
+ e,
386
+ "clientstylingurl",
387
+ /*clientstylingurl*/
388
+ s[1]
389
+ ), t[0] & /*clientstyling*/
390
+ 1 && _e(
391
+ e,
392
+ "clientstyling",
393
+ /*clientstyling*/
394
+ s[0]
395
+ );
396
+ },
397
+ i: M,
398
+ o: M,
399
+ d(s) {
400
+ s && H(e);
401
+ }
402
+ };
403
+ }
404
+ function jt(i) {
405
+ let e, s, t, n, o = (
406
+ /*$_*/
407
+ i[12]("transactionHistoryTitle") + ""
408
+ ), d, r, a, f, g, p, m, T, _, w = (
409
+ /*copied*/
410
+ i[8] && Ze(i)
411
+ ), F = $(
412
+ /*tableColumns*/
413
+ i[10]
414
+ ), D = [];
415
+ for (let v = 0; v < F.length; v += 1)
416
+ D[v] = Xe(Ge(i, F, v));
417
+ let N = $(
418
+ /*txnHistory*/
419
+ i[7]
420
+ ), b = [];
421
+ for (let v = 0; v < N.length; v += 1)
422
+ b[v] = tt(Be(i, N, v));
423
+ const se = (v) => U(b[v], 1, 1, () => {
424
+ b[v] = null;
425
+ });
426
+ return {
427
+ c() {
428
+ e = h("div"), w && w.c(), s = A(), t = h("div"), n = h("h3"), d = q(o), r = A(), a = h("div"), f = h("table"), g = h("thead"), p = h("tr");
429
+ for (let v = 0; v < D.length; v += 1)
430
+ D[v].c();
431
+ m = A(), T = h("tbody");
432
+ for (let v = 0; v < b.length; v += 1)
433
+ b[v].c();
434
+ c(n, "class", "CashierTransactionHistoryTitle svelte-1xsmrqu"), c(p, "class", "CashierTransactionHistoryHeader svelte-1xsmrqu"), c(g, "class", "svelte-1xsmrqu"), c(T, "class", "svelte-1xsmrqu"), c(f, "class", "svelte-1xsmrqu"), c(a, "class", "CashierTransactionHistoryContent svelte-1xsmrqu"), c(t, "class", "CashierTransactionHistoryWrapper svelte-1xsmrqu"), c(e, "class", "CashierTransactionHistory svelte-1xsmrqu"), ee(
435
+ e,
436
+ "ShortHistory",
437
+ /*isshorttransactionhistory*/
438
+ i[3] === "true"
439
+ );
440
+ },
441
+ m(v, k) {
442
+ I(v, e, k), w && w.m(e, null), u(e, s), u(e, t), u(t, n), u(n, d), u(t, r), u(t, a), u(a, f), u(f, g), u(g, p);
443
+ for (let y = 0; y < D.length; y += 1)
444
+ D[y] && D[y].m(p, null);
445
+ u(f, m), u(f, T);
446
+ for (let y = 0; y < b.length; y += 1)
447
+ b[y] && b[y].m(T, null);
448
+ i[32](e), _ = !0;
449
+ },
450
+ p(v, k) {
451
+ if (/*copied*/
452
+ v[8] ? w ? (w.p(v, k), k[0] & /*copied*/
453
+ 256 && P(w, 1)) : (w = Ze(v), w.c(), P(w, 1), w.m(e, s)) : w && (pe(), U(w, 1, 1, () => {
454
+ w = null;
455
+ }), he()), (!_ || k[0] & /*$_*/
456
+ 4096) && o !== (o = /*$_*/
457
+ v[12]("transactionHistoryTitle") + "") && S(d, o), k[0] & /*$_, tableColumns*/
458
+ 5120) {
459
+ F = $(
460
+ /*tableColumns*/
461
+ v[10]
462
+ );
463
+ let y;
464
+ for (y = 0; y < F.length; y += 1) {
465
+ const O = Ge(v, F, y);
466
+ D[y] ? D[y].p(O, k) : (D[y] = Xe(O), D[y].c(), D[y].m(p, null));
467
+ }
468
+ for (; y < D.length; y += 1)
469
+ D[y].d(1);
470
+ D.length = F.length;
471
+ }
472
+ if (k[0] & /*tableColumns, txnHistory, $_, copyToClipboard, datetimeformat, expandedRow, isshorttransactionhistory, expandRow, copied, dateformat*/
473
+ 32184) {
474
+ N = $(
475
+ /*txnHistory*/
476
+ v[7]
477
+ );
478
+ let y;
479
+ for (y = 0; y < N.length; y += 1) {
480
+ const O = Be(v, N, y);
481
+ b[y] ? (b[y].p(O, k), P(b[y], 1)) : (b[y] = tt(O), b[y].c(), P(b[y], 1), b[y].m(T, null));
482
+ }
483
+ for (pe(), y = N.length; y < b.length; y += 1)
484
+ se(y);
485
+ he();
486
+ }
487
+ (!_ || k[0] & /*isshorttransactionhistory*/
488
+ 8) && ee(
489
+ e,
490
+ "ShortHistory",
491
+ /*isshorttransactionhistory*/
492
+ v[3] === "true"
493
+ );
494
+ },
495
+ i(v) {
496
+ if (!_) {
497
+ P(w);
498
+ for (let k = 0; k < N.length; k += 1)
499
+ P(b[k]);
500
+ _ = !0;
501
+ }
502
+ },
503
+ o(v) {
504
+ U(w), b = b.filter(Boolean);
505
+ for (let k = 0; k < b.length; k += 1)
506
+ U(b[k]);
507
+ _ = !1;
508
+ },
509
+ d(v) {
510
+ v && H(e), w && w.d(), Se(D, v), Se(b, v), i[32](null);
511
+ }
512
+ };
513
+ }
514
+ function Ze(i) {
515
+ let e, s = (
516
+ /*$_*/
517
+ i[12]("copyTransactionId") + ""
518
+ ), t, n, o, d;
519
+ return {
520
+ c() {
521
+ e = h("div"), t = q(s), c(e, "class", "CopyTooltip svelte-1xsmrqu");
522
+ },
523
+ m(r, a) {
524
+ I(r, e, a), u(e, t), d = !0;
525
+ },
526
+ p(r, a) {
527
+ i = r, (!d || a[0] & /*$_*/
528
+ 4096) && s !== (s = /*$_*/
529
+ i[12]("copyTransactionId") + "") && S(t, s);
530
+ },
531
+ i(r) {
532
+ d || (r && rt(() => {
533
+ d && (o && o.end(1), n = ot(e, Ee, { duration: 100 }), n.start());
534
+ }), d = !0);
535
+ },
536
+ o(r) {
537
+ n && n.invalidate(), r && (o = ht(e, Ee, { duration: (
538
+ /*tooltipduration*/
539
+ i[2]
540
+ ) })), d = !1;
541
+ },
542
+ d(r) {
543
+ r && H(e), r && o && o.end();
544
+ }
545
+ };
546
+ }
547
+ function Xe(i) {
548
+ let e, s = (
549
+ /*$_*/
550
+ i[12](`transaction${/*columnName*/
551
+ i[52]}Title`) + ""
552
+ ), t;
553
+ return {
554
+ c() {
555
+ e = h("td"), t = q(s), c(e, "class", "svelte-1xsmrqu");
556
+ },
557
+ m(n, o) {
558
+ I(n, e, o), u(e, t);
559
+ },
560
+ p(n, o) {
561
+ o[0] & /*$_, tableColumns*/
562
+ 5120 && s !== (s = /*$_*/
563
+ n[12](`transaction${/*columnName*/
564
+ n[52]}Title`) + "") && S(t, s);
565
+ },
566
+ d(n) {
567
+ n && H(e);
568
+ }
569
+ };
570
+ }
571
+ function At(i) {
572
+ let e, s = (
573
+ /*transaction*/
574
+ i[45][
575
+ /*columnName*/
576
+ i[52]
577
+ ] + ""
578
+ ), t;
579
+ return {
580
+ c() {
581
+ e = h("span"), t = q(s), c(e, "class", "svelte-1xsmrqu");
582
+ },
583
+ m(n, o) {
584
+ I(n, e, o), u(e, t);
585
+ },
586
+ p(n, o) {
587
+ o[0] & /*txnHistory, tableColumns*/
588
+ 1152 && s !== (s = /*transaction*/
589
+ n[45][
590
+ /*columnName*/
591
+ n[52]
592
+ ] + "") && S(t, s);
593
+ },
594
+ i: M,
595
+ o: M,
596
+ d(n) {
597
+ n && H(e);
598
+ }
599
+ };
600
+ }
601
+ function Rt(i) {
602
+ let e = te(
603
+ /*transaction*/
604
+ i[45].DateTime
605
+ ).format(
606
+ /*datetimeformat*/
607
+ i[5]
608
+ ) + "", s;
609
+ return {
610
+ c() {
611
+ s = q(e);
612
+ },
613
+ m(t, n) {
614
+ I(t, s, n);
615
+ },
616
+ p(t, n) {
617
+ n[0] & /*txnHistory, datetimeformat*/
618
+ 160 && e !== (e = te(
619
+ /*transaction*/
620
+ t[45].DateTime
621
+ ).format(
622
+ /*datetimeformat*/
623
+ t[5]
624
+ ) + "") && S(s, e);
625
+ },
626
+ i: M,
627
+ o: M,
628
+ d(t) {
629
+ t && H(s);
630
+ }
631
+ };
632
+ }
633
+ function zt(i) {
634
+ let e = te(
635
+ /*transaction*/
636
+ i[45].Date
637
+ ).format(
638
+ /*dateformat*/
639
+ i[4]
640
+ ) + "", s;
641
+ return {
642
+ c() {
643
+ s = q(e);
644
+ },
645
+ m(t, n) {
646
+ I(t, s, n);
647
+ },
648
+ p(t, n) {
649
+ n[0] & /*txnHistory, dateformat*/
650
+ 144 && e !== (e = te(
651
+ /*transaction*/
652
+ t[45].Date
653
+ ).format(
654
+ /*dateformat*/
655
+ t[4]
656
+ ) + "") && S(s, e);
657
+ },
658
+ i: M,
659
+ o: M,
660
+ d(t) {
661
+ t && H(s);
662
+ }
663
+ };
664
+ }
665
+ function Pt(i) {
666
+ let e = (
667
+ /*$_*/
668
+ i[12](`transactionStatus.${/*transaction*/
669
+ i[45].Status}`) + ""
670
+ ), s;
671
+ return {
672
+ c() {
673
+ s = q(e);
674
+ },
675
+ m(t, n) {
676
+ I(t, s, n);
677
+ },
678
+ p(t, n) {
679
+ n[0] & /*$_, txnHistory*/
680
+ 4224 && e !== (e = /*$_*/
681
+ t[12](`transactionStatus.${/*transaction*/
682
+ t[45].Status}`) + "") && S(s, e);
683
+ },
684
+ i: M,
685
+ o: M,
686
+ d(t) {
687
+ t && H(s);
688
+ }
689
+ };
690
+ }
691
+ function Ft(i) {
692
+ let e, s, t, n = (
693
+ /*$_*/
694
+ i[12](`transactionStatus.${/*transaction*/
695
+ i[45].Status}`) + ""
696
+ ), o, d;
697
+ return e = new bt({
698
+ props: { status: (
699
+ /*transaction*/
700
+ i[45].Status
701
+ ) }
702
+ }), {
703
+ c() {
704
+ ze(e.$$.fragment), s = A(), t = h("span"), o = q(n), c(t, "class", "StatusIconText svelte-1xsmrqu");
705
+ },
706
+ m(r, a) {
707
+ Re(e, r, a), I(r, s, a), I(r, t, a), u(t, o), d = !0;
708
+ },
709
+ p(r, a) {
710
+ const f = {};
711
+ a[0] & /*txnHistory*/
712
+ 128 && (f.status = /*transaction*/
713
+ r[45].Status), e.$set(f), (!d || a[0] & /*$_, txnHistory*/
714
+ 4224) && n !== (n = /*$_*/
715
+ r[12](`transactionStatus.${/*transaction*/
716
+ r[45].Status}`) + "") && S(o, n);
717
+ },
718
+ i(r) {
719
+ d || (P(e.$$.fragment, r), d = !0);
720
+ },
721
+ o(r) {
722
+ U(e.$$.fragment, r), d = !1;
723
+ },
724
+ d(r) {
725
+ r && (H(s), H(t)), Ae(e, r);
726
+ }
727
+ };
728
+ }
729
+ function Mt(i) {
730
+ let e, s = (
731
+ /*transaction*/
732
+ i[45].Amount + ""
733
+ ), t, n, o = (
734
+ /*transaction*/
735
+ i[45].Currency + ""
736
+ ), d, r;
737
+ return {
738
+ c() {
739
+ e = h("span"), t = q(s), n = A(), d = q(o), c(e, "class", r = "Amount " + /*transaction*/
740
+ i[45].Type + " " + /*transaction*/
741
+ i[45].Status + " svelte-1xsmrqu");
742
+ },
743
+ m(a, f) {
744
+ I(a, e, f), u(e, t), u(e, n), u(e, d);
745
+ },
746
+ p(a, f) {
747
+ f[0] & /*txnHistory*/
748
+ 128 && s !== (s = /*transaction*/
749
+ a[45].Amount + "") && S(t, s), f[0] & /*txnHistory*/
750
+ 128 && o !== (o = /*transaction*/
751
+ a[45].Currency + "") && S(d, o), f[0] & /*txnHistory*/
752
+ 128 && r !== (r = "Amount " + /*transaction*/
753
+ a[45].Type + " " + /*transaction*/
754
+ a[45].Status + " svelte-1xsmrqu") && c(e, "class", r);
755
+ },
756
+ i: M,
757
+ o: M,
758
+ d(a) {
759
+ a && H(e);
760
+ }
761
+ };
762
+ }
763
+ function Nt(i) {
764
+ let e, s = (
765
+ /*transaction*/
766
+ i[45].Code + ""
767
+ ), t, n, o, d;
768
+ return {
769
+ c() {
770
+ e = h("span"), t = q(s), c(e, "data-copy", n = /*transaction*/
771
+ i[45].Code), c(e, "class", "svelte-1xsmrqu"), ee(
772
+ e,
773
+ "copied",
774
+ /*copied*/
775
+ i[8]
776
+ );
777
+ },
778
+ m(r, a) {
779
+ I(r, e, a), u(e, t), o || (d = He(
780
+ e,
781
+ "click",
782
+ /*click_handler*/
783
+ i[29]
784
+ ), o = !0);
785
+ },
786
+ p(r, a) {
787
+ a[0] & /*txnHistory*/
788
+ 128 && s !== (s = /*transaction*/
789
+ r[45].Code + "") && S(t, s), a[0] & /*txnHistory*/
790
+ 128 && n !== (n = /*transaction*/
791
+ r[45].Code) && c(e, "data-copy", n), a[0] & /*copied*/
792
+ 256 && ee(
793
+ e,
794
+ "copied",
795
+ /*copied*/
796
+ r[8]
797
+ );
798
+ },
799
+ i: M,
800
+ o: M,
801
+ d(r) {
802
+ r && H(e), o = !1, d();
803
+ }
804
+ };
805
+ }
806
+ function Lt(i) {
807
+ let e, s;
808
+ return e = new qt({
809
+ props: { type: (
810
+ /*transaction*/
811
+ i[45].Type
812
+ ) }
813
+ }), {
814
+ c() {
815
+ ze(e.$$.fragment);
816
+ },
817
+ m(t, n) {
818
+ Re(e, t, n), s = !0;
819
+ },
820
+ p(t, n) {
821
+ const o = {};
822
+ n[0] & /*txnHistory*/
823
+ 128 && (o.type = /*transaction*/
824
+ t[45].Type), e.$set(o);
825
+ },
826
+ i(t) {
827
+ s || (P(e.$$.fragment, t), s = !0);
828
+ },
829
+ o(t) {
830
+ U(e.$$.fragment, t), s = !1;
831
+ },
832
+ d(t) {
833
+ Ae(e, t);
834
+ }
835
+ };
836
+ }
837
+ function Et(i) {
838
+ let e, s = (
839
+ /*$_*/
840
+ i[12](`transactionType.${/*transaction*/
841
+ i[45].Type}`) + ""
842
+ ), t;
843
+ return {
844
+ c() {
845
+ e = h("span"), t = q(s), c(e, "class", "svelte-1xsmrqu");
846
+ },
847
+ m(n, o) {
848
+ I(n, e, o), u(e, t);
849
+ },
850
+ p(n, o) {
851
+ o[0] & /*$_, txnHistory*/
852
+ 4224 && s !== (s = /*$_*/
853
+ n[12](`transactionType.${/*transaction*/
854
+ n[45].Type}`) + "") && S(t, s);
855
+ },
856
+ i: M,
857
+ o: M,
858
+ d(n) {
859
+ n && H(e);
860
+ }
861
+ };
862
+ }
863
+ function Je(i) {
864
+ let e, s, t, n, o, d, r, a;
865
+ const f = [
866
+ Et,
867
+ Lt,
868
+ Nt,
869
+ Mt,
870
+ Ft,
871
+ Pt,
872
+ zt,
873
+ Rt,
874
+ At
875
+ ], g = [];
876
+ function p(m, T) {
877
+ return (
878
+ /*columnName*/
879
+ m[52] === "Type" ? 0 : (
880
+ /*columnName*/
881
+ m[52] === "TypeIcon" ? 1 : (
882
+ /*columnName*/
883
+ m[52] === "Code" ? 2 : (
884
+ /*columnName*/
885
+ m[52] === "Amount" ? 3 : (
886
+ /*columnName*/
887
+ m[52] === "StatusIcon" ? 4 : (
888
+ /*columnName*/
889
+ m[52] === "Status" ? 5 : (
890
+ /*columnName*/
891
+ m[52] === "Date" ? 6 : (
892
+ /*columnName*/
893
+ m[52] === "DateTime" ? 7 : 8
894
+ )
895
+ )
896
+ )
897
+ )
898
+ )
899
+ )
900
+ )
901
+ );
902
+ }
903
+ return t = p(i), n = g[t] = f[t](i), {
904
+ c() {
905
+ e = h("td"), s = h("span"), n.c(), d = A(), c(s, "class", o = Ce(
906
+ /*columnName*/
907
+ i[52]
908
+ ) + " svelte-1xsmrqu"), c(e, "class", r = Ce(`column-${/*columnName*/
909
+ i[52]}`) + " svelte-1xsmrqu");
910
+ },
911
+ m(m, T) {
912
+ I(m, e, T), u(e, s), g[t].m(s, null), u(e, d), a = !0;
913
+ },
914
+ p(m, T) {
915
+ let _ = t;
916
+ t = p(m), t === _ ? g[t].p(m, T) : (pe(), U(g[_], 1, 1, () => {
917
+ g[_] = null;
918
+ }), he(), n = g[t], n ? n.p(m, T) : (n = g[t] = f[t](m), n.c()), P(n, 1), n.m(s, null)), (!a || T[0] & /*tableColumns*/
919
+ 1024 && o !== (o = Ce(
920
+ /*columnName*/
921
+ m[52]
922
+ ) + " svelte-1xsmrqu")) && c(s, "class", o), (!a || T[0] & /*tableColumns*/
923
+ 1024 && r !== (r = Ce(`column-${/*columnName*/
924
+ m[52]}`) + " svelte-1xsmrqu")) && c(e, "class", r);
925
+ },
926
+ i(m) {
927
+ a || (P(n), a = !0);
928
+ },
929
+ o(m) {
930
+ U(n), a = !1;
931
+ },
932
+ d(m) {
933
+ m && H(e), g[t].d();
934
+ }
935
+ };
936
+ }
937
+ function Ke(i) {
938
+ let e, s, t, n, o, d, r = (
939
+ /*$_*/
940
+ i[12]("transactionTypeTitle") + ""
941
+ ), a, f, g, p, m = (
942
+ /*$_*/
943
+ i[12](`transactionType.${/*transaction*/
944
+ i[45].Type}`) + ""
945
+ ), T, _, w, F, D = (
946
+ /*$_*/
947
+ i[12]("transactionDateTitle") + ""
948
+ ), N, b, se, v, k = te(
949
+ /*transaction*/
950
+ i[45].DateTime
951
+ ).format(
952
+ /*datetimeformat*/
953
+ i[5]
954
+ ) + "", y, O, L, J, re = (
955
+ /*$_*/
956
+ i[12]("transactionPaymentMethodTitle") + ""
957
+ ), ie, ve, ge, X, Y = (
958
+ /*transaction*/
959
+ i[45].PaymentMethod + ""
960
+ ), oe, ce, K, ne, ue = (
961
+ /*$_*/
962
+ i[12]("transactionCodeTitle") + ""
963
+ ), ye, we, de, G, me, fe = (
964
+ /*transaction*/
965
+ i[45].Code + ""
966
+ ), Te, qe, Z, Q, l, x, R, z, ae, xe, Pe, be, le, Ie, ke, Fe, W, je, Me, V = (
967
+ /*transaction*/
968
+ i[45].RejectionNote && Qe(i)
969
+ ), B = (
970
+ /*transaction*/
971
+ i[45].PaymentFields && $e(i)
972
+ );
973
+ return le = new ut({
974
+ props: { src: (
975
+ /*transaction*/
976
+ i[45].Logo
977
+ ) }
978
+ }), {
979
+ c() {
980
+ e = h("tr"), s = h("td"), t = h("div"), n = h("div"), o = h("div"), d = h("span"), a = q(r), f = q(" :"), g = A(), p = h("span"), T = q(m), _ = A(), w = h("div"), F = h("span"), N = q(D), b = q(" :"), se = A(), v = h("span"), y = q(k), O = A(), L = h("div"), J = h("span"), ie = q(re), ve = q(" :"), ge = A(), X = h("span"), oe = q(Y), ce = A(), K = h("div"), ne = h("span"), ye = q(ue), we = q(" :"), de = A(), G = h("span"), me = h("span"), Te = q(fe), qe = A(), Z = De("svg"), Q = De("g"), l = De("path"), x = De("path"), z = A(), V && V.c(), ae = A(), xe = h("div"), B && B.c(), Pe = A(), be = h("div"), ze(le.$$.fragment), Fe = A(), c(d, "class", "DetailsTitle svelte-1xsmrqu"), c(p, "class", "DetailsValue svelte-1xsmrqu"), c(o, "class", "DetailsRow svelte-1xsmrqu"), c(F, "class", "DetailsTitle svelte-1xsmrqu"), c(v, "class", "DetailsValue svelte-1xsmrqu"), c(w, "class", "DetailsRow svelte-1xsmrqu"), c(J, "class", "DetailsTitle svelte-1xsmrqu"), c(X, "class", "DetailsValue svelte-1xsmrqu"), c(L, "class", "DetailsRow svelte-1xsmrqu"), c(ne, "class", "DetailsTitle svelte-1xsmrqu"), c(me, "class", "svelte-1xsmrqu"), c(l, "d", "M12.6663 4.375H5.54134C4.66689 4.375 3.95801 5.1585 3.95801 6.125V14C3.95801 14.9665 4.66689 15.75 5.54134 15.75H12.6663C13.5408 15.75 14.2497 14.9665 14.2497 14V6.125C14.2497 5.1585 13.5408 4.375 12.6663 4.375Z"), c(l, "stroke", "#666666"), c(l, "stroke-linecap", "round"), c(l, "stroke-linejoin", "round"), c(l, "class", "svelte-1xsmrqu"), c(x, "d", "M3.95801 13.125H3.16634C2.74642 13.125 2.34369 12.9406 2.04676 12.6124C1.74982 12.2842 1.58301 11.8391 1.58301 11.375V3.5C1.58301 3.03587 1.74982 2.59075 2.04676 2.26256C2.34369 1.93437 2.74642 1.75 3.16634 1.75H10.2913C10.7113 1.75 11.114 1.93437 11.4109 2.26256C11.7079 2.59075 11.8747 3.03587 11.8747 3.5V4.375"), c(x, "stroke", "#666666"), c(x, "stroke-linecap", "round"), c(x, "stroke-linejoin", "round"), c(x, "class", "svelte-1xsmrqu"), c(Q, "opacity", "0.5"), c(Q, "class", "svelte-1xsmrqu"), c(Z, "xmlns", "http://www.w3.org/2000/svg"), c(Z, "width", "19"), c(Z, "height", "19"), c(Z, "viewBox", "0 0 19 19"), c(Z, "fill", "none"), c(Z, "class", "svelte-1xsmrqu"), c(G, "data-copy", R = /*transaction*/
981
+ i[45].Code), c(G, "class", "DetailsValue CopyCode svelte-1xsmrqu"), c(K, "class", "DetailsRow svelte-1xsmrqu"), c(n, "class", "StaticDetails svelte-1xsmrqu"), c(xe, "class", "DynamicDetails svelte-1xsmrqu"), c(be, "class", "DetailsLogo svelte-1xsmrqu"), c(t, "class", "ExpandedContent svelte-1xsmrqu"), c(s, "colspan", ke = /*tableColumns*/
982
+ i[10].length), c(s, "class", "no-padding svelte-1xsmrqu"), c(e, "class", "ExpandedRow svelte-1xsmrqu");
983
+ },
984
+ m(C, E) {
985
+ I(C, e, E), u(e, s), u(s, t), u(t, n), u(n, o), u(o, d), u(d, a), u(d, f), u(o, g), u(o, p), u(p, T), u(n, _), u(n, w), u(w, F), u(F, N), u(F, b), u(w, se), u(w, v), u(v, y), u(n, O), u(n, L), u(L, J), u(J, ie), u(J, ve), u(L, ge), u(L, X), u(X, oe), u(n, ce), u(n, K), u(K, ne), u(ne, ye), u(ne, we), u(K, de), u(K, G), u(G, me), u(me, Te), u(G, qe), u(G, Z), u(Z, Q), u(Q, l), u(Q, x), u(n, z), V && V.m(n, null), u(t, ae), u(t, xe), B && B.m(xe, null), u(t, Pe), u(t, be), Re(le, be, null), u(e, Fe), W = !0, je || (Me = He(
986
+ G,
987
+ "mousedown",
988
+ /*mousedown_handler*/
989
+ i[31]
990
+ ), je = !0);
991
+ },
992
+ p(C, E) {
993
+ (!W || E[0] & /*$_*/
994
+ 4096) && r !== (r = /*$_*/
995
+ C[12]("transactionTypeTitle") + "") && S(a, r), (!W || E[0] & /*$_, txnHistory*/
996
+ 4224) && m !== (m = /*$_*/
997
+ C[12](`transactionType.${/*transaction*/
998
+ C[45].Type}`) + "") && S(T, m), (!W || E[0] & /*$_*/
999
+ 4096) && D !== (D = /*$_*/
1000
+ C[12]("transactionDateTitle") + "") && S(N, D), (!W || E[0] & /*txnHistory, datetimeformat*/
1001
+ 160) && k !== (k = te(
1002
+ /*transaction*/
1003
+ C[45].DateTime
1004
+ ).format(
1005
+ /*datetimeformat*/
1006
+ C[5]
1007
+ ) + "") && S(y, k), (!W || E[0] & /*$_*/
1008
+ 4096) && re !== (re = /*$_*/
1009
+ C[12]("transactionPaymentMethodTitle") + "") && S(ie, re), (!W || E[0] & /*txnHistory*/
1010
+ 128) && Y !== (Y = /*transaction*/
1011
+ C[45].PaymentMethod + "") && S(oe, Y), (!W || E[0] & /*$_*/
1012
+ 4096) && ue !== (ue = /*$_*/
1013
+ C[12]("transactionCodeTitle") + "") && S(ye, ue), (!W || E[0] & /*txnHistory*/
1014
+ 128) && fe !== (fe = /*transaction*/
1015
+ C[45].Code + "") && S(Te, fe), (!W || E[0] & /*txnHistory*/
1016
+ 128 && R !== (R = /*transaction*/
1017
+ C[45].Code)) && c(G, "data-copy", R), /*transaction*/
1018
+ C[45].RejectionNote ? V ? V.p(C, E) : (V = Qe(C), V.c(), V.m(n, null)) : V && (V.d(1), V = null), /*transaction*/
1019
+ C[45].PaymentFields ? B ? B.p(C, E) : (B = $e(C), B.c(), B.m(xe, null)) : B && (B.d(1), B = null);
1020
+ const Ne = {};
1021
+ E[0] & /*txnHistory*/
1022
+ 128 && (Ne.src = /*transaction*/
1023
+ C[45].Logo), le.$set(Ne), (!W || E[0] & /*tableColumns*/
1024
+ 1024 && ke !== (ke = /*tableColumns*/
1025
+ C[10].length)) && c(s, "colspan", ke);
1026
+ },
1027
+ i(C) {
1028
+ W || (P(le.$$.fragment, C), C && (Ie || rt(() => {
1029
+ Ie = ot(
1030
+ t,
1031
+ /*slideInOnly*/
1032
+ i[15],
1033
+ {}
1034
+ ), Ie.start();
1035
+ })), W = !0);
1036
+ },
1037
+ o(C) {
1038
+ U(le.$$.fragment, C), W = !1;
1039
+ },
1040
+ d(C) {
1041
+ C && H(e), V && V.d(), B && B.d(), Ae(le), je = !1, Me();
1042
+ }
1043
+ };
1044
+ }
1045
+ function Qe(i) {
1046
+ let e, s, t = (
1047
+ /*$_*/
1048
+ i[12]("transactionRejectionNoteTitle") + ""
1049
+ ), n, o, d, r, a = (
1050
+ /*transaction*/
1051
+ i[45].RejectionNote + ""
1052
+ ), f;
1053
+ return {
1054
+ c() {
1055
+ e = h("div"), s = h("span"), n = q(t), o = q(" :"), d = A(), r = h("span"), f = q(a), c(s, "class", "DetailsTitle svelte-1xsmrqu"), c(r, "class", "DetailsValue svelte-1xsmrqu"), c(e, "class", "DetailsRow svelte-1xsmrqu");
1056
+ },
1057
+ m(g, p) {
1058
+ I(g, e, p), u(e, s), u(s, n), u(s, o), u(e, d), u(e, r), u(r, f);
1059
+ },
1060
+ p(g, p) {
1061
+ p[0] & /*$_*/
1062
+ 4096 && t !== (t = /*$_*/
1063
+ g[12]("transactionRejectionNoteTitle") + "") && S(n, t), p[0] & /*txnHistory*/
1064
+ 128 && a !== (a = /*transaction*/
1065
+ g[45].RejectionNote + "") && S(f, a);
1066
+ },
1067
+ d(g) {
1068
+ g && H(e);
1069
+ }
1070
+ };
1071
+ }
1072
+ function $e(i) {
1073
+ let e, s = $(Object.entries(
1074
+ /*transaction*/
1075
+ i[45].PaymentFields
1076
+ )), t = [];
1077
+ for (let n = 0; n < s.length; n += 1)
1078
+ t[n] = et(Oe(i, s, n));
1079
+ return {
1080
+ c() {
1081
+ for (let n = 0; n < t.length; n += 1)
1082
+ t[n].c();
1083
+ e = ct();
1084
+ },
1085
+ m(n, o) {
1086
+ for (let d = 0; d < t.length; d += 1)
1087
+ t[d] && t[d].m(n, o);
1088
+ I(n, e, o);
1089
+ },
1090
+ p(n, o) {
1091
+ if (o[0] & /*txnHistory, $_*/
1092
+ 4224) {
1093
+ s = $(Object.entries(
1094
+ /*transaction*/
1095
+ n[45].PaymentFields
1096
+ ));
1097
+ let d;
1098
+ for (d = 0; d < s.length; d += 1) {
1099
+ const r = Oe(n, s, d);
1100
+ t[d] ? t[d].p(r, o) : (t[d] = et(r), t[d].c(), t[d].m(e.parentNode, e));
1101
+ }
1102
+ for (; d < t.length; d += 1)
1103
+ t[d].d(1);
1104
+ t.length = s.length;
1105
+ }
1106
+ },
1107
+ d(n) {
1108
+ n && H(e), Se(t, n);
1109
+ }
1110
+ };
1111
+ }
1112
+ function et(i) {
1113
+ let e, s, t = (
1114
+ /*$_*/
1115
+ i[12](`transaction${/*key*/
1116
+ i[48]}Detail`, { default: (
1117
+ /*key*/
1118
+ i[48]
1119
+ ) }) + ""
1120
+ ), n, o, d, r, a = (
1121
+ /*value*/
1122
+ i[49] + ""
1123
+ ), f, g;
1124
+ return {
1125
+ c() {
1126
+ e = h("div"), s = h("span"), n = q(t), o = q(" :"), d = A(), r = h("span"), f = q(a), g = A(), c(s, "class", "DetailsTitle svelte-1xsmrqu"), c(r, "class", "DetailsValue svelte-1xsmrqu"), c(e, "class", "DetailsRow svelte-1xsmrqu");
1127
+ },
1128
+ m(p, m) {
1129
+ I(p, e, m), u(e, s), u(s, n), u(s, o), u(e, d), u(e, r), u(r, f), u(e, g);
1130
+ },
1131
+ p(p, m) {
1132
+ m[0] & /*$_, txnHistory*/
1133
+ 4224 && t !== (t = /*$_*/
1134
+ p[12](`transaction${/*key*/
1135
+ p[48]}Detail`, { default: (
1136
+ /*key*/
1137
+ p[48]
1138
+ ) }) + "") && S(n, t), m[0] & /*txnHistory*/
1139
+ 128 && a !== (a = /*value*/
1140
+ p[49] + "") && S(f, a);
1141
+ },
1142
+ d(p) {
1143
+ p && H(e);
1144
+ }
1145
+ };
1146
+ }
1147
+ function tt(i) {
1148
+ let e, s, t, n, o, d, r = $(
1149
+ /*tableColumns*/
1150
+ i[10]
1151
+ ), a = [];
1152
+ for (let m = 0; m < r.length; m += 1)
1153
+ a[m] = Je(Ye(i, r, m));
1154
+ const f = (m) => U(a[m], 1, 1, () => {
1155
+ a[m] = null;
1156
+ });
1157
+ function g() {
1158
+ return (
1159
+ /*click_handler_1*/
1160
+ i[30](
1161
+ /*index*/
1162
+ i[47]
1163
+ )
1164
+ );
1165
+ }
1166
+ let p = (
1167
+ /*expandedRow*/
1168
+ i[11] === /*index*/
1169
+ i[47] && Ke(i)
1170
+ );
1171
+ return {
1172
+ c() {
1173
+ e = h("tr");
1174
+ for (let m = 0; m < a.length; m += 1)
1175
+ a[m].c();
1176
+ s = A(), p && p.c(), t = ct(), c(e, "class", "TransactionHistoryRow svelte-1xsmrqu"), ee(
1177
+ e,
1178
+ "AllowExpand",
1179
+ /*isshorttransactionhistory*/
1180
+ i[3] === "true"
1181
+ ), ee(
1182
+ e,
1183
+ "Expanded",
1184
+ /*expandedRow*/
1185
+ i[11] === /*index*/
1186
+ i[47]
1187
+ );
1188
+ },
1189
+ m(m, T) {
1190
+ I(m, e, T);
1191
+ for (let _ = 0; _ < a.length; _ += 1)
1192
+ a[_] && a[_].m(e, null);
1193
+ I(m, s, T), p && p.m(m, T), I(m, t, T), n = !0, o || (d = He(e, "click", g), o = !0);
1194
+ },
1195
+ p(m, T) {
1196
+ if (i = m, T[0] & /*tableColumns, $_, txnHistory, copied, copyToClipboard, dateformat, datetimeformat*/
1197
+ 13744) {
1198
+ r = $(
1199
+ /*tableColumns*/
1200
+ i[10]
1201
+ );
1202
+ let _;
1203
+ for (_ = 0; _ < r.length; _ += 1) {
1204
+ const w = Ye(i, r, _);
1205
+ a[_] ? (a[_].p(w, T), P(a[_], 1)) : (a[_] = Je(w), a[_].c(), P(a[_], 1), a[_].m(e, null));
1206
+ }
1207
+ for (pe(), _ = r.length; _ < a.length; _ += 1)
1208
+ f(_);
1209
+ he();
1210
+ }
1211
+ (!n || T[0] & /*isshorttransactionhistory*/
1212
+ 8) && ee(
1213
+ e,
1214
+ "AllowExpand",
1215
+ /*isshorttransactionhistory*/
1216
+ i[3] === "true"
1217
+ ), (!n || T[0] & /*expandedRow*/
1218
+ 2048) && ee(
1219
+ e,
1220
+ "Expanded",
1221
+ /*expandedRow*/
1222
+ i[11] === /*index*/
1223
+ i[47]
1224
+ ), /*expandedRow*/
1225
+ i[11] === /*index*/
1226
+ i[47] ? p ? (p.p(i, T), T[0] & /*expandedRow*/
1227
+ 2048 && P(p, 1)) : (p = Ke(i), p.c(), P(p, 1), p.m(t.parentNode, t)) : p && (pe(), U(p, 1, 1, () => {
1228
+ p = null;
1229
+ }), he());
1230
+ },
1231
+ i(m) {
1232
+ if (!n) {
1233
+ for (let T = 0; T < r.length; T += 1)
1234
+ P(a[T]);
1235
+ P(p), n = !0;
1236
+ }
1237
+ },
1238
+ o(m) {
1239
+ a = a.filter(Boolean);
1240
+ for (let T = 0; T < a.length; T += 1)
1241
+ U(a[T]);
1242
+ U(p), n = !1;
1243
+ },
1244
+ d(m) {
1245
+ m && (H(e), H(s), H(t)), Se(a, m), p && p.d(m), o = !1, d();
1246
+ }
1247
+ };
1248
+ }
1249
+ function Ut(i) {
1250
+ let e, s, t, n;
1251
+ const o = [jt, It], d = [];
1252
+ function r(a, f) {
1253
+ return (
1254
+ /*txnHistory*/
1255
+ a[7].length ? 0 : (
1256
+ /*isLoading*/
1257
+ a[9] ? 1 : -1
1258
+ )
1259
+ );
1260
+ }
1261
+ return ~(s = r(i)) && (t = d[s] = o[s](i)), {
1262
+ c() {
1263
+ e = h("div"), t && t.c(), c(e, "class", "CashierTransactionHistoryContainer svelte-1xsmrqu");
1264
+ },
1265
+ m(a, f) {
1266
+ I(a, e, f), ~s && d[s].m(e, null), n = !0;
1267
+ },
1268
+ p(a, f) {
1269
+ let g = s;
1270
+ s = r(a), s === g ? ~s && d[s].p(a, f) : (t && (pe(), U(d[g], 1, 1, () => {
1271
+ d[g] = null;
1272
+ }), he()), ~s ? (t = d[s], t ? t.p(a, f) : (t = d[s] = o[s](a), t.c()), P(t, 1), t.m(e, null)) : t = null);
1273
+ },
1274
+ i(a) {
1275
+ n || (P(t), n = !0);
1276
+ },
1277
+ o(a) {
1278
+ U(t), n = !1;
1279
+ },
1280
+ d(a) {
1281
+ a && H(e), ~s && d[s].d();
1282
+ }
1283
+ };
1284
+ }
1285
+ function Wt(i, e, s) {
1286
+ let t;
1287
+ mt(i, wt, (l) => s(12, t = l));
1288
+ let { endpoint: n } = e, { session: o } = e, { lang: d = "en" } = e, { customerid: r } = e, { clientstyling: a = "" } = e, { clientstylingurl: f = "" } = e, { translationurl: g } = e, { tooltipduration: p = 1e3 } = e, { txncount: m } = e, { mbsource: T = "" } = e, { columns: _ } = e, { page: w = "0" } = e, { calculateprofit: F = "false" } = e, { fromdate: D = te().subtract(3, "month") } = e, { todate: N = te() } = e, { isshorttransactionhistory: b = "false" } = e, { dateformat: se = "DD.MM.YYYY" } = e, { datetimeformat: v = "DD.MM.YYYY HH:mm:ss" } = e, { userroles: k = "" } = e, y = [], O = !1, L, J, re, ie = !1, ve = [], ge = [], X;
1289
+ var Y;
1290
+ (function(l) {
1291
+ l.Deposit = "deposit", l.Withdraw = "withdraw", l.Refund = "refund", l.Unknown = "unknown", l.TaxDeduction = "taxDeduction";
1292
+ })(Y || (Y = {}));
1293
+ const oe = [
1294
+ "Authorized",
1295
+ "Success",
1296
+ "Failed",
1297
+ "Rejected",
1298
+ "PendingApprovalStage1",
1299
+ "PendingApprovalStage2",
1300
+ "PendingApprovalStage3",
1301
+ "PendingNotification",
1302
+ "PendingOfflineNotification",
1303
+ "PendingConfirmation"
1304
+ ];
1305
+ var ce;
1306
+ (function(l) {
1307
+ l.Authorized = "Authorized", l.Success = "Success", l.Failed = "Failed", l.Rejected = "Rejected", l.Pending = "Pending";
1308
+ })(ce || (ce = {})), ft(() => () => {
1309
+ });
1310
+ const K = () => {
1311
+ let l = g;
1312
+ if (l)
1313
+ return fetch(l).then((x) => x.json()).then((x) => {
1314
+ Object.keys(x).forEach((R) => {
1315
+ Ue(R, x[R]);
1316
+ });
1317
+ }).catch((x) => {
1318
+ console.log(x);
1319
+ });
1320
+ };
1321
+ Object.keys(We).forEach((l) => {
1322
+ Ue(l, We[l]);
1323
+ });
1324
+ const ne = () => {
1325
+ kt(d);
1326
+ }, ue = () => {
1327
+ const l = new URL(`${n}/api/v1/mm/payment/gettransactionshistory`), x = new Headers();
1328
+ x.append("accept", "application/json"), x.append("Content-Type", "application/json"), x.append("X-SessionId", `${o}`), ve.indexOf("MM_CHANNEL_BETA") != -1 && x.append("MM_CHANNEL", "BETA");
1329
+ const R = {
1330
+ method: "POST",
1331
+ mode: "cors",
1332
+ headers: x,
1333
+ body: JSON.stringify({
1334
+ language: d,
1335
+ customerId: r,
1336
+ count: +m,
1337
+ page: +w,
1338
+ fromDate: D,
1339
+ toDate: N,
1340
+ statuses: {
1341
+ [Y.Deposit]: oe,
1342
+ [Y.Withdraw]: oe,
1343
+ [Y.Refund]: ["Unknown"],
1344
+ [Y.TaxDeduction]: ["Unknown"],
1345
+ [Y.Unknown]: ["Unknown"]
1346
+ },
1347
+ calculateProfit: F === "true"
1348
+ })
1349
+ };
1350
+ s(9, ie = !0), fetch(l, R).then((z) => z.json()).then((z) => {
1351
+ s(7, y = ye((z == null ? void 0 : z.items) || []));
1352
+ const ae = {
1353
+ type: "TransactionsLoaded",
1354
+ total: z.total
1355
+ };
1356
+ F === "true" && (ae.statistic = z.statistic), window.postMessage(ae, window.location.href);
1357
+ }).catch((z) => console.log(z)).finally(() => s(9, ie = !1));
1358
+ }, ye = (l) => (s(10, ge = _.split(",")), s(11, X = null), l.map((x) => {
1359
+ let R = x.generalFields.status;
1360
+ return x.generalFields.status.toLowerCase().includes("pending") && (R = ce.Pending), {
1361
+ Code: x.generalFields.code,
1362
+ Date: x.generalFields.created,
1363
+ DateTime: x.generalFields.created,
1364
+ Status: R,
1365
+ Type: x.generalFields.type,
1366
+ Amount: x.generalFields.amount,
1367
+ Currency: x.generalFields.currency,
1368
+ PaymentMethod: x.generalFields.paymentMethod,
1369
+ RejectionNote: x.generalFields.rejectionNote,
1370
+ PaymentFields: x.paymentFields && Object.keys(x.paymentFields).length > 0 ? x.paymentFields : null,
1371
+ Logo: we(x.logos)
1372
+ };
1373
+ }) || []), we = (l) => {
1374
+ if (l && l.length) {
1375
+ const x = l.find((z) => z.logoType === "Mobile"), R = l.find((z) => z.logoType === "Desktop");
1376
+ return x && x.logoUrl || R && R.logoUrl;
1377
+ }
1378
+ }, de = (l, x = !0) => {
1379
+ const z = l.currentTarget.dataset.copy;
1380
+ z && navigator.clipboard.writeText(z).then(() => {
1381
+ x && (s(8, O = !0), clearTimeout(J), J = setTimeout(
1382
+ () => {
1383
+ s(8, O = !1);
1384
+ },
1385
+ 2e3
1386
+ ));
1387
+ }).catch((ae) => {
1388
+ console.error("Could not copy text: ", ae);
1389
+ });
1390
+ }, G = (l) => {
1391
+ b !== "true" && s(11, X = X === l ? null : l);
1392
+ }, me = (l, x) => ({
1393
+ delay: 0,
1394
+ duration: 250,
1395
+ css: (R) => `overflow: hidden; transform: translateY(${(1 - R) * 20}px); opacity: ${R}`
1396
+ }), fe = () => {
1397
+ k.length > 0 && (ve = k.split(","));
1398
+ }, Te = (l) => de(l), qe = (l) => G(l), Z = (l) => de(l, !1);
1399
+ function Q(l) {
1400
+ pt[l ? "unshift" : "push"](() => {
1401
+ L = l, s(6, L);
1402
+ });
1403
+ }
1404
+ return i.$$set = (l) => {
1405
+ "endpoint" in l && s(16, n = l.endpoint), "session" in l && s(17, o = l.session), "lang" in l && s(18, d = l.lang), "customerid" in l && s(19, r = l.customerid), "clientstyling" in l && s(0, a = l.clientstyling), "clientstylingurl" in l && s(1, f = l.clientstylingurl), "translationurl" in l && s(20, g = l.translationurl), "tooltipduration" in l && s(2, p = l.tooltipduration), "txncount" in l && s(21, m = l.txncount), "mbsource" in l && s(22, T = l.mbsource), "columns" in l && s(23, _ = l.columns), "page" in l && s(24, w = l.page), "calculateprofit" in l && s(25, F = l.calculateprofit), "fromdate" in l && s(26, D = l.fromdate), "todate" in l && s(27, N = l.todate), "isshorttransactionhistory" in l && s(3, b = l.isshorttransactionhistory), "dateformat" in l && s(4, se = l.dateformat), "datetimeformat" in l && s(5, v = l.datetimeformat), "userroles" in l && s(28, k = l.userroles);
1406
+ }, i.$$.update = () => {
1407
+ i.$$.dirty[0] & /*lang*/
1408
+ 262144 && d && ne(), i.$$.dirty[0] & /*clientstyling, customStylingContainer*/
1409
+ 65 && a && L && Tt(L, a), i.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
1410
+ 66 && f && L && xt(L, f), i.$$.dirty[0] & /*endpoint, session, customerid, lang, fromdate, todate, page, calculateprofit*/
1411
+ 252641280 && n && o && r && d && D && N && w && F && ue(), i.$$.dirty[0] & /*translationurl*/
1412
+ 1048576 && g && K(), i.$$.dirty[0] & /*mbsource, customStylingContainer*/
1413
+ 4194368 && T && L && _t(L, `${T}.Style`, re), i.$$.dirty[0] & /*userroles*/
1414
+ 268435456 && k && fe();
1415
+ }, [
1416
+ a,
1417
+ f,
1418
+ p,
1419
+ b,
1420
+ se,
1421
+ v,
1422
+ L,
1423
+ y,
1424
+ O,
1425
+ ie,
1426
+ ge,
1427
+ X,
1428
+ t,
1429
+ de,
1430
+ G,
1431
+ me,
1432
+ n,
1433
+ o,
1434
+ d,
1435
+ r,
1436
+ g,
1437
+ m,
1438
+ T,
1439
+ _,
1440
+ w,
1441
+ F,
1442
+ D,
1443
+ N,
1444
+ k,
1445
+ Te,
1446
+ qe,
1447
+ Z,
1448
+ Q
1449
+ ];
1450
+ }
1451
+ class Vt extends st {
1452
+ constructor(e) {
1453
+ super(), it(
1454
+ this,
1455
+ e,
1456
+ Wt,
1457
+ Ut,
1458
+ nt,
1459
+ {
1460
+ endpoint: 16,
1461
+ session: 17,
1462
+ lang: 18,
1463
+ customerid: 19,
1464
+ clientstyling: 0,
1465
+ clientstylingurl: 1,
1466
+ translationurl: 20,
1467
+ tooltipduration: 2,
1468
+ txncount: 21,
1469
+ mbsource: 22,
1470
+ columns: 23,
1471
+ page: 24,
1472
+ calculateprofit: 25,
1473
+ fromdate: 26,
1474
+ todate: 27,
1475
+ isshorttransactionhistory: 3,
1476
+ dateformat: 4,
1477
+ datetimeformat: 5,
1478
+ userroles: 28
1479
+ },
1480
+ Ht,
1481
+ [-1, -1]
1482
+ );
1483
+ }
1484
+ get endpoint() {
1485
+ return this.$$.ctx[16];
1486
+ }
1487
+ set endpoint(e) {
1488
+ this.$$set({ endpoint: e }), j();
1489
+ }
1490
+ get session() {
1491
+ return this.$$.ctx[17];
1492
+ }
1493
+ set session(e) {
1494
+ this.$$set({ session: e }), j();
1495
+ }
1496
+ get lang() {
1497
+ return this.$$.ctx[18];
1498
+ }
1499
+ set lang(e) {
1500
+ this.$$set({ lang: e }), j();
1501
+ }
1502
+ get customerid() {
1503
+ return this.$$.ctx[19];
1504
+ }
1505
+ set customerid(e) {
1506
+ this.$$set({ customerid: e }), j();
1507
+ }
1508
+ get clientstyling() {
1509
+ return this.$$.ctx[0];
1510
+ }
1511
+ set clientstyling(e) {
1512
+ this.$$set({ clientstyling: e }), j();
1513
+ }
1514
+ get clientstylingurl() {
1515
+ return this.$$.ctx[1];
1516
+ }
1517
+ set clientstylingurl(e) {
1518
+ this.$$set({ clientstylingurl: e }), j();
1519
+ }
1520
+ get translationurl() {
1521
+ return this.$$.ctx[20];
1522
+ }
1523
+ set translationurl(e) {
1524
+ this.$$set({ translationurl: e }), j();
1525
+ }
1526
+ get tooltipduration() {
1527
+ return this.$$.ctx[2];
1528
+ }
1529
+ set tooltipduration(e) {
1530
+ this.$$set({ tooltipduration: e }), j();
1531
+ }
1532
+ get txncount() {
1533
+ return this.$$.ctx[21];
1534
+ }
1535
+ set txncount(e) {
1536
+ this.$$set({ txncount: e }), j();
1537
+ }
1538
+ get mbsource() {
1539
+ return this.$$.ctx[22];
1540
+ }
1541
+ set mbsource(e) {
1542
+ this.$$set({ mbsource: e }), j();
1543
+ }
1544
+ get columns() {
1545
+ return this.$$.ctx[23];
1546
+ }
1547
+ set columns(e) {
1548
+ this.$$set({ columns: e }), j();
1549
+ }
1550
+ get page() {
1551
+ return this.$$.ctx[24];
1552
+ }
1553
+ set page(e) {
1554
+ this.$$set({ page: e }), j();
1555
+ }
1556
+ get calculateprofit() {
1557
+ return this.$$.ctx[25];
1558
+ }
1559
+ set calculateprofit(e) {
1560
+ this.$$set({ calculateprofit: e }), j();
1561
+ }
1562
+ get fromdate() {
1563
+ return this.$$.ctx[26];
1564
+ }
1565
+ set fromdate(e) {
1566
+ this.$$set({ fromdate: e }), j();
1567
+ }
1568
+ get todate() {
1569
+ return this.$$.ctx[27];
1570
+ }
1571
+ set todate(e) {
1572
+ this.$$set({ todate: e }), j();
1573
+ }
1574
+ get isshorttransactionhistory() {
1575
+ return this.$$.ctx[3];
1576
+ }
1577
+ set isshorttransactionhistory(e) {
1578
+ this.$$set({ isshorttransactionhistory: e }), j();
1579
+ }
1580
+ get dateformat() {
1581
+ return this.$$.ctx[4];
1582
+ }
1583
+ set dateformat(e) {
1584
+ this.$$set({ dateformat: e }), j();
1585
+ }
1586
+ get datetimeformat() {
1587
+ return this.$$.ctx[5];
1588
+ }
1589
+ set datetimeformat(e) {
1590
+ this.$$set({ datetimeformat: e }), j();
1591
+ }
1592
+ get userroles() {
1593
+ return this.$$.ctx[28];
1594
+ }
1595
+ set userroles(e) {
1596
+ this.$$set({ userroles: e }), j();
1597
+ }
1598
+ }
1599
+ lt(Vt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {}, columns: {}, page: {}, calculateprofit: {}, fromdate: {}, todate: {}, isshorttransactionhistory: {}, dateformat: {}, datetimeformat: {}, userroles: {} }, [], [], !0);
1600
+ export {
1601
+ Vt as default
1602
+ };