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