@feedmepos/mf-payment 1.7.19-dev → 1.7.21-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.
Files changed (50) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BG2kBpO5.js → Actions.vue_vue_type_script_setup_true_lang-ffHJpvXa.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BdvtiVLt.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CfbmwrWK.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BxZt6EDX.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-By13wDdG.js} +2 -2
  4. package/dist/{Chargeback-8705ssuz.js → Chargeback-CZJQQ9gc.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CiI1CiLS.js → DocumentViewer.vue_vue_type_script_setup_true_lang-qP-vt90W.js} +1 -1
  6. package/dist/{OnboardForm-CLaIszWM.js → OnboardForm-B53FxupS.js} +199 -192
  7. package/dist/{OnboardForm-5r0fYV6-.js → OnboardForm-DLmRWhzp.js} +116 -116
  8. package/dist/{OnboardSubmission-Ce7ZpuPZ.js → OnboardSubmission-DJ7rU1wZ.js} +3 -3
  9. package/dist/{OnboardSubmission-CNQamOYQ.js → OnboardSubmission-sakKTYkk.js} +6 -6
  10. package/dist/{PayoutAccount-9O1nlqLq.js → PayoutAccount-BbL0ZGIp.js} +5 -5
  11. package/dist/{PayoutAccount-D1hIUDa5.js → PayoutAccount-DjsO2Zmp.js} +7 -7
  12. package/dist/{PayoutAccountSetting-Bsq44uGi.js → PayoutAccountSetting-BThyDhBb.js} +6 -6
  13. package/dist/{Restaurant-DEHGWg23.js → Restaurant-3EwpWvG0.js} +4 -4
  14. package/dist/{RestaurantSetting-B5qd5y-J.js → RestaurantSetting-Cq3qNh49.js} +3 -3
  15. package/dist/{Settlement-BikKSZle.js → Settlement-CkYnzrb9.js} +3 -3
  16. package/dist/{Settlement-Ctw5dS0H.js → Settlement-Yt7S32M5.js} +4 -4
  17. package/dist/{SettlementTransactions-DKkBKRL6.js → SettlementTransactions-Cb9qJOEj.js} +23 -19
  18. package/dist/{SettlementTransactions-CDODgpHm.js → SettlementTransactions-Ku_4e-zv.js} +5 -5
  19. package/dist/{Status.vue_vue_type_script_setup_true_lang-BjOVL2gZ.js → Status.vue_vue_type_script_setup_true_lang-DSp-aFCU.js} +1 -1
  20. package/dist/{Terminal-RVx6d8m5.js → Terminal-CaFd1Gc_.js} +5 -5
  21. package/dist/{TerminalSetting-C3a1qa_n.js → TerminalSetting-D0SFEEFS.js} +1309 -1306
  22. package/dist/{Transaction-CN_BMNGb.js → Transaction-C7k-A1m0.js} +180 -175
  23. package/dist/{Transaction-DBXgeJCZ.js → Transaction-gu5LaYsT.js} +10 -10
  24. package/dist/{TransactionOld-Fl78DjdT.js → TransactionOld-CcD_aF2l.js} +7 -7
  25. package/dist/TransactionStatus.vue_vue_type_script_setup_true_lang-EDYvI3F4.js +90 -0
  26. package/dist/{app-OJHF121Y.js → app-im13caqF.js} +26 -23
  27. package/dist/app.js +1 -1
  28. package/dist/{assets-DOm4WSnj.js → assets-DTQVIMfM.js} +1 -1
  29. package/dist/{grafana-CZhJ-kb0.js → grafana-BDmkGvlB.js} +1 -1
  30. package/dist/{index-mshqKLN4.js → index-BEUzu_r-.js} +1 -1
  31. package/dist/{index-BXmuBAla.js → index-BVDW0-ZU.js} +1 -1
  32. package/dist/{index-CDGYRQR_.js → index-CQECIxJN.js} +1 -1
  33. package/dist/{index-B2ihrnmG.js → index-D5xbRZEp.js} +1 -1
  34. package/dist/{index-xDoWArqk.js → index-D8TkGZl0.js} +4060 -4066
  35. package/dist/{index-Dve8PviD.js → index-DRG4CNUn.js} +1 -1
  36. package/dist/{index-CTdR0ACD.js → index-DqoTAh5-.js} +1 -1
  37. package/dist/{index-oogIEVP1.js → index-DtE260w6.js} +1 -1
  38. package/dist/{index-D4gNCFo_.js → index-MzVSdd2h.js} +2 -2
  39. package/dist/{index.vue_vue_type_script_setup_true_lang-DCO3bEfF.js → index.vue_vue_type_script_setup_true_lang-DzEx8Tkw.js} +1 -1
  40. package/dist/model/transaction.d.ts +1 -0
  41. package/dist/{onboard-submission-OB4uY_qa.js → onboard-submission-C45MhH1f.js} +1 -1
  42. package/dist/package.json +1 -1
  43. package/dist/{payout-account-CGb_jgcQ.js → payout-account-EtjDZuJC.js} +3 -3
  44. package/dist/style.css +1 -1
  45. package/dist/tsconfig.app.tsbuildinfo +1 -1
  46. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +2 -2
  47. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +1 -1
  48. package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +1 -0
  49. package/package.json +1 -1
  50. package/dist/TransactionStatus.vue_vue_type_script_setup_true_lang-BseITPPF.js +0 -89
@@ -1,15 +1,15 @@
1
- import { defineComponent as Z, ref as $, computed as W, resolveComponent as C, openBlock as b, createElementBlock as F, createElementVNode as n, toDisplayString as I, createBlock as T, withCtx as f, createCommentVNode as A, createVNode as r, unref as e, Fragment as J, renderList as le, createTextVNode as z, onMounted as pe, resolveDynamicComponent as be } from "vue";
2
- import { o as H } from "./index-D4gNCFo_.js";
3
- import { u as te, p as oe } from "./index-xDoWArqk.js";
1
+ import { defineComponent as Z, ref as $, computed as W, resolveComponent as C, openBlock as b, createElementBlock as P, createElementVNode as n, toDisplayString as U, createBlock as T, withCtx as f, createCommentVNode as A, createVNode as r, unref as e, Fragment as J, renderList as le, createTextVNode as z, onMounted as pe, resolveDynamicComponent as be } from "vue";
2
+ import { o as H } from "./index-MzVSdd2h.js";
3
+ import { u as te, p as oe } from "./index-D8TkGZl0.js";
4
4
  import { useRouter as ce } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-CTlVogBQ.js";
6
- import { P as ye } from "./payout-account-CGb_jgcQ.js";
7
- import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CiI1CiLS.js";
6
+ import { P as ye } from "./payout-account-EtjDZuJC.js";
7
+ import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-qP-vt90W.js";
8
8
  import { s as ge } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
- import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-BjOVL2gZ.js";
9
+ import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-DSp-aFCU.js";
10
10
  import { useSnackbar as ae } from "@feedmepos/ui-library";
11
11
  import { u as Q } from "./error-K1CakhA9.js";
12
- const Ve = ["src"], w = /* @__PURE__ */ Z({
12
+ const Ve = ["src"], F = /* @__PURE__ */ Z({
13
13
  __name: "UploadButton",
14
14
  props: {
15
15
  modelValue: {},
@@ -19,44 +19,44 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
19
19
  },
20
20
  emits: ["update:modelValue"],
21
21
  setup(m, { emit: O }) {
22
- const v = m, k = $(v.modelValue), g = O, P = (a) => {
22
+ const v = m, k = $(v.modelValue), g = O, w = (a) => {
23
23
  const i = new FileReader();
24
- i.onload = (U) => {
24
+ i.onload = (x) => {
25
25
  var V;
26
- k.value = (V = U.target) == null ? void 0 : V.result, g("update:modelValue", a);
26
+ k.value = (V = x.target) == null ? void 0 : V.result, g("update:modelValue", a);
27
27
  }, i.readAsDataURL(a);
28
28
  }, c = (a) => {
29
29
  window.open(a, "_blank", "noopener,noreferrer");
30
30
  }, R = W(() => v.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
31
31
  return (a, i) => {
32
- const U = C("FmButton"), V = C("FmDropField");
33
- return b(), F("div", null, [
34
- n("p", null, I(m.label), 1),
32
+ const x = C("FmButton"), V = C("FmDropField");
33
+ return b(), P("div", null, [
34
+ n("p", null, U(m.label), 1),
35
35
  k.value ? (b(), T(re, {
36
36
  key: 0,
37
37
  document: k.value,
38
38
  "restaurant-id": m.restaurantId
39
39
  }, {
40
- default: f(({ src: x }) => [
41
- m.type === "image" ? (b(), F("img", {
40
+ default: f(({ src: I }) => [
41
+ m.type === "image" ? (b(), P("img", {
42
42
  key: 0,
43
- src: x
43
+ src: I
44
44
  }, null, 8, Ve)) : A("", !0),
45
- m.type === "pdf" ? (b(), T(U, {
45
+ m.type === "pdf" ? (b(), T(x, {
46
46
  key: 1,
47
47
  class: "mt-4 w-full",
48
48
  "prepend-icon": "manage_accounts",
49
49
  label: "View Document",
50
50
  variant: "primary",
51
- onVnodeMounted: () => c(x),
52
- onClick: () => c(x)
51
+ onVnodeMounted: () => c(I),
52
+ onClick: () => c(I)
53
53
  }, null, 8, ["onVnodeMounted", "onClick"])) : A("", !0)
54
54
  ]),
55
55
  _: 1
56
56
  }, 8, ["document", "restaurant-id"])) : (b(), T(V, {
57
57
  key: 1,
58
58
  accept: R.value,
59
- onFileUpload: P
59
+ onFileUpload: w
60
60
  }, null, 8, ["accept"]))
61
61
  ]);
62
62
  };
@@ -73,10 +73,10 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
73
73
  },
74
74
  emits: ["update:modelValue"],
75
75
  setup(m, { emit: O }) {
76
- const v = m, k = O, g = $(v.modelValue), P = $(!1), c = $(), R = $(!1);
77
- function a(U, V) {
76
+ const v = m, k = O, g = $(v.modelValue), w = $(!1), c = $(), R = $(!1);
77
+ function a(x, V) {
78
78
  var D;
79
- const x = U.split(","), B = ((D = x[0].match(/:(.*?);/)) == null ? void 0 : D[1]) || "", q = atob(x[1]);
79
+ const I = x.split(","), B = ((D = I[0].match(/:(.*?);/)) == null ? void 0 : D[1]) || "", q = atob(I[1]);
80
80
  let p = q.length;
81
81
  const E = new Uint8Array(p);
82
82
  for (; p--; )
@@ -84,15 +84,15 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
84
84
  return new File([E], V, { type: B });
85
85
  }
86
86
  const i = function() {
87
- const { isEmpty: U, data: V } = c.value.saveSignature();
88
- if (U)
89
- return P.value = !0;
87
+ const { isEmpty: x, data: V } = c.value.saveSignature();
88
+ if (x)
89
+ return w.value = !0;
90
90
  g.value = V, R.value = !1, k("update:modelValue", a(V, "signature.png"));
91
91
  };
92
- return (U, V) => {
93
- const x = C("FmButton"), B = C("FmDialog");
94
- return b(), F("div", null, [
95
- n("p", null, I(m.label), 1),
92
+ return (x, V) => {
93
+ const I = C("FmButton"), B = C("FmDialog");
94
+ return b(), P("div", null, [
95
+ n("p", null, U(m.label), 1),
96
96
  g.value ? (b(), T(re, {
97
97
  key: 0,
98
98
  document: g.value,
@@ -113,7 +113,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
113
113
  "onUpdate:modelValue": V[1] || (V[1] = (q) => R.value = q)
114
114
  }, {
115
115
  "dialog-button": f(() => [
116
- r(x, {
116
+ r(I, {
117
117
  "prepend-icon": "signature",
118
118
  class: "w-full",
119
119
  label: "Signature"
@@ -130,15 +130,15 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
130
130
  customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
131
131
  options: { penColor: "#000000" }
132
132
  }, null, 512),
133
- P.value ? (b(), F("p", fe, " Please sign your signature before saving. ")) : A("", !0),
133
+ w.value ? (b(), P("p", fe, " Please sign your signature before saving. ")) : A("", !0),
134
134
  n("div", ke, [
135
- r(x, {
135
+ r(I, {
136
136
  variant: "destructive",
137
137
  label: "Clear",
138
138
  "prepend-icon": "delete",
139
139
  onClick: V[0] || (V[0] = (q) => c.value.clearSignature())
140
140
  }),
141
- r(x, {
141
+ r(I, {
142
142
  label: "Save",
143
143
  "prepend-icon": "save",
144
144
  onClick: i
@@ -150,7 +150,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
150
150
  ]);
151
151
  };
152
152
  }
153
- }), Ne = { class: "space-y-2" }, Se = { class: "text-gray-900" }, Pe = { class: "text-gray-900" }, qe = { class: "text-gray-900" }, we = { class: "text-gray-900" }, Fe = { class: "text-gray-900" }, Ie = { class: "text-gray-900" }, Ue = { class: "grid grid-cols-4 gap-6" }, xe = ["src"], Re = {
153
+ }), Ne = { class: "space-y-2" }, Se = { class: "text-gray-900" }, we = { class: "text-gray-900" }, qe = { class: "text-gray-900" }, Fe = { class: "text-gray-900" }, Pe = { class: "text-gray-900" }, Ue = { class: "text-gray-900" }, xe = { class: "grid grid-cols-4 gap-6" }, Ie = ["src"], Re = {
154
154
  key: 1,
155
155
  class: "mt-2 truncate text-gray-700"
156
156
  }, De = { key: 0 }, Te = {
@@ -166,7 +166,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
166
166
  },
167
167
  emits: ["update:submission"],
168
168
  setup(m, { emit: O }) {
169
- const v = m, k = O, g = ae(), P = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: U, profile: V, status: x, statusReason: B } = v.submission, q = $(""), p = $(
169
+ const v = m, k = O, g = ae(), w = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: x, profile: V, status: I, statusReason: B } = v.submission, q = $(""), p = $(
170
170
  v.submission.rates ? Object.fromEntries(
171
171
  Object.entries(v.submission.rates).map(([y, l]) => [y, `${l}`])
172
172
  ) : {
@@ -209,7 +209,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
209
209
  for (const { file: j } of M.value) {
210
210
  const L = `additionalDocument${++y}`;
211
211
  l[L] = await H.uploadDocument(
212
- U,
212
+ x,
213
213
  L,
214
214
  j
215
215
  );
@@ -245,7 +245,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
245
245
  status: "approved"
246
246
  }
247
247
  );
248
- k("update:submission", y), P.value = !1, g.open({
248
+ k("update:submission", y), w.value = !1, g.open({
249
249
  type: "success",
250
250
  title: "Submission updated successfully"
251
251
  });
@@ -265,7 +265,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
265
265
  statusReason: q.value
266
266
  }
267
267
  );
268
- k("update:submission", y), P.value = !1, g.open({
268
+ k("update:submission", y), w.value = !1, g.open({
269
269
  type: "success",
270
270
  title: "Submission updated successfully"
271
271
  });
@@ -279,71 +279,71 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
279
279
  });
280
280
  return (y, l) => {
281
281
  const j = C("FmButton"), L = C("FmDropField"), o = C("FmTextField"), K = C("FmTextarea"), ue = C("FmDialog"), de = C("FmPhoneNumber"), se = C("FmSelect"), me = C("FmForm");
282
- return b(), F(J, null, [
282
+ return b(), P(J, null, [
283
283
  n("div", Ne, [
284
284
  n("div", null, [
285
285
  l[34] || (l[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
286
- n("span", Se, I(e(U)), 1)
286
+ n("span", Se, U(e(x)), 1)
287
287
  ]),
288
288
  n("div", null, [
289
289
  l[35] || (l[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
290
- n("span", Pe, I(e(V).name) + " ( " + I(e(V).legalName) + " )", 1)
290
+ n("span", we, U(e(V).name) + " ( " + U(e(V).legalName) + " )", 1)
291
291
  ]),
292
292
  n("div", null, [
293
293
  l[36] || (l[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
294
- n("span", qe, I(e(V).email), 1)
294
+ n("span", qe, U(e(V).email), 1)
295
295
  ]),
296
296
  n("div", null, [
297
297
  l[37] || (l[37] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
298
- n("span", we, I(e(V).phoneNo), 1)
298
+ n("span", Fe, U(e(V).phoneNo), 1)
299
299
  ]),
300
300
  n("div", null, [
301
301
  l[38] || (l[38] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
302
- n("span", Fe, [
303
- r(ie, { data: e(x) }, null, 8, ["data"])
302
+ n("span", Pe, [
303
+ r(ie, { data: e(I) }, null, 8, ["data"])
304
304
  ])
305
305
  ]),
306
306
  n("div", null, [
307
307
  l[39] || (l[39] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
308
- n("span", Ie, I(e(B)), 1)
308
+ n("span", Ue, U(e(B)), 1)
309
309
  ])
310
310
  ]),
311
311
  l[51] || (l[51] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Additional Documents ", -1)),
312
- n("div", Ue, [
313
- (b(!0), F(J, null, le(Y.value, (t) => (b(), T(w, {
312
+ n("div", xe, [
313
+ (b(!0), P(J, null, le(Y.value, (t) => (b(), T(F, {
314
314
  key: t,
315
315
  label: t.replace("additionalDocument", "Document "),
316
316
  type: /\.pdf$/i.test(v.submission.documents[t]) ? "pdf" : "image",
317
317
  modelValue: v.submission.documents[t],
318
318
  "onUpdate:modelValue": (h) => v.submission.documents[t] = h,
319
- "restaurant-id": e(U)
319
+ "restaurant-id": e(x)
320
320
  }, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
321
- (b(!0), F(J, null, le(M.value, (t, h) => (b(), F("div", {
321
+ (b(!0), P(J, null, le(M.value, (t, h) => (b(), P("div", {
322
322
  key: `new-${h}`
323
323
  }, [
324
- n("p", null, "Document " + I(Y.value.length + h + 1), 1),
325
- t.file.type.startsWith("image/") ? (b(), F("img", {
324
+ n("p", null, "Document " + U(Y.value.length + h + 1), 1),
325
+ t.file.type.startsWith("image/") ? (b(), P("img", {
326
326
  key: 0,
327
327
  src: t.preview,
328
328
  class: "mt-2 rounded border"
329
- }, null, 8, xe)) : (b(), F("p", Re, I(t.file.name), 1)),
329
+ }, null, 8, Ie)) : (b(), P("p", Re, U(t.file.name), 1)),
330
330
  r(j, {
331
331
  class: "mt-4",
332
332
  "prepend-icon": "delete",
333
333
  label: "Remove",
334
334
  variant: "destructive",
335
- onClick: (Pl) => M.value.splice(h, 1)
335
+ onClick: (wl) => M.value.splice(h, 1)
336
336
  }, null, 8, ["onClick"])
337
337
  ]))), 128)),
338
- ee.value < ne ? (b(), F("div", De, [
339
- n("p", null, "Document " + I(ee.value + 1), 1),
338
+ ee.value < ne ? (b(), P("div", De, [
339
+ n("p", null, "Document " + U(ee.value + 1), 1),
340
340
  r(L, {
341
341
  accept: ".png, .jpg, .jpeg, .pdf",
342
342
  onFileUpload: S
343
343
  })
344
344
  ])) : A("", !0)
345
345
  ]),
346
- M.value.length ? (b(), F("div", Te, [
346
+ M.value.length ? (b(), P("div", Te, [
347
347
  r(j, {
348
348
  type: "button",
349
349
  variant: "primary",
@@ -477,8 +477,8 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
477
477
  ]),
478
478
  n("div", Ae, [
479
479
  r(ue, {
480
- modelValue: P.value,
481
- "onUpdate:modelValue": l[8] || (l[8] = (t) => P.value = t)
480
+ modelValue: w.value,
481
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => w.value = t)
482
482
  }, {
483
483
  "dialog-button": f(() => [
484
484
  r(j, {
@@ -529,31 +529,31 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
529
529
  r(o, {
530
530
  modelValue: e(a).picName,
531
531
  "onUpdate:modelValue": l[9] || (l[9] = (t) => e(a).picName = t),
532
- label: "PIC Name",
532
+ label: "Owner/Director Name",
533
533
  placeholder: "Enter your name",
534
534
  "label-mark": "required",
535
- rules: e(u)(e(d).string().min(1, "PIC Name is required"))
535
+ rules: e(u)(e(d).string().min(1, "Owner/Director Name is required"))
536
536
  }, null, 8, ["modelValue", "rules"])
537
537
  ]),
538
538
  n("div", Ee, [
539
539
  r(o, {
540
540
  modelValue: e(a).picRole,
541
541
  "onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picRole = t),
542
- label: "PIC Role",
542
+ label: "Owner/Director Role",
543
543
  placeholder: "Enter your role",
544
544
  "label-mark": "required",
545
- rules: e(u)(e(d).string().min(1, "PIC Role is required"))
545
+ rules: e(u)(e(d).string().min(1, "Owner/Director Role is required"))
546
546
  }, null, 8, ["modelValue", "rules"])
547
547
  ]),
548
548
  n("div", Oe, [
549
549
  r(o, {
550
550
  modelValue: e(a).picEmail,
551
551
  "onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picEmail = t),
552
- label: "PIC Email",
552
+ label: "Owner/Director Email",
553
553
  type: "email",
554
554
  placeholder: "Enter your email address",
555
555
  "label-mark": "required",
556
- rules: e(u)(e(d).string().min(1, "PIC Email is required"))
556
+ rules: e(u)(e(d).string().min(1, "Owner/Director Email is required"))
557
557
  }, null, 8, ["modelValue", "rules"])
558
558
  ]),
559
559
  n("div", Le, [
@@ -561,9 +561,9 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
561
561
  "model-value": e(a).picContact,
562
562
  "onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picContact = t),
563
563
  "default-country": "MY",
564
- label: "PIC Contact",
564
+ label: "Owner/Director Contact",
565
565
  "label-mark": "required",
566
- rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
566
+ rules: e(u)(e(d).string().min(1, "Owner/Director Contact is required"))
567
567
  }, null, 8, ["model-value", "rules"])
568
568
  ]),
569
569
  n("div", Me, [
@@ -699,23 +699,23 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
699
699
  "label-mark": "required",
700
700
  rules: e(u)(e(d).string().min(1, "Account Number is required"))
701
701
  }, null, 8, ["modelValue", "rules"]),
702
- r(w, {
702
+ r(F, {
703
703
  label: "Authorized Person ID",
704
704
  modelValue: e(i).authorizedPersonID,
705
705
  "onUpdate:modelValue": l[26] || (l[26] = (t) => e(i).authorizedPersonID = t),
706
706
  type: "image",
707
707
  "restaurant-id": m.submission.restaurantId
708
708
  }, null, 8, ["modelValue", "restaurant-id"]),
709
- r(w, {
709
+ r(F, {
710
710
  label: "Outlet Photo",
711
711
  modelValue: e(i).outletPhoto,
712
712
  "onUpdate:modelValue": l[27] || (l[27] = (t) => e(i).outletPhoto = t),
713
713
  type: "image",
714
714
  "restaurant-id": m.submission.restaurantId
715
715
  }, null, 8, ["modelValue", "restaurant-id"]),
716
- (b(!0), F(J, null, le([1, 2, 3, 4, 5].filter(
716
+ (b(!0), P(J, null, le([1, 2, 3, 4, 5].filter(
717
717
  (t) => !!e(i)[`onsitePhoto${t}`]
718
- ), (t) => (b(), T(w, {
718
+ ), (t) => (b(), T(F, {
719
719
  key: t,
720
720
  label: `Onsite Photo ${t}`,
721
721
  modelValue: e(i)[`onsitePhoto${t}`],
@@ -723,7 +723,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
723
723
  type: "image",
724
724
  "restaurant-id": m.submission.restaurantId
725
725
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
726
- e(i).interiorPhoto ? (b(), T(w, {
726
+ e(i).interiorPhoto ? (b(), T(F, {
727
727
  key: 0,
728
728
  label: "Interior Photo",
729
729
  modelValue: e(i).interiorPhoto,
@@ -731,14 +731,14 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
731
731
  type: "image",
732
732
  "restaurant-id": m.submission.restaurantId
733
733
  }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
734
- r(w, {
734
+ r(F, {
735
735
  label: "Latest Bank Statement",
736
736
  modelValue: e(i).bankStatement,
737
737
  "onUpdate:modelValue": l[29] || (l[29] = (t) => e(i).bankStatement = t),
738
738
  type: "pdf",
739
739
  "restaurant-id": m.submission.restaurantId
740
740
  }, null, 8, ["modelValue", "restaurant-id"]),
741
- e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (b(), T(w, {
741
+ e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (b(), T(F, {
742
742
  key: 1,
743
743
  label: "Superform",
744
744
  type: "pdf",
@@ -746,7 +746,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
746
746
  "onUpdate:modelValue": l[30] || (l[30] = (t) => e(i).certificate = t),
747
747
  "restaurant-id": m.submission.restaurantId
748
748
  }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
749
- e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (b(), T(w, {
749
+ e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (b(), T(F, {
750
750
  key: 2,
751
751
  label: "SSM Certificate & Info",
752
752
  type: "pdf",
@@ -763,7 +763,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
763
763
  "restaurant-id": m.submission.restaurantId,
764
764
  label: "Signature"
765
765
  }, null, 8, ["modelValue", "restaurant-id"]),
766
- r(w, {
766
+ r(F, {
767
767
  label: "Company Stamp",
768
768
  type: "image",
769
769
  modelValue: e(i).companyStamp,
@@ -787,7 +787,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
787
787
  },
788
788
  emits: ["update:submission"],
789
789
  setup(m, { emit: O }) {
790
- const v = m, k = O, g = ae(), P = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: U, profile: V, status: x, statusReason: B } = v.submission, q = $(""), p = [
790
+ const v = m, k = O, g = ae(), w = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: x, profile: V, status: I, statusReason: B } = v.submission, q = $(""), p = [
791
791
  { key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
792
792
  {
793
793
  key: "localCardStandard",
@@ -880,7 +880,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
880
880
  statusReason: q.value
881
881
  }
882
882
  );
883
- k("update:submission", S), P.value = !1, g.open({
883
+ k("update:submission", S), w.value = !1, g.open({
884
884
  type: "success",
885
885
  title: "Submission updated successfully"
886
886
  });
@@ -894,38 +894,38 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
894
894
  });
895
895
  return (S, s) => {
896
896
  const N = C("FmTextField"), X = C("FmButton"), y = C("FmTextarea"), l = C("FmDialog"), j = C("FmPhoneNumber"), L = C("FmForm");
897
- return b(), F(J, null, [
897
+ return b(), P(J, null, [
898
898
  n("div", Xe, [
899
899
  n("div", null, [
900
900
  s[31] || (s[31] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
901
- n("span", Ze, I(e(U)), 1)
901
+ n("span", Ze, U(e(x)), 1)
902
902
  ]),
903
903
  n("div", null, [
904
904
  s[32] || (s[32] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
905
- n("span", _e, I(e(V).name) + " ( " + I(e(V).legalName) + " )", 1)
905
+ n("span", _e, U(e(V).name) + " ( " + U(e(V).legalName) + " )", 1)
906
906
  ]),
907
907
  n("div", null, [
908
908
  s[33] || (s[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
909
- n("span", el, I(e(V).email), 1)
909
+ n("span", el, U(e(V).email), 1)
910
910
  ]),
911
911
  n("div", null, [
912
912
  s[34] || (s[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
913
- n("span", ll, I(e(V).phoneNo), 1)
913
+ n("span", ll, U(e(V).phoneNo), 1)
914
914
  ]),
915
915
  n("div", null, [
916
916
  s[35] || (s[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
917
917
  n("span", tl, [
918
- r(ie, { data: e(x) }, null, 8, ["data"])
918
+ r(ie, { data: e(I) }, null, 8, ["data"])
919
919
  ])
920
920
  ]),
921
921
  n("div", null, [
922
922
  s[36] || (s[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
923
- n("span", al, I(e(B)), 1)
923
+ n("span", al, U(e(B)), 1)
924
924
  ])
925
925
  ]),
926
926
  s[43] || (s[43] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
927
927
  n("div", sl, [
928
- (b(), F(J, null, le(p, (o) => r(N, {
928
+ (b(), P(J, null, le(p, (o) => r(N, {
929
929
  key: o.key,
930
930
  modelValue: D.value[o.key],
931
931
  "onUpdate:modelValue": (K) => D.value[o.key] = K,
@@ -946,8 +946,8 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
946
946
  ]),
947
947
  n("div", nl, [
948
948
  r(l, {
949
- modelValue: P.value,
950
- "onUpdate:modelValue": s[1] || (s[1] = (o) => P.value = o)
949
+ modelValue: w.value,
950
+ "onUpdate:modelValue": s[1] || (s[1] = (o) => w.value = o)
951
951
  }, {
952
952
  "dialog-button": f(() => [
953
953
  r(X, {
@@ -989,7 +989,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
989
989
  onClick: Y,
990
990
  loading: e(c)
991
991
  }, null, 8, ["disabled", "loading"]),
992
- e(x) === "approved" ? (b(), T(X, {
992
+ e(I) === "approved" ? (b(), T(X, {
993
993
  key: 0,
994
994
  type: "button",
995
995
  variant: "secondary",
@@ -1113,35 +1113,35 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1113
1113
  ]),
1114
1114
  s[41] || (s[41] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1115
1115
  n("div", pl, [
1116
- r(w, {
1116
+ r(F, {
1117
1117
  label: "Authorized Person ID",
1118
1118
  modelValue: e(i).authorizedPersonID,
1119
1119
  "onUpdate:modelValue": s[15] || (s[15] = (o) => e(i).authorizedPersonID = o),
1120
1120
  type: "image",
1121
1121
  "restaurant-id": m.submission.restaurantId
1122
1122
  }, null, 8, ["modelValue", "restaurant-id"]),
1123
- r(w, {
1123
+ r(F, {
1124
1124
  label: "Outlet Photo",
1125
1125
  modelValue: e(i).outletPhoto,
1126
1126
  "onUpdate:modelValue": s[16] || (s[16] = (o) => e(i).outletPhoto = o),
1127
1127
  type: "image",
1128
1128
  "restaurant-id": m.submission.restaurantId
1129
1129
  }, null, 8, ["modelValue", "restaurant-id"]),
1130
- r(w, {
1130
+ r(F, {
1131
1131
  label: "Interior Photo",
1132
1132
  modelValue: e(i).interiorPhoto,
1133
1133
  "onUpdate:modelValue": s[17] || (s[17] = (o) => e(i).interiorPhoto = o),
1134
1134
  type: "image",
1135
1135
  "restaurant-id": m.submission.restaurantId
1136
1136
  }, null, 8, ["modelValue", "restaurant-id"]),
1137
- r(w, {
1137
+ r(F, {
1138
1138
  label: "Bank Statement",
1139
1139
  modelValue: e(i).bankStatement,
1140
1140
  "onUpdate:modelValue": s[18] || (s[18] = (o) => e(i).bankStatement = o),
1141
1141
  type: "pdf",
1142
1142
  "restaurant-id": m.submission.restaurantId
1143
1143
  }, null, 8, ["modelValue", "restaurant-id"]),
1144
- e(a).businessType === "juristic" ? (b(), T(w, {
1144
+ e(a).businessType === "juristic" ? (b(), T(F, {
1145
1145
  key: 0,
1146
1146
  label: "Company Certificate",
1147
1147
  type: "pdf",
@@ -1149,7 +1149,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1149
1149
  "onUpdate:modelValue": s[19] || (s[19] = (o) => e(i).companyCertificate = o),
1150
1150
  "restaurant-id": m.submission.restaurantId
1151
1151
  }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
1152
- e(a).businessType === "juristic" ? (b(), T(w, {
1152
+ e(a).businessType === "juristic" ? (b(), T(F, {
1153
1153
  key: 1,
1154
1154
  label: "VAT Certificate",
1155
1155
  type: "pdf",
@@ -1157,7 +1157,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1157
1157
  "onUpdate:modelValue": s[20] || (s[20] = (o) => e(i).vatCertificate = o),
1158
1158
  "restaurant-id": m.submission.restaurantId
1159
1159
  }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
1160
- e(a).businessType === "individual" ? (b(), T(w, {
1160
+ e(a).businessType === "individual" ? (b(), T(F, {
1161
1161
  key: 2,
1162
1162
  label: "Commercial Certificate",
1163
1163
  type: "pdf",
@@ -1223,21 +1223,21 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1223
1223
  rules: e(u)(e(d).string().min(1, "Witness Role is required"))
1224
1224
  }, null, 8, ["modelValue", "rules"])
1225
1225
  ]),
1226
- r(w, {
1226
+ r(F, {
1227
1227
  label: "Signature",
1228
1228
  type: "image",
1229
1229
  modelValue: e(i).signature,
1230
1230
  "onUpdate:modelValue": s[28] || (s[28] = (o) => e(i).signature = o),
1231
1231
  "restaurant-id": m.submission.restaurantId
1232
1232
  }, null, 8, ["modelValue", "restaurant-id"]),
1233
- r(w, {
1233
+ r(F, {
1234
1234
  label: "Witness Signature",
1235
1235
  type: "image",
1236
1236
  modelValue: e(i).witnessSignature,
1237
1237
  "onUpdate:modelValue": s[29] || (s[29] = (o) => e(i).witnessSignature = o),
1238
1238
  "restaurant-id": m.submission.restaurantId
1239
1239
  }, null, 8, ["modelValue", "restaurant-id"]),
1240
- r(w, {
1240
+ r(F, {
1241
1241
  label: "Company Stamp",
1242
1242
  type: "image",
1243
1243
  modelValue: e(i).companyStamp,
@@ -1262,7 +1262,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1262
1262
  emits: ["update:submission"],
1263
1263
  setup(m) {
1264
1264
  const O = m, v = W(() => {
1265
- const k = O.submission.fields || {}, g = (P) => k[P] || "N/A";
1265
+ const k = O.submission.fields || {}, g = (w) => k[w] || "N/A";
1266
1266
  return [
1267
1267
  {
1268
1268
  label: "Tyro POS Reference ID",
@@ -1283,7 +1283,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1283
1283
  ];
1284
1284
  });
1285
1285
  return (k, g) => {
1286
- const P = C("FmCardHeader"), c = C("FmCardSection"), R = C("FmCard");
1286
+ const w = C("FmCardHeader"), c = C("FmCardSection"), R = C("FmCard");
1287
1287
  return b(), T(R, {
1288
1288
  class: "max-w-3xl mt-8 p-6",
1289
1289
  variant: "elevated"
@@ -1291,19 +1291,19 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1291
1291
  default: f(() => [
1292
1292
  r(c, { class: "flex flex-col gap-16 justify-between" }, {
1293
1293
  default: f(() => [
1294
- r(P, {
1294
+ r(w, {
1295
1295
  class: "p-0",
1296
1296
  title: "Tyro Authorisation",
1297
1297
  subtitle: ""
1298
1298
  }),
1299
1299
  r(c, { class: "p-0" }, {
1300
1300
  default: f(() => [
1301
- (b(!0), F(J, null, le(v.value, (a) => (b(), F("p", {
1301
+ (b(!0), P(J, null, le(v.value, (a) => (b(), P("p", {
1302
1302
  key: a.label,
1303
1303
  class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
1304
1304
  }, [
1305
- n("b", null, I(a.label), 1),
1306
- z(": " + I(a.value), 1)
1305
+ n("b", null, U(a.label), 1),
1306
+ z(": " + U(a.value), 1)
1307
1307
  ]))), 128))
1308
1308
  ]),
1309
1309
  _: 1
@@ -1328,17 +1328,17 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1328
1328
  }
1329
1329
  },
1330
1330
  setup(m) {
1331
- const { startAsyncCall: O, isLoading: v } = te(), k = ae(), g = m, P = ce(), c = $(null), R = W(
1331
+ const { startAsyncCall: O, isLoading: v } = te(), k = ae(), g = m, w = ce(), c = $(null), R = W(
1332
1332
  () => {
1333
1333
  var B;
1334
1334
  return ((B = c.value) == null ? void 0 : B.type) === oe.FdoOnboardType.enum.tyro;
1335
1335
  }
1336
1336
  ), a = () => {
1337
1337
  if (window.history.length > 1) {
1338
- P.back();
1338
+ w.back();
1339
1339
  return;
1340
1340
  }
1341
- P.push({ name: "mf-payment-admin.onboard-submission" });
1341
+ w.push({ name: "mf-payment-admin.onboard-submission" });
1342
1342
  };
1343
1343
  pe(() => {
1344
1344
  O(async () => {
@@ -1357,11 +1357,11 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1357
1357
  default:
1358
1358
  return null;
1359
1359
  }
1360
- }), U = $(0);
1360
+ }), x = $(0);
1361
1361
  function V(B) {
1362
- c.value = B, U.value = Date.now();
1362
+ c.value = B, x.value = Date.now();
1363
1363
  }
1364
- const x = async (B) => {
1364
+ const I = async (B) => {
1365
1365
  var q, p;
1366
1366
  if (c.value)
1367
1367
  switch (B) {
@@ -1408,15 +1408,15 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1408
1408
  return (B, q) => {
1409
1409
  var D, G;
1410
1410
  const p = C("FmCircularProgress"), E = C("FmPageHead");
1411
- return e(v) ? (b(), F("div", Nl, [
1411
+ return e(v) ? (b(), P("div", Nl, [
1412
1412
  r(p, { size: "xxl" })
1413
- ])) : (b(), F(J, { key: 1 }, [
1413
+ ])) : (b(), P(J, { key: 1 }, [
1414
1414
  r(E, {
1415
1415
  title: `Submission - ${(D = c.value) == null ? void 0 : D.type}`,
1416
1416
  description: `ID - ${(G = c.value) == null ? void 0 : G._id}`,
1417
1417
  "back-button": !0,
1418
1418
  "onClick:back": a,
1419
- "onClick:action": x,
1419
+ "onClick:action": I,
1420
1420
  actions: R.value ? [] : [
1421
1421
  {
1422
1422
  label: "Preview Document",
@@ -1433,7 +1433,7 @@ const Ve = ["src"], w = /* @__PURE__ */ Z({
1433
1433
  }, null, 8, ["title", "description", "actions"]),
1434
1434
  n("div", Sl, [
1435
1435
  (b(), T(be(i.value), {
1436
- key: U.value,
1436
+ key: x.value,
1437
1437
  submission: c.value,
1438
1438
  "onUpdate:submission": V
1439
1439
  }, null, 40, ["submission"]))