@feedmepos/mf-payment 1.6.26-dev → 1.6.28-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 (42) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-iXqW5wLW.js → Actions.vue_vue_type_script_setup_true_lang-B4ZiwdN0.js} +1 -1
  2. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CYtvX7so.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-B_Ijdnd4.js} +2 -2
  3. package/dist/{Chargeback-BGe5XDl_.js → Chargeback-YmbARhKg.js} +5 -5
  4. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DN_6q2_n.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CdKtDipZ.js} +1 -1
  5. package/dist/{OnboardForm-C3Fr7gLX.js → OnboardForm-CcrB3E8X.js} +591 -489
  6. package/dist/{OnboardForm-BnhW72k-.js → OnboardForm-DHgdxxqe.js} +189 -179
  7. package/dist/{OnboardSubmission-Dim4WQjJ.js → OnboardSubmission-CtitCQsu.js} +2 -2
  8. package/dist/{OnboardSubmission-Da4ddkN6.js → OnboardSubmission-DKdaX9rF.js} +5 -5
  9. package/dist/{PayoutAccount-Ckw1l_qj.js → PayoutAccount-CXeBK1AX.js} +5 -5
  10. package/dist/{PayoutAccount-CtPL_D_S.js → PayoutAccount-DTx2LcLp.js} +5 -5
  11. package/dist/{PayoutAccountSetting-DAt-NWWK.js → PayoutAccountSetting-B1X-UvJK.js} +6 -6
  12. package/dist/{Restaurant-3onCdWrc.js → Restaurant-CIBbX8G3.js} +4 -4
  13. package/dist/{RestaurantSetting-BJ5P9d8A.js → RestaurantSetting-D7ICl_qP.js} +3 -3
  14. package/dist/{Settlement-Cb2hQdZF.js → Settlement-BI-VTPxv.js} +4 -4
  15. package/dist/{Settlement-DuXn-xyR.js → Settlement-CdWL_ETb.js} +3 -3
  16. package/dist/{SettlementTransactions-Cl8C5O0J.js → SettlementTransactions-Cu-BYmgZ.js} +4 -4
  17. package/dist/{SettlementTransactions-igk5fdWl.js → SettlementTransactions-CuG_0cWP.js} +4 -4
  18. package/dist/{Status.vue_vue_type_script_setup_true_lang-DurKmA3Q.js → Status.vue_vue_type_script_setup_true_lang-D3s5zsYW.js} +1 -1
  19. package/dist/{Terminal-DMOhtME8.js → Terminal-Btv6-BKv.js} +5 -5
  20. package/dist/{TerminalSetting-BzL7K-uH.js → TerminalSetting-BOfwlpzm.js} +4 -4
  21. package/dist/{Transaction-D7uX4qHQ.js → Transaction-BlX2YbA7.js} +9 -9
  22. package/dist/{Transaction-DfKVD6f1.js → Transaction-DPsf-VDH.js} +10 -10
  23. package/dist/{TransactionOld-D_JU2_mR.js → TransactionOld-BNF36cu2.js} +7 -7
  24. package/dist/api/onboard-submission/index.d.ts +1 -0
  25. package/dist/{app-Bezc2BFB.js → app-B5iKjZWK.js} +23 -23
  26. package/dist/app.js +1 -1
  27. package/dist/{assets-D3BP5M_A.js → assets-Cc2Vi-Gl.js} +1 -1
  28. package/dist/{grafana-BbjqeSUV.js → grafana-CfwAikn_.js} +1 -1
  29. package/dist/{index-Bv2sHRuG.js → index-1LtOZdzT.js} +1 -1
  30. package/dist/{index-ZhbF97Tm.js → index-BAlPThXB.js} +1 -1
  31. package/dist/{index-BoZvRGNb.js → index-BXA_Sb3P.js} +1 -1
  32. package/dist/{index-pOLLwiKx.js → index-BrB06b4G.js} +1 -1
  33. package/dist/{index-B46LoJuc.js → index-C-7E5sGo.js} +1 -1
  34. package/dist/{index-Agw94979.js → index-C64vpG3g.js} +1 -1
  35. package/dist/{index-BbMFtfU9.js → index-CfsT_RZU.js} +1 -1
  36. package/dist/{index-C4VQgcNt.js → index-Ckm19Rq6.js} +32 -24
  37. package/dist/{index-da9XXOQN.js → index-DZmqReyr.js} +1 -1
  38. package/dist/{index.vue_vue_type_script_setup_true_lang-B79Nwx5o.js → index.vue_vue_type_script_setup_true_lang-Dw0Sdf8S.js} +1 -1
  39. package/dist/package.json +1 -1
  40. package/dist/{payout-account-Do9T9GvQ.js → payout-account-BfxGH_xZ.js} +3 -3
  41. package/dist/tsconfig.app.tsbuildinfo +1 -1
  42. package/package.json +1 -1
@@ -1,15 +1,15 @@
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-C4VQgcNt.js";
3
- import { u as _, p as le } from "./index-Agw94979.js";
4
- import { useRouter as re } from "vue-router";
1
+ import { defineComponent as Z, ref as $, computed as W, resolveComponent as C, openBlock as b, createElementBlock as q, createElementVNode as o, toDisplayString as I, createBlock as B, 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-Ckm19Rq6.js";
3
+ import { u as te, p as ne } from "./index-C64vpG3g.js";
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 ie } from "./payout-account-Do9T9GvQ.js";
7
- import { _ as ae } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DN_6q2_n.js";
8
- import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
- import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-DurKmA3Q.js";
10
- import { useSnackbar as ee } from "@feedmepos/ui-library";
11
- import { u as z } from "./error-K1CakhA9.js";
12
- const de = ["src"], F = /* @__PURE__ */ G({
6
+ import { P as ye } from "./payout-account-BfxGH_xZ.js";
7
+ import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CdKtDipZ.js";
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-D3s5zsYW.js";
10
+ import { useSnackbar as ae } from "@feedmepos/ui-library";
11
+ import { u as Q } from "./error-K1CakhA9.js";
12
+ const Ve = ["src"], F = /* @__PURE__ */ Z({
13
13
  __name: "UploadButton",
14
14
  props: {
15
15
  modelValue: {},
@@ -18,53 +18,53 @@ const de = ["src"], F = /* @__PURE__ */ G({
18
18
  restaurantId: {}
19
19
  },
20
20
  emits: ["update:modelValue"],
21
- setup(m, { emit: A }) {
22
- const N = m, v = D(N.modelValue), y = A, P = (t) => {
21
+ setup(m, { emit: O }) {
22
+ const v = m, k = $(v.modelValue), g = O, P = (a) => {
23
23
  const i = new FileReader();
24
- i.onload = (R) => {
25
- var c;
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
- const R = C("FmButton"), c = C("FmDropField");
33
- return g(), $("div", null, [
34
- o("p", null, x(m.label), 1),
35
- v.value ? (g(), j(ae, {
24
+ i.onload = (U) => {
25
+ var V;
26
+ k.value = (V = U.target) == null ? void 0 : V.result, g("update:modelValue", a);
27
+ }, i.readAsDataURL(a);
28
+ }, c = (a) => {
29
+ window.open(a, "_blank", "noopener,noreferrer");
30
+ }, R = W(() => v.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
31
+ return (a, i) => {
32
+ const U = C("FmButton"), V = C("FmDropField");
33
+ return b(), q("div", null, [
34
+ o("p", null, I(m.label), 1),
35
+ k.value ? (b(), B(re, {
36
36
  key: 0,
37
- document: v.value,
37
+ document: k.value,
38
38
  "restaurant-id": m.restaurantId
39
39
  }, {
40
- default: V(({ src: I }) => [
41
- m.type === "image" ? (g(), $("img", {
40
+ default: f(({ src: x }) => [
41
+ m.type === "image" ? (b(), q("img", {
42
42
  key: 0,
43
- src: I
44
- }, null, 8, de)) : O("", !0),
45
- m.type === "pdf" ? (g(), j(R, {
43
+ src: x
44
+ }, null, 8, Ve)) : A("", !0),
45
+ m.type === "pdf" ? (b(), B(U, {
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(I),
52
- onClick: () => b(I)
53
- }, null, 8, ["onVnodeMounted", "onClick"])) : O("", !0)
51
+ onVnodeMounted: () => c(x),
52
+ onClick: () => c(x)
53
+ }, null, 8, ["onVnodeMounted", "onClick"])) : A("", !0)
54
54
  ]),
55
55
  _: 1
56
- }, 8, ["document", "restaurant-id"])) : (g(), j(c, {
56
+ }, 8, ["document", "restaurant-id"])) : (b(), B(V, {
57
57
  key: 1,
58
- accept: w.value,
58
+ accept: R.value,
59
59
  onFileUpload: P
60
60
  }, null, 8, ["accept"]))
61
61
  ]);
62
62
  };
63
63
  }
64
- }), me = ["src"], pe = {
64
+ }), ve = ["src"], fe = {
65
65
  key: 0,
66
66
  class: "text-center text-red-700 py-4"
67
- }, be = { class: "flex justify-evenly py-3" }, ce = /* @__PURE__ */ G({
67
+ }, ke = { class: "flex justify-evenly py-3" }, Ce = /* @__PURE__ */ Z({
68
68
  __name: "SignatureBoard",
69
69
  props: {
70
70
  modelValue: {},
@@ -72,73 +72,73 @@ const de = ["src"], F = /* @__PURE__ */ G({
72
72
  restaurantId: {}
73
73
  },
74
74
  emits: ["update:modelValue"],
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;
75
+ setup(m, { emit: O }) {
76
+ const v = m, k = O, g = $(v.modelValue), P = $(!1), c = $(), R = $(!1);
77
+ function a(U, V) {
78
+ var D;
79
+ const x = U.split(","), T = ((D = x[0].match(/:(.*?);/)) == null ? void 0 : D[1]) || "", w = atob(x[1]);
80
+ let p = w.length;
81
81
  const E = new Uint8Array(p);
82
82
  for (; p--; )
83
- E[p] = q.charCodeAt(p);
84
- return new File([E], c, { type: B });
83
+ E[p] = w.charCodeAt(p);
84
+ return new File([E], V, { type: T });
85
85
  }
86
86
  const i = function() {
87
- const { isEmpty: R, data: c } = b.value.saveSignature();
88
- if (R)
87
+ const { isEmpty: U, data: V } = c.value.saveSignature();
88
+ if (U)
89
89
  return P.value = !0;
90
- y.value = c, w.value = !1, v("update:modelValue", t(c, "signature.png"));
90
+ g.value = V, R.value = !1, k("update:modelValue", a(V, "signature.png"));
91
91
  };
92
- return (R, c) => {
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, {
92
+ return (U, V) => {
93
+ const x = C("FmButton"), T = C("FmDialog");
94
+ return b(), q("div", null, [
95
+ o("p", null, I(m.label), 1),
96
+ g.value ? (b(), B(re, {
97
97
  key: 0,
98
- document: y.value,
98
+ document: g.value,
99
99
  "restaurant-id": m.restaurantId
100
100
  }, {
101
- default: V(({ src: q }) => [
101
+ default: f(({ src: w }) => [
102
102
  o("img", {
103
- src: q,
103
+ src: w,
104
104
  alt: "Signature Preview",
105
105
  class: "w-full h-auto"
106
- }, null, 8, me)
106
+ }, null, 8, ve)
107
107
  ]),
108
108
  _: 1
109
- }, 8, ["document", "restaurant-id"])) : O("", !0),
110
- y.value ? O("", !0) : (g(), j(B, {
109
+ }, 8, ["document", "restaurant-id"])) : A("", !0),
110
+ g.value ? A("", !0) : (b(), B(T, {
111
111
  key: 1,
112
- modelValue: w.value,
113
- "onUpdate:modelValue": c[1] || (c[1] = (q) => w.value = q)
112
+ modelValue: R.value,
113
+ "onUpdate:modelValue": V[1] || (V[1] = (w) => R.value = w)
114
114
  }, {
115
- "dialog-button": V(() => [
116
- n(I, {
115
+ "dialog-button": f(() => [
116
+ r(x, {
117
117
  "prepend-icon": "signature",
118
118
  class: "w-full",
119
119
  label: "Signature"
120
120
  })
121
121
  ]),
122
- "dialog-header": V(() => [...c[2] || (c[2] = [
122
+ "dialog-header": f(() => [...V[2] || (V[2] = [
123
123
  o("div", null, "Signature Board", -1)
124
124
  ])]),
125
- default: V(() => [
126
- n(e(ue), {
125
+ default: f(() => [
126
+ r(e(ge), {
127
127
  ref_key: "signaturePad",
128
- ref: b,
128
+ ref: c,
129
129
  height: "300px",
130
130
  customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
131
131
  options: { penColor: "#000000" }
132
132
  }, null, 512),
133
- P.value ? (g(), $("p", pe, " Please sign your signature before saving. ")) : O("", !0),
134
- o("div", be, [
135
- n(I, {
133
+ P.value ? (b(), q("p", fe, " Please sign your signature before saving. ")) : A("", !0),
134
+ o("div", ke, [
135
+ r(x, {
136
136
  variant: "destructive",
137
137
  label: "Clear",
138
138
  "prepend-icon": "delete",
139
- onClick: c[0] || (c[0] = (q) => b.value.clearSignature())
139
+ onClick: V[0] || (V[0] = (w) => c.value.clearSignature())
140
140
  }),
141
- n(I, {
141
+ r(x, {
142
142
  label: "Save",
143
143
  "prepend-icon": "save",
144
144
  onClick: i
@@ -150,7 +150,13 @@ const de = ["src"], F = /* @__PURE__ */ G({
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" }, 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({
153
+ }), Ne = { class: "space-y-2" }, Se = { class: "text-gray-900" }, Pe = { class: "text-gray-900" }, we = { class: "text-gray-900" }, Fe = { class: "text-gray-900" }, qe = { class: "text-gray-900" }, Ie = { class: "text-gray-900" }, Ue = { class: "grid grid-cols-4 gap-6" }, xe = ["src"], Re = {
154
+ key: 1,
155
+ class: "mt-2 truncate text-gray-700"
156
+ }, De = { key: 0 }, Be = {
157
+ key: 0,
158
+ class: "w-full flex justify-end mt-6"
159
+ }, Te = { class: "mt-6 grid grid-cols-4 gap-24" }, Ae = { class: "w-full flex justify-end mt-6" }, $e = { class: "mt-6 grid grid-cols-4 gap-24" }, je = { class: "col-span-2" }, Ee = { class: "col-span-2" }, Oe = { class: "col-span-2" }, Le = { class: "col-span-2" }, Me = { class: "col-span-2" }, He = { class: "col-span-2" }, ze = { class: "col-start-1 col-span-2" }, We = { class: "col-span-2" }, Je = { class: "col-span-2" }, Qe = { class: "col-span-2" }, Ke = { class: "mt-6 grid grid-cols-4 gap-6" }, he = { class: "mt-6 grid grid-cols-2 gap-24" }, oe = 30, Ge = /* @__PURE__ */ Z({
154
160
  __name: "SoftspaceSubmission",
155
161
  props: {
156
162
  submission: {
@@ -159,10 +165,10 @@ const de = ["src"], F = /* @__PURE__ */ G({
159
165
  }
160
166
  },
161
167
  emits: ["update:submission"],
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
- N.submission.rates ? Object.fromEntries(
165
- Object.entries(N.submission.rates).map(([T, l]) => [T, `${l}`])
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: T } = v.submission, w = $(""), p = $(
170
+ v.submission.rates ? Object.fromEntries(
171
+ Object.entries(v.submission.rates).map(([y, l]) => [y, `${l}`])
166
172
  ) : {
167
173
  duitNow: "0.8",
168
174
  mydebitCard: "0.5",
@@ -173,11 +179,59 @@ const de = ["src"], F = /* @__PURE__ */ G({
173
179
  jcbPlatinum: "2.2"
174
180
  }
175
181
  ), E = W(
176
- () => Object.values(p.value).every((T) => parseFloat(T) > 0)
177
- ), U = () => w(async () => {
182
+ () => Object.values(p.value).every((y) => parseFloat(y) > 0)
183
+ ), { isLoading: D, startAsyncCall: G } = te(), M = $([]), _ = (y) => Number(y.replace("additionalDocument", "")), Y = W(
184
+ () => Object.keys(v.submission.documents).filter((y) => /^additionalDocument\d+$/.test(y)).sort((y, l) => _(y) - _(l))
185
+ ), ee = W(
186
+ () => Y.value.length + M.value.length
187
+ ), S = (y) => {
188
+ if (!(ee.value >= oe)) {
189
+ if (y.type.startsWith("image/")) {
190
+ const l = new FileReader();
191
+ l.onload = (j) => {
192
+ var L;
193
+ return M.value.push({
194
+ file: y,
195
+ preview: String(((L = j.target) == null ? void 0 : L.result) ?? "")
196
+ });
197
+ }, l.readAsDataURL(y);
198
+ return;
199
+ }
200
+ M.value.push({ file: y, preview: "" });
201
+ }
202
+ }, s = () => G(async () => {
178
203
  try {
179
- const T = await M.reviewById(
180
- N.submission._id,
204
+ let y = Y.value.reduce(
205
+ (j, L) => Math.max(j, _(L)),
206
+ 0
207
+ );
208
+ const l = {};
209
+ for (const { file: j } of M.value) {
210
+ const L = `additionalDocument${++y}`;
211
+ l[L] = await H.uploadDocument(
212
+ U,
213
+ L,
214
+ j
215
+ );
216
+ }
217
+ k(
218
+ "update:submission",
219
+ await H.addAdditionalDocuments(
220
+ v.submission._id,
221
+ l
222
+ )
223
+ ), M.value = [], g.open({ type: "success", title: "Documents saved" });
224
+ } catch (y) {
225
+ g.open({
226
+ type: "error",
227
+ title: "Error occurs when sending additional documents",
228
+ message: Q(y)
229
+ });
230
+ }
231
+ }), N = () => R(async () => {
232
+ try {
233
+ const y = await H.reviewById(
234
+ v.submission._id,
181
235
  {
182
236
  rates: {
183
237
  duitNow: parseFloat(p.value.duitNow),
@@ -191,265 +245,310 @@ const de = ["src"], F = /* @__PURE__ */ G({
191
245
  status: "approved"
192
246
  }
193
247
  );
194
- v("update:submission", T), P.value = !1, y.open({
248
+ k("update:submission", y), P.value = !1, g.open({
195
249
  type: "success",
196
250
  title: "Submission updated successfully"
197
251
  });
198
- } catch (T) {
199
- y.open({
252
+ } catch (y) {
253
+ g.open({
200
254
  type: "error",
201
255
  title: "Error occurs when updating submission",
202
- message: z(T)
256
+ message: Q(y)
203
257
  });
204
258
  }
205
- }), J = () => w(async () => {
259
+ }), X = () => R(async () => {
206
260
  try {
207
- const T = await M.reviewById(
208
- N.submission._id,
261
+ const y = await H.reviewById(
262
+ v.submission._id,
209
263
  {
210
264
  status: "rejected",
211
- statusReason: q.value
265
+ statusReason: w.value
212
266
  }
213
267
  );
214
- v("update:submission", T), P.value = !1, y.open({
268
+ k("update:submission", y), P.value = !1, g.open({
215
269
  type: "success",
216
270
  title: "Submission updated successfully"
217
271
  });
218
- } catch (T) {
219
- y.open({
272
+ } catch (y) {
273
+ g.open({
220
274
  type: "error",
221
275
  title: "Error occurs when updating submission",
222
- message: z(T)
276
+ message: Q(y)
223
277
  });
224
278
  }
225
279
  });
226
- return (T, l) => {
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
- o("div", ye, [
280
+ return (y, l) => {
281
+ const j = C("FmButton"), L = C("FmDropField"), n = C("FmTextField"), K = C("FmTextarea"), ue = C("FmDialog"), de = C("FmPhoneNumber"), se = C("FmSelect"), me = C("FmForm");
282
+ return b(), q(J, null, [
283
+ o("div", Ne, [
230
284
  o("div", null, [
231
285
  l[33] || (l[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
232
- o("span", ge, x(e(R)), 1)
286
+ o("span", Se, I(e(U)), 1)
233
287
  ]),
234
288
  o("div", null, [
235
289
  l[34] || (l[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
236
- o("span", Ve, x(e(c).name) + " ( " + x(e(c).legalName) + " )", 1)
290
+ o("span", Pe, I(e(V).name) + " ( " + I(e(V).legalName) + " )", 1)
237
291
  ]),
238
292
  o("div", null, [
239
293
  l[35] || (l[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
240
- o("span", ve, x(e(c).email), 1)
294
+ o("span", we, I(e(V).email), 1)
241
295
  ]),
242
296
  o("div", null, [
243
297
  l[36] || (l[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
244
- o("span", fe, x(e(c).phoneNo), 1)
298
+ o("span", Fe, I(e(V).phoneNo), 1)
245
299
  ]),
246
300
  o("div", null, [
247
301
  l[37] || (l[37] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
248
- o("span", ke, [
249
- n(te, { data: e(I) }, null, 8, ["data"])
302
+ o("span", qe, [
303
+ r(ie, { data: e(x) }, null, 8, ["data"])
250
304
  ])
251
305
  ]),
252
306
  o("div", null, [
253
307
  l[38] || (l[38] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
254
- o("span", Ce, x(e(B)), 1)
308
+ o("span", Ie, I(e(T)), 1)
255
309
  ])
256
310
  ]),
257
- l[50] || (l[50] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
258
- o("div", Ne, [
259
- n(f, {
311
+ l[50] || (l[50] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Additional Documents ", -1)),
312
+ o("div", Ue, [
313
+ (b(!0), q(J, null, le(Y.value, (t) => (b(), B(F, {
314
+ key: t,
315
+ label: t.replace("additionalDocument", "Document "),
316
+ type: /\.pdf$/i.test(v.submission.documents[t]) ? "pdf" : "image",
317
+ modelValue: v.submission.documents[t],
318
+ "onUpdate:modelValue": (h) => v.submission.documents[t] = h,
319
+ "restaurant-id": e(U)
320
+ }, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
321
+ (b(!0), q(J, null, le(M.value, (t, h) => (b(), q("div", {
322
+ key: `new-${h}`
323
+ }, [
324
+ o("p", null, "Document " + I(Y.value.length + h + 1), 1),
325
+ t.file.type.startsWith("image/") ? (b(), q("img", {
326
+ key: 0,
327
+ src: t.preview,
328
+ class: "mt-2 rounded border"
329
+ }, null, 8, xe)) : (b(), q("p", Re, I(t.file.name), 1)),
330
+ r(j, {
331
+ class: "mt-4",
332
+ "prepend-icon": "delete",
333
+ label: "Remove",
334
+ variant: "destructive",
335
+ onClick: (Sl) => M.value.splice(h, 1)
336
+ }, null, 8, ["onClick"])
337
+ ]))), 128)),
338
+ ee.value < oe ? (b(), q("div", De, [
339
+ o("p", null, "Document " + I(ee.value + 1), 1),
340
+ r(L, {
341
+ accept: ".png, .jpg, .jpeg, .pdf",
342
+ onFileUpload: S
343
+ })
344
+ ])) : A("", !0)
345
+ ]),
346
+ M.value.length ? (b(), q("div", Be, [
347
+ r(j, {
348
+ type: "button",
349
+ variant: "primary",
350
+ "prepend-icon": "cloud_upload",
351
+ label: "Save documents",
352
+ loading: e(D),
353
+ onClick: s
354
+ }, null, 8, ["loading"])
355
+ ])) : A("", !0),
356
+ l[51] || (l[51] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
357
+ o("div", Te, [
358
+ r(n, {
260
359
  modelValue: p.value.duitNow,
261
- "onUpdate:modelValue": l[0] || (l[0] = (a) => p.value.duitNow = a),
360
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => p.value.duitNow = t),
262
361
  label: "DuitNow QR",
263
362
  "label-mark": "required",
264
363
  type: "number",
265
364
  inputmode: "numeric",
266
365
  decimal: 2,
267
366
  rules: e(u)(
268
- e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
367
+ e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
269
368
  )
270
369
  }, {
271
- append: V(() => [...l[39] || (l[39] = [
272
- L("%", -1)
370
+ append: f(() => [...l[39] || (l[39] = [
371
+ z("%", -1)
273
372
  ])]),
274
373
  _: 1
275
374
  }, 8, ["modelValue", "rules"]),
276
- n(f, {
375
+ r(n, {
277
376
  modelValue: p.value.mydebitCard,
278
- "onUpdate:modelValue": l[1] || (l[1] = (a) => p.value.mydebitCard = a),
377
+ "onUpdate:modelValue": l[1] || (l[1] = (t) => p.value.mydebitCard = t),
279
378
  label: "myDebit Card",
280
379
  "label-mark": "required",
281
380
  type: "number",
282
381
  inputmode: "numeric",
283
382
  decimal: 2,
284
383
  rules: e(u)(
285
- e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
384
+ e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
286
385
  )
287
386
  }, {
288
- append: V(() => [...l[40] || (l[40] = [
289
- L("%", -1)
387
+ append: f(() => [...l[40] || (l[40] = [
388
+ z("%", -1)
290
389
  ])]),
291
390
  _: 1
292
391
  }, 8, ["modelValue", "rules"]),
293
- n(f, {
392
+ r(n, {
294
393
  modelValue: p.value.localDebit,
295
- "onUpdate:modelValue": l[2] || (l[2] = (a) => p.value.localDebit = a),
394
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => p.value.localDebit = t),
296
395
  label: "Local Debit Card",
297
396
  "label-mark": "required",
298
397
  type: "number",
299
398
  inputmode: "numeric",
300
399
  decimal: 2,
301
400
  rules: e(u)(
302
- e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
401
+ e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
303
402
  )
304
403
  }, {
305
- append: V(() => [...l[41] || (l[41] = [
306
- L("%", -1)
404
+ append: f(() => [...l[41] || (l[41] = [
405
+ z("%", -1)
307
406
  ])]),
308
407
  _: 1
309
408
  }, 8, ["modelValue", "rules"]),
310
- n(f, {
409
+ r(n, {
311
410
  modelValue: p.value.localCredit,
312
- "onUpdate:modelValue": l[3] || (l[3] = (a) => p.value.localCredit = a),
411
+ "onUpdate:modelValue": l[3] || (l[3] = (t) => p.value.localCredit = t),
313
412
  label: "Local Credit Card",
314
413
  "label-mark": "required",
315
414
  type: "number",
316
415
  inputmode: "numeric",
317
416
  decimal: 2,
318
417
  rules: e(u)(
319
- e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
418
+ e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
320
419
  )
321
420
  }, {
322
- append: V(() => [...l[42] || (l[42] = [
323
- L("%", -1)
421
+ append: f(() => [...l[42] || (l[42] = [
422
+ z("%", -1)
324
423
  ])]),
325
424
  _: 1
326
425
  }, 8, ["modelValue", "rules"]),
327
- n(f, {
426
+ r(n, {
328
427
  modelValue: p.value.foreignCard,
329
- "onUpdate:modelValue": l[4] || (l[4] = (a) => p.value.foreignCard = a),
428
+ "onUpdate:modelValue": l[4] || (l[4] = (t) => p.value.foreignCard = t),
330
429
  label: "Foreign Card",
331
430
  "label-mark": "required",
332
431
  type: "number",
333
432
  inputmode: "numeric",
334
433
  decimal: 2,
335
434
  rules: e(u)(
336
- e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
435
+ e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
337
436
  )
338
437
  }, {
339
- append: V(() => [...l[43] || (l[43] = [
340
- L("%", -1)
438
+ append: f(() => [...l[43] || (l[43] = [
439
+ z("%", -1)
341
440
  ])]),
342
441
  _: 1
343
442
  }, 8, ["modelValue", "rules"]),
344
- n(f, {
443
+ r(n, {
345
444
  modelValue: p.value.jcbStandard,
346
- "onUpdate:modelValue": l[5] || (l[5] = (a) => p.value.jcbStandard = a),
445
+ "onUpdate:modelValue": l[5] || (l[5] = (t) => p.value.jcbStandard = t),
347
446
  label: "JCB Standard",
348
447
  "label-mark": "required",
349
448
  type: "number",
350
449
  inputmode: "numeric",
351
450
  decimal: 2,
352
451
  rules: e(u)(
353
- e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
452
+ e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
354
453
  )
355
454
  }, {
356
- append: V(() => [...l[44] || (l[44] = [
357
- L("%", -1)
455
+ append: f(() => [...l[44] || (l[44] = [
456
+ z("%", -1)
358
457
  ])]),
359
458
  _: 1
360
459
  }, 8, ["modelValue", "rules"]),
361
- n(f, {
460
+ r(n, {
362
461
  modelValue: p.value.jcbPlatinum,
363
- "onUpdate:modelValue": l[6] || (l[6] = (a) => p.value.jcbPlatinum = a),
462
+ "onUpdate:modelValue": l[6] || (l[6] = (t) => p.value.jcbPlatinum = t),
364
463
  label: "JCB Platinum",
365
464
  "label-mark": "required",
366
465
  type: "number",
367
466
  inputmode: "numeric",
368
467
  decimal: 2,
369
468
  rules: e(u)(
370
- e(d).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
469
+ e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
371
470
  )
372
471
  }, {
373
- append: V(() => [...l[45] || (l[45] = [
374
- L("%", -1)
472
+ append: f(() => [...l[45] || (l[45] = [
473
+ z("%", -1)
375
474
  ])]),
376
475
  _: 1
377
476
  }, 8, ["modelValue", "rules"])
378
477
  ]),
379
- o("div", Se, [
380
- n(s, {
478
+ o("div", Ae, [
479
+ r(ue, {
381
480
  modelValue: P.value,
382
- "onUpdate:modelValue": l[8] || (l[8] = (a) => P.value = a)
481
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => P.value = t)
383
482
  }, {
384
- "dialog-button": V(() => [
385
- n(K, {
483
+ "dialog-button": f(() => [
484
+ r(j, {
386
485
  class: "mr-6",
387
486
  type: "button",
388
487
  variant: "destructive",
389
488
  "prepend-icon": "block",
390
- loading: e(b),
489
+ loading: e(c),
391
490
  label: "Reject Submission"
392
491
  }, null, 8, ["loading"])
393
492
  ]),
394
- "dialog-header": V(() => [...l[46] || (l[46] = [
493
+ "dialog-header": f(() => [...l[46] || (l[46] = [
395
494
  o("div", null, "Rejecting Submission", -1)
396
495
  ])]),
397
- default: V(() => [
398
- n(S, {
399
- modelValue: q.value,
400
- "onUpdate:modelValue": l[7] || (l[7] = (a) => q.value = a),
496
+ default: f(() => [
497
+ r(K, {
498
+ modelValue: w.value,
499
+ "onUpdate:modelValue": l[7] || (l[7] = (t) => w.value = t),
401
500
  label: "Reason for Rejection",
402
501
  "label-mark": "optional",
403
502
  "helper-text": "Please provide a reason for rejection."
404
503
  }, null, 8, ["modelValue"]),
405
- n(K, {
504
+ r(j, {
406
505
  class: "mb-2 mt-6 w-full",
407
506
  label: "Submit",
408
507
  "prepend-icon": "save",
409
- onClick: J,
410
- loading: e(b)
508
+ onClick: X,
509
+ loading: e(c)
411
510
  }, null, 8, ["loading"])
412
511
  ]),
413
512
  _: 1
414
513
  }, 8, ["modelValue"]),
415
- n(K, {
514
+ r(j, {
416
515
  type: "button",
417
516
  variant: "primary",
418
517
  "prepend-icon": "approval",
419
518
  disabled: !E.value,
420
519
  label: "Approve Submission with Rates",
421
- onClick: U,
422
- loading: e(b)
520
+ onClick: N,
521
+ loading: e(c)
423
522
  }, null, 8, ["disabled", "loading"])
424
523
  ]),
425
- n(X, { disabled: !0 }, {
426
- default: V(() => [
524
+ r(me, { disabled: !0 }, {
525
+ default: f(() => [
427
526
  l[47] || (l[47] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
428
- o("div", Pe, [
429
- o("div", qe, [
430
- n(f, {
431
- modelValue: e(t).picName,
432
- "onUpdate:modelValue": l[9] || (l[9] = (a) => e(t).picName = a),
527
+ o("div", $e, [
528
+ o("div", je, [
529
+ r(n, {
530
+ modelValue: e(a).picName,
531
+ "onUpdate:modelValue": l[9] || (l[9] = (t) => e(a).picName = t),
433
532
  label: "PIC Name",
434
533
  placeholder: "Enter your name",
435
534
  "label-mark": "required",
436
535
  rules: e(u)(e(d).string().min(1, "PIC Name is required"))
437
536
  }, null, 8, ["modelValue", "rules"])
438
537
  ]),
439
- o("div", Fe, [
440
- n(f, {
441
- modelValue: e(t).picRole,
442
- "onUpdate:modelValue": l[10] || (l[10] = (a) => e(t).picRole = a),
538
+ o("div", Ee, [
539
+ r(n, {
540
+ modelValue: e(a).picRole,
541
+ "onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picRole = t),
443
542
  label: "PIC Role",
444
543
  placeholder: "Enter your role",
445
544
  "label-mark": "required",
446
545
  rules: e(u)(e(d).string().min(1, "PIC Role is required"))
447
546
  }, null, 8, ["modelValue", "rules"])
448
547
  ]),
449
- o("div", Ie, [
450
- n(f, {
451
- modelValue: e(t).picEmail,
452
- "onUpdate:modelValue": l[11] || (l[11] = (a) => e(t).picEmail = a),
548
+ o("div", Oe, [
549
+ r(n, {
550
+ modelValue: e(a).picEmail,
551
+ "onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picEmail = t),
453
552
  label: "PIC Email",
454
553
  type: "email",
455
554
  placeholder: "Enter your email address",
@@ -457,64 +556,64 @@ const de = ["src"], F = /* @__PURE__ */ G({
457
556
  rules: e(u)(e(d).string().min(1, "PIC Email is required"))
458
557
  }, null, 8, ["modelValue", "rules"])
459
558
  ]),
460
- o("div", we, [
461
- n(k, {
462
- "model-value": e(t).picContact,
463
- "onUpdate:modelValue": l[12] || (l[12] = (a) => e(t).picContact = a),
559
+ o("div", Le, [
560
+ r(de, {
561
+ "model-value": e(a).picContact,
562
+ "onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picContact = t),
464
563
  "default-country": "MY",
465
564
  label: "PIC Contact",
466
565
  "label-mark": "required",
467
566
  rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
468
567
  }, null, 8, ["model-value", "rules"])
469
568
  ]),
470
- o("div", Ue, [
471
- n(f, {
472
- modelValue: e(t).outletName,
473
- "onUpdate:modelValue": l[13] || (l[13] = (a) => e(t).outletName = a),
569
+ o("div", Me, [
570
+ r(n, {
571
+ modelValue: e(a).outletName,
572
+ "onUpdate:modelValue": l[13] || (l[13] = (t) => e(a).outletName = t),
474
573
  label: "Outlet Name",
475
574
  placeholder: "Enter outlet name",
476
575
  "label-mark": "required",
477
576
  rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
478
577
  }, null, 8, ["modelValue", "rules"])
479
578
  ]),
480
- o("div", xe, [
481
- n(f, {
482
- modelValue: e(t).outletAddress,
483
- "onUpdate:modelValue": l[14] || (l[14] = (a) => e(t).outletAddress = a),
579
+ o("div", He, [
580
+ r(n, {
581
+ modelValue: e(a).outletAddress,
582
+ "onUpdate:modelValue": l[14] || (l[14] = (t) => e(a).outletAddress = t),
484
583
  label: "Outlet Address",
485
584
  placeholder: "Enter outlet address",
486
585
  "label-mark": "required",
487
586
  rules: e(u)(e(d).string().min(1, "Address is required"))
488
587
  }, null, 8, ["modelValue", "rules"])
489
588
  ]),
490
- n(f, {
491
- modelValue: e(t).outletPostCode,
492
- "onUpdate:modelValue": l[15] || (l[15] = (a) => e(t).outletPostCode = a),
589
+ r(n, {
590
+ modelValue: e(a).outletPostCode,
591
+ "onUpdate:modelValue": l[15] || (l[15] = (t) => e(a).outletPostCode = t),
493
592
  label: "Postal Code",
494
593
  placeholder: "Enter postal code",
495
594
  "label-mark": "required",
496
595
  rules: e(u)(e(d).string().min(1, "Postal Code is required"))
497
596
  }, null, 8, ["modelValue", "rules"]),
498
- n(f, {
499
- modelValue: e(t).outletState,
500
- "onUpdate:modelValue": l[16] || (l[16] = (a) => e(t).outletState = a),
597
+ r(n, {
598
+ modelValue: e(a).outletState,
599
+ "onUpdate:modelValue": l[16] || (l[16] = (t) => e(a).outletState = t),
501
600
  label: "State",
502
601
  placeholder: "Enter state",
503
602
  "label-mark": "required",
504
603
  rules: e(u)(e(d).string().min(1, "State is required"))
505
604
  }, null, 8, ["modelValue", "rules"]),
506
- n(f, {
507
- modelValue: e(t).outletCity,
508
- "onUpdate:modelValue": l[17] || (l[17] = (a) => e(t).outletCity = a),
605
+ r(n, {
606
+ modelValue: e(a).outletCity,
607
+ "onUpdate:modelValue": l[17] || (l[17] = (t) => e(a).outletCity = t),
509
608
  label: "City",
510
609
  placeholder: "Enter city",
511
610
  "label-mark": "required",
512
611
  rules: e(u)(e(d).string().min(1, "City is required"))
513
612
  }, null, 8, ["modelValue", "rules"]),
514
- o("div", Re, [
515
- n(H, {
516
- modelValue: e(t).businessType,
517
- "onUpdate:modelValue": l[18] || (l[18] = (a) => e(t).businessType = a),
613
+ o("div", ze, [
614
+ r(se, {
615
+ modelValue: e(a).businessType,
616
+ "onUpdate:modelValue": l[18] || (l[18] = (t) => e(a).businessType = t),
518
617
  label: "Type",
519
618
  placeholder: "Select business type",
520
619
  "label-mark": "required",
@@ -533,30 +632,30 @@ const de = ["src"], F = /* @__PURE__ */ G({
533
632
  ]
534
633
  }, null, 8, ["modelValue", "rules"])
535
634
  ]),
536
- o("div", Be, [
537
- n(f, {
538
- modelValue: e(t).businessRegNo,
539
- "onUpdate:modelValue": l[19] || (l[19] = (a) => e(t).businessRegNo = a),
635
+ o("div", We, [
636
+ r(n, {
637
+ modelValue: e(a).businessRegNo,
638
+ "onUpdate:modelValue": l[19] || (l[19] = (t) => e(a).businessRegNo = t),
540
639
  label: "Registration No",
541
640
  placeholder: "Enter registration number",
542
641
  "label-mark": "required",
543
642
  rules: e(u)(e(d).string().min(1, "Reg No is required"))
544
643
  }, null, 8, ["modelValue", "rules"])
545
644
  ]),
546
- o("div", Te, [
547
- n(f, {
548
- modelValue: e(t).tinNo,
549
- "onUpdate:modelValue": l[20] || (l[20] = (a) => e(t).tinNo = a),
645
+ o("div", Je, [
646
+ r(n, {
647
+ modelValue: e(a).tinNo,
648
+ "onUpdate:modelValue": l[20] || (l[20] = (t) => e(a).tinNo = t),
550
649
  label: "Tax Identification No (TIN)",
551
650
  placeholder: "Enter your TIN number",
552
651
  "label-mark": "required",
553
652
  rules: e(u)(e(d).string().min(1, "TIN is required"))
554
653
  }, null, 8, ["modelValue", "rules"])
555
654
  ]),
556
- o("div", je, [
557
- n(f, {
558
- modelValue: e(t).sstNo,
559
- "onUpdate:modelValue": l[21] || (l[21] = (a) => e(t).sstNo = a),
655
+ o("div", Qe, [
656
+ r(n, {
657
+ modelValue: e(a).sstNo,
658
+ "onUpdate:modelValue": l[21] || (l[21] = (t) => e(a).sstNo = t),
560
659
  label: "SST Registration No (SST)",
561
660
  placeholder: "Enter your SST number",
562
661
  "label-mark": "optional"
@@ -564,98 +663,101 @@ const de = ["src"], F = /* @__PURE__ */ G({
564
663
  ])
565
664
  ]),
566
665
  l[48] || (l[48] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
567
- o("div", De, [
568
- n(H, {
569
- modelValue: e(t).bankName,
570
- "onUpdate:modelValue": l[22] || (l[22] = (a) => e(t).bankName = a),
666
+ o("div", Ke, [
667
+ r(se, {
668
+ modelValue: e(a).bankName,
669
+ "onUpdate:modelValue": l[22] || (l[22] = (t) => e(a).bankName = t),
571
670
  label: "Bank",
572
671
  placeholder: "Select bank type",
573
672
  "label-mark": "required",
574
673
  rules: e(u)(e(d).string().min(1, "Bank Type is required")),
575
- items: e(ie).bankNameOptions()
674
+ items: e(ye).bankNameOptions()
576
675
  }, null, 8, ["modelValue", "rules", "items"]),
577
- n(f, {
578
- modelValue: e(t).bankHolderName,
579
- "onUpdate:modelValue": l[23] || (l[23] = (a) => e(t).bankHolderName = a),
676
+ r(n, {
677
+ modelValue: e(a).bankHolderName,
678
+ "onUpdate:modelValue": l[23] || (l[23] = (t) => e(a).bankHolderName = t),
580
679
  label: "Beneficiary Name",
581
680
  placeholder: "Enter Beneficiary Name",
582
681
  "label-mark": "required",
583
682
  rules: e(u)(e(d).string().min(1, "Beneficiary Name is required"))
584
683
  }, null, 8, ["modelValue", "rules"]),
585
- n(f, {
586
- modelValue: e(t).bankAccountNo,
587
- "onUpdate:modelValue": l[24] || (l[24] = (a) => e(t).bankAccountNo = a),
684
+ r(n, {
685
+ modelValue: e(a).bankAccountNo,
686
+ "onUpdate:modelValue": l[24] || (l[24] = (t) => e(a).bankAccountNo = t),
588
687
  label: "Account Number",
589
688
  placeholder: "Enter Account Number",
590
689
  "label-mark": "required",
591
690
  rules: e(u)(e(d).string().min(1, "Account Number is required"))
592
691
  }, null, 8, ["modelValue", "rules"]),
593
- n(F, {
692
+ r(F, {
594
693
  label: "Authorized Person ID",
595
694
  modelValue: e(i).authorizedPersonID,
596
- "onUpdate:modelValue": l[25] || (l[25] = (a) => e(i).authorizedPersonID = a),
695
+ "onUpdate:modelValue": l[25] || (l[25] = (t) => e(i).authorizedPersonID = t),
597
696
  type: "image",
598
697
  "restaurant-id": m.submission.restaurantId
599
698
  }, null, 8, ["modelValue", "restaurant-id"]),
600
- n(F, {
699
+ r(F, {
601
700
  label: "Outlet Photo",
602
701
  modelValue: e(i).outletPhoto,
603
- "onUpdate:modelValue": l[26] || (l[26] = (a) => e(i).outletPhoto = a),
702
+ "onUpdate:modelValue": l[26] || (l[26] = (t) => e(i).outletPhoto = t),
604
703
  type: "image",
605
704
  "restaurant-id": m.submission.restaurantId
606
705
  }, null, 8, ["modelValue", "restaurant-id"]),
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,
706
+ (b(!0), q(J, null, le([1, 2, 3, 4, 5].filter(
707
+ (t) => !!e(i)[`onsitePhoto${t}`]
708
+ ), (t) => (b(), B(F, {
709
+ key: t,
710
+ label: `Onsite Photo ${t}`,
711
+ modelValue: e(i)[`onsitePhoto${t}`],
712
+ "onUpdate:modelValue": (h) => e(i)[`onsitePhoto${t}`] = h,
612
713
  type: "image",
613
714
  "restaurant-id": m.submission.restaurantId
614
715
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
615
- n(F, {
716
+ e(i).interiorPhoto ? (b(), B(F, {
717
+ key: 0,
616
718
  label: "Interior Photo",
617
719
  modelValue: e(i).interiorPhoto,
618
- "onUpdate:modelValue": l[27] || (l[27] = (a) => e(i).interiorPhoto = a),
720
+ "onUpdate:modelValue": l[27] || (l[27] = (t) => e(i).interiorPhoto = t),
619
721
  type: "image",
620
722
  "restaurant-id": m.submission.restaurantId
621
- }, null, 8, ["modelValue", "restaurant-id"]),
622
- n(F, {
723
+ }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
724
+ r(F, {
623
725
  label: "Latest Bank Statement",
624
726
  modelValue: e(i).bankStatement,
625
- "onUpdate:modelValue": l[28] || (l[28] = (a) => e(i).bankStatement = a),
727
+ "onUpdate:modelValue": l[28] || (l[28] = (t) => e(i).bankStatement = t),
626
728
  type: "pdf",
627
729
  "restaurant-id": m.submission.restaurantId
628
730
  }, null, 8, ["modelValue", "restaurant-id"]),
629
- e(t).businessType === "private_limited" || e(t).businessType === "public_limited" ? (g(), j(F, {
630
- key: 0,
731
+ e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (b(), B(F, {
732
+ key: 1,
631
733
  label: "Superform",
632
734
  type: "pdf",
633
735
  modelValue: e(i).certificate,
634
- "onUpdate:modelValue": l[29] || (l[29] = (a) => e(i).certificate = a),
736
+ "onUpdate:modelValue": l[29] || (l[29] = (t) => e(i).certificate = t),
635
737
  "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, {
638
- key: 1,
738
+ }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
739
+ e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (b(), B(F, {
740
+ key: 2,
639
741
  label: "SSM Certificate & Info",
640
742
  type: "pdf",
641
743
  modelValue: e(i).certificate,
642
- "onUpdate:modelValue": l[30] || (l[30] = (a) => e(i).certificate = a),
744
+ "onUpdate:modelValue": l[30] || (l[30] = (t) => e(i).certificate = t),
643
745
  "restaurant-id": m.submission.restaurantId
644
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0)
746
+ }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0)
645
747
  ]),
646
748
  l[49] || (l[49] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
647
- o("div", Ee, [
648
- n(ce, {
749
+ o("div", he, [
750
+ r(Ce, {
649
751
  modelValue: e(i).signature,
650
- "onUpdate:modelValue": l[31] || (l[31] = (a) => e(i).signature = a),
752
+ "onUpdate:modelValue": l[31] || (l[31] = (t) => e(i).signature = t),
651
753
  "restaurant-id": m.submission.restaurantId,
652
754
  label: "Signature"
653
755
  }, null, 8, ["modelValue", "restaurant-id"]),
654
- n(F, {
756
+ r(F, {
655
757
  label: "Company Stamp",
656
758
  type: "image",
657
759
  modelValue: e(i).companyStamp,
658
- "onUpdate:modelValue": l[32] || (l[32] = (a) => e(i).companyStamp = a),
760
+ "onUpdate:modelValue": l[32] || (l[32] = (t) => e(i).companyStamp = t),
659
761
  "restaurant-id": m.submission.restaurantId
660
762
  }, null, 8, ["modelValue", "restaurant-id"])
661
763
  ])
@@ -665,7 +767,7 @@ const de = ["src"], F = /* @__PURE__ */ G({
665
767
  ], 64);
666
768
  };
667
769
  }
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({
770
+ }), Ye = { class: "space-y-2" }, Xe = { class: "text-gray-900" }, Ze = { class: "text-gray-900" }, _e = { class: "text-gray-900" }, el = { class: "text-gray-900" }, ll = { class: "text-gray-900" }, tl = { class: "text-gray-900" }, al = { class: "mt-6 grid grid-cols-4 gap-24" }, sl = { class: "w-full flex justify-end mt-6" }, ol = { class: "mt-6 grid grid-cols-4 gap-24" }, nl = { class: "col-span-2" }, rl = { class: "col-span-2" }, il = { class: "col-span-2" }, ul = { class: "col-span-2" }, dl = { class: "mt-6 grid grid-cols-4 gap-24" }, ml = { class: "mt-6 grid grid-cols-4 gap-24" }, pl = { class: "mt-6 grid grid-cols-4 gap-24" }, bl = { class: "col-span-2" }, cl = { class: "col-span-2" }, yl = { class: "col-span-2" }, gl = { class: "col-span-2" }, Vl = { class: "col-span-2" }, vl = { class: "col-span-2" }, fl = /* @__PURE__ */ Z({
669
771
  __name: "NTTSubmission",
670
772
  props: {
671
773
  submission: {
@@ -674,8 +776,8 @@ const de = ["src"], F = /* @__PURE__ */ G({
674
776
  }
675
777
  },
676
778
  emits: ["update:submission"],
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 = [
779
+ setup(m, { emit: O }) {
780
+ 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: T } = v.submission, w = $(""), p = [
679
781
  { key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
680
782
  {
681
783
  key: "localCardStandard",
@@ -709,427 +811,427 @@ const de = ["src"], F = /* @__PURE__ */ G({
709
811
  { key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
710
812
  ], E = Object.fromEntries(
711
813
  p.map((S) => [S.key, S.defaultValue])
712
- ), U = D(
713
- N.submission.rates ? Object.fromEntries(
714
- Object.entries(N.submission.rates).map(([S, s]) => [S, `${s}`])
814
+ ), D = $(
815
+ v.submission.rates ? Object.fromEntries(
816
+ Object.entries(v.submission.rates).map(([S, s]) => [S, `${s}`])
715
817
  ) : { ...E }
716
- ), J = W(
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 () => {
818
+ ), G = W(
819
+ () => Object.values(D.value).every((S) => parseFloat(S) > 0)
820
+ ), M = W(() => a.businessType === "juristic" ? "Juristic" : a.businessType === "individual" ? "Individual" : a.businessType || "-"), _ = () => R(async () => {
719
821
  try {
720
- const S = await M.reviewById(
721
- N.submission._id,
822
+ const S = await H.reviewById(
823
+ v.submission._id,
722
824
  {
723
- status: le.FdoOnboardStatus.enum.ready
825
+ status: ne.FdoOnboardStatus.enum.ready
724
826
  }
725
827
  );
726
- v("update:submission", S), y.open({
828
+ k("update:submission", S), g.open({
727
829
  type: "success",
728
830
  title: "Submission marked as ready"
729
831
  });
730
832
  } catch (S) {
731
- y.open({
833
+ g.open({
732
834
  type: "error",
733
835
  title: "Error occurs when marking submission as ready",
734
- message: z(S)
836
+ message: Q(S)
735
837
  });
736
838
  }
737
- }), f = () => w(async () => {
839
+ }), Y = () => R(async () => {
738
840
  try {
739
- const S = await M.reviewById(
740
- N.submission._id,
841
+ const S = await H.reviewById(
842
+ v.submission._id,
741
843
  {
742
844
  rates: Object.fromEntries(
743
845
  p.map((s) => [
744
846
  s.key,
745
- parseFloat(U.value[s.key])
847
+ parseFloat(D.value[s.key])
746
848
  ])
747
849
  ),
748
850
  status: "approved"
749
851
  }
750
852
  );
751
- v("update:submission", S), y.open({
853
+ k("update:submission", S), g.open({
752
854
  type: "success",
753
855
  title: "Submission updated successfully"
754
856
  });
755
857
  } catch (S) {
756
- y.open({
858
+ g.open({
757
859
  type: "error",
758
860
  title: "Error occurs when updating submission",
759
- message: z(S)
861
+ message: Q(S)
760
862
  });
761
863
  }
762
- }), K = () => w(async () => {
864
+ }), ee = () => R(async () => {
763
865
  try {
764
- const S = await M.reviewById(
765
- N.submission._id,
866
+ const S = await H.reviewById(
867
+ v.submission._id,
766
868
  {
767
869
  status: "rejected",
768
- statusReason: q.value
870
+ statusReason: w.value
769
871
  }
770
872
  );
771
- v("update:submission", S), P.value = !1, y.open({
873
+ k("update:submission", S), P.value = !1, g.open({
772
874
  type: "success",
773
875
  title: "Submission updated successfully"
774
876
  });
775
877
  } catch (S) {
776
- y.open({
878
+ g.open({
777
879
  type: "error",
778
880
  title: "Error occurs when updating submission",
779
- message: z(S)
881
+ message: Q(S)
780
882
  });
781
883
  }
782
884
  });
783
885
  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, [
886
+ const N = C("FmTextField"), X = C("FmButton"), y = C("FmTextarea"), l = C("FmDialog"), j = C("FmPhoneNumber"), L = C("FmForm");
887
+ return b(), q(J, null, [
888
+ o("div", Ye, [
787
889
  o("div", null, [
788
890
  s[31] || (s[31] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
789
- o("span", Oe, x(e(R)), 1)
891
+ o("span", Xe, I(e(U)), 1)
790
892
  ]),
791
893
  o("div", null, [
792
894
  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)
895
+ o("span", Ze, I(e(V).name) + " ( " + I(e(V).legalName) + " )", 1)
794
896
  ]),
795
897
  o("div", null, [
796
898
  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)
899
+ o("span", _e, I(e(V).email), 1)
798
900
  ]),
799
901
  o("div", null, [
800
902
  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)
903
+ o("span", el, I(e(V).phoneNo), 1)
802
904
  ]),
803
905
  o("div", null, [
804
906
  s[35] || (s[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
805
- o("span", ze, [
806
- n(te, { data: e(I) }, null, 8, ["data"])
907
+ o("span", ll, [
908
+ r(ie, { data: e(x) }, null, 8, ["data"])
807
909
  ])
808
910
  ]),
809
911
  o("div", null, [
810
912
  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)
913
+ o("span", tl, I(e(T)), 1)
812
914
  ])
813
915
  ]),
814
916
  s[43] || (s[43] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
815
- o("div", Je, [
816
- (g(), $(Q, null, h(p, (r) => n(k, {
817
- key: r.key,
818
- modelValue: U.value[r.key],
819
- "onUpdate:modelValue": (Y) => U.value[r.key] = Y,
820
- label: r.label,
917
+ o("div", al, [
918
+ (b(), q(J, null, le(p, (n) => r(N, {
919
+ key: n.key,
920
+ modelValue: D.value[n.key],
921
+ "onUpdate:modelValue": (K) => D.value[n.key] = K,
922
+ label: n.label,
821
923
  "label-mark": "required",
822
924
  type: "number",
823
925
  inputmode: "numeric",
824
926
  decimal: 2,
825
927
  rules: e(u)(
826
- e(d).string().min(1, "Rate is required").transform((Y) => parseFloat(Y)).refine((Y) => !isNaN(Y), { message: "Rate must be a number" })
928
+ e(d).string().min(1, "Rate is required").transform((K) => parseFloat(K)).refine((K) => !isNaN(K), { message: "Rate must be a number" })
827
929
  )
828
930
  }, {
829
- append: V(() => [...s[37] || (s[37] = [
830
- L("%", -1)
931
+ append: f(() => [...s[37] || (s[37] = [
932
+ z("%", -1)
831
933
  ])]),
832
934
  _: 1
833
935
  }, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
834
936
  ]),
835
- o("div", Qe, [
836
- n(a, {
937
+ o("div", sl, [
938
+ r(l, {
837
939
  modelValue: P.value,
838
- "onUpdate:modelValue": s[1] || (s[1] = (r) => P.value = r)
940
+ "onUpdate:modelValue": s[1] || (s[1] = (n) => P.value = n)
839
941
  }, {
840
- "dialog-button": V(() => [
841
- n(H, {
942
+ "dialog-button": f(() => [
943
+ r(X, {
842
944
  class: "mr-6",
843
945
  type: "button",
844
946
  variant: "destructive",
845
947
  "prepend-icon": "block",
846
- loading: e(b),
948
+ loading: e(c),
847
949
  label: "Reject Submission"
848
950
  }, null, 8, ["loading"])
849
951
  ]),
850
- "dialog-header": V(() => [...s[38] || (s[38] = [
952
+ "dialog-header": f(() => [...s[38] || (s[38] = [
851
953
  o("div", null, "Rejecting Submission", -1)
852
954
  ])]),
853
- default: V(() => [
854
- n(X, {
855
- modelValue: q.value,
856
- "onUpdate:modelValue": s[0] || (s[0] = (r) => q.value = r),
955
+ default: f(() => [
956
+ r(y, {
957
+ modelValue: w.value,
958
+ "onUpdate:modelValue": s[0] || (s[0] = (n) => w.value = n),
857
959
  label: "Reason for Rejection",
858
960
  "label-mark": "optional",
859
961
  "helper-text": "Please provide a reason for rejection."
860
962
  }, null, 8, ["modelValue"]),
861
- n(H, {
963
+ r(X, {
862
964
  class: "mb-2 mt-6 w-full",
863
965
  label: "Submit",
864
966
  "prepend-icon": "save",
865
- onClick: K,
866
- loading: e(b)
967
+ onClick: ee,
968
+ loading: e(c)
867
969
  }, null, 8, ["loading"])
868
970
  ]),
869
971
  _: 1
870
972
  }, 8, ["modelValue"]),
871
- n(H, {
973
+ r(X, {
872
974
  type: "button",
873
975
  variant: "primary",
874
976
  "prepend-icon": "approval",
875
977
  label: "Approve Submission with Rates",
876
- disabled: !J.value,
877
- onClick: f,
878
- loading: e(b)
978
+ disabled: !G.value,
979
+ onClick: Y,
980
+ loading: e(c)
879
981
  }, null, 8, ["disabled", "loading"]),
880
- e(I) === "approved" ? (g(), j(H, {
982
+ e(x) === "approved" ? (b(), B(X, {
881
983
  key: 0,
882
984
  type: "button",
883
985
  variant: "secondary",
884
986
  "prepend-icon": "check_circle",
885
987
  label: "Mark as Ready",
886
988
  class: "ml-6",
887
- onClick: l,
888
- loading: e(b)
889
- }, null, 8, ["loading"])) : O("", !0)
989
+ onClick: _,
990
+ loading: e(c)
991
+ }, null, 8, ["loading"])) : A("", !0)
890
992
  ]),
891
- n(se, { disabled: !0 }, {
892
- default: V(() => [
993
+ r(L, { disabled: !0 }, {
994
+ default: f(() => [
893
995
  s[39] || (s[39] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
894
- o("div", Ge, [
895
- o("div", Ke, [
896
- n(k, {
897
- modelValue: e(t).companyName,
898
- "onUpdate:modelValue": s[2] || (s[2] = (r) => e(t).companyName = r),
996
+ o("div", ol, [
997
+ o("div", nl, [
998
+ r(N, {
999
+ modelValue: e(a).companyName,
1000
+ "onUpdate:modelValue": s[2] || (s[2] = (n) => e(a).companyName = n),
899
1001
  label: "Company Name",
900
1002
  "label-mark": "required",
901
1003
  rules: e(u)(e(d).string().min(1, "Company Name is required"))
902
1004
  }, null, 8, ["modelValue", "rules"])
903
1005
  ]),
904
- o("div", Ye, [
905
- n(k, {
906
- modelValue: e(t).outletName,
907
- "onUpdate:modelValue": s[3] || (s[3] = (r) => e(t).outletName = r),
1006
+ o("div", rl, [
1007
+ r(N, {
1008
+ modelValue: e(a).outletName,
1009
+ "onUpdate:modelValue": s[3] || (s[3] = (n) => e(a).outletName = n),
908
1010
  label: "Outlet Name (Thai)",
909
1011
  "label-mark": "required",
910
1012
  rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
911
1013
  }, null, 8, ["modelValue", "rules"])
912
1014
  ]),
913
- o("div", Xe, [
914
- n(k, {
915
- modelValue: e(t).outletNameEnglish,
916
- "onUpdate:modelValue": s[4] || (s[4] = (r) => e(t).outletNameEnglish = r),
1015
+ o("div", il, [
1016
+ r(N, {
1017
+ modelValue: e(a).outletNameEnglish,
1018
+ "onUpdate:modelValue": s[4] || (s[4] = (n) => e(a).outletNameEnglish = n),
917
1019
  label: "Outlet Name (English)",
918
1020
  "label-mark": "required",
919
1021
  rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
920
1022
  }, null, 8, ["modelValue", "rules"])
921
1023
  ]),
922
- o("div", Ze, [
923
- n(k, {
924
- modelValue: e(t).outletAddress,
925
- "onUpdate:modelValue": s[5] || (s[5] = (r) => e(t).outletAddress = r),
1024
+ o("div", ul, [
1025
+ r(N, {
1026
+ modelValue: e(a).outletAddress,
1027
+ "onUpdate:modelValue": s[5] || (s[5] = (n) => e(a).outletAddress = n),
926
1028
  label: "Outlet Address",
927
1029
  "label-mark": "required",
928
1030
  rules: e(u)(e(d).string().min(1, "Outlet Address is required"))
929
1031
  }, null, 8, ["modelValue", "rules"])
930
1032
  ]),
931
- n(k, {
932
- modelValue: e(t).outletPostCode,
933
- "onUpdate:modelValue": s[6] || (s[6] = (r) => e(t).outletPostCode = r),
1033
+ r(N, {
1034
+ modelValue: e(a).outletPostCode,
1035
+ "onUpdate:modelValue": s[6] || (s[6] = (n) => e(a).outletPostCode = n),
934
1036
  label: "Post Code",
935
1037
  "label-mark": "required",
936
1038
  rules: e(u)(e(d).string().min(1, "Post Code is required"))
937
1039
  }, null, 8, ["modelValue", "rules"]),
938
- n(k, {
939
- modelValue: e(t).outletState,
940
- "onUpdate:modelValue": s[7] || (s[7] = (r) => e(t).outletState = r),
1040
+ r(N, {
1041
+ modelValue: e(a).outletState,
1042
+ "onUpdate:modelValue": s[7] || (s[7] = (n) => e(a).outletState = n),
941
1043
  label: "State",
942
1044
  "label-mark": "required",
943
1045
  rules: e(u)(e(d).string().min(1, "State is required"))
944
1046
  }, null, 8, ["modelValue", "rules"]),
945
- n(k, {
946
- modelValue: e(t).outletCity,
947
- "onUpdate:modelValue": s[8] || (s[8] = (r) => e(t).outletCity = r),
1047
+ r(N, {
1048
+ modelValue: e(a).outletCity,
1049
+ "onUpdate:modelValue": s[8] || (s[8] = (n) => e(a).outletCity = n),
948
1050
  label: "City",
949
1051
  "label-mark": "required",
950
1052
  rules: e(u)(e(d).string().min(1, "City is required"))
951
1053
  }, null, 8, ["modelValue", "rules"]),
952
- n(k, {
953
- "model-value": T.value,
1054
+ r(N, {
1055
+ "model-value": M.value,
954
1056
  label: "Business Type",
955
1057
  "label-mark": "required"
956
1058
  }, null, 8, ["model-value"]),
957
- n(k, {
958
- modelValue: e(t).numberOfDevices,
959
- "onUpdate:modelValue": s[9] || (s[9] = (r) => e(t).numberOfDevices = r),
1059
+ r(N, {
1060
+ modelValue: e(a).numberOfDevices,
1061
+ "onUpdate:modelValue": s[9] || (s[9] = (n) => e(a).numberOfDevices = n),
960
1062
  label: "Number of Devices",
961
1063
  "label-mark": "required"
962
1064
  }, null, 8, ["modelValue"])
963
1065
  ]),
964
1066
  s[40] || (s[40] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
965
- o("div", he, [
966
- n(k, {
967
- modelValue: e(t).bankName,
968
- "onUpdate:modelValue": s[10] || (s[10] = (r) => e(t).bankName = r),
1067
+ o("div", dl, [
1068
+ r(N, {
1069
+ modelValue: e(a).bankName,
1070
+ "onUpdate:modelValue": s[10] || (s[10] = (n) => e(a).bankName = n),
969
1071
  label: "Bank Name",
970
1072
  "label-mark": "required",
971
1073
  rules: e(u)(e(d).string().min(1, "Bank Name is required"))
972
1074
  }, null, 8, ["modelValue", "rules"]),
973
- n(k, {
974
- modelValue: e(t).bankHolderName,
975
- "onUpdate:modelValue": s[11] || (s[11] = (r) => e(t).bankHolderName = r),
1075
+ r(N, {
1076
+ modelValue: e(a).bankHolderName,
1077
+ "onUpdate:modelValue": s[11] || (s[11] = (n) => e(a).bankHolderName = n),
976
1078
  label: "Bank Holder Name",
977
1079
  "label-mark": "required",
978
1080
  rules: e(u)(e(d).string().min(1, "Bank Holder Name is required"))
979
1081
  }, null, 8, ["modelValue", "rules"]),
980
- n(k, {
981
- modelValue: e(t).bankAccountNo,
982
- "onUpdate:modelValue": s[12] || (s[12] = (r) => e(t).bankAccountNo = r),
1082
+ r(N, {
1083
+ modelValue: e(a).bankAccountNo,
1084
+ "onUpdate:modelValue": s[12] || (s[12] = (n) => e(a).bankAccountNo = n),
983
1085
  label: "Bank Account No",
984
1086
  "label-mark": "required",
985
1087
  rules: e(u)(e(d).string().min(1, "Bank Account No is required"))
986
1088
  }, null, 8, ["modelValue", "rules"]),
987
- n(k, {
988
- modelValue: e(t).bankBranch,
989
- "onUpdate:modelValue": s[13] || (s[13] = (r) => e(t).bankBranch = r),
1089
+ r(N, {
1090
+ modelValue: e(a).bankBranch,
1091
+ "onUpdate:modelValue": s[13] || (s[13] = (n) => e(a).bankBranch = n),
990
1092
  label: "Bank Branch",
991
1093
  "label-mark": "required",
992
1094
  rules: e(u)(e(d).string().min(1, "Bank Branch is required"))
993
1095
  }, null, 8, ["modelValue", "rules"]),
994
- n(k, {
995
- modelValue: e(t).bankBranchCode,
996
- "onUpdate:modelValue": s[14] || (s[14] = (r) => e(t).bankBranchCode = r),
1096
+ r(N, {
1097
+ modelValue: e(a).bankBranchCode,
1098
+ "onUpdate:modelValue": s[14] || (s[14] = (n) => e(a).bankBranchCode = n),
997
1099
  label: "Bank Branch Code",
998
1100
  "label-mark": "required",
999
1101
  rules: e(u)(e(d).string().min(1, "Bank Branch Code is required"))
1000
1102
  }, null, 8, ["modelValue", "rules"])
1001
1103
  ]),
1002
1104
  s[41] || (s[41] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1003
- o("div", _e, [
1004
- n(F, {
1105
+ o("div", ml, [
1106
+ r(F, {
1005
1107
  label: "Authorized Person ID",
1006
1108
  modelValue: e(i).authorizedPersonID,
1007
- "onUpdate:modelValue": s[15] || (s[15] = (r) => e(i).authorizedPersonID = r),
1109
+ "onUpdate:modelValue": s[15] || (s[15] = (n) => e(i).authorizedPersonID = n),
1008
1110
  type: "image",
1009
1111
  "restaurant-id": m.submission.restaurantId
1010
1112
  }, null, 8, ["modelValue", "restaurant-id"]),
1011
- n(F, {
1113
+ r(F, {
1012
1114
  label: "Outlet Photo",
1013
1115
  modelValue: e(i).outletPhoto,
1014
- "onUpdate:modelValue": s[16] || (s[16] = (r) => e(i).outletPhoto = r),
1116
+ "onUpdate:modelValue": s[16] || (s[16] = (n) => e(i).outletPhoto = n),
1015
1117
  type: "image",
1016
1118
  "restaurant-id": m.submission.restaurantId
1017
1119
  }, null, 8, ["modelValue", "restaurant-id"]),
1018
- n(F, {
1120
+ r(F, {
1019
1121
  label: "Interior Photo",
1020
1122
  modelValue: e(i).interiorPhoto,
1021
- "onUpdate:modelValue": s[17] || (s[17] = (r) => e(i).interiorPhoto = r),
1123
+ "onUpdate:modelValue": s[17] || (s[17] = (n) => e(i).interiorPhoto = n),
1022
1124
  type: "image",
1023
1125
  "restaurant-id": m.submission.restaurantId
1024
1126
  }, null, 8, ["modelValue", "restaurant-id"]),
1025
- n(F, {
1127
+ r(F, {
1026
1128
  label: "Bank Statement",
1027
1129
  modelValue: e(i).bankStatement,
1028
- "onUpdate:modelValue": s[18] || (s[18] = (r) => e(i).bankStatement = r),
1130
+ "onUpdate:modelValue": s[18] || (s[18] = (n) => e(i).bankStatement = n),
1029
1131
  type: "pdf",
1030
1132
  "restaurant-id": m.submission.restaurantId
1031
1133
  }, null, 8, ["modelValue", "restaurant-id"]),
1032
- e(t).businessType === "juristic" ? (g(), j(F, {
1134
+ e(a).businessType === "juristic" ? (b(), B(F, {
1033
1135
  key: 0,
1034
1136
  label: "Company Certificate",
1035
1137
  type: "pdf",
1036
1138
  modelValue: e(i).companyCertificate,
1037
- "onUpdate:modelValue": s[19] || (s[19] = (r) => e(i).companyCertificate = r),
1139
+ "onUpdate:modelValue": s[19] || (s[19] = (n) => e(i).companyCertificate = n),
1038
1140
  "restaurant-id": m.submission.restaurantId
1039
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
1040
- e(t).businessType === "juristic" ? (g(), j(F, {
1141
+ }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
1142
+ e(a).businessType === "juristic" ? (b(), B(F, {
1041
1143
  key: 1,
1042
1144
  label: "VAT Certificate",
1043
1145
  type: "pdf",
1044
1146
  modelValue: e(i).vatCertificate,
1045
- "onUpdate:modelValue": s[20] || (s[20] = (r) => e(i).vatCertificate = r),
1147
+ "onUpdate:modelValue": s[20] || (s[20] = (n) => e(i).vatCertificate = n),
1046
1148
  "restaurant-id": m.submission.restaurantId
1047
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
1048
- e(t).businessType === "individual" ? (g(), j(F, {
1149
+ }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
1150
+ e(a).businessType === "individual" ? (b(), B(F, {
1049
1151
  key: 2,
1050
1152
  label: "Commercial Certificate",
1051
1153
  type: "pdf",
1052
1154
  modelValue: e(i).commercialCertificate,
1053
- "onUpdate:modelValue": s[21] || (s[21] = (r) => e(i).commercialCertificate = r),
1155
+ "onUpdate:modelValue": s[21] || (s[21] = (n) => e(i).commercialCertificate = n),
1054
1156
  "restaurant-id": m.submission.restaurantId
1055
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0)
1157
+ }, null, 8, ["modelValue", "restaurant-id"])) : A("", !0)
1056
1158
  ]),
1057
1159
  s[42] || (s[42] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1058
- o("div", el, [
1059
- o("div", ll, [
1060
- n(k, {
1061
- modelValue: e(t).picName,
1062
- "onUpdate:modelValue": s[22] || (s[22] = (r) => e(t).picName = r),
1160
+ o("div", pl, [
1161
+ o("div", bl, [
1162
+ r(N, {
1163
+ modelValue: e(a).picName,
1164
+ "onUpdate:modelValue": s[22] || (s[22] = (n) => e(a).picName = n),
1063
1165
  label: "PIC Name",
1064
1166
  "label-mark": "required",
1065
1167
  rules: e(u)(e(d).string().min(1, "PIC Name is required"))
1066
1168
  }, null, 8, ["modelValue", "rules"])
1067
1169
  ]),
1068
- o("div", al, [
1069
- n(k, {
1070
- modelValue: e(t).picRole,
1071
- "onUpdate:modelValue": s[23] || (s[23] = (r) => e(t).picRole = r),
1170
+ o("div", cl, [
1171
+ r(N, {
1172
+ modelValue: e(a).picRole,
1173
+ "onUpdate:modelValue": s[23] || (s[23] = (n) => e(a).picRole = n),
1072
1174
  label: "PIC Role",
1073
1175
  "label-mark": "required",
1074
1176
  rules: e(u)(e(d).string().min(1, "PIC Role is required"))
1075
1177
  }, null, 8, ["modelValue", "rules"])
1076
1178
  ]),
1077
- o("div", tl, [
1078
- n(k, {
1079
- modelValue: e(t).picEmail,
1080
- "onUpdate:modelValue": s[24] || (s[24] = (r) => e(t).picEmail = r),
1179
+ o("div", yl, [
1180
+ r(N, {
1181
+ modelValue: e(a).picEmail,
1182
+ "onUpdate:modelValue": s[24] || (s[24] = (n) => e(a).picEmail = n),
1081
1183
  label: "PIC Email",
1082
1184
  "label-mark": "required",
1083
1185
  rules: e(u)(e(d).string().min(1, "PIC Email is required"))
1084
1186
  }, null, 8, ["modelValue", "rules"])
1085
1187
  ]),
1086
- o("div", sl, [
1087
- n(Z, {
1088
- "model-value": e(t).picContact,
1089
- "onUpdate:modelValue": s[25] || (s[25] = (r) => e(t).picContact = r),
1188
+ o("div", gl, [
1189
+ r(j, {
1190
+ "model-value": e(a).picContact,
1191
+ "onUpdate:modelValue": s[25] || (s[25] = (n) => e(a).picContact = n),
1090
1192
  "default-country": "TH",
1091
1193
  label: "PIC Contact",
1092
1194
  "label-mark": "required",
1093
1195
  rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
1094
1196
  }, null, 8, ["model-value", "rules"])
1095
1197
  ]),
1096
- o("div", ol, [
1097
- n(k, {
1098
- modelValue: e(t).witnessName,
1099
- "onUpdate:modelValue": s[26] || (s[26] = (r) => e(t).witnessName = r),
1198
+ o("div", Vl, [
1199
+ r(N, {
1200
+ modelValue: e(a).witnessName,
1201
+ "onUpdate:modelValue": s[26] || (s[26] = (n) => e(a).witnessName = n),
1100
1202
  label: "Witness Name",
1101
1203
  "label-mark": "required",
1102
1204
  rules: e(u)(e(d).string().min(1, "Witness Name is required"))
1103
1205
  }, null, 8, ["modelValue", "rules"])
1104
1206
  ]),
1105
- o("div", nl, [
1106
- n(k, {
1107
- modelValue: e(t).witnessRole,
1108
- "onUpdate:modelValue": s[27] || (s[27] = (r) => e(t).witnessRole = r),
1207
+ o("div", vl, [
1208
+ r(N, {
1209
+ modelValue: e(a).witnessRole,
1210
+ "onUpdate:modelValue": s[27] || (s[27] = (n) => e(a).witnessRole = n),
1109
1211
  label: "Witness Role",
1110
1212
  "label-mark": "required",
1111
1213
  rules: e(u)(e(d).string().min(1, "Witness Role is required"))
1112
1214
  }, null, 8, ["modelValue", "rules"])
1113
1215
  ]),
1114
- n(F, {
1216
+ r(F, {
1115
1217
  label: "Signature",
1116
1218
  type: "image",
1117
1219
  modelValue: e(i).signature,
1118
- "onUpdate:modelValue": s[28] || (s[28] = (r) => e(i).signature = r),
1220
+ "onUpdate:modelValue": s[28] || (s[28] = (n) => e(i).signature = n),
1119
1221
  "restaurant-id": m.submission.restaurantId
1120
1222
  }, null, 8, ["modelValue", "restaurant-id"]),
1121
- n(F, {
1223
+ r(F, {
1122
1224
  label: "Witness Signature",
1123
1225
  type: "image",
1124
1226
  modelValue: e(i).witnessSignature,
1125
- "onUpdate:modelValue": s[29] || (s[29] = (r) => e(i).witnessSignature = r),
1227
+ "onUpdate:modelValue": s[29] || (s[29] = (n) => e(i).witnessSignature = n),
1126
1228
  "restaurant-id": m.submission.restaurantId
1127
1229
  }, null, 8, ["modelValue", "restaurant-id"]),
1128
- n(F, {
1230
+ r(F, {
1129
1231
  label: "Company Stamp",
1130
1232
  type: "image",
1131
1233
  modelValue: e(i).companyStamp,
1132
- "onUpdate:modelValue": s[30] || (s[30] = (r) => e(i).companyStamp = r),
1234
+ "onUpdate:modelValue": s[30] || (s[30] = (n) => e(i).companyStamp = n),
1133
1235
  "restaurant-id": m.submission.restaurantId
1134
1236
  }, null, 8, ["modelValue", "restaurant-id"])
1135
1237
  ])
@@ -1139,7 +1241,7 @@ const de = ["src"], F = /* @__PURE__ */ G({
1139
1241
  ], 64);
1140
1242
  };
1141
1243
  }
1142
- }), il = /* @__PURE__ */ G({
1244
+ }), kl = /* @__PURE__ */ Z({
1143
1245
  __name: "TyroSubmission",
1144
1246
  props: {
1145
1247
  submission: {
@@ -1149,49 +1251,49 @@ const de = ["src"], F = /* @__PURE__ */ G({
1149
1251
  },
1150
1252
  emits: ["update:submission"],
1151
1253
  setup(m) {
1152
- const A = m, N = W(() => {
1153
- const v = A.submission.fields || {}, y = (P) => v[P] || "N/A";
1254
+ const O = m, v = W(() => {
1255
+ const k = O.submission.fields || {}, g = (P) => k[P] || "N/A";
1154
1256
  return [
1155
1257
  {
1156
1258
  label: "Tyro POS Reference ID",
1157
- value: y("tyroPosReference")
1259
+ value: g("tyroPosReference")
1158
1260
  },
1159
1261
  {
1160
1262
  label: "Tyro Merchant ID",
1161
- value: y("tyroMerchantId")
1263
+ value: g("tyroMerchantId")
1162
1264
  },
1163
1265
  {
1164
1266
  label: "Tyro Merchant Name",
1165
- value: y("tyroMerchantDisplayName")
1267
+ value: g("tyroMerchantDisplayName")
1166
1268
  },
1167
1269
  {
1168
1270
  label: "Authorised",
1169
- value: y("tyroIsAuthorised")
1271
+ value: g("tyroIsAuthorised")
1170
1272
  }
1171
1273
  ];
1172
1274
  });
1173
- return (v, y) => {
1174
- const P = C("FmCardHeader"), b = C("FmCardSection"), w = C("FmCard");
1175
- return g(), j(w, {
1275
+ return (k, g) => {
1276
+ const P = C("FmCardHeader"), c = C("FmCardSection"), R = C("FmCard");
1277
+ return b(), B(R, {
1176
1278
  class: "max-w-3xl mt-8 p-6",
1177
1279
  variant: "elevated"
1178
1280
  }, {
1179
- default: V(() => [
1180
- n(b, { class: "flex flex-col gap-16 justify-between" }, {
1181
- default: V(() => [
1182
- n(P, {
1281
+ default: f(() => [
1282
+ r(c, { class: "flex flex-col gap-16 justify-between" }, {
1283
+ default: f(() => [
1284
+ r(P, {
1183
1285
  class: "p-0",
1184
1286
  title: "Tyro Authorisation",
1185
1287
  subtitle: ""
1186
1288
  }),
1187
- n(b, { class: "p-0" }, {
1188
- default: V(() => [
1189
- (g(!0), $(Q, null, h(N.value, (t) => (g(), $("p", {
1190
- key: t.label,
1289
+ r(c, { class: "p-0" }, {
1290
+ default: f(() => [
1291
+ (b(!0), q(J, null, le(v.value, (a) => (b(), q("p", {
1292
+ key: a.label,
1191
1293
  class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
1192
1294
  }, [
1193
- o("b", null, x(t.label), 1),
1194
- L(": " + x(t.value), 1)
1295
+ o("b", null, I(a.label), 1),
1296
+ z(": " + I(a.value), 1)
1195
1297
  ]))), 128))
1196
1298
  ]),
1197
1299
  _: 1
@@ -1204,10 +1306,10 @@ const de = ["src"], F = /* @__PURE__ */ G({
1204
1306
  });
1205
1307
  };
1206
1308
  }
1207
- }), ul = {
1309
+ }), Cl = {
1208
1310
  key: 0,
1209
1311
  class: "flex items-center justify-center min-h-[80vh]"
1210
- }, dl = { class: "px-32 pb-32" }, Nl = /* @__PURE__ */ G({
1312
+ }, Nl = { class: "px-32 pb-32" }, Al = /* @__PURE__ */ Z({
1211
1313
  __name: "OnboardForm",
1212
1314
  props: {
1213
1315
  submissionId: {
@@ -1216,96 +1318,96 @@ const de = ["src"], F = /* @__PURE__ */ G({
1216
1318
  }
1217
1319
  },
1218
1320
  setup(m) {
1219
- const { startAsyncCall: A, isLoading: N } = _(), v = ee(), y = m, P = re(), b = D(null), w = W(
1321
+ const { startAsyncCall: O, isLoading: v } = te(), k = ae(), g = m, P = ce(), c = $(null), R = W(
1220
1322
  () => {
1221
- var B;
1222
- return ((B = b.value) == null ? void 0 : B.type) === le.FdoOnboardType.enum.tyro;
1323
+ var T;
1324
+ return ((T = c.value) == null ? void 0 : T.type) === ne.FdoOnboardType.enum.tyro;
1223
1325
  }
1224
- ), t = () => {
1326
+ ), a = () => {
1225
1327
  if (window.history.length > 1) {
1226
1328
  P.back();
1227
1329
  return;
1228
1330
  }
1229
1331
  P.push({ name: "mf-payment-admin.onboard-submission" });
1230
1332
  };
1231
- oe(() => {
1232
- A(async () => {
1233
- b.value = await M.readById(y.submissionId);
1333
+ pe(() => {
1334
+ O(async () => {
1335
+ c.value = await H.readById(g.submissionId);
1234
1336
  });
1235
1337
  });
1236
1338
  const i = W(() => {
1237
- if (!b.value) return null;
1238
- switch (b.value.type) {
1339
+ if (!c.value) return null;
1340
+ switch (c.value.type) {
1239
1341
  case "softspace":
1240
- return $e;
1342
+ return Ge;
1241
1343
  case "ntt":
1242
- return rl;
1344
+ return fl;
1243
1345
  case "tyro":
1244
- return il;
1346
+ return kl;
1245
1347
  default:
1246
1348
  return null;
1247
1349
  }
1248
- }), R = D(0);
1249
- function c(B) {
1250
- b.value = B, R.value = Date.now();
1350
+ }), U = $(0);
1351
+ function V(T) {
1352
+ c.value = T, U.value = Date.now();
1251
1353
  }
1252
- const I = async (B) => {
1253
- var q, p;
1254
- if (b.value)
1255
- switch (B) {
1354
+ const x = async (T) => {
1355
+ var w, p;
1356
+ if (c.value)
1357
+ switch (T) {
1256
1358
  case "preview":
1257
1359
  let E;
1258
1360
  try {
1259
- E = v.open({
1361
+ E = k.open({
1260
1362
  message: "Generating preview document...",
1261
1363
  type: "info"
1262
- }), await M.previewDocument(
1263
- (q = b.value) == null ? void 0 : q._id
1364
+ }), await H.previewDocument(
1365
+ (w = c.value) == null ? void 0 : w._id
1264
1366
  );
1265
- } catch (U) {
1266
- v.open({
1367
+ } catch (D) {
1368
+ k.open({
1267
1369
  type: "error",
1268
1370
  title: "Error occurs when generating submission document",
1269
- message: z(U)
1371
+ message: Q(D)
1270
1372
  });
1271
1373
  } finally {
1272
- E && v.close(E);
1374
+ E && k.close(E);
1273
1375
  }
1274
1376
  break;
1275
1377
  case "send":
1276
1378
  try {
1277
- v.open({
1379
+ k.open({
1278
1380
  message: "Sending onboarding document...",
1279
1381
  type: "info"
1280
- }), await M.sendDocument(
1281
- (p = b.value) == null ? void 0 : p._id
1282
- ), v.open({
1382
+ }), await H.sendDocument(
1383
+ (p = c.value) == null ? void 0 : p._id
1384
+ ), k.open({
1283
1385
  type: "success",
1284
1386
  title: "Submission documents send successfully"
1285
1387
  });
1286
- } catch (U) {
1287
- v.open({
1388
+ } catch (D) {
1389
+ k.open({
1288
1390
  type: "error",
1289
1391
  title: "Error occurs when sending document",
1290
- message: z(U)
1392
+ message: Q(D)
1291
1393
  });
1292
1394
  }
1293
1395
  break;
1294
1396
  }
1295
1397
  };
1296
- return (B, q) => {
1297
- var U, J;
1398
+ return (T, w) => {
1399
+ var D, G;
1298
1400
  const p = C("FmCircularProgress"), E = C("FmPageHead");
1299
- return e(N) ? (g(), $("div", ul, [
1300
- n(p, { size: "xxl" })
1301
- ])) : (g(), $(Q, { key: 1 }, [
1302
- n(E, {
1303
- title: `Submission - ${(U = b.value) == null ? void 0 : U.type}`,
1304
- description: `ID - ${(J = b.value) == null ? void 0 : J._id}`,
1401
+ return e(v) ? (b(), q("div", Cl, [
1402
+ r(p, { size: "xxl" })
1403
+ ])) : (b(), q(J, { key: 1 }, [
1404
+ r(E, {
1405
+ title: `Submission - ${(D = c.value) == null ? void 0 : D.type}`,
1406
+ description: `ID - ${(G = c.value) == null ? void 0 : G._id}`,
1305
1407
  "back-button": !0,
1306
- "onClick:back": t,
1307
- "onClick:action": I,
1308
- actions: w.value ? [] : [
1408
+ "onClick:back": a,
1409
+ "onClick:action": x,
1410
+ actions: R.value ? [] : [
1309
1411
  {
1310
1412
  label: "Preview Document",
1311
1413
  value: "preview",
@@ -1319,11 +1421,11 @@ const de = ["src"], F = /* @__PURE__ */ G({
1319
1421
  }
1320
1422
  ]
1321
1423
  }, null, 8, ["title", "description", "actions"]),
1322
- o("div", dl, [
1323
- (g(), j(ne(i.value), {
1324
- key: R.value,
1325
- submission: b.value,
1326
- "onUpdate:submission": c
1424
+ o("div", Nl, [
1425
+ (b(), B(be(i.value), {
1426
+ key: U.value,
1427
+ submission: c.value,
1428
+ "onUpdate:submission": V
1327
1429
  }, null, 40, ["submission"]))
1328
1430
  ])
1329
1431
  ], 64));
@@ -1331,5 +1433,5 @@ const de = ["src"], F = /* @__PURE__ */ G({
1331
1433
  }
1332
1434
  });
1333
1435
  export {
1334
- Nl as default
1436
+ Al as default
1335
1437
  };