@feedmepos/mf-payment 1.2.29 → 1.2.31

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 (25) hide show
  1. package/dist/{OnboardForm-DtdgTAfM.js → OnboardForm-BYg_c2SU.js} +2 -2
  2. package/dist/{OnboardForm-BwHRuUJ2.js → OnboardForm-o7R9cvkb.js} +232 -234
  3. package/dist/{OnboardSubmission-TvoVrbT8.js → OnboardSubmission-C8xv5IM5.js} +1 -1
  4. package/dist/OnboardSubmission-dF9rYw0v.js +153 -0
  5. package/dist/{PayoutAccount-D_oz3IN_.js → PayoutAccount-BdycCvTK.js} +1 -1
  6. package/dist/{PayoutAccount-DM-Uh5AW.js → PayoutAccount-DD130QQ8.js} +3 -3
  7. package/dist/{SettlementTransactions-DYvhz0Yh.js → SettlementTransactions-BevyrXpX.js} +1 -1
  8. package/dist/{SettlementTransactions-9p3tYV0n.js → SettlementTransactions-ChOW3OFP.js} +1 -1
  9. package/dist/{Transaction-DIz_ArbY.js → Transaction-D1rYvU6G.js} +2 -2
  10. package/dist/{Transaction-DzIzAIbO.js → Transaction-DRyKIb_9.js} +1 -1
  11. package/dist/{TransactionOld-CagUKhjR.js → TransactionOld-CDjxfE_x.js} +2 -2
  12. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-ChuhuUKc.js → TransactionTable.vue_vue_type_script_setup_true_lang-BhW4t6ml.js} +1 -1
  13. package/dist/api/onboard-submission/index.d.ts +2 -2
  14. package/dist/{app-DB_fctP1.js → app-DlXv8aCe.js} +11 -11
  15. package/dist/app.js +1 -1
  16. package/dist/{assets-ha4XB2PU.js → assets-Bgq2Viy_.js} +36 -35
  17. package/dist/index-fIckJxVg.js +68 -0
  18. package/dist/package.json +1 -1
  19. package/dist/{payout-account-6yMkxM2O.js → payout-account-Bxz-8KNR.js} +2 -2
  20. package/dist/{plugins-BLG_oAxW.js → plugins-XkCbEIqR.js} +1 -1
  21. package/dist/softspace-25X2bjBx.js +4 -0
  22. package/dist/tsconfig.app.tsbuildinfo +1 -1
  23. package/package.json +1 -1
  24. package/dist/OnboardSubmission-Cuzay_2u.js +0 -148
  25. package/dist/index-MqVn-IaA.js +0 -68
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, ref as V, watch as v, computed as p, resolveComponent as x, openBlock as h, createBlock as w, withCtx as f, createElementVNode as S, createVNode as r, unref as l, isRef as n, h as k } from "vue";
2
- import { o as K } from "./index-MqVn-IaA.js";
2
+ import { o as K } from "./index-fIckJxVg.js";
3
3
  import { p as m } from "./index-BasdAonL.js";
4
4
  import { _ as O } from "./index.vue_vue_type_script_setup_true_lang-D4bLM6th.js";
5
5
  import { useRouter as F } from "vue-router";
@@ -0,0 +1,153 @@
1
+ import { defineComponent as $, ref as z, computed as H, onMounted as U, watch as D, resolveComponent as a, openBlock as n, createBlock as x, unref as o, withCtx as y, createElementVNode as s, createVNode as u, createElementBlock as l, Fragment as B, renderList as N, toDisplayString as i, createTextVNode as c, createCommentVNode as _ } from "vue";
2
+ import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
3
+ import { u as q, p as G, e as S } from "./index-BasdAonL.js";
4
+ import { useI18n as J, useCoreStore as K } from "@feedmepos/mf-common";
5
+ import { _ as Q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
6
+ import { o as X } from "./index-fIckJxVg.js";
7
+ import { useRouter as Z } from "vue-router";
8
+ import { i as w } from "./softspace-25X2bjBx.js";
9
+ const ss = { class: "flex justify-left items-center mb-6" }, es = { class: "grid grid-cols-3 gap-6" }, ts = { class: "flex items-center" }, os = ["src"], ns = { class: "px-16 text-sm flex-grow" }, is = { class: "list-disc pl-6" }, rs = {
10
+ key: 0,
11
+ class: "px-24 py-8"
12
+ }, ms = { class: "font-medium text-sm" }, as = { class: "text-xs text-gray-500 mb-8 break-all whitespace-pre-line" }, ls = {
13
+ key: 0,
14
+ class: "flex flex-col items-end"
15
+ }, cs = { class: "text-xs text-gray-500 text-right mb-4" }, us = { class: "flex items-center mt-2" }, ds = { class: "text-green-600 font-medium mr-2" }, ps = {
16
+ key: 1,
17
+ class: "flex flex-col items-end"
18
+ }, _s = { class: "text-xs text-gray-500 text-right mb-4" }, bs = { class: "flex items-center mt-2" }, fs = { class: "text-orange-600 font-medium mr-2" }, Ns = /* @__PURE__ */ $({
19
+ __name: "OnboardSubmission",
20
+ setup(xs) {
21
+ const A = Z(), { isLoading: L, startAsyncCall: O } = q(!1), { t } = J(), { currentRestaurant: b, currentCountry: f } = K(), v = z([]), T = [
22
+ {
23
+ type: G.FdoOnboardType.enum.softspace,
24
+ name: "FassPay",
25
+ description: () => t("payment.onboard-submission.softspace.description"),
26
+ logo: w,
27
+ country: [S.F_COUNTRY.enum.MY],
28
+ services: [
29
+ () => t("payment.onboard-submission.softspace.service1"),
30
+ () => t("payment.onboard-submission.softspace.service2")
31
+ ]
32
+ }
33
+ ], V = H(
34
+ () => T.filter((r) => r.country.includes((f == null ? void 0 : f.value) || S.F_COUNTRY.enum.MY)).map((r) => ({
35
+ ...r,
36
+ submission: v.value.find((m) => m.type === r.type)
37
+ }))
38
+ );
39
+ function h() {
40
+ O(async () => {
41
+ var r;
42
+ (r = b.value) != null && r._id && (v.value = await X.getByRestaurant(b.value._id));
43
+ });
44
+ }
45
+ return U(h), D([b], h), (r, m) => {
46
+ const Y = a("FmCardHeader"), j = a("FmIcon"), E = a("FmCircularProgress"), I = a("FmButton"), M = a("FmCardActions"), P = a("FmCard");
47
+ return n(), x(W, {
48
+ title: o(t)("payment.onboard-submission.title"),
49
+ description: o(t)("payment.onboard-submission.description"),
50
+ loading: o(L)
51
+ }, {
52
+ default: y(() => [
53
+ s("div", ss, [
54
+ u(Q)
55
+ ]),
56
+ s("div", es, [
57
+ (n(!0), l(B, null, N(V.value, (e, ys) => (n(), x(P, { class: "h-full flex flex-col pt-8" }, {
58
+ default: y(() => {
59
+ var C, F;
60
+ return [
61
+ s("div", ts, [
62
+ s("img", {
63
+ class: "w-64 h-64 ml-6",
64
+ src: e.logo
65
+ }, null, 8, os),
66
+ u(Y, {
67
+ title: e.name,
68
+ subtitle: e.description()
69
+ }, null, 8, ["title", "subtitle"])
70
+ ]),
71
+ s("div", ns, [
72
+ s("ul", is, [
73
+ (n(!0), l(B, null, N(e.services, (d, p) => (n(), l("li", {
74
+ key: `service-${p}`
75
+ }, i(d()), 1))), 128))
76
+ ])
77
+ ]),
78
+ (C = e.submission) != null && C.statusReason ? (n(), l("div", rs, [
79
+ s("p", ms, [
80
+ c(i(o(t)("payment.onboard-submission.note")) + ": ", 1),
81
+ s("span", as, i((F = e.submission) == null ? void 0 : F.statusReason), 1)
82
+ ])
83
+ ])) : _("", !0),
84
+ u(M, { class: "justify-end mt-auto" }, {
85
+ default: y(() => {
86
+ var d, p, g, k;
87
+ return [
88
+ ((d = e.submission) == null ? void 0 : d.status) === "approved" ? (n(), l("div", ls, [
89
+ s("p", cs, [
90
+ c(i(o(t)("payment.onboard-submission.approval.line1")), 1),
91
+ m[0] || (m[0] = s("br", null, null, -1)),
92
+ c(" " + i(o(t)("payment.onboard-submission.approval.line2")), 1)
93
+ ]),
94
+ s("div", us, [
95
+ s("p", ds, [
96
+ c(i(o(t)("payment.onboard-submission.approval.status")), 1),
97
+ m[1] || (m[1] = s("br", null, null, -1))
98
+ ]),
99
+ u(j, {
100
+ size: "md",
101
+ name: "check",
102
+ color: "#16a34a"
103
+ })
104
+ ])
105
+ ])) : _("", !0),
106
+ ((p = e.submission) == null ? void 0 : p.status) === "submitted" ? (n(), l("div", ps, [
107
+ s("p", _s, [
108
+ c(i(o(t)("payment.onboard-submission.review.line1")), 1),
109
+ m[2] || (m[2] = s("br", null, null, -1)),
110
+ c(" " + i(o(t)("payment.onboard-submission.review.line2")), 1)
111
+ ]),
112
+ s("div", bs, [
113
+ s("p", fs, i(o(t)("payment.onboard-submission.review.status")), 1),
114
+ u(E, {
115
+ size: "md",
116
+ color: "#ea580c"
117
+ })
118
+ ])
119
+ ])) : _("", !0),
120
+ !e.submission || ((g = e.submission) == null ? void 0 : g.status) === "pending" || ((k = e.submission) == null ? void 0 : k.status) === "rejected" ? (n(), x(I, {
121
+ key: 2,
122
+ variant: "primary",
123
+ "prepend-icon": e.submission ? "edit" : "manage_accounts",
124
+ label: e.submission ? o(t)("payment.onboard-submission.edit") : o(t)("payment.onboard-submission.apply"),
125
+ onClick: () => {
126
+ var R;
127
+ return o(A).push({
128
+ name: "mf-payment-onboard-submission-form",
129
+ params: {
130
+ type: e.type,
131
+ submission: (R = e.submission) == null ? void 0 : R._id
132
+ }
133
+ });
134
+ }
135
+ }, null, 8, ["prepend-icon", "label", "onClick"])) : _("", !0)
136
+ ];
137
+ }),
138
+ _: 2
139
+ }, 1024)
140
+ ];
141
+ }),
142
+ _: 2
143
+ }, 1024))), 256))
144
+ ])
145
+ ]),
146
+ _: 1
147
+ }, 8, ["title", "description", "loading"]);
148
+ };
149
+ }
150
+ });
151
+ export {
152
+ Ns as default
153
+ };
@@ -2,7 +2,7 @@ import { defineComponent as y, resolveComponent as u, openBlock as h, createBloc
2
2
  import { u as O } from "./index-DGF3hKwg.js";
3
3
  import { p as K } from "./index-BasdAonL.js";
4
4
  import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
- import { P as V } from "./payout-account-6yMkxM2O.js";
5
+ import { P as V } from "./payout-account-Bxz-8KNR.js";
6
6
  import { p as D } from "./index-DoD23lHB.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-D4bLM6th.js";
@@ -3,12 +3,12 @@ import { p as K } from "./index-DoD23lHB.js";
3
3
  import { p as U, u as gA, e as lA } from "./index-BasdAonL.js";
4
4
  import { defineStore as rA } from "pinia";
5
5
  import { useI18n as R, useCoreStore as eA } from "@feedmepos/mf-common";
6
- import { c as cA, a as _, P as J } from "./payout-account-6yMkxM2O.js";
6
+ import { c as cA, a as _, P as J } from "./payout-account-Bxz-8KNR.js";
7
7
  import { useDialogChild as nA, useDialog as BA } from "@feedmepos/ui-library";
8
8
  import { z as F, a as H } from "./validator-D5jtpt9A.js";
9
9
  import { P as $ } from "./PDFViewer-DlSCBBxr.js";
10
- import "./app-DB_fctP1.js";
11
- import "./plugins-BLG_oAxW.js";
10
+ import "./app-DlXv8aCe.js";
11
+ import "./plugins-XkCbEIqR.js";
12
12
  import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
13
13
  function wA() {
14
14
  return {
@@ -2,7 +2,7 @@ import { defineComponent as x, resolveComponent as f, openBlock as F, createBloc
2
2
  import { e as E, u as G } from "./index-BasdAonL.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as k } from "./dinero-CIVmXLL-.js";
5
- import { g as H, a as q, t as J, b as Q } from "./assets-ha4XB2PU.js";
5
+ import { g as H, a as q, t as J, b as Q } from "./assets-Bgq2Viy_.js";
6
6
  import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
7
  import { useRouter as X } from "vue-router";
8
8
  import { s as Z } from "./index-Dg_mEOso.js";
@@ -2,7 +2,7 @@ import { defineComponent as x, resolveComponent as d, openBlock as A, createBloc
2
2
  import { e as k, u as q } from "./index-BasdAonL.js";
3
3
  import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
4
  import { d as B } from "./dinero-CIVmXLL-.js";
5
- import { g as W, a as X, t as P, b as Z } from "./assets-ha4XB2PU.js";
5
+ import { g as W, a as X, t as P, b as Z } from "./assets-Bgq2Viy_.js";
6
6
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
7
  import { useRouter as te } from "vue-router";
8
8
  import { s as ae } from "./index-Dg_mEOso.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as B, ref as E, watch as g, computed as I, onMounted as J, resolveComponent as b, openBlock as v, createElementBlock as P, Fragment as Y, unref as t, createBlock as N, createCommentVNode as O, withCtx as T, createVNode as i, renderList as k, createElementVNode as V, isRef as _ } from "vue";
2
- import { t as L, b as G } from "./assets-ha4XB2PU.js";
2
+ import { t as L, b as G } from "./assets-Bgq2Viy_.js";
3
3
  import { u as K, p as C } from "./index-BasdAonL.js";
4
- import { _ as Q } from "./TransactionTable.vue_vue_type_script_setup_true_lang-ChuhuUKc.js";
4
+ import { _ as Q } from "./TransactionTable.vue_vue_type_script_setup_true_lang-BhW4t6ml.js";
5
5
  import { h as $ } from "./moment-h96o7c8I.js";
6
6
  import { useI18n as j, useCoreStore as q } from "@feedmepos/mf-common";
7
7
  import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, resolveComponent as f, openBlock as y, createBlock as b, normalizeClass as C, withCtx as _, createElementVNode as p, toDisplayString as V, unref as m, createElementBlock as I, createVNode as g, Fragment as Y, renderList as O, ref as P, watch as x, isRef as N, h } from "vue";
2
- import { g as U, a as B, t as w, b as G, c as k } from "./assets-ha4XB2PU.js";
2
+ import { g as U, a as B, t as w, b as G, c as k } from "./assets-Bgq2Viy_.js";
3
3
  import { h as A } from "./moment-h96o7c8I.js";
4
4
  import { u as L } from "./index-DGF3hKwg.js";
5
5
  import { _ as Q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as T, ref as y, onMounted as Y, watch as f, resolveComponent as V, openBlock as C, createBlock as M, unref as t, withCtx as O, createElementVNode as u, createVNode as i, isRef as h } from "vue";
2
- import { t as g, b as S } from "./assets-ha4XB2PU.js";
2
+ import { t as g, b as S } from "./assets-Bgq2Viy_.js";
3
3
  import { u as $ } from "./index-BasdAonL.js";
4
- import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-ChuhuUKc.js";
4
+ import { _ as N } from "./TransactionTable.vue_vue_type_script_setup_true_lang-BhW4t6ml.js";
5
5
  import { h as x } from "./moment-h96o7c8I.js";
6
6
  import { useCoreStore as k, useI18n as E } from "@feedmepos/mf-common";
7
7
  import { _ as L } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, resolveComponent as d, openBlock as m, createBlock as f, normalizeClass as R, withCtx as p, createElementVNode as A, toDisplayString as V, unref as K, createElementBlock as N, createVNode as k, Fragment as U, renderList as B, ref as S, watch as $, h as b } from "vue";
2
2
  import { useSnackbar as L, useDialog as G } from "@feedmepos/ui-library";
3
- import { g as O, a as Y, t as h, c as x } from "./assets-ha4XB2PU.js";
3
+ import { g as O, a as Y, t as h, c as x } from "./assets-Bgq2Viy_.js";
4
4
  import { e as T } from "./index-BasdAonL.js";
5
5
  import { g as z } from "./grafana-DRZOKr8c.js";
6
6
  import { w as E } from "./Modal-DB8M9o1T.js";
@@ -7,11 +7,11 @@ export declare const onboardSubmissionApi: {
7
7
  cursor: string;
8
8
  }): Promise<PaginatedResult<FdtoPortalOnboardSubmission>>;
9
9
  readById(id: string): Promise<FdtoPortalOnboardSubmission>;
10
+ previewDocument(submissionId: string): Promise<void>;
11
+ sendDocument(submissionId: string): Promise<any>;
10
12
  reviewById(id: string, req: FdoOnboardSubmissionReviewRequest): Promise<FdtoPortalOnboardSubmission>;
11
13
  getById(id: string, restaurantId: string): Promise<FdoOnboardSubmission>;
12
14
  getByRestaurant(restaurantId: string): Promise<FdoOnboardSubmission[]>;
13
15
  uploadDocument(restaurantId: string, type: string, file: File): Promise<string>;
14
16
  updateSubmission(req: FdoOnboardSubmissionUpdateRequest): Promise<FdoOnboardSubmission[]>;
15
- previewDocument(restaurantId: string, submissionId: string): Promise<void>;
16
- sendDocument(restaurantId: string, submissionId: string): Promise<any>;
17
17
  };
@@ -373,7 +373,7 @@ const Gn = {
373
373
  sidebarDisplay: "Payout Accounts",
374
374
  section: "payment-gateway"
375
375
  },
376
- component: () => import("./PayoutAccount-D_oz3IN_.js")
376
+ component: () => import("./PayoutAccount-BdycCvTK.js")
377
377
  },
378
378
  {
379
379
  path: "/admin/payout-accounts/:accountId",
@@ -391,7 +391,7 @@ const Gn = {
391
391
  sidebarDisplay: "Payment Onboarding",
392
392
  section: "payment-gateway"
393
393
  },
394
- component: () => import("./OnboardSubmission-TvoVrbT8.js")
394
+ component: () => import("./OnboardSubmission-C8xv5IM5.js")
395
395
  },
396
396
  {
397
397
  path: "/admin/onboarding/:submissionId",
@@ -400,7 +400,7 @@ const Gn = {
400
400
  meta: {
401
401
  parent: "mf-payment-admin.onboard-submission"
402
402
  },
403
- component: () => import("./OnboardForm-BwHRuUJ2.js")
403
+ component: () => import("./OnboardForm-o7R9cvkb.js")
404
404
  },
405
405
  {
406
406
  path: "/admin/terminal/pos",
@@ -471,7 +471,7 @@ const Gn = {
471
471
  meta: {
472
472
  sidebarDisplay: "Transactions"
473
473
  },
474
- component: () => import("./Transaction-DzIzAIbO.js")
474
+ component: () => import("./Transaction-DRyKIb_9.js")
475
475
  },
476
476
  {
477
477
  path: "/admin/settlement",
@@ -488,7 +488,7 @@ const Gn = {
488
488
  meta: {
489
489
  parent: "mf-payment-admin.settlement"
490
490
  },
491
- component: () => import("./SettlementTransactions-9p3tYV0n.js")
491
+ component: () => import("./SettlementTransactions-ChOW3OFP.js")
492
492
  }
493
493
  ], We = [
494
494
  {
@@ -498,7 +498,7 @@ const Gn = {
498
498
  {
499
499
  path: "/payout-account",
500
500
  name: "mf-payment-payout-account",
501
- component: () => import("./PayoutAccount-DM-Uh5AW.js"),
501
+ component: () => import("./PayoutAccount-DD130QQ8.js"),
502
502
  meta: {
503
503
  sidebarDisplay: "i18n:payment.routes.payout_account"
504
504
  }
@@ -506,7 +506,7 @@ const Gn = {
506
506
  {
507
507
  path: "/onboard-submission",
508
508
  name: "mf-payment-onboard-submission",
509
- component: () => import("./OnboardSubmission-Cuzay_2u.js"),
509
+ component: () => import("./OnboardSubmission-dF9rYw0v.js"),
510
510
  meta: {
511
511
  sidebarDisplay: "i18n:payment.routes.onboard_submission"
512
512
  }
@@ -515,7 +515,7 @@ const Gn = {
515
515
  path: "/onboard-submission/:type/:submission?",
516
516
  name: "mf-payment-onboard-submission-form",
517
517
  props: !0,
518
- component: () => import("./OnboardForm-DtdgTAfM.js"),
518
+ component: () => import("./OnboardForm-BYg_c2SU.js"),
519
519
  meta: {
520
520
  parent: "mf-payment-onboard-submission"
521
521
  }
@@ -523,7 +523,7 @@ const Gn = {
523
523
  {
524
524
  path: "/transaction-old",
525
525
  name: "mf-payment-old-transaction",
526
- component: () => import("./TransactionOld-CagUKhjR.js"),
526
+ component: () => import("./TransactionOld-CDjxfE_x.js"),
527
527
  meta: {
528
528
  sidebarDisplay: "i18n:payment.routes.transaction"
529
529
  }
@@ -531,7 +531,7 @@ const Gn = {
531
531
  {
532
532
  path: "/transaction",
533
533
  name: "mf-payment-transaction",
534
- component: () => import("./Transaction-DIz_ArbY.js"),
534
+ component: () => import("./Transaction-D1rYvU6G.js"),
535
535
  meta: {
536
536
  sidebarDisplay: "i18n:payment.routes.transaction-new",
537
537
  sidebarNew: !0
@@ -549,7 +549,7 @@ const Gn = {
549
549
  path: "/settlement/:settlementId",
550
550
  name: "mf-payment-settlement-transaction",
551
551
  props: !0,
552
- component: () => import("./SettlementTransactions-DYvhz0Yh.js"),
552
+ component: () => import("./SettlementTransactions-BevyrXpX.js"),
553
553
  meta: {
554
554
  parent: "mf-payment-settlement"
555
555
  }
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, f as o } from "./app-DB_fctP1.js";
1
+ import { h as e, i as r, f as o } from "./app-DlXv8aCe.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,