@everymatrix/cashier-page 1.59.3 → 1.60.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/components/{CashierConfirmModal-CtWSrqbM.js → CashierConfirmModal-B0WZGuf5.js} +34 -34
  2. package/components/{CashierConfirmModal-B5fOc6GC.js → CashierConfirmModal-BErwh2fQ.js} +34 -34
  3. package/components/{CashierError-C5rv8rv_.js → CashierError-DoHJAf67.js} +342 -340
  4. package/components/{CashierError-Bxt3Xw3q.js → CashierError-Dyf5BWS1.js} +342 -340
  5. package/components/{CashierError-brH2A4eM.cjs → CashierError-YmV_PQP8.cjs} +4 -4
  6. package/components/{CashierHeader-BfG1rURU.cjs → CashierHeader-B-wIMGOV.cjs} +1 -1
  7. package/components/{CashierHeader-CGVRWsQA.js → CashierHeader-C8XVzyv9.js} +42 -42
  8. package/components/{CashierHeader-BEiL4NEA.js → CashierHeader-Dm79zFE4.js} +44 -44
  9. package/components/{CashierIframeRedirect-Brw71WyI.js → CashierIframeRedirect-B_5Lg8hb.js} +33 -33
  10. package/components/{CashierIframeRedirect-DhpvBuVq.cjs → CashierIframeRedirect-CXErmVjw.cjs} +1 -1
  11. package/components/{CashierIframeRedirect-C3GaqG45.js → CashierIframeRedirect-D7qTJ1C9.js} +32 -32
  12. package/components/{CashierMethodDetails-C-KFTrX_.cjs → CashierMethodDetails-Ba0LNaer.cjs} +1 -1
  13. package/components/{CashierMethodDetails-B8L97B6K.js → CashierMethodDetails-C6upoqd2.js} +63 -63
  14. package/components/{CashierMethodDetails-Cq0N6HA8.js → CashierMethodDetails-T4mbzimW.js} +63 -63
  15. package/components/{CashierMethodsList-BzK8sDqY.js → CashierMethodsList-BrVrodk4.js} +70 -70
  16. package/components/{CashierMethodsList-mplZDdbd.cjs → CashierMethodsList-CumBXWty.cjs} +1 -1
  17. package/components/{CashierMethodsList-BY9QslDP.js → CashierMethodsList-DIrmr3Ce.js} +70 -70
  18. package/components/{CashierModal-DV8aj-PX.js → CashierModal-CpN2LT2L.js} +31 -31
  19. package/components/{CashierModal-hk6t9ci2.js → CashierModal-DB1wg0l3.js} +37 -37
  20. package/components/{CashierNotifications-B8jOQSBr.js → CashierNotifications-B5qfr68o.js} +18 -18
  21. package/components/{CashierNotifications-CTdH4xzH.js → CashierNotifications-BmAkkuzD.js} +19 -19
  22. package/components/{CashierPage-BQOrfh-x.cjs → CashierPage-CzAwa_Je.cjs} +1 -1
  23. package/components/{CashierPage-CWl4Nz4g.js → CashierPage-DBt7A-ce.js} +68 -68
  24. package/components/{CashierPage-DwLDF0rv.js → CashierPage-RAOHqYUI.js} +66 -66
  25. package/components/{CashierReceiptPage-Cq4zEk4O.cjs → CashierReceiptPage-BH5T05dg.cjs} +1 -1
  26. package/components/{CashierReceiptPage-mFVzWA_b.js → CashierReceiptPage-BOTRblW6.js} +28 -28
  27. package/components/{CashierReceiptPage-C2HqpHqc.js → CashierReceiptPage-BsbiLGZK.js} +28 -28
  28. package/components/{CashierSessionExpirationModal-D9jC3mh4.cjs → CashierSessionExpirationModal-CxpesQtf.cjs} +2 -2
  29. package/components/{CashierSessionExpirationModal-DqrocR7i.js → CashierSessionExpirationModal-DZgsGvVp.js} +56 -47
  30. package/components/{CashierSessionExpirationModal-D5WzH8qj.js → CashierSessionExpirationModal-V8MYd-oY.js} +56 -47
  31. package/components/{CashierSpinner-CKc6p313.js → CashierSpinner-BI29nSq_.js} +25 -25
  32. package/components/{CashierSpinner-Du921ZKt.js → CashierSpinner-FzCMnj7X.js} +26 -26
  33. package/components/CashierTransactionHistory-5jT7HEE-.js +569 -0
  34. package/components/CashierTransactionHistory-CyxhjzqM.js +569 -0
  35. package/components/CashierTransactionHistory-D_tggKNB.cjs +1 -0
  36. package/components/{CashierVerifications-DqhKdsGM.js → CashierVerifications-BOYrzIos.js} +72 -72
  37. package/components/{CashierVerifications-CI5ICVVh.cjs → CashierVerifications-BXTVbpjh.cjs} +1 -1
  38. package/components/{CashierVerifications-FeDme2XJ.js → CashierVerifications-qhXfC9Fa.js} +26 -26
  39. package/components/{CashierVideoModal-BqP3xvYv.js → CashierVideoModal-DGBQZz-C.js} +33 -33
  40. package/components/{CashierVideoModal-L_vWBGkF.js → CashierVideoModal-DPG12DK0.js} +37 -37
  41. package/es2015/cashier-page.cjs +1 -1
  42. package/es2015/cashier-page.js +1 -1
  43. package/esnext/cashier-page.js +1 -1
  44. package/package.json +1 -1
  45. package/components/CashierTransactionHistory-CkSE1Zn3.cjs +0 -1
  46. package/components/CashierTransactionHistory-CsohrjdW.js +0 -569
  47. package/components/CashierTransactionHistory-DNCpHbiK.js +0 -569
@@ -0,0 +1,569 @@
1
+ import { S as it, b as nt, f as E, c as at, a as lt, d as ot, x as rt, k as W, n as X, v as O, w as ct, K as J, g as v, h as j, y as I, j as e, l, t as K, B as dt, p as ft, q as ut, z as M, M as wt, F as ht, W as vt, X as mt, I as V, A as pt, C as gt, O as _ } from "./CashierConfirmModal-BErwh2fQ.js";
2
+ import { f as G } from "./CashierModal-CpN2LT2L.js";
3
+ import { i as yt, a as Tt, $ as bt, b as _t } from "./CashierError-DoHJAf67.js";
4
+ import { d as xt } from "./CashierMethodDetails-T4mbzimW.js";
5
+ yt({
6
+ fallbackLocale: "en"
7
+ });
8
+ function Q(a, t) {
9
+ Tt(a, t);
10
+ }
11
+ function kt(a) {
12
+ bt.set(a);
13
+ }
14
+ const Z = {
15
+ en: {
16
+ transactionHistoryTitle: "Transaction History",
17
+ transactionIdTitle: "ID",
18
+ transactionDateTitle: "Date",
19
+ transactionTypeTitle: "Type",
20
+ transactionStatusTitle: "Status",
21
+ copyTransactionId: "Transaction Id copied to clipboard",
22
+ transactionStatus: {
23
+ Authorized: "Authorized",
24
+ Success: "Success",
25
+ Failed: "Failed",
26
+ Rejected: "Rejected",
27
+ Pending: "Pending"
28
+ },
29
+ transactionType: {
30
+ Deposit: "Deposit",
31
+ Withdraw: "Withdraw"
32
+ }
33
+ },
34
+ tr: {
35
+ transactionHistoryTitle: "Transaction History",
36
+ transactionIdTitle: "ID",
37
+ transactionDateTitle: "Date",
38
+ transactionTypeTitle: "Type",
39
+ transactionStatusTitle: "Status",
40
+ copyTransactionId: "Transaction Id copied to clipboard",
41
+ transactionStatus: {
42
+ Authorized: "Authorized",
43
+ Success: "Success",
44
+ Failed: "Failed",
45
+ Rejected: "Rejected",
46
+ Pending: "Pending"
47
+ },
48
+ transactionType: {
49
+ Deposit: "Yatırma",
50
+ Withdraw: "Çekim"
51
+ }
52
+ }
53
+ };
54
+ function Ct(a, t) {
55
+ if (a) {
56
+ const s = document.createElement("style");
57
+ s.innerHTML = t, a.appendChild(s);
58
+ }
59
+ }
60
+ function St(a, t) {
61
+ const s = new URL(t);
62
+ fetch(s.href).then((i) => i.text()).then((i) => {
63
+ const o = document.createElement("style");
64
+ o.innerHTML = i, a && a.appendChild(o);
65
+ }).catch((i) => {
66
+ console.error("There was an error while trying to load client styling from URL", i);
67
+ });
68
+ }
69
+ function Ht(a) {
70
+ ot(a, "svelte-40f46w", ".svelte-40f46w.svelte-40f46w,.svelte-40f46w.svelte-40f46w::before,.svelte-40f46w.svelte-40f46w::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-40f46w.svelte-40f46w{width:50%;display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:-6px;left:50%;transform:translateX(-50%);color:var(--emw--color-white, #FFF);border-radius:var(--mmw--border-radius-medium-plus, 6px);z-index:1;opacity:1;container-name:copy-tooltip;font-size:var(--emw--font-size-medium, 16px);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);padding:4px}.CashierTransactionHistory.svelte-40f46w.svelte-40f46w{display:flex;flex-direction:column;position:relative;width:100%;row-gap:var(--emw--spacing-small, 12px);container-name:transaction-history;container-type:inline-size;margin-bottom:var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-40f46w table.svelte-40f46w{font-size:var(--emw--font-size-medium, 16px);word-break:break-all;width:100%;border-collapse:collapse;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;margin-bottom:var(--emw--spacing-small-minus, 10px)}.CashierTransactionHistory.svelte-40f46w table.svelte-40f46w:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-40f46w thead tr.svelte-40f46w{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-40f46w tbody tr.svelte-40f46w{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{max-width:250px;vertical-align:middle;height:40px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 var(--emw--spacing-large, 20px) 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-40f46w tr.svelte-40f46w{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-40f46w .CopyTooltip.svelte-40f46w{width:100%}.CashierTransactionHistory.svelte-40f46w .CashierTransactionId.svelte-40f46w{max-width:150px}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-40f46w .CashierTransactionHistoryWrapper.svelte-40f46w{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-40f46w td.svelte-40f46w:first-child{max-width:75px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-40f46w table.svelte-40f46w{table-layout:fixed}.CashierTransactionHistory.svelte-40f46w table td.svelte-40f46w{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-40f46w.svelte-40f46w{background:var(--emw--color-background, #fff);box-shadow:0 0 4px var(--mmw--color-black-transparency-10, rgba(0, 0, 0, 0.1));border-radius:var(--mmw--border-radius-medium-plus, 6px);width:100%;box-sizing:border-box;padding:0 var(--emw--spacing-small, 12px)}.CashierTransactionHistoryTitle.svelte-40f46w.svelte-40f46w{color:var(--mmw--color-grey-10, #111);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-normal, 400);line-height:calc(var(--emw--font-size-medium, 16px) + 2px);text-align:left}.CashierTransactionId.svelte-40f46w.svelte-40f46w{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-40f46w.svelte-40f46w:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-40f46w.svelte-40f46w{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-40f46w.svelte-40f46w{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-40f46w.svelte-40f46w{width:100%}.CashierTransactionHistoryIcon.svelte-40f46w.svelte-40f46w{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
71
+ }
72
+ function $(a, t, s) {
73
+ const i = a.slice();
74
+ return i[24] = t[s], i[26] = s, i;
75
+ }
76
+ function tt(a) {
77
+ let t, s, i, o = (
78
+ /*$_*/
79
+ a[5]("transactionHistoryTitle") + ""
80
+ ), c, f, u, g, x, k, m, H, R = (
81
+ /*$_*/
82
+ a[5]("transactionIdTitle") + ""
83
+ ), z, y, C, b = (
84
+ /*$_*/
85
+ a[5]("transactionDateTitle") + ""
86
+ ), A, D, L, U = (
87
+ /*$_*/
88
+ a[5]("transactionTypeTitle") + ""
89
+ ), B, Y, P, S = (
90
+ /*$_*/
91
+ a[5]("transactionStatusTitle") + ""
92
+ ), p, n, r, d = (
93
+ /*copied*/
94
+ a[3] && et(a)
95
+ ), N = J(
96
+ /*txnHistory*/
97
+ a[2]
98
+ ), h = [];
99
+ for (let w = 0; w < N.length; w += 1)
100
+ h[w] = st($(a, N, w));
101
+ return {
102
+ c() {
103
+ t = v("div"), d && d.c(), s = j(), i = v("h3"), c = I(o), f = j(), u = v("div"), g = v("div"), x = v("table"), k = v("thead"), m = v("tr"), H = v("td"), z = I(R), y = j(), C = v("td"), A = I(b), D = j(), L = v("td"), B = I(U), Y = j(), P = v("td"), p = I(S), n = j(), r = v("tbody");
104
+ for (let w = 0; w < h.length; w += 1)
105
+ h[w].c();
106
+ e(i, "class", "CashierTransactionHistoryTitle svelte-40f46w"), e(H, "class", "svelte-40f46w"), e(C, "class", "svelte-40f46w"), e(L, "class", "svelte-40f46w"), e(P, "class", "svelte-40f46w"), e(m, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(r, "class", "svelte-40f46w"), e(x, "class", "svelte-40f46w"), e(g, "class", "CashierTransactionHistoryContent svelte-40f46w"), e(u, "class", "CashierTransactionHistoryWrapper svelte-40f46w"), e(t, "class", "CashierTransactionHistory svelte-40f46w");
107
+ },
108
+ m(w, F) {
109
+ W(w, t, F), d && d.m(t, null), l(t, s), l(t, i), l(i, c), l(t, f), l(t, u), l(u, g), l(g, x), l(x, k), l(k, m), l(m, H), l(H, z), l(m, y), l(m, C), l(C, A), l(m, D), l(m, L), l(L, B), l(m, Y), l(m, P), l(P, p), l(x, n), l(x, r);
110
+ for (let T = 0; T < h.length; T += 1)
111
+ h[T] && h[T].m(r, null);
112
+ a[16](t);
113
+ },
114
+ p(w, F) {
115
+ if (/*copied*/
116
+ w[3] ? d ? (d.p(w, F), F & /*copied*/
117
+ 8 && K(d, 1)) : (d = et(w), d.c(), K(d, 1), d.m(t, s)) : d && (dt(), ft(d, 1, 1, () => {
118
+ d = null;
119
+ }), ut()), F & /*$_*/
120
+ 32 && o !== (o = /*$_*/
121
+ w[5]("transactionHistoryTitle") + "") && M(c, o), F & /*$_*/
122
+ 32 && R !== (R = /*$_*/
123
+ w[5]("transactionIdTitle") + "") && M(z, R), F & /*$_*/
124
+ 32 && b !== (b = /*$_*/
125
+ w[5]("transactionDateTitle") + "") && M(A, b), F & /*$_*/
126
+ 32 && U !== (U = /*$_*/
127
+ w[5]("transactionTypeTitle") + "") && M(B, U), F & /*$_*/
128
+ 32 && S !== (S = /*$_*/
129
+ w[5]("transactionStatusTitle") + "") && M(p, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
+ 124) {
131
+ N = J(
132
+ /*txnHistory*/
133
+ w[2]
134
+ );
135
+ let T;
136
+ for (T = 0; T < N.length; T += 1) {
137
+ const q = $(w, N, T);
138
+ h[T] ? h[T].p(q, F) : (h[T] = st(q), h[T].c(), h[T].m(r, null));
139
+ }
140
+ for (; T < h.length; T += 1)
141
+ h[T].d(1);
142
+ h.length = N.length;
143
+ }
144
+ },
145
+ d(w) {
146
+ w && O(t), d && d.d(), wt(h, w), a[16](null);
147
+ }
148
+ };
149
+ }
150
+ function et(a) {
151
+ let t, s = (
152
+ /*$_*/
153
+ a[5]("copyTransactionId") + ""
154
+ ), i, o, c, f;
155
+ return {
156
+ c() {
157
+ t = v("div"), i = I(s), e(t, "class", "CopyTooltip svelte-40f46w");
158
+ },
159
+ m(u, g) {
160
+ W(u, t, g), l(t, i), f = !0;
161
+ },
162
+ p(u, g) {
163
+ a = u, (!f || g & /*$_*/
164
+ 32) && s !== (s = /*$_*/
165
+ a[5]("copyTransactionId") + "") && M(i, s);
166
+ },
167
+ i(u) {
168
+ f || (u && ht(() => {
169
+ f && (c && c.end(1), o = vt(t, G, { duration: 100 }), o.start());
170
+ }), f = !0);
171
+ },
172
+ o(u) {
173
+ o && o.invalidate(), u && (c = mt(t, G, { duration: (
174
+ /*tooltipduration*/
175
+ a[0]
176
+ ) })), f = !1;
177
+ },
178
+ d(u) {
179
+ u && O(t), u && c && c.end();
180
+ }
181
+ };
182
+ }
183
+ function zt(a) {
184
+ let t, s, i;
185
+ return {
186
+ c() {
187
+ t = _("svg"), s = _("circle"), i = _("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#25bf00"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "d", "M8 12L11 15L16 9"), e(i, "stroke", "#25bf00"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
188
+ },
189
+ m(o, c) {
190
+ W(o, t, c), l(t, s), l(t, i);
191
+ },
192
+ d(o) {
193
+ o && O(t);
194
+ }
195
+ };
196
+ }
197
+ function Dt(a) {
198
+ let t, s, i, o;
199
+ return {
200
+ c() {
201
+ t = _("svg"), s = _("circle"), i = _("text"), o = I("R"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#dd6617d4"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#dd6617d4"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
202
+ },
203
+ m(c, f) {
204
+ W(c, t, f), l(t, s), l(t, i), l(i, o);
205
+ },
206
+ d(c) {
207
+ c && O(t);
208
+ }
209
+ };
210
+ }
211
+ function It(a) {
212
+ let t, s, i;
213
+ return {
214
+ c() {
215
+ t = _("svg"), s = _("circle"), i = _("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#f0a85f"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "d", "M12 7V12L15 14"), e(i, "stroke", "#f0a85f"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
216
+ },
217
+ m(o, c) {
218
+ W(o, t, c), l(t, s), l(t, i);
219
+ },
220
+ d(o) {
221
+ o && O(t);
222
+ }
223
+ };
224
+ }
225
+ function At(a) {
226
+ let t, s, i;
227
+ return {
228
+ c() {
229
+ t = _("svg"), s = _("circle"), i = _("path"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#e76049"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "d", "M9 9L15 15M15 9L9 15"), e(i, "stroke", "#e76049"), e(i, "stroke-width", "2"), e(i, "stroke-linecap", "round"), e(i, "stroke-linejoin", "round"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
230
+ },
231
+ m(o, c) {
232
+ W(o, t, c), l(t, s), l(t, i);
233
+ },
234
+ d(o) {
235
+ o && O(t);
236
+ }
237
+ };
238
+ }
239
+ function Ft(a) {
240
+ let t, s, i, o;
241
+ return {
242
+ c() {
243
+ t = _("svg"), s = _("circle"), i = _("text"), o = I("A"), e(s, "cx", "12"), e(s, "cy", "12"), e(s, "r", "10"), e(s, "stroke", "#32b398"), e(s, "stroke-width", "2"), e(s, "class", "svelte-40f46w"), e(i, "x", "50%"), e(i, "y", "54%"), e(i, "text-anchor", "middle"), e(i, "dominant-baseline", "middle"), e(i, "font-size", "14"), e(i, "font-weight", "bold"), e(i, "fill", "#32b398"), e(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), e(i, "class", "svelte-40f46w"), e(t, "width", "18"), e(t, "height", "18"), e(t, "viewBox", "0 0 24 24"), e(t, "fill", "none"), e(t, "xmlns", "http://www.w3.org/2000/svg"), e(t, "class", "svelte-40f46w");
244
+ },
245
+ m(c, f) {
246
+ W(c, t, f), l(t, s), l(t, i), l(i, o);
247
+ },
248
+ d(c) {
249
+ c && O(t);
250
+ }
251
+ };
252
+ }
253
+ function st(a) {
254
+ let t, s, i = (
255
+ /*transaction*/
256
+ a[24].Code + ""
257
+ ), o, c, f, u = (
258
+ /*transaction*/
259
+ a[24].Date + ""
260
+ ), g, x, k, m = (
261
+ /*$_*/
262
+ a[5](`transactionType.${/*transaction*/
263
+ a[24].Type}`) + ""
264
+ ), H, R, z, y, C, b, A, D = (
265
+ /*$_*/
266
+ a[5](`transactionStatus.${/*transaction*/
267
+ a[24].Status}`) + ""
268
+ ), L, U, B, Y;
269
+ function P(n, r) {
270
+ if (
271
+ /*transaction*/
272
+ n[24].Status === /*TransactionMainStatus*/
273
+ n[4].Authorized
274
+ )
275
+ return Ft;
276
+ if (
277
+ /*transaction*/
278
+ n[24].Status === /*TransactionMainStatus*/
279
+ n[4].Failed
280
+ )
281
+ return At;
282
+ if (
283
+ /*transaction*/
284
+ n[24].Status === /*TransactionMainStatus*/
285
+ n[4].Pending
286
+ )
287
+ return It;
288
+ if (
289
+ /*transaction*/
290
+ n[24].Status === /*TransactionMainStatus*/
291
+ n[4].Rejected
292
+ )
293
+ return Dt;
294
+ if (
295
+ /*transaction*/
296
+ n[24].Status === /*TransactionMainStatus*/
297
+ n[4].Success
298
+ )
299
+ return zt;
300
+ }
301
+ let S = P(a), p = S && S(a);
302
+ return {
303
+ c() {
304
+ t = v("tr"), s = v("td"), o = I(i), c = j(), f = v("td"), g = I(u), x = j(), k = v("td"), H = I(m), R = j(), z = v("td"), y = v("div"), C = v("span"), p && p.c(), b = j(), A = v("span"), L = I(D), U = j(), e(s, "class", "CashierTransactionId svelte-40f46w"), V(
305
+ s,
306
+ "copied",
307
+ /*copied*/
308
+ a[3]
309
+ ), e(f, "class", "svelte-40f46w"), e(k, "class", "svelte-40f46w"), e(C, "class", "CashierTransactionHistoryIcon svelte-40f46w"), e(A, "class", "CashierTransactionHistoryStatusText svelte-40f46w"), e(y, "class", "CashierTransactionHistoryStatus svelte-40f46w"), e(z, "class", "svelte-40f46w"), e(t, "class", "svelte-40f46w");
310
+ },
311
+ m(n, r) {
312
+ W(n, t, r), l(t, s), l(s, o), l(t, c), l(t, f), l(f, g), l(t, x), l(t, k), l(k, H), l(t, R), l(t, z), l(z, y), l(y, C), p && p.m(C, null), l(y, b), l(y, A), l(A, L), l(t, U), B || (Y = pt(
313
+ s,
314
+ "mousedown",
315
+ /*mousedown_handler*/
316
+ a[15]
317
+ ), B = !0);
318
+ },
319
+ p(n, r) {
320
+ r & /*txnHistory*/
321
+ 4 && i !== (i = /*transaction*/
322
+ n[24].Code + "") && M(o, i), r & /*copied*/
323
+ 8 && V(
324
+ s,
325
+ "copied",
326
+ /*copied*/
327
+ n[3]
328
+ ), r & /*txnHistory*/
329
+ 4 && u !== (u = /*transaction*/
330
+ n[24].Date + "") && M(g, u), r & /*$_, txnHistory*/
331
+ 36 && m !== (m = /*$_*/
332
+ n[5](`transactionType.${/*transaction*/
333
+ n[24].Type}`) + "") && M(H, m), S !== (S = P(n)) && (p && p.d(1), p = S && S(n), p && (p.c(), p.m(C, null))), r & /*$_, txnHistory*/
334
+ 36 && D !== (D = /*$_*/
335
+ n[5](`transactionStatus.${/*transaction*/
336
+ n[24].Status}`) + "") && M(L, D);
337
+ },
338
+ d(n) {
339
+ n && O(t), p && p.d(), B = !1, Y();
340
+ }
341
+ };
342
+ }
343
+ function jt(a) {
344
+ let t, s = (
345
+ /*txnHistory*/
346
+ a[2].length && tt(a)
347
+ );
348
+ return {
349
+ c() {
350
+ s && s.c(), t = rt();
351
+ },
352
+ m(i, o) {
353
+ s && s.m(i, o), W(i, t, o);
354
+ },
355
+ p(i, [o]) {
356
+ /*txnHistory*/
357
+ i[2].length ? s ? s.p(i, o) : (s = tt(i), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null);
358
+ },
359
+ i: X,
360
+ o: X,
361
+ d(i) {
362
+ i && O(t), s && s.d(i);
363
+ }
364
+ };
365
+ }
366
+ const Rt = "DD.MM.YYYY";
367
+ function Lt(a, t, s) {
368
+ let i;
369
+ ct(a, _t, (n) => s(5, i = n));
370
+ let { endpoint: o } = t, { session: c } = t, { lang: f = "en" } = t, { customerid: u } = t, { clientstyling: g = "" } = t, { clientstylingurl: x = "" } = t, { translationurl: k } = t, { tooltipduration: m = 1e3 } = t, { txncount: H = 3 } = t, R = [], z = !1, y, C;
371
+ var b;
372
+ (function(n) {
373
+ n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
374
+ })(b || (b = {}));
375
+ const A = [
376
+ "Authorized",
377
+ "Success",
378
+ "Failed",
379
+ "Rejected",
380
+ "PendingApprovalStage1",
381
+ "PendingApprovalStage2",
382
+ "PendingApprovalStage3",
383
+ "PendingNotification",
384
+ "PendingOfflineNotification",
385
+ "PendingConfirmation"
386
+ ];
387
+ var D;
388
+ (function(n) {
389
+ n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
390
+ })(D || (D = {}));
391
+ const L = () => {
392
+ let n = k;
393
+ if (n)
394
+ return fetch(n).then((r) => r.json()).then((r) => {
395
+ Object.keys(r).forEach((d) => {
396
+ Q(d, r[d]);
397
+ });
398
+ }).catch((r) => {
399
+ console.log(r);
400
+ });
401
+ };
402
+ Object.keys(Z).forEach((n) => {
403
+ Q(n, Z[n]);
404
+ });
405
+ const U = () => {
406
+ kt(f);
407
+ }, B = () => {
408
+ const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
409
+ r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
410
+ const d = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), N = {
411
+ method: "POST",
412
+ mode: "cors",
413
+ headers: r,
414
+ body: JSON.stringify({
415
+ language: f,
416
+ customerId: u,
417
+ count: H,
418
+ page: 0,
419
+ fromDate: d,
420
+ toDate: null,
421
+ statuses: {
422
+ [b.Deposit]: A,
423
+ [b.Withdraw]: A,
424
+ [b.Refund]: ["Unknown"],
425
+ [b.TaxDeduction]: ["Unknown"],
426
+ [b.Unknown]: ["Unknown"]
427
+ },
428
+ calculateProfit: !1
429
+ })
430
+ };
431
+ fetch(n, N).then((h) => h.json()).then((h) => {
432
+ s(2, R = Y((h == null ? void 0 : h.items) || []));
433
+ }).catch((h) => console.log(h));
434
+ }, Y = (n) => n.map((r) => {
435
+ let d = r.generalFields.status;
436
+ return r.generalFields.status.toLowerCase().includes("pending") && (d = D.Pending), {
437
+ Code: r.generalFields.code,
438
+ Date: xt(r.generalFields.created).format(Rt),
439
+ Status: d,
440
+ Type: r.generalFields.type
441
+ };
442
+ }) || [], P = (n) => {
443
+ const r = n.currentTarget;
444
+ n.target === r && navigator.clipboard.writeText(r.innerText).then(() => {
445
+ s(3, z = !0), clearTimeout(C), C = setTimeout(
446
+ () => {
447
+ s(3, z = !1);
448
+ },
449
+ 2e3
450
+ );
451
+ }).catch((d) => {
452
+ console.error("Could not copy text: ", d);
453
+ });
454
+ }, S = (n) => P(n);
455
+ function p(n) {
456
+ gt[n ? "unshift" : "push"](() => {
457
+ y = n, s(1, y);
458
+ });
459
+ }
460
+ return a.$$set = (n) => {
461
+ "endpoint" in n && s(7, o = n.endpoint), "session" in n && s(8, c = n.session), "lang" in n && s(9, f = n.lang), "customerid" in n && s(10, u = n.customerid), "clientstyling" in n && s(11, g = n.clientstyling), "clientstylingurl" in n && s(12, x = n.clientstylingurl), "translationurl" in n && s(13, k = n.translationurl), "tooltipduration" in n && s(0, m = n.tooltipduration), "txncount" in n && s(14, H = n.txncount);
462
+ }, a.$$.update = () => {
463
+ a.$$.dirty & /*lang*/
464
+ 512 && f && U(), a.$$.dirty & /*clientstyling, customStylingContainer*/
465
+ 2050 && g && y && Ct(y, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
466
+ 4098 && x && y && St(y, x), a.$$.dirty & /*endpoint, session, customerid, lang*/
467
+ 1920 && o && c && u && f && B(), a.$$.dirty & /*translationurl*/
468
+ 8192 && k && L();
469
+ }, [
470
+ m,
471
+ y,
472
+ R,
473
+ z,
474
+ D,
475
+ i,
476
+ P,
477
+ o,
478
+ c,
479
+ f,
480
+ u,
481
+ g,
482
+ x,
483
+ k,
484
+ H,
485
+ S,
486
+ p
487
+ ];
488
+ }
489
+ class Pt extends it {
490
+ constructor(t) {
491
+ super(), nt(
492
+ this,
493
+ t,
494
+ Lt,
495
+ jt,
496
+ lt,
497
+ {
498
+ endpoint: 7,
499
+ session: 8,
500
+ lang: 9,
501
+ customerid: 10,
502
+ clientstyling: 11,
503
+ clientstylingurl: 12,
504
+ translationurl: 13,
505
+ tooltipduration: 0,
506
+ txncount: 14
507
+ },
508
+ Ht
509
+ );
510
+ }
511
+ get endpoint() {
512
+ return this.$$.ctx[7];
513
+ }
514
+ set endpoint(t) {
515
+ this.$$set({ endpoint: t }), E();
516
+ }
517
+ get session() {
518
+ return this.$$.ctx[8];
519
+ }
520
+ set session(t) {
521
+ this.$$set({ session: t }), E();
522
+ }
523
+ get lang() {
524
+ return this.$$.ctx[9];
525
+ }
526
+ set lang(t) {
527
+ this.$$set({ lang: t }), E();
528
+ }
529
+ get customerid() {
530
+ return this.$$.ctx[10];
531
+ }
532
+ set customerid(t) {
533
+ this.$$set({ customerid: t }), E();
534
+ }
535
+ get clientstyling() {
536
+ return this.$$.ctx[11];
537
+ }
538
+ set clientstyling(t) {
539
+ this.$$set({ clientstyling: t }), E();
540
+ }
541
+ get clientstylingurl() {
542
+ return this.$$.ctx[12];
543
+ }
544
+ set clientstylingurl(t) {
545
+ this.$$set({ clientstylingurl: t }), E();
546
+ }
547
+ get translationurl() {
548
+ return this.$$.ctx[13];
549
+ }
550
+ set translationurl(t) {
551
+ this.$$set({ translationurl: t }), E();
552
+ }
553
+ get tooltipduration() {
554
+ return this.$$.ctx[0];
555
+ }
556
+ set tooltipduration(t) {
557
+ this.$$set({ tooltipduration: t }), E();
558
+ }
559
+ get txncount() {
560
+ return this.$$.ctx[14];
561
+ }
562
+ set txncount(t) {
563
+ this.$$set({ txncount: t }), E();
564
+ }
565
+ }
566
+ at(Pt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
567
+ export {
568
+ Pt as default
569
+ };