@feedmepos/mf-payment 0.0.0-beta.29 → 0.0.0-beta.30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/{PayoutAccount-DGZmraWC.js → PayoutAccount-Bkncr_cB.js} +3 -3
  2. package/dist/{PayoutAccount-CRpuF7oc.js → PayoutAccount-D4mqNLsl.js} +5 -5
  3. package/dist/{PayoutAccountSetting-B0WUvW2T.js → PayoutAccountSetting-B1hM-zzy.js} +273 -199
  4. package/dist/{Settlement-DL852BAW.js → Settlement-DtcJVp3Z.js} +3 -3
  5. package/dist/{Settlement-BfzE6GRq.js → Settlement-kXEsjqGo.js} +3 -3
  6. package/dist/{SettlementTransactions-Bns4JiYa.js → SettlementTransactions-5JuImQzZ.js} +4 -4
  7. package/dist/{SettlementTransactions-B-PmdVmd.js → SettlementTransactions-csNNWUX5.js} +4 -4
  8. package/dist/{Terminal-BJfw9jQn.js → Terminal-DGfySdfA.js} +55 -55
  9. package/dist/TerminalSetting-CucVft_p.js +374 -0
  10. package/dist/{TerminalTransaction-F3kzj60e.js → TerminalTransaction-CwoclWJ5.js} +5 -5
  11. package/dist/{TerminalTransaction-DuVyCu0j.js → TerminalTransaction-DRlFVw4p.js} +5 -5
  12. package/dist/{Transaction-sG5VLrZG.js → Transaction-CKFRlYUk.js} +4 -4
  13. package/dist/{Transaction-BV3f9JLh.js → Transaction-DA6UzVnz.js} +4 -4
  14. package/dist/app.js +13 -13
  15. package/dist/{assets-Bj5ToWoP.js → assets-RXBV3tUm.js} +1 -1
  16. package/dist/{index-BYz1HdLk.js → index-BS_dGfh_.js} +1 -1
  17. package/dist/{index-dVGYvcJH.js → index-CJp88CGw.js} +1 -1
  18. package/dist/{index-BvPakrCi.js → index-CNmg4bnZ.js} +1 -1
  19. package/dist/{index-CTWoVKkI.js → index-C_44uoxW.js} +8597 -8249
  20. package/dist/{index-DvBq8FZH.js → index-CbUxRjwz.js} +1 -1
  21. package/dist/{index-BmrM-GfD.js → index-Cl2XhO9t.js} +1 -1
  22. package/dist/{index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js → index.vue_vue_type_script_setup_true_lang-GkJ2OZPm.js} +1 -1
  23. package/dist/package.json +2 -2
  24. package/dist/{payout-account-BT8stlNQ.js → payout-account-C_01-U_N.js} +261 -261
  25. package/dist/{transaction-LP1p6TuS.js → transaction-yTOBjyUq.js} +1 -1
  26. package/dist/tsconfig.app.tsbuildinfo +1 -1
  27. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  28. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +24 -2
  29. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +24 -2
  30. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +24 -2
  31. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
  32. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +24 -2
  33. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +24 -4
  34. package/package.json +2 -2
  35. package/dist/TerminalSetting-DJ-_DZr_.js +0 -254
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as w, ref as h, computed as S, resolveComponent as v, openBlock as x, createBlock as D, h as A, watch as k, onMounted as F, unref as o, withCtx as R, createElementVNode as u, createVNode as p, isRef as V } from "vue";
2
- import { u as b } from "./index-CTWoVKkI.js";
2
+ import { u as b } from "./index-C_44uoxW.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
- import { s as g } from "./index-BmrM-GfD.js";
4
+ import { s as g } from "./index-Cl2XhO9t.js";
5
5
  import "@feedmepos/ui-library";
6
6
  import { d as f } from "./dinero-CIVmXLL-.js";
7
7
  import { _ as C } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
8
8
  import { useRouter as $ } from "vue-router";
9
9
  import { _ as I } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
10
- import { u as K } from "./index-BYz1HdLk.js";
10
+ import { u as K } from "./index-BS_dGfh_.js";
11
11
  import { _ as P } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
12
  const B = /* @__PURE__ */ w({
13
13
  __name: "SettlementTable",
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as w, ref as S, computed as D, resolveComponent as h, openBlock as v, createBlock as x, h as A, onMounted as k, watch as F, unref as n, withCtx as V, createElementVNode as p, createVNode as i, isRef as C } from "vue";
2
- import { u as $ } from "./index-CTWoVKkI.js";
2
+ import { u as $ } from "./index-C_44uoxW.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
4
  import { useCoreStore as b } from "@feedmepos/mf-common";
5
5
  import { _ as I } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
6
- import { s as g } from "./index-BmrM-GfD.js";
6
+ import { s as g } from "./index-Cl2XhO9t.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { d as f } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as K } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
10
10
  import { useRouter as P } from "vue-router";
11
- import { u as O } from "./index-BYz1HdLk.js";
11
+ import { u as O } from "./index-BS_dGfh_.js";
12
12
  import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
14
14
  const L = /* @__PURE__ */ w({
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as T, 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-CTWoVKkI.js";
2
+ import { e as E, u as q } from "./index-C_44uoxW.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-Bj5ToWoP.js";
6
- import { t as P, a as Z } from "./transaction-LP1p6TuS.js";
5
+ import { g as W, a as X } from "./assets-RXBV3tUm.js";
6
+ import { t as P, a as Z } from "./transaction-yTOBjyUq.js";
7
7
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
8
8
  import { useRouter as te } from "vue-router";
9
- import { s as ae } from "./index-BmrM-GfD.js";
9
+ import { s as ae } from "./index-Cl2XhO9t.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,12 +1,12 @@
1
1
  import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as z, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as G, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
2
- import { e as E, u as j } from "./index-CTWoVKkI.js";
2
+ import { e as E, u as j } from "./index-C_44uoxW.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as h } from "./dinero-CIVmXLL-.js";
5
- import { g as Y, a as H } from "./assets-Bj5ToWoP.js";
6
- import { t as q, a as J } from "./transaction-LP1p6TuS.js";
5
+ import { g as Y, a as H } from "./assets-RXBV3tUm.js";
6
+ import { t as q, a as J } from "./transaction-yTOBjyUq.js";
7
7
  import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
8
8
  import { useRouter as W } from "vue-router";
9
- import { s as X } from "./index-BmrM-GfD.js";
9
+ import { s as X } from "./index-Cl2XhO9t.js";
10
10
  import { useCoreStore as Z } from "@feedmepos/mf-common";
11
11
  const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
@@ -1,18 +1,18 @@
1
- import { defineComponent as x, openBlock as d, createElementBlock as I, createTextVNode as N, createElementVNode as h, toDisplayString as $, resolveComponent as m, createVNode as _, normalizeClass as R, withCtx as V, createBlock as g, createCommentVNode as B, ref as k, computed as z, unref as c, watch as Y, isRef as M, h as S } from "vue";
2
- import "./index-CTWoVKkI.js";
3
- import { h as j } from "./moment-h96o7c8I.js";
4
- import { u as L } from "./index-BYz1HdLk.js";
5
- import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-X-K_s8fy.js";
1
+ import { defineComponent as h, openBlock as d, createElementBlock as I, createTextVNode as R, createElementVNode as k, toDisplayString as N, resolveComponent as m, createVNode as _, normalizeClass as U, withCtx as V, createBlock as g, createCommentVNode as A, ref as T, computed as M, unref as c, watch as z, isRef as L, h as S } from "vue";
2
+ import "./index-C_44uoxW.js";
3
+ import { h as Y } from "./moment-h96o7c8I.js";
4
+ import { u as j } from "./index-BS_dGfh_.js";
5
+ import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-GkJ2OZPm.js";
6
6
  import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
7
- import { useSnackbar as U, useDialogChild as Q, useDialog as G } from "@feedmepos/ui-library";
8
- import { t as F } from "./index-DvBq8FZH.js";
7
+ import { useSnackbar as P, useDialogChild as Q, useDialog as G } from "@feedmepos/ui-library";
8
+ import { t as F } from "./index-CbUxRjwz.js";
9
9
  import { c as H } from "./clipboard-4jh1WteU.js";
10
10
  import { u as D } from "./error-K1CakhA9.js";
11
- import { z as K, a as P } from "./validator-D5jtpt9A.js";
11
+ import { z as E, a as K } from "./validator-D5jtpt9A.js";
12
12
  import { useCoreStore as J } from "@feedmepos/mf-common";
13
13
  import { w as W } from "./Modal-DB8M9o1T.js";
14
14
  import { useRouter as X } from "vue-router";
15
- const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te = /* @__PURE__ */ x({
15
+ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te = /* @__PURE__ */ h({
16
16
  __name: "TerminalBindCodeDialog",
17
17
  props: {
18
18
  code: {
@@ -22,22 +22,22 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
22
22
  },
23
23
  setup(u) {
24
24
  return (n, o) => (d(), I("div", Z, [
25
- o[0] || (o[0] = N(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
26
- h("div", ee, $(u.code), 1)
25
+ o[0] || (o[0] = R(" Enter the binding code below on your device to link it with this terminal and apply the configuration. ")),
26
+ k("div", ee, N(u.code), 1)
27
27
  ]));
28
28
  }
29
- }), ne = /* @__PURE__ */ x({
29
+ }), ne = /* @__PURE__ */ h({
30
30
  __name: "ID",
31
31
  props: {
32
32
  row: {},
33
33
  data: {}
34
34
  },
35
35
  setup(u) {
36
- const n = u, o = U();
37
- function i() {
36
+ const n = u, o = P();
37
+ function s() {
38
38
  return n.row.original.status === "Active" ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
39
39
  }
40
- function s() {
40
+ function i() {
41
41
  try {
42
42
  H(n.data), o.open({ title: "Text copied to clipboard." }, 1e3);
43
43
  } catch {
@@ -49,22 +49,22 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
49
49
  const p = m("FmBadge");
50
50
  return d(), I("div", {
51
51
  onClick: a[0] || (a[0] = (v) => {
52
- v.stopPropagation(), s();
52
+ v.stopPropagation(), i();
53
53
  })
54
54
  }, [
55
55
  _(p, {
56
56
  inline: "",
57
- class: R(i())
57
+ class: U(s())
58
58
  }, {
59
59
  default: V(() => [
60
- h("div", null, $(r.data), 1)
60
+ k("div", null, N(r.data), 1)
61
61
  ]),
62
62
  _: 1
63
63
  }, 8, ["class"])
64
64
  ]);
65
65
  };
66
66
  }
67
- }), oe = { class: "flex" }, ae = /* @__PURE__ */ x({
67
+ }), oe = { class: "flex" }, ae = /* @__PURE__ */ h({
68
68
  __name: "Actions",
69
69
  props: {
70
70
  data: {}
@@ -72,36 +72,36 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
72
72
  emits: ["link", "unlink", "edit"],
73
73
  setup(u, { emit: n }) {
74
74
  const o = n;
75
- return (i, s) => {
75
+ return (s, i) => {
76
76
  const r = m("FmButton");
77
77
  return d(), I("div", oe, [
78
- i.data.deviceId ? B("", !0) : (d(), g(r, {
78
+ s.data.deviceType === "TERMINAL" && !s.data.deviceId ? (d(), g(r, {
79
79
  key: 0,
80
80
  variant: "plain",
81
81
  "prepend-icon": "link",
82
- onClick: s[0] || (s[0] = (a) => {
82
+ onClick: i[0] || (i[0] = (a) => {
83
83
  a.stopPropagation(), o("link");
84
84
  })
85
- })),
86
- i.data.deviceId ? (d(), g(r, {
85
+ })) : A("", !0),
86
+ s.data.deviceType === "TERMINAL" && s.data.deviceId ? (d(), g(r, {
87
87
  key: 1,
88
88
  variant: "plain",
89
89
  "prepend-icon": "link_off",
90
- onClick: s[1] || (s[1] = (a) => {
90
+ onClick: i[1] || (i[1] = (a) => {
91
91
  a.stopPropagation(), o("unlink");
92
92
  })
93
- })) : B("", !0),
93
+ })) : A("", !0),
94
94
  _(r, {
95
95
  variant: "plain",
96
96
  "prepend-icon": "edit",
97
- onClick: s[2] || (s[2] = (a) => {
97
+ onClick: i[2] || (i[2] = (a) => {
98
98
  a.stopPropagation(), o("edit");
99
99
  })
100
100
  })
101
101
  ]);
102
102
  };
103
103
  }
104
- }), re = /* @__PURE__ */ x({
104
+ }), re = /* @__PURE__ */ h({
105
105
  __name: "TerminalDialog",
106
106
  props: {
107
107
  terminal: {
@@ -109,42 +109,42 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
109
109
  }
110
110
  },
111
111
  setup(u) {
112
- var y, T, w;
113
- const n = u, o = J(), i = Q(), s = k(), r = k((y = n.terminal) == null ? void 0 : y.name), a = k((T = n.terminal) == null ? void 0 : T.referenceId), p = k(((w = n.terminal) == null ? void 0 : w.status) === "Active"), v = z(() => o.restaurants.value.map((t) => ({
112
+ var y, x, w;
113
+ const n = u, o = J(), s = Q(), i = T(), r = T((y = n.terminal) == null ? void 0 : y.name), a = T((x = n.terminal) == null ? void 0 : x.referenceId), p = T(((w = n.terminal) == null ? void 0 : w.status) === "Active"), v = M(() => o.restaurants.value.map((t) => ({
114
114
  label: t.profile.name,
115
115
  value: t._id
116
116
  })));
117
117
  return (t, e) => {
118
- const l = m("FmSelect"), b = m("FmTextField"), f = m("FmSwitch"), A = m("FmButton"), E = m("FmForm");
119
- return d(), g(E, {
120
- ref: s.value,
118
+ const l = m("FmSelect"), b = m("FmTextField"), f = m("FmSwitch"), B = m("FmButton"), $ = m("FmForm");
119
+ return d(), g($, {
120
+ ref: i.value,
121
121
  class: "flex flex-col gap-16 mb-6",
122
122
  onValidationSuccess: e[3] || (e[3] = () => {
123
- c(i).emitData({ name: r.value, referenceId: a.value, status: p.value ? "Active" : "Inactive" }), c(i).emitAction("primary");
123
+ c(s).emitData({ name: r.value, referenceId: a.value, status: p.value ? "Active" : "Inactive" }), c(s).emitAction("primary");
124
124
  })
125
125
  }, {
126
126
  default: V(() => [
127
- n.terminal ? B("", !0) : (d(), g(l, {
127
+ n.terminal ? A("", !0) : (d(), g(l, {
128
128
  key: 0,
129
129
  modelValue: a.value,
130
130
  "onUpdate:modelValue": e[0] || (e[0] = (C) => a.value = C),
131
131
  label: "Restaurant",
132
132
  items: v.value,
133
- rules: c(K)(c(P).string())
133
+ rules: c(E)(c(K).string())
134
134
  }, null, 8, ["modelValue", "items", "rules"])),
135
135
  _(b, {
136
136
  modelValue: r.value,
137
137
  "onUpdate:modelValue": e[1] || (e[1] = (C) => r.value = C),
138
138
  label: "Terminal Name",
139
- rules: c(K)(c(P).string())
139
+ rules: c(E)(c(K).string())
140
140
  }, null, 8, ["modelValue", "rules"]),
141
141
  n.terminal ? (d(), g(f, {
142
142
  key: 1,
143
143
  modelValue: p.value,
144
144
  "onUpdate:modelValue": e[2] || (e[2] = (C) => p.value = C),
145
145
  label: "Status"
146
- }, null, 8, ["modelValue"])) : B("", !0),
147
- _(A, {
146
+ }, null, 8, ["modelValue"])) : A("", !0),
147
+ _(B, {
148
148
  type: "submit",
149
149
  label: "Create"
150
150
  })
@@ -153,15 +153,15 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
153
153
  }, 512);
154
154
  };
155
155
  }
156
- }), se = { class: "flex justify-between mb-6 items-center" }, ie = { class: "flex space-x-4" }, le = { class: "flex space-x-4" }, xe = /* @__PURE__ */ x({
156
+ }), se = { class: "flex justify-between mb-6 items-center" }, ie = { class: "flex space-x-4" }, le = { class: "flex space-x-4" }, he = /* @__PURE__ */ h({
157
157
  __name: "Terminal",
158
158
  setup(u) {
159
- const n = k(), { searchKey: o } = L({
159
+ const n = T(), { searchKey: o } = j({
160
160
  searchKey: ""
161
161
  });
162
- let i;
163
- Y(o, async () => {
164
- i && clearTimeout(i), i = setTimeout(
162
+ let s;
163
+ z(o, async () => {
164
+ s && clearTimeout(s), s = setTimeout(
165
165
  () => {
166
166
  var t;
167
167
  return (t = n.value) == null ? void 0 : t.reset();
@@ -169,7 +169,7 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
169
169
  700
170
170
  );
171
171
  });
172
- const s = X(), r = G(), a = U();
172
+ const i = X(), r = G(), a = P();
173
173
  async function p(t) {
174
174
  W(
175
175
  r,
@@ -226,14 +226,14 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
226
226
  }
227
227
  });
228
228
  }
229
- const T = function(t) {
229
+ const x = function(t) {
230
230
  return {
231
231
  id: t._id,
232
232
  status: t.status,
233
233
  referenceId: t.referenceId,
234
234
  name: t.name,
235
235
  deviceId: t.deviceId,
236
- updatedAt: j(t.updatedAt).format("YYYY-MM-DD hh:mm:ss")
236
+ updatedAt: Y(t.updatedAt).format("YYYY-MM-DD hh:mm:ss")
237
237
  };
238
238
  }, w = [
239
239
  {
@@ -297,17 +297,17 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
297
297
  loading: !1
298
298
  }, {
299
299
  default: V(() => [
300
- h("div", se, [
301
- h("div", ie, [
300
+ k("div", se, [
301
+ k("div", ie, [
302
302
  _(l, {
303
303
  "model-value": c(o),
304
- "onUpdate:modelValue": e[0] || (e[0] = (f) => M(o) ? o.value = f : null),
304
+ "onUpdate:modelValue": e[0] || (e[0] = (f) => L(o) ? o.value = f : null),
305
305
  class: "mr-8",
306
306
  label: "Search",
307
307
  placeholder: "Search Terminals ..."
308
308
  }, null, 8, ["model-value"])
309
309
  ]),
310
- h("div", le, [
310
+ k("div", le, [
311
311
  _(b, {
312
312
  label: "Create",
313
313
  icon: "add",
@@ -319,9 +319,9 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
319
319
  ref_key: "controller",
320
320
  ref: n,
321
321
  "column-defs": w,
322
- "rows-defs": T,
323
- paginate: (f, A) => c(F).read({ searchKey: c(o), limit: f, cursor: A }),
324
- onRowClick: e[2] || (e[2] = (f) => c(s).push({
322
+ "rows-defs": x,
323
+ paginate: (f, B) => c(F).read({ searchKey: c(o), limit: f, cursor: B }),
324
+ onRowClick: e[2] || (e[2] = (f) => c(i).push({
325
325
  name: "mf-payment-admin.terminal-setting",
326
326
  params: {
327
327
  terminalId: f._id
@@ -335,5 +335,5 @@ const Z = { class: "t-caption" }, ee = { class: "t-h1 my-6 text-center" }, te =
335
335
  }
336
336
  });
337
337
  export {
338
- xe as default
338
+ he as default
339
339
  };