@everymatrix/transaction-history-page 0.2.8 → 0.2.10
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.
- package/components/{CashierHeader-O2SBlx9E.js → CashierHeader-Cd_IQ7mb.js} +1144 -1148
- package/components/CashierHeader-fdmNbczy.cjs +21 -0
- package/components/{CashierHeader-D2AS2Agh.js → CashierHeader-qz_r8eKP.js} +1121 -1125
- package/components/{CashierPagination-Diod1lF7.js → CashierPagination-DV3fcnSK.js} +17 -17
- package/components/{CashierPagination-n1Rdi6TE.js → CashierPagination-Dtn30JhD.js} +17 -17
- package/components/{CashierPagination-Bns0dhAx.cjs → CashierPagination-Dy5h-yN8.cjs} +1 -1
- package/components/{CashierTransactionHistory-usXO5b0O.js → CashierTransactionHistory-BMaf6Z0P.js} +71 -71
- package/components/{CashierTransactionHistory-CWYRJ-oJ.js → CashierTransactionHistory-Boo_B61Z.js} +71 -71
- package/components/{CashierTransactionHistory-D0veSOum.cjs → CashierTransactionHistory-DOgBFoAF.cjs} +1 -1
- package/components/{EmptyStateIcon-Bvkg_gUP.js → EmptyStateIcon-Q9-7CJOB.js} +6 -6
- package/components/{EmptyStateIcon-CG990aV4.cjs → EmptyStateIcon-idY3pDBO.cjs} +1 -1
- package/components/{EmptyStateIcon-Cnh2o5D9.js → EmptyStateIcon-jDakZhVG.js} +6 -6
- package/components/{Tooltip-D0aX_eaK.js → Tooltip-DKtozLhD.js} +15 -15
- package/components/{Tooltip-CMYgN8-J.cjs → Tooltip-DhUkqLNN.cjs} +1 -1
- package/components/{Tooltip-DwUjXU5S.js → Tooltip-Dr1XhRao.js} +15 -15
- package/components/{TransactionHistoryCalendar-8sJGcA34.js → TransactionHistoryCalendar-DR03MPW1.js} +85 -85
- package/components/{TransactionHistoryCalendar-xg8S4fBR.cjs → TransactionHistoryCalendar-DV3uIclO.cjs} +1 -1
- package/components/{TransactionHistoryCalendar-D2S9yWPU.js → TransactionHistoryCalendar-DvAP3GwO.js} +86 -86
- package/components/{TransactionHistoryPage-DbvtP_wu.js → TransactionHistoryPage-BWenQ53p.js} +71 -71
- package/components/{TransactionHistoryPage-DDog4PKt.cjs → TransactionHistoryPage-CShwsh-h.cjs} +1 -1
- package/components/{TransactionHistoryPage-XoXdz3B9.js → TransactionHistoryPage-DQmmXNuZ.js} +72 -72
- package/components/{TxnStatusIcon-vTgFujrK.cjs → TxnStatusIcon-BM7Yn9hb.cjs} +1 -1
- package/components/{TxnStatusIcon-BhenBY5o.js → TxnStatusIcon-CmwEsXbv.js} +19 -19
- package/components/{TxnStatusIcon-CYWQkX_B.js → TxnStatusIcon-_G33oy6q.js} +19 -19
- package/components/{TxnTypeIcons-D2uk1QXc.js → TxnTypeIcons-BwDBMPnO.js} +14 -14
- package/components/{TxnTypeIcons-waunbeLw.cjs → TxnTypeIcons-ClBY0FSw.cjs} +1 -1
- package/components/{TxnTypeIcons-k1qbeCHp.js → TxnTypeIcons-rLnLSUqr.js} +14 -14
- package/es2015/transaction-history-page.cjs +1 -1
- package/es2015/transaction-history-page.js +1 -1
- package/esnext/transaction-history-page.js +1 -1
- package/package.json +1 -1
- package/stencil/index-242ac81a-Bl2OSy8h.js +538 -0
- package/stencil/index-242ac81a-Czg480dJ.js +554 -0
- package/stencil/index-242ac81a-DDPF_SYN.cjs +1 -0
- package/stencil/{ui-image-2ff23cd5-BHGIWJop.cjs → ui-image-2ff23cd5-BU5r6gJa.cjs} +1 -1
- package/stencil/{ui-image-2ff23cd5-DCLQ0SIO.js → ui-image-2ff23cd5-CBX1vdMZ.js} +1 -1
- package/stencil/{ui-image-2ff23cd5-D0rXudCW.js → ui-image-2ff23cd5-DZZYCsK1.js} +1 -1
- package/stencil/{ui-image-DmRWEjrp.js → ui-image-BhXCYysO.js} +1 -1
- package/stencil/{ui-image-C0Jfm_O4.js → ui-image-CVwHW7a_.js} +1 -1
- package/stencil/{ui-image-EfKW3THf.cjs → ui-image-DrDalrqH.cjs} +1 -1
- package/stencil/{ui-image_2-CLk629jW.cjs → ui-image_2-Bsl4RJfi.cjs} +1 -1
- package/stencil/{ui-image_2-B21W_djK.js → ui-image_2-ID_1Oi3k.js} +2 -2
- package/stencil/{ui-image_2-VgK3B8gQ.js → ui-image_2-exO7RXKL.js} +2 -2
- package/components/CashierHeader-BHRa04VL.cjs +0 -8
- package/stencil/index-242ac81a-BqeIndhr.js +0 -554
- package/stencil/index-242ac81a-CI4JxPRf.js +0 -538
- package/stencil/index-242ac81a-CjjM4VND.cjs +0 -1
package/components/{TransactionHistoryPage-DbvtP_wu.js → TransactionHistoryPage-BWenQ53p.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as Kt } from "./Tooltip-
|
|
3
|
-
import { E as
|
|
4
|
-
import { d as rt } from "./CashierTransactionHistory-
|
|
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-BMaf6Z0P.js";
|
|
5
5
|
It({
|
|
6
6
|
fallbackLocale: "en"
|
|
7
7
|
});
|
|
@@ -50,7 +50,7 @@ if (typeof window < "u") {
|
|
|
50
50
|
}
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
customElements.define = e(customElements.define), import("./CashierHeader-
|
|
53
|
+
customElements.define = e(customElements.define), import("./CashierHeader-qz_r8eKP.js").then((t) => t.X).then(({ default: t }) => {
|
|
54
54
|
!customElements.get("cashier-header") && customElements.define("cashier-header", t.element);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
@@ -66,7 +66,7 @@ if (typeof window < "u") {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
-
customElements.define = e(customElements.define), import("./TransactionHistoryCalendar-
|
|
69
|
+
customElements.define = e(customElements.define), import("./TransactionHistoryCalendar-DR03MPW1.js").then(({ default: t }) => {
|
|
70
70
|
!customElements.get("transaction-history-calendar") && customElements.define("transaction-history-calendar", t.element);
|
|
71
71
|
});
|
|
72
72
|
}
|
|
@@ -82,7 +82,7 @@ if (typeof window < "u") {
|
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
};
|
|
85
|
-
customElements.define = e(customElements.define), import("./CashierTransactionHistory-
|
|
85
|
+
customElements.define = e(customElements.define), import("./CashierTransactionHistory-BMaf6Z0P.js").then((t) => t.C).then(({ default: t }) => {
|
|
86
86
|
!customElements.get("cashier-transaction-history") && customElements.define("cashier-transaction-history", t.element);
|
|
87
87
|
});
|
|
88
88
|
}
|
|
@@ -98,11 +98,11 @@ if (typeof window < "u") {
|
|
|
98
98
|
}
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
-
customElements.define = e(customElements.define), import("./CashierPagination-
|
|
101
|
+
customElements.define = e(customElements.define), import("./CashierPagination-DV3fcnSK.js").then(({ default: t }) => {
|
|
102
102
|
!customElements.get("cashier-pagination") && customElements.define("cashier-pagination", t.element);
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Qt(e) {
|
|
106
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
107
|
}
|
|
108
108
|
function ut(e) {
|
|
@@ -115,7 +115,7 @@ function ut(e) {
|
|
|
115
115
|
), d;
|
|
116
116
|
return {
|
|
117
117
|
c() {
|
|
118
|
-
t = T("cashier-header"), i = T("div"), s = T("span"), d =
|
|
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
119
|
t,
|
|
120
120
|
"lang",
|
|
121
121
|
/*lang*/
|
|
@@ -143,7 +143,7 @@ function ut(e) {
|
|
|
143
143
|
);
|
|
144
144
|
},
|
|
145
145
|
m(r, f) {
|
|
146
|
-
|
|
146
|
+
M(r, t, f), g(t, i), g(i, s), g(s, d);
|
|
147
147
|
},
|
|
148
148
|
p(r, f) {
|
|
149
149
|
f[0] & /*$_, title*/
|
|
@@ -151,7 +151,7 @@ function ut(e) {
|
|
|
151
151
|
r[29](
|
|
152
152
|
/*title*/
|
|
153
153
|
r[6]
|
|
154
|
-
) + "") &&
|
|
154
|
+
) + "") && P(d, h), f[0] & /*lang*/
|
|
155
155
|
8 && o(
|
|
156
156
|
t,
|
|
157
157
|
"lang",
|
|
@@ -184,7 +184,7 @@ function ut(e) {
|
|
|
184
184
|
);
|
|
185
185
|
},
|
|
186
186
|
d(r) {
|
|
187
|
-
r &&
|
|
187
|
+
r && F(t);
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
190
|
}
|
|
@@ -198,10 +198,10 @@ function mt(e) {
|
|
|
198
198
|
);
|
|
199
199
|
return {
|
|
200
200
|
c() {
|
|
201
|
-
t = T("div"), i = T("span"), h =
|
|
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
202
|
},
|
|
203
203
|
m(m, E) {
|
|
204
|
-
|
|
204
|
+
M(m, t, E), g(t, i), g(i, h), g(t, d), l && l.m(t, null), r || (f = [
|
|
205
205
|
V(
|
|
206
206
|
t,
|
|
207
207
|
"mouseenter",
|
|
@@ -219,11 +219,11 @@ function mt(e) {
|
|
|
219
219
|
p(m, E) {
|
|
220
220
|
E[0] & /*$_*/
|
|
221
221
|
536870912 && s !== (s = /*$_*/
|
|
222
|
-
m[29]("transactionLifetimeDeposit") + "") &&
|
|
222
|
+
m[29]("transactionLifetimeDeposit") + "") && P(h, s), /*statistic*/
|
|
223
223
|
m[24] ? l ? l.p(m, E) : (l = dt(m), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
|
|
224
224
|
},
|
|
225
225
|
d(m) {
|
|
226
|
-
m &&
|
|
226
|
+
m && F(t), l && l.d(), r = !1, bt(f);
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
}
|
|
@@ -234,26 +234,26 @@ function dt(e) {
|
|
|
234
234
|
), s, h, d;
|
|
235
235
|
return {
|
|
236
236
|
c() {
|
|
237
|
-
t = T("span"), s =
|
|
237
|
+
t = T("span"), s = N(i), h = C(), d = N(
|
|
238
238
|
/*currency*/
|
|
239
239
|
e[11]
|
|
240
240
|
), L(t, "class", "BoxValue");
|
|
241
241
|
},
|
|
242
242
|
m(r, f) {
|
|
243
|
-
|
|
243
|
+
M(r, t, f), g(t, s), g(t, h), g(t, d);
|
|
244
244
|
},
|
|
245
245
|
p(r, f) {
|
|
246
246
|
f[0] & /*statistic*/
|
|
247
247
|
16777216 && i !== (i = /*statistic*/
|
|
248
|
-
r[24].depositSum + "") &&
|
|
249
|
-
2048 &&
|
|
248
|
+
r[24].depositSum + "") && P(s, i), f[0] & /*currency*/
|
|
249
|
+
2048 && P(
|
|
250
250
|
d,
|
|
251
251
|
/*currency*/
|
|
252
252
|
r[11]
|
|
253
253
|
);
|
|
254
254
|
},
|
|
255
255
|
d(r) {
|
|
256
|
-
r &&
|
|
256
|
+
r && F(t);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
@@ -267,10 +267,10 @@ function ht(e) {
|
|
|
267
267
|
);
|
|
268
268
|
return {
|
|
269
269
|
c() {
|
|
270
|
-
t = T("div"), i = T("span"), h =
|
|
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
271
|
},
|
|
272
272
|
m(m, E) {
|
|
273
|
-
|
|
273
|
+
M(m, t, E), g(t, i), g(i, h), g(t, d), l && l.m(t, null), r || (f = [
|
|
274
274
|
V(
|
|
275
275
|
t,
|
|
276
276
|
"mouseenter",
|
|
@@ -288,11 +288,11 @@ function ht(e) {
|
|
|
288
288
|
p(m, E) {
|
|
289
289
|
E[0] & /*$_*/
|
|
290
290
|
536870912 && s !== (s = /*$_*/
|
|
291
|
-
m[29]("transactionNetProfit") + "") &&
|
|
291
|
+
m[29]("transactionNetProfit") + "") && P(h, s), /*statistic*/
|
|
292
292
|
m[24] ? l ? l.p(m, E) : (l = gt(m), l.c(), l.m(t, null)) : l && (l.d(1), l = null);
|
|
293
293
|
},
|
|
294
294
|
d(m) {
|
|
295
|
-
m &&
|
|
295
|
+
m && F(t), l && l.d(), r = !1, bt(f);
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
298
|
}
|
|
@@ -303,26 +303,26 @@ function gt(e) {
|
|
|
303
303
|
), s, h, d;
|
|
304
304
|
return {
|
|
305
305
|
c() {
|
|
306
|
-
t = T("span"), s =
|
|
306
|
+
t = T("span"), s = N(i), h = C(), d = N(
|
|
307
307
|
/*currency*/
|
|
308
308
|
e[11]
|
|
309
309
|
), L(t, "class", "BoxValue");
|
|
310
310
|
},
|
|
311
311
|
m(r, f) {
|
|
312
|
-
|
|
312
|
+
M(r, t, f), g(t, s), g(t, h), g(t, d);
|
|
313
313
|
},
|
|
314
314
|
p(r, f) {
|
|
315
315
|
f[0] & /*statistic*/
|
|
316
316
|
16777216 && i !== (i = /*statistic*/
|
|
317
|
-
r[24].profitSum + "") &&
|
|
318
|
-
2048 &&
|
|
317
|
+
r[24].profitSum + "") && P(s, i), f[0] & /*currency*/
|
|
318
|
+
2048 && P(
|
|
319
319
|
d,
|
|
320
320
|
/*currency*/
|
|
321
321
|
r[11]
|
|
322
322
|
);
|
|
323
323
|
},
|
|
324
324
|
d(r) {
|
|
325
|
-
r &&
|
|
325
|
+
r && F(t);
|
|
326
326
|
}
|
|
327
327
|
};
|
|
328
328
|
}
|
|
@@ -338,7 +338,7 @@ function yt(e) {
|
|
|
338
338
|
);
|
|
339
339
|
},
|
|
340
340
|
m(i, s) {
|
|
341
|
-
|
|
341
|
+
M(i, t, s);
|
|
342
342
|
},
|
|
343
343
|
p(i, s) {
|
|
344
344
|
s[0] & /*totalPages*/
|
|
@@ -350,7 +350,7 @@ function yt(e) {
|
|
|
350
350
|
);
|
|
351
351
|
},
|
|
352
352
|
d(i) {
|
|
353
|
-
i &&
|
|
353
|
+
i && F(t);
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
}
|
|
@@ -359,17 +359,17 @@ function wt(e) {
|
|
|
359
359
|
/*$_*/
|
|
360
360
|
e[29]("noTransactionData") + ""
|
|
361
361
|
), r, f;
|
|
362
|
-
return i = new
|
|
362
|
+
return i = new Xt({}), {
|
|
363
363
|
c() {
|
|
364
|
-
t = T("div"),
|
|
364
|
+
t = T("div"), pt(i.$$.fragment), s = C(), h = T("span"), r = N(d), L(t, "class", "TransactionHistoryEmptyState");
|
|
365
365
|
},
|
|
366
366
|
m(l, m) {
|
|
367
|
-
|
|
367
|
+
M(l, t, m), Tt(i, t, null), g(t, s), g(t, h), g(h, r), f = !0;
|
|
368
368
|
},
|
|
369
369
|
p(l, m) {
|
|
370
370
|
(!f || m[0] & /*$_*/
|
|
371
371
|
536870912) && d !== (d = /*$_*/
|
|
372
|
-
l[29]("noTransactionData") + "") &&
|
|
372
|
+
l[29]("noTransactionData") + "") && P(r, d);
|
|
373
373
|
},
|
|
374
374
|
i(l) {
|
|
375
375
|
f || (W(i.$$.fragment, l), f = !0);
|
|
@@ -378,12 +378,12 @@ function wt(e) {
|
|
|
378
378
|
R(i.$$.fragment, l), f = !1;
|
|
379
379
|
},
|
|
380
380
|
d(l) {
|
|
381
|
-
l &&
|
|
381
|
+
l && F(t), _t(i);
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
385
|
function Zt(e) {
|
|
386
|
-
let t, i, s, h, d, r, f, l, m, E, c, Y, O, z, I,
|
|
386
|
+
let t, i, s, h, d, r, f, l, m, E, c, Y, O, z, I, B, y, D = (
|
|
387
387
|
/*showheader*/
|
|
388
388
|
e[13] === "true" && ut(e)
|
|
389
389
|
), _ = (
|
|
@@ -399,7 +399,7 @@ function Zt(e) {
|
|
|
399
399
|
/*totalPages*/
|
|
400
400
|
e[22] === 0 && wt(e)
|
|
401
401
|
);
|
|
402
|
-
return
|
|
402
|
+
return B = new Kt({
|
|
403
403
|
props: {
|
|
404
404
|
text: (
|
|
405
405
|
/*tooltipText*/
|
|
@@ -420,7 +420,7 @@ function Zt(e) {
|
|
|
420
420
|
}
|
|
421
421
|
}), {
|
|
422
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(),
|
|
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
424
|
m,
|
|
425
425
|
"lang",
|
|
426
426
|
/*lang*/
|
|
@@ -519,7 +519,7 @@ function Zt(e) {
|
|
|
519
519
|
), L(s, "class", "TransactionHistoryBody"), L(t, "class", "TransactionHistoryWidget");
|
|
520
520
|
},
|
|
521
521
|
m(a, u) {
|
|
522
|
-
|
|
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
523
|
},
|
|
524
524
|
p(a, u) {
|
|
525
525
|
/*showheader*/
|
|
@@ -644,9 +644,9 @@ function Zt(e) {
|
|
|
644
644
|
), /*totalPages*/
|
|
645
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
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 && (
|
|
647
|
+
4194304 && W(w, 1)) : (w = wt(a), w.c(), W(w, 1), w.m(s, I)) : w && (qt(), R(w, 1, 1, () => {
|
|
648
648
|
w = null;
|
|
649
|
-
}),
|
|
649
|
+
}), jt());
|
|
650
650
|
const k = {};
|
|
651
651
|
u[0] & /*tooltipText*/
|
|
652
652
|
33554432 && (k.text = /*tooltipText*/
|
|
@@ -656,36 +656,36 @@ function Zt(e) {
|
|
|
656
656
|
268435456 && (k.left = /*tooltipLeft*/
|
|
657
657
|
a[28]), u[0] & /*tooltipVisible*/
|
|
658
658
|
67108864 && (k.visible = /*tooltipVisible*/
|
|
659
|
-
a[26]),
|
|
659
|
+
a[26]), B.$set(k);
|
|
660
660
|
},
|
|
661
661
|
i(a) {
|
|
662
|
-
y || (W(w), W(
|
|
662
|
+
y || (W(w), W(B.$$.fragment, a), y = !0);
|
|
663
663
|
},
|
|
664
664
|
o(a) {
|
|
665
|
-
R(w), R(
|
|
665
|
+
R(w), R(B.$$.fragment, a), y = !1;
|
|
666
666
|
},
|
|
667
667
|
d(a) {
|
|
668
|
-
a &&
|
|
668
|
+
a && F(t), D && D.d(), _ && _.d(), b && b.d(), H && H.d(), w && w.d(), _t(B), e[37](null);
|
|
669
669
|
}
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
672
|
function xt(e, t, i) {
|
|
673
673
|
let s;
|
|
674
|
-
|
|
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:
|
|
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
676
|
const K = (n, S) => {
|
|
677
|
-
const
|
|
678
|
-
let j =
|
|
679
|
-
const zt =
|
|
680
|
-
window.innerHeight -
|
|
681
|
-
const ot =
|
|
682
|
-
j < at ? j = at : j > lt && (j = lt), i(25, x = S), i(27, $ =
|
|
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
683
|
}, Dt = () => {
|
|
684
684
|
i(26, J = !1);
|
|
685
685
|
}, Ht = (n, S) => {
|
|
686
686
|
n && i(19, q = n), S && i(20, U = S);
|
|
687
687
|
};
|
|
688
|
-
|
|
688
|
+
At(async () => (document.addEventListener("pageChange", it), document.addEventListener("dateChange", et), window.addEventListener("message", nt, !1), () => {
|
|
689
689
|
document.removeEventListener("dateChange", et), document.removeEventListener("pageChange", it), window.removeEventListener("message", nt, !1);
|
|
690
690
|
})), Object.keys(ft).forEach((n) => {
|
|
691
691
|
ct(n, ft[n]);
|
|
@@ -694,8 +694,8 @@ function xt(e, t, i) {
|
|
|
694
694
|
let n = l;
|
|
695
695
|
if (n)
|
|
696
696
|
return fetch(n).then((S) => S.json()).then((S) => {
|
|
697
|
-
Object.keys(S).forEach((
|
|
698
|
-
ct(
|
|
697
|
+
Object.keys(S).forEach((v) => {
|
|
698
|
+
ct(v, S[v]);
|
|
699
699
|
});
|
|
700
700
|
}).catch((S) => {
|
|
701
701
|
console.log(S);
|
|
@@ -705,9 +705,9 @@ function xt(e, t, i) {
|
|
|
705
705
|
}, it = (n) => {
|
|
706
706
|
i(21, G = n.detail.page), i(23, A = "false");
|
|
707
707
|
}, kt = (n) => {
|
|
708
|
-
i(22,
|
|
708
|
+
i(22, Q = Math.ceil(n / c));
|
|
709
709
|
}, St = (n) => {
|
|
710
|
-
n && i(24, Z = n.find((S) => S.currency ===
|
|
710
|
+
n && i(24, Z = n.find((S) => S.currency === B));
|
|
711
711
|
}, nt = (n) => {
|
|
712
712
|
switch (n.data.type) {
|
|
713
713
|
case "TransactionsLoaded":
|
|
@@ -715,19 +715,19 @@ function xt(e, t, i) {
|
|
|
715
715
|
break;
|
|
716
716
|
}
|
|
717
717
|
}, Lt = (n) => K(n, s("transactionLifetimeDepositTooltip")), Ct = (n) => K(n, s("transactionNetProfitTooltip"));
|
|
718
|
-
function
|
|
719
|
-
|
|
718
|
+
function Bt(n) {
|
|
719
|
+
Ut[n ? "unshift" : "push"](() => {
|
|
720
720
|
k = n, i(18, k);
|
|
721
721
|
});
|
|
722
722
|
}
|
|
723
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,
|
|
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
725
|
}, e.$$.update = () => {
|
|
726
726
|
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
727
|
-
262656 && O && k &&
|
|
728
|
-
263168 && z && k &&
|
|
727
|
+
262656 && O && k && Gt(k, O), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
728
|
+
263168 && z && k && Rt(k, z), e.$$.dirty[0] & /*customStylingContainer*/
|
|
729
729
|
262144 | e.$$.dirty[1] & /*mbsource*/
|
|
730
|
-
2 && I && k &&
|
|
730
|
+
2 && I && k && Vt(k, `${I}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
731
731
|
16 && l && Et(), e.$$.dirty[1] & /*fromdate, todate*/
|
|
732
732
|
12 && Ht(a, u), e.$$.dirty[0] & /*shownetprofit, showlifetimedeposit*/
|
|
733
733
|
49152 && (b || _) && i(23, A = "true");
|
|
@@ -743,7 +743,7 @@ function xt(e, t, i) {
|
|
|
743
743
|
Y,
|
|
744
744
|
O,
|
|
745
745
|
z,
|
|
746
|
-
|
|
746
|
+
B,
|
|
747
747
|
y,
|
|
748
748
|
D,
|
|
749
749
|
_,
|
|
@@ -754,7 +754,7 @@ function xt(e, t, i) {
|
|
|
754
754
|
q,
|
|
755
755
|
U,
|
|
756
756
|
G,
|
|
757
|
-
|
|
757
|
+
Q,
|
|
758
758
|
A,
|
|
759
759
|
Z,
|
|
760
760
|
x,
|
|
@@ -769,7 +769,7 @@ function xt(e, t, i) {
|
|
|
769
769
|
u,
|
|
770
770
|
Lt,
|
|
771
771
|
Ct,
|
|
772
|
-
|
|
772
|
+
Bt
|
|
773
773
|
];
|
|
774
774
|
}
|
|
775
775
|
class $t extends Mt {
|
|
@@ -803,7 +803,7 @@ class $t extends Mt {
|
|
|
803
803
|
fromdate: 33,
|
|
804
804
|
todate: 34
|
|
805
805
|
},
|
|
806
|
-
|
|
806
|
+
Qt,
|
|
807
807
|
[-1, -1]
|
|
808
808
|
);
|
|
809
809
|
}
|
package/components/{TransactionHistoryPage-DDog4PKt.cjs → TransactionHistoryPage-CShwsh-h.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var X=(s,t,n)=>new Promise((a,h)=>{var f=o=>{try{c(n.next(o))}catch(m){h(m)}},r=o=>{try{c(n.throw(o))}catch(m){h(m)}},c=o=>o.done?a(o.value):Promise.resolve(o.value).then(f,r);c((n=n.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-BHRa04VL.cjs"),ye=require("./Tooltip-CMYgN8-J.cjs"),we=require("./EmptyStateIcon-CG990aV4.cjs"),Z=require("./CashierTransactionHistory-D0veSOum.cjs");e.init$1({fallbackLocale:"en"});function x(s,t){e.addMessages(s,t)}const $={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionTypeIconTitle:"Type",transactionStatusTitle:"Status",transactionLifetimeDeposit:"Lifetime deposits",transactionNetProfit:"Net Profit",transactionNetProfitTooltip:"This value represents the sum of your lifetime deposits minus the sum of your lifetime withdrawals.",transactionLifetimeDepositTooltip:"Cumulative sum of all deposits made over the lifetime of your account.",noTransactionData:"No transactions found for selected date",copyTransactionId:"Transaction Id copied to clipboard"},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionTypeIconTitle:"Tip",transactionStatusTitle:"Durum",transactionLifetimeDeposit:"Ömür boyu yatırımlar",transactionNetProfit:"Net Kar",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.",transactionLifetimeDepositTooltip:"Hesabınızın kullanım süresi boyunca yapılan tüm yatırımların toplamı.",noTransactionData:"Seçilen tarih için işlem bulunamadı.",copyTransactionId:"İşlem ID’si kopyalandı"}};if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-BHRa04VL.cjs")).then(t=>t.CashierHeader_ce).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./TransactionHistoryCalendar-xg8S4fBR.cjs")).then(({default:t})=>{!customElements.get("transaction-history-calendar")&&customElements.define("transaction-history-calendar",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierTransactionHistory-D0veSOum.cjs")).then(t=>t.CashierTransactionHistory_ce).then(({default:t})=>{!customElements.get("cashier-transaction-history")&&customElements.define("cashier-transaction-history",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierPagination-Bns0dhAx.cjs")).then(({default:t})=>{!customElements.get("cashier-pagination")&&customElements.define("cashier-pagination",t.element)})}function Te(s){e.append_styles(s,"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%}}")}function ee(s){let t,n,a,h=s[29](s[6])+"",f;return{c(){t=e.element("cashier-header"),n=e.element("div"),a=e.element("span"),f=e.text(h),e.attr(n,"slot","title"),e.attr(n,"class","CashierHeaderTitle"),e.set_custom_element_data(t,"class","Header"),e.set_custom_element_data(t,"lang",s[3]),e.set_custom_element_data(t,"translationurl",s[4]),e.set_custom_element_data(t,"clientstylingurl",s[10]),e.set_custom_element_data(t,"clientstyling",s[9]),e.set_custom_element_data(t,"showclosebutton",s[5])},m(r,c){e.insert(r,t,c),e.append(t,n),e.append(n,a),e.append(a,f)},p(r,c){c[0]&536870976&&h!==(h=r[29](r[6])+"")&&e.set_data(f,h),c[0]&8&&e.set_custom_element_data(t,"lang",r[3]),c[0]&16&&e.set_custom_element_data(t,"translationurl",r[4]),c[0]&1024&&e.set_custom_element_data(t,"clientstylingurl",r[10]),c[0]&512&&e.set_custom_element_data(t,"clientstyling",r[9]),c[0]&32&&e.set_custom_element_data(t,"showclosebutton",r[5])},d(r){r&&e.detach(t)}}}function te(s){let t,n,a=s[29]("transactionLifetimeDeposit")+"",h,f,r,c,o=s[24]&&ne(s);return{c(){t=e.element("div"),n=e.element("span"),h=e.text(a),f=e.space(),o&&o.c(),e.attr(n,"class","BoxTile"),e.attr(t,"class","TransactionHistoryBox tooltip-wrapper")},m(m,b){e.insert(m,t,b),e.append(t,n),e.append(n,h),e.append(t,f),o&&o.m(t,null),r||(c=[e.listen(t,"mouseenter",s[35]),e.listen(t,"mouseleave",s[31])],r=!0)},p(m,b){b[0]&536870912&&a!==(a=m[29]("transactionLifetimeDeposit")+"")&&e.set_data(h,a),m[24]?o?o.p(m,b):(o=ne(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(m){m&&e.detach(t),o&&o.d(),r=!1,e.run_all(c)}}}function ne(s){let t,n=s[24].depositSum+"",a,h,f;return{c(){t=e.element("span"),a=e.text(n),h=e.space(),f=e.text(s[11]),e.attr(t,"class","BoxValue")},m(r,c){e.insert(r,t,c),e.append(t,a),e.append(t,h),e.append(t,f)},p(r,c){c[0]&16777216&&n!==(n=r[24].depositSum+"")&&e.set_data(a,n),c[0]&2048&&e.set_data(f,r[11])},d(r){r&&e.detach(t)}}}function se(s){let t,n,a=s[29]("transactionNetProfit")+"",h,f,r,c,o=s[24]&&ie(s);return{c(){t=e.element("div"),n=e.element("span"),h=e.text(a),f=e.space(),o&&o.c(),e.attr(n,"class","BoxTile"),e.attr(t,"class","TransactionHistoryBox tooltip-wrapper")},m(m,b){e.insert(m,t,b),e.append(t,n),e.append(n,h),e.append(t,f),o&&o.m(t,null),r||(c=[e.listen(t,"mouseenter",s[36]),e.listen(t,"mouseleave",s[31])],r=!0)},p(m,b){b[0]&536870912&&a!==(a=m[29]("transactionNetProfit")+"")&&e.set_data(h,a),m[24]?o?o.p(m,b):(o=ie(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(m){m&&e.detach(t),o&&o.d(),r=!1,e.run_all(c)}}}function ie(s){let t,n=s[24].profitSum+"",a,h,f;return{c(){t=e.element("span"),a=e.text(n),h=e.space(),f=e.text(s[11]),e.attr(t,"class","BoxValue")},m(r,c){e.insert(r,t,c),e.append(t,a),e.append(t,h),e.append(t,f)},p(r,c){c[0]&16777216&&n!==(n=r[24].profitSum+"")&&e.set_data(a,n),c[0]&2048&&e.set_data(f,r[11])},d(r){r&&e.detach(t)}}}function ae(s){let t;return{c(){t=e.element("cashier-pagination"),e.set_custom_element_data(t,"totalpages",s[22])},m(n,a){e.insert(n,t,a)},p(n,a){a[0]&4194304&&e.set_custom_element_data(t,"totalpages",n[22])},d(n){n&&e.detach(t)}}}function oe(s){let t,n,a,h,f=s[29]("noTransactionData")+"",r,c;return n=new we.EmptyStateIcon({}),{c(){t=e.element("div"),e.create_component(n.$$.fragment),a=e.space(),h=e.element("span"),r=e.text(f),e.attr(t,"class","TransactionHistoryEmptyState")},m(o,m){e.insert(o,t,m),e.mount_component(n,t,null),e.append(t,a),e.append(t,h),e.append(h,r),c=!0},p(o,m){(!c||m[0]&536870912)&&f!==(f=o[29]("noTransactionData")+"")&&e.set_data(r,f)},i(o){c||(e.transition_in(n.$$.fragment,o),c=!0)},o(o){e.transition_out(n.$$.fragment,o),c=!1},d(o){o&&e.detach(t),e.destroy_component(n)}}}function be(s){let t,n,a,h,f,r,c,o,m,b,u,L,v,k,C,E,_,w=s[13]==="true"&&ee(s),g=s[14]==="true"&&te(s),y=s[15]==="true"&&se(s),T=s[22]&&ae(s),p=s[22]===0&&oe(s);return E=new ye.Tooltip({props:{text:s[25],top:s[27],left:s[28],visible:s[26]}}),{c(){t=e.element("div"),w&&w.c(),n=e.space(),a=e.element("section"),h=e.element("section"),f=e.element("section"),g&&g.c(),r=e.space(),y&&y.c(),c=e.space(),o=e.element("section"),m=e.element("transaction-history-calendar"),b=e.space(),u=e.element("cashier-transaction-history"),v=e.space(),T&&T.c(),k=e.space(),p&&p.c(),C=e.space(),e.create_component(E.$$.fragment),e.attr(f,"class","TransactionHistorySummary"),e.set_custom_element_data(m,"lang",s[3]),e.set_custom_element_data(m,"dateformat",s[16]),e.set_custom_element_data(m,"fromdate",s[19]),e.set_custom_element_data(m,"todate",s[20]),e.attr(o,"class","TransactionHistoryDateFilter"),e.attr(h,"class","TransactionHistoryFilter"),e.set_custom_element_data(u,"lang",s[3]),e.set_custom_element_data(u,"translationurl",s[4]),e.set_custom_element_data(u,"endpoint",s[1]),e.set_custom_element_data(u,"customerid",s[2]),e.set_custom_element_data(u,"clientstylingurl",s[10]),e.set_custom_element_data(u,"clientstyling",s[9]),e.set_custom_element_data(u,"txncount",s[7]),e.set_custom_element_data(u,"session",s[0]),e.set_custom_element_data(u,"columns",s[8]),e.set_custom_element_data(u,"isshorttransactionhistory",s[12]),e.set_custom_element_data(u,"dateformat",s[16]),e.set_custom_element_data(u,"datetimeformat",s[17]),e.set_custom_element_data(u,"page",L=`${+s[21]-1}`),e.set_custom_element_data(u,"fromdate",s[19]),e.set_custom_element_data(u,"todate",s[20]),e.set_custom_element_data(u,"calculateprofit",s[23]),e.attr(a,"class","TransactionHistoryBody"),e.attr(t,"class","TransactionHistoryWidget")},m(l,d){e.insert(l,t,d),w&&w.m(t,null),e.append(t,n),e.append(t,a),e.append(a,h),e.append(h,f),g&&g.m(f,null),e.append(f,r),y&&y.m(f,null),e.append(h,c),e.append(h,o),e.append(o,m),e.append(a,b),e.append(a,u),e.append(a,v),T&&T.m(a,null),e.append(a,k),p&&p.m(a,null),e.append(a,C),e.mount_component(E,a,null),s[37](t),_=!0},p(l,d){l[13]==="true"?w?w.p(l,d):(w=ee(l),w.c(),w.m(t,n)):w&&(w.d(1),w=null),l[14]==="true"?g?g.p(l,d):(g=te(l),g.c(),g.m(f,r)):g&&(g.d(1),g=null),l[15]==="true"?y?y.p(l,d):(y=se(l),y.c(),y.m(f,null)):y&&(y.d(1),y=null),(!_||d[0]&8)&&e.set_custom_element_data(m,"lang",l[3]),(!_||d[0]&65536)&&e.set_custom_element_data(m,"dateformat",l[16]),(!_||d[0]&524288)&&e.set_custom_element_data(m,"fromdate",l[19]),(!_||d[0]&1048576)&&e.set_custom_element_data(m,"todate",l[20]),(!_||d[0]&8)&&e.set_custom_element_data(u,"lang",l[3]),(!_||d[0]&16)&&e.set_custom_element_data(u,"translationurl",l[4]),(!_||d[0]&2)&&e.set_custom_element_data(u,"endpoint",l[1]),(!_||d[0]&4)&&e.set_custom_element_data(u,"customerid",l[2]),(!_||d[0]&1024)&&e.set_custom_element_data(u,"clientstylingurl",l[10]),(!_||d[0]&512)&&e.set_custom_element_data(u,"clientstyling",l[9]),(!_||d[0]&128)&&e.set_custom_element_data(u,"txncount",l[7]),(!_||d[0]&1)&&e.set_custom_element_data(u,"session",l[0]),(!_||d[0]&256)&&e.set_custom_element_data(u,"columns",l[8]),(!_||d[0]&4096)&&e.set_custom_element_data(u,"isshorttransactionhistory",l[12]),(!_||d[0]&65536)&&e.set_custom_element_data(u,"dateformat",l[16]),(!_||d[0]&131072)&&e.set_custom_element_data(u,"datetimeformat",l[17]),(!_||d[0]&2097152&&L!==(L=`${+l[21]-1}`))&&e.set_custom_element_data(u,"page",L),(!_||d[0]&524288)&&e.set_custom_element_data(u,"fromdate",l[19]),(!_||d[0]&1048576)&&e.set_custom_element_data(u,"todate",l[20]),(!_||d[0]&8388608)&&e.set_custom_element_data(u,"calculateprofit",l[23]),l[22]?T?T.p(l,d):(T=ae(l),T.c(),T.m(a,k)):T&&(T.d(1),T=null),l[22]===0?p?(p.p(l,d),d[0]&4194304&&e.transition_in(p,1)):(p=oe(l),p.c(),e.transition_in(p,1),p.m(a,C)):p&&(e.group_outros(),e.transition_out(p,1,1,()=>{p=null}),e.check_outros());const D={};d[0]&33554432&&(D.text=l[25]),d[0]&134217728&&(D.top=l[27]),d[0]&268435456&&(D.left=l[28]),d[0]&67108864&&(D.visible=l[26]),E.$set(D)},i(l){_||(e.transition_in(p),e.transition_in(E.$$.fragment,l),_=!0)},o(l){e.transition_out(p),e.transition_out(E.$$.fragment,l),_=!1},d(l){l&&e.detach(t),w&&w.d(),g&&g.d(),y&&y.d(),T&&T.d(),p&&p.d(),e.destroy_component(E),s[37](null)}}}function De(s,t,n){let a;e.component_subscribe(s,e.$format,i=>n(29,a=i));let{session:h}=t,{endpoint:f}=t,{customerid:r}=t,{lang:c="en"}=t,{translationurl:o}=t,{showclosebutton:m="false"}=t,{title:b="transactionHistoryTitle"}=t,{txncount:u}=t,{columns:L="TypeIcon,Date,Amount,Status"}=t,{clientstyling:v=""}=t,{clientstylingurl:k=""}=t,{mbsource:C}=t,{currency:E}=t,{isshorttransactionhistory:_="false"}=t,{showheader:w="true"}=t,{showlifetimedeposit:g="true"}=t,{shownetprofit:y="true"}=t,{dateformat:T="DD.MM.YYYY"}=t,{datetimeformat:p="DD.MM.YYYY HH:mm:ss"}=t,{fromdate:l}=t,{todate:d}=t,D,z=Z.dayjs().subtract(1,"day"),I=Z.dayjs(),M=1,Y,B,j,O="",N=!1,W=0,A=0;const q=(i,H)=>{const S=i.currentTarget.getBoundingClientRect(),pe=250,G=10;let P=S.left+S.width/2,F;const ge=S.top;window.innerHeight-S.bottom>ge?F=S.bottom+window.scrollY+8:F=S.top+window.scrollY-8;const K=pe/2,J=G+K,Q=window.innerWidth-G-K;P<J?P=J:P>Q&&(P=Q),n(25,O=H),n(27,W=F),n(28,A=P),n(26,N=!!H.trim().length)},re=()=>{n(26,N=!1)},ce=(i,H)=>{i&&n(19,z=i),H&&n(20,I=H)};e.onMount(()=>X(this,null,function*(){return document.addEventListener("pageChange",R),document.addEventListener("dateChange",V),window.addEventListener("message",U,!1),()=>{document.removeEventListener("dateChange",V),document.removeEventListener("pageChange",R),window.removeEventListener("message",U,!1)}})),Object.keys($).forEach(i=>{x(i,$[i])});const me=()=>{let i=o;if(i)return fetch(i).then(H=>H.json()).then(H=>{Object.keys(H).forEach(S=>{x(S,H[S])})}).catch(H=>{console.log(H)})},V=i=>{n(19,z=i.detail.dates[0]),n(20,I=i.detail.dates[1]),n(21,M=1),n(23,B="false")},R=i=>{n(21,M=i.detail.page),n(23,B="false")},ue=i=>{n(22,Y=Math.ceil(i/u))},fe=i=>{i&&n(24,j=i.find(H=>H.currency===E))},U=i=>{switch(i.data.type){case"TransactionsLoaded":ue(i.data.total),fe(i.data.statistic);break}},de=i=>q(i,a("transactionLifetimeDepositTooltip")),he=i=>q(i,a("transactionNetProfitTooltip"));function _e(i){e.binding_callbacks[i?"unshift":"push"](()=>{D=i,n(18,D)})}return s.$$set=i=>{"session"in i&&n(0,h=i.session),"endpoint"in i&&n(1,f=i.endpoint),"customerid"in i&&n(2,r=i.customerid),"lang"in i&&n(3,c=i.lang),"translationurl"in i&&n(4,o=i.translationurl),"showclosebutton"in i&&n(5,m=i.showclosebutton),"title"in i&&n(6,b=i.title),"txncount"in i&&n(7,u=i.txncount),"columns"in i&&n(8,L=i.columns),"clientstyling"in i&&n(9,v=i.clientstyling),"clientstylingurl"in i&&n(10,k=i.clientstylingurl),"mbsource"in i&&n(32,C=i.mbsource),"currency"in i&&n(11,E=i.currency),"isshorttransactionhistory"in i&&n(12,_=i.isshorttransactionhistory),"showheader"in i&&n(13,w=i.showheader),"showlifetimedeposit"in i&&n(14,g=i.showlifetimedeposit),"shownetprofit"in i&&n(15,y=i.shownetprofit),"dateformat"in i&&n(16,T=i.dateformat),"datetimeformat"in i&&n(17,p=i.datetimeformat),"fromdate"in i&&n(33,l=i.fromdate),"todate"in i&&n(34,d=i.todate)},s.$$.update=()=>{s.$$.dirty[0]&262656&&v&&D&&e.setClientStyling(D,v),s.$$.dirty[0]&263168&&k&&D&&e.setClientStylingURL(D,k),s.$$.dirty[0]&262144|s.$$.dirty[1]&2&&C&&D&&e.setStreamStyling(D,`${C}.Style`),s.$$.dirty[0]&16&&o&&me(),s.$$.dirty[1]&12&&ce(l,d),s.$$.dirty[0]&49152&&(y||g)&&n(23,B="true")},[h,f,r,c,o,m,b,u,L,v,k,E,_,w,g,y,T,p,D,z,I,M,Y,B,j,O,N,W,A,a,q,re,C,l,d,de,he,_e]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,De,be,e.safe_not_equal,{session:0,endpoint:1,customerid:2,lang:3,translationurl:4,showclosebutton:5,title:6,txncount:7,columns:8,clientstyling:9,clientstylingurl:10,mbsource:32,currency:11,isshorttransactionhistory:12,showheader:13,showlifetimedeposit:14,shownetprofit:15,dateformat:16,datetimeformat:17,fromdate:33,todate:34},Te,[-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get customerid(){return this.$$.ctx[2]}set customerid(t){this.$$set({customerid:t}),e.flush()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showclosebutton(){return this.$$.ctx[5]}set showclosebutton(t){this.$$set({showclosebutton:t}),e.flush()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),e.flush()}get txncount(){return this.$$.ctx[7]}set txncount(t){this.$$set({txncount:t}),e.flush()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[32]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get currency(){return this.$$.ctx[11]}set currency(t){this.$$set({currency:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[12]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get showheader(){return this.$$.ctx[13]}set showheader(t){this.$$set({showheader:t}),e.flush()}get showlifetimedeposit(){return this.$$.ctx[14]}set showlifetimedeposit(t){this.$$set({showlifetimedeposit:t}),e.flush()}get shownetprofit(){return this.$$.ctx[15]}set shownetprofit(t){this.$$set({shownetprofit:t}),e.flush()}get dateformat(){return this.$$.ctx[16]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[17]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}get fromdate(){return this.$$.ctx[33]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[34]}set todate(t){this.$$set({todate:t}),e.flush()}}e.create_custom_element(le,{session:{},endpoint:{},customerid:{},lang:{},translationurl:{},showclosebutton:{},title:{},txncount:{},columns:{},clientstyling:{},clientstylingurl:{},mbsource:{},currency:{},isshorttransactionhistory:{},showheader:{},showlifetimedeposit:{},shownetprofit:{},dateformat:{},datetimeformat:{},fromdate:{},todate:{}},[],[],!0);exports.default=le;
|
|
1
|
+
"use strict";var X=(s,t,n)=>new Promise((a,h)=>{var f=o=>{try{c(n.next(o))}catch(m){h(m)}},r=o=>{try{c(n.throw(o))}catch(m){h(m)}},c=o=>o.done?a(o.value):Promise.resolve(o.value).then(f,r);c((n=n.apply(s,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CashierHeader-fdmNbczy.cjs"),ye=require("./Tooltip-DhUkqLNN.cjs"),we=require("./EmptyStateIcon-idY3pDBO.cjs"),Z=require("./CashierTransactionHistory-DOgBFoAF.cjs");e.init$1({fallbackLocale:"en"});function x(s,t){e.addMessages(s,t)}const $={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionTypeIconTitle:"Type",transactionStatusTitle:"Status",transactionLifetimeDeposit:"Lifetime deposits",transactionNetProfit:"Net Profit",transactionNetProfitTooltip:"This value represents the sum of your lifetime deposits minus the sum of your lifetime withdrawals.",transactionLifetimeDepositTooltip:"Cumulative sum of all deposits made over the lifetime of your account.",noTransactionData:"No transactions found for selected date",copyTransactionId:"Transaction Id copied to clipboard"},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionTypeIconTitle:"Tip",transactionStatusTitle:"Durum",transactionLifetimeDeposit:"Ömür boyu yatırımlar",transactionNetProfit:"Net Kar",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.",transactionLifetimeDepositTooltip:"Hesabınızın kullanım süresi boyunca yapılan tüm yatırımların toplamı.",noTransactionData:"Seçilen tarih için işlem bulunamadı.",copyTransactionId:"İşlem ID’si kopyalandı"}};if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierHeader-fdmNbczy.cjs")).then(t=>t.CashierHeader_ce).then(({default:t})=>{!customElements.get("cashier-header")&&customElements.define("cashier-header",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./TransactionHistoryCalendar-DV3uIclO.cjs")).then(({default:t})=>{!customElements.get("transaction-history-calendar")&&customElements.define("transaction-history-calendar",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierTransactionHistory-DOgBFoAF.cjs")).then(t=>t.CashierTransactionHistory_ce).then(({default:t})=>{!customElements.get("cashier-transaction-history")&&customElements.define("cashier-transaction-history",t.element)})}if(typeof window!="undefined"){let s=function(t){return function(...n){try{return t.apply(this,n)}catch(a){if(a instanceof DOMException&&a.message.includes("has already been used with this registry")||a.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw a}}};customElements.define=s(customElements.define),Promise.resolve().then(()=>require("./CashierPagination-Dy5h-yN8.cjs")).then(({default:t})=>{!customElements.get("cashier-pagination")&&customElements.define("cashier-pagination",t.element)})}function Te(s){e.append_styles(s,"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%}}")}function ee(s){let t,n,a,h=s[29](s[6])+"",f;return{c(){t=e.element("cashier-header"),n=e.element("div"),a=e.element("span"),f=e.text(h),e.attr(n,"slot","title"),e.attr(n,"class","CashierHeaderTitle"),e.set_custom_element_data(t,"class","Header"),e.set_custom_element_data(t,"lang",s[3]),e.set_custom_element_data(t,"translationurl",s[4]),e.set_custom_element_data(t,"clientstylingurl",s[10]),e.set_custom_element_data(t,"clientstyling",s[9]),e.set_custom_element_data(t,"showclosebutton",s[5])},m(r,c){e.insert(r,t,c),e.append(t,n),e.append(n,a),e.append(a,f)},p(r,c){c[0]&536870976&&h!==(h=r[29](r[6])+"")&&e.set_data(f,h),c[0]&8&&e.set_custom_element_data(t,"lang",r[3]),c[0]&16&&e.set_custom_element_data(t,"translationurl",r[4]),c[0]&1024&&e.set_custom_element_data(t,"clientstylingurl",r[10]),c[0]&512&&e.set_custom_element_data(t,"clientstyling",r[9]),c[0]&32&&e.set_custom_element_data(t,"showclosebutton",r[5])},d(r){r&&e.detach(t)}}}function te(s){let t,n,a=s[29]("transactionLifetimeDeposit")+"",h,f,r,c,o=s[24]&&ne(s);return{c(){t=e.element("div"),n=e.element("span"),h=e.text(a),f=e.space(),o&&o.c(),e.attr(n,"class","BoxTile"),e.attr(t,"class","TransactionHistoryBox tooltip-wrapper")},m(m,b){e.insert(m,t,b),e.append(t,n),e.append(n,h),e.append(t,f),o&&o.m(t,null),r||(c=[e.listen(t,"mouseenter",s[35]),e.listen(t,"mouseleave",s[31])],r=!0)},p(m,b){b[0]&536870912&&a!==(a=m[29]("transactionLifetimeDeposit")+"")&&e.set_data(h,a),m[24]?o?o.p(m,b):(o=ne(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(m){m&&e.detach(t),o&&o.d(),r=!1,e.run_all(c)}}}function ne(s){let t,n=s[24].depositSum+"",a,h,f;return{c(){t=e.element("span"),a=e.text(n),h=e.space(),f=e.text(s[11]),e.attr(t,"class","BoxValue")},m(r,c){e.insert(r,t,c),e.append(t,a),e.append(t,h),e.append(t,f)},p(r,c){c[0]&16777216&&n!==(n=r[24].depositSum+"")&&e.set_data(a,n),c[0]&2048&&e.set_data(f,r[11])},d(r){r&&e.detach(t)}}}function se(s){let t,n,a=s[29]("transactionNetProfit")+"",h,f,r,c,o=s[24]&&ie(s);return{c(){t=e.element("div"),n=e.element("span"),h=e.text(a),f=e.space(),o&&o.c(),e.attr(n,"class","BoxTile"),e.attr(t,"class","TransactionHistoryBox tooltip-wrapper")},m(m,b){e.insert(m,t,b),e.append(t,n),e.append(n,h),e.append(t,f),o&&o.m(t,null),r||(c=[e.listen(t,"mouseenter",s[36]),e.listen(t,"mouseleave",s[31])],r=!0)},p(m,b){b[0]&536870912&&a!==(a=m[29]("transactionNetProfit")+"")&&e.set_data(h,a),m[24]?o?o.p(m,b):(o=ie(m),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(m){m&&e.detach(t),o&&o.d(),r=!1,e.run_all(c)}}}function ie(s){let t,n=s[24].profitSum+"",a,h,f;return{c(){t=e.element("span"),a=e.text(n),h=e.space(),f=e.text(s[11]),e.attr(t,"class","BoxValue")},m(r,c){e.insert(r,t,c),e.append(t,a),e.append(t,h),e.append(t,f)},p(r,c){c[0]&16777216&&n!==(n=r[24].profitSum+"")&&e.set_data(a,n),c[0]&2048&&e.set_data(f,r[11])},d(r){r&&e.detach(t)}}}function ae(s){let t;return{c(){t=e.element("cashier-pagination"),e.set_custom_element_data(t,"totalpages",s[22])},m(n,a){e.insert(n,t,a)},p(n,a){a[0]&4194304&&e.set_custom_element_data(t,"totalpages",n[22])},d(n){n&&e.detach(t)}}}function oe(s){let t,n,a,h,f=s[29]("noTransactionData")+"",r,c;return n=new we.EmptyStateIcon({}),{c(){t=e.element("div"),e.create_component(n.$$.fragment),a=e.space(),h=e.element("span"),r=e.text(f),e.attr(t,"class","TransactionHistoryEmptyState")},m(o,m){e.insert(o,t,m),e.mount_component(n,t,null),e.append(t,a),e.append(t,h),e.append(h,r),c=!0},p(o,m){(!c||m[0]&536870912)&&f!==(f=o[29]("noTransactionData")+"")&&e.set_data(r,f)},i(o){c||(e.transition_in(n.$$.fragment,o),c=!0)},o(o){e.transition_out(n.$$.fragment,o),c=!1},d(o){o&&e.detach(t),e.destroy_component(n)}}}function be(s){let t,n,a,h,f,r,c,o,m,b,u,L,v,k,C,E,_,w=s[13]==="true"&&ee(s),g=s[14]==="true"&&te(s),y=s[15]==="true"&&se(s),T=s[22]&&ae(s),p=s[22]===0&&oe(s);return E=new ye.Tooltip({props:{text:s[25],top:s[27],left:s[28],visible:s[26]}}),{c(){t=e.element("div"),w&&w.c(),n=e.space(),a=e.element("section"),h=e.element("section"),f=e.element("section"),g&&g.c(),r=e.space(),y&&y.c(),c=e.space(),o=e.element("section"),m=e.element("transaction-history-calendar"),b=e.space(),u=e.element("cashier-transaction-history"),v=e.space(),T&&T.c(),k=e.space(),p&&p.c(),C=e.space(),e.create_component(E.$$.fragment),e.attr(f,"class","TransactionHistorySummary"),e.set_custom_element_data(m,"lang",s[3]),e.set_custom_element_data(m,"dateformat",s[16]),e.set_custom_element_data(m,"fromdate",s[19]),e.set_custom_element_data(m,"todate",s[20]),e.attr(o,"class","TransactionHistoryDateFilter"),e.attr(h,"class","TransactionHistoryFilter"),e.set_custom_element_data(u,"lang",s[3]),e.set_custom_element_data(u,"translationurl",s[4]),e.set_custom_element_data(u,"endpoint",s[1]),e.set_custom_element_data(u,"customerid",s[2]),e.set_custom_element_data(u,"clientstylingurl",s[10]),e.set_custom_element_data(u,"clientstyling",s[9]),e.set_custom_element_data(u,"txncount",s[7]),e.set_custom_element_data(u,"session",s[0]),e.set_custom_element_data(u,"columns",s[8]),e.set_custom_element_data(u,"isshorttransactionhistory",s[12]),e.set_custom_element_data(u,"dateformat",s[16]),e.set_custom_element_data(u,"datetimeformat",s[17]),e.set_custom_element_data(u,"page",L=`${+s[21]-1}`),e.set_custom_element_data(u,"fromdate",s[19]),e.set_custom_element_data(u,"todate",s[20]),e.set_custom_element_data(u,"calculateprofit",s[23]),e.attr(a,"class","TransactionHistoryBody"),e.attr(t,"class","TransactionHistoryWidget")},m(l,d){e.insert(l,t,d),w&&w.m(t,null),e.append(t,n),e.append(t,a),e.append(a,h),e.append(h,f),g&&g.m(f,null),e.append(f,r),y&&y.m(f,null),e.append(h,c),e.append(h,o),e.append(o,m),e.append(a,b),e.append(a,u),e.append(a,v),T&&T.m(a,null),e.append(a,k),p&&p.m(a,null),e.append(a,C),e.mount_component(E,a,null),s[37](t),_=!0},p(l,d){l[13]==="true"?w?w.p(l,d):(w=ee(l),w.c(),w.m(t,n)):w&&(w.d(1),w=null),l[14]==="true"?g?g.p(l,d):(g=te(l),g.c(),g.m(f,r)):g&&(g.d(1),g=null),l[15]==="true"?y?y.p(l,d):(y=se(l),y.c(),y.m(f,null)):y&&(y.d(1),y=null),(!_||d[0]&8)&&e.set_custom_element_data(m,"lang",l[3]),(!_||d[0]&65536)&&e.set_custom_element_data(m,"dateformat",l[16]),(!_||d[0]&524288)&&e.set_custom_element_data(m,"fromdate",l[19]),(!_||d[0]&1048576)&&e.set_custom_element_data(m,"todate",l[20]),(!_||d[0]&8)&&e.set_custom_element_data(u,"lang",l[3]),(!_||d[0]&16)&&e.set_custom_element_data(u,"translationurl",l[4]),(!_||d[0]&2)&&e.set_custom_element_data(u,"endpoint",l[1]),(!_||d[0]&4)&&e.set_custom_element_data(u,"customerid",l[2]),(!_||d[0]&1024)&&e.set_custom_element_data(u,"clientstylingurl",l[10]),(!_||d[0]&512)&&e.set_custom_element_data(u,"clientstyling",l[9]),(!_||d[0]&128)&&e.set_custom_element_data(u,"txncount",l[7]),(!_||d[0]&1)&&e.set_custom_element_data(u,"session",l[0]),(!_||d[0]&256)&&e.set_custom_element_data(u,"columns",l[8]),(!_||d[0]&4096)&&e.set_custom_element_data(u,"isshorttransactionhistory",l[12]),(!_||d[0]&65536)&&e.set_custom_element_data(u,"dateformat",l[16]),(!_||d[0]&131072)&&e.set_custom_element_data(u,"datetimeformat",l[17]),(!_||d[0]&2097152&&L!==(L=`${+l[21]-1}`))&&e.set_custom_element_data(u,"page",L),(!_||d[0]&524288)&&e.set_custom_element_data(u,"fromdate",l[19]),(!_||d[0]&1048576)&&e.set_custom_element_data(u,"todate",l[20]),(!_||d[0]&8388608)&&e.set_custom_element_data(u,"calculateprofit",l[23]),l[22]?T?T.p(l,d):(T=ae(l),T.c(),T.m(a,k)):T&&(T.d(1),T=null),l[22]===0?p?(p.p(l,d),d[0]&4194304&&e.transition_in(p,1)):(p=oe(l),p.c(),e.transition_in(p,1),p.m(a,C)):p&&(e.group_outros(),e.transition_out(p,1,1,()=>{p=null}),e.check_outros());const D={};d[0]&33554432&&(D.text=l[25]),d[0]&134217728&&(D.top=l[27]),d[0]&268435456&&(D.left=l[28]),d[0]&67108864&&(D.visible=l[26]),E.$set(D)},i(l){_||(e.transition_in(p),e.transition_in(E.$$.fragment,l),_=!0)},o(l){e.transition_out(p),e.transition_out(E.$$.fragment,l),_=!1},d(l){l&&e.detach(t),w&&w.d(),g&&g.d(),y&&y.d(),T&&T.d(),p&&p.d(),e.destroy_component(E),s[37](null)}}}function De(s,t,n){let a;e.component_subscribe(s,e.$format,i=>n(29,a=i));let{session:h}=t,{endpoint:f}=t,{customerid:r}=t,{lang:c="en"}=t,{translationurl:o}=t,{showclosebutton:m="false"}=t,{title:b="transactionHistoryTitle"}=t,{txncount:u}=t,{columns:L="TypeIcon,Date,Amount,Status"}=t,{clientstyling:v=""}=t,{clientstylingurl:k=""}=t,{mbsource:C}=t,{currency:E}=t,{isshorttransactionhistory:_="false"}=t,{showheader:w="true"}=t,{showlifetimedeposit:g="true"}=t,{shownetprofit:y="true"}=t,{dateformat:T="DD.MM.YYYY"}=t,{datetimeformat:p="DD.MM.YYYY HH:mm:ss"}=t,{fromdate:l}=t,{todate:d}=t,D,z=Z.dayjs().subtract(1,"day"),I=Z.dayjs(),M=1,Y,B,j,O="",N=!1,W=0,A=0;const q=(i,H)=>{const S=i.currentTarget.getBoundingClientRect(),pe=250,G=10;let P=S.left+S.width/2,F;const ge=S.top;window.innerHeight-S.bottom>ge?F=S.bottom+window.scrollY+8:F=S.top+window.scrollY-8;const K=pe/2,J=G+K,Q=window.innerWidth-G-K;P<J?P=J:P>Q&&(P=Q),n(25,O=H),n(27,W=F),n(28,A=P),n(26,N=!!H.trim().length)},re=()=>{n(26,N=!1)},ce=(i,H)=>{i&&n(19,z=i),H&&n(20,I=H)};e.onMount(()=>X(this,null,function*(){return document.addEventListener("pageChange",R),document.addEventListener("dateChange",V),window.addEventListener("message",U,!1),()=>{document.removeEventListener("dateChange",V),document.removeEventListener("pageChange",R),window.removeEventListener("message",U,!1)}})),Object.keys($).forEach(i=>{x(i,$[i])});const me=()=>{let i=o;if(i)return fetch(i).then(H=>H.json()).then(H=>{Object.keys(H).forEach(S=>{x(S,H[S])})}).catch(H=>{console.log(H)})},V=i=>{n(19,z=i.detail.dates[0]),n(20,I=i.detail.dates[1]),n(21,M=1),n(23,B="false")},R=i=>{n(21,M=i.detail.page),n(23,B="false")},ue=i=>{n(22,Y=Math.ceil(i/u))},fe=i=>{i&&n(24,j=i.find(H=>H.currency===E))},U=i=>{switch(i.data.type){case"TransactionsLoaded":ue(i.data.total),fe(i.data.statistic);break}},de=i=>q(i,a("transactionLifetimeDepositTooltip")),he=i=>q(i,a("transactionNetProfitTooltip"));function _e(i){e.binding_callbacks[i?"unshift":"push"](()=>{D=i,n(18,D)})}return s.$$set=i=>{"session"in i&&n(0,h=i.session),"endpoint"in i&&n(1,f=i.endpoint),"customerid"in i&&n(2,r=i.customerid),"lang"in i&&n(3,c=i.lang),"translationurl"in i&&n(4,o=i.translationurl),"showclosebutton"in i&&n(5,m=i.showclosebutton),"title"in i&&n(6,b=i.title),"txncount"in i&&n(7,u=i.txncount),"columns"in i&&n(8,L=i.columns),"clientstyling"in i&&n(9,v=i.clientstyling),"clientstylingurl"in i&&n(10,k=i.clientstylingurl),"mbsource"in i&&n(32,C=i.mbsource),"currency"in i&&n(11,E=i.currency),"isshorttransactionhistory"in i&&n(12,_=i.isshorttransactionhistory),"showheader"in i&&n(13,w=i.showheader),"showlifetimedeposit"in i&&n(14,g=i.showlifetimedeposit),"shownetprofit"in i&&n(15,y=i.shownetprofit),"dateformat"in i&&n(16,T=i.dateformat),"datetimeformat"in i&&n(17,p=i.datetimeformat),"fromdate"in i&&n(33,l=i.fromdate),"todate"in i&&n(34,d=i.todate)},s.$$.update=()=>{s.$$.dirty[0]&262656&&v&&D&&e.setClientStyling(D,v),s.$$.dirty[0]&263168&&k&&D&&e.setClientStylingURL(D,k),s.$$.dirty[0]&262144|s.$$.dirty[1]&2&&C&&D&&e.setStreamStyling(D,`${C}.Style`),s.$$.dirty[0]&16&&o&&me(),s.$$.dirty[1]&12&&ce(l,d),s.$$.dirty[0]&49152&&(y||g)&&n(23,B="true")},[h,f,r,c,o,m,b,u,L,v,k,E,_,w,g,y,T,p,D,z,I,M,Y,B,j,O,N,W,A,a,q,re,C,l,d,de,he,_e]}class le extends e.SvelteComponent{constructor(t){super(),e.init(this,t,De,be,e.safe_not_equal,{session:0,endpoint:1,customerid:2,lang:3,translationurl:4,showclosebutton:5,title:6,txncount:7,columns:8,clientstyling:9,clientstylingurl:10,mbsource:32,currency:11,isshorttransactionhistory:12,showheader:13,showlifetimedeposit:14,shownetprofit:15,dateformat:16,datetimeformat:17,fromdate:33,todate:34},Te,[-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),e.flush()}get endpoint(){return this.$$.ctx[1]}set endpoint(t){this.$$set({endpoint:t}),e.flush()}get customerid(){return this.$$.ctx[2]}set customerid(t){this.$$set({customerid:t}),e.flush()}get lang(){return this.$$.ctx[3]}set lang(t){this.$$set({lang:t}),e.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get showclosebutton(){return this.$$.ctx[5]}set showclosebutton(t){this.$$set({showclosebutton:t}),e.flush()}get title(){return this.$$.ctx[6]}set title(t){this.$$set({title:t}),e.flush()}get txncount(){return this.$$.ctx[7]}set txncount(t){this.$$set({txncount:t}),e.flush()}get columns(){return this.$$.ctx[8]}set columns(t){this.$$set({columns:t}),e.flush()}get clientstyling(){return this.$$.ctx[9]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[10]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[32]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}get currency(){return this.$$.ctx[11]}set currency(t){this.$$set({currency:t}),e.flush()}get isshorttransactionhistory(){return this.$$.ctx[12]}set isshorttransactionhistory(t){this.$$set({isshorttransactionhistory:t}),e.flush()}get showheader(){return this.$$.ctx[13]}set showheader(t){this.$$set({showheader:t}),e.flush()}get showlifetimedeposit(){return this.$$.ctx[14]}set showlifetimedeposit(t){this.$$set({showlifetimedeposit:t}),e.flush()}get shownetprofit(){return this.$$.ctx[15]}set shownetprofit(t){this.$$set({shownetprofit:t}),e.flush()}get dateformat(){return this.$$.ctx[16]}set dateformat(t){this.$$set({dateformat:t}),e.flush()}get datetimeformat(){return this.$$.ctx[17]}set datetimeformat(t){this.$$set({datetimeformat:t}),e.flush()}get fromdate(){return this.$$.ctx[33]}set fromdate(t){this.$$set({fromdate:t}),e.flush()}get todate(){return this.$$.ctx[34]}set todate(t){this.$$set({todate:t}),e.flush()}}e.create_custom_element(le,{session:{},endpoint:{},customerid:{},lang:{},translationurl:{},showclosebutton:{},title:{},txncount:{},columns:{},clientstyling:{},clientstylingurl:{},mbsource:{},currency:{},isshorttransactionhistory:{},showheader:{},showlifetimedeposit:{},shownetprofit:{},dateformat:{},datetimeformat:{},fromdate:{},todate:{}},[],[],!0);exports.default=le;
|