@feedmepos/mf-payment 1.10.9-dev → 1.10.10-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BlRSHTGm.js → Actions.vue_vue_type_script_setup_true_lang-9WuuFDjT.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-e6WXRYGH.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-ldlWrW9Q.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-qbJr0Fpx.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-akhgShmK.js} +3 -3
  4. package/dist/{Chargeback-Bf8X5DpJ.js → Chargeback-CtMcT0UY.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-tvzC2-AN.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DcTe9_Kw.js} +1 -1
  6. package/dist/{ExternalTerminal-CJKc9YQu.js → ExternalTerminal-lOIxzrYN.js} +6 -6
  7. package/dist/{OnboardForm-Bc7PyOQu.js → OnboardForm-C1YdmeW-.js} +6 -6
  8. package/dist/{OnboardForm-Cs2frDsX.js → OnboardForm-CIDn7WlN.js} +6 -6
  9. package/dist/{OnboardSubmission-DLlDZDTp.js → OnboardSubmission-B3duCbsE.js} +6 -6
  10. package/dist/{OnboardSubmission-AzEqvWcF.js → OnboardSubmission-CmVQtQJG.js} +3 -3
  11. package/dist/{PaymentCheckout-DmAAyMaB.js → PaymentCheckout-7U8JxO5z.js} +2 -2
  12. package/dist/{PayoutAccount-CUNtHkkq.js → PayoutAccount-BkxTsLX6.js} +5 -5
  13. package/dist/{PayoutAccount-h9At-pUs.js → PayoutAccount-TAivPO00.js} +7 -7
  14. package/dist/{PayoutAccountSetting-DoxzEZrk.js → PayoutAccountSetting-CDaWFEPa.js} +6 -6
  15. package/dist/{Restaurant-BQSBQlXV.js → Restaurant-D6w0vJTh.js} +4 -4
  16. package/dist/{RestaurantSetting-BWd81Nvi.js → RestaurantSetting-B-jZzQw2.js} +3 -3
  17. package/dist/{Settlement-DI1v2Lpr.js → Settlement-87K0HOpH.js} +4 -4
  18. package/dist/{Settlement-BgDLErY_.js → Settlement-CSbH4KiM.js} +3 -3
  19. package/dist/{SettlementTransactions-sK3LTE7Z.js → SettlementTransactions-CXxia4xu.js} +5 -5
  20. package/dist/{SettlementTransactions-Btfe8TCX.js → SettlementTransactions-s2E_-8CH.js} +5 -5
  21. package/dist/{Status.vue_vue_type_script_setup_true_lang-CovSVk33.js → Status.vue_vue_type_script_setup_true_lang-BNHfv19U.js} +1 -1
  22. package/dist/{Terminal-DoTN1jZW.js → Terminal-DVnNwm5e.js} +6 -6
  23. package/dist/{TerminalSetting-Bl0bfFAS.js → TerminalSetting-Dq4ABFSO.js} +212 -209
  24. package/dist/{TerminalTemplate-BNHEOCY_.js → TerminalTemplate-BJNexUYY.js} +5 -5
  25. package/dist/{TerminalTemplateSetting-BZ7K254Z.js → TerminalTemplateSetting-bN8ClI5N.js} +5 -5
  26. package/dist/{Transaction-Ecs5btUl.js → Transaction-BGx9Ipte.js} +12 -12
  27. package/dist/{Transaction-4uK6M4p6.js → Transaction-C4hbtZ91.js} +10 -10
  28. package/dist/{TransactionOld-B3X3h7jS.js → TransactionOld-DGq4_O6h.js} +7 -7
  29. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DA1zB5A4.js → TransactionStatus.vue_vue_type_script_setup_true_lang-Bl8qusoC.js} +1 -1
  30. package/dist/{app-dDZS3WjU.js → app-0Fho9eki.js} +26 -26
  31. package/dist/app.js +1 -1
  32. package/dist/{assets-qEh2VGg_.js → assets-CQo4lzcb.js} +1 -1
  33. package/dist/{grafana-DiwfCX5L.js → grafana-BqdRvJYT.js} +1 -1
  34. package/dist/{index-DErywACZ.js → index--59tM3Ls.js} +1 -1
  35. package/dist/{index-CHinJgjY.js → index-B5qSd5kn.js} +1 -1
  36. package/dist/{index-DoobQn7j.js → index-BF1GN-0Q.js} +1 -1
  37. package/dist/{index-BICW93bZ.js → index-BU7MW9VF.js} +1 -1
  38. package/dist/{index-abg_ZrfF.js → index-BdafJZPj.js} +1 -1
  39. package/dist/{index-D8zuI51D.js → index-Bz9YYVw5.js} +1 -1
  40. package/dist/{index-BpmTCNi5.js → index-CelDa-QS.js} +1 -1
  41. package/dist/{index-BMpISrhv.js → index-ClDlsfj-.js} +1 -1
  42. package/dist/{index-DGAk2CT0.js → index-DyIn6r7H.js} +1 -1
  43. package/dist/{index-CFJQ_HmA.js → index-I2OCChpQ.js} +2 -2
  44. package/dist/{index-Cajpi2wX.js → index-_bVFsKJt.js} +1 -1
  45. package/dist/{index.vue_vue_type_script_setup_true_lang-Gth5Pyzm.js → index.vue_vue_type_script_setup_true_lang-Cj4WYjoE.js} +1 -1
  46. package/dist/{onboard-submission-BC1A-2DE.js → onboard-submission-cOodl8vE.js} +1 -1
  47. package/dist/package.json +1 -1
  48. package/dist/{payout-account-CR-f3mDu.js → payout-account-DqxT4m5x.js} +3 -3
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/{useQuery-B-FVTG9E.js → useQuery-2ksfJQXW.js} +1 -1
  51. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- import { defineComponent as h, openBlock as g, createElementBlock as S, Fragment as D, createElementVNode as I, createTextVNode as W, toDisplayString as z, ref as _, resolveComponent as f, createBlock as F, withCtx as O, createVNode as y, unref as N, computed as V, createCommentVNode as U, isRef as ae, resolveDynamicComponent as te, normalizeProps as le, mergeProps as ne, watch as A, onBeforeUnmount as Te, toRef as G, onMounted as q, renderList as L } from "vue";
2
- import { u as J, p as ve, e as P } from "./index-CHinJgjY.js";
1
+ import { defineComponent as R, openBlock as g, createElementBlock as S, Fragment as $, createElementVNode as I, createTextVNode as Z, toDisplayString as J, ref as _, resolveComponent as f, createBlock as F, withCtx as M, createVNode as y, unref as N, computed as V, createCommentVNode as h, isRef as te, resolveDynamicComponent as le, normalizeProps as ne, mergeProps as oe, watch as A, onBeforeUnmount as Te, toRef as G, onMounted as q, renderList as L } from "vue";
2
+ import { u as X, p as ve, e as P } from "./index-B5qSd5kn.js";
3
3
  import { useRouter as Ie } from "vue-router";
4
- import { t as j } from "./index-abg_ZrfF.js";
5
- import { t as pe } from "./index-BICW93bZ.js";
4
+ import { t as j } from "./index-BdafJZPj.js";
5
+ import { t as pe } from "./index-BU7MW9VF.js";
6
6
  import { _ as Fe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
7
- import { u as oe } from "./index-D8zuI51D.js";
7
+ import { u as re } from "./index-Bz9YYVw5.js";
8
8
  import { useDialogChild as ye, useSnackbar as me, useDialog as we } from "@feedmepos/ui-library";
9
9
  import { w as xe } from "./Modal-DB8M9o1T.js";
10
- import { u as Q } from "./error-K1CakhA9.js";
11
- import { useI18n as re, useCoreStore as ie } from "@feedmepos/mf-common";
12
- import { z as X, a as Z } from "./validator-CTlVogBQ.js";
13
- import { o as Ce } from "./index-CFJQ_HmA.js";
10
+ import { u as W } from "./error-K1CakhA9.js";
11
+ import { useI18n as ie, useCoreStore as se } from "@feedmepos/mf-common";
12
+ import { z as ee, a as ae } from "./validator-CTlVogBQ.js";
13
+ import { o as Ce } from "./index-I2OCChpQ.js";
14
14
  import { c as ke } from "./index-MdV54cWO.js";
15
- import { e as fe } from "./index-DErywACZ.js";
16
- import { P as Ne } from "./PaymentCheckout-DmAAyMaB.js";
17
- const Ve = /* @__PURE__ */ h({
15
+ import { e as fe } from "./index--59tM3Ls.js";
16
+ import { P as Ne } from "./PaymentCheckout-7U8JxO5z.js";
17
+ const Ve = /* @__PURE__ */ R({
18
18
  __name: "Information",
19
19
  props: {
20
20
  terminal: {
@@ -23,25 +23,25 @@ const Ve = /* @__PURE__ */ h({
23
23
  }
24
24
  },
25
25
  setup(T) {
26
- return (p, a) => (g(), S(D, null, [
26
+ return (p, a) => (g(), S($, null, [
27
27
  a[0] || (a[0] = I("b", null, "Name", -1)),
28
- W(": " + z(T.terminal.name), 1),
28
+ Z(": " + J(T.terminal.name), 1),
29
29
  a[1] || (a[1] = I("br", null, null, -1)),
30
30
  a[2] || (a[2] = I("b", null, "Status", -1)),
31
- W(": " + z(T.terminal.status), 1),
31
+ Z(": " + J(T.terminal.status), 1),
32
32
  a[3] || (a[3] = I("br", null, null, -1)),
33
33
  a[4] || (a[4] = I("b", null, "Device ID", -1)),
34
- W(": " + z(T.terminal.deviceId ?? "-"), 1),
34
+ Z(": " + J(T.terminal.deviceId ?? "-"), 1),
35
35
  a[5] || (a[5] = I("br", null, null, -1)),
36
36
  a[6] || (a[6] = I("b", null, "Device Type", -1)),
37
- W(": " + z(T.terminal.deviceType ?? "-"), 1),
37
+ Z(": " + J(T.terminal.deviceType ?? "-"), 1),
38
38
  a[7] || (a[7] = I("br", null, null, -1))
39
39
  ], 64));
40
40
  }
41
- }), Se = { class: "flex items-center gap-8 rounded-md bg-fm-color-neutral-gray-100 px-16 py-12" }, Ue = { class: "fm-typo-en-body-md-400" }, he = { class: "mt-auto pt-24 pb-24" }, Re = /* @__PURE__ */ h({
41
+ }), Se = { class: "flex items-center gap-8 rounded-md bg-fm-color-neutral-gray-100 px-16 py-12" }, Ue = { class: "fm-typo-en-body-md-400" }, he = { class: "mt-auto pt-24 pb-24" }, Re = /* @__PURE__ */ R({
42
42
  __name: "TerminalSaveTemplateDialog",
43
43
  setup(T) {
44
- const p = ye(), { t: a } = re(), b = _(), l = _(""), r = _(""), e = _(!1), d = () => {
44
+ const p = ye(), { t: a } = ie(), b = _(), l = _(""), r = _(""), e = _(!1), d = () => {
45
45
  p.emitData({
46
46
  name: l.value,
47
47
  description: r.value,
@@ -56,20 +56,20 @@ const Ve = /* @__PURE__ */ h({
56
56
  class: "flex flex-col gap-16 min-h-[240px]",
57
57
  onValidationSuccess: d
58
58
  }, {
59
- default: O(() => [
59
+ default: M(() => [
60
60
  I("div", Se, [
61
61
  y(m, {
62
62
  name: "info",
63
63
  class: "shrink-0"
64
64
  }),
65
- I("span", Ue, z(N(a)("payment.terminal_template.scope_info")), 1)
65
+ I("span", Ue, J(N(a)("payment.terminal_template.scope_info")), 1)
66
66
  ]),
67
67
  y(s, {
68
68
  modelValue: l.value,
69
69
  "onUpdate:modelValue": v[0] || (v[0] = (u) => l.value = u),
70
70
  label: "Template Name",
71
71
  "label-mark": "required",
72
- rules: N(X)(N(Z).string().min(1, "Template name is required"))
72
+ rules: N(ee)(N(ae).string().min(1, "Template name is required"))
73
73
  }, null, 8, ["modelValue", "rules"]),
74
74
  y(s, {
75
75
  modelValue: r.value,
@@ -101,13 +101,13 @@ const Ve = /* @__PURE__ */ h({
101
101
  }, Ae = {
102
102
  key: 2,
103
103
  class: "mt-auto pt-24 pb-24"
104
- }, qe = /* @__PURE__ */ h({
104
+ }, qe = /* @__PURE__ */ R({
105
105
  __name: "TerminalApplyTemplateDialog",
106
106
  props: {
107
107
  templates: {}
108
108
  },
109
109
  setup(T) {
110
- const p = T, a = ye(), { t: b } = re(), l = _(""), r = V(
110
+ const p = T, a = ye(), { t: b } = ie(), l = _(""), r = V(
111
111
  () => p.templates.map((d) => ({
112
112
  label: d.isDefault ? `${d.name} (default)` : d.name,
113
113
  value: d._id
@@ -123,7 +123,7 @@ const Ve = /* @__PURE__ */ h({
123
123
  name: "info",
124
124
  class: "mt-4 shrink-0"
125
125
  }),
126
- I("div", Oe, z(N(b)("payment.terminal_template.scope_info")), 1)
126
+ I("div", Oe, J(N(b)("payment.terminal_template.scope_info")), 1)
127
127
  ]),
128
128
  r.value.length === 0 ? (g(), S("div", Me, " No setting template exists for this business and device type yet. ")) : (g(), F(m, {
129
129
  key: 1,
@@ -139,11 +139,11 @@ const Ve = /* @__PURE__ */ h({
139
139
  disabled: !l.value,
140
140
  onClick: e
141
141
  }, null, 8, ["disabled"])
142
- ])) : U("", !0)
142
+ ])) : h("", !0)
143
143
  ]);
144
144
  };
145
145
  }
146
- }), Ge = { key: 0 }, De = { class: "mt-6 space-x-6" }, $e = /* @__PURE__ */ h({
146
+ }), Ge = { key: 0 }, De = { class: "mt-6 space-x-6" }, $e = /* @__PURE__ */ R({
147
147
  __name: "KioskMode",
148
148
  props: {
149
149
  terminal: {
@@ -152,7 +152,7 @@ const Ve = /* @__PURE__ */ h({
152
152
  }
153
153
  },
154
154
  setup(T) {
155
- const { isLoading: p, startAsyncCall: a } = J(!1), b = me(), l = _({
155
+ const { isLoading: p, startAsyncCall: a } = X(!1), b = me(), l = _({
156
156
  enable: !1,
157
157
  password: []
158
158
  }), r = T;
@@ -177,7 +177,7 @@ const Ve = /* @__PURE__ */ h({
177
177
  }
178
178
  return (d, c) => {
179
179
  const v = f("FmSwitch"), m = f("FmPinField"), s = f("FmButton");
180
- return g(), S(D, null, [
180
+ return g(), S($, null, [
181
181
  y(v, {
182
182
  modelValue: l.value.enable,
183
183
  "onUpdate:modelValue": c[0] || (c[0] = (t) => l.value.enable = t),
@@ -189,7 +189,7 @@ const Ve = /* @__PURE__ */ h({
189
189
  modelValue: l.value.password,
190
190
  "onUpdate:modelValue": c[1] || (c[1] = (t) => l.value.password = t)
191
191
  }, null, 8, ["modelValue"])
192
- ])) : U("", !0),
192
+ ])) : h("", !0),
193
193
  I("div", De, [
194
194
  y(s, {
195
195
  variant: "primary",
@@ -202,7 +202,7 @@ const Ve = /* @__PURE__ */ h({
202
202
  ], 64);
203
203
  };
204
204
  }
205
- }), Ee = /* @__PURE__ */ h({
205
+ }), Ee = /* @__PURE__ */ R({
206
206
  __name: "SettingRequest",
207
207
  props: {
208
208
  terminal: {
@@ -211,7 +211,7 @@ const Ve = /* @__PURE__ */ h({
211
211
  }
212
212
  },
213
213
  setup(T) {
214
- const { settingTab: p } = oe({
214
+ const { settingTab: p } = re({
215
215
  settingTab: "kiosk_mode"
216
216
  }), a = [
217
217
  {
@@ -223,29 +223,29 @@ const Ve = /* @__PURE__ */ h({
223
223
  return (r, e) => {
224
224
  var c;
225
225
  const d = f("FmTabs");
226
- return g(), S(D, null, [
226
+ return g(), S($, null, [
227
227
  e[1] || (e[1] = I("p", { className: "mt-1 my-6 text-gray-600" }, [
228
228
  I("b", null, "Note: "),
229
- W(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
229
+ Z(" Setting request will perform remotely without caching so make sure terminal is connected to the network also to our websocket as well. ")
230
230
  ], -1)),
231
231
  y(d, {
232
232
  "model-value": N(p),
233
- "onUpdate:modelValue": e[0] || (e[0] = (v) => ae(p) ? p.value = v : null),
233
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => te(p) ? p.value = v : null),
234
234
  class: "mb-6",
235
235
  items: a
236
236
  }, null, 8, ["model-value"]),
237
- N(p) ? (g(), F(te((c = l.value) == null ? void 0 : c.render), le(ne({ key: 0 }, { terminal: b.terminal })), null, 16)) : U("", !0)
237
+ N(p) ? (g(), F(le((c = l.value) == null ? void 0 : c.render), ne(oe({ key: 0 }, { terminal: b.terminal })), null, 16)) : h("", !0)
238
238
  ], 64);
239
239
  };
240
240
  }
241
241
  }), Le = 2e3, Ye = 12e4, je = "Timed out waiting for the Tyro reader to sync. Please try again.";
242
242
  function Ke(T) {
243
- const { isLoading: p, startLoading: a, stopLoading: b } = J(!1), { t: l } = re(), r = me(), e = _(null), d = V(() => {
244
- var k, B;
243
+ const { isLoading: p, startLoading: a, stopLoading: b } = X(!1), { t: l } = ie(), r = me(), e = _(null), d = V(() => {
244
+ var k, O;
245
245
  const w = (k = T.value.gateways) == null ? void 0 : k.find(
246
- ($) => $.gateway === "Tyro"
246
+ (D) => D.gateway === "Tyro"
247
247
  );
248
- return ((B = w == null ? void 0 : w.config) == null ? void 0 : B.uniqueId) || "";
248
+ return ((O = w == null ? void 0 : w.config) == null ? void 0 : O.uniqueId) || "";
249
249
  }), c = V(() => !!d.value), v = V(() => {
250
250
  var w;
251
251
  return ((w = e.value) == null ? void 0 : w.status) === "ready";
@@ -270,7 +270,7 @@ function Ke(T) {
270
270
  } catch (w) {
271
271
  e.value = null, r.open({
272
272
  type: "error",
273
- message: Q(w)
273
+ message: W(w)
274
274
  });
275
275
  }
276
276
  }
@@ -278,12 +278,12 @@ function Ke(T) {
278
278
  intervalMs: Le,
279
279
  timeoutMs: Ye,
280
280
  onTick: async ({ isCurrentRun: w, stop: k }) => {
281
- var K, H;
282
- const B = await j.readById(T.value._id);
281
+ var K, z;
282
+ const O = await j.readById(T.value._id);
283
283
  if (!w())
284
284
  return;
285
- const $ = (K = B.gateways) == null ? void 0 : K.find((se) => se.gateway === "Tyro");
286
- ($ == null ? void 0 : $.gateway) === "Tyro" && ((H = $ == null ? void 0 : $.config) != null && H.uniqueId) && (k({ invalidate: !1 }), b(), Object.assign(T.value, B), r.open({
285
+ const D = (K = O.gateways) == null ? void 0 : K.find((ue) => ue.gateway === "Tyro");
286
+ (D == null ? void 0 : D.gateway) === "Tyro" && ((z = D == null ? void 0 : D.config) != null && z.uniqueId) && (k({ invalidate: !1 }), b(), Object.assign(T.value, O), r.open({
287
287
  type: "success",
288
288
  message: "Tyro reader created successfully"
289
289
  }));
@@ -297,7 +297,7 @@ function Ke(T) {
297
297
  onError: (w) => {
298
298
  b(), r.open({
299
299
  type: "error",
300
- message: Q(w)
300
+ message: W(w)
301
301
  });
302
302
  }
303
303
  }), C = u.isPolling;
@@ -320,7 +320,7 @@ function Ke(T) {
320
320
  } catch (w) {
321
321
  n(), r.open({
322
322
  type: "error",
323
- message: Q(w)
323
+ message: W(w)
324
324
  });
325
325
  }
326
326
  }
@@ -346,7 +346,7 @@ function Ke(T) {
346
346
  const He = {
347
347
  key: 0,
348
348
  class: "text-sm text-gray-500"
349
- }, ze = { class: "flex mt-6 space-x-6" }, Qe = { class: "flex-1" }, Je = /* @__PURE__ */ h({
349
+ }, ze = { class: "flex mt-6 space-x-6" }, Qe = { class: "flex-1" }, Je = /* @__PURE__ */ R({
350
350
  __name: "SoftposGateway",
351
351
  props: {
352
352
  terminal: {
@@ -359,7 +359,7 @@ const He = {
359
359
  }
360
360
  },
361
361
  setup(T) {
362
- const p = T, a = ie().currentCountry, b = [
362
+ const p = T, a = se().currentCountry, b = [
363
363
  {
364
364
  label: "Fiuu Malaysia",
365
365
  value: "cc.feedme.payment.rms",
@@ -407,12 +407,12 @@ const He = {
407
407
  isUat: !1
408
408
  }), d = () => {
409
409
  e.value.uniqueId = "", e.value.packageId = "", e.value.developerId = "", e.value.isUat = !1;
410
- }, c = V(() => b.filter((R) => R.region === a.value)), v = V(() => c.value.find(
411
- (R) => R.value === e.value.packageId
410
+ }, c = V(() => b.filter((U) => U.region === a.value)), v = V(() => c.value.find(
411
+ (U) => U.value === e.value.packageId
412
412
  )), m = V(
413
413
  () => {
414
- var R;
415
- return ((R = v.value) == null ? void 0 : R.gateway) === "Tyro";
414
+ var U;
415
+ return ((U = v.value) == null ? void 0 : U.gateway) === "Tyro";
416
416
  }
417
417
  ), {
418
418
  isLoading: s,
@@ -423,116 +423,119 @@ const He = {
423
423
  tyroSyncPopoverMessage: C,
424
424
  tyroSyncButtonLabel: n,
425
425
  syncTyroReader: x
426
- } = Ke(l), E = V(() => m.value ? "button" : "submit"), w = V(() => m.value ? n.value : "Save"), k = V(() => m.value ? s.value : !1), B = V(() => m.value ? !i.value || t.value : !1), $ = () => {
426
+ } = Ke(l), E = V(() => m.value ? "button" : "submit"), w = V(() => m.value ? n.value : "Save"), k = V(() => m.value ? s.value : !1), O = V(() => m.value ? !i.value || t.value : !1), D = () => {
427
427
  if (!l.value.gateways || l.value.gateways.length === 0)
428
428
  return d();
429
- const R = l.value.gateways[0];
430
- if (!R.config)
429
+ const U = l.value.gateways[0];
430
+ if (!U.config)
431
431
  return d();
432
- if (R.gateway === "Tyro") {
432
+ if (U.gateway === "Tyro") {
433
433
  e.value = {
434
- packageId: R.config.packageId,
435
- uniqueId: R.config.uniqueId,
434
+ packageId: U.config.packageId,
435
+ uniqueId: U.config.uniqueId,
436
436
  developerId: "",
437
437
  isUat: !1
438
438
  };
439
439
  return;
440
440
  }
441
- switch (R.gateway) {
441
+ switch (U.gateway) {
442
442
  case "Fiuu":
443
443
  e.value = {
444
- packageId: R.config.packageId,
445
- uniqueId: R.config.uniqueId,
444
+ packageId: U.config.packageId,
445
+ uniqueId: U.config.uniqueId,
446
446
  developerId: "",
447
447
  isUat: !1
448
448
  };
449
449
  break;
450
450
  case "Softspace":
451
451
  case "Digio":
452
- const M = JSON.parse(R.config.uniqueId);
452
+ const B = JSON.parse(U.config.uniqueId);
453
453
  e.value = {
454
- packageId: R.config.packageId,
455
- uniqueId: M.uniqueId,
456
- developerId: M.developerId,
457
- isUat: M.isUat
454
+ packageId: U.config.packageId,
455
+ uniqueId: B.uniqueId,
456
+ developerId: B.developerId,
457
+ isUat: B.isUat
458
458
  };
459
459
  return;
460
460
  }
461
461
  };
462
- A(l, $), q($);
463
- const K = () => {
462
+ A(l, D), q(D);
463
+ const K = (U) => {
464
+ var B, Q, H;
465
+ if (((H = (Q = (B = l.value.gateways) == null ? void 0 : B[0]) == null ? void 0 : Q.config) == null ? void 0 : H.packageId) === U)
466
+ return D();
464
467
  e.value.uniqueId = "", e.value.developerId = "", e.value.isUat = !1;
465
468
  };
466
- async function H() {
467
- const R = v.value;
468
- if (!R)
469
+ async function z() {
470
+ const U = v.value;
471
+ if (!U)
469
472
  return;
470
- let M = e.value.uniqueId;
471
- R.isLegacy || (M = JSON.stringify({
473
+ let B = e.value.uniqueId;
474
+ U.isLegacy || (B = JSON.stringify({
472
475
  uniqueId: e.value.uniqueId,
473
476
  developerId: e.value.developerId,
474
477
  isUat: e.value.isUat
475
478
  }));
476
- const ue = {
477
- gateway: R.gateway,
479
+ const Q = {
480
+ gateway: U.gateway,
478
481
  config: {
479
- packageId: R.value,
480
- uniqueId: M
482
+ packageId: U.value,
483
+ uniqueId: B
481
484
  }
482
485
  };
483
- (!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = ue, await p.onUpdate(l.value);
486
+ (!l.value.gateways || l.value.gateways.length > 1) && (l.value.gateways = []), l.value.gateways[0] = Q, await p.onUpdate(l.value);
484
487
  }
485
- async function se(R) {
486
- var M;
487
- (M = l.value.gateways) == null || M.splice(R, 1), p.onUpdate(l.value);
488
+ async function ue(U) {
489
+ var B;
490
+ (B = l.value.gateways) == null || B.splice(U, 1), p.onUpdate(l.value);
488
491
  }
489
492
  function de() {
490
493
  m.value && x();
491
494
  }
492
- return (R, M) => {
493
- const ue = f("FmSelect"), ee = f("FmTextField"), ge = f("FmCheckbox"), ce = f("FmButton"), be = f("FmTooltip"), _e = f("FmForm");
495
+ return (U, B) => {
496
+ const Q = f("FmSelect"), H = f("FmTextField"), ge = f("FmCheckbox"), ce = f("FmButton"), be = f("FmTooltip"), _e = f("FmForm");
494
497
  return g(), F(_e, {
495
498
  ref: r.value,
496
499
  class: "flex flex-col gap-16 w-[500px]",
497
- onValidationSuccess: H
500
+ onValidationSuccess: z
498
501
  }, {
499
- default: O(() => [
500
- y(ue, {
502
+ default: M(() => [
503
+ y(Q, {
501
504
  modelValue: e.value.packageId,
502
505
  "onUpdate:modelValue": [
503
- M[0] || (M[0] = (Y) => e.value.packageId = Y),
506
+ B[0] || (B[0] = (Y) => e.value.packageId = Y),
504
507
  K
505
508
  ],
506
509
  label: "Package ID",
507
510
  items: c.value
508
511
  }, null, 8, ["modelValue", "items"]),
509
- v.value ? (g(), S(D, { key: 0 }, [
510
- m.value ? (g(), F(ee, {
512
+ v.value ? (g(), S($, { key: 0 }, [
513
+ m.value ? (g(), F(H, {
511
514
  key: 0,
512
515
  "model-value": N(o),
513
516
  label: "Unique ID (Reader ID)",
514
517
  disabled: ""
515
- }, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(), S(D, { key: 1 }, [
516
- y(ee, {
518
+ }, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(), S($, { key: 1 }, [
519
+ y(H, {
517
520
  modelValue: e.value.uniqueId,
518
- "onUpdate:modelValue": M[1] || (M[1] = (Y) => e.value.uniqueId = Y),
521
+ "onUpdate:modelValue": B[1] || (B[1] = (Y) => e.value.uniqueId = Y),
519
522
  label: "Unique ID (TID)"
520
523
  }, null, 8, ["modelValue"]),
521
- v.value.isOutdated ? (g(), S("span", He, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : U("", !0)
522
- ], 64)) : (g(), S(D, { key: 2 }, [
523
- y(ee, {
524
+ v.value.isOutdated ? (g(), S("span", He, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : h("", !0)
525
+ ], 64)) : (g(), S($, { key: 2 }, [
526
+ y(H, {
524
527
  modelValue: e.value.developerId,
525
- "onUpdate:modelValue": M[2] || (M[2] = (Y) => e.value.developerId = Y),
528
+ "onUpdate:modelValue": B[2] || (B[2] = (Y) => e.value.developerId = Y),
526
529
  label: "Developer ID (MID)"
527
530
  }, null, 8, ["modelValue"]),
528
- y(ee, {
531
+ y(H, {
529
532
  modelValue: e.value.uniqueId,
530
- "onUpdate:modelValue": M[3] || (M[3] = (Y) => e.value.uniqueId = Y),
533
+ "onUpdate:modelValue": B[3] || (B[3] = (Y) => e.value.uniqueId = Y),
531
534
  label: "Unique ID (TID)"
532
535
  }, null, 8, ["modelValue"]),
533
536
  y(ge, {
534
537
  modelValue: e.value.isUat,
535
- "onUpdate:modelValue": M[4] || (M[4] = (Y) => e.value.isUat = Y),
538
+ "onUpdate:modelValue": B[4] || (B[4] = (Y) => e.value.isUat = Y),
536
539
  label: "Is UAT (Test)",
537
540
  value: "1"
538
541
  }, null, 8, ["modelValue"])
@@ -543,23 +546,23 @@ const He = {
543
546
  class: "flex-1",
544
547
  variant: "secondary",
545
548
  label: "Delete",
546
- onclick: () => se(0)
547
- }, null, 8, ["onclick"])) : U("", !0),
548
- m.value && N(u) && B.value ? (g(), F(be, {
549
+ onclick: () => ue(0)
550
+ }, null, 8, ["onclick"])) : h("", !0),
551
+ m.value && N(u) && O.value ? (g(), F(be, {
549
552
  key: 1,
550
553
  class: "flex-1",
551
554
  variant: "plain",
552
555
  placement: "top",
553
556
  content: N(C)
554
557
  }, {
555
- default: O(() => [
558
+ default: M(() => [
556
559
  I("div", Qe, [
557
560
  y(ce, {
558
561
  type: E.value,
559
562
  class: "w-full",
560
563
  variant: "primary",
561
564
  loading: k.value,
562
- disabled: B.value,
565
+ disabled: O.value,
563
566
  label: w.value,
564
567
  onClick: de
565
568
  }, null, 8, ["type", "loading", "disabled", "label"])
@@ -572,12 +575,12 @@ const He = {
572
575
  class: "flex-1",
573
576
  variant: "primary",
574
577
  loading: k.value,
575
- disabled: B.value,
578
+ disabled: O.value,
576
579
  label: w.value,
577
580
  onClick: de
578
581
  }, null, 8, ["type", "loading", "disabled", "label"]))
579
582
  ])
580
- ], 64)) : U("", !0)
583
+ ], 64)) : h("", !0)
581
584
  ]),
582
585
  _: 1
583
586
  }, 512);
@@ -586,7 +589,7 @@ const He = {
586
589
  }), We = {
587
590
  key: 0,
588
591
  class: "flex items-center justify-center min-h-[80vh]"
589
- }, Xe = { class: "flex mt-6 space-x-6" }, Ze = /* @__PURE__ */ h({
592
+ }, Xe = { class: "flex mt-6 space-x-6" }, Ze = /* @__PURE__ */ R({
590
593
  __name: "TerminalGateway",
591
594
  props: {
592
595
  terminal: {
@@ -599,7 +602,7 @@ const He = {
599
602
  }
600
603
  },
601
604
  setup(T) {
602
- const { isLoading: p, startAsyncCall: a } = J(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
605
+ const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
603
606
  terminalId: ""
604
607
  }), v = () => {
605
608
  c.value.terminalId = "", d.value = -1;
@@ -638,13 +641,13 @@ const He = {
638
641
  d.value > -1 ? l.value.ecrs[d.value] = { gateway: "FeedMe", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "FeedMe", config: c.value })), b.onUpdate(l.value);
639
642
  })
640
643
  }, {
641
- default: O(() => [
644
+ default: M(() => [
642
645
  y(C, {
643
646
  modelValue: c.value.terminalId,
644
647
  "onUpdate:modelValue": i[0] || (i[0] = (E) => c.value.terminalId = E),
645
648
  label: "Terminal ID",
646
649
  items: s.value,
647
- rules: N(X)(N(Z).string())
650
+ rules: N(ee)(N(ae).string())
648
651
  }, null, 8, ["modelValue", "items", "rules"]),
649
652
  I("div", Xe, [
650
653
  d.value > -1 ? (g(), F(n, {
@@ -653,7 +656,7 @@ const He = {
653
656
  variant: "secondary",
654
657
  label: "Delete",
655
658
  onclick: () => t(d.value)
656
- }, null, 8, ["onclick"])) : U("", !0),
659
+ }, null, 8, ["onclick"])) : h("", !0),
657
660
  y(n, {
658
661
  type: "submit",
659
662
  class: "flex-1",
@@ -666,7 +669,7 @@ const He = {
666
669
  }, 512));
667
670
  };
668
671
  }
669
- }), ea = { class: "flex mt-6 space-x-6" }, aa = /* @__PURE__ */ h({
672
+ }), ea = { class: "flex mt-6 space-x-6" }, aa = /* @__PURE__ */ R({
670
673
  __name: "GhlGateway",
671
674
  props: {
672
675
  terminal: {
@@ -713,7 +716,7 @@ const He = {
713
716
  l.value > -1 ? a.value.ecrs[l.value] = { gateway: "Ghl", config: r.value } : (a.value.ecrs || (a.value.ecrs = []), a.value.ecrs.push({ gateway: "Ghl", config: r.value })), p.onUpdate(a.value);
714
717
  })
715
718
  }, {
716
- default: O(() => [
719
+ default: M(() => [
717
720
  y(s, {
718
721
  modelValue: r.value.merchantId,
719
722
  "onUpdate:modelValue": m[0] || (m[0] = (u) => r.value.merchantId = u),
@@ -738,7 +741,7 @@ const He = {
738
741
  variant: "secondary",
739
742
  label: "Delete",
740
743
  onclick: () => c(l.value)
741
- }, null, 8, ["onclick"])) : U("", !0),
744
+ }, null, 8, ["onclick"])) : h("", !0),
742
745
  y(o, {
743
746
  type: "submit",
744
747
  class: "flex-1",
@@ -751,7 +754,7 @@ const He = {
751
754
  }, 512);
752
755
  };
753
756
  }
754
- }), ta = { class: "flex items-end" }, la = { class: "flex flex-wrap gap-8 items-center mt-4" }, na = { class: "flex mt-6 space-x-6" }, oa = /* @__PURE__ */ h({
757
+ }), ta = { class: "flex items-end" }, la = { class: "flex flex-wrap gap-8 items-center mt-4" }, na = { class: "flex mt-6 space-x-6" }, oa = /* @__PURE__ */ R({
755
758
  __name: "MaybankGateway",
756
759
  props: {
757
760
  terminal: {
@@ -818,7 +821,7 @@ const He = {
818
821
  })), p.onUpdate(a.value);
819
822
  })
820
823
  }, {
821
- default: O(() => [
824
+ default: M(() => [
822
825
  y(o, {
823
826
  modelValue: e.value.ip,
824
827
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
@@ -844,7 +847,7 @@ const He = {
844
847
  })
845
848
  ]),
846
849
  I("div", la, [
847
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
850
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
848
851
  key: n,
849
852
  label: n,
850
853
  removable: !0,
@@ -858,7 +861,7 @@ const He = {
858
861
  variant: "secondary",
859
862
  label: "Delete",
860
863
  onclick: () => v(l.value)
861
- }, null, 8, ["onclick"])) : U("", !0),
864
+ }, null, 8, ["onclick"])) : h("", !0),
862
865
  y(i, {
863
866
  type: "submit",
864
867
  class: "flex-1",
@@ -871,7 +874,7 @@ const He = {
871
874
  }, 512);
872
875
  };
873
876
  }
874
- }), ra = { class: "flex items-end" }, ia = { class: "flex flex-wrap gap-8 items-center mt-4" }, sa = { class: "flex mt-6 space-x-6" }, ua = /* @__PURE__ */ h({
877
+ }), ra = { class: "flex items-end" }, ia = { class: "flex flex-wrap gap-8 items-center mt-4" }, sa = { class: "flex mt-6 space-x-6" }, ua = /* @__PURE__ */ R({
875
878
  __name: "Maybank2Gateway",
876
879
  props: {
877
880
  terminal: {
@@ -938,7 +941,7 @@ const He = {
938
941
  })), p.onUpdate(a.value);
939
942
  })
940
943
  }, {
941
- default: O(() => [
944
+ default: M(() => [
942
945
  y(o, {
943
946
  modelValue: e.value.ip,
944
947
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
@@ -964,7 +967,7 @@ const He = {
964
967
  })
965
968
  ]),
966
969
  I("div", ia, [
967
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
970
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
968
971
  key: n,
969
972
  label: n,
970
973
  removable: !0,
@@ -978,7 +981,7 @@ const He = {
978
981
  variant: "secondary",
979
982
  label: "Delete",
980
983
  onclick: () => v(l.value)
981
- }, null, 8, ["onclick"])) : U("", !0),
984
+ }, null, 8, ["onclick"])) : h("", !0),
982
985
  y(i, {
983
986
  type: "submit",
984
987
  class: "flex-1",
@@ -991,7 +994,7 @@ const He = {
991
994
  }, 512);
992
995
  };
993
996
  }
994
- }), ca = { class: "flex items-end" }, ma = { class: "flex flex-wrap gap-8 items-center mt-4" }, da = { class: "flex mt-6 space-x-6" }, pa = /* @__PURE__ */ h({
997
+ }), ca = { class: "flex items-end" }, ma = { class: "flex flex-wrap gap-8 items-center mt-4" }, da = { class: "flex mt-6 space-x-6" }, pa = /* @__PURE__ */ R({
995
998
  __name: "Maybank3Gateway",
996
999
  props: {
997
1000
  terminal: {
@@ -1058,7 +1061,7 @@ const He = {
1058
1061
  })), p.onUpdate(a.value);
1059
1062
  })
1060
1063
  }, {
1061
- default: O(() => [
1064
+ default: M(() => [
1062
1065
  y(o, {
1063
1066
  modelValue: e.value.receiptName,
1064
1067
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
@@ -1079,7 +1082,7 @@ const He = {
1079
1082
  })
1080
1083
  ]),
1081
1084
  I("div", ma, [
1082
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1085
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1083
1086
  key: n,
1084
1087
  label: n,
1085
1088
  removable: !0,
@@ -1093,7 +1096,7 @@ const He = {
1093
1096
  variant: "secondary",
1094
1097
  label: "Delete",
1095
1098
  onclick: () => v(l.value)
1096
- }, null, 8, ["onclick"])) : U("", !0),
1099
+ }, null, 8, ["onclick"])) : h("", !0),
1097
1100
  y(i, {
1098
1101
  type: "submit",
1099
1102
  class: "flex-1",
@@ -1106,7 +1109,7 @@ const He = {
1106
1109
  }, 512);
1107
1110
  };
1108
1111
  }
1109
- }), va = { class: "flex items-end" }, ya = { class: "flex flex-wrap gap-8 items-center mt-4" }, fa = { class: "flex mt-6 space-x-6" }, ga = /* @__PURE__ */ h({
1112
+ }), va = { class: "flex items-end" }, ya = { class: "flex flex-wrap gap-8 items-center mt-4" }, fa = { class: "flex mt-6 space-x-6" }, ga = /* @__PURE__ */ R({
1110
1113
  __name: "NetsGateway",
1111
1114
  props: {
1112
1115
  terminal: {
@@ -1173,7 +1176,7 @@ const He = {
1173
1176
  })), p.onUpdate(a.value);
1174
1177
  })
1175
1178
  }, {
1176
- default: O(() => [
1179
+ default: M(() => [
1177
1180
  y(o, {
1178
1181
  modelValue: e.value.ip,
1179
1182
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
@@ -1199,7 +1202,7 @@ const He = {
1199
1202
  })
1200
1203
  ]),
1201
1204
  I("div", ya, [
1202
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1205
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1203
1206
  key: n,
1204
1207
  label: n,
1205
1208
  removable: !0,
@@ -1213,7 +1216,7 @@ const He = {
1213
1216
  variant: "secondary",
1214
1217
  label: "Delete",
1215
1218
  onclick: () => v(l.value)
1216
- }, null, 8, ["onclick"])) : U("", !0),
1219
+ }, null, 8, ["onclick"])) : h("", !0),
1217
1220
  y(i, {
1218
1221
  type: "submit",
1219
1222
  class: "flex-1",
@@ -1226,7 +1229,7 @@ const He = {
1226
1229
  }, 512);
1227
1230
  };
1228
1231
  }
1229
- }), ba = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ta = { class: "flex mt-6 space-x-6" }, Ia = /* @__PURE__ */ h({
1232
+ }), ba = { class: "flex items-end" }, _a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ta = { class: "flex mt-6 space-x-6" }, Ia = /* @__PURE__ */ R({
1230
1233
  __name: "KBankGateway",
1231
1234
  props: {
1232
1235
  terminal: {
@@ -1291,7 +1294,7 @@ const He = {
1291
1294
  })), p.onUpdate(a.value);
1292
1295
  })
1293
1296
  }, {
1294
- default: O(() => [
1297
+ default: M(() => [
1295
1298
  y(o, {
1296
1299
  modelValue: e.value.receiptName,
1297
1300
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
@@ -1312,7 +1315,7 @@ const He = {
1312
1315
  })
1313
1316
  ]),
1314
1317
  I("div", _a, [
1315
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1318
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1316
1319
  key: n,
1317
1320
  label: n,
1318
1321
  removable: !0,
@@ -1326,7 +1329,7 @@ const He = {
1326
1329
  variant: "secondary",
1327
1330
  label: "Delete",
1328
1331
  onclick: () => v(l.value)
1329
- }, null, 8, ["onclick"])) : U("", !0),
1332
+ }, null, 8, ["onclick"])) : h("", !0),
1330
1333
  y(i, {
1331
1334
  type: "submit",
1332
1335
  class: "flex-1",
@@ -1339,7 +1342,7 @@ const He = {
1339
1342
  }, 512);
1340
1343
  };
1341
1344
  }
1342
- }), Fa = { class: "flex mt-6 space-x-6" }, wa = /* @__PURE__ */ h({
1345
+ }), Fa = { class: "flex mt-6 space-x-6" }, wa = /* @__PURE__ */ R({
1343
1346
  __name: "Ghl2Gateway",
1344
1347
  props: {
1345
1348
  terminal: {
@@ -1392,7 +1395,7 @@ const He = {
1392
1395
  }), p.onUpdate(a.value);
1393
1396
  })
1394
1397
  }, {
1395
- default: O(() => [
1398
+ default: M(() => [
1396
1399
  y(s, {
1397
1400
  modelValue: r.value.ip,
1398
1401
  "onUpdate:modelValue": m[0] || (m[0] = (i) => r.value.ip = i),
@@ -1411,7 +1414,7 @@ const He = {
1411
1414
  variant: "secondary",
1412
1415
  label: "Delete",
1413
1416
  onclick: () => c(l.value)
1414
- }, null, 8, ["onclick"])) : U("", !0),
1417
+ }, null, 8, ["onclick"])) : h("", !0),
1415
1418
  y(t, {
1416
1419
  type: "submit",
1417
1420
  class: "flex-1",
@@ -1424,7 +1427,7 @@ const He = {
1424
1427
  }, 512);
1425
1428
  };
1426
1429
  }
1427
- }), xa = { class: "flex items-end" }, Ca = { class: "flex flex-wrap gap-8 items-center mt-4" }, ka = { class: "flex mt-6 space-x-6" }, Na = /* @__PURE__ */ h({
1430
+ }), xa = { class: "flex items-end" }, Ca = { class: "flex flex-wrap gap-8 items-center mt-4" }, ka = { class: "flex mt-6 space-x-6" }, Na = /* @__PURE__ */ R({
1428
1431
  __name: "Ghl3Gateway",
1429
1432
  props: {
1430
1433
  terminal: {
@@ -1493,7 +1496,7 @@ const He = {
1493
1496
  })), p.onUpdate(a.value);
1494
1497
  })
1495
1498
  }, {
1496
- default: O(() => [
1499
+ default: M(() => [
1497
1500
  y(o, {
1498
1501
  modelValue: e.value.receiptName,
1499
1502
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
@@ -1514,7 +1517,7 @@ const He = {
1514
1517
  })
1515
1518
  ]),
1516
1519
  I("div", Ca, [
1517
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1520
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1518
1521
  key: n,
1519
1522
  label: n,
1520
1523
  removable: !0,
@@ -1528,7 +1531,7 @@ const He = {
1528
1531
  variant: "secondary",
1529
1532
  label: "Delete",
1530
1533
  onclick: () => v(l.value)
1531
- }, null, 8, ["onclick"])) : U("", !0),
1534
+ }, null, 8, ["onclick"])) : h("", !0),
1532
1535
  y(i, {
1533
1536
  type: "submit",
1534
1537
  class: "flex-1",
@@ -1541,7 +1544,7 @@ const He = {
1541
1544
  }, 512);
1542
1545
  };
1543
1546
  }
1544
- }), Va = { class: "flex items-end" }, Sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ua = { class: "flex mt-6 space-x-6" }, ha = /* @__PURE__ */ h({
1547
+ }), Va = { class: "flex items-end" }, Sa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ua = { class: "flex mt-6 space-x-6" }, ha = /* @__PURE__ */ R({
1545
1548
  __name: "HlbbGateway",
1546
1549
  props: {
1547
1550
  terminal: {
@@ -1610,7 +1613,7 @@ const He = {
1610
1613
  })), p.onUpdate(a.value);
1611
1614
  })
1612
1615
  }, {
1613
- default: O(() => [
1616
+ default: M(() => [
1614
1617
  y(o, {
1615
1618
  modelValue: e.value.receiptName,
1616
1619
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
@@ -1631,7 +1634,7 @@ const He = {
1631
1634
  })
1632
1635
  ]),
1633
1636
  I("div", Sa, [
1634
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1637
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1635
1638
  key: n,
1636
1639
  label: n,
1637
1640
  removable: !0,
@@ -1645,7 +1648,7 @@ const He = {
1645
1648
  variant: "secondary",
1646
1649
  label: "Delete",
1647
1650
  onclick: () => v(l.value)
1648
- }, null, 8, ["onclick"])) : U("", !0),
1651
+ }, null, 8, ["onclick"])) : h("", !0),
1649
1652
  y(i, {
1650
1653
  type: "submit",
1651
1654
  class: "flex-1",
@@ -1658,7 +1661,7 @@ const He = {
1658
1661
  }, 512);
1659
1662
  };
1660
1663
  }
1661
- }), Ra = { class: "flex items-end" }, Pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ba = { class: "flex mt-6 space-x-6" }, Oa = /* @__PURE__ */ h({
1664
+ }), Ra = { class: "flex items-end" }, Pa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ba = { class: "flex mt-6 space-x-6" }, Oa = /* @__PURE__ */ R({
1662
1665
  __name: "GlobalPaymentsGateway",
1663
1666
  props: {
1664
1667
  terminal: {
@@ -1727,7 +1730,7 @@ const He = {
1727
1730
  })), p.onUpdate(a.value);
1728
1731
  })
1729
1732
  }, {
1730
- default: O(() => [
1733
+ default: M(() => [
1731
1734
  y(o, {
1732
1735
  modelValue: e.value.ip,
1733
1736
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
@@ -1753,7 +1756,7 @@ const He = {
1753
1756
  })
1754
1757
  ]),
1755
1758
  I("div", Pa, [
1756
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1759
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1757
1760
  key: n,
1758
1761
  label: n,
1759
1762
  removable: !0,
@@ -1767,7 +1770,7 @@ const He = {
1767
1770
  variant: "secondary",
1768
1771
  label: "Delete",
1769
1772
  onclick: () => v(l.value)
1770
- }, null, 8, ["onclick"])) : U("", !0),
1773
+ }, null, 8, ["onclick"])) : h("", !0),
1771
1774
  y(i, {
1772
1775
  type: "submit",
1773
1776
  class: "flex-1",
@@ -1780,7 +1783,7 @@ const He = {
1780
1783
  }, 512);
1781
1784
  };
1782
1785
  }
1783
- }), Ma = { class: "flex items-end" }, Aa = { class: "flex flex-wrap gap-8 items-center mt-4" }, qa = { class: "flex mt-6 space-x-6" }, Ga = /* @__PURE__ */ h({
1786
+ }), Ma = { class: "flex items-end" }, Aa = { class: "flex flex-wrap gap-8 items-center mt-4" }, qa = { class: "flex mt-6 space-x-6" }, Ga = /* @__PURE__ */ R({
1784
1787
  __name: "OmaGateway",
1785
1788
  props: {
1786
1789
  terminal: {
@@ -1847,7 +1850,7 @@ const He = {
1847
1850
  })), p.onUpdate(a.value);
1848
1851
  })
1849
1852
  }, {
1850
- default: O(() => [
1853
+ default: M(() => [
1851
1854
  y(o, {
1852
1855
  modelValue: e.value.receiptName,
1853
1856
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.receiptName = n),
@@ -1868,7 +1871,7 @@ const He = {
1868
1871
  })
1869
1872
  ]),
1870
1873
  I("div", Aa, [
1871
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1874
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1872
1875
  key: n,
1873
1876
  label: n,
1874
1877
  removable: !0,
@@ -1882,7 +1885,7 @@ const He = {
1882
1885
  variant: "secondary",
1883
1886
  label: "Delete",
1884
1887
  onclick: () => v(l.value)
1885
- }, null, 8, ["onclick"])) : U("", !0),
1888
+ }, null, 8, ["onclick"])) : h("", !0),
1886
1889
  y(i, {
1887
1890
  type: "submit",
1888
1891
  class: "flex-1",
@@ -1895,7 +1898,7 @@ const He = {
1895
1898
  }, 512);
1896
1899
  };
1897
1900
  }
1898
- }), Da = { class: "flex items-end" }, $a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ea = { class: "flex mt-6 space-x-6" }, La = /* @__PURE__ */ h({
1901
+ }), Da = { class: "flex items-end" }, $a = { class: "flex flex-wrap gap-8 items-center mt-4" }, Ea = { class: "flex mt-6 space-x-6" }, La = /* @__PURE__ */ R({
1899
1902
  __name: "RevenueGateway",
1900
1903
  props: {
1901
1904
  terminal: {
@@ -1968,13 +1971,13 @@ const He = {
1968
1971
  })), p.onUpdate(a.value);
1969
1972
  })
1970
1973
  }, {
1971
- default: O(() => [
1974
+ default: M(() => [
1972
1975
  y(o, {
1973
1976
  modelValue: e.value.ip,
1974
1977
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
1975
1978
  label: "Terminal IP Address",
1976
1979
  "label-info": "Terminal WiFi IP with optional port, e.g. 192.168.1.50:8080 (defaults to port 8080)",
1977
- rules: N(X)(N(Z).string().min(1))
1980
+ rules: N(ee)(N(ae).string().min(1))
1978
1981
  }, null, 8, ["modelValue", "rules"]),
1979
1982
  y(o, {
1980
1983
  modelValue: e.value.receiptName,
@@ -1996,7 +1999,7 @@ const He = {
1996
1999
  })
1997
2000
  ]),
1998
2001
  I("div", $a, [
1999
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
2002
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
2000
2003
  key: n,
2001
2004
  label: n,
2002
2005
  removable: !0,
@@ -2010,7 +2013,7 @@ const He = {
2010
2013
  variant: "secondary",
2011
2014
  label: "Delete",
2012
2015
  onclick: () => v(l.value)
2013
- }, null, 8, ["onclick"])) : U("", !0),
2016
+ }, null, 8, ["onclick"])) : h("", !0),
2014
2017
  y(i, {
2015
2018
  type: "submit",
2016
2019
  class: "flex-1",
@@ -2026,7 +2029,7 @@ const He = {
2026
2029
  }), Ya = {
2027
2030
  key: 0,
2028
2031
  class: "flex items-center justify-center min-h-[80vh]"
2029
- }, ja = { class: "flex mt-6 space-x-6" }, Ka = /* @__PURE__ */ h({
2032
+ }, ja = { class: "flex mt-6 space-x-6" }, Ka = /* @__PURE__ */ R({
2030
2033
  __name: "BeamGateway",
2031
2034
  props: {
2032
2035
  terminal: {
@@ -2039,7 +2042,7 @@ const He = {
2039
2042
  }
2040
2043
  },
2041
2044
  setup(T) {
2042
- const { isLoading: p, startAsyncCall: a } = J(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
2045
+ const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
2043
2046
  externalTerminalId: ""
2044
2047
  }), v = () => {
2045
2048
  c.value.externalTerminalId = "", d.value = -1;
@@ -2081,13 +2084,13 @@ const He = {
2081
2084
  d.value > -1 ? l.value.ecrs[d.value] = { gateway: "Beam", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "Beam", config: c.value })), b.onUpdate(l.value);
2082
2085
  })
2083
2086
  }, {
2084
- default: O(() => [
2087
+ default: M(() => [
2085
2088
  y(C, {
2086
2089
  modelValue: c.value.externalTerminalId,
2087
2090
  "onUpdate:modelValue": i[0] || (i[0] = (E) => c.value.externalTerminalId = E),
2088
2091
  label: "External Terminal",
2089
2092
  items: s.value,
2090
- rules: N(X)(N(Z).string().min(1, "External terminal is required"))
2093
+ rules: N(ee)(N(ae).string().min(1, "External terminal is required"))
2091
2094
  }, null, 8, ["modelValue", "items", "rules"]),
2092
2095
  I("div", ja, [
2093
2096
  d.value > -1 ? (g(), F(n, {
@@ -2096,7 +2099,7 @@ const He = {
2096
2099
  variant: "secondary",
2097
2100
  label: "Delete",
2098
2101
  onclick: () => t(d.value)
2099
- }, null, 8, ["onclick"])) : U("", !0),
2102
+ }, null, 8, ["onclick"])) : h("", !0),
2100
2103
  y(n, {
2101
2104
  type: "submit",
2102
2105
  class: "flex-1",
@@ -2112,7 +2115,7 @@ const He = {
2112
2115
  }), Ha = {
2113
2116
  key: 0,
2114
2117
  class: "flex items-center justify-center min-h-[80vh]"
2115
- }, za = { class: "flex mt-6 space-x-6" }, Qa = /* @__PURE__ */ h({
2118
+ }, za = { class: "flex mt-6 space-x-6" }, Qa = /* @__PURE__ */ R({
2116
2119
  __name: "BriGateway",
2117
2120
  props: {
2118
2121
  terminal: {
@@ -2125,7 +2128,7 @@ const He = {
2125
2128
  }
2126
2129
  },
2127
2130
  setup(T) {
2128
- const { isLoading: p, startAsyncCall: a } = J(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
2131
+ const { isLoading: p, startAsyncCall: a } = X(), b = T, l = G(() => b.terminal), r = _(), e = _(), d = _(-1), c = _({
2129
2132
  externalTerminalId: ""
2130
2133
  }), v = () => {
2131
2134
  c.value.externalTerminalId = "", d.value = -1;
@@ -2167,14 +2170,14 @@ const He = {
2167
2170
  d.value > -1 ? l.value.ecrs[d.value] = { gateway: "Bri", config: c.value } : (l.value.ecrs || (l.value.ecrs = []), l.value.ecrs.push({ gateway: "Bri", config: c.value })), b.onUpdate(l.value);
2168
2171
  })
2169
2172
  }, {
2170
- default: O(() => [
2173
+ default: M(() => [
2171
2174
  y(n, {
2172
2175
  modelValue: c.value.externalTerminalId,
2173
2176
  "onUpdate:modelValue": u[0] || (u[0] = (w) => c.value.externalTerminalId = w),
2174
2177
  label: "External Terminal",
2175
2178
  items: s.value,
2176
2179
  "helper-text": t.value,
2177
- rules: N(X)(N(Z).string().min(1, "External terminal is required"))
2180
+ rules: N(ee)(N(ae).string().min(1, "External terminal is required"))
2178
2181
  }, null, 8, ["modelValue", "items", "helper-text", "rules"]),
2179
2182
  I("div", za, [
2180
2183
  d.value > -1 ? (g(), F(x, {
@@ -2183,7 +2186,7 @@ const He = {
2183
2186
  variant: "secondary",
2184
2187
  label: "Delete",
2185
2188
  onclick: () => o(d.value)
2186
- }, null, 8, ["onclick"])) : U("", !0),
2189
+ }, null, 8, ["onclick"])) : h("", !0),
2187
2190
  y(x, {
2188
2191
  type: "submit",
2189
2192
  class: "flex-1",
@@ -2196,7 +2199,7 @@ const He = {
2196
2199
  }, 512));
2197
2200
  };
2198
2201
  }
2199
- }), Ja = { class: "flex items-end" }, Wa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Xa = { class: "flex mt-6 space-x-6" }, Za = /* @__PURE__ */ h({
2202
+ }), Ja = { class: "flex items-end" }, Wa = { class: "flex flex-wrap gap-8 items-center mt-4" }, Xa = { class: "flex mt-6 space-x-6" }, Za = /* @__PURE__ */ R({
2200
2203
  __name: "PbbGateway",
2201
2204
  props: {
2202
2205
  terminal: {
@@ -2263,7 +2266,7 @@ const He = {
2263
2266
  })), p.onUpdate(a.value);
2264
2267
  })
2265
2268
  }, {
2266
- default: O(() => [
2269
+ default: M(() => [
2267
2270
  y(o, {
2268
2271
  modelValue: e.value.ip,
2269
2272
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
@@ -2289,7 +2292,7 @@ const He = {
2289
2292
  })
2290
2293
  ]),
2291
2294
  I("div", Wa, [
2292
- (g(!0), S(D, null, L(e.value.cardTypes, (n) => (g(), F(u, {
2295
+ (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
2293
2296
  key: n,
2294
2297
  label: n,
2295
2298
  removable: !0,
@@ -2303,7 +2306,7 @@ const He = {
2303
2306
  variant: "secondary",
2304
2307
  label: "Delete",
2305
2308
  onclick: () => v(l.value)
2306
- }, null, 8, ["onclick"])) : U("", !0),
2309
+ }, null, 8, ["onclick"])) : h("", !0),
2307
2310
  y(i, {
2308
2311
  type: "submit",
2309
2312
  class: "flex-1",
@@ -2316,7 +2319,7 @@ const He = {
2316
2319
  }, 512);
2317
2320
  };
2318
2321
  }
2319
- }), et = { class: "flex items-center" }, at = { class: "w-[260px] self-start" }, tt = { class: "flex-1" }, lt = /* @__PURE__ */ h({
2322
+ }), et = { class: "flex items-center" }, at = { class: "w-[260px] self-start" }, tt = { class: "flex-1" }, lt = /* @__PURE__ */ R({
2320
2323
  __name: "EcrGateway",
2321
2324
  props: {
2322
2325
  terminal: {
@@ -2426,9 +2429,9 @@ const He = {
2426
2429
  render: Qa,
2427
2430
  region: [P.F_COUNTRY.enum.ID]
2428
2431
  }
2429
- ], b = V(() => a.find((c) => c.value === e.value)), l = ie().currentCountry, r = V(() => a.filter(
2432
+ ], b = V(() => a.find((c) => c.value === e.value)), l = se().currentCountry, r = V(() => a.filter(
2430
2433
  (c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY)
2431
- )), { gatewayTab: e } = oe({
2434
+ )), { gatewayTab: e } = re({
2432
2435
  gatewayTab: (d = r.value[0]) == null ? void 0 : d.value
2433
2436
  });
2434
2437
  return (c, v) => {
@@ -2438,7 +2441,7 @@ const He = {
2438
2441
  I("div", at, [
2439
2442
  y(m, {
2440
2443
  "model-value": N(e),
2441
- "onUpdate:modelValue": v[0] || (v[0] = (t) => ae(e) ? e.value = t : null),
2444
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => te(e) ? e.value = t : null),
2442
2445
  class: "mb-6",
2443
2446
  vertical: !0,
2444
2447
  items: r.value,
@@ -2446,15 +2449,15 @@ const He = {
2446
2449
  }, null, 8, ["model-value", "items", "show-more-at"])
2447
2450
  ]),
2448
2451
  I("div", tt, [
2449
- N(e) ? (g(), F(te((s = b.value) == null ? void 0 : s.render), le(ne({ key: 0 }, {
2452
+ N(e) ? (g(), F(le((s = b.value) == null ? void 0 : s.render), ne(oe({ key: 0 }, {
2450
2453
  terminal: p.terminal,
2451
2454
  onUpdate: p.onUpdate
2452
- })), null, 16)) : U("", !0)
2455
+ })), null, 16)) : h("", !0)
2453
2456
  ])
2454
2457
  ]);
2455
2458
  };
2456
2459
  }
2457
- }), nt = { class: "flex mt-6 space-x-6" }, ot = /* @__PURE__ */ h({
2460
+ }), nt = { class: "flex mt-6 space-x-6" }, ot = /* @__PURE__ */ R({
2458
2461
  __name: "PromptPayGateway",
2459
2462
  props: {
2460
2463
  terminal: {
@@ -2499,7 +2502,7 @@ const He = {
2499
2502
  l.value > -1 ? a.value.qrIntegrations[l.value] = { gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName } : (a.value.qrIntegrations || (a.value.qrIntegrations = []), a.value.qrIntegrations.push({ gateway: "PROMPTPAY", config: { account: r.value.account }, receiptName: r.value.receiptName })), p.onUpdate(a.value);
2500
2503
  })
2501
2504
  }, {
2502
- default: O(() => [
2505
+ default: M(() => [
2503
2506
  y(s, {
2504
2507
  modelValue: r.value.account,
2505
2508
  "onUpdate:modelValue": m[0] || (m[0] = (i) => r.value.account = i),
@@ -2519,7 +2522,7 @@ const He = {
2519
2522
  variant: "secondary",
2520
2523
  label: "Delete",
2521
2524
  onclick: () => c(l.value)
2522
- }, null, 8, ["onclick"])) : U("", !0),
2525
+ }, null, 8, ["onclick"])) : h("", !0),
2523
2526
  y(t, {
2524
2527
  type: "submit",
2525
2528
  class: "flex-1",
@@ -2532,7 +2535,7 @@ const He = {
2532
2535
  }, 512);
2533
2536
  };
2534
2537
  }
2535
- }), rt = { class: "flex items-center" }, it = { class: "w-[260px] self-start" }, st = { class: "flex-1" }, ut = /* @__PURE__ */ h({
2538
+ }), rt = { class: "flex items-center" }, it = { class: "w-[260px] self-start" }, st = { class: "flex-1" }, ut = /* @__PURE__ */ R({
2536
2539
  __name: "QrGateway",
2537
2540
  props: {
2538
2541
  terminal: {
@@ -2553,7 +2556,7 @@ const He = {
2553
2556
  render: ot,
2554
2557
  region: [P.F_COUNTRY.enum.TH]
2555
2558
  }
2556
- ], b = V(() => a.find((c) => c.value === e.value)), l = ie().currentCountry, r = V(() => a.filter((c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY))), { gatewayTab: e } = oe({
2559
+ ], b = V(() => a.find((c) => c.value === e.value)), l = se().currentCountry, r = V(() => a.filter((c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY))), { gatewayTab: e } = re({
2557
2560
  gatewayTab: (d = r.value[0]) == null ? void 0 : d.value
2558
2561
  });
2559
2562
  return (c, v) => {
@@ -2563,22 +2566,22 @@ const He = {
2563
2566
  I("div", it, [
2564
2567
  y(m, {
2565
2568
  "model-value": N(e),
2566
- "onUpdate:modelValue": v[0] || (v[0] = (t) => ae(e) ? e.value = t : null),
2569
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => te(e) ? e.value = t : null),
2567
2570
  class: "mb-6",
2568
2571
  vertical: !0,
2569
2572
  items: r.value
2570
2573
  }, null, 8, ["model-value", "items"])
2571
2574
  ]),
2572
2575
  I("div", st, [
2573
- N(e) ? (g(), F(te((s = b.value) == null ? void 0 : s.render), le(ne({ key: 0 }, {
2576
+ N(e) ? (g(), F(le((s = b.value) == null ? void 0 : s.render), ne(oe({ key: 0 }, {
2574
2577
  terminal: p.terminal,
2575
2578
  onUpdate: p.onUpdate
2576
- })), null, 16)) : U("", !0)
2579
+ })), null, 16)) : h("", !0)
2577
2580
  ])
2578
2581
  ]);
2579
2582
  };
2580
2583
  }
2581
- }), kt = /* @__PURE__ */ h({
2584
+ }), kt = /* @__PURE__ */ R({
2582
2585
  __name: "TerminalSetting",
2583
2586
  props: {
2584
2587
  terminalId: {
@@ -2587,9 +2590,9 @@ const He = {
2587
2590
  }
2588
2591
  },
2589
2592
  setup(T) {
2590
- const p = T, { tab: a } = oe({
2593
+ const p = T, { tab: a } = re({
2591
2594
  tab: "information"
2592
- }), { isLoading: b, startAsyncCall: l } = J(!0), r = Ie(), e = me(), d = we(), { t: c } = re(), v = _();
2595
+ }), { isLoading: b, startAsyncCall: l } = X(!0), r = Ie(), e = me(), d = we(), { t: c } = ie(), v = _();
2593
2596
  async function m(w, k) {
2594
2597
  l(async () => {
2595
2598
  try {
@@ -2605,11 +2608,11 @@ const He = {
2605
2608
  type: "success",
2606
2609
  message: "Terminal updated successfully"
2607
2610
  });
2608
- } catch (B) {
2611
+ } catch (O) {
2609
2612
  e.open({
2610
2613
  type: "error",
2611
2614
  title: "Error occurs when update terminal",
2612
- message: Q(B)
2615
+ message: W(O)
2613
2616
  });
2614
2617
  }
2615
2618
  });
@@ -2678,9 +2681,9 @@ const He = {
2678
2681
  deviceType: w.deviceType,
2679
2682
  isDefault: k.isDefault,
2680
2683
  settings: {
2681
- ecrs: (w.ecrs ?? []).map(({ gateway: B }) => ({ gateway: B })),
2684
+ ecrs: (w.ecrs ?? []).map(({ gateway: O }) => ({ gateway: O })),
2682
2685
  ecrIntegrations: (w.ecrIntegrations ?? []).map(
2683
- ({ gateway: B }) => ({ gateway: B })
2686
+ ({ gateway: O }) => ({ gateway: O })
2684
2687
  ),
2685
2688
  paymentCheckouts: w.paymentCheckouts ?? []
2686
2689
  }
@@ -2688,11 +2691,11 @@ const He = {
2688
2691
  type: "success",
2689
2692
  message: "Setting template created successfully."
2690
2693
  });
2691
- } catch (B) {
2694
+ } catch (O) {
2692
2695
  e.open({
2693
2696
  type: "error",
2694
2697
  title: "Error occurs when create setting template",
2695
- message: Q(B)
2698
+ message: W(O)
2696
2699
  });
2697
2700
  }
2698
2701
  });
@@ -2708,7 +2711,7 @@ const He = {
2708
2711
  overlay: !0,
2709
2712
  contentComponent: qe,
2710
2713
  contentComponentProps: { templates: k }
2711
- }).onPrimary(async (B) => {
2714
+ }).onPrimary(async (O) => {
2712
2715
  d.close(), xe(
2713
2716
  d,
2714
2717
  "Apply Template",
@@ -2716,15 +2719,15 @@ const He = {
2716
2719
  async () => {
2717
2720
  l(async () => {
2718
2721
  try {
2719
- await j.applyTemplate(p.terminalId, B.templateId), v.value = await j.readById(p.terminalId), e.open({
2722
+ await j.applyTemplate(p.terminalId, O.templateId), v.value = await j.readById(p.terminalId), e.open({
2720
2723
  type: "success",
2721
2724
  message: "Setting template applied successfully."
2722
2725
  });
2723
- } catch ($) {
2726
+ } catch (D) {
2724
2727
  e.open({
2725
2728
  type: "error",
2726
2729
  title: "Error occurs when apply setting template",
2727
- message: Q($)
2730
+ message: W(D)
2728
2731
  });
2729
2732
  }
2730
2733
  });
@@ -2738,7 +2741,7 @@ const He = {
2738
2741
  { label: "Apply Template", fn: u }
2739
2742
  ] : []
2740
2743
  );
2741
- ie().currentCountry;
2744
+ se().currentCountry;
2742
2745
  const n = V(() => {
2743
2746
  var w;
2744
2747
  return (w = s.find((k) => k.value === a.value)) == null ? void 0 : w.render;
@@ -2755,25 +2758,25 @@ const He = {
2755
2758
  }
2756
2759
  ));
2757
2760
  return q(x), (w, k) => {
2758
- var $, K;
2759
- const B = f("FmTabs");
2761
+ var D, K;
2762
+ const O = f("FmTabs");
2760
2763
  return g(), F(Fe, {
2761
- title: `${($ = v.value) == null ? void 0 : $.deviceType} (${(K = v.value) == null ? void 0 : K._id})`,
2764
+ title: `${(D = v.value) == null ? void 0 : D.deviceType} (${(K = v.value) == null ? void 0 : K._id})`,
2762
2765
  loading: N(b),
2763
2766
  actions: C.value,
2764
2767
  onBack: N(r).back
2765
2768
  }, {
2766
- default: O(() => [
2767
- y(B, {
2769
+ default: M(() => [
2770
+ y(O, {
2768
2771
  "model-value": N(a),
2769
- "onUpdate:modelValue": k[0] || (k[0] = (H) => ae(a) ? a.value = H : null),
2772
+ "onUpdate:modelValue": k[0] || (k[0] = (z) => te(a) ? a.value = z : null),
2770
2773
  class: "mb-6",
2771
2774
  items: E.value
2772
2775
  }, null, 8, ["model-value", "items"]),
2773
- N(a) ? (g(), F(te(n.value), le(ne({ key: 0 }, {
2776
+ N(a) ? (g(), F(le(n.value), ne(oe({ key: 0 }, {
2774
2777
  terminal: v.value,
2775
2778
  onUpdate: m
2776
- })), null, 16)) : U("", !0)
2779
+ })), null, 16)) : h("", !0)
2777
2780
  ]),
2778
2781
  _: 1
2779
2782
  }, 8, ["title", "loading", "actions", "onBack"]);