@feedmepos/mf-payment 1.4.24 → 1.4.26
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/dist/{Actions.vue_vue_type_script_setup_true_lang-ClTndbYh.js → Actions.vue_vue_type_script_setup_true_lang-DKeIpNIW.js} +2 -2
- package/dist/{Chargeback-B0gRIpiJ.js → Chargeback-BDRSyAmK.js} +5 -5
- package/dist/{OnboardForm-GSaLEdFF.js → OnboardForm-AB0mVuJ9.js} +4 -4
- package/dist/{OnboardForm-yqhVp0WQ.js → OnboardForm-BSOqOm95.js} +4 -4
- package/dist/{OnboardSubmission-CAu6TqDl.js → OnboardSubmission-DRWeuOKJ.js} +5 -5
- package/dist/{OnboardSubmission-Bz8fbre8.js → OnboardSubmission-Dnk7gYO_.js} +2 -2
- package/dist/{PayoutAccount-Bv18s1yC.js → PayoutAccount-_3rSThA1.js} +5 -5
- package/dist/{PayoutAccount-CwFCOb-R.js → PayoutAccount-xYdw-qwo.js} +5 -5
- package/dist/{PayoutAccountSetting-DNI3FbQH.js → PayoutAccountSetting-BkFPooSa.js} +3 -3
- package/dist/{Restaurant-CCaYPuWH.js → Restaurant-7tDDS7PZ.js} +4 -4
- package/dist/{RestaurantSetting-D49rMf6l.js → RestaurantSetting-jsHDhjrj.js} +3 -3
- package/dist/{Settlement-BU-jCEbB.js → Settlement-BOQdhdzn.js} +3 -3
- package/dist/{Settlement-BQNJSUCM.js → Settlement-BPeUovFo.js} +3 -3
- package/dist/{SettlementTransactions-CqELsVFS.js → SettlementTransactions-CmzgEQs0.js} +4 -4
- package/dist/{SettlementTransactions-T6k6cAin.js → SettlementTransactions-D7wfVl0P.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-Betuxyqe.js → Status.vue_vue_type_script_setup_true_lang-D3aXDlnu.js} +1 -1
- package/dist/{Terminal-D-Uekfe6.js → Terminal-Bk-fLvmw.js} +5 -5
- package/dist/{TerminalSetting-DnvasW1-.js → TerminalSetting-BGtvOvPk.js} +3 -3
- package/dist/{Transaction-B85QLk-_.js → Transaction-B5xuKV97.js} +55 -51
- package/dist/{Transaction-CgFaGqHr.js → Transaction-CD3eAEsP.js} +68 -64
- package/dist/{TransactionOld-BlSmbndR.js → TransactionOld-D8xULx8n.js} +6 -6
- package/dist/{app-ReKWi9Tz.js → app-BGLSsKgl.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-B8TAgjHY.js → assets-BDZz71O5.js} +5 -4
- package/dist/{grafana-inVQ9Jwy.js → grafana-Dq_GUJiP.js} +1 -1
- package/dist/{index-Dn73sX5Z.js → index-0n1_opm-.js} +1 -1
- package/dist/{index-CYaUSwOX.js → index-BIKn02lu.js} +1 -1
- package/dist/{index-Bgu6ZXN4.js → index-CqAsZVgo.js} +1 -1
- package/dist/{index-DSG40xEJ.js → index-DeG469p5.js} +8816 -9010
- package/dist/{index-0fX5ZxQX.js → index-hAcBjD4I.js} +1 -1
- package/dist/{index-CYHO6usZ.js → index-hkLk1b3K.js} +32 -30
- package/dist/{index-ATmg3hKo.js → index-oXO2UZ2G.js} +1 -1
- package/dist/{index-DmMnMctt.js → index-tbFfJPr9.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-Cf_wL7Uo.js → index.vue_vue_type_script_setup_true_lang-BJ9Ys3KF.js} +1 -1
- package/dist/model/transaction.d.ts +1 -0
- package/dist/package.json +2 -2
- package/dist/{payout-account-DwObva0l.js → payout-account-DRg9Hv9K.js} +3 -3
- package/dist/{plugins-BUqPzPqX.js → plugins-CXIAJ_yL.js} +1 -1
- package/dist/stores/payoutAccount.d.ts +28 -28
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +28 -28
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +28 -28
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +28 -28
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +44 -44
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +8 -8
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
- package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -6
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -18
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +56 -56
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +60 -60
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +30 -30
- package/package.json +2 -2
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as B, ref as E, watch as R, onMounted as J, resolveComponent as h, openBlock as A, createElementBlock as
|
|
2
|
-
import { t as C } from "./index-
|
|
1
|
+
import { defineComponent as B, ref as E, watch as R, onMounted as J, resolveComponent as h, openBlock as A, createElementBlock as q, Fragment as w, unref as t, createBlock as D, createCommentVNode as Y, withCtx as K, createVNode as _, renderList as Q, createElementVNode as V, isRef as N, h as k } from "vue";
|
|
2
|
+
import { t as C } from "./index-hkLk1b3K.js";
|
|
3
3
|
import { h as O } from "./moment-h96o7c8I.js";
|
|
4
4
|
import { useI18n as G, useCoreStore as j } from "@feedmepos/mf-common";
|
|
5
5
|
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
6
|
-
import { t as W, b as X } from "./assets-
|
|
7
|
-
import { u as Z } from "./index-
|
|
6
|
+
import { t as W, b as X } from "./assets-BDZz71O5.js";
|
|
7
|
+
import { u as Z } from "./index-0n1_opm-.js";
|
|
8
8
|
import { _ as ee } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
9
9
|
import { _ as ae } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
|
10
10
|
import { _ as te } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js";
|
|
11
|
-
import { p as ne } from "./index-
|
|
12
|
-
import { t as re } from "./index-
|
|
13
|
-
import { u as se, p as x } from "./index-
|
|
11
|
+
import { p as ne } from "./index-oXO2UZ2G.js";
|
|
12
|
+
import { t as re } from "./index-BIKn02lu.js";
|
|
13
|
+
import { u as se, p as x } from "./index-DeG469p5.js";
|
|
14
14
|
import { useSnackbar as oe, useDialog as le } from "@feedmepos/ui-library";
|
|
15
|
-
import { _ as ie, a as ce, b as ue, c as me } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { g as de } from "./grafana-
|
|
15
|
+
import { _ as ie, a as ce, b as ue, c as me } from "./Actions.vue_vue_type_script_setup_true_lang-DKeIpNIW.js";
|
|
16
|
+
import { g as de } from "./grafana-Dq_GUJiP.js";
|
|
17
17
|
import { w as L } from "./Modal-DB8M9o1T.js";
|
|
18
18
|
import { u as P } from "./error-K1CakhA9.js";
|
|
19
|
-
import { _ as pe } from "./index.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { _ as pe } from "./index.vue_vue_type_script_setup_true_lang-BJ9Ys3KF.js";
|
|
20
20
|
const ye = /* @__PURE__ */ B({
|
|
21
21
|
__name: "SourceSelector",
|
|
22
22
|
props: {
|
|
@@ -25,14 +25,14 @@ const ye = /* @__PURE__ */ B({
|
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:id", "update:by"],
|
|
27
27
|
setup(z, { emit: f }) {
|
|
28
|
-
const F = f, { t: c } = G(), { currentBusiness: s, readRestaurants: v } = j(), { isLoading: u, startAsyncCall: b } = se(!0), m = E([]), i = E(), y = E(""),
|
|
28
|
+
const F = f, { t: c } = G(), { currentBusiness: s, readRestaurants: v } = j(), { isLoading: u, startAsyncCall: b } = se(!0), m = E([]), i = E(), y = E(""), g = E([]);
|
|
29
29
|
let S;
|
|
30
30
|
R(y, async () => {
|
|
31
31
|
S && clearTimeout(S), S = setTimeout(() => {
|
|
32
32
|
var d = new RegExp(y.value, "i");
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
return d.test(
|
|
33
|
+
g.value = m.value.filter((p) => {
|
|
34
|
+
const T = JSON.stringify(p);
|
|
35
|
+
return d.test(T);
|
|
36
36
|
});
|
|
37
37
|
}, 700);
|
|
38
38
|
}), R(i, () => {
|
|
@@ -45,7 +45,7 @@ const ye = /* @__PURE__ */ B({
|
|
|
45
45
|
return d;
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
async function
|
|
48
|
+
async function $() {
|
|
49
49
|
return b(async () => {
|
|
50
50
|
let d = await re.getBusinessTerminals();
|
|
51
51
|
if (d.length !== 0)
|
|
@@ -54,7 +54,7 @@ const ye = /* @__PURE__ */ B({
|
|
|
54
54
|
}
|
|
55
55
|
async function U() {
|
|
56
56
|
u.value = !0;
|
|
57
|
-
const d = await M(), p = await v(),
|
|
57
|
+
const d = await M(), p = await v(), T = await $();
|
|
58
58
|
m.value = [
|
|
59
59
|
...(p || []).map((o) => ({
|
|
60
60
|
by: "RESTAURANT",
|
|
@@ -62,7 +62,7 @@ const ye = /* @__PURE__ */ B({
|
|
|
62
62
|
label: "(RESTAURANT) " + o.profile.name,
|
|
63
63
|
value: o._id
|
|
64
64
|
})),
|
|
65
|
-
...(
|
|
65
|
+
...(T || []).map((o) => ({
|
|
66
66
|
by: "DEVICE",
|
|
67
67
|
prefix: c("payment.components.device"),
|
|
68
68
|
label: "(" + o.deviceType + ") " + (o.deviceType === "TERMINAL" ? o.name : o.restaurant.profile.name),
|
|
@@ -77,22 +77,22 @@ const ye = /* @__PURE__ */ B({
|
|
|
77
77
|
value: o._id
|
|
78
78
|
};
|
|
79
79
|
})
|
|
80
|
-
],
|
|
80
|
+
], g.value = m.value, u.value = !1;
|
|
81
81
|
}
|
|
82
82
|
return J(U), R(s, U), (d, p) => {
|
|
83
|
-
const
|
|
84
|
-
return A(),
|
|
85
|
-
t(u) ? (A(), D(
|
|
83
|
+
const T = h("FmCircularProgress"), o = h("FmChip"), a = h("FmSearch"), e = h("FmMenuItem"), n = h("FmMenu");
|
|
84
|
+
return A(), q(w, null, [
|
|
85
|
+
t(u) ? (A(), D(T, {
|
|
86
86
|
key: 0,
|
|
87
87
|
size: "md"
|
|
88
|
-
})) :
|
|
89
|
-
t(u) ?
|
|
88
|
+
})) : Y("", !0),
|
|
89
|
+
t(u) ? Y("", !0) : (A(), D(n, { key: 1 }, {
|
|
90
90
|
"menu-button": K(() => {
|
|
91
|
-
var
|
|
91
|
+
var r;
|
|
92
92
|
return [
|
|
93
93
|
_(o, {
|
|
94
94
|
icon: "account_box",
|
|
95
|
-
label: i.value ? i.value.prefix + " > " + ((
|
|
95
|
+
label: i.value ? i.value.prefix + " > " + ((r = i.value) == null ? void 0 : r.label) : t(c)("payment.components.select"),
|
|
96
96
|
removable: !!i.value,
|
|
97
97
|
onChipClosed: p[0] || (p[0] = (l) => i.value = void 0)
|
|
98
98
|
}, null, 8, ["label", "removable"])
|
|
@@ -101,18 +101,18 @@ const ye = /* @__PURE__ */ B({
|
|
|
101
101
|
default: K(() => [
|
|
102
102
|
_(a, {
|
|
103
103
|
"model-value": y.value,
|
|
104
|
-
"onUpdate:modelValue": p[1] || (p[1] = (
|
|
104
|
+
"onUpdate:modelValue": p[1] || (p[1] = (r) => y.value = r),
|
|
105
105
|
placeholder: "Search Restaurants/Devices/Payout Accounts"
|
|
106
106
|
}, null, 8, ["model-value"]),
|
|
107
|
-
|
|
107
|
+
g.value.length === 0 ? (A(), D(e, {
|
|
108
108
|
key: 0,
|
|
109
109
|
disabled: !0,
|
|
110
110
|
label: "No result"
|
|
111
|
-
})) :
|
|
112
|
-
(A(!0),
|
|
113
|
-
onClick: (l) => i.value =
|
|
114
|
-
key:
|
|
115
|
-
label:
|
|
111
|
+
})) : Y("", !0),
|
|
112
|
+
(A(!0), q(w, null, Q(g.value, (r) => (A(), D(e, {
|
|
113
|
+
onClick: (l) => i.value = r,
|
|
114
|
+
key: r.value,
|
|
115
|
+
label: r.label,
|
|
116
116
|
selectable: ""
|
|
117
117
|
}, null, 8, ["onClick", "label"]))), 128))
|
|
118
118
|
]),
|
|
@@ -121,10 +121,10 @@ const ye = /* @__PURE__ */ B({
|
|
|
121
121
|
], 64);
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
|
-
}), fe = { class: "flex justify-between mb-6 items-center" }, _e = { class: "flex space-x-8 items-start" }, ve = { class: "flex space-x-4 self-center" }, be = { class: "flex space-x-12 mb-6" },
|
|
124
|
+
}), fe = { class: "flex justify-between mb-6 items-center" }, _e = { class: "flex space-x-8 items-start" }, ve = { class: "flex space-x-4 self-center" }, be = { class: "flex space-x-12 mb-6" }, Ye = /* @__PURE__ */ B({
|
|
125
125
|
__name: "Transaction",
|
|
126
126
|
setup(z) {
|
|
127
|
-
var
|
|
127
|
+
var T, o;
|
|
128
128
|
const f = oe(), F = le(), { sessionUser: c } = j(), { t: s } = G(), v = E(), { dateRange: u, searchKey: b, status: m, id: i, by: y } = Z({
|
|
129
129
|
by: "",
|
|
130
130
|
id: "",
|
|
@@ -135,9 +135,9 @@ const ye = /* @__PURE__ */ B({
|
|
|
135
135
|
endDate: O().endOf("day").format("YYYY-MM-DD")
|
|
136
136
|
}
|
|
137
137
|
});
|
|
138
|
-
let
|
|
138
|
+
let g;
|
|
139
139
|
R(b, async () => {
|
|
140
|
-
|
|
140
|
+
g && clearTimeout(g), g = setTimeout(
|
|
141
141
|
() => {
|
|
142
142
|
var a;
|
|
143
143
|
return (a = v.value) == null ? void 0 : a.reset();
|
|
@@ -167,43 +167,43 @@ const ye = /* @__PURE__ */ B({
|
|
|
167
167
|
}
|
|
168
168
|
];
|
|
169
169
|
async function M(a, e) {
|
|
170
|
-
var
|
|
170
|
+
var n;
|
|
171
171
|
try {
|
|
172
|
-
const
|
|
173
|
-
(
|
|
172
|
+
const r = await C.refetchTransaction({ transactionId: a.id });
|
|
173
|
+
(n = v.value) == null || n.replaceData(e, r), f.open({
|
|
174
174
|
type: "success",
|
|
175
175
|
title: "Transaction queried and updated successfully."
|
|
176
176
|
});
|
|
177
|
-
} catch (
|
|
177
|
+
} catch (r) {
|
|
178
178
|
f.open({
|
|
179
179
|
type: "error",
|
|
180
180
|
title: "Fail to query transaction.",
|
|
181
|
-
message: P(
|
|
181
|
+
message: P(r)
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
async function
|
|
185
|
+
async function $(a, e) {
|
|
186
186
|
L(
|
|
187
187
|
F,
|
|
188
188
|
"Refund Transaction",
|
|
189
189
|
"Are you sure to refund transaction? This action cannot be revert!",
|
|
190
190
|
async () => {
|
|
191
|
-
var
|
|
191
|
+
var n;
|
|
192
192
|
try {
|
|
193
|
-
const
|
|
193
|
+
const r = await C.refundTransaction({
|
|
194
194
|
transactionId: a.id,
|
|
195
195
|
reason: "portal transaction refund",
|
|
196
196
|
amount: a.fdoAmount
|
|
197
197
|
});
|
|
198
|
-
(
|
|
198
|
+
(n = v.value) == null || n.replaceData(e, r), f.open({
|
|
199
199
|
type: "success",
|
|
200
200
|
title: "Transaction refund request initiated."
|
|
201
201
|
});
|
|
202
|
-
} catch (
|
|
202
|
+
} catch (r) {
|
|
203
203
|
f.open({
|
|
204
204
|
type: "error",
|
|
205
205
|
title: "Fail to request refund transaction.",
|
|
206
|
-
message: P(
|
|
206
|
+
message: P(r)
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
}
|
|
@@ -220,25 +220,25 @@ const ye = /* @__PURE__ */ B({
|
|
|
220
220
|
type: "success",
|
|
221
221
|
title: "Transaction notify successfully."
|
|
222
222
|
});
|
|
223
|
-
} catch (
|
|
223
|
+
} catch (n) {
|
|
224
224
|
f.open({
|
|
225
225
|
type: "error",
|
|
226
226
|
title: "Fail to notify transaction.",
|
|
227
|
-
message: P(
|
|
227
|
+
message: P(n)
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
);
|
|
232
232
|
}
|
|
233
233
|
async function d(a, e) {
|
|
234
|
-
const
|
|
234
|
+
const n = de([
|
|
235
235
|
{
|
|
236
236
|
type: "span",
|
|
237
237
|
queryKey: "transaction.id",
|
|
238
238
|
queryValue: a.id
|
|
239
239
|
}
|
|
240
240
|
], a.transactionAt);
|
|
241
|
-
window.open(
|
|
241
|
+
window.open(n, "_blank");
|
|
242
242
|
}
|
|
243
243
|
E("");
|
|
244
244
|
const p = [
|
|
@@ -246,8 +246,8 @@ const ye = /* @__PURE__ */ B({
|
|
|
246
246
|
header: () => s("payment.transactions.table.id"),
|
|
247
247
|
accessorKey: "id",
|
|
248
248
|
cell: ({ cell: a, row: e }) => {
|
|
249
|
-
var
|
|
250
|
-
return ((
|
|
249
|
+
var n, r;
|
|
250
|
+
return ((n = c.value) != null && n.role.isStaff || (r = c.value) != null && r.role.isAdmin) && e.original.transactionId ? e.original.id + `
|
|
251
251
|
ID: ` + e.original.transactionId : e.original.id;
|
|
252
252
|
}
|
|
253
253
|
},
|
|
@@ -261,7 +261,11 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
header: () => s("payment.transactions.table.bill_seq"),
|
|
264
|
-
accessorKey: "seqNumber"
|
|
264
|
+
accessorKey: "seqNumber",
|
|
265
|
+
cell: ({ cell: a, row: e }) => {
|
|
266
|
+
let n = "❌";
|
|
267
|
+
return e.original.seqNumberBinded && (n = "✅"), `${n} ${e.original.seqNumber}`;
|
|
268
|
+
}
|
|
265
269
|
},
|
|
266
270
|
{
|
|
267
271
|
header: () => s("payment.transactions.table.gateway"),
|
|
@@ -312,35 +316,35 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
312
316
|
header: () => s("payment.transactions.table.sales_amount"),
|
|
313
317
|
accessorKey: "amount",
|
|
314
318
|
cell: ({ cell: a, row: e }) => {
|
|
315
|
-
var
|
|
316
|
-
return ((
|
|
319
|
+
var n, r;
|
|
320
|
+
return ((n = c.value) != null && n.role.isStaff || (r = c.value) != null && r.role.isAdmin) && e.original.flags.isDelivery ? e.original.amount + "( " + e.original.gatewayAmount + ")" : e.original.amount;
|
|
317
321
|
}
|
|
318
322
|
}
|
|
319
323
|
];
|
|
320
|
-
return ((
|
|
324
|
+
return ((T = c.value) != null && T.role.isStaff || (o = c.value) != null && o.role.isAdmin) && p.push({
|
|
321
325
|
header: () => s("payment.transactions.table.actions"),
|
|
322
326
|
accessorKey: "actions",
|
|
323
327
|
cell: ({ row: a }) => k(me, {
|
|
324
328
|
transaction: a.original,
|
|
325
329
|
onAction: (e) => {
|
|
326
|
-
var
|
|
330
|
+
var n;
|
|
327
331
|
switch (e) {
|
|
328
332
|
case "notify":
|
|
329
333
|
return U(a.original, a.index);
|
|
330
334
|
case "query":
|
|
331
335
|
return M(a.original, a.index);
|
|
332
336
|
case "refund":
|
|
333
|
-
return (
|
|
337
|
+
return (n = c.value) != null && n.role.isStaff ? f.open({
|
|
334
338
|
type: "error",
|
|
335
339
|
title: "You are not allowed to refund transaction."
|
|
336
|
-
}) :
|
|
340
|
+
}) : $(a.original, a.index);
|
|
337
341
|
case "history":
|
|
338
342
|
return d(a.original, a.index);
|
|
339
343
|
}
|
|
340
344
|
}
|
|
341
345
|
})
|
|
342
346
|
}), (a, e) => {
|
|
343
|
-
const
|
|
347
|
+
const n = h("FmSearch"), r = h("FmSelect");
|
|
344
348
|
return A(), D(H, {
|
|
345
349
|
title: t(s)("payment.transactions.title"),
|
|
346
350
|
description: t(s)("payment.transactions.description"),
|
|
@@ -349,14 +353,14 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
349
353
|
default: K(() => [
|
|
350
354
|
V("div", fe, [
|
|
351
355
|
V("div", _e, [
|
|
352
|
-
_(
|
|
356
|
+
_(n, {
|
|
353
357
|
"model-value": t(b),
|
|
354
358
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => N(b) ? b.value = l : null),
|
|
355
359
|
class: "mr-8",
|
|
356
360
|
label: t(s)("payment.transactions.search.title"),
|
|
357
361
|
placeholder: t(s)("payment.transactions.search.placeholder")
|
|
358
362
|
}, null, 8, ["model-value", "label", "placeholder"]),
|
|
359
|
-
_(
|
|
363
|
+
_(r, {
|
|
360
364
|
modelValue: t(m),
|
|
361
365
|
"onUpdate:modelValue": e[2] || (e[2] = (l) => N(m) ? m.value = l : null),
|
|
362
366
|
class: "mr-6 w-[300px]",
|
|
@@ -425,5 +429,5 @@ ID: ` + e.original.transactionId : e.original.id;
|
|
|
425
429
|
}
|
|
426
430
|
});
|
|
427
431
|
export {
|
|
428
|
-
|
|
432
|
+
Ye as default
|
|
429
433
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as S, ref as K, watch as x, resolveComponent as F, openBlock as Y, createBlock as C, h as A, onMounted as M, unref as i, withCtx as O, createElementVNode as w, createVNode as _, isRef as R } from "vue";
|
|
2
|
-
import { t as v } from "./index-
|
|
3
|
-
import { u as U } from "./index-
|
|
2
|
+
import { t as v } from "./index-hkLk1b3K.js";
|
|
3
|
+
import { u as U } from "./index-DeG469p5.js";
|
|
4
4
|
import { useSnackbar as L, useDialog as P } from "@feedmepos/ui-library";
|
|
5
|
-
import { b as $, t as B } from "./assets-
|
|
6
|
-
import { _ as J, a as j, b as G, c as Q } from "./Actions.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { g as z } from "./grafana-
|
|
5
|
+
import { b as $, t as B } from "./assets-BDZz71O5.js";
|
|
6
|
+
import { _ as J, a as j, b as G, c as Q } from "./Actions.vue_vue_type_script_setup_true_lang-DKeIpNIW.js";
|
|
7
|
+
import { g as z } from "./grafana-Dq_GUJiP.js";
|
|
8
8
|
import { w as k } from "./Modal-DB8M9o1T.js";
|
|
9
9
|
import { u as V } from "./error-K1CakhA9.js";
|
|
10
10
|
import { useCoreStore as N, useI18n as E } from "@feedmepos/mf-common";
|
|
11
11
|
import { h as I } from "./moment-h96o7c8I.js";
|
|
12
12
|
import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
|
13
|
-
import { u as W } from "./index-
|
|
13
|
+
import { u as W } from "./index-0n1_opm-.js";
|
|
14
14
|
import { _ as X } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
|
15
15
|
import { _ as Z } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
|
|
16
16
|
import { _ as aa } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js";
|
|
@@ -365,7 +365,7 @@ const Gn = {
|
|
|
365
365
|
sidebarDisplay: "Restaurants",
|
|
366
366
|
section: "payment-gateway"
|
|
367
367
|
},
|
|
368
|
-
component: () => import("./Restaurant-
|
|
368
|
+
component: () => import("./Restaurant-7tDDS7PZ.js")
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
371
|
path: "/admin/restaurants/:restaurantId",
|
|
@@ -374,7 +374,7 @@ const Gn = {
|
|
|
374
374
|
meta: {
|
|
375
375
|
parent: "mf-payment-admin.restaurant"
|
|
376
376
|
},
|
|
377
|
-
component: () => import("./RestaurantSetting-
|
|
377
|
+
component: () => import("./RestaurantSetting-jsHDhjrj.js")
|
|
378
378
|
},
|
|
379
379
|
{
|
|
380
380
|
path: "/admin/payout-accounts",
|
|
@@ -383,7 +383,7 @@ const Gn = {
|
|
|
383
383
|
sidebarDisplay: "Payout Accounts",
|
|
384
384
|
section: "payment-gateway"
|
|
385
385
|
},
|
|
386
|
-
component: () => import("./PayoutAccount-
|
|
386
|
+
component: () => import("./PayoutAccount-_3rSThA1.js")
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
path: "/admin/payout-accounts/:accountId",
|
|
@@ -392,7 +392,7 @@ const Gn = {
|
|
|
392
392
|
meta: {
|
|
393
393
|
parent: "mf-payment-admin.payout-account"
|
|
394
394
|
},
|
|
395
|
-
component: () => import("./PayoutAccountSetting-
|
|
395
|
+
component: () => import("./PayoutAccountSetting-BkFPooSa.js")
|
|
396
396
|
},
|
|
397
397
|
{
|
|
398
398
|
path: "/admin/onboarding",
|
|
@@ -401,7 +401,7 @@ const Gn = {
|
|
|
401
401
|
sidebarDisplay: "Payment Onboarding",
|
|
402
402
|
section: "payment-gateway"
|
|
403
403
|
},
|
|
404
|
-
component: () => import("./OnboardSubmission-
|
|
404
|
+
component: () => import("./OnboardSubmission-DRWeuOKJ.js")
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
path: "/admin/onboarding/:submissionId",
|
|
@@ -410,7 +410,7 @@ const Gn = {
|
|
|
410
410
|
meta: {
|
|
411
411
|
parent: "mf-payment-admin.onboard-submission"
|
|
412
412
|
},
|
|
413
|
-
component: () => import("./OnboardForm-
|
|
413
|
+
component: () => import("./OnboardForm-AB0mVuJ9.js")
|
|
414
414
|
},
|
|
415
415
|
{
|
|
416
416
|
path: "/admin/terminal/pos",
|
|
@@ -419,7 +419,7 @@ const Gn = {
|
|
|
419
419
|
sidebarDisplay: "POS",
|
|
420
420
|
section: "device"
|
|
421
421
|
},
|
|
422
|
-
component: () => import("./Terminal-
|
|
422
|
+
component: () => import("./Terminal-Bk-fLvmw.js"),
|
|
423
423
|
props: {
|
|
424
424
|
type: "POS"
|
|
425
425
|
}
|
|
@@ -431,7 +431,7 @@ const Gn = {
|
|
|
431
431
|
sidebarDisplay: "Kiosks",
|
|
432
432
|
section: "device"
|
|
433
433
|
},
|
|
434
|
-
component: () => import("./Terminal-
|
|
434
|
+
component: () => import("./Terminal-Bk-fLvmw.js"),
|
|
435
435
|
props: {
|
|
436
436
|
type: "KIOSK"
|
|
437
437
|
}
|
|
@@ -443,7 +443,7 @@ const Gn = {
|
|
|
443
443
|
sidebarDisplay: "Terminals",
|
|
444
444
|
section: "device"
|
|
445
445
|
},
|
|
446
|
-
component: () => import("./Terminal-
|
|
446
|
+
component: () => import("./Terminal-Bk-fLvmw.js"),
|
|
447
447
|
props: {
|
|
448
448
|
type: "TERMINAL"
|
|
449
449
|
}
|
|
@@ -455,7 +455,7 @@ const Gn = {
|
|
|
455
455
|
meta: {
|
|
456
456
|
parent: "mf-payment-admin.pos"
|
|
457
457
|
},
|
|
458
|
-
component: () => import("./TerminalSetting-
|
|
458
|
+
component: () => import("./TerminalSetting-BGtvOvPk.js")
|
|
459
459
|
},
|
|
460
460
|
{
|
|
461
461
|
path: "/admin/terminal/kiosk/:terminalId",
|
|
@@ -464,7 +464,7 @@ const Gn = {
|
|
|
464
464
|
meta: {
|
|
465
465
|
parent: "mf-payment-admin.kiosk"
|
|
466
466
|
},
|
|
467
|
-
component: () => import("./TerminalSetting-
|
|
467
|
+
component: () => import("./TerminalSetting-BGtvOvPk.js")
|
|
468
468
|
},
|
|
469
469
|
{
|
|
470
470
|
path: "/admin/terminal/terminal/:terminalId",
|
|
@@ -473,7 +473,7 @@ const Gn = {
|
|
|
473
473
|
meta: {
|
|
474
474
|
parent: "mf-payment-admin.terminal"
|
|
475
475
|
},
|
|
476
|
-
component: () => import("./TerminalSetting-
|
|
476
|
+
component: () => import("./TerminalSetting-BGtvOvPk.js")
|
|
477
477
|
},
|
|
478
478
|
{
|
|
479
479
|
path: "/admin/transaction",
|
|
@@ -481,7 +481,7 @@ const Gn = {
|
|
|
481
481
|
meta: {
|
|
482
482
|
sidebarDisplay: "Transactions"
|
|
483
483
|
},
|
|
484
|
-
component: () => import("./Transaction-
|
|
484
|
+
component: () => import("./Transaction-B5xuKV97.js")
|
|
485
485
|
},
|
|
486
486
|
{
|
|
487
487
|
path: "/admin/chargeback",
|
|
@@ -489,7 +489,7 @@ const Gn = {
|
|
|
489
489
|
meta: {
|
|
490
490
|
sidebarDisplay: "Chargebacks"
|
|
491
491
|
},
|
|
492
|
-
component: () => import("./Chargeback-
|
|
492
|
+
component: () => import("./Chargeback-BDRSyAmK.js")
|
|
493
493
|
},
|
|
494
494
|
{
|
|
495
495
|
path: "/admin/settlement",
|
|
@@ -497,7 +497,7 @@ const Gn = {
|
|
|
497
497
|
meta: {
|
|
498
498
|
sidebarDisplay: "Settlements"
|
|
499
499
|
},
|
|
500
|
-
component: () => import("./Settlement-
|
|
500
|
+
component: () => import("./Settlement-BPeUovFo.js")
|
|
501
501
|
},
|
|
502
502
|
{
|
|
503
503
|
path: "/admin/settlement/:settlementId",
|
|
@@ -506,7 +506,7 @@ const Gn = {
|
|
|
506
506
|
meta: {
|
|
507
507
|
parent: "mf-payment-admin.settlement"
|
|
508
508
|
},
|
|
509
|
-
component: () => import("./SettlementTransactions-
|
|
509
|
+
component: () => import("./SettlementTransactions-D7wfVl0P.js")
|
|
510
510
|
}
|
|
511
511
|
], We = [
|
|
512
512
|
{
|
|
@@ -516,7 +516,7 @@ const Gn = {
|
|
|
516
516
|
{
|
|
517
517
|
path: "/payout-account",
|
|
518
518
|
name: "mf-payment-payout-account",
|
|
519
|
-
component: () => import("./PayoutAccount-
|
|
519
|
+
component: () => import("./PayoutAccount-xYdw-qwo.js"),
|
|
520
520
|
meta: {
|
|
521
521
|
sidebarDisplay: "i18n:payment.routes.payout_account"
|
|
522
522
|
}
|
|
@@ -524,7 +524,7 @@ const Gn = {
|
|
|
524
524
|
{
|
|
525
525
|
path: "/onboard-submission",
|
|
526
526
|
name: "mf-payment-onboard-submission",
|
|
527
|
-
component: () => import("./OnboardSubmission-
|
|
527
|
+
component: () => import("./OnboardSubmission-Dnk7gYO_.js"),
|
|
528
528
|
meta: {
|
|
529
529
|
sidebarDisplay: "i18n:payment.routes.onboard_submission",
|
|
530
530
|
region: { MY: !0 }
|
|
@@ -534,7 +534,7 @@ const Gn = {
|
|
|
534
534
|
path: "/onboard-submission/:type/:submission?",
|
|
535
535
|
name: "mf-payment-onboard-submission-form",
|
|
536
536
|
props: !0,
|
|
537
|
-
component: () => import("./OnboardForm-
|
|
537
|
+
component: () => import("./OnboardForm-BSOqOm95.js"),
|
|
538
538
|
meta: {
|
|
539
539
|
parent: "mf-payment-onboard-submission"
|
|
540
540
|
}
|
|
@@ -542,7 +542,7 @@ const Gn = {
|
|
|
542
542
|
{
|
|
543
543
|
path: "/transaction-old",
|
|
544
544
|
name: "mf-payment-old-transaction",
|
|
545
|
-
component: () => import("./TransactionOld-
|
|
545
|
+
component: () => import("./TransactionOld-D8xULx8n.js"),
|
|
546
546
|
meta: {
|
|
547
547
|
sidebarDisplay: "i18n:payment.routes.transaction"
|
|
548
548
|
}
|
|
@@ -550,7 +550,7 @@ const Gn = {
|
|
|
550
550
|
{
|
|
551
551
|
path: "/transaction",
|
|
552
552
|
name: "mf-payment-transaction",
|
|
553
|
-
component: () => import("./Transaction-
|
|
553
|
+
component: () => import("./Transaction-CD3eAEsP.js"),
|
|
554
554
|
meta: {
|
|
555
555
|
sidebarDisplay: "i18n:payment.routes.transaction-new",
|
|
556
556
|
sidebarNew: !0
|
|
@@ -559,7 +559,7 @@ const Gn = {
|
|
|
559
559
|
{
|
|
560
560
|
path: "/settlement",
|
|
561
561
|
name: "mf-payment-settlement",
|
|
562
|
-
component: () => import("./Settlement-
|
|
562
|
+
component: () => import("./Settlement-BOQdhdzn.js"),
|
|
563
563
|
meta: {
|
|
564
564
|
sidebarDisplay: "i18n:payment.routes.settlement"
|
|
565
565
|
}
|
|
@@ -568,7 +568,7 @@ const Gn = {
|
|
|
568
568
|
path: "/settlement/:settlementId",
|
|
569
569
|
name: "mf-payment-settlement-transaction",
|
|
570
570
|
props: !0,
|
|
571
|
-
component: () => import("./SettlementTransactions-
|
|
571
|
+
component: () => import("./SettlementTransactions-CmzgEQs0.js"),
|
|
572
572
|
meta: {
|
|
573
573
|
parent: "mf-payment-settlement"
|
|
574
574
|
}
|
package/dist/app.js
CHANGED