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