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