@feedmepos/mf-payment 1.7.0 → 1.7.3

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 (47) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-eppVogL4.js → Actions.vue_vue_type_script_setup_true_lang-C0vtW1mG.js} +1 -1
  2. package/dist/AdminBusinessSelector.vue_vue_type_script_setup_true_lang-Dlc5qhqj.js +140 -0
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-Ee0Kcdli.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DUcR8dnK.js} +2 -2
  4. package/dist/{Chargeback-jT9X2WFA.js → Chargeback-DJwWFEMC.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CdfIF2L-.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DgUYOcVH.js} +1 -1
  6. package/dist/{OnboardForm-ijX8FIZm.js → OnboardForm-BjxwdZBj.js} +5 -5
  7. package/dist/{OnboardForm-BGBrKIbM.js → OnboardForm-C4x52ic-.js} +5 -5
  8. package/dist/{OnboardSubmission-B3lcdEGp.js → OnboardSubmission-BPvY5F_v.js} +2 -2
  9. package/dist/{OnboardSubmission-B3MuOwB7.js → OnboardSubmission-BYqtbwF1.js} +5 -5
  10. package/dist/PayoutAccount-eo1124GB.js +399 -0
  11. package/dist/{PayoutAccount-CRJgMDkh.js → PayoutAccount-mBiukFuW.js} +5 -5
  12. package/dist/{PayoutAccountSetting-Cz4Q8Nw3.js → PayoutAccountSetting-B5qa7Tay.js} +6 -6
  13. package/dist/{Restaurant-BqSRu2oB.js → Restaurant-qvBGTKUM.js} +4 -4
  14. package/dist/{RestaurantSetting-DQG-5w2m.js → RestaurantSetting-C1RnTMny.js} +3 -3
  15. package/dist/{Settlement-BNEDs442.js → Settlement-Cm3ahfMO.js} +87 -86
  16. package/dist/{Settlement-BdbmT2V9.js → Settlement-DcppFJan.js} +3 -3
  17. package/dist/{SettlementTransactions-DkUCtlRh.js → SettlementTransactions-AxnuTXRM.js} +4 -4
  18. package/dist/{SettlementTransactions-DUkhc-Q6.js → SettlementTransactions-DykuJ5sH.js} +4 -4
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-Bo7M8cD8.js → Status.vue_vue_type_script_setup_true_lang-BXojdBbs.js} +1 -1
  20. package/dist/{Terminal-DjSvvdd5.js → Terminal-BLq4uoFd.js} +5 -5
  21. package/dist/{TerminalSetting-CjSfDoXo.js → TerminalSetting-vQcQLV_v.js} +4 -4
  22. package/dist/Transaction-C2RBulBV.js +1005 -0
  23. package/dist/{Transaction-BI9Y1L8-.js → Transaction-CGZIey5t.js} +10 -10
  24. package/dist/{TransactionOld-D2uBVn6-.js → TransactionOld-Cyat_9Jm.js} +7 -7
  25. package/dist/api/payout/index.d.ts +4 -0
  26. package/dist/api/settlement/index.d.ts +6 -0
  27. package/dist/{app-Bv9EfJm8.js → app-xQjL6kAa.js} +24 -23
  28. package/dist/app.js +1 -1
  29. package/dist/{assets-Bt1SQIBr.js → assets-C-BcsR-y.js} +1 -1
  30. package/dist/{grafana-C1LGsF7g.js → grafana-CmQSpnyb.js} +1 -1
  31. package/dist/{index-BCpKOPCB.js → index-BbYvssG-.js} +27 -19
  32. package/dist/{index-D9LWgOgk.js → index-BmH37WyN.js} +1 -1
  33. package/dist/{index-DRTaSAHc.js → index-C5O-s4jh.js} +1 -1
  34. package/dist/{index-CdgUOxke.js → index-CBiZ4kcs.js} +34 -29
  35. package/dist/{index-gTLQWhrT.js → index-CyqhTgxa.js} +1 -1
  36. package/dist/{index-BQ7YWpB_.js → index-D5EqmdP2.js} +1 -1
  37. package/dist/{index-r34z-yqf.js → index-Dg5Q81XT.js} +2 -2
  38. package/dist/{index-9-IsOLYo.js → index-DgVvuZtu.js} +1 -1
  39. package/dist/{index-C-3b4IKH.js → index-hjYQcl9v.js} +1 -1
  40. package/dist/{index.vue_vue_type_script_setup_true_lang-D1UlVu4n.js → index.vue_vue_type_script_setup_true_lang-DiBVvISs.js} +1 -1
  41. package/dist/package.json +1 -1
  42. package/dist/{payout-account-CNsrpNV-.js → payout-account-GcdK3vkD.js} +3 -3
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/views/admin/payout-account/CreateDummyPayoutDialog.vue.d.ts +2 -0
  45. package/package.json +1 -1
  46. package/dist/PayoutAccount-QPYj4pDq.js +0 -273
  47. package/dist/Transaction-BAmiWdbA.js +0 -1135
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.7.0",
3
+ "version": "1.7.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,273 +0,0 @@
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-9-IsOLYo.js";
4
- import { p as $ } from "./index-BQ7YWpB_.js";
5
- import { _ as U } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
6
- import { P as E } from "./payout-account-CNsrpNV-.js";
7
- import { p as A } from "./index-CdgUOxke.js";
8
- import "@feedmepos/ui-library";
9
- import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-D1UlVu4n.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({
16
- __name: "Status",
17
- props: {
18
- row: {},
19
- data: {}
20
- },
21
- setup(t) {
22
- const s = t;
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";
25
- }
26
- return (c, d) => {
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
- ]);
40
- };
41
- }
42
- }), H = /* @__PURE__ */ y({
43
- __name: "Bank",
44
- props: {
45
- row: {},
46
- data: {}
47
- },
48
- setup(t) {
49
- function s(n) {
50
- return n ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
51
- }
52
- return (n, c) => {
53
- const d = p("FmBadge"), r = p("FmListItem");
54
- return f(), V(r, {
55
- label: t.row.original.holderName,
56
- sublabel: t.row.original.bankName + " - " + t.row.original.bankNumber,
57
- clickable: !1,
58
- tag: "label"
59
- }, {
60
- append: b(() => [
61
- m(d, {
62
- inline: "",
63
- class: v(s(t.row.original.bankReady))
64
- }, null, 8, ["class"])
65
- ]),
66
- _: 1
67
- }, 8, ["label", "sublabel"]);
68
- };
69
- }
70
- }), J = /* @__PURE__ */ y({
71
- __name: "PersonInCharge",
72
- props: {
73
- row: {},
74
- data: {}
75
- },
76
- setup(t) {
77
- function s(n) {
78
- return n ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
79
- }
80
- return (n, c) => {
81
- const d = p("FmBadge"), r = p("FmListItem");
82
- return f(), V(r, {
83
- label: t.row.original.picName,
84
- sublabel: t.row.original.picEmail + " - " + t.row.original.picPhone,
85
- clickable: !1,
86
- tag: "label"
87
- }, {
88
- append: b(() => [
89
- m(d, {
90
- inline: "",
91
- class: v(s(t.row.original.picReady))
92
- }, null, 8, ["class"])
93
- ]),
94
- _: 1
95
- }, 8, ["label", "sublabel"]);
96
- };
97
- }
98
- }), M = /* @__PURE__ */ y({
99
- __name: "DisplayName",
100
- props: {
101
- row: {}
102
- },
103
- setup(t) {
104
- return (s, n) => (f(), N("p", null, k(t.row.original.name) + " (" + k(t.row.original.regNo ?? "-") + ")", 1));
105
- }
106
- }), z = { class: "flex items-start mb-6" }, me = /* @__PURE__ */ y({
107
- __name: "PayoutAccount",
108
- setup(t) {
109
- const s = F(() => E.storeEventOptions()), n = F(() => E.statusOptions()), c = O(), d = Y(), { event: r, status: i, searchKey: u } = T({
110
- searchKey: "",
111
- event: $.F_PAYOUT_FOR.Enum.ORDERING,
112
- status: n.value.map((e) => e.value)
113
- });
114
- R([r, i], () => {
115
- var e;
116
- return (e = c.value) == null ? void 0 : e.reset();
117
- });
118
- let w;
119
- R(u, async () => {
120
- w && clearTimeout(w), w = setTimeout(() => {
121
- var e;
122
- return (e = c.value) == null ? void 0 : e.reset();
123
- }, 700);
124
- });
125
- const D = function(e) {
126
- const a = {
127
- bankReady: !1,
128
- bankNumber: "",
129
- bankName: "",
130
- holderName: ""
131
- };
132
- e.store.bank && e.store.bank.accountNumber && Object.assign(a, {
133
- bankReady: !0,
134
- bankNumber: e.store.bank.accountNumber,
135
- bankName: e.store.bank.name,
136
- holderName: e.store.bank.holderName
137
- });
138
- const g = {
139
- picReady: !1,
140
- picName: "",
141
- picPhone: "",
142
- picEmail: ""
143
- };
144
- e.store.keyPerson && Object.assign(g, {
145
- picReady: !0,
146
- picName: e.store.keyPerson.name,
147
- picPhone: e.store.keyPerson.phone,
148
- picEmail: e.store.keyPerson.email
149
- });
150
- let h = e.store.companyName ?? e.ref.name;
151
- return e.store.event === "ORDERING" && (h = e.ref.profile.name), {
152
- _id: e._id,
153
- event: e.store.event,
154
- name: h,
155
- status: e.status,
156
- statusReason: e.statusReason,
157
- submissionDate: e.submissionDate ? K(e.submissionDate).format("YYYY-MM-DD HH:mm:ss") : "—",
158
- regNo: e.store.regNo,
159
- companyName: e.store.companyName,
160
- ...a,
161
- ...g
162
- };
163
- }, C = [
164
- {
165
- header: () => "Type",
166
- accessorKey: "event",
167
- meta: {
168
- maxWidth: "92px"
169
- }
170
- },
171
- {
172
- header: () => "Name",
173
- accessorKey: "name",
174
- cell: ({ cell: e, row: a }) => x(M, { row: a })
175
- },
176
- {
177
- header: () => "Status",
178
- accessorKey: "status",
179
- cell: ({ cell: e, row: a }) => x(q, { row: a, data: e.getValue() }),
180
- meta: {
181
- maxWidth: "108px"
182
- }
183
- },
184
- {
185
- header: () => "Submission Date",
186
- accessorKey: "submissionDate",
187
- meta: {
188
- maxWidth: "160px"
189
- }
190
- },
191
- {
192
- header: () => "Bank Details",
193
- accessorKey: "bank",
194
- cell: ({ cell: e, row: a }) => x(H, { row: a, data: e.getValue() })
195
- },
196
- {
197
- header: () => "Person In-Charge (PIC)",
198
- accessorKey: "pic",
199
- cell: ({ cell: e, row: a }) => x(J, { row: a, data: e.getValue() })
200
- }
201
- ];
202
- return (e, a) => {
203
- const g = p("FmSelect"), h = p("FmSearch"), B = p("FmFormGroup");
204
- return f(), V(U, {
205
- title: "Payout Accounts",
206
- loading: !1
207
- }, {
208
- default: b(() => [
209
- P("div", z, [
210
- m(g, {
211
- modelValue: l(r),
212
- "onUpdate:modelValue": a[0] || (a[0] = (o) => _(r) ? r.value = o : null),
213
- class: "mr-6 w-[128px]",
214
- label: "Type",
215
- "label-mark": "required",
216
- items: s.value
217
- }, null, 8, ["modelValue", "items"]),
218
- m(g, {
219
- modelValue: l(i),
220
- "onUpdate:modelValue": a[2] || (a[2] = (o) => _(i) ? i.value = o : null),
221
- class: "mr-6 w-[300px]",
222
- label: "Status",
223
- "label-mark": "required",
224
- multiselect: "",
225
- items: n.value
226
- }, {
227
- "prepend-menu": b(() => [
228
- m(L, {
229
- modelValue: l(i),
230
- "onUpdate:modelValue": a[1] || (a[1] = (o) => _(i) ? i.value = o : null),
231
- items: n.value
232
- }, null, 8, ["modelValue", "items"])
233
- ]),
234
- _: 1
235
- }, 8, ["modelValue", "items"]),
236
- m(B, {
237
- class: "w-[300px]",
238
- modelValue: l(u),
239
- "onUpdate:modelValue": a[4] || (a[4] = (o) => _(u) ? u.value = o : null),
240
- label: "Search"
241
- }, {
242
- default: b(() => [
243
- m(h, {
244
- modelValue: l(u),
245
- "onUpdate:modelValue": a[3] || (a[3] = (o) => _(u) ? u.value = o : null),
246
- placeholder: "Search accounts ..."
247
- }, null, 8, ["modelValue"])
248
- ]),
249
- _: 1
250
- }, 8, ["modelValue"])
251
- ]),
252
- m(G, {
253
- ref_key: "controller",
254
- ref: c,
255
- "column-defs": C,
256
- "rows-defs": D,
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({
259
- name: "mf-payment-admin.payout-account-settings",
260
- params: {
261
- accountId: o._id
262
- }
263
- }))
264
- }, null, 8, ["paginate"])
265
- ]),
266
- _: 1
267
- });
268
- };
269
- }
270
- });
271
- export {
272
- me as default
273
- };