@feedmepos/mf-payment 1.5.14-dev → 1.5.15-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 (61) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BmOIDlHF.js → Actions.vue_vue_type_script_setup_true_lang-CLkp8JcO.js} +2 -2
  2. package/dist/{Chargeback-BwFrnuVw.js → Chargeback-R8rLkSPi.js} +5 -5
  3. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-VCdsMJXV.js → DocumentViewer.vue_vue_type_script_setup_true_lang-CnU1zi3r.js} +1 -1
  4. package/dist/{OnboardForm-D-TlxYQm.js → OnboardForm-CNaKWFQX.js} +5 -5
  5. package/dist/{OnboardForm-1bjTqyjr.js → OnboardForm-DCRxmpgD.js} +364 -335
  6. package/dist/{OnboardSubmission-B1p_ss6c.js → OnboardSubmission-BUoveq0K.js} +5 -5
  7. package/dist/{OnboardSubmission-CsFQc3w-.js → OnboardSubmission-DhXtYG1S.js} +2 -2
  8. package/dist/{PayoutAccount-CpaFIxzp.js → PayoutAccount-C-quZLpf.js} +4 -4
  9. package/dist/{PayoutAccount-gKGc70jp.js → PayoutAccount-D8gaqc9Q.js} +5 -5
  10. package/dist/{PayoutAccountSetting-BoIhsg96.js → PayoutAccountSetting-Ec4vewxl.js} +4 -4
  11. package/dist/{Restaurant-tXUEtR_q.js → Restaurant-Ddhkd-G2.js} +4 -4
  12. package/dist/{RestaurantSetting-CgHsz4H3.js → RestaurantSetting-DuDZwZQg.js} +3 -3
  13. package/dist/{Settlement-c0bY9_gD.js → Settlement-Bw6ZMA1W.js} +3 -3
  14. package/dist/{Settlement-DOvppZAi.js → Settlement-DvPatpnE.js} +3 -3
  15. package/dist/{SettlementTransactions-bF7EFZ2j.js → SettlementTransactions-BK91LbDg.js} +4 -4
  16. package/dist/{SettlementTransactions-BouvzPU4.js → SettlementTransactions-UkVWc4IL.js} +4 -4
  17. package/dist/{Status.vue_vue_type_script_setup_true_lang-CvA16aFf.js → Status.vue_vue_type_script_setup_true_lang-D13rXkSg.js} +1 -1
  18. package/dist/{Terminal-CNqJtWgk.js → Terminal-BuAbeq_u.js} +5 -5
  19. package/dist/{TerminalSetting-CxbuTkH6.js → TerminalSetting-DtkRiJ-N.js} +3 -3
  20. package/dist/{Transaction-DsG8LE6e.js → Transaction-CGkWGf8H.js} +6 -6
  21. package/dist/{Transaction-BqSxZ7lr.js → Transaction-CbLXwJ6U.js} +9 -9
  22. package/dist/{TransactionOld-CJe-29ZZ.js → TransactionOld-B4axindL.js} +6 -6
  23. package/dist/{app-DfYY05aO.js → app-DtktuAyo.js} +23 -23
  24. package/dist/app.js +1 -1
  25. package/dist/{assets-BQ2aldLR.js → assets-ChQw3_h_.js} +1 -1
  26. package/dist/{grafana-BUZudDE4.js → grafana-ZadS2TAl.js} +1 -1
  27. package/dist/{index-oL7n2plf.js → index-BBDlHcZ5.js} +1 -1
  28. package/dist/{index-a1n8cWO_.js → index-BVqqyhEi.js} +1 -1
  29. package/dist/{index-p6MzFJyt.js → index-BXRGlmD3.js} +1 -1
  30. package/dist/{index-BXr5_TWx.js → index-BxzMGmCQ.js} +2 -2
  31. package/dist/{index-7Tof5vdq.js → index-Cr0VbxyI.js} +4667 -4659
  32. package/dist/{index-DxBjQBeA.js → index-DJumZDHb.js} +1 -1
  33. package/dist/{index-CxOPkwlX.js → index-DLZeFbnj.js} +1 -1
  34. package/dist/{index-y2BEVclv.js → index-Danmh2r0.js} +1 -1
  35. package/dist/{index-DltFdclg.js → index-sGfw2TZV.js} +1 -1
  36. package/dist/{index.vue_vue_type_script_setup_true_lang-Bl3q7hOw.js → index.vue_vue_type_script_setup_true_lang-DY9xkB-6.js} +1 -1
  37. package/dist/package.json +2 -2
  38. package/dist/{payout-account-DWWpqLNM.js → payout-account-5IQ3sdbp.js} +3 -3
  39. package/dist/tsconfig.app.tsbuildinfo +1 -1
  40. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -20
  41. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -20
  42. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
  43. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
  44. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
  45. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
  46. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
  47. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
  48. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
  49. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
  50. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
  51. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
  52. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
  53. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
  54. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
  55. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
  56. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
  57. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
  58. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
  59. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
  60. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
  61. package/package.json +2 -2
@@ -1,15 +1,15 @@
1
- import { defineComponent as Q, ref as T, computed as J, resolveComponent as N, openBlock as f, createElementBlock as O, createElementVNode as o, toDisplayString as x, createBlock as D, withCtx as V, createCommentVNode as $, createVNode as n, unref as e, Fragment as K, createTextVNode as L, renderList as ae, onMounted as te, resolveDynamicComponent as se } from "vue";
2
- import { o as z } from "./index-BXr5_TWx.js";
3
- import { u as Z } from "./index-7Tof5vdq.js";
4
- import { useRouter as oe } from "vue-router";
1
+ import { defineComponent as G, ref as E, computed as Q, resolveComponent as q, openBlock as f, createElementBlock as O, createElementVNode as n, toDisplayString as x, createBlock as j, withCtx as v, createCommentVNode as $, createVNode as o, unref as e, Fragment as K, createTextVNode as L, renderList as te, onMounted as se, resolveDynamicComponent as ne } from "vue";
2
+ import { o as z } from "./index-BxzMGmCQ.js";
3
+ import { u as Z, p as oe } from "./index-Cr0VbxyI.js";
4
+ import { useRouter as re } from "vue-router";
5
5
  import { z as u, a as d } from "./validator-DzjyJnvv.js";
6
- import { P as ne } from "./payout-account-DWWpqLNM.js";
7
- import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-VCdsMJXV.js";
8
- import { s as re } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
- import { _ as ee } from "./Status.vue_vue_type_script_setup_true_lang-CvA16aFf.js";
6
+ import { P as ie } from "./payout-account-5IQ3sdbp.js";
7
+ import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CnU1zi3r.js";
8
+ import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
9
+ import { _ as ee } from "./Status.vue_vue_type_script_setup_true_lang-D13rXkSg.js";
10
10
  import { useSnackbar as h } from "@feedmepos/ui-library";
11
11
  import { u as H } from "./error-K1CakhA9.js";
12
- const ie = ["src"], F = /* @__PURE__ */ Q({
12
+ const de = ["src"], w = /* @__PURE__ */ G({
13
13
  __name: "UploadButton",
14
14
  props: {
15
15
  modelValue: {},
@@ -19,52 +19,52 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
19
19
  },
20
20
  emits: ["update:modelValue"],
21
21
  setup(p, { emit: A }) {
22
- const S = p, P = T(S.modelValue), q = A, w = (s) => {
22
+ const S = p, P = E(S.modelValue), k = A, F = (s) => {
23
23
  const i = new FileReader();
24
- i.onload = (I) => {
24
+ i.onload = (U) => {
25
25
  var b;
26
- P.value = (b = I.target) == null ? void 0 : b.result, q("update:modelValue", s);
26
+ P.value = (b = U.target) == null ? void 0 : b.result, k("update:modelValue", s);
27
27
  }, i.readAsDataURL(s);
28
- }, y = (s) => {
28
+ }, c = (s) => {
29
29
  window.open(s, "_blank", "noopener,noreferrer");
30
- }, R = J(() => S.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
30
+ }, I = Q(() => S.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
31
31
  return (s, i) => {
32
- const I = N("FmButton"), b = N("FmDropField");
32
+ const U = q("FmButton"), b = q("FmDropField");
33
33
  return f(), O("div", null, [
34
- o("p", null, x(p.label), 1),
35
- P.value ? (f(), D(_, {
34
+ n("p", null, x(p.label), 1),
35
+ P.value ? (f(), j(_, {
36
36
  key: 0,
37
37
  document: P.value,
38
38
  "restaurant-id": p.restaurantId
39
39
  }, {
40
- default: V(({ src: k }) => [
40
+ default: v(({ src: C }) => [
41
41
  p.type === "image" ? (f(), O("img", {
42
42
  key: 0,
43
- src: k
44
- }, null, 8, ie)) : $("", !0),
45
- p.type === "pdf" ? (f(), D(I, {
43
+ src: C
44
+ }, null, 8, de)) : $("", !0),
45
+ p.type === "pdf" ? (f(), j(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: () => y(k),
52
- onClick: () => y(k)
51
+ onVnodeMounted: () => c(C),
52
+ onClick: () => c(C)
53
53
  }, null, 8, ["onVnodeMounted", "onClick"])) : $("", !0)
54
54
  ]),
55
55
  _: 1
56
- }, 8, ["document", "restaurant-id"])) : (f(), D(b, {
56
+ }, 8, ["document", "restaurant-id"])) : (f(), j(b, {
57
57
  key: 1,
58
- accept: R.value,
59
- onFileUpload: w
58
+ accept: I.value,
59
+ onFileUpload: F
60
60
  }, null, 8, ["accept"]))
61
61
  ]);
62
62
  };
63
63
  }
64
- }), ue = ["src"], de = {
64
+ }), me = ["src"], pe = {
65
65
  key: 0,
66
66
  class: "text-center text-red-700 py-4"
67
- }, me = { class: "flex justify-evenly py-3" }, pe = /* @__PURE__ */ Q({
67
+ }, be = { class: "flex justify-evenly py-3" }, ce = /* @__PURE__ */ G({
68
68
  __name: "SignatureBoard",
69
69
  props: {
70
70
  modelValue: {},
@@ -73,72 +73,72 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
73
73
  },
74
74
  emits: ["update:modelValue"],
75
75
  setup(p, { emit: A }) {
76
- const S = p, P = A, q = T(S.modelValue), w = T(!1), y = T(), R = T(!1);
77
- function s(I, b) {
78
- var j;
79
- const k = I.split(","), E = ((j = k[0].match(/:(.*?);/)) == null ? void 0 : j[1]) || "", v = atob(k[1]);
80
- let m = v.length;
76
+ const S = p, P = A, k = E(S.modelValue), F = E(!1), c = E(), I = E(!1);
77
+ function s(U, b) {
78
+ var T;
79
+ const C = U.split(","), D = ((T = C[0].match(/:(.*?);/)) == null ? void 0 : T[1]) || "", N = atob(C[1]);
80
+ let m = N.length;
81
81
  const B = new Uint8Array(m);
82
82
  for (; m--; )
83
- B[m] = v.charCodeAt(m);
84
- return new File([B], b, { type: E });
83
+ B[m] = N.charCodeAt(m);
84
+ return new File([B], b, { type: D });
85
85
  }
86
86
  const i = function() {
87
- const { isEmpty: I, data: b } = y.value.saveSignature();
88
- if (I)
89
- return w.value = !0;
90
- q.value = b, R.value = !1, P("update:modelValue", s(b, "signature.png"));
87
+ const { isEmpty: U, data: b } = c.value.saveSignature();
88
+ if (U)
89
+ return F.value = !0;
90
+ k.value = b, I.value = !1, P("update:modelValue", s(b, "signature.png"));
91
91
  };
92
- return (I, b) => {
93
- const k = N("FmButton"), E = N("FmDialog");
92
+ return (U, b) => {
93
+ const C = q("FmButton"), D = q("FmDialog");
94
94
  return f(), O("div", null, [
95
- o("p", null, x(p.label), 1),
96
- q.value ? (f(), D(_, {
95
+ n("p", null, x(p.label), 1),
96
+ k.value ? (f(), j(_, {
97
97
  key: 0,
98
- document: q.value,
98
+ document: k.value,
99
99
  "restaurant-id": p.restaurantId
100
100
  }, {
101
- default: V(({ src: v }) => [
102
- o("img", {
103
- src: v,
101
+ default: v(({ src: N }) => [
102
+ n("img", {
103
+ src: N,
104
104
  alt: "Signature Preview",
105
105
  class: "w-full h-auto"
106
- }, null, 8, ue)
106
+ }, null, 8, me)
107
107
  ]),
108
108
  _: 1
109
109
  }, 8, ["document", "restaurant-id"])) : $("", !0),
110
- q.value ? $("", !0) : (f(), D(E, {
110
+ k.value ? $("", !0) : (f(), j(D, {
111
111
  key: 1,
112
- modelValue: R.value,
113
- "onUpdate:modelValue": b[1] || (b[1] = (v) => R.value = v)
112
+ modelValue: I.value,
113
+ "onUpdate:modelValue": b[1] || (b[1] = (N) => I.value = N)
114
114
  }, {
115
- "dialog-button": V(() => [
116
- n(k, {
115
+ "dialog-button": v(() => [
116
+ o(C, {
117
117
  "prepend-icon": "signature",
118
118
  class: "w-full",
119
119
  label: "Signature"
120
120
  })
121
121
  ]),
122
- "dialog-header": V(() => [...b[2] || (b[2] = [
123
- o("div", null, "Signature Board", -1)
122
+ "dialog-header": v(() => [...b[2] || (b[2] = [
123
+ n("div", null, "Signature Board", -1)
124
124
  ])]),
125
- default: V(() => [
126
- n(e(re), {
125
+ default: v(() => [
126
+ o(e(ue), {
127
127
  ref_key: "signaturePad",
128
- ref: y,
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
- w.value ? (f(), O("p", de, " Please sign your signature before saving. ")) : $("", !0),
134
- o("div", me, [
135
- n(k, {
133
+ F.value ? (f(), O("p", pe, " Please sign your signature before saving. ")) : $("", !0),
134
+ n("div", be, [
135
+ o(C, {
136
136
  variant: "destructive",
137
137
  label: "Clear",
138
138
  "prepend-icon": "delete",
139
- onClick: b[0] || (b[0] = (v) => y.value.clearSignature())
139
+ onClick: b[0] || (b[0] = (N) => c.value.clearSignature())
140
140
  }),
141
- n(k, {
141
+ o(C, {
142
142
  label: "Save",
143
143
  "prepend-icon": "save",
144
144
  onClick: i
@@ -150,7 +150,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
150
150
  ]);
151
151
  };
152
152
  }
153
- }), be = { class: "space-y-2" }, ye = { class: "text-gray-900" }, ge = { class: "text-gray-900" }, ce = { class: "text-gray-900" }, Ve = { class: "text-gray-900" }, ve = { class: "text-gray-900" }, fe = { class: "text-gray-900" }, ke = { class: "mt-6 grid grid-cols-4 gap-24" }, Ce = { class: "w-full flex justify-end mt-6" }, Ne = { class: "mt-6 grid grid-cols-4 gap-24" }, Se = { class: "col-span-2" }, Pe = { class: "col-span-2" }, qe = { class: "col-span-2" }, we = { class: "col-span-2" }, Fe = { class: "col-span-2" }, Ie = { class: "col-span-2" }, Ue = { class: "col-start-1 col-span-2" }, xe = { class: "col-span-2" }, Re = { class: "col-span-2" }, Be = { class: "col-span-2" }, Te = { class: "mt-6 grid grid-cols-4 gap-24" }, je = { class: "mt-6 grid grid-cols-2 gap-24" }, Ee = /* @__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" }, we = { class: "col-span-2" }, Fe = { class: "col-span-2" }, Ie = { class: "col-span-2" }, Ue = { class: "col-span-2" }, Re = { class: "col-span-2" }, xe = { class: "col-start-1 col-span-2" }, Be = { class: "col-span-2" }, Ee = { class: "col-span-2" }, Te = { class: "col-span-2" }, je = { class: "mt-6 grid grid-cols-4 gap-24" }, De = { class: "mt-6 grid grid-cols-2 gap-24" }, $e = /* @__PURE__ */ G({
154
154
  __name: "SoftspaceSubmission",
155
155
  props: {
156
156
  submission: {
@@ -160,9 +160,9 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
160
160
  },
161
161
  emits: ["update:submission"],
162
162
  setup(p, { emit: A }) {
163
- const S = p, P = A, q = h(), w = T(!1), { isLoading: y, startAsyncCall: R } = Z(), { fields: s, documents: i, restaurantId: I, profile: b, status: k, statusReason: E } = S.submission, v = T(""), m = T(
163
+ const S = p, P = A, k = h(), F = E(!1), { isLoading: c, startAsyncCall: I } = Z(), { fields: s, documents: i, restaurantId: U, profile: b, status: C, statusReason: D } = S.submission, N = E(""), m = E(
164
164
  S.submission.rates ? Object.fromEntries(
165
- Object.entries(S.submission.rates).map(([U, l]) => [U, `${l}`])
165
+ Object.entries(S.submission.rates).map(([R, l]) => [R, `${l}`])
166
166
  ) : {
167
167
  duitNow: "0.8",
168
168
  mydebitCard: "0.5",
@@ -172,11 +172,11 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
172
172
  jcbStandard: "2.2",
173
173
  jcbPlatinum: "2.2"
174
174
  }
175
- ), B = J(
176
- () => Object.values(m.value).every((U) => parseFloat(U) > 0)
177
- ), j = () => R(async () => {
175
+ ), B = Q(
176
+ () => Object.values(m.value).every((R) => parseFloat(R) > 0)
177
+ ), T = () => I(async () => {
178
178
  try {
179
- const U = await z.reviewById(
179
+ const R = await z.reviewById(
180
180
  S.submission._id,
181
181
  {
182
182
  rates: {
@@ -191,72 +191,72 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
191
191
  status: "approved"
192
192
  }
193
193
  );
194
- P("update:submission", U), w.value = !1, q.open({
194
+ P("update:submission", R), F.value = !1, k.open({
195
195
  type: "success",
196
196
  title: "Submission updated successfully"
197
197
  });
198
- } catch (U) {
199
- q.open({
198
+ } catch (R) {
199
+ k.open({
200
200
  type: "error",
201
201
  title: "Error occurs when updating submission",
202
- message: H(U)
202
+ message: H(R)
203
203
  });
204
204
  }
205
- }), Y = () => R(async () => {
205
+ }), Y = () => I(async () => {
206
206
  try {
207
- const U = await z.reviewById(
207
+ const R = await z.reviewById(
208
208
  S.submission._id,
209
209
  {
210
210
  status: "rejected",
211
- statusReason: v.value
211
+ statusReason: N.value
212
212
  }
213
213
  );
214
- P("update:submission", U), w.value = !1, q.open({
214
+ P("update:submission", R), F.value = !1, k.open({
215
215
  type: "success",
216
216
  title: "Submission updated successfully"
217
217
  });
218
- } catch (U) {
219
- q.open({
218
+ } catch (R) {
219
+ k.open({
220
220
  type: "error",
221
221
  title: "Error occurs when updating submission",
222
- message: H(U)
222
+ message: H(R)
223
223
  });
224
224
  }
225
225
  });
226
- return (U, l) => {
227
- const g = N("FmTextField"), C = N("FmButton"), a = N("FmTextarea"), c = N("FmDialog"), M = N("FmPhoneNumber"), G = N("FmSelect"), X = N("FmForm");
226
+ return (R, l) => {
227
+ const y = q("FmTextField"), W = q("FmButton"), V = q("FmTextarea"), a = q("FmDialog"), g = q("FmPhoneNumber"), M = q("FmSelect"), X = q("FmForm");
228
228
  return f(), O(K, null, [
229
- o("div", be, [
230
- o("div", null, [
231
- l[33] || (l[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
232
- o("span", ye, x(e(I)), 1)
229
+ n("div", ye, [
230
+ n("div", null, [
231
+ l[33] || (l[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
232
+ n("span", ge, x(e(U)), 1)
233
233
  ]),
234
- o("div", null, [
235
- l[34] || (l[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
236
- o("span", ge, x(e(b).name) + " ( " + x(e(b).legalName) + " )", 1)
234
+ n("div", null, [
235
+ l[34] || (l[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
236
+ n("span", Ve, x(e(b).name) + " ( " + x(e(b).legalName) + " )", 1)
237
237
  ]),
238
- o("div", null, [
239
- l[35] || (l[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
240
- o("span", ce, x(e(b).email), 1)
238
+ n("div", null, [
239
+ l[35] || (l[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
240
+ n("span", ve, x(e(b).email), 1)
241
241
  ]),
242
- o("div", null, [
243
- l[36] || (l[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
244
- o("span", Ve, x(e(b).phoneNo), 1)
242
+ n("div", null, [
243
+ l[36] || (l[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
244
+ n("span", fe, x(e(b).phoneNo), 1)
245
245
  ]),
246
- o("div", null, [
247
- l[37] || (l[37] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
248
- o("span", ve, [
249
- n(ee, { data: e(k) }, null, 8, ["data"])
246
+ n("div", null, [
247
+ l[37] || (l[37] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
248
+ n("span", ke, [
249
+ o(ee, { data: e(C) }, null, 8, ["data"])
250
250
  ])
251
251
  ]),
252
- o("div", null, [
253
- l[38] || (l[38] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
254
- o("span", fe, x(e(E)), 1)
252
+ n("div", null, [
253
+ l[38] || (l[38] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
254
+ n("span", Ce, x(e(D)), 1)
255
255
  ])
256
256
  ]),
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", ke, [
259
- n(g, {
257
+ l[50] || (l[50] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
258
+ n("div", Ne, [
259
+ o(y, {
260
260
  modelValue: m.value.duitNow,
261
261
  "onUpdate:modelValue": l[0] || (l[0] = (t) => m.value.duitNow = t),
262
262
  label: "DuitNow QR",
@@ -268,12 +268,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
268
268
  e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
269
269
  )
270
270
  }, {
271
- append: V(() => [...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
- n(g, {
276
+ o(y, {
277
277
  modelValue: m.value.mydebitCard,
278
278
  "onUpdate:modelValue": l[1] || (l[1] = (t) => m.value.mydebitCard = t),
279
279
  label: "myDebit Card",
@@ -285,12 +285,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
285
285
  e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
286
286
  )
287
287
  }, {
288
- append: V(() => [...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
- n(g, {
293
+ o(y, {
294
294
  modelValue: m.value.localDebit,
295
295
  "onUpdate:modelValue": l[2] || (l[2] = (t) => m.value.localDebit = t),
296
296
  label: "Local Debit Card",
@@ -302,12 +302,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
302
302
  e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
303
303
  )
304
304
  }, {
305
- append: V(() => [...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
- n(g, {
310
+ o(y, {
311
311
  modelValue: m.value.localCredit,
312
312
  "onUpdate:modelValue": l[3] || (l[3] = (t) => m.value.localCredit = t),
313
313
  label: "Local Credit Card",
@@ -319,12 +319,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
319
319
  e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
320
320
  )
321
321
  }, {
322
- append: V(() => [...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
- n(g, {
327
+ o(y, {
328
328
  modelValue: m.value.foreignCard,
329
329
  "onUpdate:modelValue": l[4] || (l[4] = (t) => m.value.foreignCard = t),
330
330
  label: "Foreign Card",
@@ -336,12 +336,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
336
336
  e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
337
337
  )
338
338
  }, {
339
- append: V(() => [...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
- n(g, {
344
+ o(y, {
345
345
  modelValue: m.value.jcbStandard,
346
346
  "onUpdate:modelValue": l[5] || (l[5] = (t) => m.value.jcbStandard = t),
347
347
  label: "JCB Standard",
@@ -353,12 +353,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
353
353
  e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
354
354
  )
355
355
  }, {
356
- append: V(() => [...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
- n(g, {
361
+ o(y, {
362
362
  modelValue: m.value.jcbPlatinum,
363
363
  "onUpdate:modelValue": l[6] || (l[6] = (t) => m.value.jcbPlatinum = t),
364
364
  label: "JCB Platinum",
@@ -370,64 +370,64 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
370
370
  e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
371
371
  )
372
372
  }, {
373
- append: V(() => [...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
- o("div", Ce, [
380
- n(c, {
381
- modelValue: w.value,
382
- "onUpdate:modelValue": l[8] || (l[8] = (t) => w.value = t)
379
+ n("div", Se, [
380
+ o(a, {
381
+ modelValue: F.value,
382
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => F.value = t)
383
383
  }, {
384
- "dialog-button": V(() => [
385
- n(C, {
384
+ "dialog-button": v(() => [
385
+ o(W, {
386
386
  class: "mr-6",
387
387
  type: "button",
388
388
  variant: "destructive",
389
389
  "prepend-icon": "block",
390
- loading: e(y),
390
+ loading: e(c),
391
391
  label: "Reject Submission"
392
392
  }, null, 8, ["loading"])
393
393
  ]),
394
- "dialog-header": V(() => [...l[46] || (l[46] = [
395
- o("div", null, "Rejecting Submission", -1)
394
+ "dialog-header": v(() => [...l[46] || (l[46] = [
395
+ n("div", null, "Rejecting Submission", -1)
396
396
  ])]),
397
- default: V(() => [
398
- n(a, {
399
- modelValue: v.value,
400
- "onUpdate:modelValue": l[7] || (l[7] = (t) => v.value = t),
397
+ default: v(() => [
398
+ o(V, {
399
+ modelValue: N.value,
400
+ "onUpdate:modelValue": l[7] || (l[7] = (t) => N.value = t),
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(C, {
405
+ o(W, {
406
406
  class: "mb-2 mt-6 w-full",
407
407
  label: "Submit",
408
408
  "prepend-icon": "save",
409
409
  onClick: Y,
410
- loading: e(y)
410
+ loading: e(c)
411
411
  }, null, 8, ["loading"])
412
412
  ]),
413
413
  _: 1
414
414
  }, 8, ["modelValue"]),
415
- n(C, {
415
+ o(W, {
416
416
  type: "button",
417
417
  variant: "primary",
418
418
  "prepend-icon": "approval",
419
419
  disabled: !B.value,
420
420
  label: "Approve Submission with Rates",
421
- onClick: j,
422
- loading: e(y)
421
+ onClick: T,
422
+ loading: e(c)
423
423
  }, null, 8, ["disabled", "loading"])
424
424
  ]),
425
- n(X, { disabled: !0 }, {
426
- default: V(() => [
427
- 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", Ne, [
429
- o("div", Se, [
430
- n(g, {
425
+ o(X, { disabled: !0 }, {
426
+ default: v(() => [
427
+ l[47] || (l[47] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
428
+ n("div", Pe, [
429
+ n("div", qe, [
430
+ o(y, {
431
431
  modelValue: e(s).picName,
432
432
  "onUpdate:modelValue": l[9] || (l[9] = (t) => e(s).picName = t),
433
433
  label: "PIC Name",
@@ -436,8 +436,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
436
436
  rules: e(u)(e(d).string().min(1, "PIC Name is required"))
437
437
  }, null, 8, ["modelValue", "rules"])
438
438
  ]),
439
- o("div", Pe, [
440
- n(g, {
439
+ n("div", we, [
440
+ o(y, {
441
441
  modelValue: e(s).picRole,
442
442
  "onUpdate:modelValue": l[10] || (l[10] = (t) => e(s).picRole = t),
443
443
  label: "PIC Role",
@@ -446,8 +446,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
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", qe, [
450
- n(g, {
449
+ n("div", Fe, [
450
+ o(y, {
451
451
  modelValue: e(s).picEmail,
452
452
  "onUpdate:modelValue": l[11] || (l[11] = (t) => e(s).picEmail = t),
453
453
  label: "PIC Email",
@@ -457,8 +457,8 @@ const ie = ["src"], F = /* @__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", we, [
461
- n(M, {
460
+ n("div", Ie, [
461
+ o(g, {
462
462
  "model-value": e(s).picContact,
463
463
  "onUpdate:modelValue": l[12] || (l[12] = (t) => e(s).picContact = t),
464
464
  "default-country": "MY",
@@ -467,8 +467,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
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", Fe, [
471
- n(g, {
470
+ n("div", Ue, [
471
+ o(y, {
472
472
  modelValue: e(s).outletName,
473
473
  "onUpdate:modelValue": l[13] || (l[13] = (t) => e(s).outletName = t),
474
474
  label: "Outlet Name",
@@ -477,8 +477,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
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", Ie, [
481
- n(g, {
480
+ n("div", Re, [
481
+ o(y, {
482
482
  modelValue: e(s).outletAddress,
483
483
  "onUpdate:modelValue": l[14] || (l[14] = (t) => e(s).outletAddress = t),
484
484
  label: "Outlet Address",
@@ -487,7 +487,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
487
487
  rules: e(u)(e(d).string().min(1, "Address is required"))
488
488
  }, null, 8, ["modelValue", "rules"])
489
489
  ]),
490
- n(g, {
490
+ o(y, {
491
491
  modelValue: e(s).outletPostCode,
492
492
  "onUpdate:modelValue": l[15] || (l[15] = (t) => e(s).outletPostCode = t),
493
493
  label: "Postal Code",
@@ -495,7 +495,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
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
- n(g, {
498
+ o(y, {
499
499
  modelValue: e(s).outletState,
500
500
  "onUpdate:modelValue": l[16] || (l[16] = (t) => e(s).outletState = t),
501
501
  label: "State",
@@ -503,7 +503,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
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
- n(g, {
506
+ o(y, {
507
507
  modelValue: e(s).outletCity,
508
508
  "onUpdate:modelValue": l[17] || (l[17] = (t) => e(s).outletCity = t),
509
509
  label: "City",
@@ -511,8 +511,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
511
511
  "label-mark": "required",
512
512
  rules: e(u)(e(d).string().min(1, "City is required"))
513
513
  }, null, 8, ["modelValue", "rules"]),
514
- o("div", Ue, [
515
- n(G, {
514
+ n("div", xe, [
515
+ o(M, {
516
516
  modelValue: e(s).businessType,
517
517
  "onUpdate:modelValue": l[18] || (l[18] = (t) => e(s).businessType = t),
518
518
  label: "Type",
@@ -533,8 +533,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
533
533
  ]
534
534
  }, null, 8, ["modelValue", "rules"])
535
535
  ]),
536
- o("div", xe, [
537
- n(g, {
536
+ n("div", Be, [
537
+ o(y, {
538
538
  modelValue: e(s).businessRegNo,
539
539
  "onUpdate:modelValue": l[19] || (l[19] = (t) => e(s).businessRegNo = t),
540
540
  label: "Registration No",
@@ -543,8 +543,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
543
543
  rules: e(u)(e(d).string().min(1, "Reg No is required"))
544
544
  }, null, 8, ["modelValue", "rules"])
545
545
  ]),
546
- o("div", Re, [
547
- n(g, {
546
+ n("div", Ee, [
547
+ o(y, {
548
548
  modelValue: e(s).tinNo,
549
549
  "onUpdate:modelValue": l[20] || (l[20] = (t) => e(s).tinNo = t),
550
550
  label: "Tax Identification No (TIN)",
@@ -553,8 +553,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
553
553
  rules: e(u)(e(d).string().min(1, "TIN is required"))
554
554
  }, null, 8, ["modelValue", "rules"])
555
555
  ]),
556
- o("div", Be, [
557
- n(g, {
556
+ n("div", Te, [
557
+ o(y, {
558
558
  modelValue: e(s).sstNo,
559
559
  "onUpdate:modelValue": l[21] || (l[21] = (t) => e(s).sstNo = t),
560
560
  label: "SST Registration No (SST)",
@@ -563,18 +563,18 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
563
563
  }, null, 8, ["modelValue"])
564
564
  ])
565
565
  ]),
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
- o("div", Te, [
568
- n(G, {
566
+ l[48] || (l[48] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
567
+ n("div", je, [
568
+ o(M, {
569
569
  modelValue: e(s).bankName,
570
570
  "onUpdate:modelValue": l[22] || (l[22] = (t) => e(s).bankName = t),
571
571
  label: "Bank",
572
572
  placeholder: "Select bank type",
573
573
  "label-mark": "required",
574
574
  rules: e(u)(e(d).string().min(1, "Bank Type is required")),
575
- items: e(ne).bankNameOptions()
575
+ items: e(ie).bankNameOptions()
576
576
  }, null, 8, ["modelValue", "rules", "items"]),
577
- n(g, {
577
+ o(y, {
578
578
  modelValue: e(s).bankHolderName,
579
579
  "onUpdate:modelValue": l[23] || (l[23] = (t) => e(s).bankHolderName = t),
580
580
  label: "Beneficiary Name",
@@ -582,7 +582,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
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
- n(g, {
585
+ o(y, {
586
586
  modelValue: e(s).bankAccountNo,
587
587
  "onUpdate:modelValue": l[24] || (l[24] = (t) => e(s).bankAccountNo = t),
588
588
  label: "Account Number",
@@ -590,35 +590,35 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
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(F, {
593
+ o(w, {
594
594
  label: "Authorized Person ID",
595
595
  modelValue: e(i).authorizedPersonID,
596
596
  "onUpdate:modelValue": l[25] || (l[25] = (t) => e(i).authorizedPersonID = t),
597
597
  type: "image",
598
598
  "restaurant-id": p.submission.restaurantId
599
599
  }, null, 8, ["modelValue", "restaurant-id"]),
600
- n(F, {
600
+ o(w, {
601
601
  label: "Outlet Photo",
602
602
  modelValue: e(i).outletPhoto,
603
603
  "onUpdate:modelValue": l[26] || (l[26] = (t) => e(i).outletPhoto = t),
604
604
  type: "image",
605
605
  "restaurant-id": p.submission.restaurantId
606
606
  }, null, 8, ["modelValue", "restaurant-id"]),
607
- n(F, {
607
+ o(w, {
608
608
  label: "Interior Photo",
609
609
  modelValue: e(i).interiorPhoto,
610
610
  "onUpdate:modelValue": l[27] || (l[27] = (t) => e(i).interiorPhoto = t),
611
611
  type: "image",
612
612
  "restaurant-id": p.submission.restaurantId
613
613
  }, null, 8, ["modelValue", "restaurant-id"]),
614
- n(F, {
614
+ o(w, {
615
615
  label: "Latest Bank Statement",
616
616
  modelValue: e(i).bankStatement,
617
617
  "onUpdate:modelValue": l[28] || (l[28] = (t) => e(i).bankStatement = t),
618
618
  type: "pdf",
619
619
  "restaurant-id": p.submission.restaurantId
620
620
  }, null, 8, ["modelValue", "restaurant-id"]),
621
- e(s).businessType === "private_limited" || e(s).businessType === "public_limited" ? (f(), D(F, {
621
+ e(s).businessType === "private_limited" || e(s).businessType === "public_limited" ? (f(), j(w, {
622
622
  key: 0,
623
623
  label: "Superform",
624
624
  type: "pdf",
@@ -626,7 +626,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
626
626
  "onUpdate:modelValue": l[29] || (l[29] = (t) => e(i).certificate = t),
627
627
  "restaurant-id": p.submission.restaurantId
628
628
  }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
629
- e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (f(), D(F, {
629
+ e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (f(), j(w, {
630
630
  key: 1,
631
631
  label: "SSM Certificate & Info",
632
632
  type: "pdf",
@@ -635,15 +635,15 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
635
635
  "restaurant-id": p.submission.restaurantId
636
636
  }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
637
637
  ]),
638
- l[49] || (l[49] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
639
- o("div", je, [
640
- n(pe, {
638
+ l[49] || (l[49] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
639
+ n("div", De, [
640
+ o(ce, {
641
641
  modelValue: e(i).signature,
642
642
  "onUpdate:modelValue": l[31] || (l[31] = (t) => e(i).signature = t),
643
643
  "restaurant-id": p.submission.restaurantId,
644
644
  label: "Signature"
645
645
  }, null, 8, ["modelValue", "restaurant-id"]),
646
- n(F, {
646
+ o(w, {
647
647
  label: "Company Stamp",
648
648
  type: "image",
649
649
  modelValue: e(i).companyStamp,
@@ -657,7 +657,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
657
657
  ], 64);
658
658
  };
659
659
  }
660
- }), De = { class: "space-y-2" }, $e = { class: "text-gray-900" }, Ae = { class: "text-gray-900" }, Oe = { class: "text-gray-900" }, Le = { class: "text-gray-900" }, ze = { class: "text-gray-900" }, He = { class: "text-gray-900" }, Me = { class: "mt-6 grid grid-cols-4 gap-24" }, We = { class: "w-full flex justify-end mt-6" }, Je = { class: "mt-6 grid grid-cols-4 gap-24" }, Qe = { class: "col-span-2" }, Ge = { class: "col-span-2" }, Ke = { class: "col-span-2" }, Ye = { class: "col-span-2" }, Xe = { class: "mt-6 grid grid-cols-4 gap-24" }, Ze = { class: "mt-6 grid grid-cols-4 gap-24" }, he = { class: "mt-6 grid grid-cols-4 gap-24" }, _e = { class: "col-span-2" }, el = { class: "col-span-2" }, ll = { class: "col-span-2" }, al = { class: "col-span-2" }, tl = { class: "col-span-2" }, sl = { class: "col-span-2" }, ol = /* @__PURE__ */ Q({
660
+ }), Ae = { class: "space-y-2" }, Oe = { class: "text-gray-900" }, Le = { class: "text-gray-900" }, ze = { class: "text-gray-900" }, Me = { class: "text-gray-900" }, He = { 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" }, nl = { class: "col-span-2" }, ol = { class: "col-span-2" }, rl = /* @__PURE__ */ G({
661
661
  __name: "NTTSubmission",
662
662
  props: {
663
663
  submission: {
@@ -667,7 +667,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
667
667
  },
668
668
  emits: ["update:submission"],
669
669
  setup(p, { emit: A }) {
670
- const S = p, P = A, q = h(), w = T(!1), { isLoading: y, startAsyncCall: R } = Z(), { fields: s, documents: i, restaurantId: I, profile: b, status: k, statusReason: E } = S.submission, v = T(""), m = [
670
+ const S = p, P = A, k = h(), F = E(!1), { isLoading: c, startAsyncCall: I } = Z(), { fields: s, documents: i, restaurantId: U, profile: b, status: C, statusReason: D } = S.submission, N = E(""), m = [
671
671
  { key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
672
672
  {
673
673
  key: "localCardStandard",
@@ -700,163 +700,192 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
700
700
  { key: "linePay", label: "LinePay", defaultValue: "2.1" },
701
701
  { key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
702
702
  ], B = Object.fromEntries(
703
- m.map((C) => [C.key, C.defaultValue])
704
- ), j = T(
703
+ m.map((V) => [V.key, V.defaultValue])
704
+ ), T = E(
705
705
  S.submission.rates ? Object.fromEntries(
706
- Object.entries(S.submission.rates).map(([C, a]) => [C, `${a}`])
706
+ Object.entries(S.submission.rates).map(([V, a]) => [V, `${a}`])
707
707
  ) : { ...B }
708
- ), Y = J(
709
- () => Object.values(j.value).every((C) => parseFloat(C) > 0)
710
- ), U = J(() => s.businessType === "juristic" ? "Juristic" : s.businessType === "individual" ? "Individual" : s.businessType || "-"), l = () => R(async () => {
708
+ ), Y = Q(
709
+ () => Object.values(T.value).every((V) => parseFloat(V) > 0)
710
+ ), R = Q(() => s.businessType === "juristic" ? "Juristic" : s.businessType === "individual" ? "Individual" : s.businessType || "-"), l = () => I(async () => {
711
711
  try {
712
- const C = await z.reviewById(
712
+ const V = await z.reviewById(
713
+ S.submission._id,
714
+ {
715
+ status: oe.FdoOnboardStatus.enum.ready
716
+ }
717
+ );
718
+ P("update:submission", V), k.open({
719
+ type: "success",
720
+ title: "Submission marked as ready"
721
+ });
722
+ } catch (V) {
723
+ k.open({
724
+ type: "error",
725
+ title: "Error occurs when marking submission as ready",
726
+ message: H(V)
727
+ });
728
+ }
729
+ }), y = () => I(async () => {
730
+ try {
731
+ const V = await z.reviewById(
713
732
  S.submission._id,
714
733
  {
715
734
  rates: Object.fromEntries(
716
735
  m.map((a) => [
717
736
  a.key,
718
- parseFloat(j.value[a.key])
737
+ parseFloat(T.value[a.key])
719
738
  ])
720
739
  ),
721
740
  status: "approved"
722
741
  }
723
742
  );
724
- P("update:submission", C), w.value = !1, q.open({
743
+ P("update:submission", V), k.open({
725
744
  type: "success",
726
745
  title: "Submission updated successfully"
727
746
  });
728
- } catch (C) {
729
- q.open({
747
+ } catch (V) {
748
+ k.open({
730
749
  type: "error",
731
750
  title: "Error occurs when updating submission",
732
- message: H(C)
751
+ message: H(V)
733
752
  });
734
753
  }
735
- }), g = () => R(async () => {
754
+ }), W = () => I(async () => {
736
755
  try {
737
- const C = await z.reviewById(
756
+ const V = await z.reviewById(
738
757
  S.submission._id,
739
758
  {
740
759
  status: "rejected",
741
- statusReason: v.value
760
+ statusReason: N.value
742
761
  }
743
762
  );
744
- P("update:submission", C), w.value = !1, q.open({
763
+ P("update:submission", V), F.value = !1, k.open({
745
764
  type: "success",
746
765
  title: "Submission updated successfully"
747
766
  });
748
- } catch (C) {
749
- q.open({
767
+ } catch (V) {
768
+ k.open({
750
769
  type: "error",
751
770
  title: "Error occurs when updating submission",
752
- message: H(C)
771
+ message: H(V)
753
772
  });
754
773
  }
755
774
  });
756
- return (C, a) => {
757
- const c = N("FmTextField"), M = N("FmButton"), G = N("FmTextarea"), X = N("FmDialog"), t = N("FmPhoneNumber"), le = N("FmForm");
775
+ return (V, a) => {
776
+ const g = q("FmTextField"), M = q("FmButton"), X = q("FmTextarea"), t = q("FmDialog"), le = q("FmPhoneNumber"), ae = q("FmForm");
758
777
  return f(), O(K, null, [
759
- o("div", De, [
760
- o("div", null, [
761
- a[31] || (a[31] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
762
- o("span", $e, x(e(I)), 1)
778
+ n("div", Ae, [
779
+ n("div", null, [
780
+ a[31] || (a[31] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
781
+ n("span", Oe, x(e(U)), 1)
763
782
  ]),
764
- o("div", null, [
765
- a[32] || (a[32] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
766
- o("span", Ae, x(e(b).name) + " ( " + x(e(b).legalName) + " )", 1)
783
+ n("div", null, [
784
+ a[32] || (a[32] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
785
+ n("span", Le, x(e(b).name) + " ( " + x(e(b).legalName) + " )", 1)
767
786
  ]),
768
- o("div", null, [
769
- a[33] || (a[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
770
- o("span", Oe, x(e(b).email), 1)
787
+ n("div", null, [
788
+ a[33] || (a[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
789
+ n("span", ze, x(e(b).email), 1)
771
790
  ]),
772
- o("div", null, [
773
- a[34] || (a[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
774
- o("span", Le, x(e(b).phoneNo), 1)
791
+ n("div", null, [
792
+ a[34] || (a[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
793
+ n("span", Me, x(e(b).phoneNo), 1)
775
794
  ]),
776
- o("div", null, [
777
- a[35] || (a[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
778
- o("span", ze, [
779
- n(ee, { data: e(k) }, null, 8, ["data"])
795
+ n("div", null, [
796
+ a[35] || (a[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
797
+ n("span", He, [
798
+ o(ee, { data: e(C) }, null, 8, ["data"])
780
799
  ])
781
800
  ]),
782
- o("div", null, [
783
- a[36] || (a[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
784
- o("span", He, x(e(E)), 1)
801
+ n("div", null, [
802
+ a[36] || (a[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
803
+ n("span", We, x(e(D)), 1)
785
804
  ])
786
805
  ]),
787
- a[43] || (a[43] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
788
- o("div", Me, [
789
- (f(), O(K, null, ae(m, (r) => n(c, {
806
+ a[43] || (a[43] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
807
+ n("div", Je, [
808
+ (f(), O(K, null, te(m, (r) => o(g, {
790
809
  key: r.key,
791
- modelValue: j.value[r.key],
792
- "onUpdate:modelValue": (W) => j.value[r.key] = W,
810
+ modelValue: T.value[r.key],
811
+ "onUpdate:modelValue": (J) => T.value[r.key] = J,
793
812
  label: r.label,
794
813
  "label-mark": "required",
795
814
  type: "number",
796
815
  inputmode: "numeric",
797
816
  decimal: 2,
798
817
  rules: e(u)(
799
- e(d).string().min(1, "Rate is required").transform((W) => parseFloat(W)).refine((W) => !isNaN(W), { message: "Rate must be a number" })
818
+ e(d).string().min(1, "Rate is required").transform((J) => parseFloat(J)).refine((J) => !isNaN(J), { message: "Rate must be a number" })
800
819
  )
801
820
  }, {
802
- append: V(() => [...a[37] || (a[37] = [
821
+ append: v(() => [...a[37] || (a[37] = [
803
822
  L("%", -1)
804
823
  ])]),
805
824
  _: 1
806
825
  }, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
807
826
  ]),
808
- o("div", We, [
809
- n(X, {
810
- modelValue: w.value,
811
- "onUpdate:modelValue": a[1] || (a[1] = (r) => w.value = r)
827
+ n("div", Qe, [
828
+ o(t, {
829
+ modelValue: F.value,
830
+ "onUpdate:modelValue": a[1] || (a[1] = (r) => F.value = r)
812
831
  }, {
813
- "dialog-button": V(() => [
814
- n(M, {
832
+ "dialog-button": v(() => [
833
+ o(M, {
815
834
  class: "mr-6",
816
835
  type: "button",
817
836
  variant: "destructive",
818
837
  "prepend-icon": "block",
819
- loading: e(y),
838
+ loading: e(c),
820
839
  label: "Reject Submission"
821
840
  }, null, 8, ["loading"])
822
841
  ]),
823
- "dialog-header": V(() => [...a[38] || (a[38] = [
824
- o("div", null, "Rejecting Submission", -1)
842
+ "dialog-header": v(() => [...a[38] || (a[38] = [
843
+ n("div", null, "Rejecting Submission", -1)
825
844
  ])]),
826
- default: V(() => [
827
- n(G, {
828
- modelValue: v.value,
829
- "onUpdate:modelValue": a[0] || (a[0] = (r) => v.value = r),
845
+ default: v(() => [
846
+ o(X, {
847
+ modelValue: N.value,
848
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => N.value = r),
830
849
  label: "Reason for Rejection",
831
850
  "label-mark": "optional",
832
851
  "helper-text": "Please provide a reason for rejection."
833
852
  }, null, 8, ["modelValue"]),
834
- n(M, {
853
+ o(M, {
835
854
  class: "mb-2 mt-6 w-full",
836
855
  label: "Submit",
837
856
  "prepend-icon": "save",
838
- onClick: g,
839
- loading: e(y)
857
+ onClick: W,
858
+ loading: e(c)
840
859
  }, null, 8, ["loading"])
841
860
  ]),
842
861
  _: 1
843
862
  }, 8, ["modelValue"]),
844
- n(M, {
863
+ o(M, {
845
864
  type: "button",
846
865
  variant: "primary",
847
866
  "prepend-icon": "approval",
848
867
  label: "Approve Submission with Rates",
849
868
  disabled: !Y.value,
869
+ onClick: y,
870
+ loading: e(c)
871
+ }, null, 8, ["disabled", "loading"]),
872
+ e(C) === "approved" ? (f(), j(M, {
873
+ key: 0,
874
+ type: "button",
875
+ variant: "secondary",
876
+ "prepend-icon": "check_circle",
877
+ label: "Mark as Ready",
878
+ class: "ml-6",
850
879
  onClick: l,
851
- loading: e(y)
852
- }, null, 8, ["disabled", "loading"])
880
+ loading: e(c)
881
+ }, null, 8, ["loading"])) : $("", !0)
853
882
  ]),
854
- n(le, { disabled: !0 }, {
855
- default: V(() => [
856
- a[39] || (a[39] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
857
- o("div", Je, [
858
- o("div", Qe, [
859
- n(c, {
883
+ o(ae, { disabled: !0 }, {
884
+ default: v(() => [
885
+ a[39] || (a[39] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
886
+ n("div", Ge, [
887
+ n("div", Ke, [
888
+ o(g, {
860
889
  modelValue: e(s).companyName,
861
890
  "onUpdate:modelValue": a[2] || (a[2] = (r) => e(s).companyName = r),
862
891
  label: "Company Name",
@@ -864,8 +893,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
864
893
  rules: e(u)(e(d).string().min(1, "Company Name is required"))
865
894
  }, null, 8, ["modelValue", "rules"])
866
895
  ]),
867
- o("div", Ge, [
868
- n(c, {
896
+ n("div", Ye, [
897
+ o(g, {
869
898
  modelValue: e(s).outletName,
870
899
  "onUpdate:modelValue": a[3] || (a[3] = (r) => e(s).outletName = r),
871
900
  label: "Outlet Name (Thai)",
@@ -873,8 +902,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
873
902
  rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
874
903
  }, null, 8, ["modelValue", "rules"])
875
904
  ]),
876
- o("div", Ke, [
877
- n(c, {
905
+ n("div", Xe, [
906
+ o(g, {
878
907
  modelValue: e(s).outletNameEnglish,
879
908
  "onUpdate:modelValue": a[4] || (a[4] = (r) => e(s).outletNameEnglish = r),
880
909
  label: "Outlet Name (English)",
@@ -882,8 +911,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
882
911
  rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
883
912
  }, null, 8, ["modelValue", "rules"])
884
913
  ]),
885
- o("div", Ye, [
886
- n(c, {
914
+ n("div", Ze, [
915
+ o(g, {
887
916
  modelValue: e(s).outletAddress,
888
917
  "onUpdate:modelValue": a[5] || (a[5] = (r) => e(s).outletAddress = r),
889
918
  label: "Outlet Address",
@@ -891,70 +920,70 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
891
920
  rules: e(u)(e(d).string().min(1, "Outlet Address is required"))
892
921
  }, null, 8, ["modelValue", "rules"])
893
922
  ]),
894
- n(c, {
923
+ o(g, {
895
924
  modelValue: e(s).outletPostCode,
896
925
  "onUpdate:modelValue": a[6] || (a[6] = (r) => e(s).outletPostCode = r),
897
926
  label: "Post Code",
898
927
  "label-mark": "required",
899
928
  rules: e(u)(e(d).string().min(1, "Post Code is required"))
900
929
  }, null, 8, ["modelValue", "rules"]),
901
- n(c, {
930
+ o(g, {
902
931
  modelValue: e(s).outletState,
903
932
  "onUpdate:modelValue": a[7] || (a[7] = (r) => e(s).outletState = r),
904
933
  label: "State",
905
934
  "label-mark": "required",
906
935
  rules: e(u)(e(d).string().min(1, "State is required"))
907
936
  }, null, 8, ["modelValue", "rules"]),
908
- n(c, {
937
+ o(g, {
909
938
  modelValue: e(s).outletCity,
910
939
  "onUpdate:modelValue": a[8] || (a[8] = (r) => e(s).outletCity = r),
911
940
  label: "City",
912
941
  "label-mark": "required",
913
942
  rules: e(u)(e(d).string().min(1, "City is required"))
914
943
  }, null, 8, ["modelValue", "rules"]),
915
- n(c, {
916
- "model-value": U.value,
944
+ o(g, {
945
+ "model-value": R.value,
917
946
  label: "Business Type",
918
947
  "label-mark": "required"
919
948
  }, null, 8, ["model-value"]),
920
- n(c, {
949
+ o(g, {
921
950
  modelValue: e(s).numberOfDevices,
922
951
  "onUpdate:modelValue": a[9] || (a[9] = (r) => e(s).numberOfDevices = r),
923
952
  label: "Number of Devices",
924
953
  "label-mark": "required"
925
954
  }, null, 8, ["modelValue"])
926
955
  ]),
927
- a[40] || (a[40] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
928
- o("div", Xe, [
929
- n(c, {
956
+ a[40] || (a[40] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
957
+ n("div", he, [
958
+ o(g, {
930
959
  modelValue: e(s).bankName,
931
960
  "onUpdate:modelValue": a[10] || (a[10] = (r) => e(s).bankName = r),
932
961
  label: "Bank Name",
933
962
  "label-mark": "required",
934
963
  rules: e(u)(e(d).string().min(1, "Bank Name is required"))
935
964
  }, null, 8, ["modelValue", "rules"]),
936
- n(c, {
965
+ o(g, {
937
966
  modelValue: e(s).bankHolderName,
938
967
  "onUpdate:modelValue": a[11] || (a[11] = (r) => e(s).bankHolderName = r),
939
968
  label: "Bank Holder Name",
940
969
  "label-mark": "required",
941
970
  rules: e(u)(e(d).string().min(1, "Bank Holder Name is required"))
942
971
  }, null, 8, ["modelValue", "rules"]),
943
- n(c, {
972
+ o(g, {
944
973
  modelValue: e(s).bankAccountNo,
945
974
  "onUpdate:modelValue": a[12] || (a[12] = (r) => e(s).bankAccountNo = r),
946
975
  label: "Bank Account No",
947
976
  "label-mark": "required",
948
977
  rules: e(u)(e(d).string().min(1, "Bank Account No is required"))
949
978
  }, null, 8, ["modelValue", "rules"]),
950
- n(c, {
979
+ o(g, {
951
980
  modelValue: e(s).bankBranch,
952
981
  "onUpdate:modelValue": a[13] || (a[13] = (r) => e(s).bankBranch = r),
953
982
  label: "Bank Branch",
954
983
  "label-mark": "required",
955
984
  rules: e(u)(e(d).string().min(1, "Bank Branch is required"))
956
985
  }, null, 8, ["modelValue", "rules"]),
957
- n(c, {
986
+ o(g, {
958
987
  modelValue: e(s).bankBranchCode,
959
988
  "onUpdate:modelValue": a[14] || (a[14] = (r) => e(s).bankBranchCode = r),
960
989
  label: "Bank Branch Code",
@@ -962,37 +991,37 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
962
991
  rules: e(u)(e(d).string().min(1, "Bank Branch Code is required"))
963
992
  }, null, 8, ["modelValue", "rules"])
964
993
  ]),
965
- a[41] || (a[41] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
966
- o("div", Ze, [
967
- n(F, {
994
+ a[41] || (a[41] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
995
+ n("div", _e, [
996
+ o(w, {
968
997
  label: "Authorized Person ID",
969
998
  modelValue: e(i).authorizedPersonID,
970
999
  "onUpdate:modelValue": a[15] || (a[15] = (r) => e(i).authorizedPersonID = r),
971
1000
  type: "image",
972
1001
  "restaurant-id": p.submission.restaurantId
973
1002
  }, null, 8, ["modelValue", "restaurant-id"]),
974
- n(F, {
1003
+ o(w, {
975
1004
  label: "Outlet Photo",
976
1005
  modelValue: e(i).outletPhoto,
977
1006
  "onUpdate:modelValue": a[16] || (a[16] = (r) => e(i).outletPhoto = r),
978
1007
  type: "image",
979
1008
  "restaurant-id": p.submission.restaurantId
980
1009
  }, null, 8, ["modelValue", "restaurant-id"]),
981
- n(F, {
1010
+ o(w, {
982
1011
  label: "Interior Photo",
983
1012
  modelValue: e(i).interiorPhoto,
984
1013
  "onUpdate:modelValue": a[17] || (a[17] = (r) => e(i).interiorPhoto = r),
985
1014
  type: "image",
986
1015
  "restaurant-id": p.submission.restaurantId
987
1016
  }, null, 8, ["modelValue", "restaurant-id"]),
988
- n(F, {
1017
+ o(w, {
989
1018
  label: "Bank Statement",
990
1019
  modelValue: e(i).bankStatement,
991
1020
  "onUpdate:modelValue": a[18] || (a[18] = (r) => e(i).bankStatement = r),
992
1021
  type: "pdf",
993
1022
  "restaurant-id": p.submission.restaurantId
994
1023
  }, null, 8, ["modelValue", "restaurant-id"]),
995
- e(s).businessType === "juristic" ? (f(), D(F, {
1024
+ e(s).businessType === "juristic" ? (f(), j(w, {
996
1025
  key: 0,
997
1026
  label: "Company Certificate",
998
1027
  type: "pdf",
@@ -1000,7 +1029,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1000
1029
  "onUpdate:modelValue": a[19] || (a[19] = (r) => e(i).companyCertificate = r),
1001
1030
  "restaurant-id": p.submission.restaurantId
1002
1031
  }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
1003
- e(s).businessType === "juristic" ? (f(), D(F, {
1032
+ e(s).businessType === "juristic" ? (f(), j(w, {
1004
1033
  key: 1,
1005
1034
  label: "VAT Certificate",
1006
1035
  type: "pdf",
@@ -1008,7 +1037,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1008
1037
  "onUpdate:modelValue": a[20] || (a[20] = (r) => e(i).vatCertificate = r),
1009
1038
  "restaurant-id": p.submission.restaurantId
1010
1039
  }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
1011
- e(s).businessType === "individual" ? (f(), D(F, {
1040
+ e(s).businessType === "individual" ? (f(), j(w, {
1012
1041
  key: 2,
1013
1042
  label: "Commercial Certificate",
1014
1043
  type: "pdf",
@@ -1017,10 +1046,10 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1017
1046
  "restaurant-id": p.submission.restaurantId
1018
1047
  }, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
1019
1048
  ]),
1020
- a[42] || (a[42] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1021
- o("div", he, [
1022
- o("div", _e, [
1023
- n(c, {
1049
+ a[42] || (a[42] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1050
+ n("div", el, [
1051
+ n("div", ll, [
1052
+ o(g, {
1024
1053
  modelValue: e(s).picName,
1025
1054
  "onUpdate:modelValue": a[22] || (a[22] = (r) => e(s).picName = r),
1026
1055
  label: "PIC Name",
@@ -1028,8 +1057,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1028
1057
  rules: e(u)(e(d).string().min(1, "PIC Name is required"))
1029
1058
  }, null, 8, ["modelValue", "rules"])
1030
1059
  ]),
1031
- o("div", el, [
1032
- n(c, {
1060
+ n("div", al, [
1061
+ o(g, {
1033
1062
  modelValue: e(s).picRole,
1034
1063
  "onUpdate:modelValue": a[23] || (a[23] = (r) => e(s).picRole = r),
1035
1064
  label: "PIC Role",
@@ -1037,8 +1066,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1037
1066
  rules: e(u)(e(d).string().min(1, "PIC Role is required"))
1038
1067
  }, null, 8, ["modelValue", "rules"])
1039
1068
  ]),
1040
- o("div", ll, [
1041
- n(c, {
1069
+ n("div", tl, [
1070
+ o(g, {
1042
1071
  modelValue: e(s).picEmail,
1043
1072
  "onUpdate:modelValue": a[24] || (a[24] = (r) => e(s).picEmail = r),
1044
1073
  label: "PIC Email",
@@ -1046,8 +1075,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1046
1075
  rules: e(u)(e(d).string().min(1, "PIC Email is required"))
1047
1076
  }, null, 8, ["modelValue", "rules"])
1048
1077
  ]),
1049
- o("div", al, [
1050
- n(t, {
1078
+ n("div", sl, [
1079
+ o(le, {
1051
1080
  "model-value": e(s).picContact,
1052
1081
  "onUpdate:modelValue": a[25] || (a[25] = (r) => e(s).picContact = r),
1053
1082
  "default-country": "TH",
@@ -1056,8 +1085,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1056
1085
  rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
1057
1086
  }, null, 8, ["model-value", "rules"])
1058
1087
  ]),
1059
- o("div", tl, [
1060
- n(c, {
1088
+ n("div", nl, [
1089
+ o(g, {
1061
1090
  modelValue: e(s).witnessName,
1062
1091
  "onUpdate:modelValue": a[26] || (a[26] = (r) => e(s).witnessName = r),
1063
1092
  label: "Witness Name",
@@ -1065,8 +1094,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1065
1094
  rules: e(u)(e(d).string().min(1, "Witness Name is required"))
1066
1095
  }, null, 8, ["modelValue", "rules"])
1067
1096
  ]),
1068
- o("div", sl, [
1069
- n(c, {
1097
+ n("div", ol, [
1098
+ o(g, {
1070
1099
  modelValue: e(s).witnessRole,
1071
1100
  "onUpdate:modelValue": a[27] || (a[27] = (r) => e(s).witnessRole = r),
1072
1101
  label: "Witness Role",
@@ -1074,21 +1103,21 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1074
1103
  rules: e(u)(e(d).string().min(1, "Witness Role is required"))
1075
1104
  }, null, 8, ["modelValue", "rules"])
1076
1105
  ]),
1077
- n(F, {
1106
+ o(w, {
1078
1107
  label: "Signature",
1079
1108
  type: "image",
1080
1109
  modelValue: e(i).signature,
1081
1110
  "onUpdate:modelValue": a[28] || (a[28] = (r) => e(i).signature = r),
1082
1111
  "restaurant-id": p.submission.restaurantId
1083
1112
  }, null, 8, ["modelValue", "restaurant-id"]),
1084
- n(F, {
1113
+ o(w, {
1085
1114
  label: "Witness Signature",
1086
1115
  type: "image",
1087
1116
  modelValue: e(i).witnessSignature,
1088
1117
  "onUpdate:modelValue": a[29] || (a[29] = (r) => e(i).witnessSignature = r),
1089
1118
  "restaurant-id": p.submission.restaurantId
1090
1119
  }, null, 8, ["modelValue", "restaurant-id"]),
1091
- n(F, {
1120
+ o(w, {
1092
1121
  label: "Company Stamp",
1093
1122
  type: "image",
1094
1123
  modelValue: e(i).companyStamp,
@@ -1102,10 +1131,10 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1102
1131
  ], 64);
1103
1132
  };
1104
1133
  }
1105
- }), nl = {
1134
+ }), il = {
1106
1135
  key: 0,
1107
1136
  class: "flex items-center justify-center min-h-[80vh]"
1108
- }, rl = { class: "px-32 pb-32" }, fl = /* @__PURE__ */ Q({
1137
+ }, ul = { class: "px-32 pb-32" }, Cl = /* @__PURE__ */ G({
1109
1138
  __name: "OnboardForm",
1110
1139
  props: {
1111
1140
  submissionId: {
@@ -1114,36 +1143,36 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1114
1143
  }
1115
1144
  },
1116
1145
  setup(p) {
1117
- const { startAsyncCall: A, isLoading: S } = Z(), P = h(), q = p, w = oe(), y = T(null), R = () => {
1146
+ const { startAsyncCall: A, isLoading: S } = Z(), P = h(), k = p, F = re(), c = E(null), I = () => {
1118
1147
  if (window.history.length > 1) {
1119
- w.back();
1148
+ F.back();
1120
1149
  return;
1121
1150
  }
1122
- w.push({ name: "mf-payment-admin.onboard-submission" });
1151
+ F.push({ name: "mf-payment-admin.onboard-submission" });
1123
1152
  };
1124
- te(() => {
1153
+ se(() => {
1125
1154
  A(async () => {
1126
- y.value = await z.readById(q.submissionId);
1155
+ c.value = await z.readById(k.submissionId);
1127
1156
  });
1128
1157
  });
1129
- const s = J(() => {
1130
- if (!y.value) return null;
1131
- switch (y.value.type) {
1158
+ const s = Q(() => {
1159
+ if (!c.value) return null;
1160
+ switch (c.value.type) {
1132
1161
  case "softspace":
1133
- return Ee;
1162
+ return $e;
1134
1163
  case "ntt":
1135
- return ol;
1164
+ return rl;
1136
1165
  default:
1137
1166
  return null;
1138
1167
  }
1139
- }), i = T(0);
1140
- function I(k) {
1141
- y.value = k, i.value = Date.now();
1168
+ }), i = E(0);
1169
+ function U(C) {
1170
+ c.value = C, i.value = Date.now();
1142
1171
  }
1143
- const b = async (k) => {
1144
- var E, v;
1145
- if (y.value)
1146
- switch (k) {
1172
+ const b = async (C) => {
1173
+ var D, N;
1174
+ if (c.value)
1175
+ switch (C) {
1147
1176
  case "preview":
1148
1177
  let m;
1149
1178
  try {
@@ -1151,7 +1180,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1151
1180
  message: "Generating preview document...",
1152
1181
  type: "info"
1153
1182
  }), await z.previewDocument(
1154
- (E = y.value) == null ? void 0 : E._id
1183
+ (D = c.value) == null ? void 0 : D._id
1155
1184
  );
1156
1185
  } catch (B) {
1157
1186
  P.open({
@@ -1169,7 +1198,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1169
1198
  message: "Sending onboarding document...",
1170
1199
  type: "info"
1171
1200
  }), await z.sendDocument(
1172
- (v = y.value) == null ? void 0 : v._id
1201
+ (N = c.value) == null ? void 0 : N._id
1173
1202
  ), P.open({
1174
1203
  type: "success",
1175
1204
  title: "Submission documents send successfully"
@@ -1184,17 +1213,17 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1184
1213
  break;
1185
1214
  }
1186
1215
  };
1187
- return (k, E) => {
1188
- var B, j;
1189
- const v = N("FmCircularProgress"), m = N("FmPageHead");
1190
- return e(S) ? (f(), O("div", nl, [
1191
- n(v, { size: "xxl" })
1216
+ return (C, D) => {
1217
+ var B, T;
1218
+ const N = q("FmCircularProgress"), m = q("FmPageHead");
1219
+ return e(S) ? (f(), O("div", il, [
1220
+ o(N, { size: "xxl" })
1192
1221
  ])) : (f(), O(K, { key: 1 }, [
1193
- n(m, {
1194
- title: `Submission - ${(B = y.value) == null ? void 0 : B.type}`,
1195
- description: `ID - ${(j = y.value) == null ? void 0 : j._id}`,
1222
+ o(m, {
1223
+ title: `Submission - ${(B = c.value) == null ? void 0 : B.type}`,
1224
+ description: `ID - ${(T = c.value) == null ? void 0 : T._id}`,
1196
1225
  "back-button": !0,
1197
- "onClick:back": R,
1226
+ "onClick:back": I,
1198
1227
  "onClick:action": b,
1199
1228
  actions: [
1200
1229
  {
@@ -1210,11 +1239,11 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1210
1239
  }
1211
1240
  ]
1212
1241
  }, null, 8, ["title", "description"]),
1213
- o("div", rl, [
1214
- (f(), D(se(s.value), {
1242
+ n("div", ul, [
1243
+ (f(), j(ne(s.value), {
1215
1244
  key: i.value,
1216
- submission: y.value,
1217
- "onUpdate:submission": I
1245
+ submission: c.value,
1246
+ "onUpdate:submission": U
1218
1247
  }, null, 40, ["submission"]))
1219
1248
  ])
1220
1249
  ], 64));
@@ -1222,5 +1251,5 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
1222
1251
  }
1223
1252
  });
1224
1253
  export {
1225
- fl as default
1254
+ Cl as default
1226
1255
  };