@feedmepos/mf-payment 1.0.0-beta.5 → 1.0.0-beta.6
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
- package/dist/PDFViewer-xrBtzrlR.js +22426 -0
- package/dist/{PayoutAccount-V74CPAJr.js → PayoutAccount-CagbOYmv.js} +5 -5
- package/dist/{PayoutAccount-DZg-xSKt.js → PayoutAccount-CkDd9qfH.js} +4 -4
- package/dist/{PayoutAccountSetting-kUQLeAcb.js → PayoutAccountSetting-CmgVLhdp.js} +4 -4
- package/dist/{Settlement-CHwtH6hm.js → Settlement-B1-WmCwC.js} +41 -42
- package/dist/Settlement-BSOQRlp1.js +145 -0
- package/dist/{SettlementTransactions-C281649y.js → SettlementTransactions-Cqd2raea.js} +4 -4
- package/dist/{SettlementTransactions-CBohm3KC.js → SettlementTransactions-JTwD_Vuq.js} +4 -4
- package/dist/{Terminal-gxGnjFGc.js → Terminal-DvlTwA6V.js} +4 -4
- package/dist/{TerminalSetting--ZAJJ_Hf.js → TerminalSetting-7VBm1RRK.js} +3 -3
- package/dist/{TerminalTransaction-DdESjZJo.js → TerminalTransaction-C1egvX6I.js} +112 -110
- package/dist/{TerminalTransaction-CfCURihE.js → TerminalTransaction-CZCsCpEp.js} +77 -75
- package/dist/{Transaction-BbGbcDvk.js → Transaction-B3ZWKg6Q.js} +114 -115
- package/dist/Transaction-B_0nUmpf.js +238 -0
- package/dist/{app-9P8d2JCE.js → app-CLnEntGO.js} +179 -179
- package/dist/app.js +1 -1
- package/dist/{assets-NrCec-W0.js → assets-BCAivOTo.js} +1 -1
- package/dist/components/AdminLayout.vue.d.ts +8 -13
- package/dist/components/AutoCopyCell.vue.d.ts +3 -4
- package/dist/components/DateRangePicker.vue.d.ts +13 -0
- package/dist/components/Layout.vue.d.ts +8 -13
- package/dist/components/PDFViewer.vue.d.ts +1 -1
- package/dist/components/RouteCell.vue.d.ts +5 -6
- package/dist/components/SelectAll.vue.d.ts +2 -2
- package/dist/{index-CWaKb7bG.js → index-4meiCsRz.js} +1566 -1556
- package/dist/{index-BwcJZFsi.js → index-BFYq3eq8.js} +1 -1
- package/dist/{index-7KNaibcq.js → index-BwFHcZlm.js} +1 -1
- package/dist/{index-BWUtjGg7.js → index-CBa6eapm.js} +1 -1
- package/dist/{index-CojhNtuG.js → index-CETCXB6X.js} +1 -1
- package/dist/{index-DbJpbpSs.js → index-CbsnpMWl.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js → index.vue_vue_type_script_setup_true_lang-CKOlikHb.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DI0q_Sig.js → payout-account-4O7cL-1_.js} +2 -2
- package/dist/{transaction-BTf6KnZV.js → transaction-COjHU7aN.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Actions.vue.d.ts +4 -6
- package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Method.vue.d.ts +3 -5
- package/dist/views/admin/settlement/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +1 -1
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +7 -79
- package/dist/views/admin/terminal/cell/ID.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -4
- package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +3 -6
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +3 -4
- package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/admin/transaction/cell/Method.vue.d.ts +3 -5
- package/dist/views/admin/transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/Bank.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/IsActive.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
- package/dist/views/payout-account/cell/Status.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Actions.vue.d.ts +4 -6
- package/dist/views/settlement/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Method.vue.d.ts +3 -5
- package/dist/views/settlement/cell/Status.vue.d.ts +3 -5
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Gateway.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Method.vue.d.ts +3 -5
- package/dist/views/transaction/cell/Status.vue.d.ts +3 -5
- package/package.json +1 -1
- package/dist/PDFViewer-CjH_C1uT.js +0 -21792
- package/dist/Settlement-C49oMOGR.js +0 -149
- package/dist/Transaction-BEls8K8W.js +0 -239
@@ -1,31 +1,32 @@
|
|
1
|
-
import { defineComponent as N, openBlock as
|
2
|
-
import { c as m } from "./index-
|
3
|
-
import { h
|
4
|
-
import { u as
|
5
|
-
import { _ as
|
1
|
+
import { defineComponent as N, openBlock as p, createElementBlock as C, Fragment as O, unref as r, createCommentVNode as F, createElementVNode as d, resolveComponent as I, createBlock as v, normalizeClass as D, withCtx as y, toDisplayString as V, ref as M, watch as T, createVNode as i, isRef as _, h as g } from "vue";
|
2
|
+
import { c as m } from "./index-4meiCsRz.js";
|
3
|
+
import { h } from "./moment-h96o7c8I.js";
|
4
|
+
import { u as k } from "./index-BwFHcZlm.js";
|
5
|
+
import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-CKOlikHb.js";
|
6
6
|
import "@feedmepos/ui-library";
|
7
|
-
import { g as $ } from "./assets-
|
8
|
-
import { E as
|
9
|
-
import { d as
|
10
|
-
import { _ as
|
11
|
-
import { useCoreStore as
|
7
|
+
import { g as $ } from "./assets-BCAivOTo.js";
|
8
|
+
import { E as K, t as R } from "./index-CbsnpMWl.js";
|
9
|
+
import { d as L } from "./dinero-CIVmXLL-.js";
|
10
|
+
import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
11
|
+
import { useCoreStore as G } from "@feedmepos/mf-common";
|
12
12
|
import { _ as U } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
13
|
-
import { _ as
|
14
|
-
import { _ as
|
15
|
-
import { _ as
|
13
|
+
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
|
14
|
+
import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
15
|
+
import { _ as j } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
16
|
+
import { _ as q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
16
17
|
const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
17
18
|
__name: "Gateway",
|
18
19
|
props: {
|
19
20
|
row: {},
|
20
21
|
data: {}
|
21
22
|
},
|
22
|
-
setup(
|
23
|
-
return (o,
|
24
|
-
o.row.original.ecrGateway ? (
|
23
|
+
setup(f) {
|
24
|
+
return (o, n) => (p(), C(O, null, [
|
25
|
+
o.row.original.ecrGateway ? (p(), C("img", {
|
25
26
|
key: 0,
|
26
27
|
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
27
|
-
src: r(
|
28
|
-
}, null, 8, z)) :
|
28
|
+
src: r(K)
|
29
|
+
}, null, 8, z)) : F("", !0),
|
29
30
|
d("img", {
|
30
31
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
31
32
|
src: r($)(o.row.original.gateway)
|
@@ -38,48 +39,48 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
38
39
|
row: {},
|
39
40
|
data: {}
|
40
41
|
},
|
41
|
-
setup(
|
42
|
-
const o =
|
43
|
-
function
|
42
|
+
setup(f) {
|
43
|
+
const o = f;
|
44
|
+
function n() {
|
44
45
|
return o.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : o.data === m.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
45
46
|
}
|
46
|
-
return (l,
|
47
|
-
const
|
48
|
-
return
|
47
|
+
return (l, s) => {
|
48
|
+
const c = I("FmBadge");
|
49
|
+
return p(), v(c, {
|
49
50
|
inline: "",
|
50
|
-
class:
|
51
|
+
class: D(n())
|
51
52
|
}, {
|
52
53
|
default: y(() => [
|
53
|
-
d("div", null,
|
54
|
+
d("div", null, V(l.data.toUpperCase()), 1)
|
54
55
|
]),
|
55
56
|
_: 1
|
56
57
|
}, 8, ["class"]);
|
57
58
|
};
|
58
59
|
}
|
59
|
-
}), X = { class: "flex justify-between mb-6 items-start" }, Z = { class: "flex space-x-8 items-start" }, ee = { class: "flex space-x-4" },
|
60
|
+
}), X = { class: "flex justify-between mb-6 items-start" }, Z = { class: "flex space-x-8 items-start" }, ee = { class: "flex space-x-4 self-center" }, ae = { class: "mb-6" }, ge = /* @__PURE__ */ N({
|
60
61
|
__name: "TerminalTransaction",
|
61
|
-
setup(
|
62
|
-
const { currentRestaurant: o } =
|
62
|
+
setup(f) {
|
63
|
+
const { currentRestaurant: o } = G(), n = M(), { dateRange: l, status: s, searchKey: c } = k({
|
63
64
|
searchKey: "",
|
64
65
|
status: [m.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
65
66
|
dateRange: {
|
66
|
-
startDate:
|
67
|
-
endDate:
|
67
|
+
startDate: h().startOf("day").format("YYYY-MM-DD"),
|
68
|
+
endDate: h().endOf("day").format("YYYY-MM-DD")
|
68
69
|
}
|
69
70
|
});
|
70
|
-
|
71
|
+
T([l, s], () => {
|
71
72
|
var e;
|
72
|
-
return (e =
|
73
|
-
}),
|
73
|
+
return (e = n.value) == null ? void 0 : e.reset();
|
74
|
+
}), T(o, () => {
|
74
75
|
var e;
|
75
|
-
return (e =
|
76
|
+
return (e = n.value) == null ? void 0 : e.reset();
|
76
77
|
});
|
77
|
-
let
|
78
|
-
|
79
|
-
|
78
|
+
let A;
|
79
|
+
T(c, async () => {
|
80
|
+
A && clearTimeout(A), A = setTimeout(
|
80
81
|
() => {
|
81
82
|
var e;
|
82
|
-
return (e =
|
83
|
+
return (e = n.value) == null ? void 0 : e.reset();
|
83
84
|
},
|
84
85
|
700
|
85
86
|
);
|
@@ -101,28 +102,28 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
101
102
|
label: "Failed",
|
102
103
|
value: m.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
|
103
104
|
}
|
104
|
-
],
|
105
|
+
], E = function(e) {
|
105
106
|
const a = e;
|
106
107
|
let u = "-";
|
107
|
-
return a.details && a.details.amount && (u =
|
108
|
+
return a.details && a.details.amount && (u = L(a.details.amount).toFormat("$0.00")), {
|
108
109
|
id: e._id,
|
109
110
|
orderId: e.orderId,
|
110
111
|
refId: e.refId,
|
111
112
|
terminalId: e.terminalId,
|
112
|
-
transactionAt:
|
113
|
+
transactionAt: h(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
|
113
114
|
action: e.action,
|
114
115
|
gateway: e.gateway,
|
115
116
|
ecrGateway: e.ecrGateway,
|
116
117
|
amount: u
|
117
118
|
};
|
118
|
-
},
|
119
|
+
}, S = [
|
119
120
|
{
|
120
121
|
accessorKey: "id",
|
121
122
|
header: () => "Transaction ID",
|
122
123
|
meta: {
|
123
124
|
textAlign: "left"
|
124
125
|
},
|
125
|
-
cell: ({ cell: e }) =>
|
126
|
+
cell: ({ cell: e }) => g(P, { data: e.getValue() })
|
126
127
|
},
|
127
128
|
{
|
128
129
|
accessorKey: "orderId",
|
@@ -145,7 +146,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
145
146
|
textAlign: "center",
|
146
147
|
maxWidth: "128px"
|
147
148
|
},
|
148
|
-
cell: ({ cell: e, row: a }) =>
|
149
|
+
cell: ({ cell: e, row: a }) => g(H, { row: a, data: e.getValue() })
|
149
150
|
},
|
150
151
|
{
|
151
152
|
accessorKey: "action",
|
@@ -154,7 +155,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
154
155
|
textAlign: "right",
|
155
156
|
maxWidth: "132px"
|
156
157
|
},
|
157
|
-
cell: ({ cell: e, row: a }) =>
|
158
|
+
cell: ({ cell: e, row: a }) => g(J, { row: a, data: e.getValue() })
|
158
159
|
},
|
159
160
|
{
|
160
161
|
accessorKey: "amount",
|
@@ -179,8 +180,8 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
179
180
|
}
|
180
181
|
];
|
181
182
|
return (e, a) => {
|
182
|
-
const u =
|
183
|
-
return
|
183
|
+
const u = I("FmSearch"), w = I("FmSelect");
|
184
|
+
return p(), v(W, {
|
184
185
|
title: "Offline Transactions",
|
185
186
|
description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
|
186
187
|
loading: !1
|
@@ -188,17 +189,17 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
188
189
|
default: y(() => [
|
189
190
|
d("div", X, [
|
190
191
|
d("div", Z, [
|
191
|
-
|
192
|
-
|
193
|
-
"model-value": r(
|
194
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) =>
|
192
|
+
i(B),
|
193
|
+
i(u, {
|
194
|
+
"model-value": r(c),
|
195
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => _(c) ? c.value = t : null),
|
195
196
|
class: "mr-8",
|
196
197
|
label: "Search",
|
197
198
|
placeholder: "Search Transactions ..."
|
198
199
|
}, null, 8, ["model-value"]),
|
199
|
-
|
200
|
-
modelValue: r(
|
201
|
-
"onUpdate:modelValue": a[2] || (a[2] = (t) =>
|
200
|
+
i(w, {
|
201
|
+
modelValue: r(s),
|
202
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => _(s) ? s.value = t : null),
|
202
203
|
class: "mr-6 w-[300px]",
|
203
204
|
label: "Status",
|
204
205
|
"label-mark": "required",
|
@@ -206,22 +207,17 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
206
207
|
items: x
|
207
208
|
}, {
|
208
209
|
"prepend-menu": y(() => [
|
209
|
-
|
210
|
-
modelValue: r(
|
211
|
-
"onUpdate:modelValue": a[1] || (a[1] = (t) =>
|
210
|
+
i(j, {
|
211
|
+
modelValue: r(s),
|
212
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => _(s) ? s.value = t : null),
|
212
213
|
items: x
|
213
214
|
}, null, 8, ["modelValue"])
|
214
215
|
]),
|
215
216
|
_: 1
|
216
|
-
}, 8, ["modelValue"])
|
217
|
-
c(b, {
|
218
|
-
modelValue: r(l),
|
219
|
-
"onUpdate:modelValue": a[3] || (a[3] = (t) => p(l) ? l.value = t : null),
|
220
|
-
"show-predefined-range": ""
|
221
|
-
}, null, 8, ["modelValue"])
|
217
|
+
}, 8, ["modelValue"])
|
222
218
|
]),
|
223
219
|
d("div", ee, [
|
224
|
-
|
220
|
+
i(U, {
|
225
221
|
button: {
|
226
222
|
appendIcon: "file_download",
|
227
223
|
variant: "primary",
|
@@ -229,21 +225,27 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
229
225
|
},
|
230
226
|
handler: () => {
|
231
227
|
var t;
|
232
|
-
return r(
|
228
|
+
return r(R).downloadTransactions(((t = n.value) == null ? void 0 : t.data()) ?? []);
|
233
229
|
}
|
234
230
|
}, null, 8, ["handler"])
|
235
231
|
])
|
236
232
|
]),
|
237
|
-
|
233
|
+
d("div", ae, [
|
234
|
+
i(q, {
|
235
|
+
modelValue: r(l),
|
236
|
+
"onUpdate:modelValue": a[3] || (a[3] = (t) => _(l) ? l.value = t : null)
|
237
|
+
}, null, 8, ["modelValue"])
|
238
|
+
]),
|
239
|
+
i(Y, {
|
238
240
|
ref_key: "controller",
|
239
|
-
ref:
|
240
|
-
"column-defs":
|
241
|
-
"rows-defs":
|
242
|
-
paginate: (t,
|
243
|
-
status: r(
|
244
|
-
searchKey: r(
|
241
|
+
ref: n,
|
242
|
+
"column-defs": S,
|
243
|
+
"rows-defs": E,
|
244
|
+
paginate: (t, b) => r(R).readRestaurantTransactions({
|
245
|
+
status: r(s),
|
246
|
+
searchKey: r(c),
|
245
247
|
limit: t,
|
246
|
-
cursor:
|
248
|
+
cursor: b,
|
247
249
|
start: r(l).startDate,
|
248
250
|
end: r(l).endDate
|
249
251
|
})
|
@@ -255,5 +257,5 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
255
257
|
}
|
256
258
|
});
|
257
259
|
export {
|
258
|
-
|
260
|
+
ge as default
|
259
261
|
};
|