@feedmepos/mf-payment 1.0.17 → 1.0.18-beta.1

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 (54) hide show
  1. package/dist/{PayoutAccount-B4_FlpNy.js → PayoutAccount-DCq9zJ7I.js} +4 -3
  2. package/dist/{PayoutAccount-C1F4nzhY.js → PayoutAccount-Dlrre2MV.js} +83 -115
  3. package/dist/PayoutAccountSetting-D6Scsqvm.js +426 -0
  4. package/dist/{Restaurant-TCSbQjCj.js → Restaurant-AoDzEhKi.js} +4 -4
  5. package/dist/{RestaurantSetting-D_dNcxQd.js → RestaurantSetting-CAQfJwaq.js} +137 -115
  6. package/dist/{Settlement-BQe2JW-Q.js → Settlement-anAN-1YR.js} +3 -3
  7. package/dist/Settlement-kfM1jLO-.js +444 -0
  8. package/dist/{SettlementTransactions-DD6wLd4W.js → SettlementTransactions-IhEM3Qtp.js} +4 -4
  9. package/dist/{SettlementTransactions-9sVg8_eQ.js → SettlementTransactions-dVE594dr.js} +4 -4
  10. package/dist/Terminal-C0Irg7I_.js +435 -0
  11. package/dist/{TerminalSetting-CNjiW8AS.js → TerminalSetting-mMj1OSGc.js} +43 -41
  12. package/dist/{TerminalTransaction-BHdUR8kU.js → TerminalTransaction-2Oe5b_rm.js} +205 -194
  13. package/dist/TerminalTransaction-Coth2MwA.js +269 -0
  14. package/dist/Transaction-BbbVDMIm.js +247 -0
  15. package/dist/{Transaction-Sq0Vy8K5.js → Transaction-ChE2VgSa.js} +6 -6
  16. package/dist/{TransactionOld-DgFEZ8lO.js → TransactionOld-T8CKBB6U.js} +4 -4
  17. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-B10hKLw3.js → TransactionTable.vue_vue_type_script_setup_true_lang-CoPiWynn.js} +2 -2
  18. package/dist/api/index.d.ts +1 -1
  19. package/dist/api/settlement/index.d.ts +5 -1
  20. package/dist/api/terminal/index.d.ts +1 -0
  21. package/dist/api/terminal-transaction/index.d.ts +2 -2
  22. package/dist/{app-DSs9frsP.js → app-B36bwKcX.js} +145 -145
  23. package/dist/app.js +1 -1
  24. package/dist/{assets-isbnAWcO.js → assets-fxpnHIZr.js} +1 -1
  25. package/dist/grafana-BFQCDk-V.js +54 -0
  26. package/dist/index-9a-RyWYf.js +52 -0
  27. package/dist/{index-M-Xwbigf.js → index-C2q2ptf8.js} +1 -1
  28. package/dist/{index-CRJ6lKaL.js → index-CC8HNMje.js} +2 -2
  29. package/dist/{index-zuIHTzhv.js → index-CEJAjyRa.js} +1 -1
  30. package/dist/{index-CMfikq5P.js → index-Cj90pU-C.js} +27 -20
  31. package/dist/{index-_cvebzIU.js → index-DueuWuxx.js} +1 -1
  32. package/dist/{index-C-YBzOUs.js → index-ZMBnoQxd.js} +31 -23
  33. package/dist/{index.vue_vue_type_script_setup_true_lang-atP7HnX3.js → index.vue_vue_type_script_setup_true_lang-PfAufXp3.js} +1 -1
  34. package/dist/package.json +2 -2
  35. package/dist/{payout-account-DcBR5HoD.js → payout-account-D-LZ6-Lb.js} +2 -2
  36. package/dist/style.css +1 -1
  37. package/dist/{transaction-3qMvkl2b.js → transaction-5dZS6JFA.js} +21 -12
  38. package/dist/tsconfig.app.tsbuildinfo +1 -1
  39. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +2 -0
  40. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +293 -0
  41. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +147 -0
  42. package/package.json +2 -2
  43. package/dist/PayoutAccountSelector.vue_vue_type_script_setup_true_lang-D1JZ56cv.js +0 -110
  44. package/dist/PayoutAccountSetting-BEw1XNuX.js +0 -758
  45. package/dist/Settlement-DTA0SdZc.js +0 -145
  46. package/dist/Terminal-Dd2OGvH_.js +0 -404
  47. package/dist/TerminalTransaction-BDye71lK.js +0 -819
  48. package/dist/Transaction-EmgoD2xm.js +0 -145
  49. package/dist/grafana-Bf4L47IF.js +0 -49
  50. package/dist/index-B7mrn8cQ.js +0 -47
  51. package/dist/index-DuemQbuN.js +0 -28
  52. package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +0 -7
  53. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +0 -81
  54. package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +0 -7
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as f, ref as I, reactive as J, computed as Z, watch as p, resolveComponent as Y, openBlock as n, createBlock as u, withCtx as Q, createElementVNode as r, createVNode as i, unref as w, createCommentVNode as O, createElementBlock as U, normalizeClass as h, toDisplayString as k, h as y, onMounted as R, Fragment as T } from "vue";
2
- import { p as N } from "./index-zuIHTzhv.js";
3
- import { _ as z, u as L, e as S } from "./index-CRJ6lKaL.js";
2
+ import { p as N } from "./index-CEJAjyRa.js";
3
+ import { _ as z, u as L, e as S } from "./index-CC8HNMje.js";
4
4
  import { defineStore as _ } from "pinia";
5
5
  import { useCoreStore as $ } from "@feedmepos/mf-common";
6
- import { c as AA, P as W } from "./payout-account-DcBR5HoD.js";
6
+ import { c as AA, P as W } from "./payout-account-D-LZ6-Lb.js";
7
7
  import { useDialogChild as eA, useDialog as sA } from "@feedmepos/ui-library";
8
8
  import { z as X, a as x } from "./validator-D5jtpt9A.js";
9
9
  import { P as K } from "./PDFViewer-xrBtzrlR.js";
@@ -158,6 +158,7 @@ const gA = _("mf-payment-payoutAccount", {
158
158
  "onUpdate:modelValue": A[3] || (A[3] = (c) => e.payoutSetting.store.bank.accountNumber = c),
159
159
  label: "Account Number",
160
160
  "label-mark": "required",
161
+ type: "number",
161
162
  rules: w(X)(w(x).string().min(1))
162
163
  }, null, 8, ["modelValue", "rules"]),
163
164
  i(M, {
@@ -1,139 +1,116 @@
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-_cvebzIU.js";
3
- import { _ as O } from "./index-CRJ6lKaL.js";
4
- import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
- import { P as V } from "./payout-account-DcBR5HoD.js";
6
- import { p as $ } from "./index-zuIHTzhv.js";
1
+ import { defineComponent as y, resolveComponent as u, openBlock as h, createBlock as k, normalizeClass as N, withCtx as c, createElementVNode as P, toDisplayString as I, createVNode as i, computed as x, ref as S, watch as F, unref as r, isRef as f, h as v } from "vue";
2
+ import { u as O } from "./index-DueuWuxx.js";
3
+ import { _ as K } from "./index-CC8HNMje.js";
4
+ import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
+ import { P as V } from "./payout-account-D-LZ6-Lb.js";
6
+ import { p as D } from "./index-CEJAjyRa.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-atP7HnX3.js";
9
- import { useRouter as T } from "vue-router";
10
- import { _ as U } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
11
- const G = /* @__PURE__ */ g({
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-PfAufXp3.js";
9
+ import { useRouter as U } from "vue-router";
10
+ import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
11
+ const G = /* @__PURE__ */ y({
12
12
  __name: "Status",
13
13
  props: {
14
14
  row: {},
15
15
  data: {}
16
16
  },
17
- setup(d) {
18
- const o = d;
17
+ setup(_) {
18
+ const l = _;
19
19
  function t() {
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
+ return l.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : l.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : "!w-[16px] !h-[16px] bg-green-400";
21
21
  }
22
- return (m, c) => {
23
- const r = i("FmBadge");
24
- return h(), y(r, {
22
+ return (p, d) => {
23
+ const o = u("FmBadge");
24
+ return h(), k(o, {
25
25
  inline: "",
26
26
  class: N(t())
27
27
  }, {
28
- default: _(() => [
29
- P("div", null, C(m.data), 1)
28
+ default: c(() => [
29
+ P("div", null, I(p.data), 1)
30
30
  ]),
31
31
  _: 1
32
32
  }, 8, ["class"]);
33
33
  };
34
34
  }
35
- }), L = /* @__PURE__ */ g({
36
- __name: "IsActive",
37
- props: {
38
- row: {},
39
- data: {}
40
- },
41
- setup(d) {
42
- const o = d;
43
- function t() {
44
- return o.data ? "#66BB6A" : "#EF5350";
45
- }
46
- function m() {
47
- return o.data ? "check" : "close";
48
- }
49
- return (c, r) => {
50
- const l = i("FmIcon");
51
- return h(), y(l, {
52
- name: m(),
53
- color: t(),
54
- size: "lg"
55
- }, null, 8, ["name", "color"]);
56
- };
57
- }
58
- }), W = /* @__PURE__ */ g({
35
+ }), L = /* @__PURE__ */ y({
59
36
  __name: "Bank",
60
37
  props: {
61
38
  row: {},
62
39
  data: {}
63
40
  },
64
- setup(d) {
65
- function o(t) {
41
+ setup(_) {
42
+ function l(t) {
66
43
  return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
67
44
  }
68
- return (t, m) => {
69
- const c = i("FmBadge"), r = i("FmListItem");
70
- return h(), y(r, {
45
+ return (t, p) => {
46
+ const d = u("FmBadge"), o = u("FmListItem");
47
+ return h(), k(o, {
71
48
  label: t.row.original.holderName,
72
49
  sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
73
50
  clickable: !1,
74
51
  tag: "label"
75
52
  }, {
76
- append: _(() => [
77
- p(c, {
53
+ append: c(() => [
54
+ i(d, {
78
55
  inline: "",
79
- class: N(o(t.row.original.bankReady))
56
+ class: N(l(t.row.original.bankReady))
80
57
  }, null, 8, ["class"])
81
58
  ]),
82
59
  _: 1
83
60
  }, 8, ["label", "sublabel"]);
84
61
  };
85
62
  }
86
- }), j = /* @__PURE__ */ g({
63
+ }), W = /* @__PURE__ */ y({
87
64
  __name: "PersonInCharge",
88
65
  props: {
89
66
  row: {},
90
67
  data: {}
91
68
  },
92
- setup(d) {
93
- function o(t) {
69
+ setup(_) {
70
+ function l(t) {
94
71
  return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
95
72
  }
96
- return (t, m) => {
97
- const c = i("FmBadge"), r = i("FmListItem");
98
- return h(), y(r, {
73
+ return (t, p) => {
74
+ const d = u("FmBadge"), o = u("FmListItem");
75
+ return h(), k(o, {
99
76
  label: t.row.original.picName,
100
77
  sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
101
78
  clickable: !1,
102
79
  tag: "label"
103
80
  }, {
104
- append: _(() => [
105
- p(c, {
81
+ append: c(() => [
82
+ i(d, {
106
83
  inline: "",
107
- class: N(o(t.row.original.picReady))
84
+ class: N(l(t.row.original.picReady))
108
85
  }, null, 8, ["class"])
109
86
  ]),
110
87
  _: 1
111
88
  }, 8, ["label", "sublabel"]);
112
89
  };
113
90
  }
114
- }), q = { class: "flex items-start mb-6" }, te = /* @__PURE__ */ g({
91
+ }), j = { class: "flex items-start mb-6" }, ae = /* @__PURE__ */ y({
115
92
  __name: "PayoutAccount",
116
- setup(d) {
117
- const o = x(() => V.storeEventOptions), t = x(() => V.statusOptions), m = E(), c = T(), { event: r, status: l, searchKey: u } = S({
93
+ setup(_) {
94
+ const l = x(() => V.storeEventOptions), t = x(() => V.statusOptions), p = S(), d = U(), { event: o, status: s, searchKey: m } = O({
118
95
  searchKey: "",
119
- event: O.F_PAYOUT_FOR.Enum.ORDERING,
96
+ event: K.F_PAYOUT_FOR.Enum.ORDERING,
120
97
  status: t.value.map((e) => e.value)
121
98
  });
122
- F([r, l], () => {
99
+ F([o, s], () => {
123
100
  var e;
124
- return (e = m.value) == null ? void 0 : e.reset();
101
+ return (e = p.value) == null ? void 0 : e.reset();
125
102
  });
126
103
  let w;
127
- F(u, async () => {
104
+ F(m, async () => {
128
105
  w && clearTimeout(w), w = setTimeout(
129
106
  () => {
130
107
  var e;
131
- return (e = m.value) == null ? void 0 : e.reset();
108
+ return (e = p.value) == null ? void 0 : e.reset();
132
109
  },
133
110
  700
134
111
  );
135
112
  });
136
- const I = function(e) {
113
+ const R = function(e) {
137
114
  const a = {
138
115
  bankReady: !1,
139
116
  bankNumber: "",
@@ -146,29 +123,28 @@ const G = /* @__PURE__ */ g({
146
123
  bankName: e.store.bank.name,
147
124
  holderName: e.store.bank.holderName
148
125
  });
149
- const f = {
126
+ const b = {
150
127
  picReady: !1,
151
128
  picName: "",
152
129
  picPhone: "",
153
130
  picEmail: ""
154
131
  };
155
- e.store.keyPerson && Object.assign(f, {
132
+ e.store.keyPerson && Object.assign(b, {
156
133
  picReady: !0,
157
134
  picName: e.store.keyPerson.name,
158
135
  picPhone: e.store.keyPerson.phone,
159
136
  picEmail: e.store.keyPerson.email
160
137
  });
161
- let k = e.ref.name;
162
- return e.store.event === "ORDERING" && (k = e.ref.profile.name), {
138
+ let g = e.ref.name;
139
+ return e.store.event === "ORDERING" && (g = e.ref.profile.name), {
163
140
  _id: e._id,
164
141
  event: e.store.event,
165
- name: k,
142
+ name: g,
166
143
  status: e.status,
167
- isActive: e.enable,
168
144
  ...a,
169
- ...f
145
+ ...b
170
146
  };
171
- }, R = [
147
+ }, B = [
172
148
  {
173
149
  header: () => "Type",
174
150
  accessorKey: "event",
@@ -189,82 +165,74 @@ const G = /* @__PURE__ */ g({
189
165
  textAlign: "right"
190
166
  }
191
167
  },
192
- {
193
- header: () => "Active?",
194
- accessorKey: "isActive",
195
- meta: {
196
- maxWidth: "64px"
197
- },
198
- cell: ({ cell: e, row: a }) => v(L, { row: a, data: e.getValue() })
199
- },
200
168
  {
201
169
  header: () => "Bank Details",
202
170
  accessorKey: "bank",
203
- cell: ({ cell: e, row: a }) => v(W, { row: a, data: e.getValue() })
171
+ cell: ({ cell: e, row: a }) => v(L, { row: a, data: e.getValue() })
204
172
  },
205
173
  {
206
174
  header: () => "Person In-Charge (PIC)",
207
175
  accessorKey: "pic",
208
- cell: ({ cell: e, row: a }) => v(j, { row: a, data: e.getValue() })
176
+ cell: ({ cell: e, row: a }) => v(W, { row: a, data: e.getValue() })
209
177
  }
210
178
  ];
211
179
  return (e, a) => {
212
- const f = i("FmSelect"), k = i("FmSearch"), B = i("FmFormGroup");
213
- return h(), y(K, {
180
+ const b = u("FmSelect"), g = u("FmSearch"), C = u("FmFormGroup");
181
+ return h(), k(A, {
214
182
  title: "Payout Accounts",
215
183
  loading: !1
216
184
  }, {
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),
185
+ default: c(() => [
186
+ P("div", j, [
187
+ i(b, {
188
+ modelValue: r(o),
189
+ "onUpdate:modelValue": a[0] || (a[0] = (n) => f(o) ? o.value = n : null),
222
190
  class: "mr-6 w-[128px]",
223
191
  label: "Type",
224
192
  "label-mark": "required",
225
- items: o.value
193
+ items: l.value
226
194
  }, null, 8, ["modelValue", "items"]),
227
- p(f, {
228
- modelValue: s(l),
229
- "onUpdate:modelValue": a[2] || (a[2] = (n) => b(l) ? l.value = n : null),
195
+ i(b, {
196
+ modelValue: r(s),
197
+ "onUpdate:modelValue": a[2] || (a[2] = (n) => f(s) ? s.value = n : null),
230
198
  class: "mr-6 w-[300px]",
231
199
  label: "Status",
232
200
  "label-mark": "required",
233
201
  multiselect: "",
234
202
  items: t.value
235
203
  }, {
236
- "prepend-menu": _(() => [
237
- p(U, {
238
- modelValue: s(l),
239
- "onUpdate:modelValue": a[1] || (a[1] = (n) => b(l) ? l.value = n : null),
204
+ "prepend-menu": c(() => [
205
+ i($, {
206
+ modelValue: r(s),
207
+ "onUpdate:modelValue": a[1] || (a[1] = (n) => f(s) ? s.value = n : null),
240
208
  items: t.value
241
209
  }, null, 8, ["modelValue", "items"])
242
210
  ]),
243
211
  _: 1
244
212
  }, 8, ["modelValue", "items"]),
245
- p(B, {
213
+ i(C, {
246
214
  class: "w-[300px]",
247
- modelValue: s(u),
248
- "onUpdate:modelValue": a[4] || (a[4] = (n) => b(u) ? u.value = n : null),
215
+ modelValue: r(m),
216
+ "onUpdate:modelValue": a[4] || (a[4] = (n) => f(m) ? m.value = n : null),
249
217
  label: "Search"
250
218
  }, {
251
- default: _(() => [
252
- p(k, {
253
- modelValue: s(u),
254
- "onUpdate:modelValue": a[3] || (a[3] = (n) => b(u) ? u.value = n : null),
219
+ default: c(() => [
220
+ i(g, {
221
+ modelValue: r(m),
222
+ "onUpdate:modelValue": a[3] || (a[3] = (n) => f(m) ? m.value = n : null),
255
223
  placeholder: "Search accounts ..."
256
224
  }, null, 8, ["modelValue"])
257
225
  ]),
258
226
  _: 1
259
227
  }, 8, ["modelValue"])
260
228
  ]),
261
- p(D, {
229
+ i(T, {
262
230
  ref_key: "controller",
263
- ref: m,
264
- "column-defs": R,
265
- "rows-defs": I,
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({
231
+ ref: p,
232
+ "column-defs": B,
233
+ "rows-defs": R,
234
+ paginate: (n, E) => r(D).read({ event: r(o), status: r(s), searchKey: r(m), limit: n, cursor: E }),
235
+ onRowClick: a[5] || (a[5] = (n) => r(d).push({
268
236
  name: "mf-payment-admin.payout-account-settings",
269
237
  params: {
270
238
  accountId: n._id
@@ -278,5 +246,5 @@ const G = /* @__PURE__ */ g({
278
246
  }
279
247
  });
280
248
  export {
281
- te as default
249
+ ae as default
282
250
  };