@feedmepos/mf-payment 1.0.15 → 1.0.16-beta.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 (37) hide show
  1. package/dist/{PayoutAccount-_eib40vg.js → PayoutAccount-8PS0XG-o.js} +5 -5
  2. package/dist/{PayoutAccount-BmladAUo.js → PayoutAccount-BaR-pQsE.js} +122 -121
  3. package/dist/{PayoutAccountSelector.vue_vue_type_script_setup_true_lang-Bf87p0sW.js → PayoutAccountSelector.vue_vue_type_script_setup_true_lang-Bpfma3sQ.js} +2 -2
  4. package/dist/{PayoutAccountSetting-B7oB88aM.js → PayoutAccountSetting-DGv-V72Q.js} +4 -4
  5. package/dist/{Restaurant-DAd8a0Sf.js → Restaurant-DxFHtTvZ.js} +4 -4
  6. package/dist/{RestaurantSetting-D7e6rowL.js → RestaurantSetting-CClHn4b1.js} +4 -4
  7. package/dist/{Settlement-DpUcTPxB.js → Settlement-BZ47PeA4.js} +3 -3
  8. package/dist/{Settlement-CyLRDyAQ.js → Settlement-Dre6hrbR.js} +3 -3
  9. package/dist/{SettlementTransactions-D5ERmwWf.js → SettlementTransactions-BX1rAyIV.js} +4 -4
  10. package/dist/{SettlementTransactions-isJ-omim.js → SettlementTransactions-DMrhyxeT.js} +4 -4
  11. package/dist/{Terminal-D24nWj0d.js → Terminal-3YWAIFU-.js} +5 -5
  12. package/dist/{TerminalSetting-BHDaUrn0.js → TerminalSetting-6uNjMrlx.js} +43 -41
  13. package/dist/TerminalTransaction-Dx55gC2L.js +820 -0
  14. package/dist/{TerminalTransaction-COAbt4U6.js → TerminalTransaction-DxNG44rA.js} +130 -107
  15. package/dist/{Transaction-BO92b-MM.js → Transaction-PnNFOZeu.js} +5 -5
  16. package/dist/{Transaction-C7NFK_yP.js → Transaction-cDKuWfvi.js} +6 -6
  17. package/dist/{TransactionOld-BOyHbhbK.js → TransactionOld-Ba4Fhq0A.js} +4 -4
  18. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-9oqYe9SK.js → TransactionTable.vue_vue_type_script_setup_true_lang-6RXME_ux.js} +2 -2
  19. package/dist/{app-DjXKH0db.js → app-DOh5Q7Wl.js} +480 -480
  20. package/dist/app.js +1 -1
  21. package/dist/{assets-Cy96qAKJ.js → assets-CofaZ_lT.js} +1 -1
  22. package/dist/{grafana-B-S5S_95.js → grafana-Bk6PPzTz.js} +12 -12
  23. package/dist/{index-CblSdE4I.js → index-BGLG0L6x.js} +2 -2
  24. package/dist/{index-CpBwYTvQ.js → index-BdPxytRc.js} +1 -1
  25. package/dist/{index-DdE2XkaV.js → index-BvOwxlNE.js} +1 -1
  26. package/dist/{index-CPyo7PsK.js → index-CORtn1qp.js} +1 -1
  27. package/dist/{index-CRe278b0.js → index-CiR5XvPL.js} +1 -1
  28. package/dist/{index-DYrMKMaP.js → index-Cn1xSOHw.js} +1 -1
  29. package/dist/{index-CVqUPJke.js → index-D1ycS_0Y.js} +1 -1
  30. package/dist/{index--T9htMAt.js → index-d4H-VoHb.js} +1 -1
  31. package/dist/{index.vue_vue_type_script_setup_true_lang-UgxsCvVC.js → index.vue_vue_type_script_setup_true_lang-Cz-jVTPU.js} +1 -1
  32. package/dist/package.json +1 -1
  33. package/dist/{payout-account-yEBg2kyi.js → payout-account-lrJn2HVt.js} +2 -2
  34. package/dist/{transaction-CxzGTmkG.js → transaction-B8ifjkL4.js} +1 -1
  35. package/dist/tsconfig.app.tsbuildinfo +1 -1
  36. package/package.json +1 -1
  37. package/dist/TerminalTransaction-BNUnpt1O.js +0 -819
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as S, ref as U, resolveComponent as i, openBlock as v, createBlock as V, withCtx as k, createVNode as u, unref as a, createElementVNode as T, createCommentVNode as C, onMounted as D, computed as K, createElementBlock as R, Fragment as E, resolveDynamicComponent as P, normalizeProps as q, mergeProps as O, isRef as M } from "vue";
2
- import { u as B, e as I } from "./index-CblSdE4I.js";
2
+ import { u as B, e as I } from "./index-BGLG0L6x.js";
3
3
  import { _ as N } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
4
4
  import { useRouter as Y } from "vue-router";
5
- import { u as $ } from "./index--T9htMAt.js";
6
- import { p as x } from "./index-CRe278b0.js";
5
+ import { u as $ } from "./index-d4H-VoHb.js";
6
+ import { p as x } from "./index-CiR5XvPL.js";
7
7
  import { z as p, a as y } from "./validator-D5jtpt9A.js";
8
8
  import { useCoreStore as A } from "@feedmepos/mf-common";
9
- import { r as L } from "./index-DYrMKMaP.js";
9
+ import { r as L } from "./index-Cn1xSOHw.js";
10
10
  const j = { class: "flex mt-6 space-x-6" }, z = /* @__PURE__ */ S({
11
11
  __name: "FiuuGateway",
12
12
  props: {
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as h, ref as v, computed as x, resolveComponent as Y, openBlock as g, createBlock as D, h as S, onMounted as A, watch as R, withCtx as V, createElementVNode as m, createVNode as i, unref as n, isRef as $ } from "vue";
2
- import { u as b } from "./index-CblSdE4I.js";
2
+ import { u as b } from "./index-BGLG0L6x.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
4
  import { useCoreStore as C } from "@feedmepos/mf-common";
5
5
  import { _ as k } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { s as w } from "./index-CpBwYTvQ.js";
6
+ import { s as w } from "./index-BdPxytRc.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { d as f } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as F } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
10
10
  import { useRouter as M } from "vue-router";
11
- import { u as K } from "./index--T9htMAt.js";
11
+ import { u as K } from "./index-d4H-VoHb.js";
12
12
  import { _ as B } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as I } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-p4qddIbp.js";
14
14
  import { _ as L } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as C, ref as h, computed as x, resolveComponent as d, openBlock as k, createBlock as A, h as B, watch as V, onMounted as I, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as $, createElementBlock as L, Fragment as K, renderList as E } from "vue";
2
- import { u as D } from "./index-CblSdE4I.js";
2
+ import { u as D } from "./index-BGLG0L6x.js";
3
3
  import { h as g } from "./moment-h96o7c8I.js";
4
- import { s as c } from "./index-CpBwYTvQ.js";
4
+ import { s as c } from "./index-BdPxytRc.js";
5
5
  import { useSnackbar as T } from "@feedmepos/ui-library";
6
6
  import { d as v } from "./dinero-CIVmXLL-.js";
7
7
  import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
8
8
  import { useRouter as q } from "vue-router";
9
9
  import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as O } from "./index--T9htMAt.js";
10
+ import { u as O } from "./index-d4H-VoHb.js";
11
11
  import { u as U } from "./error-K1CakhA9.js";
12
12
  import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
13
  const z = /* @__PURE__ */ C({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as z, watch as $, createVNode as a, createTextVNode as i, h } from "vue";
2
- import { e as C, u as G } from "./index-CblSdE4I.js";
2
+ import { e as C, u as G } from "./index-BGLG0L6x.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as E } from "./dinero-CIVmXLL-.js";
5
- import { g as Y, a as H } from "./assets-Cy96qAKJ.js";
6
- import { t as q, a as J } from "./transaction-CxzGTmkG.js";
5
+ import { g as Y, a as H } from "./assets-CofaZ_lT.js";
6
+ import { t as q, a as J } from "./transaction-B8ifjkL4.js";
7
7
  import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as W } from "vue-router";
9
- import { s as X } from "./index-CpBwYTvQ.js";
9
+ import { s as X } from "./index-BdPxytRc.js";
10
10
  import { useCoreStore as Z } from "@feedmepos/mf-common";
11
11
  const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as x, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
2
- import { e as E, u as q } from "./index-CblSdE4I.js";
2
+ import { e as E, u as q } from "./index-BGLG0L6x.js";
3
3
  import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
4
  import { d as B } from "./dinero-CIVmXLL-.js";
5
- import { g as W, a as X } from "./assets-Cy96qAKJ.js";
6
- import { t as P, a as Z } from "./transaction-CxzGTmkG.js";
5
+ import { g as W, a as X } from "./assets-CofaZ_lT.js";
6
+ import { t as P, a as Z } from "./transaction-B8ifjkL4.js";
7
7
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as te } from "vue-router";
9
- import { s as ae } from "./index-CpBwYTvQ.js";
9
+ import { s as ae } from "./index-BdPxytRc.js";
10
10
  import { u as ne } from "./error-K1CakhA9.js";
11
11
  import { w as oe } from "./Modal-DB8M9o1T.js";
12
12
  const re = /* @__PURE__ */ w({
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as h, openBlock as g, createElementBlock as V, createTextVNode as M, createElementVNode as x, toDisplayString as L, resolveComponent as f, createVNode as v, normalizeClass as z, withCtx as B, createBlock as b, createCommentVNode as F, ref as C, computed as Y, unref as m, watch as K, isRef as P, h as E } from "vue";
2
- import "./index-CblSdE4I.js";
2
+ import "./index-BGLG0L6x.js";
3
3
  import { h as q } from "./moment-h96o7c8I.js";
4
- import { u as j } from "./index--T9htMAt.js";
5
- import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-UgxsCvVC.js";
4
+ import { u as j } from "./index-d4H-VoHb.js";
5
+ import { _ as H } from "./index.vue_vue_type_script_setup_true_lang-Cz-jVTPU.js";
6
6
  import { _ as G } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
7
  import { useSnackbar as D, useDialogChild as Q, useDialog as J } from "@feedmepos/ui-library";
8
- import { t as A } from "./index-CPyo7PsK.js";
8
+ import { t as A } from "./index-CORtn1qp.js";
9
9
  import { c as O } from "./clipboard-4jh1WteU.js";
10
- import { g as W } from "./grafana-B-S5S_95.js";
10
+ import { g as W } from "./grafana-Bk6PPzTz.js";
11
11
  import { u as N } from "./error-K1CakhA9.js";
12
12
  import { z as R, a as U } from "./validator-D5jtpt9A.js";
13
13
  import { useCoreStore as X } from "@feedmepos/mf-common";
@@ -1,13 +1,14 @@
1
- import { defineComponent as T, openBlock as b, createElementBlock as N, Fragment as Y, createElementVNode as g, createTextVNode as V, toDisplayString as S, toRef as M, ref as F, watch as D, onMounted as G, computed as O, resolveComponent as f, unref as k, createVNode as I, createBlock as _, withCtx as q, createCommentVNode as B, isRef as h, resolveDynamicComponent as L, normalizeProps as j, mergeProps as E } from "vue";
2
- import { u as R, e as U } from "./index-CblSdE4I.js";
3
- import { useRouter as A } from "vue-router";
4
- import { t as C } from "./index-CPyo7PsK.js";
5
- import { _ as z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { u as H } from "./index--T9htMAt.js";
1
+ import { defineComponent as T, openBlock as b, createElementBlock as N, Fragment as Y, createElementVNode as g, createTextVNode as V, toDisplayString as S, toRef as M, ref as F, watch as D, onMounted as G, computed as O, resolveComponent as f, unref as _, createVNode as I, createBlock as x, withCtx as q, createCommentVNode as B, isRef as h, resolveDynamicComponent as L, normalizeProps as j, mergeProps as z } from "vue";
2
+ import { u as R, e as U } from "./index-BGLG0L6x.js";
3
+ import { useRouter as E } from "vue-router";
4
+ import { t as C } from "./index-CORtn1qp.js";
5
+ import { _ as A } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
+ import { u as H } from "./index-d4H-VoHb.js";
7
7
  import { useSnackbar as Q } from "@feedmepos/ui-library";
8
8
  import { u as J } from "./error-K1CakhA9.js";
9
+ import { z as W, a as X } from "./validator-D5jtpt9A.js";
9
10
  import { useCoreStore as $ } from "@feedmepos/mf-common";
10
- const W = /* @__PURE__ */ T({
11
+ const Z = /* @__PURE__ */ T({
11
12
  __name: "Information",
12
13
  props: {
13
14
  terminal: {
@@ -31,10 +32,10 @@ const W = /* @__PURE__ */ T({
31
32
  e[7] || (e[7] = g("br", null, null, -1))
32
33
  ], 64));
33
34
  }
34
- }), X = {
35
+ }), ee = {
35
36
  key: 0,
36
37
  class: "flex items-center justify-center min-h-[80vh]"
37
- }, Z = { class: "flex mt-6 space-x-6" }, ee = /* @__PURE__ */ T({
38
+ }, ae = { class: "flex mt-6 space-x-6" }, te = /* @__PURE__ */ T({
38
39
  __name: "TerminalGateway",
39
40
  props: {
40
41
  terminal: {
@@ -75,10 +76,10 @@ const W = /* @__PURE__ */ T({
75
76
  (r = c.terminal.ecrs) == null || r.splice(t, 1), c.onUpdate(c.terminal);
76
77
  }
77
78
  return (t, r) => {
78
- const m = f("FmCircularProgress"), x = f("FmSelect"), w = f("FmButton"), K = f("FmForm");
79
- return k(d) ? (b(), N("div", X, [
79
+ const m = f("FmCircularProgress"), k = f("FmSelect"), w = f("FmButton"), K = f("FmForm");
80
+ return _(d) ? (b(), N("div", ee, [
80
81
  I(m, { size: "xxl" })
81
- ])) : (b(), _(K, {
82
+ ])) : (b(), x(K, {
82
83
  key: 1,
83
84
  ref: v.value,
84
85
  class: "flex flex-col gap-16 w-[500px]",
@@ -87,14 +88,15 @@ const W = /* @__PURE__ */ T({
87
88
  })
88
89
  }, {
89
90
  default: q(() => [
90
- I(x, {
91
+ I(k, {
91
92
  modelValue: p.value.terminalId,
92
93
  "onUpdate:modelValue": r[0] || (r[0] = (P) => p.value.terminalId = P),
93
94
  label: "Terminal ID",
94
- items: s.value
95
- }, null, 8, ["modelValue", "items"]),
96
- g("div", Z, [
97
- n.value > -1 ? (b(), _(w, {
95
+ items: s.value,
96
+ rules: _(W)(_(X).string())
97
+ }, null, 8, ["modelValue", "items", "rules"]),
98
+ g("div", ae, [
99
+ n.value > -1 ? (b(), x(w, {
98
100
  key: 0,
99
101
  class: "flex-1",
100
102
  variant: "secondary",
@@ -113,7 +115,7 @@ const W = /* @__PURE__ */ T({
113
115
  }, 512));
114
116
  };
115
117
  }
116
- }), ae = { class: "flex mt-6 space-x-6" }, te = /* @__PURE__ */ T({
118
+ }), ne = { class: "flex mt-6 space-x-6" }, le = /* @__PURE__ */ T({
117
119
  __name: "FiuuGateway",
118
120
  props: {
119
121
  terminal: {
@@ -166,8 +168,8 @@ const W = /* @__PURE__ */ T({
166
168
  (u = a.value.gateways) == null || u.splice(s, 1), d.onUpdate(a.value);
167
169
  }
168
170
  return (s, u) => {
169
- const t = f("FmSelect"), r = f("FmTextField"), m = f("FmButton"), x = f("FmForm");
170
- return b(), _(x, {
171
+ const t = f("FmSelect"), r = f("FmTextField"), m = f("FmButton"), k = f("FmForm");
172
+ return b(), x(k, {
171
173
  ref: o.value,
172
174
  class: "flex flex-col gap-16 w-[500px]",
173
175
  onValidationSuccess: u[2] || (u[2] = () => {
@@ -179,15 +181,15 @@ const W = /* @__PURE__ */ T({
179
181
  modelValue: n.value.packageId,
180
182
  "onUpdate:modelValue": u[0] || (u[0] = (w) => n.value.packageId = w),
181
183
  label: "Package ID",
182
- items: c.filter((w) => w.region === k(e))
184
+ items: c.filter((w) => w.region === _(e))
183
185
  }, null, 8, ["modelValue", "items"]),
184
186
  I(r, {
185
187
  modelValue: n.value.uniqueId,
186
188
  "onUpdate:modelValue": u[1] || (u[1] = (w) => n.value.uniqueId = w),
187
189
  label: "Unique ID"
188
190
  }, null, 8, ["modelValue"]),
189
- g("div", ae, [
190
- v.value > -1 ? (b(), _(m, {
191
+ g("div", ne, [
192
+ v.value > -1 ? (b(), x(m, {
191
193
  key: 0,
192
194
  class: "flex-1",
193
195
  variant: "secondary",
@@ -206,7 +208,7 @@ const W = /* @__PURE__ */ T({
206
208
  }, 512);
207
209
  };
208
210
  }
209
- }), ne = { class: "flex mt-6 space-x-6" }, le = /* @__PURE__ */ T({
211
+ }), re = { class: "flex mt-6 space-x-6" }, ue = /* @__PURE__ */ T({
210
212
  __name: "GhlGateway",
211
213
  props: {
212
214
  terminal: {
@@ -246,7 +248,7 @@ const W = /* @__PURE__ */ T({
246
248
  }
247
249
  return (i, l) => {
248
250
  const s = f("FmTextField"), u = f("FmTextarea"), t = f("FmButton"), r = f("FmForm");
249
- return b(), _(r, {
251
+ return b(), x(r, {
250
252
  ref: c.value,
251
253
  class: "flex flex-col gap-16 w-[500px]",
252
254
  onValidationSuccess: l[3] || (l[3] = () => {
@@ -269,8 +271,8 @@ const W = /* @__PURE__ */ T({
269
271
  "onUpdate:modelValue": l[2] || (l[2] = (m) => o.value.privateKey = m),
270
272
  label: "Private Key"
271
273
  }, null, 8, ["modelValue"]),
272
- g("div", ne, [
273
- a.value > -1 ? (b(), _(t, {
274
+ g("div", re, [
275
+ a.value > -1 ? (b(), x(t, {
274
276
  key: 0,
275
277
  class: "flex-1",
276
278
  variant: "secondary",
@@ -289,7 +291,7 @@ const W = /* @__PURE__ */ T({
289
291
  }, 512);
290
292
  };
291
293
  }
292
- }), pe = /* @__PURE__ */ T({
294
+ }), ge = /* @__PURE__ */ T({
293
295
  __name: "TerminalSetting",
294
296
  props: {
295
297
  terminalId: {
@@ -300,7 +302,7 @@ const W = /* @__PURE__ */ T({
300
302
  setup(y) {
301
303
  const d = y, { tab: e } = H({
302
304
  tab: "information"
303
- }), { isLoading: c, startAsyncCall: a } = R(!0), o = A(), v = Q(), n = F();
305
+ }), { isLoading: c, startAsyncCall: a } = R(!0), o = E(), v = Q(), n = F();
304
306
  async function p(t) {
305
307
  a(async () => {
306
308
  try {
@@ -330,13 +332,13 @@ const W = /* @__PURE__ */ T({
330
332
  label: "Information",
331
333
  value: "information",
332
334
  icon: "overview",
333
- render: W
335
+ render: Z
334
336
  },
335
337
  {
336
338
  label: "Fiuu",
337
339
  value: "fiuu",
338
340
  icon: "payment",
339
- render: te
341
+ render: le
340
342
  }
341
343
  ], l = $().currentCountry, s = O(() => {
342
344
  var t;
@@ -348,31 +350,31 @@ const W = /* @__PURE__ */ T({
348
350
  label: "FeedMe Terminal",
349
351
  value: "terminal",
350
352
  icon: "shopping_cart_checkout",
351
- render: ee
353
+ render: te
352
354
  }), l.value === U.F_COUNTRY.enum.MY && i.push({
353
355
  label: "GHL Terminal (V2)",
354
356
  value: "ghl",
355
357
  icon: "shopping_cart_checkout",
356
- render: le
358
+ render: ue
357
359
  }));
358
360
  });
359
361
  }
360
362
  return G(u), (t, r) => {
361
- var x;
363
+ var k;
362
364
  const m = f("FmTabs");
363
- return b(), _(z, {
364
- title: `Terminal (${(x = n.value) == null ? void 0 : x._id})`,
365
- loading: k(c),
366
- onBack: k(o).back
365
+ return b(), x(A, {
366
+ title: `Terminal (${(k = n.value) == null ? void 0 : k._id})`,
367
+ loading: _(c),
368
+ onBack: _(o).back
367
369
  }, {
368
370
  default: q(() => [
369
371
  I(m, {
370
- "model-value": k(e),
372
+ "model-value": _(e),
371
373
  "onUpdate:modelValue": r[0] || (r[0] = (w) => h(e) ? e.value = w : null),
372
374
  class: "mb-6",
373
375
  items: i
374
376
  }, null, 8, ["model-value"]),
375
- k(e) ? (b(), _(L(s.value), j(E({ key: 0 }, {
377
+ _(e) ? (b(), x(L(s.value), j(z({ key: 0 }, {
376
378
  terminal: n.value,
377
379
  onUpdate: p
378
380
  })), null, 16)) : B("", !0)
@@ -383,5 +385,5 @@ const W = /* @__PURE__ */ T({
383
385
  }
384
386
  });
385
387
  export {
386
- pe as default
388
+ ge as default
387
389
  };