@everymatrix/cashier-page 1.56.2 → 1.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,572 +0,0 @@
1
- import { S as ie, b as se, f as G, c as ne, a as ae, d as re, x as oe, k as E, n as N, v as U, w as de, K as Y, g as m, h as j, y as I, j as t, l as s, t as q, B as ce, p as ue, q as he, z as M, M as fe, F as ge, W as pe, X as ve, I as X, A as me, C as be, O as f } from "./CashierConfirmModal-BErwh2fQ.js";
2
- import { f as J } from "./CashierModal-CpN2LT2L.js";
3
- import { i as ke, a as we, $ as ye, b as Te } from "./CashierError-DoHJAf67.js";
4
- import { d as Ce } from "./CashierMethodDetails-T4mbzimW.js";
5
- ke({
6
- fallbackLocale: "en"
7
- });
8
- function K(a, e) {
9
- we(a, e);
10
- }
11
- function _e(a) {
12
- ye.set(a);
13
- }
14
- const Q = {
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 xe(a, e) {
55
- if (a) {
56
- const l = document.createElement("style");
57
- l.innerHTML = e, a.appendChild(l);
58
- }
59
- }
60
- function He(a, e) {
61
- const l = new URL(e);
62
- fetch(l.href).then((i) => i.text()).then((i) => {
63
- const r = document.createElement("style");
64
- r.innerHTML = i, a && a.appendChild(r);
65
- }).catch((i) => {
66
- console.error("There was an error while trying to load client styling from URL", i);
67
- });
68
- }
69
- function Se(a) {
70
- re(a, "svelte-1klbu7d", ".svelte-1klbu7d.svelte-1klbu7d,.svelte-1klbu7d.svelte-1klbu7d::before,.svelte-1klbu7d.svelte-1klbu7d::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1klbu7d.svelte-1klbu7d{width:calc(50% - var(--emw--spacing-x-small, 10px) - var(--emw--spacing-x-small, 10px));display:flex;align-items:center;justify-content:center;background-color:var(--emw--color-primary, #7EC51E);position:absolute;top:0;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)}.CashierTransactionHistory.svelte-1klbu7d.svelte-1klbu7d{display:flex;flex-direction:column;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-1klbu7d table.svelte-1klbu7d{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-1klbu7d table.svelte-1klbu7d:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1klbu7d thead tr.svelte-1klbu7d{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1klbu7d tbody tr.svelte-1klbu7d{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{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-1klbu7d tr.svelte-1klbu7d{position:relative}@container deposit-page (max-width: 750px){.CashierTransactionHistory.svelte-1klbu7d .CopyTooltip.svelte-1klbu7d{left:0;transform:none;width:100%;font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-small, 14px) + 2px);border-radius:0 0 var(--mmw--border-radius-medium-plus, 6px) var(--mmw--border-radius-medium-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryStatus.svelte-1klbu7d{line-height:calc(var(--emw--font-size-small, 14px) + 2px)}}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryWrapper.svelte-1klbu7d{width:100%;padding:0;margin:0}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{font-size:var(--emw--font-size-small, 14px);line-height:calc(var(--emw--font-size-small, 14px) + 2px)}.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d:last-child{margin-bottom:0}.CashierTransactionHistory.svelte-1klbu7d thead tr.svelte-1klbu7d{height:unset}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{height:25px;padding:0 0 0 var(--emw--spacing-small, 12px)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:first-child{max-width:187px}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:not(:first-child){min-width:max-content}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:last-child{padding-right:var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d .CashierTransactionHistoryIcon svg.svelte-1klbu7d{height:14px;width:14px}}@container transaction-history (width < 450px){.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{padding-right:var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d:first-child{max-width:85px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1klbu7d td.svelte-1klbu7d{padding:0 0 0 var(--emw--spacing-small, 5px)}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1klbu7d table.svelte-1klbu7d{table-layout:fixed}}.CashierTransactionHistoryWrapper.svelte-1klbu7d.svelte-1klbu7d{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-1klbu7d.svelte-1klbu7d{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-1klbu7d.svelte-1klbu7d{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1klbu7d.svelte-1klbu7d:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1klbu7d.svelte-1klbu7d{line-height:calc(var(--emw--font-size-medium, 16px) + 2px)}.CashierTransactionHistoryContent.svelte-1klbu7d.svelte-1klbu7d{width:100%}.CashierTransactionHistoryIcon.svelte-1klbu7d.svelte-1klbu7d{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
71
- }
72
- function $(a, e, l) {
73
- const i = a.slice();
74
- return i[24] = e[l], i[26] = l, i;
75
- }
76
- function ee(a) {
77
- let e, l, i, r = (
78
- /*$_*/
79
- a[5]("transactionHistoryTitle") + ""
80
- ), d, o, c, g, k, x, w, z, F = (
81
- /*$_*/
82
- a[5]("transactionIdTitle") + ""
83
- ), H, _, A, y = (
84
- /*$_*/
85
- a[5]("transactionDateTitle") + ""
86
- ), R, D, P, L = (
87
- /*$_*/
88
- a[5]("transactionTypeTitle") + ""
89
- ), O, Z, S, b = (
90
- /*$_*/
91
- a[5]("transactionStatusTitle") + ""
92
- ), h, n, p, v = (
93
- /*copied*/
94
- a[3] && te(a)
95
- ), W = Y(
96
- /*txnHistory*/
97
- a[2]
98
- ), T = [];
99
- for (let u = 0; u < W.length; u += 1)
100
- T[u] = le($(a, W, u));
101
- return {
102
- c() {
103
- e = m("div"), v && v.c(), l = j(), i = m("h3"), d = I(r), o = j(), c = m("div"), g = m("div"), k = m("table"), x = m("thead"), w = m("tr"), z = m("td"), H = I(F), _ = j(), A = m("td"), R = I(y), D = j(), P = m("td"), O = I(L), Z = j(), S = m("td"), h = I(b), n = j(), p = m("tbody");
104
- for (let u = 0; u < T.length; u += 1)
105
- T[u].c();
106
- t(i, "class", "CashierTransactionHistoryTitle svelte-1klbu7d"), t(z, "class", "svelte-1klbu7d"), t(A, "class", "svelte-1klbu7d"), t(P, "class", "svelte-1klbu7d"), t(S, "class", "svelte-1klbu7d"), t(w, "class", "svelte-1klbu7d"), t(x, "class", "svelte-1klbu7d"), t(p, "class", "svelte-1klbu7d"), t(k, "class", "svelte-1klbu7d"), t(g, "class", "CashierTransactionHistoryContent svelte-1klbu7d"), t(c, "class", "CashierTransactionHistoryWrapper svelte-1klbu7d"), t(e, "class", "CashierTransactionHistory svelte-1klbu7d");
107
- },
108
- m(u, V) {
109
- E(u, e, V), v && v.m(e, null), s(e, l), s(e, i), s(i, d), s(e, o), s(e, c), s(c, g), s(g, k), s(k, x), s(x, w), s(w, z), s(z, H), s(w, _), s(w, A), s(A, R), s(w, D), s(w, P), s(P, O), s(w, Z), s(w, S), s(S, h), s(k, n), s(k, p);
110
- for (let C = 0; C < T.length; C += 1)
111
- T[C] && T[C].m(p, null);
112
- a[16](e);
113
- },
114
- p(u, V) {
115
- if (/*copied*/
116
- u[3] ? v ? (v.p(u, V), V & /*copied*/
117
- 8 && q(v, 1)) : (v = te(u), v.c(), q(v, 1), v.m(e, l)) : v && (ce(), ue(v, 1, 1, () => {
118
- v = null;
119
- }), he()), V & /*$_*/
120
- 32 && r !== (r = /*$_*/
121
- u[5]("transactionHistoryTitle") + "") && M(d, r), V & /*$_*/
122
- 32 && F !== (F = /*$_*/
123
- u[5]("transactionIdTitle") + "") && M(H, F), V & /*$_*/
124
- 32 && y !== (y = /*$_*/
125
- u[5]("transactionDateTitle") + "") && M(R, y), V & /*$_*/
126
- 32 && L !== (L = /*$_*/
127
- u[5]("transactionTypeTitle") + "") && M(O, L), V & /*$_*/
128
- 32 && b !== (b = /*$_*/
129
- u[5]("transactionStatusTitle") + "") && M(h, b), V & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
130
- 124) {
131
- W = Y(
132
- /*txnHistory*/
133
- u[2]
134
- );
135
- let C;
136
- for (C = 0; C < W.length; C += 1) {
137
- const B = $(u, W, C);
138
- T[C] ? T[C].p(B, V) : (T[C] = le(B), T[C].c(), T[C].m(p, null));
139
- }
140
- for (; C < T.length; C += 1)
141
- T[C].d(1);
142
- T.length = W.length;
143
- }
144
- },
145
- d(u) {
146
- u && U(e), v && v.d(), fe(T, u), a[16](null);
147
- }
148
- };
149
- }
150
- function te(a) {
151
- let e, l = (
152
- /*$_*/
153
- a[5]("copyTransactionId") + ""
154
- ), i, r, d, o;
155
- return {
156
- c() {
157
- e = m("div"), i = I(l), t(e, "class", "CopyTooltip svelte-1klbu7d");
158
- },
159
- m(c, g) {
160
- E(c, e, g), s(e, i), o = !0;
161
- },
162
- p(c, g) {
163
- a = c, (!o || g & /*$_*/
164
- 32) && l !== (l = /*$_*/
165
- a[5]("copyTransactionId") + "") && M(i, l);
166
- },
167
- i(c) {
168
- o || (c && ge(() => {
169
- o && (d && d.end(1), r = pe(e, J, { duration: (
170
- /*tooltipduration*/
171
- a[0]
172
- ) }), r.start());
173
- }), o = !0);
174
- },
175
- o(c) {
176
- r && r.invalidate(), c && (d = ve(e, J, { duration: (
177
- /*tooltipduration*/
178
- a[0]
179
- ) })), o = !1;
180
- },
181
- d(c) {
182
- c && U(e), c && d && d.end();
183
- }
184
- };
185
- }
186
- function ze(a) {
187
- let e, l, i, r, d;
188
- return {
189
- c() {
190
- e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "fill-rule", "evenodd"), t(d, "clip-rule", "evenodd"), t(d, "d", "M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM16.0303 8.96967C16.3232 9.26256 16.3232 9.73744 16.0303 10.0303L11.0303 15.0303C10.7374 15.3232 10.2626 15.3232 9.96967 15.0303L7.96967 13.0303C7.67678 12.7374 7.67678 12.2626 7.96967 11.9697C8.26256 11.6768 8.73744 11.6768 9.03033 11.9697L10.5 13.4393L12.7348 11.2045L14.9697 8.96967C15.2626 8.67678 15.7374 8.67678 16.0303 8.96967Z"), t(d, "fill", "#7EC51E"), t(d, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
191
- },
192
- m(o, c) {
193
- E(o, e, c), s(e, l), s(e, i), s(e, r), s(r, d);
194
- },
195
- d(o) {
196
- o && U(e);
197
- }
198
- };
199
- }
200
- function Re(a) {
201
- let e, l, i, r, d, o, c;
202
- return {
203
- c() {
204
- e = f("svg"), l = f("g"), i = f("rect"), r = f("g"), d = f("g"), o = f("text"), c = I("R j"), t(i, "x", "-2.4"), t(i, "y", "-2.4"), t(i, "width", "28.80"), t(i, "height", "28.80"), t(i, "rx", "14.4"), t(i, "fill", "#dd6617d4"), t(i, "class", "svelte-1klbu7d"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_tracerCarrier"), t(r, "stroke-linecap", "round"), t(r, "stroke-linejoin", "round"), t(r, "class", "svelte-1klbu7d"), t(o, "x", "42%"), t(o, "y", "50%"), t(o, "dominant-baseline", "middle"), t(o, "text-anchor", "middle"), t(o, "font-family", "Arial"), t(o, "font-size", "16"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(d, "id", "SVGRepo_iconCarrier"), t(d, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "-2.4 -2.4 28.80 28.80"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
205
- },
206
- m(g, k) {
207
- E(g, e, k), s(e, l), s(l, i), s(e, r), s(e, d), s(d, o), s(o, c);
208
- },
209
- d(g) {
210
- g && U(e);
211
- }
212
- };
213
- }
214
- function De(a) {
215
- let e, l, i, r, d, o, c;
216
- return {
217
- c() {
218
- e = f("svg"), l = f("g"), i = f("rect"), r = f("g"), d = f("g"), o = f("path"), c = f("path"), t(i, "x", "-2.4"), t(i, "y", "-2.4"), t(i, "width", "28.80"), t(i, "height", "28.80"), t(i, "rx", "14.4"), t(i, "fill", "#dd6617d4"), t(i, "class", "svelte-1klbu7d"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_tracerCarrier"), t(r, "stroke-linecap", "round"), t(r, "stroke-linejoin", "round"), t(r, "class", "svelte-1klbu7d"), t(o, "d", "M13 6H11V7C11 7.55228 11.4477 8 12 8C12.5523 8 13 7.55228 13 7V6Z"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(c, "fill-rule", "evenodd"), t(c, "clip-rule", "evenodd"), t(c, "d", "M6 2V4H7V7C7 9.76142 9.23858 12 12 12C9.23858 12 7 14.2386 7 17V20H6V22H18V20H17V17C17 14.2386 14.7614 12 12 12C14.7614 12 17 9.76142 17 7V4H18V2H6ZM9 4H15V7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7V4ZM9 17V20H15V17C15 15.3431 13.6569 14 12 14C10.3431 14 9 15.3431 9 17Z"), t(c, "fill", "#ffffff"), t(c, "class", "svelte-1klbu7d"), t(d, "id", "SVGRepo_iconCarrier"), t(d, "class", "svelte-1klbu7d"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "-2.4 -2.4 28.80 28.80"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
219
- },
220
- m(g, k) {
221
- E(g, e, k), s(e, l), s(l, i), s(e, r), s(e, d), s(d, o), s(d, c);
222
- },
223
- d(g) {
224
- g && U(e);
225
- }
226
- };
227
- }
228
- function Ve(a) {
229
- let e, l, i, r, d;
230
- return {
231
- c() {
232
- e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "d", "M960 0c530.193 0 960 429.807 960 960s-429.807 960-960 960S0 1490.193 0 960 429.807 0 960 0Zm-9.838 1342.685c-84.47 0-153.19 68.721-153.19 153.19 0 84.47 68.72 153.192 153.19 153.192s153.19-68.721 153.19-153.191-68.72-153.19-153.19-153.19ZM1153.658 320H746.667l99.118 898.623h208.755L1153.658 320Z"), t(d, "fill-rule", "evenodd"), t(d, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "fill", "#ed0909"), t(e, "width", "16px"), t(e, "height", "16px"), t(e, "viewBox", "0 0 1920 1920"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1klbu7d");
233
- },
234
- m(o, c) {
235
- E(o, e, c), s(e, l), s(e, i), s(e, r), s(r, d);
236
- },
237
- d(o) {
238
- o && U(e);
239
- }
240
- };
241
- }
242
- function je(a) {
243
- let e, l, i, r, d, o;
244
- return {
245
- c() {
246
- e = f("svg"), l = f("g"), i = f("g"), r = f("g"), d = f("circle"), o = f("path"), t(l, "id", "SVGRepo_bgCarrier"), t(l, "stroke-width", "0"), t(l, "class", "svelte-1klbu7d"), t(i, "id", "SVGRepo_tracerCarrier"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1klbu7d"), t(d, "cx", "32"), t(d, "cy", "32"), t(d, "r", "30"), t(d, "fill", "#4fd1d9"), t(d, "class", "svelte-1klbu7d"), t(o, "d", "M28.6 17.5h6.9l10.3 29h-6.6l-1.9-6H26.6l-2 6h-6.3l10.3-29m-.4 18h7.4L32 24.1l-3.8 11.4"), t(o, "fill", "#ffffff"), t(o, "class", "svelte-1klbu7d"), t(r, "id", "SVGRepo_iconCarrier"), t(r, "class", "svelte-1klbu7d"), t(e, "width", "14px"), t(e, "height", "14px"), t(e, "viewBox", "0 0 64 64"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "xmlns:xlink", "http://www.w3.org/1999/xlink"), t(e, "aria-hidden", "true"), t(e, "role", "img"), t(e, "class", "iconify iconify--emojione svelte-1klbu7d"), t(e, "preserveAspectRatio", "xMidYMid meet"), t(e, "fill", "#000000");
247
- },
248
- m(c, g) {
249
- E(c, e, g), s(e, l), s(e, i), s(e, r), s(r, d), s(r, o);
250
- },
251
- d(c) {
252
- c && U(e);
253
- }
254
- };
255
- }
256
- function le(a) {
257
- let e, l, i = (
258
- /*transaction*/
259
- a[24].Code + ""
260
- ), r, d, o, c = (
261
- /*transaction*/
262
- a[24].Date + ""
263
- ), g, k, x, w = (
264
- /*$_*/
265
- a[5](`transactionType.${/*transaction*/
266
- a[24].Type}`) + ""
267
- ), z, F, H, _, A, y, R = (
268
- /*$_*/
269
- a[5](`transactionStatus.${/*transaction*/
270
- a[24].Status}`) + ""
271
- ), D, P, L, O;
272
- function Z(h, n) {
273
- if (
274
- /*transaction*/
275
- h[24].Status === /*TransactionMainStatus*/
276
- h[4].Authorized
277
- )
278
- return je;
279
- if (
280
- /*transaction*/
281
- h[24].Status === /*TransactionMainStatus*/
282
- h[4].Failed
283
- )
284
- return Ve;
285
- if (
286
- /*transaction*/
287
- h[24].Status === /*TransactionMainStatus*/
288
- h[4].Pending
289
- )
290
- return De;
291
- if (
292
- /*transaction*/
293
- h[24].Status === /*TransactionMainStatus*/
294
- h[4].Rejected
295
- )
296
- return Re;
297
- if (
298
- /*transaction*/
299
- h[24].Status === /*TransactionMainStatus*/
300
- h[4].Success
301
- )
302
- return ze;
303
- }
304
- let S = Z(a), b = S && S(a);
305
- return {
306
- c() {
307
- e = m("tr"), l = m("td"), r = I(i), d = j(), o = m("td"), g = I(c), k = j(), x = m("td"), z = I(w), F = j(), H = m("td"), _ = m("span"), b && b.c(), A = j(), y = m("span"), D = I(R), P = j(), t(l, "class", "CashierTransactionId svelte-1klbu7d"), X(
308
- l,
309
- "copied",
310
- /*copied*/
311
- a[3]
312
- ), t(o, "class", "svelte-1klbu7d"), t(x, "class", "svelte-1klbu7d"), t(_, "class", "CashierTransactionHistoryIcon svelte-1klbu7d"), t(y, "class", "CashierTransactionHistoryStatus svelte-1klbu7d"), t(H, "class", "svelte-1klbu7d"), t(e, "class", "svelte-1klbu7d");
313
- },
314
- m(h, n) {
315
- E(h, e, n), s(e, l), s(l, r), s(e, d), s(e, o), s(o, g), s(e, k), s(e, x), s(x, z), s(e, F), s(e, H), s(H, _), b && b.m(_, null), s(H, A), s(H, y), s(y, D), s(e, P), L || (O = me(
316
- l,
317
- "mousedown",
318
- /*mousedown_handler*/
319
- a[15]
320
- ), L = !0);
321
- },
322
- p(h, n) {
323
- n & /*txnHistory*/
324
- 4 && i !== (i = /*transaction*/
325
- h[24].Code + "") && M(r, i), n & /*copied*/
326
- 8 && X(
327
- l,
328
- "copied",
329
- /*copied*/
330
- h[3]
331
- ), n & /*txnHistory*/
332
- 4 && c !== (c = /*transaction*/
333
- h[24].Date + "") && M(g, c), n & /*$_, txnHistory*/
334
- 36 && w !== (w = /*$_*/
335
- h[5](`transactionType.${/*transaction*/
336
- h[24].Type}`) + "") && M(z, w), S !== (S = Z(h)) && (b && b.d(1), b = S && S(h), b && (b.c(), b.m(_, null))), n & /*$_, txnHistory*/
337
- 36 && R !== (R = /*$_*/
338
- h[5](`transactionStatus.${/*transaction*/
339
- h[24].Status}`) + "") && M(D, R);
340
- },
341
- d(h) {
342
- h && U(e), b && b.d(), L = !1, O();
343
- }
344
- };
345
- }
346
- function Ie(a) {
347
- let e, l = (
348
- /*txnHistory*/
349
- a[2].length && ee(a)
350
- );
351
- return {
352
- c() {
353
- l && l.c(), e = oe();
354
- },
355
- m(i, r) {
356
- l && l.m(i, r), E(i, e, r);
357
- },
358
- p(i, [r]) {
359
- /*txnHistory*/
360
- i[2].length ? l ? l.p(i, r) : (l = ee(i), l.c(), l.m(e.parentNode, e)) : l && (l.d(1), l = null);
361
- },
362
- i: N,
363
- o: N,
364
- d(i) {
365
- i && U(e), l && l.d(i);
366
- }
367
- };
368
- }
369
- const Fe = "DD.MM.YYYY";
370
- function Ae(a, e, l) {
371
- let i;
372
- de(a, Te, (n) => l(5, i = n));
373
- let { endpoint: r } = e, { session: d } = e, { lang: o = "en" } = e, { customerid: c } = e, { clientstyling: g = "" } = e, { clientstylingurl: k = "" } = e, { translationurl: x } = e, { tooltipduration: w = 1e3 } = e, { txncount: z = 3 } = e, F = [], H = !1, _, A;
374
- var y;
375
- (function(n) {
376
- n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
377
- })(y || (y = {}));
378
- const R = [
379
- "Authorized",
380
- "Success",
381
- "Failed",
382
- "Rejected",
383
- "PendingApprovalStage1",
384
- "PendingApprovalStage2",
385
- "PendingApprovalStage3",
386
- "PendingNotification",
387
- "PendingOfflineNotification",
388
- "PendingConfirmation"
389
- ];
390
- var D;
391
- (function(n) {
392
- n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
393
- })(D || (D = {}));
394
- const P = () => {
395
- let n = x;
396
- if (n)
397
- return fetch(n).then((p) => p.json()).then((p) => {
398
- Object.keys(p).forEach((v) => {
399
- K(v, p[v]);
400
- });
401
- }).catch((p) => {
402
- console.log(p);
403
- });
404
- };
405
- Object.keys(Q).forEach((n) => {
406
- K(n, Q[n]);
407
- });
408
- const L = () => {
409
- _e(o);
410
- }, O = () => {
411
- const n = new URL(`${r}/api/v1/mm/payment/gettransactionshistory`), p = new Headers();
412
- p.append("accept", "application/json"), p.append("Content-Type", "application/json"), p.append("X-SessionId", `${d}`);
413
- const v = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), W = new Date((/* @__PURE__ */ new Date()).setHours((/* @__PURE__ */ new Date()).getHours() + 24)).toISOString(), T = {
414
- method: "POST",
415
- mode: "cors",
416
- headers: p,
417
- body: JSON.stringify({
418
- language: o,
419
- customerId: c,
420
- count: z,
421
- page: 0,
422
- fromDate: v,
423
- toDate: W,
424
- statuses: {
425
- [y.Deposit]: R,
426
- [y.Withdraw]: R,
427
- [y.Refund]: ["Unknown"],
428
- [y.TaxDeduction]: ["Unknown"],
429
- [y.Unknown]: ["Unknown"]
430
- },
431
- calculateProfit: !1
432
- })
433
- };
434
- fetch(n, T).then((u) => u.json()).then((u) => {
435
- l(2, F = Z((u == null ? void 0 : u.items) || []));
436
- }).catch((u) => console.log(u));
437
- }, Z = (n) => n.map((p) => {
438
- let v = p.generalFields.status;
439
- return p.generalFields.status.toLowerCase().includes("pending") && (v = D.Pending), {
440
- Code: p.generalFields.code,
441
- Date: Ce(p.generalFields.created).format(Fe),
442
- Status: v,
443
- Type: p.generalFields.type
444
- };
445
- }) || [], S = (n) => {
446
- const p = n.currentTarget;
447
- n.target === p && navigator.clipboard.writeText(p.innerText).then(() => {
448
- l(3, H = !0), clearTimeout(A), A = setTimeout(
449
- () => {
450
- l(3, H = !1);
451
- },
452
- 2e3
453
- );
454
- }).catch((v) => {
455
- console.error("Could not copy text: ", v);
456
- });
457
- }, b = (n) => S(n);
458
- function h(n) {
459
- be[n ? "unshift" : "push"](() => {
460
- _ = n, l(1, _);
461
- });
462
- }
463
- return a.$$set = (n) => {
464
- "endpoint" in n && l(7, r = n.endpoint), "session" in n && l(8, d = n.session), "lang" in n && l(9, o = n.lang), "customerid" in n && l(10, c = n.customerid), "clientstyling" in n && l(11, g = n.clientstyling), "clientstylingurl" in n && l(12, k = n.clientstylingurl), "translationurl" in n && l(13, x = n.translationurl), "tooltipduration" in n && l(0, w = n.tooltipduration), "txncount" in n && l(14, z = n.txncount);
465
- }, a.$$.update = () => {
466
- a.$$.dirty & /*lang*/
467
- 512 && o && L(), a.$$.dirty & /*clientstyling, customStylingContainer*/
468
- 2050 && g && _ && xe(_, g), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
469
- 4098 && k && _ && He(_, k), a.$$.dirty & /*endpoint, session, customerid, lang*/
470
- 1920 && r && d && c && o && O(), a.$$.dirty & /*translationurl*/
471
- 8192 && x && P();
472
- }, [
473
- w,
474
- _,
475
- F,
476
- H,
477
- D,
478
- i,
479
- S,
480
- r,
481
- d,
482
- o,
483
- c,
484
- g,
485
- k,
486
- x,
487
- z,
488
- b,
489
- h
490
- ];
491
- }
492
- class Le extends ie {
493
- constructor(e) {
494
- super(), se(
495
- this,
496
- e,
497
- Ae,
498
- Ie,
499
- ae,
500
- {
501
- endpoint: 7,
502
- session: 8,
503
- lang: 9,
504
- customerid: 10,
505
- clientstyling: 11,
506
- clientstylingurl: 12,
507
- translationurl: 13,
508
- tooltipduration: 0,
509
- txncount: 14
510
- },
511
- Se
512
- );
513
- }
514
- get endpoint() {
515
- return this.$$.ctx[7];
516
- }
517
- set endpoint(e) {
518
- this.$$set({ endpoint: e }), G();
519
- }
520
- get session() {
521
- return this.$$.ctx[8];
522
- }
523
- set session(e) {
524
- this.$$set({ session: e }), G();
525
- }
526
- get lang() {
527
- return this.$$.ctx[9];
528
- }
529
- set lang(e) {
530
- this.$$set({ lang: e }), G();
531
- }
532
- get customerid() {
533
- return this.$$.ctx[10];
534
- }
535
- set customerid(e) {
536
- this.$$set({ customerid: e }), G();
537
- }
538
- get clientstyling() {
539
- return this.$$.ctx[11];
540
- }
541
- set clientstyling(e) {
542
- this.$$set({ clientstyling: e }), G();
543
- }
544
- get clientstylingurl() {
545
- return this.$$.ctx[12];
546
- }
547
- set clientstylingurl(e) {
548
- this.$$set({ clientstylingurl: e }), G();
549
- }
550
- get translationurl() {
551
- return this.$$.ctx[13];
552
- }
553
- set translationurl(e) {
554
- this.$$set({ translationurl: e }), G();
555
- }
556
- get tooltipduration() {
557
- return this.$$.ctx[0];
558
- }
559
- set tooltipduration(e) {
560
- this.$$set({ tooltipduration: e }), G();
561
- }
562
- get txncount() {
563
- return this.$$.ctx[14];
564
- }
565
- set txncount(e) {
566
- this.$$set({ txncount: e }), G();
567
- }
568
- }
569
- ne(Le, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
570
- export {
571
- Le as default
572
- };