@feedmepos/mf-payment 1.11.4-dev → 1.11.5

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 (52) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-BPh2hhit.js → Actions.vue_vue_type_script_setup_true_lang-3SV7Yisp.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DgswT3Ud.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-C03x7TOE.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D7RuRMlk.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DrlKuLw7.js} +3 -3
  4. package/dist/{Chargeback-B8cjc_pN.js → Chargeback-EcJi6zOO.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-DQXv0gnh.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Ub6yU-qZ.js} +1 -1
  6. package/dist/{ExternalTerminal-r_0OqPCU.js → ExternalTerminal-CHTRv3Ua.js} +6 -6
  7. package/dist/{OnboardForm-BCZ_YurN.js → OnboardForm-B378DOcX.js} +6 -6
  8. package/dist/{OnboardForm-BVfA7iqT.js → OnboardForm-_cXLOdhB.js} +462 -432
  9. package/dist/{OnboardSubmission-JZDSvuzp.js → OnboardSubmission-2ywRR2fk.js} +3 -3
  10. package/dist/{OnboardSubmission-DmWcJsAp.js → OnboardSubmission-DxqZG6QZ.js} +6 -6
  11. package/dist/{PaymentCheckout-CstxxfEL.js → PaymentCheckout-Br97izd1.js} +2 -2
  12. package/dist/{PayoutAccount-SYruVIwb.js → PayoutAccount-BCKC42lU.js} +7 -7
  13. package/dist/{PayoutAccount-D-G1xwPX.js → PayoutAccount-CbqfCHQM.js} +5 -5
  14. package/dist/{PayoutAccountSetting-B99lsGOy.js → PayoutAccountSetting-B-SJFwjG.js} +6 -6
  15. package/dist/{Restaurant-BX2gE_HI.js → Restaurant-404A4nLn.js} +4 -4
  16. package/dist/{RestaurantSetting-D0E6REVo.js → RestaurantSetting-LzQiQcIv.js} +3 -3
  17. package/dist/{Settlement-BDov44GA.js → Settlement-BJ1KdP50.js} +3 -3
  18. package/dist/{Settlement-D16D5PXH.js → Settlement-DuIEuBWL.js} +4 -4
  19. package/dist/{SettlementTransactions-BUvDH10q.js → SettlementTransactions-DxziumM1.js} +5 -5
  20. package/dist/{SettlementTransactions-CyJ21ZA6.js → SettlementTransactions-iHUFJO_W.js} +5 -5
  21. package/dist/{Status.vue_vue_type_script_setup_true_lang-DlIp-zin.js → Status.vue_vue_type_script_setup_true_lang-BHNHGevm.js} +1 -1
  22. package/dist/{Terminal-CY2uX4Wf.js → Terminal-DB76mZcJ.js} +6 -6
  23. package/dist/{TerminalSetting-C6U8gzkD.js → TerminalSetting-IpoWXpKY.js} +7 -7
  24. package/dist/{TerminalTemplate-DwxrCqyi.js → TerminalTemplate-MAMv9HaT.js} +5 -5
  25. package/dist/{TerminalTemplateSetting-Ca1bBZOK.js → TerminalTemplateSetting-Ci_6hWRf.js} +5 -5
  26. package/dist/{Transaction-EZWgDtJ8.js → Transaction-Brn5Mdhj.js} +10 -10
  27. package/dist/{Transaction-wBN2-1H9.js → Transaction-CM5PgSXC.js} +12 -12
  28. package/dist/{TransactionOld-b8vKw1PJ.js → TransactionOld-CFg0DQb9.js} +7 -7
  29. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-Bju-v34z.js → TransactionStatus.vue_vue_type_script_setup_true_lang-DPyZfivn.js} +1 -1
  30. package/dist/api/onboard-submission/index.d.ts +1 -1
  31. package/dist/{app-DJINOWPG.js → app-D4I1AB3Q.js} +447 -456
  32. package/dist/app.js +1 -1
  33. package/dist/{assets-RL6HCVpd.js → assets-CUHEPueQ.js} +1 -1
  34. package/dist/{grafana-De5XGV4f.js → grafana-ChBCGFOj.js} +1 -1
  35. package/dist/{index-BKieABma.js → index-1xbtrg1U.js} +1 -1
  36. package/dist/{index-BPMowDa0.js → index-CCGiuuqV.js} +1 -1
  37. package/dist/{index-Bv9zWWLS.js → index-CLplfyOs.js} +1 -1
  38. package/dist/{index-UgdiYNp8.js → index-CMzi8EpY.js} +1 -1
  39. package/dist/{index-CSRxJCgx.js → index-CRIOFxJ6.js} +1 -1
  40. package/dist/{index-BWJe-a5q.js → index-CmBjL8wD.js} +1 -1
  41. package/dist/{index-BCyFg7AI.js → index-CxsHLT0K.js} +1 -1
  42. package/dist/{index-BKtdCHW0.js → index-DVm28tuh.js} +1 -1
  43. package/dist/{index-B8KFOPPX.js → index-DWKU1hJS.js} +24 -24
  44. package/dist/{index-DoL1iPS4.js → index-DmCFB0qO.js} +1 -1
  45. package/dist/{index-DBm5x5lN.js → index-n0NgHff2.js} +1 -1
  46. package/dist/{index.vue_vue_type_script_setup_true_lang-BiA2JIwO.js → index.vue_vue_type_script_setup_true_lang-BLDZPBcs.js} +1 -1
  47. package/dist/{onboard-submission-mj3NaLcK.js → onboard-submission-CvKpd6hG.js} +1 -1
  48. package/dist/package.json +2 -2
  49. package/dist/{payout-account-Bg55qZ-o.js → payout-account-CQLK-tI6.js} +3 -3
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/{useQuery-CzkaEzXi.js → useQuery-ak8x1KJc.js} +1 -1
  52. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- import { defineComponent as Q, ref as O, computed as _, resolveComponent as P, openBlock as u, createElementBlock as k, createElementVNode as a, toDisplayString as N, createBlock as A, withCtx as S, createCommentVNode as T, createVNode as o, unref as e, onMounted as ye, watch as Pe, Fragment as h, renderList as K, normalizeClass as ve, nextTick as Ie, createTextVNode as Y, resolveDynamicComponent as Re } from "vue";
2
- import { o as M } from "./index-B8KFOPPX.js";
3
- import { u as ne, p as fe } from "./index-BPMowDa0.js";
4
- import { useRouter as qe } from "vue-router";
1
+ import { defineComponent as X, ref as B, computed as h, resolveComponent as P, openBlock as u, createElementBlock as k, createElementVNode as a, toDisplayString as N, createBlock as A, withCtx as x, createCommentVNode as T, createVNode as o, unref as e, onMounted as fe, watch as Re, Fragment as _, renderList as Q, normalizeClass as Ve, nextTick as Ue, createTextVNode as G, resolveDynamicComponent as qe } from "vue";
2
+ import { o as M } from "./index-DWKU1hJS.js";
3
+ import { u as ne, p as ke } from "./index-CCGiuuqV.js";
4
+ import { useRouter as Fe } from "vue-router";
5
5
  import { z as p, a as b } from "./validator-CTlVogBQ.js";
6
- import { D as Ue, P as Fe } from "./payout-account-Bg55qZ-o.js";
7
- import { a as De } from "./onboard-submission-mj3NaLcK.js";
8
- import { _ as Ve } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DQXv0gnh.js";
9
- import { s as Te } from "./vue-signature-pad.esm-IXPjf4fL.js";
10
- import { _ as ke } from "./Status.vue_vue_type_script_setup_true_lang-DlIp-zin.js";
11
- import { useSnackbar as ue } from "@feedmepos/ui-library";
12
- import { u as G } from "./error-K1CakhA9.js";
13
- const Ee = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ Q({
6
+ import { D as De, P as Te } from "./payout-account-CQLK-tI6.js";
7
+ import { a as Ee } from "./onboard-submission-CvKpd6hG.js";
8
+ import { _ as Ce } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Ub6yU-qZ.js";
9
+ import { s as $e } from "./vue-signature-pad.esm-IXPjf4fL.js";
10
+ import { _ as xe } from "./Status.vue_vue_type_script_setup_true_lang-BHNHGevm.js";
11
+ import { useSnackbar as de } from "@feedmepos/ui-library";
12
+ import { u as J } from "./error-K1CakhA9.js";
13
+ const Ae = ["src"], ce = ".png, .jpg, .jpeg", ge = ".pdf", D = /* @__PURE__ */ X({
14
14
  __name: "UploadButton",
15
15
  props: {
16
16
  modelValue: {},
@@ -19,26 +19,26 @@ const Ee = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ Q
19
19
  restaurantId: {}
20
20
  },
21
21
  emits: ["update:modelValue"],
22
- setup(d, { emit: x }) {
23
- const m = d, v = O(m.modelValue), c = x, C = (i) => {
24
- const U = new FileReader();
25
- U.onload = (g) => {
22
+ setup(d, { emit: w }) {
23
+ const m = d, v = B(m.modelValue), c = w, C = (i) => {
24
+ const q = new FileReader();
25
+ q.onload = (g) => {
26
26
  var I;
27
27
  v.value = (I = g.target) == null ? void 0 : I.result, c("update:modelValue", i);
28
- }, U.readAsDataURL(i);
28
+ }, q.readAsDataURL(i);
29
29
  }, y = (i) => {
30
30
  window.open(i, "_blank", "noopener,noreferrer");
31
- }, E = _(() => m.type === "image" ? pe : m.type === "pdf" ? be : `${pe}, ${be}`), s = (i) => m.type === "pdf" ? !0 : m.type === "image" ? !1 : i === "application/pdf";
32
- return (i, U) => {
31
+ }, E = h(() => m.type === "image" ? ce : m.type === "pdf" ? ge : `${ce}, ${ge}`), s = (i) => m.type === "pdf" ? !0 : m.type === "image" ? !1 : i === "application/pdf";
32
+ return (i, q) => {
33
33
  const g = P("FmButton"), I = P("FmDropField");
34
34
  return u(), k("div", null, [
35
35
  a("p", null, N(d.label), 1),
36
- v.value ? (u(), A(Ve, {
36
+ v.value ? (u(), A(Ce, {
37
37
  key: 0,
38
38
  document: v.value,
39
39
  "restaurant-id": d.restaurantId
40
40
  }, {
41
- default: S(({ src: $, type: R }) => [
41
+ default: x(({ src: $, type: R }) => [
42
42
  s(R) ? (u(), A(g, {
43
43
  key: 1,
44
44
  class: "mt-4 w-full",
@@ -50,7 +50,7 @@ const Ee = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ Q
50
50
  }, null, 8, ["onVnodeMounted", "onClick"])) : (u(), k("img", {
51
51
  key: 0,
52
52
  src: $
53
- }, null, 8, Ee))
53
+ }, null, 8, Ae))
54
54
  ]),
55
55
  _: 1
56
56
  }, 8, ["document", "restaurant-id"])) : (u(), A(I, {
@@ -61,10 +61,10 @@ const Ee = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ Q
61
61
  ]);
62
62
  };
63
63
  }
64
- }), $e = ["src"], Ae = {
64
+ }), Le = ["src"], Be = {
65
65
  key: 0,
66
66
  class: "text-center text-red-700 py-4"
67
- }, Le = { class: "flex justify-evenly py-3" }, Be = /* @__PURE__ */ Q({
67
+ }, Oe = { class: "flex justify-evenly py-3" }, je = /* @__PURE__ */ X({
68
68
  __name: "SignatureBoard",
69
69
  props: {
70
70
  modelValue: {},
@@ -72,38 +72,38 @@ const Ee = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ Q
72
72
  restaurantId: {}
73
73
  },
74
74
  emits: ["update:modelValue"],
75
- setup(d, { emit: x }) {
76
- const m = d, v = x, c = O(m.modelValue), C = O(!1), y = O(), E = O(!1);
77
- function s(U, g) {
78
- var B;
79
- const I = U.split(","), $ = ((B = I[0].match(/:(.*?);/)) == null ? void 0 : B[1]) || "", R = atob(I[1]);
80
- let L = R.length;
81
- const f = new Uint8Array(L);
82
- for (; L--; )
83
- f[L] = R.charCodeAt(L);
75
+ setup(d, { emit: w }) {
76
+ const m = d, v = w, c = B(m.modelValue), C = B(!1), y = B(), E = B(!1);
77
+ function s(q, g) {
78
+ var j;
79
+ const I = q.split(","), $ = ((j = I[0].match(/:(.*?);/)) == null ? void 0 : j[1]) || "", R = atob(I[1]);
80
+ let O = R.length;
81
+ const f = new Uint8Array(O);
82
+ for (; O--; )
83
+ f[O] = R.charCodeAt(O);
84
84
  return new File([f], g, { type: $ });
85
85
  }
86
86
  const i = function() {
87
- const { isEmpty: U, data: g } = y.value.saveSignature();
88
- if (U)
87
+ const { isEmpty: q, data: g } = y.value.saveSignature();
88
+ if (q)
89
89
  return C.value = !0;
90
90
  c.value = g, E.value = !1, v("update:modelValue", s(g, "signature.png"));
91
91
  };
92
- return (U, g) => {
92
+ return (q, g) => {
93
93
  const I = P("FmButton"), $ = P("FmDialog");
94
94
  return u(), k("div", null, [
95
95
  a("p", null, N(d.label), 1),
96
- c.value ? (u(), A(Ve, {
96
+ c.value ? (u(), A(Ce, {
97
97
  key: 0,
98
98
  document: c.value,
99
99
  "restaurant-id": d.restaurantId
100
100
  }, {
101
- default: S(({ src: R }) => [
101
+ default: x(({ src: R }) => [
102
102
  a("img", {
103
103
  src: R,
104
104
  alt: "Signature Preview",
105
105
  class: "w-full h-auto"
106
- }, null, 8, $e)
106
+ }, null, 8, Le)
107
107
  ]),
108
108
  _: 1
109
109
  }, 8, ["document", "restaurant-id"])) : T("", !0),
@@ -112,26 +112,26 @@ const Ee = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ Q
112
112
  modelValue: E.value,
113
113
  "onUpdate:modelValue": g[1] || (g[1] = (R) => E.value = R)
114
114
  }, {
115
- "dialog-button": S(() => [
115
+ "dialog-button": x(() => [
116
116
  o(I, {
117
117
  "prepend-icon": "signature",
118
118
  class: "w-full",
119
119
  label: "Signature"
120
120
  })
121
121
  ]),
122
- "dialog-header": S(() => [...g[2] || (g[2] = [
122
+ "dialog-header": x(() => [...g[2] || (g[2] = [
123
123
  a("div", null, "Signature Board", -1)
124
124
  ])]),
125
- default: S(() => [
126
- o(e(Te), {
125
+ default: x(() => [
126
+ o(e($e), {
127
127
  ref_key: "signaturePad",
128
128
  ref: y,
129
129
  height: "300px",
130
130
  customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
131
131
  options: { penColor: "#000000" }
132
132
  }, null, 512),
133
- C.value ? (u(), k("p", Ae, " Please sign your signature before saving. ")) : T("", !0),
134
- a("div", Le, [
133
+ C.value ? (u(), k("p", Be, " Please sign your signature before saving. ")) : T("", !0),
134
+ a("div", Oe, [
135
135
  o(I, {
136
136
  variant: "destructive",
137
137
  label: "Clear",
@@ -150,10 +150,10 @@ const Ee = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ Q
150
150
  ]);
151
151
  };
152
152
  }
153
- }), Oe = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), je = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), _e = new RegExp("(\\d)(\\p{Ll})", "gu"), he = new RegExp("(\\p{L})(\\d)", "gu"), Me = /[^\p{L}\d]+/giu, oe = "$1\0$2";
154
- function ze(d, x = {}) {
155
- let m = d.replace(Oe, oe).replace(je, oe);
156
- x.separateNumbers && (m = m.replace(_e, oe).replace(he, oe)), m = m.replace(Me, "\0");
153
+ }), he = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), _e = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), Me = new RegExp("(\\d)(\\p{Ll})", "gu"), ze = new RegExp("(\\p{L})(\\d)", "gu"), He = /[^\p{L}\d]+/giu, re = "$1\0$2";
154
+ function We(d, w = {}) {
155
+ let m = d.replace(he, re).replace(_e, re);
156
+ w.separateNumbers && (m = m.replace(Me, re).replace(ze, re)), m = m.replace(He, "\0");
157
157
  let v = 0, c = m.length;
158
158
  for (; m.charAt(v) === "\0"; )
159
159
  v++;
@@ -163,35 +163,35 @@ function ze(d, x = {}) {
163
163
  c--;
164
164
  return m.slice(v, c).split(/\0/g);
165
165
  }
166
- function He(d) {
167
- return (x) => x.toLocaleLowerCase(d);
166
+ function Ye(d) {
167
+ return (w) => w.toLocaleLowerCase(d);
168
168
  }
169
- function We(d) {
170
- return (x) => x.toLocaleUpperCase(d);
169
+ function Ge(d) {
170
+ return (w) => w.toLocaleUpperCase(d);
171
171
  }
172
- function ce(d, x) {
173
- const m = He(x == null ? void 0 : x.locale), v = We(x == null ? void 0 : x.locale);
174
- return ze(d).map((c, C) => C === 0 ? v(c[0]) + m(c.slice(1)) : m(c)).join(" ");
172
+ function ye(d, w) {
173
+ const m = Ye(w == null ? void 0 : w.locale), v = Ge(w == null ? void 0 : w.locale);
174
+ return We(d).map((c, C) => C === 0 ? v(c[0]) + m(c.slice(1)) : m(c)).join(" ");
175
175
  }
176
- const Ye = {
176
+ const Je = {
177
177
  key: 0,
178
178
  class: "text-sm text-gray-500"
179
- }, Ge = { class: "flex min-w-max items-start pt-1" }, Je = {
179
+ }, Ke = { class: "flex min-w-max items-start pt-1" }, Qe = {
180
180
  key: 0,
181
181
  class: "absolute left-0 top-[7px] h-[2px] w-1/2 bg-gray-200"
182
- }, Ke = {
182
+ }, Xe = {
183
183
  key: 1,
184
184
  class: "absolute right-0 top-[7px] h-[2px] w-1/2 bg-gray-200"
185
- }, Qe = { class: "mt-1 text-sm font-medium leading-snug text-gray-900" }, Xe = {
185
+ }, Ze = { class: "mt-1 text-sm font-medium leading-snug text-gray-900" }, el = {
186
186
  key: 2,
187
187
  class: "mt-1 rounded bg-gray-100 px-2 py-[2px] text-xs text-gray-600"
188
- }, Ze = { class: "mt-1 text-xs text-gray-500" }, el = { class: "text-xs text-gray-500" }, ll = {
188
+ }, ll = { class: "mt-1 text-xs text-gray-500" }, tl = { class: "text-xs text-gray-500" }, al = {
189
189
  key: 4,
190
190
  class: "mt-1 text-xs text-gray-500"
191
- }, tl = {
191
+ }, sl = {
192
192
  key: 5,
193
- class: "mt-1 text-xs text-gray-700"
194
- }, Ce = /* @__PURE__ */ Q({
193
+ class: "mt-1 whitespace-pre-line break-words text-xs text-gray-700"
194
+ }, we = /* @__PURE__ */ X({
195
195
  __name: "Timeline",
196
196
  props: {
197
197
  entries: {
@@ -200,7 +200,7 @@ const Ye = {
200
200
  }
201
201
  },
202
202
  setup(d) {
203
- const x = d, m = {
203
+ const w = d, m = {
204
204
  submission: { label: "Submitted", icon: "upload_file", color: "bg-blue-400" },
205
205
  resubmission: {
206
206
  label: "Resubmitted",
@@ -273,76 +273,76 @@ const Ye = {
273
273
  const i = m[s];
274
274
  if (i) return i;
275
275
  if (s.startsWith("status-update-")) {
276
- const U = s.replace("status-update-", "");
276
+ const q = s.replace("status-update-", "");
277
277
  return {
278
- label: `Status Updated to ${ce(U)}`,
278
+ label: `Status Updated to ${ye(q)}`,
279
279
  icon: "sync",
280
- color: v[U] ?? "bg-gray-400"
280
+ color: v[q] ?? "bg-gray-400"
281
281
  };
282
282
  }
283
283
  return {
284
- label: ce(s.replace(/-/g, " ")),
284
+ label: ye(s.replace(/-/g, " ")),
285
285
  icon: "radio_button_checked",
286
286
  color: "bg-gray-400"
287
287
  };
288
288
  }
289
- const C = _(
290
- () => (x.entries ?? []).map((s) => ({
289
+ const C = h(
290
+ () => (w.entries ?? []).map((s) => ({
291
291
  ...s,
292
292
  ...c(s.action),
293
- at: Ue(s.timestamp)
293
+ at: De(s.timestamp)
294
294
  })).sort((s, i) => s.at.valueOf() - i.at.valueOf())
295
- ), y = O(null), E = async () => {
296
- await Ie(), y.value && (y.value.scrollLeft = y.value.scrollWidth);
295
+ ), y = B(null), E = async () => {
296
+ await Ue(), y.value && (y.value.scrollLeft = y.value.scrollWidth);
297
297
  };
298
- return ye(E), Pe(() => C.value.length, E), (s, i) => {
299
- const U = P("FmIcon");
298
+ return fe(E), Re(() => C.value.length, E), (s, i) => {
299
+ const q = P("FmIcon");
300
300
  return C.value.length ? (u(), k("div", {
301
301
  key: 1,
302
302
  ref_key: "rail",
303
303
  ref: y,
304
304
  class: "overflow-x-auto mt-6 pb-6"
305
305
  }, [
306
- a("ol", Ge, [
307
- (u(!0), k(h, null, K(C.value, (g, I) => (u(), k("li", {
306
+ a("ol", Ke, [
307
+ (u(!0), k(_, null, Q(C.value, (g, I) => (u(), k("li", {
308
308
  key: `${g.action}-${g.timestamp}-${I}`,
309
309
  class: "relative flex w-[160px] shrink-0 flex-col items-center px-8 text-center"
310
310
  }, [
311
- I > 0 ? (u(), k("span", Je)) : T("", !0),
312
- I < C.value.length - 1 ? (u(), k("span", Ke)) : T("", !0),
311
+ I > 0 ? (u(), k("span", Qe)) : T("", !0),
312
+ I < C.value.length - 1 ? (u(), k("span", Xe)) : T("", !0),
313
313
  a("span", {
314
- class: ve([
314
+ class: Ve([
315
315
  "relative z-10 h-4 w-4 rounded-full ring-4 ring-white",
316
316
  g.color
317
317
  ])
318
318
  }, null, 2),
319
- o(U, {
319
+ o(q, {
320
320
  name: g.icon,
321
321
  size: "sm",
322
322
  class: "mt-3 text-gray-500"
323
323
  }, null, 8, ["name"]),
324
- a("span", Qe, N(g.label), 1),
325
- I === C.value.length - 1 ? (u(), k("span", Xe, " Latest ")) : T("", !0),
326
- g.at.isValid() ? (u(), k(h, { key: 3 }, [
327
- a("span", Ze, N(g.at.format("DD MMM YYYY")), 1),
328
- a("span", el, N(g.at.format("HH:mm")), 1)
329
- ], 64)) : (u(), k("span", ll, N(g.timestamp), 1)),
330
- g.description ? (u(), k("span", tl, N(g.description), 1)) : T("", !0)
324
+ a("span", Ze, N(g.label), 1),
325
+ I === C.value.length - 1 ? (u(), k("span", el, " Latest ")) : T("", !0),
326
+ g.at.isValid() ? (u(), k(_, { key: 3 }, [
327
+ a("span", ll, N(g.at.format("DD MMM YYYY")), 1),
328
+ a("span", tl, N(g.at.format("HH:mm")), 1)
329
+ ], 64)) : (u(), k("span", al, N(g.timestamp), 1)),
330
+ g.description ? (u(), k("span", sl, N(g.description), 1)) : T("", !0)
331
331
  ]))), 128))
332
332
  ])
333
- ], 512)) : (u(), k("p", Ye, " No activity recorded yet. "));
333
+ ], 512)) : (u(), k("p", Je, " No activity recorded yet. "));
334
334
  };
335
335
  }
336
- }), al = { class: "space-y-2" }, sl = { class: "text-gray-900" }, nl = { class: "text-gray-900" }, ol = { class: "text-gray-900" }, rl = { class: "text-gray-900" }, il = { class: "text-gray-900" }, ul = { class: "text-gray-900" }, dl = { class: "flex items-center gap-2 border-b pb-1 mt-6 mb-6" }, ml = { class: "flex items-center justify-between gap-6" }, pl = { class: "flex gap-6" }, bl = { class: "flex gap-6" }, cl = { class: "grid grid-cols-4 gap-6" }, gl = ["src"], yl = {
336
+ }), nl = { class: "space-y-2" }, ol = { class: "text-gray-900" }, rl = { class: "text-gray-900" }, il = { class: "text-gray-900" }, ul = { class: "text-gray-900" }, dl = { class: "text-gray-900" }, ml = { class: "text-gray-900" }, pl = { class: "flex items-center gap-2 border-b pb-1 mt-6 mb-6" }, bl = { class: "flex items-center justify-between gap-6" }, cl = { class: "flex gap-6" }, gl = { class: "flex gap-6" }, yl = { class: "grid grid-cols-4 gap-6" }, vl = ["src"], fl = {
337
337
  key: 1,
338
338
  class: "mt-2 truncate text-gray-700"
339
- }, vl = { key: 0 }, fl = {
339
+ }, Vl = { key: 0 }, kl = {
340
340
  key: 0,
341
341
  class: "w-full flex justify-end mt-6"
342
- }, Vl = { class: "mt-6 grid grid-cols-4 gap-24" }, kl = { class: "grid grid-cols-4 gap-6" }, Cl = { class: "w-full flex justify-end mt-6" }, xl = { class: "mt-6 grid grid-cols-4 gap-24" }, Nl = { class: "col-span-2" }, wl = { class: "col-span-2" }, Sl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, Il = { class: "col-span-2" }, Rl = { class: "col-span-2" }, ql = { class: "col-span-2" }, Ul = { class: "col-span-2" }, Fl = { class: "col-start-1 col-span-2" }, Dl = { class: "col-span-2" }, Tl = { class: "col-span-2" }, El = { class: "col-span-2" }, $l = { class: "mt-6 grid grid-cols-4 gap-6" }, Al = { class: "mt-6 grid grid-cols-4 gap-6" }, Ll = { class: "mt-6 grid grid-cols-4 gap-6" }, Bl = { class: "mt-6 grid grid-cols-4 gap-6" }, Ol = { class: "mt-6 grid grid-cols-4 gap-6" }, jl = { class: "mt-6 grid grid-cols-4 gap-6" }, _l = {
342
+ }, Cl = { class: "mt-6 grid grid-cols-4 gap-24" }, xl = { class: "grid grid-cols-4 gap-6" }, wl = { class: "w-full flex justify-end mt-6" }, Nl = { class: "mt-6 grid grid-cols-4 gap-24" }, Sl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, Il = { class: "col-span-2" }, Rl = { class: "col-span-2" }, Ul = { class: "col-span-2" }, ql = { class: "col-span-2" }, Fl = { class: "col-span-2" }, Dl = { class: "col-span-2" }, Tl = { class: "col-start-1 col-span-2" }, El = { class: "col-span-2" }, $l = { class: "col-span-2" }, Al = { class: "col-span-2" }, Ll = { class: "mt-6 grid grid-cols-4 gap-6" }, Bl = { class: "mt-6 grid grid-cols-4 gap-6" }, Ol = { class: "mt-6 grid grid-cols-4 gap-6" }, jl = { class: "mt-6 grid grid-cols-4 gap-6" }, hl = { class: "mt-6 grid grid-cols-4 gap-6" }, _l = { class: "mt-6 grid grid-cols-4 gap-6" }, Ml = {
343
343
  key: 2,
344
344
  class: "text-sm text-gray-500"
345
- }, hl = { class: "mt-6 grid grid-cols-2 gap-24" }, ge = 30, Ml = /* @__PURE__ */ Q({
345
+ }, zl = { class: "mt-6 grid grid-cols-2 gap-24" }, ve = 30, Hl = /* @__PURE__ */ X({
346
346
  __name: "SoftspaceSubmission",
347
347
  props: {
348
348
  submission: {
@@ -351,11 +351,11 @@ const Ye = {
351
351
  }
352
352
  },
353
353
  emits: ["update:submission"],
354
- setup(d, { emit: x }) {
355
- var de;
356
- const m = d, v = x, c = ue(), C = O(!1), { isLoading: y, startAsyncCall: E } = ne(), { fields: s, documents: i, restaurantId: U, profile: g, status: I, statusReason: $ } = m.submission, R = O(""), L = O(
357
- parseInt(((de = m.submission.fields) == null ? void 0 : de.numberOfDevices) ?? 1)
358
- ), f = O(
354
+ setup(d, { emit: w }) {
355
+ var me;
356
+ const m = d, v = w, c = de(), C = B(!1), { isLoading: y, startAsyncCall: E } = ne(), { fields: s, documents: i, restaurantId: q, profile: g, status: I, statusReason: $ } = m.submission, R = B(""), O = B(
357
+ parseInt(((me = m.submission.fields) == null ? void 0 : me.numberOfDevices) ?? 1)
358
+ ), f = B(
359
359
  m.submission.rates ? Object.fromEntries(
360
360
  Object.entries(m.submission.rates).map(([V, l]) => [V, `${l}`])
361
361
  ) : {
@@ -367,44 +367,44 @@ const Ye = {
367
367
  jcbStandard: "2.2",
368
368
  jcbPlatinum: "2.2"
369
369
  }
370
- ), B = _(
370
+ ), j = h(
371
371
  () => Object.values(f.value).every((V) => parseFloat(V) > 0)
372
- ), X = _(
372
+ ), Z = h(
373
373
  () => Object.keys(m.submission.documents).filter((V) => /^authorizedPersonID\d+$/.test(V)).sort(
374
374
  (V, l) => Number(V.replace("authorizedPersonID", "")) - Number(l.replace("authorizedPersonID", ""))
375
375
  )
376
- ), { isLoading: Z, startAsyncCall: ee } = ne(), z = O([]), ae = (V) => Number(V.replace("additionalDocument", "")), w = _(
376
+ ), { isLoading: ee, startAsyncCall: le } = ne(), z = B([]), ae = (V) => Number(V.replace("additionalDocument", "")), S = h(
377
377
  () => Object.keys(m.submission.documents).filter((V) => /^additionalDocument\d+$/.test(V)).sort((V, l) => ae(V) - ae(l))
378
- ), n = _(
379
- () => w.value.length + z.value.length
378
+ ), n = h(
379
+ () => S.value.length + z.value.length
380
380
  ), F = (V) => {
381
- if (!(n.value >= ge)) {
381
+ if (!(n.value >= ve)) {
382
382
  if (V.type.startsWith("image/")) {
383
383
  const l = new FileReader();
384
- l.onload = (j) => {
385
- var H;
384
+ l.onload = (L) => {
385
+ var W;
386
386
  return z.value.push({
387
387
  file: V,
388
- preview: String(((H = j.target) == null ? void 0 : H.result) ?? "")
388
+ preview: String(((W = L.target) == null ? void 0 : W.result) ?? "")
389
389
  });
390
390
  }, l.readAsDataURL(V);
391
391
  return;
392
392
  }
393
393
  z.value.push({ file: V, preview: "" });
394
394
  }
395
- }, le = () => ee(async () => {
395
+ }, te = () => le(async () => {
396
396
  try {
397
- let V = w.value.reduce(
398
- (j, H) => Math.max(j, ae(H)),
397
+ let V = S.value.reduce(
398
+ (L, W) => Math.max(L, ae(W)),
399
399
  0
400
400
  );
401
401
  const l = {};
402
- for (const { file: j } of z.value) {
403
- const H = `additionalDocument${++V}`;
404
- l[H] = await M.uploadDocument(
405
- U,
406
- H,
407
- j
402
+ for (const { file: L } of z.value) {
403
+ const W = `additionalDocument${++V}`;
404
+ l[W] = await M.uploadDocument(
405
+ q,
406
+ W,
407
+ L
408
408
  );
409
409
  }
410
410
  v(
@@ -418,15 +418,15 @@ const Ye = {
418
418
  c.open({
419
419
  type: "error",
420
420
  title: "Error occurs when sending additional documents",
421
- message: G(V)
421
+ message: J(V)
422
422
  });
423
423
  }
424
- }), re = () => E(async () => {
424
+ }), ie = () => E(async () => {
425
425
  try {
426
426
  const V = await M.reviewById(
427
427
  m.submission._id,
428
428
  {
429
- numberOfDevices: L.value.toString(),
429
+ numberOfDevices: O.value.toString(),
430
430
  rates: {
431
431
  duitNow: parseFloat(f.value.duitNow),
432
432
  mydebitCard: parseFloat(f.value.mydebitCard),
@@ -447,28 +447,32 @@ const Ye = {
447
447
  c.open({
448
448
  type: "error",
449
449
  title: "Error occurs when updating submission",
450
- message: G(V)
450
+ message: J(V)
451
451
  });
452
452
  }
453
- }), { isLoading: te, startAsyncCall: ie } = ne(), se = _(
453
+ }), { isLoading: K, startAsyncCall: ue } = ne(), se = h(
454
454
  () => m.submission.timelineStatus === "complete"
455
- ), r = (V) => ie(async () => {
455
+ ), r = B(!1), H = B(""), oe = (V, l) => ue(async () => {
456
456
  try {
457
457
  v(
458
458
  "update:submission",
459
- await M.trackStatus(m.submission._id, V)
460
- ), c.open({
459
+ await M.trackStatus(
460
+ m.submission._id,
461
+ V,
462
+ l
463
+ )
464
+ ), r.value = !1, H.value = "", c.open({
461
465
  type: "success",
462
466
  title: "Status tracking updated successfully"
463
467
  });
464
- } catch (l) {
468
+ } catch (L) {
465
469
  c.open({
466
470
  type: "error",
467
471
  title: "Error occurs when updating status tracking",
468
- message: G(l)
472
+ message: J(L)
469
473
  });
470
474
  }
471
- }), J = () => E(async () => {
475
+ }), Ne = () => E(async () => {
472
476
  try {
473
477
  const V = await M.reviewById(
474
478
  m.submission._id,
@@ -485,143 +489,169 @@ const Ye = {
485
489
  c.open({
486
490
  type: "error",
487
491
  title: "Error occurs when updating submission",
488
- message: G(V)
492
+ message: J(V)
489
493
  });
490
494
  }
491
495
  });
492
496
  return (V, l) => {
493
- const j = P("FmButton"), H = P("FmDropField"), q = P("FmTextField"), xe = P("FmTextarea"), Ne = P("FmDialog"), we = P("FmPhoneNumber"), me = P("FmSelect"), Se = P("FmForm");
494
- return u(), k(h, null, [
495
- a("div", al, [
497
+ const L = P("FmButton"), W = P("FmTextarea"), pe = P("FmDialog"), Se = P("FmDropField"), U = P("FmTextField"), Pe = P("FmPhoneNumber"), be = P("FmSelect"), Ie = P("FmForm");
498
+ return u(), k(_, null, [
499
+ a("div", nl, [
496
500
  a("div", null, [
497
- l[42] || (l[42] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
498
- a("span", sl, N(e(U)), 1)
501
+ l[44] || (l[44] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
502
+ a("span", ol, N(e(q)), 1)
499
503
  ]),
500
504
  a("div", null, [
501
- l[43] || (l[43] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
502
- a("span", nl, N(e(g).name) + " ( " + N(e(g).legalName) + " )", 1)
505
+ l[45] || (l[45] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
506
+ a("span", rl, N(e(g).name) + " ( " + N(e(g).legalName) + " )", 1)
503
507
  ]),
504
508
  a("div", null, [
505
- l[44] || (l[44] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
506
- a("span", ol, N(e(g).email), 1)
509
+ l[46] || (l[46] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
510
+ a("span", il, N(e(g).email), 1)
507
511
  ]),
508
512
  a("div", null, [
509
- l[45] || (l[45] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
510
- a("span", rl, N(e(g).phoneNo), 1)
513
+ l[47] || (l[47] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
514
+ a("span", ul, N(e(g).phoneNo), 1)
511
515
  ]),
512
516
  a("div", null, [
513
- l[46] || (l[46] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
514
- a("span", il, [
515
- o(ke, { data: e(I) }, null, 8, ["data"])
517
+ l[48] || (l[48] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
518
+ a("span", dl, [
519
+ o(xe, { data: e(I) }, null, 8, ["data"])
516
520
  ])
517
521
  ]),
518
522
  a("div", null, [
519
- l[47] || (l[47] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
520
- a("span", ul, N(e($)), 1)
523
+ l[49] || (l[49] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
524
+ a("span", ml, N(e($)), 1)
521
525
  ])
522
526
  ]),
523
- a("div", dl, [
524
- l[48] || (l[48] = a("h3", { class: "font-semibold text-lg" }, "Status Tracking", -1)),
527
+ a("div", pl, [
528
+ l[50] || (l[50] = a("h3", { class: "font-semibold text-lg" }, "Status Tracking", -1)),
525
529
  a("span", {
526
- class: ve([
530
+ class: Ve([
527
531
  "rounded px-2 py-[2px] text-xs",
528
532
  se.value ? "bg-green-100 text-green-700" : "bg-yellow-100 text-yellow-700"
529
533
  ])
530
534
  }, N(se.value ? "COMPLETE" : "PENDING"), 3)
531
535
  ]),
532
- a("div", ml, [
533
- a("div", pl, [
534
- o(j, {
535
- type: "button",
536
- variant: "secondary",
537
- "prepend-icon": "storefront",
538
- label: "Pending Merchant",
539
- loading: e(te),
540
- onClick: l[0] || (l[0] = (t) => r("pending-merchant"))
541
- }, null, 8, ["loading"]),
542
- o(j, {
536
+ a("div", bl, [
537
+ a("div", cl, [
538
+ o(pe, {
539
+ modelValue: r.value,
540
+ "onUpdate:modelValue": l[2] || (l[2] = (t) => r.value = t)
541
+ }, {
542
+ "dialog-button": x(() => [
543
+ o(L, {
544
+ type: "button",
545
+ variant: "secondary",
546
+ "prepend-icon": "storefront",
547
+ label: "Pending Merchant",
548
+ loading: e(K)
549
+ }, null, 8, ["loading"])
550
+ ]),
551
+ "dialog-header": x(() => [...l[51] || (l[51] = [
552
+ a("div", null, "Pending Merchant", -1)
553
+ ])]),
554
+ default: x(() => [
555
+ o(W, {
556
+ modelValue: H.value,
557
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => H.value = t),
558
+ label: "Description",
559
+ "label-mark": "optional",
560
+ "helper-text": "What the merchant still owes us. Shown on the timeline."
561
+ }, null, 8, ["modelValue"]),
562
+ o(L, {
563
+ class: "mb-2 mt-6 w-full",
564
+ label: "Submit",
565
+ "prepend-icon": "save",
566
+ loading: e(K),
567
+ onClick: l[1] || (l[1] = (t) => oe("pending-merchant", H.value))
568
+ }, null, 8, ["loading"])
569
+ ]),
570
+ _: 1
571
+ }, 8, ["modelValue"]),
572
+ o(L, {
543
573
  type: "button",
544
574
  variant: "secondary",
545
575
  "prepend-icon": "hourglass_top",
546
576
  label: "Pending FassPay",
547
- loading: e(te),
548
- onClick: l[1] || (l[1] = (t) => r("pending-fasspay"))
577
+ loading: e(K),
578
+ onClick: l[3] || (l[3] = (t) => oe("pending-fasspay"))
549
579
  }, null, 8, ["loading"])
550
580
  ]),
551
- a("div", bl, [
552
- o(j, {
581
+ a("div", gl, [
582
+ o(L, {
553
583
  type: "button",
554
584
  variant: "tertiary",
555
585
  "prepend-icon": "task_alt",
556
586
  label: "Complete FassPay",
557
- loading: e(te),
558
- onClick: l[2] || (l[2] = (t) => r("complete-fasspay"))
587
+ loading: e(K),
588
+ onClick: l[4] || (l[4] = (t) => oe("complete-fasspay"))
559
589
  }, null, 8, ["loading"]),
560
- o(j, {
590
+ o(L, {
561
591
  type: "button",
562
592
  variant: "primary",
563
593
  "prepend-icon": "credit_card",
564
594
  label: "Complete Credit Card",
565
- loading: e(te),
595
+ loading: e(K),
566
596
  disabled: se.value,
567
- onClick: l[3] || (l[3] = (t) => r("complete-credit-card"))
597
+ onClick: l[5] || (l[5] = (t) => oe("complete-credit-card"))
568
598
  }, null, 8, ["loading", "disabled"])
569
599
  ])
570
600
  ]),
571
- l[66] || (l[66] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Timeline", -1)),
572
- o(Ce, {
601
+ l[69] || (l[69] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Timeline", -1)),
602
+ o(we, {
573
603
  entries: d.submission.timeline
574
604
  }, null, 8, ["entries"]),
575
- l[67] || (l[67] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " (SharePoint) Additional Requested Documents ", -1)),
576
- a("div", cl, [
577
- (u(!0), k(h, null, K(w.value, (t) => (u(), A(D, {
605
+ l[70] || (l[70] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " (SharePoint) Additional Requested Documents ", -1)),
606
+ a("div", yl, [
607
+ (u(!0), k(_, null, Q(S.value, (t) => (u(), A(D, {
578
608
  key: t,
579
609
  label: t.replace("additionalDocument", "Document "),
580
610
  type: /\.pdf$/i.test(m.submission.documents[t]) ? "pdf" : "image",
581
611
  modelValue: m.submission.documents[t],
582
- "onUpdate:modelValue": (W) => m.submission.documents[t] = W,
583
- "restaurant-id": e(U)
612
+ "onUpdate:modelValue": (Y) => m.submission.documents[t] = Y,
613
+ "restaurant-id": e(q)
584
614
  }, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
585
- (u(!0), k(h, null, K(z.value, (t, W) => (u(), k("div", {
586
- key: `new-${W}`
615
+ (u(!0), k(_, null, Q(z.value, (t, Y) => (u(), k("div", {
616
+ key: `new-${Y}`
587
617
  }, [
588
- a("p", null, "Document " + N(w.value.length + W + 1), 1),
618
+ a("p", null, "Document " + N(S.value.length + Y + 1), 1),
589
619
  t.file.type.startsWith("image/") ? (u(), k("img", {
590
620
  key: 0,
591
621
  src: t.preview,
592
622
  class: "mt-2 rounded border"
593
- }, null, 8, gl)) : (u(), k("p", yl, N(t.file.name), 1)),
594
- o(j, {
623
+ }, null, 8, vl)) : (u(), k("p", fl, N(t.file.name), 1)),
624
+ o(L, {
595
625
  class: "mt-4",
596
626
  "prepend-icon": "delete",
597
627
  label: "Remove",
598
628
  variant: "destructive",
599
- onClick: (vt) => z.value.splice(W, 1)
629
+ onClick: (Vt) => z.value.splice(Y, 1)
600
630
  }, null, 8, ["onClick"])
601
631
  ]))), 128)),
602
- n.value < ge ? (u(), k("div", vl, [
632
+ n.value < ve ? (u(), k("div", Vl, [
603
633
  a("p", null, "Document " + N(n.value + 1), 1),
604
- o(H, {
634
+ o(Se, {
605
635
  accept: ".png, .jpg, .jpeg, .pdf",
606
636
  onFileUpload: F
607
637
  })
608
638
  ])) : T("", !0)
609
639
  ]),
610
- z.value.length ? (u(), k("div", fl, [
611
- o(j, {
640
+ z.value.length ? (u(), k("div", kl, [
641
+ o(L, {
612
642
  type: "button",
613
643
  variant: "primary",
614
644
  "prepend-icon": "cloud_upload",
615
645
  label: "Save documents",
616
- loading: e(Z),
617
- onClick: le
646
+ loading: e(ee),
647
+ onClick: te
618
648
  }, null, 8, ["loading"])
619
649
  ])) : T("", !0),
620
- l[68] || (l[68] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
621
- a("div", Vl, [
622
- o(q, {
650
+ l[71] || (l[71] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
651
+ a("div", Cl, [
652
+ o(U, {
623
653
  modelValue: f.value.duitNow,
624
- "onUpdate:modelValue": l[4] || (l[4] = (t) => f.value.duitNow = t),
654
+ "onUpdate:modelValue": l[6] || (l[6] = (t) => f.value.duitNow = t),
625
655
  label: "DuitNow QR",
626
656
  "label-mark": "required",
627
657
  type: "number",
@@ -631,14 +661,14 @@ const Ye = {
631
661
  e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
632
662
  )
633
663
  }, {
634
- append: S(() => [...l[49] || (l[49] = [
635
- Y("%", -1)
664
+ append: x(() => [...l[52] || (l[52] = [
665
+ G("%", -1)
636
666
  ])]),
637
667
  _: 1
638
668
  }, 8, ["modelValue", "rules"]),
639
- o(q, {
669
+ o(U, {
640
670
  modelValue: f.value.mydebitCard,
641
- "onUpdate:modelValue": l[5] || (l[5] = (t) => f.value.mydebitCard = t),
671
+ "onUpdate:modelValue": l[7] || (l[7] = (t) => f.value.mydebitCard = t),
642
672
  label: "myDebit Card",
643
673
  "label-mark": "required",
644
674
  type: "number",
@@ -648,14 +678,14 @@ const Ye = {
648
678
  e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
649
679
  )
650
680
  }, {
651
- append: S(() => [...l[50] || (l[50] = [
652
- Y("%", -1)
681
+ append: x(() => [...l[53] || (l[53] = [
682
+ G("%", -1)
653
683
  ])]),
654
684
  _: 1
655
685
  }, 8, ["modelValue", "rules"]),
656
- o(q, {
686
+ o(U, {
657
687
  modelValue: f.value.localDebit,
658
- "onUpdate:modelValue": l[6] || (l[6] = (t) => f.value.localDebit = t),
688
+ "onUpdate:modelValue": l[8] || (l[8] = (t) => f.value.localDebit = t),
659
689
  label: "Local Debit Card",
660
690
  "label-mark": "required",
661
691
  type: "number",
@@ -665,14 +695,14 @@ const Ye = {
665
695
  e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
666
696
  )
667
697
  }, {
668
- append: S(() => [...l[51] || (l[51] = [
669
- Y("%", -1)
698
+ append: x(() => [...l[54] || (l[54] = [
699
+ G("%", -1)
670
700
  ])]),
671
701
  _: 1
672
702
  }, 8, ["modelValue", "rules"]),
673
- o(q, {
703
+ o(U, {
674
704
  modelValue: f.value.localCredit,
675
- "onUpdate:modelValue": l[7] || (l[7] = (t) => f.value.localCredit = t),
705
+ "onUpdate:modelValue": l[9] || (l[9] = (t) => f.value.localCredit = t),
676
706
  label: "Local Credit Card",
677
707
  "label-mark": "required",
678
708
  type: "number",
@@ -682,14 +712,14 @@ const Ye = {
682
712
  e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
683
713
  )
684
714
  }, {
685
- append: S(() => [...l[52] || (l[52] = [
686
- Y("%", -1)
715
+ append: x(() => [...l[55] || (l[55] = [
716
+ G("%", -1)
687
717
  ])]),
688
718
  _: 1
689
719
  }, 8, ["modelValue", "rules"]),
690
- o(q, {
720
+ o(U, {
691
721
  modelValue: f.value.foreignCard,
692
- "onUpdate:modelValue": l[8] || (l[8] = (t) => f.value.foreignCard = t),
722
+ "onUpdate:modelValue": l[10] || (l[10] = (t) => f.value.foreignCard = t),
693
723
  label: "Foreign Card",
694
724
  "label-mark": "required",
695
725
  type: "number",
@@ -699,14 +729,14 @@ const Ye = {
699
729
  e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
700
730
  )
701
731
  }, {
702
- append: S(() => [...l[53] || (l[53] = [
703
- Y("%", -1)
732
+ append: x(() => [...l[56] || (l[56] = [
733
+ G("%", -1)
704
734
  ])]),
705
735
  _: 1
706
736
  }, 8, ["modelValue", "rules"]),
707
- o(q, {
737
+ o(U, {
708
738
  modelValue: f.value.jcbStandard,
709
- "onUpdate:modelValue": l[9] || (l[9] = (t) => f.value.jcbStandard = t),
739
+ "onUpdate:modelValue": l[11] || (l[11] = (t) => f.value.jcbStandard = t),
710
740
  label: "JCB Standard",
711
741
  "label-mark": "required",
712
742
  type: "number",
@@ -716,14 +746,14 @@ const Ye = {
716
746
  e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
717
747
  )
718
748
  }, {
719
- append: S(() => [...l[54] || (l[54] = [
720
- Y("%", -1)
749
+ append: x(() => [...l[57] || (l[57] = [
750
+ G("%", -1)
721
751
  ])]),
722
752
  _: 1
723
753
  }, 8, ["modelValue", "rules"]),
724
- o(q, {
754
+ o(U, {
725
755
  modelValue: f.value.jcbPlatinum,
726
- "onUpdate:modelValue": l[10] || (l[10] = (t) => f.value.jcbPlatinum = t),
756
+ "onUpdate:modelValue": l[12] || (l[12] = (t) => f.value.jcbPlatinum = t),
727
757
  label: "JCB Platinum",
728
758
  "label-mark": "required",
729
759
  type: "number",
@@ -733,30 +763,30 @@ const Ye = {
733
763
  e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
734
764
  )
735
765
  }, {
736
- append: S(() => [...l[55] || (l[55] = [
737
- Y("%", -1)
766
+ append: x(() => [...l[58] || (l[58] = [
767
+ G("%", -1)
738
768
  ])]),
739
769
  _: 1
740
770
  }, 8, ["modelValue", "rules"])
741
771
  ]),
742
- l[69] || (l[69] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Extra Settings", -1)),
743
- a("div", kl, [
744
- o(q, {
745
- modelValue: L.value,
746
- "onUpdate:modelValue": l[11] || (l[11] = (t) => L.value = t),
772
+ l[72] || (l[72] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Extra Settings", -1)),
773
+ a("div", xl, [
774
+ o(U, {
775
+ modelValue: O.value,
776
+ "onUpdate:modelValue": l[13] || (l[13] = (t) => O.value = t),
747
777
  label: "Number of Devices",
748
778
  "label-mark": "required",
749
779
  type: "number",
750
780
  inputmode: "numeric"
751
781
  }, null, 8, ["modelValue"])
752
782
  ]),
753
- a("div", Cl, [
754
- o(Ne, {
783
+ a("div", wl, [
784
+ o(pe, {
755
785
  modelValue: C.value,
756
- "onUpdate:modelValue": l[13] || (l[13] = (t) => C.value = t)
786
+ "onUpdate:modelValue": l[15] || (l[15] = (t) => C.value = t)
757
787
  }, {
758
- "dialog-button": S(() => [
759
- o(j, {
788
+ "dialog-button": x(() => [
789
+ o(L, {
760
790
  class: "mr-6",
761
791
  type: "button",
762
792
  variant: "destructive",
@@ -765,65 +795,65 @@ const Ye = {
765
795
  label: "Reject Submission"
766
796
  }, null, 8, ["loading"])
767
797
  ]),
768
- "dialog-header": S(() => [...l[56] || (l[56] = [
798
+ "dialog-header": x(() => [...l[59] || (l[59] = [
769
799
  a("div", null, "Rejecting Submission", -1)
770
800
  ])]),
771
- default: S(() => [
772
- o(xe, {
801
+ default: x(() => [
802
+ o(W, {
773
803
  modelValue: R.value,
774
- "onUpdate:modelValue": l[12] || (l[12] = (t) => R.value = t),
804
+ "onUpdate:modelValue": l[14] || (l[14] = (t) => R.value = t),
775
805
  label: "Reason for Rejection",
776
806
  "label-mark": "optional",
777
807
  "helper-text": "Please provide a reason for rejection."
778
808
  }, null, 8, ["modelValue"]),
779
- o(j, {
809
+ o(L, {
780
810
  class: "mb-2 mt-6 w-full",
781
811
  label: "Submit",
782
812
  "prepend-icon": "save",
783
- onClick: J,
813
+ onClick: Ne,
784
814
  loading: e(y)
785
815
  }, null, 8, ["loading"])
786
816
  ]),
787
817
  _: 1
788
818
  }, 8, ["modelValue"]),
789
- o(j, {
819
+ o(L, {
790
820
  type: "button",
791
821
  variant: "primary",
792
822
  "prepend-icon": "approval",
793
- disabled: !B.value,
823
+ disabled: !j.value,
794
824
  label: "Approve Submission with Rates",
795
- onClick: re,
825
+ onClick: ie,
796
826
  loading: e(y)
797
827
  }, null, 8, ["disabled", "loading"])
798
828
  ]),
799
- o(Se, { disabled: !0 }, {
800
- default: S(() => [
801
- l[57] || (l[57] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
802
- a("div", xl, [
803
- a("div", Nl, [
804
- o(q, {
829
+ o(Ie, { disabled: !0 }, {
830
+ default: x(() => [
831
+ l[60] || (l[60] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
832
+ a("div", Nl, [
833
+ a("div", Sl, [
834
+ o(U, {
805
835
  modelValue: e(s).picName,
806
- "onUpdate:modelValue": l[14] || (l[14] = (t) => e(s).picName = t),
836
+ "onUpdate:modelValue": l[16] || (l[16] = (t) => e(s).picName = t),
807
837
  label: "Owner/Director Name",
808
838
  placeholder: "Enter your name",
809
839
  "label-mark": "required",
810
840
  rules: e(p)(e(b).string().min(1, "Owner/Director Name is required"))
811
841
  }, null, 8, ["modelValue", "rules"])
812
842
  ]),
813
- a("div", wl, [
814
- o(q, {
843
+ a("div", Pl, [
844
+ o(U, {
815
845
  modelValue: e(s).picRole,
816
- "onUpdate:modelValue": l[15] || (l[15] = (t) => e(s).picRole = t),
846
+ "onUpdate:modelValue": l[17] || (l[17] = (t) => e(s).picRole = t),
817
847
  label: "Owner/Director Role",
818
848
  placeholder: "Enter your role",
819
849
  "label-mark": "required",
820
850
  rules: e(p)(e(b).string().min(1, "Owner/Director Role is required"))
821
851
  }, null, 8, ["modelValue", "rules"])
822
852
  ]),
823
- a("div", Sl, [
824
- o(q, {
853
+ a("div", Il, [
854
+ o(U, {
825
855
  modelValue: e(s).picEmail,
826
- "onUpdate:modelValue": l[16] || (l[16] = (t) => e(s).picEmail = t),
856
+ "onUpdate:modelValue": l[18] || (l[18] = (t) => e(s).picEmail = t),
827
857
  label: "Owner/Director Email",
828
858
  type: "email",
829
859
  placeholder: "Enter your email address",
@@ -831,84 +861,84 @@ const Ye = {
831
861
  rules: e(p)(e(b).string().min(1, "Owner/Director Email is required"))
832
862
  }, null, 8, ["modelValue", "rules"])
833
863
  ]),
834
- a("div", Pl, [
835
- o(we, {
864
+ a("div", Rl, [
865
+ o(Pe, {
836
866
  "model-value": e(s).picContact,
837
- "onUpdate:modelValue": l[17] || (l[17] = (t) => e(s).picContact = t),
867
+ "onUpdate:modelValue": l[19] || (l[19] = (t) => e(s).picContact = t),
838
868
  "default-country": "MY",
839
869
  label: "Owner/Director Contact",
840
870
  "label-mark": "required",
841
871
  rules: e(p)(e(b).string().min(1, "Owner/Director Contact is required"))
842
872
  }, null, 8, ["model-value", "rules"])
843
873
  ]),
844
- a("div", Il, [
845
- o(q, {
874
+ a("div", Ul, [
875
+ o(U, {
846
876
  modelValue: e(s).nric,
847
- "onUpdate:modelValue": l[18] || (l[18] = (t) => e(s).nric = t),
877
+ "onUpdate:modelValue": l[20] || (l[20] = (t) => e(s).nric = t),
848
878
  label: "Owner/Director NRIC No",
849
879
  placeholder: "Enter your NRIC number",
850
880
  "label-mark": "required",
851
881
  rules: e(p)(e(b).string().min(1, "NRIC No is required"))
852
882
  }, null, 8, ["modelValue", "rules"])
853
883
  ]),
854
- a("div", Rl, [
855
- o(q, {
884
+ a("div", ql, [
885
+ o(U, {
856
886
  modelValue: e(s).tradingName,
857
- "onUpdate:modelValue": l[19] || (l[19] = (t) => e(s).tradingName = t),
887
+ "onUpdate:modelValue": l[21] || (l[21] = (t) => e(s).tradingName = t),
858
888
  label: "Trading Name",
859
889
  placeholder: "Enter trading name",
860
890
  "label-mark": "required",
861
891
  rules: e(p)(e(b).string().min(1, "Trading Name is required"))
862
892
  }, null, 8, ["modelValue", "rules"])
863
893
  ]),
864
- a("div", ql, [
865
- o(q, {
894
+ a("div", Fl, [
895
+ o(U, {
866
896
  modelValue: e(s).outletName,
867
- "onUpdate:modelValue": l[20] || (l[20] = (t) => e(s).outletName = t),
897
+ "onUpdate:modelValue": l[22] || (l[22] = (t) => e(s).outletName = t),
868
898
  label: "Registered Name",
869
899
  placeholder: "Enter registered name",
870
900
  "label-mark": "required",
871
901
  rules: e(p)(e(b).string().min(1, "Registered Name is required"))
872
902
  }, null, 8, ["modelValue", "rules"])
873
903
  ]),
874
- a("div", Ul, [
875
- o(q, {
904
+ a("div", Dl, [
905
+ o(U, {
876
906
  modelValue: e(s).outletAddress,
877
- "onUpdate:modelValue": l[21] || (l[21] = (t) => e(s).outletAddress = t),
907
+ "onUpdate:modelValue": l[23] || (l[23] = (t) => e(s).outletAddress = t),
878
908
  label: "Outlet Address",
879
909
  placeholder: "Enter outlet address",
880
910
  "label-mark": "required",
881
911
  rules: e(p)(e(b).string().min(1, "Address is required"))
882
912
  }, null, 8, ["modelValue", "rules"])
883
913
  ]),
884
- o(q, {
914
+ o(U, {
885
915
  modelValue: e(s).outletPostCode,
886
- "onUpdate:modelValue": l[22] || (l[22] = (t) => e(s).outletPostCode = t),
916
+ "onUpdate:modelValue": l[24] || (l[24] = (t) => e(s).outletPostCode = t),
887
917
  label: "Postal Code",
888
918
  placeholder: "Enter postal code",
889
919
  "label-mark": "required",
890
920
  rules: e(p)(e(b).string().min(1, "Postal Code is required"))
891
921
  }, null, 8, ["modelValue", "rules"]),
892
- o(q, {
922
+ o(U, {
893
923
  modelValue: e(s).outletState,
894
- "onUpdate:modelValue": l[23] || (l[23] = (t) => e(s).outletState = t),
924
+ "onUpdate:modelValue": l[25] || (l[25] = (t) => e(s).outletState = t),
895
925
  label: "State",
896
926
  placeholder: "Enter state",
897
927
  "label-mark": "required",
898
928
  rules: e(p)(e(b).string().min(1, "State is required"))
899
929
  }, null, 8, ["modelValue", "rules"]),
900
- o(q, {
930
+ o(U, {
901
931
  modelValue: e(s).outletCity,
902
- "onUpdate:modelValue": l[24] || (l[24] = (t) => e(s).outletCity = t),
932
+ "onUpdate:modelValue": l[26] || (l[26] = (t) => e(s).outletCity = t),
903
933
  label: "City",
904
934
  placeholder: "Enter city",
905
935
  "label-mark": "required",
906
936
  rules: e(p)(e(b).string().min(1, "City is required"))
907
937
  }, null, 8, ["modelValue", "rules"]),
908
- a("div", Fl, [
909
- o(me, {
938
+ a("div", Tl, [
939
+ o(be, {
910
940
  modelValue: e(s).businessType,
911
- "onUpdate:modelValue": l[25] || (l[25] = (t) => e(s).businessType = t),
941
+ "onUpdate:modelValue": l[27] || (l[27] = (t) => e(s).businessType = t),
912
942
  label: "Type",
913
943
  placeholder: "Select business type",
914
944
  "label-mark": "required",
@@ -927,91 +957,91 @@ const Ye = {
927
957
  ]
928
958
  }, null, 8, ["modelValue", "rules"])
929
959
  ]),
930
- a("div", Dl, [
931
- o(q, {
960
+ a("div", El, [
961
+ o(U, {
932
962
  modelValue: e(s).businessRegNo,
933
- "onUpdate:modelValue": l[26] || (l[26] = (t) => e(s).businessRegNo = t),
963
+ "onUpdate:modelValue": l[28] || (l[28] = (t) => e(s).businessRegNo = t),
934
964
  label: "Registration No",
935
965
  placeholder: "Enter registration number",
936
966
  "label-mark": "required",
937
967
  rules: e(p)(e(b).string().min(1, "Reg No is required"))
938
968
  }, null, 8, ["modelValue", "rules"])
939
969
  ]),
940
- a("div", Tl, [
941
- o(q, {
970
+ a("div", $l, [
971
+ o(U, {
942
972
  modelValue: e(s).tinNo,
943
- "onUpdate:modelValue": l[27] || (l[27] = (t) => e(s).tinNo = t),
973
+ "onUpdate:modelValue": l[29] || (l[29] = (t) => e(s).tinNo = t),
944
974
  label: "Tax Identification No (TIN)",
945
975
  placeholder: "Enter your TIN number",
946
976
  "label-mark": "required",
947
977
  rules: e(p)(e(b).string().min(1, "TIN is required"))
948
978
  }, null, 8, ["modelValue", "rules"])
949
979
  ]),
950
- a("div", El, [
951
- o(q, {
980
+ a("div", Al, [
981
+ o(U, {
952
982
  modelValue: e(s).sstNo,
953
- "onUpdate:modelValue": l[28] || (l[28] = (t) => e(s).sstNo = t),
983
+ "onUpdate:modelValue": l[30] || (l[30] = (t) => e(s).sstNo = t),
954
984
  label: "SST Registration No (SST)",
955
985
  placeholder: "Enter your SST number",
956
986
  "label-mark": "optional"
957
987
  }, null, 8, ["modelValue"])
958
988
  ])
959
989
  ]),
960
- l[58] || (l[58] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
961
- a("div", $l, [
962
- o(me, {
990
+ l[61] || (l[61] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
991
+ a("div", Ll, [
992
+ o(be, {
963
993
  modelValue: e(s).bankName,
964
- "onUpdate:modelValue": l[29] || (l[29] = (t) => e(s).bankName = t),
994
+ "onUpdate:modelValue": l[31] || (l[31] = (t) => e(s).bankName = t),
965
995
  label: "Bank",
966
996
  placeholder: "Select bank type",
967
997
  "label-mark": "required",
968
998
  rules: e(p)(e(b).string().min(1, "Bank Type is required")),
969
- items: e(Fe).bankNameOptions()
999
+ items: e(Te).bankNameOptions()
970
1000
  }, null, 8, ["modelValue", "rules", "items"]),
971
- o(q, {
1001
+ o(U, {
972
1002
  modelValue: e(s).bankHolderName,
973
- "onUpdate:modelValue": l[30] || (l[30] = (t) => e(s).bankHolderName = t),
1003
+ "onUpdate:modelValue": l[32] || (l[32] = (t) => e(s).bankHolderName = t),
974
1004
  label: "Beneficiary Name",
975
1005
  placeholder: "Enter Beneficiary Name",
976
1006
  "label-mark": "required",
977
1007
  rules: e(p)(e(b).string().min(1, "Beneficiary Name is required"))
978
1008
  }, null, 8, ["modelValue", "rules"]),
979
- o(q, {
1009
+ o(U, {
980
1010
  modelValue: e(s).bankAccountNo,
981
- "onUpdate:modelValue": l[31] || (l[31] = (t) => e(s).bankAccountNo = t),
1011
+ "onUpdate:modelValue": l[33] || (l[33] = (t) => e(s).bankAccountNo = t),
982
1012
  label: "Account Number",
983
1013
  placeholder: "Enter Account Number",
984
1014
  "label-mark": "required",
985
1015
  rules: e(p)(e(b).string().min(1, "Account Number is required"))
986
1016
  }, null, 8, ["modelValue", "rules"])
987
1017
  ]),
988
- l[59] || (l[59] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
989
- l[60] || (l[60] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 1. All Directors/Owner ICs ", -1)),
990
- a("div", Al, [
1018
+ l[62] || (l[62] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1019
+ l[63] || (l[63] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 1. All Directors/Owner ICs ", -1)),
1020
+ a("div", Bl, [
991
1021
  o(D, {
992
1022
  label: "Authorized Person ID",
993
1023
  modelValue: e(i).authorizedPersonID,
994
- "onUpdate:modelValue": l[32] || (l[32] = (t) => e(i).authorizedPersonID = t),
1024
+ "onUpdate:modelValue": l[34] || (l[34] = (t) => e(i).authorizedPersonID = t),
995
1025
  type: "image",
996
1026
  "restaurant-id": d.submission.restaurantId
997
1027
  }, null, 8, ["modelValue", "restaurant-id"]),
998
- (u(!0), k(h, null, K(X.value, (t) => (u(), A(D, {
1028
+ (u(!0), k(_, null, Q(Z.value, (t) => (u(), A(D, {
999
1029
  key: t,
1000
1030
  label: `Authorized Person ID ${t.replace("authorizedPersonID", "")}`,
1001
1031
  modelValue: e(i)[t],
1002
- "onUpdate:modelValue": (W) => e(i)[t] = W,
1032
+ "onUpdate:modelValue": (Y) => e(i)[t] = Y,
1003
1033
  type: "image",
1004
1034
  "restaurant-id": d.submission.restaurantId
1005
1035
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
1006
1036
  ]),
1007
- l[61] || (l[61] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-6" }, " Section 2. Business Information ", -1)),
1008
- a("div", Ll, [
1037
+ l[64] || (l[64] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-6" }, " Section 2. Business Information ", -1)),
1038
+ a("div", Ol, [
1009
1039
  e(s).businessType === "private_limited" || e(s).businessType === "public_limited" ? (u(), A(D, {
1010
1040
  key: 0,
1011
1041
  label: "Superform",
1012
1042
  type: "pdf",
1013
1043
  modelValue: e(i).certificate,
1014
- "onUpdate:modelValue": l[33] || (l[33] = (t) => e(i).certificate = t),
1044
+ "onUpdate:modelValue": l[35] || (l[35] = (t) => e(i).certificate = t),
1015
1045
  "restaurant-id": d.submission.restaurantId
1016
1046
  }, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
1017
1047
  e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (u(), A(D, {
@@ -1019,55 +1049,55 @@ const Ye = {
1019
1049
  label: "Business Registration Document",
1020
1050
  type: "pdf",
1021
1051
  modelValue: e(i).certificate,
1022
- "onUpdate:modelValue": l[34] || (l[34] = (t) => e(i).certificate = t),
1052
+ "onUpdate:modelValue": l[36] || (l[36] = (t) => e(i).certificate = t),
1023
1053
  "restaurant-id": d.submission.restaurantId
1024
1054
  }, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
1025
1055
  e(i).interiorPhoto ? (u(), A(D, {
1026
1056
  key: 2,
1027
1057
  label: "Interior Photo",
1028
1058
  modelValue: e(i).interiorPhoto,
1029
- "onUpdate:modelValue": l[35] || (l[35] = (t) => e(i).interiorPhoto = t),
1059
+ "onUpdate:modelValue": l[37] || (l[37] = (t) => e(i).interiorPhoto = t),
1030
1060
  type: "image",
1031
1061
  "restaurant-id": d.submission.restaurantId
1032
1062
  }, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
1033
1063
  o(D, {
1034
1064
  label: "Outlet Photo",
1035
1065
  modelValue: e(i).outletPhoto,
1036
- "onUpdate:modelValue": l[36] || (l[36] = (t) => e(i).outletPhoto = t),
1066
+ "onUpdate:modelValue": l[38] || (l[38] = (t) => e(i).outletPhoto = t),
1037
1067
  type: "image-or-pdf",
1038
1068
  "restaurant-id": d.submission.restaurantId
1039
1069
  }, null, 8, ["modelValue", "restaurant-id"])
1040
1070
  ]),
1041
- l[62] || (l[62] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 3. Payout Information ", -1)),
1042
- a("div", Bl, [
1071
+ l[65] || (l[65] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 3. Payout Information ", -1)),
1072
+ a("div", jl, [
1043
1073
  o(D, {
1044
1074
  label: "Latest Bank Statement",
1045
1075
  modelValue: e(i).bankStatement,
1046
- "onUpdate:modelValue": l[37] || (l[37] = (t) => e(i).bankStatement = t),
1076
+ "onUpdate:modelValue": l[39] || (l[39] = (t) => e(i).bankStatement = t),
1047
1077
  type: "pdf",
1048
1078
  "restaurant-id": d.submission.restaurantId
1049
1079
  }, null, 8, ["modelValue", "restaurant-id"])
1050
1080
  ]),
1051
- l[63] || (l[63] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 4. Site Photos ", -1)),
1052
- a("div", Ol, [
1053
- (u(!0), k(h, null, K([1, 2, 3, 4, 5].filter(
1081
+ l[66] || (l[66] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 4. Site Photos ", -1)),
1082
+ a("div", hl, [
1083
+ (u(!0), k(_, null, Q([1, 2, 3, 4, 5].filter(
1054
1084
  (t) => !!e(i)[`onsitePhoto${t}`]
1055
1085
  ), (t) => (u(), A(D, {
1056
1086
  key: t,
1057
- label: e(De)[t - 1],
1087
+ label: e(Ee)[t - 1],
1058
1088
  modelValue: e(i)[`onsitePhoto${t}`],
1059
- "onUpdate:modelValue": (W) => e(i)[`onsitePhoto${t}`] = W,
1089
+ "onUpdate:modelValue": (Y) => e(i)[`onsitePhoto${t}`] = Y,
1060
1090
  type: "image",
1061
1091
  "restaurant-id": d.submission.restaurantId
1062
1092
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
1063
1093
  ]),
1064
- l[64] || (l[64] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 5. Additional Documents ", -1)),
1065
- a("div", jl, [
1094
+ l[67] || (l[67] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 5. Additional Documents ", -1)),
1095
+ a("div", _l, [
1066
1096
  e(i).liquorLicense ? (u(), A(D, {
1067
1097
  key: 0,
1068
1098
  label: "Liquor License",
1069
1099
  modelValue: e(i).liquorLicense,
1070
- "onUpdate:modelValue": l[38] || (l[38] = (t) => e(i).liquorLicense = t),
1100
+ "onUpdate:modelValue": l[40] || (l[40] = (t) => e(i).liquorLicense = t),
1071
1101
  type: "image-or-pdf",
1072
1102
  "restaurant-id": d.submission.restaurantId
1073
1103
  }, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
@@ -1075,17 +1105,17 @@ const Ye = {
1075
1105
  key: 1,
1076
1106
  label: "Appendix C",
1077
1107
  modelValue: e(i).appendixC,
1078
- "onUpdate:modelValue": l[39] || (l[39] = (t) => e(i).appendixC = t),
1108
+ "onUpdate:modelValue": l[41] || (l[41] = (t) => e(i).appendixC = t),
1079
1109
  type: "pdf",
1080
1110
  "restaurant-id": d.submission.restaurantId
1081
1111
  }, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
1082
- !e(i).liquorLicense && !e(i).appendixC ? (u(), k("p", _l, " No additional documents submitted. ")) : T("", !0)
1112
+ !e(i).liquorLicense && !e(i).appendixC ? (u(), k("p", Ml, " No additional documents submitted. ")) : T("", !0)
1083
1113
  ]),
1084
- l[65] || (l[65] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1085
- a("div", hl, [
1086
- o(Be, {
1114
+ l[68] || (l[68] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1115
+ a("div", zl, [
1116
+ o(je, {
1087
1117
  modelValue: e(i).signature,
1088
- "onUpdate:modelValue": l[40] || (l[40] = (t) => e(i).signature = t),
1118
+ "onUpdate:modelValue": l[42] || (l[42] = (t) => e(i).signature = t),
1089
1119
  "restaurant-id": d.submission.restaurantId,
1090
1120
  label: "Signature"
1091
1121
  }, null, 8, ["modelValue", "restaurant-id"]),
@@ -1093,7 +1123,7 @@ const Ye = {
1093
1123
  label: "Company Stamp",
1094
1124
  type: "image",
1095
1125
  modelValue: e(i).companyStamp,
1096
- "onUpdate:modelValue": l[41] || (l[41] = (t) => e(i).companyStamp = t),
1126
+ "onUpdate:modelValue": l[43] || (l[43] = (t) => e(i).companyStamp = t),
1097
1127
  "restaurant-id": d.submission.restaurantId
1098
1128
  }, null, 8, ["modelValue", "restaurant-id"])
1099
1129
  ])
@@ -1103,7 +1133,7 @@ const Ye = {
1103
1133
  ], 64);
1104
1134
  };
1105
1135
  }
1106
- }), zl = { class: "space-y-2" }, Hl = { class: "text-gray-900" }, Wl = { class: "text-gray-900" }, Yl = { class: "text-gray-900" }, Gl = { class: "text-gray-900" }, Jl = { class: "text-gray-900" }, Kl = { class: "text-gray-900" }, Ql = { class: "mt-6 grid grid-cols-4 gap-24" }, Xl = { class: "w-full flex justify-end mt-6" }, Zl = { class: "mt-6 grid grid-cols-4 gap-24" }, et = { class: "col-span-2" }, lt = { class: "col-span-2" }, tt = { class: "col-span-2" }, at = { class: "col-span-2" }, st = { class: "mt-6 grid grid-cols-4 gap-24" }, nt = { class: "mt-6 grid grid-cols-4 gap-24" }, ot = { class: "mt-6 grid grid-cols-4 gap-24" }, rt = { class: "col-span-2" }, it = { class: "col-span-2" }, ut = { class: "col-span-2" }, dt = { class: "col-span-2" }, mt = { class: "col-span-2" }, pt = { class: "col-span-2" }, bt = /* @__PURE__ */ Q({
1136
+ }), Wl = { class: "space-y-2" }, Yl = { class: "text-gray-900" }, Gl = { class: "text-gray-900" }, Jl = { class: "text-gray-900" }, Kl = { class: "text-gray-900" }, Ql = { class: "text-gray-900" }, Xl = { class: "text-gray-900" }, Zl = { class: "mt-6 grid grid-cols-4 gap-24" }, et = { class: "w-full flex justify-end mt-6" }, lt = { class: "mt-6 grid grid-cols-4 gap-24" }, tt = { class: "col-span-2" }, at = { class: "col-span-2" }, st = { class: "col-span-2" }, nt = { class: "col-span-2" }, ot = { class: "mt-6 grid grid-cols-4 gap-24" }, rt = { class: "mt-6 grid grid-cols-4 gap-24" }, it = { class: "mt-6 grid grid-cols-4 gap-24" }, ut = { class: "col-span-2" }, dt = { class: "col-span-2" }, mt = { class: "col-span-2" }, pt = { class: "col-span-2" }, bt = { class: "col-span-2" }, ct = { class: "col-span-2" }, gt = /* @__PURE__ */ X({
1107
1137
  __name: "NTTSubmission",
1108
1138
  props: {
1109
1139
  submission: {
@@ -1112,8 +1142,8 @@ const Ye = {
1112
1142
  }
1113
1143
  },
1114
1144
  emits: ["update:submission"],
1115
- setup(d, { emit: x }) {
1116
- const m = d, v = x, c = ue(), C = O(!1), { isLoading: y, startAsyncCall: E } = ne(), { fields: s, documents: i, restaurantId: U, profile: g, status: I, statusReason: $ } = m.submission, R = O(""), L = [
1145
+ setup(d, { emit: w }) {
1146
+ const m = d, v = w, c = de(), C = B(!1), { isLoading: y, startAsyncCall: E } = ne(), { fields: s, documents: i, restaurantId: q, profile: g, status: I, statusReason: $ } = m.submission, R = B(""), O = [
1117
1147
  { key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
1118
1148
  {
1119
1149
  key: "localCardStandard",
@@ -1146,137 +1176,137 @@ const Ye = {
1146
1176
  { key: "linePay", label: "LinePay", defaultValue: "2.1" },
1147
1177
  { key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
1148
1178
  ], f = Object.fromEntries(
1149
- L.map((w) => [w.key, w.defaultValue])
1150
- ), B = O(
1179
+ O.map((S) => [S.key, S.defaultValue])
1180
+ ), j = B(
1151
1181
  m.submission.rates ? Object.fromEntries(
1152
- Object.entries(m.submission.rates).map(([w, n]) => [w, `${n}`])
1182
+ Object.entries(m.submission.rates).map(([S, n]) => [S, `${n}`])
1153
1183
  ) : { ...f }
1154
- ), X = _(
1155
- () => Object.values(B.value).every((w) => parseFloat(w) > 0)
1156
- ), Z = _(() => s.businessType === "juristic" ? "Juristic" : s.businessType === "individual" ? "Individual" : s.businessType || "-"), ee = () => E(async () => {
1184
+ ), Z = h(
1185
+ () => Object.values(j.value).every((S) => parseFloat(S) > 0)
1186
+ ), ee = h(() => s.businessType === "juristic" ? "Juristic" : s.businessType === "individual" ? "Individual" : s.businessType || "-"), le = () => E(async () => {
1157
1187
  try {
1158
- const w = await M.reviewById(
1188
+ const S = await M.reviewById(
1159
1189
  m.submission._id,
1160
1190
  {
1161
- status: fe.FdoOnboardStatus.enum.ready
1191
+ status: ke.FdoOnboardStatus.enum.ready
1162
1192
  }
1163
1193
  );
1164
- v("update:submission", w), c.open({
1194
+ v("update:submission", S), c.open({
1165
1195
  type: "success",
1166
1196
  title: "Submission marked as ready"
1167
1197
  });
1168
- } catch (w) {
1198
+ } catch (S) {
1169
1199
  c.open({
1170
1200
  type: "error",
1171
1201
  title: "Error occurs when marking submission as ready",
1172
- message: G(w)
1202
+ message: J(S)
1173
1203
  });
1174
1204
  }
1175
1205
  }), z = () => E(async () => {
1176
1206
  try {
1177
- const w = await M.reviewById(
1207
+ const S = await M.reviewById(
1178
1208
  m.submission._id,
1179
1209
  {
1180
1210
  rates: Object.fromEntries(
1181
- L.map((n) => [
1211
+ O.map((n) => [
1182
1212
  n.key,
1183
- parseFloat(B.value[n.key])
1213
+ parseFloat(j.value[n.key])
1184
1214
  ])
1185
1215
  ),
1186
1216
  status: "approved"
1187
1217
  }
1188
1218
  );
1189
- v("update:submission", w), c.open({
1219
+ v("update:submission", S), c.open({
1190
1220
  type: "success",
1191
1221
  title: "Submission updated successfully"
1192
1222
  });
1193
- } catch (w) {
1223
+ } catch (S) {
1194
1224
  c.open({
1195
1225
  type: "error",
1196
1226
  title: "Error occurs when updating submission",
1197
- message: G(w)
1227
+ message: J(S)
1198
1228
  });
1199
1229
  }
1200
1230
  }), ae = () => E(async () => {
1201
1231
  try {
1202
- const w = await M.reviewById(
1232
+ const S = await M.reviewById(
1203
1233
  m.submission._id,
1204
1234
  {
1205
1235
  status: "rejected",
1206
1236
  statusReason: R.value
1207
1237
  }
1208
1238
  );
1209
- v("update:submission", w), C.value = !1, c.open({
1239
+ v("update:submission", S), C.value = !1, c.open({
1210
1240
  type: "success",
1211
1241
  title: "Submission updated successfully"
1212
1242
  });
1213
- } catch (w) {
1243
+ } catch (S) {
1214
1244
  c.open({
1215
1245
  type: "error",
1216
1246
  title: "Error occurs when updating submission",
1217
- message: G(w)
1247
+ message: J(S)
1218
1248
  });
1219
1249
  }
1220
1250
  });
1221
- return (w, n) => {
1222
- const F = P("FmTextField"), le = P("FmButton"), re = P("FmTextarea"), te = P("FmDialog"), ie = P("FmPhoneNumber"), se = P("FmForm");
1223
- return u(), k(h, null, [
1224
- a("div", zl, [
1251
+ return (S, n) => {
1252
+ const F = P("FmTextField"), te = P("FmButton"), ie = P("FmTextarea"), K = P("FmDialog"), ue = P("FmPhoneNumber"), se = P("FmForm");
1253
+ return u(), k(_, null, [
1254
+ a("div", Wl, [
1225
1255
  a("div", null, [
1226
1256
  n[31] || (n[31] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
1227
- a("span", Hl, N(e(U)), 1)
1257
+ a("span", Yl, N(e(q)), 1)
1228
1258
  ]),
1229
1259
  a("div", null, [
1230
1260
  n[32] || (n[32] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
1231
- a("span", Wl, N(e(g).name) + " ( " + N(e(g).legalName) + " )", 1)
1261
+ a("span", Gl, N(e(g).name) + " ( " + N(e(g).legalName) + " )", 1)
1232
1262
  ]),
1233
1263
  a("div", null, [
1234
1264
  n[33] || (n[33] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
1235
- a("span", Yl, N(e(g).email), 1)
1265
+ a("span", Jl, N(e(g).email), 1)
1236
1266
  ]),
1237
1267
  a("div", null, [
1238
1268
  n[34] || (n[34] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
1239
- a("span", Gl, N(e(g).phoneNo), 1)
1269
+ a("span", Kl, N(e(g).phoneNo), 1)
1240
1270
  ]),
1241
1271
  a("div", null, [
1242
1272
  n[35] || (n[35] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
1243
- a("span", Jl, [
1244
- o(ke, { data: e(I) }, null, 8, ["data"])
1273
+ a("span", Ql, [
1274
+ o(xe, { data: e(I) }, null, 8, ["data"])
1245
1275
  ])
1246
1276
  ]),
1247
1277
  a("div", null, [
1248
1278
  n[36] || (n[36] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
1249
- a("span", Kl, N(e($)), 1)
1279
+ a("span", Xl, N(e($)), 1)
1250
1280
  ])
1251
1281
  ]),
1252
1282
  n[43] || (n[43] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
1253
- a("div", Ql, [
1254
- (u(), k(h, null, K(L, (r) => o(F, {
1283
+ a("div", Zl, [
1284
+ (u(), k(_, null, Q(O, (r) => o(F, {
1255
1285
  key: r.key,
1256
- modelValue: B.value[r.key],
1257
- "onUpdate:modelValue": (J) => B.value[r.key] = J,
1286
+ modelValue: j.value[r.key],
1287
+ "onUpdate:modelValue": (H) => j.value[r.key] = H,
1258
1288
  label: r.label,
1259
1289
  "label-mark": "required",
1260
1290
  type: "number",
1261
1291
  inputmode: "numeric",
1262
1292
  decimal: 2,
1263
1293
  rules: e(p)(
1264
- e(b).string().min(1, "Rate is required").transform((J) => parseFloat(J)).refine((J) => !isNaN(J), { message: "Rate must be a number" })
1294
+ e(b).string().min(1, "Rate is required").transform((H) => parseFloat(H)).refine((H) => !isNaN(H), { message: "Rate must be a number" })
1265
1295
  )
1266
1296
  }, {
1267
- append: S(() => [...n[37] || (n[37] = [
1268
- Y("%", -1)
1297
+ append: x(() => [...n[37] || (n[37] = [
1298
+ G("%", -1)
1269
1299
  ])]),
1270
1300
  _: 1
1271
1301
  }, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
1272
1302
  ]),
1273
- a("div", Xl, [
1274
- o(te, {
1303
+ a("div", et, [
1304
+ o(K, {
1275
1305
  modelValue: C.value,
1276
1306
  "onUpdate:modelValue": n[1] || (n[1] = (r) => C.value = r)
1277
1307
  }, {
1278
- "dialog-button": S(() => [
1279
- o(le, {
1308
+ "dialog-button": x(() => [
1309
+ o(te, {
1280
1310
  class: "mr-6",
1281
1311
  type: "button",
1282
1312
  variant: "destructive",
@@ -1285,18 +1315,18 @@ const Ye = {
1285
1315
  label: "Reject Submission"
1286
1316
  }, null, 8, ["loading"])
1287
1317
  ]),
1288
- "dialog-header": S(() => [...n[38] || (n[38] = [
1318
+ "dialog-header": x(() => [...n[38] || (n[38] = [
1289
1319
  a("div", null, "Rejecting Submission", -1)
1290
1320
  ])]),
1291
- default: S(() => [
1292
- o(re, {
1321
+ default: x(() => [
1322
+ o(ie, {
1293
1323
  modelValue: R.value,
1294
1324
  "onUpdate:modelValue": n[0] || (n[0] = (r) => R.value = r),
1295
1325
  label: "Reason for Rejection",
1296
1326
  "label-mark": "optional",
1297
1327
  "helper-text": "Please provide a reason for rejection."
1298
1328
  }, null, 8, ["modelValue"]),
1299
- o(le, {
1329
+ o(te, {
1300
1330
  class: "mb-2 mt-6 w-full",
1301
1331
  label: "Submit",
1302
1332
  "prepend-icon": "save",
@@ -1306,31 +1336,31 @@ const Ye = {
1306
1336
  ]),
1307
1337
  _: 1
1308
1338
  }, 8, ["modelValue"]),
1309
- o(le, {
1339
+ o(te, {
1310
1340
  type: "button",
1311
1341
  variant: "primary",
1312
1342
  "prepend-icon": "approval",
1313
1343
  label: "Approve Submission with Rates",
1314
- disabled: !X.value,
1344
+ disabled: !Z.value,
1315
1345
  onClick: z,
1316
1346
  loading: e(y)
1317
1347
  }, null, 8, ["disabled", "loading"]),
1318
- e(I) === "approved" ? (u(), A(le, {
1348
+ e(I) === "approved" ? (u(), A(te, {
1319
1349
  key: 0,
1320
1350
  type: "button",
1321
1351
  variant: "secondary",
1322
1352
  "prepend-icon": "check_circle",
1323
1353
  label: "Mark as Ready",
1324
1354
  class: "ml-6",
1325
- onClick: ee,
1355
+ onClick: le,
1326
1356
  loading: e(y)
1327
1357
  }, null, 8, ["loading"])) : T("", !0)
1328
1358
  ]),
1329
1359
  o(se, { disabled: !0 }, {
1330
- default: S(() => [
1360
+ default: x(() => [
1331
1361
  n[39] || (n[39] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
1332
- a("div", Zl, [
1333
- a("div", et, [
1362
+ a("div", lt, [
1363
+ a("div", tt, [
1334
1364
  o(F, {
1335
1365
  modelValue: e(s).companyName,
1336
1366
  "onUpdate:modelValue": n[2] || (n[2] = (r) => e(s).companyName = r),
@@ -1339,7 +1369,7 @@ const Ye = {
1339
1369
  rules: e(p)(e(b).string().min(1, "Company Name is required"))
1340
1370
  }, null, 8, ["modelValue", "rules"])
1341
1371
  ]),
1342
- a("div", lt, [
1372
+ a("div", at, [
1343
1373
  o(F, {
1344
1374
  modelValue: e(s).outletName,
1345
1375
  "onUpdate:modelValue": n[3] || (n[3] = (r) => e(s).outletName = r),
@@ -1348,7 +1378,7 @@ const Ye = {
1348
1378
  rules: e(p)(e(b).string().min(1, "Outlet Name is required"))
1349
1379
  }, null, 8, ["modelValue", "rules"])
1350
1380
  ]),
1351
- a("div", tt, [
1381
+ a("div", st, [
1352
1382
  o(F, {
1353
1383
  modelValue: e(s).outletNameEnglish,
1354
1384
  "onUpdate:modelValue": n[4] || (n[4] = (r) => e(s).outletNameEnglish = r),
@@ -1357,7 +1387,7 @@ const Ye = {
1357
1387
  rules: e(p)(e(b).string().min(1, "Outlet Name English is required"))
1358
1388
  }, null, 8, ["modelValue", "rules"])
1359
1389
  ]),
1360
- a("div", at, [
1390
+ a("div", nt, [
1361
1391
  o(F, {
1362
1392
  modelValue: e(s).outletAddress,
1363
1393
  "onUpdate:modelValue": n[5] || (n[5] = (r) => e(s).outletAddress = r),
@@ -1388,7 +1418,7 @@ const Ye = {
1388
1418
  rules: e(p)(e(b).string().min(1, "City is required"))
1389
1419
  }, null, 8, ["modelValue", "rules"]),
1390
1420
  o(F, {
1391
- "model-value": Z.value,
1421
+ "model-value": ee.value,
1392
1422
  label: "Business Type",
1393
1423
  "label-mark": "required"
1394
1424
  }, null, 8, ["model-value"]),
@@ -1400,7 +1430,7 @@ const Ye = {
1400
1430
  }, null, 8, ["modelValue"])
1401
1431
  ]),
1402
1432
  n[40] || (n[40] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
1403
- a("div", st, [
1433
+ a("div", ot, [
1404
1434
  o(F, {
1405
1435
  modelValue: e(s).bankName,
1406
1436
  "onUpdate:modelValue": n[10] || (n[10] = (r) => e(s).bankName = r),
@@ -1438,7 +1468,7 @@ const Ye = {
1438
1468
  }, null, 8, ["modelValue", "rules"])
1439
1469
  ]),
1440
1470
  n[41] || (n[41] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1441
- a("div", nt, [
1471
+ a("div", rt, [
1442
1472
  o(D, {
1443
1473
  label: "Authorized Person ID",
1444
1474
  modelValue: e(i).authorizedPersonID,
@@ -1493,8 +1523,8 @@ const Ye = {
1493
1523
  }, null, 8, ["modelValue", "restaurant-id"])) : T("", !0)
1494
1524
  ]),
1495
1525
  n[42] || (n[42] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1496
- a("div", ot, [
1497
- a("div", rt, [
1526
+ a("div", it, [
1527
+ a("div", ut, [
1498
1528
  o(F, {
1499
1529
  modelValue: e(s).picName,
1500
1530
  "onUpdate:modelValue": n[22] || (n[22] = (r) => e(s).picName = r),
@@ -1503,7 +1533,7 @@ const Ye = {
1503
1533
  rules: e(p)(e(b).string().min(1, "PIC Name is required"))
1504
1534
  }, null, 8, ["modelValue", "rules"])
1505
1535
  ]),
1506
- a("div", it, [
1536
+ a("div", dt, [
1507
1537
  o(F, {
1508
1538
  modelValue: e(s).picRole,
1509
1539
  "onUpdate:modelValue": n[23] || (n[23] = (r) => e(s).picRole = r),
@@ -1512,7 +1542,7 @@ const Ye = {
1512
1542
  rules: e(p)(e(b).string().min(1, "PIC Role is required"))
1513
1543
  }, null, 8, ["modelValue", "rules"])
1514
1544
  ]),
1515
- a("div", ut, [
1545
+ a("div", mt, [
1516
1546
  o(F, {
1517
1547
  modelValue: e(s).picEmail,
1518
1548
  "onUpdate:modelValue": n[24] || (n[24] = (r) => e(s).picEmail = r),
@@ -1521,8 +1551,8 @@ const Ye = {
1521
1551
  rules: e(p)(e(b).string().min(1, "PIC Email is required"))
1522
1552
  }, null, 8, ["modelValue", "rules"])
1523
1553
  ]),
1524
- a("div", dt, [
1525
- o(ie, {
1554
+ a("div", pt, [
1555
+ o(ue, {
1526
1556
  "model-value": e(s).picContact,
1527
1557
  "onUpdate:modelValue": n[25] || (n[25] = (r) => e(s).picContact = r),
1528
1558
  "default-country": "TH",
@@ -1531,7 +1561,7 @@ const Ye = {
1531
1561
  rules: e(p)(e(b).string().min(1, "PIC Contact is required"))
1532
1562
  }, null, 8, ["model-value", "rules"])
1533
1563
  ]),
1534
- a("div", mt, [
1564
+ a("div", bt, [
1535
1565
  o(F, {
1536
1566
  modelValue: e(s).witnessName,
1537
1567
  "onUpdate:modelValue": n[26] || (n[26] = (r) => e(s).witnessName = r),
@@ -1540,7 +1570,7 @@ const Ye = {
1540
1570
  rules: e(p)(e(b).string().min(1, "Witness Name is required"))
1541
1571
  }, null, 8, ["modelValue", "rules"])
1542
1572
  ]),
1543
- a("div", pt, [
1573
+ a("div", ct, [
1544
1574
  o(F, {
1545
1575
  modelValue: e(s).witnessRole,
1546
1576
  "onUpdate:modelValue": n[27] || (n[27] = (r) => e(s).witnessRole = r),
@@ -1577,7 +1607,7 @@ const Ye = {
1577
1607
  ], 64);
1578
1608
  };
1579
1609
  }
1580
- }), ct = /* @__PURE__ */ Q({
1610
+ }), yt = /* @__PURE__ */ X({
1581
1611
  __name: "TyroSubmission",
1582
1612
  props: {
1583
1613
  submission: {
@@ -1587,8 +1617,8 @@ const Ye = {
1587
1617
  },
1588
1618
  emits: ["update:submission"],
1589
1619
  setup(d) {
1590
- const x = d, m = _(() => {
1591
- const v = x.submission.fields || {}, c = (C) => v[C] || "N/A";
1620
+ const w = d, m = h(() => {
1621
+ const v = w.submission.fields || {}, c = (C) => v[C] || "N/A";
1592
1622
  return [
1593
1623
  {
1594
1624
  label: "Tyro POS Reference ID",
@@ -1614,22 +1644,22 @@ const Ye = {
1614
1644
  class: "max-w-3xl mt-8 p-6",
1615
1645
  variant: "elevated"
1616
1646
  }, {
1617
- default: S(() => [
1647
+ default: x(() => [
1618
1648
  o(y, { class: "flex flex-col gap-16 justify-between" }, {
1619
- default: S(() => [
1649
+ default: x(() => [
1620
1650
  o(C, {
1621
1651
  class: "p-0",
1622
1652
  title: "Tyro Authorisation",
1623
1653
  subtitle: ""
1624
1654
  }),
1625
1655
  o(y, { class: "p-0" }, {
1626
- default: S(() => [
1627
- (u(!0), k(h, null, K(m.value, (s) => (u(), k("p", {
1656
+ default: x(() => [
1657
+ (u(!0), k(_, null, Q(m.value, (s) => (u(), k("p", {
1628
1658
  key: s.label,
1629
1659
  class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
1630
1660
  }, [
1631
1661
  a("b", null, N(s.label), 1),
1632
- Y(": " + N(s.value), 1)
1662
+ G(": " + N(s.value), 1)
1633
1663
  ]))), 128))
1634
1664
  ]),
1635
1665
  _: 1
@@ -1642,10 +1672,10 @@ const Ye = {
1642
1672
  });
1643
1673
  };
1644
1674
  }
1645
- }), gt = {
1675
+ }), vt = {
1646
1676
  key: 0,
1647
1677
  class: "flex items-center justify-center min-h-[80vh]"
1648
- }, yt = { class: "px-32 pb-32" }, Ut = /* @__PURE__ */ Q({
1678
+ }, ft = { class: "px-32 pb-32" }, Dt = /* @__PURE__ */ X({
1649
1679
  __name: "OnboardForm",
1650
1680
  props: {
1651
1681
  submissionId: {
@@ -1654,10 +1684,10 @@ const Ye = {
1654
1684
  }
1655
1685
  },
1656
1686
  setup(d) {
1657
- const { startAsyncCall: x, isLoading: m } = ne(), v = ue(), c = d, C = qe(), y = O(null), E = _(
1687
+ const { startAsyncCall: w, isLoading: m } = ne(), v = de(), c = d, C = Fe(), y = B(null), E = h(
1658
1688
  () => {
1659
1689
  var $;
1660
- return (($ = y.value) == null ? void 0 : $.type) === fe.FdoOnboardType.enum.tyro;
1690
+ return (($ = y.value) == null ? void 0 : $.type) === ke.FdoOnboardType.enum.tyro;
1661
1691
  }
1662
1692
  ), s = () => {
1663
1693
  if (window.history.length > 1) {
@@ -1666,29 +1696,29 @@ const Ye = {
1666
1696
  }
1667
1697
  C.push({ name: "mf-payment-admin.onboard-submission" });
1668
1698
  };
1669
- ye(() => {
1670
- x(async () => {
1699
+ fe(() => {
1700
+ w(async () => {
1671
1701
  y.value = await M.readById(c.submissionId);
1672
1702
  });
1673
1703
  });
1674
- const i = _(() => {
1704
+ const i = h(() => {
1675
1705
  if (!y.value) return null;
1676
1706
  switch (y.value.type) {
1677
1707
  case "softspace":
1678
- return Ml;
1708
+ return Hl;
1679
1709
  case "ntt":
1680
- return bt;
1710
+ return gt;
1681
1711
  case "tyro":
1682
- return ct;
1712
+ return yt;
1683
1713
  default:
1684
1714
  return null;
1685
1715
  }
1686
- }), U = O(0);
1716
+ }), q = B(0);
1687
1717
  function g($) {
1688
- y.value = $, U.value = Date.now();
1718
+ y.value = $, q.value = Date.now();
1689
1719
  }
1690
1720
  const I = async ($) => {
1691
- var R, L;
1721
+ var R, O;
1692
1722
  if (y.value)
1693
1723
  switch ($) {
1694
1724
  case "preview":
@@ -1698,11 +1728,11 @@ const Ye = {
1698
1728
  message: "Generating preview document...",
1699
1729
  type: "info"
1700
1730
  }), await M.previewDocument((R = y.value) == null ? void 0 : R._id);
1701
- } catch (B) {
1731
+ } catch (j) {
1702
1732
  v.open({
1703
1733
  type: "error",
1704
1734
  title: "Error occurs when generating submission document",
1705
- message: G(B)
1735
+ message: J(j)
1706
1736
  });
1707
1737
  } finally {
1708
1738
  f && v.close(f);
@@ -1713,29 +1743,29 @@ const Ye = {
1713
1743
  v.open({
1714
1744
  message: "Sending onboarding document...",
1715
1745
  type: "info"
1716
- }), await M.sendDocument((L = y.value) == null ? void 0 : L._id), v.open({
1746
+ }), await M.sendDocument((O = y.value) == null ? void 0 : O._id), v.open({
1717
1747
  type: "success",
1718
1748
  title: "Submission documents send successfully"
1719
1749
  });
1720
- } catch (B) {
1750
+ } catch (j) {
1721
1751
  v.open({
1722
1752
  type: "error",
1723
1753
  title: "Error occurs when sending document",
1724
- message: G(B)
1754
+ message: J(j)
1725
1755
  });
1726
1756
  }
1727
1757
  break;
1728
1758
  }
1729
1759
  };
1730
1760
  return ($, R) => {
1731
- var B, X, Z, ee;
1732
- const L = P("FmCircularProgress"), f = P("FmPageHead");
1733
- return e(m) ? (u(), k("div", gt, [
1734
- o(L, { size: "xxl" })
1735
- ])) : (u(), k(h, { key: 1 }, [
1761
+ var j, Z, ee, le;
1762
+ const O = P("FmCircularProgress"), f = P("FmPageHead");
1763
+ return e(m) ? (u(), k("div", vt, [
1764
+ o(O, { size: "xxl" })
1765
+ ])) : (u(), k(_, { key: 1 }, [
1736
1766
  o(f, {
1737
- title: `Submission - ${(B = y.value) == null ? void 0 : B.type}`,
1738
- description: `ID - ${(X = y.value) == null ? void 0 : X._id}`,
1767
+ title: `Submission - ${(j = y.value) == null ? void 0 : j.type}`,
1768
+ description: `ID - ${(Z = y.value) == null ? void 0 : Z._id}`,
1739
1769
  "back-button": !0,
1740
1770
  "onClick:back": s,
1741
1771
  "onClick:action": I,
@@ -1753,16 +1783,16 @@ const Ye = {
1753
1783
  }
1754
1784
  ]
1755
1785
  }, null, 8, ["title", "description", "actions"]),
1756
- a("div", yt, [
1757
- (u(), A(Re(i.value), {
1758
- key: U.value,
1786
+ a("div", ft, [
1787
+ (u(), A(qe(i.value), {
1788
+ key: q.value,
1759
1789
  submission: y.value,
1760
1790
  "onUpdate:submission": g
1761
1791
  }, null, 40, ["submission"])),
1762
- ((Z = y.value) == null ? void 0 : Z.type) !== "softspace" ? (u(), k(h, { key: 0 }, [
1792
+ ((ee = y.value) == null ? void 0 : ee.type) !== "softspace" ? (u(), k(_, { key: 0 }, [
1763
1793
  R[0] || (R[0] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Timeline", -1)),
1764
- o(Ce, {
1765
- entries: (ee = y.value) == null ? void 0 : ee.timeline
1794
+ o(we, {
1795
+ entries: (le = y.value) == null ? void 0 : le.timeline
1766
1796
  }, null, 8, ["entries"])
1767
1797
  ], 64)) : T("", !0)
1768
1798
  ])
@@ -1771,5 +1801,5 @@ const Ye = {
1771
1801
  }
1772
1802
  });
1773
1803
  export {
1774
- Ut as default
1804
+ Dt as default
1775
1805
  };