@everymatrix/cashier-page 1.74.1 → 1.74.2
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-DiJy6WCC.js → CashierConfirmModal-B8OOtTE_.js} +38 -38
- package/components/{CashierConfirmModal-Bl65cs4j.js → CashierConfirmModal-IR_fdiwt.js} +37 -37
- package/components/{CashierError-DT8XXsZb.js → CashierError-DwFDMuO4.js} +538 -506
- package/components/{CashierError-sabBjpnx.js → CashierError-Lwv9a6Jn.js} +538 -506
- package/components/{CashierError-CUi7dlhw.cjs → CashierError-lygql-vp.cjs} +16 -3
- package/components/{CashierHeader-C87PEbuI.cjs → CashierHeader-BBFpE9tm.cjs} +1 -1
- package/components/{CashierHeader-B_TbzRzY.js → CashierHeader-Co4LH4OR.js} +62 -62
- package/components/{CashierHeader-CRNLSN-X.js → CashierHeader-DBbG_kCZ.js} +65 -65
- package/components/{CashierIframeRedirect-zBfOGfH0.js → CashierIframeRedirect-BifoYFS6.js} +43 -43
- package/components/{CashierIframeRedirect-DcI_fdtE.js → CashierIframeRedirect-DLWyFLbS.js} +43 -43
- package/components/{CashierIframeRedirect-q6Z4Yxd2.cjs → CashierIframeRedirect-O2R4PeFx.cjs} +1 -1
- package/components/CashierMethodDetails-BiDcofyV.cjs +86 -0
- package/components/{CashierMethodDetails-SkPBUxsi.js → CashierMethodDetails-Bv4pmeQb.js} +2752 -2747
- package/components/{CashierMethodDetails-CzQGZLT9.js → CashierMethodDetails-DzH-30k0.js} +2692 -2690
- package/components/{CashierMethodsList-BwQxzNhr.js → CashierMethodsList-B81lBh-i.js} +408 -405
- package/components/CashierMethodsList-CqDdABdG.cjs +1 -0
- package/components/{CashierMethodsList-CNZRTEmt.js → CashierMethodsList-SztGlaVA.js} +417 -414
- package/components/{CashierModal-C9DRbWKa.js → CashierModal-BGLiz1Q0.js} +30 -30
- package/components/{CashierModal-l0r5lSbV.js → CashierModal-DPdsjy2Y.js} +27 -27
- package/components/{CashierNotifications-BRaPHw0O.js → CashierNotifications-BVMqQF5E.js} +15 -15
- package/components/{CashierNotifications-C60PYJS0.js → CashierNotifications-zWfvVWp3.js} +15 -15
- package/components/{CashierPage-DcNLQxqw.js → CashierPage-C1gTiNOQ.js} +556 -477
- package/components/{CashierPage-El2u8C5N.js → CashierPage-DOm_w_Mb.js} +556 -477
- package/components/CashierPage-M5GWcvzG.cjs +1 -0
- package/components/{CashierReceiptPage-D-G8rB5N.js → CashierReceiptPage-8oBK9c-w.js} +445 -424
- package/components/{CashierReceiptPage-DfMEJsZx.js → CashierReceiptPage-BG1Sg3_U.js} +471 -446
- package/components/CashierReceiptPage-BKr9Y4z2.cjs +1 -0
- package/components/{CashierSessionExpirationModal-BfPvkDUo.cjs → CashierSessionExpirationModal-25t9wFGB.cjs} +1 -1
- package/components/{CashierSessionExpirationModal-CwWstvB8.js → CashierSessionExpirationModal-DccW5Qt4.js} +58 -49
- package/components/{CashierSessionExpirationModal-BuUgCatI.js → CashierSessionExpirationModal-DctA8xGg.js} +58 -49
- package/components/{CashierSpinner-DGvxbV84.js → CashierSpinner-BJ0-pcso.js} +13 -13
- package/components/{CashierSpinner-CC_b-bLQ.js → CashierSpinner-DX6FQb5G.js} +15 -15
- package/components/{CashierTransactionHistory-D46VIVuo.js → CashierTransactionHistory-DEhh9fZY.js} +58 -58
- package/components/{CashierTransactionHistory-idoNMIZM.cjs → CashierTransactionHistory-DuaiwgJ8.cjs} +1 -1
- package/components/{CashierTransactionHistory-DTgDyhFg.js → CashierTransactionHistory-X005hbwU.js} +75 -75
- package/components/{CashierVerifications-C_StTRQe.cjs → CashierVerifications-BLDRWv6W.cjs} +1 -1
- package/components/{CashierVerifications-3Axu0Hzv.js → CashierVerifications-CHUaPoXN.js} +35 -35
- package/components/{CashierVerifications-xsgXX--M.js → CashierVerifications-DLLCf8wO.js} +36 -36
- package/components/{CashierVideoModal-CLzErDsi.js → CashierVideoModal-4ZsB8TZ-.js} +47 -47
- package/components/{CashierVideoModal-CnhHqo1M.cjs → CashierVideoModal-CBlMdTrM.cjs} +1 -1
- package/components/{CashierVideoModal-DJJAzqj3.js → CashierVideoModal-DOrEnX7J.js} +47 -47
- 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-BD-QREJe.js +558 -0
- package/stencil/index-97d17652-DJqGt8q2.js +542 -0
- package/stencil/index-97d17652-tiiCeQFu.cjs +1 -0
- package/stencil/index-b2193545-BhpttWPO.cjs +1 -0
- package/stencil/index-b2193545-DWKmtYUG.js +503 -0
- package/stencil/index-b2193545-Dfy4Cgny.js +519 -0
- package/stencil/{ui-image-BWJXFWH1.js → ui-image-4dZyD9yF.js} +1 -1
- package/stencil/{ui-image-DIEeZy5u.js → ui-image-6u7OR3Eo.js} +1 -1
- package/stencil/{ui-image-ByEXiBzx.cjs → ui-image-CER01gdl.cjs} +1 -1
- package/stencil/{ui-image-b7b48fe5-ByRuJtdE.js → ui-image-b7b48fe5-2Ir9VtWc.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-D6iig_uN.js → ui-image-b7b48fe5-AJGQkQBu.js} +1 -1
- package/stencil/{ui-image-b7b48fe5-DG83WzAo.cjs → ui-image-b7b48fe5-pdIH5TBa.cjs} +1 -1
- package/stencil/{ui-image_2-DdFjzzNO.cjs → ui-image_2-BGf0VFLf.cjs} +1 -1
- package/stencil/{ui-image_2-qO3reSlr.js → ui-image_2-Dh5Eqdlm.js} +2 -2
- package/stencil/{ui-image_2-Bm97-wkj.js → ui-image_2-_K8Pt3w9.js} +2 -2
- package/stencil/{ui-skeleton-4-zrLsIW.js → ui-skeleton-BTr272EW.js} +2 -2
- package/stencil/{ui-skeleton-9boHSjtG.js → ui-skeleton-P4PO_42z.js} +2 -2
- package/stencil/{ui-skeleton-ae35c6f2-8tYGV8SR.js → ui-skeleton-ae35c6f2-BIdXBK8D.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-IN_dPA5_.js → ui-skeleton-ae35c6f2-C7WHUwAT.js} +1 -1
- package/stencil/{ui-skeleton-ae35c6f2-CKgUXOQC.cjs → ui-skeleton-ae35c6f2-D-MGUxCy.cjs} +1 -1
- package/stencil/{ui-skeleton-_yJvAdAL.cjs → ui-skeleton-gIFE_2eg.cjs} +1 -1
- package/components/CashierMethodDetails-DI5D_QCF.cjs +0 -99
- package/components/CashierMethodsList-BuJMDLdX.cjs +0 -1
- package/components/CashierPage-M26PQ4uv.cjs +0 -1
- package/components/CashierReceiptPage-qJvPvJga.cjs +0 -1
- package/stencil/index-97d17652--F7PvMq9.js +0 -542
- package/stencil/index-97d17652-BhLhk_xz.cjs +0 -1
- package/stencil/index-97d17652-CCFHkzJw.js +0 -558
- package/stencil/index-b2193545-B8kMF2bI.cjs +0 -1
- package/stencil/index-b2193545-BoSqyMpB.js +0 -519
- package/stencil/index-b2193545-D4dOaNlR.js +0 -503
package/components/{CashierTransactionHistory-D46VIVuo.js → CashierTransactionHistory-DEhh9fZY.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { S as it, b as nt,
|
|
2
|
-
import { f as
|
|
3
|
-
import {
|
|
4
|
-
import { d as St } from "./CashierMethodDetails-
|
|
5
|
-
|
|
1
|
+
import { S as it, b as nt, f as M, c as at, a as lt, d as rt, g as v, j as e, k as O, n as J, v as U, w as ot, x as ct, y as ut, z as dt, F as ht, G as ft, I as q, N as X, h as L, B as j, l as r, t as V, E as mt, p as vt, q as gt, C as E, P as pt, J as yt, Y as wt, Z as Tt, L as Z, D as _t, R as k } from "./CashierConfirmModal-B8OOtTE_.js";
|
|
2
|
+
import { f as K } from "./CashierModal-DPdsjy2Y.js";
|
|
3
|
+
import { i as bt, a as xt, $ as kt, b as Ct } from "./CashierError-DwFDMuO4.js";
|
|
4
|
+
import { d as St } from "./CashierMethodDetails-DzH-30k0.js";
|
|
5
|
+
bt({
|
|
6
6
|
fallbackLocale: "en"
|
|
7
7
|
});
|
|
8
|
-
function
|
|
9
|
-
|
|
8
|
+
function Q(a, t) {
|
|
9
|
+
xt(a, t);
|
|
10
10
|
}
|
|
11
11
|
function Ht(a) {
|
|
12
|
-
|
|
12
|
+
kt.set(a);
|
|
13
13
|
}
|
|
14
14
|
const $ = {
|
|
15
15
|
en: {
|
|
@@ -52,7 +52,7 @@ const $ = {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
function Dt(a) {
|
|
55
|
-
|
|
55
|
+
rt(a, "svelte-1cus01h", ".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{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}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{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-1cus01h table.svelte-1cus01h{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-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{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-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{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-1cus01h.svelte-1cus01h{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-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}");
|
|
56
56
|
}
|
|
57
57
|
function tt(a, t, s) {
|
|
58
58
|
const i = a.slice();
|
|
@@ -75,7 +75,7 @@ function zt(a) {
|
|
|
75
75
|
), q(t, "class", "svelte-1cus01h");
|
|
76
76
|
},
|
|
77
77
|
m(s, i) {
|
|
78
|
-
|
|
78
|
+
O(s, t, i);
|
|
79
79
|
},
|
|
80
80
|
p(s, i) {
|
|
81
81
|
i & /*clientstylingurl*/
|
|
@@ -93,7 +93,7 @@ function zt(a) {
|
|
|
93
93
|
);
|
|
94
94
|
},
|
|
95
95
|
d(s) {
|
|
96
|
-
s &&
|
|
96
|
+
s && U(t);
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
}
|
|
@@ -130,7 +130,7 @@ function It(a) {
|
|
|
130
130
|
e(i, "class", "CashierTransactionHistoryTitle svelte-1cus01h"), e(z, "class", "svelte-1cus01h"), e(g, "class", "svelte-1cus01h"), e(R, "class", "svelte-1cus01h"), e(N, "class", "svelte-1cus01h"), e(y, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(b, "class", "svelte-1cus01h"), e(C, "class", "svelte-1cus01h"), e(w, "class", "CashierTransactionHistoryContent svelte-1cus01h"), e(f, "class", "CashierTransactionHistoryWrapper svelte-1cus01h"), e(t, "class", "CashierTransactionHistory svelte-1cus01h");
|
|
131
131
|
},
|
|
132
132
|
m(h, T) {
|
|
133
|
-
|
|
133
|
+
O(h, t, T), n && n.m(t, null), r(t, s), r(t, i), r(i, o), r(t, c), r(t, f), r(f, w), r(w, C), r(C, S), r(S, y), r(y, z), r(z, P), r(y, H), r(y, g), r(g, A), r(y, x), r(y, R), r(R, W), r(y, Y), r(y, N), r(N, p), r(C, u), r(C, b);
|
|
134
134
|
for (let _ = 0; _ < m.length; _ += 1)
|
|
135
135
|
m[_] && m[_].m(b, null);
|
|
136
136
|
a[18](t);
|
|
@@ -138,19 +138,19 @@ function It(a) {
|
|
|
138
138
|
p(h, T) {
|
|
139
139
|
if (/*copied*/
|
|
140
140
|
h[5] ? n ? (n.p(h, T), T & /*copied*/
|
|
141
|
-
32 &&
|
|
141
|
+
32 && V(n, 1)) : (n = et(h), n.c(), V(n, 1), n.m(t, s)) : n && (mt(), vt(n, 1, 1, () => {
|
|
142
142
|
n = null;
|
|
143
|
-
}),
|
|
143
|
+
}), gt()), T & /*$_*/
|
|
144
144
|
256 && l !== (l = /*$_*/
|
|
145
|
-
h[8]("transactionHistoryTitle") + "") &&
|
|
145
|
+
h[8]("transactionHistoryTitle") + "") && E(o, l), T & /*$_*/
|
|
146
146
|
256 && I !== (I = /*$_*/
|
|
147
|
-
h[8]("transactionIdTitle") + "") &&
|
|
147
|
+
h[8]("transactionIdTitle") + "") && E(P, I), T & /*$_*/
|
|
148
148
|
256 && B !== (B = /*$_*/
|
|
149
|
-
h[8]("transactionDateTitle") + "") &&
|
|
149
|
+
h[8]("transactionDateTitle") + "") && E(A, B), T & /*$_*/
|
|
150
150
|
256 && F !== (F = /*$_*/
|
|
151
|
-
h[8]("transactionTypeTitle") + "") &&
|
|
151
|
+
h[8]("transactionTypeTitle") + "") && E(W, F), T & /*$_*/
|
|
152
152
|
256 && D !== (D = /*$_*/
|
|
153
|
-
h[8]("transactionStatusTitle") + "") &&
|
|
153
|
+
h[8]("transactionStatusTitle") + "") && E(p, D), T & /*$_, txnHistory, TransactionMainStatus, copied, copyToClipboard*/
|
|
154
154
|
944) {
|
|
155
155
|
d = X(
|
|
156
156
|
/*txnHistory*/
|
|
@@ -167,7 +167,7 @@ function It(a) {
|
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
d(h) {
|
|
170
|
-
h &&
|
|
170
|
+
h && U(t), n && n.d(), pt(m, h), a[18](null);
|
|
171
171
|
}
|
|
172
172
|
};
|
|
173
173
|
}
|
|
@@ -181,26 +181,26 @@ function et(a) {
|
|
|
181
181
|
t = v("div"), i = j(s), e(t, "class", "CopyTooltip svelte-1cus01h");
|
|
182
182
|
},
|
|
183
183
|
m(f, w) {
|
|
184
|
-
|
|
184
|
+
O(f, t, w), r(t, i), c = !0;
|
|
185
185
|
},
|
|
186
186
|
p(f, w) {
|
|
187
187
|
a = f, (!c || w & /*$_*/
|
|
188
188
|
256) && s !== (s = /*$_*/
|
|
189
|
-
a[8]("copyTransactionId") + "") &&
|
|
189
|
+
a[8]("copyTransactionId") + "") && E(i, s);
|
|
190
190
|
},
|
|
191
191
|
i(f) {
|
|
192
|
-
c || (f &&
|
|
193
|
-
c && (o && o.end(1), l =
|
|
192
|
+
c || (f && yt(() => {
|
|
193
|
+
c && (o && o.end(1), l = wt(t, K, { duration: 100 }), l.start());
|
|
194
194
|
}), c = !0);
|
|
195
195
|
},
|
|
196
196
|
o(f) {
|
|
197
|
-
l && l.invalidate(), f && (o =
|
|
197
|
+
l && l.invalidate(), f && (o = Tt(t, K, { duration: (
|
|
198
198
|
/*tooltipduration*/
|
|
199
199
|
a[2]
|
|
200
200
|
) })), c = !1;
|
|
201
201
|
},
|
|
202
202
|
d(f) {
|
|
203
|
-
f &&
|
|
203
|
+
f && U(t), f && o && o.end();
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
206
|
}
|
|
@@ -211,10 +211,10 @@ function At(a) {
|
|
|
211
211
|
t = k("svg"), s = k("circle"), i = k("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
|
|
212
212
|
},
|
|
213
213
|
m(l, o) {
|
|
214
|
-
|
|
214
|
+
O(l, t, o), r(t, s), r(t, i);
|
|
215
215
|
},
|
|
216
216
|
d(l) {
|
|
217
|
-
l &&
|
|
217
|
+
l && U(t);
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
}
|
|
@@ -225,10 +225,10 @@ function Ft(a) {
|
|
|
225
225
|
t = k("svg"), s = k("circle"), i = k("text"), l = j("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
|
|
226
226
|
},
|
|
227
227
|
m(o, c) {
|
|
228
|
-
|
|
228
|
+
O(o, t, c), r(t, s), r(t, i), r(i, l);
|
|
229
229
|
},
|
|
230
230
|
d(o) {
|
|
231
|
-
o &&
|
|
231
|
+
o && U(t);
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
}
|
|
@@ -239,10 +239,10 @@ function jt(a) {
|
|
|
239
239
|
t = k("svg"), s = k("circle"), i = k("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
|
|
240
240
|
},
|
|
241
241
|
m(l, o) {
|
|
242
|
-
|
|
242
|
+
O(l, t, o), r(t, s), r(t, i);
|
|
243
243
|
},
|
|
244
244
|
d(l) {
|
|
245
|
-
l &&
|
|
245
|
+
l && U(t);
|
|
246
246
|
}
|
|
247
247
|
};
|
|
248
248
|
}
|
|
@@ -253,10 +253,10 @@ function Pt(a) {
|
|
|
253
253
|
t = k("svg"), s = k("circle"), i = k("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
|
|
254
254
|
},
|
|
255
255
|
m(l, o) {
|
|
256
|
-
|
|
256
|
+
O(l, t, o), r(t, s), r(t, i);
|
|
257
257
|
},
|
|
258
258
|
d(l) {
|
|
259
|
-
l &&
|
|
259
|
+
l && U(t);
|
|
260
260
|
}
|
|
261
261
|
};
|
|
262
262
|
}
|
|
@@ -267,10 +267,10 @@ function Rt(a) {
|
|
|
267
267
|
t = k("svg"), s = k("circle"), i = k("text"), l = j("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-1cus01h"), 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-1cus01h"), 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-1cus01h");
|
|
268
268
|
},
|
|
269
269
|
m(o, c) {
|
|
270
|
-
|
|
270
|
+
O(o, t, c), r(t, s), r(t, i), r(i, l);
|
|
271
271
|
},
|
|
272
272
|
d(o) {
|
|
273
|
-
o &&
|
|
273
|
+
o && U(t);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
276
|
}
|
|
@@ -325,7 +325,7 @@ function st(a) {
|
|
|
325
325
|
let D = N(a), p = D && D(a);
|
|
326
326
|
return {
|
|
327
327
|
c() {
|
|
328
|
-
t = v("tr"), s = v("td"), l = j(i), o = L(), c = v("td"), w = j(f), C = L(), S = v("td"), z = j(y), I = L(), P = v("td"), H = v("div"), g = v("span"), p && p.c(), B = L(), A = v("span"), R = j(x), F = L(), e(s, "class", "CashierTransactionId svelte-1cus01h"),
|
|
328
|
+
t = v("tr"), s = v("td"), l = j(i), o = L(), c = v("td"), w = j(f), C = L(), S = v("td"), z = j(y), I = L(), P = v("td"), H = v("div"), g = v("span"), p && p.c(), B = L(), A = v("span"), R = j(x), F = L(), e(s, "class", "CashierTransactionId svelte-1cus01h"), Z(
|
|
329
329
|
s,
|
|
330
330
|
"copied",
|
|
331
331
|
/*copied*/
|
|
@@ -333,7 +333,7 @@ function st(a) {
|
|
|
333
333
|
), e(c, "class", "svelte-1cus01h"), e(S, "class", "svelte-1cus01h"), e(g, "class", "CashierTransactionHistoryIcon svelte-1cus01h"), e(A, "class", "CashierTransactionHistoryStatusText svelte-1cus01h"), e(H, "class", "CashierTransactionHistoryStatus svelte-1cus01h"), e(P, "class", "svelte-1cus01h"), e(t, "class", "svelte-1cus01h");
|
|
334
334
|
},
|
|
335
335
|
m(u, b) {
|
|
336
|
-
|
|
336
|
+
O(u, t, b), r(t, s), r(s, l), r(t, o), r(t, c), r(c, w), r(t, C), r(t, S), r(S, z), r(t, I), r(t, P), r(P, H), r(H, g), p && p.m(g, null), r(H, B), r(H, A), r(A, R), r(t, F), W || (Y = _t(
|
|
337
337
|
s,
|
|
338
338
|
"mousedown",
|
|
339
339
|
/*mousedown_handler*/
|
|
@@ -343,24 +343,24 @@ function st(a) {
|
|
|
343
343
|
p(u, b) {
|
|
344
344
|
b & /*txnHistory*/
|
|
345
345
|
16 && i !== (i = /*transaction*/
|
|
346
|
-
u[27].Code + "") &&
|
|
347
|
-
32 &&
|
|
346
|
+
u[27].Code + "") && E(l, i), b & /*copied*/
|
|
347
|
+
32 && Z(
|
|
348
348
|
s,
|
|
349
349
|
"copied",
|
|
350
350
|
/*copied*/
|
|
351
351
|
u[5]
|
|
352
352
|
), b & /*txnHistory*/
|
|
353
353
|
16 && f !== (f = /*transaction*/
|
|
354
|
-
u[27].Date + "") &&
|
|
354
|
+
u[27].Date + "") && E(w, f), b & /*$_, txnHistory*/
|
|
355
355
|
272 && y !== (y = /*$_*/
|
|
356
356
|
u[8](`transactionType.${/*transaction*/
|
|
357
|
-
u[27].Type}`) + "") &&
|
|
357
|
+
u[27].Type}`) + "") && E(z, y), D !== (D = N(u)) && (p && p.d(1), p = D && D(u), p && (p.c(), p.m(g, null))), b & /*$_, txnHistory*/
|
|
358
358
|
272 && x !== (x = /*$_*/
|
|
359
359
|
u[8](`transactionStatus.${/*transaction*/
|
|
360
|
-
u[27].Status}`) + "") &&
|
|
360
|
+
u[27].Status}`) + "") && E(R, x);
|
|
361
361
|
},
|
|
362
362
|
d(u) {
|
|
363
|
-
u &&
|
|
363
|
+
u && U(t), p && p.d(), W = !1, Y();
|
|
364
364
|
}
|
|
365
365
|
};
|
|
366
366
|
}
|
|
@@ -384,7 +384,7 @@ function Lt(a) {
|
|
|
384
384
|
t = v("div"), l && l.c(), e(t, "class", "CashierTransactionHistoryContainer svelte-1cus01h");
|
|
385
385
|
},
|
|
386
386
|
m(o, c) {
|
|
387
|
-
|
|
387
|
+
O(o, t, c), l && l.m(t, null);
|
|
388
388
|
},
|
|
389
389
|
p(o, [c]) {
|
|
390
390
|
i === (i = s(o)) && l ? l.p(o, c) : (l && l.d(1), l = i && i(o), l && (l.c(), l.m(t, null)));
|
|
@@ -392,14 +392,14 @@ function Lt(a) {
|
|
|
392
392
|
i: J,
|
|
393
393
|
o: J,
|
|
394
394
|
d(o) {
|
|
395
|
-
o &&
|
|
395
|
+
o && U(t), l && l.d();
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
399
|
const Bt = "DD.MM.YYYY";
|
|
400
400
|
function Mt(a, t, s) {
|
|
401
401
|
let i;
|
|
402
|
-
|
|
402
|
+
ot(a, Ct, (n) => s(8, i = n));
|
|
403
403
|
let { endpoint: l } = t, { session: o } = t, { lang: c = "en" } = t, { customerid: f } = t, { clientstyling: w = "" } = t, { clientstylingurl: C = "" } = t, { translationurl: S } = t, { tooltipduration: y = 1e3 } = t, { txncount: z = 3 } = t, { mbsource: I = "" } = t, P = [], H = !1, g, B, A = !1;
|
|
404
404
|
var x;
|
|
405
405
|
(function(n) {
|
|
@@ -420,21 +420,21 @@ function Mt(a, t, s) {
|
|
|
420
420
|
var F;
|
|
421
421
|
(function(n) {
|
|
422
422
|
n.Authorized = "Authorized", n.Success = "Success", n.Failed = "Failed", n.Rejected = "Rejected", n.Pending = "Pending";
|
|
423
|
-
})(F || (F = {})),
|
|
423
|
+
})(F || (F = {})), ct(() => () => {
|
|
424
424
|
});
|
|
425
425
|
const W = () => {
|
|
426
426
|
let n = S;
|
|
427
427
|
if (n)
|
|
428
428
|
return fetch(n).then((d) => d.json()).then((d) => {
|
|
429
429
|
Object.keys(d).forEach((m) => {
|
|
430
|
-
|
|
430
|
+
Q(m, d[m]);
|
|
431
431
|
});
|
|
432
432
|
}).catch((d) => {
|
|
433
433
|
console.log(d);
|
|
434
434
|
});
|
|
435
435
|
};
|
|
436
436
|
Object.keys($).forEach((n) => {
|
|
437
|
-
|
|
437
|
+
Q(n, $[n]);
|
|
438
438
|
});
|
|
439
439
|
const Y = () => {
|
|
440
440
|
Ht(c);
|
|
@@ -487,7 +487,7 @@ function Mt(a, t, s) {
|
|
|
487
487
|
});
|
|
488
488
|
}, u = (n) => p(n);
|
|
489
489
|
function b(n) {
|
|
490
|
-
|
|
490
|
+
ht[n ? "unshift" : "push"](() => {
|
|
491
491
|
g = n, s(3, g);
|
|
492
492
|
});
|
|
493
493
|
}
|
|
@@ -496,11 +496,11 @@ function Mt(a, t, s) {
|
|
|
496
496
|
}, a.$$.update = () => {
|
|
497
497
|
a.$$.dirty & /*lang*/
|
|
498
498
|
4096 && c && Y(), a.$$.dirty & /*clientstyling, customStylingContainer*/
|
|
499
|
-
9 && w && g &&
|
|
500
|
-
10 && C && g &&
|
|
499
|
+
9 && w && g && ft(g, w), a.$$.dirty & /*clientstylingurl, customStylingContainer*/
|
|
500
|
+
10 && C && g && ut(g, C), a.$$.dirty & /*endpoint, session, customerid, lang*/
|
|
501
501
|
15360 && l && o && f && c && N(), a.$$.dirty & /*translationurl*/
|
|
502
502
|
16384 && S && W(), a.$$.dirty & /*mbsource, customStylingContainer*/
|
|
503
|
-
65544 && I && g &&
|
|
503
|
+
65544 && I && g && dt(g, `${I}.Style`);
|
|
504
504
|
}, [
|
|
505
505
|
w,
|
|
506
506
|
C,
|
|
@@ -523,14 +523,14 @@ function Mt(a, t, s) {
|
|
|
523
523
|
b
|
|
524
524
|
];
|
|
525
525
|
}
|
|
526
|
-
class
|
|
526
|
+
class Et extends it {
|
|
527
527
|
constructor(t) {
|
|
528
528
|
super(), nt(
|
|
529
529
|
this,
|
|
530
530
|
t,
|
|
531
531
|
Mt,
|
|
532
532
|
Lt,
|
|
533
|
-
|
|
533
|
+
lt,
|
|
534
534
|
{
|
|
535
535
|
endpoint: 10,
|
|
536
536
|
session: 11,
|
|
@@ -607,7 +607,7 @@ class Ot extends it {
|
|
|
607
607
|
this.$$set({ mbsource: t }), M();
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
|
|
610
|
+
at(Et, { endpoint: {}, session: {}, lang: {}, customerid: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, tooltipduration: {}, txncount: {}, mbsource: {} }, [], [], !0);
|
|
611
611
|
export {
|
|
612
|
-
|
|
612
|
+
Et as default
|
|
613
613
|
};
|
package/components/{CashierTransactionHistory-idoNMIZM.cjs → CashierTransactionHistory-DuaiwgJ8.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-Dbth1Vwp.cjs"),B=require("./CashierModal-BUzTqeZq.cjs"),L=require("./CashierError-CUi7dlhw.cjs"),Y=require("./CashierMethodDetails-DI5D_QCF.cjs");L.init({fallbackLocale:"en"});function O(i,e){L.addMessages(i,e)}function X(i){L.$locale.set(i)}const E={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 G(i){t.append_styles(i,"svelte-1cus01h",".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{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}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{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-1cus01h table.svelte-1cus01h{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-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{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-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{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-1cus01h.svelte-1cus01h{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-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function U(i,e,s){const a=i.slice();return a[27]=e[s],a}function J(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[1]),t.set_custom_element_data(e,"clientstyling",i[0]),t.set_custom_element_data(e,"class","svelte-1cus01h")},m(s,a){t.insert(s,e,a)},p(s,a){a&2&&t.set_custom_element_data(e,"clientstylingurl",s[1]),a&1&&t.set_custom_element_data(e,"clientstyling",s[0])},d(s){s&&t.detach(e)}}}function V(i){let e,s,a,r=i[8]("transactionHistoryTitle")+"",l,o,h,y,b,x,g,S,H=i[8]("transactionIdTitle")+"",I,k,m,j=i[8]("transactionDateTitle")+"",D,T,A,z=i[8]("transactionTypeTitle")+"",F,R,P,C=i[8]("transactionStatusTitle")+"",f,c,w,n=i[5]&&W(i),d=t.ensure_array_like(i[4]),p=[];for(let u=0;u<d.length;u+=1)p[u]=q(U(i,d,u));return{c(){e=t.element("div"),n&&n.c(),s=t.space(),a=t.element("h3"),l=t.text(r),o=t.space(),h=t.element("div"),y=t.element("div"),b=t.element("table"),x=t.element("thead"),g=t.element("tr"),S=t.element("td"),I=t.text(H),k=t.space(),m=t.element("td"),D=t.text(j),T=t.space(),A=t.element("td"),F=t.text(z),R=t.space(),P=t.element("td"),f=t.text(C),c=t.space(),w=t.element("tbody");for(let u=0;u<p.length;u+=1)p[u].c();t.attr(a,"class","CashierTransactionHistoryTitle svelte-1cus01h"),t.attr(S,"class","svelte-1cus01h"),t.attr(m,"class","svelte-1cus01h"),t.attr(A,"class","svelte-1cus01h"),t.attr(P,"class","svelte-1cus01h"),t.attr(g,"class","svelte-1cus01h"),t.attr(x,"class","svelte-1cus01h"),t.attr(w,"class","svelte-1cus01h"),t.attr(b,"class","svelte-1cus01h"),t.attr(y,"class","CashierTransactionHistoryContent svelte-1cus01h"),t.attr(h,"class","CashierTransactionHistoryWrapper svelte-1cus01h"),t.attr(e,"class","CashierTransactionHistory svelte-1cus01h")},m(u,v){t.insert(u,e,v),n&&n.m(e,null),t.append(e,s),t.append(e,a),t.append(a,l),t.append(e,o),t.append(e,h),t.append(h,y),t.append(y,b),t.append(b,x),t.append(x,g),t.append(g,S),t.append(S,I),t.append(g,k),t.append(g,m),t.append(m,D),t.append(g,T),t.append(g,A),t.append(A,F),t.append(g,R),t.append(g,P),t.append(P,f),t.append(b,c),t.append(b,w);for(let _=0;_<p.length;_+=1)p[_]&&p[_].m(w,null);i[18](e)},p(u,v){if(u[5]?n?(n.p(u,v),v&32&&t.transition_in(n,1)):(n=W(u),n.c(),t.transition_in(n,1),n.m(e,s)):n&&(t.group_outros(),t.transition_out(n,1,1,()=>{n=null}),t.check_outros()),v&256&&r!==(r=u[8]("transactionHistoryTitle")+"")&&t.set_data(l,r),v&256&&H!==(H=u[8]("transactionIdTitle")+"")&&t.set_data(I,H),v&256&&j!==(j=u[8]("transactionDateTitle")+"")&&t.set_data(D,j),v&256&&z!==(z=u[8]("transactionTypeTitle")+"")&&t.set_data(F,z),v&256&&C!==(C=u[8]("transactionStatusTitle")+"")&&t.set_data(f,C),v&944){d=t.ensure_array_like(u[4]);let _;for(_=0;_<d.length;_+=1){const M=U(u,d,_);p[_]?p[_].p(M,v):(p[_]=q(M),p[_].c(),p[_].m(w,null))}for(;_<p.length;_+=1)p[_].d(1);p.length=d.length}},d(u){u&&t.detach(e),n&&n.d(),t.destroy_each(p,u),i[18](null)}}}function W(i){let e,s=i[8]("copyTransactionId")+"",a,r,l,o;return{c(){e=t.element("div"),a=t.text(s),t.attr(e,"class","CopyTooltip svelte-1cus01h")},m(h,y){t.insert(h,e,y),t.append(e,a),o=!0},p(h,y){i=h,(!o||y&256)&&s!==(s=i[8]("copyTransactionId")+"")&&t.set_data(a,s)},i(h){o||(h&&t.add_render_callback(()=>{o&&(l&&l.end(1),r=t.create_in_transition(e,B.fade,{duration:100}),r.start())}),o=!0)},o(h){r&&r.invalidate(),h&&(l=t.create_out_transition(e,B.fade,{duration:i[2]})),o=!1},d(h){h&&t.detach(e),h&&l&&l.end()}}}function K(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-1cus01h"),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-1cus01h"),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-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function Q(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-1cus01h"),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-1cus01h"),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-1cus01h")},m(l,o){t.insert(l,e,o),t.append(e,s),t.append(e,a),t.append(a,r)},d(l){l&&t.detach(e)}}}function Z(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-1cus01h"),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-1cus01h"),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-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&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","#e76049"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),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-1cus01h"),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-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function tt(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-1cus01h"),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-1cus01h"),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-1cus01h")},m(l,o){t.insert(l,e,o),t.append(e,s),t.append(e,a),t.append(a,r)},d(l){l&&t.detach(e)}}}function q(i){let e,s,a=i[27].Code+"",r,l,o,h=i[27].Date+"",y,b,x,g=i[8](`transactionType.${i[27].Type}`)+"",S,H,I,k,m,j,D,T=i[8](`transactionStatus.${i[27].Status}`)+"",A,z,F,R;function P(c,w){if(c[27].Status===c[7].Authorized)return tt;if(c[27].Status===c[7].Failed)return $;if(c[27].Status===c[7].Pending)return Z;if(c[27].Status===c[7].Rejected)return Q;if(c[27].Status===c[7].Success)return K}let C=P(i),f=C&&C(i);return{c(){e=t.element("tr"),s=t.element("td"),r=t.text(a),l=t.space(),o=t.element("td"),y=t.text(h),b=t.space(),x=t.element("td"),S=t.text(g),H=t.space(),I=t.element("td"),k=t.element("div"),m=t.element("span"),f&&f.c(),j=t.space(),D=t.element("span"),A=t.text(T),z=t.space(),t.attr(s,"class","CashierTransactionId svelte-1cus01h"),t.toggle_class(s,"copied",i[5]),t.attr(o,"class","svelte-1cus01h"),t.attr(x,"class","svelte-1cus01h"),t.attr(m,"class","CashierTransactionHistoryIcon svelte-1cus01h"),t.attr(D,"class","CashierTransactionHistoryStatusText svelte-1cus01h"),t.attr(k,"class","CashierTransactionHistoryStatus svelte-1cus01h"),t.attr(I,"class","svelte-1cus01h"),t.attr(e,"class","svelte-1cus01h")},m(c,w){t.insert(c,e,w),t.append(e,s),t.append(s,r),t.append(e,l),t.append(e,o),t.append(o,y),t.append(e,b),t.append(e,x),t.append(x,S),t.append(e,H),t.append(e,I),t.append(I,k),t.append(k,m),f&&f.m(m,null),t.append(k,j),t.append(k,D),t.append(D,A),t.append(e,z),F||(R=t.listen(s,"mousedown",i[17]),F=!0)},p(c,w){w&16&&a!==(a=c[27].Code+"")&&t.set_data(r,a),w&32&&t.toggle_class(s,"copied",c[5]),w&16&&h!==(h=c[27].Date+"")&&t.set_data(y,h),w&272&&g!==(g=c[8](`transactionType.${c[27].Type}`)+"")&&t.set_data(S,g),C!==(C=P(c))&&(f&&f.d(1),f=C&&C(c),f&&(f.c(),f.m(m,null))),w&272&&T!==(T=c[8](`transactionStatus.${c[27].Status}`)+"")&&t.set_data(A,T)},d(c){c&&t.detach(e),f&&f.d(),F=!1,R()}}}function et(i){let e;function s(l,o){if(l[4].length)return V;if(l[6])return J}let a=s(i),r=a&&a(i);return{c(){e=t.element("div"),r&&r.c(),t.attr(e,"class","CashierTransactionHistoryContainer svelte-1cus01h")},m(l,o){t.insert(l,e,o),r&&r.m(e,null)},p(l,[o]){a===(a=s(l))&&r?r.p(l,o):(r&&r.d(1),r=a&&a(l),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(l){l&&t.detach(e),r&&r.d()}}}const st="DD.MM.YYYY";function at(i,e,s){let a;t.component_subscribe(i,L.$format,n=>s(8,a=n));let{endpoint:r}=e,{session:l}=e,{lang:o="en"}=e,{customerid:h}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{translationurl:x}=e,{tooltipduration:g=1e3}=e,{txncount:S=3}=e,{mbsource:H=""}=e,I=[],k=!1,m,j,D=!1;var T;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(T||(T={}));const A=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var z;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(z||(z={})),t.onMount(()=>()=>{});const F=()=>{let n=x;if(n)return fetch(n).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{O(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(E).forEach(n=>{O(n,E[n])});const R=()=>{X(o)},P=()=>{const n=new URL(`${r}/api/v1/mm/payment/gettransactionshistory`),d=new Headers;d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-SessionId",`${l}`);const p=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),u={method:"POST",mode:"cors",headers:d,body:JSON.stringify({language:o,customerId:h,count:S,page:0,fromDate:p,toDate:null,statuses:{[T.Deposit]:A,[T.Withdraw]:A,[T.Refund]:["Unknown"],[T.TaxDeduction]:["Unknown"],[T.Unknown]:["Unknown"]},calculateProfit:!1})};s(6,D=!0),fetch(n,u).then(v=>v.json()).then(v=>{s(4,I=C((v==null?void 0:v.items)||[]))}).catch(v=>console.log(v)).finally(()=>s(6,D=!1))},C=n=>n.map(d=>{let p=d.generalFields.status;return d.generalFields.status.toLowerCase().includes("pending")&&(p=z.Pending),{Code:d.generalFields.code,Date:Y.dayjs(d.generalFields.created).format(st),Status:p,Type:d.generalFields.type}})||[],f=n=>{const d=n.currentTarget;n.target===d&&navigator.clipboard.writeText(d.innerText).then(()=>{s(5,k=!0),clearTimeout(j),j=setTimeout(()=>{s(5,k=!1)},2e3)}).catch(p=>{console.error("Could not copy text: ",p)})},c=n=>f(n);function w(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(3,m)})}return i.$$set=n=>{"endpoint"in n&&s(10,r=n.endpoint),"session"in n&&s(11,l=n.session),"lang"in n&&s(12,o=n.lang),"customerid"in n&&s(13,h=n.customerid),"clientstyling"in n&&s(0,y=n.clientstyling),"clientstylingurl"in n&&s(1,b=n.clientstylingurl),"translationurl"in n&&s(14,x=n.translationurl),"tooltipduration"in n&&s(2,g=n.tooltipduration),"txncount"in n&&s(15,S=n.txncount),"mbsource"in n&&s(16,H=n.mbsource)},i.$$.update=()=>{i.$$.dirty&4096&&o&&R(),i.$$.dirty&9&&y&&m&&t.setClientStyling(m,y),i.$$.dirty&10&&b&&m&&t.setClientStylingURL(m,b),i.$$.dirty&15360&&r&&l&&h&&o&&P(),i.$$.dirty&16384&&x&&F(),i.$$.dirty&65544&&H&&m&&t.setStreamStyling(m,`${H}.Style`)},[y,b,g,m,I,k,D,z,a,f,r,l,o,h,x,S,H,c,w]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,at,et,t.safe_not_equal,{endpoint:10,session:11,lang:12,customerid:13,clientstyling:0,clientstylingurl:1,translationurl:14,tooltipduration:2,txncount:15,mbsource:16},G)}get endpoint(){return this.$$.ctx[10]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[11]}set session(e){this.$$set({session:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get customerid(){return this.$$.ctx[13]}set customerid(e){this.$$set({customerid:e}),t.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(e){this.$$set({tooltipduration:e}),t.flush()}get txncount(){return this.$$.ctx[15]}set txncount(e){this.$$set({txncount:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(N,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{}},[],[],!0);exports.default=N;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CashierConfirmModal-Dbth1Vwp.cjs"),B=require("./CashierModal-BUzTqeZq.cjs"),L=require("./CashierError-lygql-vp.cjs"),Y=require("./CashierMethodDetails-BiDcofyV.cjs");L.init({fallbackLocale:"en"});function O(i,e){L.addMessages(i,e)}function X(i){L.$locale.set(i)}const E={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 G(i){t.append_styles(i,"svelte-1cus01h",".svelte-1cus01h.svelte-1cus01h,.svelte-1cus01h.svelte-1cus01h::before,.svelte-1cus01h.svelte-1cus01h::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-style:inherit}.CopyTooltip.svelte-1cus01h.svelte-1cus01h{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}.CashierTransactionHistoryContainer.svelte-1cus01h.svelte-1cus01h{position:relative}.CashierTransactionHistory.svelte-1cus01h.svelte-1cus01h{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-1cus01h table.svelte-1cus01h{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-1cus01h table.svelte-1cus01h:not(:last-child){margin-bottom:var(--emw--spacing-large, 20px)}.CashierTransactionHistory.svelte-1cus01h thead tr.svelte-1cus01h{border-bottom:1px solid var(--mmw--color-grey-105, #E8E9EB);color:var(--mmw--color-grey-10, #111);height:50px}.CashierTransactionHistory.svelte-1cus01h tbody tr.svelte-1cus01h{color:var(--mmw--color-grey-290, #666)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{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-1cus01h td:last-child .CashierTransactionHistoryStatusText.svelte-1cus01h{width:calc(100% - var(--emw--spacing-2x-small-plus, 6px) * 3 - 5px);display:block}.CashierTransactionHistory.svelte-1cus01h tr.svelte-1cus01h{position:relative}@container transaction-history (width < 750px){.CashierTransactionHistory.svelte-1cus01h .CopyTooltip.svelte-1cus01h{width:100%}.CashierTransactionHistory.svelte-1cus01h .CashierTransactionId.svelte-1cus01h{max-width:135px}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-small, 12px) 0 var(--emw--spacing-small, 12px)}}@container transaction-history (width < 475px){.CashierTransactionHistory.svelte-1cus01h .CashierTransactionHistoryWrapper.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h{padding:0 var(--emw--spacing-2x-small-plus, 6px)}.CashierTransactionHistory.svelte-1cus01h td.svelte-1cus01h:first-child{max-width:60px}}@container transaction-history (width < 350px){.CashierTransactionHistory.svelte-1cus01h table.svelte-1cus01h{table-layout:fixed}.CashierTransactionHistory.svelte-1cus01h table td.svelte-1cus01h{padding:0 0 0 var(--emw--spacing-small, 5px)}}.CashierTransactionHistoryWrapper.svelte-1cus01h.svelte-1cus01h{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-1cus01h.svelte-1cus01h{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-1cus01h.svelte-1cus01h{cursor:pointer;-webkit-user-select:none;-ms-user-select:none;user-select:none}.CashierTransactionId.svelte-1cus01h.svelte-1cus01h:hover{background-color:var(--emw--color-gray-50, #F7F8FA)}.CashierTransactionHistoryStatus.svelte-1cus01h.svelte-1cus01h{display:flex;gap:5px}.CashierTransactionHistoryStatusText.svelte-1cus01h.svelte-1cus01h{line-height:calc(var(--emw--font-size-medium, 16px) + 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.CashierTransactionHistoryContent.svelte-1cus01h.svelte-1cus01h{width:100%;overflow:hidden}.CashierTransactionHistoryIcon.svelte-1cus01h.svelte-1cus01h{vertical-align:middle;height:var(--emw--font-size-medium, 16px);width:var(--emw--font-size-medium, 16px)}")}function U(i,e,s){const a=i.slice();return a[27]=e[s],a}function J(i){let e;return{c(){e=t.element("cashier-spinner"),t.set_custom_element_data(e,"clientstylingurl",i[1]),t.set_custom_element_data(e,"clientstyling",i[0]),t.set_custom_element_data(e,"class","svelte-1cus01h")},m(s,a){t.insert(s,e,a)},p(s,a){a&2&&t.set_custom_element_data(e,"clientstylingurl",s[1]),a&1&&t.set_custom_element_data(e,"clientstyling",s[0])},d(s){s&&t.detach(e)}}}function V(i){let e,s,a,r=i[8]("transactionHistoryTitle")+"",l,o,h,y,b,x,g,S,H=i[8]("transactionIdTitle")+"",I,k,m,j=i[8]("transactionDateTitle")+"",D,T,A,z=i[8]("transactionTypeTitle")+"",F,R,P,C=i[8]("transactionStatusTitle")+"",f,c,w,n=i[5]&&W(i),d=t.ensure_array_like(i[4]),p=[];for(let u=0;u<d.length;u+=1)p[u]=q(U(i,d,u));return{c(){e=t.element("div"),n&&n.c(),s=t.space(),a=t.element("h3"),l=t.text(r),o=t.space(),h=t.element("div"),y=t.element("div"),b=t.element("table"),x=t.element("thead"),g=t.element("tr"),S=t.element("td"),I=t.text(H),k=t.space(),m=t.element("td"),D=t.text(j),T=t.space(),A=t.element("td"),F=t.text(z),R=t.space(),P=t.element("td"),f=t.text(C),c=t.space(),w=t.element("tbody");for(let u=0;u<p.length;u+=1)p[u].c();t.attr(a,"class","CashierTransactionHistoryTitle svelte-1cus01h"),t.attr(S,"class","svelte-1cus01h"),t.attr(m,"class","svelte-1cus01h"),t.attr(A,"class","svelte-1cus01h"),t.attr(P,"class","svelte-1cus01h"),t.attr(g,"class","svelte-1cus01h"),t.attr(x,"class","svelte-1cus01h"),t.attr(w,"class","svelte-1cus01h"),t.attr(b,"class","svelte-1cus01h"),t.attr(y,"class","CashierTransactionHistoryContent svelte-1cus01h"),t.attr(h,"class","CashierTransactionHistoryWrapper svelte-1cus01h"),t.attr(e,"class","CashierTransactionHistory svelte-1cus01h")},m(u,v){t.insert(u,e,v),n&&n.m(e,null),t.append(e,s),t.append(e,a),t.append(a,l),t.append(e,o),t.append(e,h),t.append(h,y),t.append(y,b),t.append(b,x),t.append(x,g),t.append(g,S),t.append(S,I),t.append(g,k),t.append(g,m),t.append(m,D),t.append(g,T),t.append(g,A),t.append(A,F),t.append(g,R),t.append(g,P),t.append(P,f),t.append(b,c),t.append(b,w);for(let _=0;_<p.length;_+=1)p[_]&&p[_].m(w,null);i[18](e)},p(u,v){if(u[5]?n?(n.p(u,v),v&32&&t.transition_in(n,1)):(n=W(u),n.c(),t.transition_in(n,1),n.m(e,s)):n&&(t.group_outros(),t.transition_out(n,1,1,()=>{n=null}),t.check_outros()),v&256&&r!==(r=u[8]("transactionHistoryTitle")+"")&&t.set_data(l,r),v&256&&H!==(H=u[8]("transactionIdTitle")+"")&&t.set_data(I,H),v&256&&j!==(j=u[8]("transactionDateTitle")+"")&&t.set_data(D,j),v&256&&z!==(z=u[8]("transactionTypeTitle")+"")&&t.set_data(F,z),v&256&&C!==(C=u[8]("transactionStatusTitle")+"")&&t.set_data(f,C),v&944){d=t.ensure_array_like(u[4]);let _;for(_=0;_<d.length;_+=1){const M=U(u,d,_);p[_]?p[_].p(M,v):(p[_]=q(M),p[_].c(),p[_].m(w,null))}for(;_<p.length;_+=1)p[_].d(1);p.length=d.length}},d(u){u&&t.detach(e),n&&n.d(),t.destroy_each(p,u),i[18](null)}}}function W(i){let e,s=i[8]("copyTransactionId")+"",a,r,l,o;return{c(){e=t.element("div"),a=t.text(s),t.attr(e,"class","CopyTooltip svelte-1cus01h")},m(h,y){t.insert(h,e,y),t.append(e,a),o=!0},p(h,y){i=h,(!o||y&256)&&s!==(s=i[8]("copyTransactionId")+"")&&t.set_data(a,s)},i(h){o||(h&&t.add_render_callback(()=>{o&&(l&&l.end(1),r=t.create_in_transition(e,B.fade,{duration:100}),r.start())}),o=!0)},o(h){r&&r.invalidate(),h&&(l=t.create_out_transition(e,B.fade,{duration:i[2]})),o=!1},d(h){h&&t.detach(e),h&&l&&l.end()}}}function K(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-1cus01h"),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-1cus01h"),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-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function Q(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-1cus01h"),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-1cus01h"),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-1cus01h")},m(l,o){t.insert(l,e,o),t.append(e,s),t.append(e,a),t.append(a,r)},d(l){l&&t.detach(e)}}}function Z(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-1cus01h"),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-1cus01h"),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-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&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","#e76049"),t.attr(s,"stroke-width","2"),t.attr(s,"class","svelte-1cus01h"),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-1cus01h"),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-1cus01h")},m(r,l){t.insert(r,e,l),t.append(e,s),t.append(e,a)},d(r){r&&t.detach(e)}}}function tt(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-1cus01h"),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-1cus01h"),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-1cus01h")},m(l,o){t.insert(l,e,o),t.append(e,s),t.append(e,a),t.append(a,r)},d(l){l&&t.detach(e)}}}function q(i){let e,s,a=i[27].Code+"",r,l,o,h=i[27].Date+"",y,b,x,g=i[8](`transactionType.${i[27].Type}`)+"",S,H,I,k,m,j,D,T=i[8](`transactionStatus.${i[27].Status}`)+"",A,z,F,R;function P(c,w){if(c[27].Status===c[7].Authorized)return tt;if(c[27].Status===c[7].Failed)return $;if(c[27].Status===c[7].Pending)return Z;if(c[27].Status===c[7].Rejected)return Q;if(c[27].Status===c[7].Success)return K}let C=P(i),f=C&&C(i);return{c(){e=t.element("tr"),s=t.element("td"),r=t.text(a),l=t.space(),o=t.element("td"),y=t.text(h),b=t.space(),x=t.element("td"),S=t.text(g),H=t.space(),I=t.element("td"),k=t.element("div"),m=t.element("span"),f&&f.c(),j=t.space(),D=t.element("span"),A=t.text(T),z=t.space(),t.attr(s,"class","CashierTransactionId svelte-1cus01h"),t.toggle_class(s,"copied",i[5]),t.attr(o,"class","svelte-1cus01h"),t.attr(x,"class","svelte-1cus01h"),t.attr(m,"class","CashierTransactionHistoryIcon svelte-1cus01h"),t.attr(D,"class","CashierTransactionHistoryStatusText svelte-1cus01h"),t.attr(k,"class","CashierTransactionHistoryStatus svelte-1cus01h"),t.attr(I,"class","svelte-1cus01h"),t.attr(e,"class","svelte-1cus01h")},m(c,w){t.insert(c,e,w),t.append(e,s),t.append(s,r),t.append(e,l),t.append(e,o),t.append(o,y),t.append(e,b),t.append(e,x),t.append(x,S),t.append(e,H),t.append(e,I),t.append(I,k),t.append(k,m),f&&f.m(m,null),t.append(k,j),t.append(k,D),t.append(D,A),t.append(e,z),F||(R=t.listen(s,"mousedown",i[17]),F=!0)},p(c,w){w&16&&a!==(a=c[27].Code+"")&&t.set_data(r,a),w&32&&t.toggle_class(s,"copied",c[5]),w&16&&h!==(h=c[27].Date+"")&&t.set_data(y,h),w&272&&g!==(g=c[8](`transactionType.${c[27].Type}`)+"")&&t.set_data(S,g),C!==(C=P(c))&&(f&&f.d(1),f=C&&C(c),f&&(f.c(),f.m(m,null))),w&272&&T!==(T=c[8](`transactionStatus.${c[27].Status}`)+"")&&t.set_data(A,T)},d(c){c&&t.detach(e),f&&f.d(),F=!1,R()}}}function et(i){let e;function s(l,o){if(l[4].length)return V;if(l[6])return J}let a=s(i),r=a&&a(i);return{c(){e=t.element("div"),r&&r.c(),t.attr(e,"class","CashierTransactionHistoryContainer svelte-1cus01h")},m(l,o){t.insert(l,e,o),r&&r.m(e,null)},p(l,[o]){a===(a=s(l))&&r?r.p(l,o):(r&&r.d(1),r=a&&a(l),r&&(r.c(),r.m(e,null)))},i:t.noop,o:t.noop,d(l){l&&t.detach(e),r&&r.d()}}}const st="DD.MM.YYYY";function at(i,e,s){let a;t.component_subscribe(i,L.$format,n=>s(8,a=n));let{endpoint:r}=e,{session:l}=e,{lang:o="en"}=e,{customerid:h}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,{translationurl:x}=e,{tooltipduration:g=1e3}=e,{txncount:S=3}=e,{mbsource:H=""}=e,I=[],k=!1,m,j,D=!1;var T;(function(n){n.Deposit="deposit",n.Withdraw="withdraw",n.Refund="refund",n.Unknown="unknown",n.TaxDeduction="taxDeduction"})(T||(T={}));const A=["Authorized","Success","Failed","Rejected","PendingApprovalStage1","PendingApprovalStage2","PendingApprovalStage3","PendingNotification","PendingOfflineNotification","PendingConfirmation"];var z;(function(n){n.Authorized="Authorized",n.Success="Success",n.Failed="Failed",n.Rejected="Rejected",n.Pending="Pending"})(z||(z={})),t.onMount(()=>()=>{});const F=()=>{let n=x;if(n)return fetch(n).then(d=>d.json()).then(d=>{Object.keys(d).forEach(p=>{O(p,d[p])})}).catch(d=>{console.log(d)})};Object.keys(E).forEach(n=>{O(n,E[n])});const R=()=>{X(o)},P=()=>{const n=new URL(`${r}/api/v1/mm/payment/gettransactionshistory`),d=new Headers;d.append("accept","application/json"),d.append("Content-Type","application/json"),d.append("X-SessionId",`${l}`);const p=new Date(new Date().setMonth(new Date().getMonth()-3)).toISOString(),u={method:"POST",mode:"cors",headers:d,body:JSON.stringify({language:o,customerId:h,count:S,page:0,fromDate:p,toDate:null,statuses:{[T.Deposit]:A,[T.Withdraw]:A,[T.Refund]:["Unknown"],[T.TaxDeduction]:["Unknown"],[T.Unknown]:["Unknown"]},calculateProfit:!1})};s(6,D=!0),fetch(n,u).then(v=>v.json()).then(v=>{s(4,I=C((v==null?void 0:v.items)||[]))}).catch(v=>console.log(v)).finally(()=>s(6,D=!1))},C=n=>n.map(d=>{let p=d.generalFields.status;return d.generalFields.status.toLowerCase().includes("pending")&&(p=z.Pending),{Code:d.generalFields.code,Date:Y.dayjs(d.generalFields.created).format(st),Status:p,Type:d.generalFields.type}})||[],f=n=>{const d=n.currentTarget;n.target===d&&navigator.clipboard.writeText(d.innerText).then(()=>{s(5,k=!0),clearTimeout(j),j=setTimeout(()=>{s(5,k=!1)},2e3)}).catch(p=>{console.error("Could not copy text: ",p)})},c=n=>f(n);function w(n){t.binding_callbacks[n?"unshift":"push"](()=>{m=n,s(3,m)})}return i.$$set=n=>{"endpoint"in n&&s(10,r=n.endpoint),"session"in n&&s(11,l=n.session),"lang"in n&&s(12,o=n.lang),"customerid"in n&&s(13,h=n.customerid),"clientstyling"in n&&s(0,y=n.clientstyling),"clientstylingurl"in n&&s(1,b=n.clientstylingurl),"translationurl"in n&&s(14,x=n.translationurl),"tooltipduration"in n&&s(2,g=n.tooltipduration),"txncount"in n&&s(15,S=n.txncount),"mbsource"in n&&s(16,H=n.mbsource)},i.$$.update=()=>{i.$$.dirty&4096&&o&&R(),i.$$.dirty&9&&y&&m&&t.setClientStyling(m,y),i.$$.dirty&10&&b&&m&&t.setClientStylingURL(m,b),i.$$.dirty&15360&&r&&l&&h&&o&&P(),i.$$.dirty&16384&&x&&F(),i.$$.dirty&65544&&H&&m&&t.setStreamStyling(m,`${H}.Style`)},[y,b,g,m,I,k,D,z,a,f,r,l,o,h,x,S,H,c,w]}class N extends t.SvelteComponent{constructor(e){super(),t.init(this,e,at,et,t.safe_not_equal,{endpoint:10,session:11,lang:12,customerid:13,clientstyling:0,clientstylingurl:1,translationurl:14,tooltipduration:2,txncount:15,mbsource:16},G)}get endpoint(){return this.$$.ctx[10]}set endpoint(e){this.$$set({endpoint:e}),t.flush()}get session(){return this.$$.ctx[11]}set session(e){this.$$set({session:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get customerid(){return this.$$.ctx[13]}set customerid(e){this.$$set({customerid:e}),t.flush()}get clientstyling(){return this.$$.ctx[0]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[1]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[14]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get tooltipduration(){return this.$$.ctx[2]}set tooltipduration(e){this.$$set({tooltipduration:e}),t.flush()}get txncount(){return this.$$.ctx[15]}set txncount(e){this.$$set({txncount:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(N,{endpoint:{},session:{},lang:{},customerid:{},clientstyling:{},clientstylingurl:{},translationurl:{},tooltipduration:{},txncount:{},mbsource:{}},[],[],!0);exports.default=N;
|