@feedmepos/mf-payment 1.5.76-dev → 1.5.77

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 (119) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BBWoxxpE.js → Actions.vue_vue_type_script_setup_true_lang-D_PoXVbz.js} +1 -1
  2. package/dist/{Chargeback-7jLLq3BR.js → Chargeback-CzwL8PJv.js} +7 -7
  3. package/dist/{DateRangePicker.vue_vue_type_script_setup_true_lang-BNVnvrVY.js → DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js} +1 -1
  4. package/dist/DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js +94 -0
  5. package/dist/Forbidden-1aaq-Ilm.js +38 -0
  6. package/dist/{OnboardForm-D_FIXmPB.js → OnboardForm-C6LuVVyr.js} +6 -6
  7. package/dist/{OnboardForm-BN0ILsGU.js → OnboardForm-DZeWRzRD.js} +482 -554
  8. package/dist/{OnboardSubmission-CjObMzjr.js → OnboardSubmission-C2BYK2p1.js} +27 -27
  9. package/dist/OnboardSubmission-DvWwQFy6.js +222 -0
  10. package/dist/{PayoutAccount-BdfuqSaf.js → PayoutAccount-BMQZ5bOZ.js} +5 -5
  11. package/dist/{PayoutAccount-BpSQ2zQk.js → PayoutAccount-VbRd7cmv.js} +102 -101
  12. package/dist/PayoutAccountSetting-DzzABgzs.js +1765 -0
  13. package/dist/{Restaurant-BeasTCBN.js → Restaurant-4cO60aVP.js} +4 -4
  14. package/dist/{RestaurantSetting-DwRraruD.js → RestaurantSetting-Bvk0dnCI.js} +243 -325
  15. package/dist/{Settlement-CDQ4mC52.js → Settlement-CklF8pz7.js} +4 -4
  16. package/dist/{Settlement-CFfl02X_.js → Settlement-Cme1wMB-.js} +5 -5
  17. package/dist/{SettlementTransactions-Bt_v-aI6.js → SettlementTransactions-3F4EOoyz.js} +4 -4
  18. package/dist/{SettlementTransactions-BXeYz_iy.js → SettlementTransactions-DD285bSJ.js} +4 -4
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-Cq8LBhUh.js → Status.vue_vue_type_script_setup_true_lang-CUnCf_fx.js} +1 -1
  20. package/dist/{Terminal-Bdra-49r.js → Terminal-CK6ULW6U.js} +6 -6
  21. package/dist/{TerminalSetting-CzjDu4A_.js → TerminalSetting-CEQG3OV6.js} +712 -887
  22. package/dist/{TextInputDialog.vue_vue_type_script_setup_true_lang-D8W8_SO2.js → TextInputDialog.vue_vue_type_script_setup_true_lang-BvGYVca0.js} +1 -1
  23. package/dist/Transaction-D-Z3zRd7.js +517 -0
  24. package/dist/{Transaction-BG3RCxYv.js → Transaction-DjzWqLtN.js} +102 -99
  25. package/dist/TransactionOld-BXjA15Dd.js +314 -0
  26. package/dist/api/onboard-submission/index.d.ts +1 -3
  27. package/dist/api/terminal/index.d.ts +0 -1
  28. package/dist/app-CEy5Ojtg.js +7661 -0
  29. package/dist/app.d.ts +1 -96
  30. package/dist/app.js +4 -5
  31. package/dist/{assets-DhWdwOH7.js → assets-DIbq1BVX.js} +79 -81
  32. package/dist/{grafana-DJDzzJ9q.js → grafana-B0iQmK6j.js} +1 -1
  33. package/dist/{index-BbaDzW6B.js → index-B0L21J1j.js} +1 -1
  34. package/dist/{index-BpwmbLR4.js → index-BHCs_NnD.js} +1 -1
  35. package/dist/{index-C2X36PPH.js → index-BkQ7t3F6.js} +1 -1
  36. package/dist/{index-DugLDgA_.js → index-C80a7-Ks.js} +1 -1
  37. package/dist/{index-DgtoLJuf.js → index-C_Y5Sfc9.js} +1 -1
  38. package/dist/{index-BL_cPUhX.js → index-CnN_MV2-.js} +9 -24
  39. package/dist/{index-DqBHy3Py.js → index-CxnWUe_K.js} +3 -3
  40. package/dist/{index-DbCpzLPM.js → index-D0j1LZAB.js} +9264 -9427
  41. package/dist/index-XTdSN6CV.js +60 -0
  42. package/dist/{index.vue_vue_type_script_setup_true_lang-Bl9xUvgx.js → index.vue_vue_type_script_setup_true_lang-BksGFeSf.js} +1 -1
  43. package/dist/main.d.ts +0 -1
  44. package/dist/model/payout-account.d.ts +2 -2
  45. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DTcwQ5Qj.js → no-data-BRmo6XOO.js} +2 -92
  46. package/dist/package.json +3 -4
  47. package/dist/{payout-account-C0AWMnuX.js → payout-account-B7OikYn5.js} +37 -37
  48. package/dist/softspace-D9cEyOQT.js +4 -0
  49. package/dist/stores/payoutAccount.d.ts +34 -44
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/{validator-DzjyJnvv.js → validator-CTlVogBQ.js} +1 -0
  52. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +16 -16
  53. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +16 -16
  54. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +34 -44
  55. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +54 -64
  56. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +54 -64
  57. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +34 -44
  58. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +43 -44
  59. package/dist/views/admin/payout-account/tabs/SettlementEditDialog.vue.d.ts +56 -0
  60. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +54 -64
  61. package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
  62. package/dist/views/admin/payout-account/tabs/gateway/DigioGateway.vue.d.ts +2 -2
  63. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  64. package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +4 -4
  65. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +2 -2
  66. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  67. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  68. package/dist/views/admin/restaurant/tabs/gateway/AdyenGateway.vue.d.ts +4 -4
  69. package/dist/views/admin/restaurant/tabs/gateway/DigioGateway.vue.d.ts +4 -4
  70. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  71. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +4 -4
  72. package/dist/views/admin/restaurant/tabs/gateway/GrabGateway.vue.d.ts +4 -4
  73. package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +6 -6
  74. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +4 -4
  75. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +6 -6
  76. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +4 -4
  77. package/dist/views/admin/restaurant/tabs/gateway/SoftSpaceGateway.vue.d.ts +4 -6
  78. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +24 -24
  79. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +2 -2
  80. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +2 -2
  81. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +2 -2
  82. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +2 -2
  83. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +2 -2
  84. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +4 -4
  85. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +2 -2
  86. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +2 -2
  87. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +2 -2
  88. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +2 -2
  89. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +2 -2
  90. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +2 -2
  91. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +2 -2
  92. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +2 -2
  93. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +2 -2
  94. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +2 -2
  95. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +2 -2
  96. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +2 -2
  97. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +2 -2
  98. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +2 -2
  99. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +68 -88
  100. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +84 -84
  101. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +42 -42
  102. package/dist/views/settlement/SettlementTable.vue.d.ts +24 -24
  103. package/dist/views/transaction/TransactionTable.vue.d.ts +2 -2
  104. package/package.json +3 -4
  105. package/dist/OnboardSubmission-hDMAGRnx.js +0 -446
  106. package/dist/PayoutAccountSetting-Bj3ayBnW.js +0 -1502
  107. package/dist/Transaction-C3Le6Ig-.js +0 -507
  108. package/dist/TransactionOld-BXbn3NQy.js +0 -313
  109. package/dist/app-DEJ_hAvw.js +0 -9156
  110. package/dist/composable/async-poller/index.d.ts +0 -22
  111. package/dist/index-MdV54cWO.js +0 -58
  112. package/dist/index-RripfGVB.js +0 -63
  113. package/dist/tyro-BovmsorS.js +0 -5
  114. package/dist/utils/permission.d.ts +0 -1
  115. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +0 -81
  116. package/dist/views/admin/payout-account/tabs/gateway/TyroGateway.vue.d.ts +0 -39
  117. package/dist/views/admin/restaurant/tabs/gateway/MonetapayGateway.vue.d.ts +0 -48
  118. package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +0 -12
  119. package/dist/views/onboard-submission/tyro-submission-polling.d.ts +0 -27
@@ -1,16 +1,14 @@
1
- import { defineComponent as R, openBlock as f, createElementBlock as M, Fragment as G, createElementVNode as I, createTextVNode as j, toDisplayString as W, ref as b, resolveComponent as g, createVNode as v, createCommentVNode as V, unref as h, computed as C, isRef as Z, createBlock as F, resolveDynamicComponent as ee, normalizeProps as ae, mergeProps as te, watch as P, onBeforeUnmount as pe, toRef as A, onMounted as q, withCtx as O, renderList as Y } from "vue";
2
- import { u as le, p as me, e as U } from "./index-DbCpzLPM.js";
3
- import { useRouter as ve } from "vue-router";
4
- import { t as E } from "./index-RripfGVB.js";
5
- import { _ as ye } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
- import { u as ne } from "./index-C2X36PPH.js";
7
- import { useSnackbar as se } from "@feedmepos/ui-library";
8
- import { u as X } from "./error-K1CakhA9.js";
9
- import { useI18n as fe, useCoreStore as oe } from "@feedmepos/mf-common";
10
- import { o as ge } from "./index-BL_cPUhX.js";
11
- import { c as be } from "./index-MdV54cWO.js";
12
- import { z as Te, a as _e } from "./validator-DzjyJnvv.js";
13
- const Ie = /* @__PURE__ */ R({
1
+ import { defineComponent as C, openBlock as y, createElementBlock as V, Fragment as G, createElementVNode as _, createTextVNode as $, toDisplayString as D, ref as b, resolveComponent as f, createVNode as v, createCommentVNode as N, unref as h, computed as P, isRef as B, createBlock as I, resolveDynamicComponent as Y, normalizeProps as L, mergeProps as K, toRef as O, watch as q, onMounted as S, withCtx as M, renderList as R } from "vue";
2
+ import { u as H, e as k } from "./index-D0j1LZAB.js";
3
+ import { useRouter as W } from "vue-router";
4
+ import { t as A } from "./index-XTdSN6CV.js";
5
+ import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
+ import { u as E } from "./index-BkQ7t3F6.js";
7
+ import { useSnackbar as Q } from "@feedmepos/ui-library";
8
+ import { u as Z } from "./error-K1CakhA9.js";
9
+ import { useCoreStore as j } from "@feedmepos/mf-common";
10
+ import { z as ee, a as ae } from "./validator-CTlVogBQ.js";
11
+ const le = /* @__PURE__ */ C({
14
12
  __name: "Information",
15
13
  props: {
16
14
  terminal: {
@@ -18,23 +16,23 @@ const Ie = /* @__PURE__ */ R({
18
16
  required: !0
19
17
  }
20
18
  },
21
- setup(_) {
22
- return (d, a) => (f(), M(G, null, [
23
- a[0] || (a[0] = I("b", null, "Name", -1)),
24
- j(": " + W(_.terminal.name), 1),
25
- a[1] || (a[1] = I("br", null, null, -1)),
26
- a[2] || (a[2] = I("b", null, "Status", -1)),
27
- j(": " + W(_.terminal.status), 1),
28
- a[3] || (a[3] = I("br", null, null, -1)),
29
- a[4] || (a[4] = I("b", null, "Device ID", -1)),
30
- j(": " + W(_.terminal.deviceId ?? "-"), 1),
31
- a[5] || (a[5] = I("br", null, null, -1)),
32
- a[6] || (a[6] = I("b", null, "Device Type", -1)),
33
- j(": " + W(_.terminal.deviceType ?? "-"), 1),
34
- a[7] || (a[7] = I("br", null, null, -1))
19
+ setup(F) {
20
+ return (c, a) => (y(), V(G, null, [
21
+ a[0] || (a[0] = _("b", null, "Name", -1)),
22
+ $(": " + D(F.terminal.name), 1),
23
+ a[1] || (a[1] = _("br", null, null, -1)),
24
+ a[2] || (a[2] = _("b", null, "Status", -1)),
25
+ $(": " + D(F.terminal.status), 1),
26
+ a[3] || (a[3] = _("br", null, null, -1)),
27
+ a[4] || (a[4] = _("b", null, "Device ID", -1)),
28
+ $(": " + D(F.terminal.deviceId ?? "-"), 1),
29
+ a[5] || (a[5] = _("br", null, null, -1)),
30
+ a[6] || (a[6] = _("b", null, "Device Type", -1)),
31
+ $(": " + D(F.terminal.deviceType ?? "-"), 1),
32
+ a[7] || (a[7] = _("br", null, null, -1))
35
33
  ], 64));
36
34
  }
37
- }), Fe = { key: 0 }, we = { class: "mt-6 space-x-6" }, xe = /* @__PURE__ */ R({
35
+ }), te = { key: 0 }, ne = { class: "mt-6 space-x-6" }, oe = /* @__PURE__ */ C({
38
36
  __name: "KioskMode",
39
37
  props: {
40
38
  terminal: {
@@ -42,58 +40,58 @@ const Ie = /* @__PURE__ */ R({
42
40
  required: !0
43
41
  }
44
42
  },
45
- setup(_) {
46
- const { isLoading: d, startAsyncCall: a } = le(!1), T = se(), l = b({
43
+ setup(F) {
44
+ const { isLoading: c, startAsyncCall: a } = H(!1), T = Q(), n = b({
47
45
  enable: !1,
48
46
  password: []
49
- }), r = _;
47
+ }), r = F;
50
48
  function e() {
51
- return l.value.enable && l.value.password.filter((m) => !!m).length !== 6 ? T.open({
49
+ return n.value.enable && n.value.password.filter((m) => !!m).length !== 6 ? T.open({
52
50
  type: "error",
53
51
  message: "Unlock PIN is required when setting up kiosk mode for terminal."
54
52
  }) : a(async () => {
55
- const m = { enable: l.value.enable };
53
+ const m = { enable: n.value.enable };
56
54
  m.enable && Object.assign(m, {
57
- password: l.value.password.join("")
55
+ password: n.value.password.join("")
58
56
  });
59
- const c = await E.kioskModeRequest(r.terminal._id, m);
60
- if (c === "OK")
57
+ const d = await A.kioskModeRequest(r.terminal._id, m);
58
+ if (d === "OK")
61
59
  return T.open({ type: "info", message: "Kiosk mode applied successfully." });
62
- let y = c;
63
- return c === "client_not_connected" && (y = "Terminal not connected to the websocket server."), c.startsWith("terminal: ") && (y = c.replaceAll("terminal: ", "")), T.open({
60
+ let g = d;
61
+ return d === "client_not_connected" && (g = "Terminal not connected to the websocket server."), d.startsWith("terminal: ") && (g = d.replaceAll("terminal: ", "")), T.open({
64
62
  type: "error",
65
- message: y
63
+ message: g
66
64
  });
67
65
  });
68
66
  }
69
- return (m, c) => {
70
- const y = g("FmSwitch"), u = g("FmPinField"), s = g("FmButton");
71
- return f(), M(G, null, [
72
- v(y, {
73
- modelValue: l.value.enable,
74
- "onUpdate:modelValue": c[0] || (c[0] = (t) => l.value.enable = t),
67
+ return (m, d) => {
68
+ const g = f("FmSwitch"), s = f("FmPinField"), u = f("FmButton");
69
+ return y(), V(G, null, [
70
+ v(g, {
71
+ modelValue: n.value.enable,
72
+ "onUpdate:modelValue": d[0] || (d[0] = (l) => n.value.enable = l),
75
73
  label: "Enable Kiosk Mode?"
76
74
  }, null, 8, ["modelValue"]),
77
- l.value.enable ? (f(), M("div", Fe, [
78
- c[2] || (c[2] = I("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
79
- v(u, {
80
- modelValue: l.value.password,
81
- "onUpdate:modelValue": c[1] || (c[1] = (t) => l.value.password = t)
82
- }, null, 8, ["modelValue"])
83
- ])) : V("", !0),
84
- I("div", we, [
75
+ n.value.enable ? (y(), V("div", te, [
76
+ d[2] || (d[2] = _("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
85
77
  v(s, {
78
+ modelValue: n.value.password,
79
+ "onUpdate:modelValue": d[1] || (d[1] = (l) => n.value.password = l)
80
+ }, null, 8, ["modelValue"])
81
+ ])) : N("", !0),
82
+ _("div", ne, [
83
+ v(u, {
86
84
  variant: "primary",
87
85
  label: "Send",
88
86
  icon: "send",
89
- loading: h(d),
87
+ loading: h(c),
90
88
  onclick: e
91
89
  }, null, 8, ["loading"])
92
90
  ])
93
91
  ], 64);
94
92
  };
95
93
  }
96
- }), Ne = /* @__PURE__ */ R({
94
+ }), re = /* @__PURE__ */ C({
97
95
  __name: "SettingRequest",
98
96
  props: {
99
97
  terminal: {
@@ -101,143 +99,38 @@ const Ie = /* @__PURE__ */ R({
101
99
  required: !0
102
100
  }
103
101
  },
104
- setup(_) {
105
- const { settingTab: d } = ne({
102
+ setup(F) {
103
+ const { settingTab: c } = E({
106
104
  settingTab: "kiosk_mode"
107
105
  }), a = [
108
106
  {
109
107
  label: "Kiosk Mode",
110
108
  value: "kiosk_mode",
111
- render: xe
109
+ render: oe
112
110
  }
113
- ], T = _, l = C(() => a.find((r) => r.value === d.value));
111
+ ], T = F, n = P(() => a.find((r) => r.value === c.value));
114
112
  return (r, e) => {
115
- var c;
116
- const m = g("FmTabs");
117
- return f(), M(G, null, [
118
- e[1] || (e[1] = I("p", { className: "mt-1 my-6 text-gray-600" }, [
119
- I("b", null, "Note: "),
120
- j(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
113
+ var d;
114
+ const m = f("FmTabs");
115
+ return y(), V(G, null, [
116
+ e[1] || (e[1] = _("p", { className: "mt-1 my-6 text-gray-600" }, [
117
+ _("b", null, "Note: "),
118
+ $(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
121
119
  ], -1)),
122
120
  v(m, {
123
- "model-value": h(d),
124
- "onUpdate:modelValue": e[0] || (e[0] = (y) => Z(d) ? d.value = y : null),
121
+ "model-value": h(c),
122
+ "onUpdate:modelValue": e[0] || (e[0] = (g) => B(c) ? c.value = g : null),
125
123
  class: "mb-6",
126
124
  items: a
127
125
  }, null, 8, ["model-value"]),
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)
126
+ h(c) ? (y(), I(Y((d = n.value) == null ? void 0 : d.render), L(K({ key: 0 }, { terminal: T.terminal })), null, 16)) : N("", !0)
129
127
  ], 64);
130
128
  };
131
129
  }
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
- );
139
- return ((B = k == null ? void 0 : k.config) == null ? void 0 : B.uniqueId) || "";
140
- }), c = C(() => !!m.value), y = C(() => {
141
- var k;
142
- return ((k = e.value) == null ? void 0 : k.status) === "ready";
143
- }), u = C(() => {
144
- var k, D;
145
- return y.value && !!((D = (k = e.value) == null ? void 0 : k.fields) != null && D.tyroLocationId) && !!_.value.deviceId && !c.value;
146
- }), s = C(() => !y.value && !c.value), t = C(
147
- () => l("payment.onboard-submission.tyro.syncDisabledHint")
148
- ), n = C(() => c.value ? "Synced" : "Sync");
149
- async function i() {
150
- if (!_.value.referenceId) {
151
- e.value = null;
152
- return;
153
- }
154
- try {
155
- const k = await ge.getByRestaurant(
156
- _.value.referenceId
157
- );
158
- e.value = k.find(
159
- (D) => D.type === me.FdoOnboardType.enum.tyro
160
- ) ?? null;
161
- } catch (k) {
162
- e.value = null, r.open({
163
- type: "error",
164
- message: X(k)
165
- });
166
- }
167
- }
168
- const p = be({
169
- intervalMs: ke,
170
- timeoutMs: Ce,
171
- onTick: async ({ isCurrentRun: k, stop: D }) => {
172
- var H, z;
173
- const B = await E.readById(_.value._id);
174
- if (!k())
175
- return;
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
- type: "success",
179
- message: "Tyro reader created successfully"
180
- }));
181
- },
182
- onTimeout: () => {
183
- T(), r.open({
184
- type: "error",
185
- message: Ve
186
- });
187
- },
188
- onError: (k) => {
189
- T(), r.open({
190
- type: "error",
191
- message: X(k)
192
- });
193
- }
194
- }), x = p.isPolling;
195
- function o() {
196
- p.stop(), T();
197
- }
198
- function w() {
199
- o(), a(), p.start();
200
- }
201
- async function K() {
202
- if (!u.value) {
203
- r.open({
204
- type: "error",
205
- message: "Tyro reader sync is not available"
206
- });
207
- return;
208
- }
209
- try {
210
- a(), await E.syncTyroReader(_.value._id), w();
211
- } catch (k) {
212
- o(), r.open({
213
- type: "error",
214
- message: X(k)
215
- });
216
- }
217
- }
218
- return P(
219
- () => _.value.referenceId,
220
- async () => {
221
- await i();
222
- },
223
- { immediate: !0 }
224
- ), pe(() => {
225
- o();
226
- }), {
227
- isLoading: d,
228
- isPollingTyroReader: x,
229
- uniqueId: m,
230
- canSyncTyroReader: u,
231
- showTyroSyncPopover: s,
232
- tyroSyncPopoverMessage: t,
233
- tyroSyncButtonLabel: n,
234
- syncTyroReader: K
235
- };
236
- }
237
- const Ue = {
130
+ }), ie = {
238
131
  key: 0,
239
132
  class: "text-sm text-gray-500"
240
- }, Re = { class: "flex mt-6 space-x-6" }, Me = { class: "flex-1" }, he = /* @__PURE__ */ R({
133
+ }, ue = { class: "flex mt-6 space-x-6" }, se = /* @__PURE__ */ C({
241
134
  __name: "SoftposGateway",
242
135
  props: {
243
136
  terminal: {
@@ -249,12 +142,12 @@ const Ue = {
249
142
  required: !0
250
143
  }
251
144
  },
252
- setup(_) {
253
- const d = _, a = oe().currentCountry, T = [
145
+ setup(F) {
146
+ const c = F, a = j().currentCountry, T = [
254
147
  {
255
148
  label: "Fiuu Malaysia",
256
149
  value: "cc.feedme.payment.rms",
257
- region: U.F_COUNTRY.enum.MY,
150
+ region: k.F_COUNTRY.enum.MY,
258
151
  gateway: "Fiuu",
259
152
  isLegacy: !0,
260
153
  isOutdated: !0
@@ -262,14 +155,14 @@ const Ue = {
262
155
  {
263
156
  label: "Fiuu Malaysia V2",
264
157
  value: "cc.feedme.payment.fiuu_my",
265
- region: U.F_COUNTRY.enum.MY,
158
+ region: k.F_COUNTRY.enum.MY,
266
159
  gateway: "Fiuu",
267
160
  isLegacy: !0
268
161
  },
269
162
  {
270
163
  label: "Fiuu Singapore",
271
164
  value: "cc.feedme.payment.fiuu_sg",
272
- region: U.F_COUNTRY.enum.SG,
165
+ region: k.F_COUNTRY.enum.SG,
273
166
  gateway: "Fiuu",
274
167
  isLegacy: !0
275
168
  },
@@ -277,199 +170,131 @@ const Ue = {
277
170
  label: "Softspace Malaysia",
278
171
  value: "cc.feedme.payment.softspace_my",
279
172
  gateway: "Softspace",
280
- region: U.F_COUNTRY.enum.MY
173
+ region: k.F_COUNTRY.enum.MY
281
174
  },
282
175
  {
283
176
  label: "Digio Thailand",
284
177
  value: "cc.feedme.payment.digio_th",
285
178
  gateway: "Digio",
286
- region: U.F_COUNTRY.enum.TH
287
- },
288
- {
289
- label: "Tyro Australia",
290
- value: "cc.feedme.payment.tyro_au",
291
- gateway: "Tyro",
292
- region: U.F_COUNTRY.enum.AU
179
+ region: k.F_COUNTRY.enum.TH
293
180
  }
294
- ], l = A(() => d.terminal), r = b(), e = b({
181
+ ], n = O(() => c.terminal), r = b(), e = b({
295
182
  packageId: "",
296
183
  uniqueId: "",
297
184
  developerId: "",
298
185
  isUat: !1
299
186
  }), m = () => {
300
- e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "", e.value.isUat = !1;
301
- }, c = C(() => T.filter((N) => N.region === a.value)), y = C(() => c.value.find(
302
- (N) => N.value === e.value.packageId
303
- )), u = C(
304
- () => {
305
- var N;
306
- return ((N = y.value) == null ? void 0 : N.gateway) === "Tyro";
307
- }
308
- ), {
309
- isLoading: s,
310
- isPollingTyroReader: t,
311
- uniqueId: n,
312
- canSyncTyroReader: i,
313
- showTyroSyncPopover: p,
314
- tyroSyncPopoverMessage: x,
315
- tyroSyncButtonLabel: o,
316
- syncTyroReader: w
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
- if (!l.value.gateways || l.value.gateways.length === 0)
187
+ e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "";
188
+ }, d = () => {
189
+ if (!n.value.gateways || n.value.gateways.length === 0)
319
190
  return m();
320
- const N = l.value.gateways[0];
321
- if (!N.config)
191
+ const l = n.value.gateways[0];
192
+ if (!l.config)
322
193
  return m();
323
- if (N.gateway === "Tyro") {
324
- e.value = {
325
- packageId: N.config.packageId,
326
- uniqueId: N.config.uniqueId,
327
- developerId: "",
328
- isUat: !1
329
- };
330
- return;
331
- }
332
- switch (N.gateway) {
194
+ switch (l.gateway) {
333
195
  case "Fiuu":
334
196
  e.value = {
335
- packageId: N.config.packageId,
336
- uniqueId: N.config.uniqueId,
197
+ packageId: l.config.packageId,
198
+ uniqueId: l.config.uniqueId,
337
199
  developerId: "",
338
200
  isUat: !1
339
201
  };
340
202
  break;
341
203
  case "Softspace":
342
204
  case "Digio":
343
- const S = JSON.parse(N.config.uniqueId);
205
+ const t = JSON.parse(l.config.uniqueId);
344
206
  e.value = {
345
- packageId: N.config.packageId,
346
- uniqueId: S.uniqueId,
347
- developerId: S.developerId,
348
- isUat: S.isUat
207
+ packageId: l.config.packageId,
208
+ uniqueId: t.uniqueId,
209
+ developerId: t.developerId,
210
+ isUat: t.isUat
349
211
  };
350
212
  return;
351
213
  }
352
214
  };
353
- P(l, $), q($);
354
- async function H() {
355
- const N = y.value;
356
- if (!N)
357
- return;
358
- let S = e.value.uniqueId;
359
- N.isLegacy || (S = JSON.stringify({
360
- uniqueId: e.value.uniqueId,
361
- developerId: e.value.developerId,
362
- isUat: e.value.isUat
363
- }));
364
- const re = {
365
- gateway: N.gateway,
366
- config: {
367
- packageId: N.value,
368
- uniqueId: S
369
- }
370
- };
371
- (!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = re, await d.onUpdate(l.value);
372
- }
373
- async function z(N) {
374
- var S;
375
- (S = l.value.gateways) == null || S.splice(N, 1), d.onUpdate(l.value);
376
- }
377
- function Q() {
378
- u.value && w();
215
+ q(n, d), S(d);
216
+ async function g(l) {
217
+ var t;
218
+ (t = n.value.gateways) == null || t.splice(l, 1), c.onUpdate(n.value);
379
219
  }
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, {
220
+ const s = P(() => T.filter((l) => l.region === a.value)), u = P(() => s.value.find((l) => l.value === e.value.packageId));
221
+ return (l, t) => {
222
+ const i = f("FmSelect"), p = f("FmTextField"), x = f("FmCheckbox"), o = f("FmButton"), w = f("FmForm");
223
+ return y(), I(w, {
383
224
  ref: r.value,
384
225
  class: "flex flex-col gap-16 w-[500px]",
385
- onValidationSuccess: H
226
+ onValidationSuccess: t[5] || (t[5] = () => {
227
+ const U = u.value;
228
+ if (!U)
229
+ return;
230
+ let z = e.value.uniqueId;
231
+ U.isLegacy || (z = JSON.stringify({ uniqueId: e.value.uniqueId, developerId: e.value.developerId, isUat: e.value.isUat }));
232
+ const J = {
233
+ gateway: U.gateway,
234
+ config: {
235
+ packageId: U.value,
236
+ uniqueId: z
237
+ }
238
+ };
239
+ (!n.value.gateways || n.value.gateways.length > 1) && (n.value.gateways = []), n.value.gateways[0] = J, c.onUpdate(n.value);
240
+ })
386
241
  }, {
387
- default: O(() => [
388
- v(re, {
242
+ default: M(() => [
243
+ v(i, {
389
244
  modelValue: e.value.packageId,
390
- "onUpdate:modelValue": S[0] || (S[0] = (L) => e.value.packageId = L),
245
+ "onUpdate:modelValue": t[0] || (t[0] = (U) => e.value.packageId = U),
391
246
  label: "Package ID",
392
- items: c.value
247
+ items: s.value
393
248
  }, null, 8, ["modelValue", "items"]),
394
- u.value ? (f(), F(J, {
395
- key: 0,
396
- "model-value": h(n),
397
- label: "Unique ID (Reader ID)",
398
- disabled: ""
399
- }, null, 8, ["model-value"])) : y.value && y.value.isLegacy ? (f(), M(G, { key: 1 }, [
400
- v(J, {
249
+ u.value && u.value.isLegacy ? (y(), V(G, { key: 0 }, [
250
+ v(p, {
401
251
  modelValue: e.value.uniqueId,
402
- "onUpdate:modelValue": S[1] || (S[1] = (L) => e.value.uniqueId = L),
252
+ "onUpdate:modelValue": t[1] || (t[1] = (U) => e.value.uniqueId = U),
403
253
  label: "Unique ID (TID)"
404
254
  }, null, 8, ["modelValue"]),
405
- y.value.isOutdated ? (f(), M("span", Ue, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : V("", !0)
406
- ], 64)) : u.value ? V("", !0) : (f(), M(G, { key: 2 }, [
407
- v(J, {
255
+ u.value.isOutdated ? (y(), V("span", ie, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : N("", !0)
256
+ ], 64)) : (y(), V(G, { key: 1 }, [
257
+ v(p, {
408
258
  modelValue: e.value.developerId,
409
- "onUpdate:modelValue": S[2] || (S[2] = (L) => e.value.developerId = L),
259
+ "onUpdate:modelValue": t[2] || (t[2] = (U) => e.value.developerId = U),
410
260
  label: "Developer ID (MID)"
411
261
  }, null, 8, ["modelValue"]),
412
- v(J, {
262
+ v(p, {
413
263
  modelValue: e.value.uniqueId,
414
- "onUpdate:modelValue": S[3] || (S[3] = (L) => e.value.uniqueId = L),
264
+ "onUpdate:modelValue": t[3] || (t[3] = (U) => e.value.uniqueId = U),
415
265
  label: "Unique ID (TID)"
416
266
  }, null, 8, ["modelValue"]),
417
- v(ue, {
267
+ v(x, {
418
268
  modelValue: e.value.isUat,
419
- "onUpdate:modelValue": S[4] || (S[4] = (L) => e.value.isUat = L),
269
+ "onUpdate:modelValue": t[4] || (t[4] = (U) => e.value.isUat = U),
420
270
  label: "Is UAT (Test)",
421
271
  value: "1"
422
272
  }, null, 8, ["modelValue"])
423
273
  ], 64)),
424
- I("div", Re, [
425
- l.value.gateways && l.value.gateways.length > 0 ? (f(), F(ie, {
274
+ _("div", ue, [
275
+ n.value.gateways && n.value.gateways.length > 0 ? (y(), I(o, {
426
276
  key: 0,
427
277
  class: "flex-1",
428
278
  variant: "secondary",
429
279
  label: "Delete",
430
- onclick: () => z(0)
431
- }, null, 8, ["onclick"])) : V("", !0),
432
- u.value && h(p) && B.value ? (f(), F(ce, {
433
- key: 1,
434
- class: "flex-1",
435
- variant: "plain",
436
- placement: "top",
437
- content: h(x)
438
- }, {
439
- default: O(() => [
440
- I("div", Me, [
441
- v(ie, {
442
- type: K.value,
443
- class: "w-full",
444
- variant: "primary",
445
- loading: D.value,
446
- disabled: B.value,
447
- label: k.value,
448
- onClick: Q
449
- }, null, 8, ["type", "loading", "disabled", "label"])
450
- ])
451
- ]),
452
- _: 1
453
- }, 8, ["content"])) : (f(), F(ie, {
454
- key: 2,
455
- type: K.value,
280
+ onclick: () => g(0)
281
+ }, null, 8, ["onclick"])) : N("", !0),
282
+ v(o, {
283
+ type: "submit",
456
284
  class: "flex-1",
457
285
  variant: "primary",
458
- loading: D.value,
459
- disabled: B.value,
460
- label: k.value,
461
- onClick: Q
462
- }, null, 8, ["type", "loading", "disabled", "label"]))
286
+ label: "Save"
287
+ })
463
288
  ])
464
289
  ]),
465
290
  _: 1
466
291
  }, 512);
467
292
  };
468
293
  }
469
- }), Oe = {
294
+ }), ce = {
470
295
  key: 0,
471
296
  class: "flex items-center justify-center min-h-[80vh]"
472
- }, Pe = { class: "flex mt-6 space-x-6" }, qe = /* @__PURE__ */ R({
297
+ }, de = { class: "flex mt-6 space-x-6" }, pe = /* @__PURE__ */ C({
473
298
  __name: "TerminalGateway",
474
299
  props: {
475
300
  terminal: {
@@ -481,62 +306,62 @@ const Ue = {
481
306
  required: !0
482
307
  }
483
308
  },
484
- setup(_) {
485
- const { isLoading: d, startAsyncCall: a } = le(), T = _, l = A(() => T.terminal), r = b(), e = b(), m = b(-1), c = b({
309
+ setup(F) {
310
+ const { isLoading: c, startAsyncCall: a } = H(), T = F, n = O(() => T.terminal), r = b(), e = b(), m = b(-1), d = b({
486
311
  terminalId: ""
487
- }), y = () => {
488
- c.value.terminalId = "", m.value = -1;
489
- }, u = () => {
312
+ }), g = () => {
313
+ d.value.terminalId = "", m.value = -1;
314
+ }, s = () => {
490
315
  if (a(async () => {
491
- r.value = await E.getRestaurantTerminals(T.terminal.referenceId);
316
+ r.value = await A.getRestaurantTerminals(T.terminal.referenceId);
492
317
  }), !T.terminal.ecrs)
493
- return y();
494
- const n = T.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
495
- if (n === -1)
496
- return y();
497
- m.value = n;
498
- const i = T.terminal.ecrs.at(n);
499
- i.gateway === "FeedMe" && i.config && (c.value = {
318
+ return g();
319
+ const t = T.terminal.ecrs.findIndex((p) => p && p.gateway && p.gateway === "FeedMe");
320
+ if (t === -1)
321
+ return g();
322
+ m.value = t;
323
+ const i = T.terminal.ecrs.at(t);
324
+ i.gateway === "FeedMe" && i.config && (d.value = {
500
325
  terminalId: i.config.terminalId
501
326
  });
502
327
  };
503
- P(l, u), q(u);
504
- const s = C(() => (r.value ?? []).map((n) => ({
505
- label: n.name ?? n._id,
506
- value: n._id
328
+ q(n, s), S(s);
329
+ const u = P(() => (r.value ?? []).map((t) => ({
330
+ label: t.name ?? t._id,
331
+ value: t._id
507
332
  })));
508
- async function t(n) {
333
+ async function l(t) {
509
334
  var i;
510
- (i = T.terminal.ecrs) == null || i.splice(n, 1), T.onUpdate(T.terminal);
335
+ (i = T.terminal.ecrs) == null || i.splice(t, 1), T.onUpdate(T.terminal);
511
336
  }
512
- return (n, i) => {
513
- const p = g("FmCircularProgress"), x = g("FmSelect"), o = g("FmButton"), w = g("FmForm");
514
- return h(d) ? (f(), M("div", Oe, [
337
+ return (t, i) => {
338
+ const p = f("FmCircularProgress"), x = f("FmSelect"), o = f("FmButton"), w = f("FmForm");
339
+ return h(c) ? (y(), V("div", ce, [
515
340
  v(p, { size: "xxl" })
516
- ])) : (f(), F(w, {
341
+ ])) : (y(), I(w, {
517
342
  key: 1,
518
343
  ref: e.value,
519
344
  class: "flex flex-col gap-16 w-[500px]",
520
345
  onValidationSuccess: i[1] || (i[1] = () => {
521
- m.value > -1 ? l.value.ecrs[m.value] = { gateway: "FeedMe", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "FeedMe", config: c.value })), T.onUpdate(l.value);
346
+ m.value > -1 ? n.value.ecrs[m.value] = { gateway: "FeedMe", config: d.value } : (n.value.ecrs || (n.value.ecrs = []), n.value.ecrs.push({ gateway: "FeedMe", config: d.value })), T.onUpdate(n.value);
522
347
  })
523
348
  }, {
524
- default: O(() => [
349
+ default: M(() => [
525
350
  v(x, {
526
- modelValue: c.value.terminalId,
527
- "onUpdate:modelValue": i[0] || (i[0] = (K) => c.value.terminalId = K),
351
+ modelValue: d.value.terminalId,
352
+ "onUpdate:modelValue": i[0] || (i[0] = (U) => d.value.terminalId = U),
528
353
  label: "Terminal ID",
529
- items: s.value,
530
- rules: h(Te)(h(_e).string())
354
+ items: u.value,
355
+ rules: h(ee)(h(ae).string())
531
356
  }, null, 8, ["modelValue", "items", "rules"]),
532
- I("div", Pe, [
533
- m.value > -1 ? (f(), F(o, {
357
+ _("div", de, [
358
+ m.value > -1 ? (y(), I(o, {
534
359
  key: 0,
535
360
  class: "flex-1",
536
361
  variant: "secondary",
537
362
  label: "Delete",
538
- onclick: () => t(m.value)
539
- }, null, 8, ["onclick"])) : V("", !0),
363
+ onclick: () => l(m.value)
364
+ }, null, 8, ["onclick"])) : N("", !0),
540
365
  v(o, {
541
366
  type: "submit",
542
367
  class: "flex-1",
@@ -549,7 +374,7 @@ const Ue = {
549
374
  }, 512));
550
375
  };
551
376
  }
552
- }), Ge = { class: "flex mt-6 space-x-6" }, Ae = /* @__PURE__ */ R({
377
+ }), me = { class: "flex mt-6 space-x-6" }, ve = /* @__PURE__ */ C({
553
378
  __name: "GhlGateway",
554
379
  props: {
555
380
  terminal: {
@@ -561,68 +386,68 @@ const Ue = {
561
386
  required: !0
562
387
  }
563
388
  },
564
- setup(_) {
565
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
389
+ setup(F) {
390
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b({
566
391
  merchantId: "",
567
392
  terminalId: "",
568
393
  privateKey: ""
569
394
  }), e = () => {
570
- r.value.merchantId = "", r.value.terminalId = "", r.value.privateKey = "", l.value = -1;
395
+ r.value.merchantId = "", r.value.terminalId = "", r.value.privateKey = "", n.value = -1;
571
396
  }, m = () => {
572
397
  if (!a.value.ecrs)
573
398
  return e();
574
- const y = a.value.ecrs.findIndex((s) => s && s.gateway && s.gateway === "Ghl");
575
- if (y === -1)
399
+ const g = a.value.ecrs.findIndex((u) => u && u.gateway && u.gateway === "Ghl");
400
+ if (g === -1)
576
401
  return e();
577
- l.value = y;
578
- const u = a.value.ecrs.at(y);
579
- u.gateway === "Ghl" && u.config && (r.value = {
580
- merchantId: u.config.merchantId,
581
- terminalId: u.config.terminalId,
582
- privateKey: u.config.privateKey || ""
402
+ n.value = g;
403
+ const s = a.value.ecrs.at(g);
404
+ s.gateway === "Ghl" && s.config && (r.value = {
405
+ merchantId: s.config.merchantId,
406
+ terminalId: s.config.terminalId,
407
+ privateKey: s.config.privateKey || ""
583
408
  });
584
409
  };
585
- P(a, m), q(m);
586
- async function c(y) {
587
- var u;
588
- (u = a.value.ecrs) == null || u.splice(y, 1), d.onUpdate(a.value);
410
+ q(a, m), S(m);
411
+ async function d(g) {
412
+ var s;
413
+ (s = a.value.ecrs) == null || s.splice(g, 1), c.onUpdate(a.value);
589
414
  }
590
- return (y, u) => {
591
- const s = g("FmTextField"), t = g("FmTextarea"), n = g("FmButton"), i = g("FmForm");
592
- return f(), F(i, {
415
+ return (g, s) => {
416
+ const u = f("FmTextField"), l = f("FmTextarea"), t = f("FmButton"), i = f("FmForm");
417
+ return y(), I(i, {
593
418
  ref: T.value,
594
419
  class: "flex flex-col gap-16 w-[500px]",
595
- onValidationSuccess: u[3] || (u[3] = () => {
596
- 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);
420
+ onValidationSuccess: s[3] || (s[3] = () => {
421
+ n.value > -1 ? a.value.ecrs[n.value] = { gateway: "Ghl", config: r.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "Ghl", config: r.value })), c.onUpdate(a.value);
597
422
  })
598
423
  }, {
599
- default: O(() => [
600
- v(s, {
424
+ default: M(() => [
425
+ v(u, {
601
426
  modelValue: r.value.merchantId,
602
- "onUpdate:modelValue": u[0] || (u[0] = (p) => r.value.merchantId = p),
427
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => r.value.merchantId = p),
603
428
  label: "Merchant ID"
604
429
  }, null, 8, ["modelValue"]),
605
- v(s, {
430
+ v(u, {
606
431
  modelValue: r.value.terminalId,
607
- "onUpdate:modelValue": u[1] || (u[1] = (p) => r.value.terminalId = p),
432
+ "onUpdate:modelValue": s[1] || (s[1] = (p) => r.value.terminalId = p),
608
433
  label: "Terminal ID"
609
434
  }, null, 8, ["modelValue"]),
610
- v(t, {
435
+ v(l, {
611
436
  modelValue: r.value.privateKey,
612
- "onUpdate:modelValue": u[2] || (u[2] = (p) => r.value.privateKey = p),
437
+ "onUpdate:modelValue": s[2] || (s[2] = (p) => r.value.privateKey = p),
613
438
  label: "Private Key",
614
439
  "label-mark": "optional",
615
440
  "label-info": "Default will use FeedMe Private Key"
616
441
  }, null, 8, ["modelValue"]),
617
- I("div", Ge, [
618
- l.value > -1 ? (f(), F(n, {
442
+ _("div", me, [
443
+ n.value > -1 ? (y(), I(t, {
619
444
  key: 0,
620
445
  class: "flex-1",
621
446
  variant: "secondary",
622
447
  label: "Delete",
623
- onclick: () => c(l.value)
624
- }, null, 8, ["onclick"])) : V("", !0),
625
- v(n, {
448
+ onclick: () => d(n.value)
449
+ }, null, 8, ["onclick"])) : N("", !0),
450
+ v(t, {
626
451
  type: "submit",
627
452
  class: "flex-1",
628
453
  variant: "primary",
@@ -634,7 +459,7 @@ const Ue = {
634
459
  }, 512);
635
460
  };
636
461
  }
637
- }), De = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Be = { class: "flex mt-6 space-x-6" }, Le = /* @__PURE__ */ R({
462
+ }), fe = { class: "flex items-end" }, ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, ge = { class: "flex mt-6 space-x-6" }, be = /* @__PURE__ */ C({
638
463
  __name: "MaybankGateway",
639
464
  props: {
640
465
  terminal: {
@@ -646,49 +471,49 @@ const Ue = {
646
471
  required: !0
647
472
  }
648
473
  },
649
- setup(_) {
650
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
474
+ setup(F) {
475
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
651
476
  ip: "",
652
477
  receiptName: "",
653
478
  cardTypes: []
654
479
  }), m = () => {
655
- e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
656
- }, c = () => {
480
+ e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
481
+ }, d = () => {
657
482
  var i;
658
483
  if (!a.value.ecrIntegrations)
659
484
  return m();
660
- const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Maybank");
661
- if (t === -1)
485
+ const u = a.value.ecrIntegrations, l = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank");
486
+ if (l === -1)
662
487
  return m();
663
- l.value = t;
664
- const n = s.at(t);
665
- n.gateway === "Maybank" && n.config && (e.value = {
666
- ip: n.config.ip ?? "",
667
- receiptName: n.receiptName ?? "",
668
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
488
+ n.value = l;
489
+ const t = u.at(l);
490
+ t.gateway === "Maybank" && t.config && (e.value = {
491
+ ip: t.config.ip ?? "",
492
+ receiptName: t.receiptName ?? "",
493
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
669
494
  });
670
495
  };
671
- P(a, c), q(c);
672
- async function y(s) {
673
- var t;
674
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
496
+ q(a, d), S(d);
497
+ async function g(u) {
498
+ var l;
499
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
675
500
  }
676
- async function u() {
501
+ async function s() {
677
502
  e.value.cardTypes.push(r.value), r.value = "";
678
503
  }
679
- return (s, t) => {
680
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
681
- return f(), F(x, {
504
+ return (u, l) => {
505
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
506
+ return y(), I(x, {
682
507
  ref: T.value,
683
508
  class: "flex flex-col gap-16 w-[500px]",
684
- onValidationSuccess: t[3] || (t[3] = () => {
509
+ onValidationSuccess: l[3] || (l[3] = () => {
685
510
  var o, w;
686
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
511
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
687
512
  gateway: "Maybank",
688
513
  config: { ip: e.value.ip },
689
514
  receiptName: e.value.receiptName,
690
515
  dialogConfig: {
691
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
516
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
692
517
  cardTypes: e.value.cardTypes
693
518
  }
694
519
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -698,50 +523,50 @@ const Ue = {
698
523
  dialogConfig: {
699
524
  cardTypes: e.value.cardTypes
700
525
  }
701
- })), d.onUpdate(a.value);
526
+ })), c.onUpdate(a.value);
702
527
  })
703
528
  }, {
704
- default: O(() => [
705
- v(n, {
529
+ default: M(() => [
530
+ v(t, {
706
531
  modelValue: e.value.ip,
707
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
532
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.ip = o),
708
533
  label: "IP Address"
709
534
  }, null, 8, ["modelValue"]),
710
- v(n, {
535
+ v(t, {
711
536
  modelValue: e.value.receiptName,
712
- "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
537
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => e.value.receiptName = o),
713
538
  label: "Receipt Payment Name",
714
539
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
715
540
  }, null, 8, ["modelValue"]),
716
- I("div", De, [
717
- v(n, {
541
+ _("div", fe, [
542
+ v(t, {
718
543
  modelValue: r.value,
719
- "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
544
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => r.value = o),
720
545
  label: "Fallback Card Types",
721
546
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
722
547
  }, null, 8, ["modelValue"]),
723
548
  v(i, {
724
549
  class: "ml-4",
725
550
  icon: "add",
726
- onClick: u
551
+ onClick: s
727
552
  })
728
553
  ]),
729
- I("div", $e, [
730
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
554
+ _("div", ye, [
555
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
731
556
  key: o,
732
557
  label: o,
733
558
  removable: !0,
734
559
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
735
560
  }, null, 8, ["label", "onChipClosed"]))), 128))
736
561
  ]),
737
- I("div", Be, [
738
- l.value > -1 ? (f(), F(i, {
562
+ _("div", ge, [
563
+ n.value > -1 ? (y(), I(i, {
739
564
  key: 0,
740
565
  class: "flex-1",
741
566
  variant: "secondary",
742
567
  label: "Delete",
743
- onclick: () => y(l.value)
744
- }, null, 8, ["onclick"])) : V("", !0),
568
+ onclick: () => g(n.value)
569
+ }, null, 8, ["onclick"])) : N("", !0),
745
570
  v(i, {
746
571
  type: "submit",
747
572
  class: "flex-1",
@@ -754,7 +579,7 @@ const Ue = {
754
579
  }, 512);
755
580
  };
756
581
  }
757
- }), Ye = { class: "flex items-end" }, Ee = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ke = { class: "flex mt-6 space-x-6" }, je = /* @__PURE__ */ R({
582
+ }), _e = { class: "flex items-end" }, Te = { class: "flex flex-wrap gap-8 items-center mt-4" }, Fe = { class: "flex mt-6 space-x-6" }, Ie = /* @__PURE__ */ C({
758
583
  __name: "Maybank2Gateway",
759
584
  props: {
760
585
  terminal: {
@@ -766,49 +591,49 @@ const Ue = {
766
591
  required: !0
767
592
  }
768
593
  },
769
- setup(_) {
770
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
594
+ setup(F) {
595
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
771
596
  ip: "",
772
597
  receiptName: "",
773
598
  cardTypes: []
774
599
  }), m = () => {
775
- e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
776
- }, c = () => {
600
+ e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
601
+ }, d = () => {
777
602
  var i;
778
603
  if (!a.value.ecrIntegrations)
779
604
  return m();
780
- const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Maybank2");
781
- if (t === -1)
605
+ const u = a.value.ecrIntegrations, l = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank2");
606
+ if (l === -1)
782
607
  return m();
783
- l.value = t;
784
- const n = s.at(t);
785
- n.gateway === "Maybank2" && n.config && (e.value = {
786
- ip: n.config.ip ?? "",
787
- receiptName: n.receiptName ?? "",
788
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
608
+ n.value = l;
609
+ const t = u.at(l);
610
+ t.gateway === "Maybank2" && t.config && (e.value = {
611
+ ip: t.config.ip ?? "",
612
+ receiptName: t.receiptName ?? "",
613
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
789
614
  });
790
615
  };
791
- P(a, c), q(c);
792
- async function y(s) {
793
- var t;
794
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
616
+ q(a, d), S(d);
617
+ async function g(u) {
618
+ var l;
619
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
795
620
  }
796
- async function u() {
621
+ async function s() {
797
622
  e.value.cardTypes.push(r.value), r.value = "";
798
623
  }
799
- return (s, t) => {
800
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
801
- return f(), F(x, {
624
+ return (u, l) => {
625
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
626
+ return y(), I(x, {
802
627
  ref: T.value,
803
628
  class: "flex flex-col gap-16 w-[500px]",
804
- onValidationSuccess: t[3] || (t[3] = () => {
629
+ onValidationSuccess: l[3] || (l[3] = () => {
805
630
  var o, w;
806
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
631
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
807
632
  gateway: "Maybank2",
808
633
  config: { ip: e.value.ip },
809
634
  receiptName: e.value.receiptName,
810
635
  dialogConfig: {
811
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
636
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
812
637
  cardTypes: e.value.cardTypes
813
638
  }
814
639
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -818,50 +643,50 @@ const Ue = {
818
643
  dialogConfig: {
819
644
  cardTypes: e.value.cardTypes
820
645
  }
821
- })), d.onUpdate(a.value);
646
+ })), c.onUpdate(a.value);
822
647
  })
823
648
  }, {
824
- default: O(() => [
825
- v(n, {
649
+ default: M(() => [
650
+ v(t, {
826
651
  modelValue: e.value.ip,
827
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
652
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.ip = o),
828
653
  label: "IP Address"
829
654
  }, null, 8, ["modelValue"]),
830
- v(n, {
655
+ v(t, {
831
656
  modelValue: e.value.receiptName,
832
- "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
657
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => e.value.receiptName = o),
833
658
  label: "Receipt Payment Name",
834
659
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
835
660
  }, null, 8, ["modelValue"]),
836
- I("div", Ye, [
837
- v(n, {
661
+ _("div", _e, [
662
+ v(t, {
838
663
  modelValue: r.value,
839
- "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
664
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => r.value = o),
840
665
  label: "Fallback Card Types",
841
666
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
842
667
  }, null, 8, ["modelValue"]),
843
668
  v(i, {
844
669
  class: "ml-4",
845
670
  icon: "add",
846
- onClick: u
671
+ onClick: s
847
672
  })
848
673
  ]),
849
- I("div", Ee, [
850
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
674
+ _("div", Te, [
675
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
851
676
  key: o,
852
677
  label: o,
853
678
  removable: !0,
854
679
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
855
680
  }, null, 8, ["label", "onChipClosed"]))), 128))
856
681
  ]),
857
- I("div", Ke, [
858
- l.value > -1 ? (f(), F(i, {
682
+ _("div", Fe, [
683
+ n.value > -1 ? (y(), I(i, {
859
684
  key: 0,
860
685
  class: "flex-1",
861
686
  variant: "secondary",
862
687
  label: "Delete",
863
- onclick: () => y(l.value)
864
- }, null, 8, ["onclick"])) : V("", !0),
688
+ onclick: () => g(n.value)
689
+ }, null, 8, ["onclick"])) : N("", !0),
865
690
  v(i, {
866
691
  type: "submit",
867
692
  class: "flex-1",
@@ -874,7 +699,7 @@ const Ue = {
874
699
  }, 512);
875
700
  };
876
701
  }
877
- }), He = { class: "flex items-end" }, ze = { class: "flex flex-wrap gap-8 items-center mt-4" }, Qe = { class: "flex mt-6 space-x-6" }, Je = /* @__PURE__ */ R({
702
+ }), we = { class: "flex items-end" }, xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ne = { class: "flex mt-6 space-x-6" }, Ce = /* @__PURE__ */ C({
878
703
  __name: "Maybank3Gateway",
879
704
  props: {
880
705
  terminal: {
@@ -886,49 +711,49 @@ const Ue = {
886
711
  required: !0
887
712
  }
888
713
  },
889
- setup(_) {
890
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
714
+ setup(F) {
715
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
891
716
  receiptName: "",
892
717
  config: {},
893
718
  cardTypes: []
894
719
  }), m = () => {
895
- e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
896
- }, c = () => {
720
+ e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
721
+ }, d = () => {
897
722
  var i;
898
723
  if (!a.value.ecrIntegrations)
899
724
  return m();
900
- const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Maybank3");
901
- if (t === -1)
725
+ const u = a.value.ecrIntegrations, l = u.findIndex((p) => p && p.gateway && p.gateway === "Maybank3");
726
+ if (l === -1)
902
727
  return m();
903
- l.value = t;
904
- const n = s.at(t);
905
- n.gateway === "Maybank3" && n.config && (e.value = {
906
- config: n.config,
907
- receiptName: n.receiptName ?? "",
908
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
728
+ n.value = l;
729
+ const t = u.at(l);
730
+ t.gateway === "Maybank3" && t.config && (e.value = {
731
+ config: t.config,
732
+ receiptName: t.receiptName ?? "",
733
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
909
734
  });
910
735
  };
911
- P(a, c), q(c);
912
- async function y(s) {
913
- var t;
914
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
736
+ q(a, d), S(d);
737
+ async function g(u) {
738
+ var l;
739
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
915
740
  }
916
- async function u() {
741
+ async function s() {
917
742
  e.value.cardTypes.push(r.value), r.value = "";
918
743
  }
919
- return (s, t) => {
920
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
921
- return f(), F(x, {
744
+ return (u, l) => {
745
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
746
+ return y(), I(x, {
922
747
  ref: T.value,
923
748
  class: "flex flex-col gap-16 w-[500px]",
924
- onValidationSuccess: t[2] || (t[2] = () => {
749
+ onValidationSuccess: l[2] || (l[2] = () => {
925
750
  var o, w;
926
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
751
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
927
752
  gateway: "Maybank3",
928
753
  config: e.value.config,
929
754
  receiptName: e.value.receiptName,
930
755
  dialogConfig: {
931
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
756
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
932
757
  cardTypes: e.value.cardTypes
933
758
  }
934
759
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -938,45 +763,45 @@ const Ue = {
938
763
  dialogConfig: {
939
764
  cardTypes: e.value.cardTypes
940
765
  }
941
- })), d.onUpdate(a.value);
766
+ })), c.onUpdate(a.value);
942
767
  })
943
768
  }, {
944
- default: O(() => [
945
- v(n, {
769
+ default: M(() => [
770
+ v(t, {
946
771
  modelValue: e.value.receiptName,
947
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
772
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.receiptName = o),
948
773
  label: "Receipt Payment Name",
949
774
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
950
775
  }, null, 8, ["modelValue"]),
951
- I("div", He, [
952
- v(n, {
776
+ _("div", we, [
777
+ v(t, {
953
778
  modelValue: r.value,
954
- "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
779
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => r.value = o),
955
780
  label: "Fallback Card Types",
956
781
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
957
782
  }, null, 8, ["modelValue"]),
958
783
  v(i, {
959
784
  class: "ml-4",
960
785
  icon: "add",
961
- onClick: u
786
+ onClick: s
962
787
  })
963
788
  ]),
964
- I("div", ze, [
965
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
789
+ _("div", xe, [
790
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
966
791
  key: o,
967
792
  label: o,
968
793
  removable: !0,
969
794
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
970
795
  }, null, 8, ["label", "onChipClosed"]))), 128))
971
796
  ]),
972
- I("div", Qe, [
973
- l.value > -1 ? (f(), F(i, {
797
+ _("div", Ne, [
798
+ n.value > -1 ? (y(), I(i, {
974
799
  key: 0,
975
800
  class: "flex-1",
976
801
  variant: "secondary",
977
802
  label: "Delete",
978
- onclick: () => y(l.value)
979
- }, null, 8, ["onclick"])) : V("", !0),
803
+ onclick: () => g(n.value)
804
+ }, null, 8, ["onclick"])) : N("", !0),
980
805
  v(i, {
981
806
  type: "submit",
982
807
  class: "flex-1",
@@ -989,7 +814,7 @@ const Ue = {
989
814
  }, 512);
990
815
  };
991
816
  }
992
- }), We = { class: "flex items-end" }, Xe = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ze = { class: "flex mt-6 space-x-6" }, ea = /* @__PURE__ */ R({
817
+ }), ke = { class: "flex items-end" }, Ve = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ue = { class: "flex mt-6 space-x-6" }, Se = /* @__PURE__ */ C({
993
818
  __name: "NetsGateway",
994
819
  props: {
995
820
  terminal: {
@@ -1001,49 +826,49 @@ const Ue = {
1001
826
  required: !0
1002
827
  }
1003
828
  },
1004
- setup(_) {
1005
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
829
+ setup(F) {
830
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
1006
831
  ip: "",
1007
832
  receiptName: "",
1008
833
  cardTypes: []
1009
834
  }), m = () => {
1010
- e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
1011
- }, c = () => {
835
+ e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
836
+ }, d = () => {
1012
837
  var i;
1013
838
  if (!a.value.ecrIntegrations)
1014
839
  return m();
1015
- const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Nets");
1016
- if (t === -1)
840
+ const u = a.value.ecrIntegrations, l = u.findIndex((p) => p && p.gateway && p.gateway === "Nets");
841
+ if (l === -1)
1017
842
  return m();
1018
- l.value = t;
1019
- const n = s.at(t);
1020
- n.gateway === "Nets" && n.config && (e.value = {
1021
- ip: n.config.ip ?? "",
1022
- receiptName: n.receiptName ?? "",
1023
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
843
+ n.value = l;
844
+ const t = u.at(l);
845
+ t.gateway === "Nets" && t.config && (e.value = {
846
+ ip: t.config.ip ?? "",
847
+ receiptName: t.receiptName ?? "",
848
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1024
849
  });
1025
850
  };
1026
- P(a, c), q(c);
1027
- async function y(s) {
1028
- var t;
1029
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
851
+ q(a, d), S(d);
852
+ async function g(u) {
853
+ var l;
854
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
1030
855
  }
1031
- async function u() {
856
+ async function s() {
1032
857
  e.value.cardTypes.push(r.value), r.value = "";
1033
858
  }
1034
- return (s, t) => {
1035
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1036
- return f(), F(x, {
859
+ return (u, l) => {
860
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
861
+ return y(), I(x, {
1037
862
  ref: T.value,
1038
863
  class: "flex flex-col gap-16 w-[500px]",
1039
- onValidationSuccess: t[3] || (t[3] = () => {
864
+ onValidationSuccess: l[3] || (l[3] = () => {
1040
865
  var o, w;
1041
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
866
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
1042
867
  gateway: "Nets",
1043
868
  config: { ip: e.value.ip },
1044
869
  receiptName: e.value.receiptName,
1045
870
  dialogConfig: {
1046
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
871
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
1047
872
  cardTypes: e.value.cardTypes
1048
873
  }
1049
874
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1053,50 +878,50 @@ const Ue = {
1053
878
  dialogConfig: {
1054
879
  cardTypes: e.value.cardTypes
1055
880
  }
1056
- })), d.onUpdate(a.value);
881
+ })), c.onUpdate(a.value);
1057
882
  })
1058
883
  }, {
1059
- default: O(() => [
1060
- v(n, {
884
+ default: M(() => [
885
+ v(t, {
1061
886
  modelValue: e.value.ip,
1062
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
887
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.ip = o),
1063
888
  label: "IP Address"
1064
889
  }, null, 8, ["modelValue"]),
1065
- v(n, {
890
+ v(t, {
1066
891
  modelValue: e.value.receiptName,
1067
- "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
892
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => e.value.receiptName = o),
1068
893
  label: "Receipt Payment Name",
1069
894
  "label-info": "Default receipt display will be 'TERMINAL_NETS'"
1070
895
  }, null, 8, ["modelValue"]),
1071
- I("div", We, [
1072
- v(n, {
896
+ _("div", ke, [
897
+ v(t, {
1073
898
  modelValue: r.value,
1074
- "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
899
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => r.value = o),
1075
900
  label: "Fallback Card Types",
1076
901
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1077
902
  }, null, 8, ["modelValue"]),
1078
903
  v(i, {
1079
904
  class: "ml-4",
1080
905
  icon: "add",
1081
- onClick: u
906
+ onClick: s
1082
907
  })
1083
908
  ]),
1084
- I("div", Xe, [
1085
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
909
+ _("div", Ve, [
910
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
1086
911
  key: o,
1087
912
  label: o,
1088
913
  removable: !0,
1089
914
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1090
915
  }, null, 8, ["label", "onChipClosed"]))), 128))
1091
916
  ]),
1092
- I("div", Ze, [
1093
- l.value > -1 ? (f(), F(i, {
917
+ _("div", Ue, [
918
+ n.value > -1 ? (y(), I(i, {
1094
919
  key: 0,
1095
920
  class: "flex-1",
1096
921
  variant: "secondary",
1097
922
  label: "Delete",
1098
- onclick: () => y(l.value)
1099
- }, null, 8, ["onclick"])) : V("", !0),
923
+ onclick: () => g(n.value)
924
+ }, null, 8, ["onclick"])) : N("", !0),
1100
925
  v(i, {
1101
926
  type: "submit",
1102
927
  class: "flex-1",
@@ -1109,7 +934,7 @@ const Ue = {
1109
934
  }, 512);
1110
935
  };
1111
936
  }
1112
- }), aa = { class: "flex items-end" }, ta = { class: "flex flex-wrap gap-8 items-center mt-4" }, la = { class: "flex mt-6 space-x-6" }, na = /* @__PURE__ */ R({
937
+ }), Me = { class: "flex items-end" }, he = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ge = { class: "flex mt-6 space-x-6" }, Oe = /* @__PURE__ */ C({
1113
938
  __name: "KBankGateway",
1114
939
  props: {
1115
940
  terminal: {
@@ -1121,47 +946,47 @@ const Ue = {
1121
946
  required: !0
1122
947
  }
1123
948
  },
1124
- setup(_) {
1125
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
949
+ setup(F) {
950
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
1126
951
  receiptName: "",
1127
952
  cardTypes: []
1128
953
  }), m = () => {
1129
- e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
1130
- }, c = () => {
954
+ e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
955
+ }, d = () => {
1131
956
  var i;
1132
957
  if (!a.value.ecrIntegrations)
1133
958
  return m();
1134
- const s = a.value.ecrIntegrations, t = s.findIndex((p) => p && p.gateway && p.gateway === "Kbank");
1135
- if (t === -1)
959
+ const u = a.value.ecrIntegrations, l = u.findIndex((p) => p && p.gateway && p.gateway === "Kbank");
960
+ if (l === -1)
1136
961
  return m();
1137
- l.value = t;
1138
- const n = s.at(t);
1139
- n.gateway === "Kbank" && n.config && (e.value = {
1140
- receiptName: n.receiptName ?? "",
1141
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
962
+ n.value = l;
963
+ const t = u.at(l);
964
+ t.gateway === "Kbank" && t.config && (e.value = {
965
+ receiptName: t.receiptName ?? "",
966
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1142
967
  });
1143
968
  };
1144
- P(a, c), q(c);
1145
- async function y(s) {
1146
- var t;
1147
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
969
+ q(a, d), S(d);
970
+ async function g(u) {
971
+ var l;
972
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
1148
973
  }
1149
- async function u() {
974
+ async function s() {
1150
975
  e.value.cardTypes.push(r.value), r.value = "";
1151
976
  }
1152
- return (s, t) => {
1153
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1154
- return f(), F(x, {
977
+ return (u, l) => {
978
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
979
+ return y(), I(x, {
1155
980
  ref: T.value,
1156
981
  class: "flex flex-col gap-16 w-[500px]",
1157
- onValidationSuccess: t[2] || (t[2] = () => {
982
+ onValidationSuccess: l[2] || (l[2] = () => {
1158
983
  var o, w;
1159
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
984
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
1160
985
  gateway: "Kbank",
1161
986
  config: {},
1162
987
  receiptName: e.value.receiptName,
1163
988
  dialogConfig: {
1164
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
989
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
1165
990
  cardTypes: e.value.cardTypes
1166
991
  }
1167
992
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1171,45 +996,45 @@ const Ue = {
1171
996
  dialogConfig: {
1172
997
  cardTypes: e.value.cardTypes
1173
998
  }
1174
- })), d.onUpdate(a.value);
999
+ })), c.onUpdate(a.value);
1175
1000
  })
1176
1001
  }, {
1177
- default: O(() => [
1178
- v(n, {
1002
+ default: M(() => [
1003
+ v(t, {
1179
1004
  modelValue: e.value.receiptName,
1180
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1005
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.receiptName = o),
1181
1006
  label: "Receipt Payment Name",
1182
1007
  "label-info": "Default receipt display will be 'TERMINAL_KBANK'"
1183
1008
  }, null, 8, ["modelValue"]),
1184
- I("div", aa, [
1185
- v(n, {
1009
+ _("div", Me, [
1010
+ v(t, {
1186
1011
  modelValue: r.value,
1187
- "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1012
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => r.value = o),
1188
1013
  label: "Fallback Card Types",
1189
1014
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1190
1015
  }, null, 8, ["modelValue"]),
1191
1016
  v(i, {
1192
1017
  class: "ml-4",
1193
1018
  icon: "add",
1194
- onClick: u
1019
+ onClick: s
1195
1020
  })
1196
1021
  ]),
1197
- I("div", ta, [
1198
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1022
+ _("div", he, [
1023
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
1199
1024
  key: o,
1200
1025
  label: o,
1201
1026
  removable: !0,
1202
1027
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1203
1028
  }, null, 8, ["label", "onChipClosed"]))), 128))
1204
1029
  ]),
1205
- I("div", la, [
1206
- l.value > -1 ? (f(), F(i, {
1030
+ _("div", Ge, [
1031
+ n.value > -1 ? (y(), I(i, {
1207
1032
  key: 0,
1208
1033
  class: "flex-1",
1209
1034
  variant: "secondary",
1210
1035
  label: "Delete",
1211
- onclick: () => y(l.value)
1212
- }, null, 8, ["onclick"])) : V("", !0),
1036
+ onclick: () => g(n.value)
1037
+ }, null, 8, ["onclick"])) : N("", !0),
1213
1038
  v(i, {
1214
1039
  type: "submit",
1215
1040
  class: "flex-1",
@@ -1222,7 +1047,7 @@ const Ue = {
1222
1047
  }, 512);
1223
1048
  };
1224
1049
  }
1225
- }), oa = { class: "flex mt-6 space-x-6" }, ra = /* @__PURE__ */ R({
1050
+ }), qe = { class: "flex mt-6 space-x-6" }, Pe = /* @__PURE__ */ C({
1226
1051
  __name: "Ghl2Gateway",
1227
1052
  props: {
1228
1053
  terminal: {
@@ -1234,37 +1059,37 @@ const Ue = {
1234
1059
  required: !0
1235
1060
  }
1236
1061
  },
1237
- setup(_) {
1238
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
1062
+ setup(F) {
1063
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b({
1239
1064
  ip: "",
1240
1065
  receiptName: ""
1241
1066
  }), e = () => {
1242
- r.value.ip = "", r.value.receiptName = "", l.value = -1;
1067
+ r.value.ip = "", r.value.receiptName = "", n.value = -1;
1243
1068
  }, m = () => {
1244
1069
  if (!a.value.ecrIntegrations)
1245
1070
  return e();
1246
- const y = a.value.ecrIntegrations, u = y.findIndex((t) => t && t.gateway && t.gateway === "Ghl2");
1247
- if (u === -1)
1071
+ const g = a.value.ecrIntegrations, s = g.findIndex((l) => l && l.gateway && l.gateway === "Ghl2");
1072
+ if (s === -1)
1248
1073
  return e();
1249
- l.value = u;
1250
- const s = y.at(u);
1251
- s.gateway === "Ghl2" && s.config && (r.value = {
1252
- ip: s.config.ip ?? "",
1253
- receiptName: s.receiptName ?? ""
1074
+ n.value = s;
1075
+ const u = g.at(s);
1076
+ u.gateway === "Ghl2" && u.config && (r.value = {
1077
+ ip: u.config.ip ?? "",
1078
+ receiptName: u.receiptName ?? ""
1254
1079
  });
1255
1080
  };
1256
- P(a, m), q(m);
1257
- async function c(y) {
1258
- var u;
1259
- (u = a.value.ecrIntegrations) == null || u.splice(y, 1), d.onUpdate(a.value);
1081
+ q(a, m), S(m);
1082
+ async function d(g) {
1083
+ var s;
1084
+ (s = a.value.ecrIntegrations) == null || s.splice(g, 1), c.onUpdate(a.value);
1260
1085
  }
1261
- return (y, u) => {
1262
- const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
1263
- return f(), F(n, {
1086
+ return (g, s) => {
1087
+ const u = f("FmTextField"), l = f("FmButton"), t = f("FmForm");
1088
+ return y(), I(t, {
1264
1089
  ref: T.value,
1265
1090
  class: "flex flex-col gap-16 w-[500px]",
1266
- onValidationSuccess: u[2] || (u[2] = () => {
1267
- a.value.ecrIntegrations || (a.value.ecrIntegrations = []), l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1091
+ onValidationSuccess: s[2] || (s[2] = () => {
1092
+ a.value.ecrIntegrations || (a.value.ecrIntegrations = []), n.value > -1 ? a.value.ecrIntegrations[n.value] = {
1268
1093
  gateway: "Ghl2",
1269
1094
  config: { ip: r.value.ip },
1270
1095
  receiptName: r.value.receiptName
@@ -1272,30 +1097,30 @@ const Ue = {
1272
1097
  gateway: "Ghl2",
1273
1098
  config: { ip: r.value.ip },
1274
1099
  receiptName: r.value.receiptName
1275
- }), d.onUpdate(a.value);
1100
+ }), c.onUpdate(a.value);
1276
1101
  })
1277
1102
  }, {
1278
- default: O(() => [
1279
- v(s, {
1103
+ default: M(() => [
1104
+ v(u, {
1280
1105
  modelValue: r.value.ip,
1281
- "onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.ip = i),
1106
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => r.value.ip = i),
1282
1107
  label: "IP Address"
1283
1108
  }, null, 8, ["modelValue"]),
1284
- v(s, {
1109
+ v(u, {
1285
1110
  modelValue: r.value.receiptName,
1286
- "onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
1111
+ "onUpdate:modelValue": s[1] || (s[1] = (i) => r.value.receiptName = i),
1287
1112
  label: "Receipt Payment Name",
1288
1113
  "label-info": "Default receipt display will be 'TERMINAL_GHL_2'"
1289
1114
  }, null, 8, ["modelValue"]),
1290
- I("div", oa, [
1291
- l.value > -1 ? (f(), F(t, {
1115
+ _("div", qe, [
1116
+ n.value > -1 ? (y(), I(l, {
1292
1117
  key: 0,
1293
1118
  class: "flex-1",
1294
1119
  variant: "secondary",
1295
1120
  label: "Delete",
1296
- onclick: () => c(l.value)
1297
- }, null, 8, ["onclick"])) : V("", !0),
1298
- v(t, {
1121
+ onclick: () => d(n.value)
1122
+ }, null, 8, ["onclick"])) : N("", !0),
1123
+ v(l, {
1299
1124
  type: "submit",
1300
1125
  class: "flex-1",
1301
1126
  variant: "primary",
@@ -1307,7 +1132,7 @@ const Ue = {
1307
1132
  }, 512);
1308
1133
  };
1309
1134
  }
1310
- }), ia = { class: "flex items-end" }, sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ua = { class: "flex mt-6 space-x-6" }, ca = /* @__PURE__ */ R({
1135
+ }), Re = { class: "flex items-end" }, $e = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ae = { class: "flex mt-6 space-x-6" }, De = /* @__PURE__ */ C({
1311
1136
  __name: "Ghl3Gateway",
1312
1137
  props: {
1313
1138
  terminal: {
@@ -1319,51 +1144,51 @@ const Ue = {
1319
1144
  required: !0
1320
1145
  }
1321
1146
  },
1322
- setup(_) {
1323
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1147
+ setup(F) {
1148
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
1324
1149
  receiptName: "",
1325
1150
  config: {},
1326
1151
  cardTypes: []
1327
1152
  }), m = () => {
1328
- e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
1329
- }, c = () => {
1153
+ e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
1154
+ }, d = () => {
1330
1155
  var i;
1331
1156
  if (!a.value.ecrIntegrations)
1332
1157
  return m();
1333
- const s = a.value.ecrIntegrations, t = s.findIndex(
1158
+ const u = a.value.ecrIntegrations, l = u.findIndex(
1334
1159
  (p) => p && p.gateway && p.gateway === "Ghl3"
1335
1160
  );
1336
- if (t === -1)
1161
+ if (l === -1)
1337
1162
  return m();
1338
- l.value = t;
1339
- const n = s.at(t);
1340
- n.gateway === "Ghl3" && n.config && (e.value = {
1341
- config: n.config,
1342
- receiptName: n.receiptName ?? "",
1343
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1163
+ n.value = l;
1164
+ const t = u.at(l);
1165
+ t.gateway === "Ghl3" && t.config && (e.value = {
1166
+ config: t.config,
1167
+ receiptName: t.receiptName ?? "",
1168
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1344
1169
  });
1345
1170
  };
1346
- P(a, c), q(c);
1347
- async function y(s) {
1348
- var t;
1349
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1171
+ q(a, d), S(d);
1172
+ async function g(u) {
1173
+ var l;
1174
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
1350
1175
  }
1351
- async function u() {
1176
+ async function s() {
1352
1177
  e.value.cardTypes.push(r.value), r.value = "";
1353
1178
  }
1354
- return (s, t) => {
1355
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1356
- return f(), F(x, {
1179
+ return (u, l) => {
1180
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
1181
+ return y(), I(x, {
1357
1182
  ref: T.value,
1358
1183
  class: "flex flex-col gap-16 w-[500px]",
1359
- onValidationSuccess: t[2] || (t[2] = () => {
1184
+ onValidationSuccess: l[2] || (l[2] = () => {
1360
1185
  var o, w;
1361
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1186
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
1362
1187
  gateway: "Ghl3",
1363
1188
  config: e.value.config,
1364
1189
  receiptName: e.value.receiptName,
1365
1190
  dialogConfig: {
1366
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1191
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
1367
1192
  cardTypes: e.value.cardTypes
1368
1193
  }
1369
1194
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1373,45 +1198,45 @@ const Ue = {
1373
1198
  dialogConfig: {
1374
1199
  cardTypes: e.value.cardTypes
1375
1200
  }
1376
- })), d.onUpdate(a.value);
1201
+ })), c.onUpdate(a.value);
1377
1202
  })
1378
1203
  }, {
1379
- default: O(() => [
1380
- v(n, {
1204
+ default: M(() => [
1205
+ v(t, {
1381
1206
  modelValue: e.value.receiptName,
1382
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1207
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.receiptName = o),
1383
1208
  label: "Receipt Payment Name",
1384
1209
  "label-info": "Default receipt display will be 'TERMINAL_GHL'"
1385
1210
  }, null, 8, ["modelValue"]),
1386
- I("div", ia, [
1387
- v(n, {
1211
+ _("div", Re, [
1212
+ v(t, {
1388
1213
  modelValue: r.value,
1389
- "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1214
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => r.value = o),
1390
1215
  label: "Fallback Card Types",
1391
1216
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1392
1217
  }, null, 8, ["modelValue"]),
1393
1218
  v(i, {
1394
1219
  class: "ml-4",
1395
1220
  icon: "add",
1396
- onClick: u
1221
+ onClick: s
1397
1222
  })
1398
1223
  ]),
1399
- I("div", sa, [
1400
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1224
+ _("div", $e, [
1225
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
1401
1226
  key: o,
1402
1227
  label: o,
1403
1228
  removable: !0,
1404
1229
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1405
1230
  }, null, 8, ["label", "onChipClosed"]))), 128))
1406
1231
  ]),
1407
- I("div", ua, [
1408
- l.value > -1 ? (f(), F(i, {
1232
+ _("div", Ae, [
1233
+ n.value > -1 ? (y(), I(i, {
1409
1234
  key: 0,
1410
1235
  class: "flex-1",
1411
1236
  variant: "secondary",
1412
1237
  label: "Delete",
1413
- onclick: () => y(l.value)
1414
- }, null, 8, ["onclick"])) : V("", !0),
1238
+ onclick: () => g(n.value)
1239
+ }, null, 8, ["onclick"])) : N("", !0),
1415
1240
  v(i, {
1416
1241
  type: "submit",
1417
1242
  class: "flex-1",
@@ -1424,7 +1249,7 @@ const Ue = {
1424
1249
  }, 512);
1425
1250
  };
1426
1251
  }
1427
- }), da = { class: "flex items-end" }, pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ma = { class: "flex mt-6 space-x-6" }, va = /* @__PURE__ */ R({
1252
+ }), Be = { class: "flex items-end" }, Ye = { class: "flex flex-wrap gap-8 items-center mt-4" }, Le = { class: "flex mt-6 space-x-6" }, Ke = /* @__PURE__ */ C({
1428
1253
  __name: "HlbbGateway",
1429
1254
  props: {
1430
1255
  terminal: {
@@ -1436,51 +1261,51 @@ const Ue = {
1436
1261
  required: !0
1437
1262
  }
1438
1263
  },
1439
- setup(_) {
1440
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1264
+ setup(F) {
1265
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
1441
1266
  receiptName: "",
1442
1267
  config: {},
1443
1268
  cardTypes: []
1444
1269
  }), m = () => {
1445
- e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
1446
- }, c = () => {
1270
+ e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
1271
+ }, d = () => {
1447
1272
  var i;
1448
1273
  if (!a.value.ecrIntegrations)
1449
1274
  return m();
1450
- const s = a.value.ecrIntegrations, t = s.findIndex(
1275
+ const u = a.value.ecrIntegrations, l = u.findIndex(
1451
1276
  (p) => p && p.gateway && p.gateway === "Hlbb"
1452
1277
  );
1453
- if (t === -1)
1278
+ if (l === -1)
1454
1279
  return m();
1455
- l.value = t;
1456
- const n = s.at(t);
1457
- n.gateway === "Hlbb" && n.config && (e.value = {
1458
- config: n.config,
1459
- receiptName: n.receiptName ?? "",
1460
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1280
+ n.value = l;
1281
+ const t = u.at(l);
1282
+ t.gateway === "Hlbb" && t.config && (e.value = {
1283
+ config: t.config,
1284
+ receiptName: t.receiptName ?? "",
1285
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1461
1286
  });
1462
1287
  };
1463
- P(a, c), q(c);
1464
- async function y(s) {
1465
- var t;
1466
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1288
+ q(a, d), S(d);
1289
+ async function g(u) {
1290
+ var l;
1291
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
1467
1292
  }
1468
- async function u() {
1293
+ async function s() {
1469
1294
  e.value.cardTypes.push(r.value), r.value = "";
1470
1295
  }
1471
- return (s, t) => {
1472
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1473
- return f(), F(x, {
1296
+ return (u, l) => {
1297
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
1298
+ return y(), I(x, {
1474
1299
  ref: T.value,
1475
1300
  class: "flex flex-col gap-16 w-[500px]",
1476
- onValidationSuccess: t[2] || (t[2] = () => {
1301
+ onValidationSuccess: l[2] || (l[2] = () => {
1477
1302
  var o, w;
1478
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1303
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
1479
1304
  gateway: "Hlbb",
1480
1305
  config: e.value.config,
1481
1306
  receiptName: e.value.receiptName,
1482
1307
  dialogConfig: {
1483
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1308
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
1484
1309
  cardTypes: e.value.cardTypes
1485
1310
  }
1486
1311
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1490,45 +1315,45 @@ const Ue = {
1490
1315
  dialogConfig: {
1491
1316
  cardTypes: e.value.cardTypes
1492
1317
  }
1493
- })), d.onUpdate(a.value);
1318
+ })), c.onUpdate(a.value);
1494
1319
  })
1495
1320
  }, {
1496
- default: O(() => [
1497
- v(n, {
1321
+ default: M(() => [
1322
+ v(t, {
1498
1323
  modelValue: e.value.receiptName,
1499
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1324
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.receiptName = o),
1500
1325
  label: "Receipt Payment Name",
1501
1326
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
1502
1327
  }, null, 8, ["modelValue"]),
1503
- I("div", da, [
1504
- v(n, {
1328
+ _("div", Be, [
1329
+ v(t, {
1505
1330
  modelValue: r.value,
1506
- "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1331
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => r.value = o),
1507
1332
  label: "Fallback Card Types",
1508
1333
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1509
1334
  }, null, 8, ["modelValue"]),
1510
1335
  v(i, {
1511
1336
  class: "ml-4",
1512
1337
  icon: "add",
1513
- onClick: u
1338
+ onClick: s
1514
1339
  })
1515
1340
  ]),
1516
- I("div", pa, [
1517
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1341
+ _("div", Ye, [
1342
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
1518
1343
  key: o,
1519
1344
  label: o,
1520
1345
  removable: !0,
1521
1346
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1522
1347
  }, null, 8, ["label", "onChipClosed"]))), 128))
1523
1348
  ]),
1524
- I("div", ma, [
1525
- l.value > -1 ? (f(), F(i, {
1349
+ _("div", Le, [
1350
+ n.value > -1 ? (y(), I(i, {
1526
1351
  key: 0,
1527
1352
  class: "flex-1",
1528
1353
  variant: "secondary",
1529
1354
  label: "Delete",
1530
- onclick: () => y(l.value)
1531
- }, null, 8, ["onclick"])) : V("", !0),
1355
+ onclick: () => g(n.value)
1356
+ }, null, 8, ["onclick"])) : N("", !0),
1532
1357
  v(i, {
1533
1358
  type: "submit",
1534
1359
  class: "flex-1",
@@ -1541,7 +1366,7 @@ const Ue = {
1541
1366
  }, 512);
1542
1367
  };
1543
1368
  }
1544
- }), ya = { class: "flex items-end" }, fa = { class: "flex flex-wrap gap-8 items-center mt-4" }, ga = { class: "flex mt-6 space-x-6" }, ba = /* @__PURE__ */ R({
1369
+ }), Ee = { class: "flex items-end" }, je = { class: "flex flex-wrap gap-8 items-center mt-4" }, He = { class: "flex mt-6 space-x-6" }, ze = /* @__PURE__ */ C({
1545
1370
  __name: "GlobalPaymentsGateway",
1546
1371
  props: {
1547
1372
  terminal: {
@@ -1553,51 +1378,51 @@ const Ue = {
1553
1378
  required: !0
1554
1379
  }
1555
1380
  },
1556
- setup(_) {
1557
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1381
+ setup(F) {
1382
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
1558
1383
  ip: "",
1559
1384
  receiptName: "",
1560
1385
  cardTypes: []
1561
1386
  }), m = () => {
1562
- e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
1563
- }, c = () => {
1387
+ e.value.ip = "", e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
1388
+ }, d = () => {
1564
1389
  var i;
1565
1390
  if (!a.value.ecrIntegrations)
1566
1391
  return m();
1567
- const s = a.value.ecrIntegrations, t = s.findIndex(
1392
+ const u = a.value.ecrIntegrations, l = u.findIndex(
1568
1393
  (p) => p && p.gateway && p.gateway === "GlobalPayments"
1569
1394
  );
1570
- if (t === -1)
1395
+ if (l === -1)
1571
1396
  return m();
1572
- l.value = t;
1573
- const n = s.at(t);
1574
- n.gateway === "GlobalPayments" && n.config && (e.value = {
1575
- ip: n.config.ip ?? "",
1576
- receiptName: n.receiptName ?? "",
1577
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1397
+ n.value = l;
1398
+ const t = u.at(l);
1399
+ t.gateway === "GlobalPayments" && t.config && (e.value = {
1400
+ ip: t.config.ip ?? "",
1401
+ receiptName: t.receiptName ?? "",
1402
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1578
1403
  });
1579
1404
  };
1580
- P(a, c), q(c);
1581
- async function y(s) {
1582
- var t;
1583
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1405
+ q(a, d), S(d);
1406
+ async function g(u) {
1407
+ var l;
1408
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
1584
1409
  }
1585
- async function u() {
1410
+ async function s() {
1586
1411
  e.value.cardTypes.push(r.value), r.value = "";
1587
1412
  }
1588
- return (s, t) => {
1589
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1590
- return f(), F(x, {
1413
+ return (u, l) => {
1414
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
1415
+ return y(), I(x, {
1591
1416
  ref: T.value,
1592
1417
  class: "flex flex-col gap-16 w-[500px]",
1593
- onValidationSuccess: t[3] || (t[3] = () => {
1418
+ onValidationSuccess: l[3] || (l[3] = () => {
1594
1419
  var o, w;
1595
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1420
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
1596
1421
  gateway: "GlobalPayments",
1597
1422
  config: { ip: e.value.ip },
1598
1423
  receiptName: e.value.receiptName,
1599
1424
  dialogConfig: {
1600
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1425
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
1601
1426
  cardTypes: e.value.cardTypes
1602
1427
  }
1603
1428
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1607,50 +1432,50 @@ const Ue = {
1607
1432
  dialogConfig: {
1608
1433
  cardTypes: e.value.cardTypes
1609
1434
  }
1610
- })), d.onUpdate(a.value);
1435
+ })), c.onUpdate(a.value);
1611
1436
  })
1612
1437
  }, {
1613
- default: O(() => [
1614
- v(n, {
1438
+ default: M(() => [
1439
+ v(t, {
1615
1440
  modelValue: e.value.ip,
1616
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.ip = o),
1441
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.ip = o),
1617
1442
  label: "IP Address"
1618
1443
  }, null, 8, ["modelValue"]),
1619
- v(n, {
1444
+ v(t, {
1620
1445
  modelValue: e.value.receiptName,
1621
- "onUpdate:modelValue": t[1] || (t[1] = (o) => e.value.receiptName = o),
1446
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => e.value.receiptName = o),
1622
1447
  label: "Receipt Payment Name",
1623
1448
  "label-info": "Default receipt display will be 'TERMINAL_GP'"
1624
1449
  }, null, 8, ["modelValue"]),
1625
- I("div", ya, [
1626
- v(n, {
1450
+ _("div", Ee, [
1451
+ v(t, {
1627
1452
  modelValue: r.value,
1628
- "onUpdate:modelValue": t[2] || (t[2] = (o) => r.value = o),
1453
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => r.value = o),
1629
1454
  label: "Fallback Card Types",
1630
1455
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1631
1456
  }, null, 8, ["modelValue"]),
1632
1457
  v(i, {
1633
1458
  class: "ml-4",
1634
1459
  icon: "add",
1635
- onClick: u
1460
+ onClick: s
1636
1461
  })
1637
1462
  ]),
1638
- I("div", fa, [
1639
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1463
+ _("div", je, [
1464
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
1640
1465
  key: o,
1641
1466
  label: o,
1642
1467
  removable: !0,
1643
1468
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1644
1469
  }, null, 8, ["label", "onChipClosed"]))), 128))
1645
1470
  ]),
1646
- I("div", ga, [
1647
- l.value > -1 ? (f(), F(i, {
1471
+ _("div", He, [
1472
+ n.value > -1 ? (y(), I(i, {
1648
1473
  key: 0,
1649
1474
  class: "flex-1",
1650
1475
  variant: "secondary",
1651
1476
  label: "Delete",
1652
- onclick: () => y(l.value)
1653
- }, null, 8, ["onclick"])) : V("", !0),
1477
+ onclick: () => g(n.value)
1478
+ }, null, 8, ["onclick"])) : N("", !0),
1654
1479
  v(i, {
1655
1480
  type: "submit",
1656
1481
  class: "flex-1",
@@ -1663,7 +1488,7 @@ const Ue = {
1663
1488
  }, 512);
1664
1489
  };
1665
1490
  }
1666
- }), Ta = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ia = { class: "flex mt-6 space-x-6" }, Fa = /* @__PURE__ */ R({
1491
+ }), Qe = { class: "flex items-end" }, Je = { class: "flex flex-wrap gap-8 items-center mt-4" }, We = { class: "flex mt-6 space-x-6" }, Xe = /* @__PURE__ */ C({
1667
1492
  __name: "OmaGateway",
1668
1493
  props: {
1669
1494
  terminal: {
@@ -1675,49 +1500,49 @@ const Ue = {
1675
1500
  required: !0
1676
1501
  }
1677
1502
  },
1678
- setup(_) {
1679
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b(), e = b({
1503
+ setup(F) {
1504
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b(), e = b({
1680
1505
  receiptName: "",
1681
1506
  cardTypes: []
1682
1507
  }), m = () => {
1683
- e.value.receiptName = "", e.value.cardTypes = [], l.value = -1;
1684
- }, c = () => {
1508
+ e.value.receiptName = "", e.value.cardTypes = [], n.value = -1;
1509
+ }, d = () => {
1685
1510
  var i;
1686
1511
  if (!a.value.ecrIntegrations)
1687
1512
  return m();
1688
- const s = a.value.ecrIntegrations, t = s.findIndex(
1513
+ const u = a.value.ecrIntegrations, l = u.findIndex(
1689
1514
  (p) => p && p.gateway && p.gateway === "Oma"
1690
1515
  );
1691
- if (t === -1)
1516
+ if (l === -1)
1692
1517
  return m();
1693
- l.value = t;
1694
- const n = s.at(t);
1695
- n.gateway === "Oma" && n.config && (e.value = {
1696
- receiptName: n.receiptName ?? "",
1697
- cardTypes: ((i = n.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1518
+ n.value = l;
1519
+ const t = u.at(l);
1520
+ t.gateway === "Oma" && t.config && (e.value = {
1521
+ receiptName: t.receiptName ?? "",
1522
+ cardTypes: ((i = t.dialogConfig) == null ? void 0 : i.cardTypes) ?? []
1698
1523
  });
1699
1524
  };
1700
- P(a, c), q(c);
1701
- async function y(s) {
1702
- var t;
1703
- (t = a.value.ecrIntegrations) == null || t.splice(s, 1), d.onUpdate(a.value);
1525
+ q(a, d), S(d);
1526
+ async function g(u) {
1527
+ var l;
1528
+ (l = a.value.ecrIntegrations) == null || l.splice(u, 1), c.onUpdate(a.value);
1704
1529
  }
1705
- async function u() {
1530
+ async function s() {
1706
1531
  e.value.cardTypes.push(r.value), r.value = "";
1707
1532
  }
1708
- return (s, t) => {
1709
- const n = g("FmTextField"), i = g("FmButton"), p = g("FmChip"), x = g("FmForm");
1710
- return f(), F(x, {
1533
+ return (u, l) => {
1534
+ const t = f("FmTextField"), i = f("FmButton"), p = f("FmChip"), x = f("FmForm");
1535
+ return y(), I(x, {
1711
1536
  ref: T.value,
1712
1537
  class: "flex flex-col gap-16 w-[500px]",
1713
- onValidationSuccess: t[2] || (t[2] = () => {
1538
+ onValidationSuccess: l[2] || (l[2] = () => {
1714
1539
  var o, w;
1715
- l.value > -1 ? a.value.ecrIntegrations[l.value] = {
1540
+ n.value > -1 ? a.value.ecrIntegrations[n.value] = {
1716
1541
  gateway: "Oma",
1717
1542
  config: {},
1718
1543
  receiptName: e.value.receiptName,
1719
1544
  dialogConfig: {
1720
- ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[l.value]) == null ? void 0 : w.dialogConfig,
1545
+ ...(w = (o = a.value.ecrIntegrations) == null ? void 0 : o[n.value]) == null ? void 0 : w.dialogConfig,
1721
1546
  cardTypes: e.value.cardTypes
1722
1547
  }
1723
1548
  } : (a.value.ecrIntegrations || (a.value.ecrIntegrations = []), a.value.ecrIntegrations.push({
@@ -1727,45 +1552,45 @@ const Ue = {
1727
1552
  dialogConfig: {
1728
1553
  cardTypes: e.value.cardTypes
1729
1554
  }
1730
- })), d.onUpdate(a.value);
1555
+ })), c.onUpdate(a.value);
1731
1556
  })
1732
1557
  }, {
1733
- default: O(() => [
1734
- v(n, {
1558
+ default: M(() => [
1559
+ v(t, {
1735
1560
  modelValue: e.value.receiptName,
1736
- "onUpdate:modelValue": t[0] || (t[0] = (o) => e.value.receiptName = o),
1561
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => e.value.receiptName = o),
1737
1562
  label: "Receipt Payment Name",
1738
1563
  "label-info": "Default receipt display will be 'TERMINAL_OMA'"
1739
1564
  }, null, 8, ["modelValue"]),
1740
- I("div", Ta, [
1741
- v(n, {
1565
+ _("div", Qe, [
1566
+ v(t, {
1742
1567
  modelValue: r.value,
1743
- "onUpdate:modelValue": t[1] || (t[1] = (o) => r.value = o),
1568
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => r.value = o),
1744
1569
  label: "Fallback Card Types",
1745
1570
  "label-info": "List of cards when fallback to reconcile dialog. Default VISA, MASTER"
1746
1571
  }, null, 8, ["modelValue"]),
1747
1572
  v(i, {
1748
1573
  class: "ml-4",
1749
1574
  icon: "add",
1750
- onClick: u
1575
+ onClick: s
1751
1576
  })
1752
1577
  ]),
1753
- I("div", _a, [
1754
- (f(!0), M(G, null, Y(e.value.cardTypes, (o) => (f(), F(p, {
1578
+ _("div", Je, [
1579
+ (y(!0), V(G, null, R(e.value.cardTypes, (o) => (y(), I(p, {
1755
1580
  key: o,
1756
1581
  label: o,
1757
1582
  removable: !0,
1758
1583
  onChipClosed: () => e.value.cardTypes.splice(e.value.cardTypes.indexOf(o), 1)
1759
1584
  }, null, 8, ["label", "onChipClosed"]))), 128))
1760
1585
  ]),
1761
- I("div", Ia, [
1762
- l.value > -1 ? (f(), F(i, {
1586
+ _("div", We, [
1587
+ n.value > -1 ? (y(), I(i, {
1763
1588
  key: 0,
1764
1589
  class: "flex-1",
1765
1590
  variant: "secondary",
1766
1591
  label: "Delete",
1767
- onclick: () => y(l.value)
1768
- }, null, 8, ["onclick"])) : V("", !0),
1592
+ onclick: () => g(n.value)
1593
+ }, null, 8, ["onclick"])) : N("", !0),
1769
1594
  v(i, {
1770
1595
  type: "submit",
1771
1596
  class: "flex-1",
@@ -1778,7 +1603,7 @@ const Ue = {
1778
1603
  }, 512);
1779
1604
  };
1780
1605
  }
1781
- }), wa = { class: "flex items-center" }, xa = { class: "w-[260px] self-start" }, Na = { class: "flex-1" }, ka = /* @__PURE__ */ R({
1606
+ }), Ze = { class: "flex items-center" }, ea = { class: "w-[260px] self-start" }, aa = { class: "flex-1" }, la = /* @__PURE__ */ C({
1782
1607
  __name: "EcrGateway",
1783
1608
  props: {
1784
1609
  terminal: {
@@ -1790,109 +1615,109 @@ const Ue = {
1790
1615
  required: !0
1791
1616
  }
1792
1617
  },
1793
- setup(_) {
1618
+ setup(F) {
1794
1619
  var m;
1795
- const d = _, a = [
1620
+ const c = F, a = [
1796
1621
  {
1797
1622
  label: "FeedMe Terminal",
1798
1623
  value: "terminal",
1799
- render: qe
1624
+ render: pe
1800
1625
  },
1801
1626
  {
1802
1627
  label: "GHL Terminal",
1803
1628
  value: "ghl",
1804
- render: Ae,
1805
- region: [U.F_COUNTRY.enum.MY]
1629
+ render: ve,
1630
+ region: [k.F_COUNTRY.enum.MY]
1806
1631
  },
1807
1632
  {
1808
1633
  label: "GHL2 Terminal",
1809
1634
  value: "ghl2",
1810
- render: ra,
1811
- region: [U.F_COUNTRY.enum.MY]
1635
+ render: Pe,
1636
+ region: [k.F_COUNTRY.enum.MY]
1812
1637
  },
1813
1638
  {
1814
1639
  label: "ITB Maybank Terminal",
1815
1640
  value: "mb-itb",
1816
- render: Le,
1817
- region: [U.F_COUNTRY.enum.MY]
1641
+ render: be,
1642
+ region: [k.F_COUNTRY.enum.MY]
1818
1643
  },
1819
1644
  {
1820
1645
  label: "PMA Maybank Terminal",
1821
1646
  value: "mb-pma",
1822
- render: je,
1823
- region: [U.F_COUNTRY.enum.MY]
1647
+ render: Ie,
1648
+ region: [k.F_COUNTRY.enum.MY]
1824
1649
  },
1825
1650
  {
1826
1651
  label: "Paysys Maybank Terminal",
1827
1652
  value: "mb-paysys",
1828
- render: Je,
1829
- region: [U.F_COUNTRY.enum.MY]
1653
+ render: Ce,
1654
+ region: [k.F_COUNTRY.enum.MY]
1830
1655
  },
1831
1656
  {
1832
1657
  label: "Nets Terminal",
1833
1658
  value: "nets",
1834
- render: ea,
1835
- region: [U.F_COUNTRY.enum.SG]
1659
+ render: Se,
1660
+ region: [k.F_COUNTRY.enum.SG]
1836
1661
  },
1837
1662
  {
1838
1663
  label: "KBank Terminal",
1839
1664
  value: "kbank",
1840
- render: na,
1841
- region: [U.F_COUNTRY.enum.TH]
1665
+ render: Oe,
1666
+ region: [k.F_COUNTRY.enum.TH]
1842
1667
  },
1843
1668
  {
1844
1669
  label: "GHL Terminal",
1845
1670
  value: "ghl3",
1846
- render: ca,
1847
- region: [U.F_COUNTRY.enum.TH]
1671
+ render: De,
1672
+ region: [k.F_COUNTRY.enum.TH]
1848
1673
  },
1849
1674
  {
1850
1675
  label: "Paysys HLBB Terminal",
1851
1676
  value: "hlbb",
1852
- render: va,
1853
- region: [U.F_COUNTRY.enum.MY]
1677
+ render: Ke,
1678
+ region: [k.F_COUNTRY.enum.MY]
1854
1679
  },
1855
1680
  {
1856
1681
  label: "GPAP Terminal",
1857
1682
  value: "globalpayments",
1858
- render: ba,
1859
- region: [U.F_COUNTRY.enum.SG]
1683
+ render: ze,
1684
+ region: [k.F_COUNTRY.enum.SG]
1860
1685
  },
1861
1686
  {
1862
1687
  label: "OMA Terminal",
1863
1688
  value: "oma",
1864
- render: Fa,
1865
- region: [U.F_COUNTRY.enum.PK]
1689
+ render: Xe,
1690
+ region: [k.F_COUNTRY.enum.PK]
1866
1691
  }
1867
- ], T = C(() => a.find((c) => c.value === e.value)), l = oe().currentCountry, r = C(() => a.filter(
1868
- (c) => !c.region || c.region.includes(l.value ?? U.F_COUNTRY.enum.MY)
1869
- )), { gatewayTab: e } = ne({
1692
+ ], T = P(() => a.find((d) => d.value === e.value)), n = j().currentCountry, r = P(() => a.filter(
1693
+ (d) => !d.region || d.region.includes(n.value ?? k.F_COUNTRY.enum.MY)
1694
+ )), { gatewayTab: e } = E({
1870
1695
  gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
1871
1696
  });
1872
- return (c, y) => {
1873
- var s;
1874
- const u = g("FmTabs");
1875
- return f(), M("div", wa, [
1876
- I("div", xa, [
1877
- v(u, {
1697
+ return (d, g) => {
1698
+ var u;
1699
+ const s = f("FmTabs");
1700
+ return y(), V("div", Ze, [
1701
+ _("div", ea, [
1702
+ v(s, {
1878
1703
  "model-value": h(e),
1879
- "onUpdate:modelValue": y[0] || (y[0] = (t) => Z(e) ? e.value = t : null),
1704
+ "onUpdate:modelValue": g[0] || (g[0] = (l) => B(e) ? e.value = l : null),
1880
1705
  class: "mb-6",
1881
1706
  vertical: !0,
1882
1707
  items: r.value,
1883
1708
  "show-more-at": Number.POSITIVE_INFINITY
1884
1709
  }, null, 8, ["model-value", "items", "show-more-at"])
1885
1710
  ]),
1886
- I("div", Na, [
1887
- h(e) ? (f(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
1888
- terminal: d.terminal,
1889
- onUpdate: d.onUpdate
1890
- })), null, 16)) : V("", !0)
1711
+ _("div", aa, [
1712
+ h(e) ? (y(), I(Y((u = T.value) == null ? void 0 : u.render), L(K({ key: 0 }, {
1713
+ terminal: c.terminal,
1714
+ onUpdate: c.onUpdate
1715
+ })), null, 16)) : N("", !0)
1891
1716
  ])
1892
1717
  ]);
1893
1718
  };
1894
1719
  }
1895
- }), Ca = { class: "flex mt-6 space-x-6" }, Va = /* @__PURE__ */ R({
1720
+ }), ta = { class: "flex mt-6 space-x-6" }, na = /* @__PURE__ */ C({
1896
1721
  __name: "PromptPayGateway",
1897
1722
  props: {
1898
1723
  terminal: {
@@ -1904,61 +1729,61 @@ const Ue = {
1904
1729
  required: !0
1905
1730
  }
1906
1731
  },
1907
- setup(_) {
1908
- const d = _, a = A(() => d.terminal), T = b(), l = b(-1), r = b({
1732
+ setup(F) {
1733
+ const c = F, a = O(() => c.terminal), T = b(), n = b(-1), r = b({
1909
1734
  account: "",
1910
1735
  receiptName: ""
1911
1736
  }), e = () => {
1912
- r.value.account = "", r.value.receiptName = "", l.value = -1;
1737
+ r.value.account = "", r.value.receiptName = "", n.value = -1;
1913
1738
  }, m = () => {
1914
1739
  if (!a.value.qrIntegrations)
1915
1740
  return e();
1916
- const y = a.value.qrIntegrations, u = y.findIndex((t) => t && t.gateway && t.gateway === "PROMPTPAY");
1917
- if (u === -1)
1741
+ const g = a.value.qrIntegrations, s = g.findIndex((l) => l && l.gateway && l.gateway === "PROMPTPAY");
1742
+ if (s === -1)
1918
1743
  return e();
1919
- l.value = u;
1920
- const s = y.at(u);
1921
- s.gateway === "PROMPTPAY" && s.config && (r.value = {
1922
- account: s.config.account ?? "",
1923
- receiptName: s.receiptName ?? ""
1744
+ n.value = s;
1745
+ const u = g.at(s);
1746
+ u.gateway === "PROMPTPAY" && u.config && (r.value = {
1747
+ account: u.config.account ?? "",
1748
+ receiptName: u.receiptName ?? ""
1924
1749
  });
1925
1750
  };
1926
- P(a, m), q(m);
1927
- async function c(y) {
1928
- var u;
1929
- (u = a.value.qrIntegrations) == null || u.splice(y, 1), d.onUpdate(a.value);
1751
+ q(a, m), S(m);
1752
+ async function d(g) {
1753
+ var s;
1754
+ (s = a.value.qrIntegrations) == null || s.splice(g, 1), c.onUpdate(a.value);
1930
1755
  }
1931
- return (y, u) => {
1932
- const s = g("FmTextField"), t = g("FmButton"), n = g("FmForm");
1933
- return f(), F(n, {
1756
+ return (g, s) => {
1757
+ const u = f("FmTextField"), l = f("FmButton"), t = f("FmForm");
1758
+ return y(), I(t, {
1934
1759
  ref: T.value,
1935
1760
  class: "flex flex-col gap-16 w-[500px]",
1936
- onValidationSuccess: u[2] || (u[2] = () => {
1937
- 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);
1761
+ onValidationSuccess: s[2] || (s[2] = () => {
1762
+ n.value > -1 ? a.value.qrIntegrations[n.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 })), c.onUpdate(a.value);
1938
1763
  })
1939
1764
  }, {
1940
- default: O(() => [
1941
- v(s, {
1765
+ default: M(() => [
1766
+ v(u, {
1942
1767
  modelValue: r.value.account,
1943
- "onUpdate:modelValue": u[0] || (u[0] = (i) => r.value.account = i),
1768
+ "onUpdate:modelValue": s[0] || (s[0] = (i) => r.value.account = i),
1944
1769
  label: "Thai Phone Number / Thai Naitonal ID",
1945
1770
  "label-info": "Thai Phone Number can be prefixed with 66 or 0 will be fine both will works well."
1946
1771
  }, null, 8, ["modelValue"]),
1947
- v(s, {
1772
+ v(u, {
1948
1773
  modelValue: r.value.receiptName,
1949
- "onUpdate:modelValue": u[1] || (u[1] = (i) => r.value.receiptName = i),
1774
+ "onUpdate:modelValue": s[1] || (s[1] = (i) => r.value.receiptName = i),
1950
1775
  label: "Receipt Payment Name",
1951
1776
  "label-info": "Default receipt display will be 'TERMINAL_MAYBANK'"
1952
1777
  }, null, 8, ["modelValue"]),
1953
- I("div", Ca, [
1954
- l.value > -1 ? (f(), F(t, {
1778
+ _("div", ta, [
1779
+ n.value > -1 ? (y(), I(l, {
1955
1780
  key: 0,
1956
1781
  class: "flex-1",
1957
1782
  variant: "secondary",
1958
1783
  label: "Delete",
1959
- onclick: () => c(l.value)
1960
- }, null, 8, ["onclick"])) : V("", !0),
1961
- v(t, {
1784
+ onclick: () => d(n.value)
1785
+ }, null, 8, ["onclick"])) : N("", !0),
1786
+ v(l, {
1962
1787
  type: "submit",
1963
1788
  class: "flex-1",
1964
1789
  variant: "primary",
@@ -1970,7 +1795,7 @@ const Ue = {
1970
1795
  }, 512);
1971
1796
  };
1972
1797
  }
1973
- }), Sa = { class: "flex items-center" }, Ua = { class: "w-[260px] self-start" }, Ra = { class: "flex-1" }, Ma = /* @__PURE__ */ R({
1798
+ }), oa = { class: "flex items-center" }, ra = { class: "w-[260px] self-start" }, ia = { class: "flex-1" }, ua = /* @__PURE__ */ C({
1974
1799
  __name: "QrGateway",
1975
1800
  props: {
1976
1801
  terminal: {
@@ -1982,41 +1807,41 @@ const Ue = {
1982
1807
  required: !0
1983
1808
  }
1984
1809
  },
1985
- setup(_) {
1810
+ setup(F) {
1986
1811
  var m;
1987
- const d = _, a = [
1812
+ const c = F, a = [
1988
1813
  {
1989
1814
  label: "PromptPay",
1990
1815
  value: "promptpay",
1991
- render: Va,
1992
- region: [U.F_COUNTRY.enum.TH]
1816
+ render: na,
1817
+ region: [k.F_COUNTRY.enum.TH]
1993
1818
  }
1994
- ], 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({
1819
+ ], T = P(() => a.find((d) => d.value === e.value)), n = j().currentCountry, r = P(() => a.filter((d) => !d.region || d.region.includes(n.value ?? k.F_COUNTRY.enum.MY))), { gatewayTab: e } = E({
1995
1820
  gatewayTab: (m = r.value[0]) == null ? void 0 : m.value
1996
1821
  });
1997
- return (c, y) => {
1998
- var s;
1999
- const u = g("FmTabs");
2000
- return f(), M("div", Sa, [
2001
- I("div", Ua, [
2002
- v(u, {
1822
+ return (d, g) => {
1823
+ var u;
1824
+ const s = f("FmTabs");
1825
+ return y(), V("div", oa, [
1826
+ _("div", ra, [
1827
+ v(s, {
2003
1828
  "model-value": h(e),
2004
- "onUpdate:modelValue": y[0] || (y[0] = (t) => Z(e) ? e.value = t : null),
1829
+ "onUpdate:modelValue": g[0] || (g[0] = (l) => B(e) ? e.value = l : null),
2005
1830
  class: "mb-6",
2006
1831
  vertical: !0,
2007
1832
  items: r.value
2008
1833
  }, null, 8, ["model-value", "items"])
2009
1834
  ]),
2010
- I("div", Ra, [
2011
- h(e) ? (f(), F(ee((s = T.value) == null ? void 0 : s.render), ae(te({ key: 0 }, {
2012
- terminal: d.terminal,
2013
- onUpdate: d.onUpdate
2014
- })), null, 16)) : V("", !0)
1835
+ _("div", ia, [
1836
+ h(e) ? (y(), I(Y((u = T.value) == null ? void 0 : u.render), L(K({ key: 0 }, {
1837
+ terminal: c.terminal,
1838
+ onUpdate: c.onUpdate
1839
+ })), null, 16)) : N("", !0)
2015
1840
  ])
2016
1841
  ]);
2017
1842
  };
2018
1843
  }
2019
- }), Ka = /* @__PURE__ */ R({
1844
+ }), _a = /* @__PURE__ */ C({
2020
1845
  __name: "TerminalSetting",
2021
1846
  props: {
2022
1847
  terminalId: {
@@ -2024,24 +1849,24 @@ const Ue = {
2024
1849
  required: !0
2025
1850
  }
2026
1851
  },
2027
- setup(_) {
2028
- const d = _, { tab: a } = ne({
1852
+ setup(F) {
1853
+ const c = F, { tab: a } = E({
2029
1854
  tab: "information"
2030
- }), { isLoading: T, startAsyncCall: l } = le(!0), r = ve(), e = se(), m = b();
2031
- async function c(n) {
2032
- l(async () => {
1855
+ }), { isLoading: T, startAsyncCall: n } = H(!0), r = W(), e = Q(), m = b();
1856
+ async function d(t) {
1857
+ n(async () => {
2033
1858
  try {
2034
- await E.updateById(
2035
- d.terminalId,
1859
+ await A.updateById(
1860
+ c.terminalId,
2036
1861
  {
2037
- name: n.name,
2038
- status: n.status,
2039
- ecrs: n.ecrs ?? [],
2040
- gateways: n.gateways ?? [],
2041
- ecrIntegrations: n.ecrIntegrations ?? [],
2042
- qrIntegrations: n.qrIntegrations ?? []
1862
+ name: t.name,
1863
+ status: t.status,
1864
+ ecrs: t.ecrs ?? [],
1865
+ gateways: t.gateways ?? [],
1866
+ ecrIntegrations: t.ecrIntegrations ?? [],
1867
+ qrIntegrations: t.qrIntegrations ?? []
2043
1868
  }
2044
- ), m.value = await E.readById(d.terminalId), e.open({
1869
+ ), m.value = await A.readById(c.terminalId), e.open({
2045
1870
  type: "success",
2046
1871
  message: "Terminal updated successfully"
2047
1872
  });
@@ -2049,79 +1874,79 @@ const Ue = {
2049
1874
  e.open({
2050
1875
  type: "error",
2051
1876
  title: "Error occurs when update terminal",
2052
- message: X(i)
1877
+ message: Z(i)
2053
1878
  });
2054
1879
  }
2055
1880
  });
2056
1881
  }
2057
- const y = [
1882
+ const g = [
2058
1883
  {
2059
1884
  label: "Information",
2060
1885
  value: "information",
2061
1886
  icon: "overview",
2062
- render: Ie
1887
+ render: le
2063
1888
  },
2064
1889
  {
2065
1890
  label: "Setting Request",
2066
1891
  value: "settings",
2067
1892
  icon: "settings",
2068
- render: Ne,
1893
+ render: re,
2069
1894
  onlyFor: ["TERMINAL"]
2070
1895
  },
2071
1896
  {
2072
1897
  label: "SoftPos Gateway",
2073
1898
  value: "softpos",
2074
1899
  icon: "payment",
2075
- render: he
1900
+ render: se
2076
1901
  },
2077
1902
  {
2078
1903
  label: "ECR Gateway",
2079
1904
  value: "ecr",
2080
1905
  icon: "point_of_sale",
2081
- render: ka,
1906
+ render: la,
2082
1907
  onlyFor: ["POS", "KIOSK"]
2083
1908
  },
2084
1909
  {
2085
1910
  label: "QR Gateway",
2086
1911
  value: "qr",
2087
1912
  icon: "qr_code",
2088
- render: Ma,
1913
+ render: ua,
2089
1914
  onlyFor: ["POS", "KIOSK"]
2090
1915
  }
2091
1916
  ];
2092
- oe().currentCountry;
2093
- const u = C(() => {
2094
- var n;
2095
- return (n = y.find((i) => i.value === a.value)) == null ? void 0 : n.render;
1917
+ j().currentCountry;
1918
+ const s = P(() => {
1919
+ var t;
1920
+ return (t = g.find((i) => i.value === a.value)) == null ? void 0 : t.render;
2096
1921
  });
2097
- async function s() {
2098
- l(async () => {
2099
- m.value = await E.readById(d.terminalId);
1922
+ async function u() {
1923
+ n(async () => {
1924
+ m.value = await A.readById(c.terminalId);
2100
1925
  });
2101
1926
  }
2102
- const t = C(() => y.filter((n) => {
1927
+ const l = P(() => g.filter((t) => {
2103
1928
  var i;
2104
- return !n.onlyFor || n.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
1929
+ return !t.onlyFor || t.onlyFor.includes(((i = m.value) == null ? void 0 : i.deviceType) ?? "");
2105
1930
  }));
2106
- return q(s), (n, i) => {
1931
+ return S(u), (t, i) => {
2107
1932
  var x, o;
2108
- const p = g("FmTabs");
2109
- return f(), F(ye, {
1933
+ const p = f("FmTabs");
1934
+ return y(), I(X, {
2110
1935
  title: `${(x = m.value) == null ? void 0 : x.deviceType} (${(o = m.value) == null ? void 0 : o._id})`,
2111
1936
  loading: h(T),
2112
1937
  onBack: h(r).back
2113
1938
  }, {
2114
- default: O(() => [
1939
+ default: M(() => [
2115
1940
  v(p, {
2116
1941
  "model-value": h(a),
2117
- "onUpdate:modelValue": i[0] || (i[0] = (w) => Z(a) ? a.value = w : null),
1942
+ "onUpdate:modelValue": i[0] || (i[0] = (w) => B(a) ? a.value = w : null),
2118
1943
  class: "mb-6",
2119
- items: t.value
1944
+ items: l.value
2120
1945
  }, null, 8, ["model-value", "items"]),
2121
- h(a) ? (f(), F(ee(u.value), ae(te({ key: 0 }, {
1946
+ h(a) ? (y(), I(Y(s.value), L(K({ key: 0 }, {
2122
1947
  terminal: m.value,
2123
- onUpdate: c
2124
- })), null, 16)) : V("", !0)
1948
+ onUpdate: d
1949
+ })), null, 16)) : N("", !0)
2125
1950
  ]),
2126
1951
  _: 1
2127
1952
  }, 8, ["title", "loading", "onBack"]);
@@ -2129,5 +1954,5 @@ const Ue = {
2129
1954
  }
2130
1955
  });
2131
1956
  export {
2132
- Ka as default
1957
+ _a as default
2133
1958
  };