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

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 (52) hide show
  1. package/dist/{PayoutAccount-Cp6BRMaS.js → PayoutAccount-B8nq1Ik5.js} +5 -5
  2. package/dist/{PayoutAccount-CqTsTBZX.js → PayoutAccount-CSWZF-z8.js} +3 -3
  3. package/dist/{PayoutAccountSetting-C2F22Ovd.js → PayoutAccountSetting-DLj_di-f.js} +3 -3
  4. package/dist/{Restaurant-CNQB63lu.js → Restaurant-BNCtsCkB.js} +4 -4
  5. package/dist/{RestaurantSetting-Bi92j02c.js → RestaurantSetting-D4CdKqLR.js} +3 -3
  6. package/dist/{Settlement-C5qI25dK.js → Settlement-ByKU2nbo.js} +3 -3
  7. package/dist/{Settlement-BelKti1m.js → Settlement-D3vNmtrn.js} +3 -3
  8. package/dist/{SettlementTransactions-CuyNgFn8.js → SettlementTransactions-COA2whhB.js} +3 -3
  9. package/dist/{SettlementTransactions-BKvdOQFZ.js → SettlementTransactions-OnGBlX91.js} +3 -3
  10. package/dist/{Terminal-BM7mFUN2.js → Terminal-BEGlXHeH.js} +6 -6
  11. package/dist/TerminalSetting-BMMKEXAW.js +389 -0
  12. package/dist/{Transaction-DOBa31yV.js → Transaction-CSUJ4-Qs.js} +64 -69
  13. package/dist/{Transaction-BbI4Y-kx.js → Transaction-_dO1GXXy.js} +6 -6
  14. package/dist/{TransactionOld-BSpDIIBR.js → TransactionOld-Bo_ilNzh.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-D7qy2K5g.js → TransactionTable.vue_vue_type_script_setup_true_lang-DZCndTn1.js} +3 -3
  16. package/dist/api/terminal/index.d.ts +0 -4
  17. package/dist/{app-A7Yrxt3x.js → app-CiImVRsy.js} +261 -261
  18. package/dist/app.js +1 -1
  19. package/dist/{assets-BIRvSsJh.js → assets-1VaaNVmv.js} +4 -6
  20. package/dist/{grafana-uJPk5KpA.js → grafana-B5l2gtJI.js} +4 -4
  21. package/dist/{index-CFCCizwA.js → index-B6gp7UJO.js} +1 -9
  22. package/dist/{index-C2jfSTHU.js → index-CGcFfU-T.js} +1 -1
  23. package/dist/{index-C_eAEbU4.js → index-CHStFeFQ.js} +1 -1
  24. package/dist/{index-DbTnFa90.js → index-DAwZpgYT.js} +1 -1
  25. package/dist/{index-BGFo2wSn.js → index-DCM8IXN0.js} +1 -1
  26. package/dist/{index-CMyW5AaS.js → index-Dk5jCvkX.js} +6995 -7053
  27. package/dist/{index.vue_vue_type_script_setup_true_lang-CyLBuzhu.js → index.vue_vue_type_script_setup_true_lang-D_lBJl2w.js} +1 -1
  28. package/dist/package.json +2 -2
  29. package/dist/{payout-account-De8VeHxb.js → payout-account-B96a8IZo.js} +2 -2
  30. package/dist/stores/payoutAccount.d.ts +2 -2
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +2 -2
  33. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +2 -2
  34. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +2 -2
  35. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +2 -2
  36. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +2 -2
  37. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +2 -2
  38. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  39. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  40. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  41. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
  42. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +2 -2
  43. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +2 -2
  44. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
  45. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +2 -2
  46. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +4 -4
  47. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +12 -12
  48. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +6 -6
  49. package/package.json +2 -2
  50. package/dist/TerminalSetting-DbA8P4qb.js +0 -489
  51. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +0 -87
  52. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +0 -87
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.1.3-beta.2",
3
+ "version": "1.1.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -34,7 +34,7 @@
34
34
  "@feedmepos/core": "^2.6.0",
35
35
  "@feedmepos/mf-common": "^1.11.6",
36
36
  "vue-i18n": "10.0.5",
37
- "@feedmepos/payment-entity": "^0.1.0",
37
+ "@feedmepos/payment-entity": "^0.0.23",
38
38
  "@feedmepos/ui-library": "^1.3.9",
39
39
  "axios": "^0.27.2",
40
40
  "buffer": "^6.0.3",
@@ -1,489 +0,0 @@
1
- import { defineComponent as S, openBlock as w, createElementBlock as C, Fragment as N, createElementVNode as F, createTextVNode as U, toDisplayString as M, toRef as R, ref as _, watch as B, onMounted as O, computed as K, resolveComponent as v, unref as I, createVNode as b, createBlock as k, withCtx as G, createCommentVNode as V, isRef as P, resolveDynamicComponent as Y, normalizeProps as $, mergeProps as j } from "vue";
2
- import { u as D, e as x } from "./index-CMyW5AaS.js";
3
- import { useRouter as H } from "vue-router";
4
- import { t as q } from "./index-CFCCizwA.js";
5
- import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { u as L } from "./index-C_eAEbU4.js";
7
- import { useSnackbar as E } 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 h } from "@feedmepos/mf-common";
11
- const Z = /* @__PURE__ */ S({
12
- __name: "Information",
13
- props: {
14
- terminal: {
15
- type: Object,
16
- required: !0
17
- }
18
- },
19
- setup(f) {
20
- return (s, e) => (w(), C(N, null, [
21
- e[0] || (e[0] = F("b", null, "Name", -1)),
22
- U(": " + M(f.terminal.name), 1),
23
- e[1] || (e[1] = F("br", null, null, -1)),
24
- e[2] || (e[2] = F("b", null, "Status", -1)),
25
- U(": " + M(f.terminal.status), 1),
26
- e[3] || (e[3] = F("br", null, null, -1)),
27
- e[4] || (e[4] = F("b", null, "Device ID", -1)),
28
- U(": " + M(f.terminal.deviceId ?? "-"), 1),
29
- e[5] || (e[5] = F("br", null, null, -1)),
30
- e[6] || (e[6] = F("b", null, "Device Type", -1)),
31
- U(": " + M(f.terminal.deviceType ?? "-"), 1),
32
- e[7] || (e[7] = F("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__ */ S({
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(f) {
51
- const { isLoading: s, startAsyncCall: e } = D(), c = f, a = R(() => c.terminal), o = _(), m = _(), t = _(-1), u = _({
52
- terminalId: ""
53
- }), d = () => {
54
- u.value.terminalId = "", t.value = -1;
55
- }, l = () => {
56
- if (e(async () => {
57
- o.value = await q.getRestaurantTerminals(c.terminal.referenceId);
58
- }), !c.terminal.ecrs)
59
- return d();
60
- const n = c.terminal.ecrs.findIndex((y) => y && y.gateway && y.gateway === "FeedMe");
61
- if (n === -1)
62
- return d();
63
- t.value = n;
64
- const i = c.terminal.ecrs.at(n);
65
- i.gateway === "FeedMe" && i.config && (u.value = {
66
- terminalId: i.config.terminalId
67
- });
68
- };
69
- B(a, l), O(l);
70
- const p = K(() => (o.value ?? []).map((n) => ({
71
- label: n.name ?? n._id,
72
- value: n._id
73
- })));
74
- async function r(n) {
75
- var i;
76
- (i = c.terminal.ecrs) == null || i.splice(n, 1), c.onUpdate(c.terminal);
77
- }
78
- return (n, i) => {
79
- const y = v("FmCircularProgress"), T = v("FmSelect"), g = v("FmButton"), z = v("FmForm");
80
- return I(s) ? (w(), C("div", ee, [
81
- b(y, { size: "xxl" })
82
- ])) : (w(), k(z, {
83
- key: 1,
84
- ref: m.value,
85
- class: "flex flex-col gap-16 w-[500px]",
86
- onValidationSuccess: i[1] || (i[1] = () => {
87
- t.value > -1 ? a.value.ecrs[t.value] = { gateway: "FeedMe", config: u.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "FeedMe", config: u.value })), c.onUpdate(a.value);
88
- })
89
- }, {
90
- default: G(() => [
91
- b(T, {
92
- modelValue: u.value.terminalId,
93
- "onUpdate:modelValue": i[0] || (i[0] = (A) => u.value.terminalId = A),
94
- label: "Terminal ID",
95
- items: p.value,
96
- rules: I(W)(I(X).string())
97
- }, null, 8, ["modelValue", "items", "rules"]),
98
- F("div", ae, [
99
- t.value > -1 ? (w(), k(g, {
100
- key: 0,
101
- class: "flex-1",
102
- variant: "secondary",
103
- label: "Delete",
104
- onclick: () => r(t.value)
105
- }, null, 8, ["onclick"])) : V("", !0),
106
- b(g, {
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__ */ S({
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(f) {
131
- const s = f, e = h().currentCountry, c = [
132
- {
133
- label: "Fiuu Malaysia",
134
- value: "cc.feedme.payment.rms",
135
- region: x.F_COUNTRY.enum.MY
136
- },
137
- {
138
- label: "Fiuu Malaysia V2",
139
- value: "cc.feedme.payment.fiuu_my",
140
- region: x.F_COUNTRY.enum.MY
141
- },
142
- {
143
- label: "Fiuu Singapore",
144
- value: "cc.feedme.payment.fiuu_sg",
145
- region: x.F_COUNTRY.enum.SG
146
- }
147
- ], a = R(() => s.terminal), o = _(), m = _(-1), t = _({
148
- packageId: "",
149
- uniqueId: ""
150
- }), u = () => {
151
- t.value.uniqueId = "", t.value.packageId = "", m.value = -1;
152
- }, d = () => {
153
- if (!a.value.gateways)
154
- return u();
155
- const p = a.value.gateways.findIndex((n) => n && n.gateway && n.gateway === "Fiuu");
156
- if (p === -1)
157
- return u();
158
- m.value = p;
159
- const r = a.value.gateways.at(p);
160
- r.gateway === "Fiuu" && r.config && (t.value = {
161
- packageId: r.config.packageId,
162
- uniqueId: r.config.uniqueId
163
- });
164
- };
165
- B(a, d), O(d);
166
- async function l(p) {
167
- var r;
168
- (r = a.value.gateways) == null || r.splice(p, 1), s.onUpdate(a.value);
169
- }
170
- return (p, r) => {
171
- const n = v("FmSelect"), i = v("FmTextField"), y = v("FmButton"), T = v("FmForm");
172
- return w(), k(T, {
173
- ref: o.value,
174
- class: "flex flex-col gap-16 w-[500px]",
175
- onValidationSuccess: r[2] || (r[2] = () => {
176
- m.value > -1 ? a.value.gateways[m.value] = { gateway: "Fiuu", config: t.value } : (a.value.gateways || (a.value.gateways = []), a.value.gateways.push({ gateway: "Fiuu", config: t.value })), s.onUpdate(a.value);
177
- })
178
- }, {
179
- default: G(() => [
180
- b(n, {
181
- modelValue: t.value.packageId,
182
- "onUpdate:modelValue": r[0] || (r[0] = (g) => t.value.packageId = g),
183
- label: "Package ID",
184
- items: c.filter((g) => g.region === I(e))
185
- }, null, 8, ["modelValue", "items"]),
186
- b(i, {
187
- modelValue: t.value.uniqueId,
188
- "onUpdate:modelValue": r[1] || (r[1] = (g) => t.value.uniqueId = g),
189
- label: "Unique ID"
190
- }, null, 8, ["modelValue"]),
191
- F("div", ne, [
192
- m.value > -1 ? (w(), k(y, {
193
- key: 0,
194
- class: "flex-1",
195
- variant: "secondary",
196
- label: "Delete",
197
- onclick: () => l(m.value)
198
- }, null, 8, ["onclick"])) : V("", !0),
199
- b(y, {
200
- type: "submit",
201
- class: "flex-1",
202
- variant: "primary",
203
- label: "Save"
204
- })
205
- ])
206
- ]),
207
- _: 1
208
- }, 512);
209
- };
210
- }
211
- }), oe = { class: "flex mt-6 space-x-6" }, re = /* @__PURE__ */ S({
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(f) {
224
- const s = f, e = R(() => s.terminal), c = _(), a = _(-1), o = _({
225
- merchantId: "",
226
- terminalId: "",
227
- privateKey: ""
228
- }), m = () => {
229
- o.value.merchantId = "", o.value.terminalId = "", o.value.privateKey = "", a.value = -1;
230
- }, t = () => {
231
- if (!e.value.ecrs)
232
- return m();
233
- const d = e.value.ecrs.findIndex((p) => p && p.gateway && p.gateway === "Ghl");
234
- if (d === -1)
235
- return m();
236
- a.value = d;
237
- const l = e.value.ecrs.at(d);
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
- B(e, t), O(t);
245
- async function u(d) {
246
- var l;
247
- (l = e.value.ecrs) == null || l.splice(d, 1), s.onUpdate(e.value);
248
- }
249
- return (d, l) => {
250
- const p = v("FmTextField"), r = v("FmTextarea"), n = v("FmButton"), i = v("FmForm");
251
- return w(), k(i, {
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 })), s.onUpdate(e.value);
256
- })
257
- }, {
258
- default: G(() => [
259
- b(p, {
260
- modelValue: o.value.merchantId,
261
- "onUpdate:modelValue": l[0] || (l[0] = (y) => o.value.merchantId = y),
262
- label: "Merchant ID"
263
- }, null, 8, ["modelValue"]),
264
- b(p, {
265
- modelValue: o.value.terminalId,
266
- "onUpdate:modelValue": l[1] || (l[1] = (y) => o.value.terminalId = y),
267
- label: "Terminal ID"
268
- }, null, 8, ["modelValue"]),
269
- b(r, {
270
- modelValue: o.value.privateKey,
271
- "onUpdate:modelValue": l[2] || (l[2] = (y) => o.value.privateKey = y),
272
- label: "Private Key"
273
- }, null, 8, ["modelValue"]),
274
- F("div", oe, [
275
- a.value > -1 ? (w(), k(n, {
276
- key: 0,
277
- class: "flex-1",
278
- variant: "secondary",
279
- label: "Delete",
280
- onclick: () => u(a.value)
281
- }, null, 8, ["onclick"])) : V("", !0),
282
- b(n, {
283
- type: "submit",
284
- class: "flex-1",
285
- variant: "primary",
286
- label: "Save"
287
- })
288
- ])
289
- ]),
290
- _: 1
291
- }, 512);
292
- };
293
- }
294
- }), ue = { key: 0 }, se = { class: "mt-6 space-x-6" }, ie = /* @__PURE__ */ S({
295
- __name: "KioskMode",
296
- props: {
297
- terminal: {
298
- type: Object,
299
- required: !0
300
- }
301
- },
302
- setup(f) {
303
- const { isLoading: s, startAsyncCall: e } = D(!1), c = E(), a = _({
304
- enable: !1,
305
- password: []
306
- }), o = f;
307
- function m() {
308
- return a.value.enable && a.value.password.filter((t) => !!t).length !== 6 ? c.open({
309
- type: "error",
310
- message: "Unlock PIN is required when setting up kiosk mode for terminal."
311
- }) : e(() => {
312
- const t = { enable: a.value.enable };
313
- return t.enable && Object.assign(t, {
314
- password: a.value.password.join("")
315
- }), q.kioskModeRequest(o.terminal._id, t);
316
- });
317
- }
318
- return (t, u) => {
319
- const d = v("FmSwitch"), l = v("FmPinField"), p = v("FmButton");
320
- return w(), C(N, null, [
321
- b(d, {
322
- modelValue: a.value.enable,
323
- "onUpdate:modelValue": u[0] || (u[0] = (r) => a.value.enable = r),
324
- label: "Enable Kiosk Mode?"
325
- }, null, 8, ["modelValue"]),
326
- a.value.enable ? (w(), C("div", ue, [
327
- u[2] || (u[2] = F("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
328
- b(l, {
329
- modelValue: a.value.password,
330
- "onUpdate:modelValue": u[1] || (u[1] = (r) => a.value.password = r)
331
- }, null, 8, ["modelValue"])
332
- ])) : V("", !0),
333
- F("div", se, [
334
- b(p, {
335
- variant: "primary",
336
- label: "Send",
337
- icon: "send",
338
- loading: I(s),
339
- onclick: m
340
- }, null, 8, ["loading"])
341
- ])
342
- ], 64);
343
- };
344
- }
345
- }), me = /* @__PURE__ */ S({
346
- __name: "SettingRequest",
347
- props: {
348
- terminal: {
349
- type: Object,
350
- required: !0
351
- }
352
- },
353
- setup(f) {
354
- const { settingTab: s } = L({
355
- settingTab: "kiosk_mode"
356
- }), e = [
357
- {
358
- label: "Kiosk Mode",
359
- value: "kiosk_mode",
360
- render: ie
361
- }
362
- ], c = f, a = K(() => e.find((o) => o.value === s.value));
363
- return (o, m) => {
364
- var u;
365
- const t = v("FmTabs");
366
- return w(), C(N, null, [
367
- m[1] || (m[1] = F("p", { className: "mt-1 my-6 text-gray-600" }, [
368
- F("b", null, "Note: "),
369
- U(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
370
- ], -1)),
371
- b(t, {
372
- "model-value": I(s),
373
- "onUpdate:modelValue": m[0] || (m[0] = (d) => P(s) ? s.value = d : null),
374
- class: "mb-6",
375
- items: e
376
- }, null, 8, ["model-value"]),
377
- I(s) ? (w(), k(Y((u = a.value) == null ? void 0 : u.render), $(j({ key: 0 }, { terminal: c.terminal })), null, 16)) : V("", !0)
378
- ], 64);
379
- };
380
- }
381
- }), Ie = /* @__PURE__ */ S({
382
- __name: "TerminalSetting",
383
- props: {
384
- terminalId: {
385
- type: String,
386
- required: !0
387
- }
388
- },
389
- setup(f) {
390
- const s = f, { tab: e } = L({
391
- tab: "information"
392
- }), { isLoading: c, startAsyncCall: a } = D(!0), o = H(), m = E(), t = _();
393
- async function u(n) {
394
- a(async () => {
395
- try {
396
- await q.updateById(
397
- s.terminalId,
398
- {
399
- name: n.name,
400
- status: n.status,
401
- ecrs: n.ecrs ?? [],
402
- gateways: n.gateways ?? []
403
- }
404
- ), t.value = await q.readById(s.terminalId), m.open({
405
- type: "success",
406
- message: "Terminal updated successfully"
407
- });
408
- } catch (i) {
409
- m.open({
410
- type: "error",
411
- title: "Error occurs when update terminal",
412
- message: J(i)
413
- });
414
- }
415
- });
416
- }
417
- const d = [
418
- {
419
- label: "Information",
420
- value: "information",
421
- icon: "overview",
422
- render: Z
423
- },
424
- {
425
- label: "Setting Request",
426
- value: "settings",
427
- icon: "settings",
428
- render: me,
429
- onlyFor: ["TERMINAL"]
430
- },
431
- {
432
- label: "Fiuu",
433
- value: "fiuu",
434
- icon: "payment",
435
- render: le,
436
- region: [x.F_COUNTRY.enum.MY, x.F_COUNTRY.enum.SG]
437
- },
438
- {
439
- label: "FeedMe Terminal",
440
- value: "terminal",
441
- icon: "shopping_cart_checkout",
442
- render: te,
443
- onlyFor: ["POS", "KIOSK"]
444
- },
445
- {
446
- label: "GHL Terminal (V2)",
447
- value: "ghl",
448
- icon: "shopping_cart_checkout",
449
- render: re,
450
- onlyFor: ["POS", "KIOSK"],
451
- region: [x.F_COUNTRY.enum.MY]
452
- }
453
- ], l = h().currentCountry, p = K(() => {
454
- var n;
455
- return (n = d.find((i) => i.value === e.value)) == null ? void 0 : n.render;
456
- });
457
- async function r() {
458
- a(async () => {
459
- t.value = await q.readById(s.terminalId);
460
- });
461
- }
462
- return O(r), (n, i) => {
463
- var T;
464
- const y = v("FmTabs");
465
- return w(), k(Q, {
466
- title: `Terminal (${(T = t.value) == null ? void 0 : T._id})`,
467
- loading: I(c),
468
- onBack: I(o).back
469
- }, {
470
- default: G(() => [
471
- b(y, {
472
- "model-value": I(e),
473
- "onUpdate:modelValue": i[0] || (i[0] = (g) => P(e) ? e.value = g : null),
474
- class: "mb-6",
475
- items: d.filter((g) => !g.onlyFor || g.onlyFor.includes(t.value.deviceType)).filter((g) => !g.region || g.region.includes(I(l) ?? I(x.F_COUNTRY).enum.MY))
476
- }, null, 8, ["model-value", "items"]),
477
- I(e) ? (w(), k(Y(p.value), $(j({ key: 0 }, {
478
- terminal: t.value,
479
- onUpdate: u
480
- })), null, 16)) : V("", !0)
481
- ]),
482
- _: 1
483
- }, 8, ["title", "loading", "onBack"]);
484
- };
485
- }
486
- });
487
- export {
488
- Ie as default
489
- };
@@ -1,87 +0,0 @@
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;
@@ -1,87 +0,0 @@
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;