@everymatrix/transaction-history-page 0.0.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 (45) hide show
  1. package/components/CashierHeader-5zy8g8OM.js +4500 -0
  2. package/components/CashierHeader-D8XyDtbQ.js +4463 -0
  3. package/components/CashierHeader-WepsG79s.cjs +21 -0
  4. package/components/CashierPagination-BAxf9S89.js +287 -0
  5. package/components/CashierPagination-DS04u5aL.js +287 -0
  6. package/components/CashierPagination-OH0bY8kI.cjs +3 -0
  7. package/components/CashierTransactionHistory-ByYI6h3-.js +1606 -0
  8. package/components/CashierTransactionHistory-DDHBkAnM.js +1606 -0
  9. package/components/CashierTransactionHistory-cF3SrkZI.cjs +1 -0
  10. package/components/EmptyStateIcon-BKTXVMxl.js +27 -0
  11. package/components/EmptyStateIcon-BXdFAthb.cjs +1 -0
  12. package/components/EmptyStateIcon-BmntjMXF.js +27 -0
  13. package/components/Tooltip-CH7HmcK4.cjs +1 -0
  14. package/components/Tooltip-WAE69Wpz.js +113 -0
  15. package/components/Tooltip-XvNWUv3X.js +113 -0
  16. package/components/TransactionHistoryCalendar-CGecBXnr.js +5166 -0
  17. package/components/TransactionHistoryCalendar-DqleOuPE.cjs +22 -0
  18. package/components/TransactionHistoryCalendar-p3Cm8jjd.js +5137 -0
  19. package/components/TransactionHistoryPage-C3CWZ4Id.js +898 -0
  20. package/components/TransactionHistoryPage-CvCPQkSZ.cjs +1 -0
  21. package/components/TransactionHistoryPage-eMkQW27N.js +880 -0
  22. package/components/TxnStatusIcon-BkEEMoFp.js +142 -0
  23. package/components/TxnStatusIcon-CknmbHtX.cjs +1 -0
  24. package/components/TxnStatusIcon-ajCxZslH.js +142 -0
  25. package/components/TxnTypeIcons-D70zalMR.js +101 -0
  26. package/components/TxnTypeIcons-DevbhR7w.cjs +1 -0
  27. package/components/TxnTypeIcons-ETOHW7Tq.js +101 -0
  28. package/es2015/transaction-history-page.cjs +1 -0
  29. package/es2015/transaction-history-page.js +16 -0
  30. package/esnext/transaction-history-page.js +14 -0
  31. package/package.json +25 -0
  32. package/stencil/app-globals-0f993ce5-D-kw1sls.js +5 -0
  33. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +1 -0
  34. package/stencil/index-97d17652-BgKdDb-e.cjs +1 -0
  35. package/stencil/index-97d17652-C7V2DWFg.js +542 -0
  36. package/stencil/index-97d17652-DIpvPU9H.js +558 -0
  37. package/stencil/ui-image-CYuYAlOX.js +7 -0
  38. package/stencil/ui-image-D3_FGUyo.js +25 -0
  39. package/stencil/ui-image-DJWD4G-S.cjs +1 -0
  40. package/stencil/ui-image-b7b48fe5-B-k0kWgx.js +39 -0
  41. package/stencil/ui-image-b7b48fe5-D8-wEkoZ.js +39 -0
  42. package/stencil/ui-image-b7b48fe5-yceZ9WkN.cjs +1 -0
  43. package/stencil/ui-image_2-CzFe50WB.js +157 -0
  44. package/stencil/ui-image_2-Ha_4GYwN.cjs +55 -0
  45. package/stencil/ui-image_2-z5LhXZY2.js +157 -0
@@ -0,0 +1,880 @@
1
+ import { C as kt, D as vt, c as Lt, S as Ct, i as Bt, s as It, f as b, a as zt, b as T, t as z, g as k, R as ht, h as E, J as l, j as Y, k as m, T as dt, u as M, G as U, E as q, F as Mt, m as j, U as gt, H as Nt, p as Pt, l as G, r as yt, I as Ft, v as Ot, w as Yt, x as jt, y as Wt, O as At } from "./CashierHeader-D8XyDtbQ.js";
2
+ import { T as Rt } from "./Tooltip-WAE69Wpz.js";
3
+ import { E as Vt } from "./EmptyStateIcon-BmntjMXF.js";
4
+ kt({
5
+ fallbackLocale: "en"
6
+ });
7
+ function ot(n, t) {
8
+ vt(n, t);
9
+ }
10
+ const at = {
11
+ en: {
12
+ transactionHistoryTitle: "Transaction History",
13
+ transactionIdTitle: "ID",
14
+ transactionDateTitle: "Date",
15
+ transactionTypeTitle: "Type",
16
+ transactionTypeIconTitle: "Type",
17
+ transactionStatusTitle: "Status",
18
+ transactionLifetimeDeposit: "Lifetime deposits",
19
+ transactionNetProfit: "Net Profit",
20
+ transactionNetProfitTooltip: "This value represents the sum of your lifetime deposits minus the sum of your lifetime withdrawals.",
21
+ transactionLifetimeDepositTooltip: "Cumulative sum of all deposits made over the lifetime of your account.",
22
+ noTransactionData: "No transactions found for selected date",
23
+ copyTransactionId: "Transaction Id copied to clipboard"
24
+ },
25
+ tr: {
26
+ transactionHistoryTitle: "İşlem Geçmişi",
27
+ transactionIdTitle: "İşlem ID'si",
28
+ transactionDateTitle: "Tarih",
29
+ transactionTypeTitle: "Tip",
30
+ transactionTypeIconTitle: "Tip",
31
+ transactionStatusTitle: "Durum",
32
+ transactionLifetimeDeposit: "Ömür boyu yatırımlar",
33
+ transactionNetProfit: "Net Kar",
34
+ transactionNetProfitTooltip: "Bu değer, ömür boyu yatırımlarınızın toplamından ömür boyu çekimlerinizin toplamı çıkarıldığında elde edilen tutarı temsil eder.",
35
+ transactionLifetimeDepositTooltip: "Hesabınızın kullanım süresi boyunca yapılan tüm yatırımların toplamı.",
36
+ noTransactionData: "Seçilen tarih için işlem bulunamadı.",
37
+ copyTransactionId: "İşlem ID’si kopyalandı"
38
+ }
39
+ };
40
+ if (typeof window < "u") {
41
+ let n = function(t) {
42
+ return function(...e) {
43
+ try {
44
+ return t.apply(this, e);
45
+ } catch (o) {
46
+ if (o instanceof DOMException && o.message.includes("has already been used with this registry") || o.message.includes("Cannot define multiple custom elements with the same tag name"))
47
+ return !1;
48
+ throw o;
49
+ }
50
+ };
51
+ };
52
+ customElements.define = n(customElements.define), import("./CashierHeader-D8XyDtbQ.js").then((t) => t.X).then(({ default: t }) => {
53
+ !customElements.get("cashier-header") && customElements.define("cashier-header", t.element);
54
+ });
55
+ }
56
+ if (typeof window < "u") {
57
+ let n = function(t) {
58
+ return function(...e) {
59
+ try {
60
+ return t.apply(this, e);
61
+ } catch (o) {
62
+ if (o instanceof DOMException && o.message.includes("has already been used with this registry") || o.message.includes("Cannot define multiple custom elements with the same tag name"))
63
+ return !1;
64
+ throw o;
65
+ }
66
+ };
67
+ };
68
+ customElements.define = n(customElements.define), import("./TransactionHistoryCalendar-p3Cm8jjd.js").then(({ default: t }) => {
69
+ !customElements.get("transaction-history-calendar") && customElements.define("transaction-history-calendar", t.element);
70
+ });
71
+ }
72
+ if (typeof window < "u") {
73
+ let n = function(t) {
74
+ return function(...e) {
75
+ try {
76
+ return t.apply(this, e);
77
+ } catch (o) {
78
+ if (o instanceof DOMException && o.message.includes("has already been used with this registry") || o.message.includes("Cannot define multiple custom elements with the same tag name"))
79
+ return !1;
80
+ throw o;
81
+ }
82
+ };
83
+ };
84
+ customElements.define = n(customElements.define), import("./CashierTransactionHistory-DDHBkAnM.js").then((t) => t.C).then(({ default: t }) => {
85
+ !customElements.get("cashier-transaction-history") && customElements.define("cashier-transaction-history", t.element);
86
+ });
87
+ }
88
+ if (typeof window < "u") {
89
+ let n = function(t) {
90
+ return function(...e) {
91
+ try {
92
+ return t.apply(this, e);
93
+ } catch (o) {
94
+ if (o instanceof DOMException && o.message.includes("has already been used with this registry") || o.message.includes("Cannot define multiple custom elements with the same tag name"))
95
+ return !1;
96
+ throw o;
97
+ }
98
+ };
99
+ };
100
+ customElements.define = n(customElements.define), import("./CashierPagination-BAxf9S89.js").then(({ default: t }) => {
101
+ !customElements.get("cashier-pagination") && customElements.define("cashier-pagination", t.element);
102
+ });
103
+ }
104
+ function Ut(n) {
105
+ zt(n, "svelte-1mgt8hq", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.TransactionHistoryWidget{container-type:inline-size;container-name:history-page}.CashierHeaderTitle{color:var(--emw--color-grey-10, #111);font-size:var(--emw--font-size-x-large, 18px);line-height:125%;font-weight:var(--emw--font-weight-semibold, 500);margin:auto;max-width:calc(100% - 150px);overflow:hidden;text-overflow:ellipsis}.TransactionHistoryBody{padding:var(--emw--spacing-small, 12px)}.TransactionHistoryFilter{display:flex;flex-direction:row;align-items:center}.TransactionHistoryDateFilter{margin-left:auto}.TransactionHistorySummary{display:flex;justify-content:space-between;padding-bottom:var(--emw--spacing-small, 12px);gap:var(--emw--spacing-small, 12px)}.TransactionHistoryBox{display:flex;flex-direction:column;height:65px;cursor:pointer;width:50%;background-color:var(--emw--color-grey-100, #F8F8F8);border-radius:6px;min-width:150px;justify-content:center;align-items:center;gap:5px}.BoxTile{font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-grey-10, #111)}.BoxValue{font-weight:var(--emw--font-weight-semibold, 500);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-grey-290, #666)}.TransactionHistoryEmptyState{width:100%;display:flex;align-items:center;font-size:var(--emw--font-size-medium, 14px);flex-direction:column;color:var(--emw--color-grey-290, #666);padding-top:50px;gap:20px}@container history-page (max-width: 750px){.TransactionHistoryWidget{--emw--font-size-medium:var(--emw--font-size-large, 16px)}.TransactionHistoryFilter{flex-direction:column}.TransactionHistoryDateFilter{margin-left:unset}.TransactionHistoryBox{min-width:unset}.TransactionHistorySummary,.TransactionHistoryDateFilter{width:100%}}");
106
+ }
107
+ function lt(n) {
108
+ let t, e, o = (
109
+ /*$_*/
110
+ n[28]("transactionLifetimeDeposit") + ""
111
+ ), y, g, u, d, s = (
112
+ /*statistic*/
113
+ n[23] && rt(n)
114
+ );
115
+ return {
116
+ c() {
117
+ t = T("div"), e = T("span"), y = z(o), g = k(), s && s.c(), E(e, "class", "BoxTile"), E(t, "class", "TransactionHistoryBox tooltip-wrapper");
118
+ },
119
+ m(h, p) {
120
+ Y(h, t, p), m(t, e), m(e, y), m(t, g), s && s.m(t, null), u || (d = [
121
+ G(
122
+ t,
123
+ "mouseenter",
124
+ /*mouseenter_handler*/
125
+ n[32]
126
+ ),
127
+ G(
128
+ t,
129
+ "mouseleave",
130
+ /*hideTooltip*/
131
+ n[30]
132
+ )
133
+ ], u = !0);
134
+ },
135
+ p(h, p) {
136
+ p[0] & /*$_*/
137
+ 268435456 && o !== (o = /*$_*/
138
+ h[28]("transactionLifetimeDeposit") + "") && M(y, o), /*statistic*/
139
+ h[23] ? s ? s.p(h, p) : (s = rt(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
140
+ },
141
+ d(h) {
142
+ h && j(t), s && s.d(), u = !1, yt(d);
143
+ }
144
+ };
145
+ }
146
+ function rt(n) {
147
+ let t, e = (
148
+ /*statistic*/
149
+ n[23].depositSum + ""
150
+ ), o, y, g;
151
+ return {
152
+ c() {
153
+ t = T("span"), o = z(e), y = k(), g = z(
154
+ /*currency*/
155
+ n[11]
156
+ ), E(t, "class", "BoxValue");
157
+ },
158
+ m(u, d) {
159
+ Y(u, t, d), m(t, o), m(t, y), m(t, g);
160
+ },
161
+ p(u, d) {
162
+ d[0] & /*statistic*/
163
+ 8388608 && e !== (e = /*statistic*/
164
+ u[23].depositSum + "") && M(o, e), d[0] & /*currency*/
165
+ 2048 && M(
166
+ g,
167
+ /*currency*/
168
+ u[11]
169
+ );
170
+ },
171
+ d(u) {
172
+ u && j(t);
173
+ }
174
+ };
175
+ }
176
+ function ct(n) {
177
+ let t, e, o = (
178
+ /*$_*/
179
+ n[28]("transactionNetProfit") + ""
180
+ ), y, g, u, d, s = (
181
+ /*statistic*/
182
+ n[23] && ft(n)
183
+ );
184
+ return {
185
+ c() {
186
+ t = T("div"), e = T("span"), y = z(o), g = k(), s && s.c(), E(e, "class", "BoxTile"), E(t, "class", "TransactionHistoryBox tooltip-wrapper");
187
+ },
188
+ m(h, p) {
189
+ Y(h, t, p), m(t, e), m(e, y), m(t, g), s && s.m(t, null), u || (d = [
190
+ G(
191
+ t,
192
+ "mouseenter",
193
+ /*mouseenter_handler_1*/
194
+ n[33]
195
+ ),
196
+ G(
197
+ t,
198
+ "mouseleave",
199
+ /*hideTooltip*/
200
+ n[30]
201
+ )
202
+ ], u = !0);
203
+ },
204
+ p(h, p) {
205
+ p[0] & /*$_*/
206
+ 268435456 && o !== (o = /*$_*/
207
+ h[28]("transactionNetProfit") + "") && M(y, o), /*statistic*/
208
+ h[23] ? s ? s.p(h, p) : (s = ft(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
209
+ },
210
+ d(h) {
211
+ h && j(t), s && s.d(), u = !1, yt(d);
212
+ }
213
+ };
214
+ }
215
+ function ft(n) {
216
+ let t, e = (
217
+ /*statistic*/
218
+ n[23].profitSum + ""
219
+ ), o, y, g;
220
+ return {
221
+ c() {
222
+ t = T("span"), o = z(e), y = k(), g = z(
223
+ /*currency*/
224
+ n[11]
225
+ ), E(t, "class", "BoxValue");
226
+ },
227
+ m(u, d) {
228
+ Y(u, t, d), m(t, o), m(t, y), m(t, g);
229
+ },
230
+ p(u, d) {
231
+ d[0] & /*statistic*/
232
+ 8388608 && e !== (e = /*statistic*/
233
+ u[23].profitSum + "") && M(o, e), d[0] & /*currency*/
234
+ 2048 && M(
235
+ g,
236
+ /*currency*/
237
+ u[11]
238
+ );
239
+ },
240
+ d(u) {
241
+ u && j(t);
242
+ }
243
+ };
244
+ }
245
+ function ut(n) {
246
+ let t;
247
+ return {
248
+ c() {
249
+ t = T("cashier-pagination"), l(
250
+ t,
251
+ "totalpages",
252
+ /*totalPages*/
253
+ n[21]
254
+ );
255
+ },
256
+ m(e, o) {
257
+ Y(e, t, o);
258
+ },
259
+ p(e, o) {
260
+ o[0] & /*totalPages*/
261
+ 2097152 && l(
262
+ t,
263
+ "totalpages",
264
+ /*totalPages*/
265
+ e[21]
266
+ );
267
+ },
268
+ d(e) {
269
+ e && j(t);
270
+ }
271
+ };
272
+ }
273
+ function mt(n) {
274
+ let t, e, o, y, g = (
275
+ /*$_*/
276
+ n[28]("noTransactionData") + ""
277
+ ), u, d;
278
+ return e = new Vt({}), {
279
+ c() {
280
+ t = T("div"), ht(e.$$.fragment), o = k(), y = T("span"), u = z(g), E(t, "class", "TransactionHistoryEmptyState");
281
+ },
282
+ m(s, h) {
283
+ Y(s, t, h), dt(e, t, null), m(t, o), m(t, y), m(y, u), d = !0;
284
+ },
285
+ p(s, h) {
286
+ (!d || h[0] & /*$_*/
287
+ 268435456) && g !== (g = /*$_*/
288
+ s[28]("noTransactionData") + "") && M(u, g);
289
+ },
290
+ i(s) {
291
+ d || (U(e.$$.fragment, s), d = !0);
292
+ },
293
+ o(s) {
294
+ q(e.$$.fragment, s), d = !1;
295
+ },
296
+ d(s) {
297
+ s && j(t), gt(e);
298
+ }
299
+ };
300
+ }
301
+ function qt(n) {
302
+ let t, e, o, y, g = (
303
+ /*$_*/
304
+ n[28](
305
+ /*title*/
306
+ n[6]
307
+ ) + ""
308
+ ), u, d, s, h, p, N, R, C, S, P, f, F, W, O, A, L, r, D = (
309
+ /*showlifetimedeposit*/
310
+ n[13] === "true" && lt(n)
311
+ ), H = (
312
+ /*shownetprofit*/
313
+ n[14] === "true" && ct(n)
314
+ ), _ = (
315
+ /*totalPages*/
316
+ n[21] && ut(n)
317
+ ), w = (
318
+ /*totalPages*/
319
+ n[21] === 0 && mt(n)
320
+ );
321
+ return L = new Rt({
322
+ props: {
323
+ text: (
324
+ /*tooltipText*/
325
+ n[24]
326
+ ),
327
+ top: (
328
+ /*tooltipTop*/
329
+ n[26]
330
+ ),
331
+ left: (
332
+ /*tooltipLeft*/
333
+ n[27]
334
+ ),
335
+ visible: (
336
+ /*tooltipVisible*/
337
+ n[25]
338
+ )
339
+ }
340
+ }), {
341
+ c() {
342
+ t = T("div"), e = T("cashier-header"), o = T("div"), y = T("span"), u = z(g), d = k(), s = T("section"), h = T("section"), p = T("section"), D && D.c(), N = k(), H && H.c(), R = k(), C = T("section"), S = T("transaction-history-calendar"), P = k(), f = T("cashier-transaction-history"), W = k(), _ && _.c(), O = k(), w && w.c(), A = k(), ht(L.$$.fragment), E(o, "slot", "title"), E(o, "class", "CashierHeaderTitle"), l(e, "class", "Header"), l(
343
+ e,
344
+ "lang",
345
+ /*lang*/
346
+ n[3]
347
+ ), l(
348
+ e,
349
+ "translationurl",
350
+ /*translationurl*/
351
+ n[4]
352
+ ), l(
353
+ e,
354
+ "clientstylingurl",
355
+ /*clientstylingurl*/
356
+ n[10]
357
+ ), l(
358
+ e,
359
+ "clientstyling",
360
+ /*clientstyling*/
361
+ n[9]
362
+ ), l(
363
+ e,
364
+ "showclosebutton",
365
+ /*showclosebutton*/
366
+ n[5]
367
+ ), E(p, "class", "TransactionHistorySummary"), l(
368
+ S,
369
+ "lang",
370
+ /*lang*/
371
+ n[3]
372
+ ), l(
373
+ S,
374
+ "fromdate",
375
+ /*fromDate*/
376
+ n[18]
377
+ ), l(
378
+ S,
379
+ "todate",
380
+ /*toDate*/
381
+ n[19]
382
+ ), E(C, "class", "TransactionHistoryDateFilter"), E(h, "class", "TransactionHistoryFilter"), l(
383
+ f,
384
+ "lang",
385
+ /*lang*/
386
+ n[3]
387
+ ), l(
388
+ f,
389
+ "translationurl",
390
+ /*translationurl*/
391
+ n[4]
392
+ ), l(
393
+ f,
394
+ "endpoint",
395
+ /*endpoint*/
396
+ n[1]
397
+ ), l(
398
+ f,
399
+ "customerid",
400
+ /*customerid*/
401
+ n[2]
402
+ ), l(
403
+ f,
404
+ "clientstylingurl",
405
+ /*clientstylingurl*/
406
+ n[10]
407
+ ), l(
408
+ f,
409
+ "clientstyling",
410
+ /*clientstyling*/
411
+ n[9]
412
+ ), l(
413
+ f,
414
+ "txncount",
415
+ /*txncount*/
416
+ n[7]
417
+ ), l(
418
+ f,
419
+ "session",
420
+ /*session*/
421
+ n[0]
422
+ ), l(
423
+ f,
424
+ "columns",
425
+ /*columns*/
426
+ n[8]
427
+ ), l(
428
+ f,
429
+ "isshorttransactionhistory",
430
+ /*isshorttransactionhistory*/
431
+ n[12]
432
+ ), l(
433
+ f,
434
+ "dateformat",
435
+ /*dateformat*/
436
+ n[15]
437
+ ), l(
438
+ f,
439
+ "datetimeformat",
440
+ /*datetimeformat*/
441
+ n[16]
442
+ ), l(f, "page", F = `${+/*page*/
443
+ n[20] - 1}`), l(
444
+ f,
445
+ "fromdate",
446
+ /*fromDate*/
447
+ n[18]
448
+ ), l(
449
+ f,
450
+ "todate",
451
+ /*toDate*/
452
+ n[19]
453
+ ), l(
454
+ f,
455
+ "calculateprofit",
456
+ /*calculateProfit*/
457
+ n[22]
458
+ ), E(s, "class", "TransactionHistoryBody"), E(t, "class", "TransactionHistoryWidget");
459
+ },
460
+ m(a, c) {
461
+ Y(a, t, c), m(t, e), m(e, o), m(o, y), m(y, u), m(t, d), m(t, s), m(s, h), m(h, p), D && D.m(p, null), m(p, N), H && H.m(p, null), m(h, R), m(h, C), m(C, S), m(s, P), m(s, f), m(s, W), _ && _.m(s, null), m(s, O), w && w.m(s, null), m(s, A), dt(L, s, null), n[34](t), r = !0;
462
+ },
463
+ p(a, c) {
464
+ (!r || c[0] & /*$_, title*/
465
+ 268435520) && g !== (g = /*$_*/
466
+ a[28](
467
+ /*title*/
468
+ a[6]
469
+ ) + "") && M(u, g), (!r || c[0] & /*lang*/
470
+ 8) && l(
471
+ e,
472
+ "lang",
473
+ /*lang*/
474
+ a[3]
475
+ ), (!r || c[0] & /*translationurl*/
476
+ 16) && l(
477
+ e,
478
+ "translationurl",
479
+ /*translationurl*/
480
+ a[4]
481
+ ), (!r || c[0] & /*clientstylingurl*/
482
+ 1024) && l(
483
+ e,
484
+ "clientstylingurl",
485
+ /*clientstylingurl*/
486
+ a[10]
487
+ ), (!r || c[0] & /*clientstyling*/
488
+ 512) && l(
489
+ e,
490
+ "clientstyling",
491
+ /*clientstyling*/
492
+ a[9]
493
+ ), (!r || c[0] & /*showclosebutton*/
494
+ 32) && l(
495
+ e,
496
+ "showclosebutton",
497
+ /*showclosebutton*/
498
+ a[5]
499
+ ), /*showlifetimedeposit*/
500
+ a[13] === "true" ? D ? D.p(a, c) : (D = lt(a), D.c(), D.m(p, N)) : D && (D.d(1), D = null), /*shownetprofit*/
501
+ a[14] === "true" ? H ? H.p(a, c) : (H = ct(a), H.c(), H.m(p, null)) : H && (H.d(1), H = null), (!r || c[0] & /*lang*/
502
+ 8) && l(
503
+ S,
504
+ "lang",
505
+ /*lang*/
506
+ a[3]
507
+ ), (!r || c[0] & /*fromDate*/
508
+ 262144) && l(
509
+ S,
510
+ "fromdate",
511
+ /*fromDate*/
512
+ a[18]
513
+ ), (!r || c[0] & /*toDate*/
514
+ 524288) && l(
515
+ S,
516
+ "todate",
517
+ /*toDate*/
518
+ a[19]
519
+ ), (!r || c[0] & /*lang*/
520
+ 8) && l(
521
+ f,
522
+ "lang",
523
+ /*lang*/
524
+ a[3]
525
+ ), (!r || c[0] & /*translationurl*/
526
+ 16) && l(
527
+ f,
528
+ "translationurl",
529
+ /*translationurl*/
530
+ a[4]
531
+ ), (!r || c[0] & /*endpoint*/
532
+ 2) && l(
533
+ f,
534
+ "endpoint",
535
+ /*endpoint*/
536
+ a[1]
537
+ ), (!r || c[0] & /*customerid*/
538
+ 4) && l(
539
+ f,
540
+ "customerid",
541
+ /*customerid*/
542
+ a[2]
543
+ ), (!r || c[0] & /*clientstylingurl*/
544
+ 1024) && l(
545
+ f,
546
+ "clientstylingurl",
547
+ /*clientstylingurl*/
548
+ a[10]
549
+ ), (!r || c[0] & /*clientstyling*/
550
+ 512) && l(
551
+ f,
552
+ "clientstyling",
553
+ /*clientstyling*/
554
+ a[9]
555
+ ), (!r || c[0] & /*txncount*/
556
+ 128) && l(
557
+ f,
558
+ "txncount",
559
+ /*txncount*/
560
+ a[7]
561
+ ), (!r || c[0] & /*session*/
562
+ 1) && l(
563
+ f,
564
+ "session",
565
+ /*session*/
566
+ a[0]
567
+ ), (!r || c[0] & /*columns*/
568
+ 256) && l(
569
+ f,
570
+ "columns",
571
+ /*columns*/
572
+ a[8]
573
+ ), (!r || c[0] & /*isshorttransactionhistory*/
574
+ 4096) && l(
575
+ f,
576
+ "isshorttransactionhistory",
577
+ /*isshorttransactionhistory*/
578
+ a[12]
579
+ ), (!r || c[0] & /*dateformat*/
580
+ 32768) && l(
581
+ f,
582
+ "dateformat",
583
+ /*dateformat*/
584
+ a[15]
585
+ ), (!r || c[0] & /*datetimeformat*/
586
+ 65536) && l(
587
+ f,
588
+ "datetimeformat",
589
+ /*datetimeformat*/
590
+ a[16]
591
+ ), (!r || c[0] & /*page*/
592
+ 1048576 && F !== (F = `${+/*page*/
593
+ a[20] - 1}`)) && l(f, "page", F), (!r || c[0] & /*fromDate*/
594
+ 262144) && l(
595
+ f,
596
+ "fromdate",
597
+ /*fromDate*/
598
+ a[18]
599
+ ), (!r || c[0] & /*toDate*/
600
+ 524288) && l(
601
+ f,
602
+ "todate",
603
+ /*toDate*/
604
+ a[19]
605
+ ), (!r || c[0] & /*calculateProfit*/
606
+ 4194304) && l(
607
+ f,
608
+ "calculateprofit",
609
+ /*calculateProfit*/
610
+ a[22]
611
+ ), /*totalPages*/
612
+ a[21] ? _ ? _.p(a, c) : (_ = ut(a), _.c(), _.m(s, O)) : _ && (_.d(1), _ = null), /*totalPages*/
613
+ a[21] === 0 ? w ? (w.p(a, c), c[0] & /*totalPages*/
614
+ 2097152 && U(w, 1)) : (w = mt(a), w.c(), U(w, 1), w.m(s, A)) : w && (Ft(), q(w, 1, 1, () => {
615
+ w = null;
616
+ }), Mt());
617
+ const I = {};
618
+ c[0] & /*tooltipText*/
619
+ 16777216 && (I.text = /*tooltipText*/
620
+ a[24]), c[0] & /*tooltipTop*/
621
+ 67108864 && (I.top = /*tooltipTop*/
622
+ a[26]), c[0] & /*tooltipLeft*/
623
+ 134217728 && (I.left = /*tooltipLeft*/
624
+ a[27]), c[0] & /*tooltipVisible*/
625
+ 33554432 && (I.visible = /*tooltipVisible*/
626
+ a[25]), L.$set(I);
627
+ },
628
+ i(a) {
629
+ r || (U(w), U(L.$$.fragment, a), r = !0);
630
+ },
631
+ o(a) {
632
+ q(w), q(L.$$.fragment, a), r = !1;
633
+ },
634
+ d(a) {
635
+ a && j(t), D && D.d(), H && H.d(), _ && _.d(), w && w.d(), gt(L), n[34](null);
636
+ }
637
+ };
638
+ }
639
+ function Gt(n, t, e) {
640
+ let o;
641
+ Nt(n, At, (i) => e(28, o = i));
642
+ let { session: y } = t, { endpoint: g } = t, { customerid: u } = t, { lang: d = "en" } = t, { translationurl: s } = t, { showclosebutton: h = "false" } = t, { title: p = "transactionHistoryTitle" } = t, { txncount: N } = t, { columns: R = "TypeIcon,Date,Amount,Status" } = t, { clientstyling: C = "" } = t, { clientstylingurl: S = "" } = t, { mbsource: P } = t, { currency: f } = t, { isshorttransactionhistory: F = "false" } = t, { showlifetimedeposit: W = "true" } = t, { shownetprofit: O = "true" } = t, { dateformat: A = "DD.MM.YYYY" } = t, { datetimeformat: L = "DD.MM.YYYY HH:mm:ss" } = t, r, D = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), H = (/* @__PURE__ */ new Date()).toISOString(), _ = 1, w, a, c, I = "", J = !1, Q = 0, Z = 0;
643
+ const K = (i, v) => {
644
+ const B = i.currentTarget.getBoundingClientRect(), Et = 250, et = 10;
645
+ let V = B.left + B.width / 2, X;
646
+ const St = B.top;
647
+ window.innerHeight - B.bottom > St ? X = B.bottom + window.scrollY + 8 : X = B.top + window.scrollY - 8;
648
+ const nt = Et / 2, it = et + nt, st = window.innerWidth - et - nt;
649
+ V < it ? V = it : V > st && (V = st), e(24, I = v), e(26, Q = X), e(27, Z = V), e(25, J = !!v.trim().length);
650
+ }, pt = () => {
651
+ e(25, J = !1);
652
+ };
653
+ Pt(async () => (document.addEventListener("pageChange", $), document.addEventListener("dateChange", x), window.addEventListener("message", tt, !1), () => {
654
+ document.removeEventListener("dateChange", x), document.removeEventListener("pageChange", $), window.removeEventListener("message", tt, !1);
655
+ })), Object.keys(at).forEach((i) => {
656
+ ot(i, at[i]);
657
+ });
658
+ const wt = () => {
659
+ let i = s;
660
+ if (i)
661
+ return fetch(i).then((v) => v.json()).then((v) => {
662
+ Object.keys(v).forEach((B) => {
663
+ ot(B, v[B]);
664
+ });
665
+ }).catch((v) => {
666
+ console.log(v);
667
+ });
668
+ }, x = (i) => {
669
+ e(18, D = i.detail.dates[0]), e(19, H = i.detail.dates[1]), e(20, _ = 1), e(22, a = "false");
670
+ }, $ = (i) => {
671
+ e(20, _ = i.detail.page), e(22, a = "false");
672
+ }, Tt = (i) => {
673
+ e(21, w = Math.ceil(i / N));
674
+ }, _t = (i) => {
675
+ i && e(23, c = i.find((v) => v.currency === f));
676
+ }, tt = (i) => {
677
+ switch (i.data.type) {
678
+ case "TransactionsLoaded":
679
+ Tt(i.data.total), _t(i.data.statistic);
680
+ break;
681
+ }
682
+ }, bt = (i) => K(i, o("transactionLifetimeDepositTooltip")), Dt = (i) => K(i, o("transactionNetProfitTooltip"));
683
+ function Ht(i) {
684
+ Ot[i ? "unshift" : "push"](() => {
685
+ r = i, e(17, r);
686
+ });
687
+ }
688
+ return n.$$set = (i) => {
689
+ "session" in i && e(0, y = i.session), "endpoint" in i && e(1, g = i.endpoint), "customerid" in i && e(2, u = i.customerid), "lang" in i && e(3, d = i.lang), "translationurl" in i && e(4, s = i.translationurl), "showclosebutton" in i && e(5, h = i.showclosebutton), "title" in i && e(6, p = i.title), "txncount" in i && e(7, N = i.txncount), "columns" in i && e(8, R = i.columns), "clientstyling" in i && e(9, C = i.clientstyling), "clientstylingurl" in i && e(10, S = i.clientstylingurl), "mbsource" in i && e(31, P = i.mbsource), "currency" in i && e(11, f = i.currency), "isshorttransactionhistory" in i && e(12, F = i.isshorttransactionhistory), "showlifetimedeposit" in i && e(13, W = i.showlifetimedeposit), "shownetprofit" in i && e(14, O = i.shownetprofit), "dateformat" in i && e(15, A = i.dateformat), "datetimeformat" in i && e(16, L = i.datetimeformat);
690
+ }, n.$$.update = () => {
691
+ n.$$.dirty[0] & /*clientstyling, customStylingContainer*/
692
+ 131584 && C && r && Yt(r, C), n.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
693
+ 132096 && S && r && jt(r, S), n.$$.dirty[0] & /*customStylingContainer*/
694
+ 131072 | n.$$.dirty[1] & /*mbsource*/
695
+ 1 && P && r && Wt(r, `${P}.Style`), n.$$.dirty[0] & /*translationurl*/
696
+ 16 && s && wt(), n.$$.dirty[0] & /*shownetprofit, showlifetimedeposit*/
697
+ 24576 && (O || W) && e(22, a = "true");
698
+ }, [
699
+ y,
700
+ g,
701
+ u,
702
+ d,
703
+ s,
704
+ h,
705
+ p,
706
+ N,
707
+ R,
708
+ C,
709
+ S,
710
+ f,
711
+ F,
712
+ W,
713
+ O,
714
+ A,
715
+ L,
716
+ r,
717
+ D,
718
+ H,
719
+ _,
720
+ w,
721
+ a,
722
+ c,
723
+ I,
724
+ J,
725
+ Q,
726
+ Z,
727
+ o,
728
+ K,
729
+ pt,
730
+ P,
731
+ bt,
732
+ Dt,
733
+ Ht
734
+ ];
735
+ }
736
+ class Jt extends Ct {
737
+ constructor(t) {
738
+ super(), Bt(
739
+ this,
740
+ t,
741
+ Gt,
742
+ qt,
743
+ It,
744
+ {
745
+ session: 0,
746
+ endpoint: 1,
747
+ customerid: 2,
748
+ lang: 3,
749
+ translationurl: 4,
750
+ showclosebutton: 5,
751
+ title: 6,
752
+ txncount: 7,
753
+ columns: 8,
754
+ clientstyling: 9,
755
+ clientstylingurl: 10,
756
+ mbsource: 31,
757
+ currency: 11,
758
+ isshorttransactionhistory: 12,
759
+ showlifetimedeposit: 13,
760
+ shownetprofit: 14,
761
+ dateformat: 15,
762
+ datetimeformat: 16
763
+ },
764
+ Ut,
765
+ [-1, -1]
766
+ );
767
+ }
768
+ get session() {
769
+ return this.$$.ctx[0];
770
+ }
771
+ set session(t) {
772
+ this.$$set({ session: t }), b();
773
+ }
774
+ get endpoint() {
775
+ return this.$$.ctx[1];
776
+ }
777
+ set endpoint(t) {
778
+ this.$$set({ endpoint: t }), b();
779
+ }
780
+ get customerid() {
781
+ return this.$$.ctx[2];
782
+ }
783
+ set customerid(t) {
784
+ this.$$set({ customerid: t }), b();
785
+ }
786
+ get lang() {
787
+ return this.$$.ctx[3];
788
+ }
789
+ set lang(t) {
790
+ this.$$set({ lang: t }), b();
791
+ }
792
+ get translationurl() {
793
+ return this.$$.ctx[4];
794
+ }
795
+ set translationurl(t) {
796
+ this.$$set({ translationurl: t }), b();
797
+ }
798
+ get showclosebutton() {
799
+ return this.$$.ctx[5];
800
+ }
801
+ set showclosebutton(t) {
802
+ this.$$set({ showclosebutton: t }), b();
803
+ }
804
+ get title() {
805
+ return this.$$.ctx[6];
806
+ }
807
+ set title(t) {
808
+ this.$$set({ title: t }), b();
809
+ }
810
+ get txncount() {
811
+ return this.$$.ctx[7];
812
+ }
813
+ set txncount(t) {
814
+ this.$$set({ txncount: t }), b();
815
+ }
816
+ get columns() {
817
+ return this.$$.ctx[8];
818
+ }
819
+ set columns(t) {
820
+ this.$$set({ columns: t }), b();
821
+ }
822
+ get clientstyling() {
823
+ return this.$$.ctx[9];
824
+ }
825
+ set clientstyling(t) {
826
+ this.$$set({ clientstyling: t }), b();
827
+ }
828
+ get clientstylingurl() {
829
+ return this.$$.ctx[10];
830
+ }
831
+ set clientstylingurl(t) {
832
+ this.$$set({ clientstylingurl: t }), b();
833
+ }
834
+ get mbsource() {
835
+ return this.$$.ctx[31];
836
+ }
837
+ set mbsource(t) {
838
+ this.$$set({ mbsource: t }), b();
839
+ }
840
+ get currency() {
841
+ return this.$$.ctx[11];
842
+ }
843
+ set currency(t) {
844
+ this.$$set({ currency: t }), b();
845
+ }
846
+ get isshorttransactionhistory() {
847
+ return this.$$.ctx[12];
848
+ }
849
+ set isshorttransactionhistory(t) {
850
+ this.$$set({ isshorttransactionhistory: t }), b();
851
+ }
852
+ get showlifetimedeposit() {
853
+ return this.$$.ctx[13];
854
+ }
855
+ set showlifetimedeposit(t) {
856
+ this.$$set({ showlifetimedeposit: t }), b();
857
+ }
858
+ get shownetprofit() {
859
+ return this.$$.ctx[14];
860
+ }
861
+ set shownetprofit(t) {
862
+ this.$$set({ shownetprofit: t }), b();
863
+ }
864
+ get dateformat() {
865
+ return this.$$.ctx[15];
866
+ }
867
+ set dateformat(t) {
868
+ this.$$set({ dateformat: t }), b();
869
+ }
870
+ get datetimeformat() {
871
+ return this.$$.ctx[16];
872
+ }
873
+ set datetimeformat(t) {
874
+ this.$$set({ datetimeformat: t }), b();
875
+ }
876
+ }
877
+ Lt(Jt, { session: {}, endpoint: {}, customerid: {}, lang: {}, translationurl: {}, showclosebutton: {}, title: {}, txncount: {}, columns: {}, clientstyling: {}, clientstylingurl: {}, mbsource: {}, currency: {}, isshorttransactionhistory: {}, showlifetimedeposit: {}, shownetprofit: {}, dateformat: {}, datetimeformat: {} }, [], [], !0);
878
+ export {
879
+ Jt as T
880
+ };