@everymatrix/cashier-page 1.67.3 → 1.68.0
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/{CashierConfirmModal-DSousiGi.js → CashierConfirmModal-4RYp7Eiq.js} +63 -63
- package/components/{CashierConfirmModal-aR9avzhT.cjs → CashierConfirmModal-DMmJumcl.cjs} +1 -1
- package/components/{CashierConfirmModal-Dqt01j--.js → CashierConfirmModal-untxGhsx.js} +63 -63
- package/components/{CashierError-BJ0E1_1v.js → CashierError-Cns-3PNq.js} +822 -820
- package/components/{CashierError-CDMTA5XZ.js → CashierError-DUzkCsXh.js} +825 -823
- package/components/CashierError-DaAmOVnU.cjs +5 -0
- package/components/{CashierHeader-DdaYQk1z.js → CashierHeader-B70dCV9P.js} +76 -76
- package/components/CashierHeader-D09r-jkw.cjs +1 -0
- package/components/{CashierHeader-CIGQbunN.js → CashierHeader-UB8k3unf.js} +75 -75
- package/components/{CashierIframeRedirect-DFbde_A6.cjs → CashierIframeRedirect-B3F7pZ1B.cjs} +1 -1
- package/components/{CashierIframeRedirect-uKBvAgPd.js → CashierIframeRedirect-CFX4sGYO.js} +32 -32
- package/components/{CashierIframeRedirect-DgRv7mIi.js → CashierIframeRedirect-ftwTZ2xd.js} +39 -39
- package/components/{CashierMethodDetails-C8zoV6W4.js → CashierMethodDetails-B6Mr4aP0.js} +260 -260
- package/components/{CashierMethodDetails-C2_u6BK8.js → CashierMethodDetails-CCXOr2gb.js} +269 -269
- package/components/{CashierMethodDetails-B3iGe4hR.cjs → CashierMethodDetails-D0Y5nPiN.cjs} +1 -1
- package/components/{CashierMethodsList-D8b1qu2l.js → CashierMethodsList-DVjbbHO_.js} +111 -111
- package/components/{CashierMethodsList-TjtjgYd2.cjs → CashierMethodsList-DaNccxCT.cjs} +1 -1
- package/components/{CashierMethodsList-zbTtJNbj.js → CashierMethodsList-lyl4lzH4.js} +106 -106
- package/components/{CashierModal-i5BLXeMG.js → CashierModal-BrwIBn9a.js} +35 -35
- package/components/{CashierModal-C4UbhpUy.cjs → CashierModal-BuM2Yq-y.cjs} +1 -1
- package/components/{CashierModal-D7l5xNNv.js → CashierModal-ZfKvGxFq.js} +40 -40
- package/components/{CashierNotifications-NZjMeobR.cjs → CashierNotifications-BLJS7gpv.cjs} +1 -1
- package/components/{CashierNotifications-NeYZwpe0.js → CashierNotifications-C48iLynX.js} +19 -19
- package/components/{CashierNotifications-C8IpBoiL.js → CashierNotifications-dn6rnyK_.js} +18 -18
- package/components/{CashierPage-BUhLJIX9.cjs → CashierPage-B6U1sEpL.cjs} +1 -1
- package/components/{CashierPage-B5AOrnIR.js → CashierPage-DwwVZWaQ.js} +105 -105
- package/components/{CashierPage-Bta_wcmm.js → CashierPage-Oq46yP5A.js} +178 -178
- package/components/{CashierReceiptPage-Clg1Fc7Z.js → CashierReceiptPage-B7SvdgM-.js} +28 -28
- package/components/{CashierReceiptPage-DHzc7FzL.cjs → CashierReceiptPage-D_fuJVBK.cjs} +1 -1
- package/components/{CashierReceiptPage-QzdS-ShS.js → CashierReceiptPage-YAGlqjjm.js} +28 -28
- package/components/{CashierSessionExpirationModal-lYRN5IL1.js → CashierSessionExpirationModal-B4sZWPat.js} +255 -264
- package/components/{CashierSessionExpirationModal-DvQFH1r5.js → CashierSessionExpirationModal-CZreGxnI.js} +240 -249
- package/components/{CashierSessionExpirationModal-Ctwh56Tb.cjs → CashierSessionExpirationModal-D3E8pXO5.cjs} +2 -2
- package/components/{CashierSpinner-DIo0_MsH.js → CashierSpinner-BAfTKICK.js} +17 -17
- package/components/{CashierSpinner-CMKSvNOT.cjs → CashierSpinner-BhmndmKG.cjs} +1 -1
- package/components/{CashierSpinner-BWEendA2.js → CashierSpinner-y6HodxHT.js} +14 -14
- package/components/{CashierTransactionHistory-DfHVhVcP.js → CashierTransactionHistory-CGPCwBBR.js} +95 -95
- package/components/{CashierTransactionHistory-CC-C7I-S.js → CashierTransactionHistory-CNFeJ6tL.js} +82 -82
- package/components/{CashierTransactionHistory-ClzvfAky.cjs → CashierTransactionHistory-skFu8ocY.cjs} +1 -1
- package/components/{CashierVerifications-OYhB9s9G.js → CashierVerifications-BPZjO4hX.js} +33 -33
- package/components/{CashierVerifications-BCw9TH6P.js → CashierVerifications-BnmIMTOt.js} +42 -42
- package/components/{CashierVerifications-B2LJC-xc.cjs → CashierVerifications-DXULEiAu.cjs} +1 -1
- package/components/{CashierVideoModal-B-7IPsEa.cjs → CashierVideoModal-BZg_b6bd.cjs} +1 -1
- package/components/{CashierVideoModal-BFng4vaT.js → CashierVideoModal-CVDvqrcy.js} +39 -39
- package/components/{CashierVideoModal-BOcjBUjZ.js → CashierVideoModal-DHNu0BQz.js} +38 -38
- 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/stencil/{index-97d17652-ChRvzjAp.js → index-97d17652-BEnqZAxL.js} +186 -186
- package/stencil/index-97d17652-D5_8Vwfn.cjs +1 -0
- package/stencil/{index-97d17652-DKsTmN3Z.js → index-97d17652-WK_DbPS4.js} +175 -175
- package/stencil/{ui-image-B2ynFkLT.cjs → ui-image-CMb1eK44.cjs} +1 -1
- package/stencil/{ui-image-D7A7MInC.js → ui-image-CQQDA5b0.js} +1 -1
- package/stencil/{ui-image-D_Js9Evk.js → ui-image-CmwNU-jf.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-B43lELFk.js → ui-image-b7b48fe5-Cf9Vq5pI.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-CRQDt62Z.cjs → ui-image-b7b48fe5-DCck2kk1.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-DVcK_myk.js → ui-image-b7b48fe5-V9vp4faA.js} +1 -1
- package/stencil/{ui-image_2-EP2dwjfi.js → ui-image_2-B56t6kXT.js} +2 -2
- package/stencil/{ui-image_2-Df0q0jE8.js → ui-image_2-BncuYpLi.js} +2 -2
- package/stencil/{ui-image_2-CyHaM9Na.cjs → ui-image_2-YkYxLKu7.cjs} +1 -1
- package/components/CashierError-B5iCX53y.cjs +0 -18
- package/components/CashierHeader-DL5BrZ9i.cjs +0 -1
- package/stencil/index-97d17652-qWThG1U9.cjs +0 -1
package/components/{CashierTransactionHistory-CC-C7I-S.js → CashierTransactionHistory-CNFeJ6tL.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { S as it, b as nt,
|
|
2
|
-
import { f as K } from "./CashierModal-
|
|
3
|
-
import {
|
|
4
|
-
import { d as bt } from "./CashierMethodDetails-
|
|
5
|
-
|
|
1
|
+
import { S as it, b as nt, s as at, f as U, c as lt, n as J, e as W, m as N, x as ot, w as rt, K as V, L as ct, g as X, k as ft, t as dt, l as ut, y as B, o as l, p as v, q as j, z as I, v as e, A as ht, V as mt, F as vt, W as pt, J as G, B as gt, N as T, E as xt } from "./CashierConfirmModal-4RYp7Eiq.js";
|
|
2
|
+
import { f as K } from "./CashierModal-ZfKvGxFq.js";
|
|
3
|
+
import { a as kt, $ as wt, i as yt, b as Tt } from "./CashierError-DUzkCsXh.js";
|
|
4
|
+
import { d as bt } from "./CashierMethodDetails-CCXOr2gb.js";
|
|
5
|
+
yt({
|
|
6
6
|
fallbackLocale: "en"
|
|
7
7
|
});
|
|
8
8
|
function Q(a, t) {
|
|
9
|
-
|
|
9
|
+
kt(a, t);
|
|
10
10
|
}
|
|
11
11
|
function _t(a) {
|
|
12
|
-
|
|
12
|
+
wt.set(a);
|
|
13
13
|
}
|
|
14
14
|
const Z = {
|
|
15
15
|
en: {
|
|
@@ -67,7 +67,7 @@ function St(a, t) {
|
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
function Ht(a) {
|
|
70
|
-
|
|
70
|
+
lt(a, "svelte-1kx4sff", ".svelte-1kx4sff.svelte-1kx4sff,.svelte-1kx4sff.svelte-1kx4sff::before,.svelte-1kx4sff.svelte-1kx4sff::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1kx4sff thead tr.svelte-1kx4sff{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1kx4sff tbody tr.svelte-1kx4sff{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{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-1kx4sff td:last-child .CashierTransactionHistoryStatusText.svelte-1kx4sff{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1kx4sff tr.svelte-1kx4sff{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1kx4sff .CopyTooltip.svelte-1kx4sff{width:100%}.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionId.svelte-1kx4sff{max-width:135px}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionHistoryWrapper.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1kx4sff table.svelte-1kx4sff{table-layout:fixed}.CashierTransactionHistory.svelte-1kx4sff table td.svelte-1kx4sff{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1kx4sff.svelte-1kx4sff:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1kx4sff.svelte-1kx4sff{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1kx4sff.svelte-1kx4sff{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1kx4sff.svelte-1kx4sff{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1kx4sff.svelte-1kx4sff{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
|
|
71
71
|
}
|
|
72
72
|
function $(a, t, s) {
|
|
73
73
|
const i = a.slice();
|
|
@@ -77,73 +77,73 @@ function tt(a) {
|
|
|
77
77
|
let t, s, i, o = (
|
|
78
78
|
/*$_*/
|
|
79
79
|
a[5]("transactionHistoryTitle") + ""
|
|
80
|
-
), c, d, u, x, b, _, p, H,
|
|
80
|
+
), c, d, u, x, b, _, p, H, L = (
|
|
81
81
|
/*$_*/
|
|
82
82
|
a[5]("transactionIdTitle") + ""
|
|
83
83
|
), z, k, C, y = (
|
|
84
84
|
/*$_*/
|
|
85
85
|
a[5]("transactionDateTitle") + ""
|
|
86
|
-
), A, D,
|
|
86
|
+
), A, D, R, M = (
|
|
87
87
|
/*$_*/
|
|
88
88
|
a[5]("transactionTypeTitle") + ""
|
|
89
|
-
),
|
|
89
|
+
), E, Y, P, S = (
|
|
90
90
|
/*$_*/
|
|
91
91
|
a[5]("transactionStatusTitle") + ""
|
|
92
92
|
), g, n, r, f = (
|
|
93
93
|
/*copied*/
|
|
94
94
|
a[3] && et(a)
|
|
95
|
-
),
|
|
95
|
+
), O = V(
|
|
96
96
|
/*txnHistory*/
|
|
97
97
|
a[2]
|
|
98
|
-
),
|
|
99
|
-
for (let h = 0; h <
|
|
100
|
-
|
|
98
|
+
), m = [];
|
|
99
|
+
for (let h = 0; h < O.length; h += 1)
|
|
100
|
+
m[h] = st($(a, O, h));
|
|
101
101
|
return {
|
|
102
102
|
c() {
|
|
103
|
-
t =
|
|
104
|
-
for (let h = 0; h <
|
|
105
|
-
|
|
106
|
-
e(i, "class", "CashierTransactionHistoryTitle svelte-1kx4sff"), e(H, "class", "svelte-1kx4sff"), e(C, "class", "svelte-1kx4sff"), e(
|
|
103
|
+
t = v("div"), f && f.c(), s = j(), i = v("h3"), c = I(o), d = j(), u = v("div"), x = v("div"), b = v("table"), _ = v("thead"), p = v("tr"), H = v("td"), z = I(L), k = j(), C = v("td"), A = I(y), D = j(), R = v("td"), E = I(M), Y = j(), P = v("td"), g = I(S), n = j(), r = v("tbody");
|
|
104
|
+
for (let h = 0; h < m.length; h += 1)
|
|
105
|
+
m[h].c();
|
|
106
|
+
e(i, "class", "CashierTransactionHistoryTitle svelte-1kx4sff"), e(H, "class", "svelte-1kx4sff"), e(C, "class", "svelte-1kx4sff"), e(R, "class", "svelte-1kx4sff"), e(P, "class", "svelte-1kx4sff"), e(p, "class", "svelte-1kx4sff"), e(_, "class", "svelte-1kx4sff"), e(r, "class", "svelte-1kx4sff"), e(b, "class", "svelte-1kx4sff"), e(x, "class", "CashierTransactionHistoryContent svelte-1kx4sff"), e(u, "class", "CashierTransactionHistoryWrapper svelte-1kx4sff"), e(t, "class", "CashierTransactionHistory svelte-1kx4sff");
|
|
107
107
|
},
|
|
108
108
|
m(h, F) {
|
|
109
|
-
|
|
110
|
-
for (let w = 0; w <
|
|
111
|
-
|
|
109
|
+
N(h, t, F), f && f.m(t, null), l(t, s), l(t, i), l(i, c), l(t, d), l(t, u), l(u, x), l(x, b), l(b, _), l(_, p), l(p, H), l(H, z), l(p, k), l(p, C), l(C, A), l(p, D), l(p, R), l(R, E), l(p, Y), l(p, P), l(P, g), l(b, n), l(b, r);
|
|
110
|
+
for (let w = 0; w < m.length; w += 1)
|
|
111
|
+
m[w] && m[w].m(r, null);
|
|
112
112
|
a[16](t);
|
|
113
113
|
},
|
|
114
114
|
p(h, F) {
|
|
115
115
|
if (/*copied*/
|
|
116
116
|
h[3] ? f ? (f.p(h, F), F & /*copied*/
|
|
117
|
-
8 &&
|
|
117
|
+
8 && X(f, 1)) : (f = et(h), f.c(), X(f, 1), f.m(t, s)) : f && (ft(), dt(f, 1, 1, () => {
|
|
118
118
|
f = null;
|
|
119
119
|
}), ut()), F & /*$_*/
|
|
120
120
|
32 && o !== (o = /*$_*/
|
|
121
121
|
h[5]("transactionHistoryTitle") + "") && B(c, o), F & /*$_*/
|
|
122
|
-
32 &&
|
|
123
|
-
h[5]("transactionIdTitle") + "") && B(z,
|
|
122
|
+
32 && L !== (L = /*$_*/
|
|
123
|
+
h[5]("transactionIdTitle") + "") && B(z, L), F & /*$_*/
|
|
124
124
|
32 && y !== (y = /*$_*/
|
|
125
125
|
h[5]("transactionDateTitle") + "") && B(A, y), F & /*$_*/
|
|
126
126
|
32 && M !== (M = /*$_*/
|
|
127
|
-
h[5]("transactionTypeTitle") + "") && B(
|
|
127
|
+
h[5]("transactionTypeTitle") + "") && B(E, M), F & /*$_*/
|
|
128
128
|
32 && S !== (S = /*$_*/
|
|
129
129
|
h[5]("transactionStatusTitle") + "") && B(g, S), F & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
|
|
130
130
|
124) {
|
|
131
|
-
|
|
131
|
+
O = V(
|
|
132
132
|
/*txnHistory*/
|
|
133
133
|
h[2]
|
|
134
134
|
);
|
|
135
135
|
let w;
|
|
136
|
-
for (w = 0; w <
|
|
137
|
-
const q = $(h,
|
|
138
|
-
|
|
136
|
+
for (w = 0; w < O.length; w += 1) {
|
|
137
|
+
const q = $(h, O, w);
|
|
138
|
+
m[w] ? m[w].p(q, F) : (m[w] = st(q), m[w].c(), m[w].m(r, null));
|
|
139
139
|
}
|
|
140
|
-
for (; w <
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
for (; w < m.length; w += 1)
|
|
141
|
+
m[w].d(1);
|
|
142
|
+
m.length = O.length;
|
|
143
143
|
}
|
|
144
144
|
},
|
|
145
145
|
d(h) {
|
|
146
|
-
h && W(t), f && f.d(),
|
|
146
|
+
h && W(t), f && f.d(), ct(m, h), a[16](null);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
}
|
|
@@ -154,10 +154,10 @@ function et(a) {
|
|
|
154
154
|
), i, o, c, d;
|
|
155
155
|
return {
|
|
156
156
|
c() {
|
|
157
|
-
t =
|
|
157
|
+
t = v("div"), i = I(s), e(t, "class", "CopyTooltip svelte-1kx4sff");
|
|
158
158
|
},
|
|
159
159
|
m(u, x) {
|
|
160
|
-
|
|
160
|
+
N(u, t, x), l(t, i), d = !0;
|
|
161
161
|
},
|
|
162
162
|
p(u, x) {
|
|
163
163
|
a = u, (!d || x & /*$_*/
|
|
@@ -166,11 +166,11 @@ function et(a) {
|
|
|
166
166
|
},
|
|
167
167
|
i(u) {
|
|
168
168
|
d || (u && vt(() => {
|
|
169
|
-
d && (c && c.end(1), o =
|
|
169
|
+
d && (c && c.end(1), o = pt(t, K, { duration: 100 }), o.start());
|
|
170
170
|
}), d = !0);
|
|
171
171
|
},
|
|
172
172
|
o(u) {
|
|
173
|
-
o && o.invalidate(), u && (c =
|
|
173
|
+
o && o.invalidate(), u && (c = mt(t, K, { duration: (
|
|
174
174
|
/*tooltipduration*/
|
|
175
175
|
a[0]
|
|
176
176
|
) })), d = !1;
|
|
@@ -187,7 +187,7 @@ function zt(a) {
|
|
|
187
187
|
t = T("svg"), s = T("circle"), i = T("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-1kx4sff"), 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-1kx4sff"), 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-1kx4sff");
|
|
188
188
|
},
|
|
189
189
|
m(o, c) {
|
|
190
|
-
|
|
190
|
+
N(o, t, c), l(t, s), l(t, i);
|
|
191
191
|
},
|
|
192
192
|
d(o) {
|
|
193
193
|
o && W(t);
|
|
@@ -201,7 +201,7 @@ function Dt(a) {
|
|
|
201
201
|
t = T("svg"), s = T("circle"), i = T("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-1kx4sff"), 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-1kx4sff"), 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-1kx4sff");
|
|
202
202
|
},
|
|
203
203
|
m(c, d) {
|
|
204
|
-
|
|
204
|
+
N(c, t, d), l(t, s), l(t, i), l(i, o);
|
|
205
205
|
},
|
|
206
206
|
d(c) {
|
|
207
207
|
c && W(t);
|
|
@@ -215,7 +215,7 @@ function It(a) {
|
|
|
215
215
|
t = T("svg"), s = T("circle"), i = T("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-1kx4sff"), 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-1kx4sff"), 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-1kx4sff");
|
|
216
216
|
},
|
|
217
217
|
m(o, c) {
|
|
218
|
-
|
|
218
|
+
N(o, t, c), l(t, s), l(t, i);
|
|
219
219
|
},
|
|
220
220
|
d(o) {
|
|
221
221
|
o && W(t);
|
|
@@ -229,7 +229,7 @@ function At(a) {
|
|
|
229
229
|
t = T("svg"), s = T("circle"), i = T("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-1kx4sff"), 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-1kx4sff"), 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-1kx4sff");
|
|
230
230
|
},
|
|
231
231
|
m(o, c) {
|
|
232
|
-
|
|
232
|
+
N(o, t, c), l(t, s), l(t, i);
|
|
233
233
|
},
|
|
234
234
|
d(o) {
|
|
235
235
|
o && W(t);
|
|
@@ -243,7 +243,7 @@ function Ft(a) {
|
|
|
243
243
|
t = T("svg"), s = T("circle"), i = T("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-1kx4sff"), 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-1kx4sff"), 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-1kx4sff");
|
|
244
244
|
},
|
|
245
245
|
m(c, d) {
|
|
246
|
-
|
|
246
|
+
N(c, t, d), l(t, s), l(t, i), l(i, o);
|
|
247
247
|
},
|
|
248
248
|
d(c) {
|
|
249
249
|
c && W(t);
|
|
@@ -261,11 +261,11 @@ function st(a) {
|
|
|
261
261
|
/*$_*/
|
|
262
262
|
a[5](`transactionType.${/*transaction*/
|
|
263
263
|
a[24].Type}`) + ""
|
|
264
|
-
), H,
|
|
264
|
+
), H, L, z, k, C, y, A, D = (
|
|
265
265
|
/*$_*/
|
|
266
266
|
a[5](`transactionStatus.${/*transaction*/
|
|
267
267
|
a[24].Status}`) + ""
|
|
268
|
-
),
|
|
268
|
+
), R, M, E, Y;
|
|
269
269
|
function P(n, r) {
|
|
270
270
|
if (
|
|
271
271
|
/*transaction*/
|
|
@@ -301,7 +301,7 @@ function st(a) {
|
|
|
301
301
|
let S = P(a), g = S && S(a);
|
|
302
302
|
return {
|
|
303
303
|
c() {
|
|
304
|
-
t =
|
|
304
|
+
t = v("tr"), s = v("td"), o = I(i), c = j(), d = v("td"), x = I(u), b = j(), _ = v("td"), H = I(p), L = j(), z = v("td"), k = v("div"), C = v("span"), g && g.c(), y = j(), A = v("span"), R = I(D), M = j(), e(s, "class", "CashierTransactionId svelte-1kx4sff"), G(
|
|
305
305
|
s,
|
|
306
306
|
"copied",
|
|
307
307
|
/*copied*/
|
|
@@ -309,18 +309,18 @@ function st(a) {
|
|
|
309
309
|
), e(d, "class", "svelte-1kx4sff"), e(_, "class", "svelte-1kx4sff"), e(C, "class", "CashierTransactionHistoryIcon svelte-1kx4sff"), e(A, "class", "CashierTransactionHistoryStatusText svelte-1kx4sff"), e(k, "class", "CashierTransactionHistoryStatus svelte-1kx4sff"), e(z, "class", "svelte-1kx4sff"), e(t, "class", "svelte-1kx4sff");
|
|
310
310
|
},
|
|
311
311
|
m(n, r) {
|
|
312
|
-
|
|
312
|
+
N(n, t, r), l(t, s), l(s, o), l(t, c), l(t, d), l(d, x), l(t, b), l(t, _), l(_, H), l(t, L), l(t, z), l(z, k), l(k, C), g && g.m(C, null), l(k, y), l(k, A), l(A, R), l(t, M), E || (Y = gt(
|
|
313
313
|
s,
|
|
314
314
|
"mousedown",
|
|
315
315
|
/*mousedown_handler*/
|
|
316
316
|
a[15]
|
|
317
|
-
),
|
|
317
|
+
), E = !0);
|
|
318
318
|
},
|
|
319
319
|
p(n, r) {
|
|
320
320
|
r & /*txnHistory*/
|
|
321
321
|
4 && i !== (i = /*transaction*/
|
|
322
322
|
n[24].Code + "") && B(o, i), r & /*copied*/
|
|
323
|
-
8 &&
|
|
323
|
+
8 && G(
|
|
324
324
|
s,
|
|
325
325
|
"copied",
|
|
326
326
|
/*copied*/
|
|
@@ -333,10 +333,10 @@ function st(a) {
|
|
|
333
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
334
|
36 && D !== (D = /*$_*/
|
|
335
335
|
n[5](`transactionStatus.${/*transaction*/
|
|
336
|
-
n[24].Status}`) + "") && B(
|
|
336
|
+
n[24].Status}`) + "") && B(R, D);
|
|
337
337
|
},
|
|
338
338
|
d(n) {
|
|
339
|
-
n && W(t), g && g.d(),
|
|
339
|
+
n && W(t), g && g.d(), E = !1, Y();
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
342
|
}
|
|
@@ -347,27 +347,27 @@ function jt(a) {
|
|
|
347
347
|
);
|
|
348
348
|
return {
|
|
349
349
|
c() {
|
|
350
|
-
s && s.c(), t =
|
|
350
|
+
s && s.c(), t = ot();
|
|
351
351
|
},
|
|
352
352
|
m(i, o) {
|
|
353
|
-
s && s.m(i, o),
|
|
353
|
+
s && s.m(i, o), N(i, t, o);
|
|
354
354
|
},
|
|
355
355
|
p(i, [o]) {
|
|
356
356
|
/*txnHistory*/
|
|
357
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
358
|
},
|
|
359
|
-
i:
|
|
360
|
-
o:
|
|
359
|
+
i: J,
|
|
360
|
+
o: J,
|
|
361
361
|
d(i) {
|
|
362
362
|
i && W(t), s && s.d(i);
|
|
363
363
|
}
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
|
-
const
|
|
367
|
-
function
|
|
366
|
+
const Lt = "DD.MM.YYYY";
|
|
367
|
+
function Rt(a, t, s) {
|
|
368
368
|
let i;
|
|
369
|
-
|
|
370
|
-
let { endpoint: o } = t, { session: c } = t, { lang: d = "en" } = t, { customerid: u } = t, { clientstyling: x = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: _ } = t, { tooltipduration: p = 1e3 } = t, { txncount: H = 3 } = t,
|
|
369
|
+
rt(a, Tt, (n) => s(5, i = n));
|
|
370
|
+
let { endpoint: o } = t, { session: c } = t, { lang: d = "en" } = t, { customerid: u } = t, { clientstyling: x = "" } = t, { clientstylingurl: b = "" } = t, { translationurl: _ } = t, { tooltipduration: p = 1e3 } = t, { txncount: H = 3 } = t, L = [], z = !1, k, C;
|
|
371
371
|
var y;
|
|
372
372
|
(function(n) {
|
|
373
373
|
n.Deposit = "deposit", n.Withdraw = "withdraw", n.Refund = "refund", n.Unknown = "unknown", n.TaxDeduction = "taxDeduction";
|
|
@@ -388,7 +388,7 @@ function Lt(a, t, s) {
|
|
|
388
388
|
(function(n) {
|
|
389
389
|
n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
|
|
390
390
|
})(D || (D = {}));
|
|
391
|
-
const
|
|
391
|
+
const R = () => {
|
|
392
392
|
let n = _;
|
|
393
393
|
if (n)
|
|
394
394
|
return fetch(n).then((r) => r.json()).then((r) => {
|
|
@@ -404,10 +404,10 @@ function Lt(a, t, s) {
|
|
|
404
404
|
});
|
|
405
405
|
const M = () => {
|
|
406
406
|
_t(d);
|
|
407
|
-
},
|
|
407
|
+
}, E = () => {
|
|
408
408
|
const n = new URL(`${o}/api/v1/mm/payment/gettransactionshistory`), r = new Headers();
|
|
409
409
|
r.append("accept", "application/json"), r.append("Content-Type", "application/json"), r.append("X-SessionId", `${c}`);
|
|
410
|
-
const f = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(),
|
|
410
|
+
const f = new Date((/* @__PURE__ */ new Date()).setMonth((/* @__PURE__ */ new Date()).getMonth() - 3)).toISOString(), O = {
|
|
411
411
|
method: "POST",
|
|
412
412
|
mode: "cors",
|
|
413
413
|
headers: r,
|
|
@@ -428,14 +428,14 @@ function Lt(a, t, s) {
|
|
|
428
428
|
calculateProfit: !1
|
|
429
429
|
})
|
|
430
430
|
};
|
|
431
|
-
fetch(n,
|
|
432
|
-
s(2,
|
|
433
|
-
}).catch((
|
|
431
|
+
fetch(n, O).then((m) => m.json()).then((m) => {
|
|
432
|
+
s(2, L = Y((m == null ? void 0 : m.items) || []));
|
|
433
|
+
}).catch((m) => console.log(m));
|
|
434
434
|
}, Y = (n) => n.map((r) => {
|
|
435
435
|
let f = r.generalFields.status;
|
|
436
436
|
return r.generalFields.status.toLowerCase().includes("pending") && (f = D.Pending), {
|
|
437
437
|
Code: r.generalFields.code,
|
|
438
|
-
Date: bt(r.generalFields.created).format(
|
|
438
|
+
Date: bt(r.generalFields.created).format(Lt),
|
|
439
439
|
Status: f,
|
|
440
440
|
Type: r.generalFields.type
|
|
441
441
|
};
|
|
@@ -453,7 +453,7 @@ function Lt(a, t, s) {
|
|
|
453
453
|
});
|
|
454
454
|
}, S = (n) => P(n);
|
|
455
455
|
function g(n) {
|
|
456
|
-
|
|
456
|
+
ht[n ? "unshift" : "push"](() => {
|
|
457
457
|
k = n, s(1, k);
|
|
458
458
|
});
|
|
459
459
|
}
|
|
@@ -464,12 +464,12 @@ function Lt(a, t, s) {
|
|
|
464
464
|
512 && d && M(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
465
465
|
2050 && x && k && Ct(k, x), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
466
466
|
4098 && b && k && St(k, b), a.$$.dirty & /*endpoint, session, customerid, lang*/
|
|
467
|
-
1920 && o && c && u && d &&
|
|
468
|
-
8192 && _ &&
|
|
467
|
+
1920 && o && c && u && d && E(), a.$$.dirty & /*translationurl*/
|
|
468
|
+
8192 && _ && R();
|
|
469
469
|
}, [
|
|
470
470
|
p,
|
|
471
471
|
k,
|
|
472
|
-
|
|
472
|
+
L,
|
|
473
473
|
z,
|
|
474
474
|
D,
|
|
475
475
|
i,
|
|
@@ -491,9 +491,9 @@ class Pt extends it {
|
|
|
491
491
|
super(), nt(
|
|
492
492
|
this,
|
|
493
493
|
t,
|
|
494
|
-
|
|
494
|
+
Rt,
|
|
495
495
|
jt,
|
|
496
|
-
|
|
496
|
+
at,
|
|
497
497
|
{
|
|
498
498
|
endpoint: 7,
|
|
499
499
|
session: 8,
|
|
@@ -512,58 +512,58 @@ class Pt extends it {
|
|
|
512
512
|
return this.$$.ctx[7];
|
|
513
513
|
}
|
|
514
514
|
set endpoint(t) {
|
|
515
|
-
this.$$set({ endpoint: t }),
|
|
515
|
+
this.$$set({ endpoint: t }), U();
|
|
516
516
|
}
|
|
517
517
|
get session() {
|
|
518
518
|
return this.$$.ctx[8];
|
|
519
519
|
}
|
|
520
520
|
set session(t) {
|
|
521
|
-
this.$$set({ session: t }),
|
|
521
|
+
this.$$set({ session: t }), U();
|
|
522
522
|
}
|
|
523
523
|
get lang() {
|
|
524
524
|
return this.$$.ctx[9];
|
|
525
525
|
}
|
|
526
526
|
set lang(t) {
|
|
527
|
-
this.$$set({ lang: t }),
|
|
527
|
+
this.$$set({ lang: t }), U();
|
|
528
528
|
}
|
|
529
529
|
get customerid() {
|
|
530
530
|
return this.$$.ctx[10];
|
|
531
531
|
}
|
|
532
532
|
set customerid(t) {
|
|
533
|
-
this.$$set({ customerid: t }),
|
|
533
|
+
this.$$set({ customerid: t }), U();
|
|
534
534
|
}
|
|
535
535
|
get clientstyling() {
|
|
536
536
|
return this.$$.ctx[11];
|
|
537
537
|
}
|
|
538
538
|
set clientstyling(t) {
|
|
539
|
-
this.$$set({ clientstyling: t }),
|
|
539
|
+
this.$$set({ clientstyling: t }), U();
|
|
540
540
|
}
|
|
541
541
|
get clientstylingurl() {
|
|
542
542
|
return this.$$.ctx[12];
|
|
543
543
|
}
|
|
544
544
|
set clientstylingurl(t) {
|
|
545
|
-
this.$$set({ clientstylingurl: t }),
|
|
545
|
+
this.$$set({ clientstylingurl: t }), U();
|
|
546
546
|
}
|
|
547
547
|
get translationurl() {
|
|
548
548
|
return this.$$.ctx[13];
|
|
549
549
|
}
|
|
550
550
|
set translationurl(t) {
|
|
551
|
-
this.$$set({ translationurl: t }),
|
|
551
|
+
this.$$set({ translationurl: t }), U();
|
|
552
552
|
}
|
|
553
553
|
get tooltipduration() {
|
|
554
554
|
return this.$$.ctx[0];
|
|
555
555
|
}
|
|
556
556
|
set tooltipduration(t) {
|
|
557
|
-
this.$$set({ tooltipduration: t }),
|
|
557
|
+
this.$$set({ tooltipduration: t }), U();
|
|
558
558
|
}
|
|
559
559
|
get txncount() {
|
|
560
560
|
return this.$$.ctx[14];
|
|
561
561
|
}
|
|
562
562
|
set txncount(t) {
|
|
563
|
-
this.$$set({ txncount: t }),
|
|
563
|
+
this.$$set({ txncount: t }), U();
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
|
|
566
|
+
xt(Pt, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {} }, [], [], !0);
|
|
567
567
|
export {
|
|
568
568
|
Pt as default
|
|
569
569
|
};
|
package/components/{CashierTransactionHistory-ClzvfAky.cjs → CashierTransactionHistory-skFu8ocY.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-aR9avzhT.cjs"),B=require("./CashierModal-C4UbhpUy.cjs"),L=require("./CashierError-B5iCX53y.cjs"),X=require("./CashierMethodDetails-B3iGe4hR.cjs");L.init({fallbackLocale:"en"});function E(i,e){L.addMessages(i,e)}function G(i){L.$locale.set(i)}const U={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",copyTransactionId:"Transaction Id copied to clipboard",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Deposit",Withdraw:"Withdraw"}},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function J(i,e){if(i){const s=document.createElement("style");s.innerHTML=e,i.appendChild(s)}}function V(i,e){const s=new URL(e);fetch(s.href).then(a=>a.text()).then(a=>{const r=document.createElement("style");r.innerHTML=a,i&&i.appendChild(r)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function K(i){t.append_styles(i,"svelte-1kx4sff",".svelte-1kx4sff.svelte-1kx4sff,.svelte-1kx4sff.svelte-1kx4sff::before,.svelte-1kx4sff.svelte-1kx4sff::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1kx4sff thead tr.svelte-1kx4sff{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1kx4sff tbody tr.svelte-1kx4sff{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{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-1kx4sff td:last-child .CashierTransactionHistoryStatusText.svelte-1kx4sff{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1kx4sff tr.svelte-1kx4sff{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1kx4sff .CopyTooltip.svelte-1kx4sff{width:100%}.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionId.svelte-1kx4sff{max-width:135px}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionHistoryWrapper.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1kx4sff table.svelte-1kx4sff{table-layout:fixed}.CashierTransactionHistory.svelte-1kx4sff table td.svelte-1kx4sff{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1kx4sff.svelte-1kx4sff:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1kx4sff.svelte-1kx4sff{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1kx4sff.svelte-1kx4sff{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1kx4sff.svelte-1kx4sff{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1kx4sff.svelte-1kx4sff{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function O(i,e,s){const a=i.slice();return a[24]=e[s],a[26]=s,a}function W(i){let e,s,a,r=i[5]("transactionHistoryTitle")+"",o,d,f,v,w,y,h,b,z=i[5]("transactionIdTitle")+"",C,g,_,k=i[5]("transactionDateTitle")+"",H,S,I,F=i[5]("transactionTypeTitle")+"",j,R,A,T=i[5]("transactionStatusTitle")+"",m,n,l,c=i[3]&&N(i),P=t.ensure_array_like(i[2]),u=[];for(let p=0;p<P.length;p+=1)u[p]=q(O(i,P,p));return{c(){e=t.element("div"),c&&c.c(),s=t.space(),a=t.element("h3"),o=t.text(r),d=t.space(),f=t.element("div"),v=t.element("div"),w=t.element("table"),y=t.element("thead"),h=t.element("tr"),b=t.element("td"),C=t.text(z),g=t.space(),_=t.element("td"),H=t.text(k),S=t.space(),I=t.element("td"),j=t.text(F),R=t.space(),A=t.element("td"),m=t.text(T),n=t.space(),l=t.element("tbody");for(let p=0;p<u.length;p+=1)u[p].c();t.attr(a,"class","CashierTransactionHistoryTitle svelte-1kx4sff"),t.attr(b,"class","svelte-1kx4sff"),t.attr(_,"class","svelte-1kx4sff"),t.attr(I,"class","svelte-1kx4sff"),t.attr(A,"class","svelte-1kx4sff"),t.attr(h,"class","svelte-1kx4sff"),t.attr(y,"class","svelte-1kx4sff"),t.attr(l,"class","svelte-1kx4sff"),t.attr(w,"class","svelte-1kx4sff"),t.attr(v,"class","CashierTransactionHistoryContent svelte-1kx4sff"),t.attr(f,"class","CashierTransactionHistoryWrapper svelte-1kx4sff"),t.attr(e,"class","CashierTransactionHistory svelte-1kx4sff")},m(p,D){t.insert(p,e,D),c&&c.m(e,null),t.append(e,s),t.append(e,a),t.append(a,o),t.append(e,d),t.append(e,f),t.append(f,v),t.append(v,w),t.append(w,y),t.append(y,h),t.append(h,b),t.append(b,C),t.append(h,g),t.append(h,_),t.append(_,H),t.append(h,S),t.append(h,I),t.append(I,j),t.append(h,R),t.append(h,A),t.append(A,m),t.append(w,n),t.append(w,l);for(let x=0;x<u.length;x+=1)u[x]&&u[x].m(l,null);i[16](e)},p(p,D){if(p[3]?c?(c.p(p,D),D&8&&t.transition_in(c,1)):(c=N(p),c.c(),t.transition_in(c,1),c.m(e,s)):c&&(t.group_outros(),t.transition_out(c,1,1,()=>{c=null}),t.check_outros()),D&32&&r!==(r=p[5]("transactionHistoryTitle")+"")&&t.set_data(o,r),D&32&&z!==(z=p[5]("transactionIdTitle")+"")&&t.set_data(C,z),D&32&&k!==(k=p[5]("transactionDateTitle")+"")&&t.set_data(H,k),D&32&&F!==(F=p[5]("transactionTypeTitle")+"")&&t.set_data(j,F),D&32&&T!==(T=p[5]("transactionStatusTitle")+"")&&t.set_data(m,T),D&124){P=t.ensure_array_like(p[2]);let x;for(x=0;x<P.length;x+=1){const M=O(p,P,x);u[x]?u[x].p(M,D):(u[x]=q(M),u[x].c(),u[x].m(l,null))}for(;x<u.length;x+=1)u[x].d(1);u.length=P.length}},d(p){p&&t.detach(e),c&&c.d(),t.destroy_each(u,p),i[16](null)}}}function N(i){let e,s=i[5]("copyTransactionId")+"",a,r,o,d;return{c(){e=t.element("div"),a=t.text(s),t.attr(e,"class","CopyTooltip svelte-1kx4sff")},m(f,v){t.insert(f,e,v),t.append(e,a),d=!0},p(f,v){i=f,(!d||v&32)&&s!==(s=i[5]("copyTransactionId")+"")&&t.set_data(a,s)},i(f){d||(f&&t.add_render_callback(()=>{d&&(o&&o.end(1),r=t.create_in_transition(e,B.fade,{duration:100}),r.start())}),d=!0)},o(f){r&&r.invalidate(),f&&(o=t.create_out_transition(e,B.fade,{duration:i[0]})),d=!1},d(f){f&&t.detach(e),f&&o&&o.end()}}}function Q(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#25bf00"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M8 12L11 15L16 9"),t.attr(a,"stroke","#25bf00"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function Z(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("R"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#dd6617d4"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#dd6617d4"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(o,d){t.insert(o,e,d),t.append(e,s),t.append(e,a),t.append(a,r)},d(o){o&&t.detach(e)}}}function $(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#f0a85f"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M12 7V12L15 14"),t.attr(a,"stroke","#f0a85f"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function tt(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#e76049"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M9 9L15 15M15 9L9 15"),t.attr(a,"stroke","#e76049"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function et(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("A"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#32b398"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#32b398"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(o,d){t.insert(o,e,d),t.append(e,s),t.append(e,a),t.append(a,r)},d(o){o&&t.detach(e)}}}function q(i){let e,s,a=i[24].Code+"",r,o,d,f=i[24].Date+"",v,w,y,h=i[5](`transactionType.${i[24].Type}`)+"",b,z,C,g,_,k,H,S=i[5](`transactionStatus.${i[24].Status}`)+"",I,F,j,R;function A(n,l){if(n[24].Status===n[4].Authorized)return et;if(n[24].Status===n[4].Failed)return tt;if(n[24].Status===n[4].Pending)return $;if(n[24].Status===n[4].Rejected)return Z;if(n[24].Status===n[4].Success)return Q}let T=A(i),m=T&&T(i);return{c(){e=t.element("tr"),s=t.element("td"),r=t.text(a),o=t.space(),d=t.element("td"),v=t.text(f),w=t.space(),y=t.element("td"),b=t.text(h),z=t.space(),C=t.element("td"),g=t.element("div"),_=t.element("span"),m&&m.c(),k=t.space(),H=t.element("span"),I=t.text(S),F=t.space(),t.attr(s,"class","CashierTransactionId svelte-1kx4sff"),t.toggle_class(s,"copied",i[3]),t.attr(d,"class","svelte-1kx4sff"),t.attr(y,"class","svelte-1kx4sff"),t.attr(_,"class","CashierTransactionHistoryIcon svelte-1kx4sff"),t.attr(H,"class","CashierTransactionHistoryStatusText svelte-1kx4sff"),t.attr(g,"class","CashierTransactionHistoryStatus svelte-1kx4sff"),t.attr(C,"class","svelte-1kx4sff"),t.attr(e,"class","svelte-1kx4sff")},m(n,l){t.insert(n,e,l),t.append(e,s),t.append(s,r),t.append(e,o),t.append(e,d),t.append(d,v),t.append(e,w),t.append(e,y),t.append(y,b),t.append(e,z),t.append(e,C),t.append(C,g),t.append(g,_),m&&m.m(_,null),t.append(g,k),t.append(g,H),t.append(H,I),t.append(e,F),j||(R=t.listen(s,"mousedown",i[15]),j=!0)},p(n,l){l&4&&a!==(a=n[24].Code+"")&&t.set_data(r,a),l&8&&t.toggle_class(s,"copied",n[3]),l&4&&f!==(f=n[24].Date+"")&&t.set_data(v,f),l&36&&h!==(h=n[5](`transactionType.${n[24].Type}`)+"")&&t.set_data(b,h),T!==(T=A(n))&&(m&&m.d(1),m=T&&T(n),m&&(m.c(),m.m(_,null))),l&36&&S!==(S=n[5](`transactionStatus.${n[24].Status}`)+"")&&t.set_data(I,S)},d(n){n&&t.detach(e),m&&m.d(),j=!1,R()}}}function st(i){let e,s=i[2].length&&W(i);return{c(){s&&s.c(),e=t.empty()},m(a,r){s&&s.m(a,r),t.insert(a,e,r)},p(a,[r]){a[2].length?s?s.p(a,r):(s=W(a),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s&&s.d(a)}}}const at="DD.MM.YYYY";function nt(i,e,s){let a;t.component_subscribe(i,L.$format,n=>s(5,a=n));let{endpoint:r}=e,{session:o}=e,{lang:d="en"}=e,{customerid:f}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:y}=e,{tooltipduration:h=1e3}=e,{txncount:b=3}=e,z=[],C=!1,g,_;var k;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(k||(k={}));const H=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var S;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(S||(S={}));const I=()=>{let n=y;if(n)return fetch(n).then(l=>l.json()).then(l=>{Object.keys(l).forEach(c=>{E(c,l[c])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(n=>{E(n,U[n])});const F=()=>{G(d)},j=()=>{const n=new URL(`${r}/api/v1/mm/payment/gettransactionshistory`),l=new Headers;l.append("accept","application/json"),l.append("Content-Type","application/json"),l.append("X-SessionId",`${o}`);const c=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),P={method:"POST",mode:"cors",headers:l,body:JSON.stringify({language:d,customerId:f,count:b,page:0,fromDate:c,toDate:null,statuses:{[k.Deposit]:H,[k.Withdraw]:H,[k.Refund]:["Unknown"],[k.TaxDeduction]:["Unknown"],[k.Unknown]:["Unknown"]},calculateProfit:!1})};fetch(n,P).then(u=>u.json()).then(u=>{s(2,z=R((u==null?void 0:u.items)||[]))}).catch(u=>console.log(u))},R=n=>n.map(l=>{let c=l.generalFields.status;return l.generalFields.status.toLowerCase().includes("pending")&&(c=S.Pending),{Code:l.generalFields.code,Date:X.dayjs(l.generalFields.created).format(at),Status:c,Type:l.generalFields.type}})||[],A=n=>{const l=n.currentTarget;n.target===l&&navigator.clipboard.writeText(l.innerText).then(()=>{s(3,C=!0),clearTimeout(_),_=setTimeout(()=>{s(3,C=!1)},2e3)}).catch(c=>{console.error("Could not copy text: ",c)})},T=n=>A(n);function m(n){t.binding_callbacks[n?"unshift":"push"](()=>{g=n,s(1,g)})}return i.$$set=n=>{"endpoint"in n&&s(7,r=n.endpoint),"session"in n&&s(8,o=n.session),"lang"in n&&s(9,d=n.lang),"customerid"in n&&s(10,f=n.customerid),"clientstyling"in n&&s(11,v=n.clientstyling),"clientstylingurl"in n&&s(12,w=n.clientstylingurl),"translationurl"in n&&s(13,y=n.translationurl),"tooltipduration"in n&&s(0,h=n.tooltipduration),"txncount"in n&&s(14,b=n.txncount)},i.$$.update=()=>{i.$$.dirty&512&&d&&F(),i.$$.dirty&2050&&v&&g&&J(g,v),i.$$.dirty&4098&&w&&g&&V(g,w),i.$$.dirty&1920&&r&&o&&f&&d&&j(),i.$$.dirty&8192&&y&&I()},[h,g,z,C,S,a,A,r,o,d,f,v,w,y,b,T,m]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,nt,st,t.safe_not_equal,{endpoint:7,session:8,lang:9,customerid:10,clientstyling:11,clientstylingurl:12,translationurl:13,tooltipduration:0,txncount:14},K)}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),t.flush()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),t.flush()}get customerid(){return this.$$.ctx[10]}set customerid(e){this.$$set({customerid:e}),t.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get tooltipduration(){return this.$$.ctx[0]}set tooltipduration(e){this.$$set({tooltipduration:e}),t.flush()}get txncount(){return this.$$.ctx[14]}set txncount(e){this.$$set({txncount:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{}},[],[],!0);exports.default=Y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-DMmJumcl.cjs"),B=require("./CashierModal-BuM2Yq-y.cjs"),L=require("./CashierError-DaAmOVnU.cjs"),X=require("./CashierMethodDetails-D0Y5nPiN.cjs");L.init({fallbackLocale:"en"});function E(i,e){L.addMessages(i,e)}function G(i){L.$locale.set(i)}const U={en:{transactionHistoryTitle:"Transaction History",transactionIdTitle:"ID",transactionDateTitle:"Date",transactionTypeTitle:"Type",transactionStatusTitle:"Status",copyTransactionId:"Transaction Id copied to clipboard",transactionStatus:{Authorized:"Authorized",Success:"Success",Failed:"Failed",Rejected:"Rejected",Pending:"Pending"},transactionType:{Deposit:"Deposit",Withdraw:"Withdraw"}},tr:{transactionHistoryTitle:"İşlem Geçmişi",transactionIdTitle:"İşlem ID'si",transactionDateTitle:"Tarih",transactionTypeTitle:"Tip",transactionStatusTitle:"Durum",copyTransactionId:"İşlem ID’si kopyalandı",transactionStatus:{Authorized:"Onaylandı",Success:"Başarılı",Failed:"Başarısız",Rejected:"Reddedildi",Pending:"Beklemede"},transactionType:{Deposit:"Para Yatır",Withdraw:"Çekim"}}};function J(i,e){if(i){const s=document.createElement("style");s.innerHTML=e,i.appendChild(s)}}function V(i,e){const s=new URL(e);fetch(s.href).then(a=>a.text()).then(a=>{const r=document.createElement("style");r.innerHTML=a,i&&i.appendChild(r)}).catch(a=>{console.error("There was an error while trying to load client styling from URL",a)})}function K(i){t.append_styles(i,"svelte-1kx4sff",".svelte-1kx4sff.svelte-1kx4sff,.svelte-1kx4sff.svelte-1kx4sff::before,.svelte-1kx4sff.svelte-1kx4sff::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff{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-1kx4sff table.svelte-1kx4sff:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1kx4sff thead tr.svelte-1kx4sff{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1kx4sff tbody tr.svelte-1kx4sff{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{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-1kx4sff td:last-child .CashierTransactionHistoryStatusText.svelte-1kx4sff{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1kx4sff tr.svelte-1kx4sff{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1kx4sff .CopyTooltip.svelte-1kx4sff{width:100%}.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionId.svelte-1kx4sff{max-width:135px}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1kx4sff .CashierTransactionHistoryWrapper.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1kx4sff td.svelte-1kx4sff:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1kx4sff table.svelte-1kx4sff{table-layout:fixed}.CashierTransactionHistory.svelte-1kx4sff table td.svelte-1kx4sff{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{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-1kx4sff.svelte-1kx4sff{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1kx4sff.svelte-1kx4sff:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1kx4sff.svelte-1kx4sff{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1kx4sff.svelte-1kx4sff{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1kx4sff.svelte-1kx4sff{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1kx4sff.svelte-1kx4sff{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function O(i,e,s){const a=i.slice();return a[24]=e[s],a[26]=s,a}function W(i){let e,s,a,r=i[5]("transactionHistoryTitle")+"",o,d,f,v,w,y,h,b,z=i[5]("transactionIdTitle")+"",C,g,_,k=i[5]("transactionDateTitle")+"",H,S,I,F=i[5]("transactionTypeTitle")+"",j,R,A,T=i[5]("transactionStatusTitle")+"",m,n,l,c=i[3]&&N(i),P=t.ensure_array_like(i[2]),u=[];for(let p=0;p<P.length;p+=1)u[p]=q(O(i,P,p));return{c(){e=t.element("div"),c&&c.c(),s=t.space(),a=t.element("h3"),o=t.text(r),d=t.space(),f=t.element("div"),v=t.element("div"),w=t.element("table"),y=t.element("thead"),h=t.element("tr"),b=t.element("td"),C=t.text(z),g=t.space(),_=t.element("td"),H=t.text(k),S=t.space(),I=t.element("td"),j=t.text(F),R=t.space(),A=t.element("td"),m=t.text(T),n=t.space(),l=t.element("tbody");for(let p=0;p<u.length;p+=1)u[p].c();t.attr(a,"class","CashierTransactionHistoryTitle svelte-1kx4sff"),t.attr(b,"class","svelte-1kx4sff"),t.attr(_,"class","svelte-1kx4sff"),t.attr(I,"class","svelte-1kx4sff"),t.attr(A,"class","svelte-1kx4sff"),t.attr(h,"class","svelte-1kx4sff"),t.attr(y,"class","svelte-1kx4sff"),t.attr(l,"class","svelte-1kx4sff"),t.attr(w,"class","svelte-1kx4sff"),t.attr(v,"class","CashierTransactionHistoryContent svelte-1kx4sff"),t.attr(f,"class","CashierTransactionHistoryWrapper svelte-1kx4sff"),t.attr(e,"class","CashierTransactionHistory svelte-1kx4sff")},m(p,D){t.insert(p,e,D),c&&c.m(e,null),t.append(e,s),t.append(e,a),t.append(a,o),t.append(e,d),t.append(e,f),t.append(f,v),t.append(v,w),t.append(w,y),t.append(y,h),t.append(h,b),t.append(b,C),t.append(h,g),t.append(h,_),t.append(_,H),t.append(h,S),t.append(h,I),t.append(I,j),t.append(h,R),t.append(h,A),t.append(A,m),t.append(w,n),t.append(w,l);for(let x=0;x<u.length;x+=1)u[x]&&u[x].m(l,null);i[16](e)},p(p,D){if(p[3]?c?(c.p(p,D),D&8&&t.transition_in(c,1)):(c=N(p),c.c(),t.transition_in(c,1),c.m(e,s)):c&&(t.group_outros(),t.transition_out(c,1,1,()=>{c=null}),t.check_outros()),D&32&&r!==(r=p[5]("transactionHistoryTitle")+"")&&t.set_data(o,r),D&32&&z!==(z=p[5]("transactionIdTitle")+"")&&t.set_data(C,z),D&32&&k!==(k=p[5]("transactionDateTitle")+"")&&t.set_data(H,k),D&32&&F!==(F=p[5]("transactionTypeTitle")+"")&&t.set_data(j,F),D&32&&T!==(T=p[5]("transactionStatusTitle")+"")&&t.set_data(m,T),D&124){P=t.ensure_array_like(p[2]);let x;for(x=0;x<P.length;x+=1){const M=O(p,P,x);u[x]?u[x].p(M,D):(u[x]=q(M),u[x].c(),u[x].m(l,null))}for(;x<u.length;x+=1)u[x].d(1);u.length=P.length}},d(p){p&&t.detach(e),c&&c.d(),t.destroy_each(u,p),i[16](null)}}}function N(i){let e,s=i[5]("copyTransactionId")+"",a,r,o,d;return{c(){e=t.element("div"),a=t.text(s),t.attr(e,"class","CopyTooltip svelte-1kx4sff")},m(f,v){t.insert(f,e,v),t.append(e,a),d=!0},p(f,v){i=f,(!d||v&32)&&s!==(s=i[5]("copyTransactionId")+"")&&t.set_data(a,s)},i(f){d||(f&&t.add_render_callback(()=>{d&&(o&&o.end(1),r=t.create_in_transition(e,B.fade,{duration:100}),r.start())}),d=!0)},o(f){r&&r.invalidate(),f&&(o=t.create_out_transition(e,B.fade,{duration:i[0]})),d=!1},d(f){f&&t.detach(e),f&&o&&o.end()}}}function Q(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#25bf00"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M8 12L11 15L16 9"),t.attr(a,"stroke","#25bf00"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function Z(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("R"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#dd6617d4"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#dd6617d4"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(o,d){t.insert(o,e,d),t.append(e,s),t.append(e,a),t.append(a,r)},d(o){o&&t.detach(e)}}}function $(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#f0a85f"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M12 7V12L15 14"),t.attr(a,"stroke","#f0a85f"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function tt(i){let e,s,a;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("path"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#e76049"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"d","M9 9L15 15M15 9L9 15"),t.attr(a,"stroke","#e76049"),t.attr(a,"stroke-width","2"),t.attr(a,"stroke-linecap","round"),t.attr(a,"stroke-linejoin","round"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(r,o){t.insert(r,e,o),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function et(i){let e,s,a,r;return{c(){e=t.svg_element("svg"),s=t.svg_element("circle"),a=t.svg_element("text"),r=t.text("A"),t.attr(s,"cx","12"),t.attr(s,"cy","12"),t.attr(s,"r","10"),t.attr(s,"stroke","#32b398"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1kx4sff"),t.attr(a,"x","50%"),t.attr(a,"y","54%"),t.attr(a,"text-anchor","middle"),t.attr(a,"dominant-baseline","middle"),t.attr(a,"font-size","14"),t.attr(a,"font-weight","bold"),t.attr(a,"fill","#32b398"),t.attr(a,"font-family","Arial Rounded MT Bold, Arial, sans-serif"),t.attr(a,"class","svelte-1kx4sff"),t.attr(e,"width","18"),t.attr(e,"height","18"),t.attr(e,"viewBox","0 0 24 24"),t.attr(e,"fill","none"),t.attr(e,"xmlns","http://www.w3.org/2000/svg"),t.attr(e,"class","svelte-1kx4sff")},m(o,d){t.insert(o,e,d),t.append(e,s),t.append(e,a),t.append(a,r)},d(o){o&&t.detach(e)}}}function q(i){let e,s,a=i[24].Code+"",r,o,d,f=i[24].Date+"",v,w,y,h=i[5](`transactionType.${i[24].Type}`)+"",b,z,C,g,_,k,H,S=i[5](`transactionStatus.${i[24].Status}`)+"",I,F,j,R;function A(n,l){if(n[24].Status===n[4].Authorized)return et;if(n[24].Status===n[4].Failed)return tt;if(n[24].Status===n[4].Pending)return $;if(n[24].Status===n[4].Rejected)return Z;if(n[24].Status===n[4].Success)return Q}let T=A(i),m=T&&T(i);return{c(){e=t.element("tr"),s=t.element("td"),r=t.text(a),o=t.space(),d=t.element("td"),v=t.text(f),w=t.space(),y=t.element("td"),b=t.text(h),z=t.space(),C=t.element("td"),g=t.element("div"),_=t.element("span"),m&&m.c(),k=t.space(),H=t.element("span"),I=t.text(S),F=t.space(),t.attr(s,"class","CashierTransactionId svelte-1kx4sff"),t.toggle_class(s,"copied",i[3]),t.attr(d,"class","svelte-1kx4sff"),t.attr(y,"class","svelte-1kx4sff"),t.attr(_,"class","CashierTransactionHistoryIcon svelte-1kx4sff"),t.attr(H,"class","CashierTransactionHistoryStatusText svelte-1kx4sff"),t.attr(g,"class","CashierTransactionHistoryStatus svelte-1kx4sff"),t.attr(C,"class","svelte-1kx4sff"),t.attr(e,"class","svelte-1kx4sff")},m(n,l){t.insert(n,e,l),t.append(e,s),t.append(s,r),t.append(e,o),t.append(e,d),t.append(d,v),t.append(e,w),t.append(e,y),t.append(y,b),t.append(e,z),t.append(e,C),t.append(C,g),t.append(g,_),m&&m.m(_,null),t.append(g,k),t.append(g,H),t.append(H,I),t.append(e,F),j||(R=t.listen(s,"mousedown",i[15]),j=!0)},p(n,l){l&4&&a!==(a=n[24].Code+"")&&t.set_data(r,a),l&8&&t.toggle_class(s,"copied",n[3]),l&4&&f!==(f=n[24].Date+"")&&t.set_data(v,f),l&36&&h!==(h=n[5](`transactionType.${n[24].Type}`)+"")&&t.set_data(b,h),T!==(T=A(n))&&(m&&m.d(1),m=T&&T(n),m&&(m.c(),m.m(_,null))),l&36&&S!==(S=n[5](`transactionStatus.${n[24].Status}`)+"")&&t.set_data(I,S)},d(n){n&&t.detach(e),m&&m.d(),j=!1,R()}}}function st(i){let e,s=i[2].length&&W(i);return{c(){s&&s.c(),e=t.empty()},m(a,r){s&&s.m(a,r),t.insert(a,e,r)},p(a,[r]){a[2].length?s?s.p(a,r):(s=W(a),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),s&&s.d(a)}}}const at="DD.MM.YYYY";function nt(i,e,s){let a;t.component_subscribe(i,L.$format,n=>s(5,a=n));let{endpoint:r}=e,{session:o}=e,{lang:d="en"}=e,{customerid:f}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:y}=e,{tooltipduration:h=1e3}=e,{txncount:b=3}=e,z=[],C=!1,g,_;var k;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(k||(k={}));const H=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var S;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(S||(S={}));const I=()=>{let n=y;if(n)return fetch(n).then(l=>l.json()).then(l=>{Object.keys(l).forEach(c=>{E(c,l[c])})}).catch(l=>{console.log(l)})};Object.keys(U).forEach(n=>{E(n,U[n])});const F=()=>{G(d)},j=()=>{const n=new URL(`${r}/api/v1/mm/payment/gettransactionshistory`),l=new Headers;l.append("accept","application/json"),l.append("Content-Type","application/json"),l.append("X-SessionId",`${o}`);const c=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),P={method:"POST",mode:"cors",headers:l,body:JSON.stringify({language:d,customerId:f,count:b,page:0,fromDate:c,toDate:null,statuses:{[k.Deposit]:H,[k.Withdraw]:H,[k.Refund]:["Unknown"],[k.TaxDeduction]:["Unknown"],[k.Unknown]:["Unknown"]},calculateProfit:!1})};fetch(n,P).then(u=>u.json()).then(u=>{s(2,z=R((u==null?void 0:u.items)||[]))}).catch(u=>console.log(u))},R=n=>n.map(l=>{let c=l.generalFields.status;return l.generalFields.status.toLowerCase().includes("pending")&&(c=S.Pending),{Code:l.generalFields.code,Date:X.dayjs(l.generalFields.created).format(at),Status:c,Type:l.generalFields.type}})||[],A=n=>{const l=n.currentTarget;n.target===l&&navigator.clipboard.writeText(l.innerText).then(()=>{s(3,C=!0),clearTimeout(_),_=setTimeout(()=>{s(3,C=!1)},2e3)}).catch(c=>{console.error("Could not copy text: ",c)})},T=n=>A(n);function m(n){t.binding_callbacks[n?"unshift":"push"](()=>{g=n,s(1,g)})}return i.$$set=n=>{"endpoint"in n&&s(7,r=n.endpoint),"session"in n&&s(8,o=n.session),"lang"in n&&s(9,d=n.lang),"customerid"in n&&s(10,f=n.customerid),"clientstyling"in n&&s(11,v=n.clientstyling),"clientstylingurl"in n&&s(12,w=n.clientstylingurl),"translationurl"in n&&s(13,y=n.translationurl),"tooltipduration"in n&&s(0,h=n.tooltipduration),"txncount"in n&&s(14,b=n.txncount)},i.$$.update=()=>{i.$$.dirty&512&&d&&F(),i.$$.dirty&2050&&v&&g&&J(g,v),i.$$.dirty&4098&&w&&g&&V(g,w),i.$$.dirty&1920&&r&&o&&f&&d&&j(),i.$$.dirty&8192&&y&&I()},[h,g,z,C,S,a,A,r,o,d,f,v,w,y,b,T,m]}class Y extends t.SvelteComponent{constructor(e){super(),t.init(this,e,nt,st,t.safe_not_equal,{endpoint:7,session:8,lang:9,customerid:10,clientstyling:11,clientstylingurl:12,translationurl:13,tooltipduration:0,txncount:14},K)}get endpoint(){return this.$$.ctx[7]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[8]}set session(e){this.$$set({session:e}),t.flush()}get lang(){return this.$$.ctx[9]}set lang(e){this.$$set({lang:e}),t.flush()}get customerid(){return this.$$.ctx[10]}set customerid(e){this.$$set({customerid:e}),t.flush()}get clientstyling(){return this.$$.ctx[11]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[12]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[13]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get tooltipduration(){return this.$$.ctx[0]}set tooltipduration(e){this.$$set({tooltipduration:e}),t.flush()}get txncount(){return this.$$.ctx[14]}set txncount(e){this.$$set({txncount:e}),t.flush()}}t.create_custom_element(Y,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{}},[],[],!0);exports.default=Y;
|