@feedmepos/mf-payment 1.2.0 → 1.2.2

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 (63) hide show
  1. package/dist/{PDFViewer-BQfgFexr.js → PDFViewer-xrBtzrlR.js} +1 -2
  2. package/dist/{PayoutAccount-CLJp9Jyn.js → PayoutAccount-C1eI-Tha.js} +6 -6
  3. package/dist/{PayoutAccount-BvU23xuM.js → PayoutAccount-QY9LkR0r.js} +7 -7
  4. package/dist/PayoutAccountSetting-Bt-BBfpF.js +970 -0
  5. package/dist/{Restaurant-C962cqyn.js → Restaurant-DMEt0GSf.js} +4 -4
  6. package/dist/RestaurantSetting-Bjgjx7_c.js +487 -0
  7. package/dist/{Settlement-BZuKvRaG.js → Settlement-DHczxjKA.js} +3 -3
  8. package/dist/{Settlement-BHHc5YoF.js → Settlement-PYl2xRrw.js} +3 -3
  9. package/dist/{SettlementTransactions-zqQOlNmL.js → SettlementTransactions-B6eUs4ay.js} +3 -3
  10. package/dist/{SettlementTransactions-T_NueCUi.js → SettlementTransactions-Bn2-iO30.js} +3 -3
  11. package/dist/{Terminal-DEndcR6q.js → Terminal-q9AtQVTw.js} +36 -36
  12. package/dist/{TerminalSetting-Y11VutPg.js → TerminalSetting-DKvLKsrH.js} +218 -212
  13. package/dist/{Transaction-BMh7HeF-.js → Transaction-BSDhGkTu.js} +5 -5
  14. package/dist/{Transaction-CKHYz4EJ.js → Transaction-DlkiWPJt.js} +7 -7
  15. package/dist/{TransactionOld-CBu3JNau.js → TransactionOld-B93Kp78J.js} +4 -4
  16. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-Bm6pV5Ps.js → TransactionTable.vue_vue_type_script_setup_true_lang-DEgiifDL.js} +3 -3
  17. package/dist/api/payout/index.d.ts +2 -1
  18. package/dist/{app-BpdRZpkd.js → app-B1yXzXMJ.js} +270 -270
  19. package/dist/app.js +1 -1
  20. package/dist/{assets-CiNHrDU0.js → assets-DbCf2oTj.js} +2 -2
  21. package/dist/{grafana-D4sIBgS0.js → grafana-CxvNheOh.js} +1 -1
  22. package/dist/{index-D7YmrmZF.js → index-BoafQG_3.js} +1 -1
  23. package/dist/{index-B9Q6VJh7.js → index-BwmZGhzh.js} +6719 -6639
  24. package/dist/{index-CtH76apJ.js → index-C9YbV874.js} +1 -1
  25. package/dist/{index-CtGB8IE0.js → index-DJx90D2_.js} +1 -1
  26. package/dist/{index-C2ZxjTVN.js → index-DQ6y1YEM.js} +1 -1
  27. package/dist/index-DoWYy-5F.js +73 -0
  28. package/dist/{index-CuBlZneL.js → index-DrVrxzsm.js} +1 -1
  29. package/dist/{index.vue_vue_type_script_setup_true_lang-C5YwGnbl.js → index.vue_vue_type_script_setup_true_lang-BJAdIBCX.js} +1 -1
  30. package/dist/package.json +4 -4
  31. package/dist/{payout-account-DoiqVkOg.js → payout-account-Cy0D7ycP.js} +3 -3
  32. package/dist/stores/payoutAccount.d.ts +60 -10
  33. package/dist/tsconfig.app.tsbuildinfo +1 -1
  34. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +60 -10
  35. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +56 -16
  36. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +56 -16
  37. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +60 -10
  38. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +60 -10
  39. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +173 -0
  40. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
  41. package/dist/views/admin/payout-account/tabs/gateway/MacauPassGateway.vue.d.ts +46 -1
  42. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +49 -0
  43. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +6 -6
  44. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +2 -2
  45. package/dist/views/admin/restaurant/tabs/gateway/MacauPassGateway.vue.d.ts +50 -0
  46. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +2 -2
  47. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  48. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +12 -12
  49. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +14 -12
  50. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +12 -12
  51. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +12 -12
  52. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +12 -12
  53. package/dist/views/admin/terminal/tabs/SoftspaceGateway.vue.d.ts +12 -12
  54. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +12 -12
  55. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +12 -12
  56. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +120 -20
  57. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +16 -16
  58. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +8 -8
  59. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  60. package/package.json +4 -4
  61. package/dist/PayoutAccountSetting-DjrQRJDm.js +0 -728
  62. package/dist/RestaurantSetting-C2zHT9N3.js +0 -412
  63. package/dist/index-CJL2mrrn.js +0 -67
@@ -1,14 +1,14 @@
1
- import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as he, Fragment as ie, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as se, createVNode as k, resolveComponent as _, normalizeClass as me, withCtx as q, createBlock as D, createCommentVNode as V, computed as pe, unref as P, watch as te, isRef as ge } from "vue";
2
- import { e as Ce } from "./index-B9Q6VJh7.js";
1
+ import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as me, Fragment as ie, computed as se, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as le, createVNode as k, resolveComponent as _, normalizeClass as pe, withCtx as q, createBlock as D, createCommentVNode as V, unref as P, watch as te, isRef as ge } from "vue";
2
+ import { e as Ce } from "./index-BwmZGhzh.js";
3
3
  import { h as ye } from "./moment-h96o7c8I.js";
4
- import { u as we } from "./index-C2ZxjTVN.js";
5
- import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-C5YwGnbl.js";
4
+ import { u as we } from "./index-DQ6y1YEM.js";
5
+ import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-BJAdIBCX.js";
6
6
  import { _ as Me } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
7
  import { useSnackbar as W, useDialogChild as Re, useDialog as Ae } from "@feedmepos/ui-library";
8
- import { t as Q } from "./index-CtGB8IE0.js";
9
- import { c as le } from "./clipboard-4jh1WteU.js";
10
- import { useCoreStore as ue } from "@feedmepos/mf-common";
11
- import { g as Se } from "./grafana-D4sIBgS0.js";
8
+ import { t as Q } from "./index-DJx90D2_.js";
9
+ import { c as ue } from "./clipboard-4jh1WteU.js";
10
+ import { useCoreStore as ce } from "@feedmepos/mf-common";
11
+ import { g as Se } from "./grafana-CxvNheOh.js";
12
12
  import { u as Y } from "./error-K1CakhA9.js";
13
13
  import { z as re, a as ne } from "./validator-D5jtpt9A.js";
14
14
  import { w as ae } from "./Modal-DB8M9o1T.js";
@@ -445,7 +445,7 @@ var x = O, X = "L", J = {
445
445
  function Z(o) {
446
446
  return o in J;
447
447
  }
448
- function ce(o, c) {
448
+ function de(o, c) {
449
449
  c === void 0 && (c = 0);
450
450
  var d = [];
451
451
  return o.forEach(function(s, m) {
@@ -465,7 +465,7 @@ function ce(o, c) {
465
465
  });
466
466
  }), d.join("");
467
467
  }
468
- function de(o, c, d, s) {
468
+ function fe(o, c, d, s) {
469
469
  var m = s.width, f = s.height, n = s.x, e = s.y, t = o.length + d * 2, r = Math.floor(c * 0.1), a = t / c, i = (m || r) * a, l = (f || r) * a, h = n == null ? o.length / 2 - i / 2 : n * a, C = e == null ? o.length / 2 - l / 2 : e * a, u = null;
470
470
  if (s.excavate) {
471
471
  var v = Math.floor(h), p = Math.floor(C), w = Math.ceil(i + h - v), g = Math.ceil(l + C - p);
@@ -473,7 +473,7 @@ function de(o, c, d, s) {
473
473
  }
474
474
  return { x: h, y: C, h: l, w: i, excavation: u };
475
475
  }
476
- function fe(o, c) {
476
+ function ve(o, c) {
477
477
  return o.slice().map(function(d, s) {
478
478
  return s < c.y || s >= c.y + c.h ? d : d.map(function(m, f) {
479
479
  return f < c.x || f >= c.x + c.w ? m : !1;
@@ -554,15 +554,15 @@ var j = {
554
554
  var c = I(0), d = I(""), s, m = function() {
555
555
  var n = o.value, e = o.level, t = o.margin, r = t >>> 0, a = Z(e) ? e : X, i = x.QrCode.encodeText(n, J[a]).getModules();
556
556
  if (c.value = i.length + r * 2, o.imageSettings.src) {
557
- var l = de(i, o.size, r, o.imageSettings);
557
+ var l = fe(i, o.size, r, o.imageSettings);
558
558
  s = {
559
559
  x: l.x + r,
560
560
  y: l.y + r,
561
561
  width: l.w,
562
562
  height: l.h
563
- }, l.excavation && (i = fe(i, l.excavation));
563
+ }, l.excavation && (i = ve(i, l.excavation));
564
564
  }
565
- d.value = ce(i, r);
565
+ d.value = de(i, r);
566
566
  }, f = function() {
567
567
  if (!o.gradient)
568
568
  return null;
@@ -622,13 +622,13 @@ var j = {
622
622
  if (g) {
623
623
  var y = x.QrCode.encodeText(n, J[p]).getModules(), E = y.length + v * 2, S = s.value, R = { x: 0, y: 0, width: 0, height: 0 }, B = o.imageSettings.src && S != null && S.naturalWidth !== 0 && S.naturalHeight !== 0;
624
624
  if (B) {
625
- var b = de(y, o.size, v, o.imageSettings);
625
+ var b = fe(y, o.size, v, o.imageSettings);
626
626
  R = {
627
627
  x: b.x + v,
628
628
  y: b.y + v,
629
629
  width: b.w,
630
630
  height: b.h
631
- }, b.excavation && (y = fe(y, b.excavation));
631
+ }, b.excavation && (y = ve(y, b.excavation));
632
632
  }
633
633
  var K = window.devicePixelRatio || 1, L = t / E * K;
634
634
  if (w.height = w.width = t * K, g.scale(L, L), g.fillStyle = a, g.fillRect(0, 0, E, E), l) {
@@ -636,15 +636,15 @@ var j = {
636
636
  h === "linear" ? F = g.createLinearGradient(0, 0, E, E) : F = g.createRadialGradient(E / 2, E / 2, 0, E / 2, E / 2, E / 2), F.addColorStop(0, C), F.addColorStop(1, u), g.fillStyle = F;
637
637
  } else
638
638
  g.fillStyle = i;
639
- Pe ? g.fill(new Path2D(ce(y, v))) : y.forEach(function(U, $) {
640
- U.forEach(function(H, ve) {
641
- H && g.fillRect(ve + v, $ + v, 1, 1);
639
+ Pe ? g.fill(new Path2D(de(y, v))) : y.forEach(function(U, $) {
640
+ U.forEach(function(H, he) {
641
+ H && g.fillRect(he + v, $ + v, 1, 1);
642
642
  });
643
643
  }), B && g.drawImage(S, R.x, R.y, R.width, R.height);
644
644
  }
645
645
  }
646
646
  };
647
- he(m), oe(m);
647
+ me(m), oe(m);
648
648
  var f = c.attrs.style;
649
649
  return function() {
650
650
  return M(ie, [
@@ -687,34 +687,34 @@ const ke = { class: "t-caption" }, Be = { class: "t-caption" }, Fe = { class: "m
687
687
  }
688
688
  },
689
689
  setup(o) {
690
- const c = o, d = W(), s = ue(), m = s.currentCountry.value ?? Ce.F_COUNTRY.enum.MY;
691
- function f() {
690
+ const c = o, d = W(), s = ce();
691
+ function m() {
692
692
  try {
693
- le(c.code), d.open({ title: "Text copied to clipboard." }, 1e3);
693
+ ue(c.code), d.open({ title: "Text copied to clipboard." }, 1e3);
694
694
  } catch {
695
695
  d.open({ title: "Clipboard API incompatible." }, 1e3);
696
696
  }
697
697
  }
698
- const e = `${s.namespace.value === "dev" ? "development" : "production"},${m.toLowerCase()},${c.code}`;
699
- return (t, r) => (N(), G(ie, null, [
698
+ const f = s.namespace.value === "dev" ? "development" : "production", n = se(() => `${f},${(s.currentCountry.value ?? Ce.F_COUNTRY.enum.MY).toLowerCase()},${c.code}`);
699
+ return (e, t) => (N(), G(ie, null, [
700
700
  A("div", ke, [
701
- r[1] || (r[1] = ee(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
701
+ t[1] || (t[1] = ee(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
702
702
  A("div", {
703
703
  class: "my-6 text-center fm-typo-en-title-md-800 tracking-[0.3rem] cursor-pointer hover:text-fm-color-neutral-gray-300",
704
- onClick: r[0] || (r[0] = (a) => {
705
- a.stopPropagation(), f();
704
+ onClick: t[0] || (t[0] = (r) => {
705
+ r.stopPropagation(), m();
706
706
  })
707
- }, se(o.code), 1)
707
+ }, le(o.code), 1)
708
708
  ]),
709
- r[3] || (r[3] = A("div", { class: "flex items-center my-4" }, [
709
+ t[3] || (t[3] = A("div", { class: "flex items-center my-4" }, [
710
710
  A("div", { class: "flex-grow border-t border-gray-300" }),
711
711
  A("span", { class: "px-4 text-gray-500 text-sm font-medium" }, "OR"),
712
712
  A("div", { class: "flex-grow border-t border-gray-300" })
713
713
  ], -1)),
714
714
  A("div", Be, [
715
- r[2] || (r[2] = ee(" Scan the binding code below on your device to link it with this terminal and apply the configuration. ")),
715
+ t[2] || (t[2] = ee(" Scan the binding code below on your device to link it with this terminal and apply the configuration. ")),
716
716
  A("div", Fe, [
717
- k(Ie, { value: e })
717
+ k(Ie, { value: n.value }, null, 8, ["value"])
718
718
  ])
719
719
  ])
720
720
  ], 64));
@@ -732,7 +732,7 @@ const ke = { class: "t-caption" }, Be = { class: "t-caption" }, Fe = { class: "m
732
732
  }
733
733
  function m() {
734
734
  try {
735
- le(c.data), d.open({ title: "Text copied to clipboard." }, 1e3);
735
+ ue(c.data), d.open({ title: "Text copied to clipboard." }, 1e3);
736
736
  } catch {
737
737
  d.open({ title: "Clipboard API incompatible." }, 1e3);
738
738
  }
@@ -747,10 +747,10 @@ const ke = { class: "t-caption" }, Be = { class: "t-caption" }, Fe = { class: "m
747
747
  }, [
748
748
  k(e, {
749
749
  inline: "",
750
- class: me(s())
750
+ class: pe(s())
751
751
  }, {
752
752
  default: q(() => [
753
- A("div", null, se(f.data), 1)
753
+ A("div", null, le(f.data), 1)
754
754
  ]),
755
755
  _: 1
756
756
  }, 8, ["class"])
@@ -827,7 +827,7 @@ const ke = { class: "t-caption" }, Be = { class: "t-caption" }, Fe = { class: "m
827
827
  },
828
828
  setup(o) {
829
829
  var r, a, i;
830
- const c = o, d = ue(), s = Re(), m = I(), f = I((r = c.terminal) == null ? void 0 : r.name), n = I((a = c.terminal) == null ? void 0 : a.referenceId), e = I(((i = c.terminal) == null ? void 0 : i.status) === "Active"), t = pe(() => d.restaurants.value.map((l) => ({
830
+ const c = o, d = ce(), s = Re(), m = I(), f = I((r = c.terminal) == null ? void 0 : r.name), n = I((a = c.terminal) == null ? void 0 : a.referenceId), e = I(((i = c.terminal) == null ? void 0 : i.status) === "Active"), t = se(() => d.restaurants.value.map((l) => ({
831
831
  label: l.profile.name,
832
832
  value: l._id
833
833
  })));