@feedmepos/mf-payment 1.6.6-dev → 1.6.7-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 (40) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-Clsf72yT.js → Actions.vue_vue_type_script_setup_true_lang-CZrcon1u.js} +1 -1
  2. package/dist/{Chargeback-DoiZmxRc.js → Chargeback-CyJfrwxb.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DlwyoRyN.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Cv5FWC85.js} +1 -1
  4. package/dist/{OnboardForm-DXV-Pc1Y.js → OnboardForm-C1NksC9F.js} +345 -337
  5. package/dist/{OnboardForm-DGWfjxZR.js → OnboardForm-D0-w4Hs7.js} +515 -499
  6. package/dist/{OnboardSubmission-vZZEO9ez.js → OnboardSubmission-8zHp_xjf.js} +5 -5
  7. package/dist/{OnboardSubmission-BBXMk9Tw.js → OnboardSubmission-9KbiiKVL.js} +2 -2
  8. package/dist/{PayoutAccount-C0rVV_Sn.js → PayoutAccount-BG0byAv7.js} +5 -5
  9. package/dist/{PayoutAccount-TbyH0c8w.js → PayoutAccount-OrEOMoJY.js} +5 -5
  10. package/dist/{PayoutAccountSetting-Cy7-BGpz.js → PayoutAccountSetting-o6ZhpOPK.js} +6 -6
  11. package/dist/{Restaurant-DOx3AlXt.js → Restaurant-Clq6OK2b.js} +4 -4
  12. package/dist/{RestaurantSetting-CIdcsypt.js → RestaurantSetting-DV91ECeC.js} +3 -3
  13. package/dist/{Settlement-COiJkyPE.js → Settlement-D-0x2ZTB.js} +3 -3
  14. package/dist/{Settlement-BikQzNUH.js → Settlement-OKi5EYCO.js} +4 -4
  15. package/dist/{SettlementTransactions-CAUt1eQe.js → SettlementTransactions-BRfTH3E5.js} +4 -4
  16. package/dist/{SettlementTransactions-DWd6qioy.js → SettlementTransactions-Dz2OpCb4.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-yZz_GVVU.js → Status.vue_vue_type_script_setup_true_lang-D0Byu_Mh.js} +1 -1
  18. package/dist/{Terminal-BSAYsZ00.js → Terminal-CiDNiqcq.js} +5 -5
  19. package/dist/{TerminalSetting-CdAABoUa.js → TerminalSetting-MF2mN3I2.js} +4 -4
  20. package/dist/{Transaction-RFoivnE3.js → Transaction-5OMuBthJ.js} +6 -6
  21. package/dist/{Transaction-CADEPU1t.js → Transaction-6EbQlBHK.js} +10 -10
  22. package/dist/{TransactionOld-LsRHg_jj.js → TransactionOld-D844xnVy.js} +7 -7
  23. package/dist/{app-BKYw-TBs.js → app-CAPiUQNj.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-Q3jwGdH2.js → assets-B6vPUj-V.js} +1 -1
  26. package/dist/{grafana-CUQUJCoc.js → grafana-clHoRXUd.js} +1 -1
  27. package/dist/{index-fFwg-TQI.js → index-0MRh65G4.js} +1 -1
  28. package/dist/{index-HFB7pbLN.js → index-BTp0gp7d.js} +1 -1
  29. package/dist/{index-Cln1qxWz.js → index-BahSstlc.js} +1 -1
  30. package/dist/{index-CMeKR83d.js → index-Bjjx0aUY.js} +1 -1
  31. package/dist/{index-DtC940-u.js → index-CcLXQmus.js} +1 -1
  32. package/dist/{index-BgLxG5Su.js → index-Cj0XK-4b.js} +1 -1
  33. package/dist/{index-DTfDweZz.js → index-D0fZ0FyV.js} +1 -1
  34. package/dist/{index-Cm10hA-5.js → index-DxSewxiE.js} +1 -1
  35. package/dist/{index-D_Ns3MqY.js → index-TWx1hrJ5.js} +2 -2
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-ClzNDEHF.js → index.vue_vue_type_script_setup_true_lang-Bxwd1AZ5.js} +1 -1
  37. package/dist/package.json +1 -1
  38. package/dist/{payout-account-DGQQnDkh.js → payout-account-BEEkGTfo.js} +3 -3
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/package.json +1 -1
@@ -1,15 +1,15 @@
1
- import { defineComponent as Q, ref as j, computed as W, resolveComponent as C, openBlock as V, createElementBlock as O, createElementVNode as o, toDisplayString as U, createBlock as D, withCtx as g, createCommentVNode as $, createVNode as n, unref as e, Fragment as Y, createTextVNode as L, renderList as _, onMounted as oe, resolveDynamicComponent as ne } from "vue";
2
- import { o as M } from "./index-D_Ns3MqY.js";
3
- import { u as Z, p as ee } from "./index-fFwg-TQI.js";
1
+ import { defineComponent as G, ref as D, computed as W, resolveComponent as C, openBlock as g, createElementBlock as $, createElementVNode as o, toDisplayString as x, createBlock as j, withCtx as V, createCommentVNode as O, createVNode as n, unref as e, Fragment as Q, createTextVNode as L, renderList as h, onMounted as oe, resolveDynamicComponent as ne } from "vue";
2
+ import { o as M } from "./index-TWx1hrJ5.js";
3
+ import { u as _, p as le } from "./index-0MRh65G4.js";
4
4
  import { useRouter as re } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-CTlVogBQ.js";
6
- import { P as ie } from "./payout-account-DGQQnDkh.js";
7
- import { _ as le } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DlwyoRyN.js";
6
+ import { P as ie } from "./payout-account-BEEkGTfo.js";
7
+ import { _ as ae } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Cv5FWC85.js";
8
8
  import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
- import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-yZz_GVVU.js";
10
- import { useSnackbar as h } from "@feedmepos/ui-library";
9
+ import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-D0Byu_Mh.js";
10
+ import { useSnackbar as ee } from "@feedmepos/ui-library";
11
11
  import { u as z } from "./error-K1CakhA9.js";
12
- const de = ["src"], w = /* @__PURE__ */ Q({
12
+ const de = ["src"], F = /* @__PURE__ */ G({
13
13
  __name: "UploadButton",
14
14
  props: {
15
15
  modelValue: {},
@@ -18,44 +18,44 @@ const de = ["src"], w = /* @__PURE__ */ Q({
18
18
  restaurantId: {}
19
19
  },
20
20
  emits: ["update:modelValue"],
21
- setup(p, { emit: A }) {
22
- const N = p, v = j(N.modelValue), y = A, P = (a) => {
21
+ setup(m, { emit: A }) {
22
+ const N = m, v = D(N.modelValue), y = A, P = (t) => {
23
23
  const i = new FileReader();
24
24
  i.onload = (R) => {
25
25
  var c;
26
- v.value = (c = R.target) == null ? void 0 : c.result, y("update:modelValue", a);
27
- }, i.readAsDataURL(a);
28
- }, b = (a) => {
29
- window.open(a, "_blank", "noopener,noreferrer");
30
- }, I = W(() => N.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
31
- return (a, i) => {
26
+ v.value = (c = R.target) == null ? void 0 : c.result, y("update:modelValue", t);
27
+ }, i.readAsDataURL(t);
28
+ }, b = (t) => {
29
+ window.open(t, "_blank", "noopener,noreferrer");
30
+ }, w = W(() => N.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
31
+ return (t, i) => {
32
32
  const R = C("FmButton"), c = C("FmDropField");
33
- return V(), O("div", null, [
34
- o("p", null, U(p.label), 1),
35
- v.value ? (V(), D(le, {
33
+ return g(), $("div", null, [
34
+ o("p", null, x(m.label), 1),
35
+ v.value ? (g(), j(ae, {
36
36
  key: 0,
37
37
  document: v.value,
38
- "restaurant-id": p.restaurantId
38
+ "restaurant-id": m.restaurantId
39
39
  }, {
40
- default: g(({ src: F }) => [
41
- p.type === "image" ? (V(), O("img", {
40
+ default: V(({ src: I }) => [
41
+ m.type === "image" ? (g(), $("img", {
42
42
  key: 0,
43
- src: F
44
- }, null, 8, de)) : $("", !0),
45
- p.type === "pdf" ? (V(), D(R, {
43
+ src: I
44
+ }, null, 8, de)) : O("", !0),
45
+ m.type === "pdf" ? (g(), j(R, {
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: () => b(F),
52
- onClick: () => b(F)
53
- }, null, 8, ["onVnodeMounted", "onClick"])) : $("", !0)
51
+ onVnodeMounted: () => b(I),
52
+ onClick: () => b(I)
53
+ }, null, 8, ["onVnodeMounted", "onClick"])) : O("", !0)
54
54
  ]),
55
55
  _: 1
56
- }, 8, ["document", "restaurant-id"])) : (V(), D(c, {
56
+ }, 8, ["document", "restaurant-id"])) : (g(), j(c, {
57
57
  key: 1,
58
- accept: I.value,
58
+ accept: w.value,
59
59
  onFileUpload: P
60
60
  }, null, 8, ["accept"]))
61
61
  ]);
@@ -64,7 +64,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
64
64
  }), me = ["src"], pe = {
65
65
  key: 0,
66
66
  class: "text-center text-red-700 py-4"
67
- }, be = { class: "flex justify-evenly py-3" }, ce = /* @__PURE__ */ Q({
67
+ }, be = { class: "flex justify-evenly py-3" }, ce = /* @__PURE__ */ G({
68
68
  __name: "SignatureBoard",
69
69
  props: {
70
70
  modelValue: {},
@@ -72,33 +72,33 @@ const de = ["src"], w = /* @__PURE__ */ Q({
72
72
  restaurantId: {}
73
73
  },
74
74
  emits: ["update:modelValue"],
75
- setup(p, { emit: A }) {
76
- const N = p, v = A, y = j(N.modelValue), P = j(!1), b = j(), I = j(!1);
77
- function a(R, c) {
78
- var x;
79
- const F = R.split(","), B = ((x = F[0].match(/:(.*?);/)) == null ? void 0 : x[1]) || "", q = atob(F[1]);
80
- let m = q.length;
81
- const E = new Uint8Array(m);
82
- for (; m--; )
83
- E[m] = q.charCodeAt(m);
75
+ setup(m, { emit: A }) {
76
+ const N = m, v = A, y = D(N.modelValue), P = D(!1), b = D(), w = D(!1);
77
+ function t(R, c) {
78
+ var U;
79
+ const I = R.split(","), B = ((U = I[0].match(/:(.*?);/)) == null ? void 0 : U[1]) || "", q = atob(I[1]);
80
+ let p = q.length;
81
+ const E = new Uint8Array(p);
82
+ for (; p--; )
83
+ E[p] = q.charCodeAt(p);
84
84
  return new File([E], c, { type: B });
85
85
  }
86
86
  const i = function() {
87
87
  const { isEmpty: R, data: c } = b.value.saveSignature();
88
88
  if (R)
89
89
  return P.value = !0;
90
- y.value = c, I.value = !1, v("update:modelValue", a(c, "signature.png"));
90
+ y.value = c, w.value = !1, v("update:modelValue", t(c, "signature.png"));
91
91
  };
92
92
  return (R, c) => {
93
- const F = C("FmButton"), B = C("FmDialog");
94
- return V(), O("div", null, [
95
- o("p", null, U(p.label), 1),
96
- y.value ? (V(), D(le, {
93
+ const I = C("FmButton"), B = C("FmDialog");
94
+ return g(), $("div", null, [
95
+ o("p", null, x(m.label), 1),
96
+ y.value ? (g(), j(ae, {
97
97
  key: 0,
98
98
  document: y.value,
99
- "restaurant-id": p.restaurantId
99
+ "restaurant-id": m.restaurantId
100
100
  }, {
101
- default: g(({ src: q }) => [
101
+ default: V(({ src: q }) => [
102
102
  o("img", {
103
103
  src: q,
104
104
  alt: "Signature Preview",
@@ -106,23 +106,23 @@ const de = ["src"], w = /* @__PURE__ */ Q({
106
106
  }, null, 8, me)
107
107
  ]),
108
108
  _: 1
109
- }, 8, ["document", "restaurant-id"])) : $("", !0),
110
- y.value ? $("", !0) : (V(), D(B, {
109
+ }, 8, ["document", "restaurant-id"])) : O("", !0),
110
+ y.value ? O("", !0) : (g(), j(B, {
111
111
  key: 1,
112
- modelValue: I.value,
113
- "onUpdate:modelValue": c[1] || (c[1] = (q) => I.value = q)
112
+ modelValue: w.value,
113
+ "onUpdate:modelValue": c[1] || (c[1] = (q) => w.value = q)
114
114
  }, {
115
- "dialog-button": g(() => [
116
- n(F, {
115
+ "dialog-button": V(() => [
116
+ n(I, {
117
117
  "prepend-icon": "signature",
118
118
  class: "w-full",
119
119
  label: "Signature"
120
120
  })
121
121
  ]),
122
- "dialog-header": g(() => [...c[2] || (c[2] = [
122
+ "dialog-header": V(() => [...c[2] || (c[2] = [
123
123
  o("div", null, "Signature Board", -1)
124
124
  ])]),
125
- default: g(() => [
125
+ default: V(() => [
126
126
  n(e(ue), {
127
127
  ref_key: "signaturePad",
128
128
  ref: b,
@@ -130,15 +130,15 @@ const de = ["src"], w = /* @__PURE__ */ Q({
130
130
  customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
131
131
  options: { penColor: "#000000" }
132
132
  }, null, 512),
133
- P.value ? (V(), O("p", pe, " Please sign your signature before saving. ")) : $("", !0),
133
+ P.value ? (g(), $("p", pe, " Please sign your signature before saving. ")) : O("", !0),
134
134
  o("div", be, [
135
- n(F, {
135
+ n(I, {
136
136
  variant: "destructive",
137
137
  label: "Clear",
138
138
  "prepend-icon": "delete",
139
139
  onClick: c[0] || (c[0] = (q) => b.value.clearSignature())
140
140
  }),
141
- n(F, {
141
+ n(I, {
142
142
  label: "Save",
143
143
  "prepend-icon": "save",
144
144
  onClick: i
@@ -150,7 +150,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
150
150
  ]);
151
151
  };
152
152
  }
153
- }), ye = { class: "space-y-2" }, ge = { class: "text-gray-900" }, Ve = { class: "text-gray-900" }, ve = { class: "text-gray-900" }, fe = { class: "text-gray-900" }, ke = { class: "text-gray-900" }, Ce = { class: "text-gray-900" }, Ne = { class: "mt-6 grid grid-cols-4 gap-24" }, Se = { class: "w-full flex justify-end mt-6" }, Pe = { class: "mt-6 grid grid-cols-4 gap-24" }, qe = { class: "col-span-2" }, Fe = { class: "col-span-2" }, we = { class: "col-span-2" }, Ie = { class: "col-span-2" }, xe = { class: "col-span-2" }, Ue = { class: "col-span-2" }, Re = { class: "col-start-1 col-span-2" }, Be = { class: "col-span-2" }, Te = { class: "col-span-2" }, je = { class: "col-span-2" }, De = { class: "mt-6 grid grid-cols-4 gap-24" }, Ee = { class: "mt-6 grid grid-cols-2 gap-24" }, Ae = /* @__PURE__ */ Q({
153
+ }), ye = { class: "space-y-2" }, ge = { class: "text-gray-900" }, Ve = { class: "text-gray-900" }, ve = { class: "text-gray-900" }, fe = { class: "text-gray-900" }, ke = { class: "text-gray-900" }, Ce = { class: "text-gray-900" }, Ne = { class: "mt-6 grid grid-cols-4 gap-24" }, Se = { class: "w-full flex justify-end mt-6" }, Pe = { class: "mt-6 grid grid-cols-4 gap-24" }, qe = { class: "col-span-2" }, Fe = { class: "col-span-2" }, Ie = { class: "col-span-2" }, we = { class: "col-span-2" }, Ue = { class: "col-span-2" }, xe = { class: "col-span-2" }, Re = { class: "col-start-1 col-span-2" }, Be = { class: "col-span-2" }, Te = { class: "col-span-2" }, je = { class: "col-span-2" }, De = { class: "mt-6 grid grid-cols-4 gap-6" }, Ee = { class: "mt-6 grid grid-cols-2 gap-24" }, $e = /* @__PURE__ */ G({
154
154
  __name: "SoftspaceSubmission",
155
155
  props: {
156
156
  submission: {
@@ -159,8 +159,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
159
159
  }
160
160
  },
161
161
  emits: ["update:submission"],
162
- setup(p, { emit: A }) {
163
- const N = p, v = A, y = h(), P = j(!1), { isLoading: b, startAsyncCall: I } = Z(), { fields: a, documents: i, restaurantId: R, profile: c, status: F, statusReason: B } = N.submission, q = j(""), m = j(
162
+ setup(m, { emit: A }) {
163
+ const N = m, v = A, y = ee(), P = D(!1), { isLoading: b, startAsyncCall: w } = _(), { fields: t, documents: i, restaurantId: R, profile: c, status: I, statusReason: B } = N.submission, q = D(""), p = D(
164
164
  N.submission.rates ? Object.fromEntries(
165
165
  Object.entries(N.submission.rates).map(([T, l]) => [T, `${l}`])
166
166
  ) : {
@@ -173,20 +173,20 @@ const de = ["src"], w = /* @__PURE__ */ Q({
173
173
  jcbPlatinum: "2.2"
174
174
  }
175
175
  ), E = W(
176
- () => Object.values(m.value).every((T) => parseFloat(T) > 0)
177
- ), x = () => I(async () => {
176
+ () => Object.values(p.value).every((T) => parseFloat(T) > 0)
177
+ ), U = () => w(async () => {
178
178
  try {
179
179
  const T = await M.reviewById(
180
180
  N.submission._id,
181
181
  {
182
182
  rates: {
183
- duitNow: parseFloat(m.value.duitNow),
184
- mydebitCard: parseFloat(m.value.mydebitCard),
185
- localDebit: parseFloat(m.value.localDebit),
186
- localCredit: parseFloat(m.value.localCredit),
187
- foreignCard: parseFloat(m.value.foreignCard),
188
- jcbStandard: parseFloat(m.value.jcbStandard),
189
- jcbPlatinum: parseFloat(m.value.jcbPlatinum)
183
+ duitNow: parseFloat(p.value.duitNow),
184
+ mydebitCard: parseFloat(p.value.mydebitCard),
185
+ localDebit: parseFloat(p.value.localDebit),
186
+ localCredit: parseFloat(p.value.localCredit),
187
+ foreignCard: parseFloat(p.value.foreignCard),
188
+ jcbStandard: parseFloat(p.value.jcbStandard),
189
+ jcbPlatinum: parseFloat(p.value.jcbPlatinum)
190
190
  },
191
191
  status: "approved"
192
192
  }
@@ -202,7 +202,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
202
202
  message: z(T)
203
203
  });
204
204
  }
205
- }), J = () => I(async () => {
205
+ }), J = () => w(async () => {
206
206
  try {
207
207
  const T = await M.reviewById(
208
208
  N.submission._id,
@@ -224,165 +224,165 @@ const de = ["src"], w = /* @__PURE__ */ Q({
224
224
  }
225
225
  });
226
226
  return (T, l) => {
227
- const f = C("FmTextField"), G = C("FmButton"), S = C("FmTextarea"), t = C("FmDialog"), k = C("FmPhoneNumber"), H = C("FmSelect"), X = C("FmForm");
228
- return V(), O(Y, null, [
227
+ const f = C("FmTextField"), K = C("FmButton"), S = C("FmTextarea"), s = C("FmDialog"), k = C("FmPhoneNumber"), H = C("FmSelect"), X = C("FmForm");
228
+ return g(), $(Q, null, [
229
229
  o("div", ye, [
230
230
  o("div", null, [
231
231
  l[33] || (l[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
232
- o("span", ge, U(e(R)), 1)
232
+ o("span", ge, x(e(R)), 1)
233
233
  ]),
234
234
  o("div", null, [
235
235
  l[34] || (l[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
236
- o("span", Ve, U(e(c).name) + " ( " + U(e(c).legalName) + " )", 1)
236
+ o("span", Ve, x(e(c).name) + " ( " + x(e(c).legalName) + " )", 1)
237
237
  ]),
238
238
  o("div", null, [
239
239
  l[35] || (l[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
240
- o("span", ve, U(e(c).email), 1)
240
+ o("span", ve, x(e(c).email), 1)
241
241
  ]),
242
242
  o("div", null, [
243
243
  l[36] || (l[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
244
- o("span", fe, U(e(c).phoneNo), 1)
244
+ o("span", fe, x(e(c).phoneNo), 1)
245
245
  ]),
246
246
  o("div", null, [
247
247
  l[37] || (l[37] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
248
248
  o("span", ke, [
249
- n(ae, { data: e(F) }, null, 8, ["data"])
249
+ n(te, { data: e(I) }, null, 8, ["data"])
250
250
  ])
251
251
  ]),
252
252
  o("div", null, [
253
253
  l[38] || (l[38] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
254
- o("span", Ce, U(e(B)), 1)
254
+ o("span", Ce, x(e(B)), 1)
255
255
  ])
256
256
  ]),
257
257
  l[50] || (l[50] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
258
258
  o("div", Ne, [
259
259
  n(f, {
260
- modelValue: m.value.duitNow,
261
- "onUpdate:modelValue": l[0] || (l[0] = (s) => m.value.duitNow = s),
260
+ modelValue: p.value.duitNow,
261
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => p.value.duitNow = a),
262
262
  label: "DuitNow QR",
263
263
  "label-mark": "required",
264
264
  type: "number",
265
265
  inputmode: "numeric",
266
266
  decimal: 2,
267
267
  rules: e(u)(
268
- e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
268
+ e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
269
269
  )
270
270
  }, {
271
- append: g(() => [...l[39] || (l[39] = [
271
+ append: V(() => [...l[39] || (l[39] = [
272
272
  L("%", -1)
273
273
  ])]),
274
274
  _: 1
275
275
  }, 8, ["modelValue", "rules"]),
276
276
  n(f, {
277
- modelValue: m.value.mydebitCard,
278
- "onUpdate:modelValue": l[1] || (l[1] = (s) => m.value.mydebitCard = s),
277
+ modelValue: p.value.mydebitCard,
278
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => p.value.mydebitCard = a),
279
279
  label: "myDebit Card",
280
280
  "label-mark": "required",
281
281
  type: "number",
282
282
  inputmode: "numeric",
283
283
  decimal: 2,
284
284
  rules: e(u)(
285
- e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
285
+ e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
286
286
  )
287
287
  }, {
288
- append: g(() => [...l[40] || (l[40] = [
288
+ append: V(() => [...l[40] || (l[40] = [
289
289
  L("%", -1)
290
290
  ])]),
291
291
  _: 1
292
292
  }, 8, ["modelValue", "rules"]),
293
293
  n(f, {
294
- modelValue: m.value.localDebit,
295
- "onUpdate:modelValue": l[2] || (l[2] = (s) => m.value.localDebit = s),
294
+ modelValue: p.value.localDebit,
295
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => p.value.localDebit = a),
296
296
  label: "Local Debit Card",
297
297
  "label-mark": "required",
298
298
  type: "number",
299
299
  inputmode: "numeric",
300
300
  decimal: 2,
301
301
  rules: e(u)(
302
- e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
302
+ e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
303
303
  )
304
304
  }, {
305
- append: g(() => [...l[41] || (l[41] = [
305
+ append: V(() => [...l[41] || (l[41] = [
306
306
  L("%", -1)
307
307
  ])]),
308
308
  _: 1
309
309
  }, 8, ["modelValue", "rules"]),
310
310
  n(f, {
311
- modelValue: m.value.localCredit,
312
- "onUpdate:modelValue": l[3] || (l[3] = (s) => m.value.localCredit = s),
311
+ modelValue: p.value.localCredit,
312
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => p.value.localCredit = a),
313
313
  label: "Local Credit Card",
314
314
  "label-mark": "required",
315
315
  type: "number",
316
316
  inputmode: "numeric",
317
317
  decimal: 2,
318
318
  rules: e(u)(
319
- e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
319
+ e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
320
320
  )
321
321
  }, {
322
- append: g(() => [...l[42] || (l[42] = [
322
+ append: V(() => [...l[42] || (l[42] = [
323
323
  L("%", -1)
324
324
  ])]),
325
325
  _: 1
326
326
  }, 8, ["modelValue", "rules"]),
327
327
  n(f, {
328
- modelValue: m.value.foreignCard,
329
- "onUpdate:modelValue": l[4] || (l[4] = (s) => m.value.foreignCard = s),
328
+ modelValue: p.value.foreignCard,
329
+ "onUpdate:modelValue": l[4] || (l[4] = (a) => p.value.foreignCard = a),
330
330
  label: "Foreign Card",
331
331
  "label-mark": "required",
332
332
  type: "number",
333
333
  inputmode: "numeric",
334
334
  decimal: 2,
335
335
  rules: e(u)(
336
- e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
336
+ e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
337
337
  )
338
338
  }, {
339
- append: g(() => [...l[43] || (l[43] = [
339
+ append: V(() => [...l[43] || (l[43] = [
340
340
  L("%", -1)
341
341
  ])]),
342
342
  _: 1
343
343
  }, 8, ["modelValue", "rules"]),
344
344
  n(f, {
345
- modelValue: m.value.jcbStandard,
346
- "onUpdate:modelValue": l[5] || (l[5] = (s) => m.value.jcbStandard = s),
345
+ modelValue: p.value.jcbStandard,
346
+ "onUpdate:modelValue": l[5] || (l[5] = (a) => p.value.jcbStandard = a),
347
347
  label: "JCB Standard",
348
348
  "label-mark": "required",
349
349
  type: "number",
350
350
  inputmode: "numeric",
351
351
  decimal: 2,
352
352
  rules: e(u)(
353
- e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
353
+ e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
354
354
  )
355
355
  }, {
356
- append: g(() => [...l[44] || (l[44] = [
356
+ append: V(() => [...l[44] || (l[44] = [
357
357
  L("%", -1)
358
358
  ])]),
359
359
  _: 1
360
360
  }, 8, ["modelValue", "rules"]),
361
361
  n(f, {
362
- modelValue: m.value.jcbPlatinum,
363
- "onUpdate:modelValue": l[6] || (l[6] = (s) => m.value.jcbPlatinum = s),
362
+ modelValue: p.value.jcbPlatinum,
363
+ "onUpdate:modelValue": l[6] || (l[6] = (a) => p.value.jcbPlatinum = a),
364
364
  label: "JCB Platinum",
365
365
  "label-mark": "required",
366
366
  type: "number",
367
367
  inputmode: "numeric",
368
368
  decimal: 2,
369
369
  rules: e(u)(
370
- e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
370
+ e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
371
371
  )
372
372
  }, {
373
- append: g(() => [...l[45] || (l[45] = [
373
+ append: V(() => [...l[45] || (l[45] = [
374
374
  L("%", -1)
375
375
  ])]),
376
376
  _: 1
377
377
  }, 8, ["modelValue", "rules"])
378
378
  ]),
379
379
  o("div", Se, [
380
- n(t, {
380
+ n(s, {
381
381
  modelValue: P.value,
382
- "onUpdate:modelValue": l[8] || (l[8] = (s) => P.value = s)
382
+ "onUpdate:modelValue": l[8] || (l[8] = (a) => P.value = a)
383
383
  }, {
384
- "dialog-button": g(() => [
385
- n(G, {
384
+ "dialog-button": V(() => [
385
+ n(K, {
386
386
  class: "mr-6",
387
387
  type: "button",
388
388
  variant: "destructive",
@@ -391,18 +391,18 @@ const de = ["src"], w = /* @__PURE__ */ Q({
391
391
  label: "Reject Submission"
392
392
  }, null, 8, ["loading"])
393
393
  ]),
394
- "dialog-header": g(() => [...l[46] || (l[46] = [
394
+ "dialog-header": V(() => [...l[46] || (l[46] = [
395
395
  o("div", null, "Rejecting Submission", -1)
396
396
  ])]),
397
- default: g(() => [
397
+ default: V(() => [
398
398
  n(S, {
399
399
  modelValue: q.value,
400
- "onUpdate:modelValue": l[7] || (l[7] = (s) => q.value = s),
400
+ "onUpdate:modelValue": l[7] || (l[7] = (a) => q.value = a),
401
401
  label: "Reason for Rejection",
402
402
  "label-mark": "optional",
403
403
  "helper-text": "Please provide a reason for rejection."
404
404
  }, null, 8, ["modelValue"]),
405
- n(G, {
405
+ n(K, {
406
406
  class: "mb-2 mt-6 w-full",
407
407
  label: "Submit",
408
408
  "prepend-icon": "save",
@@ -412,24 +412,24 @@ const de = ["src"], w = /* @__PURE__ */ Q({
412
412
  ]),
413
413
  _: 1
414
414
  }, 8, ["modelValue"]),
415
- n(G, {
415
+ n(K, {
416
416
  type: "button",
417
417
  variant: "primary",
418
418
  "prepend-icon": "approval",
419
419
  disabled: !E.value,
420
420
  label: "Approve Submission with Rates",
421
- onClick: x,
421
+ onClick: U,
422
422
  loading: e(b)
423
423
  }, null, 8, ["disabled", "loading"])
424
424
  ]),
425
425
  n(X, { disabled: !0 }, {
426
- default: g(() => [
426
+ default: V(() => [
427
427
  l[47] || (l[47] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
428
428
  o("div", Pe, [
429
429
  o("div", qe, [
430
430
  n(f, {
431
- modelValue: e(a).picName,
432
- "onUpdate:modelValue": l[9] || (l[9] = (s) => e(a).picName = s),
431
+ modelValue: e(t).picName,
432
+ "onUpdate:modelValue": l[9] || (l[9] = (a) => e(t).picName = a),
433
433
  label: "PIC Name",
434
434
  placeholder: "Enter your name",
435
435
  "label-mark": "required",
@@ -438,18 +438,18 @@ const de = ["src"], w = /* @__PURE__ */ Q({
438
438
  ]),
439
439
  o("div", Fe, [
440
440
  n(f, {
441
- modelValue: e(a).picRole,
442
- "onUpdate:modelValue": l[10] || (l[10] = (s) => e(a).picRole = s),
441
+ modelValue: e(t).picRole,
442
+ "onUpdate:modelValue": l[10] || (l[10] = (a) => e(t).picRole = a),
443
443
  label: "PIC Role",
444
444
  placeholder: "Enter your role",
445
445
  "label-mark": "required",
446
446
  rules: e(u)(e(d).string().min(1, "PIC Role is required"))
447
447
  }, null, 8, ["modelValue", "rules"])
448
448
  ]),
449
- o("div", we, [
449
+ o("div", Ie, [
450
450
  n(f, {
451
- modelValue: e(a).picEmail,
452
- "onUpdate:modelValue": l[11] || (l[11] = (s) => e(a).picEmail = s),
451
+ modelValue: e(t).picEmail,
452
+ "onUpdate:modelValue": l[11] || (l[11] = (a) => e(t).picEmail = a),
453
453
  label: "PIC Email",
454
454
  type: "email",
455
455
  placeholder: "Enter your email address",
@@ -457,30 +457,30 @@ const de = ["src"], w = /* @__PURE__ */ Q({
457
457
  rules: e(u)(e(d).string().min(1, "PIC Email is required"))
458
458
  }, null, 8, ["modelValue", "rules"])
459
459
  ]),
460
- o("div", Ie, [
460
+ o("div", we, [
461
461
  n(k, {
462
- "model-value": e(a).picContact,
463
- "onUpdate:modelValue": l[12] || (l[12] = (s) => e(a).picContact = s),
462
+ "model-value": e(t).picContact,
463
+ "onUpdate:modelValue": l[12] || (l[12] = (a) => e(t).picContact = a),
464
464
  "default-country": "MY",
465
465
  label: "PIC Contact",
466
466
  "label-mark": "required",
467
467
  rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
468
468
  }, null, 8, ["model-value", "rules"])
469
469
  ]),
470
- o("div", xe, [
470
+ o("div", Ue, [
471
471
  n(f, {
472
- modelValue: e(a).outletName,
473
- "onUpdate:modelValue": l[13] || (l[13] = (s) => e(a).outletName = s),
472
+ modelValue: e(t).outletName,
473
+ "onUpdate:modelValue": l[13] || (l[13] = (a) => e(t).outletName = a),
474
474
  label: "Outlet Name",
475
475
  placeholder: "Enter outlet name",
476
476
  "label-mark": "required",
477
477
  rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
478
478
  }, null, 8, ["modelValue", "rules"])
479
479
  ]),
480
- o("div", Ue, [
480
+ o("div", xe, [
481
481
  n(f, {
482
- modelValue: e(a).outletAddress,
483
- "onUpdate:modelValue": l[14] || (l[14] = (s) => e(a).outletAddress = s),
482
+ modelValue: e(t).outletAddress,
483
+ "onUpdate:modelValue": l[14] || (l[14] = (a) => e(t).outletAddress = a),
484
484
  label: "Outlet Address",
485
485
  placeholder: "Enter outlet address",
486
486
  "label-mark": "required",
@@ -488,24 +488,24 @@ const de = ["src"], w = /* @__PURE__ */ Q({
488
488
  }, null, 8, ["modelValue", "rules"])
489
489
  ]),
490
490
  n(f, {
491
- modelValue: e(a).outletPostCode,
492
- "onUpdate:modelValue": l[15] || (l[15] = (s) => e(a).outletPostCode = s),
491
+ modelValue: e(t).outletPostCode,
492
+ "onUpdate:modelValue": l[15] || (l[15] = (a) => e(t).outletPostCode = a),
493
493
  label: "Postal Code",
494
494
  placeholder: "Enter postal code",
495
495
  "label-mark": "required",
496
496
  rules: e(u)(e(d).string().min(1, "Postal Code is required"))
497
497
  }, null, 8, ["modelValue", "rules"]),
498
498
  n(f, {
499
- modelValue: e(a).outletState,
500
- "onUpdate:modelValue": l[16] || (l[16] = (s) => e(a).outletState = s),
499
+ modelValue: e(t).outletState,
500
+ "onUpdate:modelValue": l[16] || (l[16] = (a) => e(t).outletState = a),
501
501
  label: "State",
502
502
  placeholder: "Enter state",
503
503
  "label-mark": "required",
504
504
  rules: e(u)(e(d).string().min(1, "State is required"))
505
505
  }, null, 8, ["modelValue", "rules"]),
506
506
  n(f, {
507
- modelValue: e(a).outletCity,
508
- "onUpdate:modelValue": l[17] || (l[17] = (s) => e(a).outletCity = s),
507
+ modelValue: e(t).outletCity,
508
+ "onUpdate:modelValue": l[17] || (l[17] = (a) => e(t).outletCity = a),
509
509
  label: "City",
510
510
  placeholder: "Enter city",
511
511
  "label-mark": "required",
@@ -513,8 +513,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
513
513
  }, null, 8, ["modelValue", "rules"]),
514
514
  o("div", Re, [
515
515
  n(H, {
516
- modelValue: e(a).businessType,
517
- "onUpdate:modelValue": l[18] || (l[18] = (s) => e(a).businessType = s),
516
+ modelValue: e(t).businessType,
517
+ "onUpdate:modelValue": l[18] || (l[18] = (a) => e(t).businessType = a),
518
518
  label: "Type",
519
519
  placeholder: "Select business type",
520
520
  "label-mark": "required",
@@ -535,8 +535,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
535
535
  ]),
536
536
  o("div", Be, [
537
537
  n(f, {
538
- modelValue: e(a).businessRegNo,
539
- "onUpdate:modelValue": l[19] || (l[19] = (s) => e(a).businessRegNo = s),
538
+ modelValue: e(t).businessRegNo,
539
+ "onUpdate:modelValue": l[19] || (l[19] = (a) => e(t).businessRegNo = a),
540
540
  label: "Registration No",
541
541
  placeholder: "Enter registration number",
542
542
  "label-mark": "required",
@@ -545,8 +545,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
545
545
  ]),
546
546
  o("div", Te, [
547
547
  n(f, {
548
- modelValue: e(a).tinNo,
549
- "onUpdate:modelValue": l[20] || (l[20] = (s) => e(a).tinNo = s),
548
+ modelValue: e(t).tinNo,
549
+ "onUpdate:modelValue": l[20] || (l[20] = (a) => e(t).tinNo = a),
550
550
  label: "Tax Identification No (TIN)",
551
551
  placeholder: "Enter your TIN number",
552
552
  "label-mark": "required",
@@ -555,8 +555,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
555
555
  ]),
556
556
  o("div", je, [
557
557
  n(f, {
558
- modelValue: e(a).sstNo,
559
- "onUpdate:modelValue": l[21] || (l[21] = (s) => e(a).sstNo = s),
558
+ modelValue: e(t).sstNo,
559
+ "onUpdate:modelValue": l[21] || (l[21] = (a) => e(t).sstNo = a),
560
560
  label: "SST Registration No (SST)",
561
561
  placeholder: "Enter your SST number",
562
562
  "label-mark": "optional"
@@ -566,8 +566,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
566
566
  l[48] || (l[48] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
567
567
  o("div", De, [
568
568
  n(H, {
569
- modelValue: e(a).bankName,
570
- "onUpdate:modelValue": l[22] || (l[22] = (s) => e(a).bankName = s),
569
+ modelValue: e(t).bankName,
570
+ "onUpdate:modelValue": l[22] || (l[22] = (a) => e(t).bankName = a),
571
571
  label: "Bank",
572
572
  placeholder: "Select bank type",
573
573
  "label-mark": "required",
@@ -575,80 +575,88 @@ const de = ["src"], w = /* @__PURE__ */ Q({
575
575
  items: e(ie).bankNameOptions()
576
576
  }, null, 8, ["modelValue", "rules", "items"]),
577
577
  n(f, {
578
- modelValue: e(a).bankHolderName,
579
- "onUpdate:modelValue": l[23] || (l[23] = (s) => e(a).bankHolderName = s),
578
+ modelValue: e(t).bankHolderName,
579
+ "onUpdate:modelValue": l[23] || (l[23] = (a) => e(t).bankHolderName = a),
580
580
  label: "Beneficiary Name",
581
581
  placeholder: "Enter Beneficiary Name",
582
582
  "label-mark": "required",
583
583
  rules: e(u)(e(d).string().min(1, "Beneficiary Name is required"))
584
584
  }, null, 8, ["modelValue", "rules"]),
585
585
  n(f, {
586
- modelValue: e(a).bankAccountNo,
587
- "onUpdate:modelValue": l[24] || (l[24] = (s) => e(a).bankAccountNo = s),
586
+ modelValue: e(t).bankAccountNo,
587
+ "onUpdate:modelValue": l[24] || (l[24] = (a) => e(t).bankAccountNo = a),
588
588
  label: "Account Number",
589
589
  placeholder: "Enter Account Number",
590
590
  "label-mark": "required",
591
591
  rules: e(u)(e(d).string().min(1, "Account Number is required"))
592
592
  }, null, 8, ["modelValue", "rules"]),
593
- n(w, {
593
+ n(F, {
594
594
  label: "Authorized Person ID",
595
595
  modelValue: e(i).authorizedPersonID,
596
- "onUpdate:modelValue": l[25] || (l[25] = (s) => e(i).authorizedPersonID = s),
596
+ "onUpdate:modelValue": l[25] || (l[25] = (a) => e(i).authorizedPersonID = a),
597
597
  type: "image",
598
- "restaurant-id": p.submission.restaurantId
598
+ "restaurant-id": m.submission.restaurantId
599
599
  }, null, 8, ["modelValue", "restaurant-id"]),
600
- n(w, {
600
+ n(F, {
601
601
  label: "Outlet Photo",
602
602
  modelValue: e(i).outletPhoto,
603
- "onUpdate:modelValue": l[26] || (l[26] = (s) => e(i).outletPhoto = s),
603
+ "onUpdate:modelValue": l[26] || (l[26] = (a) => e(i).outletPhoto = a),
604
604
  type: "image",
605
- "restaurant-id": p.submission.restaurantId
605
+ "restaurant-id": m.submission.restaurantId
606
606
  }, null, 8, ["modelValue", "restaurant-id"]),
607
- n(w, {
607
+ (g(!0), $(Q, null, h([1, 2, 3, 4, 5].filter((a) => !!e(i)[`onsitePhoto${a}`]), (a) => (g(), j(F, {
608
+ key: a,
609
+ label: `Onsite Photo ${a}`,
610
+ modelValue: e(i)[`onsitePhoto${a}`],
611
+ "onUpdate:modelValue": (Z) => e(i)[`onsitePhoto${a}`] = Z,
612
+ type: "image",
613
+ "restaurant-id": m.submission.restaurantId
614
+ }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
615
+ n(F, {
608
616
  label: "Interior Photo",
609
617
  modelValue: e(i).interiorPhoto,
610
- "onUpdate:modelValue": l[27] || (l[27] = (s) => e(i).interiorPhoto = s),
618
+ "onUpdate:modelValue": l[27] || (l[27] = (a) => e(i).interiorPhoto = a),
611
619
  type: "image",
612
- "restaurant-id": p.submission.restaurantId
620
+ "restaurant-id": m.submission.restaurantId
613
621
  }, null, 8, ["modelValue", "restaurant-id"]),
614
- n(w, {
622
+ n(F, {
615
623
  label: "Latest Bank Statement",
616
624
  modelValue: e(i).bankStatement,
617
- "onUpdate:modelValue": l[28] || (l[28] = (s) => e(i).bankStatement = s),
625
+ "onUpdate:modelValue": l[28] || (l[28] = (a) => e(i).bankStatement = a),
618
626
  type: "pdf",
619
- "restaurant-id": p.submission.restaurantId
627
+ "restaurant-id": m.submission.restaurantId
620
628
  }, null, 8, ["modelValue", "restaurant-id"]),
621
- e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (V(), D(w, {
629
+ e(t).businessType === "private_limited" || e(t).businessType === "public_limited" ? (g(), j(F, {
622
630
  key: 0,
623
631
  label: "Superform",
624
632
  type: "pdf",
625
633
  modelValue: e(i).certificate,
626
- "onUpdate:modelValue": l[29] || (l[29] = (s) => e(i).certificate = s),
627
- "restaurant-id": p.submission.restaurantId
628
- }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
629
- e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (V(), D(w, {
634
+ "onUpdate:modelValue": l[29] || (l[29] = (a) => e(i).certificate = a),
635
+ "restaurant-id": m.submission.restaurantId
636
+ }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
637
+ e(t).businessType === "sole_proprietorship" || e(t).businessType === "partnership" ? (g(), j(F, {
630
638
  key: 1,
631
639
  label: "SSM Certificate & Info",
632
640
  type: "pdf",
633
641
  modelValue: e(i).certificate,
634
- "onUpdate:modelValue": l[30] || (l[30] = (s) => e(i).certificate = s),
635
- "restaurant-id": p.submission.restaurantId
636
- }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
642
+ "onUpdate:modelValue": l[30] || (l[30] = (a) => e(i).certificate = a),
643
+ "restaurant-id": m.submission.restaurantId
644
+ }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0)
637
645
  ]),
638
646
  l[49] || (l[49] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
639
647
  o("div", Ee, [
640
648
  n(ce, {
641
649
  modelValue: e(i).signature,
642
- "onUpdate:modelValue": l[31] || (l[31] = (s) => e(i).signature = s),
643
- "restaurant-id": p.submission.restaurantId,
650
+ "onUpdate:modelValue": l[31] || (l[31] = (a) => e(i).signature = a),
651
+ "restaurant-id": m.submission.restaurantId,
644
652
  label: "Signature"
645
653
  }, null, 8, ["modelValue", "restaurant-id"]),
646
- n(w, {
654
+ n(F, {
647
655
  label: "Company Stamp",
648
656
  type: "image",
649
657
  modelValue: e(i).companyStamp,
650
- "onUpdate:modelValue": l[32] || (l[32] = (s) => e(i).companyStamp = s),
651
- "restaurant-id": p.submission.restaurantId
658
+ "onUpdate:modelValue": l[32] || (l[32] = (a) => e(i).companyStamp = a),
659
+ "restaurant-id": m.submission.restaurantId
652
660
  }, null, 8, ["modelValue", "restaurant-id"])
653
661
  ])
654
662
  ]),
@@ -657,7 +665,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
657
665
  ], 64);
658
666
  };
659
667
  }
660
- }), $e = { class: "space-y-2" }, Oe = { class: "text-gray-900" }, Le = { class: "text-gray-900" }, Me = { class: "text-gray-900" }, He = { class: "text-gray-900" }, ze = { class: "text-gray-900" }, We = { class: "text-gray-900" }, Je = { class: "mt-6 grid grid-cols-4 gap-24" }, Qe = { class: "w-full flex justify-end mt-6" }, Ge = { class: "mt-6 grid grid-cols-4 gap-24" }, Ke = { class: "col-span-2" }, Ye = { class: "col-span-2" }, Xe = { class: "col-span-2" }, Ze = { class: "col-span-2" }, he = { class: "mt-6 grid grid-cols-4 gap-24" }, _e = { class: "mt-6 grid grid-cols-4 gap-24" }, el = { class: "mt-6 grid grid-cols-4 gap-24" }, ll = { class: "col-span-2" }, al = { class: "col-span-2" }, tl = { class: "col-span-2" }, sl = { class: "col-span-2" }, ol = { class: "col-span-2" }, nl = { class: "col-span-2" }, rl = /* @__PURE__ */ Q({
668
+ }), Ae = { class: "space-y-2" }, Oe = { class: "text-gray-900" }, Le = { class: "text-gray-900" }, Me = { class: "text-gray-900" }, He = { class: "text-gray-900" }, ze = { class: "text-gray-900" }, We = { class: "text-gray-900" }, Je = { class: "mt-6 grid grid-cols-4 gap-24" }, Qe = { class: "w-full flex justify-end mt-6" }, Ge = { class: "mt-6 grid grid-cols-4 gap-24" }, Ke = { class: "col-span-2" }, Ye = { class: "col-span-2" }, Xe = { class: "col-span-2" }, Ze = { class: "col-span-2" }, he = { class: "mt-6 grid grid-cols-4 gap-24" }, _e = { class: "mt-6 grid grid-cols-4 gap-24" }, el = { class: "mt-6 grid grid-cols-4 gap-24" }, ll = { class: "col-span-2" }, al = { class: "col-span-2" }, tl = { class: "col-span-2" }, sl = { class: "col-span-2" }, ol = { class: "col-span-2" }, nl = { class: "col-span-2" }, rl = /* @__PURE__ */ G({
661
669
  __name: "NTTSubmission",
662
670
  props: {
663
671
  submission: {
@@ -666,8 +674,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
666
674
  }
667
675
  },
668
676
  emits: ["update:submission"],
669
- setup(p, { emit: A }) {
670
- const N = p, v = A, y = h(), P = j(!1), { isLoading: b, startAsyncCall: I } = Z(), { fields: a, documents: i, restaurantId: R, profile: c, status: F, statusReason: B } = N.submission, q = j(""), m = [
677
+ setup(m, { emit: A }) {
678
+ const N = m, v = A, y = ee(), P = D(!1), { isLoading: b, startAsyncCall: w } = _(), { fields: t, documents: i, restaurantId: R, profile: c, status: I, statusReason: B } = N.submission, q = D(""), p = [
671
679
  { key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
672
680
  {
673
681
  key: "localCardStandard",
@@ -700,19 +708,19 @@ const de = ["src"], w = /* @__PURE__ */ Q({
700
708
  { key: "linePay", label: "LinePay", defaultValue: "2.1" },
701
709
  { key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
702
710
  ], E = Object.fromEntries(
703
- m.map((S) => [S.key, S.defaultValue])
704
- ), x = j(
711
+ p.map((S) => [S.key, S.defaultValue])
712
+ ), U = D(
705
713
  N.submission.rates ? Object.fromEntries(
706
- Object.entries(N.submission.rates).map(([S, t]) => [S, `${t}`])
714
+ Object.entries(N.submission.rates).map(([S, s]) => [S, `${s}`])
707
715
  ) : { ...E }
708
716
  ), J = W(
709
- () => Object.values(x.value).every((S) => parseFloat(S) > 0)
710
- ), T = W(() => a.businessType === "juristic" ? "Juristic" : a.businessType === "individual" ? "Individual" : a.businessType || "-"), l = () => I(async () => {
717
+ () => Object.values(U.value).every((S) => parseFloat(S) > 0)
718
+ ), T = W(() => t.businessType === "juristic" ? "Juristic" : t.businessType === "individual" ? "Individual" : t.businessType || "-"), l = () => w(async () => {
711
719
  try {
712
720
  const S = await M.reviewById(
713
721
  N.submission._id,
714
722
  {
715
- status: ee.FdoOnboardStatus.enum.ready
723
+ status: le.FdoOnboardStatus.enum.ready
716
724
  }
717
725
  );
718
726
  v("update:submission", S), y.open({
@@ -726,15 +734,15 @@ const de = ["src"], w = /* @__PURE__ */ Q({
726
734
  message: z(S)
727
735
  });
728
736
  }
729
- }), f = () => I(async () => {
737
+ }), f = () => w(async () => {
730
738
  try {
731
739
  const S = await M.reviewById(
732
740
  N.submission._id,
733
741
  {
734
742
  rates: Object.fromEntries(
735
- m.map((t) => [
736
- t.key,
737
- parseFloat(x.value[t.key])
743
+ p.map((s) => [
744
+ s.key,
745
+ parseFloat(U.value[s.key])
738
746
  ])
739
747
  ),
740
748
  status: "approved"
@@ -751,7 +759,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
751
759
  message: z(S)
752
760
  });
753
761
  }
754
- }), G = () => I(async () => {
762
+ }), K = () => w(async () => {
755
763
  try {
756
764
  const S = await M.reviewById(
757
765
  N.submission._id,
@@ -772,64 +780,64 @@ const de = ["src"], w = /* @__PURE__ */ Q({
772
780
  });
773
781
  }
774
782
  });
775
- return (S, t) => {
776
- const k = C("FmTextField"), H = C("FmButton"), X = C("FmTextarea"), s = C("FmDialog"), te = C("FmPhoneNumber"), se = C("FmForm");
777
- return V(), O(Y, null, [
778
- o("div", $e, [
783
+ return (S, s) => {
784
+ const k = C("FmTextField"), H = C("FmButton"), X = C("FmTextarea"), a = C("FmDialog"), Z = C("FmPhoneNumber"), se = C("FmForm");
785
+ return g(), $(Q, null, [
786
+ o("div", Ae, [
779
787
  o("div", null, [
780
- t[31] || (t[31] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
781
- o("span", Oe, U(e(R)), 1)
788
+ s[31] || (s[31] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
789
+ o("span", Oe, x(e(R)), 1)
782
790
  ]),
783
791
  o("div", null, [
784
- t[32] || (t[32] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
785
- o("span", Le, U(e(c).name) + " ( " + U(e(c).legalName) + " )", 1)
792
+ s[32] || (s[32] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
793
+ o("span", Le, x(e(c).name) + " ( " + x(e(c).legalName) + " )", 1)
786
794
  ]),
787
795
  o("div", null, [
788
- t[33] || (t[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
789
- o("span", Me, U(e(c).email), 1)
796
+ s[33] || (s[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
797
+ o("span", Me, x(e(c).email), 1)
790
798
  ]),
791
799
  o("div", null, [
792
- t[34] || (t[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
793
- o("span", He, U(e(c).phoneNo), 1)
800
+ s[34] || (s[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
801
+ o("span", He, x(e(c).phoneNo), 1)
794
802
  ]),
795
803
  o("div", null, [
796
- t[35] || (t[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
804
+ s[35] || (s[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
797
805
  o("span", ze, [
798
- n(ae, { data: e(F) }, null, 8, ["data"])
806
+ n(te, { data: e(I) }, null, 8, ["data"])
799
807
  ])
800
808
  ]),
801
809
  o("div", null, [
802
- t[36] || (t[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
803
- o("span", We, U(e(B)), 1)
810
+ s[36] || (s[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
811
+ o("span", We, x(e(B)), 1)
804
812
  ])
805
813
  ]),
806
- t[43] || (t[43] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
814
+ s[43] || (s[43] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
807
815
  o("div", Je, [
808
- (V(), O(Y, null, _(m, (r) => n(k, {
816
+ (g(), $(Q, null, h(p, (r) => n(k, {
809
817
  key: r.key,
810
- modelValue: x.value[r.key],
811
- "onUpdate:modelValue": (K) => x.value[r.key] = K,
818
+ modelValue: U.value[r.key],
819
+ "onUpdate:modelValue": (Y) => U.value[r.key] = Y,
812
820
  label: r.label,
813
821
  "label-mark": "required",
814
822
  type: "number",
815
823
  inputmode: "numeric",
816
824
  decimal: 2,
817
825
  rules: e(u)(
818
- e(d).string().min(1, "Rate is required").transform((K) => parseFloat(K)).refine((K) => !isNaN(K), { message: "Rate must be a number" })
826
+ e(d).string().min(1, "Rate is required").transform((Y) => parseFloat(Y)).refine((Y) => !isNaN(Y), { message: "Rate must be a number" })
819
827
  )
820
828
  }, {
821
- append: g(() => [...t[37] || (t[37] = [
829
+ append: V(() => [...s[37] || (s[37] = [
822
830
  L("%", -1)
823
831
  ])]),
824
832
  _: 1
825
833
  }, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
826
834
  ]),
827
835
  o("div", Qe, [
828
- n(s, {
836
+ n(a, {
829
837
  modelValue: P.value,
830
- "onUpdate:modelValue": t[1] || (t[1] = (r) => P.value = r)
838
+ "onUpdate:modelValue": s[1] || (s[1] = (r) => P.value = r)
831
839
  }, {
832
- "dialog-button": g(() => [
840
+ "dialog-button": V(() => [
833
841
  n(H, {
834
842
  class: "mr-6",
835
843
  type: "button",
@@ -839,13 +847,13 @@ const de = ["src"], w = /* @__PURE__ */ Q({
839
847
  label: "Reject Submission"
840
848
  }, null, 8, ["loading"])
841
849
  ]),
842
- "dialog-header": g(() => [...t[38] || (t[38] = [
850
+ "dialog-header": V(() => [...s[38] || (s[38] = [
843
851
  o("div", null, "Rejecting Submission", -1)
844
852
  ])]),
845
- default: g(() => [
853
+ default: V(() => [
846
854
  n(X, {
847
855
  modelValue: q.value,
848
- "onUpdate:modelValue": t[0] || (t[0] = (r) => q.value = r),
856
+ "onUpdate:modelValue": s[0] || (s[0] = (r) => q.value = r),
849
857
  label: "Reason for Rejection",
850
858
  "label-mark": "optional",
851
859
  "helper-text": "Please provide a reason for rejection."
@@ -854,7 +862,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
854
862
  class: "mb-2 mt-6 w-full",
855
863
  label: "Submit",
856
864
  "prepend-icon": "save",
857
- onClick: G,
865
+ onClick: K,
858
866
  loading: e(b)
859
867
  }, null, 8, ["loading"])
860
868
  ]),
@@ -869,7 +877,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
869
877
  onClick: f,
870
878
  loading: e(b)
871
879
  }, null, 8, ["disabled", "loading"]),
872
- e(F) === "approved" ? (V(), D(H, {
880
+ e(I) === "approved" ? (g(), j(H, {
873
881
  key: 0,
874
882
  type: "button",
875
883
  variant: "secondary",
@@ -878,16 +886,16 @@ const de = ["src"], w = /* @__PURE__ */ Q({
878
886
  class: "ml-6",
879
887
  onClick: l,
880
888
  loading: e(b)
881
- }, null, 8, ["loading"])) : $("", !0)
889
+ }, null, 8, ["loading"])) : O("", !0)
882
890
  ]),
883
891
  n(se, { disabled: !0 }, {
884
- default: g(() => [
885
- t[39] || (t[39] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
892
+ default: V(() => [
893
+ s[39] || (s[39] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
886
894
  o("div", Ge, [
887
895
  o("div", Ke, [
888
896
  n(k, {
889
- modelValue: e(a).companyName,
890
- "onUpdate:modelValue": t[2] || (t[2] = (r) => e(a).companyName = r),
897
+ modelValue: e(t).companyName,
898
+ "onUpdate:modelValue": s[2] || (s[2] = (r) => e(t).companyName = r),
891
899
  label: "Company Name",
892
900
  "label-mark": "required",
893
901
  rules: e(u)(e(d).string().min(1, "Company Name is required"))
@@ -895,8 +903,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
895
903
  ]),
896
904
  o("div", Ye, [
897
905
  n(k, {
898
- modelValue: e(a).outletName,
899
- "onUpdate:modelValue": t[3] || (t[3] = (r) => e(a).outletName = r),
906
+ modelValue: e(t).outletName,
907
+ "onUpdate:modelValue": s[3] || (s[3] = (r) => e(t).outletName = r),
900
908
  label: "Outlet Name (Thai)",
901
909
  "label-mark": "required",
902
910
  rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
@@ -904,8 +912,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
904
912
  ]),
905
913
  o("div", Xe, [
906
914
  n(k, {
907
- modelValue: e(a).outletNameEnglish,
908
- "onUpdate:modelValue": t[4] || (t[4] = (r) => e(a).outletNameEnglish = r),
915
+ modelValue: e(t).outletNameEnglish,
916
+ "onUpdate:modelValue": s[4] || (s[4] = (r) => e(t).outletNameEnglish = r),
909
917
  label: "Outlet Name (English)",
910
918
  "label-mark": "required",
911
919
  rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
@@ -913,30 +921,30 @@ const de = ["src"], w = /* @__PURE__ */ Q({
913
921
  ]),
914
922
  o("div", Ze, [
915
923
  n(k, {
916
- modelValue: e(a).outletAddress,
917
- "onUpdate:modelValue": t[5] || (t[5] = (r) => e(a).outletAddress = r),
924
+ modelValue: e(t).outletAddress,
925
+ "onUpdate:modelValue": s[5] || (s[5] = (r) => e(t).outletAddress = r),
918
926
  label: "Outlet Address",
919
927
  "label-mark": "required",
920
928
  rules: e(u)(e(d).string().min(1, "Outlet Address is required"))
921
929
  }, null, 8, ["modelValue", "rules"])
922
930
  ]),
923
931
  n(k, {
924
- modelValue: e(a).outletPostCode,
925
- "onUpdate:modelValue": t[6] || (t[6] = (r) => e(a).outletPostCode = r),
932
+ modelValue: e(t).outletPostCode,
933
+ "onUpdate:modelValue": s[6] || (s[6] = (r) => e(t).outletPostCode = r),
926
934
  label: "Post Code",
927
935
  "label-mark": "required",
928
936
  rules: e(u)(e(d).string().min(1, "Post Code is required"))
929
937
  }, null, 8, ["modelValue", "rules"]),
930
938
  n(k, {
931
- modelValue: e(a).outletState,
932
- "onUpdate:modelValue": t[7] || (t[7] = (r) => e(a).outletState = r),
939
+ modelValue: e(t).outletState,
940
+ "onUpdate:modelValue": s[7] || (s[7] = (r) => e(t).outletState = r),
933
941
  label: "State",
934
942
  "label-mark": "required",
935
943
  rules: e(u)(e(d).string().min(1, "State is required"))
936
944
  }, null, 8, ["modelValue", "rules"]),
937
945
  n(k, {
938
- modelValue: e(a).outletCity,
939
- "onUpdate:modelValue": t[8] || (t[8] = (r) => e(a).outletCity = r),
946
+ modelValue: e(t).outletCity,
947
+ "onUpdate:modelValue": s[8] || (s[8] = (r) => e(t).outletCity = r),
940
948
  label: "City",
941
949
  "label-mark": "required",
942
950
  rules: e(u)(e(d).string().min(1, "City is required"))
@@ -947,111 +955,111 @@ const de = ["src"], w = /* @__PURE__ */ Q({
947
955
  "label-mark": "required"
948
956
  }, null, 8, ["model-value"]),
949
957
  n(k, {
950
- modelValue: e(a).numberOfDevices,
951
- "onUpdate:modelValue": t[9] || (t[9] = (r) => e(a).numberOfDevices = r),
958
+ modelValue: e(t).numberOfDevices,
959
+ "onUpdate:modelValue": s[9] || (s[9] = (r) => e(t).numberOfDevices = r),
952
960
  label: "Number of Devices",
953
961
  "label-mark": "required"
954
962
  }, null, 8, ["modelValue"])
955
963
  ]),
956
- t[40] || (t[40] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
964
+ s[40] || (s[40] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
957
965
  o("div", he, [
958
966
  n(k, {
959
- modelValue: e(a).bankName,
960
- "onUpdate:modelValue": t[10] || (t[10] = (r) => e(a).bankName = r),
967
+ modelValue: e(t).bankName,
968
+ "onUpdate:modelValue": s[10] || (s[10] = (r) => e(t).bankName = r),
961
969
  label: "Bank Name",
962
970
  "label-mark": "required",
963
971
  rules: e(u)(e(d).string().min(1, "Bank Name is required"))
964
972
  }, null, 8, ["modelValue", "rules"]),
965
973
  n(k, {
966
- modelValue: e(a).bankHolderName,
967
- "onUpdate:modelValue": t[11] || (t[11] = (r) => e(a).bankHolderName = r),
974
+ modelValue: e(t).bankHolderName,
975
+ "onUpdate:modelValue": s[11] || (s[11] = (r) => e(t).bankHolderName = r),
968
976
  label: "Bank Holder Name",
969
977
  "label-mark": "required",
970
978
  rules: e(u)(e(d).string().min(1, "Bank Holder Name is required"))
971
979
  }, null, 8, ["modelValue", "rules"]),
972
980
  n(k, {
973
- modelValue: e(a).bankAccountNo,
974
- "onUpdate:modelValue": t[12] || (t[12] = (r) => e(a).bankAccountNo = r),
981
+ modelValue: e(t).bankAccountNo,
982
+ "onUpdate:modelValue": s[12] || (s[12] = (r) => e(t).bankAccountNo = r),
975
983
  label: "Bank Account No",
976
984
  "label-mark": "required",
977
985
  rules: e(u)(e(d).string().min(1, "Bank Account No is required"))
978
986
  }, null, 8, ["modelValue", "rules"]),
979
987
  n(k, {
980
- modelValue: e(a).bankBranch,
981
- "onUpdate:modelValue": t[13] || (t[13] = (r) => e(a).bankBranch = r),
988
+ modelValue: e(t).bankBranch,
989
+ "onUpdate:modelValue": s[13] || (s[13] = (r) => e(t).bankBranch = r),
982
990
  label: "Bank Branch",
983
991
  "label-mark": "required",
984
992
  rules: e(u)(e(d).string().min(1, "Bank Branch is required"))
985
993
  }, null, 8, ["modelValue", "rules"]),
986
994
  n(k, {
987
- modelValue: e(a).bankBranchCode,
988
- "onUpdate:modelValue": t[14] || (t[14] = (r) => e(a).bankBranchCode = r),
995
+ modelValue: e(t).bankBranchCode,
996
+ "onUpdate:modelValue": s[14] || (s[14] = (r) => e(t).bankBranchCode = r),
989
997
  label: "Bank Branch Code",
990
998
  "label-mark": "required",
991
999
  rules: e(u)(e(d).string().min(1, "Bank Branch Code is required"))
992
1000
  }, null, 8, ["modelValue", "rules"])
993
1001
  ]),
994
- t[41] || (t[41] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1002
+ s[41] || (s[41] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
995
1003
  o("div", _e, [
996
- n(w, {
1004
+ n(F, {
997
1005
  label: "Authorized Person ID",
998
1006
  modelValue: e(i).authorizedPersonID,
999
- "onUpdate:modelValue": t[15] || (t[15] = (r) => e(i).authorizedPersonID = r),
1007
+ "onUpdate:modelValue": s[15] || (s[15] = (r) => e(i).authorizedPersonID = r),
1000
1008
  type: "image",
1001
- "restaurant-id": p.submission.restaurantId
1009
+ "restaurant-id": m.submission.restaurantId
1002
1010
  }, null, 8, ["modelValue", "restaurant-id"]),
1003
- n(w, {
1011
+ n(F, {
1004
1012
  label: "Outlet Photo",
1005
1013
  modelValue: e(i).outletPhoto,
1006
- "onUpdate:modelValue": t[16] || (t[16] = (r) => e(i).outletPhoto = r),
1014
+ "onUpdate:modelValue": s[16] || (s[16] = (r) => e(i).outletPhoto = r),
1007
1015
  type: "image",
1008
- "restaurant-id": p.submission.restaurantId
1016
+ "restaurant-id": m.submission.restaurantId
1009
1017
  }, null, 8, ["modelValue", "restaurant-id"]),
1010
- n(w, {
1018
+ n(F, {
1011
1019
  label: "Interior Photo",
1012
1020
  modelValue: e(i).interiorPhoto,
1013
- "onUpdate:modelValue": t[17] || (t[17] = (r) => e(i).interiorPhoto = r),
1021
+ "onUpdate:modelValue": s[17] || (s[17] = (r) => e(i).interiorPhoto = r),
1014
1022
  type: "image",
1015
- "restaurant-id": p.submission.restaurantId
1023
+ "restaurant-id": m.submission.restaurantId
1016
1024
  }, null, 8, ["modelValue", "restaurant-id"]),
1017
- n(w, {
1025
+ n(F, {
1018
1026
  label: "Bank Statement",
1019
1027
  modelValue: e(i).bankStatement,
1020
- "onUpdate:modelValue": t[18] || (t[18] = (r) => e(i).bankStatement = r),
1028
+ "onUpdate:modelValue": s[18] || (s[18] = (r) => e(i).bankStatement = r),
1021
1029
  type: "pdf",
1022
- "restaurant-id": p.submission.restaurantId
1030
+ "restaurant-id": m.submission.restaurantId
1023
1031
  }, null, 8, ["modelValue", "restaurant-id"]),
1024
- e(a).businessType === "juristic" ? (V(), D(w, {
1032
+ e(t).businessType === "juristic" ? (g(), j(F, {
1025
1033
  key: 0,
1026
1034
  label: "Company Certificate",
1027
1035
  type: "pdf",
1028
1036
  modelValue: e(i).companyCertificate,
1029
- "onUpdate:modelValue": t[19] || (t[19] = (r) => e(i).companyCertificate = r),
1030
- "restaurant-id": p.submission.restaurantId
1031
- }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
1032
- e(a).businessType === "juristic" ? (V(), D(w, {
1037
+ "onUpdate:modelValue": s[19] || (s[19] = (r) => e(i).companyCertificate = r),
1038
+ "restaurant-id": m.submission.restaurantId
1039
+ }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
1040
+ e(t).businessType === "juristic" ? (g(), j(F, {
1033
1041
  key: 1,
1034
1042
  label: "VAT Certificate",
1035
1043
  type: "pdf",
1036
1044
  modelValue: e(i).vatCertificate,
1037
- "onUpdate:modelValue": t[20] || (t[20] = (r) => e(i).vatCertificate = r),
1038
- "restaurant-id": p.submission.restaurantId
1039
- }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
1040
- e(a).businessType === "individual" ? (V(), D(w, {
1045
+ "onUpdate:modelValue": s[20] || (s[20] = (r) => e(i).vatCertificate = r),
1046
+ "restaurant-id": m.submission.restaurantId
1047
+ }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
1048
+ e(t).businessType === "individual" ? (g(), j(F, {
1041
1049
  key: 2,
1042
1050
  label: "Commercial Certificate",
1043
1051
  type: "pdf",
1044
1052
  modelValue: e(i).commercialCertificate,
1045
- "onUpdate:modelValue": t[21] || (t[21] = (r) => e(i).commercialCertificate = r),
1046
- "restaurant-id": p.submission.restaurantId
1047
- }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
1053
+ "onUpdate:modelValue": s[21] || (s[21] = (r) => e(i).commercialCertificate = r),
1054
+ "restaurant-id": m.submission.restaurantId
1055
+ }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0)
1048
1056
  ]),
1049
- t[42] || (t[42] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1057
+ s[42] || (s[42] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1050
1058
  o("div", el, [
1051
1059
  o("div", ll, [
1052
1060
  n(k, {
1053
- modelValue: e(a).picName,
1054
- "onUpdate:modelValue": t[22] || (t[22] = (r) => e(a).picName = r),
1061
+ modelValue: e(t).picName,
1062
+ "onUpdate:modelValue": s[22] || (s[22] = (r) => e(t).picName = r),
1055
1063
  label: "PIC Name",
1056
1064
  "label-mark": "required",
1057
1065
  rules: e(u)(e(d).string().min(1, "PIC Name is required"))
@@ -1059,8 +1067,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1059
1067
  ]),
1060
1068
  o("div", al, [
1061
1069
  n(k, {
1062
- modelValue: e(a).picRole,
1063
- "onUpdate:modelValue": t[23] || (t[23] = (r) => e(a).picRole = r),
1070
+ modelValue: e(t).picRole,
1071
+ "onUpdate:modelValue": s[23] || (s[23] = (r) => e(t).picRole = r),
1064
1072
  label: "PIC Role",
1065
1073
  "label-mark": "required",
1066
1074
  rules: e(u)(e(d).string().min(1, "PIC Role is required"))
@@ -1068,17 +1076,17 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1068
1076
  ]),
1069
1077
  o("div", tl, [
1070
1078
  n(k, {
1071
- modelValue: e(a).picEmail,
1072
- "onUpdate:modelValue": t[24] || (t[24] = (r) => e(a).picEmail = r),
1079
+ modelValue: e(t).picEmail,
1080
+ "onUpdate:modelValue": s[24] || (s[24] = (r) => e(t).picEmail = r),
1073
1081
  label: "PIC Email",
1074
1082
  "label-mark": "required",
1075
1083
  rules: e(u)(e(d).string().min(1, "PIC Email is required"))
1076
1084
  }, null, 8, ["modelValue", "rules"])
1077
1085
  ]),
1078
1086
  o("div", sl, [
1079
- n(te, {
1080
- "model-value": e(a).picContact,
1081
- "onUpdate:modelValue": t[25] || (t[25] = (r) => e(a).picContact = r),
1087
+ n(Z, {
1088
+ "model-value": e(t).picContact,
1089
+ "onUpdate:modelValue": s[25] || (s[25] = (r) => e(t).picContact = r),
1082
1090
  "default-country": "TH",
1083
1091
  label: "PIC Contact",
1084
1092
  "label-mark": "required",
@@ -1087,8 +1095,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1087
1095
  ]),
1088
1096
  o("div", ol, [
1089
1097
  n(k, {
1090
- modelValue: e(a).witnessName,
1091
- "onUpdate:modelValue": t[26] || (t[26] = (r) => e(a).witnessName = r),
1098
+ modelValue: e(t).witnessName,
1099
+ "onUpdate:modelValue": s[26] || (s[26] = (r) => e(t).witnessName = r),
1092
1100
  label: "Witness Name",
1093
1101
  "label-mark": "required",
1094
1102
  rules: e(u)(e(d).string().min(1, "Witness Name is required"))
@@ -1096,33 +1104,33 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1096
1104
  ]),
1097
1105
  o("div", nl, [
1098
1106
  n(k, {
1099
- modelValue: e(a).witnessRole,
1100
- "onUpdate:modelValue": t[27] || (t[27] = (r) => e(a).witnessRole = r),
1107
+ modelValue: e(t).witnessRole,
1108
+ "onUpdate:modelValue": s[27] || (s[27] = (r) => e(t).witnessRole = r),
1101
1109
  label: "Witness Role",
1102
1110
  "label-mark": "required",
1103
1111
  rules: e(u)(e(d).string().min(1, "Witness Role is required"))
1104
1112
  }, null, 8, ["modelValue", "rules"])
1105
1113
  ]),
1106
- n(w, {
1114
+ n(F, {
1107
1115
  label: "Signature",
1108
1116
  type: "image",
1109
1117
  modelValue: e(i).signature,
1110
- "onUpdate:modelValue": t[28] || (t[28] = (r) => e(i).signature = r),
1111
- "restaurant-id": p.submission.restaurantId
1118
+ "onUpdate:modelValue": s[28] || (s[28] = (r) => e(i).signature = r),
1119
+ "restaurant-id": m.submission.restaurantId
1112
1120
  }, null, 8, ["modelValue", "restaurant-id"]),
1113
- n(w, {
1121
+ n(F, {
1114
1122
  label: "Witness Signature",
1115
1123
  type: "image",
1116
1124
  modelValue: e(i).witnessSignature,
1117
- "onUpdate:modelValue": t[29] || (t[29] = (r) => e(i).witnessSignature = r),
1118
- "restaurant-id": p.submission.restaurantId
1125
+ "onUpdate:modelValue": s[29] || (s[29] = (r) => e(i).witnessSignature = r),
1126
+ "restaurant-id": m.submission.restaurantId
1119
1127
  }, null, 8, ["modelValue", "restaurant-id"]),
1120
- n(w, {
1128
+ n(F, {
1121
1129
  label: "Company Stamp",
1122
1130
  type: "image",
1123
1131
  modelValue: e(i).companyStamp,
1124
- "onUpdate:modelValue": t[30] || (t[30] = (r) => e(i).companyStamp = r),
1125
- "restaurant-id": p.submission.restaurantId
1132
+ "onUpdate:modelValue": s[30] || (s[30] = (r) => e(i).companyStamp = r),
1133
+ "restaurant-id": m.submission.restaurantId
1126
1134
  }, null, 8, ["modelValue", "restaurant-id"])
1127
1135
  ])
1128
1136
  ]),
@@ -1131,7 +1139,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1131
1139
  ], 64);
1132
1140
  };
1133
1141
  }
1134
- }), il = /* @__PURE__ */ Q({
1142
+ }), il = /* @__PURE__ */ G({
1135
1143
  __name: "TyroSubmission",
1136
1144
  props: {
1137
1145
  submission: {
@@ -1140,8 +1148,8 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1140
1148
  }
1141
1149
  },
1142
1150
  emits: ["update:submission"],
1143
- setup(p) {
1144
- const A = p, N = W(() => {
1151
+ setup(m) {
1152
+ const A = m, N = W(() => {
1145
1153
  const v = A.submission.fields || {}, y = (P) => v[P] || "N/A";
1146
1154
  return [
1147
1155
  {
@@ -1163,27 +1171,27 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1163
1171
  ];
1164
1172
  });
1165
1173
  return (v, y) => {
1166
- const P = C("FmCardHeader"), b = C("FmCardSection"), I = C("FmCard");
1167
- return V(), D(I, {
1174
+ const P = C("FmCardHeader"), b = C("FmCardSection"), w = C("FmCard");
1175
+ return g(), j(w, {
1168
1176
  class: "max-w-3xl mt-8 p-6",
1169
1177
  variant: "elevated"
1170
1178
  }, {
1171
- default: g(() => [
1179
+ default: V(() => [
1172
1180
  n(b, { class: "flex flex-col gap-16 justify-between" }, {
1173
- default: g(() => [
1181
+ default: V(() => [
1174
1182
  n(P, {
1175
1183
  class: "p-0",
1176
1184
  title: "Tyro Authorisation",
1177
1185
  subtitle: ""
1178
1186
  }),
1179
1187
  n(b, { class: "p-0" }, {
1180
- default: g(() => [
1181
- (V(!0), O(Y, null, _(N.value, (a) => (V(), O("p", {
1182
- key: a.label,
1188
+ default: V(() => [
1189
+ (g(!0), $(Q, null, h(N.value, (t) => (g(), $("p", {
1190
+ key: t.label,
1183
1191
  class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
1184
1192
  }, [
1185
- o("b", null, U(a.label), 1),
1186
- L(": " + U(a.value), 1)
1193
+ o("b", null, x(t.label), 1),
1194
+ L(": " + x(t.value), 1)
1187
1195
  ]))), 128))
1188
1196
  ]),
1189
1197
  _: 1
@@ -1199,7 +1207,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1199
1207
  }), ul = {
1200
1208
  key: 0,
1201
1209
  class: "flex items-center justify-center min-h-[80vh]"
1202
- }, dl = { class: "px-32 pb-32" }, Nl = /* @__PURE__ */ Q({
1210
+ }, dl = { class: "px-32 pb-32" }, Nl = /* @__PURE__ */ G({
1203
1211
  __name: "OnboardForm",
1204
1212
  props: {
1205
1213
  submissionId: {
@@ -1207,13 +1215,13 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1207
1215
  required: !0
1208
1216
  }
1209
1217
  },
1210
- setup(p) {
1211
- const { startAsyncCall: A, isLoading: N } = Z(), v = h(), y = p, P = re(), b = j(null), I = W(
1218
+ setup(m) {
1219
+ const { startAsyncCall: A, isLoading: N } = _(), v = ee(), y = m, P = re(), b = D(null), w = W(
1212
1220
  () => {
1213
1221
  var B;
1214
- return ((B = b.value) == null ? void 0 : B.type) === ee.FdoOnboardType.enum.tyro;
1222
+ return ((B = b.value) == null ? void 0 : B.type) === le.FdoOnboardType.enum.tyro;
1215
1223
  }
1216
- ), a = () => {
1224
+ ), t = () => {
1217
1225
  if (window.history.length > 1) {
1218
1226
  P.back();
1219
1227
  return;
@@ -1229,7 +1237,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1229
1237
  if (!b.value) return null;
1230
1238
  switch (b.value.type) {
1231
1239
  case "softspace":
1232
- return Ae;
1240
+ return $e;
1233
1241
  case "ntt":
1234
1242
  return rl;
1235
1243
  case "tyro":
@@ -1237,12 +1245,12 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1237
1245
  default:
1238
1246
  return null;
1239
1247
  }
1240
- }), R = j(0);
1248
+ }), R = D(0);
1241
1249
  function c(B) {
1242
1250
  b.value = B, R.value = Date.now();
1243
1251
  }
1244
- const F = async (B) => {
1245
- var q, m;
1252
+ const I = async (B) => {
1253
+ var q, p;
1246
1254
  if (b.value)
1247
1255
  switch (B) {
1248
1256
  case "preview":
@@ -1254,11 +1262,11 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1254
1262
  }), await M.previewDocument(
1255
1263
  (q = b.value) == null ? void 0 : q._id
1256
1264
  );
1257
- } catch (x) {
1265
+ } catch (U) {
1258
1266
  v.open({
1259
1267
  type: "error",
1260
1268
  title: "Error occurs when generating submission document",
1261
- message: z(x)
1269
+ message: z(U)
1262
1270
  });
1263
1271
  } finally {
1264
1272
  E && v.close(E);
@@ -1270,34 +1278,34 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1270
1278
  message: "Sending onboarding document...",
1271
1279
  type: "info"
1272
1280
  }), await M.sendDocument(
1273
- (m = b.value) == null ? void 0 : m._id
1281
+ (p = b.value) == null ? void 0 : p._id
1274
1282
  ), v.open({
1275
1283
  type: "success",
1276
1284
  title: "Submission documents send successfully"
1277
1285
  });
1278
- } catch (x) {
1286
+ } catch (U) {
1279
1287
  v.open({
1280
1288
  type: "error",
1281
1289
  title: "Error occurs when sending document",
1282
- message: z(x)
1290
+ message: z(U)
1283
1291
  });
1284
1292
  }
1285
1293
  break;
1286
1294
  }
1287
1295
  };
1288
1296
  return (B, q) => {
1289
- var x, J;
1290
- const m = C("FmCircularProgress"), E = C("FmPageHead");
1291
- return e(N) ? (V(), O("div", ul, [
1292
- n(m, { size: "xxl" })
1293
- ])) : (V(), O(Y, { key: 1 }, [
1297
+ var U, J;
1298
+ const p = C("FmCircularProgress"), E = C("FmPageHead");
1299
+ return e(N) ? (g(), $("div", ul, [
1300
+ n(p, { size: "xxl" })
1301
+ ])) : (g(), $(Q, { key: 1 }, [
1294
1302
  n(E, {
1295
- title: `Submission - ${(x = b.value) == null ? void 0 : x.type}`,
1303
+ title: `Submission - ${(U = b.value) == null ? void 0 : U.type}`,
1296
1304
  description: `ID - ${(J = b.value) == null ? void 0 : J._id}`,
1297
1305
  "back-button": !0,
1298
- "onClick:back": a,
1299
- "onClick:action": F,
1300
- actions: I.value ? [] : [
1306
+ "onClick:back": t,
1307
+ "onClick:action": I,
1308
+ actions: w.value ? [] : [
1301
1309
  {
1302
1310
  label: "Preview Document",
1303
1311
  value: "preview",
@@ -1312,7 +1320,7 @@ const de = ["src"], w = /* @__PURE__ */ Q({
1312
1320
  ]
1313
1321
  }, null, 8, ["title", "description", "actions"]),
1314
1322
  o("div", dl, [
1315
- (V(), D(ne(i.value), {
1323
+ (g(), j(ne(i.value), {
1316
1324
  key: R.value,
1317
1325
  submission: b.value,
1318
1326
  "onUpdate:submission": c