@feedmepos/mf-payment 1.7.4-dev → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-B5sqVL7d.js → Actions.vue_vue_type_script_setup_true_lang-BkGPt33y.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-B2sVLkI5.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DpcPn8f2.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D_hGHpb0.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CiPlezXr.js} +2 -2
  4. package/dist/{Chargeback-CtYYjuEB.js → Chargeback-BFUlbL_7.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BW-Gu-nZ.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BRY4cO_d.js} +1 -1
  6. package/dist/{OnboardForm-CIFQEBec.js → OnboardForm-DnwPql96.js} +5 -5
  7. package/dist/{OnboardForm-IRLkWmoI.js → OnboardForm-DyOPX1_d.js} +5 -5
  8. package/dist/{OnboardSubmission-C9M8t5vU.js → OnboardSubmission-DipKw5HF.js} +5 -5
  9. package/dist/{OnboardSubmission-CndjRMqy.js → OnboardSubmission-OZ0G4P_v.js} +2 -2
  10. package/dist/{PayoutAccount-BSXnemjX.js → PayoutAccount-BCb5cslo.js} +5 -5
  11. package/dist/PayoutAccount-CO2FdnnA.js +379 -0
  12. package/dist/{PayoutAccountSetting-CMkQNnDb.js → PayoutAccountSetting-Bb1CsUCE.js} +6 -6
  13. package/dist/{Restaurant-bpdNibYe.js → Restaurant-D1wUiImO.js} +4 -4
  14. package/dist/{RestaurantSetting-NbagQfTz.js → RestaurantSetting-BBO7DzsZ.js} +3 -3
  15. package/dist/{Settlement-D_yGtVZV.js → Settlement-DgRZ_Nto.js} +4 -4
  16. package/dist/{Settlement-TAZg6fCx.js → Settlement-t5A8S8TD.js} +3 -3
  17. package/dist/{SettlementTransactions-DHxHNPdw.js → SettlementTransactions-DdGLhtnr.js} +4 -4
  18. package/dist/{SettlementTransactions-ENvQRM79.js → SettlementTransactions-jfKNoOD9.js} +4 -4
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-B0FnrTJk.js → Status.vue_vue_type_script_setup_true_lang-JsBLH3uy.js} +1 -1
  20. package/dist/{Terminal-z_7q3GBS.js → Terminal-DaIv5qfl.js} +5 -5
  21. package/dist/{TerminalSetting-C5UmznfX.js → TerminalSetting-Dj2hBkl6.js} +521 -655
  22. package/dist/{Transaction-DNkc6es6.js → Transaction-B72LKIca.js} +10 -10
  23. package/dist/{Transaction-zDTbTtVx.js → Transaction-D0jWWDq5.js} +10 -10
  24. package/dist/{TransactionOld-Dm5PvUqF.js → TransactionOld-C64NrPVP.js} +7 -7
  25. package/dist/{app-ByzqMQl4.js → app-BgZUPWnM.js} +442 -451
  26. package/dist/app.js +1 -1
  27. package/dist/{assets-DXXXC51N.js → assets-9wAOs8uk.js} +1 -1
  28. package/dist/{grafana-U9VBVEEb.js → grafana-ezJaAbyu.js} +1 -1
  29. package/dist/{index-DmTVLzm7.js → index-0BEudnSQ.js} +5474 -5544
  30. package/dist/{index-D5SllCXu.js → index-BNO9fBiK.js} +1 -1
  31. package/dist/{index-COd-DEdZ.js → index-Bcy_Z6EV.js} +1 -1
  32. package/dist/{index-C6uyHnHe.js → index-CDuF6_qe.js} +1 -1
  33. package/dist/{index-DR01zn4-.js → index-Ctq35IJ6.js} +1 -1
  34. package/dist/{index-BZ6UOzJf.js → index-DK1fYXrj.js} +2 -2
  35. package/dist/{index-CbRKtmjR.js → index-DdxCxptg.js} +1 -1
  36. package/dist/{index-udIS6_YQ.js → index-RFJR12WX.js} +2 -2
  37. package/dist/{index-BMLgxxih.js → index-iLiwfepp.js} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-QSCHnqzi.js → index.vue_vue_type_script_setup_true_lang-DXlHx1NG.js} +1 -1
  39. package/dist/model/payout-account.d.ts +2 -2
  40. package/dist/package.json +2 -2
  41. package/dist/{payout-account-DlZkCb88.js → payout-account-RIgHcQp1.js} +3 -3
  42. package/dist/stores/payoutAccount.d.ts +22 -22
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +16 -20
  45. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -20
  46. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +16 -20
  47. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +22 -22
  48. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +44 -44
  49. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +44 -44
  50. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +22 -22
  51. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +22 -22
  52. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +44 -44
  53. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  54. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  55. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +4 -4
  56. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
  57. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  58. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +2 -2
  59. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  60. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  61. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +6 -6
  62. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +6 -6
  63. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +10 -10
  64. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +10 -10
  65. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +6 -6
  66. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  67. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +8 -8
  68. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +8 -8
  69. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +6 -6
  70. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +10 -10
  71. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +6 -6
  72. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +16 -16
  73. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  74. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
  75. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  76. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
  77. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  78. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  79. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
  80. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
  81. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
  82. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
  83. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
  84. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
  85. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
  86. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
  87. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
  88. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
  89. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +14 -14
  90. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
  91. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
  92. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  93. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +44 -44
  94. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
  95. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
  96. package/dist/views/settlement/SettlementTable.vue.d.ts +16 -16
  97. package/package.json +2 -2
  98. package/dist/PayoutAccount-CpuAa-qa.js +0 -399
  99. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +0 -140
@@ -1,16 +1,16 @@
1
- import { defineComponent as R, openBlock as y, createElementBlock as S, Fragment as P, createElementVNode as I, createTextVNode as j, toDisplayString as W, ref as b, resolveComponent as g, createVNode as v, createCommentVNode as V, unref as M, computed as k, isRef as Z, createBlock as F, resolveDynamicComponent as ee, normalizeProps as ae, mergeProps as te, watch as q, onBeforeUnmount as ve, toRef as A, onMounted as G, withCtx as O, renderList as B } from "vue";
2
- import { u as le, p as ye, e as U } from "./index-DmTVLzm7.js";
3
- import { useRouter as fe } from "vue-router";
4
- import { t as K } from "./index-BMLgxxih.js";
5
- import { _ as ge } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
- import { u as ne } from "./index-DR01zn4-.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-0BEudnSQ.js";
3
+ import { useRouter as ve } from "vue-router";
4
+ import { t as E } from "./index-iLiwfepp.js";
5
+ import { _ as ye } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
+ import { u as ne } from "./index-Ctq35IJ6.js";
7
7
  import { useSnackbar as se } from "@feedmepos/ui-library";
8
8
  import { u as X } from "./error-K1CakhA9.js";
9
- import { useI18n as be, useCoreStore as oe } from "@feedmepos/mf-common";
10
- import { o as Te } from "./index-udIS6_YQ.js";
11
- import { c as _e } from "./index-MdV54cWO.js";
12
- import { z as ue, a as ce } from "./validator-CTlVogBQ.js";
13
- const Ie = /* @__PURE__ */ R({
9
+ import { useI18n as fe, useCoreStore as oe } from "@feedmepos/mf-common";
10
+ import { o as ge } from "./index-RFJR12WX.js";
11
+ import { c as be } from "./index-MdV54cWO.js";
12
+ import { z as Te, a as _e } from "./validator-CTlVogBQ.js";
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 (p, a) => (y(), S(P, 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: {
@@ -43,7 +43,7 @@ const Ie = /* @__PURE__ */ R({
43
43
  }
44
44
  },
45
45
  setup(_) {
46
- const { isLoading: p, startAsyncCall: a } = le(!1), T = se(), l = b({
46
+ const { isLoading: d, startAsyncCall: a } = le(!1), T = se(), l = b({
47
47
  enable: !1,
48
48
  password: []
49
49
  }), r = _;
@@ -56,44 +56,44 @@ const Ie = /* @__PURE__ */ R({
56
56
  m.enable && Object.assign(m, {
57
57
  password: l.value.password.join("")
58
58
  });
59
- const c = await K.kioskModeRequest(r.terminal._id, m);
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 f = c;
63
- return c === "client_not_connected" && (f = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (f = 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: f
65
+ message: v
66
66
  });
67
67
  });
68
68
  }
69
69
  return (m, c) => {
70
- const f = g("FmSwitch"), u = g("FmPinField"), s = g("FmButton");
71
- return y(), S(P, null, [
72
- v(f, {
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 ? (y(), S("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",
89
- loading: M(p),
89
+ loading: h(d),
90
90
  onclick: e
91
91
  }, null, 8, ["loading"])
92
92
  ])
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: {
@@ -102,7 +102,7 @@ const Ie = /* @__PURE__ */ R({
102
102
  }
103
103
  },
104
104
  setup(_) {
105
- const { settingTab: p } = ne({
105
+ const { settingTab: d } = ne({
106
106
  settingTab: "kiosk_mode"
107
107
  }), a = [
108
108
  {
@@ -110,71 +110,71 @@ const Ie = /* @__PURE__ */ R({
110
110
  value: "kiosk_mode",
111
111
  render: xe
112
112
  }
113
- ], T = _, l = k(() => a.find((r) => r.value === p.value));
113
+ ], T = _, l = C(() => a.find((r) => r.value === d.value));
114
114
  return (r, e) => {
115
115
  var c;
116
116
  const m = g("FmTabs");
117
- return y(), S(P, 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, {
123
- "model-value": M(p),
124
- "onUpdate:modelValue": e[0] || (e[0] = (f) => Z(p) ? p.value = f : null),
122
+ y(m, {
123
+ "model-value": h(d),
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"]),
128
- M(p) ? (y(), F(ee((c = l.value) == null ? void 0 : c.render), ae(te({ key: 0 }, { terminal: T.terminal })), null, 16)) : V("", !0)
128
+ h(d) ? (f(), F(ee((c = l.value) == null ? void 0 : c.render), ae(te({ key: 0 }, { terminal: T.terminal })), null, 16)) : V("", !0)
129
129
  ], 64);
130
130
  };
131
131
  }
132
- }), Ce = 2e3, ke = 12e4, Ve = "Timed out waiting for the Tyro reader to sync. Please try again.";
133
- function Ue(_) {
134
- const { isLoading: p, startLoading: a, stopLoading: T } = le(!1), { t: l } = be(), r = se(), e = b(null), m = k(() => {
135
- var $, E;
136
- const C = ($ = _.value.gateways) == null ? void 0 : $.find(
137
- (D) => D.gateway === "Tyro"
132
+ }), ke = 2e3, Ce = 12e4, Ve = "Timed out waiting for the Tyro reader to sync. Please try again.";
133
+ function Se(_) {
134
+ const { isLoading: d, startLoading: a, stopLoading: T } = le(!1), { t: l } = fe(), r = se(), e = b(null), m = C(() => {
135
+ var D, B;
136
+ const k = (D = _.value.gateways) == null ? void 0 : D.find(
137
+ ($) => $.gateway === "Tyro"
138
138
  );
139
- return ((E = C == null ? void 0 : C.config) == null ? void 0 : E.uniqueId) || "";
140
- }), c = k(() => !!m.value), f = k(() => {
141
- var C;
142
- return ((C = e.value) == null ? void 0 : C.status) === "ready";
143
- }), u = k(() => {
144
- var C, $;
145
- return f.value && !!(($ = (C = e.value) == null ? void 0 : C.fields) != null && $.tyroLocationId) && !!_.value.deviceId && !c.value;
146
- }), s = k(() => !f.value && !c.value), t = k(
139
+ return ((B = k == null ? void 0 : k.config) == null ? void 0 : B.uniqueId) || "";
140
+ }), c = C(() => !!m.value), v = C(() => {
141
+ var k;
142
+ return ((k = e.value) == null ? void 0 : k.status) === "ready";
143
+ }), u = C(() => {
144
+ var k, D;
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
- ), o = k(() => c.value ? "Synced" : "Sync");
148
+ ), n = C(() => c.value ? "Synced" : "Sync");
149
149
  async function i() {
150
150
  if (!_.value.referenceId) {
151
151
  e.value = null;
152
152
  return;
153
153
  }
154
154
  try {
155
- const C = await Te.getByRestaurant(
155
+ const k = await ge.getByRestaurant(
156
156
  _.value.referenceId
157
157
  );
158
- e.value = C.find(
159
- ($) => $.type === ye.FdoOnboardType.enum.tyro
158
+ e.value = k.find(
159
+ (D) => D.type === me.FdoOnboardType.enum.tyro
160
160
  ) ?? null;
161
- } catch (C) {
161
+ } catch (k) {
162
162
  e.value = null, r.open({
163
163
  type: "error",
164
- message: X(C)
164
+ message: X(k)
165
165
  });
166
166
  }
167
167
  }
168
- const d = _e({
169
- intervalMs: Ce,
170
- timeoutMs: ke,
171
- onTick: async ({ isCurrentRun: C, stop: $ }) => {
168
+ const p = be({
169
+ intervalMs: ke,
170
+ timeoutMs: Ce,
171
+ onTick: async ({ isCurrentRun: k, stop: D }) => {
172
172
  var H, z;
173
- const E = await K.readById(_.value._id);
174
- if (!C())
173
+ const B = await E.readById(_.value._id);
174
+ if (!k())
175
175
  return;
176
- const D = (H = E.gateways) == null ? void 0 : H.find((Q) => Q.gateway === "Tyro");
177
- (D == null ? void 0 : D.gateway) === "Tyro" && ((z = D == null ? void 0 : D.config) != null && z.uniqueId) && ($({ invalidate: !1 }), T(), Object.assign(_.value, E), r.open({
176
+ const $ = (H = B.gateways) == null ? void 0 : H.find((Q) => Q.gateway === "Tyro");
177
+ ($ == null ? void 0 : $.gateway) === "Tyro" && ((z = $ == null ? void 0 : $.config) != null && z.uniqueId) && (D({ invalidate: !1 }), T(), Object.assign(_.value, B), r.open({
178
178
  type: "success",
179
179
  message: "Tyro reader created successfully"
180
180
  }));
@@ -185,20 +185,20 @@ function Ue(_) {
185
185
  message: Ve
186
186
  });
187
187
  },
188
- onError: (C) => {
188
+ onError: (k) => {
189
189
  T(), r.open({
190
190
  type: "error",
191
- message: X(C)
191
+ message: X(k)
192
192
  });
193
193
  }
194
- }), x = d.isPolling;
195
- function n() {
196
- d.stop(), T();
194
+ }), x = p.isPolling;
195
+ function o() {
196
+ p.stop(), T();
197
197
  }
198
198
  function w() {
199
- n(), a(), d.start();
199
+ o(), a(), p.start();
200
200
  }
201
- async function L() {
201
+ async function K() {
202
202
  if (!u.value) {
203
203
  r.open({
204
204
  type: "error",
@@ -207,11 +207,11 @@ function Ue(_) {
207
207
  return;
208
208
  }
209
209
  try {
210
- a(), await K.syncTyroReader(_.value._id), w();
211
- } catch (C) {
212
- n(), r.open({
210
+ a(), await E.syncTyroReader(_.value._id), w();
211
+ } catch (k) {
212
+ o(), r.open({
213
213
  type: "error",
214
- message: X(C)
214
+ message: X(k)
215
215
  });
216
216
  }
217
217
  }
@@ -221,23 +221,23 @@ function Ue(_) {
221
221
  await i();
222
222
  },
223
223
  { immediate: !0 }
224
- ), ve(() => {
225
- n();
224
+ ), pe(() => {
225
+ o();
226
226
  }), {
227
- isLoading: p,
227
+ isLoading: d,
228
228
  isPollingTyroReader: x,
229
229
  uniqueId: m,
230
230
  canSyncTyroReader: u,
231
231
  showTyroSyncPopover: s,
232
232
  tyroSyncPopoverMessage: t,
233
- tyroSyncButtonLabel: o,
234
- syncTyroReader: L
233
+ tyroSyncButtonLabel: n,
234
+ syncTyroReader: K
235
235
  };
236
236
  }
237
- const Se = {
237
+ const Ue = {
238
238
  key: 0,
239
239
  class: "text-sm text-gray-500"
240
- }, Re = { class: "flex mt-6 space-x-6" }, he = { class: "flex-1" }, Me = /* @__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: {
@@ -250,7 +250,7 @@ const Se = {
250
250
  }
251
251
  },
252
252
  setup(_) {
253
- const p = _, a = oe().currentCountry, T = [
253
+ const d = _, a = oe().currentCountry, T = [
254
254
  {
255
255
  label: "Fiuu Malaysia",
256
256
  value: "cc.feedme.payment.rms",
@@ -291,30 +291,30 @@ const Se = {
291
291
  gateway: "Tyro",
292
292
  region: U.F_COUNTRY.enum.AU
293
293
  }
294
- ], l = A(() => p.terminal), r = b(), e = b({
294
+ ], l = A(() => d.terminal), r = b(), e = b({
295
295
  packageId: "",
296
296
  uniqueId: "",
297
297
  developerId: "",
298
298
  isUat: !1
299
299
  }), m = () => {
300
300
  e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "", e.value.isUat = !1;
301
- }, c = k(() => T.filter((N) => N.region === a.value)), f = k(() => 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
- )), u = k(
303
+ )), u = C(
304
304
  () => {
305
305
  var N;
306
- return ((N = f.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,
310
310
  isPollingTyroReader: t,
311
- uniqueId: o,
311
+ uniqueId: n,
312
312
  canSyncTyroReader: i,
313
- showTyroSyncPopover: d,
313
+ showTyroSyncPopover: p,
314
314
  tyroSyncPopoverMessage: x,
315
- tyroSyncButtonLabel: n,
315
+ tyroSyncButtonLabel: o,
316
316
  syncTyroReader: w
317
- } = Ue(l), L = k(() => u.value ? "button" : "submit"), C = k(() => u.value ? n.value : "Save"), $ = k(() => u.value ? s.value : !1), E = k(() => u.value ? !i.value || t.value : !1), D = () => {
317
+ } = Se(l), K = C(() => u.value ? "button" : "submit"), k = C(() => u.value ? o.value : "Save"), D = C(() => u.value ? s.value : !1), B = C(() => u.value ? !i.value || t.value : !1), $ = () => {
318
318
  if (!l.value.gateways || l.value.gateways.length === 0)
319
319
  return m();
320
320
  const N = l.value.gateways[0];
@@ -340,23 +340,23 @@ const Se = {
340
340
  break;
341
341
  case "Softspace":
342
342
  case "Digio":
343
- const h = JSON.parse(N.config.uniqueId);
343
+ const S = JSON.parse(N.config.uniqueId);
344
344
  e.value = {
345
345
  packageId: N.config.packageId,
346
- uniqueId: h.uniqueId,
347
- developerId: h.developerId,
348
- isUat: h.isUat
346
+ uniqueId: S.uniqueId,
347
+ developerId: S.developerId,
348
+ isUat: S.isUat
349
349
  };
350
350
  return;
351
351
  }
352
352
  };
353
- q(l, D), G(D);
353
+ q(l, $), G($);
354
354
  async function H() {
355
- const N = f.value;
355
+ const N = v.value;
356
356
  if (!N)
357
357
  return;
358
- let h = e.value.uniqueId;
359
- N.isLegacy || (h = JSON.stringify({
358
+ let S = e.value.uniqueId;
359
+ N.isLegacy || (S = JSON.stringify({
360
360
  uniqueId: e.value.uniqueId,
361
361
  developerId: e.value.developerId,
362
362
  isUat: e.value.isUat
@@ -365,100 +365,100 @@ const Se = {
365
365
  gateway: N.gateway,
366
366
  config: {
367
367
  packageId: N.value,
368
- uniqueId: h
368
+ uniqueId: S
369
369
  }
370
370
  };
371
- (!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = re, await p.onUpdate(l.value);
371
+ (!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = re, await d.onUpdate(l.value);
372
372
  }
373
373
  async function z(N) {
374
- var h;
375
- (h = l.value.gateways) == null || h.splice(N, 1), p.onUpdate(l.value);
374
+ var S;
375
+ (S = l.value.gateways) == null || S.splice(N, 1), d.onUpdate(l.value);
376
376
  }
377
377
  function Q() {
378
378
  u.value && w();
379
379
  }
380
- return (N, h) => {
381
- const re = g("FmSelect"), J = g("FmTextField"), de = g("FmCheckbox"), ie = g("FmButton"), pe = g("FmTooltip"), me = g("FmForm");
382
- return y(), F(me, {
380
+ return (N, S) => {
381
+ const re = g("FmSelect"), J = g("FmTextField"), ue = g("FmCheckbox"), ie = g("FmButton"), ce = g("FmTooltip"), de = g("FmForm");
382
+ return f(), F(de, {
383
383
  ref: r.value,
384
384
  class: "flex flex-col gap-16 w-[500px]",
385
385
  onValidationSuccess: H
386
386
  }, {
387
387
  default: O(() => [
388
- v(re, {
388
+ y(re, {
389
389
  modelValue: e.value.packageId,
390
- "onUpdate:modelValue": h[0] || (h[0] = (Y) => e.value.packageId = Y),
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
- f.value ? (y(), S(P, { key: 0 }, [
395
- u.value ? (y(), F(J, {
394
+ v.value ? (f(), R(P, { key: 0 }, [
395
+ u.value ? (f(), F(J, {
396
396
  key: 0,
397
- "model-value": M(o),
397
+ "model-value": h(n),
398
398
  label: "Unique ID (Reader ID)",
399
399
  disabled: ""
400
- }, null, 8, ["model-value"])) : f.value && f.value.isLegacy ? (y(), S(P, { key: 1 }, [
401
- v(J, {
400
+ }, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (f(), R(P, { key: 1 }, [
401
+ y(J, {
402
402
  modelValue: e.value.uniqueId,
403
- "onUpdate:modelValue": h[1] || (h[1] = (Y) => e.value.uniqueId = Y),
403
+ "onUpdate:modelValue": S[1] || (S[1] = (L) => e.value.uniqueId = L),
404
404
  label: "Unique ID (TID)"
405
405
  }, null, 8, ["modelValue"]),
406
- f.value.isOutdated ? (y(), S("span", Se, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : V("", !0)
407
- ], 64)) : (y(), S(P, { key: 2 }, [
408
- v(J, {
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
409
  modelValue: e.value.developerId,
410
- "onUpdate:modelValue": h[2] || (h[2] = (Y) => e.value.developerId = Y),
410
+ "onUpdate:modelValue": S[2] || (S[2] = (L) => e.value.developerId = L),
411
411
  label: "Developer ID (MID)"
412
412
  }, null, 8, ["modelValue"]),
413
- v(J, {
413
+ y(J, {
414
414
  modelValue: e.value.uniqueId,
415
- "onUpdate:modelValue": h[3] || (h[3] = (Y) => e.value.uniqueId = Y),
415
+ "onUpdate:modelValue": S[3] || (S[3] = (L) => e.value.uniqueId = L),
416
416
  label: "Unique ID (TID)"
417
417
  }, null, 8, ["modelValue"]),
418
- v(de, {
418
+ y(ue, {
419
419
  modelValue: e.value.isUat,
420
- "onUpdate:modelValue": h[4] || (h[4] = (Y) => e.value.isUat = Y),
420
+ "onUpdate:modelValue": S[4] || (S[4] = (L) => e.value.isUat = L),
421
421
  label: "Is UAT (Test)",
422
422
  value: "1"
423
423
  }, null, 8, ["modelValue"])
424
424
  ], 64)),
425
425
  I("div", Re, [
426
- l.value.gateways && l.value.gateways.length > 0 ? (y(), F(ie, {
426
+ l.value.gateways && l.value.gateways.length > 0 ? (f(), F(ie, {
427
427
  key: 0,
428
428
  class: "flex-1",
429
429
  variant: "secondary",
430
430
  label: "Delete",
431
431
  onclick: () => z(0)
432
432
  }, null, 8, ["onclick"])) : V("", !0),
433
- u.value && M(d) && E.value ? (y(), F(pe, {
433
+ u.value && h(p) && B.value ? (f(), F(ce, {
434
434
  key: 1,
435
435
  class: "flex-1",
436
436
  variant: "plain",
437
437
  placement: "top",
438
- content: M(x)
438
+ content: h(x)
439
439
  }, {
440
440
  default: O(() => [
441
- I("div", he, [
442
- v(ie, {
443
- type: L.value,
441
+ I("div", Me, [
442
+ y(ie, {
443
+ type: K.value,
444
444
  class: "w-full",
445
445
  variant: "primary",
446
- loading: $.value,
447
- disabled: E.value,
448
- label: C.value,
446
+ loading: D.value,
447
+ disabled: B.value,
448
+ label: k.value,
449
449
  onClick: Q
450
450
  }, null, 8, ["type", "loading", "disabled", "label"])
451
451
  ])
452
452
  ]),
453
453
  _: 1
454
- }, 8, ["content"])) : (y(), F(ie, {
454
+ }, 8, ["content"])) : (f(), F(ie, {
455
455
  key: 2,
456
- type: L.value,
456
+ type: K.value,
457
457
  class: "flex-1",
458
458
  variant: "primary",
459
- loading: $.value,
460
- disabled: E.value,
461
- label: C.value,
459
+ loading: D.value,
460
+ disabled: B.value,
461
+ label: k.value,
462
462
  onClick: Q
463
463
  }, null, 8, ["type", "loading", "disabled", "label"]))
464
464
  ])
@@ -471,7 +471,7 @@ const Se = {
471
471
  }), Oe = {
472
472
  key: 0,
473
473
  class: "flex items-center justify-center min-h-[80vh]"
474
- }, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ R({
474
+ }, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ M({
475
475
  __name: "TerminalGateway",
476
476
  props: {
477
477
  terminal: {
@@ -484,38 +484,38 @@ const Se = {
484
484
  }
485
485
  },
486
486
  setup(_) {
487
- const { isLoading: p, startAsyncCall: a } = le(), T = _, l = A(() => T.terminal), r = b(), e = b(), m = b(-1), c = b({
487
+ const { isLoading: d, startAsyncCall: a } = le(), T = _, l = A(() => T.terminal), r = b(), e = b(), m = b(-1), c = b({
488
488
  terminalId: ""
489
- }), f = () => {
489
+ }), v = () => {
490
490
  c.value.terminalId = "", m.value = -1;
491
491
  }, u = () => {
492
492
  if (a(async () => {
493
- r.value = await K.getRestaurantTerminals(T.terminal.referenceId);
493
+ r.value = await E.getRestaurantTerminals(T.terminal.referenceId);
494
494
  }), !T.terminal.ecrs)
495
- return f();
496
- const o = T.terminal.ecrs.findIndex((d) => d && d.gateway && d.gateway === "FeedMe");
497
- if (o === -1)
498
- return f();
499
- m.value = o;
500
- const i = T.terminal.ecrs.at(o);
495
+ return v();
496
+ const n = T.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
497
+ if (n === -1)
498
+ return v();
499
+ m.value = n;
500
+ const i = T.terminal.ecrs.at(n);
501
501
  i.gateway === "FeedMe" && i.config && (c.value = {
502
502
  terminalId: i.config.terminalId
503
503
  });
504
504
  };
505
505
  q(l, u), G(u);
506
- const s = k(() => (r.value ?? []).map((o) => ({
507
- label: o.name ?? o._id,
508
- value: o._id
506
+ const s = C(() => (r.value ?? []).map((n) => ({
507
+ label: n.name ?? n._id,
508
+ value: n._id
509
509
  })));
510
- async function t(o) {
510
+ async function t(n) {
511
511
  var i;
512
- (i = T.terminal.ecrs) == null || i.splice(o, 1), T.onUpdate(T.terminal);
512
+ (i = T.terminal.ecrs) == null || i.splice(n, 1), T.onUpdate(T.terminal);
513
513
  }
514
- return (o, i) => {
515
- const d = g("FmCircularProgress"), x = g("FmSelect"), n = g("FmButton"), w = g("FmForm");
516
- return M(p) ? (y(), S("div", Oe, [
517
- v(d, { size: "xxl" })
518
- ])) : (y(), F(w, {
514
+ return (n, i) => {
515
+ const p = g("FmCircularProgress"), x = g("FmSelect"), o = g("FmButton"), w = g("FmForm");
516
+ return h(d) ? (f(), R("div", Oe, [
517
+ y(p, { size: "xxl" })
518
+ ])) : (f(), F(w, {
519
519
  key: 1,
520
520
  ref: e.value,
521
521
  class: "flex flex-col gap-16 w-[500px]",
@@ -524,22 +524,22 @@ const Se = {
524
524
  })
525
525
  }, {
526
526
  default: O(() => [
527
- v(x, {
527
+ y(x, {
528
528
  modelValue: c.value.terminalId,
529
- "onUpdate:modelValue": i[0] || (i[0] = (L) => c.value.terminalId = L),
529
+ "onUpdate:modelValue": i[0] || (i[0] = (K) => c.value.terminalId = K),
530
530
  label: "Terminal ID",
531
531
  items: s.value,
532
- rules: M(ue)(M(ce).string())
532
+ rules: h(Te)(h(_e).string())
533
533
  }, null, 8, ["modelValue", "items", "rules"]),
534
534
  I("div", Pe, [
535
- m.value > -1 ? (y(), F(n, {
535
+ m.value > -1 ? (f(), F(o, {
536
536
  key: 0,
537
537
  class: "flex-1",
538
538
  variant: "secondary",
539
539
  label: "Delete",
540
540
  onclick: () => t(m.value)
541
541
  }, null, 8, ["onclick"])) : V("", !0),
542
- v(n, {
542
+ y(o, {
543
543
  type: "submit",
544
544
  class: "flex-1",
545
545
  variant: "primary",
@@ -551,7 +551,7 @@ const Se = {
551
551
  }, 512));
552
552
  };
553
553
  }
554
- }), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ R({
554
+ }), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ M({
555
555
  __name: "GhlGateway",
556
556
  props: {
557
557
  terminal: {
@@ -564,7 +564,7 @@ const Se = {
564
564
  }
565
565
  },
566
566
  setup(_) {
567
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b({
567
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
568
568
  merchantId: "",
569
569
  terminalId: "",
570
570
  privateKey: ""
@@ -573,11 +573,11 @@ const Se = {
573
573
  }, m = () => {
574
574
  if (!a.value.ecrs)
575
575
  return e();
576
- const f = a.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
577
- if (f === -1)
576
+ const v = a.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
577
+ if (v === -1)
578
578
  return e();
579
- l.value = f;
580
- const u = a.value.ecrs.at(f);
579
+ l.value = v;
580
+ const u = a.value.ecrs.at(v);
581
581
  u.gateway === "Ghl" && u.config && (r.value = {
582
582
  merchantId: u.config.merchantId,
583
583
  terminalId: u.config.terminalId,
@@ -585,46 +585,46 @@ const Se = {
585
585
  });
586
586
  };
587
587
  q(a, m), G(m);
588
- async function c(f) {
588
+ async function c(v) {
589
589
  var u;
590
- (u = a.value.ecrs) == null || u.splice(f, 1), p.onUpdate(a.value);
590
+ (u = a.value.ecrs) == null || u.splice(v, 1), d.onUpdate(a.value);
591
591
  }
592
- return (f, u) => {
593
- const s = g("FmTextField"), t = g("FmTextarea"), o = g("FmButton"), i = g("FmForm");
594
- return y(), F(i, {
592
+ return (v, u) => {
593
+ const s = g("FmTextField"), t = g("FmTextarea"), n = g("FmButton"), i = g("FmForm");
594
+ return f(), F(i, {
595
595
  ref: T.value,
596
596
  class: "flex flex-col gap-16 w-[500px]",
597
597
  onValidationSuccess: u[3] || (u[3] = () => {
598
- 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 })), p.onUpdate(a.value);
598
+ 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);
599
599
  })
600
600
  }, {
601
601
  default: O(() => [
602
- v(s, {
602
+ y(s, {
603
603
  modelValue: r.value.merchantId,
604
- "onUpdate:modelValue": u[0] || (u[0] = (d) => r.value.merchantId = d),
604
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => r.value.merchantId = p),
605
605
  label: "Merchant ID"
606
606
  }, null, 8, ["modelValue"]),
607
- v(s, {
607
+ y(s, {
608
608
  modelValue: r.value.terminalId,
609
- "onUpdate:modelValue": u[1] || (u[1] = (d) => r.value.terminalId = d),
609
+ "onUpdate:modelValue": u[1] || (u[1] = (p) => r.value.terminalId = p),
610
610
  label: "Terminal ID"
611
611
  }, null, 8, ["modelValue"]),
612
- v(t, {
612
+ y(t, {
613
613
  modelValue: r.value.privateKey,
614
- "onUpdate:modelValue": u[2] || (u[2] = (d) => r.value.privateKey = d),
614
+ "onUpdate:modelValue": u[2] || (u[2] = (p) => r.value.privateKey = p),
615
615
  label: "Private Key",
616
616
  "label-mark": "optional",
617
617
  "label-info": "Default will use FeedMe Private Key"
618
618
  }, null, 8, ["modelValue"]),
619
619
  I("div", Ge, [
620
- l.value > -1 ? (y(), F(o, {
620
+ l.value > -1 ? (f(), F(n, {
621
621
  key: 0,
622
622
  class: "flex-1",
623
623
  variant: "secondary",
624
624
  label: "Delete",
625
625
  onclick: () => c(l.value)
626
626
  }, null, 8, ["onclick"])) : V("", !0),
627
- v(o, {
627
+ y(n, {
628
628
  type: "submit",
629
629
  class: "flex-1",
630
630
  variant: "primary",
@@ -636,7 +636,7 @@ const Se = {
636
636
  }, 512);
637
637
  };
638
638
  }
639
- }), $e = { class: "flex items-end" }, De = { 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({
640
640
  __name: "MaybankGateway",
641
641
  props: {
642
642
  terminal: {
@@ -649,7 +649,7 @@ const Se = {
649
649
  }
650
650
  },
651
651
  setup(_) {
652
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
652
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
653
653
  ip: "",
654
654
  receiptName: "",
655
655
  cardTypes: []
@@ -659,38 +659,38 @@ const Se = {
659
659
  var i;
660
660
  if (!a.value.ecrIntegrations)
661
661
  return m();
662
- const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Maybank");
662
+ const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Maybank");
663
663
  if (t === -1)
664
664
  return m();
665
665
  l.value = t;
666
- const o = s.at(t);
667
- o.gateway === "Maybank" && o.config && (e.value = {
668
- ip: o.config.ip ?? "",
669
- receiptName: o.receiptName ?? "",
670
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
666
+ const n = s.at(t);
667
+ n.gateway === "Maybank" && n.config && (e.value = {
668
+ ip: n.config.ip ?? "",
669
+ receiptName: n.receiptName ?? "",
670
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
671
671
  });
672
672
  };
673
673
  q(a, c), G(c);
674
- async function f(s) {
674
+ async function v(s) {
675
675
  var t;
676
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
676
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
677
677
  }
678
678
  async function u() {
679
679
  e.value.cardTypes.push(r.value), r.value = "";
680
680
  }
681
681
  return (s, t) => {
682
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
683
- return y(), F(x, {
682
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
683
+ return f(), F(x, {
684
684
  ref: T.value,
685
685
  class: "flex flex-col gap-16 w-[500px]",
686
686
  onValidationSuccess: t[3] || (t[3] = () => {
687
- var n, w;
687
+ var o, w;
688
688
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
689
689
  gateway: "Maybank",
690
690
  config: { ip: e.value.ip },
691
691
  receiptName: e.value.receiptName,
692
692
  dialogConfig: {
693
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
693
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
694
694
  cardTypes: e.value.cardTypes
695
695
  }
696
696
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -700,51 +700,51 @@ const Se = {
700
700
  dialogConfig: {
701
701
  cardTypes: e.value.cardTypes
702
702
  }
703
- })), p.onUpdate(a.value);
703
+ })), d.onUpdate(a.value);
704
704
  })
705
705
  }, {
706
706
  default: O(() => [
707
- v(o, {
707
+ y(n, {
708
708
  modelValue: e.value.ip,
709
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
709
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
710
710
  label: "IP Address"
711
711
  }, null, 8, ["modelValue"]),
712
- v(o, {
712
+ y(n, {
713
713
  modelValue: e.value.receiptName,
714
- "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
714
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
715
715
  label: "Receipt Payment Name",
716
716
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
717
717
  }, null, 8, ["modelValue"]),
718
- I("div", $e, [
719
- v(o, {
718
+ I("div", De, [
719
+ y(n, {
720
720
  modelValue: r.value,
721
- "onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
721
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
722
722
  label: "Fallback Card Types",
723
723
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
724
724
  }, null, 8, ["modelValue"]),
725
- v(i, {
725
+ y(i, {
726
726
  class: "ml-4",
727
727
  icon: "add",
728
728
  onClick: u
729
729
  })
730
730
  ]),
731
- I("div", De, [
732
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
733
- key: n,
734
- label: n,
731
+ I("div", $e, [
732
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
733
+ key: o,
734
+ label: o,
735
735
  removable: !0,
736
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
736
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
737
737
  }, null, 8, ["label", "onChipClosed"]))), 128))
738
738
  ]),
739
739
  I("div", Be, [
740
- l.value > -1 ? (y(), F(i, {
740
+ l.value > -1 ? (f(), F(i, {
741
741
  key: 0,
742
742
  class: "flex-1",
743
743
  variant: "secondary",
744
744
  label: "Delete",
745
- onclick: () => f(l.value)
745
+ onclick: () => v(l.value)
746
746
  }, null, 8, ["onclick"])) : V("", !0),
747
- v(i, {
747
+ y(i, {
748
748
  type: "submit",
749
749
  class: "flex-1",
750
750
  variant: "primary",
@@ -756,7 +756,7 @@ const Se = {
756
756
  }, 512);
757
757
  };
758
758
  }
759
- }), Ee = { class: "flex items-end" }, Ye = { 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({
760
760
  __name: "Maybank2Gateway",
761
761
  props: {
762
762
  terminal: {
@@ -769,7 +769,7 @@ const Se = {
769
769
  }
770
770
  },
771
771
  setup(_) {
772
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
772
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
773
773
  ip: "",
774
774
  receiptName: "",
775
775
  cardTypes: []
@@ -779,38 +779,38 @@ const Se = {
779
779
  var i;
780
780
  if (!a.value.ecrIntegrations)
781
781
  return m();
782
- const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Maybank2");
782
+ const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Maybank2");
783
783
  if (t === -1)
784
784
  return m();
785
785
  l.value = t;
786
- const o = s.at(t);
787
- o.gateway === "Maybank2" && o.config && (e.value = {
788
- ip: o.config.ip ?? "",
789
- receiptName: o.receiptName ?? "",
790
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
786
+ const n = s.at(t);
787
+ n.gateway === "Maybank2" && n.config && (e.value = {
788
+ ip: n.config.ip ?? "",
789
+ receiptName: n.receiptName ?? "",
790
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
791
791
  });
792
792
  };
793
793
  q(a, c), G(c);
794
- async function f(s) {
794
+ async function v(s) {
795
795
  var t;
796
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
796
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
797
797
  }
798
798
  async function u() {
799
799
  e.value.cardTypes.push(r.value), r.value = "";
800
800
  }
801
801
  return (s, t) => {
802
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
803
- return y(), F(x, {
802
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
803
+ return f(), F(x, {
804
804
  ref: T.value,
805
805
  class: "flex flex-col gap-16 w-[500px]",
806
806
  onValidationSuccess: t[3] || (t[3] = () => {
807
- var n, w;
807
+ var o, w;
808
808
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
809
809
  gateway: "Maybank2",
810
810
  config: { ip: e.value.ip },
811
811
  receiptName: e.value.receiptName,
812
812
  dialogConfig: {
813
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
813
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
814
814
  cardTypes: e.value.cardTypes
815
815
  }
816
816
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -820,51 +820,51 @@ const Se = {
820
820
  dialogConfig: {
821
821
  cardTypes: e.value.cardTypes
822
822
  }
823
- })), p.onUpdate(a.value);
823
+ })), d.onUpdate(a.value);
824
824
  })
825
825
  }, {
826
826
  default: O(() => [
827
- v(o, {
827
+ y(n, {
828
828
  modelValue: e.value.ip,
829
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
829
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
830
830
  label: "IP Address"
831
831
  }, null, 8, ["modelValue"]),
832
- v(o, {
832
+ y(n, {
833
833
  modelValue: e.value.receiptName,
834
- "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
834
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
835
835
  label: "Receipt Payment Name",
836
836
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
837
837
  }, null, 8, ["modelValue"]),
838
- I("div", Ee, [
839
- v(o, {
838
+ I("div", Ye, [
839
+ y(n, {
840
840
  modelValue: r.value,
841
- "onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
841
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
842
842
  label: "Fallback Card Types",
843
843
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
844
844
  }, null, 8, ["modelValue"]),
845
- v(i, {
845
+ y(i, {
846
846
  class: "ml-4",
847
847
  icon: "add",
848
848
  onClick: u
849
849
  })
850
850
  ]),
851
- I("div", Ye, [
852
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
853
- key: n,
854
- label: n,
851
+ I("div", Ee, [
852
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
853
+ key: o,
854
+ label: o,
855
855
  removable: !0,
856
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
856
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
857
857
  }, null, 8, ["label", "onChipClosed"]))), 128))
858
858
  ]),
859
859
  I("div", Ke, [
860
- l.value > -1 ? (y(), F(i, {
860
+ l.value > -1 ? (f(), F(i, {
861
861
  key: 0,
862
862
  class: "flex-1",
863
863
  variant: "secondary",
864
864
  label: "Delete",
865
- onclick: () => f(l.value)
865
+ onclick: () => v(l.value)
866
866
  }, null, 8, ["onclick"])) : V("", !0),
867
- v(i, {
867
+ y(i, {
868
868
  type: "submit",
869
869
  class: "flex-1",
870
870
  variant: "primary",
@@ -876,7 +876,7 @@ const Se = {
876
876
  }, 512);
877
877
  };
878
878
  }
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__ */ 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({
880
880
  __name: "Maybank3Gateway",
881
881
  props: {
882
882
  terminal: {
@@ -889,7 +889,7 @@ const Se = {
889
889
  }
890
890
  },
891
891
  setup(_) {
892
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
892
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
893
893
  receiptName: "",
894
894
  config: {},
895
895
  cardTypes: []
@@ -899,38 +899,38 @@ const Se = {
899
899
  var i;
900
900
  if (!a.value.ecrIntegrations)
901
901
  return m();
902
- const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Maybank3");
902
+ const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Maybank3");
903
903
  if (t === -1)
904
904
  return m();
905
905
  l.value = t;
906
- const o = s.at(t);
907
- o.gateway === "Maybank3" && o.config && (e.value = {
908
- config: o.config,
909
- receiptName: o.receiptName ?? "",
910
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
906
+ const n = s.at(t);
907
+ n.gateway === "Maybank3" && n.config && (e.value = {
908
+ config: n.config,
909
+ receiptName: n.receiptName ?? "",
910
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
911
911
  });
912
912
  };
913
913
  q(a, c), G(c);
914
- async function f(s) {
914
+ async function v(s) {
915
915
  var t;
916
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
916
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
917
917
  }
918
918
  async function u() {
919
919
  e.value.cardTypes.push(r.value), r.value = "";
920
920
  }
921
921
  return (s, t) => {
922
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
923
- return y(), F(x, {
922
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
923
+ return f(), F(x, {
924
924
  ref: T.value,
925
925
  class: "flex flex-col gap-16 w-[500px]",
926
926
  onValidationSuccess: t[2] || (t[2] = () => {
927
- var n, w;
927
+ var o, w;
928
928
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
929
929
  gateway: "Maybank3",
930
930
  config: e.value.config,
931
931
  receiptName: e.value.receiptName,
932
932
  dialogConfig: {
933
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
933
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
934
934
  cardTypes: e.value.cardTypes
935
935
  }
936
936
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -940,46 +940,46 @@ const Se = {
940
940
  dialogConfig: {
941
941
  cardTypes: e.value.cardTypes
942
942
  }
943
- })), p.onUpdate(a.value);
943
+ })), d.onUpdate(a.value);
944
944
  })
945
945
  }, {
946
946
  default: O(() => [
947
- v(o, {
947
+ y(n, {
948
948
  modelValue: e.value.receiptName,
949
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
949
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
950
950
  label: "Receipt Payment Name",
951
951
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
952
952
  }, null, 8, ["modelValue"]),
953
953
  I("div", He, [
954
- v(o, {
954
+ y(n, {
955
955
  modelValue: r.value,
956
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
956
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
957
957
  label: "Fallback Card Types",
958
958
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
959
959
  }, null, 8, ["modelValue"]),
960
- v(i, {
960
+ y(i, {
961
961
  class: "ml-4",
962
962
  icon: "add",
963
963
  onClick: u
964
964
  })
965
965
  ]),
966
966
  I("div", ze, [
967
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
968
- key: n,
969
- label: n,
967
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
968
+ key: o,
969
+ label: o,
970
970
  removable: !0,
971
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
971
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
972
972
  }, null, 8, ["label", "onChipClosed"]))), 128))
973
973
  ]),
974
974
  I("div", Qe, [
975
- l.value > -1 ? (y(), F(i, {
975
+ l.value > -1 ? (f(), F(i, {
976
976
  key: 0,
977
977
  class: "flex-1",
978
978
  variant: "secondary",
979
979
  label: "Delete",
980
- onclick: () => f(l.value)
980
+ onclick: () => v(l.value)
981
981
  }, null, 8, ["onclick"])) : V("", !0),
982
- v(i, {
982
+ y(i, {
983
983
  type: "submit",
984
984
  class: "flex-1",
985
985
  variant: "primary",
@@ -991,7 +991,7 @@ const Se = {
991
991
  }, 512);
992
992
  };
993
993
  }
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__ */ 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({
995
995
  __name: "NetsGateway",
996
996
  props: {
997
997
  terminal: {
@@ -1004,7 +1004,7 @@ const Se = {
1004
1004
  }
1005
1005
  },
1006
1006
  setup(_) {
1007
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
1007
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1008
1008
  ip: "",
1009
1009
  receiptName: "",
1010
1010
  cardTypes: []
@@ -1014,38 +1014,38 @@ const Se = {
1014
1014
  var i;
1015
1015
  if (!a.value.ecrIntegrations)
1016
1016
  return m();
1017
- const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Nets");
1017
+ const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Nets");
1018
1018
  if (t === -1)
1019
1019
  return m();
1020
1020
  l.value = t;
1021
- const o = s.at(t);
1022
- o.gateway === "Nets" && o.config && (e.value = {
1023
- ip: o.config.ip ?? "",
1024
- receiptName: o.receiptName ?? "",
1025
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1021
+ const n = s.at(t);
1022
+ n.gateway === "Nets" && n.config && (e.value = {
1023
+ ip: n.config.ip ?? "",
1024
+ receiptName: n.receiptName ?? "",
1025
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1026
1026
  });
1027
1027
  };
1028
1028
  q(a, c), G(c);
1029
- async function f(s) {
1029
+ async function v(s) {
1030
1030
  var t;
1031
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
1031
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1032
1032
  }
1033
1033
  async function u() {
1034
1034
  e.value.cardTypes.push(r.value), r.value = "";
1035
1035
  }
1036
1036
  return (s, t) => {
1037
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
1038
- return y(), F(x, {
1037
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1038
+ return f(), F(x, {
1039
1039
  ref: T.value,
1040
1040
  class: "flex flex-col gap-16 w-[500px]",
1041
1041
  onValidationSuccess: t[3] || (t[3] = () => {
1042
- var n, w;
1042
+ var o, w;
1043
1043
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1044
1044
  gateway: "Nets",
1045
1045
  config: { ip: e.value.ip },
1046
1046
  receiptName: e.value.receiptName,
1047
1047
  dialogConfig: {
1048
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
1048
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1049
1049
  cardTypes: e.value.cardTypes
1050
1050
  }
1051
1051
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1055,51 +1055,51 @@ const Se = {
1055
1055
  dialogConfig: {
1056
1056
  cardTypes: e.value.cardTypes
1057
1057
  }
1058
- })), p.onUpdate(a.value);
1058
+ })), d.onUpdate(a.value);
1059
1059
  })
1060
1060
  }, {
1061
1061
  default: O(() => [
1062
- v(o, {
1062
+ y(n, {
1063
1063
  modelValue: e.value.ip,
1064
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
1064
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
1065
1065
  label: "IP Address"
1066
1066
  }, null, 8, ["modelValue"]),
1067
- v(o, {
1067
+ y(n, {
1068
1068
  modelValue: e.value.receiptName,
1069
- "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
1069
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
1070
1070
  label: "Receipt Payment Name",
1071
1071
  "label-info": "Default receipt display will be 'TERMINAL_NETS'"
1072
1072
  }, null, 8, ["modelValue"]),
1073
1073
  I("div", We, [
1074
- v(o, {
1074
+ y(n, {
1075
1075
  modelValue: r.value,
1076
- "onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
1076
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
1077
1077
  label: "Fallback Card Types",
1078
1078
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1079
1079
  }, null, 8, ["modelValue"]),
1080
- v(i, {
1080
+ y(i, {
1081
1081
  class: "ml-4",
1082
1082
  icon: "add",
1083
1083
  onClick: u
1084
1084
  })
1085
1085
  ]),
1086
1086
  I("div", Xe, [
1087
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
1088
- key: n,
1089
- label: n,
1087
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1088
+ key: o,
1089
+ label: o,
1090
1090
  removable: !0,
1091
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
1091
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1092
1092
  }, null, 8, ["label", "onChipClosed"]))), 128))
1093
1093
  ]),
1094
1094
  I("div", Ze, [
1095
- l.value > -1 ? (y(), F(i, {
1095
+ l.value > -1 ? (f(), F(i, {
1096
1096
  key: 0,
1097
1097
  class: "flex-1",
1098
1098
  variant: "secondary",
1099
1099
  label: "Delete",
1100
- onclick: () => f(l.value)
1100
+ onclick: () => v(l.value)
1101
1101
  }, null, 8, ["onclick"])) : V("", !0),
1102
- v(i, {
1102
+ y(i, {
1103
1103
  type: "submit",
1104
1104
  class: "flex-1",
1105
1105
  variant: "primary",
@@ -1111,7 +1111,7 @@ const Se = {
1111
1111
  }, 512);
1112
1112
  };
1113
1113
  }
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__ */ 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({
1115
1115
  __name: "KBankGateway",
1116
1116
  props: {
1117
1117
  terminal: {
@@ -1124,7 +1124,7 @@ const Se = {
1124
1124
  }
1125
1125
  },
1126
1126
  setup(_) {
1127
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
1127
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1128
1128
  receiptName: "",
1129
1129
  cardTypes: []
1130
1130
  }), m = () => {
@@ -1133,37 +1133,37 @@ const Se = {
1133
1133
  var i;
1134
1134
  if (!a.value.ecrIntegrations)
1135
1135
  return m();
1136
- const s = a.value.ecrIntegrations, t = s.findIndex((d) => d && d.gateway && d.gateway === "Kbank");
1136
+ const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Kbank");
1137
1137
  if (t === -1)
1138
1138
  return m();
1139
1139
  l.value = t;
1140
- const o = s.at(t);
1141
- o.gateway === "Kbank" && o.config && (e.value = {
1142
- receiptName: o.receiptName ?? "",
1143
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1140
+ const n = s.at(t);
1141
+ n.gateway === "Kbank" && n.config && (e.value = {
1142
+ receiptName: n.receiptName ?? "",
1143
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1144
1144
  });
1145
1145
  };
1146
1146
  q(a, c), G(c);
1147
- async function f(s) {
1147
+ async function v(s) {
1148
1148
  var t;
1149
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
1149
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1150
1150
  }
1151
1151
  async function u() {
1152
1152
  e.value.cardTypes.push(r.value), r.value = "";
1153
1153
  }
1154
1154
  return (s, t) => {
1155
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
1156
- return y(), F(x, {
1155
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1156
+ return f(), F(x, {
1157
1157
  ref: T.value,
1158
1158
  class: "flex flex-col gap-16 w-[500px]",
1159
1159
  onValidationSuccess: t[2] || (t[2] = () => {
1160
- var n, w;
1160
+ var o, w;
1161
1161
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1162
1162
  gateway: "Kbank",
1163
1163
  config: {},
1164
1164
  receiptName: e.value.receiptName,
1165
1165
  dialogConfig: {
1166
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
1166
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1167
1167
  cardTypes: e.value.cardTypes
1168
1168
  }
1169
1169
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1173,46 +1173,46 @@ const Se = {
1173
1173
  dialogConfig: {
1174
1174
  cardTypes: e.value.cardTypes
1175
1175
  }
1176
- })), p.onUpdate(a.value);
1176
+ })), d.onUpdate(a.value);
1177
1177
  })
1178
1178
  }, {
1179
1179
  default: O(() => [
1180
- v(o, {
1180
+ y(n, {
1181
1181
  modelValue: e.value.receiptName,
1182
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
1182
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1183
1183
  label: "Receipt Payment Name",
1184
1184
  "label-info": "Default receipt display will be 'TERMINAL_KBANK'"
1185
1185
  }, null, 8, ["modelValue"]),
1186
1186
  I("div", aa, [
1187
- v(o, {
1187
+ y(n, {
1188
1188
  modelValue: r.value,
1189
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
1189
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1190
1190
  label: "Fallback Card Types",
1191
1191
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1192
1192
  }, null, 8, ["modelValue"]),
1193
- v(i, {
1193
+ y(i, {
1194
1194
  class: "ml-4",
1195
1195
  icon: "add",
1196
1196
  onClick: u
1197
1197
  })
1198
1198
  ]),
1199
1199
  I("div", ta, [
1200
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
1201
- key: n,
1202
- label: n,
1200
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1201
+ key: o,
1202
+ label: o,
1203
1203
  removable: !0,
1204
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
1204
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1205
1205
  }, null, 8, ["label", "onChipClosed"]))), 128))
1206
1206
  ]),
1207
1207
  I("div", la, [
1208
- l.value > -1 ? (y(), F(i, {
1208
+ l.value > -1 ? (f(), F(i, {
1209
1209
  key: 0,
1210
1210
  class: "flex-1",
1211
1211
  variant: "secondary",
1212
1212
  label: "Delete",
1213
- onclick: () => f(l.value)
1213
+ onclick: () => v(l.value)
1214
1214
  }, null, 8, ["onclick"])) : V("", !0),
1215
- v(i, {
1215
+ y(i, {
1216
1216
  type: "submit",
1217
1217
  class: "flex-1",
1218
1218
  variant: "primary",
@@ -1224,7 +1224,7 @@ const Se = {
1224
1224
  }, 512);
1225
1225
  };
1226
1226
  }
1227
- }), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */ R({
1227
+ }), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */ M({
1228
1228
  __name: "Ghl2Gateway",
1229
1229
  props: {
1230
1230
  terminal: {
@@ -1237,7 +1237,7 @@ const Se = {
1237
1237
  }
1238
1238
  },
1239
1239
  setup(_) {
1240
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b({
1240
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
1241
1241
  ip: "",
1242
1242
  receiptName: ""
1243
1243
  }), e = () => {
@@ -1245,24 +1245,24 @@ const Se = {
1245
1245
  }, m = () => {
1246
1246
  if (!a.value.ecrIntegrations)
1247
1247
  return e();
1248
- const f = a.value.ecrIntegrations, u = f.findIndex((t) => t && t.gateway && t.gateway === "Ghl2");
1248
+ const v = a.value.ecrIntegrations, u = v.findIndex((t) => t && t.gateway && t.gateway === "Ghl2");
1249
1249
  if (u === -1)
1250
1250
  return e();
1251
1251
  l.value = u;
1252
- const s = f.at(u);
1252
+ const s = v.at(u);
1253
1253
  s.gateway === "Ghl2" && s.config && (r.value = {
1254
1254
  ip: s.config.ip ?? "",
1255
1255
  receiptName: s.receiptName ?? ""
1256
1256
  });
1257
1257
  };
1258
1258
  q(a, m), G(m);
1259
- async function c(f) {
1259
+ async function c(v) {
1260
1260
  var u;
1261
- (u = a.value.ecrIntegrations) == null || u.splice(f, 1), p.onUpdate(a.value);
1261
+ (u = a.value.ecrIntegrations) == null || u.splice(v, 1), d.onUpdate(a.value);
1262
1262
  }
1263
- return (f, u) => {
1264
- const s = g("FmTextField"), t = g("FmButton"), o = g("FmForm");
1265
- return y(), F(o, {
1263
+ return (v, u) => {
1264
+ const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
1265
+ return f(), F(n, {
1266
1266
  ref: T.value,
1267
1267
  class: "flex flex-col gap-16 w-[500px]",
1268
1268
  onValidationSuccess: u[2] || (u[2] = () => {
@@ -1274,30 +1274,30 @@ const Se = {
1274
1274
  gateway: "Ghl2",
1275
1275
  config: { ip: r.value.ip },
1276
1276
  receiptName: r.value.receiptName
1277
- }), p.onUpdate(a.value);
1277
+ }), d.onUpdate(a.value);
1278
1278
  })
1279
1279
  }, {
1280
1280
  default: O(() => [
1281
- v(s, {
1281
+ y(s, {
1282
1282
  modelValue: r.value.ip,
1283
1283
  "onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.ip = i),
1284
1284
  label: "IP Address"
1285
1285
  }, null, 8, ["modelValue"]),
1286
- v(s, {
1286
+ y(s, {
1287
1287
  modelValue: r.value.receiptName,
1288
1288
  "onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
1289
1289
  label: "Receipt Payment Name",
1290
1290
  "label-info": "Default receipt display will be 'TERMINAL_GHL_2'"
1291
1291
  }, null, 8, ["modelValue"]),
1292
1292
  I("div", oa, [
1293
- l.value > -1 ? (y(), F(t, {
1293
+ l.value > -1 ? (f(), F(t, {
1294
1294
  key: 0,
1295
1295
  class: "flex-1",
1296
1296
  variant: "secondary",
1297
1297
  label: "Delete",
1298
1298
  onclick: () => c(l.value)
1299
1299
  }, null, 8, ["onclick"])) : V("", !0),
1300
- v(t, {
1300
+ y(t, {
1301
1301
  type: "submit",
1302
1302
  class: "flex-1",
1303
1303
  variant: "primary",
@@ -1309,7 +1309,7 @@ const Se = {
1309
1309
  }, 512);
1310
1310
  };
1311
1311
  }
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__ */ 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({
1313
1313
  __name: "Ghl3Gateway",
1314
1314
  props: {
1315
1315
  terminal: {
@@ -1322,7 +1322,7 @@ const Se = {
1322
1322
  }
1323
1323
  },
1324
1324
  setup(_) {
1325
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
1325
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1326
1326
  receiptName: "",
1327
1327
  config: {},
1328
1328
  cardTypes: []
@@ -1333,39 +1333,39 @@ const Se = {
1333
1333
  if (!a.value.ecrIntegrations)
1334
1334
  return m();
1335
1335
  const s = a.value.ecrIntegrations, t = s.findIndex(
1336
- (d) => d && d.gateway && d.gateway === "Ghl3"
1336
+ (p) => p && p.gateway && p.gateway === "Ghl3"
1337
1337
  );
1338
1338
  if (t === -1)
1339
1339
  return m();
1340
1340
  l.value = t;
1341
- const o = s.at(t);
1342
- o.gateway === "Ghl3" && o.config && (e.value = {
1343
- config: o.config,
1344
- receiptName: o.receiptName ?? "",
1345
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1341
+ const n = s.at(t);
1342
+ n.gateway === "Ghl3" && n.config && (e.value = {
1343
+ config: n.config,
1344
+ receiptName: n.receiptName ?? "",
1345
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1346
1346
  });
1347
1347
  };
1348
1348
  q(a, c), G(c);
1349
- async function f(s) {
1349
+ async function v(s) {
1350
1350
  var t;
1351
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
1351
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1352
1352
  }
1353
1353
  async function u() {
1354
1354
  e.value.cardTypes.push(r.value), r.value = "";
1355
1355
  }
1356
1356
  return (s, t) => {
1357
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
1358
- return y(), F(x, {
1357
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1358
+ return f(), F(x, {
1359
1359
  ref: T.value,
1360
1360
  class: "flex flex-col gap-16 w-[500px]",
1361
1361
  onValidationSuccess: t[2] || (t[2] = () => {
1362
- var n, w;
1362
+ var o, w;
1363
1363
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1364
1364
  gateway: "Ghl3",
1365
1365
  config: e.value.config,
1366
1366
  receiptName: e.value.receiptName,
1367
1367
  dialogConfig: {
1368
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
1368
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1369
1369
  cardTypes: e.value.cardTypes
1370
1370
  }
1371
1371
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1375,46 +1375,46 @@ const Se = {
1375
1375
  dialogConfig: {
1376
1376
  cardTypes: e.value.cardTypes
1377
1377
  }
1378
- })), p.onUpdate(a.value);
1378
+ })), d.onUpdate(a.value);
1379
1379
  })
1380
1380
  }, {
1381
1381
  default: O(() => [
1382
- v(o, {
1382
+ y(n, {
1383
1383
  modelValue: e.value.receiptName,
1384
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
1384
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1385
1385
  label: "Receipt Payment Name",
1386
1386
  "label-info": "Default receipt display will be 'TERMINAL_GHL'"
1387
1387
  }, null, 8, ["modelValue"]),
1388
1388
  I("div", ia, [
1389
- v(o, {
1389
+ y(n, {
1390
1390
  modelValue: r.value,
1391
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
1391
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1392
1392
  label: "Fallback Card Types",
1393
1393
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1394
1394
  }, null, 8, ["modelValue"]),
1395
- v(i, {
1395
+ y(i, {
1396
1396
  class: "ml-4",
1397
1397
  icon: "add",
1398
1398
  onClick: u
1399
1399
  })
1400
1400
  ]),
1401
1401
  I("div", sa, [
1402
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
1403
- key: n,
1404
- label: n,
1402
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1403
+ key: o,
1404
+ label: o,
1405
1405
  removable: !0,
1406
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
1406
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1407
1407
  }, null, 8, ["label", "onChipClosed"]))), 128))
1408
1408
  ]),
1409
1409
  I("div", ua, [
1410
- l.value > -1 ? (y(), F(i, {
1410
+ l.value > -1 ? (f(), F(i, {
1411
1411
  key: 0,
1412
1412
  class: "flex-1",
1413
1413
  variant: "secondary",
1414
1414
  label: "Delete",
1415
- onclick: () => f(l.value)
1415
+ onclick: () => v(l.value)
1416
1416
  }, null, 8, ["onclick"])) : V("", !0),
1417
- v(i, {
1417
+ y(i, {
1418
1418
  type: "submit",
1419
1419
  class: "flex-1",
1420
1420
  variant: "primary",
@@ -1426,7 +1426,7 @@ const Se = {
1426
1426
  }, 512);
1427
1427
  };
1428
1428
  }
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__ */ 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({
1430
1430
  __name: "HlbbGateway",
1431
1431
  props: {
1432
1432
  terminal: {
@@ -1439,7 +1439,7 @@ const Se = {
1439
1439
  }
1440
1440
  },
1441
1441
  setup(_) {
1442
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
1442
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1443
1443
  receiptName: "",
1444
1444
  config: {},
1445
1445
  cardTypes: []
@@ -1450,39 +1450,39 @@ const Se = {
1450
1450
  if (!a.value.ecrIntegrations)
1451
1451
  return m();
1452
1452
  const s = a.value.ecrIntegrations, t = s.findIndex(
1453
- (d) => d && d.gateway && d.gateway === "Hlbb"
1453
+ (p) => p && p.gateway && p.gateway === "Hlbb"
1454
1454
  );
1455
1455
  if (t === -1)
1456
1456
  return m();
1457
1457
  l.value = t;
1458
- const o = s.at(t);
1459
- o.gateway === "Hlbb" && o.config && (e.value = {
1460
- config: o.config,
1461
- receiptName: o.receiptName ?? "",
1462
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1458
+ const n = s.at(t);
1459
+ n.gateway === "Hlbb" && n.config && (e.value = {
1460
+ config: n.config,
1461
+ receiptName: n.receiptName ?? "",
1462
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1463
1463
  });
1464
1464
  };
1465
1465
  q(a, c), G(c);
1466
- async function f(s) {
1466
+ async function v(s) {
1467
1467
  var t;
1468
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
1468
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1469
1469
  }
1470
1470
  async function u() {
1471
1471
  e.value.cardTypes.push(r.value), r.value = "";
1472
1472
  }
1473
1473
  return (s, t) => {
1474
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
1475
- return y(), F(x, {
1474
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1475
+ return f(), F(x, {
1476
1476
  ref: T.value,
1477
1477
  class: "flex flex-col gap-16 w-[500px]",
1478
1478
  onValidationSuccess: t[2] || (t[2] = () => {
1479
- var n, w;
1479
+ var o, w;
1480
1480
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1481
1481
  gateway: "Hlbb",
1482
1482
  config: e.value.config,
1483
1483
  receiptName: e.value.receiptName,
1484
1484
  dialogConfig: {
1485
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
1485
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1486
1486
  cardTypes: e.value.cardTypes
1487
1487
  }
1488
1488
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1492,46 +1492,46 @@ const Se = {
1492
1492
  dialogConfig: {
1493
1493
  cardTypes: e.value.cardTypes
1494
1494
  }
1495
- })), p.onUpdate(a.value);
1495
+ })), d.onUpdate(a.value);
1496
1496
  })
1497
1497
  }, {
1498
1498
  default: O(() => [
1499
- v(o, {
1499
+ y(n, {
1500
1500
  modelValue: e.value.receiptName,
1501
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
1501
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1502
1502
  label: "Receipt Payment Name",
1503
1503
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
1504
1504
  }, null, 8, ["modelValue"]),
1505
1505
  I("div", da, [
1506
- v(o, {
1506
+ y(n, {
1507
1507
  modelValue: r.value,
1508
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
1508
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1509
1509
  label: "Fallback Card Types",
1510
1510
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1511
1511
  }, null, 8, ["modelValue"]),
1512
- v(i, {
1512
+ y(i, {
1513
1513
  class: "ml-4",
1514
1514
  icon: "add",
1515
1515
  onClick: u
1516
1516
  })
1517
1517
  ]),
1518
1518
  I("div", pa, [
1519
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
1520
- key: n,
1521
- label: n,
1519
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1520
+ key: o,
1521
+ label: o,
1522
1522
  removable: !0,
1523
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
1523
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1524
1524
  }, null, 8, ["label", "onChipClosed"]))), 128))
1525
1525
  ]),
1526
1526
  I("div", ma, [
1527
- l.value > -1 ? (y(), F(i, {
1527
+ l.value > -1 ? (f(), F(i, {
1528
1528
  key: 0,
1529
1529
  class: "flex-1",
1530
1530
  variant: "secondary",
1531
1531
  label: "Delete",
1532
- onclick: () => f(l.value)
1532
+ onclick: () => v(l.value)
1533
1533
  }, null, 8, ["onclick"])) : V("", !0),
1534
- v(i, {
1534
+ y(i, {
1535
1535
  type: "submit",
1536
1536
  class: "flex-1",
1537
1537
  variant: "primary",
@@ -1543,7 +1543,7 @@ const Se = {
1543
1543
  }, 512);
1544
1544
  };
1545
1545
  }
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__ */ 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({
1547
1547
  __name: "GlobalPaymentsGateway",
1548
1548
  props: {
1549
1549
  terminal: {
@@ -1556,7 +1556,7 @@ const Se = {
1556
1556
  }
1557
1557
  },
1558
1558
  setup(_) {
1559
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
1559
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1560
1560
  ip: "",
1561
1561
  receiptName: "",
1562
1562
  cardTypes: []
@@ -1567,39 +1567,39 @@ const Se = {
1567
1567
  if (!a.value.ecrIntegrations)
1568
1568
  return m();
1569
1569
  const s = a.value.ecrIntegrations, t = s.findIndex(
1570
- (d) => d && d.gateway && d.gateway === "GlobalPayments"
1570
+ (p) => p && p.gateway && p.gateway === "GlobalPayments"
1571
1571
  );
1572
1572
  if (t === -1)
1573
1573
  return m();
1574
1574
  l.value = t;
1575
- const o = s.at(t);
1576
- o.gateway === "GlobalPayments" && o.config && (e.value = {
1577
- ip: o.config.ip ?? "",
1578
- receiptName: o.receiptName ?? "",
1579
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1575
+ const n = s.at(t);
1576
+ n.gateway === "GlobalPayments" && n.config && (e.value = {
1577
+ ip: n.config.ip ?? "",
1578
+ receiptName: n.receiptName ?? "",
1579
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1580
1580
  });
1581
1581
  };
1582
1582
  q(a, c), G(c);
1583
- async function f(s) {
1583
+ async function v(s) {
1584
1584
  var t;
1585
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
1585
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1586
1586
  }
1587
1587
  async function u() {
1588
1588
  e.value.cardTypes.push(r.value), r.value = "";
1589
1589
  }
1590
1590
  return (s, t) => {
1591
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
1592
- return y(), F(x, {
1591
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1592
+ return f(), F(x, {
1593
1593
  ref: T.value,
1594
1594
  class: "flex flex-col gap-16 w-[500px]",
1595
1595
  onValidationSuccess: t[3] || (t[3] = () => {
1596
- var n, w;
1596
+ var o, w;
1597
1597
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1598
1598
  gateway: "GlobalPayments",
1599
1599
  config: { ip: e.value.ip },
1600
1600
  receiptName: e.value.receiptName,
1601
1601
  dialogConfig: {
1602
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
1602
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1603
1603
  cardTypes: e.value.cardTypes
1604
1604
  }
1605
1605
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1609,51 +1609,51 @@ const Se = {
1609
1609
  dialogConfig: {
1610
1610
  cardTypes: e.value.cardTypes
1611
1611
  }
1612
- })), p.onUpdate(a.value);
1612
+ })), d.onUpdate(a.value);
1613
1613
  })
1614
1614
  }, {
1615
1615
  default: O(() => [
1616
- v(o, {
1616
+ y(n, {
1617
1617
  modelValue: e.value.ip,
1618
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
1618
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
1619
1619
  label: "IP Address"
1620
1620
  }, null, 8, ["modelValue"]),
1621
- v(o, {
1621
+ y(n, {
1622
1622
  modelValue: e.value.receiptName,
1623
- "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
1623
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
1624
1624
  label: "Receipt Payment Name",
1625
1625
  "label-info": "Default receipt display will be 'TERMINAL_GP'"
1626
1626
  }, null, 8, ["modelValue"]),
1627
1627
  I("div", ya, [
1628
- v(o, {
1628
+ y(n, {
1629
1629
  modelValue: r.value,
1630
- "onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
1630
+ "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
1631
1631
  label: "Fallback Card Types",
1632
1632
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1633
1633
  }, null, 8, ["modelValue"]),
1634
- v(i, {
1634
+ y(i, {
1635
1635
  class: "ml-4",
1636
1636
  icon: "add",
1637
1637
  onClick: u
1638
1638
  })
1639
1639
  ]),
1640
1640
  I("div", fa, [
1641
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
1642
- key: n,
1643
- label: n,
1641
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1642
+ key: o,
1643
+ label: o,
1644
1644
  removable: !0,
1645
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
1645
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1646
1646
  }, null, 8, ["label", "onChipClosed"]))), 128))
1647
1647
  ]),
1648
1648
  I("div", ga, [
1649
- l.value > -1 ? (y(), F(i, {
1649
+ l.value > -1 ? (f(), F(i, {
1650
1650
  key: 0,
1651
1651
  class: "flex-1",
1652
1652
  variant: "secondary",
1653
1653
  label: "Delete",
1654
- onclick: () => f(l.value)
1654
+ onclick: () => v(l.value)
1655
1655
  }, null, 8, ["onclick"])) : V("", !0),
1656
- v(i, {
1656
+ y(i, {
1657
1657
  type: "submit",
1658
1658
  class: "flex-1",
1659
1659
  variant: "primary",
@@ -1665,7 +1665,7 @@ const Se = {
1665
1665
  }, 512);
1666
1666
  };
1667
1667
  }
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__ */ 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({
1669
1669
  __name: "OmaGateway",
1670
1670
  props: {
1671
1671
  terminal: {
@@ -1678,7 +1678,7 @@ const Se = {
1678
1678
  }
1679
1679
  },
1680
1680
  setup(_) {
1681
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
1681
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1682
1682
  receiptName: "",
1683
1683
  cardTypes: []
1684
1684
  }), m = () => {
@@ -1688,38 +1688,38 @@ const Se = {
1688
1688
  if (!a.value.ecrIntegrations)
1689
1689
  return m();
1690
1690
  const s = a.value.ecrIntegrations, t = s.findIndex(
1691
- (d) => d && d.gateway && d.gateway === "Oma"
1691
+ (p) => p && p.gateway && p.gateway === "Oma"
1692
1692
  );
1693
1693
  if (t === -1)
1694
1694
  return m();
1695
1695
  l.value = t;
1696
- const o = s.at(t);
1697
- o.gateway === "Oma" && o.config && (e.value = {
1698
- receiptName: o.receiptName ?? "",
1699
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1696
+ const n = s.at(t);
1697
+ n.gateway === "Oma" && n.config && (e.value = {
1698
+ receiptName: n.receiptName ?? "",
1699
+ cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1700
1700
  });
1701
1701
  };
1702
1702
  q(a, c), G(c);
1703
- async function f(s) {
1703
+ async function v(s) {
1704
1704
  var t;
1705
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
1705
+ (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1706
1706
  }
1707
1707
  async function u() {
1708
1708
  e.value.cardTypes.push(r.value), r.value = "";
1709
1709
  }
1710
1710
  return (s, t) => {
1711
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
1712
- return y(), F(x, {
1711
+ const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1712
+ return f(), F(x, {
1713
1713
  ref: T.value,
1714
1714
  class: "flex flex-col gap-16 w-[500px]",
1715
1715
  onValidationSuccess: t[2] || (t[2] = () => {
1716
- var n, w;
1716
+ var o, w;
1717
1717
  l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1718
1718
  gateway: "Oma",
1719
1719
  config: {},
1720
1720
  receiptName: e.value.receiptName,
1721
1721
  dialogConfig: {
1722
- ...(w = (n = a.value.ecrIntegrations) == null ? void 0 : n[l.value]) == null ? void 0 : w.dialogConfig,
1722
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1723
1723
  cardTypes: e.value.cardTypes
1724
1724
  }
1725
1725
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1729,46 +1729,46 @@ const Se = {
1729
1729
  dialogConfig: {
1730
1730
  cardTypes: e.value.cardTypes
1731
1731
  }
1732
- })), p.onUpdate(a.value);
1732
+ })), d.onUpdate(a.value);
1733
1733
  })
1734
1734
  }, {
1735
1735
  default: O(() => [
1736
- v(o, {
1736
+ y(n, {
1737
1737
  modelValue: e.value.receiptName,
1738
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
1738
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1739
1739
  label: "Receipt Payment Name",
1740
1740
  "label-info": "Default receipt display will be 'TERMINAL_OMA'"
1741
1741
  }, null, 8, ["modelValue"]),
1742
1742
  I("div", Ta, [
1743
- v(o, {
1743
+ y(n, {
1744
1744
  modelValue: r.value,
1745
- "onUpdate:modelValue": t[1] || (t[1] = (n) => r.value = n),
1745
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1746
1746
  label: "Fallback Card Types",
1747
1747
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1748
1748
  }, null, 8, ["modelValue"]),
1749
- v(i, {
1749
+ y(i, {
1750
1750
  class: "ml-4",
1751
1751
  icon: "add",
1752
1752
  onClick: u
1753
1753
  })
1754
1754
  ]),
1755
1755
  I("div", _a, [
1756
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
1757
- key: n,
1758
- label: n,
1756
+ (f(!0), R(P, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1757
+ key: o,
1758
+ label: o,
1759
1759
  removable: !0,
1760
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
1760
+ onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1761
1761
  }, null, 8, ["label", "onChipClosed"]))), 128))
1762
1762
  ]),
1763
1763
  I("div", Ia, [
1764
- l.value > -1 ? (y(), F(i, {
1764
+ l.value > -1 ? (f(), F(i, {
1765
1765
  key: 0,
1766
1766
  class: "flex-1",
1767
1767
  variant: "secondary",
1768
1768
  label: "Delete",
1769
- onclick: () => f(l.value)
1769
+ onclick: () => v(l.value)
1770
1770
  }, null, 8, ["onclick"])) : V("", !0),
1771
- v(i, {
1771
+ y(i, {
1772
1772
  type: "submit",
1773
1773
  class: "flex-1",
1774
1774
  variant: "primary",
@@ -1780,135 +1780,7 @@ const Se = {
1780
1780
  }, 512);
1781
1781
  };
1782
1782
  }
1783
- }), wa = { class: "flex items-end" }, xa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Na = { class: "flex mt-6 space-x-6" }, Ca = /* @__PURE__ */ R({
1784
- __name: "RevenueGateway",
1785
- props: {
1786
- terminal: {
1787
- type: Object,
1788
- required: !0
1789
- },
1790
- onUpdate: {
1791
- type: Function,
1792
- required: !0
1793
- }
1794
- },
1795
- setup(_) {
1796
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b(), e = b({
1797
- receiptName: "",
1798
- ip: "",
1799
- cardTypes: []
1800
- }), m = () => {
1801
- e.value.receiptName = "", e.value.ip = "", e.value.cardTypes = [], l.value = -1;
1802
- }, c = () => {
1803
- var i;
1804
- if (!a.value.ecrIntegrations)
1805
- return m();
1806
- const s = a.value.ecrIntegrations, t = s.findIndex(
1807
- (d) => d && d.gateway && d.gateway === "Revenue"
1808
- );
1809
- if (t === -1)
1810
- return m();
1811
- l.value = t;
1812
- const o = s.at(t);
1813
- o.gateway === "Revenue" && o.config && (e.value = {
1814
- receiptName: o.receiptName ?? "",
1815
- ip: o.config.ip ?? "",
1816
- cardTypes: ((i = o.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1817
- });
1818
- };
1819
- q(a, c), G(c);
1820
- async function f(s) {
1821
- var t;
1822
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), p.onUpdate(a.value);
1823
- }
1824
- async function u() {
1825
- e.value.cardTypes.push(r.value), r.value = "";
1826
- }
1827
- return (s, t) => {
1828
- const o = g("FmTextField"), i = g("FmButton"), d = g("FmChip"), x = g("FmForm");
1829
- return y(), F(x, {
1830
- ref: T.value,
1831
- class: "flex flex-col gap-16 w-[500px]",
1832
- onValidationSuccess: t[3] || (t[3] = () => {
1833
- var w, L;
1834
- const n = {
1835
- type: "tcp",
1836
- ip: e.value.ip
1837
- };
1838
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1839
- gateway: "Revenue",
1840
- config: n,
1841
- receiptName: e.value.receiptName,
1842
- dialogConfig: {
1843
- ...(L = (w = a.value.ecrIntegrations) == null ? void 0 : w[l.value]) == null ? void 0 : L.dialogConfig,
1844
- cardTypes: e.value.cardTypes
1845
- }
1846
- } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
1847
- gateway: "Revenue",
1848
- config: n,
1849
- receiptName: e.value.receiptName,
1850
- dialogConfig: {
1851
- cardTypes: e.value.cardTypes
1852
- }
1853
- })), p.onUpdate(a.value);
1854
- })
1855
- }, {
1856
- default: O(() => [
1857
- v(o, {
1858
- modelValue: e.value.ip,
1859
- "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
1860
- label: "Terminal IP Address",
1861
- "label-info": "Terminal WiFi IP with optional port, e.g. 192.168.1.50:8080 (defaults to port 8080)",
1862
- rules: M(ue)(M(ce).string().min(1))
1863
- }, null, 8, ["modelValue", "rules"]),
1864
- v(o, {
1865
- modelValue: e.value.receiptName,
1866
- "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
1867
- label: "Receipt Payment Name",
1868
- "label-info": "Default receipt display will be 'TERMINAL_REVENUE'"
1869
- }, null, 8, ["modelValue"]),
1870
- I("div", wa, [
1871
- v(o, {
1872
- modelValue: r.value,
1873
- "onUpdate:modelValue": t[2] || (t[2] = (n) => r.value = n),
1874
- label: "Fallback Card Types",
1875
- "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1876
- }, null, 8, ["modelValue"]),
1877
- v(i, {
1878
- class: "ml-4",
1879
- icon: "add",
1880
- onClick: u
1881
- })
1882
- ]),
1883
- I("div", xa, [
1884
- (y(!0), S(P, null, B(e.value.cardTypes, (n) => (y(), F(d, {
1885
- key: n,
1886
- label: n,
1887
- removable: !0,
1888
- onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(n), 1)
1889
- }, null, 8, ["label", "onChipClosed"]))), 128))
1890
- ]),
1891
- I("div", Na, [
1892
- l.value > -1 ? (y(), F(i, {
1893
- key: 0,
1894
- class: "flex-1",
1895
- variant: "secondary",
1896
- label: "Delete",
1897
- onclick: () => f(l.value)
1898
- }, null, 8, ["onclick"])) : V("", !0),
1899
- v(i, {
1900
- type: "submit",
1901
- class: "flex-1",
1902
- variant: "primary",
1903
- label: "Save"
1904
- })
1905
- ])
1906
- ]),
1907
- _: 1
1908
- }, 512);
1909
- };
1910
- }
1911
- }), ka = { class: "flex items-center" }, Va = { class: "w-[260px] self-start" }, Ua = { class: "flex-1" }, Sa = /* @__PURE__ */ R({
1783
+ }), wa = { class: "flex items-center" }, xa = { class: "w-[260px] self-start" }, Na = { class: "flex-1" }, ka = /* @__PURE__ */ M({
1912
1784
  __name: "EcrGateway",
1913
1785
  props: {
1914
1786
  terminal: {
@@ -1922,7 +1794,7 @@ const Se = {
1922
1794
  },
1923
1795
  setup(_) {
1924
1796
  var m;
1925
- const p = _, a = [
1797
+ const d = _, a = [
1926
1798
  {
1927
1799
  label: "FeedMe Terminal",
1928
1800
  value: "terminal",
@@ -1993,42 +1865,36 @@ const Se = {
1993
1865
  value: "oma",
1994
1866
  render: Fa,
1995
1867
  region: [U.F_COUNTRY.enum.PK]
1996
- },
1997
- {
1998
- label: "Revenue PBB Terminal",
1999
- value: "revenue",
2000
- render: Ca,
2001
- region: [U.F_COUNTRY.enum.MY]
2002
1868
  }
2003
- ], T = k(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = k(() => a.filter(
1869
+ ], T = C(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = C(() => a.filter(
2004
1870
  (c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY)
2005
1871
  )), { gatewayTab: e } = ne({
2006
1872
  gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
2007
1873
  });
2008
- return (c, f) => {
1874
+ return (c, v) => {
2009
1875
  var s;
2010
1876
  const u = g("FmTabs");
2011
- return y(), S("div", ka, [
2012
- I("div", Va, [
2013
- v(u, {
2014
- "model-value": M(e),
2015
- "onUpdate:modelValue": f[0] || (f[0] = (t) => Z(e) ? e.value = t : null),
1877
+ return f(), R("div", wa, [
1878
+ I("div", xa, [
1879
+ y(u, {
1880
+ "model-value": h(e),
1881
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => Z(e) ? e.value = t : null),
2016
1882
  class: "mb-6",
2017
1883
  vertical: !0,
2018
1884
  items: r.value,
2019
1885
  "show-more-at": Number.POSITIVE_INFINITY
2020
1886
  }, null, 8, ["model-value", "items", "show-more-at"])
2021
1887
  ]),
2022
- I("div", Ua, [
2023
- M(e) ? (y(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
2024
- terminal: p.terminal,
2025
- onUpdate: p.onUpdate
1888
+ I("div", Na, [
1889
+ h(e) ? (f(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
1890
+ terminal: d.terminal,
1891
+ onUpdate: d.onUpdate
2026
1892
  })), null, 16)) : V("", !0)
2027
1893
  ])
2028
1894
  ]);
2029
1895
  };
2030
1896
  }
2031
- }), Ra = { class: "flex mt-6 space-x-6" }, ha = /* @__PURE__ */ R({
1897
+ }), Ca = { class: "flex mt-6 space-x-6" }, Va = /* @__PURE__ */ M({
2032
1898
  __name: "PromptPayGateway",
2033
1899
  props: {
2034
1900
  terminal: {
@@ -2041,7 +1907,7 @@ const Se = {
2041
1907
  }
2042
1908
  },
2043
1909
  setup(_) {
2044
- const p = _, a = A(() => p.terminal), T = b(), l = b(-1), r = b({
1910
+ const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
2045
1911
  account: "",
2046
1912
  receiptName: ""
2047
1913
  }), e = () => {
@@ -2049,52 +1915,52 @@ const Se = {
2049
1915
  }, m = () => {
2050
1916
  if (!a.value.qrIntegrations)
2051
1917
  return e();
2052
- const f = a.value.qrIntegrations, u = f.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
1918
+ const v = a.value.qrIntegrations, u = v.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
2053
1919
  if (u === -1)
2054
1920
  return e();
2055
1921
  l.value = u;
2056
- const s = f.at(u);
1922
+ const s = v.at(u);
2057
1923
  s.gateway === "PROMPTPAY" && s.config && (r.value = {
2058
1924
  account: s.config.account ?? "",
2059
1925
  receiptName: s.receiptName ?? ""
2060
1926
  });
2061
1927
  };
2062
1928
  q(a, m), G(m);
2063
- async function c(f) {
1929
+ async function c(v) {
2064
1930
  var u;
2065
- (u = a.value.qrIntegrations) == null || u.splice(f, 1), p.onUpdate(a.value);
1931
+ (u = a.value.qrIntegrations) == null || u.splice(v, 1), d.onUpdate(a.value);
2066
1932
  }
2067
- return (f, u) => {
2068
- const s = g("FmTextField"), t = g("FmButton"), o = g("FmForm");
2069
- return y(), F(o, {
1933
+ return (v, u) => {
1934
+ const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
1935
+ return f(), F(n, {
2070
1936
  ref: T.value,
2071
1937
  class: "flex flex-col gap-16 w-[500px]",
2072
1938
  onValidationSuccess: u[2] || (u[2] = () => {
2073
- 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 })), p.onUpdate(a.value);
1939
+ 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);
2074
1940
  })
2075
1941
  }, {
2076
1942
  default: O(() => [
2077
- v(s, {
1943
+ y(s, {
2078
1944
  modelValue: r.value.account,
2079
1945
  "onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.account = i),
2080
1946
  label: "Thai Phone Number / Thai Naitonal ID",
2081
1947
  "label-info": "Thai Phone Number can be prefixed with 66 or 0 will be fine both will works well."
2082
1948
  }, null, 8, ["modelValue"]),
2083
- v(s, {
1949
+ y(s, {
2084
1950
  modelValue: r.value.receiptName,
2085
1951
  "onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
2086
1952
  label: "Receipt Payment Name",
2087
1953
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
2088
1954
  }, null, 8, ["modelValue"]),
2089
- I("div", Ra, [
2090
- l.value > -1 ? (y(), F(t, {
1955
+ I("div", Ca, [
1956
+ l.value > -1 ? (f(), F(t, {
2091
1957
  key: 0,
2092
1958
  class: "flex-1",
2093
1959
  variant: "secondary",
2094
1960
  label: "Delete",
2095
1961
  onclick: () => c(l.value)
2096
1962
  }, null, 8, ["onclick"])) : V("", !0),
2097
- v(t, {
1963
+ y(t, {
2098
1964
  type: "submit",
2099
1965
  class: "flex-1",
2100
1966
  variant: "primary",
@@ -2106,7 +1972,7 @@ const Se = {
2106
1972
  }, 512);
2107
1973
  };
2108
1974
  }
2109
- }), Ma = { class: "flex items-center" }, Oa = { class: "w-[260px] self-start" }, Pa = { class: "flex-1" }, qa = /* @__PURE__ */ R({
1975
+ }), Sa = { class: "flex items-center" }, Ua = { class: "w-[260px] self-start" }, Ra = { class: "flex-1" }, Ma = /* @__PURE__ */ M({
2110
1976
  __name: "QrGateway",
2111
1977
  props: {
2112
1978
  terminal: {
@@ -2120,39 +1986,39 @@ const Se = {
2120
1986
  },
2121
1987
  setup(_) {
2122
1988
  var m;
2123
- const p = _, a = [
1989
+ const d = _, a = [
2124
1990
  {
2125
1991
  label: "PromptPay",
2126
1992
  value: "promptpay",
2127
- render: ha,
1993
+ render: Va,
2128
1994
  region: [U.F_COUNTRY.enum.TH]
2129
1995
  }
2130
- ], T = k(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = k(() => a.filter((c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY))), { gatewayTab: e } = ne({
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({
2131
1997
  gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
2132
1998
  });
2133
- return (c, f) => {
1999
+ return (c, v) => {
2134
2000
  var s;
2135
2001
  const u = g("FmTabs");
2136
- return y(), S("div", Ma, [
2137
- I("div", Oa, [
2138
- v(u, {
2139
- "model-value": M(e),
2140
- "onUpdate:modelValue": f[0] || (f[0] = (t) => Z(e) ? e.value = t : null),
2002
+ return f(), R("div", Sa, [
2003
+ I("div", Ua, [
2004
+ y(u, {
2005
+ "model-value": h(e),
2006
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => Z(e) ? e.value = t : null),
2141
2007
  class: "mb-6",
2142
2008
  vertical: !0,
2143
2009
  items: r.value
2144
2010
  }, null, 8, ["model-value", "items"])
2145
2011
  ]),
2146
- I("div", Pa, [
2147
- M(e) ? (y(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
2148
- terminal: p.terminal,
2149
- onUpdate: p.onUpdate
2012
+ I("div", Ra, [
2013
+ h(e) ? (f(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
2014
+ terminal: d.terminal,
2015
+ onUpdate: d.onUpdate
2150
2016
  })), null, 16)) : V("", !0)
2151
2017
  ])
2152
2018
  ]);
2153
2019
  };
2154
2020
  }
2155
- }), Qa = /* @__PURE__ */ R({
2021
+ }), Ka = /* @__PURE__ */ M({
2156
2022
  __name: "TerminalSetting",
2157
2023
  props: {
2158
2024
  terminalId: {
@@ -2161,23 +2027,23 @@ const Se = {
2161
2027
  }
2162
2028
  },
2163
2029
  setup(_) {
2164
- const p = _, { tab: a } = ne({
2030
+ const d = _, { tab: a } = ne({
2165
2031
  tab: "information"
2166
- }), { isLoading: T, startAsyncCall: l } = le(!0), r = fe(), e = se(), m = b();
2167
- async function c(o) {
2032
+ }), { isLoading: T, startAsyncCall: l } = le(!0), r = ve(), e = se(), m = b();
2033
+ async function c(n) {
2168
2034
  l(async () => {
2169
2035
  try {
2170
- await K.updateById(
2171
- p.terminalId,
2036
+ await E.updateById(
2037
+ d.terminalId,
2172
2038
  {
2173
- name: o.name,
2174
- status: o.status,
2175
- ecrs: o.ecrs ?? [],
2176
- gateways: o.gateways ?? [],
2177
- ecrIntegrations: o.ecrIntegrations ?? [],
2178
- qrIntegrations: o.qrIntegrations ?? []
2039
+ name: n.name,
2040
+ status: n.status,
2041
+ ecrs: n.ecrs ?? [],
2042
+ gateways: n.gateways ?? [],
2043
+ ecrIntegrations: n.ecrIntegrations ?? [],
2044
+ qrIntegrations: n.qrIntegrations ?? []
2179
2045
  }
2180
- ), m.value = await K.readById(p.terminalId), e.open({
2046
+ ), m.value = await E.readById(d.terminalId), e.open({
2181
2047
  type: "success",
2182
2048
  message: "Terminal updated successfully"
2183
2049
  });
@@ -2190,7 +2056,7 @@ const Se = {
2190
2056
  }
2191
2057
  });
2192
2058
  }
2193
- const f = [
2059
+ const v = [
2194
2060
  {
2195
2061
  label: "Information",
2196
2062
  value: "information",
@@ -2208,53 +2074,53 @@ const Se = {
2208
2074
  label: "SoftPos Gateway",
2209
2075
  value: "softpos",
2210
2076
  icon: "payment",
2211
- render: Me
2077
+ render: he
2212
2078
  },
2213
2079
  {
2214
2080
  label: "ECR Gateway",
2215
2081
  value: "ecr",
2216
2082
  icon: "point_of_sale",
2217
- render: Sa,
2083
+ render: ka,
2218
2084
  onlyFor: ["POS", "KIOSK"]
2219
2085
  },
2220
2086
  {
2221
2087
  label: "QR Gateway",
2222
2088
  value: "qr",
2223
2089
  icon: "qr_code",
2224
- render: qa,
2090
+ render: Ma,
2225
2091
  onlyFor: ["POS", "KIOSK"]
2226
2092
  }
2227
2093
  ];
2228
2094
  oe().currentCountry;
2229
- const u = k(() => {
2230
- var o;
2231
- return (o = f.find((i) => i.value === a.value)) == null ? void 0 : o.render;
2095
+ const u = C(() => {
2096
+ var n;
2097
+ return (n = v.find((i) => i.value === a.value)) == null ? void 0 : n.render;
2232
2098
  });
2233
2099
  async function s() {
2234
2100
  l(async () => {
2235
- m.value = await K.readById(p.terminalId);
2101
+ m.value = await E.readById(d.terminalId);
2236
2102
  });
2237
2103
  }
2238
- const t = k(() => f.filter((o) => {
2104
+ const t = C(() => v.filter((n) => {
2239
2105
  var i;
2240
- return !o.onlyFor || o.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
2106
+ return !n.onlyFor || n.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
2241
2107
  }));
2242
- return G(s), (o, i) => {
2243
- var x, n;
2244
- const d = g("FmTabs");
2245
- return y(), F(ge, {
2246
- title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(n = m.value) == null ? void 0 : n._id})`,
2247
- loading: M(T),
2248
- onBack: M(r).back
2108
+ return G(s), (n, i) => {
2109
+ var x, o;
2110
+ const p = g("FmTabs");
2111
+ return f(), F(ye, {
2112
+ title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(o = m.value) == null ? void 0 : o._id})`,
2113
+ loading: h(T),
2114
+ onBack: h(r).back
2249
2115
  }, {
2250
2116
  default: O(() => [
2251
- v(d, {
2252
- "model-value": M(a),
2117
+ y(p, {
2118
+ "model-value": h(a),
2253
2119
  "onUpdate:modelValue": i[0] || (i[0] = (w) => Z(a) ? a.value = w : null),
2254
2120
  class: "mb-6",
2255
2121
  items: t.value
2256
2122
  }, null, 8, ["model-value", "items"]),
2257
- M(a) ? (y(), F(ee(u.value), ae(te({ key: 0 }, {
2123
+ h(a) ? (f(), F(ee(u.value), ae(te({ key: 0 }, {
2258
2124
  terminal: m.value,
2259
2125
  onUpdate: c
2260
2126
  })), null, 16)) : V("", !0)
@@ -2265,5 +2131,5 @@ const Se = {
2265
2131
  }
2266
2132
  });
2267
2133
  export {
2268
- Qa as default
2134
+ Ka as default
2269
2135
  };