@feedmepos/mf-payment 1.11.15 → 1.11.16-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-BZajARcf.js → Actions.vue_vue_type_script_setup_true_lang-C7wa3o3y.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CJUBrKfE.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BvhrP3i-.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-aCJzDfGx.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BjGEcK8R.js} +3 -3
  4. package/dist/{Chargeback-CCZfMX0Y.js → Chargeback-CCzx9M4d.js} +6 -6
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BX87Rkc9.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Cgetk-s9.js} +1 -1
  6. package/dist/{ExternalTerminal-BPJwtNer.js → ExternalTerminal-BL5sEkJK.js} +7 -7
  7. package/dist/{OnboardForm--W6MA25W.js → OnboardForm-CHBL2xs2.js} +6 -6
  8. package/dist/{OnboardForm-zE4cuNN3.js → OnboardForm-CwoQ-u0X.js} +694 -631
  9. package/dist/OnboardSubmission-CwdA6Fh0.js +733 -0
  10. package/dist/{OnboardSubmission-qS1nzaFM.js → OnboardSubmission-De50hDlQ.js} +6 -6
  11. package/dist/{PaymentCheckout-D_NGmznR.js → PaymentCheckout-C4zXAkTu.js} +2 -2
  12. package/dist/{PayoutAccount-Di3pYzdJ.js → PayoutAccount-ChqGHuRR.js} +7 -7
  13. package/dist/{PayoutAccount-fD8ho-BH.js → PayoutAccount-CpJaVhKj.js} +5 -5
  14. package/dist/{PayoutAccountSetting-0tERQB3Q.js → PayoutAccountSetting-SjFMSEu9.js} +7 -7
  15. package/dist/{Restaurant-B5GuoD5g.js → Restaurant-CYJ-XLRZ.js} +5 -5
  16. package/dist/{RestaurantSetting-CjoPVc5q.js → RestaurantSetting-BdXl1yPZ.js} +22 -8
  17. package/dist/{Settlement-BYC3cpqm.js → Settlement-DFRxxs_m.js} +3 -3
  18. package/dist/{Settlement-CekZXSuy.js → Settlement-DlNwIY-o.js} +4 -4
  19. package/dist/{SettlementTransactions-CLZqBioA.js → SettlementTransactions-C3Fsm_X9.js} +5 -5
  20. package/dist/{SettlementTransactions-Bj19pnuE.js → SettlementTransactions-CGBKh1GN.js} +5 -5
  21. package/dist/{Status.vue_vue_type_script_setup_true_lang-Byu1u7qn.js → Status.vue_vue_type_script_setup_true_lang-B64OGluJ.js} +1 -1
  22. package/dist/{Terminal-B1dxgUXS.js → Terminal-C-rbyBC8.js} +7 -7
  23. package/dist/{TerminalSetting-CKlz0oWq.js → TerminalSetting-CcTRaKIt.js} +776 -650
  24. package/dist/{TerminalTemplate-CmGXJgEX.js → TerminalTemplate-DLaa9wUZ.js} +5 -5
  25. package/dist/{TerminalTemplateSetting-pUK6zBfs.js → TerminalTemplateSetting-YzhPDF8J.js} +6 -6
  26. package/dist/{Transaction-CJQebjH4.js → Transaction-Bk8usnmd.js} +10 -10
  27. package/dist/{Transaction-OIAlbaw-.js → Transaction-ou3zdIBB.js} +12 -12
  28. package/dist/{TransactionOld-cXJF0Orc.js → TransactionOld-0X1celu9.js} +7 -7
  29. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DeagNFgy.js → TransactionStatus.vue_vue_type_script_setup_true_lang-BS4AYaq1.js} +1 -1
  30. package/dist/api/onboard-submission/index.d.ts +6 -1
  31. package/dist/api/terminal/index.d.ts +2 -1
  32. package/dist/{app-B_orez6m.js → app-obftSkFb.js} +10191 -9277
  33. package/dist/app.js +1 -1
  34. package/dist/{assets-D3Pi2PQM.js → assets-DLPXM2Y4.js} +47 -46
  35. package/dist/{grafana-CWeNnb1T.js → grafana-BXLOtIvx.js} +1 -1
  36. package/dist/{index-FJszgfpK.js → index-BQadSOBj.js} +6 -1
  37. package/dist/{index-C2rB5z2d.js → index-Baec1AT2.js} +6901 -6958
  38. package/dist/{index-014CUHlg.js → index-CAT0OmJZ.js} +1 -1
  39. package/dist/{index-Cao_ELrY.js → index-CJPHA9xo.js} +1 -1
  40. package/dist/{index-BL39x2kM.js → index-CK7aA2pd.js} +1 -1
  41. package/dist/{index-JA6_vNKZ.js → index-CR-HSdwu.js} +2 -2
  42. package/dist/{index-Ay9jLoV-.js → index-CtbE-KF0.js} +1 -1
  43. package/dist/{index-BfJbudkb.js → index-DRy36FqO.js} +1 -1
  44. package/dist/{index-B8Cre5qQ.js → index-Dlng-M3Z.js} +39 -5
  45. package/dist/{index-DSQBGDky.js → index-a8lvAiCb.js} +1 -1
  46. package/dist/{index-sqSucYYa.js → index-owIgdVJd.js} +1 -1
  47. package/dist/{index.vue_vue_type_script_setup_true_lang-C4iRjOFL.js → index.vue_vue_type_script_setup_true_lang-DrxOa3Bv.js} +1 -1
  48. package/dist/model/onboard-submission.d.ts +5 -5
  49. package/dist/{onboard-submission-n3XaOs1W.js → onboard-submission-Dzw9Nu3k.js} +4 -3
  50. package/dist/package.json +6 -6
  51. package/dist/{payout-account-BT_9hCd4.js → payout-account-BXeQXNBN.js} +3 -3
  52. package/dist/style.css +1 -1
  53. package/dist/{tyro-BovmsorS.js → teya-UA6TM323.js} +3 -2
  54. package/dist/tsconfig.app.tsbuildinfo +1 -1
  55. package/dist/{useQuery-nKQ8fCJl.js → useQuery-COlCU4ZR.js} +1 -1
  56. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +4 -4
  57. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +4 -4
  58. package/dist/views/admin/onboard-submission/forms/TeyaSubmission.vue.d.ts +117 -0
  59. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +4 -4
  60. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +4 -4
  61. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
  62. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +4 -4
  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/restaurant/tabs/PaymentGateway.vue.d.ts +32 -8
  66. package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +4 -0
  67. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +16 -2
  68. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +16 -2
  69. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +16 -2
  70. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +16 -2
  71. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +16 -2
  72. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +16 -2
  73. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +16 -2
  74. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +16 -2
  75. package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +16 -2
  76. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +16 -2
  77. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +16 -2
  78. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +16 -2
  79. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +16 -2
  80. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +16 -2
  81. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +16 -2
  82. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +16 -2
  83. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +16 -2
  84. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +16 -2
  85. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +16 -2
  86. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +16 -2
  87. package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +16 -2
  88. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +16 -2
  89. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +16 -2
  90. package/dist/views/admin/terminal/tabs/ecr/TeyaGateway.vue.d.ts +210 -0
  91. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +16 -2
  92. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +16 -2
  93. package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +4 -4
  94. package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +2 -2
  95. package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +2 -2
  96. package/dist/views/onboard-submission/useTeyaConnect.d.ts +71 -0
  97. package/package.json +5 -5
  98. package/dist/OnboardSubmission-bQVeyRLu.js +0 -449
@@ -1,16 +1,16 @@
1
- import { defineComponent as J, ref as B, computed as j, resolveComponent as U, openBlock as i, createElementBlock as p, createElementVNode as s, toDisplayString as q, createBlock as L, withCtx as h, createCommentVNode as E, createVNode as o, unref as e, onMounted as ve, watch as he, Fragment as A, renderList as O, normalizeClass as ie, nextTick as Re, resolveDynamicComponent as ue, createTextVNode as Q } from "vue";
2
- import { o as H } from "./index-B8Cre5qQ.js";
3
- import { u as ne, p as Ve } from "./index-C2rB5z2d.js";
4
- import { useRouter as Ie } from "vue-router";
5
- import { z as g, a as y } from "./validator-CTlVogBQ.js";
6
- import { D as qe, P as Ue } from "./payout-account-BT_9hCd4.js";
7
- import { a as $e } from "./onboard-submission-n3XaOs1W.js";
8
- import { _ as ke } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-BX87Rkc9.js";
9
- import { s as De } from "./vue-signature-pad.esm-IXPjf4fL.js";
10
- import { _ as Ce } from "./Status.vue_vue_type_script_setup_true_lang-Byu1u7qn.js";
11
- import { useSnackbar as de } from "@feedmepos/ui-library";
12
- import { u as G } from "./error-K1CakhA9.js";
13
- const Fe = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", T = /* @__PURE__ */ J({
1
+ import { defineComponent as G, ref as B, computed as j, resolveComponent as h, openBlock as i, createElementBlock as p, createElementVNode as s, toDisplayString as R, createBlock as _, withCtx as P, createCommentVNode as E, createVNode as o, unref as e, onMounted as Ve, watch as he, Fragment as L, renderList as O, normalizeClass as ie, nextTick as Ie, resolveDynamicComponent as ue, createTextVNode as H } from "vue";
2
+ import { o as z } from "./index-Dlng-M3Z.js";
3
+ import { u as ne, p as de } from "./index-Baec1AT2.js";
4
+ import { useRouter as Re } from "vue-router";
5
+ import { z as y, a as f } from "./validator-CTlVogBQ.js";
6
+ import { D as qe, P as Fe } from "./payout-account-BXeQXNBN.js";
7
+ import { a as $e } from "./onboard-submission-Dzw9Nu3k.js";
8
+ import { _ as ke } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Cgetk-s9.js";
9
+ import { s as Ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
10
+ import { _ as Ce } from "./Status.vue_vue_type_script_setup_true_lang-B64OGluJ.js";
11
+ import { useSnackbar as me } from "@feedmepos/ui-library";
12
+ import { u as J } from "./error-K1CakhA9.js";
13
+ const Te = ["src"], ce = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ G({
14
14
  __name: "UploadButton",
15
15
  props: {
16
16
  modelValue: {},
@@ -19,52 +19,52 @@ const Fe = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", T = /* @__PURE__ */ J
19
19
  restaurantId: {}
20
20
  },
21
21
  emits: ["update:modelValue"],
22
- setup(d, { emit: v }) {
23
- const u = d, V = B(u.modelValue), b = v, m = (r) => {
24
- const C = new FileReader();
25
- C.onload = (c) => {
26
- var P;
27
- V.value = (P = c.target) == null ? void 0 : P.result, b("update:modelValue", r);
28
- }, C.readAsDataURL(r);
29
- }, f = (r) => {
22
+ setup(d, { emit: V }) {
23
+ const u = d, v = B(u.modelValue), c = V, m = (r) => {
24
+ const x = new FileReader();
25
+ x.onload = (g) => {
26
+ var I;
27
+ v.value = (I = g.target) == null ? void 0 : I.result, c("update:modelValue", r);
28
+ }, x.readAsDataURL(r);
29
+ }, b = (r) => {
30
30
  window.open(r, "_blank", "noopener,noreferrer");
31
- }, x = j(() => u.type === "image" ? pe : u.type === "pdf" ? be : `${pe}, ${be}`), a = (r) => u.type === "pdf" ? !0 : u.type === "image" ? !1 : r === "application/pdf";
32
- return (r, C) => {
33
- const c = U("FmButton"), P = U("FmDropField");
31
+ }, C = j(() => u.type === "image" ? ce : u.type === "pdf" ? be : `${ce}, ${be}`), l = (r) => u.type === "pdf" ? !0 : u.type === "image" ? !1 : r === "application/pdf";
32
+ return (r, x) => {
33
+ const g = h("FmButton"), I = h("FmDropField");
34
34
  return i(), p("div", null, [
35
- s("p", null, q(d.label), 1),
36
- V.value ? (i(), L(ke, {
35
+ s("p", null, R(d.label), 1),
36
+ v.value ? (i(), _(ke, {
37
37
  key: 0,
38
- document: V.value,
38
+ document: v.value,
39
39
  "restaurant-id": d.restaurantId
40
40
  }, {
41
- default: h(({ src: D, type: N }) => [
42
- a(N) ? (i(), L(c, {
41
+ default: P(({ src: U, type: N }) => [
42
+ l(N) ? (i(), _(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: () => f(D),
49
- onClick: () => f(D)
48
+ onVnodeMounted: () => b(U),
49
+ onClick: () => b(U)
50
50
  }, null, 8, ["onVnodeMounted", "onClick"])) : (i(), p("img", {
51
51
  key: 0,
52
- src: D
53
- }, null, 8, Fe))
52
+ src: U
53
+ }, null, 8, Te))
54
54
  ]),
55
55
  _: 1
56
- }, 8, ["document", "restaurant-id"])) : (i(), L(P, {
56
+ }, 8, ["document", "restaurant-id"])) : (i(), _(I, {
57
57
  key: 1,
58
- accept: x.value,
58
+ accept: C.value,
59
59
  onFileUpload: m
60
60
  }, null, 8, ["accept"]))
61
61
  ]);
62
62
  };
63
63
  }
64
- }), Te = ["src"], Ee = {
64
+ }), De = ["src"], _e = {
65
65
  key: 0,
66
66
  class: "text-center text-red-700 py-4"
67
- }, Le = { class: "flex justify-evenly py-3" }, Ae = /* @__PURE__ */ J({
67
+ }, Ee = { class: "flex justify-evenly py-3" }, Le = /* @__PURE__ */ G({
68
68
  __name: "SignatureBoard",
69
69
  props: {
70
70
  modelValue: {},
@@ -72,73 +72,73 @@ const Fe = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", T = /* @__PURE__ */ J
72
72
  restaurantId: {}
73
73
  },
74
74
  emits: ["update:modelValue"],
75
- setup(d, { emit: v }) {
76
- const u = d, V = v, b = B(u.modelValue), m = B(!1), f = B(), x = B(!1);
77
- function a(C, c) {
78
- var S;
79
- const P = C.split(","), D = ((S = P[0].match(/:(.*?);/)) == null ? void 0 : S[1]) || "", N = atob(P[1]);
80
- let R = N.length;
81
- const k = new Uint8Array(R);
82
- for (; R--; )
83
- k[R] = N.charCodeAt(R);
84
- return new File([k], c, { type: D });
75
+ setup(d, { emit: V }) {
76
+ const u = d, v = V, c = B(u.modelValue), m = B(!1), b = B(), C = B(!1);
77
+ function l(x, g) {
78
+ var w;
79
+ const I = x.split(","), U = ((w = I[0].match(/:(.*?);/)) == null ? void 0 : w[1]) || "", N = atob(I[1]);
80
+ let q = N.length;
81
+ const k = new Uint8Array(q);
82
+ for (; q--; )
83
+ k[q] = N.charCodeAt(q);
84
+ return new File([k], g, { type: U });
85
85
  }
86
86
  const r = function() {
87
- const { isEmpty: C, data: c } = f.value.saveSignature();
88
- if (C)
87
+ const { isEmpty: x, data: g } = b.value.saveSignature();
88
+ if (x)
89
89
  return m.value = !0;
90
- b.value = c, x.value = !1, V("update:modelValue", a(c, "signature.png"));
90
+ c.value = g, C.value = !1, v("update:modelValue", l(g, "signature.png"));
91
91
  };
92
- return (C, c) => {
93
- const P = U("FmButton"), D = U("FmDialog");
92
+ return (x, g) => {
93
+ const I = h("FmButton"), U = h("FmDialog");
94
94
  return i(), p("div", null, [
95
- s("p", null, q(d.label), 1),
96
- b.value ? (i(), L(ke, {
95
+ s("p", null, R(d.label), 1),
96
+ c.value ? (i(), _(ke, {
97
97
  key: 0,
98
- document: b.value,
98
+ document: c.value,
99
99
  "restaurant-id": d.restaurantId
100
100
  }, {
101
- default: h(({ src: N }) => [
101
+ default: P(({ src: N }) => [
102
102
  s("img", {
103
103
  src: N,
104
104
  alt: "Signature Preview",
105
105
  class: "w-full h-auto"
106
- }, null, 8, Te)
106
+ }, null, 8, De)
107
107
  ]),
108
108
  _: 1
109
109
  }, 8, ["document", "restaurant-id"])) : E("", !0),
110
- b.value ? E("", !0) : (i(), L(D, {
110
+ c.value ? E("", !0) : (i(), _(U, {
111
111
  key: 1,
112
- modelValue: x.value,
113
- "onUpdate:modelValue": c[1] || (c[1] = (N) => x.value = N)
112
+ modelValue: C.value,
113
+ "onUpdate:modelValue": g[1] || (g[1] = (N) => C.value = N)
114
114
  }, {
115
- "dialog-button": h(() => [
116
- o(P, {
115
+ "dialog-button": P(() => [
116
+ o(I, {
117
117
  "prepend-icon": "signature",
118
118
  class: "w-full",
119
119
  label: "Signature"
120
120
  })
121
121
  ]),
122
- "dialog-header": h(() => [...c[2] || (c[2] = [
122
+ "dialog-header": P(() => [...g[2] || (g[2] = [
123
123
  s("div", null, "Signature Board", -1)
124
124
  ])]),
125
- default: h(() => [
126
- o(e(De), {
125
+ default: P(() => [
126
+ o(e(Ue), {
127
127
  ref_key: "signaturePad",
128
- ref: f,
128
+ ref: b,
129
129
  height: "300px",
130
130
  customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
131
131
  options: { penColor: "#000000" }
132
132
  }, null, 512),
133
- m.value ? (i(), p("p", Ee, " Please sign your signature before saving. ")) : E("", !0),
134
- s("div", Le, [
135
- o(P, {
133
+ m.value ? (i(), p("p", _e, " Please sign your signature before saving. ")) : E("", !0),
134
+ s("div", Ee, [
135
+ o(I, {
136
136
  variant: "destructive",
137
137
  label: "Clear",
138
138
  "prepend-icon": "delete",
139
- onClick: c[0] || (c[0] = (N) => f.value.clearSignature())
139
+ onClick: g[0] || (g[0] = (N) => b.value.clearSignature())
140
140
  }),
141
- o(P, {
141
+ o(I, {
142
142
  label: "Save",
143
143
  "prepend-icon": "save",
144
144
  onClick: r
@@ -150,28 +150,28 @@ const Fe = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", T = /* @__PURE__ */ J
150
150
  ]);
151
151
  };
152
152
  }
153
- }), _e = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), Be = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), Oe = new RegExp("(\\d)(\\p{Ll})", "gu"), je = new RegExp("(\\p{L})(\\d)", "gu"), Me = /[^\p{L}\d]+/giu, ae = "$1\0$2";
154
- function He(d, v = {}) {
155
- let u = d.replace(_e, ae).replace(Be, ae);
156
- v.separateNumbers && (u = u.replace(Oe, ae).replace(je, ae)), u = u.replace(Me, "\0");
157
- let V = 0, b = u.length;
158
- for (; u.charAt(V) === "\0"; )
159
- V++;
160
- if (V === b)
153
+ }), Ae = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), Be = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), Oe = new RegExp("(\\d)(\\p{Ll})", "gu"), je = new RegExp("(\\p{L})(\\d)", "gu"), Me = /[^\p{L}\d]+/giu, ae = "$1\0$2";
154
+ function He(d, V = {}) {
155
+ let u = d.replace(Ae, ae).replace(Be, ae);
156
+ V.separateNumbers && (u = u.replace(Oe, ae).replace(je, ae)), u = u.replace(Me, "\0");
157
+ let v = 0, c = u.length;
158
+ for (; u.charAt(v) === "\0"; )
159
+ v++;
160
+ if (v === c)
161
161
  return [];
162
- for (; u.charAt(b - 1) === "\0"; )
163
- b--;
164
- return u.slice(V, b).split(/\0/g);
162
+ for (; u.charAt(c - 1) === "\0"; )
163
+ c--;
164
+ return u.slice(v, c).split(/\0/g);
165
165
  }
166
166
  function ze(d) {
167
- return (v) => v.toLocaleLowerCase(d);
167
+ return (V) => V.toLocaleLowerCase(d);
168
168
  }
169
169
  function We(d) {
170
- return (v) => v.toLocaleUpperCase(d);
170
+ return (V) => V.toLocaleUpperCase(d);
171
171
  }
172
- function ce(d, v) {
173
- const u = ze(v == null ? void 0 : v.locale), V = We(v == null ? void 0 : v.locale);
174
- return He(d).map((b, m) => m === 0 ? V(b[0]) + u(b.slice(1)) : u(b)).join(" ");
172
+ function ge(d, V) {
173
+ const u = ze(V == null ? void 0 : V.locale), v = We(V == null ? void 0 : V.locale);
174
+ return He(d).map((c, m) => m === 0 ? v(c[0]) + u(c.slice(1)) : u(c)).join(" ");
175
175
  }
176
176
  const Ye = {
177
177
  key: 0,
@@ -191,7 +191,7 @@ const Ye = {
191
191
  }, lt = {
192
192
  key: 5,
193
193
  class: "mt-1 whitespace-pre-line break-words text-xs text-gray-700"
194
- }, xe = /* @__PURE__ */ J({
194
+ }, xe = /* @__PURE__ */ G({
195
195
  __name: "Timeline",
196
196
  props: {
197
197
  entries: {
@@ -200,7 +200,7 @@ const Ye = {
200
200
  }
201
201
  },
202
202
  setup(d) {
203
- const v = d, u = {
203
+ const V = d, u = {
204
204
  submission: { label: "Submitted", icon: "upload_file", color: "bg-blue-400" },
205
205
  resubmission: {
206
206
  label: "Resubmitted",
@@ -262,84 +262,84 @@ const Ye = {
262
262
  icon: "update",
263
263
  color: "bg-orange-400"
264
264
  }
265
- }, V = {
265
+ }, v = {
266
266
  approved: "bg-green-400",
267
267
  ready: "bg-green-400",
268
268
  rejected: "bg-red-400",
269
269
  submitted: "bg-blue-400",
270
270
  pending: "bg-yellow-400"
271
271
  };
272
- function b(a) {
273
- const r = u[a];
272
+ function c(l) {
273
+ const r = u[l];
274
274
  if (r) return r;
275
- if (a.startsWith("status-update-")) {
276
- const C = a.replace("status-update-", "");
275
+ if (l.startsWith("status-update-")) {
276
+ const x = l.replace("status-update-", "");
277
277
  return {
278
- label: `Status Updated to ${ce(C)}`,
278
+ label: `Status Updated to ${ge(x)}`,
279
279
  icon: "sync",
280
- color: V[C] ?? "bg-gray-400"
280
+ color: v[x] ?? "bg-gray-400"
281
281
  };
282
282
  }
283
283
  return {
284
- label: ce(a.replace(/-/g, " ")),
284
+ label: ge(l.replace(/-/g, " ")),
285
285
  icon: "radio_button_checked",
286
286
  color: "bg-gray-400"
287
287
  };
288
288
  }
289
289
  const m = j(
290
- () => (v.entries ?? []).map((a) => ({
291
- ...a,
292
- ...b(a.action),
293
- at: qe(a.timestamp)
294
- })).sort((a, r) => a.at.valueOf() - r.at.valueOf())
295
- ), f = B(null), x = async () => {
296
- await Re(), f.value && (f.value.scrollLeft = f.value.scrollWidth);
290
+ () => (V.entries ?? []).map((l) => ({
291
+ ...l,
292
+ ...c(l.action),
293
+ at: qe(l.timestamp)
294
+ })).sort((l, r) => l.at.valueOf() - r.at.valueOf())
295
+ ), b = B(null), C = async () => {
296
+ await Ie(), b.value && (b.value.scrollLeft = b.value.scrollWidth);
297
297
  };
298
- return ve(x), he(() => m.value.length, x), (a, r) => {
299
- const C = U("FmIcon");
298
+ return Ve(C), he(() => m.value.length, C), (l, r) => {
299
+ const x = h("FmIcon");
300
300
  return m.value.length ? (i(), p("div", {
301
301
  key: 1,
302
302
  ref_key: "rail",
303
- ref: f,
303
+ ref: b,
304
304
  class: "overflow-x-auto mt-6 pb-6"
305
305
  }, [
306
306
  s("ol", Qe, [
307
- (i(!0), p(A, null, O(m.value, (c, P) => (i(), p("li", {
308
- key: `${c.action}-${c.timestamp}-${P}`,
307
+ (i(!0), p(L, null, O(m.value, (g, I) => (i(), p("li", {
308
+ key: `${g.action}-${g.timestamp}-${I}`,
309
309
  class: "relative flex w-[160px] shrink-0 flex-col items-center px-8 text-center"
310
310
  }, [
311
- P > 0 ? (i(), p("span", Ge)) : E("", !0),
312
- P < m.value.length - 1 ? (i(), p("span", Je)) : E("", !0),
311
+ I > 0 ? (i(), p("span", Ge)) : E("", !0),
312
+ I < m.value.length - 1 ? (i(), p("span", Je)) : E("", !0),
313
313
  s("span", {
314
314
  class: ie([
315
315
  "relative z-10 h-4 w-4 rounded-full ring-4 ring-white",
316
- c.color
316
+ g.color
317
317
  ])
318
318
  }, null, 2),
319
- o(C, {
320
- name: c.icon,
319
+ o(x, {
320
+ name: g.icon,
321
321
  size: "sm",
322
322
  class: "mt-3 text-gray-500"
323
323
  }, null, 8, ["name"]),
324
- s("span", Ke, q(c.label), 1),
325
- P === m.value.length - 1 ? (i(), p("span", Xe, " Latest ")) : E("", !0),
326
- c.at.isValid() ? (i(), p(A, { key: 3 }, [
327
- s("span", Ze, q(c.at.format("DD MMM YYYY")), 1),
328
- s("span", et, q(c.at.format("HH:mm")), 1)
329
- ], 64)) : (i(), p("span", tt, q(c.timestamp), 1)),
330
- c.description ? (i(), p("span", lt, q(c.description), 1)) : E("", !0)
324
+ s("span", Ke, R(g.label), 1),
325
+ I === m.value.length - 1 ? (i(), p("span", Xe, " Latest ")) : E("", !0),
326
+ g.at.isValid() ? (i(), p(L, { key: 3 }, [
327
+ s("span", Ze, R(g.at.format("DD MMM YYYY")), 1),
328
+ s("span", et, R(g.at.format("HH:mm")), 1)
329
+ ], 64)) : (i(), p("span", tt, R(g.timestamp), 1)),
330
+ g.description ? (i(), p("span", lt, R(g.description), 1)) : E("", !0)
331
331
  ]))), 128))
332
332
  ])
333
333
  ], 512)) : (i(), p("p", Ye, " No activity recorded yet. "));
334
334
  };
335
335
  }
336
- }), se = "\0", at = /^(#{1,6})\s+(.*)$/, st = /^[-*+]\s+(.*)$/, nt = /^\d+[.)]\s+(.*)$/, ot = /^(-{3,}|\*{3,}|_{3,})$/, rt = /^>\s?(.*)$/, ge = /^\|(.+)\|$/, it = /^\|[\s:|-]+\|$/;
337
- function ye(d) {
336
+ }), se = "\0", at = /^(#{1,6})\s+(.*)$/, st = /^[-*+]\s+(.*)$/, nt = /^\d+[.)]\s+(.*)$/, ot = /^(-{3,}|\*{3,}|_{3,})$/, rt = /^>\s?(.*)$/, ye = /^\|(.+)\|$/, it = /^\|[\s:|-]+\|$/;
337
+ function fe(d) {
338
338
  return d.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#39;");
339
339
  }
340
340
  function ee(d) {
341
- const v = [], u = d.replace(/`([^`]+)`/g, (b, m) => (v.push(m), `${se}${v.length - 1}${se}`));
342
- return ye(u).replace(
341
+ const V = [], u = d.replace(/`([^`]+)`/g, (c, m) => (V.push(m), `${se}${V.length - 1}${se}`));
342
+ return fe(u).replace(
343
343
  /\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
344
344
  '<a href="$2" target="_blank" rel="noopener noreferrer" class="text-blue-600 underline">$1</a>'
345
345
  ).replace(
@@ -350,88 +350,88 @@ function ee(d) {
350
350
  '<strong class="font-semibold text-gray-900">$1</strong>'
351
351
  ).replace(/(^|[^*])\*(\S(?:[^*\n]*\S)?)\*/g, "$1<em>$2</em>").replace(
352
352
  new RegExp(`${se}(\\d+)${se}`, "g"),
353
- (b, m) => `<code class="rounded bg-gray-100 px-1 py-[1px] text-[13px]">${ye(
354
- v[Number(m)]
353
+ (c, m) => `<code class="rounded bg-gray-100 px-1 py-[1px] text-[13px]">${fe(
354
+ V[Number(m)]
355
355
  )}</code>`
356
356
  );
357
357
  }
358
358
  function ut(d) {
359
- return d.slice(1, -1).split("|").map((v) => ee(v.trim()));
359
+ return d.slice(1, -1).split("|").map((V) => ee(V.trim()));
360
360
  }
361
361
  function dt(d) {
362
- const v = (d ?? "").replace(/\r\n/g, `
362
+ const V = (d ?? "").replace(/\r\n/g, `
363
363
  `).split(`
364
364
  `), u = [];
365
- let V = [], b = [];
365
+ let v = [], c = [];
366
366
  const m = () => {
367
- V.length && (u.push({
367
+ v.length && (u.push({
368
368
  type: "paragraph",
369
- html: ee(V.join(" "))
370
- }), V = []);
371
- }, f = () => {
372
- b.length && (u.push({ type: "quote", html: ee(b.join(" ")) }), b = []);
373
- }, x = () => {
374
- m(), f();
369
+ html: ee(v.join(" "))
370
+ }), v = []);
371
+ }, b = () => {
372
+ c.length && (u.push({ type: "quote", html: ee(c.join(" ")) }), c = []);
373
+ }, C = () => {
374
+ m(), b();
375
375
  };
376
- for (let a = 0; a < v.length; a += 1) {
377
- const r = v[a].replace(/\t/g, " "), C = r.trim();
378
- if (C.startsWith("```")) {
379
- x();
376
+ for (let l = 0; l < V.length; l += 1) {
377
+ const r = V[l].replace(/\t/g, " "), x = r.trim();
378
+ if (x.startsWith("```")) {
379
+ C();
380
380
  continue;
381
381
  }
382
- if (!C) {
383
- x();
382
+ if (!x) {
383
+ C();
384
384
  continue;
385
385
  }
386
- const c = C.match(at);
387
- if (c) {
388
- x(), u.push({
386
+ const g = x.match(at);
387
+ if (g) {
388
+ C(), u.push({
389
389
  type: "heading",
390
- level: c[1].length,
391
- html: ee(c[2])
390
+ level: g[1].length,
391
+ html: ee(g[2])
392
392
  });
393
393
  continue;
394
394
  }
395
- if (ot.test(C)) {
396
- x(), u.push({ type: "rule" });
395
+ if (ot.test(x)) {
396
+ C(), u.push({ type: "rule" });
397
397
  continue;
398
398
  }
399
- const P = C.match(rt);
400
- if (P) {
401
- m(), b.push(P[1]);
399
+ const I = x.match(rt);
400
+ if (I) {
401
+ m(), c.push(I[1]);
402
402
  continue;
403
403
  }
404
- if (ge.test(C)) {
405
- x();
406
- const R = [];
404
+ if (ye.test(x)) {
405
+ C();
406
+ const q = [];
407
407
  let k = [];
408
- for (; a < v.length; ) {
409
- const S = v[a].trim();
410
- if (!ge.test(S)) break;
411
- it.test(S) ? k = R.shift() ?? [] : R.push(ut(S)), a += 1;
408
+ for (; l < V.length; ) {
409
+ const w = V[l].trim();
410
+ if (!ye.test(w)) break;
411
+ it.test(w) ? k = q.shift() ?? [] : q.push(ut(w)), l += 1;
412
412
  }
413
- a -= 1, u.push({ type: "table", head: k, rows: R });
413
+ l -= 1, u.push({ type: "table", head: k, rows: q });
414
414
  continue;
415
415
  }
416
- const D = C.match(st), N = C.match(nt);
417
- if (D || N) {
418
- x();
419
- const R = (D ?? N)[1], k = r.length - r.trimStart().length, S = u[u.length - 1];
420
- if (k >= 2 && (S == null ? void 0 : S.type) === "list" && S.items.length) {
421
- S.items[S.items.length - 1].children.push(ee(R));
416
+ const U = x.match(st), N = x.match(nt);
417
+ if (U || N) {
418
+ C();
419
+ const q = (U ?? N)[1], k = r.length - r.trimStart().length, w = u[u.length - 1];
420
+ if (k >= 2 && (w == null ? void 0 : w.type) === "list" && w.items.length) {
421
+ w.items[w.items.length - 1].children.push(ee(q));
422
422
  continue;
423
423
  }
424
- const z = { html: ee(R), children: [] };
425
- (S == null ? void 0 : S.type) === "list" && S.ordered === !!N ? S.items.push(z) : u.push({
424
+ const W = { html: ee(q), children: [] };
425
+ (w == null ? void 0 : w.type) === "list" && w.ordered === !!N ? w.items.push(W) : u.push({
426
426
  type: "list",
427
427
  ordered: !!N,
428
- items: [z]
428
+ items: [W]
429
429
  });
430
430
  continue;
431
431
  }
432
- f(), V.push(C);
432
+ b(), v.push(x);
433
433
  }
434
- return x(), u;
434
+ return C(), u;
435
435
  }
436
436
  const mt = {
437
437
  key: 0,
@@ -439,7 +439,7 @@ const mt = {
439
439
  }, pt = {
440
440
  key: 1,
441
441
  class: "space-y-3 rounded-lg border border-gray-200 bg-gray-50 p-6 text-sm leading-relaxed text-gray-700"
442
- }, bt = ["innerHTML"], ct = {
442
+ }, ct = ["innerHTML"], bt = {
443
443
  key: 0,
444
444
  class: "mt-1 list-[circle] space-y-1 pl-5"
445
445
  }, gt = ["innerHTML"], yt = {
@@ -448,7 +448,7 @@ const mt = {
448
448
  }, ft = { class: "w-full border-collapse text-left" }, vt = { key: 0 }, Vt = ["innerHTML"], kt = ["innerHTML"], Ct = ["innerHTML"], xt = {
449
449
  key: 4,
450
450
  class: "border-gray-200"
451
- }, wt = ["innerHTML"], St = /* @__PURE__ */ J({
451
+ }, St = ["innerHTML"], wt = /* @__PURE__ */ G({
452
452
  __name: "AiSummary",
453
453
  props: {
454
454
  summary: {
@@ -457,24 +457,24 @@ const mt = {
457
457
  }
458
458
  },
459
459
  setup(d) {
460
- const v = d, u = j(() => dt(v.summary));
461
- return (V, b) => u.value.length ? (i(), p("div", pt, [
462
- (i(!0), p(A, null, O(u.value, (m, f) => (i(), p(A, { key: f }, [
463
- m.type === "heading" ? (i(), L(ue(m.level <= 2 ? "h4" : "h5"), {
460
+ const V = d, u = j(() => dt(V.summary));
461
+ return (v, c) => u.value.length ? (i(), p("div", pt, [
462
+ (i(!0), p(L, null, O(u.value, (m, b) => (i(), p(L, { key: b }, [
463
+ m.type === "heading" ? (i(), _(ue(m.level <= 2 ? "h4" : "h5"), {
464
464
  key: 0,
465
465
  class: ie(["pt-2 font-semibold text-gray-900 first:pt-0", m.level <= 2 ? "text-base" : "text-sm"]),
466
466
  innerHTML: m.html
467
- }, null, 8, ["class", "innerHTML"])) : m.type === "list" ? (i(), L(ue(m.ordered ? "ol" : "ul"), {
467
+ }, null, 8, ["class", "innerHTML"])) : m.type === "list" ? (i(), _(ue(m.ordered ? "ol" : "ul"), {
468
468
  key: 1,
469
469
  class: ie(["space-y-1 pl-5", m.ordered ? "list-decimal" : "list-disc"])
470
470
  }, {
471
- default: h(() => [
472
- (i(!0), p(A, null, O(m.items, (x, a) => (i(), p("li", { key: a }, [
471
+ default: P(() => [
472
+ (i(!0), p(L, null, O(m.items, (C, l) => (i(), p("li", { key: l }, [
473
473
  s("span", {
474
- innerHTML: x.html
475
- }, null, 8, bt),
476
- x.children.length ? (i(), p("ul", ct, [
477
- (i(!0), p(A, null, O(x.children, (r, C) => (i(), p("li", { key: C }, [
474
+ innerHTML: C.html
475
+ }, null, 8, ct),
476
+ C.children.length ? (i(), p("ul", bt, [
477
+ (i(!0), p(L, null, O(C.children, (r, x) => (i(), p("li", { key: x }, [
478
478
  s("span", { innerHTML: r }, null, 8, gt)
479
479
  ]))), 128))
480
480
  ])) : E("", !0)
@@ -485,17 +485,17 @@ const mt = {
485
485
  s("table", ft, [
486
486
  m.head.length ? (i(), p("thead", vt, [
487
487
  s("tr", null, [
488
- (i(!0), p(A, null, O(m.head, (x, a) => (i(), p("th", {
489
- key: a,
488
+ (i(!0), p(L, null, O(m.head, (C, l) => (i(), p("th", {
489
+ key: l,
490
490
  class: "border-b border-gray-300 px-2 py-1 font-semibold text-gray-900",
491
- innerHTML: x
491
+ innerHTML: C
492
492
  }, null, 8, Vt))), 128))
493
493
  ])
494
494
  ])) : E("", !0),
495
495
  s("tbody", null, [
496
- (i(!0), p(A, null, O(m.rows, (x, a) => (i(), p("tr", { key: a }, [
497
- (i(!0), p(A, null, O(x, (r, C) => (i(), p("td", {
498
- key: C,
496
+ (i(!0), p(L, null, O(m.rows, (C, l) => (i(), p("tr", { key: l }, [
497
+ (i(!0), p(L, null, O(C, (r, x) => (i(), p("td", {
498
+ key: x,
499
499
  class: "border-b border-gray-200 px-2 py-1 align-top",
500
500
  innerHTML: r
501
501
  }, null, 8, kt))), 128))
@@ -509,20 +509,20 @@ const mt = {
509
509
  }, null, 8, Ct)) : m.type === "rule" ? (i(), p("hr", xt)) : (i(), p("p", {
510
510
  key: 5,
511
511
  innerHTML: m.html
512
- }, null, 8, wt))
512
+ }, null, 8, St))
513
513
  ], 64))), 128))
514
514
  ])) : (i(), p("p", mt, " No review generated for this submission. "));
515
515
  }
516
- }), Nt = { class: "space-y-2" }, Pt = { class: "text-gray-900" }, ht = { class: "text-gray-900" }, Rt = { class: "text-gray-900" }, It = { class: "text-gray-900" }, qt = { class: "text-gray-900" }, Ut = { class: "text-gray-900" }, $t = { class: "grid grid-cols-4 gap-6" }, Dt = ["src"], Ft = {
516
+ }), Nt = { class: "space-y-2" }, Pt = { class: "text-gray-900" }, ht = { class: "text-gray-900" }, It = { class: "text-gray-900" }, Rt = { class: "text-gray-900" }, qt = { class: "text-gray-900" }, Ft = { class: "text-gray-900" }, $t = { class: "grid grid-cols-4 gap-6" }, Ut = ["src"], Tt = {
517
517
  key: 1,
518
518
  class: "mt-2 truncate text-gray-700"
519
- }, Tt = { key: 0 }, Et = {
519
+ }, Dt = { key: 0 }, _t = {
520
520
  key: 0,
521
521
  class: "w-full flex justify-end mt-6"
522
- }, Lt = { class: "mt-6 grid grid-cols-4 gap-24" }, At = { class: "grid grid-cols-4 gap-6" }, _t = { class: "w-full flex justify-end mt-6" }, Bt = { class: "mt-6 grid grid-cols-4 gap-24" }, Ot = { class: "col-span-2" }, jt = { class: "col-span-2" }, Mt = { class: "col-span-2" }, Ht = { class: "col-span-2" }, zt = { class: "col-span-2" }, Wt = { class: "col-span-2" }, Yt = { class: "col-span-2" }, Qt = { class: "col-span-2" }, Gt = { class: "col-start-1 col-span-2" }, Jt = { class: "col-span-2" }, Kt = { class: "col-span-2" }, Xt = { class: "col-span-2" }, Zt = { class: "mt-6 grid grid-cols-4 gap-6" }, el = { class: "mt-6 grid grid-cols-4 gap-6" }, tl = { class: "mt-6 grid grid-cols-4 gap-6" }, ll = { class: "mt-6 grid grid-cols-4 gap-6" }, al = { class: "mt-6 grid grid-cols-4 gap-6" }, sl = { class: "mt-6 grid grid-cols-4 gap-6" }, nl = {
522
+ }, Et = { class: "mt-6 grid grid-cols-4 gap-24" }, Lt = { class: "grid grid-cols-4 gap-6" }, At = { class: "w-full flex justify-end mt-6" }, Bt = { class: "mt-6 grid grid-cols-4 gap-24" }, Ot = { class: "col-span-2" }, jt = { class: "col-span-2" }, Mt = { class: "col-span-2" }, Ht = { class: "col-span-2" }, zt = { class: "col-span-2" }, Wt = { class: "col-span-2" }, Yt = { class: "col-span-2" }, Qt = { class: "col-span-2" }, Gt = { class: "col-start-1 col-span-2" }, Jt = { class: "col-span-2" }, Kt = { class: "col-span-2" }, Xt = { class: "col-span-2" }, Zt = { class: "mt-6 grid grid-cols-4 gap-6" }, el = { class: "mt-6 grid grid-cols-4 gap-6" }, tl = { class: "mt-6 grid grid-cols-4 gap-6" }, ll = { class: "mt-6 grid grid-cols-4 gap-6" }, al = { class: "mt-6 grid grid-cols-4 gap-6" }, sl = { class: "mt-6 grid grid-cols-4 gap-6" }, nl = {
523
523
  key: 2,
524
524
  class: "text-sm text-gray-500"
525
- }, ol = { class: "mt-6 grid grid-cols-2 gap-24" }, fe = 30, rl = /* @__PURE__ */ J({
525
+ }, ol = { class: "mt-6 grid grid-cols-2 gap-24" }, ve = 30, rl = /* @__PURE__ */ G({
526
526
  __name: "SoftspaceSubmission",
527
527
  props: {
528
528
  submission: {
@@ -531,13 +531,13 @@ const mt = {
531
531
  }
532
532
  },
533
533
  emits: ["update:submission"],
534
- setup(d, { emit: v }) {
534
+ setup(d, { emit: V }) {
535
535
  var le;
536
- const u = d, V = v, b = de(), m = B(!1), { isLoading: f, startAsyncCall: x } = ne(), { fields: a, documents: r, restaurantId: C, profile: c, status: P, statusReason: D } = u.submission, N = B(""), R = B(
536
+ const u = d, v = V, c = me(), m = B(!1), { isLoading: b, startAsyncCall: C } = ne(), { fields: l, documents: r, restaurantId: x, profile: g, status: I, statusReason: U } = u.submission, N = B(""), q = B(
537
537
  parseInt(((le = u.submission.fields) == null ? void 0 : le.numberOfDevices) ?? 1)
538
538
  ), k = B(
539
539
  u.submission.rates ? Object.fromEntries(
540
- Object.entries(u.submission.rates).map(([w, t]) => [w, `${t}`])
540
+ Object.entries(u.submission.rates).map(([S, t]) => [S, `${t}`])
541
541
  ) : {
542
542
  duitNow: "0.8",
543
543
  mydebitCard: "0.5",
@@ -547,66 +547,66 @@ const mt = {
547
547
  jcbStandard: "2.2",
548
548
  jcbPlatinum: "2.2"
549
549
  }
550
- ), S = j(
551
- () => Object.values(k.value).every((w) => parseFloat(w) > 0)
552
- ), z = j(
553
- () => Object.keys(u.submission.documents).filter((w) => /^authorizedPersonID\d+$/.test(w)).sort(
554
- (w, t) => Number(w.replace("authorizedPersonID", "")) - Number(t.replace("authorizedPersonID", ""))
550
+ ), w = j(
551
+ () => Object.values(k.value).every((S) => parseFloat(S) > 0)
552
+ ), W = j(
553
+ () => Object.keys(u.submission.documents).filter((S) => /^authorizedPersonID\d+$/.test(S)).sort(
554
+ (S, t) => Number(S.replace("authorizedPersonID", "")) - Number(t.replace("authorizedPersonID", ""))
555
555
  )
556
- ), { isLoading: K, startAsyncCall: X } = ne(), M = B([]), te = (w) => Number(w.replace("additionalDocument", "")), I = j(
557
- () => Object.keys(u.submission.documents).filter((w) => /^additionalDocument\d+$/.test(w)).sort((w, t) => te(w) - te(t))
556
+ ), { isLoading: K, startAsyncCall: X } = ne(), M = B([]), te = (S) => Number(S.replace("additionalDocument", "")), F = j(
557
+ () => Object.keys(u.submission.documents).filter((S) => /^additionalDocument\d+$/.test(S)).sort((S, t) => te(S) - te(t))
558
558
  ), n = j(
559
- () => I.value.length + M.value.length
560
- ), F = (w) => {
561
- if (!(n.value >= fe)) {
562
- if (w.type.startsWith("image/")) {
559
+ () => F.value.length + M.value.length
560
+ ), T = (S) => {
561
+ if (!(n.value >= ve)) {
562
+ if (S.type.startsWith("image/")) {
563
563
  const t = new FileReader();
564
- t.onload = (_) => {
565
- var W;
564
+ t.onload = (A) => {
565
+ var Y;
566
566
  return M.value.push({
567
- file: w,
568
- preview: String(((W = _.target) == null ? void 0 : W.result) ?? "")
567
+ file: S,
568
+ preview: String(((Y = A.target) == null ? void 0 : Y.result) ?? "")
569
569
  });
570
- }, t.readAsDataURL(w);
570
+ }, t.readAsDataURL(S);
571
571
  return;
572
572
  }
573
- M.value.push({ file: w, preview: "" });
573
+ M.value.push({ file: S, preview: "" });
574
574
  }
575
575
  }, Z = () => X(async () => {
576
576
  try {
577
- let w = I.value.reduce(
578
- (_, W) => Math.max(_, te(W)),
577
+ let S = F.value.reduce(
578
+ (A, Y) => Math.max(A, te(Y)),
579
579
  0
580
580
  );
581
581
  const t = {};
582
- for (const { file: _ } of M.value) {
583
- const W = `additionalDocument${++w}`;
584
- t[W] = await H.uploadDocument(
585
- C,
586
- W,
587
- _
582
+ for (const { file: A } of M.value) {
583
+ const Y = `additionalDocument${++S}`;
584
+ t[Y] = await z.uploadDocument(
585
+ x,
586
+ Y,
587
+ A
588
588
  );
589
589
  }
590
- V(
590
+ v(
591
591
  "update:submission",
592
- await H.addAdditionalDocuments(
592
+ await z.addAdditionalDocuments(
593
593
  u.submission._id,
594
594
  t
595
595
  )
596
- ), M.value = [], b.open({ type: "success", title: "Documents saved" });
597
- } catch (w) {
598
- b.open({
596
+ ), M.value = [], c.open({ type: "success", title: "Documents saved" });
597
+ } catch (S) {
598
+ c.open({
599
599
  type: "error",
600
600
  title: "Error occurs when sending additional documents",
601
- message: G(w)
601
+ message: J(S)
602
602
  });
603
603
  }
604
- }), oe = () => x(async () => {
604
+ }), oe = () => C(async () => {
605
605
  try {
606
- const w = await H.reviewById(
606
+ const S = await z.reviewById(
607
607
  u.submission._id,
608
608
  {
609
- numberOfDevices: R.value.toString(),
609
+ numberOfDevices: q.value.toString(),
610
610
  rates: {
611
611
  duitNow: parseFloat(k.value.duitNow),
612
612
  mydebitCard: parseFloat(k.value.mydebitCard),
@@ -619,74 +619,74 @@ const mt = {
619
619
  status: "approved"
620
620
  }
621
621
  );
622
- V("update:submission", w), m.value = !1, b.open({
622
+ v("update:submission", S), m.value = !1, c.open({
623
623
  type: "success",
624
624
  title: "Submission updated successfully"
625
625
  });
626
- } catch (w) {
627
- b.open({
626
+ } catch (S) {
627
+ c.open({
628
628
  type: "error",
629
629
  title: "Error occurs when updating submission",
630
- message: G(w)
630
+ message: J(S)
631
631
  });
632
632
  }
633
- }), re = () => x(async () => {
633
+ }), re = () => C(async () => {
634
634
  try {
635
- const w = await H.reviewById(
635
+ const S = await z.reviewById(
636
636
  u.submission._id,
637
637
  {
638
638
  status: "rejected",
639
639
  statusReason: N.value
640
640
  }
641
641
  );
642
- V("update:submission", w), m.value = !1, b.open({
642
+ v("update:submission", S), m.value = !1, c.open({
643
643
  type: "success",
644
644
  title: "Submission updated successfully"
645
645
  });
646
- } catch (w) {
647
- b.open({
646
+ } catch (S) {
647
+ c.open({
648
648
  type: "error",
649
649
  title: "Error occurs when updating submission",
650
- message: G(w)
650
+ message: J(S)
651
651
  });
652
652
  }
653
653
  });
654
- return (w, t) => {
655
- const _ = U("FmButton"), W = U("FmDropField"), $ = U("FmTextField"), we = U("FmTextarea"), Se = U("FmDialog"), Ne = U("FmPhoneNumber"), me = U("FmSelect"), Pe = U("FmForm");
656
- return i(), p(A, null, [
654
+ return (S, t) => {
655
+ const A = h("FmButton"), Y = h("FmDropField"), $ = h("FmTextField"), Se = h("FmTextarea"), we = h("FmDialog"), Ne = h("FmPhoneNumber"), pe = h("FmSelect"), Pe = h("FmForm");
656
+ return i(), p(L, null, [
657
657
  s("div", Nt, [
658
658
  s("div", null, [
659
659
  t[38] || (t[38] = s("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
660
- s("span", Pt, q(e(C)), 1)
660
+ s("span", Pt, R(e(x)), 1)
661
661
  ]),
662
662
  s("div", null, [
663
663
  t[39] || (t[39] = s("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
664
- s("span", ht, q(e(c).name) + " ( " + q(e(c).legalName) + " )", 1)
664
+ s("span", ht, R(e(g).name) + " ( " + R(e(g).legalName) + " )", 1)
665
665
  ]),
666
666
  s("div", null, [
667
667
  t[40] || (t[40] = s("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
668
- s("span", Rt, q(e(c).email), 1)
668
+ s("span", It, R(e(g).email), 1)
669
669
  ]),
670
670
  s("div", null, [
671
671
  t[41] || (t[41] = s("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
672
- s("span", It, q(e(c).phoneNo), 1)
672
+ s("span", Rt, R(e(g).phoneNo), 1)
673
673
  ]),
674
674
  s("div", null, [
675
675
  t[42] || (t[42] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
676
676
  s("span", qt, [
677
- o(Ce, { data: e(P) }, null, 8, ["data"])
677
+ o(Ce, { data: e(I) }, null, 8, ["data"])
678
678
  ])
679
679
  ]),
680
680
  s("div", null, [
681
681
  t[43] || (t[43] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
682
- s("span", Ut, q(e(D)), 1)
682
+ s("span", Ft, R(e(U)), 1)
683
683
  ])
684
684
  ]),
685
685
  t[61] || (t[61] = s("div", { class: "flex items-center gap-2 border-b pb-1 mt-6 mb-6" }, [
686
686
  s("h3", { class: "font-semibold text-lg" }, "AI Review"),
687
687
  s("span", { class: "rounded bg-gray-100 px-2 py-[2px] text-xs text-gray-600" }, " FIRST SUBMISSION ")
688
688
  ], -1)),
689
- o(St, {
689
+ o(wt, {
690
690
  summary: d.submission.aiSummary
691
691
  }, null, 8, ["summary"]),
692
692
  t[62] || (t[62] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Timeline", -1)),
@@ -695,41 +695,41 @@ const mt = {
695
695
  }, null, 8, ["entries"]),
696
696
  t[63] || (t[63] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " (SharePoint) Additional Requested Documents ", -1)),
697
697
  s("div", $t, [
698
- (i(!0), p(A, null, O(I.value, (l) => (i(), L(T, {
699
- key: l,
700
- label: l.replace("additionalDocument", "Document "),
701
- type: /\.pdf$/i.test(u.submission.documents[l]) ? "pdf" : "image",
702
- modelValue: u.submission.documents[l],
703
- "onUpdate:modelValue": (Y) => u.submission.documents[l] = Y,
704
- "restaurant-id": e(C)
698
+ (i(!0), p(L, null, O(F.value, (a) => (i(), _(D, {
699
+ key: a,
700
+ label: a.replace("additionalDocument", "Document "),
701
+ type: /\.pdf$/i.test(u.submission.documents[a]) ? "pdf" : "image",
702
+ modelValue: u.submission.documents[a],
703
+ "onUpdate:modelValue": (Q) => u.submission.documents[a] = Q,
704
+ "restaurant-id": e(x)
705
705
  }, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
706
- (i(!0), p(A, null, O(M.value, (l, Y) => (i(), p("div", {
707
- key: `new-${Y}`
706
+ (i(!0), p(L, null, O(M.value, (a, Q) => (i(), p("div", {
707
+ key: `new-${Q}`
708
708
  }, [
709
- s("p", null, "Document " + q(I.value.length + Y + 1), 1),
710
- l.file.type.startsWith("image/") ? (i(), p("img", {
709
+ s("p", null, "Document " + R(F.value.length + Q + 1), 1),
710
+ a.file.type.startsWith("image/") ? (i(), p("img", {
711
711
  key: 0,
712
- src: l.preview,
712
+ src: a.preview,
713
713
  class: "mt-2 rounded border"
714
- }, null, 8, Dt)) : (i(), p("p", Ft, q(l.file.name), 1)),
715
- o(_, {
714
+ }, null, 8, Ut)) : (i(), p("p", Tt, R(a.file.name), 1)),
715
+ o(A, {
716
716
  class: "mt-4",
717
717
  "prepend-icon": "delete",
718
718
  label: "Remove",
719
719
  variant: "destructive",
720
- onClick: (Tl) => M.value.splice(Y, 1)
720
+ onClick: (_l) => M.value.splice(Q, 1)
721
721
  }, null, 8, ["onClick"])
722
722
  ]))), 128)),
723
- n.value < fe ? (i(), p("div", Tt, [
724
- s("p", null, "Document " + q(n.value + 1), 1),
725
- o(W, {
723
+ n.value < ve ? (i(), p("div", Dt, [
724
+ s("p", null, "Document " + R(n.value + 1), 1),
725
+ o(Y, {
726
726
  accept: ".png, .jpg, .jpeg, .pdf",
727
- onFileUpload: F
727
+ onFileUpload: T
728
728
  })
729
729
  ])) : E("", !0)
730
730
  ]),
731
- M.value.length ? (i(), p("div", Et, [
732
- o(_, {
731
+ M.value.length ? (i(), p("div", _t, [
732
+ o(A, {
733
733
  type: "button",
734
734
  variant: "primary",
735
735
  "prepend-icon": "cloud_upload",
@@ -739,301 +739,301 @@ const mt = {
739
739
  }, null, 8, ["loading"])
740
740
  ])) : E("", !0),
741
741
  t[64] || (t[64] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
742
- s("div", Lt, [
742
+ s("div", Et, [
743
743
  o($, {
744
744
  modelValue: k.value.duitNow,
745
- "onUpdate:modelValue": t[0] || (t[0] = (l) => k.value.duitNow = l),
745
+ "onUpdate:modelValue": t[0] || (t[0] = (a) => k.value.duitNow = a),
746
746
  label: "DuitNow QR",
747
747
  "label-mark": "required",
748
748
  type: "number",
749
749
  inputmode: "numeric",
750
750
  decimal: 2,
751
- rules: e(g)(
752
- e(y).string().min(1, "Rate is required").transform((l) => parseFloat(l)).refine((l) => !isNaN(l), { message: "Rate must be a number" })
751
+ rules: e(y)(
752
+ e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
753
753
  )
754
754
  }, {
755
- append: h(() => [...t[44] || (t[44] = [
756
- Q("%", -1)
755
+ append: P(() => [...t[44] || (t[44] = [
756
+ H("%", -1)
757
757
  ])]),
758
758
  _: 1
759
759
  }, 8, ["modelValue", "rules"]),
760
760
  o($, {
761
761
  modelValue: k.value.mydebitCard,
762
- "onUpdate:modelValue": t[1] || (t[1] = (l) => k.value.mydebitCard = l),
762
+ "onUpdate:modelValue": t[1] || (t[1] = (a) => k.value.mydebitCard = a),
763
763
  label: "myDebit Card",
764
764
  "label-mark": "required",
765
765
  type: "number",
766
766
  inputmode: "numeric",
767
767
  decimal: 2,
768
- rules: e(g)(
769
- e(y).string().min(1, "Rate is required").transform((l) => parseFloat(l)).refine((l) => !isNaN(l), { message: "Rate must be a number" })
768
+ rules: e(y)(
769
+ e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
770
770
  )
771
771
  }, {
772
- append: h(() => [...t[45] || (t[45] = [
773
- Q("%", -1)
772
+ append: P(() => [...t[45] || (t[45] = [
773
+ H("%", -1)
774
774
  ])]),
775
775
  _: 1
776
776
  }, 8, ["modelValue", "rules"]),
777
777
  o($, {
778
778
  modelValue: k.value.localDebit,
779
- "onUpdate:modelValue": t[2] || (t[2] = (l) => k.value.localDebit = l),
779
+ "onUpdate:modelValue": t[2] || (t[2] = (a) => k.value.localDebit = a),
780
780
  label: "Local Debit Card",
781
781
  "label-mark": "required",
782
782
  type: "number",
783
783
  inputmode: "numeric",
784
784
  decimal: 2,
785
- rules: e(g)(
786
- e(y).string().min(1, "Rate is required").transform((l) => parseFloat(l)).refine((l) => !isNaN(l), { message: "Rate must be a number" })
785
+ rules: e(y)(
786
+ e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
787
787
  )
788
788
  }, {
789
- append: h(() => [...t[46] || (t[46] = [
790
- Q("%", -1)
789
+ append: P(() => [...t[46] || (t[46] = [
790
+ H("%", -1)
791
791
  ])]),
792
792
  _: 1
793
793
  }, 8, ["modelValue", "rules"]),
794
794
  o($, {
795
795
  modelValue: k.value.localCredit,
796
- "onUpdate:modelValue": t[3] || (t[3] = (l) => k.value.localCredit = l),
796
+ "onUpdate:modelValue": t[3] || (t[3] = (a) => k.value.localCredit = a),
797
797
  label: "Local Credit Card",
798
798
  "label-mark": "required",
799
799
  type: "number",
800
800
  inputmode: "numeric",
801
801
  decimal: 2,
802
- rules: e(g)(
803
- e(y).string().min(1, "Rate is required").transform((l) => parseFloat(l)).refine((l) => !isNaN(l), { message: "Rate must be a number" })
802
+ rules: e(y)(
803
+ e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
804
804
  )
805
805
  }, {
806
- append: h(() => [...t[47] || (t[47] = [
807
- Q("%", -1)
806
+ append: P(() => [...t[47] || (t[47] = [
807
+ H("%", -1)
808
808
  ])]),
809
809
  _: 1
810
810
  }, 8, ["modelValue", "rules"]),
811
811
  o($, {
812
812
  modelValue: k.value.foreignCard,
813
- "onUpdate:modelValue": t[4] || (t[4] = (l) => k.value.foreignCard = l),
813
+ "onUpdate:modelValue": t[4] || (t[4] = (a) => k.value.foreignCard = a),
814
814
  label: "Foreign Card",
815
815
  "label-mark": "required",
816
816
  type: "number",
817
817
  inputmode: "numeric",
818
818
  decimal: 2,
819
- rules: e(g)(
820
- e(y).string().min(1, "Rate is required").transform((l) => parseFloat(l)).refine((l) => !isNaN(l), { message: "Rate must be a number" })
819
+ rules: e(y)(
820
+ e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
821
821
  )
822
822
  }, {
823
- append: h(() => [...t[48] || (t[48] = [
824
- Q("%", -1)
823
+ append: P(() => [...t[48] || (t[48] = [
824
+ H("%", -1)
825
825
  ])]),
826
826
  _: 1
827
827
  }, 8, ["modelValue", "rules"]),
828
828
  o($, {
829
829
  modelValue: k.value.jcbStandard,
830
- "onUpdate:modelValue": t[5] || (t[5] = (l) => k.value.jcbStandard = l),
830
+ "onUpdate:modelValue": t[5] || (t[5] = (a) => k.value.jcbStandard = a),
831
831
  label: "JCB Standard",
832
832
  "label-mark": "required",
833
833
  type: "number",
834
834
  inputmode: "numeric",
835
835
  decimal: 2,
836
- rules: e(g)(
837
- e(y).string().min(1, "Rate is required").transform((l) => parseFloat(l)).refine((l) => !isNaN(l), { message: "Rate must be a number" })
836
+ rules: e(y)(
837
+ e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
838
838
  )
839
839
  }, {
840
- append: h(() => [...t[49] || (t[49] = [
841
- Q("%", -1)
840
+ append: P(() => [...t[49] || (t[49] = [
841
+ H("%", -1)
842
842
  ])]),
843
843
  _: 1
844
844
  }, 8, ["modelValue", "rules"]),
845
845
  o($, {
846
846
  modelValue: k.value.jcbPlatinum,
847
- "onUpdate:modelValue": t[6] || (t[6] = (l) => k.value.jcbPlatinum = l),
847
+ "onUpdate:modelValue": t[6] || (t[6] = (a) => k.value.jcbPlatinum = a),
848
848
  label: "JCB Platinum",
849
849
  "label-mark": "required",
850
850
  type: "number",
851
851
  inputmode: "numeric",
852
852
  decimal: 2,
853
- rules: e(g)(
854
- e(y).string().min(1, "Rate is required").transform((l) => parseFloat(l)).refine((l) => !isNaN(l), { message: "Rate must be a number" })
853
+ rules: e(y)(
854
+ e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
855
855
  )
856
856
  }, {
857
- append: h(() => [...t[50] || (t[50] = [
858
- Q("%", -1)
857
+ append: P(() => [...t[50] || (t[50] = [
858
+ H("%", -1)
859
859
  ])]),
860
860
  _: 1
861
861
  }, 8, ["modelValue", "rules"])
862
862
  ]),
863
863
  t[65] || (t[65] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Extra Settings", -1)),
864
- s("div", At, [
864
+ s("div", Lt, [
865
865
  o($, {
866
- modelValue: R.value,
867
- "onUpdate:modelValue": t[7] || (t[7] = (l) => R.value = l),
866
+ modelValue: q.value,
867
+ "onUpdate:modelValue": t[7] || (t[7] = (a) => q.value = a),
868
868
  label: "Number of Devices",
869
869
  "label-mark": "required",
870
870
  type: "number",
871
871
  inputmode: "numeric"
872
872
  }, null, 8, ["modelValue"])
873
873
  ]),
874
- s("div", _t, [
875
- o(Se, {
874
+ s("div", At, [
875
+ o(we, {
876
876
  modelValue: m.value,
877
- "onUpdate:modelValue": t[9] || (t[9] = (l) => m.value = l)
877
+ "onUpdate:modelValue": t[9] || (t[9] = (a) => m.value = a)
878
878
  }, {
879
- "dialog-button": h(() => [
880
- o(_, {
879
+ "dialog-button": P(() => [
880
+ o(A, {
881
881
  class: "mr-6",
882
882
  type: "button",
883
883
  variant: "destructive",
884
884
  "prepend-icon": "block",
885
- loading: e(f),
885
+ loading: e(b),
886
886
  label: "Reject Submission"
887
887
  }, null, 8, ["loading"])
888
888
  ]),
889
- "dialog-header": h(() => [...t[51] || (t[51] = [
889
+ "dialog-header": P(() => [...t[51] || (t[51] = [
890
890
  s("div", null, "Rejecting Submission", -1)
891
891
  ])]),
892
- default: h(() => [
893
- o(we, {
892
+ default: P(() => [
893
+ o(Se, {
894
894
  modelValue: N.value,
895
- "onUpdate:modelValue": t[8] || (t[8] = (l) => N.value = l),
895
+ "onUpdate:modelValue": t[8] || (t[8] = (a) => N.value = a),
896
896
  label: "Reason for Rejection",
897
897
  "label-mark": "optional",
898
898
  "helper-text": "Please provide a reason for rejection."
899
899
  }, null, 8, ["modelValue"]),
900
- o(_, {
900
+ o(A, {
901
901
  class: "mb-2 mt-6 w-full",
902
902
  label: "Submit",
903
903
  "prepend-icon": "save",
904
904
  onClick: re,
905
- loading: e(f)
905
+ loading: e(b)
906
906
  }, null, 8, ["loading"])
907
907
  ]),
908
908
  _: 1
909
909
  }, 8, ["modelValue"]),
910
- o(_, {
910
+ o(A, {
911
911
  type: "button",
912
912
  variant: "primary",
913
913
  "prepend-icon": "approval",
914
- disabled: !S.value,
914
+ disabled: !w.value,
915
915
  label: "Approve Submission with Rates",
916
916
  onClick: oe,
917
- loading: e(f)
917
+ loading: e(b)
918
918
  }, null, 8, ["disabled", "loading"])
919
919
  ]),
920
920
  o(Pe, { disabled: !0 }, {
921
- default: h(() => [
921
+ default: P(() => [
922
922
  t[52] || (t[52] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
923
923
  s("div", Bt, [
924
924
  s("div", Ot, [
925
925
  o($, {
926
- modelValue: e(a).picName,
927
- "onUpdate:modelValue": t[10] || (t[10] = (l) => e(a).picName = l),
926
+ modelValue: e(l).picName,
927
+ "onUpdate:modelValue": t[10] || (t[10] = (a) => e(l).picName = a),
928
928
  label: "Owner/Director Name",
929
929
  placeholder: "Enter your name",
930
930
  "label-mark": "required",
931
- rules: e(g)(e(y).string().min(1, "Owner/Director Name is required"))
931
+ rules: e(y)(e(f).string().min(1, "Owner/Director Name is required"))
932
932
  }, null, 8, ["modelValue", "rules"])
933
933
  ]),
934
934
  s("div", jt, [
935
935
  o($, {
936
- modelValue: e(a).picRole,
937
- "onUpdate:modelValue": t[11] || (t[11] = (l) => e(a).picRole = l),
936
+ modelValue: e(l).picRole,
937
+ "onUpdate:modelValue": t[11] || (t[11] = (a) => e(l).picRole = a),
938
938
  label: "Owner/Director Role",
939
939
  placeholder: "Enter your role",
940
940
  "label-mark": "required",
941
- rules: e(g)(e(y).string().min(1, "Owner/Director Role is required"))
941
+ rules: e(y)(e(f).string().min(1, "Owner/Director Role is required"))
942
942
  }, null, 8, ["modelValue", "rules"])
943
943
  ]),
944
944
  s("div", Mt, [
945
945
  o($, {
946
- modelValue: e(a).picEmail,
947
- "onUpdate:modelValue": t[12] || (t[12] = (l) => e(a).picEmail = l),
946
+ modelValue: e(l).picEmail,
947
+ "onUpdate:modelValue": t[12] || (t[12] = (a) => e(l).picEmail = a),
948
948
  label: "Owner/Director Email",
949
949
  type: "email",
950
950
  placeholder: "Enter your email address",
951
951
  "label-mark": "required",
952
- rules: e(g)(e(y).string().min(1, "Owner/Director Email is required"))
952
+ rules: e(y)(e(f).string().min(1, "Owner/Director Email is required"))
953
953
  }, null, 8, ["modelValue", "rules"])
954
954
  ]),
955
955
  s("div", Ht, [
956
956
  o(Ne, {
957
- "model-value": e(a).picContact,
958
- "onUpdate:modelValue": t[13] || (t[13] = (l) => e(a).picContact = l),
957
+ "model-value": e(l).picContact,
958
+ "onUpdate:modelValue": t[13] || (t[13] = (a) => e(l).picContact = a),
959
959
  "default-country": "MY",
960
960
  label: "Owner/Director Contact",
961
961
  "label-mark": "required",
962
- rules: e(g)(e(y).string().min(1, "Owner/Director Contact is required"))
962
+ rules: e(y)(e(f).string().min(1, "Owner/Director Contact is required"))
963
963
  }, null, 8, ["model-value", "rules"])
964
964
  ]),
965
965
  s("div", zt, [
966
966
  o($, {
967
- modelValue: e(a).nric,
968
- "onUpdate:modelValue": t[14] || (t[14] = (l) => e(a).nric = l),
967
+ modelValue: e(l).nric,
968
+ "onUpdate:modelValue": t[14] || (t[14] = (a) => e(l).nric = a),
969
969
  label: "Owner/Director NRIC No",
970
970
  placeholder: "Enter your NRIC number",
971
971
  "label-mark": "required",
972
- rules: e(g)(e(y).string().min(1, "NRIC No is required"))
972
+ rules: e(y)(e(f).string().min(1, "NRIC No is required"))
973
973
  }, null, 8, ["modelValue", "rules"])
974
974
  ]),
975
975
  s("div", Wt, [
976
976
  o($, {
977
- modelValue: e(a).tradingName,
978
- "onUpdate:modelValue": t[15] || (t[15] = (l) => e(a).tradingName = l),
977
+ modelValue: e(l).tradingName,
978
+ "onUpdate:modelValue": t[15] || (t[15] = (a) => e(l).tradingName = a),
979
979
  label: "Trading Name",
980
980
  placeholder: "Enter trading name",
981
981
  "label-mark": "required",
982
- rules: e(g)(e(y).string().min(1, "Trading Name is required"))
982
+ rules: e(y)(e(f).string().min(1, "Trading Name is required"))
983
983
  }, null, 8, ["modelValue", "rules"])
984
984
  ]),
985
985
  s("div", Yt, [
986
986
  o($, {
987
- modelValue: e(a).outletName,
988
- "onUpdate:modelValue": t[16] || (t[16] = (l) => e(a).outletName = l),
987
+ modelValue: e(l).outletName,
988
+ "onUpdate:modelValue": t[16] || (t[16] = (a) => e(l).outletName = a),
989
989
  label: "Registered Name",
990
990
  placeholder: "Enter registered name",
991
991
  "label-mark": "required",
992
- rules: e(g)(e(y).string().min(1, "Registered Name is required"))
992
+ rules: e(y)(e(f).string().min(1, "Registered Name is required"))
993
993
  }, null, 8, ["modelValue", "rules"])
994
994
  ]),
995
995
  s("div", Qt, [
996
996
  o($, {
997
- modelValue: e(a).outletAddress,
998
- "onUpdate:modelValue": t[17] || (t[17] = (l) => e(a).outletAddress = l),
997
+ modelValue: e(l).outletAddress,
998
+ "onUpdate:modelValue": t[17] || (t[17] = (a) => e(l).outletAddress = a),
999
999
  label: "Outlet Address",
1000
1000
  placeholder: "Enter outlet address",
1001
1001
  "label-mark": "required",
1002
- rules: e(g)(e(y).string().min(1, "Address is required"))
1002
+ rules: e(y)(e(f).string().min(1, "Address is required"))
1003
1003
  }, null, 8, ["modelValue", "rules"])
1004
1004
  ]),
1005
1005
  o($, {
1006
- modelValue: e(a).outletPostCode,
1007
- "onUpdate:modelValue": t[18] || (t[18] = (l) => e(a).outletPostCode = l),
1006
+ modelValue: e(l).outletPostCode,
1007
+ "onUpdate:modelValue": t[18] || (t[18] = (a) => e(l).outletPostCode = a),
1008
1008
  label: "Postal Code",
1009
1009
  placeholder: "Enter postal code",
1010
1010
  "label-mark": "required",
1011
- rules: e(g)(e(y).string().min(1, "Postal Code is required"))
1011
+ rules: e(y)(e(f).string().min(1, "Postal Code is required"))
1012
1012
  }, null, 8, ["modelValue", "rules"]),
1013
1013
  o($, {
1014
- modelValue: e(a).outletState,
1015
- "onUpdate:modelValue": t[19] || (t[19] = (l) => e(a).outletState = l),
1014
+ modelValue: e(l).outletState,
1015
+ "onUpdate:modelValue": t[19] || (t[19] = (a) => e(l).outletState = a),
1016
1016
  label: "State",
1017
1017
  placeholder: "Enter state",
1018
1018
  "label-mark": "required",
1019
- rules: e(g)(e(y).string().min(1, "State is required"))
1019
+ rules: e(y)(e(f).string().min(1, "State is required"))
1020
1020
  }, null, 8, ["modelValue", "rules"]),
1021
1021
  o($, {
1022
- modelValue: e(a).outletCity,
1023
- "onUpdate:modelValue": t[20] || (t[20] = (l) => e(a).outletCity = l),
1022
+ modelValue: e(l).outletCity,
1023
+ "onUpdate:modelValue": t[20] || (t[20] = (a) => e(l).outletCity = a),
1024
1024
  label: "City",
1025
1025
  placeholder: "Enter city",
1026
1026
  "label-mark": "required",
1027
- rules: e(g)(e(y).string().min(1, "City is required"))
1027
+ rules: e(y)(e(f).string().min(1, "City is required"))
1028
1028
  }, null, 8, ["modelValue", "rules"]),
1029
1029
  s("div", Gt, [
1030
- o(me, {
1031
- modelValue: e(a).businessType,
1032
- "onUpdate:modelValue": t[21] || (t[21] = (l) => e(a).businessType = l),
1030
+ o(pe, {
1031
+ modelValue: e(l).businessType,
1032
+ "onUpdate:modelValue": t[21] || (t[21] = (a) => e(l).businessType = a),
1033
1033
  label: "Type",
1034
1034
  placeholder: "Select business type",
1035
1035
  "label-mark": "required",
1036
- rules: e(g)(e(y).string().min(1, "Business Type is required")),
1036
+ rules: e(y)(e(f).string().min(1, "Business Type is required")),
1037
1037
  items: [
1038
1038
  { label: "Sole Proprietorship", value: "sole_proprietorship" },
1039
1039
  { label: "Partnership", value: "partnership" },
@@ -1050,28 +1050,28 @@ const mt = {
1050
1050
  ]),
1051
1051
  s("div", Jt, [
1052
1052
  o($, {
1053
- modelValue: e(a).businessRegNo,
1054
- "onUpdate:modelValue": t[22] || (t[22] = (l) => e(a).businessRegNo = l),
1053
+ modelValue: e(l).businessRegNo,
1054
+ "onUpdate:modelValue": t[22] || (t[22] = (a) => e(l).businessRegNo = a),
1055
1055
  label: "Registration No",
1056
1056
  placeholder: "Enter registration number",
1057
1057
  "label-mark": "required",
1058
- rules: e(g)(e(y).string().min(1, "Reg No is required"))
1058
+ rules: e(y)(e(f).string().min(1, "Reg No is required"))
1059
1059
  }, null, 8, ["modelValue", "rules"])
1060
1060
  ]),
1061
1061
  s("div", Kt, [
1062
1062
  o($, {
1063
- modelValue: e(a).tinNo,
1064
- "onUpdate:modelValue": t[23] || (t[23] = (l) => e(a).tinNo = l),
1063
+ modelValue: e(l).tinNo,
1064
+ "onUpdate:modelValue": t[23] || (t[23] = (a) => e(l).tinNo = a),
1065
1065
  label: "Tax Identification No (TIN)",
1066
1066
  placeholder: "Enter your TIN number",
1067
1067
  "label-mark": "required",
1068
- rules: e(g)(e(y).string().min(1, "TIN is required"))
1068
+ rules: e(y)(e(f).string().min(1, "TIN is required"))
1069
1069
  }, null, 8, ["modelValue", "rules"])
1070
1070
  ]),
1071
1071
  s("div", Xt, [
1072
1072
  o($, {
1073
- modelValue: e(a).sstNo,
1074
- "onUpdate:modelValue": t[24] || (t[24] = (l) => e(a).sstNo = l),
1073
+ modelValue: e(l).sstNo,
1074
+ "onUpdate:modelValue": t[24] || (t[24] = (a) => e(l).sstNo = a),
1075
1075
  label: "SST Registration No (SST)",
1076
1076
  placeholder: "Enter your SST number",
1077
1077
  "label-mark": "optional"
@@ -1080,123 +1080,123 @@ const mt = {
1080
1080
  ]),
1081
1081
  t[53] || (t[53] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
1082
1082
  s("div", Zt, [
1083
- o(me, {
1084
- modelValue: e(a).bankName,
1085
- "onUpdate:modelValue": t[25] || (t[25] = (l) => e(a).bankName = l),
1083
+ o(pe, {
1084
+ modelValue: e(l).bankName,
1085
+ "onUpdate:modelValue": t[25] || (t[25] = (a) => e(l).bankName = a),
1086
1086
  label: "Bank",
1087
1087
  placeholder: "Select bank type",
1088
1088
  "label-mark": "required",
1089
- rules: e(g)(e(y).string().min(1, "Bank Type is required")),
1090
- items: e(Ue).bankNameOptions()
1089
+ rules: e(y)(e(f).string().min(1, "Bank Type is required")),
1090
+ items: e(Fe).bankNameOptions()
1091
1091
  }, null, 8, ["modelValue", "rules", "items"]),
1092
1092
  o($, {
1093
- modelValue: e(a).bankHolderName,
1094
- "onUpdate:modelValue": t[26] || (t[26] = (l) => e(a).bankHolderName = l),
1093
+ modelValue: e(l).bankHolderName,
1094
+ "onUpdate:modelValue": t[26] || (t[26] = (a) => e(l).bankHolderName = a),
1095
1095
  label: "Beneficiary Name",
1096
1096
  placeholder: "Enter Beneficiary Name",
1097
1097
  "label-mark": "required",
1098
- rules: e(g)(e(y).string().min(1, "Beneficiary Name is required"))
1098
+ rules: e(y)(e(f).string().min(1, "Beneficiary Name is required"))
1099
1099
  }, null, 8, ["modelValue", "rules"]),
1100
1100
  o($, {
1101
- modelValue: e(a).bankAccountNo,
1102
- "onUpdate:modelValue": t[27] || (t[27] = (l) => e(a).bankAccountNo = l),
1101
+ modelValue: e(l).bankAccountNo,
1102
+ "onUpdate:modelValue": t[27] || (t[27] = (a) => e(l).bankAccountNo = a),
1103
1103
  label: "Account Number",
1104
1104
  placeholder: "Enter Account Number",
1105
1105
  "label-mark": "required",
1106
- rules: e(g)(e(y).string().min(1, "Account Number is required"))
1106
+ rules: e(y)(e(f).string().min(1, "Account Number is required"))
1107
1107
  }, null, 8, ["modelValue", "rules"])
1108
1108
  ]),
1109
1109
  t[54] || (t[54] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1110
1110
  t[55] || (t[55] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 1. All Directors/Owner ICs ", -1)),
1111
1111
  s("div", el, [
1112
- o(T, {
1112
+ o(D, {
1113
1113
  label: "Authorized Person ID",
1114
1114
  modelValue: e(r).authorizedPersonID,
1115
- "onUpdate:modelValue": t[28] || (t[28] = (l) => e(r).authorizedPersonID = l),
1115
+ "onUpdate:modelValue": t[28] || (t[28] = (a) => e(r).authorizedPersonID = a),
1116
1116
  type: "image",
1117
1117
  "restaurant-id": d.submission.restaurantId
1118
1118
  }, null, 8, ["modelValue", "restaurant-id"]),
1119
- (i(!0), p(A, null, O(z.value, (l) => (i(), L(T, {
1120
- key: l,
1121
- label: `Authorized Person ID ${l.replace("authorizedPersonID", "")}`,
1122
- modelValue: e(r)[l],
1123
- "onUpdate:modelValue": (Y) => e(r)[l] = Y,
1119
+ (i(!0), p(L, null, O(W.value, (a) => (i(), _(D, {
1120
+ key: a,
1121
+ label: `Authorized Person ID ${a.replace("authorizedPersonID", "")}`,
1122
+ modelValue: e(r)[a],
1123
+ "onUpdate:modelValue": (Q) => e(r)[a] = Q,
1124
1124
  type: "image",
1125
1125
  "restaurant-id": d.submission.restaurantId
1126
1126
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
1127
1127
  ]),
1128
1128
  t[56] || (t[56] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-6" }, " Section 2. Business Information ", -1)),
1129
1129
  s("div", tl, [
1130
- e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (i(), L(T, {
1130
+ e(l).businessType === "private_limited" || e(l).businessType === "public_limited" ? (i(), _(D, {
1131
1131
  key: 0,
1132
1132
  label: "Superform",
1133
1133
  type: "pdf",
1134
1134
  modelValue: e(r).certificate,
1135
- "onUpdate:modelValue": t[29] || (t[29] = (l) => e(r).certificate = l),
1135
+ "onUpdate:modelValue": t[29] || (t[29] = (a) => e(r).certificate = a),
1136
1136
  "restaurant-id": d.submission.restaurantId
1137
1137
  }, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
1138
- e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (i(), L(T, {
1138
+ e(l).businessType === "sole_proprietorship" || e(l).businessType === "partnership" ? (i(), _(D, {
1139
1139
  key: 1,
1140
1140
  label: "Business Registration Document",
1141
1141
  type: "pdf",
1142
1142
  modelValue: e(r).certificate,
1143
- "onUpdate:modelValue": t[30] || (t[30] = (l) => e(r).certificate = l),
1143
+ "onUpdate:modelValue": t[30] || (t[30] = (a) => e(r).certificate = a),
1144
1144
  "restaurant-id": d.submission.restaurantId
1145
1145
  }, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
1146
- e(r).interiorPhoto ? (i(), L(T, {
1146
+ e(r).interiorPhoto ? (i(), _(D, {
1147
1147
  key: 2,
1148
1148
  label: "Interior Photo",
1149
1149
  modelValue: e(r).interiorPhoto,
1150
- "onUpdate:modelValue": t[31] || (t[31] = (l) => e(r).interiorPhoto = l),
1150
+ "onUpdate:modelValue": t[31] || (t[31] = (a) => e(r).interiorPhoto = a),
1151
1151
  type: "image",
1152
1152
  "restaurant-id": d.submission.restaurantId
1153
1153
  }, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
1154
- o(T, {
1154
+ o(D, {
1155
1155
  label: "Outlet Photo",
1156
1156
  modelValue: e(r).outletPhoto,
1157
- "onUpdate:modelValue": t[32] || (t[32] = (l) => e(r).outletPhoto = l),
1157
+ "onUpdate:modelValue": t[32] || (t[32] = (a) => e(r).outletPhoto = a),
1158
1158
  type: "image-or-pdf",
1159
1159
  "restaurant-id": d.submission.restaurantId
1160
1160
  }, null, 8, ["modelValue", "restaurant-id"])
1161
1161
  ]),
1162
1162
  t[57] || (t[57] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 3. Payout Information ", -1)),
1163
1163
  s("div", ll, [
1164
- o(T, {
1164
+ o(D, {
1165
1165
  label: "Latest Bank Statement",
1166
1166
  modelValue: e(r).bankStatement,
1167
- "onUpdate:modelValue": t[33] || (t[33] = (l) => e(r).bankStatement = l),
1167
+ "onUpdate:modelValue": t[33] || (t[33] = (a) => e(r).bankStatement = a),
1168
1168
  type: "pdf",
1169
1169
  "restaurant-id": d.submission.restaurantId
1170
1170
  }, null, 8, ["modelValue", "restaurant-id"])
1171
1171
  ]),
1172
1172
  t[58] || (t[58] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 4. Site Photos ", -1)),
1173
1173
  s("div", al, [
1174
- (i(!0), p(A, null, O([1, 2, 3, 4, 5].filter(
1175
- (l) => !!e(r)[`onsitePhoto${l}`]
1176
- ), (l) => (i(), L(T, {
1177
- key: l,
1178
- label: e($e)[l - 1],
1179
- modelValue: e(r)[`onsitePhoto${l}`],
1180
- "onUpdate:modelValue": (Y) => e(r)[`onsitePhoto${l}`] = Y,
1174
+ (i(!0), p(L, null, O([1, 2, 3, 4, 5].filter(
1175
+ (a) => !!e(r)[`onsitePhoto${a}`]
1176
+ ), (a) => (i(), _(D, {
1177
+ key: a,
1178
+ label: e($e)[a - 1],
1179
+ modelValue: e(r)[`onsitePhoto${a}`],
1180
+ "onUpdate:modelValue": (Q) => e(r)[`onsitePhoto${a}`] = Q,
1181
1181
  type: "image",
1182
1182
  "restaurant-id": d.submission.restaurantId
1183
1183
  }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
1184
1184
  ]),
1185
1185
  t[59] || (t[59] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 5. Additional Documents ", -1)),
1186
1186
  s("div", sl, [
1187
- e(r).liquorLicense ? (i(), L(T, {
1187
+ e(r).liquorLicense ? (i(), _(D, {
1188
1188
  key: 0,
1189
1189
  label: "Liquor License",
1190
1190
  modelValue: e(r).liquorLicense,
1191
- "onUpdate:modelValue": t[34] || (t[34] = (l) => e(r).liquorLicense = l),
1191
+ "onUpdate:modelValue": t[34] || (t[34] = (a) => e(r).liquorLicense = a),
1192
1192
  type: "image-or-pdf",
1193
1193
  "restaurant-id": d.submission.restaurantId
1194
1194
  }, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
1195
- e(r).appendixC ? (i(), L(T, {
1195
+ e(r).appendixC ? (i(), _(D, {
1196
1196
  key: 1,
1197
1197
  label: "Appendix C",
1198
1198
  modelValue: e(r).appendixC,
1199
- "onUpdate:modelValue": t[35] || (t[35] = (l) => e(r).appendixC = l),
1199
+ "onUpdate:modelValue": t[35] || (t[35] = (a) => e(r).appendixC = a),
1200
1200
  type: "pdf",
1201
1201
  "restaurant-id": d.submission.restaurantId
1202
1202
  }, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
@@ -1204,17 +1204,17 @@ const mt = {
1204
1204
  ]),
1205
1205
  t[60] || (t[60] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1206
1206
  s("div", ol, [
1207
- o(Ae, {
1207
+ o(Le, {
1208
1208
  modelValue: e(r).signature,
1209
- "onUpdate:modelValue": t[36] || (t[36] = (l) => e(r).signature = l),
1209
+ "onUpdate:modelValue": t[36] || (t[36] = (a) => e(r).signature = a),
1210
1210
  "restaurant-id": d.submission.restaurantId,
1211
1211
  label: "Signature"
1212
1212
  }, null, 8, ["modelValue", "restaurant-id"]),
1213
- o(T, {
1213
+ o(D, {
1214
1214
  label: "Company Stamp",
1215
1215
  type: "image",
1216
1216
  modelValue: e(r).companyStamp,
1217
- "onUpdate:modelValue": t[37] || (t[37] = (l) => e(r).companyStamp = l),
1217
+ "onUpdate:modelValue": t[37] || (t[37] = (a) => e(r).companyStamp = a),
1218
1218
  "restaurant-id": d.submission.restaurantId
1219
1219
  }, null, 8, ["modelValue", "restaurant-id"])
1220
1220
  ])
@@ -1224,7 +1224,7 @@ const mt = {
1224
1224
  ], 64);
1225
1225
  };
1226
1226
  }
1227
- }), il = { class: "space-y-2" }, ul = { class: "text-gray-900" }, dl = { class: "text-gray-900" }, ml = { class: "text-gray-900" }, pl = { class: "text-gray-900" }, bl = { class: "text-gray-900" }, cl = { class: "text-gray-900" }, gl = { class: "mt-6 grid grid-cols-4 gap-24" }, yl = { class: "w-full flex justify-end mt-6" }, fl = { class: "mt-6 grid grid-cols-4 gap-24" }, vl = { class: "col-span-2" }, Vl = { class: "col-span-2" }, kl = { class: "col-span-2" }, Cl = { class: "col-span-2" }, xl = { class: "mt-6 grid grid-cols-4 gap-24" }, wl = { class: "mt-6 grid grid-cols-4 gap-24" }, Sl = { class: "mt-6 grid grid-cols-4 gap-24" }, Nl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, hl = { class: "col-span-2" }, Rl = { class: "col-span-2" }, Il = { class: "col-span-2" }, ql = { class: "col-span-2" }, Ul = /* @__PURE__ */ J({
1227
+ }), il = { class: "space-y-2" }, ul = { class: "text-gray-900" }, dl = { class: "text-gray-900" }, ml = { class: "text-gray-900" }, pl = { class: "text-gray-900" }, cl = { class: "text-gray-900" }, bl = { class: "text-gray-900" }, gl = { class: "mt-6 grid grid-cols-4 gap-24" }, yl = { class: "w-full flex justify-end mt-6" }, fl = { class: "mt-6 grid grid-cols-4 gap-24" }, vl = { class: "col-span-2" }, Vl = { class: "col-span-2" }, kl = { class: "col-span-2" }, Cl = { class: "col-span-2" }, xl = { class: "mt-6 grid grid-cols-4 gap-24" }, Sl = { class: "mt-6 grid grid-cols-4 gap-24" }, wl = { class: "mt-6 grid grid-cols-4 gap-24" }, Nl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, hl = { class: "col-span-2" }, Il = { class: "col-span-2" }, Rl = { class: "col-span-2" }, ql = { class: "col-span-2" }, Fl = /* @__PURE__ */ G({
1228
1228
  __name: "NTTSubmission",
1229
1229
  props: {
1230
1230
  submission: {
@@ -1233,8 +1233,8 @@ const mt = {
1233
1233
  }
1234
1234
  },
1235
1235
  emits: ["update:submission"],
1236
- setup(d, { emit: v }) {
1237
- const u = d, V = v, b = de(), m = B(!1), { isLoading: f, startAsyncCall: x } = ne(), { fields: a, documents: r, restaurantId: C, profile: c, status: P, statusReason: D } = u.submission, N = B(""), R = [
1236
+ setup(d, { emit: V }) {
1237
+ const u = d, v = V, c = me(), m = B(!1), { isLoading: b, startAsyncCall: C } = ne(), { fields: l, documents: r, restaurantId: x, profile: g, status: I, statusReason: U } = u.submission, N = B(""), q = [
1238
1238
  { key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
1239
1239
  {
1240
1240
  key: "localCardStandard",
@@ -1267,126 +1267,126 @@ const mt = {
1267
1267
  { key: "linePay", label: "LinePay", defaultValue: "2.1" },
1268
1268
  { key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
1269
1269
  ], k = Object.fromEntries(
1270
- R.map((I) => [I.key, I.defaultValue])
1271
- ), S = B(
1270
+ q.map((F) => [F.key, F.defaultValue])
1271
+ ), w = B(
1272
1272
  u.submission.rates ? Object.fromEntries(
1273
- Object.entries(u.submission.rates).map(([I, n]) => [I, `${n}`])
1273
+ Object.entries(u.submission.rates).map(([F, n]) => [F, `${n}`])
1274
1274
  ) : { ...k }
1275
- ), z = j(
1276
- () => Object.values(S.value).every((I) => parseFloat(I) > 0)
1277
- ), K = j(() => a.businessType === "juristic" ? "Juristic" : a.businessType === "individual" ? "Individual" : a.businessType || "-"), X = () => x(async () => {
1275
+ ), W = j(
1276
+ () => Object.values(w.value).every((F) => parseFloat(F) > 0)
1277
+ ), K = j(() => l.businessType === "juristic" ? "Juristic" : l.businessType === "individual" ? "Individual" : l.businessType || "-"), X = () => C(async () => {
1278
1278
  try {
1279
- const I = await H.reviewById(
1279
+ const F = await z.reviewById(
1280
1280
  u.submission._id,
1281
1281
  {
1282
- status: Ve.FdoOnboardStatus.enum.ready
1282
+ status: de.FdoOnboardStatus.enum.ready
1283
1283
  }
1284
1284
  );
1285
- V("update:submission", I), b.open({
1285
+ v("update:submission", F), c.open({
1286
1286
  type: "success",
1287
1287
  title: "Submission marked as ready"
1288
1288
  });
1289
- } catch (I) {
1290
- b.open({
1289
+ } catch (F) {
1290
+ c.open({
1291
1291
  type: "error",
1292
1292
  title: "Error occurs when marking submission as ready",
1293
- message: G(I)
1293
+ message: J(F)
1294
1294
  });
1295
1295
  }
1296
- }), M = () => x(async () => {
1296
+ }), M = () => C(async () => {
1297
1297
  try {
1298
- const I = await H.reviewById(
1298
+ const F = await z.reviewById(
1299
1299
  u.submission._id,
1300
1300
  {
1301
1301
  rates: Object.fromEntries(
1302
- R.map((n) => [
1302
+ q.map((n) => [
1303
1303
  n.key,
1304
- parseFloat(S.value[n.key])
1304
+ parseFloat(w.value[n.key])
1305
1305
  ])
1306
1306
  ),
1307
1307
  status: "approved"
1308
1308
  }
1309
1309
  );
1310
- V("update:submission", I), b.open({
1310
+ v("update:submission", F), c.open({
1311
1311
  type: "success",
1312
1312
  title: "Submission updated successfully"
1313
1313
  });
1314
- } catch (I) {
1315
- b.open({
1314
+ } catch (F) {
1315
+ c.open({
1316
1316
  type: "error",
1317
1317
  title: "Error occurs when updating submission",
1318
- message: G(I)
1318
+ message: J(F)
1319
1319
  });
1320
1320
  }
1321
- }), te = () => x(async () => {
1321
+ }), te = () => C(async () => {
1322
1322
  try {
1323
- const I = await H.reviewById(
1323
+ const F = await z.reviewById(
1324
1324
  u.submission._id,
1325
1325
  {
1326
1326
  status: "rejected",
1327
1327
  statusReason: N.value
1328
1328
  }
1329
1329
  );
1330
- V("update:submission", I), m.value = !1, b.open({
1330
+ v("update:submission", F), m.value = !1, c.open({
1331
1331
  type: "success",
1332
1332
  title: "Submission updated successfully"
1333
1333
  });
1334
- } catch (I) {
1335
- b.open({
1334
+ } catch (F) {
1335
+ c.open({
1336
1336
  type: "error",
1337
1337
  title: "Error occurs when updating submission",
1338
- message: G(I)
1338
+ message: J(F)
1339
1339
  });
1340
1340
  }
1341
1341
  });
1342
- return (I, n) => {
1343
- const F = U("FmTextField"), Z = U("FmButton"), oe = U("FmTextarea"), re = U("FmDialog"), le = U("FmPhoneNumber"), w = U("FmForm");
1344
- return i(), p(A, null, [
1342
+ return (F, n) => {
1343
+ const T = h("FmTextField"), Z = h("FmButton"), oe = h("FmTextarea"), re = h("FmDialog"), le = h("FmPhoneNumber"), S = h("FmForm");
1344
+ return i(), p(L, null, [
1345
1345
  s("div", il, [
1346
1346
  s("div", null, [
1347
1347
  n[31] || (n[31] = s("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
1348
- s("span", ul, q(e(C)), 1)
1348
+ s("span", ul, R(e(x)), 1)
1349
1349
  ]),
1350
1350
  s("div", null, [
1351
1351
  n[32] || (n[32] = s("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
1352
- s("span", dl, q(e(c).name) + " ( " + q(e(c).legalName) + " )", 1)
1352
+ s("span", dl, R(e(g).name) + " ( " + R(e(g).legalName) + " )", 1)
1353
1353
  ]),
1354
1354
  s("div", null, [
1355
1355
  n[33] || (n[33] = s("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
1356
- s("span", ml, q(e(c).email), 1)
1356
+ s("span", ml, R(e(g).email), 1)
1357
1357
  ]),
1358
1358
  s("div", null, [
1359
1359
  n[34] || (n[34] = s("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
1360
- s("span", pl, q(e(c).phoneNo), 1)
1360
+ s("span", pl, R(e(g).phoneNo), 1)
1361
1361
  ]),
1362
1362
  s("div", null, [
1363
1363
  n[35] || (n[35] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
1364
- s("span", bl, [
1365
- o(Ce, { data: e(P) }, null, 8, ["data"])
1364
+ s("span", cl, [
1365
+ o(Ce, { data: e(I) }, null, 8, ["data"])
1366
1366
  ])
1367
1367
  ]),
1368
1368
  s("div", null, [
1369
1369
  n[36] || (n[36] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
1370
- s("span", cl, q(e(D)), 1)
1370
+ s("span", bl, R(e(U)), 1)
1371
1371
  ])
1372
1372
  ]),
1373
1373
  n[43] || (n[43] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
1374
1374
  s("div", gl, [
1375
- (i(), p(A, null, O(R, (t) => o(F, {
1375
+ (i(), p(L, null, O(q, (t) => o(T, {
1376
1376
  key: t.key,
1377
- modelValue: S.value[t.key],
1378
- "onUpdate:modelValue": (_) => S.value[t.key] = _,
1377
+ modelValue: w.value[t.key],
1378
+ "onUpdate:modelValue": (A) => w.value[t.key] = A,
1379
1379
  label: t.label,
1380
1380
  "label-mark": "required",
1381
1381
  type: "number",
1382
1382
  inputmode: "numeric",
1383
1383
  decimal: 2,
1384
- rules: e(g)(
1385
- e(y).string().min(1, "Rate is required").transform((_) => parseFloat(_)).refine((_) => !isNaN(_), { message: "Rate must be a number" })
1384
+ rules: e(y)(
1385
+ e(f).string().min(1, "Rate is required").transform((A) => parseFloat(A)).refine((A) => !isNaN(A), { message: "Rate must be a number" })
1386
1386
  )
1387
1387
  }, {
1388
- append: h(() => [...n[37] || (n[37] = [
1389
- Q("%", -1)
1388
+ append: P(() => [...n[37] || (n[37] = [
1389
+ H("%", -1)
1390
1390
  ])]),
1391
1391
  _: 1
1392
1392
  }, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
@@ -1396,20 +1396,20 @@ const mt = {
1396
1396
  modelValue: m.value,
1397
1397
  "onUpdate:modelValue": n[1] || (n[1] = (t) => m.value = t)
1398
1398
  }, {
1399
- "dialog-button": h(() => [
1399
+ "dialog-button": P(() => [
1400
1400
  o(Z, {
1401
1401
  class: "mr-6",
1402
1402
  type: "button",
1403
1403
  variant: "destructive",
1404
1404
  "prepend-icon": "block",
1405
- loading: e(f),
1405
+ loading: e(b),
1406
1406
  label: "Reject Submission"
1407
1407
  }, null, 8, ["loading"])
1408
1408
  ]),
1409
- "dialog-header": h(() => [...n[38] || (n[38] = [
1409
+ "dialog-header": P(() => [...n[38] || (n[38] = [
1410
1410
  s("div", null, "Rejecting Submission", -1)
1411
1411
  ])]),
1412
- default: h(() => [
1412
+ default: P(() => [
1413
1413
  o(oe, {
1414
1414
  modelValue: N.value,
1415
1415
  "onUpdate:modelValue": n[0] || (n[0] = (t) => N.value = t),
@@ -1422,7 +1422,7 @@ const mt = {
1422
1422
  label: "Submit",
1423
1423
  "prepend-icon": "save",
1424
1424
  onClick: te,
1425
- loading: e(f)
1425
+ loading: e(b)
1426
1426
  }, null, 8, ["loading"])
1427
1427
  ]),
1428
1428
  _: 1
@@ -1432,11 +1432,11 @@ const mt = {
1432
1432
  variant: "primary",
1433
1433
  "prepend-icon": "approval",
1434
1434
  label: "Approve Submission with Rates",
1435
- disabled: !z.value,
1435
+ disabled: !W.value,
1436
1436
  onClick: M,
1437
- loading: e(f)
1437
+ loading: e(b)
1438
1438
  }, null, 8, ["disabled", "loading"]),
1439
- e(P) === "approved" ? (i(), L(Z, {
1439
+ e(I) === "approved" ? (i(), _(Z, {
1440
1440
  key: 0,
1441
1441
  type: "button",
1442
1442
  variant: "secondary",
@@ -1444,151 +1444,151 @@ const mt = {
1444
1444
  label: "Mark as Ready",
1445
1445
  class: "ml-6",
1446
1446
  onClick: X,
1447
- loading: e(f)
1447
+ loading: e(b)
1448
1448
  }, null, 8, ["loading"])) : E("", !0)
1449
1449
  ]),
1450
- o(w, { disabled: !0 }, {
1451
- default: h(() => [
1450
+ o(S, { disabled: !0 }, {
1451
+ default: P(() => [
1452
1452
  n[39] || (n[39] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
1453
1453
  s("div", fl, [
1454
1454
  s("div", vl, [
1455
- o(F, {
1456
- modelValue: e(a).companyName,
1457
- "onUpdate:modelValue": n[2] || (n[2] = (t) => e(a).companyName = t),
1455
+ o(T, {
1456
+ modelValue: e(l).companyName,
1457
+ "onUpdate:modelValue": n[2] || (n[2] = (t) => e(l).companyName = t),
1458
1458
  label: "Company Name",
1459
1459
  "label-mark": "required",
1460
- rules: e(g)(e(y).string().min(1, "Company Name is required"))
1460
+ rules: e(y)(e(f).string().min(1, "Company Name is required"))
1461
1461
  }, null, 8, ["modelValue", "rules"])
1462
1462
  ]),
1463
1463
  s("div", Vl, [
1464
- o(F, {
1465
- modelValue: e(a).outletName,
1466
- "onUpdate:modelValue": n[3] || (n[3] = (t) => e(a).outletName = t),
1464
+ o(T, {
1465
+ modelValue: e(l).outletName,
1466
+ "onUpdate:modelValue": n[3] || (n[3] = (t) => e(l).outletName = t),
1467
1467
  label: "Outlet Name (Thai)",
1468
1468
  "label-mark": "required",
1469
- rules: e(g)(e(y).string().min(1, "Outlet Name is required"))
1469
+ rules: e(y)(e(f).string().min(1, "Outlet Name is required"))
1470
1470
  }, null, 8, ["modelValue", "rules"])
1471
1471
  ]),
1472
1472
  s("div", kl, [
1473
- o(F, {
1474
- modelValue: e(a).outletNameEnglish,
1475
- "onUpdate:modelValue": n[4] || (n[4] = (t) => e(a).outletNameEnglish = t),
1473
+ o(T, {
1474
+ modelValue: e(l).outletNameEnglish,
1475
+ "onUpdate:modelValue": n[4] || (n[4] = (t) => e(l).outletNameEnglish = t),
1476
1476
  label: "Outlet Name (English)",
1477
1477
  "label-mark": "required",
1478
- rules: e(g)(e(y).string().min(1, "Outlet Name English is required"))
1478
+ rules: e(y)(e(f).string().min(1, "Outlet Name English is required"))
1479
1479
  }, null, 8, ["modelValue", "rules"])
1480
1480
  ]),
1481
1481
  s("div", Cl, [
1482
- o(F, {
1483
- modelValue: e(a).outletAddress,
1484
- "onUpdate:modelValue": n[5] || (n[5] = (t) => e(a).outletAddress = t),
1482
+ o(T, {
1483
+ modelValue: e(l).outletAddress,
1484
+ "onUpdate:modelValue": n[5] || (n[5] = (t) => e(l).outletAddress = t),
1485
1485
  label: "Outlet Address",
1486
1486
  "label-mark": "required",
1487
- rules: e(g)(e(y).string().min(1, "Outlet Address is required"))
1487
+ rules: e(y)(e(f).string().min(1, "Outlet Address is required"))
1488
1488
  }, null, 8, ["modelValue", "rules"])
1489
1489
  ]),
1490
- o(F, {
1491
- modelValue: e(a).outletPostCode,
1492
- "onUpdate:modelValue": n[6] || (n[6] = (t) => e(a).outletPostCode = t),
1490
+ o(T, {
1491
+ modelValue: e(l).outletPostCode,
1492
+ "onUpdate:modelValue": n[6] || (n[6] = (t) => e(l).outletPostCode = t),
1493
1493
  label: "Post Code",
1494
1494
  "label-mark": "required",
1495
- rules: e(g)(e(y).string().min(1, "Post Code is required"))
1495
+ rules: e(y)(e(f).string().min(1, "Post Code is required"))
1496
1496
  }, null, 8, ["modelValue", "rules"]),
1497
- o(F, {
1498
- modelValue: e(a).outletState,
1499
- "onUpdate:modelValue": n[7] || (n[7] = (t) => e(a).outletState = t),
1497
+ o(T, {
1498
+ modelValue: e(l).outletState,
1499
+ "onUpdate:modelValue": n[7] || (n[7] = (t) => e(l).outletState = t),
1500
1500
  label: "State",
1501
1501
  "label-mark": "required",
1502
- rules: e(g)(e(y).string().min(1, "State is required"))
1502
+ rules: e(y)(e(f).string().min(1, "State is required"))
1503
1503
  }, null, 8, ["modelValue", "rules"]),
1504
- o(F, {
1505
- modelValue: e(a).outletCity,
1506
- "onUpdate:modelValue": n[8] || (n[8] = (t) => e(a).outletCity = t),
1504
+ o(T, {
1505
+ modelValue: e(l).outletCity,
1506
+ "onUpdate:modelValue": n[8] || (n[8] = (t) => e(l).outletCity = t),
1507
1507
  label: "City",
1508
1508
  "label-mark": "required",
1509
- rules: e(g)(e(y).string().min(1, "City is required"))
1509
+ rules: e(y)(e(f).string().min(1, "City is required"))
1510
1510
  }, null, 8, ["modelValue", "rules"]),
1511
- o(F, {
1511
+ o(T, {
1512
1512
  "model-value": K.value,
1513
1513
  label: "Business Type",
1514
1514
  "label-mark": "required"
1515
1515
  }, null, 8, ["model-value"]),
1516
- o(F, {
1517
- modelValue: e(a).numberOfDevices,
1518
- "onUpdate:modelValue": n[9] || (n[9] = (t) => e(a).numberOfDevices = t),
1516
+ o(T, {
1517
+ modelValue: e(l).numberOfDevices,
1518
+ "onUpdate:modelValue": n[9] || (n[9] = (t) => e(l).numberOfDevices = t),
1519
1519
  label: "Number of Devices",
1520
1520
  "label-mark": "required"
1521
1521
  }, null, 8, ["modelValue"])
1522
1522
  ]),
1523
1523
  n[40] || (n[40] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
1524
1524
  s("div", xl, [
1525
- o(F, {
1526
- modelValue: e(a).bankName,
1527
- "onUpdate:modelValue": n[10] || (n[10] = (t) => e(a).bankName = t),
1525
+ o(T, {
1526
+ modelValue: e(l).bankName,
1527
+ "onUpdate:modelValue": n[10] || (n[10] = (t) => e(l).bankName = t),
1528
1528
  label: "Bank Name",
1529
1529
  "label-mark": "required",
1530
- rules: e(g)(e(y).string().min(1, "Bank Name is required"))
1530
+ rules: e(y)(e(f).string().min(1, "Bank Name is required"))
1531
1531
  }, null, 8, ["modelValue", "rules"]),
1532
- o(F, {
1533
- modelValue: e(a).bankHolderName,
1534
- "onUpdate:modelValue": n[11] || (n[11] = (t) => e(a).bankHolderName = t),
1532
+ o(T, {
1533
+ modelValue: e(l).bankHolderName,
1534
+ "onUpdate:modelValue": n[11] || (n[11] = (t) => e(l).bankHolderName = t),
1535
1535
  label: "Bank Holder Name",
1536
1536
  "label-mark": "required",
1537
- rules: e(g)(e(y).string().min(1, "Bank Holder Name is required"))
1537
+ rules: e(y)(e(f).string().min(1, "Bank Holder Name is required"))
1538
1538
  }, null, 8, ["modelValue", "rules"]),
1539
- o(F, {
1540
- modelValue: e(a).bankAccountNo,
1541
- "onUpdate:modelValue": n[12] || (n[12] = (t) => e(a).bankAccountNo = t),
1539
+ o(T, {
1540
+ modelValue: e(l).bankAccountNo,
1541
+ "onUpdate:modelValue": n[12] || (n[12] = (t) => e(l).bankAccountNo = t),
1542
1542
  label: "Bank Account No",
1543
1543
  "label-mark": "required",
1544
- rules: e(g)(e(y).string().min(1, "Bank Account No is required"))
1544
+ rules: e(y)(e(f).string().min(1, "Bank Account No is required"))
1545
1545
  }, null, 8, ["modelValue", "rules"]),
1546
- o(F, {
1547
- modelValue: e(a).bankBranch,
1548
- "onUpdate:modelValue": n[13] || (n[13] = (t) => e(a).bankBranch = t),
1546
+ o(T, {
1547
+ modelValue: e(l).bankBranch,
1548
+ "onUpdate:modelValue": n[13] || (n[13] = (t) => e(l).bankBranch = t),
1549
1549
  label: "Bank Branch",
1550
1550
  "label-mark": "required",
1551
- rules: e(g)(e(y).string().min(1, "Bank Branch is required"))
1551
+ rules: e(y)(e(f).string().min(1, "Bank Branch is required"))
1552
1552
  }, null, 8, ["modelValue", "rules"]),
1553
- o(F, {
1554
- modelValue: e(a).bankBranchCode,
1555
- "onUpdate:modelValue": n[14] || (n[14] = (t) => e(a).bankBranchCode = t),
1553
+ o(T, {
1554
+ modelValue: e(l).bankBranchCode,
1555
+ "onUpdate:modelValue": n[14] || (n[14] = (t) => e(l).bankBranchCode = t),
1556
1556
  label: "Bank Branch Code",
1557
1557
  "label-mark": "required",
1558
- rules: e(g)(e(y).string().min(1, "Bank Branch Code is required"))
1558
+ rules: e(y)(e(f).string().min(1, "Bank Branch Code is required"))
1559
1559
  }, null, 8, ["modelValue", "rules"])
1560
1560
  ]),
1561
1561
  n[41] || (n[41] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1562
- s("div", wl, [
1563
- o(T, {
1562
+ s("div", Sl, [
1563
+ o(D, {
1564
1564
  label: "Authorized Person ID",
1565
1565
  modelValue: e(r).authorizedPersonID,
1566
1566
  "onUpdate:modelValue": n[15] || (n[15] = (t) => e(r).authorizedPersonID = t),
1567
1567
  type: "image",
1568
1568
  "restaurant-id": d.submission.restaurantId
1569
1569
  }, null, 8, ["modelValue", "restaurant-id"]),
1570
- o(T, {
1570
+ o(D, {
1571
1571
  label: "Outlet Photo",
1572
1572
  modelValue: e(r).outletPhoto,
1573
1573
  "onUpdate:modelValue": n[16] || (n[16] = (t) => e(r).outletPhoto = t),
1574
1574
  type: "image",
1575
1575
  "restaurant-id": d.submission.restaurantId
1576
1576
  }, null, 8, ["modelValue", "restaurant-id"]),
1577
- o(T, {
1577
+ o(D, {
1578
1578
  label: "Interior Photo",
1579
1579
  modelValue: e(r).interiorPhoto,
1580
1580
  "onUpdate:modelValue": n[17] || (n[17] = (t) => e(r).interiorPhoto = t),
1581
1581
  type: "image",
1582
1582
  "restaurant-id": d.submission.restaurantId
1583
1583
  }, null, 8, ["modelValue", "restaurant-id"]),
1584
- o(T, {
1584
+ o(D, {
1585
1585
  label: "Bank Statement",
1586
1586
  modelValue: e(r).bankStatement,
1587
1587
  "onUpdate:modelValue": n[18] || (n[18] = (t) => e(r).bankStatement = t),
1588
1588
  type: "pdf",
1589
1589
  "restaurant-id": d.submission.restaurantId
1590
1590
  }, null, 8, ["modelValue", "restaurant-id"]),
1591
- e(a).businessType === "juristic" ? (i(), L(T, {
1591
+ e(l).businessType === "juristic" ? (i(), _(D, {
1592
1592
  key: 0,
1593
1593
  label: "Company Certificate",
1594
1594
  type: "pdf",
@@ -1596,7 +1596,7 @@ const mt = {
1596
1596
  "onUpdate:modelValue": n[19] || (n[19] = (t) => e(r).companyCertificate = t),
1597
1597
  "restaurant-id": d.submission.restaurantId
1598
1598
  }, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
1599
- e(a).businessType === "juristic" ? (i(), L(T, {
1599
+ e(l).businessType === "juristic" ? (i(), _(D, {
1600
1600
  key: 1,
1601
1601
  label: "VAT Certificate",
1602
1602
  type: "pdf",
@@ -1604,7 +1604,7 @@ const mt = {
1604
1604
  "onUpdate:modelValue": n[20] || (n[20] = (t) => e(r).vatCertificate = t),
1605
1605
  "restaurant-id": d.submission.restaurantId
1606
1606
  }, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
1607
- e(a).businessType === "individual" ? (i(), L(T, {
1607
+ e(l).businessType === "individual" ? (i(), _(D, {
1608
1608
  key: 2,
1609
1609
  label: "Commercial Certificate",
1610
1610
  type: "pdf",
@@ -1614,77 +1614,77 @@ const mt = {
1614
1614
  }, null, 8, ["modelValue", "restaurant-id"])) : E("", !0)
1615
1615
  ]),
1616
1616
  n[42] || (n[42] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1617
- s("div", Sl, [
1617
+ s("div", wl, [
1618
1618
  s("div", Nl, [
1619
- o(F, {
1620
- modelValue: e(a).picName,
1621
- "onUpdate:modelValue": n[22] || (n[22] = (t) => e(a).picName = t),
1619
+ o(T, {
1620
+ modelValue: e(l).picName,
1621
+ "onUpdate:modelValue": n[22] || (n[22] = (t) => e(l).picName = t),
1622
1622
  label: "PIC Name",
1623
1623
  "label-mark": "required",
1624
- rules: e(g)(e(y).string().min(1, "PIC Name is required"))
1624
+ rules: e(y)(e(f).string().min(1, "PIC Name is required"))
1625
1625
  }, null, 8, ["modelValue", "rules"])
1626
1626
  ]),
1627
1627
  s("div", Pl, [
1628
- o(F, {
1629
- modelValue: e(a).picRole,
1630
- "onUpdate:modelValue": n[23] || (n[23] = (t) => e(a).picRole = t),
1628
+ o(T, {
1629
+ modelValue: e(l).picRole,
1630
+ "onUpdate:modelValue": n[23] || (n[23] = (t) => e(l).picRole = t),
1631
1631
  label: "PIC Role",
1632
1632
  "label-mark": "required",
1633
- rules: e(g)(e(y).string().min(1, "PIC Role is required"))
1633
+ rules: e(y)(e(f).string().min(1, "PIC Role is required"))
1634
1634
  }, null, 8, ["modelValue", "rules"])
1635
1635
  ]),
1636
1636
  s("div", hl, [
1637
- o(F, {
1638
- modelValue: e(a).picEmail,
1639
- "onUpdate:modelValue": n[24] || (n[24] = (t) => e(a).picEmail = t),
1637
+ o(T, {
1638
+ modelValue: e(l).picEmail,
1639
+ "onUpdate:modelValue": n[24] || (n[24] = (t) => e(l).picEmail = t),
1640
1640
  label: "PIC Email",
1641
1641
  "label-mark": "required",
1642
- rules: e(g)(e(y).string().min(1, "PIC Email is required"))
1642
+ rules: e(y)(e(f).string().min(1, "PIC Email is required"))
1643
1643
  }, null, 8, ["modelValue", "rules"])
1644
1644
  ]),
1645
- s("div", Rl, [
1645
+ s("div", Il, [
1646
1646
  o(le, {
1647
- "model-value": e(a).picContact,
1648
- "onUpdate:modelValue": n[25] || (n[25] = (t) => e(a).picContact = t),
1647
+ "model-value": e(l).picContact,
1648
+ "onUpdate:modelValue": n[25] || (n[25] = (t) => e(l).picContact = t),
1649
1649
  "default-country": "TH",
1650
1650
  label: "PIC Contact",
1651
1651
  "label-mark": "required",
1652
- rules: e(g)(e(y).string().min(1, "PIC Contact is required"))
1652
+ rules: e(y)(e(f).string().min(1, "PIC Contact is required"))
1653
1653
  }, null, 8, ["model-value", "rules"])
1654
1654
  ]),
1655
- s("div", Il, [
1656
- o(F, {
1657
- modelValue: e(a).witnessName,
1658
- "onUpdate:modelValue": n[26] || (n[26] = (t) => e(a).witnessName = t),
1655
+ s("div", Rl, [
1656
+ o(T, {
1657
+ modelValue: e(l).witnessName,
1658
+ "onUpdate:modelValue": n[26] || (n[26] = (t) => e(l).witnessName = t),
1659
1659
  label: "Witness Name",
1660
1660
  "label-mark": "required",
1661
- rules: e(g)(e(y).string().min(1, "Witness Name is required"))
1661
+ rules: e(y)(e(f).string().min(1, "Witness Name is required"))
1662
1662
  }, null, 8, ["modelValue", "rules"])
1663
1663
  ]),
1664
1664
  s("div", ql, [
1665
- o(F, {
1666
- modelValue: e(a).witnessRole,
1667
- "onUpdate:modelValue": n[27] || (n[27] = (t) => e(a).witnessRole = t),
1665
+ o(T, {
1666
+ modelValue: e(l).witnessRole,
1667
+ "onUpdate:modelValue": n[27] || (n[27] = (t) => e(l).witnessRole = t),
1668
1668
  label: "Witness Role",
1669
1669
  "label-mark": "required",
1670
- rules: e(g)(e(y).string().min(1, "Witness Role is required"))
1670
+ rules: e(y)(e(f).string().min(1, "Witness Role is required"))
1671
1671
  }, null, 8, ["modelValue", "rules"])
1672
1672
  ]),
1673
- o(T, {
1673
+ o(D, {
1674
1674
  label: "Signature",
1675
1675
  type: "image",
1676
1676
  modelValue: e(r).signature,
1677
1677
  "onUpdate:modelValue": n[28] || (n[28] = (t) => e(r).signature = t),
1678
1678
  "restaurant-id": d.submission.restaurantId
1679
1679
  }, null, 8, ["modelValue", "restaurant-id"]),
1680
- o(T, {
1680
+ o(D, {
1681
1681
  label: "Witness Signature",
1682
1682
  type: "image",
1683
1683
  modelValue: e(r).witnessSignature,
1684
1684
  "onUpdate:modelValue": n[29] || (n[29] = (t) => e(r).witnessSignature = t),
1685
1685
  "restaurant-id": d.submission.restaurantId
1686
1686
  }, null, 8, ["modelValue", "restaurant-id"]),
1687
- o(T, {
1687
+ o(D, {
1688
1688
  label: "Company Stamp",
1689
1689
  type: "image",
1690
1690
  modelValue: e(r).companyStamp,
@@ -1698,7 +1698,7 @@ const mt = {
1698
1698
  ], 64);
1699
1699
  };
1700
1700
  }
1701
- }), $l = /* @__PURE__ */ J({
1701
+ }), $l = /* @__PURE__ */ G({
1702
1702
  __name: "TyroSubmission",
1703
1703
  props: {
1704
1704
  submission: {
@@ -1708,49 +1708,49 @@ const mt = {
1708
1708
  },
1709
1709
  emits: ["update:submission"],
1710
1710
  setup(d) {
1711
- const v = d, u = j(() => {
1712
- const V = v.submission.fields || {}, b = (m) => V[m] || "N/A";
1711
+ const V = d, u = j(() => {
1712
+ const v = V.submission.fields || {}, c = (m) => v[m] || "N/A";
1713
1713
  return [
1714
1714
  {
1715
1715
  label: "Tyro POS Reference ID",
1716
- value: b("tyroPosReference")
1716
+ value: c("tyroPosReference")
1717
1717
  },
1718
1718
  {
1719
1719
  label: "Tyro Merchant ID",
1720
- value: b("tyroMerchantId")
1720
+ value: c("tyroMerchantId")
1721
1721
  },
1722
1722
  {
1723
1723
  label: "Tyro Merchant Name",
1724
- value: b("tyroMerchantDisplayName")
1724
+ value: c("tyroMerchantDisplayName")
1725
1725
  },
1726
1726
  {
1727
1727
  label: "Authorised",
1728
- value: b("tyroIsAuthorised")
1728
+ value: c("tyroIsAuthorised")
1729
1729
  }
1730
1730
  ];
1731
1731
  });
1732
- return (V, b) => {
1733
- const m = U("FmCardHeader"), f = U("FmCardSection"), x = U("FmCard");
1734
- return i(), L(x, {
1732
+ return (v, c) => {
1733
+ const m = h("FmCardHeader"), b = h("FmCardSection"), C = h("FmCard");
1734
+ return i(), _(C, {
1735
1735
  class: "max-w-3xl mt-8 p-6",
1736
1736
  variant: "elevated"
1737
1737
  }, {
1738
- default: h(() => [
1739
- o(f, { class: "flex flex-col gap-16 justify-between" }, {
1740
- default: h(() => [
1738
+ default: P(() => [
1739
+ o(b, { class: "flex flex-col gap-16 justify-between" }, {
1740
+ default: P(() => [
1741
1741
  o(m, {
1742
1742
  class: "p-0",
1743
1743
  title: "Tyro Authorisation",
1744
1744
  subtitle: ""
1745
1745
  }),
1746
- o(f, { class: "p-0" }, {
1747
- default: h(() => [
1748
- (i(!0), p(A, null, O(u.value, (a) => (i(), p("p", {
1749
- key: a.label,
1746
+ o(b, { class: "p-0" }, {
1747
+ default: P(() => [
1748
+ (i(!0), p(L, null, O(u.value, (l) => (i(), p("p", {
1749
+ key: l.label,
1750
1750
  class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
1751
1751
  }, [
1752
- s("b", null, q(a.label), 1),
1753
- Q(": " + q(a.value), 1)
1752
+ s("b", null, R(l.label), 1),
1753
+ H(": " + R(l.value), 1)
1754
1754
  ]))), 128))
1755
1755
  ]),
1756
1756
  _: 1
@@ -1763,10 +1763,71 @@ const mt = {
1763
1763
  });
1764
1764
  };
1765
1765
  }
1766
- }), Dl = {
1766
+ }), Ul = /* @__PURE__ */ G({
1767
+ __name: "TeyaSubmission",
1768
+ props: {
1769
+ submission: {
1770
+ type: Object,
1771
+ required: !0
1772
+ }
1773
+ },
1774
+ emits: ["update:submission"],
1775
+ setup(d) {
1776
+ const V = d, u = j(() => {
1777
+ const v = V.submission.fields || {}, c = (m) => v[m] || "N/A";
1778
+ return [
1779
+ {
1780
+ label: "Teya Store ID",
1781
+ value: c("teyaStoreId")
1782
+ },
1783
+ {
1784
+ label: "Teya Store Name",
1785
+ value: c("teyaStoreName")
1786
+ },
1787
+ {
1788
+ label: "Connected At",
1789
+ value: c("teyaConnectedAt")
1790
+ }
1791
+ ];
1792
+ });
1793
+ return (v, c) => {
1794
+ const m = h("FmCardHeader"), b = h("FmCardSection"), C = h("FmCard");
1795
+ return i(), _(C, {
1796
+ class: "max-w-3xl mt-8 p-6",
1797
+ variant: "elevated"
1798
+ }, {
1799
+ default: P(() => [
1800
+ o(b, { class: "flex flex-col gap-16 justify-between" }, {
1801
+ default: P(() => [
1802
+ o(m, {
1803
+ class: "p-0",
1804
+ title: "Teya Connection",
1805
+ subtitle: ""
1806
+ }),
1807
+ o(b, { class: "p-0" }, {
1808
+ default: P(() => [
1809
+ (i(!0), p(L, null, O(u.value, (l) => (i(), p("p", {
1810
+ key: l.label,
1811
+ class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
1812
+ }, [
1813
+ s("b", null, R(l.label), 1),
1814
+ H(": " + R(l.value), 1)
1815
+ ]))), 128))
1816
+ ]),
1817
+ _: 1
1818
+ })
1819
+ ]),
1820
+ _: 1
1821
+ })
1822
+ ]),
1823
+ _: 1
1824
+ });
1825
+ };
1826
+ }
1827
+ }), Tl = {
1767
1828
  key: 0,
1768
1829
  class: "flex items-center justify-center min-h-[80vh]"
1769
- }, Fl = { class: "px-32 pb-32" }, Ql = /* @__PURE__ */ J({
1830
+ }, Dl = { class: "px-32 pb-32" }, Gl = /* @__PURE__ */ G({
1770
1831
  __name: "OnboardForm",
1771
1832
  props: {
1772
1833
  submissionId: {
@@ -1775,92 +1836,94 @@ const mt = {
1775
1836
  }
1776
1837
  },
1777
1838
  setup(d) {
1778
- const { startAsyncCall: v, isLoading: u } = ne(), V = de(), b = d, m = Ie(), f = B(null), x = j(
1839
+ const { startAsyncCall: V, isLoading: u } = ne(), v = me(), c = d, m = Re(), b = B(null), C = j(
1779
1840
  () => {
1780
- var D;
1781
- return ((D = f.value) == null ? void 0 : D.type) === Ve.FdoOnboardType.enum.tyro;
1841
+ var U, N;
1842
+ return ((U = b.value) == null ? void 0 : U.type) === de.FdoOnboardType.enum.tyro || ((N = b.value) == null ? void 0 : N.type) === de.FdoOnboardType.enum.teya;
1782
1843
  }
1783
- ), a = () => {
1844
+ ), l = () => {
1784
1845
  if (window.history.length > 1) {
1785
1846
  m.back();
1786
1847
  return;
1787
1848
  }
1788
1849
  m.push({ name: "mf-payment-admin.onboard-submission" });
1789
1850
  };
1790
- ve(() => {
1791
- v(async () => {
1792
- f.value = await H.readById(b.submissionId);
1851
+ Ve(() => {
1852
+ V(async () => {
1853
+ b.value = await z.readById(c.submissionId);
1793
1854
  });
1794
1855
  });
1795
1856
  const r = j(() => {
1796
- if (!f.value) return null;
1797
- switch (f.value.type) {
1857
+ if (!b.value) return null;
1858
+ switch (b.value.type) {
1798
1859
  case "softspace":
1799
1860
  return rl;
1800
1861
  case "ntt":
1801
- return Ul;
1862
+ return Fl;
1802
1863
  case "tyro":
1803
1864
  return $l;
1865
+ case "teya":
1866
+ return Ul;
1804
1867
  default:
1805
1868
  return null;
1806
1869
  }
1807
- }), C = B(0);
1808
- function c(D) {
1809
- f.value = D, C.value = Date.now();
1870
+ }), x = B(0);
1871
+ function g(U) {
1872
+ b.value = U, x.value = Date.now();
1810
1873
  }
1811
- const P = async (D) => {
1812
- var N, R;
1813
- if (f.value)
1814
- switch (D) {
1874
+ const I = async (U) => {
1875
+ var N, q;
1876
+ if (b.value)
1877
+ switch (U) {
1815
1878
  case "preview":
1816
1879
  let k;
1817
1880
  try {
1818
- k = V.open({
1881
+ k = v.open({
1819
1882
  message: "Generating preview document...",
1820
1883
  type: "info"
1821
- }), await H.previewDocument((N = f.value) == null ? void 0 : N._id);
1822
- } catch (S) {
1823
- V.open({
1884
+ }), await z.previewDocument((N = b.value) == null ? void 0 : N._id);
1885
+ } catch (w) {
1886
+ v.open({
1824
1887
  type: "error",
1825
1888
  title: "Error occurs when generating submission document",
1826
- message: G(S)
1889
+ message: J(w)
1827
1890
  });
1828
1891
  } finally {
1829
- k && V.close(k);
1892
+ k && v.close(k);
1830
1893
  }
1831
1894
  break;
1832
1895
  case "send":
1833
1896
  try {
1834
- V.open({
1897
+ v.open({
1835
1898
  message: "Sending onboarding document...",
1836
1899
  type: "info"
1837
- }), await H.sendDocument((R = f.value) == null ? void 0 : R._id), V.open({
1900
+ }), await z.sendDocument((q = b.value) == null ? void 0 : q._id), v.open({
1838
1901
  type: "success",
1839
1902
  title: "Submission documents send successfully"
1840
1903
  });
1841
- } catch (S) {
1842
- V.open({
1904
+ } catch (w) {
1905
+ v.open({
1843
1906
  type: "error",
1844
1907
  title: "Error occurs when sending document",
1845
- message: G(S)
1908
+ message: J(w)
1846
1909
  });
1847
1910
  }
1848
1911
  break;
1849
1912
  }
1850
1913
  };
1851
- return (D, N) => {
1852
- var S, z, K, X;
1853
- const R = U("FmCircularProgress"), k = U("FmPageHead");
1854
- return e(u) ? (i(), p("div", Dl, [
1855
- o(R, { size: "xxl" })
1856
- ])) : (i(), p(A, { key: 1 }, [
1914
+ return (U, N) => {
1915
+ var w, W, K, X;
1916
+ const q = h("FmCircularProgress"), k = h("FmPageHead");
1917
+ return e(u) ? (i(), p("div", Tl, [
1918
+ o(q, { size: "xxl" })
1919
+ ])) : (i(), p(L, { key: 1 }, [
1857
1920
  o(k, {
1858
- title: `Submission - ${(S = f.value) == null ? void 0 : S.type}`,
1859
- description: `ID - ${(z = f.value) == null ? void 0 : z._id}`,
1921
+ title: `Submission - ${(w = b.value) == null ? void 0 : w.type}`,
1922
+ description: `ID - ${(W = b.value) == null ? void 0 : W._id}`,
1860
1923
  "back-button": !0,
1861
- "onClick:back": a,
1862
- "onClick:action": P,
1863
- actions: x.value ? [] : [
1924
+ "onClick:back": l,
1925
+ "onClick:action": I,
1926
+ actions: C.value ? [] : [
1864
1927
  {
1865
1928
  label: "Preview Document",
1866
1929
  value: "preview",
@@ -1874,16 +1937,16 @@ const mt = {
1874
1937
  }
1875
1938
  ]
1876
1939
  }, null, 8, ["title", "description", "actions"]),
1877
- s("div", Fl, [
1878
- (i(), L(ue(r.value), {
1879
- key: C.value,
1880
- submission: f.value,
1881
- "onUpdate:submission": c
1940
+ s("div", Dl, [
1941
+ (i(), _(ue(r.value), {
1942
+ key: x.value,
1943
+ submission: b.value,
1944
+ "onUpdate:submission": g
1882
1945
  }, null, 40, ["submission"])),
1883
- ((K = f.value) == null ? void 0 : K.type) !== "softspace" ? (i(), p(A, { key: 0 }, [
1946
+ ((K = b.value) == null ? void 0 : K.type) !== "softspace" ? (i(), p(L, { key: 0 }, [
1884
1947
  N[0] || (N[0] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Timeline", -1)),
1885
1948
  o(xe, {
1886
- entries: (X = f.value) == null ? void 0 : X.timeline
1949
+ entries: (X = b.value) == null ? void 0 : X.timeline
1887
1950
  }, null, 8, ["entries"])
1888
1951
  ], 64)) : E("", !0)
1889
1952
  ])
@@ -1892,5 +1955,5 @@ const mt = {
1892
1955
  }
1893
1956
  });
1894
1957
  export {
1895
- Ql as default
1958
+ Gl as default
1896
1959
  };