@feedmepos/mf-payment 1.7.4 → 1.7.5

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 (44) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BkGPt33y.js → Actions.vue_vue_type_script_setup_true_lang-JYZcfqUo.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DpcPn8f2.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CQxYDlES.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CiPlezXr.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-K87PW1uK.js} +2 -2
  4. package/dist/{Chargeback-BFUlbL_7.js → Chargeback-CKeP0C3C.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BRY4cO_d.js → DocumentViewer.vue_vue_type_script_setup_true_lang-4cyCT01g.js} +1 -1
  6. package/dist/{OnboardForm-DyOPX1_d.js → OnboardForm-BP_9VO_L.js} +5 -5
  7. package/dist/{OnboardForm-DnwPql96.js → OnboardForm-zqjcD6iD.js} +5 -5
  8. package/dist/{OnboardSubmission-OZ0G4P_v.js → OnboardSubmission-BlRpjm51.js} +2 -2
  9. package/dist/{OnboardSubmission-DipKw5HF.js → OnboardSubmission-Du8NpfFx.js} +5 -5
  10. package/dist/{PayoutAccount-BCb5cslo.js → PayoutAccount-DB93s4Bz.js} +5 -5
  11. package/dist/PayoutAccount-waepqJrT.js +384 -0
  12. package/dist/{PayoutAccountSetting-Bb1CsUCE.js → PayoutAccountSetting-47b8bmqq.js} +6 -6
  13. package/dist/{Restaurant-D1wUiImO.js → Restaurant-DMbTKWlj.js} +4 -4
  14. package/dist/{RestaurantSetting-BBO7DzsZ.js → RestaurantSetting-CAZlf2Vs.js} +3 -3
  15. package/dist/{Settlement-DgRZ_Nto.js → Settlement-BT-qtZX9.js} +4 -4
  16. package/dist/{Settlement-t5A8S8TD.js → Settlement-Cr6LJOel.js} +3 -3
  17. package/dist/{SettlementTransactions-DdGLhtnr.js → SettlementTransactions-BDjZmZjE.js} +4 -4
  18. package/dist/{SettlementTransactions-jfKNoOD9.js → SettlementTransactions-DoMTS35M.js} +4 -4
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-JsBLH3uy.js → Status.vue_vue_type_script_setup_true_lang-CZZiQMYe.js} +1 -1
  20. package/dist/{Terminal-DaIv5qfl.js → Terminal-BcWccOla.js} +5 -5
  21. package/dist/{TerminalSetting-Dj2hBkl6.js → TerminalSetting-DE0v-4-p.js} +4 -4
  22. package/dist/{Transaction-B72LKIca.js → Transaction-CVVGm-I8.js} +10 -10
  23. package/dist/{Transaction-D0jWWDq5.js → Transaction-Cc4utrzZ.js} +10 -10
  24. package/dist/{TransactionOld-C64NrPVP.js → TransactionOld-BgafsXwW.js} +7 -7
  25. package/dist/{app-BgZUPWnM.js → app-Cs1GHhDd.js} +23 -23
  26. package/dist/app.js +1 -1
  27. package/dist/{assets-9wAOs8uk.js → assets-eHLQjw1e.js} +1 -1
  28. package/dist/{grafana-ezJaAbyu.js → grafana-SUvDElAd.js} +1 -1
  29. package/dist/{index-iLiwfepp.js → index-B247KQYg.js} +1 -1
  30. package/dist/{index-Bcy_Z6EV.js → index-BPGQQPaG.js} +1 -1
  31. package/dist/{index-DK1fYXrj.js → index-ClGv4aTb.js} +1 -1
  32. package/dist/{index-RFJR12WX.js → index-DXAJfLCs.js} +2 -2
  33. package/dist/{index-0BEudnSQ.js → index-DvPHBuEr.js} +1 -1
  34. package/dist/{index-BNO9fBiK.js → index-MMGPrDuq.js} +1 -1
  35. package/dist/{index-CDuF6_qe.js → index-Xn55a2pJ.js} +1 -1
  36. package/dist/{index-Ctq35IJ6.js → index-gCNUDOJw.js} +1 -1
  37. package/dist/{index-DdxCxptg.js → index-lovX0Huh.js} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-DXlHx1NG.js → index.vue_vue_type_script_setup_true_lang-1b18Xw6F.js} +1 -1
  39. package/dist/package.json +1 -1
  40. package/dist/{payout-account-RIgHcQp1.js → payout-account-Doi16CAx.js} +3 -3
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/dist/views/admin/payout-account/CreateDummyPayoutDialog.vue.d.ts +11 -1
  43. package/package.json +1 -1
  44. package/dist/PayoutAccount-CO2FdnnA.js +0 -379
@@ -1,2 +1,12 @@
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>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
2
+ create: (data: {
3
+ type: string;
4
+ id: string;
5
+ }) => any;
6
+ }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
7
+ onCreate?: ((data: {
8
+ type: string;
9
+ id: string;
10
+ }) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
12
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,379 +0,0 @@
1
- import { defineComponent as k, resolveComponent as i, openBlock as c, createElementBlock as F, createVNode as m, normalizeClass as B, withCtx as v, createElementVNode as O, toDisplayString as V, createCommentVNode as A, createBlock as h, computed as N, ref as U, watch as P, unref as r, isRef as x, h as w } from "vue";
2
- import { h as L } from "./moment-h96o7c8I.js";
3
- import { u as M } from "./index-Ctq35IJ6.js";
4
- import { p as K } from "./index-0BEudnSQ.js";
5
- import { _ as W } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
6
- import { P as S } from "./payout-account-RIgHcQp1.js";
7
- import { p as I } from "./index-DK1fYXrj.js";
8
- import { useDialogChild as H, useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
9
- import { _ as X } from "./index.vue_vue_type_script_setup_true_lang-DXlHx1NG.js";
10
- import { useRouter as Z } from "vue-router";
11
- import { _ as ee } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
12
- import { _ as ae } from "./AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DpcPn8f2.js";
13
- import { _ as te } from "./AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CiPlezXr.js";
14
- import { z as $, a as T } from "./validator-CTlVogBQ.js";
15
- import { u as oe } from "./error-K1CakhA9.js";
16
- import { useCoreStore as ne } from "@feedmepos/mf-common";
17
- const se = { class: "flex flex-col gap-1" }, re = {
18
- key: 0,
19
- class: "text-xs text-red-500"
20
- }, le = /* @__PURE__ */ k({
21
- __name: "Status",
22
- props: {
23
- row: {},
24
- data: {}
25
- },
26
- setup(o) {
27
- const n = o;
28
- function s() {
29
- return n.data === "NEW" ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === "PENDING" ? "!w-[16px] !h-[16px] bg-orange-400" : n.data === "REJECTED" ? "!w-[16px] !h-[16px] bg-red-500" : "!w-[16px] !h-[16px] bg-green-400";
30
- }
31
- return (t, f) => {
32
- const p = i("FmBadge");
33
- return c(), F("div", se, [
34
- m(p, {
35
- inline: "",
36
- class: B(s())
37
- }, {
38
- default: v(() => [
39
- O("div", null, V(o.data), 1)
40
- ]),
41
- _: 1
42
- }, 8, ["class"]),
43
- n.data === "REJECTED" && n.row.original.statusReason ? (c(), F("div", re, V(n.row.original.statusReason), 1)) : A("", !0)
44
- ]);
45
- };
46
- }
47
- }), me = /* @__PURE__ */ k({
48
- __name: "Bank",
49
- props: {
50
- row: {},
51
- data: {}
52
- },
53
- setup(o) {
54
- function n(s) {
55
- return s ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
56
- }
57
- return (s, t) => {
58
- const f = i("FmBadge"), p = i("FmListItem");
59
- return c(), h(p, {
60
- label: o.row.original.holderName,
61
- sublabel: o.row.original.bankName + " - " + o.row.original.bankNumber,
62
- clickable: !1,
63
- tag: "label"
64
- }, {
65
- append: v(() => [
66
- m(f, {
67
- inline: "",
68
- class: B(n(o.row.original.bankReady))
69
- }, null, 8, ["class"])
70
- ]),
71
- _: 1
72
- }, 8, ["label", "sublabel"]);
73
- };
74
- }
75
- }), ie = /* @__PURE__ */ k({
76
- __name: "PersonInCharge",
77
- props: {
78
- row: {},
79
- data: {}
80
- },
81
- setup(o) {
82
- function n(s) {
83
- return s ? "!w-[16px] !h-[16px] bg-green-400" : "!w-[16px] !h-[16px] bg-red-400";
84
- }
85
- return (s, t) => {
86
- const f = i("FmBadge"), p = i("FmListItem");
87
- return c(), h(p, {
88
- label: o.row.original.picName,
89
- sublabel: o.row.original.picEmail + " - " + o.row.original.picPhone,
90
- clickable: !1,
91
- tag: "label"
92
- }, {
93
- append: v(() => [
94
- m(f, {
95
- inline: "",
96
- class: B(n(o.row.original.picReady))
97
- }, null, 8, ["class"])
98
- ]),
99
- _: 1
100
- }, 8, ["label", "sublabel"]);
101
- };
102
- }
103
- }), ue = /* @__PURE__ */ k({
104
- __name: "DisplayName",
105
- props: {
106
- row: {}
107
- },
108
- setup(o) {
109
- return (n, s) => (c(), F("p", null, V(o.row.original.name) + " (" + V(o.row.original.regNo ?? "-") + ")", 1));
110
- }
111
- }), ce = { class: "flex justify-end mb-2" }, pe = /* @__PURE__ */ k({
112
- __name: "CreateDummyPayoutDialog",
113
- setup(o) {
114
- const n = H(), s = N(() => S.storeEventOptions()), t = U({
115
- type: K.F_PAYOUT_FOR.Enum.ORDERING,
116
- id: ""
117
- });
118
- P(
119
- () => t.value.type,
120
- () => {
121
- t.value.id = "";
122
- }
123
- );
124
- const f = () => {
125
- n.emitData({
126
- type: t.value.type,
127
- id: t.value.id
128
- }), n.emitAction("primary");
129
- };
130
- return (p, d) => {
131
- const R = i("FmSelect"), C = i("FmButton"), D = i("FmForm");
132
- return c(), h(D, {
133
- ref: "form",
134
- class: "flex flex-col gap-16",
135
- onValidationSuccess: f
136
- }, {
137
- default: v(() => [
138
- m(R, {
139
- modelValue: t.value.type,
140
- "onUpdate:modelValue": d[0] || (d[0] = (u) => t.value.type = u),
141
- label: "Type",
142
- "label-mark": "required",
143
- items: s.value
144
- }, null, 8, ["modelValue", "items"]),
145
- t.value.type === "ORDERING" ? (c(), h(te, {
146
- key: 0,
147
- modelValue: t.value.id,
148
- "onUpdate:modelValue": d[1] || (d[1] = (u) => t.value.id = u),
149
- label: "Restaurant",
150
- "label-mark": "required",
151
- placeholder: "Select restaurant",
152
- "search-placeholder": "Search restaurants",
153
- rules: r($)(r(T).string().min(1, "Restaurant is required"))
154
- }, null, 8, ["modelValue", "rules"])) : (c(), h(ae, {
155
- key: 1,
156
- modelValue: t.value.id,
157
- "onUpdate:modelValue": d[2] || (d[2] = (u) => t.value.id = u),
158
- label: "Business",
159
- "label-mark": "required",
160
- placeholder: "Select business",
161
- "search-placeholder": "Search businesses",
162
- rules: r($)(r(T).string().min(1, "Business is required"))
163
- }, null, 8, ["modelValue", "rules"])),
164
- O("div", ce, [
165
- m(C, {
166
- type: "submit",
167
- variant: "primary",
168
- label: "Create"
169
- })
170
- ])
171
- ]),
172
- _: 1
173
- }, 512);
174
- };
175
- }
176
- }), de = {
177
- key: 0,
178
- class: "flex justify-end mb-4"
179
- }, fe = { class: "flex items-start mb-6" }, Pe = /* @__PURE__ */ k({
180
- __name: "PayoutAccount",
181
- setup(o) {
182
- const n = N(() => S.storeEventOptions()), s = N(() => S.statusOptions()), t = U(), f = Z(), p = J(), d = Q(), { currentCountry: R } = ne(), C = N(() => R.value !== "MY");
183
- async function D() {
184
- p.open({
185
- title: "Create Payout Account",
186
- closeButton: !0,
187
- overlay: !0,
188
- contentComponent: pe,
189
- contentComponentProps: {}
190
- }).onPrimary(async (a) => {
191
- var _;
192
- p.close();
193
- try {
194
- await I.createDummyAccount({
195
- id: a.id,
196
- event: a.type
197
- }), d.open({ title: "Payout account created.", type: "success" }), (_ = t.value) == null || _.reset();
198
- } catch (g) {
199
- d.open({
200
- title: "Failed to create payout account.",
201
- message: oe(g),
202
- type: "error"
203
- });
204
- }
205
- });
206
- }
207
- const { event: u, status: b, searchKey: y } = M({
208
- searchKey: "",
209
- event: K.F_PAYOUT_FOR.Enum.ORDERING,
210
- status: s.value.map((e) => e.value)
211
- });
212
- P([u, b], () => {
213
- var e;
214
- return (e = t.value) == null ? void 0 : e.reset();
215
- });
216
- let E;
217
- P(y, async () => {
218
- E && clearTimeout(E), E = setTimeout(() => {
219
- var e;
220
- return (e = t.value) == null ? void 0 : e.reset();
221
- }, 700);
222
- });
223
- const q = function(e) {
224
- const a = {
225
- bankReady: !1,
226
- bankNumber: "",
227
- bankName: "",
228
- holderName: ""
229
- };
230
- e.store.bank && e.store.bank.accountNumber && Object.assign(a, {
231
- bankReady: !0,
232
- bankNumber: e.store.bank.accountNumber,
233
- bankName: e.store.bank.name,
234
- holderName: e.store.bank.holderName
235
- });
236
- const _ = {
237
- picReady: !1,
238
- picName: "",
239
- picPhone: "",
240
- picEmail: ""
241
- };
242
- e.store.keyPerson && Object.assign(_, {
243
- picReady: !0,
244
- picName: e.store.keyPerson.name,
245
- picPhone: e.store.keyPerson.phone,
246
- picEmail: e.store.keyPerson.email
247
- });
248
- let g = e.store.companyName ?? e.ref.name;
249
- return e.store.event === "ORDERING" && (g = e.ref.profile.name), {
250
- _id: e._id,
251
- event: e.store.event,
252
- name: g,
253
- status: e.status,
254
- statusReason: e.statusReason,
255
- submissionDate: e.submissionDate ? L(e.submissionDate).format("YYYY-MM-DD HH:mm:ss") : "—",
256
- regNo: e.store.regNo,
257
- companyName: e.store.companyName,
258
- ...a,
259
- ..._
260
- };
261
- }, G = [
262
- {
263
- header: () => "Type",
264
- accessorKey: "event",
265
- meta: {
266
- maxWidth: "92px"
267
- }
268
- },
269
- {
270
- header: () => "Name",
271
- accessorKey: "name",
272
- cell: ({ cell: e, row: a }) => w(ue, { row: a })
273
- },
274
- {
275
- header: () => "Status",
276
- accessorKey: "status",
277
- cell: ({ cell: e, row: a }) => w(le, { row: a, data: e.getValue() }),
278
- meta: {
279
- maxWidth: "108px"
280
- }
281
- },
282
- {
283
- header: () => "Submission Date",
284
- accessorKey: "submissionDate",
285
- meta: {
286
- maxWidth: "160px"
287
- }
288
- },
289
- {
290
- header: () => "Bank Details",
291
- accessorKey: "bank",
292
- cell: ({ cell: e, row: a }) => w(me, { row: a, data: e.getValue() })
293
- },
294
- {
295
- header: () => "Person In-Charge (PIC)",
296
- accessorKey: "pic",
297
- cell: ({ cell: e, row: a }) => w(ie, { row: a, data: e.getValue() })
298
- }
299
- ];
300
- return (e, a) => {
301
- const _ = i("FmButton"), g = i("FmSelect"), Y = i("FmSearch"), j = i("FmFormGroup");
302
- return c(), h(W, {
303
- title: "Payout Accounts",
304
- loading: !1
305
- }, {
306
- default: v(() => [
307
- C.value ? (c(), F("div", de, [
308
- m(_, {
309
- variant: "primary",
310
- label: "Create",
311
- "prepend-icon": "add",
312
- onClick: D
313
- })
314
- ])) : A("", !0),
315
- O("div", fe, [
316
- m(g, {
317
- modelValue: r(u),
318
- "onUpdate:modelValue": a[0] || (a[0] = (l) => x(u) ? u.value = l : null),
319
- class: "mr-6 w-[128px]",
320
- label: "Type",
321
- "label-mark": "required",
322
- items: n.value
323
- }, null, 8, ["modelValue", "items"]),
324
- m(g, {
325
- modelValue: r(b),
326
- "onUpdate:modelValue": a[2] || (a[2] = (l) => x(b) ? b.value = l : null),
327
- class: "mr-6 w-[300px]",
328
- label: "Status",
329
- "label-mark": "required",
330
- multiselect: "",
331
- items: s.value
332
- }, {
333
- "prepend-menu": v(() => [
334
- m(ee, {
335
- modelValue: r(b),
336
- "onUpdate:modelValue": a[1] || (a[1] = (l) => x(b) ? b.value = l : null),
337
- items: s.value
338
- }, null, 8, ["modelValue", "items"])
339
- ]),
340
- _: 1
341
- }, 8, ["modelValue", "items"]),
342
- m(j, {
343
- class: "w-[300px]",
344
- modelValue: r(y),
345
- "onUpdate:modelValue": a[4] || (a[4] = (l) => x(y) ? y.value = l : null),
346
- label: "Search"
347
- }, {
348
- default: v(() => [
349
- m(Y, {
350
- modelValue: r(y),
351
- "onUpdate:modelValue": a[3] || (a[3] = (l) => x(y) ? y.value = l : null),
352
- placeholder: "Search accounts ..."
353
- }, null, 8, ["modelValue"])
354
- ]),
355
- _: 1
356
- }, 8, ["modelValue"])
357
- ]),
358
- m(X, {
359
- ref_key: "controller",
360
- ref: t,
361
- "column-defs": G,
362
- "rows-defs": q,
363
- paginate: (l, z) => r(I).read({ event: r(u), status: r(b), searchKey: r(y), limit: l, cursor: z }),
364
- onRowClick: a[5] || (a[5] = (l) => r(f).push({
365
- name: "mf-payment-admin.payout-account-settings",
366
- params: {
367
- accountId: l._id
368
- }
369
- }))
370
- }, null, 8, ["paginate"])
371
- ]),
372
- _: 1
373
- });
374
- };
375
- }
376
- });
377
- export {
378
- Pe as default
379
- };