@feedmepos/mf-payment 0.0.0-beta.4 → 0.0.0-beta.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/{PayoutAccount-CAFAjyuW.js → PDFViewer-CjH_C1uT.js} +10851 -14329
  2. package/dist/{PayoutAccount-CcKzwrCh.js → PayoutAccount-D_wbG2db.js} +99 -96
  3. package/dist/PayoutAccount-DbkSWOCs.js +3484 -0
  4. package/dist/PayoutAccountSetting-CIeos0md.js +425 -0
  5. package/dist/{Settlement-C4IEccV6.js → Settlement-BVGACeme.js} +3 -3
  6. package/dist/{Settlement-D4gdbOE0.js → Settlement-Ce48KHrc.js} +3 -3
  7. package/dist/{SettlementTransactions-DYelInkD.js → SettlementTransactions-DSRf8aEw.js} +124 -128
  8. package/dist/{SettlementTransactions-C3dnWHkD.js → SettlementTransactions-DwqDJZIs.js} +4 -4
  9. package/dist/{Terminal-Co7KPrrb.js → Terminal-ByKV2Rof.js} +3 -3
  10. package/dist/{TerminalTransaction-CtVBUTMg.js → TerminalTransaction-CLxdptzR.js} +4 -4
  11. package/dist/{Transaction-CvDEP2Uq.js → Transaction-CV1d08Ud.js} +4 -4
  12. package/dist/{Transaction-Rk0g5_Gn.js → Transaction-kTEec2Mj.js} +4 -4
  13. package/dist/api/payout/index.d.ts +2 -1
  14. package/dist/app.d.ts +3 -0
  15. package/dist/app.js +28 -22
  16. package/dist/{assets-CZ2m5tCN.js → assets-Cii0ihIL.js} +1 -1
  17. package/dist/components/PDFViewer.vue.d.ts +0 -2
  18. package/dist/error-K1CakhA9.js +6 -0
  19. package/dist/{index-B8_4waUa.js → index-Bmka-1lQ.js} +1 -1
  20. package/dist/index-CF56zGyu.js +40 -0
  21. package/dist/{index-CjCiGW2Y.js → index-Coz5aeIO.js} +1 -1
  22. package/dist/{index-DvzXwr90.js → index-DCPNrUDq.js} +1 -1
  23. package/dist/{index.vue_vue_type_script_setup_true_lang-y4tchjya.js → index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js} +1 -1
  24. package/dist/package.json +6 -6
  25. package/dist/{index-IE-8HK_2.js → payout-account-Cb3UeEgB.js} +705 -736
  26. package/dist/plugins.d.ts +1 -1
  27. package/dist/style.css +1 -1
  28. package/dist/{transaction-fdJNol6A.js → transaction-vRrBf3FN.js} +1 -1
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/dist/views/admin/payout-account/PayoutAccountSetting.vue.d.ts +11 -1
  31. package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +8 -0
  32. package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +8 -0
  33. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +81 -0
  34. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +90 -0
  35. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +81 -0
  36. package/package.json +18 -18
@@ -1,128 +1,130 @@
1
- import { defineComponent as b, resolveComponent as i, openBlock as f, createBlock as g, normalizeClass as v, withCtx as _, createElementVNode as V, toDisplayString as A, createVNode as c, computed as N, ref as C, watch as x, unref as u, isRef as y, h as k } from "vue";
2
- import { u as E } from "./index-B8_4waUa.js";
3
- import { _ as S } from "./index-DvzXwr90.js";
4
- import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
5
- import { P as F, p as K } from "./index-IE-8HK_2.js";
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-Cb3UeEgB.js";
6
+ import { p as $ } from "./index-CF56zGyu.js";
6
7
  import "@feedmepos/ui-library";
7
- import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-y4tchjya.js";
8
- const T = /* @__PURE__ */ b({
8
+ import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js";
9
+ import { useRouter as T } from "vue-router";
10
+ const G = /* @__PURE__ */ b({
9
11
  __name: "Status",
10
12
  props: {
11
13
  row: {},
12
14
  data: {}
13
15
  },
14
- setup(p) {
15
- const n = p;
16
- function a() {
16
+ setup(d) {
17
+ const n = d;
18
+ function t() {
17
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";
18
20
  }
19
- return (s, o) => {
20
- const r = i("FmBadge");
21
- return f(), g(r, {
21
+ return (s, u) => {
22
+ const r = m("FmBadge");
23
+ return g(), h(r, {
22
24
  inline: "",
23
- class: v(a())
25
+ class: N(t())
24
26
  }, {
25
- default: _(() => [
26
- V("div", null, A(s.data), 1)
27
+ default: f(() => [
28
+ P("div", null, C(s.data), 1)
27
29
  ]),
28
30
  _: 1
29
31
  }, 8, ["class"]);
30
32
  };
31
33
  }
32
- }), $ = /* @__PURE__ */ b({
34
+ }), U = /* @__PURE__ */ b({
33
35
  __name: "IsActive",
34
36
  props: {
35
37
  row: {},
36
38
  data: {}
37
39
  },
38
- setup(p) {
39
- const n = p;
40
- function a() {
40
+ setup(d) {
41
+ const n = d;
42
+ function t() {
41
43
  return n.data ? "#66BB6A" : "#EF5350";
42
44
  }
43
45
  function s() {
44
46
  return n.data ? "check" : "close";
45
47
  }
46
- return (o, r) => {
47
- const l = i("FmIcon");
48
- return f(), g(l, {
48
+ return (u, r) => {
49
+ const p = m("FmIcon");
50
+ return g(), h(p, {
49
51
  name: s(),
50
- color: a(),
52
+ color: t(),
51
53
  size: "lg"
52
54
  }, null, 8, ["name", "color"]);
53
55
  };
54
56
  }
55
- }), G = /* @__PURE__ */ b({
57
+ }), L = /* @__PURE__ */ b({
56
58
  __name: "Bank",
57
59
  props: {
58
60
  row: {},
59
61
  data: {}
60
62
  },
61
- setup(p) {
62
- function n(a) {
63
- return a ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
63
+ setup(d) {
64
+ function n(t) {
65
+ return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
64
66
  }
65
- return (a, s) => {
66
- const o = i("FmBadge"), r = i("FmListItem");
67
- return f(), g(r, {
68
- label: a.row.original.holderName,
69
- sublabel: a.row.original.bankName + " - " + a.row.original.bankNumber,
67
+ return (t, s) => {
68
+ const u = m("FmBadge"), r = m("FmListItem");
69
+ return g(), h(r, {
70
+ label: t.row.original.holderName,
71
+ sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
70
72
  clickable: !1,
71
73
  tag: "label"
72
74
  }, {
73
- append: _(() => [
74
- c(o, {
75
+ append: f(() => [
76
+ c(u, {
75
77
  inline: "",
76
- class: v(n(a.row.original.bankReady))
78
+ class: N(n(t.row.original.bankReady))
77
79
  }, null, 8, ["class"])
78
80
  ]),
79
81
  _: 1
80
82
  }, 8, ["label", "sublabel"]);
81
83
  };
82
84
  }
83
- }), U = /* @__PURE__ */ b({
85
+ }), W = /* @__PURE__ */ b({
84
86
  __name: "PersonInCharge",
85
87
  props: {
86
88
  row: {},
87
89
  data: {}
88
90
  },
89
- setup(p) {
90
- function n(a) {
91
- return a ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
91
+ setup(d) {
92
+ function n(t) {
93
+ return t ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
92
94
  }
93
- return (a, s) => {
94
- const o = i("FmBadge"), r = i("FmListItem");
95
- return f(), g(r, {
96
- label: a.row.original.picName,
97
- sublabel: a.row.original.picEmail + " - " + a.row.original.picPhone,
95
+ return (t, s) => {
96
+ const u = m("FmBadge"), r = m("FmListItem");
97
+ return g(), h(r, {
98
+ label: t.row.original.picName,
99
+ sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
98
100
  clickable: !1,
99
101
  tag: "label"
100
102
  }, {
101
- append: _(() => [
102
- c(o, {
103
+ append: f(() => [
104
+ c(u, {
103
105
  inline: "",
104
- class: v(n(a.row.original.picReady))
106
+ class: N(n(t.row.original.picReady))
105
107
  }, null, 8, ["class"])
106
108
  ]),
107
109
  _: 1
108
110
  }, 8, ["label", "sublabel"]);
109
111
  };
110
112
  }
111
- }), L = { class: "flex items-start mb-6" }, J = /* @__PURE__ */ b({
113
+ }), Q = { class: "flex items-start mb-6" }, ee = /* @__PURE__ */ b({
112
114
  __name: "PayoutAccount",
113
- setup(p) {
114
- const n = N(() => F.storeEventOptions), a = N(() => F.statusOptions), s = C(), { event: o, status: r, searchKey: l } = E({
115
+ setup(d) {
116
+ const n = x(() => V.storeEventOptions), t = x(() => V.statusOptions), s = E(), u = T(), { event: r, status: p, searchKey: i } = S({
115
117
  searchKey: "",
116
- event: S.F_PAYOUT_FOR.Enum.ORDERING,
117
- status: a.value.map((e) => e.value)
118
+ event: O.F_PAYOUT_FOR.Enum.ORDERING,
119
+ status: t.value.map((e) => e.value)
118
120
  });
119
- x([o, r], () => {
121
+ F([r, p], () => {
120
122
  var e;
121
123
  return (e = s.value) == null ? void 0 : e.refreshQuery();
122
124
  });
123
- let w;
124
- x(l, async () => {
125
- w && clearTimeout(w), w = setTimeout(
125
+ let v;
126
+ F(i, async () => {
127
+ v && clearTimeout(v), v = setTimeout(
126
128
  () => {
127
129
  var e;
128
130
  return (e = s.value) == null ? void 0 : e.refreshQuery();
@@ -130,42 +132,42 @@ const T = /* @__PURE__ */ b({
130
132
  700
131
133
  );
132
134
  });
133
- const P = function(e) {
134
- const t = {
135
+ const I = function(e) {
136
+ const a = {
135
137
  bankReady: !1,
136
138
  bankNumber: "",
137
139
  bankName: "",
138
140
  holderName: ""
139
141
  };
140
- e.store.bank && e.store.bank.accountNumber && Object.assign(t, {
142
+ e.store.bank && e.store.bank.accountNumber && Object.assign(a, {
141
143
  bankReady: !0,
142
144
  bankNumber: e.store.bank.accountNumber,
143
145
  bankName: e.store.bank.name,
144
146
  holderName: e.store.bank.holderName
145
147
  });
146
- const d = {
148
+ const _ = {
147
149
  picReady: !1,
148
150
  picName: "",
149
151
  picPhone: "",
150
152
  picEmail: ""
151
153
  };
152
- e.store.keyPerson && Object.assign(d, {
154
+ e.store.keyPerson && Object.assign(_, {
153
155
  picReady: !0,
154
156
  picName: e.store.keyPerson.name,
155
157
  picPhone: e.store.keyPerson.phone,
156
158
  picEmail: e.store.keyPerson.email
157
159
  });
158
- let h = e.ref.name;
159
- return e.store.event === "ORDERING" && (h = e.ref.profile.name), {
160
+ let y = e.ref.name;
161
+ return e.store.event === "ORDERING" && (y = e.ref.profile.name), {
160
162
  _id: e._id,
161
163
  event: e.store.event,
162
- name: h,
164
+ name: y,
163
165
  status: e.status,
164
166
  isActive: e.enable,
165
- ...t,
166
- ...d
167
+ ...a,
168
+ ..._
167
169
  };
168
- }, I = [
170
+ }, R = [
169
171
  {
170
172
  header: () => "Type",
171
173
  accessorKey: "event",
@@ -180,7 +182,7 @@ const T = /* @__PURE__ */ b({
180
182
  {
181
183
  header: () => "Status",
182
184
  accessorKey: "status",
183
- cell: ({ cell: e, row: t }) => k(T, { row: t, data: e.getValue() }),
185
+ cell: ({ cell: e, row: a }) => w(G, { row: a, data: e.getValue() }),
184
186
  meta: {
185
187
  maxWidth: "108px",
186
188
  textAlign: "right"
@@ -192,54 +194,54 @@ const T = /* @__PURE__ */ b({
192
194
  meta: {
193
195
  maxWidth: "64px"
194
196
  },
195
- cell: ({ cell: e, row: t }) => k($, { row: t, data: e.getValue() })
197
+ cell: ({ cell: e, row: a }) => w(U, { row: a, data: e.getValue() })
196
198
  },
197
199
  {
198
200
  header: () => "Bank Details",
199
201
  accessorKey: "bank",
200
- cell: ({ cell: e, row: t }) => k(G, { row: t, data: e.getValue() })
202
+ cell: ({ cell: e, row: a }) => w(L, { row: a, data: e.getValue() })
201
203
  },
202
204
  {
203
205
  header: () => "Person In-Charge (PIC)",
204
206
  accessorKey: "pic",
205
- cell: ({ cell: e, row: t }) => k(U, { row: t, data: e.getValue() })
207
+ cell: ({ cell: e, row: a }) => w(W, { row: a, data: e.getValue() })
206
208
  }
207
209
  ];
208
- return (e, t) => {
209
- const d = i("FmSelect"), h = i("FmSearch"), B = i("FmFormGroup");
210
- return f(), g(O, {
210
+ return (e, a) => {
211
+ const _ = m("FmSelect"), y = m("FmSearch"), B = m("FmFormGroup");
212
+ return g(), h(K, {
211
213
  title: "Payout Accounts",
212
214
  loading: !1
213
215
  }, {
214
- default: _(() => [
215
- V("div", L, [
216
- c(d, {
217
- modelValue: u(o),
218
- "onUpdate:modelValue": t[0] || (t[0] = (m) => y(o) ? o.value = m : null),
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),
219
221
  class: "mr-6 w-[128px]",
220
222
  label: "Type",
221
223
  "label-mark": "required",
222
224
  items: n.value
223
225
  }, null, 8, ["modelValue", "items"]),
224
- c(d, {
225
- modelValue: u(r),
226
- "onUpdate:modelValue": t[1] || (t[1] = (m) => y(r) ? r.value = m : null),
226
+ c(_, {
227
+ modelValue: l(p),
228
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => k(p) ? p.value = o : null),
227
229
  class: "mr-6 w-[300px]",
228
230
  label: "Status",
229
231
  "label-mark": "required",
230
232
  multiselect: "",
231
- items: a.value
233
+ items: t.value
232
234
  }, null, 8, ["modelValue", "items"]),
233
235
  c(B, {
234
236
  class: "w-[300px]",
235
- modelValue: u(l),
236
- "onUpdate:modelValue": t[3] || (t[3] = (m) => y(l) ? l.value = m : null),
237
+ modelValue: l(i),
238
+ "onUpdate:modelValue": a[3] || (a[3] = (o) => k(i) ? i.value = o : null),
237
239
  label: "Search"
238
240
  }, {
239
- default: _(() => [
240
- c(h, {
241
- modelValue: u(l),
242
- "onUpdate:modelValue": t[2] || (t[2] = (m) => y(l) ? l.value = m : null),
241
+ default: f(() => [
242
+ c(y, {
243
+ modelValue: l(i),
244
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => k(i) ? i.value = o : null),
243
245
  placeholder: "Search accounts ..."
244
246
  }, null, 8, ["modelValue"])
245
247
  ]),
@@ -249,11 +251,12 @@ const T = /* @__PURE__ */ b({
249
251
  c(D, {
250
252
  ref_key: "controller",
251
253
  ref: s,
252
- "column-defs": I,
253
- "rows-defs": P,
254
- paginate: (m, R) => u(K).read({ event: u(o), status: u(r), searchKey: u(l), limit: m, cursor: R }),
255
- onRowClick: () => {
256
- }
254
+ "column-defs": R,
255
+ "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}`
259
+ }))
257
260
  }, null, 8, ["paginate"])
258
261
  ]),
259
262
  _: 1
@@ -262,5 +265,5 @@ const T = /* @__PURE__ */ b({
262
265
  }
263
266
  });
264
267
  export {
265
- J as default
268
+ ee as default
266
269
  };