@everymatrix/transaction-history-page 0.0.2 → 0.0.4

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