@feedmepos/mf-payment 1.4.23 → 1.4.24

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.
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as $, ref as P, computed as O, resolveComponent as f, openBlock as y, createElementBlock as q, createElementVNode as s, toDisplayString as I, Fragment as z, createBlock as j, withCtx as c, createVNode as o, createCommentVNode as B, unref as e, createTextVNode as D, onMounted as X, resolveDynamicComponent as Z } from "vue";
2
- import { o as T } from "./index-JNhw7LUy.js";
2
+ import { o as T } from "./index-DmMnMctt.js";
3
3
  import { u as M } from "./index-DSG40xEJ.js";
4
4
  import { useRouter as h } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-D5jtpt9A.js";
6
- import { P as ee } from "./payout-account-B8gx9H3E.js";
6
+ import { P as ee } from "./payout-account-DwObva0l.js";
7
7
  import { P as le } from "./PDFViewer-DlSCBBxr.js";
8
8
  import { s as te } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
9
  import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-Betuxyqe.js";
@@ -2,12 +2,12 @@ import { defineComponent as U, ref as D, computed as vf, resolveComponent as w,
2
2
  import { z as d, a as s } from "./validator-D5jtpt9A.js";
3
3
  import { P as jf, _ as bf } from "./PDFViewer-DlSCBBxr.js";
4
4
  import { useCoreStore as xf } from "@feedmepos/mf-common";
5
- import { o as F } from "./index-JNhw7LUy.js";
5
+ import { o as F } from "./index-DmMnMctt.js";
6
6
  import { p as af } from "./index-ATmg3hKo.js";
7
7
  import { useSnackbar as df } from "@feedmepos/ui-library";
8
8
  import { u as Af } from "./index-DSG40xEJ.js";
9
9
  import { s as sf } from "./vue-signature-pad.esm-IXPjf4fL.js";
10
- import { P as Lf } from "./payout-account-B8gx9H3E.js";
10
+ import { P as Lf } from "./payout-account-DwObva0l.js";
11
11
  import { useRouter as yf } from "vue-router";
12
12
  const uf = { class: "flex" }, pf = { class: "justify-self-center" }, Df = ["src"], o = /* @__PURE__ */ U({
13
13
  __name: "UploadButton",
@@ -3,7 +3,7 @@ import { _ as q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js
3
3
  import { u as G, p as J, e as L } from "./index-DSG40xEJ.js";
4
4
  import { useI18n as K, useCoreStore as Q } from "@feedmepos/mf-common";
5
5
  import { _ as X } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
6
- import { o as Z } from "./index-JNhw7LUy.js";
6
+ import { o as Z } from "./index-DmMnMctt.js";
7
7
  import { useRouter as w } from "vue-router";
8
8
  import { i as ss } from "./softspace-25X2bjBx.js";
9
9
  const es = { class: "flex justify-left items-center mb-6" }, ts = { class: "grid grid-cols-3 gap-6" }, os = { class: "flex items-center" }, ns = ["src"], is = { class: "px-16 text-sm flex-grow" }, rs = { class: "list-disc pl-6" }, ms = {
@@ -0,0 +1,161 @@
1
+ import { defineComponent as x, ref as w, watch as f, computed as y, resolveComponent as _, openBlock as k, createBlock as F, withCtx as b, createElementVNode as K, createVNode as m, unref as o, isRef as n, h as O } from "vue";
2
+ import { o as R } from "./index-DmMnMctt.js";
3
+ import { p as d } from "./index-DSG40xEJ.js";
4
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Cf_wL7Uo.js";
5
+ import { useRouter as D } from "vue-router";
6
+ import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
+ import { h as U } from "./moment-h96o7c8I.js";
8
+ import { u as C } from "./index-Dn73sX5Z.js";
9
+ import { _ as E } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
10
+ import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-Betuxyqe.js";
11
+ const Y = { class: "flex items-start mb-6" }, L = /* @__PURE__ */ x({
12
+ __name: "OnboardSubmission",
13
+ setup($) {
14
+ const u = w(), h = D(), { status: l, type: s, search: r } = C({
15
+ status: [d.FdoOnboardStatus.Enum.submitted],
16
+ type: "",
17
+ search: ""
18
+ });
19
+ f([l, s], () => {
20
+ var e;
21
+ return (e = u.value) == null ? void 0 : e.reset();
22
+ });
23
+ let i;
24
+ f(r, () => {
25
+ i && clearTimeout(i), i = setTimeout(() => {
26
+ var e;
27
+ (e = u.value) == null || e.reset();
28
+ }, 700);
29
+ });
30
+ const g = function(e) {
31
+ return {
32
+ ...e,
33
+ updatedAt: U(e.updatedAt).format("YYYY-MM-DD HH:mm:ss")
34
+ };
35
+ }, v = [
36
+ {
37
+ accessorKey: "restaurantId",
38
+ header: () => "Restaurant ID",
39
+ meta: {
40
+ textAlign: "left"
41
+ }
42
+ },
43
+ {
44
+ accessorKey: "-",
45
+ header: () => "Restaurant",
46
+ meta: {
47
+ textAlign: "left"
48
+ },
49
+ cell: (e) => e.row.original.profile.legalName || e.row.original.profile.name
50
+ },
51
+ {
52
+ accessorKey: "profile.email",
53
+ header: () => "Email",
54
+ meta: {
55
+ textAlign: "left"
56
+ }
57
+ },
58
+ {
59
+ accessorKey: "profile.phoneNo",
60
+ header: () => "Phone No",
61
+ meta: {
62
+ textAlign: "left"
63
+ }
64
+ },
65
+ {
66
+ accessorKey: "type",
67
+ header: () => "Type",
68
+ meta: {
69
+ textAlign: "left"
70
+ }
71
+ },
72
+ {
73
+ accessorKey: "status",
74
+ header: () => "Status",
75
+ meta: {
76
+ textAlign: "left"
77
+ },
78
+ cell: ({ cell: e }) => O(I, { data: e.getValue() })
79
+ },
80
+ {
81
+ accessorKey: "updatedAt",
82
+ header: () => "Updated At",
83
+ meta: {
84
+ textAlign: "left"
85
+ }
86
+ }
87
+ ], V = y(
88
+ () => d.FdoOnboardType.options.map((e) => ({
89
+ label: e,
90
+ value: e
91
+ }))
92
+ ), p = y(
93
+ () => d.FdoOnboardStatus.options.map((e) => ({
94
+ label: e,
95
+ value: e
96
+ }))
97
+ );
98
+ return (e, a) => {
99
+ const A = _("FmSearch"), c = _("FmSelect");
100
+ return k(), F(N, {
101
+ title: "Payment Onboarding",
102
+ loading: !1
103
+ }, {
104
+ default: b(() => [
105
+ K("div", Y, [
106
+ m(A, {
107
+ "model-value": o(r),
108
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => n(r) ? r.value = t : null),
109
+ class: "mr-6",
110
+ label: "Search",
111
+ placeholder: "Search Restaurant ID"
112
+ }, null, 8, ["model-value"]),
113
+ m(c, {
114
+ modelValue: o(s),
115
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => n(s) ? s.value = t : null),
116
+ class: "mr-6 w-[128px]",
117
+ label: "Type",
118
+ "label-mark": "required",
119
+ items: V.value
120
+ }, null, 8, ["modelValue", "items"]),
121
+ m(c, {
122
+ modelValue: o(l),
123
+ "onUpdate:modelValue": a[3] || (a[3] = (t) => n(l) ? l.value = t : null),
124
+ class: "mr-6 w-[300px]",
125
+ label: "Status",
126
+ "label-mark": "required",
127
+ multiselect: "",
128
+ items: p.value
129
+ }, {
130
+ "prepend-menu": b(() => [
131
+ m(E, {
132
+ modelValue: o(l),
133
+ "onUpdate:modelValue": a[2] || (a[2] = (t) => n(l) ? l.value = t : null),
134
+ items: p.value
135
+ }, null, 8, ["modelValue", "items"])
136
+ ]),
137
+ _: 1
138
+ }, 8, ["modelValue", "items"])
139
+ ]),
140
+ m(T, {
141
+ ref_key: "controller",
142
+ ref: u,
143
+ "column-defs": v,
144
+ "rows-defs": g,
145
+ paginate: (t, S) => o(R).read({ status: o(l), type: o(s), limit: t, cursor: S, search: o(r) }),
146
+ onRowClick: a[4] || (a[4] = (t) => o(h).push({
147
+ name: "mf-payment-admin.onboard-submission-form",
148
+ params: {
149
+ submissionId: t._id
150
+ }
151
+ }))
152
+ }, null, 8, ["paginate"])
153
+ ]),
154
+ _: 1
155
+ });
156
+ };
157
+ }
158
+ });
159
+ export {
160
+ L as default
161
+ };
@@ -2,7 +2,7 @@ import { defineComponent as y, resolveComponent as u, openBlock as h, createBloc
2
2
  import { u as O } from "./index-Dn73sX5Z.js";
3
3
  import { p as K } from "./index-DSG40xEJ.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-B8gx9H3E.js";
5
+ import { P as V } from "./payout-account-DwObva0l.js";
6
6
  import { p as D } from "./index-ATmg3hKo.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Cf_wL7Uo.js";
@@ -3,12 +3,12 @@ import { p as K } from "./index-ATmg3hKo.js";
3
3
  import { p as U, u as gA, e as lA } from "./index-DSG40xEJ.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-B8gx9H3E.js";
6
+ import { c as cA, a as _, P as J } from "./payout-account-DwObva0l.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-DlAaBxih.js";
11
- import "./plugins-Cp96IRMs.js";
10
+ import "./app-ReKWi9Tz.js";
11
+ import "./plugins-BUqPzPqX.js";
12
12
  import { _ as uA } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
13
13
  function wA() {
14
14
  return {
@@ -5,6 +5,7 @@ export declare const onboardSubmissionApi: {
5
5
  status: FdoOnboardStatus[];
6
6
  limit: number;
7
7
  cursor: string;
8
+ search?: string;
8
9
  }): Promise<PaginatedResult<FdtoPortalOnboardSubmission>>;
9
10
  readById(id: string): Promise<FdtoPortalOnboardSubmission>;
10
11
  previewDocument(submissionId: string): Promise<void>;
@@ -383,7 +383,7 @@ const Gn = {
383
383
  sidebarDisplay: "Payout Accounts",
384
384
  section: "payment-gateway"
385
385
  },
386
- component: () => import("./PayoutAccount-DrwnZPIB.js")
386
+ component: () => import("./PayoutAccount-Bv18s1yC.js")
387
387
  },
388
388
  {
389
389
  path: "/admin/payout-accounts/:accountId",
@@ -401,7 +401,7 @@ const Gn = {
401
401
  sidebarDisplay: "Payment Onboarding",
402
402
  section: "payment-gateway"
403
403
  },
404
- component: () => import("./OnboardSubmission-DFreyD4V.js")
404
+ component: () => import("./OnboardSubmission-CAu6TqDl.js")
405
405
  },
406
406
  {
407
407
  path: "/admin/onboarding/:submissionId",
@@ -410,7 +410,7 @@ const Gn = {
410
410
  meta: {
411
411
  parent: "mf-payment-admin.onboard-submission"
412
412
  },
413
- component: () => import("./OnboardForm-BvrKiqP1.js")
413
+ component: () => import("./OnboardForm-GSaLEdFF.js")
414
414
  },
415
415
  {
416
416
  path: "/admin/terminal/pos",
@@ -516,7 +516,7 @@ const Gn = {
516
516
  {
517
517
  path: "/payout-account",
518
518
  name: "mf-payment-payout-account",
519
- component: () => import("./PayoutAccount-BsxNx86g.js"),
519
+ component: () => import("./PayoutAccount-CwFCOb-R.js"),
520
520
  meta: {
521
521
  sidebarDisplay: "i18n:payment.routes.payout_account"
522
522
  }
@@ -524,7 +524,7 @@ const Gn = {
524
524
  {
525
525
  path: "/onboard-submission",
526
526
  name: "mf-payment-onboard-submission",
527
- component: () => import("./OnboardSubmission-B-0uJv51.js"),
527
+ component: () => import("./OnboardSubmission-Bz8fbre8.js"),
528
528
  meta: {
529
529
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
530
530
  region: { MY: !0 }
@@ -534,7 +534,7 @@ const Gn = {
534
534
  path: "/onboard-submission/:type/:submission?",
535
535
  name: "mf-payment-onboard-submission-form",
536
536
  props: !0,
537
- component: () => import("./OnboardForm-Bhqt-Q6k.js"),
537
+ component: () => import("./OnboardForm-yqhVp0WQ.js"),
538
538
  meta: {
539
539
  parent: "mf-payment-onboard-submission"
540
540
  }
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as e, i as r, f as o } from "./app-DlAaBxih.js";
1
+ import { h as e, i as r, f as o } from "./app-ReKWi9Tz.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,5 +1,5 @@
1
1
  import { d as r, b as a, g as n, o as i } from "./index-DSG40xEJ.js";
2
- import { f as u } from "./plugins-Cp96IRMs.js";
2
+ import { f as u } from "./plugins-BUqPzPqX.js";
3
3
  import { h as m } from "./moment-h96o7c8I.js";
4
4
  const y = {
5
5
  async read(s) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.4.23",
3
+ "version": "1.4.24",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +1,7 @@
1
- import { f as j } from "./plugins-Cp96IRMs.js";
1
+ import { f as j } from "./plugins-BUqPzPqX.js";
2
2
  import { c as st, a as it, B as at, p as E } from "./index-DSG40xEJ.js";
3
3
  import { useCoreStore as ut } from "@feedmepos/mf-common";
4
- import { _ as ot } from "./app-DlAaBxih.js";
4
+ import { _ as ot } from "./app-ReKWi9Tz.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {
@@ -1,4 +1,4 @@
1
- import { a as be, C as we, r as K, g as C, b as Te, c as ye, d as H, S as ke, e as Ee, F as Ae } from "./app-DlAaBxih.js";
1
+ import { a as be, C as we, r as K, g as C, b as Te, c as ye, d as H, S as ke, e as Ee, F as Ae } from "./app-ReKWi9Tz.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC