@feedmepos/mf-payment 1.0.0 → 1.0.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/README.md +11 -1
- 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/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
- package/dist/PDFViewer-xrBtzrlR.js +22426 -0
- package/dist/{PayoutAccount-Dc1CYQ0W.js → PayoutAccount-Bxz83we4.js} +93 -83
- package/dist/{PayoutAccount-DZaKHWcy.js → PayoutAccount-DLxO15Kf.js} +259 -258
- package/dist/{PayoutAccountSetting-BzmNuLFj.js → PayoutAccountSetting-C1yeSNv8.js} +161 -183
- package/dist/Restaurant-B02jty0J.js +262 -0
- package/dist/RestaurantSetting-CWZAKz1A.js +389 -0
- package/dist/SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js +42 -0
- package/dist/Settlement-CAHgJIuH.js +145 -0
- package/dist/{Settlement-Bx3zAkIw.js → Settlement-D8nayzFt.js} +41 -43
- package/dist/{SettlementTransactions-D_SVuKyR.js → SettlementTransactions-DfXEf1fm.js} +10 -10
- package/dist/{SettlementTransactions-AaYyTH96.js → SettlementTransactions-JJyQEOMw.js} +41 -41
- package/dist/{Terminal-68OQnhM3.js → Terminal-DX8v8WpM.js} +117 -103
- package/dist/TerminalSetting-qklmRz3H.js +387 -0
- package/dist/TerminalTransaction-BjwvTbGu.js +261 -0
- package/dist/TerminalTransaction-D-mJRP0T.js +485 -0
- package/dist/Transaction-CZkNzH-m.js +238 -0
- package/dist/{Transaction-a1VfiCP_.js → Transaction-CvrsRuuz.js} +125 -127
- package/dist/api/restaurant/index.d.ts +6 -0
- package/dist/{app-C9FRsUfb.js → app-FuKCNfJl.js} +174 -144
- package/dist/app.js +1 -1
- package/dist/{assets-Bji7O2YD.js → assets-DjRoCcqv.js} +22 -21
- 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/PagingTable/FmTableSelection.vue.d.ts +13 -0
- package/dist/components/PagingTable/index.vue.d.ts +48 -0
- package/dist/components/RouteCell.vue.d.ts +5 -6
- package/dist/components/SelectAll.vue.d.ts +57 -0
- package/dist/helpers/idToDate.d.ts +1 -1
- package/dist/index-BEFlDEyV.js +28 -0
- package/dist/index-BWFqxSU3.js +19 -0
- package/dist/{index-DjDGwRX8.js → index-BerQZMQW.js} +1 -1
- package/dist/{index-DSuZG0l6.js → index-CFjLufVa.js} +1 -1
- package/dist/{index-_0TroOJr.js → index-CTSM9lSC.js} +1 -1
- package/dist/{index-DBfZnaV1.js → index-CWGSYCJG.js} +1 -1
- package/dist/{index-CLYePgWW.js → index-DFePh4ct.js} +1 -1
- package/dist/{index-Bt_OgDYn.js → index-Dj_LwPBy.js} +32176 -32166
- package/dist/{index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js → index.vue_vue_type_script_setup_true_lang-BgTr7KWF.js} +64 -61
- package/dist/package.json +2 -2
- package/dist/{payout-account-BWcq7OJy.js → payout-account-YJZlBDSF.js} +2 -2
- package/dist/router/index.d.ts +1 -0
- package/dist/stores/iframe.d.ts +1 -1
- package/dist/stores/payoutAccount.d.ts +1 -1
- package/dist/{transaction-DqrhM5jB.js → transaction-CIYqsLqc.js} +26 -16
- 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/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/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 +7 -0
- 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 +2 -2
- package/dist/PDFViewer-CjH_C1uT.js +0 -21792
- package/dist/Settlement-mwnO-iYH.js +0 -150
- package/dist/TerminalSetting-DEFim0xg.js +0 -379
- package/dist/TerminalTransaction-CQjNdffr.js +0 -426
- package/dist/TerminalTransaction-ClihmWOJ.js +0 -250
- package/dist/Transaction-68L7JzIk.js +0 -242
@@ -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 A } from "./index-
|
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-Dj_LwPBy.js";
|
3
|
+
import { h as j } from "./moment-h96o7c8I.js";
|
4
|
+
import { u as q } from "./index-BerQZMQW.js";
|
5
|
+
import { _ as Q } from "./index.vue_vue_type_script_setup_true_lang-BgTr7KWF.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-DFePh4ct.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,131 +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
|
-
h("div", null,
|
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 (
|
130
|
+
return (T, u) => {
|
118
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] = (
|
142
|
+
modelValue: o.value,
|
143
|
+
"onUpdate:modelValue": u[0] || (u[0] = (s) => o.value = s),
|
131
144
|
label: "Restaurant",
|
145
|
+
"helper-text": "If you can't find the restaurant please change the business to the restaurant's business.",
|
132
146
|
items: _.value,
|
133
|
-
rules: c(
|
147
|
+
rules: c(R)(c(U).string())
|
134
148
|
}, null, 8, ["modelValue", "items", "rules"])),
|
135
|
-
|
136
|
-
modelValue:
|
137
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
149
|
+
y(t, {
|
150
|
+
modelValue: l.value,
|
151
|
+
"onUpdate:modelValue": u[1] || (u[1] = (s) => l.value = s),
|
138
152
|
label: "Terminal Name",
|
139
|
-
rules: c(
|
153
|
+
rules: c(R)(c(U).string())
|
140
154
|
}, null, 8, ["modelValue", "rules"]),
|
141
155
|
n.terminal ? (f(), g(m, {
|
142
156
|
key: 1,
|
143
157
|
modelValue: d.value,
|
144
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
158
|
+
"onUpdate:modelValue": u[2] || (u[2] = (s) => d.value = s),
|
145
159
|
label: "Status"
|
146
|
-
}, null, 8, ["modelValue"])) :
|
147
|
-
|
160
|
+
}, null, 8, ["modelValue"])) : F("", !0),
|
161
|
+
y(C, {
|
148
162
|
type: "submit",
|
149
163
|
label: "Create"
|
150
164
|
})
|
@@ -153,20 +167,20 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
153
167
|
}, 512);
|
154
168
|
};
|
155
169
|
}
|
156
|
-
}),
|
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({
|
157
171
|
__name: "Terminal",
|
158
|
-
setup(
|
159
|
-
const n = k(), { searchKey:
|
172
|
+
setup(v) {
|
173
|
+
const n = k(), { searchKey: a, deviceType: r } = q({
|
160
174
|
searchKey: "",
|
161
175
|
deviceType: void 0
|
162
176
|
});
|
163
|
-
|
177
|
+
K(r, () => {
|
164
178
|
var e;
|
165
179
|
return (e = n.value) == null ? void 0 : e.reset();
|
166
180
|
});
|
167
|
-
let
|
168
|
-
|
169
|
-
|
181
|
+
let i;
|
182
|
+
K(a, async () => {
|
183
|
+
i && clearTimeout(i), i = setTimeout(
|
170
184
|
() => {
|
171
185
|
var e;
|
172
186
|
return (e = n.value) == null ? void 0 : e.reset();
|
@@ -174,10 +188,10 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
174
188
|
700
|
175
189
|
);
|
176
190
|
});
|
177
|
-
const
|
191
|
+
const l = Z(), o = J(), d = D();
|
178
192
|
async function _(e) {
|
179
193
|
X(
|
180
|
-
|
194
|
+
o,
|
181
195
|
"Terminal Unbind",
|
182
196
|
"Are you sure to unbind terminal from device? This action cannot be revert and device will be logged out!",
|
183
197
|
async () => {
|
@@ -199,24 +213,24 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
199
213
|
}
|
200
214
|
async function w(e) {
|
201
215
|
const t = await A.getBindCode(e);
|
202
|
-
|
216
|
+
o.open({
|
203
217
|
title: "Terminal Bind Code",
|
204
218
|
closeButton: !0,
|
205
219
|
overlay: !0,
|
206
|
-
contentComponent:
|
220
|
+
contentComponent: te,
|
207
221
|
contentComponentProps: { code: t }
|
208
222
|
});
|
209
223
|
}
|
210
|
-
async function
|
211
|
-
|
224
|
+
async function b(e) {
|
225
|
+
o.open({
|
212
226
|
title: e ? "Update Terminal" : "Create New Terminal",
|
213
227
|
closeButton: !0,
|
214
228
|
overlay: !0,
|
215
|
-
contentComponent:
|
229
|
+
contentComponent: re,
|
216
230
|
contentComponentProps: { terminal: e }
|
217
231
|
}).onPrimary(async (t) => {
|
218
232
|
var m;
|
219
|
-
|
233
|
+
o.close();
|
220
234
|
try {
|
221
235
|
await A.create(t), (m = n.value) == null || m.reset(), d.open({
|
222
236
|
type: "success",
|
@@ -231,7 +245,7 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
231
245
|
}
|
232
246
|
});
|
233
247
|
}
|
234
|
-
const
|
248
|
+
const I = function(e) {
|
235
249
|
return {
|
236
250
|
id: e._id,
|
237
251
|
status: e.status,
|
@@ -239,16 +253,16 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
239
253
|
name: e.name,
|
240
254
|
deviceId: e.deviceId,
|
241
255
|
deviceType: e.deviceType,
|
242
|
-
updatedAt:
|
256
|
+
updatedAt: j(e.updatedAt).format("YYYY-MM-DD hh:mm:ss")
|
243
257
|
};
|
244
|
-
},
|
258
|
+
}, T = [
|
245
259
|
{
|
246
260
|
accessorKey: "id",
|
247
261
|
header: () => "Terminal ID",
|
248
262
|
meta: {
|
249
263
|
textAlign: "right"
|
250
264
|
},
|
251
|
-
cell: ({ cell: e, row: t }) => E(
|
265
|
+
cell: ({ cell: e, row: t }) => E(ne, { row: t, data: e.getValue() })
|
252
266
|
},
|
253
267
|
{
|
254
268
|
accessorKey: "deviceType",
|
@@ -294,11 +308,11 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
294
308
|
cell: ({ row: e }) => {
|
295
309
|
var m;
|
296
310
|
const t = (m = n.value) == null ? void 0 : m.pageData().at(e.index);
|
297
|
-
return E(
|
311
|
+
return E(ae, {
|
298
312
|
data: t,
|
299
313
|
onLink: () => w(t._id),
|
300
314
|
onUnlink: () => _(t._id),
|
301
|
-
onEdit: () =>
|
315
|
+
onEdit: () => b(t)
|
302
316
|
});
|
303
317
|
}
|
304
318
|
}
|
@@ -318,46 +332,46 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
318
332
|
];
|
319
333
|
return (e, t) => {
|
320
334
|
const m = p("FmSearch"), C = p("FmSelect"), S = p("FmButton");
|
321
|
-
return f(), g(
|
335
|
+
return f(), g(G, {
|
322
336
|
title: "Terminals",
|
323
337
|
loading: !1
|
324
338
|
}, {
|
325
339
|
default: V(() => [
|
326
|
-
h("div",
|
327
|
-
h("div",
|
328
|
-
|
329
|
-
"model-value": c(
|
330
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
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),
|
331
345
|
class: "mr-8",
|
332
346
|
label: "Search",
|
333
347
|
placeholder: "Search Terminals ..."
|
334
348
|
}, null, 8, ["model-value"]),
|
335
|
-
|
349
|
+
y(C, {
|
336
350
|
modelValue: c(r),
|
337
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
351
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => P(r) ? r.value = s : null),
|
338
352
|
class: "ml-6 w-[180px]",
|
339
353
|
label: "Device",
|
340
354
|
items: u
|
341
355
|
}, null, 8, ["modelValue"])
|
342
356
|
]),
|
343
|
-
h("div",
|
344
|
-
|
357
|
+
h("div", se, [
|
358
|
+
y(S, {
|
345
359
|
label: "Create",
|
346
360
|
icon: "add",
|
347
|
-
onClick: t[2] || (t[2] = () =>
|
361
|
+
onClick: t[2] || (t[2] = () => b())
|
348
362
|
})
|
349
363
|
])
|
350
364
|
]),
|
351
|
-
|
365
|
+
y(Q, {
|
352
366
|
ref_key: "controller",
|
353
367
|
ref: n,
|
354
|
-
"column-defs":
|
355
|
-
"rows-defs":
|
356
|
-
paginate: (
|
357
|
-
onRowClick: t[3] || (t[3] = (
|
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({
|
358
372
|
name: "mf-payment-admin.terminal-setting",
|
359
373
|
params: {
|
360
|
-
terminalId:
|
374
|
+
terminalId: s._id
|
361
375
|
}
|
362
376
|
}))
|
363
377
|
}, null, 8, ["paginate"])
|
@@ -368,5 +382,5 @@ const ee = { class: "t-caption" }, te = { class: "t-h1 my-6 text-center" }, ne =
|
|
368
382
|
}
|
369
383
|
});
|
370
384
|
export {
|
371
|
-
|
385
|
+
he as default
|
372
386
|
};
|