@feedmepos/mf-payment 0.0.0-beta.14 → 0.0.0-beta.15
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-DuqITwjB.js → PayoutAccount-NNigMHF9.js} +5 -5
- package/dist/{PayoutAccount-BHwKD9si.js → PayoutAccount-nJzdU1ip.js} +3 -3
- package/dist/PayoutAccountSetting-uiFglxyj.js +702 -0
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
- package/dist/{Settlement-Dr6Rmkid.js → Settlement-DLFEvFiY.js} +3 -3
- package/dist/{Settlement-JkH7-Wd_.js → Settlement-DuT2FxzJ.js} +28 -26
- package/dist/{SettlementTransactions-CSz0G9iE.js → SettlementTransactions--BvqHEHi.js} +110 -116
- package/dist/{SettlementTransactions-BGfDReId.js → SettlementTransactions-BQpqcrAK.js} +99 -105
- package/dist/{Terminal-DQqtUzV2.js → Terminal-C6ns-w6k.js} +4 -4
- package/dist/{TerminalSetting-T0Sxq_z0.js → TerminalSetting-Dditd6yX.js} +3 -3
- package/dist/{TerminalTransaction-C0g2mMBJ.js → TerminalTransaction-DOfM8pcb.js} +61 -69
- package/dist/TerminalTransaction-Ln59u2GT.js +230 -0
- package/dist/Transaction-CHHwlo39.js +242 -0
- package/dist/Transaction-CkRaGtkz.js +243 -0
- package/dist/api/pagination.d.ts +20 -0
- package/dist/api/payment-gateway/index.d.ts +9 -0
- package/dist/api/terminal-transaction/index.d.ts +8 -0
- package/dist/app.js +56 -48
- package/dist/{assets-nIQ0r4oP.js → assets-DB7pg43Y.js} +1 -1
- package/dist/components/RestaurantSelector.vue.d.ts +2 -0
- package/dist/{index-CxYMbN69.js → index-7_iwp3ZF.js} +1 -1
- package/dist/{index-DflgpHga.js → index-BBTjdV3w.js} +2 -2
- package/dist/{index-CIIojtd5.js → index-Bboaan5m.js} +1 -1
- package/dist/{index-DhPhiNvt.js → index-BuCL5h0R.js} +1 -1
- package/dist/index-CEGydext.js +20 -0
- package/dist/{index-DqQBDo_Y.js → index-DIT7Btp7.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js → index.vue_vue_type_script_setup_true_lang-CcT6hjAl.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-FNZygqj-.js → payout-account-CqrgAP5S.js} +191 -191
- package/dist/{transaction-B4rEbejx.js → transaction-CSqbF07L.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
- package/package.json +1 -1
- package/dist/PayoutAccountSetting-cOThY31e.js +0 -425
- package/dist/Transaction-BKBh8jOT.js +0 -249
- package/dist/Transaction-DVS8SkBi.js +0 -247
@@ -0,0 +1,33 @@
|
|
1
|
+
import { defineComponent as c, computed as a, resolveComponent as i, openBlock as d, createBlock as _, unref as l } from "vue";
|
2
|
+
import { useCoreStore as v } from "@feedmepos/mf-common";
|
3
|
+
const C = /* @__PURE__ */ c({
|
4
|
+
__name: "RestaurantSelector",
|
5
|
+
setup(f) {
|
6
|
+
const t = v(), r = a(() => {
|
7
|
+
var e;
|
8
|
+
return (e = t.currentRestaurant.value) == null ? void 0 : e._id;
|
9
|
+
}), u = a(() => t.restaurants.value.map((e) => ({
|
10
|
+
label: e.profile.name,
|
11
|
+
value: e._id
|
12
|
+
})));
|
13
|
+
return (e, n) => {
|
14
|
+
const s = i("FmSelect");
|
15
|
+
return d(), _(s, {
|
16
|
+
label: "Restaurant",
|
17
|
+
modelValue: r.value,
|
18
|
+
"onUpdate:modelValue": [
|
19
|
+
n[0] || (n[0] = (o) => r.value = o),
|
20
|
+
n[1] || (n[1] = (o) => {
|
21
|
+
const m = l(t).restaurants.value.find((p) => p._id == o);
|
22
|
+
l(t).changeRestaurant(m);
|
23
|
+
})
|
24
|
+
],
|
25
|
+
class: "w-[220px]",
|
26
|
+
items: u.value
|
27
|
+
}, null, 8, ["modelValue", "items"]);
|
28
|
+
};
|
29
|
+
}
|
30
|
+
});
|
31
|
+
export {
|
32
|
+
C as _
|
33
|
+
};
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as w, ref as v, computed as S, resolveComponent as h, openBlock as x, createBlock as D, watch as A, onMounted as k, unref as o, withCtx as F, createElementVNode as u, createVNode as p, isRef as R } from "vue";
|
2
|
-
import { u as V } from "./index-
|
2
|
+
import { u as V } from "./index-BBTjdV3w.js";
|
3
3
|
import { h as _ } from "./moment-h96o7c8I.js";
|
4
|
-
import { s as g } from "./index-
|
4
|
+
import { s as g } from "./index-BuCL5h0R.js";
|
5
5
|
import "@feedmepos/ui-library";
|
6
6
|
import { d as f } from "./dinero-CIVmXLL-.js";
|
7
7
|
import { useRouter as b } from "vue-router";
|
8
8
|
import { _ as C } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
9
|
-
import { u as $ } from "./index-
|
9
|
+
import { u as $ } from "./index-Bboaan5m.js";
|
10
10
|
import { _ as I } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
11
11
|
const K = /* @__PURE__ */ w({
|
12
12
|
__name: "SettlementTable",
|
@@ -1,15 +1,16 @@
|
|
1
|
-
import { defineComponent as w, ref as S, computed as D, resolveComponent as h, openBlock as v, createBlock as x, onMounted as A, watch as k, unref as n, withCtx as F, createElementVNode as
|
2
|
-
import { u as V } from "./index-
|
1
|
+
import { defineComponent as w, ref as S, computed as D, resolveComponent as h, openBlock as v, createBlock as x, onMounted as A, watch as k, unref as n, withCtx as F, createElementVNode as p, createVNode as i, isRef as C } from "vue";
|
2
|
+
import { u as V } from "./index-BBTjdV3w.js";
|
3
3
|
import { h as _ } from "./moment-h96o7c8I.js";
|
4
4
|
import { useCoreStore as b } from "@feedmepos/mf-common";
|
5
5
|
import { _ as $ } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
6
|
-
import { s as g } from "./index-
|
6
|
+
import { s as g } from "./index-BuCL5h0R.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
8
|
import { d as f } from "./dinero-CIVmXLL-.js";
|
9
9
|
import { useRouter as I } from "vue-router";
|
10
|
-
import { u as K } from "./index-
|
10
|
+
import { u as K } from "./index-Bboaan5m.js";
|
11
11
|
import { _ as P } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
|
-
|
12
|
+
import { _ as O } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
13
|
+
const Y = /* @__PURE__ */ w({
|
13
14
|
__name: "SettlementTable",
|
14
15
|
props: {
|
15
16
|
data: {
|
@@ -22,8 +23,8 @@ const O = /* @__PURE__ */ w({
|
|
22
23
|
}
|
23
24
|
},
|
24
25
|
emits: ["row-click"],
|
25
|
-
setup(y, { emit:
|
26
|
-
const e = y, r =
|
26
|
+
setup(y, { emit: d }) {
|
27
|
+
const e = y, r = d, s = S(""), c = [
|
27
28
|
{
|
28
29
|
header: () => "Settlement ID",
|
29
30
|
accessorKey: "id"
|
@@ -55,41 +56,41 @@ const O = /* @__PURE__ */ w({
|
|
55
56
|
payout: f(t.totalPayout).toFormat("$0.00")
|
56
57
|
})));
|
57
58
|
return (t, o) => {
|
58
|
-
const
|
59
|
-
return v(), x(
|
59
|
+
const m = h("FmTable");
|
60
|
+
return v(), x(m, {
|
60
61
|
modelValue: s.value,
|
61
62
|
"onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
|
62
63
|
"row-data": l.value,
|
63
|
-
"column-defs":
|
64
|
+
"column-defs": c,
|
64
65
|
loading: e.loading,
|
65
66
|
onRowClick: o[1] || (o[1] = (a) => r("row-click", e.data.at(a.index)))
|
66
67
|
}, null, 8, ["modelValue", "row-data", "loading"]);
|
67
68
|
};
|
68
69
|
}
|
69
|
-
}),
|
70
|
+
}), B = { class: "flex justify-between items-center mb-6" }, L = { class: "flex space-x-8 items-center" }, M = { class: "flex space-x-4 items-center" }, X = /* @__PURE__ */ w({
|
70
71
|
__name: "Settlement",
|
71
72
|
setup(y) {
|
72
|
-
const
|
73
|
+
const d = I(), { dateRange: e } = K({
|
73
74
|
dateRange: {
|
74
75
|
startDate: _().startOf("day").toISOString(),
|
75
76
|
endDate: _().endOf("day").toISOString()
|
76
77
|
}
|
77
|
-
}), { isLoading: r, startAsyncCall: s } = V(!0), { currentRestaurant:
|
78
|
+
}), { isLoading: r, startAsyncCall: s } = V(!0), { currentRestaurant: c } = b(), l = S([]);
|
78
79
|
async function t() {
|
79
80
|
await s(async () => {
|
80
|
-
const
|
81
|
+
const m = await g.readRestaurantSettlements(
|
81
82
|
{
|
82
83
|
start: e.value.startDate,
|
83
84
|
end: e.value.endDate
|
84
85
|
}
|
85
86
|
);
|
86
|
-
l.value =
|
87
|
+
l.value = m;
|
87
88
|
});
|
88
89
|
}
|
89
90
|
function o() {
|
90
91
|
t();
|
91
92
|
}
|
92
|
-
return A(o), k(
|
93
|
+
return A(o), k(c, o), (m, a) => {
|
93
94
|
const R = h("FmDateRangePicker");
|
94
95
|
return v(), x($, {
|
95
96
|
title: "Settlements",
|
@@ -97,20 +98,21 @@ const O = /* @__PURE__ */ w({
|
|
97
98
|
loading: n(r)
|
98
99
|
}, {
|
99
100
|
default: F(() => [
|
100
|
-
|
101
|
-
|
102
|
-
|
101
|
+
p("div", B, [
|
102
|
+
p("div", L, [
|
103
|
+
i(O),
|
104
|
+
i(R, {
|
103
105
|
modelValue: n(e),
|
104
106
|
"onUpdate:modelValue": [
|
105
|
-
a[0] || (a[0] = (
|
107
|
+
a[0] || (a[0] = (u) => C(e) ? e.value = u : null),
|
106
108
|
t
|
107
109
|
],
|
108
110
|
compare: "",
|
109
111
|
"show-predefined-range": ""
|
110
112
|
}, null, 8, ["modelValue"])
|
111
113
|
]),
|
112
|
-
|
113
|
-
|
114
|
+
p("div", M, [
|
115
|
+
i(P, {
|
114
116
|
button: {
|
115
117
|
appendIcon: "file_download",
|
116
118
|
variant: "primary",
|
@@ -125,13 +127,13 @@ const O = /* @__PURE__ */ w({
|
|
125
127
|
}, null, 8, ["handler"])
|
126
128
|
])
|
127
129
|
]),
|
128
|
-
|
130
|
+
i(Y, {
|
129
131
|
loading: n(r),
|
130
132
|
data: l.value,
|
131
|
-
onRowClick: a[1] || (a[1] = (
|
133
|
+
onRowClick: a[1] || (a[1] = (u) => n(d).push({
|
132
134
|
name: "mf-payment-settlement-transaction",
|
133
135
|
params: {
|
134
|
-
settlementId:
|
136
|
+
settlementId: u._id
|
135
137
|
}
|
136
138
|
}))
|
137
139
|
}, null, 8, ["loading", "data"])
|
@@ -142,5 +144,5 @@ const O = /* @__PURE__ */ w({
|
|
142
144
|
}
|
143
145
|
});
|
144
146
|
export {
|
145
|
-
|
147
|
+
X as default
|
146
148
|
};
|
@@ -1,87 +1,81 @@
|
|
1
|
-
import { defineComponent as w, resolveComponent as
|
2
|
-
import { e as
|
3
|
-
import { useDialog as
|
4
|
-
import { d as
|
5
|
-
import { g as
|
6
|
-
import { t as
|
7
|
-
import { _ as
|
8
|
-
import { useRouter as
|
9
|
-
import { s as
|
10
|
-
import { u as
|
11
|
-
import { w as
|
1
|
+
import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as T, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
|
2
|
+
import { e as E, u as q } from "./index-BBTjdV3w.js";
|
3
|
+
import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
|
4
|
+
import { d as B } from "./dinero-CIVmXLL-.js";
|
5
|
+
import { g as W, a as X } from "./assets-DB7pg43Y.js";
|
6
|
+
import { t as P, a as Z } from "./transaction-CSqbF07L.js";
|
7
|
+
import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
|
8
|
+
import { useRouter as te } from "vue-router";
|
9
|
+
import { s as ae } from "./index-BuCL5h0R.js";
|
10
|
+
import { u as ne } from "./error-K1CakhA9.js";
|
11
|
+
import { w as oe } from "./Modal-DB8M9o1T.js";
|
12
12
|
const re = /* @__PURE__ */ w({
|
13
13
|
__name: "Status",
|
14
14
|
props: {
|
15
15
|
row: {},
|
16
16
|
data: {}
|
17
17
|
},
|
18
|
-
setup(
|
19
|
-
const
|
20
|
-
function
|
21
|
-
return
|
18
|
+
setup(y) {
|
19
|
+
const o = y;
|
20
|
+
function m() {
|
21
|
+
return o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
22
22
|
}
|
23
|
-
return (
|
24
|
-
const
|
25
|
-
return
|
23
|
+
return (A, _) => {
|
24
|
+
const b = g("FmBadge");
|
25
|
+
return F(), k(b, {
|
26
26
|
inline: "",
|
27
|
-
class:
|
27
|
+
class: j(m())
|
28
28
|
}, {
|
29
29
|
default: l(() => [
|
30
|
-
t("div", null, u(
|
30
|
+
t("div", null, u(A.data), 1)
|
31
31
|
]),
|
32
32
|
_: 1
|
33
33
|
}, 8, ["class"]);
|
34
34
|
};
|
35
35
|
}
|
36
|
-
}),
|
36
|
+
}), le = ["src"], se = /* @__PURE__ */ w({
|
37
37
|
__name: "Gateway",
|
38
38
|
props: {
|
39
39
|
row: {},
|
40
40
|
data: {}
|
41
41
|
},
|
42
|
-
setup(
|
43
|
-
return (
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
class: "mr-2 border-transparent w-[32px] h-[32px]"
|
48
|
-
}, null, 8, ["src"]);
|
49
|
-
};
|
42
|
+
setup(y) {
|
43
|
+
return (o, m) => (F(), L("img", {
|
44
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
45
|
+
src: p(W)(o.row.original.gateway)
|
46
|
+
}, null, 8, le));
|
50
47
|
}
|
51
|
-
}),
|
48
|
+
}), ue = ["src"], ie = /* @__PURE__ */ w({
|
52
49
|
__name: "Method",
|
53
50
|
props: {
|
54
51
|
row: {},
|
55
52
|
data: {}
|
56
53
|
},
|
57
|
-
setup(
|
58
|
-
return (
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
class: "mr-2 border-transparent w-[32px] h-[32px]"
|
63
|
-
}, null, 8, ["src"]);
|
64
|
-
};
|
54
|
+
setup(y) {
|
55
|
+
return (o, m) => (F(), L("img", {
|
56
|
+
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
57
|
+
src: p(X)(o.row.original.method.issuer)
|
58
|
+
}, null, 8, ue));
|
65
59
|
}
|
66
|
-
}),
|
60
|
+
}), me = /* @__PURE__ */ w({
|
67
61
|
__name: "Actions",
|
68
62
|
props: {
|
69
63
|
row: {},
|
70
64
|
data: {}
|
71
65
|
},
|
72
66
|
emits: ["delete"],
|
73
|
-
setup(
|
74
|
-
const
|
75
|
-
return (
|
76
|
-
const
|
77
|
-
return
|
67
|
+
setup(y, { emit: o }) {
|
68
|
+
const m = o;
|
69
|
+
return (A, _) => {
|
70
|
+
const b = g("FmButton");
|
71
|
+
return F(), k(b, {
|
78
72
|
variant: "plain",
|
79
73
|
"prepend-icon": "delete",
|
80
|
-
onClick:
|
74
|
+
onClick: _[0] || (_[0] = () => m("delete"))
|
81
75
|
});
|
82
76
|
};
|
83
77
|
}
|
84
|
-
}),
|
78
|
+
}), de = { class: "flex mb-6" }, ce = { class: "my-6 w-[240px]" }, Ae = /* @__PURE__ */ w({
|
85
79
|
__name: "SettlementTransactions",
|
86
80
|
props: {
|
87
81
|
settlementId: {
|
@@ -89,20 +83,20 @@ const re = /* @__PURE__ */ w({
|
|
89
83
|
required: !0
|
90
84
|
}
|
91
85
|
},
|
92
|
-
setup(
|
93
|
-
const
|
86
|
+
setup(y) {
|
87
|
+
const o = y, { isLoading: m, startAsyncCall: A, startAsyncCallFn: _ } = q(!0), b = J(), M = Q(), O = te(), s = T(), S = T([]), I = T([]);
|
94
88
|
async function V(a = !1) {
|
95
|
-
|
96
|
-
a || (s.value = await
|
97
|
-
const e = await
|
98
|
-
|
89
|
+
A(async () => {
|
90
|
+
a || (s.value = await ae.readById(o.settlementId));
|
91
|
+
const e = await P.readBySettlementId(o.settlementId);
|
92
|
+
S.value = Z(e), I.value = S.value;
|
99
93
|
});
|
100
94
|
}
|
101
|
-
function
|
95
|
+
function R() {
|
102
96
|
V();
|
103
97
|
}
|
104
|
-
|
105
|
-
const K =
|
98
|
+
Y(R);
|
99
|
+
const K = T(""), U = [
|
106
100
|
{
|
107
101
|
header: () => "Transaction ID",
|
108
102
|
accessorKey: "id"
|
@@ -117,7 +111,7 @@ const re = /* @__PURE__ */ w({
|
|
117
111
|
meta: {
|
118
112
|
textAlign: "center"
|
119
113
|
},
|
120
|
-
cell: ({ cell: a, row: e }) => e.original.method ?
|
114
|
+
cell: ({ cell: a, row: e }) => e.original.method ? N(se, { row: e, data: a.getValue() }) : ""
|
121
115
|
},
|
122
116
|
{
|
123
117
|
header: () => "Method",
|
@@ -125,7 +119,7 @@ const re = /* @__PURE__ */ w({
|
|
125
119
|
meta: {
|
126
120
|
textAlign: "center"
|
127
121
|
},
|
128
|
-
cell: ({ cell: a, row: e }) => e.original.method ?
|
122
|
+
cell: ({ cell: a, row: e }) => e.original.method ? N(ie, { row: e, data: a.getValue() }) : ""
|
129
123
|
},
|
130
124
|
{
|
131
125
|
header: () => "Type",
|
@@ -143,7 +137,7 @@ const re = /* @__PURE__ */ w({
|
|
143
137
|
{
|
144
138
|
header: () => "Status",
|
145
139
|
accessorKey: "status",
|
146
|
-
cell: ({ cell: a, row: e }) =>
|
140
|
+
cell: ({ cell: a, row: e }) => N(re, { row: e, data: a.getValue() })
|
147
141
|
},
|
148
142
|
{
|
149
143
|
header: () => "Transaction At",
|
@@ -167,72 +161,72 @@ const re = /* @__PURE__ */ w({
|
|
167
161
|
{
|
168
162
|
header: () => "Actions",
|
169
163
|
accessorKey: "action",
|
170
|
-
cell: ({ cell: a, row: e }) =>
|
164
|
+
cell: ({ cell: a, row: e }) => N(me, {
|
171
165
|
row: e,
|
172
166
|
data: a.getValue(),
|
173
|
-
onDelete: () =>
|
174
|
-
|
167
|
+
onDelete: () => oe(
|
168
|
+
b,
|
175
169
|
"Remove transaction",
|
176
170
|
"Are you sure to remove transaction from settlement? This action cannot be revert !",
|
177
|
-
|
171
|
+
_(async () => {
|
178
172
|
try {
|
179
|
-
await
|
180
|
-
} catch (
|
181
|
-
|
173
|
+
await P.removeTransactionFromSettlement(e.original.id), await V();
|
174
|
+
} catch (f) {
|
175
|
+
M.open({
|
182
176
|
type: "error",
|
183
177
|
title: "Error occurs when removing transaction",
|
184
|
-
message:
|
178
|
+
message: ne(f)
|
185
179
|
});
|
186
180
|
}
|
187
181
|
})
|
188
182
|
)
|
189
183
|
})
|
190
184
|
}
|
191
|
-
],
|
192
|
-
let
|
193
|
-
return
|
194
|
-
|
195
|
-
var a = new RegExp(
|
196
|
-
|
197
|
-
const
|
198
|
-
return a.test(
|
185
|
+
], x = T("");
|
186
|
+
let h;
|
187
|
+
return H(x, async () => {
|
188
|
+
h && clearTimeout(h), h = setTimeout(() => {
|
189
|
+
var a = new RegExp(x.value, "i");
|
190
|
+
I.value = S.value.filter((e) => {
|
191
|
+
const f = JSON.stringify(e);
|
192
|
+
return a.test(f);
|
199
193
|
});
|
200
194
|
}, 700);
|
201
195
|
}), (a, e) => {
|
202
|
-
var
|
203
|
-
const
|
204
|
-
return
|
205
|
-
title: `Settlement Transactions (${(
|
206
|
-
loading:
|
207
|
-
onBack:
|
196
|
+
var $;
|
197
|
+
const f = g("FmCardHeader"), v = g("FmCardSection"), C = g("FmCard"), z = g("FmSearch"), G = g("FmTable");
|
198
|
+
return F(), k(ee, {
|
199
|
+
title: `Settlement Transactions (${($ = s.value) == null ? void 0 : $._id})`,
|
200
|
+
loading: p(m),
|
201
|
+
onBack: p(O).back
|
208
202
|
}, {
|
209
203
|
default: l(() => [
|
210
|
-
t("div",
|
211
|
-
n(
|
204
|
+
t("div", de, [
|
205
|
+
n(C, {
|
212
206
|
horizontal: "",
|
213
207
|
class: "flex-1 p-6",
|
214
208
|
variant: "elevated"
|
215
209
|
}, {
|
216
210
|
default: l(() => [
|
217
|
-
n(
|
211
|
+
n(v, { class: "flex flex-col gap-16 justify-between" }, {
|
218
212
|
default: l(() => [
|
219
|
-
n(
|
213
|
+
n(f, {
|
220
214
|
class: "p-0",
|
221
215
|
title: "Transaction Info",
|
222
216
|
subtitle: ""
|
223
217
|
}),
|
224
|
-
n(
|
218
|
+
n(v, { class: "p-0" }, {
|
225
219
|
default: l(() => {
|
226
|
-
var
|
220
|
+
var r, d, c, D;
|
227
221
|
return [
|
228
222
|
e[2] || (e[2] = t("b", null, "For", -1)),
|
229
|
-
i(": " + u((
|
223
|
+
i(": " + u((d = (r = s.value) == null ? void 0 : r.store) == null ? void 0 : d.event) + " ", 1),
|
230
224
|
e[3] || (e[3] = t("br", null, null, -1)),
|
231
225
|
e[4] || (e[4] = t("b", null, "Reference", -1)),
|
232
|
-
i(": " + u((
|
226
|
+
i(": " + u((D = (c = s.value) == null ? void 0 : c.store) == null ? void 0 : D.id), 1),
|
233
227
|
e[5] || (e[5] = t("br", null, null, -1)),
|
234
228
|
e[6] || (e[6] = t("b", null, "Transaction", -1)),
|
235
|
-
i(": " + u(
|
229
|
+
i(": " + u(S.value.length), 1)
|
236
230
|
];
|
237
231
|
}),
|
238
232
|
_: 1
|
@@ -243,31 +237,31 @@ const re = /* @__PURE__ */ w({
|
|
243
237
|
]),
|
244
238
|
_: 1
|
245
239
|
}),
|
246
|
-
n(
|
240
|
+
n(C, {
|
247
241
|
horizontal: "",
|
248
242
|
class: "flex-1 p-6 mx-6",
|
249
243
|
variant: "elevated"
|
250
244
|
}, {
|
251
245
|
default: l(() => [
|
252
|
-
n(
|
246
|
+
n(v, { class: "flex flex-col gap-16 justify-between" }, {
|
253
247
|
default: l(() => [
|
254
|
-
n(
|
248
|
+
n(f, {
|
255
249
|
class: "p-0",
|
256
250
|
title: "Bank Info",
|
257
251
|
subtitle: ""
|
258
252
|
}),
|
259
|
-
n(
|
253
|
+
n(v, { class: "p-0" }, {
|
260
254
|
default: l(() => {
|
261
|
-
var
|
255
|
+
var r, d, c;
|
262
256
|
return [
|
263
257
|
e[7] || (e[7] = t("b", null, "Bank", -1)),
|
264
|
-
i(": " + u((
|
258
|
+
i(": " + u((r = s.value) == null ? void 0 : r.beneficiaryBank.name), 1),
|
265
259
|
e[8] || (e[8] = t("br", null, null, -1)),
|
266
260
|
e[9] || (e[9] = t("b", null, "Name", -1)),
|
267
|
-
i(": " + u((
|
261
|
+
i(": " + u((d = s.value) == null ? void 0 : d.beneficiaryBank.holderName), 1),
|
268
262
|
e[10] || (e[10] = t("br", null, null, -1)),
|
269
263
|
e[11] || (e[11] = t("b", null, "Number", -1)),
|
270
|
-
i(": " + u((
|
264
|
+
i(": " + u((c = s.value) == null ? void 0 : c.beneficiaryBank.accountNumber), 1)
|
271
265
|
];
|
272
266
|
}),
|
273
267
|
_: 1
|
@@ -278,31 +272,31 @@ const re = /* @__PURE__ */ w({
|
|
278
272
|
]),
|
279
273
|
_: 1
|
280
274
|
}),
|
281
|
-
n(
|
275
|
+
n(C, {
|
282
276
|
horizontal: "",
|
283
277
|
class: "flex-1 p-6",
|
284
278
|
variant: "elevated"
|
285
279
|
}, {
|
286
280
|
default: l(() => [
|
287
|
-
n(
|
281
|
+
n(v, { class: "flex flex-col gap-16 justify-between" }, {
|
288
282
|
default: l(() => [
|
289
|
-
n(
|
283
|
+
n(f, {
|
290
284
|
class: "p-0",
|
291
285
|
title: "Payout Info",
|
292
286
|
subtitle: ""
|
293
287
|
}),
|
294
|
-
n(
|
288
|
+
n(v, { class: "p-0" }, {
|
295
289
|
default: l(() => {
|
296
|
-
var
|
290
|
+
var r, d, c;
|
297
291
|
return [
|
298
292
|
e[12] || (e[12] = t("b", null, "Amount", -1)),
|
299
|
-
i(": " + u(
|
293
|
+
i(": " + u(p(B)((r = s.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
|
300
294
|
e[13] || (e[13] = t("br", null, null, -1)),
|
301
295
|
e[14] || (e[14] = t("b", null, "Fee", -1)),
|
302
|
-
i(": " + u(
|
296
|
+
i(": " + u(p(B)((d = s.value) == null ? void 0 : d.totalFee).toFormat("$0.00")), 1),
|
303
297
|
e[15] || (e[15] = t("br", null, null, -1)),
|
304
298
|
e[16] || (e[16] = t("b", null, "Payout", -1)),
|
305
|
-
i(": " + u(
|
299
|
+
i(": " + u(p(B)((c = s.value) == null ? void 0 : c.totalPayout).toFormat("$0.00")), 1)
|
306
300
|
];
|
307
301
|
}),
|
308
302
|
_: 1
|
@@ -314,20 +308,20 @@ const re = /* @__PURE__ */ w({
|
|
314
308
|
_: 1
|
315
309
|
})
|
316
310
|
]),
|
317
|
-
t("div",
|
318
|
-
n(
|
319
|
-
modelValue:
|
320
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
311
|
+
t("div", ce, [
|
312
|
+
n(z, {
|
313
|
+
modelValue: x.value,
|
314
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => x.value = r),
|
321
315
|
placeholder: "Search Transactions ..."
|
322
316
|
}, null, 8, ["modelValue"])
|
323
317
|
]),
|
324
|
-
n(
|
318
|
+
n(G, {
|
325
319
|
modelValue: K.value,
|
326
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
327
|
-
"search-value":
|
328
|
-
"row-data":
|
329
|
-
"column-defs":
|
330
|
-
loading:
|
320
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => K.value = r),
|
321
|
+
"search-value": x.value,
|
322
|
+
"row-data": I.value,
|
323
|
+
"column-defs": U,
|
324
|
+
loading: p(m)
|
331
325
|
}, null, 8, ["modelValue", "search-value", "row-data", "loading"])
|
332
326
|
]),
|
333
327
|
_: 1
|
@@ -336,5 +330,5 @@ const re = /* @__PURE__ */ w({
|
|
336
330
|
}
|
337
331
|
});
|
338
332
|
export {
|
339
|
-
|
333
|
+
Ae as default
|
340
334
|
};
|