@feedmepos/mf-payment 1.5.55-dev → 1.5.56-dev

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.
@@ -3,7 +3,7 @@ import { o as z } from "./index-CnN_MV2-.js";
3
3
  import { u as Z, p as oe } from "./index-D0j1LZAB.js";
4
4
  import { useRouter as re } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-DzjyJnvv.js";
6
- import { P as ie } from "./payout-account-CP6qQFlB.js";
6
+ import { P as ie } from "./payout-account-Bo0AnO4t.js";
7
7
  import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js";
8
8
  import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
9
  import { _ as ee } from "./Status.vue_vue_type_script_setup_true_lang-CUnCf_fx.js";
@@ -8,7 +8,7 @@ import { p as En } from "./index-C80a7-Ks.js";
8
8
  import { useSnackbar as Vn, useFormChild as Kn, useDialog as Qn } from "@feedmepos/ui-library";
9
9
  import { u as yn } from "./index-D0j1LZAB.js";
10
10
  import { s as Sn } from "./vue-signature-pad.esm-IXPjf4fL.js";
11
- import { P as Un } from "./payout-account-CP6qQFlB.js";
11
+ import { P as Un } from "./payout-account-Bo0AnO4t.js";
12
12
  import { useRouter as In } from "vue-router";
13
13
  const _n = { class: "flex" }, $n = { class: "justify-self-center font-semibold" }, nt = ["src"], tt = ["src"], C = /* @__PURE__ */ rn({
14
14
  __name: "UploadButton",
@@ -1,15 +1,18 @@
1
- import { defineComponent as _, resolveComponent as p, openBlock as y, createBlock as k, normalizeClass as v, withCtx as b, createElementVNode as E, toDisplayString as N, createVNode as u, createElementBlock as S, computed as F, ref as I, watch as V, isRef as g, unref as l, h as x } from "vue";
2
- import { h as O } from "./moment-h96o7c8I.js";
3
- import { u as K } from "./index-BkQ7t3F6.js";
4
- import { p as T } from "./index-D0j1LZAB.js";
5
- import { _ as $ } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
6
- import { P } from "./payout-account-CP6qQFlB.js";
1
+ import { defineComponent as y, resolveComponent as p, openBlock as f, createElementBlock as N, createVNode as m, normalizeClass as v, withCtx as b, createElementVNode as P, toDisplayString as k, createCommentVNode as I, createBlock as V, computed as F, ref as O, watch as R, isRef as _, unref as l, h as x } from "vue";
2
+ import { h as K } from "./moment-h96o7c8I.js";
3
+ import { u as T } from "./index-BkQ7t3F6.js";
4
+ import { p as $ } from "./index-D0j1LZAB.js";
5
+ import { _ as U } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
6
+ import { P as E } from "./payout-account-Bo0AnO4t.js";
7
7
  import { p as A } from "./index-C80a7-Ks.js";
8
8
  import "@feedmepos/ui-library";
9
- import { _ as U } from "./index.vue_vue_type_script_setup_true_lang-BksGFeSf.js";
10
- import { useRouter as G } from "vue-router";
11
- import { _ as Y } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
12
- const L = /* @__PURE__ */ _({
9
+ import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-BksGFeSf.js";
10
+ import { useRouter as Y } from "vue-router";
11
+ import { _ as L } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
12
+ const W = { class: "flex flex-col gap-1" }, j = {
13
+ key: 0,
14
+ class: "text-xs text-red-500"
15
+ }, q = /* @__PURE__ */ y({
13
16
  __name: "Status",
14
17
  props: {
15
18
  row: {},
@@ -17,42 +20,45 @@ const L = /* @__PURE__ */ _({
17
20
  },
18
21
  setup(t) {
19
22
  const s = t;
20
- function r() {
21
- return s.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : s.data === "PENDING" ? "!w-[16px] !h-[16px] bg-red-400" : s.data === "REJECTED" ? "!w-[16px] !h-[16px] bg-orange-500" : "!w-[16px] !h-[16px] bg-green-400";
23
+ function n() {
24
+ return s.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : s.data === "PENDING" ? "!w-[16px] !h-[16px] bg-orange-400" : s.data === "REJECTED" ? "!w-[16px] !h-[16px] bg-red-500" : "!w-[16px] !h-[16px] bg-green-400";
22
25
  }
23
26
  return (c, d) => {
24
- const o = p("FmBadge");
25
- return y(), k(o, {
26
- inline: "",
27
- class: v(r())
28
- }, {
29
- default: b(() => [
30
- E("div", null, N(t.data), 1)
31
- ]),
32
- _: 1
33
- }, 8, ["class"]);
27
+ const r = p("FmBadge");
28
+ return f(), N("div", W, [
29
+ m(r, {
30
+ inline: "",
31
+ class: v(n())
32
+ }, {
33
+ default: b(() => [
34
+ P("div", null, k(t.data), 1)
35
+ ]),
36
+ _: 1
37
+ }, 8, ["class"]),
38
+ s.data === "REJECTED" && s.row.original.statusReason ? (f(), N("div", j, k(s.row.original.statusReason), 1)) : I("", !0)
39
+ ]);
34
40
  };
35
41
  }
36
- }), W = /* @__PURE__ */ _({
42
+ }), H = /* @__PURE__ */ y({
37
43
  __name: "Bank",
38
44
  props: {
39
45
  row: {},
40
46
  data: {}
41
47
  },
42
48
  setup(t) {
43
- function s(r) {
44
- return r ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
49
+ function s(n) {
50
+ return n ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
45
51
  }
46
- return (r, c) => {
47
- const d = p("FmBadge"), o = p("FmListItem");
48
- return y(), k(o, {
52
+ return (n, c) => {
53
+ const d = p("FmBadge"), r = p("FmListItem");
54
+ return f(), V(r, {
49
55
  label: t.row.original.holderName,
50
56
  sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
51
57
  clickable: !1,
52
58
  tag: "label"
53
59
  }, {
54
60
  append: b(() => [
55
- u(d, {
61
+ m(d, {
56
62
  inline: "",
57
63
  class: v(s(t.row.original.bankReady))
58
64
  }, null, 8, ["class"])
@@ -61,26 +67,26 @@ const L = /* @__PURE__ */ _({
61
67
  }, 8, ["label", "sublabel"]);
62
68
  };
63
69
  }
64
- }), j = /* @__PURE__ */ _({
70
+ }), J = /* @__PURE__ */ y({
65
71
  __name: "PersonInCharge",
66
72
  props: {
67
73
  row: {},
68
74
  data: {}
69
75
  },
70
76
  setup(t) {
71
- function s(r) {
72
- return r ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
77
+ function s(n) {
78
+ return n ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
73
79
  }
74
- return (r, c) => {
75
- const d = p("FmBadge"), o = p("FmListItem");
76
- return y(), k(o, {
80
+ return (n, c) => {
81
+ const d = p("FmBadge"), r = p("FmListItem");
82
+ return f(), V(r, {
77
83
  label: t.row.original.picName,
78
84
  sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
79
85
  clickable: !1,
80
86
  tag: "label"
81
87
  }, {
82
88
  append: b(() => [
83
- u(d, {
89
+ m(d, {
84
90
  inline: "",
85
91
  class: v(s(t.row.original.picReady))
86
92
  }, null, 8, ["class"])
@@ -89,28 +95,28 @@ const L = /* @__PURE__ */ _({
89
95
  }, 8, ["label", "sublabel"]);
90
96
  };
91
97
  }
92
- }), q = /* @__PURE__ */ _({
98
+ }), M = /* @__PURE__ */ y({
93
99
  __name: "DisplayName",
94
100
  props: {
95
101
  row: {}
96
102
  },
97
103
  setup(t) {
98
- return (s, r) => (y(), S("p", null, N(t.row.original.name) + " (" + N(t.row.original.regNo ?? "-") + ")", 1));
104
+ return (s, n) => (f(), N("p", null, k(t.row.original.name) + " (" + k(t.row.original.regNo ?? "-") + ")", 1));
99
105
  }
100
- }), H = { class: "flex items-start mb-6" }, oe = /* @__PURE__ */ _({
106
+ }), z = { class: "flex items-start mb-6" }, me = /* @__PURE__ */ y({
101
107
  __name: "PayoutAccount",
102
108
  setup(t) {
103
- const s = F(() => P.storeEventOptions()), r = F(() => P.statusOptions()), c = I(), d = G(), { event: o, status: m, searchKey: i } = K({
109
+ const s = F(() => E.storeEventOptions()), n = F(() => E.statusOptions()), c = O(), d = Y(), { event: r, status: i, searchKey: u } = T({
104
110
  searchKey: "",
105
- event: T.F_PAYOUT_FOR.Enum.ORDERING,
106
- status: r.value.map((e) => e.value)
111
+ event: $.F_PAYOUT_FOR.Enum.ORDERING,
112
+ status: n.value.map((e) => e.value)
107
113
  });
108
- V([o, m], () => {
114
+ R([r, i], () => {
109
115
  var e;
110
116
  return (e = c.value) == null ? void 0 : e.reset();
111
117
  });
112
118
  let w;
113
- V(i, async () => {
119
+ R(u, async () => {
114
120
  w && clearTimeout(w), w = setTimeout(() => {
115
121
  var e;
116
122
  return (e = c.value) == null ? void 0 : e.reset();
@@ -129,13 +135,13 @@ const L = /* @__PURE__ */ _({
129
135
  bankName: e.store.bank.name,
130
136
  holderName: e.store.bank.holderName
131
137
  });
132
- const f = {
138
+ const g = {
133
139
  picReady: !1,
134
140
  picName: "",
135
141
  picPhone: "",
136
142
  picEmail: ""
137
143
  };
138
- e.store.keyPerson && Object.assign(f, {
144
+ e.store.keyPerson && Object.assign(g, {
139
145
  picReady: !0,
140
146
  picName: e.store.keyPerson.name,
141
147
  picPhone: e.store.keyPerson.phone,
@@ -147,13 +153,14 @@ const L = /* @__PURE__ */ _({
147
153
  event: e.store.event,
148
154
  name: h,
149
155
  status: e.status,
150
- submissionDate: e.submissionDate ? O(e.submissionDate).format("YYYY-MM-DD HH:mm:ss") : "—",
156
+ statusReason: e.statusReason,
157
+ submissionDate: e.submissionDate ? K(e.submissionDate).format("YYYY-MM-DD HH:mm:ss") : "—",
151
158
  regNo: e.store.regNo,
152
159
  companyName: e.store.companyName,
153
160
  ...a,
154
- ...f
161
+ ...g
155
162
  };
156
- }, R = [
163
+ }, C = [
157
164
  {
158
165
  header: () => "Type",
159
166
  accessorKey: "event",
@@ -164,15 +171,14 @@ const L = /* @__PURE__ */ _({
164
171
  {
165
172
  header: () => "Name",
166
173
  accessorKey: "name",
167
- cell: ({ cell: e, row: a }) => x(q, { row: a })
174
+ cell: ({ cell: e, row: a }) => x(M, { row: a })
168
175
  },
169
176
  {
170
177
  header: () => "Status",
171
178
  accessorKey: "status",
172
- cell: ({ cell: e, row: a }) => x(L, { row: a, data: e.getValue() }),
179
+ cell: ({ cell: e, row: a }) => x(q, { row: a, data: e.getValue() }),
173
180
  meta: {
174
- maxWidth: "108px",
175
- textAlign: "right"
181
+ maxWidth: "108px"
176
182
  }
177
183
  },
178
184
  {
@@ -185,74 +191,74 @@ const L = /* @__PURE__ */ _({
185
191
  {
186
192
  header: () => "Bank Details",
187
193
  accessorKey: "bank",
188
- cell: ({ cell: e, row: a }) => x(W, { row: a, data: e.getValue() })
194
+ cell: ({ cell: e, row: a }) => x(H, { row: a, data: e.getValue() })
189
195
  },
190
196
  {
191
197
  header: () => "Person In-Charge (PIC)",
192
198
  accessorKey: "pic",
193
- cell: ({ cell: e, row: a }) => x(j, { row: a, data: e.getValue() })
199
+ cell: ({ cell: e, row: a }) => x(J, { row: a, data: e.getValue() })
194
200
  }
195
201
  ];
196
202
  return (e, a) => {
197
- const f = p("FmSelect"), h = p("FmSearch"), C = p("FmFormGroup");
198
- return y(), k($, {
203
+ const g = p("FmSelect"), h = p("FmSearch"), B = p("FmFormGroup");
204
+ return f(), V(U, {
199
205
  title: "Payout Accounts",
200
206
  loading: !1
201
207
  }, {
202
208
  default: b(() => [
203
- E("div", H, [
204
- u(f, {
205
- modelValue: l(o),
206
- "onUpdate:modelValue": a[0] || (a[0] = (n) => g(o) ? o.value = n : null),
209
+ P("div", z, [
210
+ m(g, {
211
+ modelValue: l(r),
212
+ "onUpdate:modelValue": a[0] || (a[0] = (o) => _(r) ? r.value = o : null),
207
213
  class: "mr-6 w-[128px]",
208
214
  label: "Type",
209
215
  "label-mark": "required",
210
216
  items: s.value
211
217
  }, null, 8, ["modelValue", "items"]),
212
- u(f, {
213
- modelValue: l(m),
214
- "onUpdate:modelValue": a[2] || (a[2] = (n) => g(m) ? m.value = n : null),
218
+ m(g, {
219
+ modelValue: l(i),
220
+ "onUpdate:modelValue": a[2] || (a[2] = (o) => _(i) ? i.value = o : null),
215
221
  class: "mr-6 w-[300px]",
216
222
  label: "Status",
217
223
  "label-mark": "required",
218
224
  multiselect: "",
219
- items: r.value
225
+ items: n.value
220
226
  }, {
221
227
  "prepend-menu": b(() => [
222
- u(Y, {
223
- modelValue: l(m),
224
- "onUpdate:modelValue": a[1] || (a[1] = (n) => g(m) ? m.value = n : null),
225
- items: r.value
228
+ m(L, {
229
+ modelValue: l(i),
230
+ "onUpdate:modelValue": a[1] || (a[1] = (o) => _(i) ? i.value = o : null),
231
+ items: n.value
226
232
  }, null, 8, ["modelValue", "items"])
227
233
  ]),
228
234
  _: 1
229
235
  }, 8, ["modelValue", "items"]),
230
- u(C, {
236
+ m(B, {
231
237
  class: "w-[300px]",
232
- modelValue: l(i),
233
- "onUpdate:modelValue": a[4] || (a[4] = (n) => g(i) ? i.value = n : null),
238
+ modelValue: l(u),
239
+ "onUpdate:modelValue": a[4] || (a[4] = (o) => _(u) ? u.value = o : null),
234
240
  label: "Search"
235
241
  }, {
236
242
  default: b(() => [
237
- u(h, {
238
- modelValue: l(i),
239
- "onUpdate:modelValue": a[3] || (a[3] = (n) => g(i) ? i.value = n : null),
243
+ m(h, {
244
+ modelValue: l(u),
245
+ "onUpdate:modelValue": a[3] || (a[3] = (o) => _(u) ? u.value = o : null),
240
246
  placeholder: "Search accounts ..."
241
247
  }, null, 8, ["modelValue"])
242
248
  ]),
243
249
  _: 1
244
250
  }, 8, ["modelValue"])
245
251
  ]),
246
- u(U, {
252
+ m(G, {
247
253
  ref_key: "controller",
248
254
  ref: c,
249
- "column-defs": R,
255
+ "column-defs": C,
250
256
  "rows-defs": D,
251
- paginate: (n, B) => l(A).read({ event: l(o), status: l(m), searchKey: l(i), limit: n, cursor: B }),
252
- onRowClick: a[5] || (a[5] = (n) => l(d).push({
257
+ paginate: (o, S) => l(A).read({ event: l(r), status: l(i), searchKey: l(u), limit: o, cursor: S }),
258
+ onRowClick: a[5] || (a[5] = (o) => l(d).push({
253
259
  name: "mf-payment-admin.payout-account-settings",
254
260
  params: {
255
- accountId: n._id
261
+ accountId: o._id
256
262
  }
257
263
  }))
258
264
  }, null, 8, ["paginate"])
@@ -263,5 +269,5 @@ const L = /* @__PURE__ */ _({
263
269
  }
264
270
  });
265
271
  export {
266
- oe as default
272
+ me as default
267
273
  };