@feedmepos/mf-payment 1.10.3 → 1.10.5-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 (95) hide show
  1. package/dist/{Actions.vue_vue_type_script_setup_true_lang-DXXEAGNv.js → Actions.vue_vue_type_script_setup_true_lang-BIxmXhVi.js} +1 -1
  2. package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DtDcZPiM.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BOuAR3Jk.js} +3 -3
  3. package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DzfC4Ydq.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CVWH4h9m.js} +2 -2
  4. package/dist/{Chargeback-CeT1Lhsx.js → Chargeback-D-SaWEZ3.js} +5 -5
  5. package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Anj6Ov3T.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BddsB-O7.js} +9 -4
  6. package/dist/{ExternalTerminal-CVwXtIQi.js → ExternalTerminal-DSFdyxgo.js} +6 -6
  7. package/dist/OnboardForm-BW_d_NI5.js +22533 -0
  8. package/dist/OnboardForm-rjhOG28l.js +1519 -0
  9. package/dist/{OnboardSubmission-DbCS8yrY.js → OnboardSubmission-CvSo8EfH.js} +6 -6
  10. package/dist/{OnboardSubmission-CMjrVivi.js → OnboardSubmission-b73A_sV3.js} +3 -3
  11. package/dist/{PayoutAccount-DAyjFYUb.js → PayoutAccount-DaFv-aML.js} +5 -5
  12. package/dist/{PayoutAccount-BQmYnRti.js → PayoutAccount-q8erqoPY.js} +7 -7
  13. package/dist/{PayoutAccountSetting-B2GvHok3.js → PayoutAccountSetting-DxxdGfgG.js} +715 -722
  14. package/dist/{Restaurant-BQYJBsl7.js → Restaurant-CV8QkUbQ.js} +4 -4
  15. package/dist/{RestaurantSetting-BAGLuDkq.js → RestaurantSetting-CTlqvfdy.js} +3 -3
  16. package/dist/{Settlement-DRAn74x0.js → Settlement-Cl9Gg13I.js} +3 -3
  17. package/dist/{Settlement-ChindqhG.js → Settlement-iRQ6XDJ4.js} +4 -4
  18. package/dist/{SettlementTransactions-BQr5WvYC.js → SettlementTransactions-CHUT3xnm.js} +5 -5
  19. package/dist/{SettlementTransactions-CIGKFRsD.js → SettlementTransactions-blKyTkGq.js} +5 -5
  20. package/dist/{Status.vue_vue_type_script_setup_true_lang-D0RTxbYt.js → Status.vue_vue_type_script_setup_true_lang-D_nmEdyu.js} +1 -1
  21. package/dist/{Terminal-ITG71-h5.js → Terminal-BXvAm6w3.js} +6 -6
  22. package/dist/{TerminalSetting-DALz7UOI.js → TerminalSetting-C4o5IOpK.js} +6 -6
  23. package/dist/{Transaction-CMlbLJ40.js → Transaction-BIeW9fTK.js} +10 -10
  24. package/dist/{Transaction-CNczRMks.js → Transaction-DntiUDtA.js} +11 -11
  25. package/dist/{TransactionOld-Vc0BxLst.js → TransactionOld-BLrS-7GS.js} +7 -7
  26. package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-D0IHQIDw.js → TransactionStatus.vue_vue_type_script_setup_true_lang-CjQ2GMrD.js} +1 -1
  27. package/dist/{app-DIXzt9ON.js → app-DyJjl-JW.js} +362 -353
  28. package/dist/app.js +1 -1
  29. package/dist/{assets-D6PvbkZQ.js → assets-Dli_wsgY.js} +1 -1
  30. package/dist/components/PDFViewer.vue.d.ts +11 -1
  31. package/dist/{grafana-CIUpjt-p.js → grafana-B_QqlaQQ.js} +1 -1
  32. package/dist/{index-VP68zTCg.js → index-8GWhPszq.js} +1 -1
  33. package/dist/{index-Dd0_PteU.js → index-B8bREy8p.js} +1 -1
  34. package/dist/{index-Gru3oQsi.js → index-BAEwRvM-.js} +1 -1
  35. package/dist/{index-Dhl-wJsD.js → index-C1n_Ih97.js} +1 -1
  36. package/dist/{index-DSzEV9Z2.js → index-CUDgQRLT.js} +1 -1
  37. package/dist/{index-BJz6amD9.js → index-CbTXFbRi.js} +1 -2
  38. package/dist/{index-cVqHUVQr.js → index-CqWAZhwv.js} +2 -2
  39. package/dist/{index-DSTvbZSY.js → index-Cvrxt3gd.js} +1 -1
  40. package/dist/{index-BtizhJgd.js → index-DjlqF6I0.js} +1 -1
  41. package/dist/{index-6ArggUS4.js → index-eEK4FJWw.js} +1 -1
  42. package/dist/{index.vue_vue_type_script_setup_true_lang-i75zV-qk.js → index.vue_vue_type_script_setup_true_lang-BBqaMh-p.js} +1 -1
  43. package/dist/model/payout-account.d.ts +2 -2
  44. package/dist/{onboard-submission-CaLG3ujz.js → onboard-submission-DW1TUY3U.js} +1 -1
  45. package/dist/package.json +2 -2
  46. package/dist/{payout-account-BuF5FTeH.js → payout-account-BEdIU70O.js} +3 -3
  47. package/dist/stores/payoutAccount.d.ts +16 -16
  48. package/dist/style.css +1 -1
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/views/admin/onboard-submission/cell/UploadButton.vue.d.ts +1 -1
  51. package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
  52. package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
  53. package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
  54. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
  55. package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +38 -38
  56. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +38 -38
  57. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
  58. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
  59. package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +38 -38
  60. package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
  61. package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
  62. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +32 -32
  63. package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +18 -18
  64. package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -18
  65. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -18
  66. package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +18 -18
  67. package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -18
  68. package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -18
  69. package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -18
  70. package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +18 -18
  71. package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +18 -18
  72. package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +18 -18
  73. package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +18 -18
  74. package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -18
  75. package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +18 -18
  76. package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +18 -18
  77. package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -18
  78. package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -18
  79. package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -18
  80. package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -18
  81. package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -18
  82. package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +18 -18
  83. package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +18 -18
  84. package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +18 -18
  85. package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -18
  86. package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -18
  87. package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -18
  88. package/dist/views/onboard-submission/cell/UploadButton.vue.d.ts +1 -1
  89. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
  90. package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
  91. package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
  92. package/dist/views/settlement/SettlementTable.vue.d.ts +32 -32
  93. package/package.json +2 -2
  94. package/dist/OnboardForm-CwNYDJWa.js +0 -1463
  95. package/dist/OnboardForm-DIDPFAwq.js +0 -22368
@@ -1,1463 +0,0 @@
1
- import { defineComponent as Z, ref as j, computed as W, resolveComponent as N, openBlock as p, createElementBlock as x, createElementVNode as n, toDisplayString as U, createBlock as A, withCtx as f, createCommentVNode as O, createVNode as o, unref as e, Fragment as J, renderList as _, createTextVNode as z, onMounted as ce, resolveDynamicComponent as ye } from "vue";
2
- import { o as H } from "./index-cVqHUVQr.js";
3
- import { u as le, p as re } from "./index-BJz6amD9.js";
4
- import { useRouter as ge } from "vue-router";
5
- import { z as u, a as d } from "./validator-CTlVogBQ.js";
6
- import { P as ve } from "./payout-account-BuF5FTeH.js";
7
- import { a as Ve } from "./onboard-submission-CaLG3ujz.js";
8
- import { _ as ie } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Anj6Ov3T.js";
9
- import { s as fe } from "./vue-signature-pad.esm-IXPjf4fL.js";
10
- import { _ as ue } from "./Status.vue_vue_type_script_setup_true_lang-D0RTxbYt.js";
11
- import { useSnackbar as se } from "@feedmepos/ui-library";
12
- import { u as Q } from "./error-K1CakhA9.js";
13
- const ke = ["src"], P = /* @__PURE__ */ Z({
14
- __name: "UploadButton",
15
- props: {
16
- modelValue: {},
17
- label: {},
18
- type: {},
19
- restaurantId: {}
20
- },
21
- emits: ["update:modelValue"],
22
- setup(m, { emit: L }) {
23
- const V = m, k = j(V.modelValue), g = L, q = (a) => {
24
- const i = new FileReader();
25
- i.onload = (I) => {
26
- var v;
27
- k.value = (v = I.target) == null ? void 0 : v.result, g("update:modelValue", a);
28
- }, i.readAsDataURL(a);
29
- }, c = (a) => {
30
- window.open(a, "_blank", "noopener,noreferrer");
31
- }, T = W(() => V.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
32
- return (a, i) => {
33
- const I = N("FmButton"), v = N("FmDropField");
34
- return p(), x("div", null, [
35
- n("p", null, U(m.label), 1),
36
- k.value ? (p(), A(ie, {
37
- key: 0,
38
- document: k.value,
39
- "restaurant-id": m.restaurantId
40
- }, {
41
- default: f(({ src: D }) => [
42
- m.type === "image" ? (p(), x("img", {
43
- key: 0,
44
- src: D
45
- }, null, 8, ke)) : O("", !0),
46
- m.type === "pdf" ? (p(), A(I, {
47
- key: 1,
48
- class: "mt-4 w-full",
49
- "prepend-icon": "manage_accounts",
50
- label: "View Document",
51
- variant: "primary",
52
- onVnodeMounted: () => c(D),
53
- onClick: () => c(D)
54
- }, null, 8, ["onVnodeMounted", "onClick"])) : O("", !0)
55
- ]),
56
- _: 1
57
- }, 8, ["document", "restaurant-id"])) : (p(), A(v, {
58
- key: 1,
59
- accept: T.value,
60
- onFileUpload: q
61
- }, null, 8, ["accept"]))
62
- ]);
63
- };
64
- }
65
- }), Ce = ["src"], Ne = {
66
- key: 0,
67
- class: "text-center text-red-700 py-4"
68
- }, Se = { class: "flex justify-evenly py-3" }, we = /* @__PURE__ */ Z({
69
- __name: "SignatureBoard",
70
- props: {
71
- modelValue: {},
72
- label: {},
73
- restaurantId: {}
74
- },
75
- emits: ["update:modelValue"],
76
- setup(m, { emit: L }) {
77
- const V = m, k = L, g = j(V.modelValue), q = j(!1), c = j(), T = j(!1);
78
- function a(I, v) {
79
- var B;
80
- const D = I.split(","), E = ((B = D[0].match(/:(.*?);/)) == null ? void 0 : B[1]) || "", F = atob(D[1]);
81
- let R = F.length;
82
- const b = new Uint8Array(R);
83
- for (; R--; )
84
- b[R] = F.charCodeAt(R);
85
- return new File([b], v, { type: E });
86
- }
87
- const i = function() {
88
- const { isEmpty: I, data: v } = c.value.saveSignature();
89
- if (I)
90
- return q.value = !0;
91
- g.value = v, T.value = !1, k("update:modelValue", a(v, "signature.png"));
92
- };
93
- return (I, v) => {
94
- const D = N("FmButton"), E = N("FmDialog");
95
- return p(), x("div", null, [
96
- n("p", null, U(m.label), 1),
97
- g.value ? (p(), A(ie, {
98
- key: 0,
99
- document: g.value,
100
- "restaurant-id": m.restaurantId
101
- }, {
102
- default: f(({ src: F }) => [
103
- n("img", {
104
- src: F,
105
- alt: "Signature Preview",
106
- class: "w-full h-auto"
107
- }, null, 8, Ce)
108
- ]),
109
- _: 1
110
- }, 8, ["document", "restaurant-id"])) : O("", !0),
111
- g.value ? O("", !0) : (p(), A(E, {
112
- key: 1,
113
- modelValue: T.value,
114
- "onUpdate:modelValue": v[1] || (v[1] = (F) => T.value = F)
115
- }, {
116
- "dialog-button": f(() => [
117
- o(D, {
118
- "prepend-icon": "signature",
119
- class: "w-full",
120
- label: "Signature"
121
- })
122
- ]),
123
- "dialog-header": f(() => [...v[2] || (v[2] = [
124
- n("div", null, "Signature Board", -1)
125
- ])]),
126
- default: f(() => [
127
- o(e(fe), {
128
- ref_key: "signaturePad",
129
- ref: c,
130
- height: "300px",
131
- customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
132
- options: { penColor: "#000000" }
133
- }, null, 512),
134
- q.value ? (p(), x("p", Ne, " Please sign your signature before saving. ")) : O("", !0),
135
- n("div", Se, [
136
- o(D, {
137
- variant: "destructive",
138
- label: "Clear",
139
- "prepend-icon": "delete",
140
- onClick: v[0] || (v[0] = (F) => c.value.clearSignature())
141
- }),
142
- o(D, {
143
- label: "Save",
144
- "prepend-icon": "save",
145
- onClick: i
146
- })
147
- ])
148
- ]),
149
- _: 1
150
- }, 8, ["modelValue"]))
151
- ]);
152
- };
153
- }
154
- }), qe = { class: "space-y-2" }, Fe = { class: "text-gray-900" }, Pe = { class: "text-gray-900" }, xe = { class: "text-gray-900" }, Ue = { class: "text-gray-900" }, Ie = { class: "text-gray-900" }, De = { class: "text-gray-900" }, Re = { class: "grid grid-cols-4 gap-6" }, Te = ["src"], Be = {
155
- key: 1,
156
- class: "mt-2 truncate text-gray-700"
157
- }, Ae = { key: 0 }, Ee = {
158
- key: 0,
159
- class: "w-full flex justify-end mt-6"
160
- }, $e = { class: "mt-6 grid grid-cols-4 gap-24" }, je = { class: "grid grid-cols-4 gap-6" }, Oe = { class: "w-full flex justify-end mt-6" }, Le = { class: "mt-6 grid grid-cols-4 gap-24" }, Me = { class: "col-span-2" }, He = { class: "col-span-2" }, ze = { class: "col-span-2" }, We = { class: "col-span-2" }, Je = { class: "col-span-2" }, Qe = { class: "col-span-2" }, Ke = { class: "col-span-2" }, Ge = { class: "col-start-1 col-span-2" }, Ye = { class: "col-span-2" }, Xe = { class: "col-span-2" }, Ze = { class: "col-span-2" }, he = { class: "mt-6 grid grid-cols-4 gap-6" }, _e = { class: "mt-6 grid grid-cols-2 gap-24" }, oe = 30, el = /* @__PURE__ */ Z({
161
- __name: "SoftspaceSubmission",
162
- props: {
163
- submission: {
164
- type: Object,
165
- required: !0
166
- }
167
- },
168
- emits: ["update:submission"],
169
- setup(m, { emit: L }) {
170
- var ee;
171
- const V = m, k = L, g = se(), q = j(!1), { isLoading: c, startAsyncCall: T } = le(), { fields: a, documents: i, restaurantId: I, profile: v, status: D, statusReason: E } = V.submission, F = j(""), R = j(
172
- parseInt(((ee = V.submission.fields) == null ? void 0 : ee.numberOfDevices) ?? 1)
173
- ), b = j(
174
- V.submission.rates ? Object.fromEntries(
175
- Object.entries(V.submission.rates).map(([y, l]) => [y, `${l}`])
176
- ) : {
177
- duitNow: "0.8",
178
- mydebitCard: "0.5",
179
- localDebit: "0.5",
180
- localCredit: "1.1",
181
- foreignCard: "3.0",
182
- jcbStandard: "2.2",
183
- jcbPlatinum: "2.2"
184
- }
185
- ), B = W(
186
- () => Object.values(b.value).every((y) => parseFloat(y) > 0)
187
- ), { isLoading: G, startAsyncCall: te } = le(), M = j([]), h = (y) => Number(y.replace("additionalDocument", "")), Y = W(
188
- () => Object.keys(V.submission.documents).filter((y) => /^additionalDocument\d+$/.test(y)).sort((y, l) => h(y) - h(l))
189
- ), C = W(
190
- () => Y.value.length + M.value.length
191
- ), s = (y) => {
192
- if (!(C.value >= oe)) {
193
- if (y.type.startsWith("image/")) {
194
- const l = new FileReader();
195
- l.onload = (r) => {
196
- var $;
197
- return M.value.push({
198
- file: y,
199
- preview: String((($ = r.target) == null ? void 0 : $.result) ?? "")
200
- });
201
- }, l.readAsDataURL(y);
202
- return;
203
- }
204
- M.value.push({ file: y, preview: "" });
205
- }
206
- }, S = () => te(async () => {
207
- try {
208
- let y = Y.value.reduce(
209
- (r, $) => Math.max(r, h($)),
210
- 0
211
- );
212
- const l = {};
213
- for (const { file: r } of M.value) {
214
- const $ = `additionalDocument${++y}`;
215
- l[$] = await H.uploadDocument(
216
- I,
217
- $,
218
- r
219
- );
220
- }
221
- k(
222
- "update:submission",
223
- await H.addAdditionalDocuments(
224
- V.submission._id,
225
- l
226
- )
227
- ), M.value = [], g.open({ type: "success", title: "Documents saved" });
228
- } catch (y) {
229
- g.open({
230
- type: "error",
231
- title: "Error occurs when sending additional documents",
232
- message: Q(y)
233
- });
234
- }
235
- }), X = () => T(async () => {
236
- try {
237
- const y = await H.reviewById(
238
- V.submission._id,
239
- {
240
- numberOfDevices: R.value.toString(),
241
- rates: {
242
- duitNow: parseFloat(b.value.duitNow),
243
- mydebitCard: parseFloat(b.value.mydebitCard),
244
- localDebit: parseFloat(b.value.localDebit),
245
- localCredit: parseFloat(b.value.localCredit),
246
- foreignCard: parseFloat(b.value.foreignCard),
247
- jcbStandard: parseFloat(b.value.jcbStandard),
248
- jcbPlatinum: parseFloat(b.value.jcbPlatinum)
249
- },
250
- status: "approved"
251
- }
252
- );
253
- k("update:submission", y), q.value = !1, g.open({
254
- type: "success",
255
- title: "Submission updated successfully"
256
- });
257
- } catch (y) {
258
- g.open({
259
- type: "error",
260
- title: "Error occurs when updating submission",
261
- message: Q(y)
262
- });
263
- }
264
- }), ae = () => T(async () => {
265
- try {
266
- const y = await H.reviewById(
267
- V.submission._id,
268
- {
269
- status: "rejected",
270
- statusReason: F.value
271
- }
272
- );
273
- k("update:submission", y), q.value = !1, g.open({
274
- type: "success",
275
- title: "Submission updated successfully"
276
- });
277
- } catch (y) {
278
- g.open({
279
- type: "error",
280
- title: "Error occurs when updating submission",
281
- message: Q(y)
282
- });
283
- }
284
- });
285
- return (y, l) => {
286
- const r = N("FmButton"), $ = N("FmDropField"), w = N("FmTextField"), de = N("FmTextarea"), me = N("FmDialog"), pe = N("FmPhoneNumber"), ne = N("FmSelect"), be = N("FmForm");
287
- return p(), x(J, null, [
288
- n("div", qe, [
289
- n("div", null, [
290
- l[35] || (l[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
291
- n("span", Fe, U(e(I)), 1)
292
- ]),
293
- n("div", null, [
294
- l[36] || (l[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
295
- n("span", Pe, U(e(v).name) + " ( " + U(e(v).legalName) + " )", 1)
296
- ]),
297
- n("div", null, [
298
- l[37] || (l[37] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
299
- n("span", xe, U(e(v).email), 1)
300
- ]),
301
- n("div", null, [
302
- l[38] || (l[38] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
303
- n("span", Ue, U(e(v).phoneNo), 1)
304
- ]),
305
- n("div", null, [
306
- l[39] || (l[39] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
307
- n("span", Ie, [
308
- o(ue, { data: e(D) }, null, 8, ["data"])
309
- ])
310
- ]),
311
- n("div", null, [
312
- l[40] || (l[40] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
313
- n("span", De, U(e(E)), 1)
314
- ])
315
- ]),
316
- l[52] || (l[52] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Additional Documents ", -1)),
317
- n("div", Re, [
318
- (p(!0), x(J, null, _(Y.value, (t) => (p(), A(P, {
319
- key: t,
320
- label: t.replace("additionalDocument", "Document "),
321
- type: /\.pdf$/i.test(V.submission.documents[t]) ? "pdf" : "image",
322
- modelValue: V.submission.documents[t],
323
- "onUpdate:modelValue": (K) => V.submission.documents[t] = K,
324
- "restaurant-id": e(I)
325
- }, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
326
- (p(!0), x(J, null, _(M.value, (t, K) => (p(), x("div", {
327
- key: `new-${K}`
328
- }, [
329
- n("p", null, "Document " + U(Y.value.length + K + 1), 1),
330
- t.file.type.startsWith("image/") ? (p(), x("img", {
331
- key: 0,
332
- src: t.preview,
333
- class: "mt-2 rounded border"
334
- }, null, 8, Te)) : (p(), x("p", Be, U(t.file.name), 1)),
335
- o(r, {
336
- class: "mt-4",
337
- "prepend-icon": "delete",
338
- label: "Remove",
339
- variant: "destructive",
340
- onClick: (xl) => M.value.splice(K, 1)
341
- }, null, 8, ["onClick"])
342
- ]))), 128)),
343
- C.value < oe ? (p(), x("div", Ae, [
344
- n("p", null, "Document " + U(C.value + 1), 1),
345
- o($, {
346
- accept: ".png, .jpg, .jpeg, .pdf",
347
- onFileUpload: s
348
- })
349
- ])) : O("", !0)
350
- ]),
351
- M.value.length ? (p(), x("div", Ee, [
352
- o(r, {
353
- type: "button",
354
- variant: "primary",
355
- "prepend-icon": "cloud_upload",
356
- label: "Save documents",
357
- loading: e(G),
358
- onClick: S
359
- }, null, 8, ["loading"])
360
- ])) : O("", !0),
361
- l[53] || (l[53] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
362
- n("div", $e, [
363
- o(w, {
364
- modelValue: b.value.duitNow,
365
- "onUpdate:modelValue": l[0] || (l[0] = (t) => b.value.duitNow = t),
366
- label: "DuitNow QR",
367
- "label-mark": "required",
368
- type: "number",
369
- inputmode: "numeric",
370
- decimal: 2,
371
- rules: e(u)(
372
- e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
373
- )
374
- }, {
375
- append: f(() => [...l[41] || (l[41] = [
376
- z("%", -1)
377
- ])]),
378
- _: 1
379
- }, 8, ["modelValue", "rules"]),
380
- o(w, {
381
- modelValue: b.value.mydebitCard,
382
- "onUpdate:modelValue": l[1] || (l[1] = (t) => b.value.mydebitCard = t),
383
- label: "myDebit Card",
384
- "label-mark": "required",
385
- type: "number",
386
- inputmode: "numeric",
387
- decimal: 2,
388
- rules: e(u)(
389
- e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
390
- )
391
- }, {
392
- append: f(() => [...l[42] || (l[42] = [
393
- z("%", -1)
394
- ])]),
395
- _: 1
396
- }, 8, ["modelValue", "rules"]),
397
- o(w, {
398
- modelValue: b.value.localDebit,
399
- "onUpdate:modelValue": l[2] || (l[2] = (t) => b.value.localDebit = t),
400
- label: "Local Debit Card",
401
- "label-mark": "required",
402
- type: "number",
403
- inputmode: "numeric",
404
- decimal: 2,
405
- rules: e(u)(
406
- e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
407
- )
408
- }, {
409
- append: f(() => [...l[43] || (l[43] = [
410
- z("%", -1)
411
- ])]),
412
- _: 1
413
- }, 8, ["modelValue", "rules"]),
414
- o(w, {
415
- modelValue: b.value.localCredit,
416
- "onUpdate:modelValue": l[3] || (l[3] = (t) => b.value.localCredit = t),
417
- label: "Local Credit Card",
418
- "label-mark": "required",
419
- type: "number",
420
- inputmode: "numeric",
421
- decimal: 2,
422
- rules: e(u)(
423
- e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
424
- )
425
- }, {
426
- append: f(() => [...l[44] || (l[44] = [
427
- z("%", -1)
428
- ])]),
429
- _: 1
430
- }, 8, ["modelValue", "rules"]),
431
- o(w, {
432
- modelValue: b.value.foreignCard,
433
- "onUpdate:modelValue": l[4] || (l[4] = (t) => b.value.foreignCard = t),
434
- label: "Foreign Card",
435
- "label-mark": "required",
436
- type: "number",
437
- inputmode: "numeric",
438
- decimal: 2,
439
- rules: e(u)(
440
- e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
441
- )
442
- }, {
443
- append: f(() => [...l[45] || (l[45] = [
444
- z("%", -1)
445
- ])]),
446
- _: 1
447
- }, 8, ["modelValue", "rules"]),
448
- o(w, {
449
- modelValue: b.value.jcbStandard,
450
- "onUpdate:modelValue": l[5] || (l[5] = (t) => b.value.jcbStandard = t),
451
- label: "JCB Standard",
452
- "label-mark": "required",
453
- type: "number",
454
- inputmode: "numeric",
455
- decimal: 2,
456
- rules: e(u)(
457
- e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
458
- )
459
- }, {
460
- append: f(() => [...l[46] || (l[46] = [
461
- z("%", -1)
462
- ])]),
463
- _: 1
464
- }, 8, ["modelValue", "rules"]),
465
- o(w, {
466
- modelValue: b.value.jcbPlatinum,
467
- "onUpdate:modelValue": l[6] || (l[6] = (t) => b.value.jcbPlatinum = t),
468
- label: "JCB Platinum",
469
- "label-mark": "required",
470
- type: "number",
471
- inputmode: "numeric",
472
- decimal: 2,
473
- rules: e(u)(
474
- e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
475
- )
476
- }, {
477
- append: f(() => [...l[47] || (l[47] = [
478
- z("%", -1)
479
- ])]),
480
- _: 1
481
- }, 8, ["modelValue", "rules"])
482
- ]),
483
- l[54] || (l[54] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Extra Settings", -1)),
484
- n("div", je, [
485
- o(w, {
486
- modelValue: R.value,
487
- "onUpdate:modelValue": l[7] || (l[7] = (t) => R.value = t),
488
- label: "Number of Devices",
489
- "label-mark": "required",
490
- type: "number",
491
- inputmode: "numeric"
492
- }, null, 8, ["modelValue"])
493
- ]),
494
- n("div", Oe, [
495
- o(me, {
496
- modelValue: q.value,
497
- "onUpdate:modelValue": l[9] || (l[9] = (t) => q.value = t)
498
- }, {
499
- "dialog-button": f(() => [
500
- o(r, {
501
- class: "mr-6",
502
- type: "button",
503
- variant: "destructive",
504
- "prepend-icon": "block",
505
- loading: e(c),
506
- label: "Reject Submission"
507
- }, null, 8, ["loading"])
508
- ]),
509
- "dialog-header": f(() => [...l[48] || (l[48] = [
510
- n("div", null, "Rejecting Submission", -1)
511
- ])]),
512
- default: f(() => [
513
- o(de, {
514
- modelValue: F.value,
515
- "onUpdate:modelValue": l[8] || (l[8] = (t) => F.value = t),
516
- label: "Reason for Rejection",
517
- "label-mark": "optional",
518
- "helper-text": "Please provide a reason for rejection."
519
- }, null, 8, ["modelValue"]),
520
- o(r, {
521
- class: "mb-2 mt-6 w-full",
522
- label: "Submit",
523
- "prepend-icon": "save",
524
- onClick: ae,
525
- loading: e(c)
526
- }, null, 8, ["loading"])
527
- ]),
528
- _: 1
529
- }, 8, ["modelValue"]),
530
- o(r, {
531
- type: "button",
532
- variant: "primary",
533
- "prepend-icon": "approval",
534
- disabled: !B.value,
535
- label: "Approve Submission with Rates",
536
- onClick: X,
537
- loading: e(c)
538
- }, null, 8, ["disabled", "loading"])
539
- ]),
540
- o(be, { disabled: !0 }, {
541
- default: f(() => [
542
- l[49] || (l[49] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
543
- n("div", Le, [
544
- n("div", Me, [
545
- o(w, {
546
- modelValue: e(a).picName,
547
- "onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picName = t),
548
- label: "Owner/Director Name",
549
- placeholder: "Enter your name",
550
- "label-mark": "required",
551
- rules: e(u)(e(d).string().min(1, "Owner/Director Name is required"))
552
- }, null, 8, ["modelValue", "rules"])
553
- ]),
554
- n("div", He, [
555
- o(w, {
556
- modelValue: e(a).picRole,
557
- "onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picRole = t),
558
- label: "Owner/Director Role",
559
- placeholder: "Enter your role",
560
- "label-mark": "required",
561
- rules: e(u)(e(d).string().min(1, "Owner/Director Role is required"))
562
- }, null, 8, ["modelValue", "rules"])
563
- ]),
564
- n("div", ze, [
565
- o(w, {
566
- modelValue: e(a).picEmail,
567
- "onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picEmail = t),
568
- label: "Owner/Director Email",
569
- type: "email",
570
- placeholder: "Enter your email address",
571
- "label-mark": "required",
572
- rules: e(u)(e(d).string().min(1, "Owner/Director Email is required"))
573
- }, null, 8, ["modelValue", "rules"])
574
- ]),
575
- n("div", We, [
576
- o(pe, {
577
- "model-value": e(a).picContact,
578
- "onUpdate:modelValue": l[13] || (l[13] = (t) => e(a).picContact = t),
579
- "default-country": "MY",
580
- label: "Owner/Director Contact",
581
- "label-mark": "required",
582
- rules: e(u)(e(d).string().min(1, "Owner/Director Contact is required"))
583
- }, null, 8, ["model-value", "rules"])
584
- ]),
585
- n("div", Je, [
586
- o(w, {
587
- modelValue: e(a).tradingName,
588
- "onUpdate:modelValue": l[14] || (l[14] = (t) => e(a).tradingName = t),
589
- label: "Trading Name",
590
- placeholder: "Enter trading name",
591
- "label-mark": "required",
592
- rules: e(u)(e(d).string().min(1, "Trading Name is required"))
593
- }, null, 8, ["modelValue", "rules"])
594
- ]),
595
- n("div", Qe, [
596
- o(w, {
597
- modelValue: e(a).outletName,
598
- "onUpdate:modelValue": l[15] || (l[15] = (t) => e(a).outletName = t),
599
- label: "Registered Name",
600
- placeholder: "Enter registered name",
601
- "label-mark": "required",
602
- rules: e(u)(e(d).string().min(1, "Registered Name is required"))
603
- }, null, 8, ["modelValue", "rules"])
604
- ]),
605
- n("div", Ke, [
606
- o(w, {
607
- modelValue: e(a).outletAddress,
608
- "onUpdate:modelValue": l[16] || (l[16] = (t) => e(a).outletAddress = t),
609
- label: "Outlet Address",
610
- placeholder: "Enter outlet address",
611
- "label-mark": "required",
612
- rules: e(u)(e(d).string().min(1, "Address is required"))
613
- }, null, 8, ["modelValue", "rules"])
614
- ]),
615
- o(w, {
616
- modelValue: e(a).outletPostCode,
617
- "onUpdate:modelValue": l[17] || (l[17] = (t) => e(a).outletPostCode = t),
618
- label: "Postal Code",
619
- placeholder: "Enter postal code",
620
- "label-mark": "required",
621
- rules: e(u)(e(d).string().min(1, "Postal Code is required"))
622
- }, null, 8, ["modelValue", "rules"]),
623
- o(w, {
624
- modelValue: e(a).outletState,
625
- "onUpdate:modelValue": l[18] || (l[18] = (t) => e(a).outletState = t),
626
- label: "State",
627
- placeholder: "Enter state",
628
- "label-mark": "required",
629
- rules: e(u)(e(d).string().min(1, "State is required"))
630
- }, null, 8, ["modelValue", "rules"]),
631
- o(w, {
632
- modelValue: e(a).outletCity,
633
- "onUpdate:modelValue": l[19] || (l[19] = (t) => e(a).outletCity = t),
634
- label: "City",
635
- placeholder: "Enter city",
636
- "label-mark": "required",
637
- rules: e(u)(e(d).string().min(1, "City is required"))
638
- }, null, 8, ["modelValue", "rules"]),
639
- n("div", Ge, [
640
- o(ne, {
641
- modelValue: e(a).businessType,
642
- "onUpdate:modelValue": l[20] || (l[20] = (t) => e(a).businessType = t),
643
- label: "Type",
644
- placeholder: "Select business type",
645
- "label-mark": "required",
646
- rules: e(u)(e(d).string().min(1, "Business Type is required")),
647
- items: [
648
- { label: "Sole Proprietorship", value: "sole_proprietorship" },
649
- { label: "Partnership", value: "partnership" },
650
- {
651
- label: "Private Limited Company (Sdn Bhd)",
652
- value: "private_limited"
653
- },
654
- {
655
- label: "Public Limited Company (Berhad)",
656
- value: "public_limited"
657
- }
658
- ]
659
- }, null, 8, ["modelValue", "rules"])
660
- ]),
661
- n("div", Ye, [
662
- o(w, {
663
- modelValue: e(a).businessRegNo,
664
- "onUpdate:modelValue": l[21] || (l[21] = (t) => e(a).businessRegNo = t),
665
- label: "Registration No",
666
- placeholder: "Enter registration number",
667
- "label-mark": "required",
668
- rules: e(u)(e(d).string().min(1, "Reg No is required"))
669
- }, null, 8, ["modelValue", "rules"])
670
- ]),
671
- n("div", Xe, [
672
- o(w, {
673
- modelValue: e(a).tinNo,
674
- "onUpdate:modelValue": l[22] || (l[22] = (t) => e(a).tinNo = t),
675
- label: "Tax Identification No (TIN)",
676
- placeholder: "Enter your TIN number",
677
- "label-mark": "required",
678
- rules: e(u)(e(d).string().min(1, "TIN is required"))
679
- }, null, 8, ["modelValue", "rules"])
680
- ]),
681
- n("div", Ze, [
682
- o(w, {
683
- modelValue: e(a).sstNo,
684
- "onUpdate:modelValue": l[23] || (l[23] = (t) => e(a).sstNo = t),
685
- label: "SST Registration No (SST)",
686
- placeholder: "Enter your SST number",
687
- "label-mark": "optional"
688
- }, null, 8, ["modelValue"])
689
- ])
690
- ]),
691
- l[50] || (l[50] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
692
- n("div", he, [
693
- o(ne, {
694
- modelValue: e(a).bankName,
695
- "onUpdate:modelValue": l[24] || (l[24] = (t) => e(a).bankName = t),
696
- label: "Bank",
697
- placeholder: "Select bank type",
698
- "label-mark": "required",
699
- rules: e(u)(e(d).string().min(1, "Bank Type is required")),
700
- items: e(ve).bankNameOptions()
701
- }, null, 8, ["modelValue", "rules", "items"]),
702
- o(w, {
703
- modelValue: e(a).bankHolderName,
704
- "onUpdate:modelValue": l[25] || (l[25] = (t) => e(a).bankHolderName = t),
705
- label: "Beneficiary Name",
706
- placeholder: "Enter Beneficiary Name",
707
- "label-mark": "required",
708
- rules: e(u)(e(d).string().min(1, "Beneficiary Name is required"))
709
- }, null, 8, ["modelValue", "rules"]),
710
- o(w, {
711
- modelValue: e(a).bankAccountNo,
712
- "onUpdate:modelValue": l[26] || (l[26] = (t) => e(a).bankAccountNo = t),
713
- label: "Account Number",
714
- placeholder: "Enter Account Number",
715
- "label-mark": "required",
716
- rules: e(u)(e(d).string().min(1, "Account Number is required"))
717
- }, null, 8, ["modelValue", "rules"]),
718
- o(P, {
719
- label: "Authorized Person ID",
720
- modelValue: e(i).authorizedPersonID,
721
- "onUpdate:modelValue": l[27] || (l[27] = (t) => e(i).authorizedPersonID = t),
722
- type: "image",
723
- "restaurant-id": m.submission.restaurantId
724
- }, null, 8, ["modelValue", "restaurant-id"]),
725
- o(P, {
726
- label: "Outlet Photo",
727
- modelValue: e(i).outletPhoto,
728
- "onUpdate:modelValue": l[28] || (l[28] = (t) => e(i).outletPhoto = t),
729
- type: "image",
730
- "restaurant-id": m.submission.restaurantId
731
- }, null, 8, ["modelValue", "restaurant-id"]),
732
- (p(!0), x(J, null, _([1, 2, 3, 4, 5].filter(
733
- (t) => !!e(i)[`onsitePhoto${t}`]
734
- ), (t) => (p(), A(P, {
735
- key: t,
736
- label: e(Ve)[t - 1],
737
- modelValue: e(i)[`onsitePhoto${t}`],
738
- "onUpdate:modelValue": (K) => e(i)[`onsitePhoto${t}`] = K,
739
- type: "image",
740
- "restaurant-id": m.submission.restaurantId
741
- }, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
742
- e(i).interiorPhoto ? (p(), A(P, {
743
- key: 0,
744
- label: "Interior Photo",
745
- modelValue: e(i).interiorPhoto,
746
- "onUpdate:modelValue": l[29] || (l[29] = (t) => e(i).interiorPhoto = t),
747
- type: "image",
748
- "restaurant-id": m.submission.restaurantId
749
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
750
- o(P, {
751
- label: "Latest Bank Statement",
752
- modelValue: e(i).bankStatement,
753
- "onUpdate:modelValue": l[30] || (l[30] = (t) => e(i).bankStatement = t),
754
- type: "pdf",
755
- "restaurant-id": m.submission.restaurantId
756
- }, null, 8, ["modelValue", "restaurant-id"]),
757
- e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (p(), A(P, {
758
- key: 1,
759
- label: "Superform",
760
- type: "pdf",
761
- modelValue: e(i).certificate,
762
- "onUpdate:modelValue": l[31] || (l[31] = (t) => e(i).certificate = t),
763
- "restaurant-id": m.submission.restaurantId
764
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
765
- e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (p(), A(P, {
766
- key: 2,
767
- label: "SSM Certificate & Info",
768
- type: "pdf",
769
- modelValue: e(i).certificate,
770
- "onUpdate:modelValue": l[32] || (l[32] = (t) => e(i).certificate = t),
771
- "restaurant-id": m.submission.restaurantId
772
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0)
773
- ]),
774
- l[51] || (l[51] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
775
- n("div", _e, [
776
- o(we, {
777
- modelValue: e(i).signature,
778
- "onUpdate:modelValue": l[33] || (l[33] = (t) => e(i).signature = t),
779
- "restaurant-id": m.submission.restaurantId,
780
- label: "Signature"
781
- }, null, 8, ["modelValue", "restaurant-id"]),
782
- o(P, {
783
- label: "Company Stamp",
784
- type: "image",
785
- modelValue: e(i).companyStamp,
786
- "onUpdate:modelValue": l[34] || (l[34] = (t) => e(i).companyStamp = t),
787
- "restaurant-id": m.submission.restaurantId
788
- }, null, 8, ["modelValue", "restaurant-id"])
789
- ])
790
- ]),
791
- _: 1
792
- })
793
- ], 64);
794
- };
795
- }
796
- }), ll = { class: "space-y-2" }, tl = { class: "text-gray-900" }, al = { class: "text-gray-900" }, sl = { class: "text-gray-900" }, nl = { class: "text-gray-900" }, ol = { class: "text-gray-900" }, rl = { class: "text-gray-900" }, il = { class: "mt-6 grid grid-cols-4 gap-24" }, ul = { class: "w-full flex justify-end mt-6" }, dl = { class: "mt-6 grid grid-cols-4 gap-24" }, ml = { class: "col-span-2" }, pl = { class: "col-span-2" }, bl = { class: "col-span-2" }, cl = { class: "col-span-2" }, yl = { class: "mt-6 grid grid-cols-4 gap-24" }, gl = { class: "mt-6 grid grid-cols-4 gap-24" }, vl = { class: "mt-6 grid grid-cols-4 gap-24" }, Vl = { class: "col-span-2" }, fl = { class: "col-span-2" }, kl = { class: "col-span-2" }, Cl = { class: "col-span-2" }, Nl = { class: "col-span-2" }, Sl = { class: "col-span-2" }, wl = /* @__PURE__ */ Z({
797
- __name: "NTTSubmission",
798
- props: {
799
- submission: {
800
- type: Object,
801
- required: !0
802
- }
803
- },
804
- emits: ["update:submission"],
805
- setup(m, { emit: L }) {
806
- const V = m, k = L, g = se(), q = j(!1), { isLoading: c, startAsyncCall: T } = le(), { fields: a, documents: i, restaurantId: I, profile: v, status: D, statusReason: E } = V.submission, F = j(""), R = [
807
- { key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
808
- {
809
- key: "localCardStandard",
810
- label: "Local Card (Standard)",
811
- defaultValue: "2.3"
812
- },
813
- {
814
- key: "localCardPremium",
815
- label: "Local Card (Premium)",
816
- defaultValue: "2.3"
817
- },
818
- {
819
- key: "localCardSuperPremium",
820
- label: "Local Card (Super Premium)",
821
- defaultValue: "2.3"
822
- },
823
- {
824
- key: "internationalCard",
825
- label: "International Card",
826
- defaultValue: "3.1"
827
- },
828
- { key: "upiCard", label: "UPI Card", defaultValue: "3" },
829
- { key: "jcbCard", label: "JCB Card", defaultValue: "3" },
830
- { key: "dciCard", label: "DCI Card", defaultValue: "3" },
831
- { key: "amexCard", label: "Amex Card", defaultValue: "3" },
832
- { key: "alipay", label: "Alipay", defaultValue: "2.3" },
833
- { key: "alipayPlus", label: "Alipay+", defaultValue: "2.3" },
834
- { key: "trueMoney", label: "TrueMoney", defaultValue: "2.3" },
835
- { key: "shopeePay", label: "ShopeePay", defaultValue: "2.3" },
836
- { key: "linePay", label: "LinePay", defaultValue: "2.1" },
837
- { key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
838
- ], b = Object.fromEntries(
839
- R.map((C) => [C.key, C.defaultValue])
840
- ), B = j(
841
- V.submission.rates ? Object.fromEntries(
842
- Object.entries(V.submission.rates).map(([C, s]) => [C, `${s}`])
843
- ) : { ...b }
844
- ), G = W(
845
- () => Object.values(B.value).every((C) => parseFloat(C) > 0)
846
- ), te = W(() => a.businessType === "juristic" ? "Juristic" : a.businessType === "individual" ? "Individual" : a.businessType || "-"), M = () => T(async () => {
847
- try {
848
- const C = await H.reviewById(
849
- V.submission._id,
850
- {
851
- status: re.FdoOnboardStatus.enum.ready
852
- }
853
- );
854
- k("update:submission", C), g.open({
855
- type: "success",
856
- title: "Submission marked as ready"
857
- });
858
- } catch (C) {
859
- g.open({
860
- type: "error",
861
- title: "Error occurs when marking submission as ready",
862
- message: Q(C)
863
- });
864
- }
865
- }), h = () => T(async () => {
866
- try {
867
- const C = await H.reviewById(
868
- V.submission._id,
869
- {
870
- rates: Object.fromEntries(
871
- R.map((s) => [
872
- s.key,
873
- parseFloat(B.value[s.key])
874
- ])
875
- ),
876
- status: "approved"
877
- }
878
- );
879
- k("update:submission", C), g.open({
880
- type: "success",
881
- title: "Submission updated successfully"
882
- });
883
- } catch (C) {
884
- g.open({
885
- type: "error",
886
- title: "Error occurs when updating submission",
887
- message: Q(C)
888
- });
889
- }
890
- }), Y = () => T(async () => {
891
- try {
892
- const C = await H.reviewById(
893
- V.submission._id,
894
- {
895
- status: "rejected",
896
- statusReason: F.value
897
- }
898
- );
899
- k("update:submission", C), q.value = !1, g.open({
900
- type: "success",
901
- title: "Submission updated successfully"
902
- });
903
- } catch (C) {
904
- g.open({
905
- type: "error",
906
- title: "Error occurs when updating submission",
907
- message: Q(C)
908
- });
909
- }
910
- });
911
- return (C, s) => {
912
- const S = N("FmTextField"), X = N("FmButton"), ae = N("FmTextarea"), ee = N("FmDialog"), y = N("FmPhoneNumber"), l = N("FmForm");
913
- return p(), x(J, null, [
914
- n("div", ll, [
915
- n("div", null, [
916
- s[31] || (s[31] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
917
- n("span", tl, U(e(I)), 1)
918
- ]),
919
- n("div", null, [
920
- s[32] || (s[32] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
921
- n("span", al, U(e(v).name) + " ( " + U(e(v).legalName) + " )", 1)
922
- ]),
923
- n("div", null, [
924
- s[33] || (s[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
925
- n("span", sl, U(e(v).email), 1)
926
- ]),
927
- n("div", null, [
928
- s[34] || (s[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
929
- n("span", nl, U(e(v).phoneNo), 1)
930
- ]),
931
- n("div", null, [
932
- s[35] || (s[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
933
- n("span", ol, [
934
- o(ue, { data: e(D) }, null, 8, ["data"])
935
- ])
936
- ]),
937
- n("div", null, [
938
- s[36] || (s[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
939
- n("span", rl, U(e(E)), 1)
940
- ])
941
- ]),
942
- s[43] || (s[43] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
943
- n("div", il, [
944
- (p(), x(J, null, _(R, (r) => o(S, {
945
- key: r.key,
946
- modelValue: B.value[r.key],
947
- "onUpdate:modelValue": ($) => B.value[r.key] = $,
948
- label: r.label,
949
- "label-mark": "required",
950
- type: "number",
951
- inputmode: "numeric",
952
- decimal: 2,
953
- rules: e(u)(
954
- e(d).string().min(1, "Rate is required").transform(($) => parseFloat($)).refine(($) => !isNaN($), { message: "Rate must be a number" })
955
- )
956
- }, {
957
- append: f(() => [...s[37] || (s[37] = [
958
- z("%", -1)
959
- ])]),
960
- _: 1
961
- }, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
962
- ]),
963
- n("div", ul, [
964
- o(ee, {
965
- modelValue: q.value,
966
- "onUpdate:modelValue": s[1] || (s[1] = (r) => q.value = r)
967
- }, {
968
- "dialog-button": f(() => [
969
- o(X, {
970
- class: "mr-6",
971
- type: "button",
972
- variant: "destructive",
973
- "prepend-icon": "block",
974
- loading: e(c),
975
- label: "Reject Submission"
976
- }, null, 8, ["loading"])
977
- ]),
978
- "dialog-header": f(() => [...s[38] || (s[38] = [
979
- n("div", null, "Rejecting Submission", -1)
980
- ])]),
981
- default: f(() => [
982
- o(ae, {
983
- modelValue: F.value,
984
- "onUpdate:modelValue": s[0] || (s[0] = (r) => F.value = r),
985
- label: "Reason for Rejection",
986
- "label-mark": "optional",
987
- "helper-text": "Please provide a reason for rejection."
988
- }, null, 8, ["modelValue"]),
989
- o(X, {
990
- class: "mb-2 mt-6 w-full",
991
- label: "Submit",
992
- "prepend-icon": "save",
993
- onClick: Y,
994
- loading: e(c)
995
- }, null, 8, ["loading"])
996
- ]),
997
- _: 1
998
- }, 8, ["modelValue"]),
999
- o(X, {
1000
- type: "button",
1001
- variant: "primary",
1002
- "prepend-icon": "approval",
1003
- label: "Approve Submission with Rates",
1004
- disabled: !G.value,
1005
- onClick: h,
1006
- loading: e(c)
1007
- }, null, 8, ["disabled", "loading"]),
1008
- e(D) === "approved" ? (p(), A(X, {
1009
- key: 0,
1010
- type: "button",
1011
- variant: "secondary",
1012
- "prepend-icon": "check_circle",
1013
- label: "Mark as Ready",
1014
- class: "ml-6",
1015
- onClick: M,
1016
- loading: e(c)
1017
- }, null, 8, ["loading"])) : O("", !0)
1018
- ]),
1019
- o(l, { disabled: !0 }, {
1020
- default: f(() => [
1021
- s[39] || (s[39] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
1022
- n("div", dl, [
1023
- n("div", ml, [
1024
- o(S, {
1025
- modelValue: e(a).companyName,
1026
- "onUpdate:modelValue": s[2] || (s[2] = (r) => e(a).companyName = r),
1027
- label: "Company Name",
1028
- "label-mark": "required",
1029
- rules: e(u)(e(d).string().min(1, "Company Name is required"))
1030
- }, null, 8, ["modelValue", "rules"])
1031
- ]),
1032
- n("div", pl, [
1033
- o(S, {
1034
- modelValue: e(a).outletName,
1035
- "onUpdate:modelValue": s[3] || (s[3] = (r) => e(a).outletName = r),
1036
- label: "Outlet Name (Thai)",
1037
- "label-mark": "required",
1038
- rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
1039
- }, null, 8, ["modelValue", "rules"])
1040
- ]),
1041
- n("div", bl, [
1042
- o(S, {
1043
- modelValue: e(a).outletNameEnglish,
1044
- "onUpdate:modelValue": s[4] || (s[4] = (r) => e(a).outletNameEnglish = r),
1045
- label: "Outlet Name (English)",
1046
- "label-mark": "required",
1047
- rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
1048
- }, null, 8, ["modelValue", "rules"])
1049
- ]),
1050
- n("div", cl, [
1051
- o(S, {
1052
- modelValue: e(a).outletAddress,
1053
- "onUpdate:modelValue": s[5] || (s[5] = (r) => e(a).outletAddress = r),
1054
- label: "Outlet Address",
1055
- "label-mark": "required",
1056
- rules: e(u)(e(d).string().min(1, "Outlet Address is required"))
1057
- }, null, 8, ["modelValue", "rules"])
1058
- ]),
1059
- o(S, {
1060
- modelValue: e(a).outletPostCode,
1061
- "onUpdate:modelValue": s[6] || (s[6] = (r) => e(a).outletPostCode = r),
1062
- label: "Post Code",
1063
- "label-mark": "required",
1064
- rules: e(u)(e(d).string().min(1, "Post Code is required"))
1065
- }, null, 8, ["modelValue", "rules"]),
1066
- o(S, {
1067
- modelValue: e(a).outletState,
1068
- "onUpdate:modelValue": s[7] || (s[7] = (r) => e(a).outletState = r),
1069
- label: "State",
1070
- "label-mark": "required",
1071
- rules: e(u)(e(d).string().min(1, "State is required"))
1072
- }, null, 8, ["modelValue", "rules"]),
1073
- o(S, {
1074
- modelValue: e(a).outletCity,
1075
- "onUpdate:modelValue": s[8] || (s[8] = (r) => e(a).outletCity = r),
1076
- label: "City",
1077
- "label-mark": "required",
1078
- rules: e(u)(e(d).string().min(1, "City is required"))
1079
- }, null, 8, ["modelValue", "rules"]),
1080
- o(S, {
1081
- "model-value": te.value,
1082
- label: "Business Type",
1083
- "label-mark": "required"
1084
- }, null, 8, ["model-value"]),
1085
- o(S, {
1086
- modelValue: e(a).numberOfDevices,
1087
- "onUpdate:modelValue": s[9] || (s[9] = (r) => e(a).numberOfDevices = r),
1088
- label: "Number of Devices",
1089
- "label-mark": "required"
1090
- }, null, 8, ["modelValue"])
1091
- ]),
1092
- s[40] || (s[40] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
1093
- n("div", yl, [
1094
- o(S, {
1095
- modelValue: e(a).bankName,
1096
- "onUpdate:modelValue": s[10] || (s[10] = (r) => e(a).bankName = r),
1097
- label: "Bank Name",
1098
- "label-mark": "required",
1099
- rules: e(u)(e(d).string().min(1, "Bank Name is required"))
1100
- }, null, 8, ["modelValue", "rules"]),
1101
- o(S, {
1102
- modelValue: e(a).bankHolderName,
1103
- "onUpdate:modelValue": s[11] || (s[11] = (r) => e(a).bankHolderName = r),
1104
- label: "Bank Holder Name",
1105
- "label-mark": "required",
1106
- rules: e(u)(e(d).string().min(1, "Bank Holder Name is required"))
1107
- }, null, 8, ["modelValue", "rules"]),
1108
- o(S, {
1109
- modelValue: e(a).bankAccountNo,
1110
- "onUpdate:modelValue": s[12] || (s[12] = (r) => e(a).bankAccountNo = r),
1111
- label: "Bank Account No",
1112
- "label-mark": "required",
1113
- rules: e(u)(e(d).string().min(1, "Bank Account No is required"))
1114
- }, null, 8, ["modelValue", "rules"]),
1115
- o(S, {
1116
- modelValue: e(a).bankBranch,
1117
- "onUpdate:modelValue": s[13] || (s[13] = (r) => e(a).bankBranch = r),
1118
- label: "Bank Branch",
1119
- "label-mark": "required",
1120
- rules: e(u)(e(d).string().min(1, "Bank Branch is required"))
1121
- }, null, 8, ["modelValue", "rules"]),
1122
- o(S, {
1123
- modelValue: e(a).bankBranchCode,
1124
- "onUpdate:modelValue": s[14] || (s[14] = (r) => e(a).bankBranchCode = r),
1125
- label: "Bank Branch Code",
1126
- "label-mark": "required",
1127
- rules: e(u)(e(d).string().min(1, "Bank Branch Code is required"))
1128
- }, null, 8, ["modelValue", "rules"])
1129
- ]),
1130
- s[41] || (s[41] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
1131
- n("div", gl, [
1132
- o(P, {
1133
- label: "Authorized Person ID",
1134
- modelValue: e(i).authorizedPersonID,
1135
- "onUpdate:modelValue": s[15] || (s[15] = (r) => e(i).authorizedPersonID = r),
1136
- type: "image",
1137
- "restaurant-id": m.submission.restaurantId
1138
- }, null, 8, ["modelValue", "restaurant-id"]),
1139
- o(P, {
1140
- label: "Outlet Photo",
1141
- modelValue: e(i).outletPhoto,
1142
- "onUpdate:modelValue": s[16] || (s[16] = (r) => e(i).outletPhoto = r),
1143
- type: "image",
1144
- "restaurant-id": m.submission.restaurantId
1145
- }, null, 8, ["modelValue", "restaurant-id"]),
1146
- o(P, {
1147
- label: "Interior Photo",
1148
- modelValue: e(i).interiorPhoto,
1149
- "onUpdate:modelValue": s[17] || (s[17] = (r) => e(i).interiorPhoto = r),
1150
- type: "image",
1151
- "restaurant-id": m.submission.restaurantId
1152
- }, null, 8, ["modelValue", "restaurant-id"]),
1153
- o(P, {
1154
- label: "Bank Statement",
1155
- modelValue: e(i).bankStatement,
1156
- "onUpdate:modelValue": s[18] || (s[18] = (r) => e(i).bankStatement = r),
1157
- type: "pdf",
1158
- "restaurant-id": m.submission.restaurantId
1159
- }, null, 8, ["modelValue", "restaurant-id"]),
1160
- e(a).businessType === "juristic" ? (p(), A(P, {
1161
- key: 0,
1162
- label: "Company Certificate",
1163
- type: "pdf",
1164
- modelValue: e(i).companyCertificate,
1165
- "onUpdate:modelValue": s[19] || (s[19] = (r) => e(i).companyCertificate = r),
1166
- "restaurant-id": m.submission.restaurantId
1167
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
1168
- e(a).businessType === "juristic" ? (p(), A(P, {
1169
- key: 1,
1170
- label: "VAT Certificate",
1171
- type: "pdf",
1172
- modelValue: e(i).vatCertificate,
1173
- "onUpdate:modelValue": s[20] || (s[20] = (r) => e(i).vatCertificate = r),
1174
- "restaurant-id": m.submission.restaurantId
1175
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0),
1176
- e(a).businessType === "individual" ? (p(), A(P, {
1177
- key: 2,
1178
- label: "Commercial Certificate",
1179
- type: "pdf",
1180
- modelValue: e(i).commercialCertificate,
1181
- "onUpdate:modelValue": s[21] || (s[21] = (r) => e(i).commercialCertificate = r),
1182
- "restaurant-id": m.submission.restaurantId
1183
- }, null, 8, ["modelValue", "restaurant-id"])) : O("", !0)
1184
- ]),
1185
- s[42] || (s[42] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
1186
- n("div", vl, [
1187
- n("div", Vl, [
1188
- o(S, {
1189
- modelValue: e(a).picName,
1190
- "onUpdate:modelValue": s[22] || (s[22] = (r) => e(a).picName = r),
1191
- label: "PIC Name",
1192
- "label-mark": "required",
1193
- rules: e(u)(e(d).string().min(1, "PIC Name is required"))
1194
- }, null, 8, ["modelValue", "rules"])
1195
- ]),
1196
- n("div", fl, [
1197
- o(S, {
1198
- modelValue: e(a).picRole,
1199
- "onUpdate:modelValue": s[23] || (s[23] = (r) => e(a).picRole = r),
1200
- label: "PIC Role",
1201
- "label-mark": "required",
1202
- rules: e(u)(e(d).string().min(1, "PIC Role is required"))
1203
- }, null, 8, ["modelValue", "rules"])
1204
- ]),
1205
- n("div", kl, [
1206
- o(S, {
1207
- modelValue: e(a).picEmail,
1208
- "onUpdate:modelValue": s[24] || (s[24] = (r) => e(a).picEmail = r),
1209
- label: "PIC Email",
1210
- "label-mark": "required",
1211
- rules: e(u)(e(d).string().min(1, "PIC Email is required"))
1212
- }, null, 8, ["modelValue", "rules"])
1213
- ]),
1214
- n("div", Cl, [
1215
- o(y, {
1216
- "model-value": e(a).picContact,
1217
- "onUpdate:modelValue": s[25] || (s[25] = (r) => e(a).picContact = r),
1218
- "default-country": "TH",
1219
- label: "PIC Contact",
1220
- "label-mark": "required",
1221
- rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
1222
- }, null, 8, ["model-value", "rules"])
1223
- ]),
1224
- n("div", Nl, [
1225
- o(S, {
1226
- modelValue: e(a).witnessName,
1227
- "onUpdate:modelValue": s[26] || (s[26] = (r) => e(a).witnessName = r),
1228
- label: "Witness Name",
1229
- "label-mark": "required",
1230
- rules: e(u)(e(d).string().min(1, "Witness Name is required"))
1231
- }, null, 8, ["modelValue", "rules"])
1232
- ]),
1233
- n("div", Sl, [
1234
- o(S, {
1235
- modelValue: e(a).witnessRole,
1236
- "onUpdate:modelValue": s[27] || (s[27] = (r) => e(a).witnessRole = r),
1237
- label: "Witness Role",
1238
- "label-mark": "required",
1239
- rules: e(u)(e(d).string().min(1, "Witness Role is required"))
1240
- }, null, 8, ["modelValue", "rules"])
1241
- ]),
1242
- o(P, {
1243
- label: "Signature",
1244
- type: "image",
1245
- modelValue: e(i).signature,
1246
- "onUpdate:modelValue": s[28] || (s[28] = (r) => e(i).signature = r),
1247
- "restaurant-id": m.submission.restaurantId
1248
- }, null, 8, ["modelValue", "restaurant-id"]),
1249
- o(P, {
1250
- label: "Witness Signature",
1251
- type: "image",
1252
- modelValue: e(i).witnessSignature,
1253
- "onUpdate:modelValue": s[29] || (s[29] = (r) => e(i).witnessSignature = r),
1254
- "restaurant-id": m.submission.restaurantId
1255
- }, null, 8, ["modelValue", "restaurant-id"]),
1256
- o(P, {
1257
- label: "Company Stamp",
1258
- type: "image",
1259
- modelValue: e(i).companyStamp,
1260
- "onUpdate:modelValue": s[30] || (s[30] = (r) => e(i).companyStamp = r),
1261
- "restaurant-id": m.submission.restaurantId
1262
- }, null, 8, ["modelValue", "restaurant-id"])
1263
- ])
1264
- ]),
1265
- _: 1
1266
- })
1267
- ], 64);
1268
- };
1269
- }
1270
- }), ql = /* @__PURE__ */ Z({
1271
- __name: "TyroSubmission",
1272
- props: {
1273
- submission: {
1274
- type: Object,
1275
- required: !0
1276
- }
1277
- },
1278
- emits: ["update:submission"],
1279
- setup(m) {
1280
- const L = m, V = W(() => {
1281
- const k = L.submission.fields || {}, g = (q) => k[q] || "N/A";
1282
- return [
1283
- {
1284
- label: "Tyro POS Reference ID",
1285
- value: g("tyroPosReference")
1286
- },
1287
- {
1288
- label: "Tyro Merchant ID",
1289
- value: g("tyroMerchantId")
1290
- },
1291
- {
1292
- label: "Tyro Merchant Name",
1293
- value: g("tyroMerchantDisplayName")
1294
- },
1295
- {
1296
- label: "Authorised",
1297
- value: g("tyroIsAuthorised")
1298
- }
1299
- ];
1300
- });
1301
- return (k, g) => {
1302
- const q = N("FmCardHeader"), c = N("FmCardSection"), T = N("FmCard");
1303
- return p(), A(T, {
1304
- class: "max-w-3xl mt-8 p-6",
1305
- variant: "elevated"
1306
- }, {
1307
- default: f(() => [
1308
- o(c, { class: "flex flex-col gap-16 justify-between" }, {
1309
- default: f(() => [
1310
- o(q, {
1311
- class: "p-0",
1312
- title: "Tyro Authorisation",
1313
- subtitle: ""
1314
- }),
1315
- o(c, { class: "p-0" }, {
1316
- default: f(() => [
1317
- (p(!0), x(J, null, _(V.value, (a) => (p(), x("p", {
1318
- key: a.label,
1319
- class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
1320
- }, [
1321
- n("b", null, U(a.label), 1),
1322
- z(": " + U(a.value), 1)
1323
- ]))), 128))
1324
- ]),
1325
- _: 1
1326
- })
1327
- ]),
1328
- _: 1
1329
- })
1330
- ]),
1331
- _: 1
1332
- });
1333
- };
1334
- }
1335
- }), Fl = {
1336
- key: 0,
1337
- class: "flex items-center justify-center min-h-[80vh]"
1338
- }, Pl = { class: "px-32 pb-32" }, Ml = /* @__PURE__ */ Z({
1339
- __name: "OnboardForm",
1340
- props: {
1341
- submissionId: {
1342
- type: String,
1343
- required: !0
1344
- }
1345
- },
1346
- setup(m) {
1347
- const { startAsyncCall: L, isLoading: V } = le(), k = se(), g = m, q = ge(), c = j(null), T = W(
1348
- () => {
1349
- var E;
1350
- return ((E = c.value) == null ? void 0 : E.type) === re.FdoOnboardType.enum.tyro;
1351
- }
1352
- ), a = () => {
1353
- if (window.history.length > 1) {
1354
- q.back();
1355
- return;
1356
- }
1357
- q.push({ name: "mf-payment-admin.onboard-submission" });
1358
- };
1359
- ce(() => {
1360
- L(async () => {
1361
- c.value = await H.readById(g.submissionId);
1362
- });
1363
- });
1364
- const i = W(() => {
1365
- if (!c.value) return null;
1366
- switch (c.value.type) {
1367
- case "softspace":
1368
- return el;
1369
- case "ntt":
1370
- return wl;
1371
- case "tyro":
1372
- return ql;
1373
- default:
1374
- return null;
1375
- }
1376
- }), I = j(0);
1377
- function v(E) {
1378
- c.value = E, I.value = Date.now();
1379
- }
1380
- const D = async (E) => {
1381
- var F, R;
1382
- if (c.value)
1383
- switch (E) {
1384
- case "preview":
1385
- let b;
1386
- try {
1387
- b = k.open({
1388
- message: "Generating preview document...",
1389
- type: "info"
1390
- }), await H.previewDocument(
1391
- (F = c.value) == null ? void 0 : F._id
1392
- );
1393
- } catch (B) {
1394
- k.open({
1395
- type: "error",
1396
- title: "Error occurs when generating submission document",
1397
- message: Q(B)
1398
- });
1399
- } finally {
1400
- b && k.close(b);
1401
- }
1402
- break;
1403
- case "send":
1404
- try {
1405
- k.open({
1406
- message: "Sending onboarding document...",
1407
- type: "info"
1408
- }), await H.sendDocument(
1409
- (R = c.value) == null ? void 0 : R._id
1410
- ), k.open({
1411
- type: "success",
1412
- title: "Submission documents send successfully"
1413
- });
1414
- } catch (B) {
1415
- k.open({
1416
- type: "error",
1417
- title: "Error occurs when sending document",
1418
- message: Q(B)
1419
- });
1420
- }
1421
- break;
1422
- }
1423
- };
1424
- return (E, F) => {
1425
- var B, G;
1426
- const R = N("FmCircularProgress"), b = N("FmPageHead");
1427
- return e(V) ? (p(), x("div", Fl, [
1428
- o(R, { size: "xxl" })
1429
- ])) : (p(), x(J, { key: 1 }, [
1430
- o(b, {
1431
- title: `Submission - ${(B = c.value) == null ? void 0 : B.type}`,
1432
- description: `ID - ${(G = c.value) == null ? void 0 : G._id}`,
1433
- "back-button": !0,
1434
- "onClick:back": a,
1435
- "onClick:action": D,
1436
- actions: T.value ? [] : [
1437
- {
1438
- label: "Preview Document",
1439
- value: "preview",
1440
- prependIcon: "preview"
1441
- },
1442
- {
1443
- label: "Send for Review",
1444
- value: "send",
1445
- isPrimary: !0,
1446
- prependIcon: "send"
1447
- }
1448
- ]
1449
- }, null, 8, ["title", "description", "actions"]),
1450
- n("div", Pl, [
1451
- (p(), A(ye(i.value), {
1452
- key: I.value,
1453
- submission: c.value,
1454
- "onUpdate:submission": v
1455
- }, null, 40, ["submission"]))
1456
- ])
1457
- ], 64));
1458
- };
1459
- }
1460
- });
1461
- export {
1462
- Ml as default
1463
- };