@feedmepos/mf-payment 1.5.52-dev → 1.5.53-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.
@@ -1,7 +1,7 @@
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, isRef as n, unref as o, h as O } from "vue";
2
- import { o as R } from "./index-DMhjy8uJ.js";
3
- import { p as d } from "./index-BeeoiRHZ.js";
4
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CL_J8vkd.js";
1
+ import { defineComponent as x, ref as w, watch as f, computed as y, resolveComponent as _, openBlock as F, createBlock as O, withCtx as b, createElementVNode as k, createVNode as m, isRef as n, unref as o, h as K } from "vue";
2
+ import { o as T } from "./index-DMhjy8uJ.js";
3
+ import { p as u } from "./index-BeeoiRHZ.js";
4
+ import { _ as R } from "./index.vue_vue_type_script_setup_true_lang-CL_J8vkd.js";
5
5
  import { useRouter as D } from "vue-router";
6
6
  import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
7
7
  import { h as U } from "./moment-h96o7c8I.js";
@@ -11,20 +11,20 @@ import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-BESgeD2u.js
11
11
  const Y = { class: "flex items-start mb-6" }, L = /* @__PURE__ */ x({
12
12
  __name: "OnboardSubmission",
13
13
  setup($) {
14
- const u = w(), h = D(), { status: l, type: s, search: r } = C({
15
- status: [d.FdoOnboardStatus.Enum.submitted],
14
+ const i = w(), h = D(), { status: l, type: r, search: s } = C({
15
+ status: [u.FdoOnboardStatus.Enum.submitted],
16
16
  type: "",
17
17
  search: ""
18
18
  });
19
- f([l, s], () => {
19
+ f([l, r], () => {
20
20
  var e;
21
- return (e = u.value) == null ? void 0 : e.reset();
21
+ return (e = i.value) == null ? void 0 : e.reset();
22
22
  });
23
- let i;
24
- f(r, () => {
25
- i && clearTimeout(i), i = setTimeout(() => {
23
+ let d;
24
+ f(s, () => {
25
+ d && clearTimeout(d), d = setTimeout(() => {
26
26
  var e;
27
- (e = u.value) == null || e.reset();
27
+ (e = i.value) == null || e.reset();
28
28
  }, 700);
29
29
  });
30
30
  const g = function(e) {
@@ -75,7 +75,7 @@ const Y = { class: "flex items-start mb-6" }, L = /* @__PURE__ */ x({
75
75
  meta: {
76
76
  textAlign: "left"
77
77
  },
78
- cell: ({ cell: e }) => O(I, { data: e.getValue() })
78
+ cell: ({ cell: e }) => K(I, { data: e.getValue() })
79
79
  },
80
80
  {
81
81
  accessorKey: "updatedAt",
@@ -85,34 +85,34 @@ const Y = { class: "flex items-start mb-6" }, L = /* @__PURE__ */ x({
85
85
  }
86
86
  }
87
87
  ], V = y(
88
- () => d.FdoOnboardType.options.map((e) => ({
88
+ () => u.FdoOnboardType.options.map((e) => ({
89
89
  label: e,
90
90
  value: e
91
91
  }))
92
92
  ), p = y(
93
- () => d.FdoOnboardStatus.options.map((e) => ({
93
+ () => u.FdoOnboardStatus.options.map((e) => ({
94
94
  label: e,
95
95
  value: e
96
96
  }))
97
97
  );
98
98
  return (e, a) => {
99
99
  const A = _("FmSearch"), c = _("FmSelect");
100
- return k(), F(N, {
100
+ return F(), O(N, {
101
101
  title: "Payment Onboarding",
102
102
  loading: !1
103
103
  }, {
104
104
  default: b(() => [
105
- K("div", Y, [
105
+ k("div", Y, [
106
106
  m(A, {
107
- "model-value": o(r),
108
- "onUpdate:modelValue": a[0] || (a[0] = (t) => n(r) ? r.value = t : null),
107
+ "model-value": o(s),
108
+ "onUpdate:modelValue": a[0] || (a[0] = (t) => n(s) ? s.value = t : null),
109
109
  class: "mr-6",
110
110
  label: "Search",
111
111
  placeholder: "Search Restaurant ID"
112
112
  }, null, 8, ["model-value"]),
113
113
  m(c, {
114
- modelValue: o(s),
115
- "onUpdate:modelValue": a[1] || (a[1] = (t) => n(s) ? s.value = t : null),
114
+ modelValue: o(r),
115
+ "onUpdate:modelValue": a[1] || (a[1] = (t) => n(r) ? r.value = t : null),
116
116
  class: "mr-6 w-[128px]",
117
117
  label: "Type",
118
118
  "label-mark": "required",
@@ -137,18 +137,20 @@ const Y = { class: "flex items-start mb-6" }, L = /* @__PURE__ */ x({
137
137
  _: 1
138
138
  }, 8, ["modelValue", "items"])
139
139
  ]),
140
- m(T, {
140
+ m(R, {
141
141
  ref_key: "controller",
142
- ref: u,
142
+ ref: i,
143
143
  "column-defs": v,
144
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
- }))
145
+ paginate: (t, S) => o(T).read({ status: o(l), type: o(r), limit: t, cursor: S, search: o(s) }),
146
+ onRowClick: a[4] || (a[4] = (t) => {
147
+ t.type !== o(u.FdoOnboardType).enum.tyro && o(h).push({
148
+ name: "mf-payment-admin.onboard-submission-form",
149
+ params: {
150
+ submissionId: t._id
151
+ }
152
+ });
153
+ })
152
154
  }, null, 8, ["paginate"])
153
155
  ]),
154
156
  _: 1
@@ -3,7 +3,7 @@ import { defineStore as rA, storeToRefs as lA } from "pinia";
3
3
  import { p as J } from "./index-BKbdCXBS.js";
4
4
  import { p as v, u as nA, e as cA } from "./index-BeeoiRHZ.js";
5
5
  import { useI18n as L, useCoreStore as sA } from "@feedmepos/mf-common";
6
- import { c as BA, a as AA, P as k } from "./payout-account-C6Z0yAIR.js";
6
+ import { c as BA, a as AA, P as k } from "./payout-account-DJj5A6jR.js";
7
7
  import { useDialogChild as uA, useDialog as wA } from "@feedmepos/ui-library";
8
8
  import { z as q, a as F } from "./validator-DzjyJnvv.js";
9
9
  import { P as tA } from "./PDFViewer-CIPPbzWD.js";
@@ -2,7 +2,7 @@ import { defineComponent as _, resolveComponent as p, openBlock as y, createBloc
2
2
  import { u as K } from "./index-Kpua9F5o.js";
3
3
  import { p as D } from "./index-BeeoiRHZ.js";
4
4
  import { _ as $ } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
5
- import { P } from "./payout-account-C6Z0yAIR.js";
5
+ import { P } from "./payout-account-DJj5A6jR.js";
6
6
  import { p as A } from "./index-BKbdCXBS.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-CL_J8vkd.js";
@@ -182,6 +182,8 @@ const Kn = {
182
182
  },
183
183
  edit: "Edit Submission",
184
184
  apply: "Apply",
185
+ authorize: "Authorize",
186
+ reauthorize: "Re-authorize",
185
187
  note: "Review Notes",
186
188
  softspace: {
187
189
  description: "Enable SoftPOS and QR payments for in-store transactions.",
@@ -569,6 +571,8 @@ const Kn = {
569
571
  },
570
572
  edit: "แก้ไขคำขอ",
571
573
  apply: "สมัคร",
574
+ authorize: "อนุญาต",
575
+ reauthorize: "อนุญาตใหม่",
572
576
  note: "หมายเหตุการตรวจสอบ",
573
577
  softspace: {
574
578
  description: "เปิดใช้งาน SoftPOS และการชำระเงินด้วย QR สำหรับธุรกรรมหน้าร้าน",
@@ -950,6 +954,8 @@ const Kn = {
950
954
  },
951
955
  edit: "编辑提交",
952
956
  apply: "申请",
957
+ authorize: "授权",
958
+ reauthorize: "重新授权",
953
959
  note: "审核备注",
954
960
  softspace: {
955
961
  description: "启用 SoftPOS 和二维码支付用于店内交易。",
@@ -1186,7 +1192,7 @@ const Kn = {
1186
1192
  sidebarDisplay: "Payout Accounts",
1187
1193
  section: "payment-gateway"
1188
1194
  },
1189
- component: () => import("./PayoutAccount-BgcUH3Lk.js")
1195
+ component: () => import("./PayoutAccount-DBnxkII_.js")
1190
1196
  },
1191
1197
  {
1192
1198
  path: "/admin/payout-accounts/:accountId",
@@ -1204,7 +1210,7 @@ const Kn = {
1204
1210
  sidebarDisplay: "Payment Onboarding",
1205
1211
  section: "payment-gateway"
1206
1212
  },
1207
- component: () => import("./OnboardSubmission-C1ppdHRu.js")
1213
+ component: () => import("./OnboardSubmission-gps62Ktl.js")
1208
1214
  },
1209
1215
  {
1210
1216
  path: "/admin/onboarding/:submissionId",
@@ -1213,7 +1219,7 @@ const Kn = {
1213
1219
  meta: {
1214
1220
  parent: "mf-payment-admin.onboard-submission"
1215
1221
  },
1216
- component: () => import("./OnboardForm-BtslgSp5.js")
1222
+ component: () => import("./OnboardForm-BtriYUid.js")
1217
1223
  },
1218
1224
  {
1219
1225
  path: "/admin/terminal/pos",
@@ -1319,7 +1325,7 @@ const Kn = {
1319
1325
  {
1320
1326
  path: "/payout-account",
1321
1327
  name: "mf-payment-payout-account",
1322
- component: () => import("./PayoutAccount-TVQGDmi8.js"),
1328
+ component: () => import("./PayoutAccount-CKungfsn.js"),
1323
1329
  meta: {
1324
1330
  sidebarDisplay: "i18n:payment.routes.payout_account"
1325
1331
  }
@@ -1327,7 +1333,7 @@ const Kn = {
1327
1333
  {
1328
1334
  path: "/onboard-submission",
1329
1335
  name: "mf-payment-onboard-submission",
1330
- component: () => import("./OnboardSubmission-D1i7tUeJ.js"),
1336
+ component: () => import("./OnboardSubmission-D8aJPkMw.js"),
1331
1337
  meta: {
1332
1338
  sidebarDisplay: "i18n:payment.routes.onboard_submission",
1333
1339
  region: { MY: !0, TH: !0, AU: !0 }
@@ -1337,7 +1343,7 @@ const Kn = {
1337
1343
  path: "/onboard-submission/:type/:submission?",
1338
1344
  name: "mf-payment-onboard-submission-form",
1339
1345
  props: !0,
1340
- component: () => import("./OnboardForm-B3vBfHTj.js"),
1346
+ component: () => import("./OnboardForm--kRbMFOt.js"),
1341
1347
  meta: {
1342
1348
  parent: "mf-payment-onboard-submission"
1343
1349
  }
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as e, i as o, r as p } from "./app-BaSrnCcC.js";
1
+ import { a as e, i as o, r as p } from "./app-DtWLhdzZ.js";
2
2
  import "@feedmepos/mf-financing";
3
3
  export {
4
4
  e as FmApp,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "1.5.52-dev",
3
+ "version": "1.5.53-dev",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,7 +1,7 @@
1
1
  import { a as st, c as it, p as E, B as at } from "./index-BeeoiRHZ.js";
2
2
  import { useCoreStore as ut } from "@feedmepos/mf-common";
3
3
  import { d as H } from "./index-B8KU4_R2.js";
4
- import { _ as ot } from "./app-BaSrnCcC.js";
4
+ import { _ as ot } from "./app-DtWLhdzZ.js";
5
5
  var Q = { exports: {} };
6
6
  (function(i, a) {
7
7
  (function(t, m) {