@feedmepos/mf-payment 1.1.3-beta.1 → 1.1.3-beta.2

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.
Files changed (34) hide show
  1. package/dist/{PayoutAccount-7R-XGbkw.js → PayoutAccount-Cp6BRMaS.js} +5 -5
  2. package/dist/{PayoutAccount-DjoezowJ.js → PayoutAccount-CqTsTBZX.js} +3 -3
  3. package/dist/{PayoutAccountSetting-BqihswJe.js → PayoutAccountSetting-C2F22Ovd.js} +3 -3
  4. package/dist/{Restaurant-7TrS8d6s.js → Restaurant-CNQB63lu.js} +4 -4
  5. package/dist/{RestaurantSetting-Dpyicab8.js → RestaurantSetting-Bi92j02c.js} +3 -3
  6. package/dist/{Settlement-BlUSiZsx.js → Settlement-BelKti1m.js} +3 -3
  7. package/dist/{Settlement-DN3JsTNX.js → Settlement-C5qI25dK.js} +3 -3
  8. package/dist/{SettlementTransactions-BV_kkw3C.js → SettlementTransactions-BKvdOQFZ.js} +3 -3
  9. package/dist/{SettlementTransactions-CtpcelAj.js → SettlementTransactions-CuyNgFn8.js} +3 -3
  10. package/dist/{Terminal-BPGmJyBr.js → Terminal-BM7mFUN2.js} +5 -5
  11. package/dist/TerminalSetting-DbA8P4qb.js +489 -0
  12. package/dist/{Transaction-3mXqx9lj.js → Transaction-BbI4Y-kx.js} +6 -6
  13. package/dist/{Transaction-BcXtqy7q.js → Transaction-DOBa31yV.js} +5 -5
  14. package/dist/{TransactionOld-BoXazinl.js → TransactionOld-BSpDIIBR.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-YJdIz7mh.js → TransactionTable.vue_vue_type_script_setup_true_lang-D7qy2K5g.js} +3 -3
  16. package/dist/api/terminal/index.d.ts +4 -0
  17. package/dist/{app-B2ONMhEc.js → app-A7Yrxt3x.js} +228 -228
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-B7nU4Mu9.js → assets-BIRvSsJh.js} +1 -1
  20. package/dist/{grafana-BG5pJ6nx.js → grafana-uJPk5KpA.js} +1 -1
  21. package/dist/{index-CjStZacG.js → index-BGFo2wSn.js} +1 -1
  22. package/dist/{index-BL8YXSy-.js → index-C2jfSTHU.js} +1 -1
  23. package/dist/{index-DxvxWRU1.js → index-CFCCizwA.js} +9 -1
  24. package/dist/{index--9MVOpKU.js → index-CMyW5AaS.js} +1 -1
  25. package/dist/{index-BFbXr0i4.js → index-C_eAEbU4.js} +1 -1
  26. package/dist/{index-14bBnvrM.js → index-DbTnFa90.js} +1 -1
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-C2mZWnxY.js → index.vue_vue_type_script_setup_true_lang-CyLBuzhu.js} +1 -1
  28. package/dist/package.json +1 -1
  29. package/dist/{payout-account-u36s0Jc2.js → payout-account-De8VeHxb.js} +2 -2
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +87 -0
  32. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +87 -0
  33. package/package.json +1 -1
  34. package/dist/TerminalSetting-B1tumwma.js +0 -389
@@ -0,0 +1,87 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ terminal: {
4
+ type: PropType<{
5
+ name?: string | null | undefined;
6
+ secretKey?: string | null | undefined;
7
+ gateways?: ({
8
+ config?: {
9
+ uniqueId: string;
10
+ packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
11
+ } | null | undefined;
12
+ gateway: "Fiuu";
13
+ } | {
14
+ config?: any;
15
+ gateway: "ScanPay";
16
+ })[] | null | undefined;
17
+ deviceId?: string | null | undefined;
18
+ bindCode?: string | null | undefined;
19
+ token?: string | null | undefined;
20
+ ecrs?: ({
21
+ config?: {
22
+ terminalId: string;
23
+ } | null | undefined;
24
+ gateway: "FeedMe";
25
+ } | {
26
+ config?: {
27
+ merchantId: string;
28
+ terminalId: string;
29
+ privateKey: string;
30
+ } | null | undefined;
31
+ gateway: "Ghl";
32
+ })[] | null | undefined;
33
+ deletedAt?: string | null | undefined;
34
+ status: "Active" | "Inactive";
35
+ _id: string;
36
+ createdAt: string;
37
+ referenceId: string;
38
+ updatedAt: string;
39
+ securityCode: string;
40
+ deviceType: "KIOSK" | "TERMINAL" | "POS";
41
+ }>;
42
+ required: true;
43
+ };
44
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ terminal: {
46
+ type: PropType<{
47
+ name?: string | null | undefined;
48
+ secretKey?: string | null | undefined;
49
+ gateways?: ({
50
+ config?: {
51
+ uniqueId: string;
52
+ packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
53
+ } | null | undefined;
54
+ gateway: "Fiuu";
55
+ } | {
56
+ config?: any;
57
+ gateway: "ScanPay";
58
+ })[] | null | undefined;
59
+ deviceId?: string | null | undefined;
60
+ bindCode?: string | null | undefined;
61
+ token?: string | null | undefined;
62
+ ecrs?: ({
63
+ config?: {
64
+ terminalId: string;
65
+ } | null | undefined;
66
+ gateway: "FeedMe";
67
+ } | {
68
+ config?: {
69
+ merchantId: string;
70
+ terminalId: string;
71
+ privateKey: string;
72
+ } | null | undefined;
73
+ gateway: "Ghl";
74
+ })[] | null | undefined;
75
+ deletedAt?: string | null | undefined;
76
+ status: "Active" | "Inactive";
77
+ _id: string;
78
+ createdAt: string;
79
+ referenceId: string;
80
+ updatedAt: string;
81
+ securityCode: string;
82
+ deviceType: "KIOSK" | "TERMINAL" | "POS";
83
+ }>;
84
+ required: true;
85
+ };
86
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
87
+ export default _default;
@@ -0,0 +1,87 @@
1
+ import { type PropType } from 'vue';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ terminal: {
4
+ type: PropType<{
5
+ name?: string | null | undefined;
6
+ secretKey?: string | null | undefined;
7
+ gateways?: ({
8
+ config?: {
9
+ uniqueId: string;
10
+ packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
11
+ } | null | undefined;
12
+ gateway: "Fiuu";
13
+ } | {
14
+ config?: any;
15
+ gateway: "ScanPay";
16
+ })[] | null | undefined;
17
+ deviceId?: string | null | undefined;
18
+ bindCode?: string | null | undefined;
19
+ token?: string | null | undefined;
20
+ ecrs?: ({
21
+ config?: {
22
+ terminalId: string;
23
+ } | null | undefined;
24
+ gateway: "FeedMe";
25
+ } | {
26
+ config?: {
27
+ merchantId: string;
28
+ terminalId: string;
29
+ privateKey: string;
30
+ } | null | undefined;
31
+ gateway: "Ghl";
32
+ })[] | null | undefined;
33
+ deletedAt?: string | null | undefined;
34
+ status: "Active" | "Inactive";
35
+ _id: string;
36
+ createdAt: string;
37
+ referenceId: string;
38
+ updatedAt: string;
39
+ securityCode: string;
40
+ deviceType: "KIOSK" | "TERMINAL" | "POS";
41
+ }>;
42
+ required: true;
43
+ };
44
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
+ terminal: {
46
+ type: PropType<{
47
+ name?: string | null | undefined;
48
+ secretKey?: string | null | undefined;
49
+ gateways?: ({
50
+ config?: {
51
+ uniqueId: string;
52
+ packageId: "cc.feedme.payment.rms" | "cc.feedme.payment.fiuu_my" | "cc.feedme.payment.fiuu_sg";
53
+ } | null | undefined;
54
+ gateway: "Fiuu";
55
+ } | {
56
+ config?: any;
57
+ gateway: "ScanPay";
58
+ })[] | null | undefined;
59
+ deviceId?: string | null | undefined;
60
+ bindCode?: string | null | undefined;
61
+ token?: string | null | undefined;
62
+ ecrs?: ({
63
+ config?: {
64
+ terminalId: string;
65
+ } | null | undefined;
66
+ gateway: "FeedMe";
67
+ } | {
68
+ config?: {
69
+ merchantId: string;
70
+ terminalId: string;
71
+ privateKey: string;
72
+ } | null | undefined;
73
+ gateway: "Ghl";
74
+ })[] | null | undefined;
75
+ deletedAt?: string | null | undefined;
76
+ status: "Active" | "Inactive";
77
+ _id: string;
78
+ createdAt: string;
79
+ referenceId: string;
80
+ updatedAt: string;
81
+ securityCode: string;
82
+ deviceType: "KIOSK" | "TERMINAL" | "POS";
83
+ }>;
84
+ required: true;
85
+ };
86
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
87
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.1.3-beta.1",
3
+ "version": "1.1.3-beta.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,389 +0,0 @@
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 _, createVNode as I, createBlock as x, withCtx as q, createCommentVNode as B, isRef as h, resolveDynamicComponent as L, normalizeProps as j, mergeProps as z } from "vue";
2
- import { u as R, e as U } from "./index--9MVOpKU.js";
3
- import { useRouter as E } from "vue-router";
4
- import { t as C } from "./index-DxvxWRU1.js";
5
- import { _ as A } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { u as H } from "./index-BFbXr0i4.js";
7
- import { useSnackbar as Q } from "@feedmepos/ui-library";
8
- import { u as J } from "./error-K1CakhA9.js";
9
- import { z as W, a as X } from "./validator-D5jtpt9A.js";
10
- import { useCoreStore as $ } from "@feedmepos/mf-common";
11
- const Z = /* @__PURE__ */ T({
12
- __name: "Information",
13
- props: {
14
- terminal: {
15
- type: Object,
16
- required: !0
17
- }
18
- },
19
- setup(y) {
20
- return (d, e) => (b(), N(Y, null, [
21
- e[0] || (e[0] = g("b", null, "Name", -1)),
22
- V(": " + S(y.terminal.name), 1),
23
- e[1] || (e[1] = g("br", null, null, -1)),
24
- e[2] || (e[2] = g("b", null, "Status", -1)),
25
- V(": " + S(y.terminal.status), 1),
26
- e[3] || (e[3] = g("br", null, null, -1)),
27
- e[4] || (e[4] = g("b", null, "Device ID", -1)),
28
- V(": " + S(y.terminal.deviceId ?? "-"), 1),
29
- e[5] || (e[5] = g("br", null, null, -1)),
30
- e[6] || (e[6] = g("b", null, "Device Type", -1)),
31
- V(": " + S(y.terminal.deviceType ?? "-"), 1),
32
- e[7] || (e[7] = g("br", null, null, -1))
33
- ], 64));
34
- }
35
- }), ee = {
36
- key: 0,
37
- class: "flex items-center justify-center min-h-[80vh]"
38
- }, ae = { class: "flex mt-6 space-x-6" }, te = /* @__PURE__ */ T({
39
- __name: "TerminalGateway",
40
- props: {
41
- terminal: {
42
- type: Object,
43
- required: !0
44
- },
45
- onUpdate: {
46
- type: Function,
47
- required: !0
48
- }
49
- },
50
- setup(y) {
51
- const { isLoading: d, startAsyncCall: e } = R(), c = y, a = M(() => c.terminal), o = F(), v = F(), n = F(-1), p = F({
52
- terminalId: ""
53
- }), i = () => {
54
- p.value.terminalId = "", n.value = -1;
55
- }, l = () => {
56
- if (e(async () => {
57
- o.value = await C.getRestaurantTerminals(c.terminal.referenceId);
58
- }), !c.terminal.ecrs)
59
- return i();
60
- const t = c.terminal.ecrs.findIndex((m) => m && m.gateway && m.gateway === "FeedMe");
61
- if (t === -1)
62
- return i();
63
- n.value = t;
64
- const r = c.terminal.ecrs.at(t);
65
- r.gateway === "FeedMe" && r.config && (p.value = {
66
- terminalId: r.config.terminalId
67
- });
68
- };
69
- D(a, l), G(l);
70
- const s = O(() => (o.value ?? []).map((t) => ({
71
- label: t.name ?? t._id,
72
- value: t._id
73
- })));
74
- async function u(t) {
75
- var r;
76
- (r = c.terminal.ecrs) == null || r.splice(t, 1), c.onUpdate(c.terminal);
77
- }
78
- return (t, r) => {
79
- const m = f("FmCircularProgress"), k = f("FmSelect"), w = f("FmButton"), K = f("FmForm");
80
- return _(d) ? (b(), N("div", ee, [
81
- I(m, { size: "xxl" })
82
- ])) : (b(), x(K, {
83
- key: 1,
84
- ref: v.value,
85
- class: "flex flex-col gap-16 w-[500px]",
86
- onValidationSuccess: r[1] || (r[1] = () => {
87
- n.value > -1 ? a.value.ecrs[n.value] = { gateway: "FeedMe", config: p.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "FeedMe", config: p.value })), c.onUpdate(a.value);
88
- })
89
- }, {
90
- default: q(() => [
91
- I(k, {
92
- modelValue: p.value.terminalId,
93
- "onUpdate:modelValue": r[0] || (r[0] = (P) => p.value.terminalId = P),
94
- label: "Terminal ID",
95
- items: s.value,
96
- rules: _(W)(_(X).string())
97
- }, null, 8, ["modelValue", "items", "rules"]),
98
- g("div", ae, [
99
- n.value > -1 ? (b(), x(w, {
100
- key: 0,
101
- class: "flex-1",
102
- variant: "secondary",
103
- label: "Delete",
104
- onclick: () => u(n.value)
105
- }, null, 8, ["onclick"])) : B("", !0),
106
- I(w, {
107
- type: "submit",
108
- class: "flex-1",
109
- variant: "primary",
110
- label: "Save"
111
- })
112
- ])
113
- ]),
114
- _: 1
115
- }, 512));
116
- };
117
- }
118
- }), ne = { class: "flex mt-6 space-x-6" }, le = /* @__PURE__ */ T({
119
- __name: "FiuuGateway",
120
- props: {
121
- terminal: {
122
- type: Object,
123
- required: !0
124
- },
125
- onUpdate: {
126
- type: Function,
127
- required: !0
128
- }
129
- },
130
- setup(y) {
131
- const d = y, e = $().currentCountry, c = [
132
- {
133
- label: "Fiuu Malaysia",
134
- value: "cc.feedme.payment.rms",
135
- region: U.F_COUNTRY.enum.MY
136
- },
137
- {
138
- label: "Fiuu Malaysia V2",
139
- value: "cc.feedme.payment.fiuu_my",
140
- region: U.F_COUNTRY.enum.MY
141
- },
142
- {
143
- label: "Fiuu Singapore",
144
- value: "cc.feedme.payment.fiuu_sg",
145
- region: U.F_COUNTRY.enum.SG
146
- }
147
- ], a = M(() => d.terminal), o = F(), v = F(-1), n = F({
148
- packageId: "",
149
- uniqueId: ""
150
- }), p = () => {
151
- n.value.uniqueId = "", n.value.packageId = "", v.value = -1;
152
- }, i = () => {
153
- if (!a.value.gateways)
154
- return p();
155
- const s = a.value.gateways.findIndex((t) => t && t.gateway && t.gateway === "Fiuu");
156
- if (s === -1)
157
- return p();
158
- v.value = s;
159
- const u = a.value.gateways.at(s);
160
- u.gateway === "Fiuu" && u.config && (n.value = {
161
- packageId: u.config.packageId,
162
- uniqueId: u.config.uniqueId
163
- });
164
- };
165
- D(a, i), G(i);
166
- async function l(s) {
167
- var u;
168
- (u = a.value.gateways) == null || u.splice(s, 1), d.onUpdate(a.value);
169
- }
170
- return (s, u) => {
171
- const t = f("FmSelect"), r = f("FmTextField"), m = f("FmButton"), k = f("FmForm");
172
- return b(), x(k, {
173
- ref: o.value,
174
- class: "flex flex-col gap-16 w-[500px]",
175
- onValidationSuccess: u[2] || (u[2] = () => {
176
- v.value > -1 ? a.value.gateways[v.value] = { gateway: "Fiuu", config: n.value } : (a.value.gateways || (a.value.gateways = []), a.value.gateways.push({ gateway: "Fiuu", config: n.value })), d.onUpdate(a.value);
177
- })
178
- }, {
179
- default: q(() => [
180
- I(t, {
181
- modelValue: n.value.packageId,
182
- "onUpdate:modelValue": u[0] || (u[0] = (w) => n.value.packageId = w),
183
- label: "Package ID",
184
- items: c.filter((w) => w.region === _(e))
185
- }, null, 8, ["modelValue", "items"]),
186
- I(r, {
187
- modelValue: n.value.uniqueId,
188
- "onUpdate:modelValue": u[1] || (u[1] = (w) => n.value.uniqueId = w),
189
- label: "Unique ID"
190
- }, null, 8, ["modelValue"]),
191
- g("div", ne, [
192
- v.value > -1 ? (b(), x(m, {
193
- key: 0,
194
- class: "flex-1",
195
- variant: "secondary",
196
- label: "Delete",
197
- onclick: () => l(v.value)
198
- }, null, 8, ["onclick"])) : B("", !0),
199
- I(m, {
200
- type: "submit",
201
- class: "flex-1",
202
- variant: "primary",
203
- label: "Save"
204
- })
205
- ])
206
- ]),
207
- _: 1
208
- }, 512);
209
- };
210
- }
211
- }), re = { class: "flex mt-6 space-x-6" }, ue = /* @__PURE__ */ T({
212
- __name: "GhlGateway",
213
- props: {
214
- terminal: {
215
- type: Object,
216
- required: !0
217
- },
218
- onUpdate: {
219
- type: Function,
220
- required: !0
221
- }
222
- },
223
- setup(y) {
224
- const d = y, e = M(() => d.terminal), c = F(), a = F(-1), o = F({
225
- merchantId: "",
226
- terminalId: "",
227
- privateKey: ""
228
- }), v = () => {
229
- o.value.merchantId = "", o.value.terminalId = "", o.value.privateKey = "", a.value = -1;
230
- }, n = () => {
231
- if (!e.value.ecrs)
232
- return v();
233
- const i = e.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
234
- if (i === -1)
235
- return v();
236
- a.value = i;
237
- const l = e.value.ecrs.at(i);
238
- l.gateway === "Ghl" && l.config && (o.value = {
239
- merchantId: l.config.merchantId,
240
- terminalId: l.config.terminalId,
241
- privateKey: l.config.privateKey
242
- });
243
- };
244
- D(e, n), G(n);
245
- async function p(i) {
246
- var l;
247
- (l = e.value.ecrs) == null || l.splice(i, 1), d.onUpdate(e.value);
248
- }
249
- return (i, l) => {
250
- const s = f("FmTextField"), u = f("FmTextarea"), t = f("FmButton"), r = f("FmForm");
251
- return b(), x(r, {
252
- ref: c.value,
253
- class: "flex flex-col gap-16 w-[500px]",
254
- onValidationSuccess: l[3] || (l[3] = () => {
255
- a.value > -1 ? e.value.ecrs[a.value] = { gateway: "Ghl", config: o.value } : (e.value.ecrs || (e.value.ecrs = []), e.value.ecrs.push({ gateway: "Ghl", config: o.value })), d.onUpdate(e.value);
256
- })
257
- }, {
258
- default: q(() => [
259
- I(s, {
260
- modelValue: o.value.merchantId,
261
- "onUpdate:modelValue": l[0] || (l[0] = (m) => o.value.merchantId = m),
262
- label: "Merchant ID"
263
- }, null, 8, ["modelValue"]),
264
- I(s, {
265
- modelValue: o.value.terminalId,
266
- "onUpdate:modelValue": l[1] || (l[1] = (m) => o.value.terminalId = m),
267
- label: "Terminal ID"
268
- }, null, 8, ["modelValue"]),
269
- I(u, {
270
- modelValue: o.value.privateKey,
271
- "onUpdate:modelValue": l[2] || (l[2] = (m) => o.value.privateKey = m),
272
- label: "Private Key"
273
- }, null, 8, ["modelValue"]),
274
- g("div", re, [
275
- a.value > -1 ? (b(), x(t, {
276
- key: 0,
277
- class: "flex-1",
278
- variant: "secondary",
279
- label: "Delete",
280
- onclick: () => p(a.value)
281
- }, null, 8, ["onclick"])) : B("", !0),
282
- I(t, {
283
- type: "submit",
284
- class: "flex-1",
285
- variant: "primary",
286
- label: "Save"
287
- })
288
- ])
289
- ]),
290
- _: 1
291
- }, 512);
292
- };
293
- }
294
- }), ge = /* @__PURE__ */ T({
295
- __name: "TerminalSetting",
296
- props: {
297
- terminalId: {
298
- type: String,
299
- required: !0
300
- }
301
- },
302
- setup(y) {
303
- const d = y, { tab: e } = H({
304
- tab: "information"
305
- }), { isLoading: c, startAsyncCall: a } = R(!0), o = E(), v = Q(), n = F();
306
- async function p(t) {
307
- a(async () => {
308
- try {
309
- await C.updateById(
310
- d.terminalId,
311
- {
312
- name: t.name,
313
- status: t.status,
314
- ecrs: t.ecrs ?? [],
315
- gateways: t.gateways ?? []
316
- }
317
- ), n.value = await C.readById(d.terminalId), v.open({
318
- type: "success",
319
- message: "Terminal updated successfully"
320
- });
321
- } catch (r) {
322
- v.open({
323
- type: "error",
324
- title: "Error occurs when update terminal",
325
- message: J(r)
326
- });
327
- }
328
- });
329
- }
330
- const i = [
331
- {
332
- label: "Information",
333
- value: "information",
334
- icon: "overview",
335
- render: Z
336
- },
337
- {
338
- label: "Fiuu",
339
- value: "fiuu",
340
- icon: "payment",
341
- render: le
342
- }
343
- ], l = $().currentCountry, s = O(() => {
344
- var t;
345
- return (t = i.find((r) => r.value === e.value)) == null ? void 0 : t.render;
346
- });
347
- async function u() {
348
- a(async () => {
349
- n.value = await C.readById(d.terminalId), n.value.deviceType !== "TERMINAL" && (i.push({
350
- label: "FeedMe Terminal",
351
- value: "terminal",
352
- icon: "shopping_cart_checkout",
353
- render: te
354
- }), l.value === U.F_COUNTRY.enum.MY && i.push({
355
- label: "GHL Terminal (V2)",
356
- value: "ghl",
357
- icon: "shopping_cart_checkout",
358
- render: ue
359
- }));
360
- });
361
- }
362
- return G(u), (t, r) => {
363
- var k;
364
- const m = f("FmTabs");
365
- return b(), x(A, {
366
- title: `Terminal (${(k = n.value) == null ? void 0 : k._id})`,
367
- loading: _(c),
368
- onBack: _(o).back
369
- }, {
370
- default: q(() => [
371
- I(m, {
372
- "model-value": _(e),
373
- "onUpdate:modelValue": r[0] || (r[0] = (w) => h(e) ? e.value = w : null),
374
- class: "mb-6",
375
- items: i
376
- }, null, 8, ["model-value"]),
377
- _(e) ? (b(), x(L(s.value), j(z({ key: 0 }, {
378
- terminal: n.value,
379
- onUpdate: p
380
- })), null, 16)) : B("", !0)
381
- ]),
382
- _: 1
383
- }, 8, ["title", "loading", "onBack"]);
384
- };
385
- }
386
- });
387
- export {
388
- ge as default
389
- };