@feedmepos/mf-payment 1.4.26 → 1.4.27

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 (42) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-DKeIpNIW.js → Actions.vue_vue_type_script_setup_true_lang-zAszH-r3.js} +2 -2
  2. package/dist/{Chargeback-BDRSyAmK.js → Chargeback-JEmRZ6hx.js} +5 -5
  3. package/dist/{OnboardForm-AB0mVuJ9.js → OnboardForm-D1Qw74UP.js} +202 -196
  4. package/dist/{OnboardForm-BSOqOm95.js → OnboardForm-DuxgDu-0.js} +4 -4
  5. package/dist/{OnboardSubmission-DRWeuOKJ.js → OnboardSubmission-BBELFk7w.js} +5 -5
  6. package/dist/{OnboardSubmission-Dnk7gYO_.js → OnboardSubmission-s5vKvUwj.js} +2 -2
  7. package/dist/{PayoutAccount-xYdw-qwo.js → PayoutAccount-C2Im-5FU.js} +5 -5
  8. package/dist/{PayoutAccount-_3rSThA1.js → PayoutAccount-CjL1qAks.js} +5 -5
  9. package/dist/{PayoutAccountSetting-BkFPooSa.js → PayoutAccountSetting-BpmU8FGs.js} +3 -3
  10. package/dist/{Restaurant-7tDDS7PZ.js → Restaurant-D9M7PHlA.js} +4 -4
  11. package/dist/{RestaurantSetting-jsHDhjrj.js → RestaurantSetting-CKb_KF5v.js} +3 -3
  12. package/dist/{Settlement-BPeUovFo.js → Settlement-CvD9Q522.js} +3 -3
  13. package/dist/{Settlement-BOQdhdzn.js → Settlement-DD50OmCm.js} +3 -3
  14. package/dist/{SettlementTransactions-D7wfVl0P.js → SettlementTransactions-Bdm6r2gK.js} +4 -4
  15. package/dist/{SettlementTransactions-CmzgEQs0.js → SettlementTransactions-IGbYWQQS.js} +4 -4
  16. package/dist/{Status.vue_vue_type_script_setup_true_lang-D3aXDlnu.js → Status.vue_vue_type_script_setup_true_lang-BR--E-L0.js} +1 -1
  17. package/dist/{Terminal-Bk-fLvmw.js → Terminal-Dh7-SYOx.js} +5 -5
  18. package/dist/{TerminalSetting-BGtvOvPk.js → TerminalSetting-ODh-KnL9.js} +3 -3
  19. package/dist/{Transaction-CD3eAEsP.js → Transaction-B3dYL69B.js} +146 -130
  20. package/dist/{Transaction-B5xuKV97.js → Transaction-a3yfy8Zj.js} +162 -146
  21. package/dist/{TransactionOld-D8xULx8n.js → TransactionOld-D1ciU1RQ.js} +6 -6
  22. package/dist/api/index.d.ts +2 -2
  23. package/dist/{app-BGLSsKgl.js → app-DIbDbLeP.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-BDZz71O5.js → assets-BVxfu_q2.js} +1 -1
  26. package/dist/{grafana-Dq_GUJiP.js → grafana-DDvZIL19.js} +1 -1
  27. package/dist/{index-0n1_opm-.js → index-BV3uerRE.js} +1 -1
  28. package/dist/{index-CqAsZVgo.js → index-BnoTSbLe.js} +1 -1
  29. package/dist/{index-DeG469p5.js → index-CG_mkFJ1.js} +1 -1
  30. package/dist/{index-hAcBjD4I.js → index-CeGG2hCY.js} +1 -1
  31. package/dist/{index-tbFfJPr9.js → index-Cpy4IBFc.js} +2 -2
  32. package/dist/{index-oXO2UZ2G.js → index-D-8D8G8R.js} +1 -1
  33. package/dist/{index-hkLk1b3K.js → index-D-D10LpW.js} +5 -4
  34. package/dist/{index-BIKn02lu.js → index-Dy6ZENAg.js} +1 -1
  35. package/dist/{index.vue_vue_type_script_setup_true_lang-BJ9Ys3KF.js → index.vue_vue_type_script_setup_true_lang-69bFWx5Y.js} +1 -1
  36. package/dist/package.json +1 -1
  37. package/dist/{payout-account-DRg9Hv9K.js → payout-account-B_Go7Y66.js} +3 -3
  38. package/dist/{plugins-CXIAJ_yL.js → plugins-Bxz6OiqC.js} +1 -1
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/views/admin/transaction/cell/BillSeqNumber.vue.d.ts +7 -0
  41. package/dist/views/transaction/cell/BillSeqNumber.vue.d.ts +7 -0
  42. package/package.json +1 -1
@@ -1,15 +1,15 @@
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-tbFfJPr9.js";
3
- import { u as M } from "./index-DeG469p5.js";
1
+ import { defineComponent as $, ref as P, computed as O, resolveComponent as f, openBlock as y, createElementBlock as R, createElementVNode as n, toDisplayString as B, Fragment as z, createBlock as T, withCtx as c, createVNode as o, createCommentVNode as j, unref as e, createTextVNode as E, onMounted as X, resolveDynamicComponent as Z } from "vue";
2
+ import { o as _ } from "./index-Cpy4IBFc.js";
3
+ import { u as M } from "./index-CG_mkFJ1.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-DRg9Hv9K.js";
6
+ import { P as ee } from "./payout-account-B_Go7Y66.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
- import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-D3aXDlnu.js";
9
+ import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-BR--E-L0.js";
10
10
  import { useSnackbar as J } from "@feedmepos/ui-library";
11
- import { u as _ } from "./error-K1CakhA9.js";
12
- const oe = ["src"], E = /* @__PURE__ */ $({
11
+ import { u as A } from "./error-K1CakhA9.js";
12
+ const oe = ["src"], I = /* @__PURE__ */ $({
13
13
  __name: "UploadButton",
14
14
  props: {
15
15
  modelValue: {},
@@ -17,26 +17,26 @@ const oe = ["src"], E = /* @__PURE__ */ $({
17
17
  type: {}
18
18
  },
19
19
  emits: ["update:modelValue"],
20
- setup(R, { emit: x }) {
21
- const V = R, b = P(V.modelValue), k = x, S = (a) => {
22
- const r = new FileReader();
23
- r.onload = (C) => {
20
+ setup(x, { emit: U }) {
21
+ const V = x, b = P(V.modelValue), k = U, N = (a) => {
22
+ const s = new FileReader();
23
+ s.onload = (C) => {
24
24
  var i;
25
25
  b.value = (i = C.target) == null ? void 0 : i.result, k("update:modelValue", a);
26
- }, r.readAsDataURL(a);
26
+ }, s.readAsDataURL(a);
27
27
  }, m = () => {
28
28
  var a;
29
29
  if (b.value) {
30
- const r = document.createElement("a");
31
- r.href = b.value, r.download = `${(a = V.label) == null ? void 0 : a.toLowerCase().replaceAll(" ", "_")}.pdf`, document.body.appendChild(r), r.click(), document.body.removeChild(r);
30
+ const s = document.createElement("a");
31
+ s.href = b.value, s.download = `${(a = V.label) == null ? void 0 : a.toLowerCase().replaceAll(" ", "_")}.pdf`, document.body.appendChild(s), s.click(), document.body.removeChild(s);
32
32
  }
33
33
  }, F = O(() => V.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
34
- return (a, r) => {
34
+ return (a, s) => {
35
35
  const C = f("FmButton"), i = f("FmDialog"), g = f("FmDropField");
36
- return y(), q("div", null, [
37
- s("p", null, I(a.label), 1),
38
- b.value ? (y(), q(z, { key: 0 }, [
39
- a.type === "pdf" ? (y(), j(i, {
36
+ return y(), R("div", null, [
37
+ n("p", null, B(a.label), 1),
38
+ b.value ? (y(), R(z, { key: 0 }, [
39
+ a.type === "pdf" ? (y(), T(i, {
40
40
  key: 0,
41
41
  "max-width": 800,
42
42
  "max-height": 800
@@ -48,8 +48,8 @@ const oe = ["src"], E = /* @__PURE__ */ $({
48
48
  label: "Preview"
49
49
  })
50
50
  ]),
51
- "dialog-header": c(() => r[0] || (r[0] = [
52
- s("div", null, "Document Preview", -1)
51
+ "dialog-header": c(() => s[0] || (s[0] = [
52
+ n("div", null, "Document Preview", -1)
53
53
  ])),
54
54
  default: c(() => [
55
55
  o(le, {
@@ -66,20 +66,20 @@ const oe = ["src"], E = /* @__PURE__ */ $({
66
66
  })
67
67
  ]),
68
68
  _: 1
69
- })) : B("", !0),
70
- a.type === "image" ? (y(), q("img", {
69
+ })) : j("", !0),
70
+ a.type === "image" ? (y(), R("img", {
71
71
  key: 1,
72
72
  src: b.value
73
- }, null, 8, oe)) : B("", !0)
74
- ], 64)) : (y(), j(g, {
73
+ }, null, 8, oe)) : j("", !0)
74
+ ], 64)) : (y(), T(g, {
75
75
  key: 1,
76
76
  accept: F.value,
77
- onFileUpload: S
77
+ onFileUpload: N
78
78
  }, null, 8, ["accept"]))
79
79
  ]);
80
80
  };
81
81
  }
82
- }), se = ["src"], ne = {
82
+ }), ne = ["src"], se = {
83
83
  key: 0,
84
84
  class: "text-center text-red-700 py-4"
85
85
  }, re = { class: "flex justify-evenly py-3" }, ie = /* @__PURE__ */ $({
@@ -89,33 +89,33 @@ const oe = ["src"], E = /* @__PURE__ */ $({
89
89
  label: {}
90
90
  },
91
91
  emits: ["update:modelValue"],
92
- setup(R, { emit: x }) {
93
- const V = R, b = x, k = P(V.modelValue), S = P(!1), m = P(), F = P(!1);
92
+ setup(x, { emit: U }) {
93
+ const V = x, b = U, k = P(V.modelValue), N = P(!1), m = P(), F = P(!1);
94
94
  function a(C, i) {
95
- var A;
96
- const g = C.split(","), w = ((A = g[0].match(/:(.*?);/)) == null ? void 0 : A[1]) || "", v = atob(g[1]);
97
- let n = v.length;
98
- const U = new Uint8Array(n);
99
- for (; n--; )
100
- U[n] = v.charCodeAt(n);
101
- return new File([U], i, { type: w });
95
+ var D;
96
+ const g = C.split(","), q = ((D = g[0].match(/:(.*?);/)) == null ? void 0 : D[1]) || "", v = atob(g[1]);
97
+ let r = v.length;
98
+ const w = new Uint8Array(r);
99
+ for (; r--; )
100
+ w[r] = v.charCodeAt(r);
101
+ return new File([w], i, { type: q });
102
102
  }
103
- const r = function() {
103
+ const s = function() {
104
104
  const { isEmpty: C, data: i } = m.value.saveSignature();
105
105
  if (C)
106
- return S.value = !0;
106
+ return N.value = !0;
107
107
  k.value = i, F.value = !1, b("update:modelValue", a(i, "signature.png"));
108
108
  };
109
109
  return (C, i) => {
110
- const g = f("FmButton"), w = f("FmDialog");
111
- return y(), q("div", null, [
112
- k.value ? (y(), q("img", {
110
+ const g = f("FmButton"), q = f("FmDialog");
111
+ return y(), R("div", null, [
112
+ k.value ? (y(), R("img", {
113
113
  key: 0,
114
114
  src: k.value,
115
115
  alt: "Signature Preview",
116
116
  class: "w-full h-auto"
117
- }, null, 8, se)) : B("", !0),
118
- k.value ? B("", !0) : (y(), j(w, {
117
+ }, null, 8, ne)) : j("", !0),
118
+ k.value ? j("", !0) : (y(), T(q, {
119
119
  key: 1,
120
120
  modelValue: F.value,
121
121
  "onUpdate:modelValue": i[1] || (i[1] = (v) => F.value = v)
@@ -128,7 +128,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
128
128
  })
129
129
  ]),
130
130
  "dialog-header": c(() => i[2] || (i[2] = [
131
- s("div", null, "Signature Board", -1)
131
+ n("div", null, "Signature Board", -1)
132
132
  ])),
133
133
  default: c(() => [
134
134
  o(e(te), {
@@ -138,8 +138,8 @@ const oe = ["src"], E = /* @__PURE__ */ $({
138
138
  customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
139
139
  options: { penColor: "#000000" }
140
140
  }, null, 512),
141
- S.value ? (y(), q("p", ne, " Please sign your signature before saving. ")) : B("", !0),
142
- s("div", re, [
141
+ N.value ? (y(), R("p", se, " Please sign your signature before saving. ")) : j("", !0),
142
+ n("div", re, [
143
143
  o(g, {
144
144
  variant: "destructive",
145
145
  label: "Clear",
@@ -149,7 +149,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
149
149
  o(g, {
150
150
  label: "Save",
151
151
  "prepend-icon": "save",
152
- onClick: r
152
+ onClick: s
153
153
  })
154
154
  ])
155
155
  ]),
@@ -158,7 +158,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
158
158
  ]);
159
159
  };
160
160
  }
161
- }), ue = { class: "space-y-2" }, de = { class: "text-gray-900" }, me = { class: "text-gray-900" }, pe = { class: "text-gray-900" }, be = { class: "text-gray-900" }, ce = { class: "text-gray-900" }, ge = { class: "text-gray-900" }, ve = { class: "mt-6 grid grid-cols-4 gap-24" }, ye = { class: "w-full flex justify-end mt-6" }, fe = { class: "mt-6 grid grid-cols-4 gap-24" }, Ve = { class: "col-span-2" }, ke = { class: "col-span-2" }, Ce = { class: "col-span-2" }, Ne = { class: "col-span-2" }, Se = { class: "col-span-2" }, Fe = { class: "col-span-2" }, we = { class: "col-start-1 col-span-2" }, Pe = { class: "col-span-2" }, qe = { class: "col-span-2" }, Re = { class: "col-span-2" }, xe = { class: "mt-6 grid grid-cols-4 gap-24" }, Ue = { class: "mt-6 grid grid-cols-2 gap-24" }, De = /* @__PURE__ */ $({
161
+ }), ue = { class: "space-y-2" }, de = { class: "text-gray-900" }, me = { class: "text-gray-900" }, pe = { class: "text-gray-900" }, be = { class: "text-gray-900" }, ce = { class: "text-gray-900" }, ge = { class: "text-gray-900" }, ye = { class: "mt-6 grid grid-cols-4 gap-24" }, ve = { class: "w-full flex justify-end mt-6" }, fe = { class: "mt-6 grid grid-cols-4 gap-24" }, Ve = { class: "col-span-2" }, ke = { class: "col-span-2" }, Ce = { class: "col-span-2" }, Ne = { class: "col-span-2" }, Se = { class: "col-span-2" }, we = { class: "col-span-2" }, Fe = { class: "col-start-1 col-span-2" }, Pe = { class: "col-span-2" }, qe = { class: "col-span-2" }, Re = { class: "col-span-2" }, xe = { class: "mt-6 grid grid-cols-4 gap-24" }, Ue = { class: "mt-6 grid grid-cols-2 gap-24" }, De = /* @__PURE__ */ $({
162
162
  __name: "SoftspaceSubmission",
163
163
  props: {
164
164
  submission: {
@@ -167,8 +167,8 @@ const oe = ["src"], E = /* @__PURE__ */ $({
167
167
  }
168
168
  },
169
169
  emits: ["update:submission"],
170
- setup(R, { emit: x }) {
171
- const V = R, b = x, k = J(), S = P(!1), { isLoading: m, startAsyncCall: F } = M(), { fields: a, documents: r, restaurantId: C, profile: i, status: g, statusReason: w } = V.submission, v = P(""), n = P(V.submission.rates ? Object.fromEntries(Object.entries(V.submission.rates).map(([N, l]) => [N, `${l}`])) : {
170
+ setup(x, { emit: U }) {
171
+ const V = x, b = U, k = J(), N = P(!1), { isLoading: m, startAsyncCall: F } = M(), { fields: a, documents: s, restaurantId: C, profile: i, status: g, statusReason: q } = V.submission, v = P(""), r = P(V.submission.rates ? Object.fromEntries(Object.entries(V.submission.rates).map(([S, l]) => [S, `${l}`])) : {
172
172
  duitNow: "0.8",
173
173
  mydebitCard: "0.5",
174
174
  localDebit: "0.5",
@@ -176,87 +176,87 @@ const oe = ["src"], E = /* @__PURE__ */ $({
176
176
  foreignCard: "3.2",
177
177
  jcbStandard: "2.2",
178
178
  jcbPlatinum: "2.2"
179
- }), U = O(
180
- () => Object.values(n.value).every((N) => parseFloat(N) > 0)
181
- ), A = () => F(async () => {
179
+ }), w = O(
180
+ () => Object.values(r.value).every((S) => parseFloat(S) > 0)
181
+ ), D = () => F(async () => {
182
182
  try {
183
- const N = await T.reviewById(V.submission._id, {
183
+ const S = await _.reviewById(V.submission._id, {
184
184
  rates: {
185
- duitNow: parseFloat(n.value.duitNow),
186
- mydebitCard: parseFloat(n.value.mydebitCard),
187
- localDebit: parseFloat(n.value.localDebit),
188
- localCredit: parseFloat(n.value.localCredit),
189
- foreignCard: parseFloat(n.value.foreignCard),
190
- jcbStandard: parseFloat(n.value.jcbStandard),
191
- jcbPlatinum: parseFloat(n.value.jcbPlatinum)
185
+ duitNow: parseFloat(r.value.duitNow),
186
+ mydebitCard: parseFloat(r.value.mydebitCard),
187
+ localDebit: parseFloat(r.value.localDebit),
188
+ localCredit: parseFloat(r.value.localCredit),
189
+ foreignCard: parseFloat(r.value.foreignCard),
190
+ jcbStandard: parseFloat(r.value.jcbStandard),
191
+ jcbPlatinum: parseFloat(r.value.jcbPlatinum)
192
192
  },
193
193
  status: "approved"
194
194
  });
195
- b("update:submission", N), S.value = !1, k.open({
195
+ b("update:submission", S), N.value = !1, k.open({
196
196
  type: "success",
197
197
  title: "Submission updated successfully"
198
198
  });
199
- } catch (N) {
199
+ } catch (S) {
200
200
  k.open({
201
201
  type: "error",
202
202
  title: "Error occurs when updating submission",
203
- message: _(N)
203
+ message: A(S)
204
204
  });
205
205
  }
206
206
  }), G = () => F(async () => {
207
207
  try {
208
- const N = await T.reviewById(V.submission._id, {
208
+ const S = await _.reviewById(V.submission._id, {
209
209
  status: "rejected",
210
210
  statusReason: v.value
211
211
  });
212
- b("update:submission", N), S.value = !1, k.open({
212
+ b("update:submission", S), N.value = !1, k.open({
213
213
  type: "success",
214
214
  title: "Submission updated successfully"
215
215
  });
216
- } catch (N) {
216
+ } catch (S) {
217
217
  k.open({
218
218
  type: "error",
219
219
  title: "Error occurs when updating submission",
220
- message: _(N)
220
+ message: A(S)
221
221
  });
222
222
  }
223
223
  });
224
- return (N, l) => {
224
+ return (S, l) => {
225
225
  const p = f("FmTextField"), L = f("FmButton"), K = f("FmTextarea"), Q = f("FmDialog"), Y = f("FmPhoneNumber"), H = f("FmSelect"), W = f("FmForm");
226
- return y(), q(z, null, [
227
- s("div", ue, [
228
- s("div", null, [
229
- l[33] || (l[33] = s("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
230
- s("span", de, I(e(C)), 1)
226
+ return y(), R(z, null, [
227
+ n("div", ue, [
228
+ n("div", null, [
229
+ l[33] || (l[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
230
+ n("span", de, B(e(C)), 1)
231
231
  ]),
232
- s("div", null, [
233
- l[34] || (l[34] = s("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
234
- s("span", me, I(e(i).name) + " ( " + I(e(i).legalName) + " )", 1)
232
+ n("div", null, [
233
+ l[34] || (l[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
234
+ n("span", me, B(e(i).name) + " ( " + B(e(i).legalName) + " )", 1)
235
235
  ]),
236
- s("div", null, [
237
- l[35] || (l[35] = s("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
238
- s("span", pe, I(e(i).email), 1)
236
+ n("div", null, [
237
+ l[35] || (l[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
238
+ n("span", pe, B(e(i).email), 1)
239
239
  ]),
240
- s("div", null, [
241
- l[36] || (l[36] = s("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
242
- s("span", be, I(e(i).phoneNo), 1)
240
+ n("div", null, [
241
+ l[36] || (l[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
242
+ n("span", be, B(e(i).phoneNo), 1)
243
243
  ]),
244
- s("div", null, [
245
- l[37] || (l[37] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
246
- s("span", ce, [
244
+ n("div", null, [
245
+ l[37] || (l[37] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
246
+ n("span", ce, [
247
247
  o(ae, { data: e(g) }, null, 8, ["data"])
248
248
  ])
249
249
  ]),
250
- s("div", null, [
251
- l[38] || (l[38] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
252
- s("span", ge, I(e(w)), 1)
250
+ n("div", null, [
251
+ l[38] || (l[38] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
252
+ n("span", ge, B(e(q)), 1)
253
253
  ])
254
254
  ]),
255
- l[50] || (l[50] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Rate Settings ", -1)),
256
- s("div", ve, [
255
+ l[50] || (l[50] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Rate Settings ", -1)),
256
+ n("div", ye, [
257
257
  o(p, {
258
- modelValue: n.value.duitNow,
259
- "onUpdate:modelValue": l[0] || (l[0] = (t) => n.value.duitNow = t),
258
+ modelValue: r.value.duitNow,
259
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => r.value.duitNow = t),
260
260
  label: "DuitNow QR",
261
261
  "label-mark": "required",
262
262
  type: "number",
@@ -267,13 +267,13 @@ const oe = ["src"], E = /* @__PURE__ */ $({
267
267
  )
268
268
  }, {
269
269
  append: c(() => l[39] || (l[39] = [
270
- D("%")
270
+ E("%")
271
271
  ])),
272
272
  _: 1
273
273
  }, 8, ["modelValue", "rules"]),
274
274
  o(p, {
275
- modelValue: n.value.mydebitCard,
276
- "onUpdate:modelValue": l[1] || (l[1] = (t) => n.value.mydebitCard = t),
275
+ modelValue: r.value.mydebitCard,
276
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => r.value.mydebitCard = t),
277
277
  label: "myDebit Card",
278
278
  "label-mark": "required",
279
279
  type: "number",
@@ -284,13 +284,13 @@ const oe = ["src"], E = /* @__PURE__ */ $({
284
284
  )
285
285
  }, {
286
286
  append: c(() => l[40] || (l[40] = [
287
- D("%")
287
+ E("%")
288
288
  ])),
289
289
  _: 1
290
290
  }, 8, ["modelValue", "rules"]),
291
291
  o(p, {
292
- modelValue: n.value.localDebit,
293
- "onUpdate:modelValue": l[2] || (l[2] = (t) => n.value.localDebit = t),
292
+ modelValue: r.value.localDebit,
293
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => r.value.localDebit = t),
294
294
  label: "Local Debit Card",
295
295
  "label-mark": "required",
296
296
  type: "number",
@@ -301,13 +301,13 @@ const oe = ["src"], E = /* @__PURE__ */ $({
301
301
  )
302
302
  }, {
303
303
  append: c(() => l[41] || (l[41] = [
304
- D("%")
304
+ E("%")
305
305
  ])),
306
306
  _: 1
307
307
  }, 8, ["modelValue", "rules"]),
308
308
  o(p, {
309
- modelValue: n.value.localCredit,
310
- "onUpdate:modelValue": l[3] || (l[3] = (t) => n.value.localCredit = t),
309
+ modelValue: r.value.localCredit,
310
+ "onUpdate:modelValue": l[3] || (l[3] = (t) => r.value.localCredit = t),
311
311
  label: "Local Credit Card",
312
312
  "label-mark": "required",
313
313
  type: "number",
@@ -318,13 +318,13 @@ const oe = ["src"], E = /* @__PURE__ */ $({
318
318
  )
319
319
  }, {
320
320
  append: c(() => l[42] || (l[42] = [
321
- D("%")
321
+ E("%")
322
322
  ])),
323
323
  _: 1
324
324
  }, 8, ["modelValue", "rules"]),
325
325
  o(p, {
326
- modelValue: n.value.foreignCard,
327
- "onUpdate:modelValue": l[4] || (l[4] = (t) => n.value.foreignCard = t),
326
+ modelValue: r.value.foreignCard,
327
+ "onUpdate:modelValue": l[4] || (l[4] = (t) => r.value.foreignCard = t),
328
328
  label: "Foreign Card",
329
329
  "label-mark": "required",
330
330
  type: "number",
@@ -335,13 +335,13 @@ const oe = ["src"], E = /* @__PURE__ */ $({
335
335
  )
336
336
  }, {
337
337
  append: c(() => l[43] || (l[43] = [
338
- D("%")
338
+ E("%")
339
339
  ])),
340
340
  _: 1
341
341
  }, 8, ["modelValue", "rules"]),
342
342
  o(p, {
343
- modelValue: n.value.jcbStandard,
344
- "onUpdate:modelValue": l[5] || (l[5] = (t) => n.value.jcbStandard = t),
343
+ modelValue: r.value.jcbStandard,
344
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => r.value.jcbStandard = t),
345
345
  label: "JCB Standard",
346
346
  "label-mark": "required",
347
347
  type: "number",
@@ -352,13 +352,13 @@ const oe = ["src"], E = /* @__PURE__ */ $({
352
352
  )
353
353
  }, {
354
354
  append: c(() => l[44] || (l[44] = [
355
- D("%")
355
+ E("%")
356
356
  ])),
357
357
  _: 1
358
358
  }, 8, ["modelValue", "rules"]),
359
359
  o(p, {
360
- modelValue: n.value.jcbPlatinum,
361
- "onUpdate:modelValue": l[6] || (l[6] = (t) => n.value.jcbPlatinum = t),
360
+ modelValue: r.value.jcbPlatinum,
361
+ "onUpdate:modelValue": l[6] || (l[6] = (t) => r.value.jcbPlatinum = t),
362
362
  label: "JCB Platinum",
363
363
  "label-mark": "required",
364
364
  type: "number",
@@ -369,15 +369,15 @@ const oe = ["src"], E = /* @__PURE__ */ $({
369
369
  )
370
370
  }, {
371
371
  append: c(() => l[45] || (l[45] = [
372
- D("%")
372
+ E("%")
373
373
  ])),
374
374
  _: 1
375
375
  }, 8, ["modelValue", "rules"])
376
376
  ]),
377
- s("div", ye, [
377
+ n("div", ve, [
378
378
  o(Q, {
379
- modelValue: S.value,
380
- "onUpdate:modelValue": l[8] || (l[8] = (t) => S.value = t)
379
+ modelValue: N.value,
380
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => N.value = t)
381
381
  }, {
382
382
  "dialog-button": c(() => [
383
383
  o(L, {
@@ -390,7 +390,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
390
390
  }, null, 8, ["loading"])
391
391
  ]),
392
392
  "dialog-header": c(() => l[46] || (l[46] = [
393
- s("div", null, "Rejecting Submission", -1)
393
+ n("div", null, "Rejecting Submission", -1)
394
394
  ])),
395
395
  default: c(() => [
396
396
  o(K, {
@@ -414,17 +414,17 @@ const oe = ["src"], E = /* @__PURE__ */ $({
414
414
  type: "button",
415
415
  variant: "primary",
416
416
  "prepend-icon": "approval",
417
- disabled: !U.value,
417
+ disabled: !w.value,
418
418
  label: "Approve Submission with Rates",
419
- onClick: A,
419
+ onClick: D,
420
420
  loading: e(m)
421
421
  }, null, 8, ["disabled", "loading"])
422
422
  ]),
423
423
  o(W, { disabled: !0 }, {
424
424
  default: c(() => [
425
- l[47] || (l[47] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
426
- s("div", fe, [
427
- s("div", Ve, [
425
+ l[47] || (l[47] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
426
+ n("div", fe, [
427
+ n("div", Ve, [
428
428
  o(p, {
429
429
  modelValue: e(a).picName,
430
430
  "onUpdate:modelValue": l[9] || (l[9] = (t) => e(a).picName = t),
@@ -434,7 +434,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
434
434
  rules: e(u)(e(d).string().min(1, "PIC Name is required"))
435
435
  }, null, 8, ["modelValue", "rules"])
436
436
  ]),
437
- s("div", ke, [
437
+ n("div", ke, [
438
438
  o(p, {
439
439
  modelValue: e(a).picRole,
440
440
  "onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picRole = t),
@@ -444,7 +444,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
444
444
  rules: e(u)(e(d).string().min(1, "PIC Role is required"))
445
445
  }, null, 8, ["modelValue", "rules"])
446
446
  ]),
447
- s("div", Ce, [
447
+ n("div", Ce, [
448
448
  o(p, {
449
449
  modelValue: e(a).picEmail,
450
450
  "onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picEmail = t),
@@ -455,7 +455,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
455
455
  rules: e(u)(e(d).string().min(1, "PIC Email is required"))
456
456
  }, null, 8, ["modelValue", "rules"])
457
457
  ]),
458
- s("div", Ne, [
458
+ n("div", Ne, [
459
459
  o(Y, {
460
460
  "model-value": e(a).picContact,
461
461
  "onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picContact = t),
@@ -465,7 +465,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
465
465
  rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
466
466
  }, null, 8, ["model-value", "rules"])
467
467
  ]),
468
- s("div", Se, [
468
+ n("div", Se, [
469
469
  o(p, {
470
470
  modelValue: e(a).outletName,
471
471
  "onUpdate:modelValue": l[13] || (l[13] = (t) => e(a).outletName = t),
@@ -475,7 +475,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
475
475
  rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
476
476
  }, null, 8, ["modelValue", "rules"])
477
477
  ]),
478
- s("div", Fe, [
478
+ n("div", we, [
479
479
  o(p, {
480
480
  modelValue: e(a).outletAddress,
481
481
  "onUpdate:modelValue": l[14] || (l[14] = (t) => e(a).outletAddress = t),
@@ -509,7 +509,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
509
509
  "label-mark": "required",
510
510
  rules: e(u)(e(d).string().min(1, "City is required"))
511
511
  }, null, 8, ["modelValue", "rules"]),
512
- s("div", we, [
512
+ n("div", Fe, [
513
513
  o(H, {
514
514
  modelValue: e(a).businessType,
515
515
  "onUpdate:modelValue": l[18] || (l[18] = (t) => e(a).businessType = t),
@@ -525,7 +525,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
525
525
  ]
526
526
  }, null, 8, ["modelValue", "rules"])
527
527
  ]),
528
- s("div", Pe, [
528
+ n("div", Pe, [
529
529
  o(p, {
530
530
  modelValue: e(a).businessRegNo,
531
531
  "onUpdate:modelValue": l[19] || (l[19] = (t) => e(a).businessRegNo = t),
@@ -535,7 +535,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
535
535
  rules: e(u)(e(d).string().min(1, "Reg No is required"))
536
536
  }, null, 8, ["modelValue", "rules"])
537
537
  ]),
538
- s("div", qe, [
538
+ n("div", qe, [
539
539
  o(p, {
540
540
  modelValue: e(a).tinNo,
541
541
  "onUpdate:modelValue": l[20] || (l[20] = (t) => e(a).tinNo = t),
@@ -545,7 +545,7 @@ const oe = ["src"], E = /* @__PURE__ */ $({
545
545
  rules: e(u)(e(d).string().min(1, "TIN is required"))
546
546
  }, null, 8, ["modelValue", "rules"])
547
547
  ]),
548
- s("div", Re, [
548
+ n("div", Re, [
549
549
  o(p, {
550
550
  modelValue: e(a).sstNo,
551
551
  "onUpdate:modelValue": l[21] || (l[21] = (t) => e(a).sstNo = t),
@@ -555,8 +555,8 @@ const oe = ["src"], E = /* @__PURE__ */ $({
555
555
  }, null, 8, ["modelValue"])
556
556
  ])
557
557
  ]),
558
- l[48] || (l[48] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
559
- s("div", xe, [
558
+ l[48] || (l[48] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
559
+ n("div", xe, [
560
560
  o(H, {
561
561
  modelValue: e(a).bankName,
562
562
  "onUpdate:modelValue": l[22] || (l[22] = (t) => e(a).bankName = t),
@@ -582,57 +582,57 @@ const oe = ["src"], E = /* @__PURE__ */ $({
582
582
  "label-mark": "required",
583
583
  rules: e(u)(e(d).string().min(1, "Account Number is required"))
584
584
  }, null, 8, ["modelValue", "rules"]),
585
- o(E, {
585
+ o(I, {
586
586
  label: "Authorized Person ID",
587
- modelValue: e(r).authorizedPersonID,
588
- "onUpdate:modelValue": l[25] || (l[25] = (t) => e(r).authorizedPersonID = t),
587
+ modelValue: e(s).authorizedPersonID,
588
+ "onUpdate:modelValue": l[25] || (l[25] = (t) => e(s).authorizedPersonID = t),
589
589
  type: "image"
590
590
  }, null, 8, ["modelValue"]),
591
- o(E, {
591
+ o(I, {
592
592
  label: "Outlet Photo",
593
- modelValue: e(r).outletPhoto,
594
- "onUpdate:modelValue": l[26] || (l[26] = (t) => e(r).outletPhoto = t),
593
+ modelValue: e(s).outletPhoto,
594
+ "onUpdate:modelValue": l[26] || (l[26] = (t) => e(s).outletPhoto = t),
595
595
  type: "image"
596
596
  }, null, 8, ["modelValue"]),
597
- o(E, {
597
+ o(I, {
598
598
  label: "Interior Photo",
599
- modelValue: e(r).interiorPhoto,
600
- "onUpdate:modelValue": l[27] || (l[27] = (t) => e(r).interiorPhoto = t),
599
+ modelValue: e(s).interiorPhoto,
600
+ "onUpdate:modelValue": l[27] || (l[27] = (t) => e(s).interiorPhoto = t),
601
601
  type: "image"
602
602
  }, null, 8, ["modelValue"]),
603
- o(E, {
603
+ o(I, {
604
604
  label: "Latest Bank Statement",
605
- modelValue: e(r).bankStatement,
606
- "onUpdate:modelValue": l[28] || (l[28] = (t) => e(r).bankStatement = t),
605
+ modelValue: e(s).bankStatement,
606
+ "onUpdate:modelValue": l[28] || (l[28] = (t) => e(s).bankStatement = t),
607
607
  type: "pdf"
608
608
  }, null, 8, ["modelValue"]),
609
- e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (y(), j(E, {
609
+ e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (y(), T(I, {
610
610
  key: 0,
611
611
  label: "Superform",
612
612
  type: "pdf",
613
- modelValue: e(r).certificate,
614
- "onUpdate:modelValue": l[29] || (l[29] = (t) => e(r).certificate = t)
615
- }, null, 8, ["modelValue"])) : B("", !0),
616
- e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (y(), j(E, {
613
+ modelValue: e(s).certificate,
614
+ "onUpdate:modelValue": l[29] || (l[29] = (t) => e(s).certificate = t)
615
+ }, null, 8, ["modelValue"])) : j("", !0),
616
+ e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (y(), T(I, {
617
617
  key: 1,
618
618
  label: "SSM Certificate & Info",
619
619
  type: "pdf",
620
- modelValue: e(r).certificate,
621
- "onUpdate:modelValue": l[30] || (l[30] = (t) => e(r).certificate = t)
622
- }, null, 8, ["modelValue"])) : B("", !0)
620
+ modelValue: e(s).certificate,
621
+ "onUpdate:modelValue": l[30] || (l[30] = (t) => e(s).certificate = t)
622
+ }, null, 8, ["modelValue"])) : j("", !0)
623
623
  ]),
624
- l[49] || (l[49] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
625
- s("div", Ue, [
624
+ l[49] || (l[49] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
625
+ n("div", Ue, [
626
626
  o(ie, {
627
- modelValue: e(r).signature,
628
- "onUpdate:modelValue": l[31] || (l[31] = (t) => e(r).signature = t),
627
+ modelValue: e(s).signature,
628
+ "onUpdate:modelValue": l[31] || (l[31] = (t) => e(s).signature = t),
629
629
  label: "Signature"
630
630
  }, null, 8, ["modelValue"]),
631
- o(E, {
631
+ o(I, {
632
632
  label: "Company Stamp",
633
633
  type: "image",
634
- modelValue: e(r).companyStamp,
635
- "onUpdate:modelValue": l[32] || (l[32] = (t) => e(r).companyStamp = t)
634
+ modelValue: e(s).companyStamp,
635
+ "onUpdate:modelValue": l[32] || (l[32] = (t) => e(s).companyStamp = t)
636
636
  }, null, 8, ["modelValue"])
637
637
  ])
638
638
  ]),
@@ -652,14 +652,20 @@ const oe = ["src"], E = /* @__PURE__ */ $({
652
652
  required: !0
653
653
  }
654
654
  },
655
- setup(R) {
656
- const { startAsyncCall: x, isLoading: V } = M(), b = J(), k = R, S = h(), m = P(null);
655
+ setup(x) {
656
+ const { startAsyncCall: U, isLoading: V } = M(), b = J(), k = x, N = h(), m = P(null), F = () => {
657
+ if (window.history.length > 1) {
658
+ N.back();
659
+ return;
660
+ }
661
+ N.push({ name: "mf-payment-admin.onboard-submission" });
662
+ };
657
663
  X(() => {
658
- x(async () => {
659
- m.value = await T.readById(k.submissionId);
664
+ U(async () => {
665
+ m.value = await _.readById(k.submissionId);
660
666
  });
661
667
  });
662
- const F = O(() => {
668
+ const a = O(() => {
663
669
  if (!m.value) return null;
664
670
  switch (m.value.type) {
665
671
  case "softspace":
@@ -667,31 +673,31 @@ const oe = ["src"], E = /* @__PURE__ */ $({
667
673
  default:
668
674
  return null;
669
675
  }
670
- }), a = P(0);
671
- function r(i) {
672
- m.value = i, a.value = Date.now();
676
+ }), s = P(0);
677
+ function C(g) {
678
+ m.value = g, s.value = Date.now();
673
679
  }
674
- const C = async (i) => {
675
- var g, w;
680
+ const i = async (g) => {
681
+ var q, v;
676
682
  if (m.value)
677
- switch (i) {
683
+ switch (g) {
678
684
  case "preview":
679
- let v;
685
+ let r;
680
686
  try {
681
- v = b.open({
687
+ r = b.open({
682
688
  message: "Generating preview document...",
683
689
  type: "info"
684
- }), await T.previewDocument(
685
- (g = m.value) == null ? void 0 : g._id
690
+ }), await _.previewDocument(
691
+ (q = m.value) == null ? void 0 : q._id
686
692
  );
687
- } catch (n) {
693
+ } catch (w) {
688
694
  b.open({
689
695
  type: "error",
690
696
  title: "Error occurs when generating submission document",
691
- message: _(n)
697
+ message: A(w)
692
698
  });
693
699
  } finally {
694
- v && b.close(v);
700
+ r && b.close(r);
695
701
  }
696
702
  break;
697
703
  case "send":
@@ -699,34 +705,34 @@ const oe = ["src"], E = /* @__PURE__ */ $({
699
705
  b.open({
700
706
  message: "Sending onboarding document...",
701
707
  type: "info"
702
- }), await T.sendDocument(
703
- (w = m.value) == null ? void 0 : w._id
708
+ }), await _.sendDocument(
709
+ (v = m.value) == null ? void 0 : v._id
704
710
  ), b.open({
705
711
  type: "success",
706
712
  title: "Submission documents send successfully"
707
713
  });
708
- } catch (n) {
714
+ } catch (w) {
709
715
  b.open({
710
716
  type: "error",
711
717
  title: "Error occurs when sending document",
712
- message: _(n)
718
+ message: A(w)
713
719
  });
714
720
  }
715
721
  break;
716
722
  }
717
723
  };
718
- return (i, g) => {
719
- var n, U;
720
- const w = f("FmCircularProgress"), v = f("FmPageHead");
721
- return e(V) ? (y(), q("div", Ee, [
722
- o(w, { size: "xxl" })
723
- ])) : (y(), q(z, { key: 1 }, [
724
- o(v, {
725
- title: `Submission - ${(n = m.value) == null ? void 0 : n.type}`,
726
- description: `ID - ${(U = m.value) == null ? void 0 : U._id}`,
724
+ return (g, q) => {
725
+ var w, D;
726
+ const v = f("FmCircularProgress"), r = f("FmPageHead");
727
+ return e(V) ? (y(), R("div", Ee, [
728
+ o(v, { size: "xxl" })
729
+ ])) : (y(), R(z, { key: 1 }, [
730
+ o(r, {
731
+ title: `Submission - ${(w = m.value) == null ? void 0 : w.type}`,
732
+ description: `ID - ${(D = m.value) == null ? void 0 : D._id}`,
727
733
  "back-button": !0,
728
- "onClick:back": g[0] || (g[0] = () => e(S).back()),
729
- "onClick:action": C,
734
+ "onClick:back": F,
735
+ "onClick:action": i,
730
736
  actions: [
731
737
  {
732
738
  label: "Preview Document",
@@ -741,11 +747,11 @@ const oe = ["src"], E = /* @__PURE__ */ $({
741
747
  }
742
748
  ]
743
749
  }, null, 8, ["title", "description"]),
744
- s("div", Ie, [
745
- (y(), j(Z(F.value), {
746
- key: a.value,
750
+ n("div", Ie, [
751
+ (y(), T(Z(a.value), {
752
+ key: s.value,
747
753
  submission: m.value,
748
- "onUpdate:submission": r
754
+ "onUpdate:submission": C
749
755
  }, null, 40, ["submission"]))
750
756
  ])
751
757
  ], 64));