@feedmepos/mf-payment 1.6.6 → 1.6.7-dev

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 (42) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-D4az2wyZ.js → Actions.vue_vue_type_script_setup_true_lang-CZrcon1u.js} +1 -1
  2. package/dist/{Chargeback-DBVoS1i7.js → Chargeback-CyJfrwxb.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Be-_CCcQ.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Cv5FWC85.js} +1 -1
  4. package/dist/{OnboardForm-BMaAyObv.js → OnboardForm-C1NksC9F.js} +345 -337
  5. package/dist/{OnboardForm-BU7aOlzx.js → OnboardForm-D0-w4Hs7.js} +515 -499
  6. package/dist/{OnboardSubmission-CLFVR6it.js → OnboardSubmission-8zHp_xjf.js} +5 -5
  7. package/dist/{OnboardSubmission-DtFnP6FY.js → OnboardSubmission-9KbiiKVL.js} +2 -2
  8. package/dist/{PayoutAccount-DvtJX-p_.js → PayoutAccount-BG0byAv7.js} +5 -5
  9. package/dist/{PayoutAccount-C6OmmbYN.js → PayoutAccount-OrEOMoJY.js} +5 -5
  10. package/dist/{PayoutAccountSetting-DJfZtrOH.js → PayoutAccountSetting-o6ZhpOPK.js} +6 -6
  11. package/dist/{Restaurant-BwCkOdwS.js → Restaurant-Clq6OK2b.js} +4 -4
  12. package/dist/{RestaurantSetting-BVhDLkdp.js → RestaurantSetting-DV91ECeC.js} +3 -3
  13. package/dist/{Settlement-C2QjrIE9.js → Settlement-D-0x2ZTB.js} +3 -3
  14. package/dist/{Settlement-Ci4gsT3q.js → Settlement-OKi5EYCO.js} +4 -4
  15. package/dist/{SettlementTransactions-ZcVe5tH6.js → SettlementTransactions-BRfTH3E5.js} +4 -4
  16. package/dist/{SettlementTransactions-Ckg3LMbO.js → SettlementTransactions-Dz2OpCb4.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-C2ZmF0NE.js → Status.vue_vue_type_script_setup_true_lang-D0Byu_Mh.js} +1 -1
  18. package/dist/{Terminal-DTDXa21H.js → Terminal-CiDNiqcq.js} +5 -5
  19. package/dist/{TerminalSetting-BMqkYpsw.js → TerminalSetting-MF2mN3I2.js} +245 -243
  20. package/dist/{Transaction-C2wFhXAg.js → Transaction-5OMuBthJ.js} +9 -9
  21. package/dist/{Transaction-FQIms26e.js → Transaction-6EbQlBHK.js} +13 -13
  22. package/dist/{TransactionOld-BasKP0K7.js → TransactionOld-D844xnVy.js} +7 -7
  23. package/dist/{app-BuPNcf-O.js → app-CAPiUQNj.js} +180 -171
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-Du8qsnf-.js → assets-B6vPUj-V.js} +1 -1
  26. package/dist/{grafana-1G_iTavB.js → grafana-clHoRXUd.js} +1 -1
  27. package/dist/{index-DuL66Vcr.js → index-0MRh65G4.js} +1 -1
  28. package/dist/{index-C4v-8x6h.js → index-BTp0gp7d.js} +1 -1
  29. package/dist/{index-CNmDA8d1.js → index-BahSstlc.js} +1 -1
  30. package/dist/{index-CvC3YvHi.js → index-Bjjx0aUY.js} +1 -1
  31. package/dist/{index-BscmizJ1.js → index-CcLXQmus.js} +1 -1
  32. package/dist/{index-zk68cBfO.js → index-Cj0XK-4b.js} +1 -1
  33. package/dist/{index-BiXh6p-b.js → index-D0fZ0FyV.js} +1 -1
  34. package/dist/{index-D9s283fb.js → index-DxSewxiE.js} +1 -1
  35. package/dist/index-FbkInaFL.js +62 -0
  36. package/dist/{index-B2i7UU1z.js → index-TWx1hrJ5.js} +2 -2
  37. package/dist/{index.vue_vue_type_script_setup_true_lang-CWhuHC-7.js → index.vue_vue_type_script_setup_true_lang-Bxwd1AZ5.js} +1 -1
  38. package/dist/package.json +2 -2
  39. package/dist/{payout-account-Lal_bAeh.js → payout-account-BEEkGTfo.js} +3 -3
  40. package/dist/tsconfig.app.tsbuildinfo +1 -1
  41. package/package.json +1 -1
  42. package/dist/index-BwdnN4a2.js +0 -58
@@ -1,16 +1,16 @@
1
- import { defineComponent as R, openBlock as f, createElementBlock as M, Fragment as G, createElementVNode as I, createTextVNode as j, toDisplayString as W, ref as b, resolveComponent as g, createVNode as v, createCommentVNode as V, unref as h, computed as C, isRef as Z, createBlock as F, resolveDynamicComponent as ee, normalizeProps as ae, mergeProps as te, watch as P, onBeforeUnmount as pe, toRef as A, onMounted as q, withCtx as O, renderList as Y } from "vue";
2
- import { u as le, p as me, e as U } from "./index-DuL66Vcr.js";
1
+ import { defineComponent as M, openBlock as f, createElementBlock as R, Fragment as P, createElementVNode as I, createTextVNode as j, toDisplayString as W, ref as b, resolveComponent as g, createVNode as y, createCommentVNode as V, unref as h, computed as C, isRef as Z, createBlock as F, resolveDynamicComponent as ee, normalizeProps as ae, mergeProps as te, watch as q, onBeforeUnmount as pe, toRef as A, onMounted as G, withCtx as O, renderList as Y } from "vue";
2
+ import { u as le, p as me, e as U } from "./index-0MRh65G4.js";
3
3
  import { useRouter as ve } from "vue-router";
4
- import { t as E } from "./index-BiXh6p-b.js";
4
+ import { t as E } from "./index-D0fZ0FyV.js";
5
5
  import { _ as ye } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
- import { u as ne } from "./index-BscmizJ1.js";
6
+ import { u as ne } from "./index-CcLXQmus.js";
7
7
  import { useSnackbar as se } from "@feedmepos/ui-library";
8
8
  import { u as X } from "./error-K1CakhA9.js";
9
9
  import { useI18n as fe, useCoreStore as oe } from "@feedmepos/mf-common";
10
- import { o as ge } from "./index-B2i7UU1z.js";
10
+ import { o as ge } from "./index-TWx1hrJ5.js";
11
11
  import { c as be } from "./index-MdV54cWO.js";
12
12
  import { z as Te, a as _e } from "./validator-CTlVogBQ.js";
13
- const Ie = /* @__PURE__ */ R({
13
+ const Ie = /* @__PURE__ */ M({
14
14
  __name: "Information",
15
15
  props: {
16
16
  terminal: {
@@ -19,7 +19,7 @@ const Ie = /* @__PURE__ */ R({
19
19
  }
20
20
  },
21
21
  setup(_) {
22
- return (d, a) => (f(), M(G, null, [
22
+ return (d, a) => (f(), R(P, null, [
23
23
  a[0] || (a[0] = I("b", null, "Name", -1)),
24
24
  j(": " + W(_.terminal.name), 1),
25
25
  a[1] || (a[1] = I("br", null, null, -1)),
@@ -34,7 +34,7 @@ const Ie = /* @__PURE__ */ R({
34
34
  a[7] || (a[7] = I("br", null, null, -1))
35
35
  ], 64));
36
36
  }
37
- }), Fe = { key: 0 }, we = { class: "mt-6 space-x-6" }, xe = /* @__PURE__ */ R({
37
+ }), Fe = { key: 0 }, we = { class: "mt-6 space-x-6" }, xe = /* @__PURE__ */ M({
38
38
  __name: "KioskMode",
39
39
  props: {
40
40
  terminal: {
@@ -59,30 +59,30 @@ const Ie = /* @__PURE__ */ R({
59
59
  const c = await E.kioskModeRequest(r.terminal._id, m);
60
60
  if (c === "OK")
61
61
  return T.open({ type: "info", message: "Kiosk mode applied successfully." });
62
- let y = c;
63
- return c === "client_not_connected" && (y = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (y = c.replaceAll("terminal: ", "")), T.open({
62
+ let v = c;
63
+ return c === "client_not_connected" && (v = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (v = c.replaceAll("terminal: ", "")), T.open({
64
64
  type: "error",
65
- message: y
65
+ message: v
66
66
  });
67
67
  });
68
68
  }
69
69
  return (m, c) => {
70
- const y = g("FmSwitch"), u = g("FmPinField"), s = g("FmButton");
71
- return f(), M(G, null, [
72
- v(y, {
70
+ const v = g("FmSwitch"), u = g("FmPinField"), s = g("FmButton");
71
+ return f(), R(P, null, [
72
+ y(v, {
73
73
  modelValue: l.value.enable,
74
74
  "onUpdate:modelValue": c[0] || (c[0] = (t) => l.value.enable = t),
75
75
  label: "Enable Kiosk Mode?"
76
76
  }, null, 8, ["modelValue"]),
77
- l.value.enable ? (f(), M("div", Fe, [
77
+ l.value.enable ? (f(), R("div", Fe, [
78
78
  c[2] || (c[2] = I("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
79
- v(u, {
79
+ y(u, {
80
80
  modelValue: l.value.password,
81
81
  "onUpdate:modelValue": c[1] || (c[1] = (t) => l.value.password = t)
82
82
  }, null, 8, ["modelValue"])
83
83
  ])) : V("", !0),
84
84
  I("div", we, [
85
- v(s, {
85
+ y(s, {
86
86
  variant: "primary",
87
87
  label: "Send",
88
88
  icon: "send",
@@ -93,7 +93,7 @@ const Ie = /* @__PURE__ */ R({
93
93
  ], 64);
94
94
  };
95
95
  }
96
- }), Ne = /* @__PURE__ */ R({
96
+ }), Ne = /* @__PURE__ */ M({
97
97
  __name: "SettingRequest",
98
98
  props: {
99
99
  terminal: {
@@ -114,14 +114,14 @@ const Ie = /* @__PURE__ */ R({
114
114
  return (r, e) => {
115
115
  var c;
116
116
  const m = g("FmTabs");
117
- return f(), M(G, null, [
117
+ return f(), R(P, null, [
118
118
  e[1] || (e[1] = I("p", { className: "mt-1 my-6 text-gray-600" }, [
119
119
  I("b", null, "Note: "),
120
120
  j(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
121
121
  ], -1)),
122
- v(m, {
122
+ y(m, {
123
123
  "model-value": h(d),
124
- "onUpdate:modelValue": e[0] || (e[0] = (y) => Z(d) ? d.value = y : null),
124
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => Z(d) ? d.value = v : null),
125
125
  class: "mb-6",
126
126
  items: a
127
127
  }, null, 8, ["model-value"]),
@@ -137,13 +137,13 @@ function Se(_) {
137
137
  ($) => $.gateway === "Tyro"
138
138
  );
139
139
  return ((B = k == null ? void 0 : k.config) == null ? void 0 : B.uniqueId) || "";
140
- }), c = C(() => !!m.value), y = C(() => {
140
+ }), c = C(() => !!m.value), v = C(() => {
141
141
  var k;
142
142
  return ((k = e.value) == null ? void 0 : k.status) === "ready";
143
143
  }), u = C(() => {
144
144
  var k, D;
145
- return y.value && !!((D = (k = e.value) == null ? void 0 : k.fields) != null && D.tyroLocationId) && !!_.value.deviceId && !c.value;
146
- }), s = C(() => !y.value && !c.value), t = C(
145
+ return v.value && !!((D = (k = e.value) == null ? void 0 : k.fields) != null && D.tyroLocationId) && !!_.value.deviceId && !c.value;
146
+ }), s = C(() => !v.value && !c.value), t = C(
147
147
  () => l("payment.onboard-submission.tyro.syncDisabledHint")
148
148
  ), n = C(() => c.value ? "Synced" : "Sync");
149
149
  async function i() {
@@ -215,7 +215,7 @@ function Se(_) {
215
215
  });
216
216
  }
217
217
  }
218
- return P(
218
+ return q(
219
219
  () => _.value.referenceId,
220
220
  async () => {
221
221
  await i();
@@ -237,7 +237,7 @@ function Se(_) {
237
237
  const Ue = {
238
238
  key: 0,
239
239
  class: "text-sm text-gray-500"
240
- }, Re = { class: "flex mt-6 space-x-6" }, Me = { class: "flex-1" }, he = /* @__PURE__ */ R({
240
+ }, Re = { class: "flex mt-6 space-x-6" }, Me = { class: "flex-1" }, he = /* @__PURE__ */ M({
241
241
  __name: "SoftposGateway",
242
242
  props: {
243
243
  terminal: {
@@ -298,12 +298,12 @@ const Ue = {
298
298
  isUat: !1
299
299
  }), m = () => {
300
300
  e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "", e.value.isUat = !1;
301
- }, c = C(() => T.filter((N) => N.region === a.value)), y = C(() => c.value.find(
301
+ }, c = C(() => T.filter((N) => N.region === a.value)), v = C(() => c.value.find(
302
302
  (N) => N.value === e.value.packageId
303
303
  )), u = C(
304
304
  () => {
305
305
  var N;
306
- return ((N = y.value) == null ? void 0 : N.gateway) === "Tyro";
306
+ return ((N = v.value) == null ? void 0 : N.gateway) === "Tyro";
307
307
  }
308
308
  ), {
309
309
  isLoading: s,
@@ -350,9 +350,9 @@ const Ue = {
350
350
  return;
351
351
  }
352
352
  };
353
- P(l, $), q($);
353
+ q(l, $), G($);
354
354
  async function H() {
355
- const N = y.value;
355
+ const N = v.value;
356
356
  if (!N)
357
357
  return;
358
358
  let S = e.value.uniqueId;
@@ -385,82 +385,84 @@ const Ue = {
385
385
  onValidationSuccess: H
386
386
  }, {
387
387
  default: O(() => [
388
- v(re, {
388
+ y(re, {
389
389
  modelValue: e.value.packageId,
390
390
  "onUpdate:modelValue": S[0] || (S[0] = (L) => e.value.packageId = L),
391
391
  label: "Package ID",
392
392
  items: c.value
393
393
  }, null, 8, ["modelValue", "items"]),
394
- u.value ? (f(), F(J, {
395
- key: 0,
396
- "model-value": h(n),
397
- label: "Unique ID (Reader ID)",
398
- disabled: ""
399
- }, null, 8, ["model-value"])) : y.value && y.value.isLegacy ? (f(), M(G, { key: 1 }, [
400
- v(J, {
401
- modelValue: e.value.uniqueId,
402
- "onUpdate:modelValue": S[1] || (S[1] = (L) => e.value.uniqueId = L),
403
- label: "Unique ID (TID)"
404
- }, null, 8, ["modelValue"]),
405
- y.value.isOutdated ? (f(), M("span", Ue, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : V("", !0)
406
- ], 64)) : u.value ? V("", !0) : (f(), M(G, { key: 2 }, [
407
- v(J, {
408
- modelValue: e.value.developerId,
409
- "onUpdate:modelValue": S[2] || (S[2] = (L) => e.value.developerId = L),
410
- label: "Developer ID (MID)"
411
- }, null, 8, ["modelValue"]),
412
- v(J, {
413
- modelValue: e.value.uniqueId,
414
- "onUpdate:modelValue": S[3] || (S[3] = (L) => e.value.uniqueId = L),
415
- label: "Unique ID (TID)"
416
- }, null, 8, ["modelValue"]),
417
- v(ue, {
418
- modelValue: e.value.isUat,
419
- "onUpdate:modelValue": S[4] || (S[4] = (L) => e.value.isUat = L),
420
- label: "Is UAT (Test)",
421
- value: "1"
422
- }, null, 8, ["modelValue"])
423
- ], 64)),
424
- I("div", Re, [
425
- l.value.gateways && l.value.gateways.length > 0 ? (f(), F(ie, {
394
+ v.value ? (f(), R(P, { key: 0 }, [
395
+ u.value ? (f(), F(J, {
426
396
  key: 0,
427
- class: "flex-1",
428
- variant: "secondary",
429
- label: "Delete",
430
- onclick: () => z(0)
431
- }, null, 8, ["onclick"])) : V("", !0),
432
- u.value && h(p) && B.value ? (f(), F(ce, {
433
- key: 1,
434
- class: "flex-1",
435
- variant: "plain",
436
- placement: "top",
437
- content: h(x)
438
- }, {
439
- default: O(() => [
440
- I("div", Me, [
441
- v(ie, {
442
- type: K.value,
443
- class: "w-full",
444
- variant: "primary",
445
- loading: D.value,
446
- disabled: B.value,
447
- label: k.value,
448
- onClick: Q
449
- }, null, 8, ["type", "loading", "disabled", "label"])
450
- ])
451
- ]),
452
- _: 1
453
- }, 8, ["content"])) : (f(), F(ie, {
454
- key: 2,
455
- type: K.value,
456
- class: "flex-1",
457
- variant: "primary",
458
- loading: D.value,
459
- disabled: B.value,
460
- label: k.value,
461
- onClick: Q
462
- }, null, 8, ["type", "loading", "disabled", "label"]))
463
- ])
397
+ "model-value": h(n),
398
+ label: "Unique ID (Reader ID)",
399
+ disabled: ""
400
+ }, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (f(), R(P, { key: 1 }, [
401
+ y(J, {
402
+ modelValue: e.value.uniqueId,
403
+ "onUpdate:modelValue": S[1] || (S[1] = (L) => e.value.uniqueId = L),
404
+ label: "Unique ID (TID)"
405
+ }, null, 8, ["modelValue"]),
406
+ v.value.isOutdated ? (f(), R("span", Ue, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : V("", !0)
407
+ ], 64)) : (f(), R(P, { key: 2 }, [
408
+ y(J, {
409
+ modelValue: e.value.developerId,
410
+ "onUpdate:modelValue": S[2] || (S[2] = (L) => e.value.developerId = L),
411
+ label: "Developer ID (MID)"
412
+ }, null, 8, ["modelValue"]),
413
+ y(J, {
414
+ modelValue: e.value.uniqueId,
415
+ "onUpdate:modelValue": S[3] || (S[3] = (L) => e.value.uniqueId = L),
416
+ label: "Unique ID (TID)"
417
+ }, null, 8, ["modelValue"]),
418
+ y(ue, {
419
+ modelValue: e.value.isUat,
420
+ "onUpdate:modelValue": S[4] || (S[4] = (L) => e.value.isUat = L),
421
+ label: "Is UAT (Test)",
422
+ value: "1"
423
+ }, null, 8, ["modelValue"])
424
+ ], 64)),
425
+ I("div", Re, [
426
+ l.value.gateways && l.value.gateways.length > 0 ? (f(), F(ie, {
427
+ key: 0,
428
+ class: "flex-1",
429
+ variant: "secondary",
430
+ label: "Delete",
431
+ onclick: () => z(0)
432
+ }, null, 8, ["onclick"])) : V("", !0),
433
+ u.value && h(p) && B.value ? (f(), F(ce, {
434
+ key: 1,
435
+ class: "flex-1",
436
+ variant: "plain",
437
+ placement: "top",
438
+ content: h(x)
439
+ }, {
440
+ default: O(() => [
441
+ I("div", Me, [
442
+ y(ie, {
443
+ type: K.value,
444
+ class: "w-full",
445
+ variant: "primary",
446
+ loading: D.value,
447
+ disabled: B.value,
448
+ label: k.value,
449
+ onClick: Q
450
+ }, null, 8, ["type", "loading", "disabled", "label"])
451
+ ])
452
+ ]),
453
+ _: 1
454
+ }, 8, ["content"])) : (f(), F(ie, {
455
+ key: 2,
456
+ type: K.value,
457
+ class: "flex-1",
458
+ variant: "primary",
459
+ loading: D.value,
460
+ disabled: B.value,
461
+ label: k.value,
462
+ onClick: Q
463
+ }, null, 8, ["type", "loading", "disabled", "label"]))
464
+ ])
465
+ ], 64)) : V("", !0)
464
466
  ]),
465
467
  _: 1
466
468
  }, 512);
@@ -469,7 +471,7 @@ const Ue = {
469
471
  }), Oe = {
470
472
  key: 0,
471
473
  class: "flex items-center justify-center min-h-[80vh]"
472
- }, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ R({
474
+ }, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ M({
473
475
  __name: "TerminalGateway",
474
476
  props: {
475
477
  terminal: {
@@ -484,23 +486,23 @@ const Ue = {
484
486
  setup(_) {
485
487
  const { isLoading: d, startAsyncCall: a } = le(), T = _, l = A(() => T.terminal), r = b(), e = b(), m = b(-1), c = b({
486
488
  terminalId: ""
487
- }), y = () => {
489
+ }), v = () => {
488
490
  c.value.terminalId = "", m.value = -1;
489
491
  }, u = () => {
490
492
  if (a(async () => {
491
493
  r.value = await E.getRestaurantTerminals(T.terminal.referenceId);
492
494
  }), !T.terminal.ecrs)
493
- return y();
495
+ return v();
494
496
  const n = T.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
495
497
  if (n === -1)
496
- return y();
498
+ return v();
497
499
  m.value = n;
498
500
  const i = T.terminal.ecrs.at(n);
499
501
  i.gateway === "FeedMe" && i.config && (c.value = {
500
502
  terminalId: i.config.terminalId
501
503
  });
502
504
  };
503
- P(l, u), q(u);
505
+ q(l, u), G(u);
504
506
  const s = C(() => (r.value ?? []).map((n) => ({
505
507
  label: n.name ?? n._id,
506
508
  value: n._id
@@ -511,8 +513,8 @@ const Ue = {
511
513
  }
512
514
  return (n, i) => {
513
515
  const p = g("FmCircularProgress"), x = g("FmSelect"), o = g("FmButton"), w = g("FmForm");
514
- return h(d) ? (f(), M("div", Oe, [
515
- v(p, { size: "xxl" })
516
+ return h(d) ? (f(), R("div", Oe, [
517
+ y(p, { size: "xxl" })
516
518
  ])) : (f(), F(w, {
517
519
  key: 1,
518
520
  ref: e.value,
@@ -522,7 +524,7 @@ const Ue = {
522
524
  })
523
525
  }, {
524
526
  default: O(() => [
525
- v(x, {
527
+ y(x, {
526
528
  modelValue: c.value.terminalId,
527
529
  "onUpdate:modelValue": i[0] || (i[0] = (K) => c.value.terminalId = K),
528
530
  label: "Terminal ID",
@@ -537,7 +539,7 @@ const Ue = {
537
539
  label: "Delete",
538
540
  onclick: () => t(m.value)
539
541
  }, null, 8, ["onclick"])) : V("", !0),
540
- v(o, {
542
+ y(o, {
541
543
  type: "submit",
542
544
  class: "flex-1",
543
545
  variant: "primary",
@@ -549,7 +551,7 @@ const Ue = {
549
551
  }, 512));
550
552
  };
551
553
  }
552
- }), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ R({
554
+ }), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ M({
553
555
  __name: "GhlGateway",
554
556
  props: {
555
557
  terminal: {
@@ -571,23 +573,23 @@ const Ue = {
571
573
  }, m = () => {
572
574
  if (!a.value.ecrs)
573
575
  return e();
574
- const y = a.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
575
- if (y === -1)
576
+ const v = a.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
577
+ if (v === -1)
576
578
  return e();
577
- l.value = y;
578
- const u = a.value.ecrs.at(y);
579
+ l.value = v;
580
+ const u = a.value.ecrs.at(v);
579
581
  u.gateway === "Ghl" && u.config && (r.value = {
580
582
  merchantId: u.config.merchantId,
581
583
  terminalId: u.config.terminalId,
582
584
  privateKey: u.config.privateKey || ""
583
585
  });
584
586
  };
585
- P(a, m), q(m);
586
- async function c(y) {
587
+ q(a, m), G(m);
588
+ async function c(v) {
587
589
  var u;
588
- (u = a.value.ecrs) == null || u.splice(y, 1), d.onUpdate(a.value);
590
+ (u = a.value.ecrs) == null || u.splice(v, 1), d.onUpdate(a.value);
589
591
  }
590
- return (y, u) => {
592
+ return (v, u) => {
591
593
  const s = g("FmTextField"), t = g("FmTextarea"), n = g("FmButton"), i = g("FmForm");
592
594
  return f(), F(i, {
593
595
  ref: T.value,
@@ -597,17 +599,17 @@ const Ue = {
597
599
  })
598
600
  }, {
599
601
  default: O(() => [
600
- v(s, {
602
+ y(s, {
601
603
  modelValue: r.value.merchantId,
602
604
  "onUpdate:modelValue": u[0] || (u[0] = (p) => r.value.merchantId = p),
603
605
  label: "Merchant ID"
604
606
  }, null, 8, ["modelValue"]),
605
- v(s, {
607
+ y(s, {
606
608
  modelValue: r.value.terminalId,
607
609
  "onUpdate:modelValue": u[1] || (u[1] = (p) => r.value.terminalId = p),
608
610
  label: "Terminal ID"
609
611
  }, null, 8, ["modelValue"]),
610
- v(t, {
612
+ y(t, {
611
613
  modelValue: r.value.privateKey,
612
614
  "onUpdate:modelValue": u[2] || (u[2] = (p) => r.value.privateKey = p),
613
615
  label: "Private Key",
@@ -622,7 +624,7 @@ const Ue = {
622
624
  label: "Delete",
623
625
  onclick: () => c(l.value)
624
626
  }, null, 8, ["onclick"])) : V("", !0),
625
- v(n, {
627
+ y(n, {
626
628
  type: "submit",
627
629
  class: "flex-1",
628
630
  variant: "primary",
@@ -634,7 +636,7 @@ const Ue = {
634
636
  }, 512);
635
637
  };
636
638
  }
637
- }), De = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Be = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */ R({
639
+ }), De = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Be = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */ M({
638
640
  __name: "MaybankGateway",
639
641
  props: {
640
642
  terminal: {
@@ -668,8 +670,8 @@ const Ue = {
668
670
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
669
671
  });
670
672
  };
671
- P(a, c), q(c);
672
- async function y(s) {
673
+ q(a, c), G(c);
674
+ async function v(s) {
673
675
  var t;
674
676
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
675
677
  }
@@ -702,32 +704,32 @@ const Ue = {
702
704
  })
703
705
  }, {
704
706
  default: O(() => [
705
- v(n, {
707
+ y(n, {
706
708
  modelValue: e.value.ip,
707
709
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
708
710
  label: "IP Address"
709
711
  }, null, 8, ["modelValue"]),
710
- v(n, {
712
+ y(n, {
711
713
  modelValue: e.value.receiptName,
712
714
  "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
713
715
  label: "Receipt Payment Name",
714
716
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
715
717
  }, null, 8, ["modelValue"]),
716
718
  I("div", De, [
717
- v(n, {
719
+ y(n, {
718
720
  modelValue: r.value,
719
721
  "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
720
722
  label: "Fallback Card Types",
721
723
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
722
724
  }, null, 8, ["modelValue"]),
723
- v(i, {
725
+ y(i, {
724
726
  class: "ml-4",
725
727
  icon: "add",
726
728
  onClick: u
727
729
  })
728
730
  ]),
729
731
  I("div", $e, [
730
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
732
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
731
733
  key: o,
732
734
  label: o,
733
735
  removable: !0,
@@ -740,9 +742,9 @@ const Ue = {
740
742
  class: "flex-1",
741
743
  variant: "secondary",
742
744
  label: "Delete",
743
- onclick: () => y(l.value)
745
+ onclick: () => v(l.value)
744
746
  }, null, 8, ["onclick"])) : V("", !0),
745
- v(i, {
747
+ y(i, {
746
748
  type: "submit",
747
749
  class: "flex-1",
748
750
  variant: "primary",
@@ -754,7 +756,7 @@ const Ue = {
754
756
  }, 512);
755
757
  };
756
758
  }
757
- }), Ye = { class: "flex items-end" }, Ee = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ke = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */ R({
759
+ }), Ye = { class: "flex items-end" }, Ee = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ke = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */ M({
758
760
  __name: "Maybank2Gateway",
759
761
  props: {
760
762
  terminal: {
@@ -788,8 +790,8 @@ const Ue = {
788
790
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
789
791
  });
790
792
  };
791
- P(a, c), q(c);
792
- async function y(s) {
793
+ q(a, c), G(c);
794
+ async function v(s) {
793
795
  var t;
794
796
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
795
797
  }
@@ -822,32 +824,32 @@ const Ue = {
822
824
  })
823
825
  }, {
824
826
  default: O(() => [
825
- v(n, {
827
+ y(n, {
826
828
  modelValue: e.value.ip,
827
829
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
828
830
  label: "IP Address"
829
831
  }, null, 8, ["modelValue"]),
830
- v(n, {
832
+ y(n, {
831
833
  modelValue: e.value.receiptName,
832
834
  "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
833
835
  label: "Receipt Payment Name",
834
836
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
835
837
  }, null, 8, ["modelValue"]),
836
838
  I("div", Ye, [
837
- v(n, {
839
+ y(n, {
838
840
  modelValue: r.value,
839
841
  "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
840
842
  label: "Fallback Card Types",
841
843
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
842
844
  }, null, 8, ["modelValue"]),
843
- v(i, {
845
+ y(i, {
844
846
  class: "ml-4",
845
847
  icon: "add",
846
848
  onClick: u
847
849
  })
848
850
  ]),
849
851
  I("div", Ee, [
850
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
852
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
851
853
  key: o,
852
854
  label: o,
853
855
  removable: !0,
@@ -860,9 +862,9 @@ const Ue = {
860
862
  class: "flex-1",
861
863
  variant: "secondary",
862
864
  label: "Delete",
863
- onclick: () => y(l.value)
865
+ onclick: () => v(l.value)
864
866
  }, null, 8, ["onclick"])) : V("", !0),
865
- v(i, {
867
+ y(i, {
866
868
  type: "submit",
867
869
  class: "flex-1",
868
870
  variant: "primary",
@@ -874,7 +876,7 @@ const Ue = {
874
876
  }, 512);
875
877
  };
876
878
  }
877
- }), He = { class: "flex items-end" }, ze = { class: "flex flex-wrap gap-8 items-center mt-4" }, Qe = { class: "flex mt-6 space-x-6" }, Je = /* @__PURE__ */ R({
879
+ }), He = { class: "flex items-end" }, ze = { class: "flex flex-wrap gap-8 items-center mt-4" }, Qe = { class: "flex mt-6 space-x-6" }, Je = /* @__PURE__ */ M({
878
880
  __name: "Maybank3Gateway",
879
881
  props: {
880
882
  terminal: {
@@ -908,8 +910,8 @@ const Ue = {
908
910
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
909
911
  });
910
912
  };
911
- P(a, c), q(c);
912
- async function y(s) {
913
+ q(a, c), G(c);
914
+ async function v(s) {
913
915
  var t;
914
916
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
915
917
  }
@@ -942,27 +944,27 @@ const Ue = {
942
944
  })
943
945
  }, {
944
946
  default: O(() => [
945
- v(n, {
947
+ y(n, {
946
948
  modelValue: e.value.receiptName,
947
949
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
948
950
  label: "Receipt Payment Name",
949
951
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
950
952
  }, null, 8, ["modelValue"]),
951
953
  I("div", He, [
952
- v(n, {
954
+ y(n, {
953
955
  modelValue: r.value,
954
956
  "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
955
957
  label: "Fallback Card Types",
956
958
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
957
959
  }, null, 8, ["modelValue"]),
958
- v(i, {
960
+ y(i, {
959
961
  class: "ml-4",
960
962
  icon: "add",
961
963
  onClick: u
962
964
  })
963
965
  ]),
964
966
  I("div", ze, [
965
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
967
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
966
968
  key: o,
967
969
  label: o,
968
970
  removable: !0,
@@ -975,9 +977,9 @@ const Ue = {
975
977
  class: "flex-1",
976
978
  variant: "secondary",
977
979
  label: "Delete",
978
- onclick: () => y(l.value)
980
+ onclick: () => v(l.value)
979
981
  }, null, 8, ["onclick"])) : V("", !0),
980
- v(i, {
982
+ y(i, {
981
983
  type: "submit",
982
984
  class: "flex-1",
983
985
  variant: "primary",
@@ -989,7 +991,7 @@ const Ue = {
989
991
  }, 512);
990
992
  };
991
993
  }
992
- }), We = { class: "flex items-end" }, Xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ze = { class: "flex mt-6 space-x-6" }, ea = /* @__PURE__ */ R({
994
+ }), We = { class: "flex items-end" }, Xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ze = { class: "flex mt-6 space-x-6" }, ea = /* @__PURE__ */ M({
993
995
  __name: "NetsGateway",
994
996
  props: {
995
997
  terminal: {
@@ -1023,8 +1025,8 @@ const Ue = {
1023
1025
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1024
1026
  });
1025
1027
  };
1026
- P(a, c), q(c);
1027
- async function y(s) {
1028
+ q(a, c), G(c);
1029
+ async function v(s) {
1028
1030
  var t;
1029
1031
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1030
1032
  }
@@ -1057,32 +1059,32 @@ const Ue = {
1057
1059
  })
1058
1060
  }, {
1059
1061
  default: O(() => [
1060
- v(n, {
1062
+ y(n, {
1061
1063
  modelValue: e.value.ip,
1062
1064
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
1063
1065
  label: "IP Address"
1064
1066
  }, null, 8, ["modelValue"]),
1065
- v(n, {
1067
+ y(n, {
1066
1068
  modelValue: e.value.receiptName,
1067
1069
  "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
1068
1070
  label: "Receipt Payment Name",
1069
1071
  "label-info": "Default receipt display will be 'TERMINAL_NETS'"
1070
1072
  }, null, 8, ["modelValue"]),
1071
1073
  I("div", We, [
1072
- v(n, {
1074
+ y(n, {
1073
1075
  modelValue: r.value,
1074
1076
  "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
1075
1077
  label: "Fallback Card Types",
1076
1078
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1077
1079
  }, null, 8, ["modelValue"]),
1078
- v(i, {
1080
+ y(i, {
1079
1081
  class: "ml-4",
1080
1082
  icon: "add",
1081
1083
  onClick: u
1082
1084
  })
1083
1085
  ]),
1084
1086
  I("div", Xe, [
1085
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1087
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1086
1088
  key: o,
1087
1089
  label: o,
1088
1090
  removable: !0,
@@ -1095,9 +1097,9 @@ const Ue = {
1095
1097
  class: "flex-1",
1096
1098
  variant: "secondary",
1097
1099
  label: "Delete",
1098
- onclick: () => y(l.value)
1100
+ onclick: () => v(l.value)
1099
1101
  }, null, 8, ["onclick"])) : V("", !0),
1100
- v(i, {
1102
+ y(i, {
1101
1103
  type: "submit",
1102
1104
  class: "flex-1",
1103
1105
  variant: "primary",
@@ -1109,7 +1111,7 @@ const Ue = {
1109
1111
  }, 512);
1110
1112
  };
1111
1113
  }
1112
- }), aa = { class: "flex items-end" }, ta = { class: "flex flex-wrap gap-8 items-center mt-4" }, la = { class: "flex mt-6 space-x-6" }, na = /* @__PURE__ */ R({
1114
+ }), aa = { class: "flex items-end" }, ta = { class: "flex flex-wrap gap-8 items-center mt-4" }, la = { class: "flex mt-6 space-x-6" }, na = /* @__PURE__ */ M({
1113
1115
  __name: "KBankGateway",
1114
1116
  props: {
1115
1117
  terminal: {
@@ -1141,8 +1143,8 @@ const Ue = {
1141
1143
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1142
1144
  });
1143
1145
  };
1144
- P(a, c), q(c);
1145
- async function y(s) {
1146
+ q(a, c), G(c);
1147
+ async function v(s) {
1146
1148
  var t;
1147
1149
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1148
1150
  }
@@ -1175,27 +1177,27 @@ const Ue = {
1175
1177
  })
1176
1178
  }, {
1177
1179
  default: O(() => [
1178
- v(n, {
1180
+ y(n, {
1179
1181
  modelValue: e.value.receiptName,
1180
1182
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1181
1183
  label: "Receipt Payment Name",
1182
1184
  "label-info": "Default receipt display will be 'TERMINAL_KBANK'"
1183
1185
  }, null, 8, ["modelValue"]),
1184
1186
  I("div", aa, [
1185
- v(n, {
1187
+ y(n, {
1186
1188
  modelValue: r.value,
1187
1189
  "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1188
1190
  label: "Fallback Card Types",
1189
1191
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1190
1192
  }, null, 8, ["modelValue"]),
1191
- v(i, {
1193
+ y(i, {
1192
1194
  class: "ml-4",
1193
1195
  icon: "add",
1194
1196
  onClick: u
1195
1197
  })
1196
1198
  ]),
1197
1199
  I("div", ta, [
1198
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1200
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1199
1201
  key: o,
1200
1202
  label: o,
1201
1203
  removable: !0,
@@ -1208,9 +1210,9 @@ const Ue = {
1208
1210
  class: "flex-1",
1209
1211
  variant: "secondary",
1210
1212
  label: "Delete",
1211
- onclick: () => y(l.value)
1213
+ onclick: () => v(l.value)
1212
1214
  }, null, 8, ["onclick"])) : V("", !0),
1213
- v(i, {
1215
+ y(i, {
1214
1216
  type: "submit",
1215
1217
  class: "flex-1",
1216
1218
  variant: "primary",
@@ -1222,7 +1224,7 @@ const Ue = {
1222
1224
  }, 512);
1223
1225
  };
1224
1226
  }
1225
- }), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */ R({
1227
+ }), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */ M({
1226
1228
  __name: "Ghl2Gateway",
1227
1229
  props: {
1228
1230
  terminal: {
@@ -1243,22 +1245,22 @@ const Ue = {
1243
1245
  }, m = () => {
1244
1246
  if (!a.value.ecrIntegrations)
1245
1247
  return e();
1246
- const y = a.value.ecrIntegrations, u = y.findIndex((t) => t && t.gateway && t.gateway === "Ghl2");
1248
+ const v = a.value.ecrIntegrations, u = v.findIndex((t) => t && t.gateway && t.gateway === "Ghl2");
1247
1249
  if (u === -1)
1248
1250
  return e();
1249
1251
  l.value = u;
1250
- const s = y.at(u);
1252
+ const s = v.at(u);
1251
1253
  s.gateway === "Ghl2" && s.config && (r.value = {
1252
1254
  ip: s.config.ip ?? "",
1253
1255
  receiptName: s.receiptName ?? ""
1254
1256
  });
1255
1257
  };
1256
- P(a, m), q(m);
1257
- async function c(y) {
1258
+ q(a, m), G(m);
1259
+ async function c(v) {
1258
1260
  var u;
1259
- (u = a.value.ecrIntegrations) == null || u.splice(y, 1), d.onUpdate(a.value);
1261
+ (u = a.value.ecrIntegrations) == null || u.splice(v, 1), d.onUpdate(a.value);
1260
1262
  }
1261
- return (y, u) => {
1263
+ return (v, u) => {
1262
1264
  const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
1263
1265
  return f(), F(n, {
1264
1266
  ref: T.value,
@@ -1276,12 +1278,12 @@ const Ue = {
1276
1278
  })
1277
1279
  }, {
1278
1280
  default: O(() => [
1279
- v(s, {
1281
+ y(s, {
1280
1282
  modelValue: r.value.ip,
1281
1283
  "onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.ip = i),
1282
1284
  label: "IP Address"
1283
1285
  }, null, 8, ["modelValue"]),
1284
- v(s, {
1286
+ y(s, {
1285
1287
  modelValue: r.value.receiptName,
1286
1288
  "onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
1287
1289
  label: "Receipt Payment Name",
@@ -1295,7 +1297,7 @@ const Ue = {
1295
1297
  label: "Delete",
1296
1298
  onclick: () => c(l.value)
1297
1299
  }, null, 8, ["onclick"])) : V("", !0),
1298
- v(t, {
1300
+ y(t, {
1299
1301
  type: "submit",
1300
1302
  class: "flex-1",
1301
1303
  variant: "primary",
@@ -1307,7 +1309,7 @@ const Ue = {
1307
1309
  }, 512);
1308
1310
  };
1309
1311
  }
1310
- }), ia = { class: "flex items-end" }, sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ua = { class: "flex mt-6 space-x-6" }, ca = /* @__PURE__ */ R({
1312
+ }), ia = { class: "flex items-end" }, sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ua = { class: "flex mt-6 space-x-6" }, ca = /* @__PURE__ */ M({
1311
1313
  __name: "Ghl3Gateway",
1312
1314
  props: {
1313
1315
  terminal: {
@@ -1343,8 +1345,8 @@ const Ue = {
1343
1345
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1344
1346
  });
1345
1347
  };
1346
- P(a, c), q(c);
1347
- async function y(s) {
1348
+ q(a, c), G(c);
1349
+ async function v(s) {
1348
1350
  var t;
1349
1351
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1350
1352
  }
@@ -1377,27 +1379,27 @@ const Ue = {
1377
1379
  })
1378
1380
  }, {
1379
1381
  default: O(() => [
1380
- v(n, {
1382
+ y(n, {
1381
1383
  modelValue: e.value.receiptName,
1382
1384
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1383
1385
  label: "Receipt Payment Name",
1384
1386
  "label-info": "Default receipt display will be 'TERMINAL_GHL'"
1385
1387
  }, null, 8, ["modelValue"]),
1386
1388
  I("div", ia, [
1387
- v(n, {
1389
+ y(n, {
1388
1390
  modelValue: r.value,
1389
1391
  "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1390
1392
  label: "Fallback Card Types",
1391
1393
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1392
1394
  }, null, 8, ["modelValue"]),
1393
- v(i, {
1395
+ y(i, {
1394
1396
  class: "ml-4",
1395
1397
  icon: "add",
1396
1398
  onClick: u
1397
1399
  })
1398
1400
  ]),
1399
1401
  I("div", sa, [
1400
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1402
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1401
1403
  key: o,
1402
1404
  label: o,
1403
1405
  removable: !0,
@@ -1410,9 +1412,9 @@ const Ue = {
1410
1412
  class: "flex-1",
1411
1413
  variant: "secondary",
1412
1414
  label: "Delete",
1413
- onclick: () => y(l.value)
1415
+ onclick: () => v(l.value)
1414
1416
  }, null, 8, ["onclick"])) : V("", !0),
1415
- v(i, {
1417
+ y(i, {
1416
1418
  type: "submit",
1417
1419
  class: "flex-1",
1418
1420
  variant: "primary",
@@ -1424,7 +1426,7 @@ const Ue = {
1424
1426
  }, 512);
1425
1427
  };
1426
1428
  }
1427
- }), da = { class: "flex items-end" }, pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ma = { class: "flex mt-6 space-x-6" }, va = /* @__PURE__ */ R({
1429
+ }), da = { class: "flex items-end" }, pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ma = { class: "flex mt-6 space-x-6" }, va = /* @__PURE__ */ M({
1428
1430
  __name: "HlbbGateway",
1429
1431
  props: {
1430
1432
  terminal: {
@@ -1460,8 +1462,8 @@ const Ue = {
1460
1462
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1461
1463
  });
1462
1464
  };
1463
- P(a, c), q(c);
1464
- async function y(s) {
1465
+ q(a, c), G(c);
1466
+ async function v(s) {
1465
1467
  var t;
1466
1468
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1467
1469
  }
@@ -1494,27 +1496,27 @@ const Ue = {
1494
1496
  })
1495
1497
  }, {
1496
1498
  default: O(() => [
1497
- v(n, {
1499
+ y(n, {
1498
1500
  modelValue: e.value.receiptName,
1499
1501
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1500
1502
  label: "Receipt Payment Name",
1501
1503
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
1502
1504
  }, null, 8, ["modelValue"]),
1503
1505
  I("div", da, [
1504
- v(n, {
1506
+ y(n, {
1505
1507
  modelValue: r.value,
1506
1508
  "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1507
1509
  label: "Fallback Card Types",
1508
1510
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1509
1511
  }, null, 8, ["modelValue"]),
1510
- v(i, {
1512
+ y(i, {
1511
1513
  class: "ml-4",
1512
1514
  icon: "add",
1513
1515
  onClick: u
1514
1516
  })
1515
1517
  ]),
1516
1518
  I("div", pa, [
1517
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1519
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1518
1520
  key: o,
1519
1521
  label: o,
1520
1522
  removable: !0,
@@ -1527,9 +1529,9 @@ const Ue = {
1527
1529
  class: "flex-1",
1528
1530
  variant: "secondary",
1529
1531
  label: "Delete",
1530
- onclick: () => y(l.value)
1532
+ onclick: () => v(l.value)
1531
1533
  }, null, 8, ["onclick"])) : V("", !0),
1532
- v(i, {
1534
+ y(i, {
1533
1535
  type: "submit",
1534
1536
  class: "flex-1",
1535
1537
  variant: "primary",
@@ -1541,7 +1543,7 @@ const Ue = {
1541
1543
  }, 512);
1542
1544
  };
1543
1545
  }
1544
- }), ya = { class: "flex items-end" }, fa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ga = { class: "flex mt-6 space-x-6" }, ba = /* @__PURE__ */ R({
1546
+ }), ya = { class: "flex items-end" }, fa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ga = { class: "flex mt-6 space-x-6" }, ba = /* @__PURE__ */ M({
1545
1547
  __name: "GlobalPaymentsGateway",
1546
1548
  props: {
1547
1549
  terminal: {
@@ -1577,8 +1579,8 @@ const Ue = {
1577
1579
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1578
1580
  });
1579
1581
  };
1580
- P(a, c), q(c);
1581
- async function y(s) {
1582
+ q(a, c), G(c);
1583
+ async function v(s) {
1582
1584
  var t;
1583
1585
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1584
1586
  }
@@ -1611,32 +1613,32 @@ const Ue = {
1611
1613
  })
1612
1614
  }, {
1613
1615
  default: O(() => [
1614
- v(n, {
1616
+ y(n, {
1615
1617
  modelValue: e.value.ip,
1616
1618
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
1617
1619
  label: "IP Address"
1618
1620
  }, null, 8, ["modelValue"]),
1619
- v(n, {
1621
+ y(n, {
1620
1622
  modelValue: e.value.receiptName,
1621
1623
  "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
1622
1624
  label: "Receipt Payment Name",
1623
1625
  "label-info": "Default receipt display will be 'TERMINAL_GP'"
1624
1626
  }, null, 8, ["modelValue"]),
1625
1627
  I("div", ya, [
1626
- v(n, {
1628
+ y(n, {
1627
1629
  modelValue: r.value,
1628
1630
  "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
1629
1631
  label: "Fallback Card Types",
1630
1632
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1631
1633
  }, null, 8, ["modelValue"]),
1632
- v(i, {
1634
+ y(i, {
1633
1635
  class: "ml-4",
1634
1636
  icon: "add",
1635
1637
  onClick: u
1636
1638
  })
1637
1639
  ]),
1638
1640
  I("div", fa, [
1639
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1641
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1640
1642
  key: o,
1641
1643
  label: o,
1642
1644
  removable: !0,
@@ -1649,9 +1651,9 @@ const Ue = {
1649
1651
  class: "flex-1",
1650
1652
  variant: "secondary",
1651
1653
  label: "Delete",
1652
- onclick: () => y(l.value)
1654
+ onclick: () => v(l.value)
1653
1655
  }, null, 8, ["onclick"])) : V("", !0),
1654
- v(i, {
1656
+ y(i, {
1655
1657
  type: "submit",
1656
1658
  class: "flex-1",
1657
1659
  variant: "primary",
@@ -1663,7 +1665,7 @@ const Ue = {
1663
1665
  }, 512);
1664
1666
  };
1665
1667
  }
1666
- }), Ta = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ia = { class: "flex mt-6 space-x-6" }, Fa = /* @__PURE__ */ R({
1668
+ }), Ta = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ia = { class: "flex mt-6 space-x-6" }, Fa = /* @__PURE__ */ M({
1667
1669
  __name: "OmaGateway",
1668
1670
  props: {
1669
1671
  terminal: {
@@ -1697,8 +1699,8 @@ const Ue = {
1697
1699
  cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1698
1700
  });
1699
1701
  };
1700
- P(a, c), q(c);
1701
- async function y(s) {
1702
+ q(a, c), G(c);
1703
+ async function v(s) {
1702
1704
  var t;
1703
1705
  (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1704
1706
  }
@@ -1731,27 +1733,27 @@ const Ue = {
1731
1733
  })
1732
1734
  }, {
1733
1735
  default: O(() => [
1734
- v(n, {
1736
+ y(n, {
1735
1737
  modelValue: e.value.receiptName,
1736
1738
  "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1737
1739
  label: "Receipt Payment Name",
1738
1740
  "label-info": "Default receipt display will be 'TERMINAL_OMA'"
1739
1741
  }, null, 8, ["modelValue"]),
1740
1742
  I("div", Ta, [
1741
- v(n, {
1743
+ y(n, {
1742
1744
  modelValue: r.value,
1743
1745
  "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1744
1746
  label: "Fallback Card Types",
1745
1747
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1746
1748
  }, null, 8, ["modelValue"]),
1747
- v(i, {
1749
+ y(i, {
1748
1750
  class: "ml-4",
1749
1751
  icon: "add",
1750
1752
  onClick: u
1751
1753
  })
1752
1754
  ]),
1753
1755
  I("div", _a, [
1754
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1756
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1755
1757
  key: o,
1756
1758
  label: o,
1757
1759
  removable: !0,
@@ -1764,9 +1766,9 @@ const Ue = {
1764
1766
  class: "flex-1",
1765
1767
  variant: "secondary",
1766
1768
  label: "Delete",
1767
- onclick: () => y(l.value)
1769
+ onclick: () => v(l.value)
1768
1770
  }, null, 8, ["onclick"])) : V("", !0),
1769
- v(i, {
1771
+ y(i, {
1770
1772
  type: "submit",
1771
1773
  class: "flex-1",
1772
1774
  variant: "primary",
@@ -1778,7 +1780,7 @@ const Ue = {
1778
1780
  }, 512);
1779
1781
  };
1780
1782
  }
1781
- }), wa = { class: "flex items-center" }, xa = { class: "w-[260px] self-start" }, Na = { class: "flex-1" }, ka = /* @__PURE__ */ R({
1783
+ }), wa = { class: "flex items-center" }, xa = { class: "w-[260px] self-start" }, Na = { class: "flex-1" }, ka = /* @__PURE__ */ M({
1782
1784
  __name: "EcrGateway",
1783
1785
  props: {
1784
1786
  terminal: {
@@ -1869,14 +1871,14 @@ const Ue = {
1869
1871
  )), { gatewayTab: e } = ne({
1870
1872
  gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
1871
1873
  });
1872
- return (c, y) => {
1874
+ return (c, v) => {
1873
1875
  var s;
1874
1876
  const u = g("FmTabs");
1875
- return f(), M("div", wa, [
1877
+ return f(), R("div", wa, [
1876
1878
  I("div", xa, [
1877
- v(u, {
1879
+ y(u, {
1878
1880
  "model-value": h(e),
1879
- "onUpdate:modelValue": y[0] || (y[0] = (t) => Z(e) ? e.value = t : null),
1881
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => Z(e) ? e.value = t : null),
1880
1882
  class: "mb-6",
1881
1883
  vertical: !0,
1882
1884
  items: r.value,
@@ -1892,7 +1894,7 @@ const Ue = {
1892
1894
  ]);
1893
1895
  };
1894
1896
  }
1895
- }), Ca = { class: "flex mt-6 space-x-6" }, Va = /* @__PURE__ */ R({
1897
+ }), Ca = { class: "flex mt-6 space-x-6" }, Va = /* @__PURE__ */ M({
1896
1898
  __name: "PromptPayGateway",
1897
1899
  props: {
1898
1900
  terminal: {
@@ -1913,22 +1915,22 @@ const Ue = {
1913
1915
  }, m = () => {
1914
1916
  if (!a.value.qrIntegrations)
1915
1917
  return e();
1916
- const y = a.value.qrIntegrations, u = y.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
1918
+ const v = a.value.qrIntegrations, u = v.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
1917
1919
  if (u === -1)
1918
1920
  return e();
1919
1921
  l.value = u;
1920
- const s = y.at(u);
1922
+ const s = v.at(u);
1921
1923
  s.gateway === "PROMPTPAY" && s.config && (r.value = {
1922
1924
  account: s.config.account ?? "",
1923
1925
  receiptName: s.receiptName ?? ""
1924
1926
  });
1925
1927
  };
1926
- P(a, m), q(m);
1927
- async function c(y) {
1928
+ q(a, m), G(m);
1929
+ async function c(v) {
1928
1930
  var u;
1929
- (u = a.value.qrIntegrations) == null || u.splice(y, 1), d.onUpdate(a.value);
1931
+ (u = a.value.qrIntegrations) == null || u.splice(v, 1), d.onUpdate(a.value);
1930
1932
  }
1931
- return (y, u) => {
1933
+ return (v, u) => {
1932
1934
  const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
1933
1935
  return f(), F(n, {
1934
1936
  ref: T.value,
@@ -1938,13 +1940,13 @@ const Ue = {
1938
1940
  })
1939
1941
  }, {
1940
1942
  default: O(() => [
1941
- v(s, {
1943
+ y(s, {
1942
1944
  modelValue: r.value.account,
1943
1945
  "onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.account = i),
1944
1946
  label: "Thai Phone Number / Thai Naitonal ID",
1945
1947
  "label-info": "Thai Phone Number can be prefixed with 66 or 0 will be fine both will works well."
1946
1948
  }, null, 8, ["modelValue"]),
1947
- v(s, {
1949
+ y(s, {
1948
1950
  modelValue: r.value.receiptName,
1949
1951
  "onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
1950
1952
  label: "Receipt Payment Name",
@@ -1958,7 +1960,7 @@ const Ue = {
1958
1960
  label: "Delete",
1959
1961
  onclick: () => c(l.value)
1960
1962
  }, null, 8, ["onclick"])) : V("", !0),
1961
- v(t, {
1963
+ y(t, {
1962
1964
  type: "submit",
1963
1965
  class: "flex-1",
1964
1966
  variant: "primary",
@@ -1970,7 +1972,7 @@ const Ue = {
1970
1972
  }, 512);
1971
1973
  };
1972
1974
  }
1973
- }), Sa = { class: "flex items-center" }, Ua = { class: "w-[260px] self-start" }, Ra = { class: "flex-1" }, Ma = /* @__PURE__ */ R({
1975
+ }), Sa = { class: "flex items-center" }, Ua = { class: "w-[260px] self-start" }, Ra = { class: "flex-1" }, Ma = /* @__PURE__ */ M({
1974
1976
  __name: "QrGateway",
1975
1977
  props: {
1976
1978
  terminal: {
@@ -1994,14 +1996,14 @@ const Ue = {
1994
1996
  ], T = C(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = C(() => a.filter((c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY))), { gatewayTab: e } = ne({
1995
1997
  gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
1996
1998
  });
1997
- return (c, y) => {
1999
+ return (c, v) => {
1998
2000
  var s;
1999
2001
  const u = g("FmTabs");
2000
- return f(), M("div", Sa, [
2002
+ return f(), R("div", Sa, [
2001
2003
  I("div", Ua, [
2002
- v(u, {
2004
+ y(u, {
2003
2005
  "model-value": h(e),
2004
- "onUpdate:modelValue": y[0] || (y[0] = (t) => Z(e) ? e.value = t : null),
2006
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => Z(e) ? e.value = t : null),
2005
2007
  class: "mb-6",
2006
2008
  vertical: !0,
2007
2009
  items: r.value
@@ -2016,7 +2018,7 @@ const Ue = {
2016
2018
  ]);
2017
2019
  };
2018
2020
  }
2019
- }), Ka = /* @__PURE__ */ R({
2021
+ }), Ka = /* @__PURE__ */ M({
2020
2022
  __name: "TerminalSetting",
2021
2023
  props: {
2022
2024
  terminalId: {
@@ -2054,7 +2056,7 @@ const Ue = {
2054
2056
  }
2055
2057
  });
2056
2058
  }
2057
- const y = [
2059
+ const v = [
2058
2060
  {
2059
2061
  label: "Information",
2060
2062
  value: "information",
@@ -2092,18 +2094,18 @@ const Ue = {
2092
2094
  oe().currentCountry;
2093
2095
  const u = C(() => {
2094
2096
  var n;
2095
- return (n = y.find((i) => i.value === a.value)) == null ? void 0 : n.render;
2097
+ return (n = v.find((i) => i.value === a.value)) == null ? void 0 : n.render;
2096
2098
  });
2097
2099
  async function s() {
2098
2100
  l(async () => {
2099
2101
  m.value = await E.readById(d.terminalId);
2100
2102
  });
2101
2103
  }
2102
- const t = C(() => y.filter((n) => {
2104
+ const t = C(() => v.filter((n) => {
2103
2105
  var i;
2104
2106
  return !n.onlyFor || n.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
2105
2107
  }));
2106
- return q(s), (n, i) => {
2108
+ return G(s), (n, i) => {
2107
2109
  var x, o;
2108
2110
  const p = g("FmTabs");
2109
2111
  return f(), F(ye, {
@@ -2112,7 +2114,7 @@ const Ue = {
2112
2114
  onBack: h(r).back
2113
2115
  }, {
2114
2116
  default: O(() => [
2115
- v(p, {
2117
+ y(p, {
2116
2118
  "model-value": h(a),
2117
2119
  "onUpdate:modelValue": i[0] || (i[0] = (w) => Z(a) ? a.value = w : null),
2118
2120
  class: "mb-6",