@everymatrix/cashier-page 1.64.0 → 1.64.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.
- package/components/{CashierMethodsList-CmF_WTB-.js → CashierMethodsList-BCoCVos6.js} +276 -319
- package/components/{CashierMethodsList-CNCrMZ4g.js → CashierMethodsList-D64LZdeg.js} +282 -325
- package/components/{CashierMethodsList-BcBzNfKT.cjs → CashierMethodsList-RM_bnbLo.cjs} +1 -1
- package/components/{CashierPage-ClJcMBDB.js → CashierPage-Bj8llrth.js} +304 -306
- package/components/{CashierPage-D8D89xo-.js → CashierPage-CcgSS147.js} +304 -306
- package/components/{CashierPage-B453tZx8.cjs → CashierPage-ifqNQt6v.cjs} +1 -1
- package/components/CashierTransactionHistory-BUnmELzi.cjs +1 -0
- package/components/CashierTransactionHistory-CgSa7FBJ.js +569 -0
- package/components/CashierTransactionHistory-ZnWiNl-5.js +569 -0
- package/es2015/cashier-page.cjs +1 -1
- package/es2015/cashier-page.js +1 -1
- package/esnext/cashier-page.js +1 -1
- package/package.json +1 -1
- package/components/CashierTransactionHistory-BiM02fXh.cjs +0 -1
- package/components/CashierTransactionHistory-Bugs_tmN.js +0 -569
- package/components/CashierTransactionHistory-Cd3pN70W.js +0 -569
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import { S as ie, b as ne, s as ae, f as U, c as le, n as J, e as W, l as N, w as oe, v as re, K as V, L as ce, g as X, D as he, t as de, k as ue, x as B, m as l, o as v, p as j, y as I, q as t, z as fe, V as me, F as ve, W as pe, J as G, A as ge, N as b, E as we } from "./CashierConfirmModal-untxGhsx.js";
|
|
2
|
+
import { f as K } from "./CashierModal-BrwIBn9a.js";
|
|
3
|
+
import { a as ye, $ as Te, i as _e, b as be } from "./CashierError-DHzuwwQu.js";
|
|
4
|
+
import { d as xe } from "./CashierMethodDetails-B8ZN94ja.js";
|
|
5
|
+
_e({
|
|
6
|
+
fallbackLocale: "en"
|
|
7
|
+
});
|
|
8
|
+
function Q(a, e) {
|
|
9
|
+
ye(a, e);
|
|
10
|
+
}
|
|
11
|
+
function ke(a) {
|
|
12
|
+
Te.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: "İşlem Geçmişi",
|
|
36
|
+
transactionIdTitle: "İşlem ID'si",
|
|
37
|
+
transactionDateTitle: "Tarih",
|
|
38
|
+
transactionTypeTitle: "Tip",
|
|
39
|
+
transactionStatusTitle: "Durum",
|
|
40
|
+
copyTransactionId: "İşlem ID’si kopyalandı",
|
|
41
|
+
transactionStatus: {
|
|
42
|
+
Authorized: "Onaylandı",
|
|
43
|
+
Success: "Başarılı",
|
|
44
|
+
Failed: "Başarısız",
|
|
45
|
+
Rejected: "Reddedildi",
|
|
46
|
+
Pending: "Beklemede"
|
|
47
|
+
},
|
|
48
|
+
transactionType: {
|
|
49
|
+
Deposit: "Para Yatır",
|
|
50
|
+
Withdraw: "Çekim"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
function Ce(a, e) {
|
|
55
|
+
if (a) {
|
|
56
|
+
const s = document.createElement("style");
|
|
57
|
+
s.innerHTML = e, a.appendChild(s);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function Se(a, e) {
|
|
61
|
+
const s = new URL(e);
|
|
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 He(a) {
|
|
70
|
+
le(a, "svelte-1hhe323", ".svelte-1hhe323.svelte-1hhe323,.svelte-1hhe323.svelte-1hhe323::before,.svelte-1hhe323.svelte-1hhe323::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1hhe323.svelte-1hhe323{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-1hhe323.svelte-1hhe323{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-1hhe323 table.svelte-1hhe323{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-1hhe323 table.svelte-1hhe323:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1hhe323 thead tr.svelte-1hhe323{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1hhe323 tbody tr.svelte-1hhe323{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1hhe323 td.svelte-1hhe323{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-1hhe323 tr.svelte-1hhe323{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1hhe323 .CopyTooltip.svelte-1hhe323{width:100%}.CashierTransactionHistory.svelte-1hhe323 .CashierTransactionId.svelte-1hhe323{max-width:135px}.CashierTransactionHistory.svelte-1hhe323 td.svelte-1hhe323{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1hhe323 .CashierTransactionHistoryWrapper.svelte-1hhe323{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1hhe323 td.svelte-1hhe323{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1hhe323 td.svelte-1hhe323:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1hhe323 table.svelte-1hhe323{table-layout:fixed}.CashierTransactionHistory.svelte-1hhe323 table td.svelte-1hhe323{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1hhe323.svelte-1hhe323{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-1hhe323.svelte-1hhe323{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-1hhe323.svelte-1hhe323{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1hhe323.svelte-1hhe323:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1hhe323.svelte-1hhe323{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1hhe323.svelte-1hhe323{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1hhe323.svelte-1hhe323{width:100%}.CashierTransactionHistoryIcon.svelte-1hhe323.svelte-1hhe323{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
|
|
71
|
+
}
|
|
72
|
+
function $(a, e, s) {
|
|
73
|
+
const i = a.slice();
|
|
74
|
+
return i[24] = e[s], i[26] = s, i;
|
|
75
|
+
}
|
|
76
|
+
function ee(a) {
|
|
77
|
+
let e, s, i, o = (
|
|
78
|
+
/*$_*/
|
|
79
|
+
a[5]("transactionHistoryTitle") + ""
|
|
80
|
+
), c, d, u, w, x, k, p, H, L = (
|
|
81
|
+
/*$_*/
|
|
82
|
+
a[5]("transactionIdTitle") + ""
|
|
83
|
+
), D, y, C, _ = (
|
|
84
|
+
/*$_*/
|
|
85
|
+
a[5]("transactionDateTitle") + ""
|
|
86
|
+
), A, z, R, M = (
|
|
87
|
+
/*$_*/
|
|
88
|
+
a[5]("transactionTypeTitle") + ""
|
|
89
|
+
), E, Y, P, S = (
|
|
90
|
+
/*$_*/
|
|
91
|
+
a[5]("transactionStatusTitle") + ""
|
|
92
|
+
), g, n, r, h = (
|
|
93
|
+
/*copied*/
|
|
94
|
+
a[3] && te(a)
|
|
95
|
+
), O = V(
|
|
96
|
+
/*txnHistory*/
|
|
97
|
+
a[2]
|
|
98
|
+
), m = [];
|
|
99
|
+
for (let f = 0; f < O.length; f += 1)
|
|
100
|
+
m[f] = se($(a, O, f));
|
|
101
|
+
return {
|
|
102
|
+
c() {
|
|
103
|
+
e = v("div"), h && h.c(), s = j(), i = v("h3"), c = I(o), d = j(), u = v("div"), w = v("div"), x = v("table"), k = v("thead"), p = v("tr"), H = v("td"), D = I(L), y = j(), C = v("td"), A = I(_), z = j(), R = v("td"), E = I(M), Y = j(), P = v("td"), g = I(S), n = j(), r = v("tbody");
|
|
104
|
+
for (let f = 0; f < m.length; f += 1)
|
|
105
|
+
m[f].c();
|
|
106
|
+
t(i, "class", "CashierTransactionHistoryTitle svelte-1hhe323"), t(H, "class", "svelte-1hhe323"), t(C, "class", "svelte-1hhe323"), t(R, "class", "svelte-1hhe323"), t(P, "class", "svelte-1hhe323"), t(p, "class", "svelte-1hhe323"), t(k, "class", "svelte-1hhe323"), t(r, "class", "svelte-1hhe323"), t(x, "class", "svelte-1hhe323"), t(w, "class", "CashierTransactionHistoryContent svelte-1hhe323"), t(u, "class", "CashierTransactionHistoryWrapper svelte-1hhe323"), t(e, "class", "CashierTransactionHistory svelte-1hhe323");
|
|
107
|
+
},
|
|
108
|
+
m(f, F) {
|
|
109
|
+
N(f, e, F), h && h.m(e, null), l(e, s), l(e, i), l(i, c), l(e, d), l(e, u), l(u, w), l(w, x), l(x, k), l(k, p), l(p, H), l(H, D), l(p, y), l(p, C), l(C, A), l(p, z), l(p, R), l(R, E), l(p, Y), l(p, P), l(P, g), l(x, n), l(x, r);
|
|
110
|
+
for (let T = 0; T < m.length; T += 1)
|
|
111
|
+
m[T] && m[T].m(r, null);
|
|
112
|
+
a[16](e);
|
|
113
|
+
},
|
|
114
|
+
p(f, F) {
|
|
115
|
+
if (/*copied*/
|
|
116
|
+
f[3] ? h ? (h.p(f, F), F & /*copied*/
|
|
117
|
+
8 && X(h, 1)) : (h = te(f), h.c(), X(h, 1), h.m(e, s)) : h && (he(), de(h, 1, 1, () => {
|
|
118
|
+
h = null;
|
|
119
|
+
}), ue()), F & /*$_*/
|
|
120
|
+
32 && o !== (o = /*$_*/
|
|
121
|
+
f[5]("transactionHistoryTitle") + "") && B(c, o), F & /*$_*/
|
|
122
|
+
32 && L !== (L = /*$_*/
|
|
123
|
+
f[5]("transactionIdTitle") + "") && B(D, L), F & /*$_*/
|
|
124
|
+
32 && _ !== (_ = /*$_*/
|
|
125
|
+
f[5]("transactionDateTitle") + "") && B(A, _), F & /*$_*/
|
|
126
|
+
32 && M !== (M = /*$_*/
|
|
127
|
+
f[5]("transactionTypeTitle") + "") && B(E, M), F & /*$_*/
|
|
128
|
+
32 && S !== (S = /*$_*/
|
|
129
|
+
f[5]("transactionStatusTitle") + "") && B(g, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
|
|
130
|
+
124) {
|
|
131
|
+
O = V(
|
|
132
|
+
/*txnHistory*/
|
|
133
|
+
f[2]
|
|
134
|
+
);
|
|
135
|
+
let T;
|
|
136
|
+
for (T = 0; T < O.length; T += 1) {
|
|
137
|
+
const q = $(f, O, T);
|
|
138
|
+
m[T] ? m[T].p(q, F) : (m[T] = se(q), m[T].c(), m[T].m(r, null));
|
|
139
|
+
}
|
|
140
|
+
for (; T < m.length; T += 1)
|
|
141
|
+
m[T].d(1);
|
|
142
|
+
m.length = O.length;
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
d(f) {
|
|
146
|
+
f && W(e), h && h.d(), ce(m, f), a[16](null);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
function te(a) {
|
|
151
|
+
let e, s = (
|
|
152
|
+
/*$_*/
|
|
153
|
+
a[5]("copyTransactionId") + ""
|
|
154
|
+
), i, o, c, d;
|
|
155
|
+
return {
|
|
156
|
+
c() {
|
|
157
|
+
e = v("div"), i = I(s), t(e, "class", "CopyTooltip svelte-1hhe323");
|
|
158
|
+
},
|
|
159
|
+
m(u, w) {
|
|
160
|
+
N(u, e, w), l(e, i), d = !0;
|
|
161
|
+
},
|
|
162
|
+
p(u, w) {
|
|
163
|
+
a = u, (!d || w & /*$_*/
|
|
164
|
+
32) && s !== (s = /*$_*/
|
|
165
|
+
a[5]("copyTransactionId") + "") && B(i, s);
|
|
166
|
+
},
|
|
167
|
+
i(u) {
|
|
168
|
+
d || (u && ve(() => {
|
|
169
|
+
d && (c && c.end(1), o = pe(e, K, { duration: 100 }), o.start());
|
|
170
|
+
}), d = !0);
|
|
171
|
+
},
|
|
172
|
+
o(u) {
|
|
173
|
+
o && o.invalidate(), u && (c = me(e, K, { duration: (
|
|
174
|
+
/*tooltipduration*/
|
|
175
|
+
a[0]
|
|
176
|
+
) })), d = !1;
|
|
177
|
+
},
|
|
178
|
+
d(u) {
|
|
179
|
+
u && W(e), u && c && c.end();
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
function De(a) {
|
|
184
|
+
let e, s, i;
|
|
185
|
+
return {
|
|
186
|
+
c() {
|
|
187
|
+
e = b("svg"), s = b("circle"), i = b("path"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#25bf00"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "d", "M8 12L11 15L16 9"), t(i, "stroke", "#25bf00"), t(i, "stroke-width", "2"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
|
|
188
|
+
},
|
|
189
|
+
m(o, c) {
|
|
190
|
+
N(o, e, c), l(e, s), l(e, i);
|
|
191
|
+
},
|
|
192
|
+
d(o) {
|
|
193
|
+
o && W(e);
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
function ze(a) {
|
|
198
|
+
let e, s, i, o;
|
|
199
|
+
return {
|
|
200
|
+
c() {
|
|
201
|
+
e = b("svg"), s = b("circle"), i = b("text"), o = I("R"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#dd6617d4"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "x", "50%"), t(i, "y", "54%"), t(i, "text-anchor", "middle"), t(i, "dominant-baseline", "middle"), t(i, "font-size", "14"), t(i, "font-weight", "bold"), t(i, "fill", "#dd6617d4"), t(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
|
|
202
|
+
},
|
|
203
|
+
m(c, d) {
|
|
204
|
+
N(c, e, d), l(e, s), l(e, i), l(i, o);
|
|
205
|
+
},
|
|
206
|
+
d(c) {
|
|
207
|
+
c && W(e);
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
function Ie(a) {
|
|
212
|
+
let e, s, i;
|
|
213
|
+
return {
|
|
214
|
+
c() {
|
|
215
|
+
e = b("svg"), s = b("circle"), i = b("path"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#f0a85f"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "d", "M12 7V12L15 14"), t(i, "stroke", "#f0a85f"), t(i, "stroke-width", "2"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
|
|
216
|
+
},
|
|
217
|
+
m(o, c) {
|
|
218
|
+
N(o, e, c), l(e, s), l(e, i);
|
|
219
|
+
},
|
|
220
|
+
d(o) {
|
|
221
|
+
o && W(e);
|
|
222
|
+
}
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
function Ae(a) {
|
|
226
|
+
let e, s, i;
|
|
227
|
+
return {
|
|
228
|
+
c() {
|
|
229
|
+
e = b("svg"), s = b("circle"), i = b("path"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#e76049"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "d", "M9 9L15 15M15 9L9 15"), t(i, "stroke", "#e76049"), t(i, "stroke-width", "2"), t(i, "stroke-linecap", "round"), t(i, "stroke-linejoin", "round"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
|
|
230
|
+
},
|
|
231
|
+
m(o, c) {
|
|
232
|
+
N(o, e, c), l(e, s), l(e, i);
|
|
233
|
+
},
|
|
234
|
+
d(o) {
|
|
235
|
+
o && W(e);
|
|
236
|
+
}
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
function Fe(a) {
|
|
240
|
+
let e, s, i, o;
|
|
241
|
+
return {
|
|
242
|
+
c() {
|
|
243
|
+
e = b("svg"), s = b("circle"), i = b("text"), o = I("A"), t(s, "cx", "12"), t(s, "cy", "12"), t(s, "r", "10"), t(s, "stroke", "#32b398"), t(s, "stroke-width", "2"), t(s, "class", "svelte-1hhe323"), t(i, "x", "50%"), t(i, "y", "54%"), t(i, "text-anchor", "middle"), t(i, "dominant-baseline", "middle"), t(i, "font-size", "14"), t(i, "font-weight", "bold"), t(i, "fill", "#32b398"), t(i, "font-family", "Arial Rounded MT Bold, Arial, sans-serif"), t(i, "class", "svelte-1hhe323"), t(e, "width", "18"), t(e, "height", "18"), t(e, "viewBox", "0 0 24 24"), t(e, "fill", "none"), t(e, "xmlns", "http://www.w3.org/2000/svg"), t(e, "class", "svelte-1hhe323");
|
|
244
|
+
},
|
|
245
|
+
m(c, d) {
|
|
246
|
+
N(c, e, d), l(e, s), l(e, i), l(i, o);
|
|
247
|
+
},
|
|
248
|
+
d(c) {
|
|
249
|
+
c && W(e);
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
function se(a) {
|
|
254
|
+
let e, s, i = (
|
|
255
|
+
/*transaction*/
|
|
256
|
+
a[24].Code + ""
|
|
257
|
+
), o, c, d, u = (
|
|
258
|
+
/*transaction*/
|
|
259
|
+
a[24].Date + ""
|
|
260
|
+
), w, x, k, p = (
|
|
261
|
+
/*$_*/
|
|
262
|
+
a[5](`transactionType.${/*transaction*/
|
|
263
|
+
a[24].Type}`) + ""
|
|
264
|
+
), H, L, D, y, C, _, A, z = (
|
|
265
|
+
/*$_*/
|
|
266
|
+
a[5](`transactionStatus.${/*transaction*/
|
|
267
|
+
a[24].Status}`) + ""
|
|
268
|
+
), R, M, E, Y;
|
|
269
|
+
function P(n, r) {
|
|
270
|
+
if (
|
|
271
|
+
/*transaction*/
|
|
272
|
+
n[24].Status === /*TransactionMainStatus*/
|
|
273
|
+
n[4].Authorized
|
|
274
|
+
)
|
|
275
|
+
return Fe;
|
|
276
|
+
if (
|
|
277
|
+
/*transaction*/
|
|
278
|
+
n[24].Status === /*TransactionMainStatus*/
|
|
279
|
+
n[4].Failed
|
|
280
|
+
)
|
|
281
|
+
return Ae;
|
|
282
|
+
if (
|
|
283
|
+
/*transaction*/
|
|
284
|
+
n[24].Status === /*TransactionMainStatus*/
|
|
285
|
+
n[4].Pending
|
|
286
|
+
)
|
|
287
|
+
return Ie;
|
|
288
|
+
if (
|
|
289
|
+
/*transaction*/
|
|
290
|
+
n[24].Status === /*TransactionMainStatus*/
|
|
291
|
+
n[4].Rejected
|
|
292
|
+
)
|
|
293
|
+
return ze;
|
|
294
|
+
if (
|
|
295
|
+
/*transaction*/
|
|
296
|
+
n[24].Status === /*TransactionMainStatus*/
|
|
297
|
+
n[4].Success
|
|
298
|
+
)
|
|
299
|
+
return De;
|
|
300
|
+
}
|
|
301
|
+
let S = P(a), g = S && S(a);
|
|
302
|
+
return {
|
|
303
|
+
c() {
|
|
304
|
+
e = v("tr"), s = v("td"), o = I(i), c = j(), d = v("td"), w = I(u), x = j(), k = v("td"), H = I(p), L = j(), D = v("td"), y = v("div"), C = v("span"), g && g.c(), _ = j(), A = v("span"), R = I(z), M = j(), t(s, "class", "CashierTransactionId svelte-1hhe323"), G(
|
|
305
|
+
s,
|
|
306
|
+
"copied",
|
|
307
|
+
/*copied*/
|
|
308
|
+
a[3]
|
|
309
|
+
), t(d, "class", "svelte-1hhe323"), t(k, "class", "svelte-1hhe323"), t(C, "class", "CashierTransactionHistoryIcon svelte-1hhe323"), t(A, "class", "CashierTransactionHistoryStatusText svelte-1hhe323"), t(y, "class", "CashierTransactionHistoryStatus svelte-1hhe323"), t(D, "class", "svelte-1hhe323"), t(e, "class", "svelte-1hhe323");
|
|
310
|
+
},
|
|
311
|
+
m(n, r) {
|
|
312
|
+
N(n, e, r), l(e, s), l(s, o), l(e, c), l(e, d), l(d, w), l(e, x), l(e, k), l(k, H), l(e, L), l(e, D), l(D, y), l(y, C), g && g.m(C, null), l(y, _), l(y, A), l(A, R), l(e, M), E || (Y = ge(
|
|
313
|
+
s,
|
|
314
|
+
"mousedown",
|
|
315
|
+
/*mousedown_handler*/
|
|
316
|
+
a[15]
|
|
317
|
+
), E = !0);
|
|
318
|
+
},
|
|
319
|
+
p(n, r) {
|
|
320
|
+
r & /*txnHistory*/
|
|
321
|
+
4 && i !== (i = /*transaction*/
|
|
322
|
+
n[24].Code + "") && B(o, i), r & /*copied*/
|
|
323
|
+
8 && G(
|
|
324
|
+
s,
|
|
325
|
+
"copied",
|
|
326
|
+
/*copied*/
|
|
327
|
+
n[3]
|
|
328
|
+
), r & /*txnHistory*/
|
|
329
|
+
4 && u !== (u = /*transaction*/
|
|
330
|
+
n[24].Date + "") && B(w, u), r & /*$_, txnHistory*/
|
|
331
|
+
36 && p !== (p = /*$_*/
|
|
332
|
+
n[5](`transactionType.${/*transaction*/
|
|
333
|
+
n[24].Type}`) + "") && B(H, p), S !== (S = P(n)) && (g && g.d(1), g = S && S(n), g && (g.c(), g.m(C, null))), r & /*$_, txnHistory*/
|
|
334
|
+
36 && z !== (z = /*$_*/
|
|
335
|
+
n[5](`transactionStatus.${/*transaction*/
|
|
336
|
+
n[24].Status}`) + "") && B(R, z);
|
|
337
|
+
},
|
|
338
|
+
d(n) {
|
|
339
|
+
n && W(e), g && g.d(), E = !1, Y();
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
function je(a) {
|
|
344
|
+
let e, s = (
|
|
345
|
+
/*txnHistory*/
|
|
346
|
+
a[2].length && ee(a)
|
|
347
|
+
);
|
|
348
|
+
return {
|
|
349
|
+
c() {
|
|
350
|
+
s && s.c(), e = oe();
|
|
351
|
+
},
|
|
352
|
+
m(i, o) {
|
|
353
|
+
s && s.m(i, o), N(i, e, o);
|
|
354
|
+
},
|
|
355
|
+
p(i, [o]) {
|
|
356
|
+
/*txnHistory*/
|
|
357
|
+
i[2].length ? s ? s.p(i, o) : (s = ee(i), s.c(), s.m(e.parentNode, e)) : s && (s.d(1), s = null);
|
|
358
|
+
},
|
|
359
|
+
i: J,
|
|
360
|
+
o: J,
|
|
361
|
+
d(i) {
|
|
362
|
+
i && W(e), s && s.d(i);
|
|
363
|
+
}
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
const Le = "DD.MM.YYYY";
|
|
367
|
+
function Re(a, e, s) {
|
|
368
|
+
let i;
|
|
369
|
+
re(a, be, (n) => s(5, i = n));
|
|
370
|
+
let { endpoint: o } = e, { session: c } = e, { lang: d = "en" } = e, { customerid: u } = e, { clientstyling: w = "" } = e, { clientstylingurl: x = "" } = e, { translationurl: k } = e, { tooltipduration: p = 1e3 } = e, { txncount: H = 3 } = e, L = [], D = !1, y, C;
|
|
371
|
+
var _;
|
|
372
|
+
(function(n) {
|
|
373
|
+
n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
|
|
374
|
+
})(_ || (_ = {}));
|
|
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 z;
|
|
388
|
+
(function(n) {
|
|
389
|
+
n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
|
|
390
|
+
})(z || (z = {}));
|
|
391
|
+
const R = () => {
|
|
392
|
+
let n = k;
|
|
393
|
+
if (n)
|
|
394
|
+
return fetch(n).then((r) => r.json()).then((r) => {
|
|
395
|
+
Object.keys(r).forEach((h) => {
|
|
396
|
+
Q(h, r[h]);
|
|
397
|
+
});
|
|
398
|
+
}).catch((r) => {
|
|
399
|
+
console.log(r);
|
|
400
|
+
});
|
|
401
|
+
};
|
|
402
|
+
Object.keys(Z).forEach((n) => {
|
|
403
|
+
Q(n, Z[n]);
|
|
404
|
+
});
|
|
405
|
+
const M = () => {
|
|
406
|
+
ke(d);
|
|
407
|
+
}, E = () => {
|
|
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 h = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), O = {
|
|
411
|
+
method: "POST",
|
|
412
|
+
mode: "cors",
|
|
413
|
+
headers: r,
|
|
414
|
+
body: JSON.stringify({
|
|
415
|
+
language: d,
|
|
416
|
+
customerId: u,
|
|
417
|
+
count: H,
|
|
418
|
+
page: 0,
|
|
419
|
+
fromDate: h,
|
|
420
|
+
toDate: null,
|
|
421
|
+
statuses: {
|
|
422
|
+
[_.Deposit]: A,
|
|
423
|
+
[_.Withdraw]: A,
|
|
424
|
+
[_.Refund]: ["Unknown"],
|
|
425
|
+
[_.TaxDeduction]: ["Unknown"],
|
|
426
|
+
[_.Unknown]: ["Unknown"]
|
|
427
|
+
},
|
|
428
|
+
calculateProfit: !1
|
|
429
|
+
})
|
|
430
|
+
};
|
|
431
|
+
fetch(n, O).then((m) => m.json()).then((m) => {
|
|
432
|
+
s(2, L = Y(m?.items || []));
|
|
433
|
+
}).catch((m) => console.log(m));
|
|
434
|
+
}, Y = (n) => n.map((r) => {
|
|
435
|
+
let h = r.generalFields.status;
|
|
436
|
+
return r.generalFields.status.toLowerCase().includes("pending") && (h = z.Pending), {
|
|
437
|
+
Code: r.generalFields.code,
|
|
438
|
+
Date: xe(r.generalFields.created).format(Le),
|
|
439
|
+
Status: h,
|
|
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, D = !0), clearTimeout(C), C = setTimeout(
|
|
446
|
+
() => {
|
|
447
|
+
s(3, D = !1);
|
|
448
|
+
},
|
|
449
|
+
2e3
|
|
450
|
+
);
|
|
451
|
+
}).catch((h) => {
|
|
452
|
+
console.error("Could not copy text: ", h);
|
|
453
|
+
});
|
|
454
|
+
}, S = (n) => P(n);
|
|
455
|
+
function g(n) {
|
|
456
|
+
fe[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, d = n.lang), "customerid" in n && s(10, u = n.customerid), "clientstyling" in n && s(11, w = n.clientstyling), "clientstylingurl" in n && s(12, x = n.clientstylingurl), "translationurl" in n && s(13, k = n.translationurl), "tooltipduration" in n && s(0, p = n.tooltipduration), "txncount" in n && s(14, H = n.txncount);
|
|
462
|
+
}, a.$$.update = () => {
|
|
463
|
+
a.$$.dirty & /*lang*/
|
|
464
|
+
512 && d && M(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
465
|
+
2050 && w && y && Ce(y, w), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
466
|
+
4098 && x && y && Se(y, x), a.$$.dirty & /*endpoint, session, customerid, lang*/
|
|
467
|
+
1920 && o && c && u && d && E(), a.$$.dirty & /*translationurl*/
|
|
468
|
+
8192 && k && R();
|
|
469
|
+
}, [
|
|
470
|
+
p,
|
|
471
|
+
y,
|
|
472
|
+
L,
|
|
473
|
+
D,
|
|
474
|
+
z,
|
|
475
|
+
i,
|
|
476
|
+
P,
|
|
477
|
+
o,
|
|
478
|
+
c,
|
|
479
|
+
d,
|
|
480
|
+
u,
|
|
481
|
+
w,
|
|
482
|
+
x,
|
|
483
|
+
k,
|
|
484
|
+
H,
|
|
485
|
+
S,
|
|
486
|
+
g
|
|
487
|
+
];
|
|
488
|
+
}
|
|
489
|
+
class Pe extends ie {
|
|
490
|
+
constructor(e) {
|
|
491
|
+
super(), ne(
|
|
492
|
+
this,
|
|
493
|
+
e,
|
|
494
|
+
Re,
|
|
495
|
+
je,
|
|
496
|
+
ae,
|
|
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
|
+
He
|
|
509
|
+
);
|
|
510
|
+
}
|
|
511
|
+
get endpoint() {
|
|
512
|
+
return this.$$.ctx[7];
|
|
513
|
+
}
|
|
514
|
+
set endpoint(e) {
|
|
515
|
+
this.$$set({ endpoint: e }), U();
|
|
516
|
+
}
|
|
517
|
+
get session() {
|
|
518
|
+
return this.$$.ctx[8];
|
|
519
|
+
}
|
|
520
|
+
set session(e) {
|
|
521
|
+
this.$$set({ session: e }), U();
|
|
522
|
+
}
|
|
523
|
+
get lang() {
|
|
524
|
+
return this.$$.ctx[9];
|
|
525
|
+
}
|
|
526
|
+
set lang(e) {
|
|
527
|
+
this.$$set({ lang: e }), U();
|
|
528
|
+
}
|
|
529
|
+
get customerid() {
|
|
530
|
+
return this.$$.ctx[10];
|
|
531
|
+
}
|
|
532
|
+
set customerid(e) {
|
|
533
|
+
this.$$set({ customerid: e }), U();
|
|
534
|
+
}
|
|
535
|
+
get clientstyling() {
|
|
536
|
+
return this.$$.ctx[11];
|
|
537
|
+
}
|
|
538
|
+
set clientstyling(e) {
|
|
539
|
+
this.$$set({ clientstyling: e }), U();
|
|
540
|
+
}
|
|
541
|
+
get clientstylingurl() {
|
|
542
|
+
return this.$$.ctx[12];
|
|
543
|
+
}
|
|
544
|
+
set clientstylingurl(e) {
|
|
545
|
+
this.$$set({ clientstylingurl: e }), U();
|
|
546
|
+
}
|
|
547
|
+
get translationurl() {
|
|
548
|
+
return this.$$.ctx[13];
|
|
549
|
+
}
|
|
550
|
+
set translationurl(e) {
|
|
551
|
+
this.$$set({ translationurl: e }), U();
|
|
552
|
+
}
|
|
553
|
+
get tooltipduration() {
|
|
554
|
+
return this.$$.ctx[0];
|
|
555
|
+
}
|
|
556
|
+
set tooltipduration(e) {
|
|
557
|
+
this.$$set({ tooltipduration: e }), U();
|
|
558
|
+
}
|
|
559
|
+
get txncount() {
|
|
560
|
+
return this.$$.ctx[14];
|
|
561
|
+
}
|
|
562
|
+
set txncount(e) {
|
|
563
|
+
this.$$set({ txncount: e }), U();
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
we(Pe, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
|
|
567
|
+
export {
|
|
568
|
+
Pe as default
|
|
569
|
+
};
|