@feedmepos/mf-payment 1.5.58 → 1.5.59-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.
- package/dist/{OnboardForm-BvNciBBq.js → OnboardForm-JVgZ181b.js} +553 -481
- package/dist/{OnboardForm-9Mj8aGDQ.js → OnboardForm-zsULkQrh.js} +2 -2
- package/dist/{OnboardSubmission-DvWwQFy6.js → OnboardSubmission-BvUrpOC3.js} +336 -121
- package/dist/{OnboardSubmission-C2BYK2p1.js → OnboardSubmission-CR6o2zIK.js} +25 -25
- package/dist/{PayoutAccount-RW2zIZFf.js → PayoutAccount-3zLhh0ti.js} +1 -1
- package/dist/{PayoutAccount-DJaJFWll.js → PayoutAccount-B42ffsVM.js} +1 -1
- package/dist/{Terminal-Sfe6Nf9j.js → Terminal-DqSu2QTe.js} +1 -1
- package/dist/TerminalSetting-BCVX0Jdf.js +2102 -0
- package/dist/{Transaction-hVVgSn4x.js → Transaction-Cuh4qbT0.js} +1 -1
- package/dist/api/onboard-submission/index.d.ts +13 -0
- package/dist/api/terminal/index.d.ts +1 -0
- package/dist/{app-D0z9X0sH.js → app-B9xMyKhl.js} +270 -211
- package/dist/app.js +1 -1
- package/dist/composable/async-poller/index.d.ts +22 -0
- package/dist/index-BteYHCd3.js +63 -0
- package/dist/{index-CnN_MV2-.js → index-CQI_8W1T.js} +23 -8
- package/dist/index-MdV54cWO.js +58 -0
- package/dist/package.json +2 -2
- package/dist/{payout-account-DhM0zCjO.js → payout-account-BkGj6HJy.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +81 -0
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/tabs/useTyroSoftposGateway.d.ts +10 -0
- package/dist/views/onboard-submission/tyro-submission-polling.d.ts +27 -0
- package/package.json +1 -1
- package/dist/TerminalSetting-KjacSx_V.js +0 -1958
- package/dist/index-XTdSN6CV.js +0 -60
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { u as Z, p as
|
|
1
|
+
import { defineComponent as Q, ref as j, computed as W, resolveComponent as C, openBlock as V, createElementBlock as O, createElementVNode as o, toDisplayString as U, createBlock as D, withCtx as g, createCommentVNode as $, createVNode as n, unref as e, Fragment as Y, createTextVNode as L, renderList as _, onMounted as oe, resolveDynamicComponent as ne } from "vue";
|
|
2
|
+
import { o as M } from "./index-CQI_8W1T.js";
|
|
3
|
+
import { u as Z, p as ee } from "./index-D0j1LZAB.js";
|
|
4
4
|
import { useRouter as re } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-DzjyJnvv.js";
|
|
6
|
-
import { P as ie } from "./payout-account-
|
|
7
|
-
import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js";
|
|
6
|
+
import { P as ie } from "./payout-account-BkGj6HJy.js";
|
|
7
|
+
import { _ as le } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-KebV8Zws.js";
|
|
8
8
|
import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
9
|
-
import { _ as
|
|
9
|
+
import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-CUnCf_fx.js";
|
|
10
10
|
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
11
|
-
import { u as
|
|
12
|
-
const de = ["src"], w = /* @__PURE__ */
|
|
11
|
+
import { u as z } from "./error-K1CakhA9.js";
|
|
12
|
+
const de = ["src"], w = /* @__PURE__ */ Q({
|
|
13
13
|
__name: "UploadButton",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {},
|
|
@@ -19,44 +19,44 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(p, { emit: A }) {
|
|
22
|
-
const
|
|
22
|
+
const N = p, v = j(N.modelValue), y = A, P = (a) => {
|
|
23
23
|
const i = new FileReader();
|
|
24
|
-
i.onload = (
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
}, i.readAsDataURL(
|
|
28
|
-
},
|
|
29
|
-
window.open(
|
|
30
|
-
}, I =
|
|
31
|
-
return (
|
|
32
|
-
const
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
i.onload = (R) => {
|
|
25
|
+
var c;
|
|
26
|
+
v.value = (c = R.target) == null ? void 0 : c.result, y("update:modelValue", a);
|
|
27
|
+
}, i.readAsDataURL(a);
|
|
28
|
+
}, b = (a) => {
|
|
29
|
+
window.open(a, "_blank", "noopener,noreferrer");
|
|
30
|
+
}, I = W(() => N.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
|
|
31
|
+
return (a, i) => {
|
|
32
|
+
const R = C("FmButton"), c = C("FmDropField");
|
|
33
|
+
return V(), O("div", null, [
|
|
34
|
+
o("p", null, U(p.label), 1),
|
|
35
|
+
v.value ? (V(), D(le, {
|
|
36
36
|
key: 0,
|
|
37
|
-
document:
|
|
37
|
+
document: v.value,
|
|
38
38
|
"restaurant-id": p.restaurantId
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
p.type === "image" ? (
|
|
40
|
+
default: g(({ src: F }) => [
|
|
41
|
+
p.type === "image" ? (V(), O("img", {
|
|
42
42
|
key: 0,
|
|
43
|
-
src:
|
|
43
|
+
src: F
|
|
44
44
|
}, null, 8, de)) : $("", !0),
|
|
45
|
-
p.type === "pdf" ? (
|
|
45
|
+
p.type === "pdf" ? (V(), D(R, {
|
|
46
46
|
key: 1,
|
|
47
47
|
class: "mt-4 w-full",
|
|
48
48
|
"prepend-icon": "manage_accounts",
|
|
49
49
|
label: "View Document",
|
|
50
50
|
variant: "primary",
|
|
51
|
-
onVnodeMounted: () =>
|
|
52
|
-
onClick: () =>
|
|
51
|
+
onVnodeMounted: () => b(F),
|
|
52
|
+
onClick: () => b(F)
|
|
53
53
|
}, null, 8, ["onVnodeMounted", "onClick"])) : $("", !0)
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
}, 8, ["document", "restaurant-id"])) : (
|
|
56
|
+
}, 8, ["document", "restaurant-id"])) : (V(), D(c, {
|
|
57
57
|
key: 1,
|
|
58
58
|
accept: I.value,
|
|
59
|
-
onFileUpload:
|
|
59
|
+
onFileUpload: P
|
|
60
60
|
}, null, 8, ["accept"]))
|
|
61
61
|
]);
|
|
62
62
|
};
|
|
@@ -64,7 +64,7 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
64
64
|
}), me = ["src"], pe = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "text-center text-red-700 py-4"
|
|
67
|
-
}, be = { class: "flex justify-evenly py-3" }, ce = /* @__PURE__ */
|
|
67
|
+
}, be = { class: "flex justify-evenly py-3" }, ce = /* @__PURE__ */ Q({
|
|
68
68
|
__name: "SignatureBoard",
|
|
69
69
|
props: {
|
|
70
70
|
modelValue: {},
|
|
@@ -73,72 +73,72 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:modelValue"],
|
|
75
75
|
setup(p, { emit: A }) {
|
|
76
|
-
const
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
const
|
|
80
|
-
let m =
|
|
81
|
-
const
|
|
76
|
+
const N = p, v = A, y = j(N.modelValue), P = j(!1), b = j(), I = j(!1);
|
|
77
|
+
function a(R, c) {
|
|
78
|
+
var x;
|
|
79
|
+
const F = R.split(","), B = ((x = F[0].match(/:(.*?);/)) == null ? void 0 : x[1]) || "", q = atob(F[1]);
|
|
80
|
+
let m = q.length;
|
|
81
|
+
const E = new Uint8Array(m);
|
|
82
82
|
for (; m--; )
|
|
83
|
-
|
|
84
|
-
return new File([
|
|
83
|
+
E[m] = q.charCodeAt(m);
|
|
84
|
+
return new File([E], c, { type: B });
|
|
85
85
|
}
|
|
86
86
|
const i = function() {
|
|
87
|
-
const { isEmpty:
|
|
88
|
-
if (
|
|
89
|
-
return
|
|
90
|
-
|
|
87
|
+
const { isEmpty: R, data: c } = b.value.saveSignature();
|
|
88
|
+
if (R)
|
|
89
|
+
return P.value = !0;
|
|
90
|
+
y.value = c, I.value = !1, v("update:modelValue", a(c, "signature.png"));
|
|
91
91
|
};
|
|
92
|
-
return (
|
|
93
|
-
const
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
return (R, c) => {
|
|
93
|
+
const F = C("FmButton"), B = C("FmDialog");
|
|
94
|
+
return V(), O("div", null, [
|
|
95
|
+
o("p", null, U(p.label), 1),
|
|
96
|
+
y.value ? (V(), D(le, {
|
|
97
97
|
key: 0,
|
|
98
|
-
document:
|
|
98
|
+
document: y.value,
|
|
99
99
|
"restaurant-id": p.restaurantId
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
|
|
103
|
-
src:
|
|
101
|
+
default: g(({ src: q }) => [
|
|
102
|
+
o("img", {
|
|
103
|
+
src: q,
|
|
104
104
|
alt: "Signature Preview",
|
|
105
105
|
class: "w-full h-auto"
|
|
106
106
|
}, null, 8, me)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["document", "restaurant-id"])) : $("", !0),
|
|
110
|
-
|
|
110
|
+
y.value ? $("", !0) : (V(), D(B, {
|
|
111
111
|
key: 1,
|
|
112
112
|
modelValue: I.value,
|
|
113
|
-
"onUpdate:modelValue":
|
|
113
|
+
"onUpdate:modelValue": c[1] || (c[1] = (q) => I.value = q)
|
|
114
114
|
}, {
|
|
115
|
-
"dialog-button":
|
|
116
|
-
|
|
115
|
+
"dialog-button": g(() => [
|
|
116
|
+
n(F, {
|
|
117
117
|
"prepend-icon": "signature",
|
|
118
118
|
class: "w-full",
|
|
119
119
|
label: "Signature"
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
|
-
"dialog-header":
|
|
123
|
-
|
|
122
|
+
"dialog-header": g(() => [...c[2] || (c[2] = [
|
|
123
|
+
o("div", null, "Signature Board", -1)
|
|
124
124
|
])]),
|
|
125
|
-
default:
|
|
126
|
-
|
|
125
|
+
default: g(() => [
|
|
126
|
+
n(e(ue), {
|
|
127
127
|
ref_key: "signaturePad",
|
|
128
|
-
ref:
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
P.value ? (V(), O("p", pe, " Please sign your signature before saving. ")) : $("", !0),
|
|
134
|
+
o("div", be, [
|
|
135
|
+
n(F, {
|
|
136
136
|
variant: "destructive",
|
|
137
137
|
label: "Clear",
|
|
138
138
|
"prepend-icon": "delete",
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: c[0] || (c[0] = (q) => b.value.clearSignature())
|
|
140
140
|
}),
|
|
141
|
-
|
|
141
|
+
n(F, {
|
|
142
142
|
label: "Save",
|
|
143
143
|
"prepend-icon": "save",
|
|
144
144
|
onClick: i
|
|
@@ -150,7 +150,7 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}), ye = { class: "space-y-2" }, ge = { class: "text-gray-900" }, Ve = { class: "text-gray-900" }, ve = { class: "text-gray-900" }, fe = { class: "text-gray-900" }, ke = { class: "text-gray-900" }, Ce = { class: "text-gray-900" }, Ne = { class: "mt-6 grid grid-cols-4 gap-24" }, Se = { class: "w-full flex justify-end mt-6" }, Pe = { class: "mt-6 grid grid-cols-4 gap-24" }, qe = { class: "col-span-2" },
|
|
153
|
+
}), ye = { class: "space-y-2" }, ge = { class: "text-gray-900" }, Ve = { class: "text-gray-900" }, ve = { class: "text-gray-900" }, fe = { class: "text-gray-900" }, ke = { class: "text-gray-900" }, Ce = { class: "text-gray-900" }, Ne = { class: "mt-6 grid grid-cols-4 gap-24" }, Se = { class: "w-full flex justify-end mt-6" }, Pe = { class: "mt-6 grid grid-cols-4 gap-24" }, qe = { class: "col-span-2" }, Fe = { class: "col-span-2" }, we = { class: "col-span-2" }, Ie = { class: "col-span-2" }, xe = { class: "col-span-2" }, Ue = { class: "col-span-2" }, Re = { class: "col-start-1 col-span-2" }, Be = { class: "col-span-2" }, Te = { class: "col-span-2" }, je = { class: "col-span-2" }, De = { class: "mt-6 grid grid-cols-4 gap-24" }, Ee = { class: "mt-6 grid grid-cols-2 gap-24" }, Ae = /* @__PURE__ */ Q({
|
|
154
154
|
__name: "SoftspaceSubmission",
|
|
155
155
|
props: {
|
|
156
156
|
submission: {
|
|
@@ -160,9 +160,9 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
160
160
|
},
|
|
161
161
|
emits: ["update:submission"],
|
|
162
162
|
setup(p, { emit: A }) {
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
Object.entries(
|
|
163
|
+
const N = p, v = A, y = h(), P = j(!1), { isLoading: b, startAsyncCall: I } = Z(), { fields: a, documents: i, restaurantId: R, profile: c, status: F, statusReason: B } = N.submission, q = j(""), m = j(
|
|
164
|
+
N.submission.rates ? Object.fromEntries(
|
|
165
|
+
Object.entries(N.submission.rates).map(([T, l]) => [T, `${l}`])
|
|
166
166
|
) : {
|
|
167
167
|
duitNow: "0.8",
|
|
168
168
|
mydebitCard: "0.5",
|
|
@@ -172,12 +172,12 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
172
172
|
jcbStandard: "2.2",
|
|
173
173
|
jcbPlatinum: "2.2"
|
|
174
174
|
}
|
|
175
|
-
),
|
|
176
|
-
() => Object.values(m.value).every((
|
|
177
|
-
),
|
|
175
|
+
), E = W(
|
|
176
|
+
() => Object.values(m.value).every((T) => parseFloat(T) > 0)
|
|
177
|
+
), x = () => I(async () => {
|
|
178
178
|
try {
|
|
179
|
-
const
|
|
180
|
-
|
|
179
|
+
const T = await M.reviewById(
|
|
180
|
+
N.submission._id,
|
|
181
181
|
{
|
|
182
182
|
rates: {
|
|
183
183
|
duitNow: parseFloat(m.value.duitNow),
|
|
@@ -191,265 +191,265 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
191
191
|
status: "approved"
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
|
-
|
|
194
|
+
v("update:submission", T), P.value = !1, y.open({
|
|
195
195
|
type: "success",
|
|
196
196
|
title: "Submission updated successfully"
|
|
197
197
|
});
|
|
198
|
-
} catch (
|
|
199
|
-
|
|
198
|
+
} catch (T) {
|
|
199
|
+
y.open({
|
|
200
200
|
type: "error",
|
|
201
201
|
title: "Error occurs when updating submission",
|
|
202
|
-
message:
|
|
202
|
+
message: z(T)
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
}),
|
|
205
|
+
}), J = () => I(async () => {
|
|
206
206
|
try {
|
|
207
|
-
const
|
|
208
|
-
|
|
207
|
+
const T = await M.reviewById(
|
|
208
|
+
N.submission._id,
|
|
209
209
|
{
|
|
210
210
|
status: "rejected",
|
|
211
|
-
statusReason:
|
|
211
|
+
statusReason: q.value
|
|
212
212
|
}
|
|
213
213
|
);
|
|
214
|
-
|
|
214
|
+
v("update:submission", T), P.value = !1, y.open({
|
|
215
215
|
type: "success",
|
|
216
216
|
title: "Submission updated successfully"
|
|
217
217
|
});
|
|
218
|
-
} catch (
|
|
219
|
-
|
|
218
|
+
} catch (T) {
|
|
219
|
+
y.open({
|
|
220
220
|
type: "error",
|
|
221
221
|
title: "Error occurs when updating submission",
|
|
222
|
-
message:
|
|
222
|
+
message: z(T)
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
|
-
return (
|
|
227
|
-
const
|
|
228
|
-
return
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
l[33] || (l[33] =
|
|
232
|
-
|
|
226
|
+
return (T, l) => {
|
|
227
|
+
const f = C("FmTextField"), G = C("FmButton"), S = C("FmTextarea"), t = C("FmDialog"), k = C("FmPhoneNumber"), H = C("FmSelect"), X = C("FmForm");
|
|
228
|
+
return V(), O(Y, null, [
|
|
229
|
+
o("div", ye, [
|
|
230
|
+
o("div", null, [
|
|
231
|
+
l[33] || (l[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
232
|
+
o("span", ge, U(e(R)), 1)
|
|
233
233
|
]),
|
|
234
|
-
|
|
235
|
-
l[34] || (l[34] =
|
|
236
|
-
|
|
234
|
+
o("div", null, [
|
|
235
|
+
l[34] || (l[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
236
|
+
o("span", Ve, U(e(c).name) + " ( " + U(e(c).legalName) + " )", 1)
|
|
237
237
|
]),
|
|
238
|
-
|
|
239
|
-
l[35] || (l[35] =
|
|
240
|
-
|
|
238
|
+
o("div", null, [
|
|
239
|
+
l[35] || (l[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
240
|
+
o("span", ve, U(e(c).email), 1)
|
|
241
241
|
]),
|
|
242
|
-
|
|
243
|
-
l[36] || (l[36] =
|
|
244
|
-
|
|
242
|
+
o("div", null, [
|
|
243
|
+
l[36] || (l[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
244
|
+
o("span", fe, U(e(c).phoneNo), 1)
|
|
245
245
|
]),
|
|
246
|
-
|
|
247
|
-
l[37] || (l[37] =
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
o("div", null, [
|
|
247
|
+
l[37] || (l[37] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
248
|
+
o("span", ke, [
|
|
249
|
+
n(ae, { data: e(F) }, null, 8, ["data"])
|
|
250
250
|
])
|
|
251
251
|
]),
|
|
252
|
-
|
|
253
|
-
l[38] || (l[38] =
|
|
254
|
-
|
|
252
|
+
o("div", null, [
|
|
253
|
+
l[38] || (l[38] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
254
|
+
o("span", Ce, U(e(B)), 1)
|
|
255
255
|
])
|
|
256
256
|
]),
|
|
257
|
-
l[50] || (l[50] =
|
|
258
|
-
|
|
259
|
-
|
|
257
|
+
l[50] || (l[50] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
258
|
+
o("div", Ne, [
|
|
259
|
+
n(f, {
|
|
260
260
|
modelValue: m.value.duitNow,
|
|
261
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
261
|
+
"onUpdate:modelValue": l[0] || (l[0] = (s) => m.value.duitNow = s),
|
|
262
262
|
label: "DuitNow QR",
|
|
263
263
|
"label-mark": "required",
|
|
264
264
|
type: "number",
|
|
265
265
|
inputmode: "numeric",
|
|
266
266
|
decimal: 2,
|
|
267
267
|
rules: e(u)(
|
|
268
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
268
|
+
e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
|
|
269
269
|
)
|
|
270
270
|
}, {
|
|
271
|
-
append:
|
|
271
|
+
append: g(() => [...l[39] || (l[39] = [
|
|
272
272
|
L("%", -1)
|
|
273
273
|
])]),
|
|
274
274
|
_: 1
|
|
275
275
|
}, 8, ["modelValue", "rules"]),
|
|
276
|
-
|
|
276
|
+
n(f, {
|
|
277
277
|
modelValue: m.value.mydebitCard,
|
|
278
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
278
|
+
"onUpdate:modelValue": l[1] || (l[1] = (s) => m.value.mydebitCard = s),
|
|
279
279
|
label: "myDebit Card",
|
|
280
280
|
"label-mark": "required",
|
|
281
281
|
type: "number",
|
|
282
282
|
inputmode: "numeric",
|
|
283
283
|
decimal: 2,
|
|
284
284
|
rules: e(u)(
|
|
285
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
285
|
+
e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
|
|
286
286
|
)
|
|
287
287
|
}, {
|
|
288
|
-
append:
|
|
288
|
+
append: g(() => [...l[40] || (l[40] = [
|
|
289
289
|
L("%", -1)
|
|
290
290
|
])]),
|
|
291
291
|
_: 1
|
|
292
292
|
}, 8, ["modelValue", "rules"]),
|
|
293
|
-
|
|
293
|
+
n(f, {
|
|
294
294
|
modelValue: m.value.localDebit,
|
|
295
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
295
|
+
"onUpdate:modelValue": l[2] || (l[2] = (s) => m.value.localDebit = s),
|
|
296
296
|
label: "Local Debit Card",
|
|
297
297
|
"label-mark": "required",
|
|
298
298
|
type: "number",
|
|
299
299
|
inputmode: "numeric",
|
|
300
300
|
decimal: 2,
|
|
301
301
|
rules: e(u)(
|
|
302
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
302
|
+
e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
|
|
303
303
|
)
|
|
304
304
|
}, {
|
|
305
|
-
append:
|
|
305
|
+
append: g(() => [...l[41] || (l[41] = [
|
|
306
306
|
L("%", -1)
|
|
307
307
|
])]),
|
|
308
308
|
_: 1
|
|
309
309
|
}, 8, ["modelValue", "rules"]),
|
|
310
|
-
|
|
310
|
+
n(f, {
|
|
311
311
|
modelValue: m.value.localCredit,
|
|
312
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
312
|
+
"onUpdate:modelValue": l[3] || (l[3] = (s) => m.value.localCredit = s),
|
|
313
313
|
label: "Local Credit Card",
|
|
314
314
|
"label-mark": "required",
|
|
315
315
|
type: "number",
|
|
316
316
|
inputmode: "numeric",
|
|
317
317
|
decimal: 2,
|
|
318
318
|
rules: e(u)(
|
|
319
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
319
|
+
e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
|
|
320
320
|
)
|
|
321
321
|
}, {
|
|
322
|
-
append:
|
|
322
|
+
append: g(() => [...l[42] || (l[42] = [
|
|
323
323
|
L("%", -1)
|
|
324
324
|
])]),
|
|
325
325
|
_: 1
|
|
326
326
|
}, 8, ["modelValue", "rules"]),
|
|
327
|
-
|
|
327
|
+
n(f, {
|
|
328
328
|
modelValue: m.value.foreignCard,
|
|
329
|
-
"onUpdate:modelValue": l[4] || (l[4] = (
|
|
329
|
+
"onUpdate:modelValue": l[4] || (l[4] = (s) => m.value.foreignCard = s),
|
|
330
330
|
label: "Foreign Card",
|
|
331
331
|
"label-mark": "required",
|
|
332
332
|
type: "number",
|
|
333
333
|
inputmode: "numeric",
|
|
334
334
|
decimal: 2,
|
|
335
335
|
rules: e(u)(
|
|
336
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
336
|
+
e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
|
|
337
337
|
)
|
|
338
338
|
}, {
|
|
339
|
-
append:
|
|
339
|
+
append: g(() => [...l[43] || (l[43] = [
|
|
340
340
|
L("%", -1)
|
|
341
341
|
])]),
|
|
342
342
|
_: 1
|
|
343
343
|
}, 8, ["modelValue", "rules"]),
|
|
344
|
-
|
|
344
|
+
n(f, {
|
|
345
345
|
modelValue: m.value.jcbStandard,
|
|
346
|
-
"onUpdate:modelValue": l[5] || (l[5] = (
|
|
346
|
+
"onUpdate:modelValue": l[5] || (l[5] = (s) => m.value.jcbStandard = s),
|
|
347
347
|
label: "JCB Standard",
|
|
348
348
|
"label-mark": "required",
|
|
349
349
|
type: "number",
|
|
350
350
|
inputmode: "numeric",
|
|
351
351
|
decimal: 2,
|
|
352
352
|
rules: e(u)(
|
|
353
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
353
|
+
e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
|
|
354
354
|
)
|
|
355
355
|
}, {
|
|
356
|
-
append:
|
|
356
|
+
append: g(() => [...l[44] || (l[44] = [
|
|
357
357
|
L("%", -1)
|
|
358
358
|
])]),
|
|
359
359
|
_: 1
|
|
360
360
|
}, 8, ["modelValue", "rules"]),
|
|
361
|
-
|
|
361
|
+
n(f, {
|
|
362
362
|
modelValue: m.value.jcbPlatinum,
|
|
363
|
-
"onUpdate:modelValue": l[6] || (l[6] = (
|
|
363
|
+
"onUpdate:modelValue": l[6] || (l[6] = (s) => m.value.jcbPlatinum = s),
|
|
364
364
|
label: "JCB Platinum",
|
|
365
365
|
"label-mark": "required",
|
|
366
366
|
type: "number",
|
|
367
367
|
inputmode: "numeric",
|
|
368
368
|
decimal: 2,
|
|
369
369
|
rules: e(u)(
|
|
370
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
370
|
+
e(d).string().min(1, "Rate is required").transform((s) => parseFloat(s)).refine((s) => !isNaN(s), { message: "Rate must be a number" })
|
|
371
371
|
)
|
|
372
372
|
}, {
|
|
373
|
-
append:
|
|
373
|
+
append: g(() => [...l[45] || (l[45] = [
|
|
374
374
|
L("%", -1)
|
|
375
375
|
])]),
|
|
376
376
|
_: 1
|
|
377
377
|
}, 8, ["modelValue", "rules"])
|
|
378
378
|
]),
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
modelValue:
|
|
382
|
-
"onUpdate:modelValue": l[8] || (l[8] = (
|
|
379
|
+
o("div", Se, [
|
|
380
|
+
n(t, {
|
|
381
|
+
modelValue: P.value,
|
|
382
|
+
"onUpdate:modelValue": l[8] || (l[8] = (s) => P.value = s)
|
|
383
383
|
}, {
|
|
384
|
-
"dialog-button":
|
|
385
|
-
|
|
384
|
+
"dialog-button": g(() => [
|
|
385
|
+
n(G, {
|
|
386
386
|
class: "mr-6",
|
|
387
387
|
type: "button",
|
|
388
388
|
variant: "destructive",
|
|
389
389
|
"prepend-icon": "block",
|
|
390
|
-
loading: e(
|
|
390
|
+
loading: e(b),
|
|
391
391
|
label: "Reject Submission"
|
|
392
392
|
}, null, 8, ["loading"])
|
|
393
393
|
]),
|
|
394
|
-
"dialog-header":
|
|
395
|
-
|
|
394
|
+
"dialog-header": g(() => [...l[46] || (l[46] = [
|
|
395
|
+
o("div", null, "Rejecting Submission", -1)
|
|
396
396
|
])]),
|
|
397
|
-
default:
|
|
398
|
-
|
|
399
|
-
modelValue:
|
|
400
|
-
"onUpdate:modelValue": l[7] || (l[7] = (
|
|
397
|
+
default: g(() => [
|
|
398
|
+
n(S, {
|
|
399
|
+
modelValue: q.value,
|
|
400
|
+
"onUpdate:modelValue": l[7] || (l[7] = (s) => q.value = s),
|
|
401
401
|
label: "Reason for Rejection",
|
|
402
402
|
"label-mark": "optional",
|
|
403
403
|
"helper-text": "Please provide a reason for rejection."
|
|
404
404
|
}, null, 8, ["modelValue"]),
|
|
405
|
-
|
|
405
|
+
n(G, {
|
|
406
406
|
class: "mb-2 mt-6 w-full",
|
|
407
407
|
label: "Submit",
|
|
408
408
|
"prepend-icon": "save",
|
|
409
|
-
onClick:
|
|
410
|
-
loading: e(
|
|
409
|
+
onClick: J,
|
|
410
|
+
loading: e(b)
|
|
411
411
|
}, null, 8, ["loading"])
|
|
412
412
|
]),
|
|
413
413
|
_: 1
|
|
414
414
|
}, 8, ["modelValue"]),
|
|
415
|
-
|
|
415
|
+
n(G, {
|
|
416
416
|
type: "button",
|
|
417
417
|
variant: "primary",
|
|
418
418
|
"prepend-icon": "approval",
|
|
419
|
-
disabled: !
|
|
419
|
+
disabled: !E.value,
|
|
420
420
|
label: "Approve Submission with Rates",
|
|
421
|
-
onClick:
|
|
422
|
-
loading: e(
|
|
421
|
+
onClick: x,
|
|
422
|
+
loading: e(b)
|
|
423
423
|
}, null, 8, ["disabled", "loading"])
|
|
424
424
|
]),
|
|
425
|
-
|
|
426
|
-
default:
|
|
427
|
-
l[47] || (l[47] =
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
modelValue: e(
|
|
432
|
-
"onUpdate:modelValue": l[9] || (l[9] = (
|
|
425
|
+
n(X, { disabled: !0 }, {
|
|
426
|
+
default: g(() => [
|
|
427
|
+
l[47] || (l[47] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
428
|
+
o("div", Pe, [
|
|
429
|
+
o("div", qe, [
|
|
430
|
+
n(f, {
|
|
431
|
+
modelValue: e(a).picName,
|
|
432
|
+
"onUpdate:modelValue": l[9] || (l[9] = (s) => e(a).picName = s),
|
|
433
433
|
label: "PIC Name",
|
|
434
434
|
placeholder: "Enter your name",
|
|
435
435
|
"label-mark": "required",
|
|
436
436
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
437
437
|
}, null, 8, ["modelValue", "rules"])
|
|
438
438
|
]),
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
modelValue: e(
|
|
442
|
-
"onUpdate:modelValue": l[10] || (l[10] = (
|
|
439
|
+
o("div", Fe, [
|
|
440
|
+
n(f, {
|
|
441
|
+
modelValue: e(a).picRole,
|
|
442
|
+
"onUpdate:modelValue": l[10] || (l[10] = (s) => e(a).picRole = s),
|
|
443
443
|
label: "PIC Role",
|
|
444
444
|
placeholder: "Enter your role",
|
|
445
445
|
"label-mark": "required",
|
|
446
446
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
447
447
|
}, null, 8, ["modelValue", "rules"])
|
|
448
448
|
]),
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
modelValue: e(
|
|
452
|
-
"onUpdate:modelValue": l[11] || (l[11] = (
|
|
449
|
+
o("div", we, [
|
|
450
|
+
n(f, {
|
|
451
|
+
modelValue: e(a).picEmail,
|
|
452
|
+
"onUpdate:modelValue": l[11] || (l[11] = (s) => e(a).picEmail = s),
|
|
453
453
|
label: "PIC Email",
|
|
454
454
|
type: "email",
|
|
455
455
|
placeholder: "Enter your email address",
|
|
@@ -457,64 +457,64 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
457
457
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
458
458
|
}, null, 8, ["modelValue", "rules"])
|
|
459
459
|
]),
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
"model-value": e(
|
|
463
|
-
"onUpdate:modelValue": l[12] || (l[12] = (
|
|
460
|
+
o("div", Ie, [
|
|
461
|
+
n(k, {
|
|
462
|
+
"model-value": e(a).picContact,
|
|
463
|
+
"onUpdate:modelValue": l[12] || (l[12] = (s) => e(a).picContact = s),
|
|
464
464
|
"default-country": "MY",
|
|
465
465
|
label: "PIC Contact",
|
|
466
466
|
"label-mark": "required",
|
|
467
467
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
468
468
|
}, null, 8, ["model-value", "rules"])
|
|
469
469
|
]),
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
modelValue: e(
|
|
473
|
-
"onUpdate:modelValue": l[13] || (l[13] = (
|
|
470
|
+
o("div", xe, [
|
|
471
|
+
n(f, {
|
|
472
|
+
modelValue: e(a).outletName,
|
|
473
|
+
"onUpdate:modelValue": l[13] || (l[13] = (s) => e(a).outletName = s),
|
|
474
474
|
label: "Outlet Name",
|
|
475
475
|
placeholder: "Enter outlet name",
|
|
476
476
|
"label-mark": "required",
|
|
477
477
|
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
|
478
478
|
}, null, 8, ["modelValue", "rules"])
|
|
479
479
|
]),
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
modelValue: e(
|
|
483
|
-
"onUpdate:modelValue": l[14] || (l[14] = (
|
|
480
|
+
o("div", Ue, [
|
|
481
|
+
n(f, {
|
|
482
|
+
modelValue: e(a).outletAddress,
|
|
483
|
+
"onUpdate:modelValue": l[14] || (l[14] = (s) => e(a).outletAddress = s),
|
|
484
484
|
label: "Outlet Address",
|
|
485
485
|
placeholder: "Enter outlet address",
|
|
486
486
|
"label-mark": "required",
|
|
487
487
|
rules: e(u)(e(d).string().min(1, "Address is required"))
|
|
488
488
|
}, null, 8, ["modelValue", "rules"])
|
|
489
489
|
]),
|
|
490
|
-
|
|
491
|
-
modelValue: e(
|
|
492
|
-
"onUpdate:modelValue": l[15] || (l[15] = (
|
|
490
|
+
n(f, {
|
|
491
|
+
modelValue: e(a).outletPostCode,
|
|
492
|
+
"onUpdate:modelValue": l[15] || (l[15] = (s) => e(a).outletPostCode = s),
|
|
493
493
|
label: "Postal Code",
|
|
494
494
|
placeholder: "Enter postal code",
|
|
495
495
|
"label-mark": "required",
|
|
496
496
|
rules: e(u)(e(d).string().min(1, "Postal Code is required"))
|
|
497
497
|
}, null, 8, ["modelValue", "rules"]),
|
|
498
|
-
|
|
499
|
-
modelValue: e(
|
|
500
|
-
"onUpdate:modelValue": l[16] || (l[16] = (
|
|
498
|
+
n(f, {
|
|
499
|
+
modelValue: e(a).outletState,
|
|
500
|
+
"onUpdate:modelValue": l[16] || (l[16] = (s) => e(a).outletState = s),
|
|
501
501
|
label: "State",
|
|
502
502
|
placeholder: "Enter state",
|
|
503
503
|
"label-mark": "required",
|
|
504
504
|
rules: e(u)(e(d).string().min(1, "State is required"))
|
|
505
505
|
}, null, 8, ["modelValue", "rules"]),
|
|
506
|
-
|
|
507
|
-
modelValue: e(
|
|
508
|
-
"onUpdate:modelValue": l[17] || (l[17] = (
|
|
506
|
+
n(f, {
|
|
507
|
+
modelValue: e(a).outletCity,
|
|
508
|
+
"onUpdate:modelValue": l[17] || (l[17] = (s) => e(a).outletCity = s),
|
|
509
509
|
label: "City",
|
|
510
510
|
placeholder: "Enter city",
|
|
511
511
|
"label-mark": "required",
|
|
512
512
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
513
513
|
}, null, 8, ["modelValue", "rules"]),
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
modelValue: e(
|
|
517
|
-
"onUpdate:modelValue": l[18] || (l[18] = (
|
|
514
|
+
o("div", Re, [
|
|
515
|
+
n(H, {
|
|
516
|
+
modelValue: e(a).businessType,
|
|
517
|
+
"onUpdate:modelValue": l[18] || (l[18] = (s) => e(a).businessType = s),
|
|
518
518
|
label: "Type",
|
|
519
519
|
placeholder: "Select business type",
|
|
520
520
|
"label-mark": "required",
|
|
@@ -533,121 +533,121 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
533
533
|
]
|
|
534
534
|
}, null, 8, ["modelValue", "rules"])
|
|
535
535
|
]),
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
modelValue: e(
|
|
539
|
-
"onUpdate:modelValue": l[19] || (l[19] = (
|
|
536
|
+
o("div", Be, [
|
|
537
|
+
n(f, {
|
|
538
|
+
modelValue: e(a).businessRegNo,
|
|
539
|
+
"onUpdate:modelValue": l[19] || (l[19] = (s) => e(a).businessRegNo = s),
|
|
540
540
|
label: "Registration No",
|
|
541
541
|
placeholder: "Enter registration number",
|
|
542
542
|
"label-mark": "required",
|
|
543
543
|
rules: e(u)(e(d).string().min(1, "Reg No is required"))
|
|
544
544
|
}, null, 8, ["modelValue", "rules"])
|
|
545
545
|
]),
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
modelValue: e(
|
|
549
|
-
"onUpdate:modelValue": l[20] || (l[20] = (
|
|
546
|
+
o("div", Te, [
|
|
547
|
+
n(f, {
|
|
548
|
+
modelValue: e(a).tinNo,
|
|
549
|
+
"onUpdate:modelValue": l[20] || (l[20] = (s) => e(a).tinNo = s),
|
|
550
550
|
label: "Tax Identification No (TIN)",
|
|
551
551
|
placeholder: "Enter your TIN number",
|
|
552
552
|
"label-mark": "required",
|
|
553
553
|
rules: e(u)(e(d).string().min(1, "TIN is required"))
|
|
554
554
|
}, null, 8, ["modelValue", "rules"])
|
|
555
555
|
]),
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
modelValue: e(
|
|
559
|
-
"onUpdate:modelValue": l[21] || (l[21] = (
|
|
556
|
+
o("div", je, [
|
|
557
|
+
n(f, {
|
|
558
|
+
modelValue: e(a).sstNo,
|
|
559
|
+
"onUpdate:modelValue": l[21] || (l[21] = (s) => e(a).sstNo = s),
|
|
560
560
|
label: "SST Registration No (SST)",
|
|
561
561
|
placeholder: "Enter your SST number",
|
|
562
562
|
"label-mark": "optional"
|
|
563
563
|
}, null, 8, ["modelValue"])
|
|
564
564
|
])
|
|
565
565
|
]),
|
|
566
|
-
l[48] || (l[48] =
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
modelValue: e(
|
|
570
|
-
"onUpdate:modelValue": l[22] || (l[22] = (
|
|
566
|
+
l[48] || (l[48] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
|
|
567
|
+
o("div", De, [
|
|
568
|
+
n(H, {
|
|
569
|
+
modelValue: e(a).bankName,
|
|
570
|
+
"onUpdate:modelValue": l[22] || (l[22] = (s) => e(a).bankName = s),
|
|
571
571
|
label: "Bank",
|
|
572
572
|
placeholder: "Select bank type",
|
|
573
573
|
"label-mark": "required",
|
|
574
574
|
rules: e(u)(e(d).string().min(1, "Bank Type is required")),
|
|
575
575
|
items: e(ie).bankNameOptions()
|
|
576
576
|
}, null, 8, ["modelValue", "rules", "items"]),
|
|
577
|
-
|
|
578
|
-
modelValue: e(
|
|
579
|
-
"onUpdate:modelValue": l[23] || (l[23] = (
|
|
577
|
+
n(f, {
|
|
578
|
+
modelValue: e(a).bankHolderName,
|
|
579
|
+
"onUpdate:modelValue": l[23] || (l[23] = (s) => e(a).bankHolderName = s),
|
|
580
580
|
label: "Beneficiary Name",
|
|
581
581
|
placeholder: "Enter Beneficiary Name",
|
|
582
582
|
"label-mark": "required",
|
|
583
583
|
rules: e(u)(e(d).string().min(1, "Beneficiary Name is required"))
|
|
584
584
|
}, null, 8, ["modelValue", "rules"]),
|
|
585
|
-
|
|
586
|
-
modelValue: e(
|
|
587
|
-
"onUpdate:modelValue": l[24] || (l[24] = (
|
|
585
|
+
n(f, {
|
|
586
|
+
modelValue: e(a).bankAccountNo,
|
|
587
|
+
"onUpdate:modelValue": l[24] || (l[24] = (s) => e(a).bankAccountNo = s),
|
|
588
588
|
label: "Account Number",
|
|
589
589
|
placeholder: "Enter Account Number",
|
|
590
590
|
"label-mark": "required",
|
|
591
591
|
rules: e(u)(e(d).string().min(1, "Account Number is required"))
|
|
592
592
|
}, null, 8, ["modelValue", "rules"]),
|
|
593
|
-
|
|
593
|
+
n(w, {
|
|
594
594
|
label: "Authorized Person ID",
|
|
595
595
|
modelValue: e(i).authorizedPersonID,
|
|
596
|
-
"onUpdate:modelValue": l[25] || (l[25] = (
|
|
596
|
+
"onUpdate:modelValue": l[25] || (l[25] = (s) => e(i).authorizedPersonID = s),
|
|
597
597
|
type: "image",
|
|
598
598
|
"restaurant-id": p.submission.restaurantId
|
|
599
599
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
600
|
-
|
|
600
|
+
n(w, {
|
|
601
601
|
label: "Outlet Photo",
|
|
602
602
|
modelValue: e(i).outletPhoto,
|
|
603
|
-
"onUpdate:modelValue": l[26] || (l[26] = (
|
|
603
|
+
"onUpdate:modelValue": l[26] || (l[26] = (s) => e(i).outletPhoto = s),
|
|
604
604
|
type: "image",
|
|
605
605
|
"restaurant-id": p.submission.restaurantId
|
|
606
606
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
607
|
-
|
|
607
|
+
n(w, {
|
|
608
608
|
label: "Interior Photo",
|
|
609
609
|
modelValue: e(i).interiorPhoto,
|
|
610
|
-
"onUpdate:modelValue": l[27] || (l[27] = (
|
|
610
|
+
"onUpdate:modelValue": l[27] || (l[27] = (s) => e(i).interiorPhoto = s),
|
|
611
611
|
type: "image",
|
|
612
612
|
"restaurant-id": p.submission.restaurantId
|
|
613
613
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
614
|
-
|
|
614
|
+
n(w, {
|
|
615
615
|
label: "Latest Bank Statement",
|
|
616
616
|
modelValue: e(i).bankStatement,
|
|
617
|
-
"onUpdate:modelValue": l[28] || (l[28] = (
|
|
617
|
+
"onUpdate:modelValue": l[28] || (l[28] = (s) => e(i).bankStatement = s),
|
|
618
618
|
type: "pdf",
|
|
619
619
|
"restaurant-id": p.submission.restaurantId
|
|
620
620
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
621
|
-
e(
|
|
621
|
+
e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (V(), D(w, {
|
|
622
622
|
key: 0,
|
|
623
623
|
label: "Superform",
|
|
624
624
|
type: "pdf",
|
|
625
625
|
modelValue: e(i).certificate,
|
|
626
|
-
"onUpdate:modelValue": l[29] || (l[29] = (
|
|
626
|
+
"onUpdate:modelValue": l[29] || (l[29] = (s) => e(i).certificate = s),
|
|
627
627
|
"restaurant-id": p.submission.restaurantId
|
|
628
628
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
629
|
-
e(
|
|
629
|
+
e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (V(), D(w, {
|
|
630
630
|
key: 1,
|
|
631
631
|
label: "SSM Certificate & Info",
|
|
632
632
|
type: "pdf",
|
|
633
633
|
modelValue: e(i).certificate,
|
|
634
|
-
"onUpdate:modelValue": l[30] || (l[30] = (
|
|
634
|
+
"onUpdate:modelValue": l[30] || (l[30] = (s) => e(i).certificate = s),
|
|
635
635
|
"restaurant-id": p.submission.restaurantId
|
|
636
636
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
|
|
637
637
|
]),
|
|
638
|
-
l[49] || (l[49] =
|
|
639
|
-
|
|
640
|
-
|
|
638
|
+
l[49] || (l[49] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
639
|
+
o("div", Ee, [
|
|
640
|
+
n(ce, {
|
|
641
641
|
modelValue: e(i).signature,
|
|
642
|
-
"onUpdate:modelValue": l[31] || (l[31] = (
|
|
642
|
+
"onUpdate:modelValue": l[31] || (l[31] = (s) => e(i).signature = s),
|
|
643
643
|
"restaurant-id": p.submission.restaurantId,
|
|
644
644
|
label: "Signature"
|
|
645
645
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
646
|
-
|
|
646
|
+
n(w, {
|
|
647
647
|
label: "Company Stamp",
|
|
648
648
|
type: "image",
|
|
649
649
|
modelValue: e(i).companyStamp,
|
|
650
|
-
"onUpdate:modelValue": l[32] || (l[32] = (
|
|
650
|
+
"onUpdate:modelValue": l[32] || (l[32] = (s) => e(i).companyStamp = s),
|
|
651
651
|
"restaurant-id": p.submission.restaurantId
|
|
652
652
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
653
653
|
])
|
|
@@ -657,7 +657,7 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
657
657
|
], 64);
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), $e = { class: "space-y-2" }, Oe = { class: "text-gray-900" }, Le = { class: "text-gray-900" }, Me = { class: "text-gray-900" }, He = { class: "text-gray-900" }, ze = { class: "text-gray-900" }, We = { class: "text-gray-900" }, Je = { class: "mt-6 grid grid-cols-4 gap-24" }, Qe = { class: "w-full flex justify-end mt-6" }, Ge = { class: "mt-6 grid grid-cols-4 gap-24" }, Ke = { class: "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-24" }, _e = { class: "mt-6 grid grid-cols-4 gap-24" }, el = { class: "mt-6 grid grid-cols-4 gap-24" }, ll = { class: "col-span-2" }, al = { class: "col-span-2" }, tl = { class: "col-span-2" }, sl = { class: "col-span-2" }, ol = { class: "col-span-2" }, nl = { class: "col-span-2" }, rl = /* @__PURE__ */ Q({
|
|
661
661
|
__name: "NTTSubmission",
|
|
662
662
|
props: {
|
|
663
663
|
submission: {
|
|
@@ -667,7 +667,7 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
667
667
|
},
|
|
668
668
|
emits: ["update:submission"],
|
|
669
669
|
setup(p, { emit: A }) {
|
|
670
|
-
const
|
|
670
|
+
const N = p, v = A, y = h(), P = j(!1), { isLoading: b, startAsyncCall: I } = Z(), { fields: a, documents: i, restaurantId: R, profile: c, status: F, statusReason: B } = N.submission, q = j(""), m = [
|
|
671
671
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
672
672
|
{
|
|
673
673
|
key: "localCardStandard",
|
|
@@ -699,177 +699,177 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
699
699
|
{ key: "shopeePay", label: "ShopeePay", defaultValue: "2.3" },
|
|
700
700
|
{ key: "linePay", label: "LinePay", defaultValue: "2.1" },
|
|
701
701
|
{ key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
|
|
702
|
-
],
|
|
703
|
-
m.map((
|
|
704
|
-
),
|
|
705
|
-
|
|
706
|
-
Object.entries(
|
|
707
|
-
) : { ...
|
|
708
|
-
),
|
|
709
|
-
() => Object.values(
|
|
710
|
-
),
|
|
702
|
+
], E = Object.fromEntries(
|
|
703
|
+
m.map((S) => [S.key, S.defaultValue])
|
|
704
|
+
), x = j(
|
|
705
|
+
N.submission.rates ? Object.fromEntries(
|
|
706
|
+
Object.entries(N.submission.rates).map(([S, t]) => [S, `${t}`])
|
|
707
|
+
) : { ...E }
|
|
708
|
+
), J = W(
|
|
709
|
+
() => Object.values(x.value).every((S) => parseFloat(S) > 0)
|
|
710
|
+
), T = W(() => a.businessType === "juristic" ? "Juristic" : a.businessType === "individual" ? "Individual" : a.businessType || "-"), l = () => I(async () => {
|
|
711
711
|
try {
|
|
712
|
-
const
|
|
713
|
-
|
|
712
|
+
const S = await M.reviewById(
|
|
713
|
+
N.submission._id,
|
|
714
714
|
{
|
|
715
|
-
status:
|
|
715
|
+
status: ee.FdoOnboardStatus.enum.ready
|
|
716
716
|
}
|
|
717
717
|
);
|
|
718
|
-
|
|
718
|
+
v("update:submission", S), y.open({
|
|
719
719
|
type: "success",
|
|
720
720
|
title: "Submission marked as ready"
|
|
721
721
|
});
|
|
722
|
-
} catch (
|
|
723
|
-
|
|
722
|
+
} catch (S) {
|
|
723
|
+
y.open({
|
|
724
724
|
type: "error",
|
|
725
725
|
title: "Error occurs when marking submission as ready",
|
|
726
|
-
message:
|
|
726
|
+
message: z(S)
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
|
-
}),
|
|
729
|
+
}), f = () => I(async () => {
|
|
730
730
|
try {
|
|
731
|
-
const
|
|
732
|
-
|
|
731
|
+
const S = await M.reviewById(
|
|
732
|
+
N.submission._id,
|
|
733
733
|
{
|
|
734
734
|
rates: Object.fromEntries(
|
|
735
|
-
m.map((
|
|
736
|
-
|
|
737
|
-
parseFloat(
|
|
735
|
+
m.map((t) => [
|
|
736
|
+
t.key,
|
|
737
|
+
parseFloat(x.value[t.key])
|
|
738
738
|
])
|
|
739
739
|
),
|
|
740
740
|
status: "approved"
|
|
741
741
|
}
|
|
742
742
|
);
|
|
743
|
-
|
|
743
|
+
v("update:submission", S), y.open({
|
|
744
744
|
type: "success",
|
|
745
745
|
title: "Submission updated successfully"
|
|
746
746
|
});
|
|
747
|
-
} catch (
|
|
748
|
-
|
|
747
|
+
} catch (S) {
|
|
748
|
+
y.open({
|
|
749
749
|
type: "error",
|
|
750
750
|
title: "Error occurs when updating submission",
|
|
751
|
-
message:
|
|
751
|
+
message: z(S)
|
|
752
752
|
});
|
|
753
753
|
}
|
|
754
|
-
}),
|
|
754
|
+
}), G = () => I(async () => {
|
|
755
755
|
try {
|
|
756
|
-
const
|
|
757
|
-
|
|
756
|
+
const S = await M.reviewById(
|
|
757
|
+
N.submission._id,
|
|
758
758
|
{
|
|
759
759
|
status: "rejected",
|
|
760
|
-
statusReason:
|
|
760
|
+
statusReason: q.value
|
|
761
761
|
}
|
|
762
762
|
);
|
|
763
|
-
|
|
763
|
+
v("update:submission", S), P.value = !1, y.open({
|
|
764
764
|
type: "success",
|
|
765
765
|
title: "Submission updated successfully"
|
|
766
766
|
});
|
|
767
|
-
} catch (
|
|
768
|
-
|
|
767
|
+
} catch (S) {
|
|
768
|
+
y.open({
|
|
769
769
|
type: "error",
|
|
770
770
|
title: "Error occurs when updating submission",
|
|
771
|
-
message:
|
|
771
|
+
message: z(S)
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
});
|
|
775
|
-
return (
|
|
776
|
-
const
|
|
777
|
-
return
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
775
|
+
return (S, t) => {
|
|
776
|
+
const k = C("FmTextField"), H = C("FmButton"), X = C("FmTextarea"), s = C("FmDialog"), te = C("FmPhoneNumber"), se = C("FmForm");
|
|
777
|
+
return V(), O(Y, null, [
|
|
778
|
+
o("div", $e, [
|
|
779
|
+
o("div", null, [
|
|
780
|
+
t[31] || (t[31] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
781
|
+
o("span", Oe, U(e(R)), 1)
|
|
782
782
|
]),
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
783
|
+
o("div", null, [
|
|
784
|
+
t[32] || (t[32] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
785
|
+
o("span", Le, U(e(c).name) + " ( " + U(e(c).legalName) + " )", 1)
|
|
786
786
|
]),
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
787
|
+
o("div", null, [
|
|
788
|
+
t[33] || (t[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
789
|
+
o("span", Me, U(e(c).email), 1)
|
|
790
790
|
]),
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
791
|
+
o("div", null, [
|
|
792
|
+
t[34] || (t[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
793
|
+
o("span", He, U(e(c).phoneNo), 1)
|
|
794
794
|
]),
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
795
|
+
o("div", null, [
|
|
796
|
+
t[35] || (t[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
797
|
+
o("span", ze, [
|
|
798
|
+
n(ae, { data: e(F) }, null, 8, ["data"])
|
|
799
799
|
])
|
|
800
800
|
]),
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
801
|
+
o("div", null, [
|
|
802
|
+
t[36] || (t[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
803
|
+
o("span", We, U(e(B)), 1)
|
|
804
804
|
])
|
|
805
805
|
]),
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
(
|
|
806
|
+
t[43] || (t[43] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
807
|
+
o("div", Je, [
|
|
808
|
+
(V(), O(Y, null, _(m, (r) => n(k, {
|
|
809
809
|
key: r.key,
|
|
810
|
-
modelValue:
|
|
811
|
-
"onUpdate:modelValue": (
|
|
810
|
+
modelValue: x.value[r.key],
|
|
811
|
+
"onUpdate:modelValue": (K) => x.value[r.key] = K,
|
|
812
812
|
label: r.label,
|
|
813
813
|
"label-mark": "required",
|
|
814
814
|
type: "number",
|
|
815
815
|
inputmode: "numeric",
|
|
816
816
|
decimal: 2,
|
|
817
817
|
rules: e(u)(
|
|
818
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
818
|
+
e(d).string().min(1, "Rate is required").transform((K) => parseFloat(K)).refine((K) => !isNaN(K), { message: "Rate must be a number" })
|
|
819
819
|
)
|
|
820
820
|
}, {
|
|
821
|
-
append:
|
|
821
|
+
append: g(() => [...t[37] || (t[37] = [
|
|
822
822
|
L("%", -1)
|
|
823
823
|
])]),
|
|
824
824
|
_: 1
|
|
825
825
|
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
826
826
|
]),
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
modelValue:
|
|
830
|
-
"onUpdate:modelValue":
|
|
827
|
+
o("div", Qe, [
|
|
828
|
+
n(s, {
|
|
829
|
+
modelValue: P.value,
|
|
830
|
+
"onUpdate:modelValue": t[1] || (t[1] = (r) => P.value = r)
|
|
831
831
|
}, {
|
|
832
|
-
"dialog-button":
|
|
833
|
-
|
|
832
|
+
"dialog-button": g(() => [
|
|
833
|
+
n(H, {
|
|
834
834
|
class: "mr-6",
|
|
835
835
|
type: "button",
|
|
836
836
|
variant: "destructive",
|
|
837
837
|
"prepend-icon": "block",
|
|
838
|
-
loading: e(
|
|
838
|
+
loading: e(b),
|
|
839
839
|
label: "Reject Submission"
|
|
840
840
|
}, null, 8, ["loading"])
|
|
841
841
|
]),
|
|
842
|
-
"dialog-header":
|
|
843
|
-
|
|
842
|
+
"dialog-header": g(() => [...t[38] || (t[38] = [
|
|
843
|
+
o("div", null, "Rejecting Submission", -1)
|
|
844
844
|
])]),
|
|
845
|
-
default:
|
|
846
|
-
|
|
847
|
-
modelValue:
|
|
848
|
-
"onUpdate:modelValue":
|
|
845
|
+
default: g(() => [
|
|
846
|
+
n(X, {
|
|
847
|
+
modelValue: q.value,
|
|
848
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => q.value = r),
|
|
849
849
|
label: "Reason for Rejection",
|
|
850
850
|
"label-mark": "optional",
|
|
851
851
|
"helper-text": "Please provide a reason for rejection."
|
|
852
852
|
}, null, 8, ["modelValue"]),
|
|
853
|
-
|
|
853
|
+
n(H, {
|
|
854
854
|
class: "mb-2 mt-6 w-full",
|
|
855
855
|
label: "Submit",
|
|
856
856
|
"prepend-icon": "save",
|
|
857
|
-
onClick:
|
|
858
|
-
loading: e(
|
|
857
|
+
onClick: G,
|
|
858
|
+
loading: e(b)
|
|
859
859
|
}, null, 8, ["loading"])
|
|
860
860
|
]),
|
|
861
861
|
_: 1
|
|
862
862
|
}, 8, ["modelValue"]),
|
|
863
|
-
|
|
863
|
+
n(H, {
|
|
864
864
|
type: "button",
|
|
865
865
|
variant: "primary",
|
|
866
866
|
"prepend-icon": "approval",
|
|
867
867
|
label: "Approve Submission with Rates",
|
|
868
|
-
disabled: !
|
|
869
|
-
onClick:
|
|
870
|
-
loading: e(
|
|
868
|
+
disabled: !J.value,
|
|
869
|
+
onClick: f,
|
|
870
|
+
loading: e(b)
|
|
871
871
|
}, null, 8, ["disabled", "loading"]),
|
|
872
|
-
e(
|
|
872
|
+
e(F) === "approved" ? (V(), D(H, {
|
|
873
873
|
key: 0,
|
|
874
874
|
type: "button",
|
|
875
875
|
variant: "secondary",
|
|
@@ -877,251 +877,251 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
877
877
|
label: "Mark as Ready",
|
|
878
878
|
class: "ml-6",
|
|
879
879
|
onClick: l,
|
|
880
|
-
loading: e(
|
|
880
|
+
loading: e(b)
|
|
881
881
|
}, null, 8, ["loading"])) : $("", !0)
|
|
882
882
|
]),
|
|
883
|
-
|
|
884
|
-
default:
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
modelValue: e(
|
|
890
|
-
"onUpdate:modelValue":
|
|
883
|
+
n(se, { disabled: !0 }, {
|
|
884
|
+
default: g(() => [
|
|
885
|
+
t[39] || (t[39] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
886
|
+
o("div", Ge, [
|
|
887
|
+
o("div", Ke, [
|
|
888
|
+
n(k, {
|
|
889
|
+
modelValue: e(a).companyName,
|
|
890
|
+
"onUpdate:modelValue": t[2] || (t[2] = (r) => e(a).companyName = r),
|
|
891
891
|
label: "Company Name",
|
|
892
892
|
"label-mark": "required",
|
|
893
893
|
rules: e(u)(e(d).string().min(1, "Company Name is required"))
|
|
894
894
|
}, null, 8, ["modelValue", "rules"])
|
|
895
895
|
]),
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
modelValue: e(
|
|
899
|
-
"onUpdate:modelValue":
|
|
896
|
+
o("div", Ye, [
|
|
897
|
+
n(k, {
|
|
898
|
+
modelValue: e(a).outletName,
|
|
899
|
+
"onUpdate:modelValue": t[3] || (t[3] = (r) => e(a).outletName = r),
|
|
900
900
|
label: "Outlet Name (Thai)",
|
|
901
901
|
"label-mark": "required",
|
|
902
902
|
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
|
903
903
|
}, null, 8, ["modelValue", "rules"])
|
|
904
904
|
]),
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
modelValue: e(
|
|
908
|
-
"onUpdate:modelValue":
|
|
905
|
+
o("div", Xe, [
|
|
906
|
+
n(k, {
|
|
907
|
+
modelValue: e(a).outletNameEnglish,
|
|
908
|
+
"onUpdate:modelValue": t[4] || (t[4] = (r) => e(a).outletNameEnglish = r),
|
|
909
909
|
label: "Outlet Name (English)",
|
|
910
910
|
"label-mark": "required",
|
|
911
911
|
rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
|
|
912
912
|
}, null, 8, ["modelValue", "rules"])
|
|
913
913
|
]),
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
modelValue: e(
|
|
917
|
-
"onUpdate:modelValue":
|
|
914
|
+
o("div", Ze, [
|
|
915
|
+
n(k, {
|
|
916
|
+
modelValue: e(a).outletAddress,
|
|
917
|
+
"onUpdate:modelValue": t[5] || (t[5] = (r) => e(a).outletAddress = r),
|
|
918
918
|
label: "Outlet Address",
|
|
919
919
|
"label-mark": "required",
|
|
920
920
|
rules: e(u)(e(d).string().min(1, "Outlet Address is required"))
|
|
921
921
|
}, null, 8, ["modelValue", "rules"])
|
|
922
922
|
]),
|
|
923
|
-
|
|
924
|
-
modelValue: e(
|
|
925
|
-
"onUpdate:modelValue":
|
|
923
|
+
n(k, {
|
|
924
|
+
modelValue: e(a).outletPostCode,
|
|
925
|
+
"onUpdate:modelValue": t[6] || (t[6] = (r) => e(a).outletPostCode = r),
|
|
926
926
|
label: "Post Code",
|
|
927
927
|
"label-mark": "required",
|
|
928
928
|
rules: e(u)(e(d).string().min(1, "Post Code is required"))
|
|
929
929
|
}, null, 8, ["modelValue", "rules"]),
|
|
930
|
-
|
|
931
|
-
modelValue: e(
|
|
932
|
-
"onUpdate:modelValue":
|
|
930
|
+
n(k, {
|
|
931
|
+
modelValue: e(a).outletState,
|
|
932
|
+
"onUpdate:modelValue": t[7] || (t[7] = (r) => e(a).outletState = r),
|
|
933
933
|
label: "State",
|
|
934
934
|
"label-mark": "required",
|
|
935
935
|
rules: e(u)(e(d).string().min(1, "State is required"))
|
|
936
936
|
}, null, 8, ["modelValue", "rules"]),
|
|
937
|
-
|
|
938
|
-
modelValue: e(
|
|
939
|
-
"onUpdate:modelValue":
|
|
937
|
+
n(k, {
|
|
938
|
+
modelValue: e(a).outletCity,
|
|
939
|
+
"onUpdate:modelValue": t[8] || (t[8] = (r) => e(a).outletCity = r),
|
|
940
940
|
label: "City",
|
|
941
941
|
"label-mark": "required",
|
|
942
942
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
943
943
|
}, null, 8, ["modelValue", "rules"]),
|
|
944
|
-
|
|
945
|
-
"model-value":
|
|
944
|
+
n(k, {
|
|
945
|
+
"model-value": T.value,
|
|
946
946
|
label: "Business Type",
|
|
947
947
|
"label-mark": "required"
|
|
948
948
|
}, null, 8, ["model-value"]),
|
|
949
|
-
|
|
950
|
-
modelValue: e(
|
|
951
|
-
"onUpdate:modelValue":
|
|
949
|
+
n(k, {
|
|
950
|
+
modelValue: e(a).numberOfDevices,
|
|
951
|
+
"onUpdate:modelValue": t[9] || (t[9] = (r) => e(a).numberOfDevices = r),
|
|
952
952
|
label: "Number of Devices",
|
|
953
953
|
"label-mark": "required"
|
|
954
954
|
}, null, 8, ["modelValue"])
|
|
955
955
|
]),
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
modelValue: e(
|
|
960
|
-
"onUpdate:modelValue":
|
|
956
|
+
t[40] || (t[40] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
957
|
+
o("div", he, [
|
|
958
|
+
n(k, {
|
|
959
|
+
modelValue: e(a).bankName,
|
|
960
|
+
"onUpdate:modelValue": t[10] || (t[10] = (r) => e(a).bankName = r),
|
|
961
961
|
label: "Bank Name",
|
|
962
962
|
"label-mark": "required",
|
|
963
963
|
rules: e(u)(e(d).string().min(1, "Bank Name is required"))
|
|
964
964
|
}, null, 8, ["modelValue", "rules"]),
|
|
965
|
-
|
|
966
|
-
modelValue: e(
|
|
967
|
-
"onUpdate:modelValue":
|
|
965
|
+
n(k, {
|
|
966
|
+
modelValue: e(a).bankHolderName,
|
|
967
|
+
"onUpdate:modelValue": t[11] || (t[11] = (r) => e(a).bankHolderName = r),
|
|
968
968
|
label: "Bank Holder Name",
|
|
969
969
|
"label-mark": "required",
|
|
970
970
|
rules: e(u)(e(d).string().min(1, "Bank Holder Name is required"))
|
|
971
971
|
}, null, 8, ["modelValue", "rules"]),
|
|
972
|
-
|
|
973
|
-
modelValue: e(
|
|
974
|
-
"onUpdate:modelValue":
|
|
972
|
+
n(k, {
|
|
973
|
+
modelValue: e(a).bankAccountNo,
|
|
974
|
+
"onUpdate:modelValue": t[12] || (t[12] = (r) => e(a).bankAccountNo = r),
|
|
975
975
|
label: "Bank Account No",
|
|
976
976
|
"label-mark": "required",
|
|
977
977
|
rules: e(u)(e(d).string().min(1, "Bank Account No is required"))
|
|
978
978
|
}, null, 8, ["modelValue", "rules"]),
|
|
979
|
-
|
|
980
|
-
modelValue: e(
|
|
981
|
-
"onUpdate:modelValue":
|
|
979
|
+
n(k, {
|
|
980
|
+
modelValue: e(a).bankBranch,
|
|
981
|
+
"onUpdate:modelValue": t[13] || (t[13] = (r) => e(a).bankBranch = r),
|
|
982
982
|
label: "Bank Branch",
|
|
983
983
|
"label-mark": "required",
|
|
984
984
|
rules: e(u)(e(d).string().min(1, "Bank Branch is required"))
|
|
985
985
|
}, null, 8, ["modelValue", "rules"]),
|
|
986
|
-
|
|
987
|
-
modelValue: e(
|
|
988
|
-
"onUpdate:modelValue":
|
|
986
|
+
n(k, {
|
|
987
|
+
modelValue: e(a).bankBranchCode,
|
|
988
|
+
"onUpdate:modelValue": t[14] || (t[14] = (r) => e(a).bankBranchCode = r),
|
|
989
989
|
label: "Bank Branch Code",
|
|
990
990
|
"label-mark": "required",
|
|
991
991
|
rules: e(u)(e(d).string().min(1, "Bank Branch Code is required"))
|
|
992
992
|
}, null, 8, ["modelValue", "rules"])
|
|
993
993
|
]),
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
994
|
+
t[41] || (t[41] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
995
|
+
o("div", _e, [
|
|
996
|
+
n(w, {
|
|
997
997
|
label: "Authorized Person ID",
|
|
998
998
|
modelValue: e(i).authorizedPersonID,
|
|
999
|
-
"onUpdate:modelValue":
|
|
999
|
+
"onUpdate:modelValue": t[15] || (t[15] = (r) => e(i).authorizedPersonID = r),
|
|
1000
1000
|
type: "image",
|
|
1001
1001
|
"restaurant-id": p.submission.restaurantId
|
|
1002
1002
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1003
|
-
|
|
1003
|
+
n(w, {
|
|
1004
1004
|
label: "Outlet Photo",
|
|
1005
1005
|
modelValue: e(i).outletPhoto,
|
|
1006
|
-
"onUpdate:modelValue":
|
|
1006
|
+
"onUpdate:modelValue": t[16] || (t[16] = (r) => e(i).outletPhoto = r),
|
|
1007
1007
|
type: "image",
|
|
1008
1008
|
"restaurant-id": p.submission.restaurantId
|
|
1009
1009
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1010
|
-
|
|
1010
|
+
n(w, {
|
|
1011
1011
|
label: "Interior Photo",
|
|
1012
1012
|
modelValue: e(i).interiorPhoto,
|
|
1013
|
-
"onUpdate:modelValue":
|
|
1013
|
+
"onUpdate:modelValue": t[17] || (t[17] = (r) => e(i).interiorPhoto = r),
|
|
1014
1014
|
type: "image",
|
|
1015
1015
|
"restaurant-id": p.submission.restaurantId
|
|
1016
1016
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1017
|
-
|
|
1017
|
+
n(w, {
|
|
1018
1018
|
label: "Bank Statement",
|
|
1019
1019
|
modelValue: e(i).bankStatement,
|
|
1020
|
-
"onUpdate:modelValue":
|
|
1020
|
+
"onUpdate:modelValue": t[18] || (t[18] = (r) => e(i).bankStatement = r),
|
|
1021
1021
|
type: "pdf",
|
|
1022
1022
|
"restaurant-id": p.submission.restaurantId
|
|
1023
1023
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1024
|
-
e(
|
|
1024
|
+
e(a).businessType === "juristic" ? (V(), D(w, {
|
|
1025
1025
|
key: 0,
|
|
1026
1026
|
label: "Company Certificate",
|
|
1027
1027
|
type: "pdf",
|
|
1028
1028
|
modelValue: e(i).companyCertificate,
|
|
1029
|
-
"onUpdate:modelValue":
|
|
1029
|
+
"onUpdate:modelValue": t[19] || (t[19] = (r) => e(i).companyCertificate = r),
|
|
1030
1030
|
"restaurant-id": p.submission.restaurantId
|
|
1031
1031
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1032
|
-
e(
|
|
1032
|
+
e(a).businessType === "juristic" ? (V(), D(w, {
|
|
1033
1033
|
key: 1,
|
|
1034
1034
|
label: "VAT Certificate",
|
|
1035
1035
|
type: "pdf",
|
|
1036
1036
|
modelValue: e(i).vatCertificate,
|
|
1037
|
-
"onUpdate:modelValue":
|
|
1037
|
+
"onUpdate:modelValue": t[20] || (t[20] = (r) => e(i).vatCertificate = r),
|
|
1038
1038
|
"restaurant-id": p.submission.restaurantId
|
|
1039
1039
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1040
|
-
e(
|
|
1040
|
+
e(a).businessType === "individual" ? (V(), D(w, {
|
|
1041
1041
|
key: 2,
|
|
1042
1042
|
label: "Commercial Certificate",
|
|
1043
1043
|
type: "pdf",
|
|
1044
1044
|
modelValue: e(i).commercialCertificate,
|
|
1045
|
-
"onUpdate:modelValue":
|
|
1045
|
+
"onUpdate:modelValue": t[21] || (t[21] = (r) => e(i).commercialCertificate = r),
|
|
1046
1046
|
"restaurant-id": p.submission.restaurantId
|
|
1047
1047
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
|
|
1048
1048
|
]),
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
modelValue: e(
|
|
1054
|
-
"onUpdate:modelValue":
|
|
1049
|
+
t[42] || (t[42] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1050
|
+
o("div", el, [
|
|
1051
|
+
o("div", ll, [
|
|
1052
|
+
n(k, {
|
|
1053
|
+
modelValue: e(a).picName,
|
|
1054
|
+
"onUpdate:modelValue": t[22] || (t[22] = (r) => e(a).picName = r),
|
|
1055
1055
|
label: "PIC Name",
|
|
1056
1056
|
"label-mark": "required",
|
|
1057
1057
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
1058
1058
|
}, null, 8, ["modelValue", "rules"])
|
|
1059
1059
|
]),
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
modelValue: e(
|
|
1063
|
-
"onUpdate:modelValue":
|
|
1060
|
+
o("div", al, [
|
|
1061
|
+
n(k, {
|
|
1062
|
+
modelValue: e(a).picRole,
|
|
1063
|
+
"onUpdate:modelValue": t[23] || (t[23] = (r) => e(a).picRole = r),
|
|
1064
1064
|
label: "PIC Role",
|
|
1065
1065
|
"label-mark": "required",
|
|
1066
1066
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
1067
1067
|
}, null, 8, ["modelValue", "rules"])
|
|
1068
1068
|
]),
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
modelValue: e(
|
|
1072
|
-
"onUpdate:modelValue":
|
|
1069
|
+
o("div", tl, [
|
|
1070
|
+
n(k, {
|
|
1071
|
+
modelValue: e(a).picEmail,
|
|
1072
|
+
"onUpdate:modelValue": t[24] || (t[24] = (r) => e(a).picEmail = r),
|
|
1073
1073
|
label: "PIC Email",
|
|
1074
1074
|
"label-mark": "required",
|
|
1075
1075
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
1076
1076
|
}, null, 8, ["modelValue", "rules"])
|
|
1077
1077
|
]),
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
"model-value": e(
|
|
1081
|
-
"onUpdate:modelValue":
|
|
1078
|
+
o("div", sl, [
|
|
1079
|
+
n(te, {
|
|
1080
|
+
"model-value": e(a).picContact,
|
|
1081
|
+
"onUpdate:modelValue": t[25] || (t[25] = (r) => e(a).picContact = r),
|
|
1082
1082
|
"default-country": "TH",
|
|
1083
1083
|
label: "PIC Contact",
|
|
1084
1084
|
"label-mark": "required",
|
|
1085
1085
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
1086
1086
|
}, null, 8, ["model-value", "rules"])
|
|
1087
1087
|
]),
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
modelValue: e(
|
|
1091
|
-
"onUpdate:modelValue":
|
|
1088
|
+
o("div", ol, [
|
|
1089
|
+
n(k, {
|
|
1090
|
+
modelValue: e(a).witnessName,
|
|
1091
|
+
"onUpdate:modelValue": t[26] || (t[26] = (r) => e(a).witnessName = r),
|
|
1092
1092
|
label: "Witness Name",
|
|
1093
1093
|
"label-mark": "required",
|
|
1094
1094
|
rules: e(u)(e(d).string().min(1, "Witness Name is required"))
|
|
1095
1095
|
}, null, 8, ["modelValue", "rules"])
|
|
1096
1096
|
]),
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
modelValue: e(
|
|
1100
|
-
"onUpdate:modelValue":
|
|
1097
|
+
o("div", nl, [
|
|
1098
|
+
n(k, {
|
|
1099
|
+
modelValue: e(a).witnessRole,
|
|
1100
|
+
"onUpdate:modelValue": t[27] || (t[27] = (r) => e(a).witnessRole = r),
|
|
1101
1101
|
label: "Witness Role",
|
|
1102
1102
|
"label-mark": "required",
|
|
1103
1103
|
rules: e(u)(e(d).string().min(1, "Witness Role is required"))
|
|
1104
1104
|
}, null, 8, ["modelValue", "rules"])
|
|
1105
1105
|
]),
|
|
1106
|
-
|
|
1106
|
+
n(w, {
|
|
1107
1107
|
label: "Signature",
|
|
1108
1108
|
type: "image",
|
|
1109
1109
|
modelValue: e(i).signature,
|
|
1110
|
-
"onUpdate:modelValue":
|
|
1110
|
+
"onUpdate:modelValue": t[28] || (t[28] = (r) => e(i).signature = r),
|
|
1111
1111
|
"restaurant-id": p.submission.restaurantId
|
|
1112
1112
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1113
|
-
|
|
1113
|
+
n(w, {
|
|
1114
1114
|
label: "Witness Signature",
|
|
1115
1115
|
type: "image",
|
|
1116
1116
|
modelValue: e(i).witnessSignature,
|
|
1117
|
-
"onUpdate:modelValue":
|
|
1117
|
+
"onUpdate:modelValue": t[29] || (t[29] = (r) => e(i).witnessSignature = r),
|
|
1118
1118
|
"restaurant-id": p.submission.restaurantId
|
|
1119
1119
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1120
|
-
|
|
1120
|
+
n(w, {
|
|
1121
1121
|
label: "Company Stamp",
|
|
1122
1122
|
type: "image",
|
|
1123
1123
|
modelValue: e(i).companyStamp,
|
|
1124
|
-
"onUpdate:modelValue":
|
|
1124
|
+
"onUpdate:modelValue": t[30] || (t[30] = (r) => e(i).companyStamp = r),
|
|
1125
1125
|
"restaurant-id": p.submission.restaurantId
|
|
1126
1126
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
1127
1127
|
])
|
|
@@ -1131,10 +1131,75 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
1131
1131
|
], 64);
|
|
1132
1132
|
};
|
|
1133
1133
|
}
|
|
1134
|
-
}), il = {
|
|
1134
|
+
}), il = /* @__PURE__ */ Q({
|
|
1135
|
+
__name: "TyroSubmission",
|
|
1136
|
+
props: {
|
|
1137
|
+
submission: {
|
|
1138
|
+
type: Object,
|
|
1139
|
+
required: !0
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
emits: ["update:submission"],
|
|
1143
|
+
setup(p) {
|
|
1144
|
+
const A = p, N = W(() => {
|
|
1145
|
+
const v = A.submission.fields || {}, y = (P) => v[P] || "N/A";
|
|
1146
|
+
return [
|
|
1147
|
+
{
|
|
1148
|
+
label: "Tyro POS Reference ID",
|
|
1149
|
+
value: y("tyroPosReference")
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
label: "Tyro Merchant ID",
|
|
1153
|
+
value: y("tyroMerchantId")
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
label: "Tyro Merchant Name",
|
|
1157
|
+
value: y("tyroMerchantDisplayName")
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
label: "Authorised",
|
|
1161
|
+
value: y("tyroIsAuthorised")
|
|
1162
|
+
}
|
|
1163
|
+
];
|
|
1164
|
+
});
|
|
1165
|
+
return (v, y) => {
|
|
1166
|
+
const P = C("FmCardHeader"), b = C("FmCardSection"), I = C("FmCard");
|
|
1167
|
+
return V(), D(I, {
|
|
1168
|
+
class: "max-w-3xl mt-8 p-6",
|
|
1169
|
+
variant: "elevated"
|
|
1170
|
+
}, {
|
|
1171
|
+
default: g(() => [
|
|
1172
|
+
n(b, { class: "flex flex-col gap-16 justify-between" }, {
|
|
1173
|
+
default: g(() => [
|
|
1174
|
+
n(P, {
|
|
1175
|
+
class: "p-0",
|
|
1176
|
+
title: "Tyro Authorisation",
|
|
1177
|
+
subtitle: ""
|
|
1178
|
+
}),
|
|
1179
|
+
n(b, { class: "p-0" }, {
|
|
1180
|
+
default: g(() => [
|
|
1181
|
+
(V(!0), O(Y, null, _(N.value, (a) => (V(), O("p", {
|
|
1182
|
+
key: a.label,
|
|
1183
|
+
class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
|
|
1184
|
+
}, [
|
|
1185
|
+
o("b", null, U(a.label), 1),
|
|
1186
|
+
L(": " + U(a.value), 1)
|
|
1187
|
+
]))), 128))
|
|
1188
|
+
]),
|
|
1189
|
+
_: 1
|
|
1190
|
+
})
|
|
1191
|
+
]),
|
|
1192
|
+
_: 1
|
|
1193
|
+
})
|
|
1194
|
+
]),
|
|
1195
|
+
_: 1
|
|
1196
|
+
});
|
|
1197
|
+
};
|
|
1198
|
+
}
|
|
1199
|
+
}), ul = {
|
|
1135
1200
|
key: 0,
|
|
1136
1201
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1137
|
-
},
|
|
1202
|
+
}, dl = { class: "px-32 pb-32" }, Nl = /* @__PURE__ */ Q({
|
|
1138
1203
|
__name: "OnboardForm",
|
|
1139
1204
|
props: {
|
|
1140
1205
|
submissionId: {
|
|
@@ -1143,89 +1208,96 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
1143
1208
|
}
|
|
1144
1209
|
},
|
|
1145
1210
|
setup(p) {
|
|
1146
|
-
const { startAsyncCall: A, isLoading:
|
|
1211
|
+
const { startAsyncCall: A, isLoading: N } = Z(), v = h(), y = p, P = re(), b = j(null), I = W(
|
|
1212
|
+
() => {
|
|
1213
|
+
var B;
|
|
1214
|
+
return ((B = b.value) == null ? void 0 : B.type) === ee.FdoOnboardType.enum.tyro;
|
|
1215
|
+
}
|
|
1216
|
+
), a = () => {
|
|
1147
1217
|
if (window.history.length > 1) {
|
|
1148
|
-
|
|
1218
|
+
P.back();
|
|
1149
1219
|
return;
|
|
1150
1220
|
}
|
|
1151
|
-
|
|
1221
|
+
P.push({ name: "mf-payment-admin.onboard-submission" });
|
|
1152
1222
|
};
|
|
1153
|
-
|
|
1223
|
+
oe(() => {
|
|
1154
1224
|
A(async () => {
|
|
1155
|
-
|
|
1225
|
+
b.value = await M.readById(y.submissionId);
|
|
1156
1226
|
});
|
|
1157
1227
|
});
|
|
1158
|
-
const
|
|
1159
|
-
if (!
|
|
1160
|
-
switch (
|
|
1228
|
+
const i = W(() => {
|
|
1229
|
+
if (!b.value) return null;
|
|
1230
|
+
switch (b.value.type) {
|
|
1161
1231
|
case "softspace":
|
|
1162
|
-
return
|
|
1232
|
+
return Ae;
|
|
1163
1233
|
case "ntt":
|
|
1164
1234
|
return rl;
|
|
1235
|
+
case "tyro":
|
|
1236
|
+
return il;
|
|
1165
1237
|
default:
|
|
1166
1238
|
return null;
|
|
1167
1239
|
}
|
|
1168
|
-
}),
|
|
1169
|
-
function
|
|
1170
|
-
|
|
1240
|
+
}), R = j(0);
|
|
1241
|
+
function c(B) {
|
|
1242
|
+
b.value = B, R.value = Date.now();
|
|
1171
1243
|
}
|
|
1172
|
-
const
|
|
1173
|
-
var
|
|
1174
|
-
if (
|
|
1175
|
-
switch (
|
|
1244
|
+
const F = async (B) => {
|
|
1245
|
+
var q, m;
|
|
1246
|
+
if (b.value)
|
|
1247
|
+
switch (B) {
|
|
1176
1248
|
case "preview":
|
|
1177
|
-
let
|
|
1249
|
+
let E;
|
|
1178
1250
|
try {
|
|
1179
|
-
|
|
1251
|
+
E = v.open({
|
|
1180
1252
|
message: "Generating preview document...",
|
|
1181
1253
|
type: "info"
|
|
1182
|
-
}), await
|
|
1183
|
-
(
|
|
1254
|
+
}), await M.previewDocument(
|
|
1255
|
+
(q = b.value) == null ? void 0 : q._id
|
|
1184
1256
|
);
|
|
1185
|
-
} catch (
|
|
1186
|
-
|
|
1257
|
+
} catch (x) {
|
|
1258
|
+
v.open({
|
|
1187
1259
|
type: "error",
|
|
1188
1260
|
title: "Error occurs when generating submission document",
|
|
1189
|
-
message:
|
|
1261
|
+
message: z(x)
|
|
1190
1262
|
});
|
|
1191
1263
|
} finally {
|
|
1192
|
-
|
|
1264
|
+
E && v.close(E);
|
|
1193
1265
|
}
|
|
1194
1266
|
break;
|
|
1195
1267
|
case "send":
|
|
1196
1268
|
try {
|
|
1197
|
-
|
|
1269
|
+
v.open({
|
|
1198
1270
|
message: "Sending onboarding document...",
|
|
1199
1271
|
type: "info"
|
|
1200
|
-
}), await
|
|
1201
|
-
(
|
|
1202
|
-
),
|
|
1272
|
+
}), await M.sendDocument(
|
|
1273
|
+
(m = b.value) == null ? void 0 : m._id
|
|
1274
|
+
), v.open({
|
|
1203
1275
|
type: "success",
|
|
1204
1276
|
title: "Submission documents send successfully"
|
|
1205
1277
|
});
|
|
1206
|
-
} catch (
|
|
1207
|
-
|
|
1278
|
+
} catch (x) {
|
|
1279
|
+
v.open({
|
|
1208
1280
|
type: "error",
|
|
1209
1281
|
title: "Error occurs when sending document",
|
|
1210
|
-
message:
|
|
1282
|
+
message: z(x)
|
|
1211
1283
|
});
|
|
1212
1284
|
}
|
|
1213
1285
|
break;
|
|
1214
1286
|
}
|
|
1215
1287
|
};
|
|
1216
|
-
return (
|
|
1217
|
-
var
|
|
1218
|
-
const
|
|
1219
|
-
return e(
|
|
1220
|
-
|
|
1221
|
-
])) : (
|
|
1222
|
-
|
|
1223
|
-
title: `Submission - ${(
|
|
1224
|
-
description: `ID - ${(
|
|
1288
|
+
return (B, q) => {
|
|
1289
|
+
var x, J;
|
|
1290
|
+
const m = C("FmCircularProgress"), E = C("FmPageHead");
|
|
1291
|
+
return e(N) ? (V(), O("div", ul, [
|
|
1292
|
+
n(m, { size: "xxl" })
|
|
1293
|
+
])) : (V(), O(Y, { key: 1 }, [
|
|
1294
|
+
n(E, {
|
|
1295
|
+
title: `Submission - ${(x = b.value) == null ? void 0 : x.type}`,
|
|
1296
|
+
description: `ID - ${(J = b.value) == null ? void 0 : J._id}`,
|
|
1225
1297
|
"back-button": !0,
|
|
1226
|
-
"onClick:back":
|
|
1227
|
-
"onClick:action":
|
|
1228
|
-
actions: [
|
|
1298
|
+
"onClick:back": a,
|
|
1299
|
+
"onClick:action": F,
|
|
1300
|
+
actions: I.value ? [] : [
|
|
1229
1301
|
{
|
|
1230
1302
|
label: "Preview Document",
|
|
1231
1303
|
value: "preview",
|
|
@@ -1238,12 +1310,12 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
1238
1310
|
prependIcon: "send"
|
|
1239
1311
|
}
|
|
1240
1312
|
]
|
|
1241
|
-
}, null, 8, ["title", "description"]),
|
|
1242
|
-
|
|
1243
|
-
(
|
|
1244
|
-
key:
|
|
1245
|
-
submission:
|
|
1246
|
-
"onUpdate:submission":
|
|
1313
|
+
}, null, 8, ["title", "description", "actions"]),
|
|
1314
|
+
o("div", dl, [
|
|
1315
|
+
(V(), D(ne(i.value), {
|
|
1316
|
+
key: R.value,
|
|
1317
|
+
submission: b.value,
|
|
1318
|
+
"onUpdate:submission": c
|
|
1247
1319
|
}, null, 40, ["submission"]))
|
|
1248
1320
|
])
|
|
1249
1321
|
], 64));
|
|
@@ -1251,5 +1323,5 @@ const de = ["src"], w = /* @__PURE__ */ G({
|
|
|
1251
1323
|
}
|
|
1252
1324
|
});
|
|
1253
1325
|
export {
|
|
1254
|
-
|
|
1326
|
+
Nl as default
|
|
1255
1327
|
};
|