@feedmepos/mf-payment 0.0.0-beta.21 → 0.0.0-beta.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js +28 -0
- package/dist/{PayoutAccount-DEEuJq8a.js → PayoutAccount-6kS5Xjs8.js} +5 -5
- package/dist/{PayoutAccount-Fg0fD2z1.js → PayoutAccount-BYNRryiW.js} +3 -3
- package/dist/{PayoutAccountSetting-D6rCau39.js → PayoutAccountSetting-B26ApwsY.js} +3 -3
- package/dist/{Settlement-KxjeLkyq.js → Settlement-CY0-gXn5.js} +25 -23
- package/dist/{Settlement-DO3KQc7V.js → Settlement-DTE8p3LA.js} +27 -25
- package/dist/{SettlementTransactions-BHm0Xr73.js → SettlementTransactions-BJlBWR1G.js} +4 -4
- package/dist/{SettlementTransactions-D8SewaiK.js → SettlementTransactions-C4tIk6nO.js} +4 -4
- package/dist/Terminal-C4gOl3zs.js +339 -0
- package/dist/{TerminalSetting-CIFHaoHX.js → TerminalSetting-DC9NBozT.js} +3 -3
- package/dist/TerminalTransaction-BUT01dUv.js +243 -0
- package/dist/{TerminalTransaction-B2PFfPKP.js → TerminalTransaction-CCdbfxx0.js} +66 -63
- package/dist/{Transaction-CM_VKdEN.js → Transaction-60yViCMI.js} +53 -53
- package/dist/{Transaction-D7ZuZ-IB.js → Transaction-CoCZaBfu.js} +4 -4
- package/dist/api/index.d.ts +1 -0
- package/dist/api/terminal-transaction/index.d.ts +1 -1
- package/dist/app.js +13 -13
- package/dist/{assets-CLiVU4As.js → assets-BmFExmpA.js} +1 -1
- package/dist/clipboard-4jh1WteU.js +10 -0
- package/dist/components/AutoCopyCell.vue.d.ts +6 -0
- package/dist/{index-ByCQqfan.js → index-Bvb4T6xz.js} +1 -1
- package/dist/{index-CpIkc_Lq.js → index-CDgQhs3k.js} +1 -1
- package/dist/index-DeF94ACV.js +34 -0
- package/dist/{index-eVOVYNBC.js → index-Df0izARr.js} +1 -1
- package/dist/{index-DvsSYfvP.js → index-Jtghafz6.js} +1 -1
- package/dist/{index-CkIbCIHJ.js → index-_qikPh5K.js} +768 -766
- package/dist/{index.vue_vue_type_script_setup_true_lang-sNgZ-dwX.js → index.vue_vue_type_script_setup_true_lang-CfU6stly.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-Bj0y4ywE.js → payout-account-BQmBfucp.js} +230 -230
- package/dist/{transaction-C1MtaXOd.js → transaction-B5QUg556.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/Terminal-CG3mIv6Z.js +0 -318
- package/dist/TerminalTransaction-CnfWv95d.js +0 -230
- package/dist/index-DVSsAdF3.js +0 -26
package/package.json
CHANGED
@@ -1,318 +0,0 @@
|
|
1
|
-
import { defineComponent as x, openBlock as m, createElementBlock as $, createTextVNode as N, createElementVNode as k, toDisplayString as U, resolveComponent as c, createBlock as f, normalizeClass as R, withCtx as I, createCommentVNode as F, createVNode as _, ref as b, computed as z, unref as i, watch as P, isRef as Y, h as V } from "vue";
|
2
|
-
import "./index-CkIbCIHJ.js";
|
3
|
-
import { h as M } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as j } from "./index-ByCQqfan.js";
|
5
|
-
import { _ as L } from "./index.vue_vue_type_script_setup_true_lang-sNgZ-dwX.js";
|
6
|
-
import { _ as q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
7
|
-
import { useDialogChild as O, useDialog as Q, useSnackbar as G } from "@feedmepos/ui-library";
|
8
|
-
import { t as w } from "./index-DvsSYfvP.js";
|
9
|
-
import { u as S } from "./error-K1CakhA9.js";
|
10
|
-
import { z as D, a as K } from "./validator-D5jtpt9A.js";
|
11
|
-
import { useCoreStore as H } from "@feedmepos/mf-common";
|
12
|
-
import { w as J } from "./Modal-DB8M9o1T.js";
|
13
|
-
import { useRouter as W } from "vue-router";
|
14
|
-
const X = { class: "t-caption" }, Z = { class: "t-h1 my-6 text-center" }, ee = /* @__PURE__ */ x({
|
15
|
-
__name: "TerminalBindCodeDialog",
|
16
|
-
props: {
|
17
|
-
code: {
|
18
|
-
type: String,
|
19
|
-
required: !0
|
20
|
-
}
|
21
|
-
},
|
22
|
-
setup(d) {
|
23
|
-
return (n, o) => (m(), $("div", X, [
|
24
|
-
o[0] || (o[0] = N(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
|
25
|
-
k("div", Z, U(d.code), 1)
|
26
|
-
]));
|
27
|
-
}
|
28
|
-
}), te = /* @__PURE__ */ x({
|
29
|
-
__name: "ID",
|
30
|
-
props: {
|
31
|
-
row: {},
|
32
|
-
data: {}
|
33
|
-
},
|
34
|
-
setup(d) {
|
35
|
-
const n = d;
|
36
|
-
function o() {
|
37
|
-
return n.row.original.status === "Active" ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
|
38
|
-
}
|
39
|
-
return (r, s) => {
|
40
|
-
const a = c("FmBadge");
|
41
|
-
return m(), f(a, {
|
42
|
-
inline: "",
|
43
|
-
class: R(o())
|
44
|
-
}, {
|
45
|
-
default: I(() => [
|
46
|
-
k("div", null, U(r.data), 1)
|
47
|
-
]),
|
48
|
-
_: 1
|
49
|
-
}, 8, ["class"]);
|
50
|
-
};
|
51
|
-
}
|
52
|
-
}), ne = { class: "flex" }, oe = /* @__PURE__ */ x({
|
53
|
-
__name: "Actions",
|
54
|
-
props: {
|
55
|
-
data: {}
|
56
|
-
},
|
57
|
-
emits: ["link", "unlink", "edit"],
|
58
|
-
setup(d, { emit: n }) {
|
59
|
-
const o = n;
|
60
|
-
return (r, s) => {
|
61
|
-
const a = c("FmButton");
|
62
|
-
return m(), $("div", ne, [
|
63
|
-
r.data.deviceId ? F("", !0) : (m(), f(a, {
|
64
|
-
key: 0,
|
65
|
-
variant: "plain",
|
66
|
-
"prepend-icon": "link",
|
67
|
-
onClick: s[0] || (s[0] = () => o("link"))
|
68
|
-
})),
|
69
|
-
r.data.deviceId ? (m(), f(a, {
|
70
|
-
key: 1,
|
71
|
-
variant: "plain",
|
72
|
-
"prepend-icon": "link_off",
|
73
|
-
onClick: s[1] || (s[1] = () => o("unlink"))
|
74
|
-
})) : F("", !0),
|
75
|
-
_(a, {
|
76
|
-
variant: "plain",
|
77
|
-
"prepend-icon": "edit",
|
78
|
-
onClick: s[2] || (s[2] = () => o("edit"))
|
79
|
-
})
|
80
|
-
]);
|
81
|
-
};
|
82
|
-
}
|
83
|
-
}), ae = /* @__PURE__ */ x({
|
84
|
-
__name: "TerminalDialog",
|
85
|
-
props: {
|
86
|
-
terminal: {
|
87
|
-
type: Object
|
88
|
-
}
|
89
|
-
},
|
90
|
-
setup(d) {
|
91
|
-
var g, C, T;
|
92
|
-
const n = d, o = H(), r = O(), s = b(), a = b((g = n.terminal) == null ? void 0 : g.name), u = b((C = n.terminal) == null ? void 0 : C.referenceId), v = b(((T = n.terminal) == null ? void 0 : T.status) === "Active"), B = z(() => o.restaurants.value.map((t) => ({
|
93
|
-
label: t.profile.name,
|
94
|
-
value: t._id
|
95
|
-
})));
|
96
|
-
return (t, e) => {
|
97
|
-
const l = c("FmSelect"), y = c("FmTextField"), p = c("FmSwitch"), A = c("FmButton"), E = c("FmForm");
|
98
|
-
return m(), f(E, {
|
99
|
-
ref: s.value,
|
100
|
-
class: "flex flex-col gap-16 mb-6",
|
101
|
-
onValidationSuccess: e[3] || (e[3] = () => {
|
102
|
-
i(r).emitData({ name: a.value, referenceId: u.value, status: v.value ? "Active" : "Inactive" }), i(r).emitAction("primary");
|
103
|
-
})
|
104
|
-
}, {
|
105
|
-
default: I(() => [
|
106
|
-
n.terminal ? F("", !0) : (m(), f(l, {
|
107
|
-
key: 0,
|
108
|
-
modelValue: u.value,
|
109
|
-
"onUpdate:modelValue": e[0] || (e[0] = (h) => u.value = h),
|
110
|
-
label: "Restaurant",
|
111
|
-
items: B.value,
|
112
|
-
rules: i(D)(i(K).string())
|
113
|
-
}, null, 8, ["modelValue", "items", "rules"])),
|
114
|
-
_(y, {
|
115
|
-
modelValue: a.value,
|
116
|
-
"onUpdate:modelValue": e[1] || (e[1] = (h) => a.value = h),
|
117
|
-
label: "Terminal Name",
|
118
|
-
rules: i(D)(i(K).string())
|
119
|
-
}, null, 8, ["modelValue", "rules"]),
|
120
|
-
n.terminal ? (m(), f(p, {
|
121
|
-
key: 1,
|
122
|
-
modelValue: v.value,
|
123
|
-
"onUpdate:modelValue": e[2] || (e[2] = (h) => v.value = h),
|
124
|
-
label: "Status"
|
125
|
-
}, null, 8, ["modelValue"])) : F("", !0),
|
126
|
-
_(A, {
|
127
|
-
type: "submit",
|
128
|
-
label: "Create"
|
129
|
-
})
|
130
|
-
]),
|
131
|
-
_: 1
|
132
|
-
}, 512);
|
133
|
-
};
|
134
|
-
}
|
135
|
-
}), re = { class: "flex justify-between mb-6 items-center" }, se = { class: "flex space-x-4" }, le = { class: "flex space-x-4" }, ke = /* @__PURE__ */ x({
|
136
|
-
__name: "Terminal",
|
137
|
-
setup(d) {
|
138
|
-
const n = b(), { searchKey: o } = j({
|
139
|
-
searchKey: ""
|
140
|
-
});
|
141
|
-
let r;
|
142
|
-
P(o, async () => {
|
143
|
-
r && clearTimeout(r), r = setTimeout(
|
144
|
-
() => {
|
145
|
-
var t;
|
146
|
-
return (t = n.value) == null ? void 0 : t.reset();
|
147
|
-
},
|
148
|
-
700
|
149
|
-
);
|
150
|
-
});
|
151
|
-
const s = W(), a = Q(), u = G();
|
152
|
-
async function v(t) {
|
153
|
-
J(
|
154
|
-
a,
|
155
|
-
"Terminal Unbind",
|
156
|
-
"Are you sure to unbind terminal from device? This action cannot be revert and device will be logged out!",
|
157
|
-
async () => {
|
158
|
-
var e;
|
159
|
-
try {
|
160
|
-
await w.unbind(t), (e = n.value) == null || e.reset(), u.open({
|
161
|
-
type: "success",
|
162
|
-
message: "Terminal unbind successfully"
|
163
|
-
});
|
164
|
-
} catch (l) {
|
165
|
-
u.open({
|
166
|
-
type: "error",
|
167
|
-
title: "Error occurs when unbind terminal",
|
168
|
-
message: S(l)
|
169
|
-
});
|
170
|
-
}
|
171
|
-
}
|
172
|
-
);
|
173
|
-
}
|
174
|
-
async function B(t) {
|
175
|
-
const e = await w.getBindCode(t);
|
176
|
-
a.open({
|
177
|
-
title: "Terminal Bind Code",
|
178
|
-
closeButton: !0,
|
179
|
-
overlay: !0,
|
180
|
-
contentComponent: ee,
|
181
|
-
contentComponentProps: { code: e }
|
182
|
-
});
|
183
|
-
}
|
184
|
-
async function g(t) {
|
185
|
-
a.open({
|
186
|
-
title: t ? "Update Terminal" : "Create New Terminal",
|
187
|
-
closeButton: !0,
|
188
|
-
overlay: !0,
|
189
|
-
contentComponent: ae,
|
190
|
-
contentComponentProps: { terminal: t }
|
191
|
-
}).onPrimary(async (e) => {
|
192
|
-
var l;
|
193
|
-
a.close();
|
194
|
-
try {
|
195
|
-
await w.create(e), (l = n.value) == null || l.reset(), u.open({
|
196
|
-
type: "success",
|
197
|
-
message: t ? "Terminal udpated successfully" : "Terminal created successfully."
|
198
|
-
});
|
199
|
-
} catch (y) {
|
200
|
-
u.open({
|
201
|
-
type: "error",
|
202
|
-
title: "Error occurs when create terminal",
|
203
|
-
message: S(y)
|
204
|
-
});
|
205
|
-
}
|
206
|
-
});
|
207
|
-
}
|
208
|
-
const C = function(t) {
|
209
|
-
return {
|
210
|
-
id: t._id,
|
211
|
-
status: t.status,
|
212
|
-
referenceId: t.referenceId,
|
213
|
-
name: t.name,
|
214
|
-
deviceId: t.deviceId,
|
215
|
-
updatedAt: M(t.updatedAt).format("YYYY-MM-DD hh:mm:ss")
|
216
|
-
};
|
217
|
-
}, T = [
|
218
|
-
{
|
219
|
-
accessorKey: "id",
|
220
|
-
header: () => "Terminal ID",
|
221
|
-
meta: {
|
222
|
-
textAlign: "right"
|
223
|
-
},
|
224
|
-
cell: ({ cell: t, row: e }) => V(te, { row: e, data: t.getValue() })
|
225
|
-
},
|
226
|
-
{
|
227
|
-
accessorKey: "name",
|
228
|
-
header: () => "Name",
|
229
|
-
meta: {
|
230
|
-
textAlign: "left"
|
231
|
-
}
|
232
|
-
},
|
233
|
-
{
|
234
|
-
accessorKey: "referenceId",
|
235
|
-
header: () => "Reference",
|
236
|
-
meta: {
|
237
|
-
textAlign: "left"
|
238
|
-
}
|
239
|
-
},
|
240
|
-
{
|
241
|
-
accessorKey: "deviceId",
|
242
|
-
header: () => "Bound Device Id",
|
243
|
-
meta: {
|
244
|
-
textAlign: "left"
|
245
|
-
}
|
246
|
-
},
|
247
|
-
{
|
248
|
-
accessorKey: "updatedAt",
|
249
|
-
header: () => "Last Updated",
|
250
|
-
meta: {
|
251
|
-
textAlign: "left"
|
252
|
-
}
|
253
|
-
},
|
254
|
-
{
|
255
|
-
accessorKey: "id",
|
256
|
-
header: () => "Actions",
|
257
|
-
meta: {
|
258
|
-
textAlign: "center"
|
259
|
-
},
|
260
|
-
cell: ({ row: t }) => {
|
261
|
-
var l;
|
262
|
-
const e = (l = n.value) == null ? void 0 : l.pageData().at(t.index);
|
263
|
-
return V(oe, {
|
264
|
-
data: e,
|
265
|
-
onLink: () => B(e._id),
|
266
|
-
onUnlink: () => v(e._id),
|
267
|
-
onEdit: () => g(e)
|
268
|
-
});
|
269
|
-
}
|
270
|
-
}
|
271
|
-
];
|
272
|
-
return (t, e) => {
|
273
|
-
const l = c("FmSearch"), y = c("FmButton");
|
274
|
-
return m(), f(q, {
|
275
|
-
title: "Terminals",
|
276
|
-
loading: !1
|
277
|
-
}, {
|
278
|
-
default: I(() => [
|
279
|
-
k("div", re, [
|
280
|
-
k("div", se, [
|
281
|
-
_(l, {
|
282
|
-
"model-value": i(o),
|
283
|
-
"onUpdate:modelValue": e[0] || (e[0] = (p) => Y(o) ? o.value = p : null),
|
284
|
-
class: "mr-8",
|
285
|
-
label: "Search",
|
286
|
-
placeholder: "Search Terminals ..."
|
287
|
-
}, null, 8, ["model-value"])
|
288
|
-
]),
|
289
|
-
k("div", le, [
|
290
|
-
_(y, {
|
291
|
-
label: "Create",
|
292
|
-
icon: "add",
|
293
|
-
onClick: e[1] || (e[1] = () => g())
|
294
|
-
})
|
295
|
-
])
|
296
|
-
]),
|
297
|
-
_(L, {
|
298
|
-
ref_key: "controller",
|
299
|
-
ref: n,
|
300
|
-
"column-defs": T,
|
301
|
-
"rows-defs": C,
|
302
|
-
paginate: (p, A) => i(w).read({ searchKey: i(o), limit: p, cursor: A }),
|
303
|
-
onRowClick: e[2] || (e[2] = (p) => i(s).push({
|
304
|
-
name: "mf-payment-admin.terminal-setting",
|
305
|
-
params: {
|
306
|
-
terminalId: p._id
|
307
|
-
}
|
308
|
-
}))
|
309
|
-
}, null, 8, ["paginate"])
|
310
|
-
]),
|
311
|
-
_: 1
|
312
|
-
});
|
313
|
-
};
|
314
|
-
}
|
315
|
-
});
|
316
|
-
export {
|
317
|
-
ke as default
|
318
|
-
};
|
@@ -1,230 +0,0 @@
|
|
1
|
-
import { defineComponent as T, openBlock as g, createElementBlock as E, unref as r, resolveComponent as d, createBlock as x, normalizeClass as v, withCtx as w, createElementVNode as p, toDisplayString as b, ref as D, watch as h, createVNode as i, isRef as f, h as N } from "vue";
|
2
|
-
import { c as o } from "./index-CkIbCIHJ.js";
|
3
|
-
import { h as A } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as k } from "./index-ByCQqfan.js";
|
5
|
-
import { _ as K } from "./index.vue_vue_type_script_setup_true_lang-sNgZ-dwX.js";
|
6
|
-
import { _ as V } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
7
|
-
import "@feedmepos/ui-library";
|
8
|
-
import { g as M } from "./assets-CLiVU4As.js";
|
9
|
-
import { t as B } from "./index-DVSsAdF3.js";
|
10
|
-
import { d as L } from "./dinero-CIVmXLL-.js";
|
11
|
-
const $ = ["src"], P = /* @__PURE__ */ T({
|
12
|
-
__name: "Gateway",
|
13
|
-
props: {
|
14
|
-
row: {},
|
15
|
-
data: {}
|
16
|
-
},
|
17
|
-
setup(_) {
|
18
|
-
return (a, n) => (g(), E("img", {
|
19
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
20
|
-
src: r(M)(a.row.original.gateway)
|
21
|
-
}, null, 8, $));
|
22
|
-
}
|
23
|
-
}), U = /* @__PURE__ */ T({
|
24
|
-
__name: "Status",
|
25
|
-
props: {
|
26
|
-
row: {},
|
27
|
-
data: {}
|
28
|
-
},
|
29
|
-
setup(_) {
|
30
|
-
const a = _;
|
31
|
-
function n() {
|
32
|
-
return a.data === o.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : a.data === o.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : a.data === o.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
|
33
|
-
}
|
34
|
-
return (s, c) => {
|
35
|
-
const m = d("FmBadge");
|
36
|
-
return g(), x(m, {
|
37
|
-
inline: "",
|
38
|
-
class: v(n())
|
39
|
-
}, {
|
40
|
-
default: w(() => [
|
41
|
-
p("div", null, b(s.data.toUpperCase()), 1)
|
42
|
-
]),
|
43
|
-
_: 1
|
44
|
-
}, 8, ["class"]);
|
45
|
-
};
|
46
|
-
}
|
47
|
-
}), Y = { class: "flex justify-between mb-6 items-start" }, G = { class: "flex space-x-4 items-start" }, W = { class: "flex space-x-4" }, ae = /* @__PURE__ */ T({
|
48
|
-
__name: "TerminalTransaction",
|
49
|
-
setup(_) {
|
50
|
-
const a = D(), { dateRange: n, status: s, searchKey: c } = k({
|
51
|
-
searchKey: "",
|
52
|
-
status: [o.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
|
53
|
-
dateRange: {
|
54
|
-
startDate: A().startOf("day").toISOString(),
|
55
|
-
endDate: A().endOf("day").toISOString()
|
56
|
-
}
|
57
|
-
});
|
58
|
-
h([n, s], () => {
|
59
|
-
var e;
|
60
|
-
return (e = a.value) == null ? void 0 : e.reset();
|
61
|
-
});
|
62
|
-
let m;
|
63
|
-
h(c, async () => {
|
64
|
-
m && clearTimeout(m), m = setTimeout(
|
65
|
-
() => {
|
66
|
-
var e;
|
67
|
-
return (e = a.value) == null ? void 0 : e.reset();
|
68
|
-
},
|
69
|
-
700
|
70
|
-
);
|
71
|
-
});
|
72
|
-
const y = [
|
73
|
-
{
|
74
|
-
label: "Success",
|
75
|
-
value: o.F_TERMINAL_TRANSACTION_ACTION.Enum.success
|
76
|
-
},
|
77
|
-
{
|
78
|
-
label: "Refunded",
|
79
|
-
value: o.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
|
80
|
-
},
|
81
|
-
{
|
82
|
-
label: "Process",
|
83
|
-
value: o.F_TERMINAL_TRANSACTION_ACTION.Enum.process
|
84
|
-
},
|
85
|
-
{
|
86
|
-
label: "Failed",
|
87
|
-
value: o.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
|
88
|
-
}
|
89
|
-
], R = function(e) {
|
90
|
-
const t = e;
|
91
|
-
let u = "-";
|
92
|
-
return t.details.amount && (u = L(t.details.amount).toFormat("$0.00")), {
|
93
|
-
id: e._id,
|
94
|
-
refId: e.refId,
|
95
|
-
owner: e.owner,
|
96
|
-
terminalId: e.terminalId,
|
97
|
-
transactionAt: A(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
|
98
|
-
action: e.action,
|
99
|
-
gateway: e.gateway,
|
100
|
-
amount: u
|
101
|
-
};
|
102
|
-
}, C = [
|
103
|
-
{
|
104
|
-
accessorKey: "id",
|
105
|
-
header: () => "Transaction ID",
|
106
|
-
meta: {
|
107
|
-
textAlign: "left"
|
108
|
-
}
|
109
|
-
},
|
110
|
-
{
|
111
|
-
accessorKey: "refId",
|
112
|
-
header: () => "Reference ID",
|
113
|
-
meta: {
|
114
|
-
textAlign: "left"
|
115
|
-
}
|
116
|
-
},
|
117
|
-
{
|
118
|
-
accessorKey: "gateway",
|
119
|
-
header: () => "Gateway",
|
120
|
-
meta: {
|
121
|
-
textAlign: "center",
|
122
|
-
maxWidth: "128px"
|
123
|
-
},
|
124
|
-
cell: ({ cell: e, row: t }) => N(P, { row: t, data: e.getValue() })
|
125
|
-
},
|
126
|
-
{
|
127
|
-
accessorKey: "action",
|
128
|
-
header: () => "Status",
|
129
|
-
meta: {
|
130
|
-
textAlign: "left",
|
131
|
-
maxWidth: "128px"
|
132
|
-
},
|
133
|
-
cell: ({ cell: e, row: t }) => N(U, { row: t, data: e.getValue() })
|
134
|
-
},
|
135
|
-
{
|
136
|
-
accessorKey: "amount",
|
137
|
-
header: () => "Sales Amount",
|
138
|
-
meta: {
|
139
|
-
textAlign: "center"
|
140
|
-
}
|
141
|
-
},
|
142
|
-
{
|
143
|
-
accessorKey: "owner",
|
144
|
-
header: () => "Reference",
|
145
|
-
meta: {
|
146
|
-
textAlign: "left"
|
147
|
-
}
|
148
|
-
},
|
149
|
-
{
|
150
|
-
accessorKey: "terminalId",
|
151
|
-
header: () => "Terminal ID",
|
152
|
-
meta: {
|
153
|
-
textAlign: "left"
|
154
|
-
}
|
155
|
-
},
|
156
|
-
{
|
157
|
-
accessorKey: "transactionAt",
|
158
|
-
header: () => "Transaction At",
|
159
|
-
meta: {
|
160
|
-
textAlign: "left"
|
161
|
-
}
|
162
|
-
}
|
163
|
-
];
|
164
|
-
return (e, t) => {
|
165
|
-
const u = d("FmSearch"), I = d("FmSelect"), S = d("FmDateRangePicker"), F = d("FmButton");
|
166
|
-
return g(), x(V, {
|
167
|
-
title: "Terminal Transactions",
|
168
|
-
loading: !1
|
169
|
-
}, {
|
170
|
-
default: w(() => [
|
171
|
-
p("div", Y, [
|
172
|
-
p("div", G, [
|
173
|
-
i(u, {
|
174
|
-
"model-value": r(c),
|
175
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) => f(c) ? c.value = l : null),
|
176
|
-
class: "mr-8",
|
177
|
-
label: "Search",
|
178
|
-
placeholder: "Search Transactions ..."
|
179
|
-
}, null, 8, ["model-value"]),
|
180
|
-
i(I, {
|
181
|
-
modelValue: r(s),
|
182
|
-
"onUpdate:modelValue": t[1] || (t[1] = (l) => f(s) ? s.value = l : null),
|
183
|
-
class: "mr-6 w-[300px]",
|
184
|
-
label: "Status",
|
185
|
-
"label-mark": "required",
|
186
|
-
multiselect: "",
|
187
|
-
items: y
|
188
|
-
}, null, 8, ["modelValue"]),
|
189
|
-
i(S, {
|
190
|
-
modelValue: r(n),
|
191
|
-
"onUpdate:modelValue": t[2] || (t[2] = (l) => f(n) ? n.value = l : null),
|
192
|
-
compare: "",
|
193
|
-
"show-predefined-range": ""
|
194
|
-
}, null, 8, ["modelValue"])
|
195
|
-
]),
|
196
|
-
p("div", W, [
|
197
|
-
i(F, {
|
198
|
-
"append-icon": "file_download",
|
199
|
-
variant: "primary",
|
200
|
-
label: "Export",
|
201
|
-
onClick: () => {
|
202
|
-
}
|
203
|
-
})
|
204
|
-
])
|
205
|
-
]),
|
206
|
-
i(K, {
|
207
|
-
ref_key: "controller",
|
208
|
-
ref: a,
|
209
|
-
"column-defs": C,
|
210
|
-
"rows-defs": R,
|
211
|
-
paginate: (l, O) => r(B).readTransactions({
|
212
|
-
status: r(s),
|
213
|
-
searchKey: r(c),
|
214
|
-
limit: l,
|
215
|
-
cursor: O,
|
216
|
-
start: r(n).startDate,
|
217
|
-
end: r(n).endDate
|
218
|
-
}),
|
219
|
-
onRowClick: () => {
|
220
|
-
}
|
221
|
-
}, null, 8, ["paginate"])
|
222
|
-
]),
|
223
|
-
_: 1
|
224
|
-
});
|
225
|
-
};
|
226
|
-
}
|
227
|
-
});
|
228
|
-
export {
|
229
|
-
ae as default
|
230
|
-
};
|
package/dist/index-DVSsAdF3.js
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
import { a as n, b as t, r, l as s } from "./index-CkIbCIHJ.js";
|
2
|
-
const o = {
|
3
|
-
async readTransactions(a) {
|
4
|
-
return n(
|
5
|
-
await t().get("/payments/terminal-transactions", {
|
6
|
-
params: a
|
7
|
-
})
|
8
|
-
);
|
9
|
-
},
|
10
|
-
async readRestaurantTransactions(a) {
|
11
|
-
return n(
|
12
|
-
await r().get("/terminal-transactions", {
|
13
|
-
params: a
|
14
|
-
})
|
15
|
-
);
|
16
|
-
},
|
17
|
-
async downloadRestaurantTransactionReport(a) {
|
18
|
-
return s(a, {
|
19
|
-
exclude: ["logs", "owner"],
|
20
|
-
filename: "terminal-transaction-report.xlsx"
|
21
|
-
});
|
22
|
-
}
|
23
|
-
};
|
24
|
-
export {
|
25
|
-
o as t
|
26
|
-
};
|