@feedmepos/mf-payment 1.0.0-beta.9 → 1.0.1-beta.1
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/{AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js → AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js} +8 -9
- package/dist/{PayoutAccount-_d3TfUSc.js → PayoutAccount-CyVXI1Sx.js} +5 -5
- package/dist/{PayoutAccount-DgN3EHTj.js → PayoutAccount-DGUnImHC.js} +4 -4
- package/dist/{PayoutAccountSetting-CmgVLhdp.js → PayoutAccountSetting-BbtOFbsd.js} +161 -183
- package/dist/Restaurant-ewsvVw3P.js +262 -0
- package/dist/RestaurantSetting-BboKM1iG.js +389 -0
- package/dist/{Settlement-B1-WmCwC.js → Settlement-DsJlFpCC.js} +4 -4
- package/dist/{Settlement-BSOQRlp1.js → Settlement-Hr7jN3EL.js} +4 -4
- package/dist/{SettlementTransactions-Cqd2raea.js → SettlementTransactions-BncoGGQ3.js} +10 -10
- package/dist/{SettlementTransactions-JTwD_Vuq.js → SettlementTransactions-Bz9ZVYfq.js} +41 -41
- package/dist/{Terminal-De69bTKY.js → Terminal-D-U0BVTe.js} +121 -108
- package/dist/{TerminalSetting-DlRHaEZh.js → TerminalSetting-JD3sbXOB.js} +3 -3
- package/dist/{TerminalTransaction-CZCsCpEp.js → TerminalTransaction-B5iY_F-3.js} +18 -18
- package/dist/{TerminalTransaction-C1egvX6I.js → TerminalTransaction-DHmD5x8e.js} +12 -12
- package/dist/{Transaction-B3ZWKg6Q.js → Transaction-BedQtv8p.js} +64 -64
- package/dist/{Transaction-B_0nUmpf.js → Transaction-DA_TB9zD.js} +11 -11
- package/dist/api/restaurant/index.d.ts +6 -0
- package/dist/{app-B-XC_fSK.js → app-CpyZU23J.js} +164 -147
- package/dist/app.js +1 -1
- package/dist/{assets-BCAivOTo.js → assets-8c19wXSV.js} +22 -21
- package/dist/components/PagingTable/FmTableSelection.vue.d.ts +13 -0
- package/dist/components/PagingTable/index.vue.d.ts +48 -0
- package/dist/{index-4meiCsRz.js → index-1fXAFo2E.js} +31211 -31211
- package/dist/index-BIXuzGa9.js +19 -0
- package/dist/{index-BFYq3eq8.js → index-Cb1zVhcH.js} +1 -1
- package/dist/{index-CbsnpMWl.js → index-DEpszFWF.js} +1 -1
- package/dist/{index-BwFHcZlm.js → index-DdJrUqkm.js} +1 -1
- package/dist/{index-CBa6eapm.js → index-DeU3Qyca.js} +1 -1
- package/dist/{index-CETCXB6X.js → index-DoAIw4wM.js} +1 -1
- package/dist/index-DsLFmVsY.js +28 -0
- package/dist/{index.vue_vue_type_script_setup_true_lang-CKOlikHb.js → index.vue_vue_type_script_setup_true_lang-GT2x04Bn.js} +64 -61
- package/dist/package.json +2 -2
- package/dist/{payout-account-CKhGpN_d.js → payout-account-BbheLTUt.js} +2 -2
- package/dist/{transaction-COjHU7aN.js → transaction-W49zE8RL.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/restaurant/Restaurant.vue.d.ts +2 -0
- package/dist/views/admin/restaurant/RestaurantSetting.vue.d.ts +12 -0
- package/dist/views/admin/restaurant/cell/IsActive.vue.d.ts +7 -0
- package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +803 -0
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/package.json +2 -2
@@ -1,18 +1,18 @@
|
|
1
|
-
import { defineComponent as x, openBlock as f, createElementBlock as B, createTextVNode as
|
2
|
-
import "./index-
|
3
|
-
import { h as
|
4
|
-
import { u as
|
5
|
-
import { _ as
|
6
|
-
import { _ as
|
7
|
-
import { useSnackbar as
|
8
|
-
import { t as
|
9
|
-
import { c as
|
1
|
+
import { defineComponent as x, openBlock as f, createElementBlock as B, createTextVNode as O, createElementVNode as h, toDisplayString as $, resolveComponent as p, createVNode as y, normalizeClass as z, withCtx as V, createBlock as g, createCommentVNode as F, ref as k, computed as Y, unref as c, watch as K, isRef as P, h as E } from "vue";
|
2
|
+
import "./index-1fXAFo2E.js";
|
3
|
+
import { h as j } from "./moment-h96o7c8I.js";
|
4
|
+
import { u as q } from "./index-DdJrUqkm.js";
|
5
|
+
import { _ as Q } from "./index.vue_vue_type_script_setup_true_lang-GT2x04Bn.js";
|
6
|
+
import { _ as G } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
|
+
import { useSnackbar as D, useDialogChild as H, useDialog as J } from "@feedmepos/ui-library";
|
8
|
+
import { t as A } from "./index-DeU3Qyca.js";
|
9
|
+
import { c as M } from "./clipboard-4jh1WteU.js";
|
10
10
|
import { u as N } from "./error-K1CakhA9.js";
|
11
|
-
import { z as
|
11
|
+
import { z as R, a as U } from "./validator-D5jtpt9A.js";
|
12
12
|
import { useCoreStore as W } from "@feedmepos/mf-common";
|
13
13
|
import { w as X } from "./Modal-DB8M9o1T.js";
|
14
14
|
import { useRouter as Z } from "vue-router";
|
15
|
-
const ee = { class: "t-caption" }, te =
|
15
|
+
const ee = { class: "t-caption" }, te = /* @__PURE__ */ x({
|
16
16
|
__name: "TerminalBindCodeDialog",
|
17
17
|
props: {
|
18
18
|
code: {
|
@@ -20,132 +20,145 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
20
20
|
required: !0
|
21
21
|
}
|
22
22
|
},
|
23
|
-
setup(
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
setup(v) {
|
24
|
+
const n = v, a = D();
|
25
|
+
function r() {
|
26
|
+
try {
|
27
|
+
M(n.code), a.open({ title: "Text copied to clipboard." }, 1e3);
|
28
|
+
} catch {
|
29
|
+
a.open({ title: "Clipboard API incompatible." }, 1e3);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
return (i, l) => (f(), B("div", ee, [
|
33
|
+
l[1] || (l[1] = O(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
|
34
|
+
h("div", {
|
35
|
+
class: "my-6 text-center fm-typo-en-title-md-800 tracking-[0.3rem] cursor-pointer hover:text-fm-color-neutral-gray-300",
|
36
|
+
onClick: l[0] || (l[0] = (o) => {
|
37
|
+
o.stopPropagation(), r();
|
38
|
+
})
|
39
|
+
}, $(v.code), 1)
|
27
40
|
]));
|
28
41
|
}
|
29
|
-
}),
|
42
|
+
}), ne = /* @__PURE__ */ x({
|
30
43
|
__name: "ID",
|
31
44
|
props: {
|
32
45
|
row: {},
|
33
46
|
data: {}
|
34
47
|
},
|
35
|
-
setup(
|
36
|
-
const n =
|
48
|
+
setup(v) {
|
49
|
+
const n = v, a = D();
|
37
50
|
function r() {
|
38
51
|
return n.row.original.status === "Active" ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
|
39
52
|
}
|
40
|
-
function
|
53
|
+
function i() {
|
41
54
|
try {
|
42
|
-
|
55
|
+
M(n.data), a.open({ title: "Text copied to clipboard." }, 1e3);
|
43
56
|
} catch {
|
44
|
-
|
57
|
+
a.open({ title: "Clipboard API incompatible." }, 1e3);
|
45
58
|
}
|
46
59
|
n.data;
|
47
60
|
}
|
48
|
-
return (
|
61
|
+
return (l, o) => {
|
49
62
|
const d = p("FmBadge");
|
50
63
|
return f(), B("div", {
|
51
|
-
onClick:
|
52
|
-
_.stopPropagation(),
|
64
|
+
onClick: o[0] || (o[0] = (_) => {
|
65
|
+
_.stopPropagation(), i();
|
53
66
|
})
|
54
67
|
}, [
|
55
|
-
|
68
|
+
y(d, {
|
56
69
|
inline: "",
|
57
|
-
class:
|
70
|
+
class: z(r())
|
58
71
|
}, {
|
59
72
|
default: V(() => [
|
60
|
-
|
73
|
+
h("div", null, $(l.data), 1)
|
61
74
|
]),
|
62
75
|
_: 1
|
63
76
|
}, 8, ["class"])
|
64
77
|
]);
|
65
78
|
};
|
66
79
|
}
|
67
|
-
}),
|
80
|
+
}), oe = { class: "flex" }, ae = /* @__PURE__ */ x({
|
68
81
|
__name: "Actions",
|
69
82
|
props: {
|
70
83
|
data: {}
|
71
84
|
},
|
72
85
|
emits: ["link", "unlink", "edit"],
|
73
|
-
setup(
|
74
|
-
const
|
75
|
-
return (r,
|
76
|
-
const
|
77
|
-
return f(), B("div",
|
78
|
-
r.data.deviceType === "TERMINAL" && !r.data.deviceId ? (f(), g(
|
86
|
+
setup(v, { emit: n }) {
|
87
|
+
const a = n;
|
88
|
+
return (r, i) => {
|
89
|
+
const l = p("FmButton");
|
90
|
+
return f(), B("div", oe, [
|
91
|
+
r.data.deviceType === "TERMINAL" && !r.data.deviceId ? (f(), g(l, {
|
79
92
|
key: 0,
|
80
93
|
variant: "plain",
|
81
94
|
"prepend-icon": "link",
|
82
|
-
onClick:
|
83
|
-
|
95
|
+
onClick: i[0] || (i[0] = (o) => {
|
96
|
+
o.stopPropagation(), a("link");
|
84
97
|
})
|
85
|
-
})) :
|
86
|
-
r.data.deviceType === "TERMINAL" && r.data.deviceId ? (f(), g(
|
98
|
+
})) : F("", !0),
|
99
|
+
r.data.deviceType === "TERMINAL" && r.data.deviceId ? (f(), g(l, {
|
87
100
|
key: 1,
|
88
101
|
variant: "plain",
|
89
102
|
"prepend-icon": "link_off",
|
90
|
-
onClick:
|
91
|
-
|
103
|
+
onClick: i[1] || (i[1] = (o) => {
|
104
|
+
o.stopPropagation(), a("unlink");
|
92
105
|
})
|
93
|
-
})) :
|
94
|
-
|
106
|
+
})) : F("", !0),
|
107
|
+
y(l, {
|
95
108
|
variant: "plain",
|
96
109
|
"prepend-icon": "edit",
|
97
|
-
onClick:
|
98
|
-
|
110
|
+
onClick: i[2] || (i[2] = (o) => {
|
111
|
+
o.stopPropagation(), a("edit");
|
99
112
|
})
|
100
113
|
})
|
101
114
|
]);
|
102
115
|
};
|
103
116
|
}
|
104
|
-
}),
|
117
|
+
}), re = /* @__PURE__ */ x({
|
105
118
|
__name: "TerminalDialog",
|
106
119
|
props: {
|
107
120
|
terminal: {
|
108
121
|
type: Object
|
109
122
|
}
|
110
123
|
},
|
111
|
-
setup(
|
112
|
-
var w,
|
113
|
-
const n =
|
114
|
-
label:
|
115
|
-
value:
|
124
|
+
setup(v) {
|
125
|
+
var w, b, I;
|
126
|
+
const n = v, a = W(), r = H(), i = k(), l = k((w = n.terminal) == null ? void 0 : w.name), o = k((b = n.terminal) == null ? void 0 : b.referenceId), d = k(((I = n.terminal) == null ? void 0 : I.status) === "Active"), _ = Y(() => a.restaurants.value.map((T) => ({
|
127
|
+
label: T.profile.name,
|
128
|
+
value: T._id
|
116
129
|
})));
|
117
|
-
return (
|
118
|
-
const e = p("FmSelect"), t = p("FmTextField"), m = p("FmSwitch"),
|
130
|
+
return (T, u) => {
|
131
|
+
const e = p("FmSelect"), t = p("FmTextField"), m = p("FmSwitch"), C = p("FmButton"), S = p("FmForm");
|
119
132
|
return f(), g(S, {
|
120
|
-
ref:
|
133
|
+
ref: i.value,
|
121
134
|
class: "flex flex-col gap-16 mb-6",
|
122
135
|
onValidationSuccess: u[3] || (u[3] = () => {
|
123
|
-
c(r).emitData({ name:
|
136
|
+
c(r).emitData({ name: l.value, referenceId: o.value, status: d.value ? "Active" : "Inactive" }), c(r).emitAction("primary");
|
124
137
|
})
|
125
138
|
}, {
|
126
139
|
default: V(() => [
|
127
|
-
n.terminal ?
|
140
|
+
n.terminal ? F("", !0) : (f(), g(e, {
|
128
141
|
key: 0,
|
129
|
-
modelValue:
|
130
|
-
"onUpdate:modelValue": u[0] || (u[0] = (s) =>
|
142
|
+
modelValue: o.value,
|
143
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => o.value = s),
|
131
144
|
label: "Restaurant",
|
132
145
|
"helper-text": "If you can't find the restaurant please change the business to the restaurant's business.",
|
133
146
|
items: _.value,
|
134
|
-
rules: c(
|
147
|
+
rules: c(R)(c(U).string())
|
135
148
|
}, null, 8, ["modelValue", "items", "rules"])),
|
136
|
-
|
137
|
-
modelValue:
|
138
|
-
"onUpdate:modelValue": u[1] || (u[1] = (s) =>
|
149
|
+
y(t, {
|
150
|
+
modelValue: l.value,
|
151
|
+
"onUpdate:modelValue": u[1] || (u[1] = (s) => l.value = s),
|
139
152
|
label: "Terminal Name",
|
140
|
-
rules: c(
|
153
|
+
rules: c(R)(c(U).string())
|
141
154
|
}, null, 8, ["modelValue", "rules"]),
|
142
155
|
n.terminal ? (f(), g(m, {
|
143
156
|
key: 1,
|
144
157
|
modelValue: d.value,
|
145
158
|
"onUpdate:modelValue": u[2] || (u[2] = (s) => d.value = s),
|
146
159
|
label: "Status"
|
147
|
-
}, null, 8, ["modelValue"])) :
|
148
|
-
|
160
|
+
}, null, 8, ["modelValue"])) : F("", !0),
|
161
|
+
y(C, {
|
149
162
|
type: "submit",
|
150
163
|
label: "Create"
|
151
164
|
})
|
@@ -154,20 +167,20 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
154
167
|
}, 512);
|
155
168
|
};
|
156
169
|
}
|
157
|
-
}),
|
170
|
+
}), le = { class: "flex justify-between mb-6 items-center" }, ie = { class: "flex space-x-4" }, se = { class: "flex space-x-4" }, he = /* @__PURE__ */ x({
|
158
171
|
__name: "Terminal",
|
159
|
-
setup(
|
160
|
-
const n =
|
172
|
+
setup(v) {
|
173
|
+
const n = k(), { searchKey: a, deviceType: r } = q({
|
161
174
|
searchKey: "",
|
162
175
|
deviceType: void 0
|
163
176
|
});
|
164
|
-
|
177
|
+
K(r, () => {
|
165
178
|
var e;
|
166
179
|
return (e = n.value) == null ? void 0 : e.reset();
|
167
180
|
});
|
168
|
-
let
|
169
|
-
|
170
|
-
|
181
|
+
let i;
|
182
|
+
K(a, async () => {
|
183
|
+
i && clearTimeout(i), i = setTimeout(
|
171
184
|
() => {
|
172
185
|
var e;
|
173
186
|
return (e = n.value) == null ? void 0 : e.reset();
|
@@ -175,16 +188,16 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
175
188
|
700
|
176
189
|
);
|
177
190
|
});
|
178
|
-
const
|
191
|
+
const l = Z(), o = J(), d = D();
|
179
192
|
async function _(e) {
|
180
193
|
X(
|
181
|
-
|
194
|
+
o,
|
182
195
|
"Terminal Unbind",
|
183
196
|
"Are you sure to unbind terminal from device? This action cannot be revert and device will be logged out!",
|
184
197
|
async () => {
|
185
198
|
var t;
|
186
199
|
try {
|
187
|
-
await
|
200
|
+
await A.unbind(e), (t = n.value) == null || t.reset(), d.open({
|
188
201
|
type: "success",
|
189
202
|
message: "Terminal unbind successfully"
|
190
203
|
});
|
@@ -199,40 +212,40 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
199
212
|
);
|
200
213
|
}
|
201
214
|
async function w(e) {
|
202
|
-
const t = await
|
203
|
-
|
215
|
+
const t = await A.getBindCode(e);
|
216
|
+
o.open({
|
204
217
|
title: "Terminal Bind Code",
|
205
218
|
closeButton: !0,
|
206
219
|
overlay: !0,
|
207
|
-
contentComponent:
|
220
|
+
contentComponent: te,
|
208
221
|
contentComponentProps: { code: t }
|
209
222
|
});
|
210
223
|
}
|
211
|
-
async function
|
212
|
-
|
224
|
+
async function b(e) {
|
225
|
+
o.open({
|
213
226
|
title: e ? "Update Terminal" : "Create New Terminal",
|
214
227
|
closeButton: !0,
|
215
228
|
overlay: !0,
|
216
|
-
contentComponent:
|
229
|
+
contentComponent: re,
|
217
230
|
contentComponentProps: { terminal: e }
|
218
231
|
}).onPrimary(async (t) => {
|
219
232
|
var m;
|
220
|
-
|
233
|
+
o.close();
|
221
234
|
try {
|
222
|
-
await
|
235
|
+
await A.create(t), (m = n.value) == null || m.reset(), d.open({
|
223
236
|
type: "success",
|
224
237
|
message: e ? "Terminal udpated successfully" : "Terminal created successfully."
|
225
238
|
});
|
226
|
-
} catch (
|
239
|
+
} catch (C) {
|
227
240
|
d.open({
|
228
241
|
type: "error",
|
229
242
|
title: "Error occurs when create terminal",
|
230
|
-
message: N(
|
243
|
+
message: N(C)
|
231
244
|
});
|
232
245
|
}
|
233
246
|
});
|
234
247
|
}
|
235
|
-
const
|
248
|
+
const I = function(e) {
|
236
249
|
return {
|
237
250
|
id: e._id,
|
238
251
|
status: e.status,
|
@@ -240,16 +253,16 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
240
253
|
name: e.name,
|
241
254
|
deviceId: e.deviceId,
|
242
255
|
deviceType: e.deviceType,
|
243
|
-
updatedAt:
|
256
|
+
updatedAt: j(e.updatedAt).format("YYYY-MM-DD hh:mm:ss")
|
244
257
|
};
|
245
|
-
},
|
258
|
+
}, T = [
|
246
259
|
{
|
247
260
|
accessorKey: "id",
|
248
261
|
header: () => "Terminal ID",
|
249
262
|
meta: {
|
250
263
|
textAlign: "right"
|
251
264
|
},
|
252
|
-
cell: ({ cell: e, row: t }) => E(
|
265
|
+
cell: ({ cell: e, row: t }) => E(ne, { row: t, data: e.getValue() })
|
253
266
|
},
|
254
267
|
{
|
255
268
|
accessorKey: "deviceType",
|
@@ -295,11 +308,11 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
295
308
|
cell: ({ row: e }) => {
|
296
309
|
var m;
|
297
310
|
const t = (m = n.value) == null ? void 0 : m.pageData().at(e.index);
|
298
|
-
return E(
|
311
|
+
return E(ae, {
|
299
312
|
data: t,
|
300
313
|
onLink: () => w(t._id),
|
301
314
|
onUnlink: () => _(t._id),
|
302
|
-
onEdit: () =>
|
315
|
+
onEdit: () => b(t)
|
303
316
|
});
|
304
317
|
}
|
305
318
|
}
|
@@ -318,44 +331,44 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
318
331
|
}
|
319
332
|
];
|
320
333
|
return (e, t) => {
|
321
|
-
const m = p("FmSearch"),
|
322
|
-
return f(), g(
|
334
|
+
const m = p("FmSearch"), C = p("FmSelect"), S = p("FmButton");
|
335
|
+
return f(), g(G, {
|
323
336
|
title: "Terminals",
|
324
337
|
loading: !1
|
325
338
|
}, {
|
326
339
|
default: V(() => [
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
"model-value": c(
|
331
|
-
"onUpdate:modelValue": t[0] || (t[0] = (s) =>
|
340
|
+
h("div", le, [
|
341
|
+
h("div", ie, [
|
342
|
+
y(m, {
|
343
|
+
"model-value": c(a),
|
344
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => P(a) ? a.value = s : null),
|
332
345
|
class: "mr-8",
|
333
346
|
label: "Search",
|
334
347
|
placeholder: "Search Terminals ..."
|
335
348
|
}, null, 8, ["model-value"]),
|
336
|
-
|
349
|
+
y(C, {
|
337
350
|
modelValue: c(r),
|
338
|
-
"onUpdate:modelValue": t[1] || (t[1] = (s) =>
|
351
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => P(r) ? r.value = s : null),
|
339
352
|
class: "ml-6 w-[180px]",
|
340
353
|
label: "Device",
|
341
354
|
items: u
|
342
355
|
}, null, 8, ["modelValue"])
|
343
356
|
]),
|
344
|
-
|
345
|
-
|
357
|
+
h("div", se, [
|
358
|
+
y(S, {
|
346
359
|
label: "Create",
|
347
360
|
icon: "add",
|
348
|
-
onClick: t[2] || (t[2] = () =>
|
361
|
+
onClick: t[2] || (t[2] = () => b())
|
349
362
|
})
|
350
363
|
])
|
351
364
|
]),
|
352
|
-
|
365
|
+
y(Q, {
|
353
366
|
ref_key: "controller",
|
354
367
|
ref: n,
|
355
|
-
"column-defs":
|
356
|
-
"rows-defs":
|
357
|
-
paginate: (s,
|
358
|
-
onRowClick: t[3] || (t[3] = (s) => c(
|
368
|
+
"column-defs": T,
|
369
|
+
"rows-defs": I,
|
370
|
+
paginate: (s, L) => c(A).read({ searchKey: c(a), deviceType: c(r), limit: s, cursor: L }),
|
371
|
+
onRowClick: t[3] || (t[3] = (s) => c(l).push({
|
359
372
|
name: "mf-payment-admin.terminal-setting",
|
360
373
|
params: {
|
361
374
|
terminalId: s._id
|
@@ -369,5 +382,5 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
369
382
|
}
|
370
383
|
});
|
371
384
|
export {
|
372
|
-
|
385
|
+
he as default
|
373
386
|
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as T, openBlock as b, createElementBlock as N, Fragment as Y, createElementVNode as g, createTextVNode as V, toDisplayString as S, toRef as M, ref as F, watch as D, onMounted as G, computed as O, resolveComponent as f, unref as k, createVNode as I, createBlock as _, withCtx as q, createCommentVNode as B, isRef as h, resolveDynamicComponent as L, normalizeProps as j, mergeProps as E } from "vue";
|
2
|
-
import { u as R, e as U } from "./index-
|
2
|
+
import { u as R, e as U } from "./index-1fXAFo2E.js";
|
3
3
|
import { useRouter as A } from "vue-router";
|
4
|
-
import { t as C } from "./index-
|
4
|
+
import { t as C } from "./index-DeU3Qyca.js";
|
5
5
|
import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
6
|
-
import { u as H } from "./index-
|
6
|
+
import { u as H } from "./index-DdJrUqkm.js";
|
7
7
|
import { useSnackbar as Q } from "@feedmepos/ui-library";
|
8
8
|
import { u as J } from "./error-K1CakhA9.js";
|
9
9
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
@@ -1,18 +1,18 @@
|
|
1
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-
|
2
|
+
import { c as m } from "./index-1fXAFo2E.js";
|
3
3
|
import { h } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as k } from "./index-
|
5
|
-
import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-
|
4
|
+
import { u as k } from "./index-DdJrUqkm.js";
|
5
|
+
import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-GT2x04Bn.js";
|
6
6
|
import "@feedmepos/ui-library";
|
7
|
-
import { g as $ } from "./assets-
|
8
|
-
import { E as K, t as R } from "./index-
|
7
|
+
import { g as $ } from "./assets-8c19wXSV.js";
|
8
|
+
import { E as K, t as R } from "./index-DEpszFWF.js";
|
9
9
|
import { d as L } from "./dinero-CIVmXLL-.js";
|
10
10
|
import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
|
11
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 P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-
|
14
|
-
import { _ as
|
15
|
-
import { _ as
|
13
|
+
import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
14
|
+
import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
|
15
|
+
import { _ as W } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
|
16
16
|
import { _ as q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
|
17
17
|
const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
18
18
|
__name: "Gateway",
|
@@ -28,7 +28,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
28
28
|
src: r(K)
|
29
29
|
}, null, 8, z)) : F("", !0),
|
30
30
|
d("img", {
|
31
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
31
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
32
32
|
src: r($)(o.row.original.gateway)
|
33
33
|
}, null, 8, Q)
|
34
34
|
], 64));
|
@@ -102,7 +102,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
102
102
|
label: "Failed",
|
103
103
|
value: m.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
|
104
104
|
}
|
105
|
-
],
|
105
|
+
], b = function(e) {
|
106
106
|
const a = e;
|
107
107
|
let u = "-";
|
108
108
|
return a.details && a.details.amount && (u = L(a.details.amount).toFormat("$0.00")), {
|
@@ -116,7 +116,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
116
116
|
ecrGateway: e.ecrGateway,
|
117
117
|
amount: u
|
118
118
|
};
|
119
|
-
},
|
119
|
+
}, E = [
|
120
120
|
{
|
121
121
|
accessorKey: "id",
|
122
122
|
header: () => "Transaction ID",
|
@@ -181,8 +181,8 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
181
181
|
];
|
182
182
|
return (e, a) => {
|
183
183
|
const u = I("FmSearch"), w = I("FmSelect");
|
184
|
-
return p(), v(
|
185
|
-
title: "
|
184
|
+
return p(), v(j, {
|
185
|
+
title: "Terminal Transactions",
|
186
186
|
description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
|
187
187
|
loading: !1
|
188
188
|
}, {
|
@@ -207,7 +207,7 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
207
207
|
items: x
|
208
208
|
}, {
|
209
209
|
"prepend-menu": y(() => [
|
210
|
-
i(
|
210
|
+
i(W, {
|
211
211
|
modelValue: r(s),
|
212
212
|
"onUpdate:modelValue": a[1] || (a[1] = (t) => _(s) ? s.value = t : null),
|
213
213
|
items: x
|
@@ -239,13 +239,13 @@ const z = ["src"], Q = ["src"], H = /* @__PURE__ */ N({
|
|
239
239
|
i(Y, {
|
240
240
|
ref_key: "controller",
|
241
241
|
ref: n,
|
242
|
-
"column-defs":
|
243
|
-
"rows-defs":
|
244
|
-
paginate: (t,
|
242
|
+
"column-defs": E,
|
243
|
+
"rows-defs": b,
|
244
|
+
paginate: (t, S) => r(R).readRestaurantTransactions({
|
245
245
|
status: r(s),
|
246
246
|
searchKey: r(c),
|
247
247
|
limit: t,
|
248
|
-
cursor:
|
248
|
+
cursor: S,
|
249
249
|
start: r(l).startDate,
|
250
250
|
end: r(l).endDate
|
251
251
|
})
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as w, openBlock as y, createElementBlock as N, unref as i, createCommentVNode as O, createElementVNode as b, resolveComponent as g, createBlock as v, normalizeClass as V, withCtx as h, toDisplayString as S, createVNode as c, Fragment as $, renderList as q, ref as K, watch as R, isRef as x, h as T } from "vue";
|
2
|
-
import { c as A } from "./index-
|
2
|
+
import { c as A } from "./index-1fXAFo2E.js";
|
3
3
|
import { h as I } from "./moment-h96o7c8I.js";
|
4
|
-
import { u as L } from "./index-
|
5
|
-
import { _ as P } from "./index.vue_vue_type_script_setup_true_lang-
|
4
|
+
import { u as L } from "./index-DdJrUqkm.js";
|
5
|
+
import { _ as P } from "./index.vue_vue_type_script_setup_true_lang-GT2x04Bn.js";
|
6
6
|
import { _ as B } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
|
7
7
|
import { useSnackbar as G, useDialog as U } from "@feedmepos/ui-library";
|
8
|
-
import { g as
|
9
|
-
import { E as
|
10
|
-
import { d as
|
8
|
+
import { g as j } from "./assets-8c19wXSV.js";
|
9
|
+
import { E as Q, t as F } from "./index-DEpszFWF.js";
|
10
|
+
import { d as W } from "./dinero-CIVmXLL-.js";
|
11
11
|
import { _ as z } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
|
12
|
-
import { _ as H } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-
|
12
|
+
import { _ as H } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
|
13
13
|
import { useRouter as J } from "vue-router";
|
14
14
|
import { w as X } from "./Modal-DB8M9o1T.js";
|
15
15
|
import { u as D } from "./error-K1CakhA9.js";
|
@@ -26,11 +26,11 @@ const te = { class: "flex" }, ae = ["src"], ne = ["src"], re = /* @__PURE__ */ w
|
|
26
26
|
a.row.original.ecrGateway ? (y(), N("img", {
|
27
27
|
key: 0,
|
28
28
|
class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
29
|
-
src: i(
|
29
|
+
src: i(Q)
|
30
30
|
}, null, 8, ae)) : O("", !0),
|
31
31
|
b("img", {
|
32
|
-
class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
|
33
|
-
src: i(
|
32
|
+
class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
|
33
|
+
src: i(j)(a.row.original.gateway)
|
34
34
|
}, null, 8, ne)
|
35
35
|
]));
|
36
36
|
}
|
@@ -284,7 +284,7 @@ const ce = /* @__PURE__ */ w({
|
|
284
284
|
], k = function(e) {
|
285
285
|
const t = e;
|
286
286
|
let o = "-";
|
287
|
-
t.details && t.details.amount && (
|
287
|
+
t.details && t.details.amount && (o = W(t.details.amount).toFormat("$0.00"));
|
288
288
|
const d = ie(e._id);
|
289
289
|
return {
|
290
290
|
id: e._id,
|
@@ -406,7 +406,7 @@ const ce = /* @__PURE__ */ w({
|
|
406
406
|
return (e, t) => {
|
407
407
|
const o = g("FmSearch"), d = g("FmSelect");
|
408
408
|
return y(), v(B, {
|
409
|
-
title: "
|
409
|
+
title: "Terminal Transactions",
|
410
410
|
loading: !1
|
411
411
|
}, {
|
412
412
|
default: h(() => [
|