@feedmepos/mf-payment 1.4.47 → 1.5.0-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 (125) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-sYaYPQ_s.js → Actions.vue_vue_type_script_setup_true_lang-DGbH2LsQ.js} +43 -43
  2. package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js → AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js} +13 -13
  3. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-I9eO197f.js +47 -0
  4. package/dist/{Chargeback-BftBez0p.js → Chargeback-19afdT_4.js} +83 -83
  5. package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-XZ7OzGau.js → DateRangePicker.vue_vue_type_script_setup_true_lang-kymnzYpd.js} +1 -1
  6. package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-CzwG5dCO.js +77 -0
  7. package/dist/Forbidden-CSTZjebc.js +38 -0
  8. package/dist/Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js +45 -0
  9. package/dist/{OnboardForm-Bk5eHmN0.js → OnboardForm-Cc6JOr09.js} +596 -528
  10. package/dist/{OnboardForm-DURv3s6I.js → OnboardForm-Do6ar3sx.js} +363 -347
  11. package/dist/{OnboardSubmission-BOiXSkVB.js → OnboardSubmission-B-leoVPo.js} +4 -4
  12. package/dist/{OnboardSubmission-Bjf_EOKq.js → OnboardSubmission-Dj8AGb69.js} +8 -8
  13. package/dist/PDFViewer-DgyyGDHl.js +23209 -0
  14. package/dist/{PayoutAccount-Ban4QG9e.js → PayoutAccount--1J5ubvX.js} +341 -312
  15. package/dist/{PayoutAccount-D-oQ4vID.js → PayoutAccount-ChGlsZ-O.js} +75 -75
  16. package/dist/{PayoutAccountSetting-YYswVooL.js → PayoutAccountSetting-BC0ANAqY.js} +281 -266
  17. package/dist/{Restaurant-26r7Q01z.js → Restaurant-ZiTHtFZJ.js} +79 -79
  18. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-Bzj_sdSY.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-DG3iyjkK.js} +3 -3
  19. package/dist/{RestaurantSetting-D1APrvzM.js → RestaurantSetting-M1jYaGwx.js} +5 -5
  20. package/dist/{SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js → SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js} +5 -5
  21. package/dist/{Settlement-CWX5RKwL.js → Settlement-Cj2W8VfH.js} +7 -7
  22. package/dist/{Settlement-Ix55QLVB.js → Settlement-D_nmqYEC.js} +12 -15
  23. package/dist/{SettlementTransactions-DYAlKO__.js → SettlementTransactions-Ch9jeQU6.js} +99 -99
  24. package/dist/{SettlementTransactions-BIodJ6DN.js → SettlementTransactions-DK1ONvn6.js} +55 -55
  25. package/dist/{Status.vue_vue_type_script_setup_true_lang-B5iI3OiL.js → Status.vue_vue_type_script_setup_true_lang-BP5m6Vic.js} +9 -9
  26. package/dist/Terminal-CoPPPePw.js +1135 -0
  27. package/dist/{TerminalSetting-BiaGvysm.js → TerminalSetting-PWs1fyFe.js} +549 -425
  28. package/dist/{Transaction-D51QiCaP.js → Transaction-BirTp8t6.js} +82 -82
  29. package/dist/{Transaction-ouagKBic.js → Transaction-CegzBK7m.js} +65 -65
  30. package/dist/{TransactionOld-CCzonxUD.js → TransactionOld-DqGMuWvL.js} +9 -9
  31. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  32. package/dist/api/document/index.d.ts +4 -0
  33. package/dist/{app-COvZzQVV.js → app-D6U0uODp.js} +426 -490
  34. package/dist/app.js +1 -1
  35. package/dist/{assets--JQWdCl5.js → assets-DtwUojcS.js} +1 -1
  36. package/dist/components/AdminLayout.vue.d.ts +3 -3
  37. package/dist/components/AutoCopyCell.vue.d.ts +1 -1
  38. package/dist/components/DocumentViewer.vue.d.ts +16 -0
  39. package/dist/components/ImagePreview.vue.d.ts +3 -3
  40. package/dist/components/Layout.vue.d.ts +3 -3
  41. package/dist/components/PDFViewer.vue.d.ts +4 -4
  42. package/dist/components/RestaurantSelector.vue.d.ts +1 -1
  43. package/dist/components/RouteCell.vue.d.ts +1 -1
  44. package/dist/{grafana-22PXAn1O.js → grafana-fZyobMgN.js} +1 -1
  45. package/dist/{index-B0uA-O38.js → index--K2ipr4H.js} +7 -7
  46. package/dist/{index-cCTvH31Z.js → index-BJNCcdvT.js} +22132 -24859
  47. package/dist/{index-Blb5YaYR.js → index-C-YBwRQp.js} +3 -3
  48. package/dist/{index-Ctn4LFui.js → index-CMN40t8e.js} +1 -1
  49. package/dist/{index-DR0voetw.js → index-CbONxZz2.js} +17 -13
  50. package/dist/{index-BLyx8ZQr.js → index-CtkwL_6R.js} +1 -1
  51. package/dist/{index-B9kHmV6p.js → index-D69RnDa7.js} +19 -19
  52. package/dist/index-_u7l8cO3.js +27 -0
  53. package/dist/{index-B0-Kn6Mw.js → index-eLZ3BErV.js} +12 -12
  54. package/dist/{index.vue_vue_type_script_setup_true_lang-NUicoOT2.js → index.vue_vue_type_script_setup_true_lang-zxkA_YTt.js} +50 -50
  55. package/dist/model/payout-account.d.ts +2 -2
  56. package/dist/{Forbidden-Dqw0MqyC.js → no-data-BRmo6XOO.js} +2 -35
  57. package/dist/package.json +13 -7
  58. package/dist/{payout-account-DQZ0J8Ds.js → payout-account-CVYMFqu9.js} +78 -77
  59. package/dist/plugins.d.ts +1 -5
  60. package/dist/stores/payoutAccount.d.ts +16 -16
  61. package/dist/tsconfig.app.tsbuildinfo +1 -1
  62. package/dist/{validator-D5jtpt9A.js → validator-DzjyJnvv.js} +842 -763
  63. package/dist/views/Forbidden.vue.d.ts +1 -1
  64. package/dist/views/admin/chargeback/cell/Actions.vue.d.ts +1 -1
  65. package/dist/views/admin/onboard-submission/cell/SignatureBoard.vue.d.ts +2 -1
  66. package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +3 -2
  67. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +17 -17
  68. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +17 -17
  69. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +22 -22
  70. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +22 -22
  71. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
  72. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +17 -17
  73. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +22 -22
  74. package/dist/views/admin/payout-account/tabs/cell/Actions.vue.d.ts +1 -1
  75. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
  76. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  77. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  78. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  79. package/dist/views/admin/restaurant/cell/LogButton.vue.d.ts +1 -1
  80. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +118 -244
  81. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  82. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  83. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  84. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -4
  85. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  86. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  87. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  88. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  89. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -4
  90. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +28 -8
  91. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +1 -1
  92. package/dist/views/admin/terminal/cell/ID.vue.d.ts +1 -1
  93. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +29 -9
  94. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +28 -8
  95. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +29 -9
  96. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +28 -8
  97. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +28 -8
  98. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +28 -8
  99. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +28 -8
  100. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +28 -8
  101. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +250 -0
  102. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +28 -8
  103. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +28 -8
  104. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +28 -8
  105. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +28 -8
  106. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +28 -8
  107. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +28 -8
  108. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +28 -8
  109. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +28 -8
  110. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +1 -1
  111. package/dist/views/admin/transaction/cell/BillSeqNumber.vue.d.ts +1 -1
  112. package/dist/views/onboard-submission/cell/SignatureBoard.vue.d.ts +2 -1
  113. package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +6 -5
  114. package/dist/views/payout-account/PayoutAccountDialog.vue.d.ts +2 -2
  115. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
  116. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +68 -68
  117. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +34 -34
  118. package/dist/views/transaction/cell/Actions.vue.d.ts +1 -1
  119. package/dist/views/transaction/cell/BillSeqNumber.vue.d.ts +1 -1
  120. package/package.json +26 -20
  121. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DP8STuAT.js +0 -47
  122. package/dist/Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js +0 -45
  123. package/dist/PDFViewer-DHKBD99J.js +0 -22433
  124. package/dist/Terminal-CrM7EzkM.js +0 -1095
  125. package/dist/plugins-DuKITasE.js +0 -1366
@@ -1,14 +1,14 @@
1
- import { defineComponent as N, openBlock as g, createElementBlock as U, Fragment as G, createElementVNode as F, createTextVNode as $, toDisplayString as A, ref as _, resolveComponent as y, createVNode as v, createCommentVNode as k, unref as S, computed as R, isRef as B, createBlock as w, resolveDynamicComponent as Y, normalizeProps as L, mergeProps as K, toRef as h, watch as O, onMounted as M, withCtx as q, renderList as P } from "vue";
2
- import { u as H, e as V } from "./index-cCTvH31Z.js";
1
+ import { defineComponent as k, openBlock as g, createElementBlock as V, Fragment as q, createElementVNode as I, createTextVNode as $, toDisplayString as D, ref as b, resolveComponent as y, createVNode as v, createCommentVNode as N, unref as S, computed as R, isRef as B, createBlock as T, resolveDynamicComponent as Y, normalizeProps as L, mergeProps as K, toRef as G, watch as O, onMounted as M, withCtx as h, renderList as P } from "vue";
2
+ import { u as H, e as C } from "./index-BJNCcdvT.js";
3
3
  import { useRouter as W } from "vue-router";
4
- import { t as D } from "./index-Blb5YaYR.js";
5
- import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { u as E } from "./index-BLyx8ZQr.js";
4
+ import { t as A } from "./index-C-YBwRQp.js";
5
+ import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
+ import { u as E } from "./index-CtkwL_6R.js";
7
7
  import { useSnackbar as Q } from "@feedmepos/ui-library";
8
8
  import { u as Z } from "./error-K1CakhA9.js";
9
9
  import { useCoreStore as j } from "@feedmepos/mf-common";
10
- import { z as ee, a as ae } from "./validator-D5jtpt9A.js";
11
- const te = /* @__PURE__ */ N({
10
+ import { z as ee, a as ae } from "./validator-DzjyJnvv.js";
11
+ const te = /* @__PURE__ */ k({
12
12
  __name: "Information",
13
13
  props: {
14
14
  terminal: {
@@ -16,23 +16,23 @@ const te = /* @__PURE__ */ N({
16
16
  required: !0
17
17
  }
18
18
  },
19
- setup(I) {
20
- return (d, a) => (g(), U(G, null, [
21
- a[0] || (a[0] = F("b", null, "Name", -1)),
22
- $(": " + A(I.terminal.name), 1),
23
- a[1] || (a[1] = F("br", null, null, -1)),
24
- a[2] || (a[2] = F("b", null, "Status", -1)),
25
- $(": " + A(I.terminal.status), 1),
26
- a[3] || (a[3] = F("br", null, null, -1)),
27
- a[4] || (a[4] = F("b", null, "Device ID", -1)),
28
- $(": " + A(I.terminal.deviceId ?? "-"), 1),
29
- a[5] || (a[5] = F("br", null, null, -1)),
30
- a[6] || (a[6] = F("b", null, "Device Type", -1)),
31
- $(": " + A(I.terminal.deviceType ?? "-"), 1),
32
- a[7] || (a[7] = F("br", null, null, -1))
19
+ setup(F) {
20
+ return (d, a) => (g(), V(q, null, [
21
+ a[0] || (a[0] = I("b", null, "Name", -1)),
22
+ $(": " + D(F.terminal.name), 1),
23
+ a[1] || (a[1] = I("br", null, null, -1)),
24
+ a[2] || (a[2] = I("b", null, "Status", -1)),
25
+ $(": " + D(F.terminal.status), 1),
26
+ a[3] || (a[3] = I("br", null, null, -1)),
27
+ a[4] || (a[4] = I("b", null, "Device ID", -1)),
28
+ $(": " + D(F.terminal.deviceId ?? "-"), 1),
29
+ a[5] || (a[5] = I("br", null, null, -1)),
30
+ a[6] || (a[6] = I("b", null, "Device Type", -1)),
31
+ $(": " + D(F.terminal.deviceType ?? "-"), 1),
32
+ a[7] || (a[7] = I("br", null, null, -1))
33
33
  ], 64));
34
34
  }
35
- }), le = { key: 0 }, ne = { class: "mt-6 space-x-6" }, oe = /* @__PURE__ */ N({
35
+ }), le = { key: 0 }, ne = { class: "mt-6 space-x-6" }, oe = /* @__PURE__ */ k({
36
36
  __name: "KioskMode",
37
37
  props: {
38
38
  terminal: {
@@ -40,13 +40,13 @@ const te = /* @__PURE__ */ N({
40
40
  required: !0
41
41
  }
42
42
  },
43
- setup(I) {
44
- const { isLoading: d, startAsyncCall: a } = H(!1), b = Q(), l = _({
43
+ setup(F) {
44
+ const { isLoading: d, startAsyncCall: a } = H(!1), _ = Q(), l = b({
45
45
  enable: !1,
46
46
  password: []
47
- }), o = I;
47
+ }), r = F;
48
48
  function e() {
49
- return l.value.enable && l.value.password.filter((m) => !!m).length !== 6 ? b.open({
49
+ return l.value.enable && l.value.password.filter((m) => !!m).length !== 6 ? _.open({
50
50
  type: "error",
51
51
  message: "Unlock PIN is required when setting up kiosk mode for terminal."
52
52
  }) : a(async () => {
@@ -54,33 +54,33 @@ const te = /* @__PURE__ */ N({
54
54
  m.enable && Object.assign(m, {
55
55
  password: l.value.password.join("")
56
56
  });
57
- const c = await D.kioskModeRequest(o.terminal._id, m);
57
+ const c = await A.kioskModeRequest(r.terminal._id, m);
58
58
  if (c === "OK")
59
- return b.open({ type: "info", message: "Kiosk mode applied successfully." });
59
+ return _.open({ type: "info", message: "Kiosk mode applied successfully." });
60
60
  let f = c;
61
- return c === "client_not_connected" && (f = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (f = c.replaceAll("terminal: ", "")), b.open({
61
+ return c === "client_not_connected" && (f = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (f = c.replaceAll("terminal: ", "")), _.open({
62
62
  type: "error",
63
63
  message: f
64
64
  });
65
65
  });
66
66
  }
67
67
  return (m, c) => {
68
- const f = y("FmSwitch"), s = y("FmPinField"), i = y("FmButton");
69
- return g(), U(G, null, [
68
+ const f = y("FmSwitch"), s = y("FmPinField"), u = y("FmButton");
69
+ return g(), V(q, null, [
70
70
  v(f, {
71
71
  modelValue: l.value.enable,
72
72
  "onUpdate:modelValue": c[0] || (c[0] = (t) => l.value.enable = t),
73
73
  label: "Enable Kiosk Mode?"
74
74
  }, null, 8, ["modelValue"]),
75
- l.value.enable ? (g(), U("div", le, [
76
- c[2] || (c[2] = F("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
75
+ l.value.enable ? (g(), V("div", le, [
76
+ c[2] || (c[2] = I("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
77
77
  v(s, {
78
78
  modelValue: l.value.password,
79
79
  "onUpdate:modelValue": c[1] || (c[1] = (t) => l.value.password = t)
80
80
  }, null, 8, ["modelValue"])
81
- ])) : k("", !0),
82
- F("div", ne, [
83
- v(i, {
81
+ ])) : N("", !0),
82
+ I("div", ne, [
83
+ v(u, {
84
84
  variant: "primary",
85
85
  label: "Send",
86
86
  icon: "send",
@@ -91,7 +91,7 @@ const te = /* @__PURE__ */ N({
91
91
  ], 64);
92
92
  };
93
93
  }
94
- }), re = /* @__PURE__ */ N({
94
+ }), re = /* @__PURE__ */ k({
95
95
  __name: "SettingRequest",
96
96
  props: {
97
97
  terminal: {
@@ -99,7 +99,7 @@ const te = /* @__PURE__ */ N({
99
99
  required: !0
100
100
  }
101
101
  },
102
- setup(I) {
102
+ setup(F) {
103
103
  const { settingTab: d } = E({
104
104
  settingTab: "kiosk_mode"
105
105
  }), a = [
@@ -108,13 +108,13 @@ const te = /* @__PURE__ */ N({
108
108
  value: "kiosk_mode",
109
109
  render: oe
110
110
  }
111
- ], b = I, l = R(() => a.find((o) => o.value === d.value));
112
- return (o, e) => {
111
+ ], _ = F, l = R(() => a.find((r) => r.value === d.value));
112
+ return (r, e) => {
113
113
  var c;
114
114
  const m = y("FmTabs");
115
- return g(), U(G, null, [
116
- e[1] || (e[1] = F("p", { className: "mt-1 my-6 text-gray-600" }, [
117
- F("b", null, "Note: "),
115
+ return g(), V(q, null, [
116
+ e[1] || (e[1] = I("p", { className: "mt-1 my-6 text-gray-600" }, [
117
+ I("b", null, "Note: "),
118
118
  $(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
119
119
  ], -1)),
120
120
  v(m, {
@@ -123,14 +123,14 @@ const te = /* @__PURE__ */ N({
123
123
  class: "mb-6",
124
124
  items: a
125
125
  }, null, 8, ["model-value"]),
126
- S(d) ? (g(), w(Y((c = l.value) == null ? void 0 : c.render), L(K({ key: 0 }, { terminal: b.terminal })), null, 16)) : k("", !0)
126
+ S(d) ? (g(), T(Y((c = l.value) == null ? void 0 : c.render), L(K({ key: 0 }, { terminal: _.terminal })), null, 16)) : N("", !0)
127
127
  ], 64);
128
128
  };
129
129
  }
130
130
  }), ie = {
131
131
  key: 0,
132
132
  class: "text-sm text-gray-500"
133
- }, ue = { class: "flex mt-6 space-x-6" }, se = /* @__PURE__ */ N({
133
+ }, ue = { class: "flex mt-6 space-x-6" }, se = /* @__PURE__ */ k({
134
134
  __name: "SoftposGateway",
135
135
  props: {
136
136
  terminal: {
@@ -142,12 +142,12 @@ const te = /* @__PURE__ */ N({
142
142
  required: !0
143
143
  }
144
144
  },
145
- setup(I) {
146
- const d = I, a = j().currentCountry, b = [
145
+ setup(F) {
146
+ const d = F, a = j().currentCountry, _ = [
147
147
  {
148
148
  label: "Fiuu Malaysia",
149
149
  value: "cc.feedme.payment.rms",
150
- region: V.F_COUNTRY.enum.MY,
150
+ region: C.F_COUNTRY.enum.MY,
151
151
  gateway: "Fiuu",
152
152
  isLegacy: !0,
153
153
  isOutdated: !0
@@ -155,14 +155,14 @@ const te = /* @__PURE__ */ N({
155
155
  {
156
156
  label: "Fiuu Malaysia V2",
157
157
  value: "cc.feedme.payment.fiuu_my",
158
- region: V.F_COUNTRY.enum.MY,
158
+ region: C.F_COUNTRY.enum.MY,
159
159
  gateway: "Fiuu",
160
160
  isLegacy: !0
161
161
  },
162
162
  {
163
163
  label: "Fiuu Singapore",
164
164
  value: "cc.feedme.payment.fiuu_sg",
165
- region: V.F_COUNTRY.enum.SG,
165
+ region: C.F_COUNTRY.enum.SG,
166
166
  gateway: "Fiuu",
167
167
  isLegacy: !0
168
168
  },
@@ -170,15 +170,15 @@ const te = /* @__PURE__ */ N({
170
170
  label: "Softspace Malaysia",
171
171
  value: "cc.feedme.payment.softspace_my",
172
172
  gateway: "Softspace",
173
- region: V.F_COUNTRY.enum.MY
173
+ region: C.F_COUNTRY.enum.MY
174
174
  },
175
175
  {
176
176
  label: "Digio Thailand",
177
177
  value: "cc.feedme.payment.digio_th",
178
178
  gateway: "Digio",
179
- region: V.F_COUNTRY.enum.TH
179
+ region: C.F_COUNTRY.enum.TH
180
180
  }
181
- ], l = h(() => d.terminal), o = _(), e = _({
181
+ ], l = G(() => d.terminal), r = b(), e = b({
182
182
  packageId: "",
183
183
  uniqueId: "",
184
184
  developerId: "",
@@ -217,69 +217,69 @@ const te = /* @__PURE__ */ N({
217
217
  var n;
218
218
  (n = l.value.gateways) == null || n.splice(t, 1), d.onUpdate(l.value);
219
219
  }
220
- const s = R(() => b.filter((t) => t.region === a.value)), i = R(() => s.value.find((t) => t.value === e.value.packageId));
220
+ const s = R(() => _.filter((t) => t.region === a.value)), u = R(() => s.value.find((t) => t.value === e.value.packageId));
221
221
  return (t, n) => {
222
- const u = y("FmSelect"), p = y("FmTextField"), x = y("FmCheckbox"), r = y("FmButton"), T = y("FmForm");
223
- return g(), w(T, {
224
- ref: o.value,
222
+ const i = y("FmSelect"), p = y("FmTextField"), x = y("FmCheckbox"), o = y("FmButton"), w = y("FmForm");
223
+ return g(), T(w, {
224
+ ref: r.value,
225
225
  class: "flex flex-col gap-16 w-[500px]",
226
226
  onValidationSuccess: n[5] || (n[5] = () => {
227
- const C = i.value;
228
- if (!C)
227
+ const U = u.value;
228
+ if (!U)
229
229
  return;
230
230
  let z = e.value.uniqueId;
231
- C.isLegacy || (z = JSON.stringify({ uniqueId: e.value.uniqueId, developerId: e.value.developerId, isUat: e.value.isUat }));
231
+ U.isLegacy || (z = JSON.stringify({ uniqueId: e.value.uniqueId, developerId: e.value.developerId, isUat: e.value.isUat }));
232
232
  const J = {
233
- gateway: C.gateway,
233
+ gateway: U.gateway,
234
234
  config: {
235
- packageId: C.value,
235
+ packageId: U.value,
236
236
  uniqueId: z
237
237
  }
238
238
  };
239
239
  (!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = J, d.onUpdate(l.value);
240
240
  })
241
241
  }, {
242
- default: q(() => [
243
- v(u, {
242
+ default: h(() => [
243
+ v(i, {
244
244
  modelValue: e.value.packageId,
245
- "onUpdate:modelValue": n[0] || (n[0] = (C) => e.value.packageId = C),
245
+ "onUpdate:modelValue": n[0] || (n[0] = (U) => e.value.packageId = U),
246
246
  label: "Package ID",
247
247
  items: s.value
248
248
  }, null, 8, ["modelValue", "items"]),
249
- i.value && i.value.isLegacy ? (g(), U(G, { key: 0 }, [
249
+ u.value && u.value.isLegacy ? (g(), V(q, { key: 0 }, [
250
250
  v(p, {
251
251
  modelValue: e.value.uniqueId,
252
- "onUpdate:modelValue": n[1] || (n[1] = (C) => e.value.uniqueId = C),
252
+ "onUpdate:modelValue": n[1] || (n[1] = (U) => e.value.uniqueId = U),
253
253
  label: "Unique ID (TID)"
254
254
  }, null, 8, ["modelValue"]),
255
- i.value.isOutdated ? (g(), U("span", ie, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : k("", !0)
256
- ], 64)) : (g(), U(G, { key: 1 }, [
255
+ u.value.isOutdated ? (g(), V("span", ie, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : N("", !0)
256
+ ], 64)) : (g(), V(q, { key: 1 }, [
257
257
  v(p, {
258
258
  modelValue: e.value.developerId,
259
- "onUpdate:modelValue": n[2] || (n[2] = (C) => e.value.developerId = C),
259
+ "onUpdate:modelValue": n[2] || (n[2] = (U) => e.value.developerId = U),
260
260
  label: "Developer ID (MID)"
261
261
  }, null, 8, ["modelValue"]),
262
262
  v(p, {
263
263
  modelValue: e.value.uniqueId,
264
- "onUpdate:modelValue": n[3] || (n[3] = (C) => e.value.uniqueId = C),
264
+ "onUpdate:modelValue": n[3] || (n[3] = (U) => e.value.uniqueId = U),
265
265
  label: "Unique ID (TID)"
266
266
  }, null, 8, ["modelValue"]),
267
267
  v(x, {
268
268
  modelValue: e.value.isUat,
269
- "onUpdate:modelValue": n[4] || (n[4] = (C) => e.value.isUat = C),
269
+ "onUpdate:modelValue": n[4] || (n[4] = (U) => e.value.isUat = U),
270
270
  label: "Is UAT (Test)",
271
271
  value: "1"
272
272
  }, null, 8, ["modelValue"])
273
273
  ], 64)),
274
- F("div", ue, [
275
- l.value.gateways && l.value.gateways.length > 0 ? (g(), w(r, {
274
+ I("div", ue, [
275
+ l.value.gateways && l.value.gateways.length > 0 ? (g(), T(o, {
276
276
  key: 0,
277
277
  class: "flex-1",
278
278
  variant: "secondary",
279
279
  label: "Delete",
280
280
  onclick: () => f(0)
281
- }, null, 8, ["onclick"])) : k("", !0),
282
- v(r, {
281
+ }, null, 8, ["onclick"])) : N("", !0),
282
+ v(o, {
283
283
  type: "submit",
284
284
  class: "flex-1",
285
285
  variant: "primary",
@@ -294,7 +294,7 @@ const te = /* @__PURE__ */ N({
294
294
  }), ce = {
295
295
  key: 0,
296
296
  class: "flex items-center justify-center min-h-[80vh]"
297
- }, de = { class: "flex mt-6 space-x-6" }, me = /* @__PURE__ */ N({
297
+ }, de = { class: "flex mt-6 space-x-6" }, me = /* @__PURE__ */ k({
298
298
  __name: "TerminalGateway",
299
299
  props: {
300
300
  terminal: {
@@ -306,63 +306,63 @@ const te = /* @__PURE__ */ N({
306
306
  required: !0
307
307
  }
308
308
  },
309
- setup(I) {
310
- const { isLoading: d, startAsyncCall: a } = H(), b = I, l = h(() => b.terminal), o = _(), e = _(), m = _(-1), c = _({
309
+ setup(F) {
310
+ const { isLoading: d, startAsyncCall: a } = H(), _ = F, l = G(() => _.terminal), r = b(), e = b(), m = b(-1), c = b({
311
311
  terminalId: ""
312
312
  }), f = () => {
313
313
  c.value.terminalId = "", m.value = -1;
314
314
  }, s = () => {
315
315
  if (a(async () => {
316
- o.value = await D.getRestaurantTerminals(b.terminal.referenceId);
317
- }), !b.terminal.ecrs)
316
+ r.value = await A.getRestaurantTerminals(_.terminal.referenceId);
317
+ }), !_.terminal.ecrs)
318
318
  return f();
319
- const n = b.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
319
+ const n = _.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
320
320
  if (n === -1)
321
321
  return f();
322
322
  m.value = n;
323
- const u = b.terminal.ecrs.at(n);
324
- u.gateway === "FeedMe" && u.config && (c.value = {
325
- terminalId: u.config.terminalId
323
+ const i = _.terminal.ecrs.at(n);
324
+ i.gateway === "FeedMe" && i.config && (c.value = {
325
+ terminalId: i.config.terminalId
326
326
  });
327
327
  };
328
328
  O(l, s), M(s);
329
- const i = R(() => (o.value ?? []).map((n) => ({
329
+ const u = R(() => (r.value ?? []).map((n) => ({
330
330
  label: n.name ?? n._id,
331
331
  value: n._id
332
332
  })));
333
333
  async function t(n) {
334
- var u;
335
- (u = b.terminal.ecrs) == null || u.splice(n, 1), b.onUpdate(b.terminal);
334
+ var i;
335
+ (i = _.terminal.ecrs) == null || i.splice(n, 1), _.onUpdate(_.terminal);
336
336
  }
337
- return (n, u) => {
338
- const p = y("FmCircularProgress"), x = y("FmSelect"), r = y("FmButton"), T = y("FmForm");
339
- return S(d) ? (g(), U("div", ce, [
337
+ return (n, i) => {
338
+ const p = y("FmCircularProgress"), x = y("FmSelect"), o = y("FmButton"), w = y("FmForm");
339
+ return S(d) ? (g(), V("div", ce, [
340
340
  v(p, { size: "xxl" })
341
- ])) : (g(), w(T, {
341
+ ])) : (g(), T(w, {
342
342
  key: 1,
343
343
  ref: e.value,
344
344
  class: "flex flex-col gap-16 w-[500px]",
345
- onValidationSuccess: u[1] || (u[1] = () => {
346
- m.value > -1 ? l.value.ecrs[m.value] = { gateway: "FeedMe", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "FeedMe", config: c.value })), b.onUpdate(l.value);
345
+ onValidationSuccess: i[1] || (i[1] = () => {
346
+ m.value > -1 ? l.value.ecrs[m.value] = { gateway: "FeedMe", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "FeedMe", config: c.value })), _.onUpdate(l.value);
347
347
  })
348
348
  }, {
349
- default: q(() => [
349
+ default: h(() => [
350
350
  v(x, {
351
351
  modelValue: c.value.terminalId,
352
- "onUpdate:modelValue": u[0] || (u[0] = (C) => c.value.terminalId = C),
352
+ "onUpdate:modelValue": i[0] || (i[0] = (U) => c.value.terminalId = U),
353
353
  label: "Terminal ID",
354
- items: i.value,
354
+ items: u.value,
355
355
  rules: S(ee)(S(ae).string())
356
356
  }, null, 8, ["modelValue", "items", "rules"]),
357
- F("div", de, [
358
- m.value > -1 ? (g(), w(r, {
357
+ I("div", de, [
358
+ m.value > -1 ? (g(), T(o, {
359
359
  key: 0,
360
360
  class: "flex-1",
361
361
  variant: "secondary",
362
362
  label: "Delete",
363
363
  onclick: () => t(m.value)
364
- }, null, 8, ["onclick"])) : k("", !0),
365
- v(r, {
364
+ }, null, 8, ["onclick"])) : N("", !0),
365
+ v(o, {
366
366
  type: "submit",
367
367
  class: "flex-1",
368
368
  variant: "primary",
@@ -374,7 +374,7 @@ const te = /* @__PURE__ */ N({
374
374
  }, 512));
375
375
  };
376
376
  }
377
- }), pe = { class: "flex mt-6 space-x-6" }, ve = /* @__PURE__ */ N({
377
+ }), pe = { class: "flex mt-6 space-x-6" }, ve = /* @__PURE__ */ k({
378
378
  __name: "GhlGateway",
379
379
  props: {
380
380
  terminal: {
@@ -386,22 +386,22 @@ const te = /* @__PURE__ */ N({
386
386
  required: !0
387
387
  }
388
388
  },
389
- setup(I) {
390
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _({
389
+ setup(F) {
390
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b({
391
391
  merchantId: "",
392
392
  terminalId: "",
393
393
  privateKey: ""
394
394
  }), e = () => {
395
- o.value.merchantId = "", o.value.terminalId = "", o.value.privateKey = "", l.value = -1;
395
+ r.value.merchantId = "", r.value.terminalId = "", r.value.privateKey = "", l.value = -1;
396
396
  }, m = () => {
397
397
  if (!a.value.ecrs)
398
398
  return e();
399
- const f = a.value.ecrs.findIndex((i) => i && i.gateway && i.gateway === "Ghl");
399
+ const f = a.value.ecrs.findIndex((u) => u && u.gateway && u.gateway === "Ghl");
400
400
  if (f === -1)
401
401
  return e();
402
402
  l.value = f;
403
403
  const s = a.value.ecrs.at(f);
404
- s.gateway === "Ghl" && s.config && (o.value = {
404
+ s.gateway === "Ghl" && s.config && (r.value = {
405
405
  merchantId: s.config.merchantId,
406
406
  terminalId: s.config.terminalId,
407
407
  privateKey: s.config.privateKey || ""
@@ -413,40 +413,40 @@ const te = /* @__PURE__ */ N({
413
413
  (s = a.value.ecrs) == null || s.splice(f, 1), d.onUpdate(a.value);
414
414
  }
415
415
  return (f, s) => {
416
- const i = y("FmTextField"), t = y("FmTextarea"), n = y("FmButton"), u = y("FmForm");
417
- return g(), w(u, {
418
- ref: b.value,
416
+ const u = y("FmTextField"), t = y("FmTextarea"), n = y("FmButton"), i = y("FmForm");
417
+ return g(), T(i, {
418
+ ref: _.value,
419
419
  class: "flex flex-col gap-16 w-[500px]",
420
420
  onValidationSuccess: s[3] || (s[3] = () => {
421
- l.value > -1 ? a.value.ecrs[l.value] = { gateway: "Ghl", config: o.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "Ghl", config: o.value })), d.onUpdate(a.value);
421
+ l.value > -1 ? a.value.ecrs[l.value] = { gateway: "Ghl", config: r.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "Ghl", config: r.value })), d.onUpdate(a.value);
422
422
  })
423
423
  }, {
424
- default: q(() => [
425
- v(i, {
426
- modelValue: o.value.merchantId,
427
- "onUpdate:modelValue": s[0] || (s[0] = (p) => o.value.merchantId = p),
424
+ default: h(() => [
425
+ v(u, {
426
+ modelValue: r.value.merchantId,
427
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => r.value.merchantId = p),
428
428
  label: "Merchant ID"
429
429
  }, null, 8, ["modelValue"]),
430
- v(i, {
431
- modelValue: o.value.terminalId,
432
- "onUpdate:modelValue": s[1] || (s[1] = (p) => o.value.terminalId = p),
430
+ v(u, {
431
+ modelValue: r.value.terminalId,
432
+ "onUpdate:modelValue": s[1] || (s[1] = (p) => r.value.terminalId = p),
433
433
  label: "Terminal ID"
434
434
  }, null, 8, ["modelValue"]),
435
435
  v(t, {
436
- modelValue: o.value.privateKey,
437
- "onUpdate:modelValue": s[2] || (s[2] = (p) => o.value.privateKey = p),
436
+ modelValue: r.value.privateKey,
437
+ "onUpdate:modelValue": s[2] || (s[2] = (p) => r.value.privateKey = p),
438
438
  label: "Private Key",
439
439
  "label-mark": "optional",
440
440
  "label-info": "Default will use FeedMe Private Key"
441
441
  }, null, 8, ["modelValue"]),
442
- F("div", pe, [
443
- l.value > -1 ? (g(), w(n, {
442
+ I("div", pe, [
443
+ l.value > -1 ? (g(), T(n, {
444
444
  key: 0,
445
445
  class: "flex-1",
446
446
  variant: "secondary",
447
447
  label: "Delete",
448
448
  onclick: () => c(l.value)
449
- }, null, 8, ["onclick"])) : k("", !0),
449
+ }, null, 8, ["onclick"])) : N("", !0),
450
450
  v(n, {
451
451
  type: "submit",
452
452
  class: "flex-1",
@@ -459,7 +459,7 @@ const te = /* @__PURE__ */ N({
459
459
  }, 512);
460
460
  };
461
461
  }
462
- }), fe = { class: "flex items-end" }, ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, ge = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ N({
462
+ }), fe = { class: "flex items-end" }, ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, ge = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ k({
463
463
  __name: "MaybankGateway",
464
464
  props: {
465
465
  terminal: {
@@ -471,49 +471,49 @@ const te = /* @__PURE__ */ N({
471
471
  required: !0
472
472
  }
473
473
  },
474
- setup(I) {
475
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _(), e = _({
474
+ setup(F) {
475
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
476
476
  ip: "",
477
477
  receiptName: "",
478
478
  cardTypes: []
479
479
  }), m = () => {
480
480
  e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
481
481
  }, c = () => {
482
- var u;
482
+ var i;
483
483
  if (!a.value.ecrIntegrations)
484
484
  return m();
485
- const i = a.value.ecrIntegrations, t = i.findIndex((p) => p && p.gateway && p.gateway === "Maybank");
485
+ const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank");
486
486
  if (t === -1)
487
487
  return m();
488
488
  l.value = t;
489
- const n = i.at(t);
489
+ const n = u.at(t);
490
490
  n.gateway === "Maybank" && n.config && (e.value = {
491
491
  ip: n.config.ip ?? "",
492
492
  receiptName: n.receiptName ?? "",
493
- cardTypes: ((u = n.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
493
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
494
494
  });
495
495
  };
496
496
  O(a, c), M(c);
497
- async function f(i) {
497
+ async function f(u) {
498
498
  var t;
499
- (t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
499
+ (t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
500
500
  }
501
501
  async function s() {
502
- e.value.cardTypes.push(o.value), o.value = "";
502
+ e.value.cardTypes.push(r.value), r.value = "";
503
503
  }
504
- return (i, t) => {
505
- const n = y("FmTextField"), u = y("FmButton"), p = y("FmChip"), x = y("FmForm");
506
- return g(), w(x, {
507
- ref: b.value,
504
+ return (u, t) => {
505
+ const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
506
+ return g(), T(x, {
507
+ ref: _.value,
508
508
  class: "flex flex-col gap-16 w-[500px]",
509
509
  onValidationSuccess: t[3] || (t[3] = () => {
510
- var r, T;
510
+ var o, w;
511
511
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
512
512
  gateway: "Maybank",
513
513
  config: { ip: e.value.ip },
514
514
  receiptName: e.value.receiptName,
515
515
  dialogConfig: {
516
- ...(T = (r = a.value.ecrIntegrations) == null ? void 0 : r[l.value]) == null ? void 0 : T.dialogConfig,
516
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
517
517
  cardTypes: e.value.cardTypes
518
518
  }
519
519
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -526,48 +526,48 @@ const te = /* @__PURE__ */ N({
526
526
  })), d.onUpdate(a.value);
527
527
  })
528
528
  }, {
529
- default: q(() => [
529
+ default: h(() => [
530
530
  v(n, {
531
531
  modelValue: e.value.ip,
532
- "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.ip = r),
532
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
533
533
  label: "IP Address"
534
534
  }, null, 8, ["modelValue"]),
535
535
  v(n, {
536
536
  modelValue: e.value.receiptName,
537
- "onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.receiptName = r),
537
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
538
538
  label: "Receipt Payment Name",
539
539
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
540
540
  }, null, 8, ["modelValue"]),
541
- F("div", fe, [
541
+ I("div", fe, [
542
542
  v(n, {
543
- modelValue: o.value,
544
- "onUpdate:modelValue": t[2] || (t[2] = (r) => o.value = r),
543
+ modelValue: r.value,
544
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
545
545
  label: "Fallback Card Types",
546
546
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
547
547
  }, null, 8, ["modelValue"]),
548
- v(u, {
548
+ v(i, {
549
549
  class: "ml-4",
550
550
  icon: "add",
551
551
  onClick: s
552
552
  })
553
553
  ]),
554
- F("div", ye, [
555
- (g(!0), U(G, null, P(e.value.cardTypes, (r) => (g(), w(p, {
556
- key: r,
557
- label: r,
554
+ I("div", ye, [
555
+ (g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
556
+ key: o,
557
+ label: o,
558
558
  removable: !0,
559
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(r), 1)
559
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
560
560
  }, null, 8, ["label", "onChipClosed"]))), 128))
561
561
  ]),
562
- F("div", ge, [
563
- l.value > -1 ? (g(), w(u, {
562
+ I("div", ge, [
563
+ l.value > -1 ? (g(), T(i, {
564
564
  key: 0,
565
565
  class: "flex-1",
566
566
  variant: "secondary",
567
567
  label: "Delete",
568
568
  onclick: () => f(l.value)
569
- }, null, 8, ["onclick"])) : k("", !0),
570
- v(u, {
569
+ }, null, 8, ["onclick"])) : N("", !0),
570
+ v(i, {
571
571
  type: "submit",
572
572
  class: "flex-1",
573
573
  variant: "primary",
@@ -579,7 +579,7 @@ const te = /* @__PURE__ */ N({
579
579
  }, 512);
580
580
  };
581
581
  }
582
- }), _e = { class: "flex items-end" }, Fe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ie = { class: "flex mt-6 space-x-6" }, we = /* @__PURE__ */ N({
582
+ }), _e = { class: "flex items-end" }, Ie = { class: "flex flex-wrap gap-8 items-center mt-4" }, Fe = { class: "flex mt-6 space-x-6" }, Te = /* @__PURE__ */ k({
583
583
  __name: "Maybank2Gateway",
584
584
  props: {
585
585
  terminal: {
@@ -591,49 +591,49 @@ const te = /* @__PURE__ */ N({
591
591
  required: !0
592
592
  }
593
593
  },
594
- setup(I) {
595
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _(), e = _({
594
+ setup(F) {
595
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
596
596
  ip: "",
597
597
  receiptName: "",
598
598
  cardTypes: []
599
599
  }), m = () => {
600
600
  e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
601
601
  }, c = () => {
602
- var u;
602
+ var i;
603
603
  if (!a.value.ecrIntegrations)
604
604
  return m();
605
- const i = a.value.ecrIntegrations, t = i.findIndex((p) => p && p.gateway && p.gateway === "Maybank2");
605
+ const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank2");
606
606
  if (t === -1)
607
607
  return m();
608
608
  l.value = t;
609
- const n = i.at(t);
609
+ const n = u.at(t);
610
610
  n.gateway === "Maybank2" && n.config && (e.value = {
611
611
  ip: n.config.ip ?? "",
612
612
  receiptName: n.receiptName ?? "",
613
- cardTypes: ((u = n.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
613
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
614
614
  });
615
615
  };
616
616
  O(a, c), M(c);
617
- async function f(i) {
617
+ async function f(u) {
618
618
  var t;
619
- (t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
619
+ (t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
620
620
  }
621
621
  async function s() {
622
- e.value.cardTypes.push(o.value), o.value = "";
622
+ e.value.cardTypes.push(r.value), r.value = "";
623
623
  }
624
- return (i, t) => {
625
- const n = y("FmTextField"), u = y("FmButton"), p = y("FmChip"), x = y("FmForm");
626
- return g(), w(x, {
627
- ref: b.value,
624
+ return (u, t) => {
625
+ const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
626
+ return g(), T(x, {
627
+ ref: _.value,
628
628
  class: "flex flex-col gap-16 w-[500px]",
629
629
  onValidationSuccess: t[3] || (t[3] = () => {
630
- var r, T;
630
+ var o, w;
631
631
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
632
632
  gateway: "Maybank2",
633
633
  config: { ip: e.value.ip },
634
634
  receiptName: e.value.receiptName,
635
635
  dialogConfig: {
636
- ...(T = (r = a.value.ecrIntegrations) == null ? void 0 : r[l.value]) == null ? void 0 : T.dialogConfig,
636
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
637
637
  cardTypes: e.value.cardTypes
638
638
  }
639
639
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -646,48 +646,48 @@ const te = /* @__PURE__ */ N({
646
646
  })), d.onUpdate(a.value);
647
647
  })
648
648
  }, {
649
- default: q(() => [
649
+ default: h(() => [
650
650
  v(n, {
651
651
  modelValue: e.value.ip,
652
- "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.ip = r),
652
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
653
653
  label: "IP Address"
654
654
  }, null, 8, ["modelValue"]),
655
655
  v(n, {
656
656
  modelValue: e.value.receiptName,
657
- "onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.receiptName = r),
657
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
658
658
  label: "Receipt Payment Name",
659
659
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
660
660
  }, null, 8, ["modelValue"]),
661
- F("div", _e, [
661
+ I("div", _e, [
662
662
  v(n, {
663
- modelValue: o.value,
664
- "onUpdate:modelValue": t[2] || (t[2] = (r) => o.value = r),
663
+ modelValue: r.value,
664
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
665
665
  label: "Fallback Card Types",
666
666
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
667
667
  }, null, 8, ["modelValue"]),
668
- v(u, {
668
+ v(i, {
669
669
  class: "ml-4",
670
670
  icon: "add",
671
671
  onClick: s
672
672
  })
673
673
  ]),
674
- F("div", Fe, [
675
- (g(!0), U(G, null, P(e.value.cardTypes, (r) => (g(), w(p, {
676
- key: r,
677
- label: r,
674
+ I("div", Ie, [
675
+ (g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
676
+ key: o,
677
+ label: o,
678
678
  removable: !0,
679
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(r), 1)
679
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
680
680
  }, null, 8, ["label", "onChipClosed"]))), 128))
681
681
  ]),
682
- F("div", Ie, [
683
- l.value > -1 ? (g(), w(u, {
682
+ I("div", Fe, [
683
+ l.value > -1 ? (g(), T(i, {
684
684
  key: 0,
685
685
  class: "flex-1",
686
686
  variant: "secondary",
687
687
  label: "Delete",
688
688
  onclick: () => f(l.value)
689
- }, null, 8, ["onclick"])) : k("", !0),
690
- v(u, {
689
+ }, null, 8, ["onclick"])) : N("", !0),
690
+ v(i, {
691
691
  type: "submit",
692
692
  class: "flex-1",
693
693
  variant: "primary",
@@ -699,7 +699,7 @@ const te = /* @__PURE__ */ N({
699
699
  }, 512);
700
700
  };
701
701
  }
702
- }), Te = { class: "flex items-end" }, xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, ke = { class: "flex mt-6 space-x-6" }, Ne = /* @__PURE__ */ N({
702
+ }), we = { class: "flex items-end" }, xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ne = { class: "flex mt-6 space-x-6" }, ke = /* @__PURE__ */ k({
703
703
  __name: "Maybank3Gateway",
704
704
  props: {
705
705
  terminal: {
@@ -711,49 +711,49 @@ const te = /* @__PURE__ */ N({
711
711
  required: !0
712
712
  }
713
713
  },
714
- setup(I) {
715
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _(), e = _({
714
+ setup(F) {
715
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
716
716
  receiptName: "",
717
717
  config: {},
718
718
  cardTypes: []
719
719
  }), m = () => {
720
720
  e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
721
721
  }, c = () => {
722
- var u;
722
+ var i;
723
723
  if (!a.value.ecrIntegrations)
724
724
  return m();
725
- const i = a.value.ecrIntegrations, t = i.findIndex((p) => p && p.gateway && p.gateway === "Maybank3");
725
+ const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank3");
726
726
  if (t === -1)
727
727
  return m();
728
728
  l.value = t;
729
- const n = i.at(t);
729
+ const n = u.at(t);
730
730
  n.gateway === "Maybank3" && n.config && (e.value = {
731
731
  config: n.config,
732
732
  receiptName: n.receiptName ?? "",
733
- cardTypes: ((u = n.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
733
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
734
734
  });
735
735
  };
736
736
  O(a, c), M(c);
737
- async function f(i) {
737
+ async function f(u) {
738
738
  var t;
739
- (t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
739
+ (t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
740
740
  }
741
741
  async function s() {
742
- e.value.cardTypes.push(o.value), o.value = "";
742
+ e.value.cardTypes.push(r.value), r.value = "";
743
743
  }
744
- return (i, t) => {
745
- const n = y("FmTextField"), u = y("FmButton"), p = y("FmChip"), x = y("FmForm");
746
- return g(), w(x, {
747
- ref: b.value,
744
+ return (u, t) => {
745
+ const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
746
+ return g(), T(x, {
747
+ ref: _.value,
748
748
  class: "flex flex-col gap-16 w-[500px]",
749
749
  onValidationSuccess: t[2] || (t[2] = () => {
750
- var r, T;
750
+ var o, w;
751
751
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
752
752
  gateway: "Maybank3",
753
753
  config: e.value.config,
754
754
  receiptName: e.value.receiptName,
755
755
  dialogConfig: {
756
- ...(T = (r = a.value.ecrIntegrations) == null ? void 0 : r[l.value]) == null ? void 0 : T.dialogConfig,
756
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
757
757
  cardTypes: e.value.cardTypes
758
758
  }
759
759
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -766,43 +766,43 @@ const te = /* @__PURE__ */ N({
766
766
  })), d.onUpdate(a.value);
767
767
  })
768
768
  }, {
769
- default: q(() => [
769
+ default: h(() => [
770
770
  v(n, {
771
771
  modelValue: e.value.receiptName,
772
- "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.receiptName = r),
772
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
773
773
  label: "Receipt Payment Name",
774
774
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
775
775
  }, null, 8, ["modelValue"]),
776
- F("div", Te, [
776
+ I("div", we, [
777
777
  v(n, {
778
- modelValue: o.value,
779
- "onUpdate:modelValue": t[1] || (t[1] = (r) => o.value = r),
778
+ modelValue: r.value,
779
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
780
780
  label: "Fallback Card Types",
781
781
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
782
782
  }, null, 8, ["modelValue"]),
783
- v(u, {
783
+ v(i, {
784
784
  class: "ml-4",
785
785
  icon: "add",
786
786
  onClick: s
787
787
  })
788
788
  ]),
789
- F("div", xe, [
790
- (g(!0), U(G, null, P(e.value.cardTypes, (r) => (g(), w(p, {
791
- key: r,
792
- label: r,
789
+ I("div", xe, [
790
+ (g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
791
+ key: o,
792
+ label: o,
793
793
  removable: !0,
794
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(r), 1)
794
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
795
795
  }, null, 8, ["label", "onChipClosed"]))), 128))
796
796
  ]),
797
- F("div", ke, [
798
- l.value > -1 ? (g(), w(u, {
797
+ I("div", Ne, [
798
+ l.value > -1 ? (g(), T(i, {
799
799
  key: 0,
800
800
  class: "flex-1",
801
801
  variant: "secondary",
802
802
  label: "Delete",
803
803
  onclick: () => f(l.value)
804
- }, null, 8, ["onclick"])) : k("", !0),
805
- v(u, {
804
+ }, null, 8, ["onclick"])) : N("", !0),
805
+ v(i, {
806
806
  type: "submit",
807
807
  class: "flex-1",
808
808
  variant: "primary",
@@ -814,7 +814,7 @@ const te = /* @__PURE__ */ N({
814
814
  }, 512);
815
815
  };
816
816
  }
817
- }), Ce = { class: "flex items-end" }, Ve = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ue = { class: "flex mt-6 space-x-6" }, Se = /* @__PURE__ */ N({
817
+ }), Ce = { class: "flex items-end" }, Ve = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ue = { class: "flex mt-6 space-x-6" }, Se = /* @__PURE__ */ k({
818
818
  __name: "NetsGateway",
819
819
  props: {
820
820
  terminal: {
@@ -826,49 +826,49 @@ const te = /* @__PURE__ */ N({
826
826
  required: !0
827
827
  }
828
828
  },
829
- setup(I) {
830
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _(), e = _({
829
+ setup(F) {
830
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
831
831
  ip: "",
832
832
  receiptName: "",
833
833
  cardTypes: []
834
834
  }), m = () => {
835
835
  e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
836
836
  }, c = () => {
837
- var u;
837
+ var i;
838
838
  if (!a.value.ecrIntegrations)
839
839
  return m();
840
- const i = a.value.ecrIntegrations, t = i.findIndex((p) => p && p.gateway && p.gateway === "Nets");
840
+ const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Nets");
841
841
  if (t === -1)
842
842
  return m();
843
843
  l.value = t;
844
- const n = i.at(t);
844
+ const n = u.at(t);
845
845
  n.gateway === "Nets" && n.config && (e.value = {
846
846
  ip: n.config.ip ?? "",
847
847
  receiptName: n.receiptName ?? "",
848
- cardTypes: ((u = n.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
848
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
849
849
  });
850
850
  };
851
851
  O(a, c), M(c);
852
- async function f(i) {
852
+ async function f(u) {
853
853
  var t;
854
- (t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
854
+ (t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
855
855
  }
856
856
  async function s() {
857
- e.value.cardTypes.push(o.value), o.value = "";
857
+ e.value.cardTypes.push(r.value), r.value = "";
858
858
  }
859
- return (i, t) => {
860
- const n = y("FmTextField"), u = y("FmButton"), p = y("FmChip"), x = y("FmForm");
861
- return g(), w(x, {
862
- ref: b.value,
859
+ return (u, t) => {
860
+ const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
861
+ return g(), T(x, {
862
+ ref: _.value,
863
863
  class: "flex flex-col gap-16 w-[500px]",
864
864
  onValidationSuccess: t[3] || (t[3] = () => {
865
- var r, T;
865
+ var o, w;
866
866
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
867
867
  gateway: "Nets",
868
868
  config: { ip: e.value.ip },
869
869
  receiptName: e.value.receiptName,
870
870
  dialogConfig: {
871
- ...(T = (r = a.value.ecrIntegrations) == null ? void 0 : r[l.value]) == null ? void 0 : T.dialogConfig,
871
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
872
872
  cardTypes: e.value.cardTypes
873
873
  }
874
874
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -881,48 +881,48 @@ const te = /* @__PURE__ */ N({
881
881
  })), d.onUpdate(a.value);
882
882
  })
883
883
  }, {
884
- default: q(() => [
884
+ default: h(() => [
885
885
  v(n, {
886
886
  modelValue: e.value.ip,
887
- "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.ip = r),
887
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
888
888
  label: "IP Address"
889
889
  }, null, 8, ["modelValue"]),
890
890
  v(n, {
891
891
  modelValue: e.value.receiptName,
892
- "onUpdate:modelValue": t[1] || (t[1] = (r) => e.value.receiptName = r),
892
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
893
893
  label: "Receipt Payment Name",
894
894
  "label-info": "Default receipt display will be 'TERMINAL_NETS'"
895
895
  }, null, 8, ["modelValue"]),
896
- F("div", Ce, [
896
+ I("div", Ce, [
897
897
  v(n, {
898
- modelValue: o.value,
899
- "onUpdate:modelValue": t[2] || (t[2] = (r) => o.value = r),
898
+ modelValue: r.value,
899
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
900
900
  label: "Fallback Card Types",
901
901
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
902
902
  }, null, 8, ["modelValue"]),
903
- v(u, {
903
+ v(i, {
904
904
  class: "ml-4",
905
905
  icon: "add",
906
906
  onClick: s
907
907
  })
908
908
  ]),
909
- F("div", Ve, [
910
- (g(!0), U(G, null, P(e.value.cardTypes, (r) => (g(), w(p, {
911
- key: r,
912
- label: r,
909
+ I("div", Ve, [
910
+ (g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
911
+ key: o,
912
+ label: o,
913
913
  removable: !0,
914
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(r), 1)
914
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
915
915
  }, null, 8, ["label", "onChipClosed"]))), 128))
916
916
  ]),
917
- F("div", Ue, [
918
- l.value > -1 ? (g(), w(u, {
917
+ I("div", Ue, [
918
+ l.value > -1 ? (g(), T(i, {
919
919
  key: 0,
920
920
  class: "flex-1",
921
921
  variant: "secondary",
922
922
  label: "Delete",
923
923
  onclick: () => f(l.value)
924
- }, null, 8, ["onclick"])) : k("", !0),
925
- v(u, {
924
+ }, null, 8, ["onclick"])) : N("", !0),
925
+ v(i, {
926
926
  type: "submit",
927
927
  class: "flex-1",
928
928
  variant: "primary",
@@ -934,7 +934,7 @@ const te = /* @__PURE__ */ N({
934
934
  }, 512);
935
935
  };
936
936
  }
937
- }), Me = { class: "flex items-end" }, qe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ge = { class: "flex mt-6 space-x-6" }, he = /* @__PURE__ */ N({
937
+ }), Me = { class: "flex items-end" }, he = { class: "flex flex-wrap gap-8 items-center mt-4" }, qe = { class: "flex mt-6 space-x-6" }, Ge = /* @__PURE__ */ k({
938
938
  __name: "KBankGateway",
939
939
  props: {
940
940
  terminal: {
@@ -946,47 +946,47 @@ const te = /* @__PURE__ */ N({
946
946
  required: !0
947
947
  }
948
948
  },
949
- setup(I) {
950
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _(), e = _({
949
+ setup(F) {
950
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
951
951
  receiptName: "",
952
952
  cardTypes: []
953
953
  }), m = () => {
954
954
  e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
955
955
  }, c = () => {
956
- var u;
956
+ var i;
957
957
  if (!a.value.ecrIntegrations)
958
958
  return m();
959
- const i = a.value.ecrIntegrations, t = i.findIndex((p) => p && p.gateway && p.gateway === "Kbank");
959
+ const u = a.value.ecrIntegrations, t = u.findIndex((p) => p && p.gateway && p.gateway === "Kbank");
960
960
  if (t === -1)
961
961
  return m();
962
962
  l.value = t;
963
- const n = i.at(t);
963
+ const n = u.at(t);
964
964
  n.gateway === "Kbank" && n.config && (e.value = {
965
965
  receiptName: n.receiptName ?? "",
966
- cardTypes: ((u = n.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
966
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
967
967
  });
968
968
  };
969
969
  O(a, c), M(c);
970
- async function f(i) {
970
+ async function f(u) {
971
971
  var t;
972
- (t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
972
+ (t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
973
973
  }
974
974
  async function s() {
975
- e.value.cardTypes.push(o.value), o.value = "";
975
+ e.value.cardTypes.push(r.value), r.value = "";
976
976
  }
977
- return (i, t) => {
978
- const n = y("FmTextField"), u = y("FmButton"), p = y("FmChip"), x = y("FmForm");
979
- return g(), w(x, {
980
- ref: b.value,
977
+ return (u, t) => {
978
+ const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
979
+ return g(), T(x, {
980
+ ref: _.value,
981
981
  class: "flex flex-col gap-16 w-[500px]",
982
982
  onValidationSuccess: t[2] || (t[2] = () => {
983
- var r, T;
983
+ var o, w;
984
984
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
985
985
  gateway: "Kbank",
986
986
  config: {},
987
987
  receiptName: e.value.receiptName,
988
988
  dialogConfig: {
989
- ...(T = (r = a.value.ecrIntegrations) == null ? void 0 : r[l.value]) == null ? void 0 : T.dialogConfig,
989
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
990
990
  cardTypes: e.value.cardTypes
991
991
  }
992
992
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -999,43 +999,43 @@ const te = /* @__PURE__ */ N({
999
999
  })), d.onUpdate(a.value);
1000
1000
  })
1001
1001
  }, {
1002
- default: q(() => [
1002
+ default: h(() => [
1003
1003
  v(n, {
1004
1004
  modelValue: e.value.receiptName,
1005
- "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.receiptName = r),
1005
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1006
1006
  label: "Receipt Payment Name",
1007
1007
  "label-info": "Default receipt display will be 'TERMINAL_KBANK'"
1008
1008
  }, null, 8, ["modelValue"]),
1009
- F("div", Me, [
1009
+ I("div", Me, [
1010
1010
  v(n, {
1011
- modelValue: o.value,
1012
- "onUpdate:modelValue": t[1] || (t[1] = (r) => o.value = r),
1011
+ modelValue: r.value,
1012
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1013
1013
  label: "Fallback Card Types",
1014
1014
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1015
1015
  }, null, 8, ["modelValue"]),
1016
- v(u, {
1016
+ v(i, {
1017
1017
  class: "ml-4",
1018
1018
  icon: "add",
1019
1019
  onClick: s
1020
1020
  })
1021
1021
  ]),
1022
- F("div", qe, [
1023
- (g(!0), U(G, null, P(e.value.cardTypes, (r) => (g(), w(p, {
1024
- key: r,
1025
- label: r,
1022
+ I("div", he, [
1023
+ (g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
1024
+ key: o,
1025
+ label: o,
1026
1026
  removable: !0,
1027
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(r), 1)
1027
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1028
1028
  }, null, 8, ["label", "onChipClosed"]))), 128))
1029
1029
  ]),
1030
- F("div", Ge, [
1031
- l.value > -1 ? (g(), w(u, {
1030
+ I("div", qe, [
1031
+ l.value > -1 ? (g(), T(i, {
1032
1032
  key: 0,
1033
1033
  class: "flex-1",
1034
1034
  variant: "secondary",
1035
1035
  label: "Delete",
1036
1036
  onclick: () => f(l.value)
1037
- }, null, 8, ["onclick"])) : k("", !0),
1038
- v(u, {
1037
+ }, null, 8, ["onclick"])) : N("", !0),
1038
+ v(i, {
1039
1039
  type: "submit",
1040
1040
  class: "flex-1",
1041
1041
  variant: "primary",
@@ -1047,7 +1047,7 @@ const te = /* @__PURE__ */ N({
1047
1047
  }, 512);
1048
1048
  };
1049
1049
  }
1050
- }), Oe = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */ N({
1050
+ }), Oe = { class: "flex mt-6 space-x-6" }, Re = /* @__PURE__ */ k({
1051
1051
  __name: "Ghl2Gateway",
1052
1052
  props: {
1053
1053
  terminal: {
@@ -1059,12 +1059,12 @@ const te = /* @__PURE__ */ N({
1059
1059
  required: !0
1060
1060
  }
1061
1061
  },
1062
- setup(I) {
1063
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _({
1062
+ setup(F) {
1063
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b({
1064
1064
  ip: "",
1065
1065
  receiptName: ""
1066
1066
  }), e = () => {
1067
- o.value.ip = "", o.value.receiptName = "", l.value = -1;
1067
+ r.value.ip = "", r.value.receiptName = "", l.value = -1;
1068
1068
  }, m = () => {
1069
1069
  if (!a.value.ecrIntegrations)
1070
1070
  return e();
@@ -1072,10 +1072,10 @@ const te = /* @__PURE__ */ N({
1072
1072
  if (s === -1)
1073
1073
  return e();
1074
1074
  l.value = s;
1075
- const i = f.at(s);
1076
- i.gateway === "Ghl2" && i.config && (o.value = {
1077
- ip: i.config.ip ?? "",
1078
- receiptName: i.receiptName ?? ""
1075
+ const u = f.at(s);
1076
+ u.gateway === "Ghl2" && u.config && (r.value = {
1077
+ ip: u.config.ip ?? "",
1078
+ receiptName: u.receiptName ?? ""
1079
1079
  });
1080
1080
  };
1081
1081
  O(a, m), M(m);
@@ -1084,42 +1084,42 @@ const te = /* @__PURE__ */ N({
1084
1084
  (s = a.value.ecrIntegrations) == null || s.splice(f, 1), d.onUpdate(a.value);
1085
1085
  }
1086
1086
  return (f, s) => {
1087
- const i = y("FmTextField"), t = y("FmButton"), n = y("FmForm");
1088
- return g(), w(n, {
1089
- ref: b.value,
1087
+ const u = y("FmTextField"), t = y("FmButton"), n = y("FmForm");
1088
+ return g(), T(n, {
1089
+ ref: _.value,
1090
1090
  class: "flex flex-col gap-16 w-[500px]",
1091
1091
  onValidationSuccess: s[2] || (s[2] = () => {
1092
1092
  a.value.ecrIntegrations || (a.value.ecrIntegrations = []), l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1093
1093
  gateway: "Ghl2",
1094
- config: { ip: o.value.ip },
1095
- receiptName: o.value.receiptName
1094
+ config: { ip: r.value.ip },
1095
+ receiptName: r.value.receiptName
1096
1096
  } : a.value.ecrIntegrations.push({
1097
1097
  gateway: "Ghl2",
1098
- config: { ip: o.value.ip },
1099
- receiptName: o.value.receiptName
1098
+ config: { ip: r.value.ip },
1099
+ receiptName: r.value.receiptName
1100
1100
  }), d.onUpdate(a.value);
1101
1101
  })
1102
1102
  }, {
1103
- default: q(() => [
1104
- v(i, {
1105
- modelValue: o.value.ip,
1106
- "onUpdate:modelValue": s[0] || (s[0] = (u) => o.value.ip = u),
1103
+ default: h(() => [
1104
+ v(u, {
1105
+ modelValue: r.value.ip,
1106
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => r.value.ip = i),
1107
1107
  label: "IP Address"
1108
1108
  }, null, 8, ["modelValue"]),
1109
- v(i, {
1110
- modelValue: o.value.receiptName,
1111
- "onUpdate:modelValue": s[1] || (s[1] = (u) => o.value.receiptName = u),
1109
+ v(u, {
1110
+ modelValue: r.value.receiptName,
1111
+ "onUpdate:modelValue": s[1] || (s[1] = (i) => r.value.receiptName = i),
1112
1112
  label: "Receipt Payment Name",
1113
1113
  "label-info": "Default receipt display will be 'TERMINAL_GHL_2'"
1114
1114
  }, null, 8, ["modelValue"]),
1115
- F("div", Oe, [
1116
- l.value > -1 ? (g(), w(t, {
1115
+ I("div", Oe, [
1116
+ l.value > -1 ? (g(), T(t, {
1117
1117
  key: 0,
1118
1118
  class: "flex-1",
1119
1119
  variant: "secondary",
1120
1120
  label: "Delete",
1121
1121
  onclick: () => c(l.value)
1122
- }, null, 8, ["onclick"])) : k("", !0),
1122
+ }, null, 8, ["onclick"])) : N("", !0),
1123
1123
  v(t, {
1124
1124
  type: "submit",
1125
1125
  class: "flex-1",
@@ -1132,7 +1132,7 @@ const te = /* @__PURE__ */ N({
1132
1132
  }, 512);
1133
1133
  };
1134
1134
  }
1135
- }), Pe = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, De = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ N({
1135
+ }), Pe = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ae = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ k({
1136
1136
  __name: "Ghl3Gateway",
1137
1137
  props: {
1138
1138
  terminal: {
@@ -1144,51 +1144,51 @@ const te = /* @__PURE__ */ N({
1144
1144
  required: !0
1145
1145
  }
1146
1146
  },
1147
- setup(I) {
1148
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _(), e = _({
1147
+ setup(F) {
1148
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
1149
1149
  receiptName: "",
1150
1150
  config: {},
1151
1151
  cardTypes: []
1152
1152
  }), m = () => {
1153
1153
  e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
1154
1154
  }, c = () => {
1155
- var u;
1155
+ var i;
1156
1156
  if (!a.value.ecrIntegrations)
1157
1157
  return m();
1158
- const i = a.value.ecrIntegrations, t = i.findIndex(
1158
+ const u = a.value.ecrIntegrations, t = u.findIndex(
1159
1159
  (p) => p && p.gateway && p.gateway === "Ghl3"
1160
1160
  );
1161
1161
  if (t === -1)
1162
1162
  return m();
1163
1163
  l.value = t;
1164
- const n = i.at(t);
1164
+ const n = u.at(t);
1165
1165
  n.gateway === "Ghl3" && n.config && (e.value = {
1166
1166
  config: n.config,
1167
1167
  receiptName: n.receiptName ?? "",
1168
- cardTypes: ((u = n.dialogConfig) == null ? void 0 : u.cardTypes) ?? []
1168
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1169
1169
  });
1170
1170
  };
1171
1171
  O(a, c), M(c);
1172
- async function f(i) {
1172
+ async function f(u) {
1173
1173
  var t;
1174
- (t = a.value.ecrIntegrations) == null || t.splice(i, 1), d.onUpdate(a.value);
1174
+ (t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
1175
1175
  }
1176
1176
  async function s() {
1177
- e.value.cardTypes.push(o.value), o.value = "";
1177
+ e.value.cardTypes.push(r.value), r.value = "";
1178
1178
  }
1179
- return (i, t) => {
1180
- const n = y("FmTextField"), u = y("FmButton"), p = y("FmChip"), x = y("FmForm");
1181
- return g(), w(x, {
1182
- ref: b.value,
1179
+ return (u, t) => {
1180
+ const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
1181
+ return g(), T(x, {
1182
+ ref: _.value,
1183
1183
  class: "flex flex-col gap-16 w-[500px]",
1184
1184
  onValidationSuccess: t[2] || (t[2] = () => {
1185
- var r, T;
1185
+ var o, w;
1186
1186
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1187
1187
  gateway: "Ghl3",
1188
1188
  config: e.value.config,
1189
1189
  receiptName: e.value.receiptName,
1190
1190
  dialogConfig: {
1191
- ...(T = (r = a.value.ecrIntegrations) == null ? void 0 : r[l.value]) == null ? void 0 : T.dialogConfig,
1191
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1192
1192
  cardTypes: e.value.cardTypes
1193
1193
  }
1194
1194
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1201,43 +1201,43 @@ const te = /* @__PURE__ */ N({
1201
1201
  })), d.onUpdate(a.value);
1202
1202
  })
1203
1203
  }, {
1204
- default: q(() => [
1204
+ default: h(() => [
1205
1205
  v(n, {
1206
1206
  modelValue: e.value.receiptName,
1207
- "onUpdate:modelValue": t[0] || (t[0] = (r) => e.value.receiptName = r),
1207
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1208
1208
  label: "Receipt Payment Name",
1209
1209
  "label-info": "Default receipt display will be 'TERMINAL_GHL'"
1210
1210
  }, null, 8, ["modelValue"]),
1211
- F("div", Pe, [
1211
+ I("div", Pe, [
1212
1212
  v(n, {
1213
- modelValue: o.value,
1214
- "onUpdate:modelValue": t[1] || (t[1] = (r) => o.value = r),
1213
+ modelValue: r.value,
1214
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1215
1215
  label: "Fallback Card Types",
1216
1216
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1217
1217
  }, null, 8, ["modelValue"]),
1218
- v(u, {
1218
+ v(i, {
1219
1219
  class: "ml-4",
1220
1220
  icon: "add",
1221
1221
  onClick: s
1222
1222
  })
1223
1223
  ]),
1224
- F("div", $e, [
1225
- (g(!0), U(G, null, P(e.value.cardTypes, (r) => (g(), w(p, {
1226
- key: r,
1227
- label: r,
1224
+ I("div", $e, [
1225
+ (g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
1226
+ key: o,
1227
+ label: o,
1228
1228
  removable: !0,
1229
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(r), 1)
1229
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1230
1230
  }, null, 8, ["label", "onChipClosed"]))), 128))
1231
1231
  ]),
1232
- F("div", De, [
1233
- l.value > -1 ? (g(), w(u, {
1232
+ I("div", Ae, [
1233
+ l.value > -1 ? (g(), T(i, {
1234
1234
  key: 0,
1235
1235
  class: "flex-1",
1236
1236
  variant: "secondary",
1237
1237
  label: "Delete",
1238
1238
  onclick: () => f(l.value)
1239
- }, null, 8, ["onclick"])) : k("", !0),
1240
- v(u, {
1239
+ }, null, 8, ["onclick"])) : N("", !0),
1240
+ v(i, {
1241
1241
  type: "submit",
1242
1242
  class: "flex-1",
1243
1243
  variant: "primary",
@@ -1249,7 +1249,124 @@ const te = /* @__PURE__ */ N({
1249
1249
  }, 512);
1250
1250
  };
1251
1251
  }
1252
- }), Be = { class: "flex items-center" }, Ye = { class: "w-[260px] self-start" }, Le = { class: "flex-1" }, Ke = /* @__PURE__ */ N({
1252
+ }), Be = { class: "flex items-end" }, Ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, Le = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */ k({
1253
+ __name: "HlbbGateway",
1254
+ props: {
1255
+ terminal: {
1256
+ type: Object,
1257
+ required: !0
1258
+ },
1259
+ onUpdate: {
1260
+ type: Function,
1261
+ required: !0
1262
+ }
1263
+ },
1264
+ setup(F) {
1265
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b(), e = b({
1266
+ receiptName: "",
1267
+ config: {},
1268
+ cardTypes: []
1269
+ }), m = () => {
1270
+ e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
1271
+ }, c = () => {
1272
+ var i;
1273
+ if (!a.value.ecrIntegrations)
1274
+ return m();
1275
+ const u = a.value.ecrIntegrations, t = u.findIndex(
1276
+ (p) => p && p.gateway && p.gateway === "Hlbb"
1277
+ );
1278
+ if (t === -1)
1279
+ return m();
1280
+ l.value = t;
1281
+ const n = u.at(t);
1282
+ n.gateway === "Hlbb" && n.config && (e.value = {
1283
+ config: n.config,
1284
+ receiptName: n.receiptName ?? "",
1285
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1286
+ });
1287
+ };
1288
+ O(a, c), M(c);
1289
+ async function f(u) {
1290
+ var t;
1291
+ (t = a.value.ecrIntegrations) == null || t.splice(u, 1), d.onUpdate(a.value);
1292
+ }
1293
+ async function s() {
1294
+ e.value.cardTypes.push(r.value), r.value = "";
1295
+ }
1296
+ return (u, t) => {
1297
+ const n = y("FmTextField"), i = y("FmButton"), p = y("FmChip"), x = y("FmForm");
1298
+ return g(), T(x, {
1299
+ ref: _.value,
1300
+ class: "flex flex-col gap-16 w-[500px]",
1301
+ onValidationSuccess: t[2] || (t[2] = () => {
1302
+ var o, w;
1303
+ l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1304
+ gateway: "Hlbb",
1305
+ config: e.value.config,
1306
+ receiptName: e.value.receiptName,
1307
+ dialogConfig: {
1308
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1309
+ cardTypes: e.value.cardTypes
1310
+ }
1311
+ } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
1312
+ gateway: "Hlbb",
1313
+ config: e.value.config,
1314
+ receiptName: e.value.receiptName,
1315
+ dialogConfig: {
1316
+ cardTypes: e.value.cardTypes
1317
+ }
1318
+ })), d.onUpdate(a.value);
1319
+ })
1320
+ }, {
1321
+ default: h(() => [
1322
+ v(n, {
1323
+ modelValue: e.value.receiptName,
1324
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1325
+ label: "Receipt Payment Name",
1326
+ "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
1327
+ }, null, 8, ["modelValue"]),
1328
+ I("div", Be, [
1329
+ v(n, {
1330
+ modelValue: r.value,
1331
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1332
+ label: "Fallback Card Types",
1333
+ "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1334
+ }, null, 8, ["modelValue"]),
1335
+ v(i, {
1336
+ class: "ml-4",
1337
+ icon: "add",
1338
+ onClick: s
1339
+ })
1340
+ ]),
1341
+ I("div", Ye, [
1342
+ (g(!0), V(q, null, P(e.value.cardTypes, (o) => (g(), T(p, {
1343
+ key: o,
1344
+ label: o,
1345
+ removable: !0,
1346
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1347
+ }, null, 8, ["label", "onChipClosed"]))), 128))
1348
+ ]),
1349
+ I("div", Le, [
1350
+ l.value > -1 ? (g(), T(i, {
1351
+ key: 0,
1352
+ class: "flex-1",
1353
+ variant: "secondary",
1354
+ label: "Delete",
1355
+ onclick: () => f(l.value)
1356
+ }, null, 8, ["onclick"])) : N("", !0),
1357
+ v(i, {
1358
+ type: "submit",
1359
+ class: "flex-1",
1360
+ variant: "primary",
1361
+ label: "Save"
1362
+ })
1363
+ ])
1364
+ ]),
1365
+ _: 1
1366
+ }, 512);
1367
+ };
1368
+ }
1369
+ }), Ee = { class: "flex items-center" }, je = { class: "w-[260px] self-start" }, He = { class: "flex-1" }, ze = /* @__PURE__ */ k({
1253
1370
  __name: "EcrGateway",
1254
1371
  props: {
1255
1372
  terminal: {
@@ -1261,9 +1378,9 @@ const te = /* @__PURE__ */ N({
1261
1378
  required: !0
1262
1379
  }
1263
1380
  },
1264
- setup(I) {
1381
+ setup(F) {
1265
1382
  var m;
1266
- const d = I, a = [
1383
+ const d = F, a = [
1267
1384
  {
1268
1385
  label: "FeedMe Terminal",
1269
1386
  value: "terminal",
@@ -1273,78 +1390,85 @@ const te = /* @__PURE__ */ N({
1273
1390
  label: "GHL Terminal (V2)",
1274
1391
  value: "ghl",
1275
1392
  render: ve,
1276
- region: [V.F_COUNTRY.enum.MY]
1393
+ region: [C.F_COUNTRY.enum.MY]
1277
1394
  },
1278
1395
  {
1279
1396
  label: "GHL 2 Terminal",
1280
1397
  value: "ghl2",
1281
1398
  render: Re,
1282
- region: [V.F_COUNTRY.enum.MY]
1399
+ region: [C.F_COUNTRY.enum.MY]
1283
1400
  },
1284
1401
  {
1285
1402
  label: "Maybank Terminal (ITB)",
1286
1403
  value: "mb-itb",
1287
1404
  render: be,
1288
- region: [V.F_COUNTRY.enum.MY]
1405
+ region: [C.F_COUNTRY.enum.MY]
1289
1406
  },
1290
1407
  {
1291
1408
  label: "Maybank Terminal (PMA)",
1292
1409
  value: "mb-pma",
1293
- render: we,
1294
- region: [V.F_COUNTRY.enum.MY]
1410
+ render: Te,
1411
+ region: [C.F_COUNTRY.enum.MY]
1295
1412
  },
1296
1413
  {
1297
1414
  label: "Maybank Terminal (Paysys)",
1298
1415
  value: "mb-paysys",
1299
- render: Ne,
1300
- region: [V.F_COUNTRY.enum.MY]
1416
+ render: ke,
1417
+ region: [C.F_COUNTRY.enum.MY]
1301
1418
  },
1302
1419
  {
1303
1420
  label: "Nets Terminal",
1304
1421
  value: "nets",
1305
1422
  render: Se,
1306
- region: [V.F_COUNTRY.enum.SG]
1423
+ region: [C.F_COUNTRY.enum.SG]
1307
1424
  },
1308
1425
  {
1309
1426
  label: "KBank Terminal",
1310
1427
  value: "kbank",
1311
- render: he,
1312
- region: [V.F_COUNTRY.enum.TH]
1428
+ render: Ge,
1429
+ region: [C.F_COUNTRY.enum.TH]
1313
1430
  },
1314
1431
  {
1315
1432
  label: "GHL Terminal",
1316
1433
  value: "ghl3",
1317
- render: Ae,
1318
- region: [V.F_COUNTRY.enum.TH]
1434
+ render: De,
1435
+ region: [C.F_COUNTRY.enum.TH]
1436
+ },
1437
+ {
1438
+ label: "HLBB Terminal (Paysys)",
1439
+ value: "hlbb",
1440
+ render: Ke,
1441
+ region: [C.F_COUNTRY.enum.MY]
1319
1442
  }
1320
- ], b = R(() => a.find((c) => c.value === e.value)), l = j().currentCountry, o = R(() => a.filter(
1321
- (c) => !c.region || c.region.includes(l.value ?? V.F_COUNTRY.enum.MY)
1443
+ ], _ = R(() => a.find((c) => c.value === e.value)), l = j().currentCountry, r = R(() => a.filter(
1444
+ (c) => !c.region || c.region.includes(l.value ?? C.F_COUNTRY.enum.MY)
1322
1445
  )), { gatewayTab: e } = E({
1323
- gatewayTab: (m = o.value[0]) == null ? void 0 : m.value
1446
+ gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
1324
1447
  });
1325
1448
  return (c, f) => {
1326
- var i;
1449
+ var u;
1327
1450
  const s = y("FmTabs");
1328
- return g(), U("div", Be, [
1329
- F("div", Ye, [
1451
+ return g(), V("div", Ee, [
1452
+ I("div", je, [
1330
1453
  v(s, {
1331
1454
  "model-value": S(e),
1332
1455
  "onUpdate:modelValue": f[0] || (f[0] = (t) => B(e) ? e.value = t : null),
1333
1456
  class: "mb-6",
1334
1457
  vertical: !0,
1335
- items: o.value
1336
- }, null, 8, ["model-value", "items"])
1458
+ items: r.value,
1459
+ "show-more-at": Number.POSITIVE_INFINITY
1460
+ }, null, 8, ["model-value", "items", "show-more-at"])
1337
1461
  ]),
1338
- F("div", Le, [
1339
- S(e) ? (g(), w(Y((i = b.value) == null ? void 0 : i.render), L(K({ key: 0 }, {
1462
+ I("div", He, [
1463
+ S(e) ? (g(), T(Y((u = _.value) == null ? void 0 : u.render), L(K({ key: 0 }, {
1340
1464
  terminal: d.terminal,
1341
1465
  onUpdate: d.onUpdate
1342
- })), null, 16)) : k("", !0)
1466
+ })), null, 16)) : N("", !0)
1343
1467
  ])
1344
1468
  ]);
1345
1469
  };
1346
1470
  }
1347
- }), Ee = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */ N({
1471
+ }), Qe = { class: "flex mt-6 space-x-6" }, Je = /* @__PURE__ */ k({
1348
1472
  __name: "PromptPayGateway",
1349
1473
  props: {
1350
1474
  terminal: {
@@ -1356,12 +1480,12 @@ const te = /* @__PURE__ */ N({
1356
1480
  required: !0
1357
1481
  }
1358
1482
  },
1359
- setup(I) {
1360
- const d = I, a = h(() => d.terminal), b = _(), l = _(-1), o = _({
1483
+ setup(F) {
1484
+ const d = F, a = G(() => d.terminal), _ = b(), l = b(-1), r = b({
1361
1485
  account: "",
1362
1486
  receiptName: ""
1363
1487
  }), e = () => {
1364
- o.value.account = "", o.value.receiptName = "", l.value = -1;
1488
+ r.value.account = "", r.value.receiptName = "", l.value = -1;
1365
1489
  }, m = () => {
1366
1490
  if (!a.value.qrIntegrations)
1367
1491
  return e();
@@ -1369,10 +1493,10 @@ const te = /* @__PURE__ */ N({
1369
1493
  if (s === -1)
1370
1494
  return e();
1371
1495
  l.value = s;
1372
- const i = f.at(s);
1373
- i.gateway === "PROMPTPAY" && i.config && (o.value = {
1374
- account: i.config.account ?? "",
1375
- receiptName: i.receiptName ?? ""
1496
+ const u = f.at(s);
1497
+ u.gateway === "PROMPTPAY" && u.config && (r.value = {
1498
+ account: u.config.account ?? "",
1499
+ receiptName: u.receiptName ?? ""
1376
1500
  });
1377
1501
  };
1378
1502
  O(a, m), M(m);
@@ -1381,35 +1505,35 @@ const te = /* @__PURE__ */ N({
1381
1505
  (s = a.value.qrIntegrations) == null || s.splice(f, 1), d.onUpdate(a.value);
1382
1506
  }
1383
1507
  return (f, s) => {
1384
- const i = y("FmTextField"), t = y("FmButton"), n = y("FmForm");
1385
- return g(), w(n, {
1386
- ref: b.value,
1508
+ const u = y("FmTextField"), t = y("FmButton"), n = y("FmForm");
1509
+ return g(), T(n, {
1510
+ ref: _.value,
1387
1511
  class: "flex flex-col gap-16 w-[500px]",
1388
1512
  onValidationSuccess: s[2] || (s[2] = () => {
1389
- l.value > -1 ? a.value.qrIntegrations[l.value] = { gateway: "PROMPTPAY", config: { account: o.value.account }, receiptName: o.value.receiptName } : (a.value.qrIntegrations || (a.value.qrIntegrations = []), a.value.qrIntegrations.push({ gateway: "PROMPTPAY", config: { account: o.value.account }, receiptName: o.value.receiptName })), d.onUpdate(a.value);
1513
+ l.value > -1 ? a.value.qrIntegrations[l.value] = { gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName } : (a.value.qrIntegrations || (a.value.qrIntegrations = []), a.value.qrIntegrations.push({ gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName })), d.onUpdate(a.value);
1390
1514
  })
1391
1515
  }, {
1392
- default: q(() => [
1393
- v(i, {
1394
- modelValue: o.value.account,
1395
- "onUpdate:modelValue": s[0] || (s[0] = (u) => o.value.account = u),
1516
+ default: h(() => [
1517
+ v(u, {
1518
+ modelValue: r.value.account,
1519
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => r.value.account = i),
1396
1520
  label: "Thai Phone Number / Thai Naitonal ID",
1397
1521
  "label-info": "Thai Phone Number can be prefixed with 66 or 0 will be fine both will works well."
1398
1522
  }, null, 8, ["modelValue"]),
1399
- v(i, {
1400
- modelValue: o.value.receiptName,
1401
- "onUpdate:modelValue": s[1] || (s[1] = (u) => o.value.receiptName = u),
1523
+ v(u, {
1524
+ modelValue: r.value.receiptName,
1525
+ "onUpdate:modelValue": s[1] || (s[1] = (i) => r.value.receiptName = i),
1402
1526
  label: "Receipt Payment Name",
1403
1527
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
1404
1528
  }, null, 8, ["modelValue"]),
1405
- F("div", Ee, [
1406
- l.value > -1 ? (g(), w(t, {
1529
+ I("div", Qe, [
1530
+ l.value > -1 ? (g(), T(t, {
1407
1531
  key: 0,
1408
1532
  class: "flex-1",
1409
1533
  variant: "secondary",
1410
1534
  label: "Delete",
1411
1535
  onclick: () => c(l.value)
1412
- }, null, 8, ["onclick"])) : k("", !0),
1536
+ }, null, 8, ["onclick"])) : N("", !0),
1413
1537
  v(t, {
1414
1538
  type: "submit",
1415
1539
  class: "flex-1",
@@ -1422,7 +1546,7 @@ const te = /* @__PURE__ */ N({
1422
1546
  }, 512);
1423
1547
  };
1424
1548
  }
1425
- }), He = { class: "flex items-center" }, ze = { class: "w-[260px] self-start" }, Qe = { class: "flex-1" }, Je = /* @__PURE__ */ N({
1549
+ }), We = { class: "flex items-center" }, Xe = { class: "w-[260px] self-start" }, Ze = { class: "flex-1" }, ea = /* @__PURE__ */ k({
1426
1550
  __name: "QrGateway",
1427
1551
  props: {
1428
1552
  terminal: {
@@ -1434,41 +1558,41 @@ const te = /* @__PURE__ */ N({
1434
1558
  required: !0
1435
1559
  }
1436
1560
  },
1437
- setup(I) {
1561
+ setup(F) {
1438
1562
  var m;
1439
- const d = I, a = [
1563
+ const d = F, a = [
1440
1564
  {
1441
1565
  label: "PromptPay",
1442
1566
  value: "promptpay",
1443
- render: je,
1444
- region: [V.F_COUNTRY.enum.TH]
1567
+ render: Je,
1568
+ region: [C.F_COUNTRY.enum.TH]
1445
1569
  }
1446
- ], b = R(() => a.find((c) => c.value === e.value)), l = j().currentCountry, o = R(() => a.filter((c) => !c.region || c.region.includes(l.value ?? V.F_COUNTRY.enum.MY))), { gatewayTab: e } = E({
1447
- gatewayTab: (m = o.value[0]) == null ? void 0 : m.value
1570
+ ], _ = R(() => a.find((c) => c.value === e.value)), l = j().currentCountry, r = R(() => a.filter((c) => !c.region || c.region.includes(l.value ?? C.F_COUNTRY.enum.MY))), { gatewayTab: e } = E({
1571
+ gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
1448
1572
  });
1449
1573
  return (c, f) => {
1450
- var i;
1574
+ var u;
1451
1575
  const s = y("FmTabs");
1452
- return g(), U("div", He, [
1453
- F("div", ze, [
1576
+ return g(), V("div", We, [
1577
+ I("div", Xe, [
1454
1578
  v(s, {
1455
1579
  "model-value": S(e),
1456
1580
  "onUpdate:modelValue": f[0] || (f[0] = (t) => B(e) ? e.value = t : null),
1457
1581
  class: "mb-6",
1458
1582
  vertical: !0,
1459
- items: o.value
1583
+ items: r.value
1460
1584
  }, null, 8, ["model-value", "items"])
1461
1585
  ]),
1462
- F("div", Qe, [
1463
- S(e) ? (g(), w(Y((i = b.value) == null ? void 0 : i.render), L(K({ key: 0 }, {
1586
+ I("div", Ze, [
1587
+ S(e) ? (g(), T(Y((u = _.value) == null ? void 0 : u.render), L(K({ key: 0 }, {
1464
1588
  terminal: d.terminal,
1465
1589
  onUpdate: d.onUpdate
1466
- })), null, 16)) : k("", !0)
1590
+ })), null, 16)) : N("", !0)
1467
1591
  ])
1468
1592
  ]);
1469
1593
  };
1470
1594
  }
1471
- }), ia = /* @__PURE__ */ N({
1595
+ }), da = /* @__PURE__ */ k({
1472
1596
  __name: "TerminalSetting",
1473
1597
  props: {
1474
1598
  terminalId: {
@@ -1476,14 +1600,14 @@ const te = /* @__PURE__ */ N({
1476
1600
  required: !0
1477
1601
  }
1478
1602
  },
1479
- setup(I) {
1480
- const d = I, { tab: a } = E({
1603
+ setup(F) {
1604
+ const d = F, { tab: a } = E({
1481
1605
  tab: "information"
1482
- }), { isLoading: b, startAsyncCall: l } = H(!0), o = W(), e = Q(), m = _();
1606
+ }), { isLoading: _, startAsyncCall: l } = H(!0), r = W(), e = Q(), m = b();
1483
1607
  async function c(n) {
1484
1608
  l(async () => {
1485
1609
  try {
1486
- await D.updateById(
1610
+ await A.updateById(
1487
1611
  d.terminalId,
1488
1612
  {
1489
1613
  name: n.name,
@@ -1493,15 +1617,15 @@ const te = /* @__PURE__ */ N({
1493
1617
  ecrIntegrations: n.ecrIntegrations ?? [],
1494
1618
  qrIntegrations: n.qrIntegrations ?? []
1495
1619
  }
1496
- ), m.value = await D.readById(d.terminalId), e.open({
1620
+ ), m.value = await A.readById(d.terminalId), e.open({
1497
1621
  type: "success",
1498
1622
  message: "Terminal updated successfully"
1499
1623
  });
1500
- } catch (u) {
1624
+ } catch (i) {
1501
1625
  e.open({
1502
1626
  type: "error",
1503
1627
  title: "Error occurs when update terminal",
1504
- message: Z(u)
1628
+ message: Z(i)
1505
1629
  });
1506
1630
  }
1507
1631
  });
@@ -1530,50 +1654,50 @@ const te = /* @__PURE__ */ N({
1530
1654
  label: "ECR Gateway",
1531
1655
  value: "ecr",
1532
1656
  icon: "point_of_sale",
1533
- render: Ke,
1657
+ render: ze,
1534
1658
  onlyFor: ["POS", "KIOSK"]
1535
1659
  },
1536
1660
  {
1537
1661
  label: "QR Gateway",
1538
1662
  value: "qr",
1539
1663
  icon: "qr_code",
1540
- render: Je,
1664
+ render: ea,
1541
1665
  onlyFor: ["POS", "KIOSK"]
1542
1666
  }
1543
1667
  ];
1544
1668
  j().currentCountry;
1545
1669
  const s = R(() => {
1546
1670
  var n;
1547
- return (n = f.find((u) => u.value === a.value)) == null ? void 0 : n.render;
1671
+ return (n = f.find((i) => i.value === a.value)) == null ? void 0 : n.render;
1548
1672
  });
1549
- async function i() {
1673
+ async function u() {
1550
1674
  l(async () => {
1551
- m.value = await D.readById(d.terminalId);
1675
+ m.value = await A.readById(d.terminalId);
1552
1676
  });
1553
1677
  }
1554
1678
  const t = R(() => f.filter((n) => {
1555
- var u;
1556
- return !n.onlyFor || n.onlyFor.includes(((u = m.value) == null ? void 0 : u.deviceType) ?? "");
1679
+ var i;
1680
+ return !n.onlyFor || n.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
1557
1681
  }));
1558
- return M(i), (n, u) => {
1559
- var x, r;
1682
+ return M(u), (n, i) => {
1683
+ var x, o;
1560
1684
  const p = y("FmTabs");
1561
- return g(), w(X, {
1562
- title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(r = m.value) == null ? void 0 : r._id})`,
1563
- loading: S(b),
1564
- onBack: S(o).back
1685
+ return g(), T(X, {
1686
+ title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(o = m.value) == null ? void 0 : o._id})`,
1687
+ loading: S(_),
1688
+ onBack: S(r).back
1565
1689
  }, {
1566
- default: q(() => [
1690
+ default: h(() => [
1567
1691
  v(p, {
1568
1692
  "model-value": S(a),
1569
- "onUpdate:modelValue": u[0] || (u[0] = (T) => B(a) ? a.value = T : null),
1693
+ "onUpdate:modelValue": i[0] || (i[0] = (w) => B(a) ? a.value = w : null),
1570
1694
  class: "mb-6",
1571
1695
  items: t.value
1572
1696
  }, null, 8, ["model-value", "items"]),
1573
- S(a) ? (g(), w(Y(s.value), L(K({ key: 0 }, {
1697
+ S(a) ? (g(), T(Y(s.value), L(K({ key: 0 }, {
1574
1698
  terminal: m.value,
1575
1699
  onUpdate: c
1576
- })), null, 16)) : k("", !0)
1700
+ })), null, 16)) : N("", !0)
1577
1701
  ]),
1578
1702
  _: 1
1579
1703
  }, 8, ["title", "loading", "onBack"]);
@@ -1581,5 +1705,5 @@ const te = /* @__PURE__ */ N({
1581
1705
  }
1582
1706
  });
1583
1707
  export {
1584
- ia as default
1708
+ da as default
1585
1709
  };