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