@feedmepos/mf-payment 1.10.10-dev → 1.10.12-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 (53) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-9WuuFDjT.js → Actions.vue_vue_type_script_setup_true_lang-DQ6b6ka6.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-ldlWrW9Q.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-o9d1MbP6.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-akhgShmK.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DPX2tK6O.js} +3 -3
  4. package/dist/{Chargeback-CtMcT0UY.js → Chargeback-BK3Knpvw.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DcTe9_Kw.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BHjfNVE1.js} +1 -1
  6. package/dist/ExternalTerminal-CjJ1_NWZ.js +611 -0
  7. package/dist/{OnboardForm-C1YdmeW-.js → OnboardForm-CC9evxPa.js} +6 -6
  8. package/dist/{OnboardForm-CIDn7WlN.js → OnboardForm-fd3VsDJx.js} +6 -6
  9. package/dist/{OnboardSubmission-CmVQtQJG.js → OnboardSubmission-Bq17sJEw.js} +3 -3
  10. package/dist/{OnboardSubmission-B3duCbsE.js → OnboardSubmission-Q3TFyj7q.js} +6 -6
  11. package/dist/{PaymentCheckout-7U8JxO5z.js → PaymentCheckout-DuBWXJ7J.js} +2 -2
  12. package/dist/{PayoutAccount-TAivPO00.js → PayoutAccount-BtpxwPIL.js} +7 -7
  13. package/dist/{PayoutAccount-BkxTsLX6.js → PayoutAccount-JuYzRI09.js} +5 -5
  14. package/dist/{PayoutAccountSetting-CDaWFEPa.js → PayoutAccountSetting-BUxg8C3e.js} +6 -6
  15. package/dist/{Restaurant-D6w0vJTh.js → Restaurant-CUXKmf5_.js} +4 -4
  16. package/dist/{RestaurantSetting-B-jZzQw2.js → RestaurantSetting-ahYgoZQu.js} +3 -3
  17. package/dist/{Settlement-CSbH4KiM.js → Settlement-CUV-HfVC.js} +3 -3
  18. package/dist/{Settlement-87K0HOpH.js → Settlement-DPb549PU.js} +4 -4
  19. package/dist/{SettlementTransactions-s2E_-8CH.js → SettlementTransactions-DNNLmFfY.js} +5 -5
  20. package/dist/{SettlementTransactions-CXxia4xu.js → SettlementTransactions-l3b8YO2c.js} +5 -5
  21. package/dist/{Status.vue_vue_type_script_setup_true_lang-BNHfv19U.js → Status.vue_vue_type_script_setup_true_lang-v7piP5aI.js} +1 -1
  22. package/dist/{Terminal-DVnNwm5e.js → Terminal-C8jwG3Cv.js} +6 -6
  23. package/dist/{TerminalSetting-Dq4ABFSO.js → TerminalSetting-wW8AIAGH.js} +89 -90
  24. package/dist/{TerminalTemplate-BJNexUYY.js → TerminalTemplate-DHiugzSC.js} +5 -5
  25. package/dist/{TerminalTemplateSetting-bN8ClI5N.js → TerminalTemplateSetting-DA50VCKg.js} +5 -5
  26. package/dist/{Transaction-BGx9Ipte.js → Transaction-CZRCv-3t.js} +12 -12
  27. package/dist/{Transaction-C4hbtZ91.js → Transaction-CzTTkQri.js} +10 -10
  28. package/dist/{TransactionOld-DGq4_O6h.js → TransactionOld-D-4iUrDw.js} +7 -7
  29. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-Bl8qusoC.js → TransactionStatus.vue_vue_type_script_setup_true_lang-CHcGrTSW.js} +1 -1
  30. package/dist/{app-0Fho9eki.js → app-BmFJOd-Z.js} +26 -26
  31. package/dist/app.js +1 -1
  32. package/dist/{assets-CQo4lzcb.js → assets-CTtKWVYg.js} +1 -1
  33. package/dist/{grafana-BqdRvJYT.js → grafana-DhemMHSo.js} +1 -1
  34. package/dist/{index-BF1GN-0Q.js → index-3wP84h0B.js} +1 -1
  35. package/dist/{index--59tM3Ls.js → index-BSmZ1Vyk.js} +1 -1
  36. package/dist/{index-B5qSd5kn.js → index-C8AxHnhC.js} +1 -1
  37. package/dist/{index-I2OCChpQ.js → index-CUSLUawv.js} +2 -2
  38. package/dist/{index-Bz9YYVw5.js → index-CVCyz5Yi.js} +1 -1
  39. package/dist/{index-BdafJZPj.js → index-D4pYdk0h.js} +1 -1
  40. package/dist/{index-DyIn6r7H.js → index-DjHETHgh.js} +1 -1
  41. package/dist/{index-CelDa-QS.js → index-Dtk_lPn7.js} +1 -1
  42. package/dist/{index-ClDlsfj-.js → index-RC1zD9dC.js} +1 -1
  43. package/dist/{index-BU7MW9VF.js → index-_O7z64Rk.js} +1 -1
  44. package/dist/{index-_bVFsKJt.js → index-fs6f3Sbe.js} +1 -1
  45. package/dist/{index.vue_vue_type_script_setup_true_lang-Cj4WYjoE.js → index.vue_vue_type_script_setup_true_lang-DuAmnioV.js} +1 -1
  46. package/dist/{onboard-submission-cOodl8vE.js → onboard-submission-D66nrLNT.js} +1 -1
  47. package/dist/package.json +1 -1
  48. package/dist/{payout-account-DqxT4m5x.js → payout-account-DZIq3q35.js} +3 -3
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/{useQuery-2ksfJQXW.js → useQuery-D4qzUQ-g.js} +1 -1
  51. package/dist/views/admin/external-terminal/config/BRITerminal.vue.d.ts +8 -0
  52. package/package.json +1 -1
  53. package/dist/ExternalTerminal-lOIxzrYN.js +0 -596
@@ -1,19 +1,19 @@
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";
1
+ import { defineComponent as R, openBlock as g, createElementBlock as V, 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 S, computed as N, createCommentVNode as h, isRef as ee, resolveDynamicComponent as ae, normalizeProps as te, mergeProps as le, 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-C8AxHnhC.js";
3
3
  import { useRouter as Ie } from "vue-router";
4
- import { t as j } from "./index-BdafJZPj.js";
5
- import { t as pe } from "./index-BU7MW9VF.js";
4
+ import { t as j } from "./index-D4pYdk0h.js";
5
+ import { t as pe } from "./index-_O7z64Rk.js";
6
6
  import { _ as Fe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
7
- import { u as re } from "./index-Bz9YYVw5.js";
7
+ import { u as ne } from "./index-CVCyz5Yi.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
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";
11
+ import { useI18n as oe, useCoreStore as re } from "@feedmepos/mf-common";
12
+ import { z as ie, a as se } from "./validator-CTlVogBQ.js";
13
+ import { o as Ce } from "./index-CUSLUawv.js";
14
14
  import { c as ke } from "./index-MdV54cWO.js";
15
- import { e as fe } from "./index--59tM3Ls.js";
16
- import { P as Ne } from "./PaymentCheckout-7U8JxO5z.js";
15
+ import { e as fe } from "./index-BSmZ1Vyk.js";
16
+ import { P as Ne } from "./PaymentCheckout-DuBWXJ7J.js";
17
17
  const Ve = /* @__PURE__ */ R({
18
18
  __name: "Information",
19
19
  props: {
@@ -23,7 +23,7 @@ const Ve = /* @__PURE__ */ R({
23
23
  }
24
24
  },
25
25
  setup(T) {
26
- return (p, a) => (g(), S($, null, [
26
+ return (p, a) => (g(), V($, null, [
27
27
  a[0] || (a[0] = I("b", null, "Name", -1)),
28
28
  Z(": " + J(T.terminal.name), 1),
29
29
  a[1] || (a[1] = I("br", null, null, -1)),
@@ -41,7 +41,7 @@ const Ve = /* @__PURE__ */ R({
41
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 } = ie(), b = _(), l = _(""), r = _(""), e = _(!1), d = () => {
44
+ const p = ye(), { t: a } = oe(), b = _(), l = _(""), r = _(""), e = _(!1), d = () => {
45
45
  p.emitData({
46
46
  name: l.value,
47
47
  description: r.value,
@@ -62,14 +62,14 @@ const Ve = /* @__PURE__ */ R({
62
62
  name: "info",
63
63
  class: "shrink-0"
64
64
  }),
65
- I("span", Ue, J(N(a)("payment.terminal_template.scope_info")), 1)
65
+ I("span", Ue, J(S(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(ee)(N(ae).string().min(1, "Template name is required"))
72
+ rules: S(ie)(S(se).string().min(1, "Template name is required"))
73
73
  }, null, 8, ["modelValue", "rules"]),
74
74
  y(s, {
75
75
  modelValue: r.value,
@@ -107,7 +107,7 @@ const Ve = /* @__PURE__ */ R({
107
107
  templates: {}
108
108
  },
109
109
  setup(T) {
110
- const p = T, a = ye(), { t: b } = ie(), l = _(""), r = V(
110
+ const p = T, a = ye(), { t: b } = oe(), l = _(""), r = N(
111
111
  () => p.templates.map((d) => ({
112
112
  label: d.isDefault ? `${d.name} (default)` : d.name,
113
113
  value: d._id
@@ -117,22 +117,22 @@ const Ve = /* @__PURE__ */ R({
117
117
  };
118
118
  return (d, c) => {
119
119
  const v = f("FmIcon"), m = f("FmSelect"), s = f("FmButton");
120
- return g(), S("div", Pe, [
120
+ return g(), V("div", Pe, [
121
121
  I("div", Be, [
122
122
  y(v, {
123
123
  name: "info",
124
124
  class: "mt-4 shrink-0"
125
125
  }),
126
- I("div", Oe, J(N(b)("payment.terminal_template.scope_info")), 1)
126
+ I("div", Oe, J(S(b)("payment.terminal_template.scope_info")), 1)
127
127
  ]),
128
- r.value.length === 0 ? (g(), S("div", Me, " No setting template exists for this business and device type yet. ")) : (g(), F(m, {
128
+ r.value.length === 0 ? (g(), V("div", Me, " No setting template exists for this business and device type yet. ")) : (g(), F(m, {
129
129
  key: 1,
130
130
  modelValue: l.value,
131
131
  "onUpdate:modelValue": c[0] || (c[0] = (t) => l.value = t),
132
132
  label: "Template",
133
133
  items: r.value
134
134
  }, null, 8, ["modelValue", "items"])),
135
- r.value.length > 0 ? (g(), S("div", Ae, [
135
+ r.value.length > 0 ? (g(), V("div", Ae, [
136
136
  y(s, {
137
137
  class: "w-full",
138
138
  label: "Apply",
@@ -177,13 +177,13 @@ const Ve = /* @__PURE__ */ R({
177
177
  }
178
178
  return (d, c) => {
179
179
  const v = f("FmSwitch"), m = f("FmPinField"), s = f("FmButton");
180
- return g(), S($, null, [
180
+ return g(), V($, null, [
181
181
  y(v, {
182
182
  modelValue: l.value.enable,
183
183
  "onUpdate:modelValue": c[0] || (c[0] = (t) => l.value.enable = t),
184
184
  label: "Enable Kiosk Mode?"
185
185
  }, null, 8, ["modelValue"]),
186
- l.value.enable ? (g(), S("div", Ge, [
186
+ l.value.enable ? (g(), V("div", Ge, [
187
187
  c[2] || (c[2] = I("p", { class: "mt-6" }, "Unlock PIN: ", -1)),
188
188
  y(m, {
189
189
  modelValue: l.value.password,
@@ -195,7 +195,7 @@ const Ve = /* @__PURE__ */ R({
195
195
  variant: "primary",
196
196
  label: "Send",
197
197
  icon: "send",
198
- loading: N(p),
198
+ loading: S(p),
199
199
  onclick: e
200
200
  }, null, 8, ["loading"])
201
201
  ])
@@ -211,7 +211,7 @@ const Ve = /* @__PURE__ */ R({
211
211
  }
212
212
  },
213
213
  setup(T) {
214
- const { settingTab: p } = re({
214
+ const { settingTab: p } = ne({
215
215
  settingTab: "kiosk_mode"
216
216
  }), a = [
217
217
  {
@@ -219,42 +219,42 @@ const Ve = /* @__PURE__ */ R({
219
219
  value: "kiosk_mode",
220
220
  render: $e
221
221
  }
222
- ], b = T, l = V(() => a.find((r) => r.value === p.value));
222
+ ], b = T, l = N(() => a.find((r) => r.value === p.value));
223
223
  return (r, e) => {
224
224
  var c;
225
225
  const d = f("FmTabs");
226
- return g(), S($, null, [
226
+ return g(), V($, null, [
227
227
  e[1] || (e[1] = I("p", { className: "mt-1 my-6 text-gray-600" }, [
228
228
  I("b", null, "Note: "),
229
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
- "model-value": N(p),
233
- "onUpdate:modelValue": e[0] || (e[0] = (v) => te(p) ? p.value = v : null),
232
+ "model-value": S(p),
233
+ "onUpdate:modelValue": e[0] || (e[0] = (v) => ee(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(le((c = l.value) == null ? void 0 : c.render), ne(oe({ key: 0 }, { terminal: b.terminal })), null, 16)) : h("", !0)
237
+ S(p) ? (g(), F(ae((c = l.value) == null ? void 0 : c.render), te(le({ 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 } = X(!1), { t: l } = ie(), r = me(), e = _(null), d = V(() => {
243
+ const { isLoading: p, startLoading: a, stopLoading: b } = X(!1), { t: l } = oe(), r = me(), e = _(null), d = N(() => {
244
244
  var k, O;
245
245
  const w = (k = T.value.gateways) == null ? void 0 : k.find(
246
246
  (D) => D.gateway === "Tyro"
247
247
  );
248
248
  return ((O = w == null ? void 0 : w.config) == null ? void 0 : O.uniqueId) || "";
249
- }), c = V(() => !!d.value), v = V(() => {
249
+ }), c = N(() => !!d.value), v = N(() => {
250
250
  var w;
251
251
  return ((w = e.value) == null ? void 0 : w.status) === "ready";
252
- }), m = V(() => {
252
+ }), m = N(() => {
253
253
  var w, k;
254
254
  return v.value && !!((k = (w = e.value) == null ? void 0 : w.fields) != null && k.tyroLocationId) && !!T.value.deviceId && !c.value;
255
- }), s = V(() => !v.value && !c.value), t = V(
255
+ }), s = N(() => !v.value && !c.value), t = N(
256
256
  () => l("payment.onboard-submission.tyro.syncDisabledHint")
257
- ), o = V(() => c.value ? "Synced" : "Sync");
257
+ ), o = N(() => c.value ? "Synced" : "Sync");
258
258
  async function i() {
259
259
  if (!T.value.referenceId) {
260
260
  e.value = null;
@@ -359,7 +359,7 @@ const He = {
359
359
  }
360
360
  },
361
361
  setup(T) {
362
- const p = T, a = se().currentCountry, b = [
362
+ const p = T, a = re().currentCountry, b = [
363
363
  {
364
364
  label: "Fiuu Malaysia",
365
365
  value: "cc.feedme.payment.rms",
@@ -407,9 +407,9 @@ 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((U) => U.region === a.value)), v = V(() => c.value.find(
410
+ }, c = N(() => b.filter((U) => U.region === a.value)), v = N(() => c.value.find(
411
411
  (U) => U.value === e.value.packageId
412
- )), m = V(
412
+ )), m = N(
413
413
  () => {
414
414
  var U;
415
415
  return ((U = v.value) == null ? void 0 : U.gateway) === "Tyro";
@@ -423,7 +423,7 @@ 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), O = V(() => m.value ? !i.value || t.value : !1), D = () => {
426
+ } = Ke(l), E = N(() => m.value ? "button" : "submit"), w = N(() => m.value ? n.value : "Save"), k = N(() => m.value ? s.value : !1), O = N(() => m.value ? !i.value || t.value : !1), D = () => {
427
427
  if (!l.value.gateways || l.value.gateways.length === 0)
428
428
  return d();
429
429
  const U = l.value.gateways[0];
@@ -509,20 +509,20 @@ const He = {
509
509
  label: "Package ID",
510
510
  items: c.value
511
511
  }, null, 8, ["modelValue", "items"]),
512
- v.value ? (g(), S($, { key: 0 }, [
512
+ v.value ? (g(), V($, { key: 0 }, [
513
513
  m.value ? (g(), F(H, {
514
514
  key: 0,
515
- "model-value": N(o),
515
+ "model-value": S(o),
516
516
  label: "Unique ID (Reader ID)",
517
517
  disabled: ""
518
- }, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(), S($, { key: 1 }, [
518
+ }, null, 8, ["model-value"])) : v.value && v.value.isLegacy ? (g(), V($, { key: 1 }, [
519
519
  y(H, {
520
520
  modelValue: e.value.uniqueId,
521
521
  "onUpdate:modelValue": B[1] || (B[1] = (Y) => e.value.uniqueId = Y),
522
522
  label: "Unique ID (TID)"
523
523
  }, null, 8, ["modelValue"]),
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 }, [
524
+ v.value.isOutdated ? (g(), V("span", He, " Note: For outdated gateway is no longer continued development, please use the new gateway instead. ")) : h("", !0)
525
+ ], 64)) : (g(), V($, { key: 2 }, [
526
526
  y(H, {
527
527
  modelValue: e.value.developerId,
528
528
  "onUpdate:modelValue": B[2] || (B[2] = (Y) => e.value.developerId = Y),
@@ -548,12 +548,12 @@ const He = {
548
548
  label: "Delete",
549
549
  onclick: () => ue(0)
550
550
  }, null, 8, ["onclick"])) : h("", !0),
551
- m.value && N(u) && O.value ? (g(), F(be, {
551
+ m.value && S(u) && O.value ? (g(), F(be, {
552
552
  key: 1,
553
553
  class: "flex-1",
554
554
  variant: "plain",
555
555
  placement: "top",
556
- content: N(C)
556
+ content: S(C)
557
557
  }, {
558
558
  default: M(() => [
559
559
  I("div", Qe, [
@@ -621,7 +621,7 @@ const He = {
621
621
  });
622
622
  };
623
623
  A(l, m), q(m);
624
- const s = V(() => (r.value ?? []).map((o) => ({
624
+ const s = N(() => (r.value ?? []).map((o) => ({
625
625
  label: o.name ?? o._id,
626
626
  value: o._id
627
627
  })));
@@ -631,7 +631,7 @@ const He = {
631
631
  }
632
632
  return (o, i) => {
633
633
  const u = f("FmCircularProgress"), C = f("FmSelect"), n = f("FmButton"), x = f("FmForm");
634
- return N(p) ? (g(), S("div", We, [
634
+ return S(p) ? (g(), V("div", We, [
635
635
  y(u, { size: "xxl" })
636
636
  ])) : (g(), F(x, {
637
637
  key: 1,
@@ -647,7 +647,7 @@ const He = {
647
647
  "onUpdate:modelValue": i[0] || (i[0] = (E) => c.value.terminalId = E),
648
648
  label: "Terminal ID",
649
649
  items: s.value,
650
- rules: N(ee)(N(ae).string())
650
+ rules: S(ie)(S(se).string())
651
651
  }, null, 8, ["modelValue", "items", "rules"]),
652
652
  I("div", Xe, [
653
653
  d.value > -1 ? (g(), F(n, {
@@ -847,7 +847,7 @@ const He = {
847
847
  })
848
848
  ]),
849
849
  I("div", la, [
850
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
850
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
851
851
  key: n,
852
852
  label: n,
853
853
  removable: !0,
@@ -967,7 +967,7 @@ const He = {
967
967
  })
968
968
  ]),
969
969
  I("div", ia, [
970
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
970
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
971
971
  key: n,
972
972
  label: n,
973
973
  removable: !0,
@@ -1082,7 +1082,7 @@ const He = {
1082
1082
  })
1083
1083
  ]),
1084
1084
  I("div", ma, [
1085
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1085
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1086
1086
  key: n,
1087
1087
  label: n,
1088
1088
  removable: !0,
@@ -1202,7 +1202,7 @@ const He = {
1202
1202
  })
1203
1203
  ]),
1204
1204
  I("div", ya, [
1205
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1205
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1206
1206
  key: n,
1207
1207
  label: n,
1208
1208
  removable: !0,
@@ -1315,7 +1315,7 @@ const He = {
1315
1315
  })
1316
1316
  ]),
1317
1317
  I("div", _a, [
1318
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1318
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1319
1319
  key: n,
1320
1320
  label: n,
1321
1321
  removable: !0,
@@ -1517,7 +1517,7 @@ const He = {
1517
1517
  })
1518
1518
  ]),
1519
1519
  I("div", Ca, [
1520
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1520
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1521
1521
  key: n,
1522
1522
  label: n,
1523
1523
  removable: !0,
@@ -1634,7 +1634,7 @@ const He = {
1634
1634
  })
1635
1635
  ]),
1636
1636
  I("div", Sa, [
1637
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1637
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1638
1638
  key: n,
1639
1639
  label: n,
1640
1640
  removable: !0,
@@ -1756,7 +1756,7 @@ const He = {
1756
1756
  })
1757
1757
  ]),
1758
1758
  I("div", Pa, [
1759
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1759
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1760
1760
  key: n,
1761
1761
  label: n,
1762
1762
  removable: !0,
@@ -1871,7 +1871,7 @@ const He = {
1871
1871
  })
1872
1872
  ]),
1873
1873
  I("div", Aa, [
1874
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1874
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
1875
1875
  key: n,
1876
1876
  label: n,
1877
1877
  removable: !0,
@@ -1976,9 +1976,8 @@ const He = {
1976
1976
  modelValue: e.value.ip,
1977
1977
  "onUpdate:modelValue": t[0] || (t[0] = (n) => e.value.ip = n),
1978
1978
  label: "Terminal IP Address",
1979
- "label-info": "Terminal WiFi IP with optional port, e.g. 192.168.1.50:8080 (defaults to port 8080)",
1980
- rules: N(ee)(N(ae).string().min(1))
1981
- }, null, 8, ["modelValue", "rules"]),
1979
+ "label-info": "Terminal WiFi IP with optional port, e.g. 192.168.1.50:8080 (defaults to port 8080)"
1980
+ }, null, 8, ["modelValue"]),
1982
1981
  y(o, {
1983
1982
  modelValue: e.value.receiptName,
1984
1983
  "onUpdate:modelValue": t[1] || (t[1] = (n) => e.value.receiptName = n),
@@ -1999,7 +1998,7 @@ const He = {
1999
1998
  })
2000
1999
  ]),
2001
2000
  I("div", $a, [
2002
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
2001
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
2003
2002
  key: n,
2004
2003
  label: n,
2005
2004
  removable: !0,
@@ -2064,7 +2063,7 @@ const He = {
2064
2063
  });
2065
2064
  };
2066
2065
  A(l, m), q(m);
2067
- const s = V(() => (r.value ?? []).map((o) => ({
2066
+ const s = N(() => (r.value ?? []).map((o) => ({
2068
2067
  label: o.status === "READY" ? o.name : `${o.name} (unpaired)`,
2069
2068
  value: o._id
2070
2069
  })));
@@ -2074,7 +2073,7 @@ const He = {
2074
2073
  }
2075
2074
  return (o, i) => {
2076
2075
  const u = f("FmCircularProgress"), C = f("FmSelect"), n = f("FmButton"), x = f("FmForm");
2077
- return N(p) ? (g(), S("div", Ya, [
2076
+ return S(p) ? (g(), V("div", Ya, [
2078
2077
  y(u, { size: "xxl" })
2079
2078
  ])) : (g(), F(x, {
2080
2079
  key: 1,
@@ -2090,7 +2089,7 @@ const He = {
2090
2089
  "onUpdate:modelValue": i[0] || (i[0] = (E) => c.value.externalTerminalId = E),
2091
2090
  label: "External Terminal",
2092
2091
  items: s.value,
2093
- rules: N(ee)(N(ae).string().min(1, "External terminal is required"))
2092
+ rules: S(ie)(S(se).string().min(1, "External terminal is required"))
2094
2093
  }, null, 8, ["modelValue", "items", "rules"]),
2095
2094
  I("div", ja, [
2096
2095
  d.value > -1 ? (g(), F(n, {
@@ -2150,7 +2149,7 @@ const He = {
2150
2149
  });
2151
2150
  };
2152
2151
  A(l, m), q(m);
2153
- const s = V(() => (r.value ?? []).filter((i) => i.status === "READY").map((i) => ({ label: i.name, value: i._id }))), t = V(() => {
2152
+ const s = N(() => (r.value ?? []).filter((i) => i.status === "READY").map((i) => ({ label: i.name, value: i._id }))), t = N(() => {
2154
2153
  if (s.value.length === 0)
2155
2154
  return "Please pair one BRI terminal under External Terminals before applying here.";
2156
2155
  });
@@ -2160,7 +2159,7 @@ const He = {
2160
2159
  }
2161
2160
  return (i, u) => {
2162
2161
  const C = f("FmCircularProgress"), n = f("FmSelect"), x = f("FmButton"), E = f("FmForm");
2163
- return N(p) ? (g(), S("div", Ha, [
2162
+ return S(p) ? (g(), V("div", Ha, [
2164
2163
  y(C, { size: "xxl" })
2165
2164
  ])) : (g(), F(E, {
2166
2165
  key: 1,
@@ -2177,7 +2176,7 @@ const He = {
2177
2176
  label: "External Terminal",
2178
2177
  items: s.value,
2179
2178
  "helper-text": t.value,
2180
- rules: N(ee)(N(ae).string().min(1, "External terminal is required"))
2179
+ rules: S(ie)(S(se).string().min(1, "External terminal is required"))
2181
2180
  }, null, 8, ["modelValue", "items", "helper-text", "rules"]),
2182
2181
  I("div", za, [
2183
2182
  d.value > -1 ? (g(), F(x, {
@@ -2292,7 +2291,7 @@ const He = {
2292
2291
  })
2293
2292
  ]),
2294
2293
  I("div", Wa, [
2295
- (g(!0), S($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
2294
+ (g(!0), V($, null, L(e.value.cardTypes, (n) => (g(), F(u, {
2296
2295
  key: n,
2297
2296
  label: n,
2298
2297
  removable: !0,
@@ -2429,19 +2428,19 @@ const He = {
2429
2428
  render: Qa,
2430
2429
  region: [P.F_COUNTRY.enum.ID]
2431
2430
  }
2432
- ], b = V(() => a.find((c) => c.value === e.value)), l = se().currentCountry, r = V(() => a.filter(
2431
+ ], b = N(() => a.find((c) => c.value === e.value)), l = re().currentCountry, r = N(() => a.filter(
2433
2432
  (c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY)
2434
- )), { gatewayTab: e } = re({
2433
+ )), { gatewayTab: e } = ne({
2435
2434
  gatewayTab: (d = r.value[0]) == null ? void 0 : d.value
2436
2435
  });
2437
2436
  return (c, v) => {
2438
2437
  var s;
2439
2438
  const m = f("FmTabs");
2440
- return g(), S("div", et, [
2439
+ return g(), V("div", et, [
2441
2440
  I("div", at, [
2442
2441
  y(m, {
2443
- "model-value": N(e),
2444
- "onUpdate:modelValue": v[0] || (v[0] = (t) => te(e) ? e.value = t : null),
2442
+ "model-value": S(e),
2443
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => ee(e) ? e.value = t : null),
2445
2444
  class: "mb-6",
2446
2445
  vertical: !0,
2447
2446
  items: r.value,
@@ -2449,7 +2448,7 @@ const He = {
2449
2448
  }, null, 8, ["model-value", "items", "show-more-at"])
2450
2449
  ]),
2451
2450
  I("div", tt, [
2452
- N(e) ? (g(), F(le((s = b.value) == null ? void 0 : s.render), ne(oe({ key: 0 }, {
2451
+ S(e) ? (g(), F(ae((s = b.value) == null ? void 0 : s.render), te(le({ key: 0 }, {
2453
2452
  terminal: p.terminal,
2454
2453
  onUpdate: p.onUpdate
2455
2454
  })), null, 16)) : h("", !0)
@@ -2556,24 +2555,24 @@ const He = {
2556
2555
  render: ot,
2557
2556
  region: [P.F_COUNTRY.enum.TH]
2558
2557
  }
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({
2558
+ ], b = N(() => a.find((c) => c.value === e.value)), l = re().currentCountry, r = N(() => a.filter((c) => !c.region || c.region.includes(l.value ?? P.F_COUNTRY.enum.MY))), { gatewayTab: e } = ne({
2560
2559
  gatewayTab: (d = r.value[0]) == null ? void 0 : d.value
2561
2560
  });
2562
2561
  return (c, v) => {
2563
2562
  var s;
2564
2563
  const m = f("FmTabs");
2565
- return g(), S("div", rt, [
2564
+ return g(), V("div", rt, [
2566
2565
  I("div", it, [
2567
2566
  y(m, {
2568
- "model-value": N(e),
2569
- "onUpdate:modelValue": v[0] || (v[0] = (t) => te(e) ? e.value = t : null),
2567
+ "model-value": S(e),
2568
+ "onUpdate:modelValue": v[0] || (v[0] = (t) => ee(e) ? e.value = t : null),
2570
2569
  class: "mb-6",
2571
2570
  vertical: !0,
2572
2571
  items: r.value
2573
2572
  }, null, 8, ["model-value", "items"])
2574
2573
  ]),
2575
2574
  I("div", st, [
2576
- N(e) ? (g(), F(le((s = b.value) == null ? void 0 : s.render), ne(oe({ key: 0 }, {
2575
+ S(e) ? (g(), F(ae((s = b.value) == null ? void 0 : s.render), te(le({ key: 0 }, {
2577
2576
  terminal: p.terminal,
2578
2577
  onUpdate: p.onUpdate
2579
2578
  })), null, 16)) : h("", !0)
@@ -2590,9 +2589,9 @@ const He = {
2590
2589
  }
2591
2590
  },
2592
2591
  setup(T) {
2593
- const p = T, { tab: a } = re({
2592
+ const p = T, { tab: a } = ne({
2594
2593
  tab: "information"
2595
- }), { isLoading: b, startAsyncCall: l } = X(!0), r = Ie(), e = me(), d = we(), { t: c } = ie(), v = _();
2594
+ }), { isLoading: b, startAsyncCall: l } = X(!0), r = Ie(), e = me(), d = we(), { t: c } = oe(), v = _();
2596
2595
  async function m(w, k) {
2597
2596
  l(async () => {
2598
2597
  try {
@@ -2658,7 +2657,7 @@ const He = {
2658
2657
  render: Ne,
2659
2658
  onlyFor: ["KIOSK", "POS"]
2660
2659
  }
2661
- ], t = ve.FdoTerminalTemplateDeviceType.options, o = V(
2660
+ ], t = ve.FdoTerminalTemplateDeviceType.options, o = N(
2662
2661
  () => {
2663
2662
  var w;
2664
2663
  return t.includes(((w = v.value) == null ? void 0 : w.deviceType) ?? "");
@@ -2735,14 +2734,14 @@ const He = {
2735
2734
  );
2736
2735
  });
2737
2736
  }
2738
- const C = V(
2737
+ const C = N(
2739
2738
  () => o.value ? [
2740
2739
  { label: "Save as Template", fn: i },
2741
2740
  { label: "Apply Template", fn: u }
2742
2741
  ] : []
2743
2742
  );
2744
- se().currentCountry;
2745
- const n = V(() => {
2743
+ re().currentCountry;
2744
+ const n = N(() => {
2746
2745
  var w;
2747
2746
  return (w = s.find((k) => k.value === a.value)) == null ? void 0 : w.render;
2748
2747
  });
@@ -2751,7 +2750,7 @@ const He = {
2751
2750
  v.value = await j.readById(p.terminalId);
2752
2751
  });
2753
2752
  }
2754
- const E = V(() => s.filter(
2753
+ const E = N(() => s.filter(
2755
2754
  (w) => {
2756
2755
  var k;
2757
2756
  return !w.onlyFor || w.onlyFor.includes(((k = v.value) == null ? void 0 : k.deviceType) ?? "");
@@ -2762,18 +2761,18 @@ const He = {
2762
2761
  const O = f("FmTabs");
2763
2762
  return g(), F(Fe, {
2764
2763
  title: `${(D = v.value) == null ? void 0 : D.deviceType} (${(K = v.value) == null ? void 0 : K._id})`,
2765
- loading: N(b),
2764
+ loading: S(b),
2766
2765
  actions: C.value,
2767
- onBack: N(r).back
2766
+ onBack: S(r).back
2768
2767
  }, {
2769
2768
  default: M(() => [
2770
2769
  y(O, {
2771
- "model-value": N(a),
2772
- "onUpdate:modelValue": k[0] || (k[0] = (z) => te(a) ? a.value = z : null),
2770
+ "model-value": S(a),
2771
+ "onUpdate:modelValue": k[0] || (k[0] = (z) => ee(a) ? a.value = z : null),
2773
2772
  class: "mb-6",
2774
2773
  items: E.value
2775
2774
  }, null, 8, ["model-value", "items"]),
2776
- N(a) ? (g(), F(le(n.value), ne(oe({ key: 0 }, {
2775
+ S(a) ? (g(), F(ae(n.value), te(le({ key: 0 }, {
2777
2776
  terminal: v.value,
2778
2777
  onUpdate: m
2779
2778
  })), null, 16)) : h("", !0)
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as D, resolveComponent as d, openBlock as g, createElementBlock as U, createVNode as m, createElementVNode as x, useModel as Y, ref as p, watch as N, createBlock as F, withCtx as E, unref as r, createCommentVNode as K, mergeModels as $, isRef as j, h as I } from "vue";
2
2
  import { h as z } from "./moment-h96o7c8I.js";
3
3
  import { useRouter as P } from "vue-router";
4
- import { u as q } from "./index-Bz9YYVw5.js";
5
- import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-Cj4WYjoE.js";
4
+ import { u as q } from "./index-CVCyz5Yi.js";
5
+ import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-DuAmnioV.js";
6
6
  import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
7
7
  import { useDialog as L, useSnackbar as Q } from "@feedmepos/ui-library";
8
- import { t as S } from "./index-BU7MW9VF.js";
8
+ import { t as S } from "./index-_O7z64Rk.js";
9
9
  import { z as A, a as C } from "./validator-CTlVogBQ.js";
10
- import { _ as G } from "./AdminBusinessSelector.vue_vue_type_script_setup_true_lang-ldlWrW9Q.js";
11
- import { p as J } from "./index-B5qSd5kn.js";
10
+ import { _ as G } from "./AdminBusinessSelector.vue_vue_type_script_setup_true_lang-o9d1MbP6.js";
11
+ import { p as J } from "./index-C8AxHnhC.js";
12
12
  import { u as M } from "./error-K1CakhA9.js";
13
13
  import { w as W } from "./Modal-DB8M9o1T.js";
14
14
  const X = { class: "flex items-center justify-center" }, Z = /* @__PURE__ */ D({
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as G, openBlock as b, createElementBlock as F, Fragment as H, createElementVNode as l, createTextVNode as f, toDisplayString as v, computed as T, ref as L, watch as j, onMounted as $, resolveComponent as O, renderList as q, unref as y, createVNode as B, createBlock as D, withCtx as K, isRef as z, resolveDynamicComponent as Q, normalizeProps as W, mergeProps as J, createCommentVNode as X } from "vue";
2
2
  import { useRouter as Z } from "vue-router";
3
- import { t as x } from "./index-BU7MW9VF.js";
4
- import { e as n, u as ee } from "./index-B5qSd5kn.js";
3
+ import { t as x } from "./index-_O7z64Rk.js";
4
+ import { e as n, u as ee } from "./index-C8AxHnhC.js";
5
5
  import { _ as te } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
6
- import { u as ne } from "./index-Bz9YYVw5.js";
6
+ import { u as ne } from "./index-CVCyz5Yi.js";
7
7
  import { useSnackbar as ae } from "@feedmepos/ui-library";
8
8
  import { useCoreStore as le, useI18n as re } from "@feedmepos/mf-common";
9
9
  import { u as oe } from "./error-K1CakhA9.js";
10
- import { g as se } from "./assets-CQo4lzcb.js";
11
- import { P as ie } from "./PaymentCheckout-7U8JxO5z.js";
10
+ import { g as se } from "./assets-CTtKWVYg.js";
11
+ import { P as ie } from "./PaymentCheckout-DuBWXJ7J.js";
12
12
  const ue = /* @__PURE__ */ G({
13
13
  __name: "Information",
14
14
  props: {
@@ -1,9 +1,9 @@
1
1
  import { reactive as ue, computed as A, watch as O, defineComponent as $, useModel as ce, toRef as ye, ref as ne, resolveComponent as b, openBlock as v, createBlock as V, withCtx as D, createVNode as f, createElementVNode as S, unref as T, createElementBlock as M, Fragment as de, renderList as me, toDisplayString as H, createCommentVNode as pe, withModifiers as fe, mergeModels as oe, createTextVNode as ge, onBeforeUnmount as ve, isRef as z, h as k } from "vue";
2
- import { t as U } from "./index-BF1GN-0Q.js";
2
+ import { t as U } from "./index-3wP84h0B.js";
3
3
  import { h as J } from "./moment-h96o7c8I.js";
4
- import { p as N } from "./index-B5qSd5kn.js";
5
- import { t as be, _ as he, a as Q } from "./TransactionStatus.vue_vue_type_script_setup_true_lang-Bl8qusoC.js";
6
- import { u as _e } from "./index-Bz9YYVw5.js";
4
+ import { p as N } from "./index-C8AxHnhC.js";
5
+ import { t as be, _ as he, a as Q } from "./TransactionStatus.vue_vue_type_script_setup_true_lang-CHcGrTSW.js";
6
+ import { u as _e } from "./index-CVCyz5Yi.js";
7
7
  import { useRoute as Fe, useRouter as Te } from "vue-router";
8
8
  import { _ as Ae } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
9
9
  import { _ as Se } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
@@ -12,15 +12,15 @@ import { useSnackbar as we, useDialog as De } from "@feedmepos/ui-library";
12
12
  import { w as se } from "./Modal-DB8M9o1T.js";
13
13
  import { u as G } from "./error-K1CakhA9.js";
14
14
  import { _ as xe } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-CDjdQf-E.js";
15
- import { _ as Pe } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-akhgShmK.js";
16
- import { _ as Ve } from "./AdminBusinessSelector.vue_vue_type_script_setup_true_lang-ldlWrW9Q.js";
17
- import { p as ee } from "./index-CelDa-QS.js";
15
+ import { _ as Pe } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DPX2tK6O.js";
16
+ import { _ as Ve } from "./AdminBusinessSelector.vue_vue_type_script_setup_true_lang-o9d1MbP6.js";
17
+ import { p as ee } from "./index-Dtk_lPn7.js";
18
18
  import { useI18n as Ne, useCoreStore as ke } from "@feedmepos/mf-common";
19
- import { u as te } from "./useQuery-2ksfJQXW.js";
20
- import { k as Ce, h as re } from "./app-0Fho9eki.js";
21
- import { g as Ee } from "./grafana-BqdRvJYT.js";
22
- import { _ as Me } from "./index.vue_vue_type_script_setup_true_lang-Cj4WYjoE.js";
23
- import { g as $e, a as Ue } from "./assets-CQo4lzcb.js";
19
+ import { u as te } from "./useQuery-D4qzUQ-g.js";
20
+ import { k as Ce, h as re } from "./app-BmFJOd-Z.js";
21
+ import { g as Ee } from "./grafana-DhemMHSo.js";
22
+ import { _ as Me } from "./index.vue_vue_type_script_setup_true_lang-DuAmnioV.js";
23
+ import { g as $e, a as Ue } from "./assets-CTtKWVYg.js";
24
24
  import { _ as Oe } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
25
25
  import { _ as le } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js";
26
26
  import { u as qe, a as Re } from "./index-n58-Qewm.js";