@feedmepos/mf-payment 0.0.0-beta.33 → 0.0.0-beta.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-CRf5uapK.js → PayoutAccount-BF4TdtVz.js} +1 -1
- package/dist/{PayoutAccount-DSXNLvNP.js → PayoutAccount-D-9hzZyp.js} +1 -1
- package/dist/{TerminalTransaction-CoPJlBCt.js → TerminalTransaction-BEyzFREU.js} +26 -26
- package/dist/{TerminalTransaction-CwEwNN25.js → TerminalTransaction-CVcDmLvg.js} +1 -1
- package/dist/app.js +4 -4
- package/dist/package.json +1 -1
- package/dist/{payout-account-BKVSgJb4.js → payout-account-C1kHqPZb.js} +252 -252
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -3,7 +3,7 @@ import { p as z } from "./index-ApzEWD1P.js";
|
|
3
3
|
import { _ as I, u as S, c as h } from "./index-Cnxt2xmc.js";
|
4
4
|
import { defineStore as _ } from "pinia";
|
5
5
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
6
|
-
import { c as AA, P as j } from "./payout-account-
|
6
|
+
import { c as AA, P as j } from "./payout-account-C1kHqPZb.js";
|
7
7
|
import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
|
8
8
|
import { z as f, a as q } from "./validator-D5jtpt9A.js";
|
9
9
|
import { P as K } from "./PDFViewer-CjH_C1uT.js";
|
@@ -2,7 +2,7 @@ import { defineComponent as b, resolveComponent as m, openBlock as g, createBloc
|
|
2
2
|
import { u as S } from "./index-BgnU5ezY.js";
|
3
3
|
import { _ as O } from "./index-Cnxt2xmc.js";
|
4
4
|
import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
5
|
-
import { P as V } from "./payout-account-
|
5
|
+
import { P as V } from "./payout-account-C1kHqPZb.js";
|
6
6
|
import { p as D } from "./index-ApzEWD1P.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
8
|
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent as N, openBlock as _, createElementBlock as w, Fragment as F, unref as t, createCommentVNode as k, createElementVNode as
|
1
|
+
import { defineComponent as N, openBlock as _, createElementBlock as w, Fragment as F, unref as t, createCommentVNode as k, createElementVNode as d, resolveComponent as p, createBlock as R, normalizeClass as D, withCtx as C, toDisplayString as V, ref as K, watch as T, createVNode as i, isRef as g, h } from "vue";
|
2
2
|
import { e as l } from "./index-Cnxt2xmc.js";
|
3
3
|
import { h as I } from "./moment-h96o7c8I.js";
|
4
4
|
import { u as M } from "./index-BgnU5ezY.js";
|
@@ -20,13 +20,13 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
20
20
|
data: {}
|
21
21
|
},
|
22
22
|
setup(f) {
|
23
|
-
return (n,
|
23
|
+
return (n, s) => (_(), w(F, null, [
|
24
24
|
n.row.original.ecrGateway ? (_(), w("img", {
|
25
25
|
key: 0,
|
26
26
|
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
27
27
|
src: t(B)
|
28
28
|
}, null, 8, q)) : k("", !0),
|
29
|
-
|
29
|
+
d("img", {
|
30
30
|
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
31
31
|
src: t(L)(n.row.original.gateway)
|
32
32
|
}, null, 8, z)
|
@@ -40,17 +40,17 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
40
40
|
},
|
41
41
|
setup(f) {
|
42
42
|
const n = f;
|
43
|
-
function
|
43
|
+
function s() {
|
44
44
|
return n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
45
45
|
}
|
46
|
-
return (
|
46
|
+
return (o, m) => {
|
47
47
|
const c = p("FmBadge");
|
48
48
|
return _(), R(c, {
|
49
49
|
inline: "",
|
50
|
-
class: D(
|
50
|
+
class: D(s())
|
51
51
|
}, {
|
52
52
|
default: C(() => [
|
53
|
-
|
53
|
+
d("div", null, V(o.data.toUpperCase()), 1)
|
54
54
|
]),
|
55
55
|
_: 1
|
56
56
|
}, 8, ["class"]);
|
@@ -59,7 +59,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
59
59
|
}), J = { class: "flex justify-between mb-6 items-start" }, X = { class: "flex space-x-8 items-start" }, Z = { class: "flex space-x-4" }, fe = /* @__PURE__ */ N({
|
60
60
|
__name: "TerminalTransaction",
|
61
61
|
setup(f) {
|
62
|
-
const { currentRestaurant: n } = U(),
|
62
|
+
const { currentRestaurant: n } = U(), s = K(), { dateRange: o, status: m, searchKey: c } = M({
|
63
63
|
searchKey: "",
|
64
64
|
status: [l.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
65
65
|
dateRange: {
|
@@ -67,19 +67,19 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
67
67
|
endDate: I().endOf("day").toISOString()
|
68
68
|
}
|
69
69
|
});
|
70
|
-
T([
|
70
|
+
T([o, m], () => {
|
71
71
|
var e;
|
72
|
-
return (e =
|
72
|
+
return (e = s.value) == null ? void 0 : e.reset();
|
73
73
|
}), T(n, () => {
|
74
74
|
var e;
|
75
|
-
return (e =
|
75
|
+
return (e = s.value) == null ? void 0 : e.reset();
|
76
76
|
});
|
77
77
|
let A;
|
78
78
|
T(c, async () => {
|
79
79
|
A && clearTimeout(A), A = setTimeout(
|
80
80
|
() => {
|
81
81
|
var e;
|
82
|
-
return (e =
|
82
|
+
return (e = s.value) == null ? void 0 : e.reset();
|
83
83
|
},
|
84
84
|
700
|
85
85
|
);
|
@@ -103,8 +103,8 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
103
103
|
}
|
104
104
|
], E = function(e) {
|
105
105
|
const a = e;
|
106
|
-
let
|
107
|
-
return a.details.amount && (
|
106
|
+
let u = "-";
|
107
|
+
return a.details && a.details.amount && (u = G(a.details.amount).toFormat("$0.00")), {
|
108
108
|
id: e._id,
|
109
109
|
refId: e.refId,
|
110
110
|
terminalId: e.terminalId,
|
@@ -112,7 +112,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
112
112
|
action: e.action,
|
113
113
|
gateway: e.gateway,
|
114
114
|
ecrGateway: e.ecrGateway,
|
115
|
-
amount:
|
115
|
+
amount: u
|
116
116
|
};
|
117
117
|
}, O = [
|
118
118
|
{
|
@@ -171,17 +171,17 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
171
171
|
}
|
172
172
|
];
|
173
173
|
return (e, a) => {
|
174
|
-
const
|
174
|
+
const u = p("FmSearch"), y = p("FmSelect"), v = p("FmDateRangePicker");
|
175
175
|
return _(), R(j, {
|
176
176
|
title: "Offline Transactions",
|
177
177
|
description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
|
178
178
|
loading: !1
|
179
179
|
}, {
|
180
180
|
default: C(() => [
|
181
|
-
|
182
|
-
|
181
|
+
d("div", J, [
|
182
|
+
d("div", X, [
|
183
183
|
i(P),
|
184
|
-
i(
|
184
|
+
i(u, {
|
185
185
|
"model-value": t(c),
|
186
186
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => g(c) ? c.value = r : null),
|
187
187
|
class: "mr-8",
|
@@ -198,13 +198,13 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
198
198
|
items: S
|
199
199
|
}, null, 8, ["modelValue"]),
|
200
200
|
i(v, {
|
201
|
-
modelValue: t(
|
202
|
-
"onUpdate:modelValue": a[2] || (a[2] = (r) => g(
|
201
|
+
modelValue: t(o),
|
202
|
+
"onUpdate:modelValue": a[2] || (a[2] = (r) => g(o) ? o.value = r : null),
|
203
203
|
compare: "",
|
204
204
|
"show-predefined-range": ""
|
205
205
|
}, null, 8, ["modelValue"])
|
206
206
|
]),
|
207
|
-
|
207
|
+
d("div", Z, [
|
208
208
|
i(Y, {
|
209
209
|
button: {
|
210
210
|
appendIcon: "file_download",
|
@@ -213,14 +213,14 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
213
213
|
},
|
214
214
|
handler: () => {
|
215
215
|
var r;
|
216
|
-
return t(x).downloadTransactions(((r =
|
216
|
+
return t(x).downloadTransactions(((r = s.value) == null ? void 0 : r.data()) ?? []);
|
217
217
|
}
|
218
218
|
}, null, 8, ["handler"])
|
219
219
|
])
|
220
220
|
]),
|
221
221
|
i($, {
|
222
222
|
ref_key: "controller",
|
223
|
-
ref:
|
223
|
+
ref: s,
|
224
224
|
"column-defs": O,
|
225
225
|
"rows-defs": E,
|
226
226
|
paginate: (r, b) => t(x).readRestaurantTransactions({
|
@@ -228,8 +228,8 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
|
|
228
228
|
searchKey: t(c),
|
229
229
|
limit: r,
|
230
230
|
cursor: b,
|
231
|
-
start: t(
|
232
|
-
end: t(
|
231
|
+
start: t(o).startDate,
|
232
|
+
end: t(o).endDate
|
233
233
|
}),
|
234
234
|
onRowClick: () => {
|
235
235
|
}
|
@@ -117,7 +117,7 @@ const Y = { class: "flex" }, W = ["src"], j = ["src"], q = /* @__PURE__ */ g({
|
|
117
117
|
], v = function(e) {
|
118
118
|
const t = e;
|
119
119
|
let _ = "-";
|
120
|
-
return t.details.amount && (_ = B(t.details.amount).toFormat("$0.00")), {
|
120
|
+
return t.details && t.details.amount && (_ = B(t.details.amount).toFormat("$0.00")), {
|
121
121
|
id: e._id,
|
122
122
|
refId: e.refId,
|
123
123
|
owner: e.owner,
|
package/dist/app.js
CHANGED
@@ -9,7 +9,7 @@ const f = [
|
|
9
9
|
meta: {
|
10
10
|
sidebarDisplay: "Payout Accounts"
|
11
11
|
},
|
12
|
-
component: () => import("./PayoutAccount-
|
12
|
+
component: () => import("./PayoutAccount-D-9hzZyp.js")
|
13
13
|
},
|
14
14
|
{
|
15
15
|
path: "/admin/payout-accounts/:accountId",
|
@@ -37,7 +37,7 @@ const f = [
|
|
37
37
|
meta: {
|
38
38
|
sidebarDisplay: "Offline Transactions"
|
39
39
|
},
|
40
|
-
component: () => import("./TerminalTransaction-
|
40
|
+
component: () => import("./TerminalTransaction-CVcDmLvg.js")
|
41
41
|
},
|
42
42
|
{
|
43
43
|
path: "/admin/transaction",
|
@@ -69,7 +69,7 @@ const f = [
|
|
69
69
|
{
|
70
70
|
path: "/payout-account",
|
71
71
|
name: "mf-payment-payout-account",
|
72
|
-
component: () => import("./PayoutAccount-
|
72
|
+
component: () => import("./PayoutAccount-BF4TdtVz.js"),
|
73
73
|
meta: {
|
74
74
|
sidebarDisplay: "Payout Accounts"
|
75
75
|
}
|
@@ -80,7 +80,7 @@ const f = [
|
|
80
80
|
meta: {
|
81
81
|
sidebarDisplay: "Offline Transactions"
|
82
82
|
},
|
83
|
-
component: () => import("./TerminalTransaction-
|
83
|
+
component: () => import("./TerminalTransaction-BEyzFREU.js")
|
84
84
|
},
|
85
85
|
{
|
86
86
|
path: "/transaction",
|