@feedmepos/mf-payment 0.0.0-beta.9 → 1.0.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. package/README.md +11 -1
  2. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
  3. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  4. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  5. package/dist/Modal-DB8M9o1T.js +13 -0
  6. package/dist/PayoutAccount-Ce_7sGf-.js +613 -0
  7. package/dist/{PayoutAccount-DLhMMlw_.js → PayoutAccount-ip4hKBE0.js} +96 -83
  8. package/dist/PayoutAccountSetting-kUQLeAcb.js +780 -0
  9. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
  10. package/dist/SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js +42 -0
  11. package/dist/Settlement-Crdfq22j.js +149 -0
  12. package/dist/Settlement-JHOJNkhd.js +194 -0
  13. package/dist/{SettlementTransactions-CoEzdtYT.js → SettlementTransactions-BxuLXUR-.js} +99 -105
  14. package/dist/{SettlementTransactions-Dl1H4jvh.js → SettlementTransactions-daWMAmtz.js} +117 -130
  15. package/dist/Terminal-gxGnjFGc.js +372 -0
  16. package/dist/TerminalSetting--ZAJJ_Hf.js +379 -0
  17. package/dist/TerminalTransaction-B2RjE2Y0.js +435 -0
  18. package/dist/TerminalTransaction-CCfrLWpi.js +259 -0
  19. package/dist/Transaction-8LlOLPeZ.js +404 -0
  20. package/dist/Transaction-DRQ_uZ30.js +241 -0
  21. package/dist/api/index.d.ts +14 -0
  22. package/dist/api/pagination.d.ts +20 -0
  23. package/dist/api/payment-gateway/index.d.ts +9 -0
  24. package/dist/api/settlement/index.d.ts +12 -13
  25. package/dist/api/terminal/index.d.ts +13 -1
  26. package/dist/api/terminal-transaction/index.d.ts +12 -1
  27. package/dist/api/transaction/index.d.ts +7 -2
  28. package/dist/app-DQNKrzQz.js +6356 -0
  29. package/dist/app.js +3 -198
  30. package/dist/assets-NrCec-W0.js +45 -0
  31. package/dist/clipboard-4jh1WteU.js +10 -0
  32. package/dist/components/AsyncButton.vue.d.ts +21 -0
  33. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  34. package/dist/components/CursorTable/index.vue.d.ts +24 -5
  35. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  36. package/dist/components/RouteCell.vue.d.ts +8 -0
  37. package/dist/components/SelectAll.vue.d.ts +57 -0
  38. package/dist/helpers/assets.d.ts +2 -0
  39. package/dist/{index-Bmka-1lQ.js → index-7KNaibcq.js} +1 -1
  40. package/dist/index-BWUtjGg7.js +47 -0
  41. package/dist/{index-CF56zGyu.js → index-BwcJZFsi.js} +1 -1
  42. package/dist/index-CWaKb7bG.js +56107 -0
  43. package/dist/index-CojhNtuG.js +127 -0
  44. package/dist/index-DbJpbpSs.js +52 -0
  45. package/dist/index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js +167 -0
  46. package/dist/model/transaction.d.ts +2 -1
  47. package/dist/package.json +5 -5
  48. package/dist/payout-account-DVoSXsW7.js +1805 -0
  49. package/dist/router/index.d.ts +1 -0
  50. package/dist/stores/payoutAccount.d.ts +4 -4
  51. package/dist/transaction-CQiT7Y_s.js +87 -0
  52. package/dist/tsconfig.app.tsbuildinfo +1 -1
  53. package/dist/validator-D5jtpt9A.js +2877 -0
  54. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  55. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
  56. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  57. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  58. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  59. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  60. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  61. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  62. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
  63. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  64. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
  65. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
  66. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
  67. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
  68. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
  69. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
  70. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
  71. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
  72. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  73. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  74. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  75. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
  76. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
  77. package/package.json +5 -5
  78. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
  79. package/dist/PayoutAccount-xxSxqBTL.js +0 -3485
  80. package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
  81. package/dist/Settlement-BVGACeme.js +0 -136
  82. package/dist/Settlement-Ce48KHrc.js +0 -132
  83. package/dist/Terminal-ByKV2Rof.js +0 -204
  84. package/dist/TerminalTransaction-RuSxBAxf.js +0 -240
  85. package/dist/Transaction-CYo-uLQi.js +0 -241
  86. package/dist/Transaction-Cjw9WwX8.js +0 -242
  87. package/dist/api/auth/index.d.ts +0 -7
  88. package/dist/assets-BuLGUMIx.js +0 -472
  89. package/dist/index-Coz5aeIO.js +0 -61
  90. package/dist/index-DCPNrUDq.js +0 -40075
  91. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
  92. package/dist/mascot-side-3VXskf9y.js +0 -4
  93. package/dist/payout-account-iAM7HPtG.js +0 -3317
  94. package/dist/transaction-vRrBf3FN.js +0 -64
@@ -1,133 +1,134 @@
1
- import { defineComponent as b, resolveComponent as m, openBlock as g, createBlock as h, normalizeClass as N, withCtx as f, createElementVNode as P, toDisplayString as C, createVNode as c, computed as x, ref as E, watch as F, unref as l, isRef as k, h as w } from "vue";
2
- import { u as S } from "./index-Bmka-1lQ.js";
3
- import { _ as O } from "./index-DCPNrUDq.js";
4
- import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
5
- import { P as V } from "./payout-account-iAM7HPtG.js";
6
- import { p as $ } from "./index-CF56zGyu.js";
1
+ import { defineComponent as g, resolveComponent as i, openBlock as h, createBlock as y, normalizeClass as N, withCtx as _, createElementVNode as P, toDisplayString as C, createVNode as p, computed as x, ref as E, watch as F, unref as s, isRef as b, h as v } from "vue";
2
+ import { u as S } from "./index-7KNaibcq.js";
3
+ import { _ as O } from "./index-CWaKb7bG.js";
4
+ import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
+ import { P as V } from "./payout-account-DVoSXsW7.js";
6
+ import { p as $ } from "./index-BwcJZFsi.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js";
8
+ import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js";
9
9
  import { useRouter as T } from "vue-router";
10
- const G = /* @__PURE__ */ b({
10
+ import { _ as U } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
11
+ const G = /* @__PURE__ */ g({
11
12
  __name: "Status",
12
13
  props: {
13
14
  row: {},
14
15
  data: {}
15
16
  },
16
17
  setup(d) {
17
- const n = d;
18
+ const o = d;
18
19
  function t() {
19
- return n.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
20
+ return o.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
20
21
  }
21
- return (s, u) => {
22
- const r = m("FmBadge");
23
- return g(), h(r, {
22
+ return (m, c) => {
23
+ const r = i("FmBadge");
24
+ return h(), y(r, {
24
25
  inline: "",
25
26
  class: N(t())
26
27
  }, {
27
- default: f(() => [
28
- P("div", null, C(s.data), 1)
28
+ default: _(() => [
29
+ P("div", null, C(m.data), 1)
29
30
  ]),
30
31
  _: 1
31
32
  }, 8, ["class"]);
32
33
  };
33
34
  }
34
- }), U = /* @__PURE__ */ b({
35
+ }), L = /* @__PURE__ */ g({
35
36
  __name: "IsActive",
36
37
  props: {
37
38
  row: {},
38
39
  data: {}
39
40
  },
40
41
  setup(d) {
41
- const n = d;
42
+ const o = d;
42
43
  function t() {
43
- return n.data ? "#66BB6A" : "#EF5350";
44
+ return o.data ? "#66BB6A" : "#EF5350";
44
45
  }
45
- function s() {
46
- return n.data ? "check" : "close";
46
+ function m() {
47
+ return o.data ? "check" : "close";
47
48
  }
48
- return (u, r) => {
49
- const p = m("FmIcon");
50
- return g(), h(p, {
51
- name: s(),
49
+ return (c, r) => {
50
+ const l = i("FmIcon");
51
+ return h(), y(l, {
52
+ name: m(),
52
53
  color: t(),
53
54
  size: "lg"
54
55
  }, null, 8, ["name", "color"]);
55
56
  };
56
57
  }
57
- }), L = /* @__PURE__ */ b({
58
+ }), W = /* @__PURE__ */ g({
58
59
  __name: "Bank",
59
60
  props: {
60
61
  row: {},
61
62
  data: {}
62
63
  },
63
64
  setup(d) {
64
- function n(t) {
65
+ function o(t) {
65
66
  return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
66
67
  }
67
- return (t, s) => {
68
- const u = m("FmBadge"), r = m("FmListItem");
69
- return g(), h(r, {
68
+ return (t, m) => {
69
+ const c = i("FmBadge"), r = i("FmListItem");
70
+ return h(), y(r, {
70
71
  label: t.row.original.holderName,
71
72
  sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
72
73
  clickable: !1,
73
74
  tag: "label"
74
75
  }, {
75
- append: f(() => [
76
- c(u, {
76
+ append: _(() => [
77
+ p(c, {
77
78
  inline: "",
78
- class: N(n(t.row.original.bankReady))
79
+ class: N(o(t.row.original.bankReady))
79
80
  }, null, 8, ["class"])
80
81
  ]),
81
82
  _: 1
82
83
  }, 8, ["label", "sublabel"]);
83
84
  };
84
85
  }
85
- }), W = /* @__PURE__ */ b({
86
+ }), j = /* @__PURE__ */ g({
86
87
  __name: "PersonInCharge",
87
88
  props: {
88
89
  row: {},
89
90
  data: {}
90
91
  },
91
92
  setup(d) {
92
- function n(t) {
93
+ function o(t) {
93
94
  return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
94
95
  }
95
- return (t, s) => {
96
- const u = m("FmBadge"), r = m("FmListItem");
97
- return g(), h(r, {
96
+ return (t, m) => {
97
+ const c = i("FmBadge"), r = i("FmListItem");
98
+ return h(), y(r, {
98
99
  label: t.row.original.picName,
99
100
  sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
100
101
  clickable: !1,
101
102
  tag: "label"
102
103
  }, {
103
- append: f(() => [
104
- c(u, {
104
+ append: _(() => [
105
+ p(c, {
105
106
  inline: "",
106
- class: N(n(t.row.original.picReady))
107
+ class: N(o(t.row.original.picReady))
107
108
  }, null, 8, ["class"])
108
109
  ]),
109
110
  _: 1
110
111
  }, 8, ["label", "sublabel"]);
111
112
  };
112
113
  }
113
- }), Q = { class: "flex items-start mb-6" }, ee = /* @__PURE__ */ b({
114
+ }), q = { class: "flex items-start mb-6" }, te = /* @__PURE__ */ g({
114
115
  __name: "PayoutAccount",
115
116
  setup(d) {
116
- const n = x(() => V.storeEventOptions), t = x(() => V.statusOptions), s = E(), u = T(), { event: r, status: p, searchKey: i } = S({
117
+ const o = x(() => V.storeEventOptions), t = x(() => V.statusOptions), m = E(), c = T(), { event: r, status: l, searchKey: u } = S({
117
118
  searchKey: "",
118
119
  event: O.F_PAYOUT_FOR.Enum.ORDERING,
119
120
  status: t.value.map((e) => e.value)
120
121
  });
121
- F([r, p], () => {
122
+ F([r, l], () => {
122
123
  var e;
123
- return (e = s.value) == null ? void 0 : e.refreshQuery();
124
+ return (e = m.value) == null ? void 0 : e.reset();
124
125
  });
125
- let v;
126
- F(i, async () => {
127
- v && clearTimeout(v), v = setTimeout(
126
+ let w;
127
+ F(u, async () => {
128
+ w && clearTimeout(w), w = setTimeout(
128
129
  () => {
129
130
  var e;
130
- return (e = s.value) == null ? void 0 : e.refreshQuery();
131
+ return (e = m.value) == null ? void 0 : e.reset();
131
132
  },
132
133
  700
133
134
  );
@@ -145,27 +146,27 @@ const G = /* @__PURE__ */ b({
145
146
  bankName: e.store.bank.name,
146
147
  holderName: e.store.bank.holderName
147
148
  });
148
- const _ = {
149
+ const f = {
149
150
  picReady: !1,
150
151
  picName: "",
151
152
  picPhone: "",
152
153
  picEmail: ""
153
154
  };
154
- e.store.keyPerson && Object.assign(_, {
155
+ e.store.keyPerson && Object.assign(f, {
155
156
  picReady: !0,
156
157
  picName: e.store.keyPerson.name,
157
158
  picPhone: e.store.keyPerson.phone,
158
159
  picEmail: e.store.keyPerson.email
159
160
  });
160
- let y = e.ref.name;
161
- return e.store.event === "ORDERING" && (y = e.ref.profile.name), {
161
+ let k = e.ref.name;
162
+ return e.store.event === "ORDERING" && (k = e.ref.profile.name), {
162
163
  _id: e._id,
163
164
  event: e.store.event,
164
- name: y,
165
+ name: k,
165
166
  status: e.status,
166
167
  isActive: e.enable,
167
168
  ...a,
168
- ..._
169
+ ...f
169
170
  };
170
171
  }, R = [
171
172
  {
@@ -182,7 +183,7 @@ const G = /* @__PURE__ */ b({
182
183
  {
183
184
  header: () => "Status",
184
185
  accessorKey: "status",
185
- cell: ({ cell: e, row: a }) => w(G, { row: a, data: e.getValue() }),
186
+ cell: ({ cell: e, row: a }) => v(G, { row: a, data: e.getValue() }),
186
187
  meta: {
187
188
  maxWidth: "108px",
188
189
  textAlign: "right"
@@ -194,68 +195,80 @@ const G = /* @__PURE__ */ b({
194
195
  meta: {
195
196
  maxWidth: "64px"
196
197
  },
197
- cell: ({ cell: e, row: a }) => w(U, { row: a, data: e.getValue() })
198
+ cell: ({ cell: e, row: a }) => v(L, { row: a, data: e.getValue() })
198
199
  },
199
200
  {
200
201
  header: () => "Bank Details",
201
202
  accessorKey: "bank",
202
- cell: ({ cell: e, row: a }) => w(L, { row: a, data: e.getValue() })
203
+ cell: ({ cell: e, row: a }) => v(W, { row: a, data: e.getValue() })
203
204
  },
204
205
  {
205
206
  header: () => "Person In-Charge (PIC)",
206
207
  accessorKey: "pic",
207
- cell: ({ cell: e, row: a }) => w(W, { row: a, data: e.getValue() })
208
+ cell: ({ cell: e, row: a }) => v(j, { row: a, data: e.getValue() })
208
209
  }
209
210
  ];
210
211
  return (e, a) => {
211
- const _ = m("FmSelect"), y = m("FmSearch"), B = m("FmFormGroup");
212
- return g(), h(K, {
212
+ const f = i("FmSelect"), k = i("FmSearch"), B = i("FmFormGroup");
213
+ return h(), y(K, {
213
214
  title: "Payout Accounts",
214
215
  loading: !1
215
216
  }, {
216
- default: f(() => [
217
- P("div", Q, [
218
- c(_, {
219
- modelValue: l(r),
220
- "onUpdate:modelValue": a[0] || (a[0] = (o) => k(r) ? r.value = o : null),
217
+ default: _(() => [
218
+ P("div", q, [
219
+ p(f, {
220
+ modelValue: s(r),
221
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => b(r) ? r.value = n : null),
221
222
  class: "mr-6 w-[128px]",
222
223
  label: "Type",
223
224
  "label-mark": "required",
224
- items: n.value
225
+ items: o.value
225
226
  }, null, 8, ["modelValue", "items"]),
226
- c(_, {
227
- modelValue: l(p),
228
- "onUpdate:modelValue": a[1] || (a[1] = (o) => k(p) ? p.value = o : null),
227
+ p(f, {
228
+ modelValue: s(l),
229
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => b(l) ? l.value = n : null),
229
230
  class: "mr-6 w-[300px]",
230
231
  label: "Status",
231
232
  "label-mark": "required",
232
233
  multiselect: "",
233
234
  items: t.value
234
- }, null, 8, ["modelValue", "items"]),
235
- c(B, {
235
+ }, {
236
+ "prepend-menu": _(() => [
237
+ p(U, {
238
+ modelValue: s(l),
239
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => b(l) ? l.value = n : null),
240
+ items: t.value
241
+ }, null, 8, ["modelValue", "items"])
242
+ ]),
243
+ _: 1
244
+ }, 8, ["modelValue", "items"]),
245
+ p(B, {
236
246
  class: "w-[300px]",
237
- modelValue: l(i),
238
- "onUpdate:modelValue": a[3] || (a[3] = (o) => k(i) ? i.value = o : null),
247
+ modelValue: s(u),
248
+ "onUpdate:modelValue": a[4] || (a[4] = (n) => b(u) ? u.value = n : null),
239
249
  label: "Search"
240
250
  }, {
241
- default: f(() => [
242
- c(y, {
243
- modelValue: l(i),
244
- "onUpdate:modelValue": a[2] || (a[2] = (o) => k(i) ? i.value = o : null),
251
+ default: _(() => [
252
+ p(k, {
253
+ modelValue: s(u),
254
+ "onUpdate:modelValue": a[3] || (a[3] = (n) => b(u) ? u.value = n : null),
245
255
  placeholder: "Search accounts ..."
246
256
  }, null, 8, ["modelValue"])
247
257
  ]),
248
258
  _: 1
249
259
  }, 8, ["modelValue"])
250
260
  ]),
251
- c(D, {
261
+ p(D, {
252
262
  ref_key: "controller",
253
- ref: s,
263
+ ref: m,
254
264
  "column-defs": R,
255
265
  "rows-defs": I,
256
- paginate: (o, A) => l($).read({ event: l(r), status: l(p), searchKey: l(i), limit: o, cursor: A }),
257
- onRowClick: a[4] || (a[4] = (o) => l(u).push({
258
- path: `/payment/admin/payout-accounts/${o._id}`
266
+ paginate: (n, A) => s($).read({ event: s(r), status: s(l), searchKey: s(u), limit: n, cursor: A }),
267
+ onRowClick: a[5] || (a[5] = (n) => s(c).push({
268
+ name: "mf-payment-admin.payout-account-settings",
269
+ params: {
270
+ accountId: n._id
271
+ }
259
272
  }))
260
273
  }, null, 8, ["paginate"])
261
274
  ]),
@@ -265,5 +278,5 @@ const G = /* @__PURE__ */ b({
265
278
  }
266
279
  });
267
280
  export {
268
- ee as default
281
+ te as default
269
282
  };