@feedmepos/mf-payment 1.5.12-dev → 1.5.14-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-CV4bHaGW.js → OnboardForm-1bjTqyjr.js} +472 -404
- package/dist/{OnboardForm-BDq152QP.js → OnboardForm-D-TlxYQm.js} +1 -1
- package/dist/{PayoutAccount-HnfT8MaG.js → PayoutAccount-CpaFIxzp.js} +1 -1
- package/dist/{PayoutAccount-CxnJ5d_K.js → PayoutAccount-gKGc70jp.js} +1 -1
- package/dist/{TerminalSetting-4xk7etH9.js → TerminalSetting-CxbuTkH6.js} +570 -442
- package/dist/{app-BBy0tblY.js → app-DfYY05aO.js} +7 -7
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-CqCTjn5L.js → payout-account-DWWpqLNM.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- /package/dist/views/admin/terminal/tabs/ecr/{GlobalPayments.vue.d.ts → GlobalPaymentsGateway.vue.d.ts} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { u as
|
|
4
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as Q, ref as T, computed as J, resolveComponent as N, openBlock as f, createElementBlock as O, createElementVNode as o, toDisplayString as x, createBlock as D, withCtx as V, createCommentVNode as $, createVNode as n, unref as e, Fragment as K, createTextVNode as L, renderList as ae, onMounted as te, resolveDynamicComponent as se } from "vue";
|
|
2
|
+
import { o as z } from "./index-BXr5_TWx.js";
|
|
3
|
+
import { u as Z } from "./index-7Tof5vdq.js";
|
|
4
|
+
import { useRouter as oe } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-DzjyJnvv.js";
|
|
6
|
-
import { P as
|
|
7
|
-
import { _
|
|
8
|
-
import { s as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { useSnackbar as
|
|
11
|
-
import { u as
|
|
12
|
-
const
|
|
6
|
+
import { P as ne } from "./payout-account-DWWpqLNM.js";
|
|
7
|
+
import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-VCdsMJXV.js";
|
|
8
|
+
import { s as re } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
9
|
+
import { _ as ee } from "./Status.vue_vue_type_script_setup_true_lang-CvA16aFf.js";
|
|
10
|
+
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
11
|
+
import { u as H } from "./error-K1CakhA9.js";
|
|
12
|
+
const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
13
13
|
__name: "UploadButton",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {},
|
|
@@ -18,53 +18,53 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
18
18
|
restaurantId: {}
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
|
-
setup(p, { emit:
|
|
22
|
-
const
|
|
21
|
+
setup(p, { emit: A }) {
|
|
22
|
+
const S = p, P = T(S.modelValue), q = A, w = (s) => {
|
|
23
23
|
const i = new FileReader();
|
|
24
|
-
i.onload = (
|
|
24
|
+
i.onload = (I) => {
|
|
25
25
|
var b;
|
|
26
|
-
|
|
26
|
+
P.value = (b = I.target) == null ? void 0 : b.result, q("update:modelValue", s);
|
|
27
27
|
}, i.readAsDataURL(s);
|
|
28
|
-
},
|
|
28
|
+
}, y = (s) => {
|
|
29
29
|
window.open(s, "_blank", "noopener,noreferrer");
|
|
30
|
-
},
|
|
30
|
+
}, R = J(() => S.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
|
|
31
31
|
return (s, i) => {
|
|
32
|
-
const
|
|
33
|
-
return
|
|
34
|
-
o("p", null,
|
|
35
|
-
|
|
32
|
+
const I = N("FmButton"), b = N("FmDropField");
|
|
33
|
+
return f(), O("div", null, [
|
|
34
|
+
o("p", null, x(p.label), 1),
|
|
35
|
+
P.value ? (f(), D(_, {
|
|
36
36
|
key: 0,
|
|
37
|
-
document:
|
|
37
|
+
document: P.value,
|
|
38
38
|
"restaurant-id": p.restaurantId
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
41
|
-
p.type === "image" ? (
|
|
40
|
+
default: V(({ src: k }) => [
|
|
41
|
+
p.type === "image" ? (f(), O("img", {
|
|
42
42
|
key: 0,
|
|
43
|
-
src:
|
|
44
|
-
}, null, 8,
|
|
45
|
-
p.type === "pdf" ? (
|
|
43
|
+
src: k
|
|
44
|
+
}, null, 8, ie)) : $("", !0),
|
|
45
|
+
p.type === "pdf" ? (f(), D(I, {
|
|
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: () =>
|
|
53
|
-
}, null, 8, ["onVnodeMounted", "onClick"])) :
|
|
51
|
+
onVnodeMounted: () => y(k),
|
|
52
|
+
onClick: () => y(k)
|
|
53
|
+
}, null, 8, ["onVnodeMounted", "onClick"])) : $("", !0)
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
}, 8, ["document", "restaurant-id"])) : (
|
|
56
|
+
}, 8, ["document", "restaurant-id"])) : (f(), D(b, {
|
|
57
57
|
key: 1,
|
|
58
|
-
accept:
|
|
59
|
-
onFileUpload:
|
|
58
|
+
accept: R.value,
|
|
59
|
+
onFileUpload: w
|
|
60
60
|
}, null, 8, ["accept"]))
|
|
61
61
|
]);
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
64
|
+
}), ue = ["src"], de = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "text-center text-red-700 py-4"
|
|
67
|
-
},
|
|
67
|
+
}, me = { class: "flex justify-evenly py-3" }, pe = /* @__PURE__ */ Q({
|
|
68
68
|
__name: "SignatureBoard",
|
|
69
69
|
props: {
|
|
70
70
|
modelValue: {},
|
|
@@ -72,73 +72,73 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
72
72
|
restaurantId: {}
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:modelValue"],
|
|
75
|
-
setup(p, { emit:
|
|
76
|
-
const
|
|
77
|
-
function s(
|
|
75
|
+
setup(p, { emit: A }) {
|
|
76
|
+
const S = p, P = A, q = T(S.modelValue), w = T(!1), y = T(), R = T(!1);
|
|
77
|
+
function s(I, b) {
|
|
78
78
|
var j;
|
|
79
|
-
const
|
|
80
|
-
let m =
|
|
81
|
-
const
|
|
79
|
+
const k = I.split(","), E = ((j = k[0].match(/:(.*?);/)) == null ? void 0 : j[1]) || "", v = atob(k[1]);
|
|
80
|
+
let m = v.length;
|
|
81
|
+
const B = new Uint8Array(m);
|
|
82
82
|
for (; m--; )
|
|
83
|
-
|
|
84
|
-
return new File([
|
|
83
|
+
B[m] = v.charCodeAt(m);
|
|
84
|
+
return new File([B], b, { type: E });
|
|
85
85
|
}
|
|
86
86
|
const i = function() {
|
|
87
|
-
const { isEmpty:
|
|
88
|
-
if (
|
|
89
|
-
return
|
|
90
|
-
q.value = b,
|
|
87
|
+
const { isEmpty: I, data: b } = y.value.saveSignature();
|
|
88
|
+
if (I)
|
|
89
|
+
return w.value = !0;
|
|
90
|
+
q.value = b, R.value = !1, P("update:modelValue", s(b, "signature.png"));
|
|
91
91
|
};
|
|
92
|
-
return (
|
|
93
|
-
const
|
|
94
|
-
return
|
|
95
|
-
o("p", null,
|
|
96
|
-
q.value ? (
|
|
92
|
+
return (I, b) => {
|
|
93
|
+
const k = N("FmButton"), E = N("FmDialog");
|
|
94
|
+
return f(), O("div", null, [
|
|
95
|
+
o("p", null, x(p.label), 1),
|
|
96
|
+
q.value ? (f(), D(_, {
|
|
97
97
|
key: 0,
|
|
98
98
|
document: q.value,
|
|
99
99
|
"restaurant-id": p.restaurantId
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: V(({ src: v }) => [
|
|
102
102
|
o("img", {
|
|
103
|
-
src:
|
|
103
|
+
src: v,
|
|
104
104
|
alt: "Signature Preview",
|
|
105
105
|
class: "w-full h-auto"
|
|
106
|
-
}, null, 8,
|
|
106
|
+
}, null, 8, ue)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
|
-
}, 8, ["document", "restaurant-id"])) :
|
|
110
|
-
q.value ?
|
|
109
|
+
}, 8, ["document", "restaurant-id"])) : $("", !0),
|
|
110
|
+
q.value ? $("", !0) : (f(), D(E, {
|
|
111
111
|
key: 1,
|
|
112
|
-
modelValue:
|
|
113
|
-
"onUpdate:modelValue": b[1] || (b[1] = (
|
|
112
|
+
modelValue: R.value,
|
|
113
|
+
"onUpdate:modelValue": b[1] || (b[1] = (v) => R.value = v)
|
|
114
114
|
}, {
|
|
115
|
-
"dialog-button":
|
|
116
|
-
n(
|
|
115
|
+
"dialog-button": V(() => [
|
|
116
|
+
n(k, {
|
|
117
117
|
"prepend-icon": "signature",
|
|
118
118
|
class: "w-full",
|
|
119
119
|
label: "Signature"
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
|
-
"dialog-header":
|
|
122
|
+
"dialog-header": V(() => [...b[2] || (b[2] = [
|
|
123
123
|
o("div", null, "Signature Board", -1)
|
|
124
124
|
])]),
|
|
125
|
-
default:
|
|
126
|
-
n(e(
|
|
125
|
+
default: V(() => [
|
|
126
|
+
n(e(re), {
|
|
127
127
|
ref_key: "signaturePad",
|
|
128
|
-
ref:
|
|
128
|
+
ref: y,
|
|
129
129
|
height: "300px",
|
|
130
130
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
|
131
131
|
options: { penColor: "#000000" }
|
|
132
132
|
}, null, 512),
|
|
133
|
-
|
|
134
|
-
o("div",
|
|
135
|
-
n(
|
|
133
|
+
w.value ? (f(), O("p", de, " Please sign your signature before saving. ")) : $("", !0),
|
|
134
|
+
o("div", me, [
|
|
135
|
+
n(k, {
|
|
136
136
|
variant: "destructive",
|
|
137
137
|
label: "Clear",
|
|
138
138
|
"prepend-icon": "delete",
|
|
139
|
-
onClick: b[0] || (b[0] = (
|
|
139
|
+
onClick: b[0] || (b[0] = (v) => y.value.clearSignature())
|
|
140
140
|
}),
|
|
141
|
-
n(
|
|
141
|
+
n(k, {
|
|
142
142
|
label: "Save",
|
|
143
143
|
"prepend-icon": "save",
|
|
144
144
|
onClick: i
|
|
@@ -150,7 +150,7 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}),
|
|
153
|
+
}), be = { class: "space-y-2" }, ye = { class: "text-gray-900" }, ge = { class: "text-gray-900" }, ce = { class: "text-gray-900" }, Ve = { class: "text-gray-900" }, ve = { class: "text-gray-900" }, fe = { class: "text-gray-900" }, ke = { class: "mt-6 grid grid-cols-4 gap-24" }, Ce = { class: "w-full flex justify-end mt-6" }, Ne = { class: "mt-6 grid grid-cols-4 gap-24" }, Se = { class: "col-span-2" }, Pe = { class: "col-span-2" }, qe = { class: "col-span-2" }, we = { class: "col-span-2" }, Fe = { class: "col-span-2" }, Ie = { class: "col-span-2" }, Ue = { class: "col-start-1 col-span-2" }, xe = { class: "col-span-2" }, Re = { class: "col-span-2" }, Be = { class: "col-span-2" }, Te = { class: "mt-6 grid grid-cols-4 gap-24" }, je = { class: "mt-6 grid grid-cols-2 gap-24" }, Ee = /* @__PURE__ */ Q({
|
|
154
154
|
__name: "SoftspaceSubmission",
|
|
155
155
|
props: {
|
|
156
156
|
submission: {
|
|
@@ -159,10 +159,10 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
159
159
|
}
|
|
160
160
|
},
|
|
161
161
|
emits: ["update:submission"],
|
|
162
|
-
setup(p, { emit:
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
Object.entries(
|
|
162
|
+
setup(p, { emit: A }) {
|
|
163
|
+
const S = p, P = A, q = h(), w = T(!1), { isLoading: y, startAsyncCall: R } = Z(), { fields: s, documents: i, restaurantId: I, profile: b, status: k, statusReason: E } = S.submission, v = T(""), m = T(
|
|
164
|
+
S.submission.rates ? Object.fromEntries(
|
|
165
|
+
Object.entries(S.submission.rates).map(([U, l]) => [U, `${l}`])
|
|
166
166
|
) : {
|
|
167
167
|
duitNow: "0.8",
|
|
168
168
|
mydebitCard: "0.5",
|
|
@@ -172,12 +172,12 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
172
172
|
jcbStandard: "2.2",
|
|
173
173
|
jcbPlatinum: "2.2"
|
|
174
174
|
}
|
|
175
|
-
),
|
|
176
|
-
() => Object.values(m.value).every((
|
|
177
|
-
), j = () =>
|
|
175
|
+
), B = J(
|
|
176
|
+
() => Object.values(m.value).every((U) => parseFloat(U) > 0)
|
|
177
|
+
), j = () => R(async () => {
|
|
178
178
|
try {
|
|
179
|
-
const
|
|
180
|
-
|
|
179
|
+
const U = await z.reviewById(
|
|
180
|
+
S.submission._id,
|
|
181
181
|
{
|
|
182
182
|
rates: {
|
|
183
183
|
duitNow: parseFloat(m.value.duitNow),
|
|
@@ -191,265 +191,265 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
191
191
|
status: "approved"
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
|
-
|
|
194
|
+
P("update:submission", U), w.value = !1, q.open({
|
|
195
195
|
type: "success",
|
|
196
196
|
title: "Submission updated successfully"
|
|
197
197
|
});
|
|
198
|
-
} catch (
|
|
198
|
+
} catch (U) {
|
|
199
199
|
q.open({
|
|
200
200
|
type: "error",
|
|
201
201
|
title: "Error occurs when updating submission",
|
|
202
|
-
message:
|
|
202
|
+
message: H(U)
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
}),
|
|
205
|
+
}), Y = () => R(async () => {
|
|
206
206
|
try {
|
|
207
|
-
const
|
|
208
|
-
|
|
207
|
+
const U = await z.reviewById(
|
|
208
|
+
S.submission._id,
|
|
209
209
|
{
|
|
210
210
|
status: "rejected",
|
|
211
|
-
statusReason:
|
|
211
|
+
statusReason: v.value
|
|
212
212
|
}
|
|
213
213
|
);
|
|
214
|
-
|
|
214
|
+
P("update:submission", U), w.value = !1, q.open({
|
|
215
215
|
type: "success",
|
|
216
216
|
title: "Submission updated successfully"
|
|
217
217
|
});
|
|
218
|
-
} catch (
|
|
218
|
+
} catch (U) {
|
|
219
219
|
q.open({
|
|
220
220
|
type: "error",
|
|
221
221
|
title: "Error occurs when updating submission",
|
|
222
|
-
message:
|
|
222
|
+
message: H(U)
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
|
-
return (
|
|
227
|
-
const
|
|
228
|
-
return
|
|
229
|
-
o("div",
|
|
226
|
+
return (U, l) => {
|
|
227
|
+
const g = N("FmTextField"), C = N("FmButton"), a = N("FmTextarea"), c = N("FmDialog"), M = N("FmPhoneNumber"), G = N("FmSelect"), X = N("FmForm");
|
|
228
|
+
return f(), O(K, null, [
|
|
229
|
+
o("div", be, [
|
|
230
230
|
o("div", null, [
|
|
231
231
|
l[33] || (l[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
232
|
-
o("span",
|
|
232
|
+
o("span", ye, x(e(I)), 1)
|
|
233
233
|
]),
|
|
234
234
|
o("div", null, [
|
|
235
235
|
l[34] || (l[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
236
|
-
o("span",
|
|
236
|
+
o("span", ge, x(e(b).name) + " ( " + x(e(b).legalName) + " )", 1)
|
|
237
237
|
]),
|
|
238
238
|
o("div", null, [
|
|
239
239
|
l[35] || (l[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
240
|
-
o("span",
|
|
240
|
+
o("span", ce, x(e(b).email), 1)
|
|
241
241
|
]),
|
|
242
242
|
o("div", null, [
|
|
243
243
|
l[36] || (l[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
244
|
-
o("span",
|
|
244
|
+
o("span", Ve, x(e(b).phoneNo), 1)
|
|
245
245
|
]),
|
|
246
246
|
o("div", null, [
|
|
247
247
|
l[37] || (l[37] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
248
|
-
o("span",
|
|
249
|
-
n(
|
|
248
|
+
o("span", ve, [
|
|
249
|
+
n(ee, { data: e(k) }, null, 8, ["data"])
|
|
250
250
|
])
|
|
251
251
|
]),
|
|
252
252
|
o("div", null, [
|
|
253
253
|
l[38] || (l[38] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
254
|
-
o("span",
|
|
254
|
+
o("span", fe, x(e(E)), 1)
|
|
255
255
|
])
|
|
256
256
|
]),
|
|
257
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",
|
|
259
|
-
n(
|
|
258
|
+
o("div", ke, [
|
|
259
|
+
n(g, {
|
|
260
260
|
modelValue: m.value.duitNow,
|
|
261
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
261
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => m.value.duitNow = t),
|
|
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((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
269
269
|
)
|
|
270
270
|
}, {
|
|
271
|
-
append:
|
|
272
|
-
|
|
271
|
+
append: V(() => [...l[39] || (l[39] = [
|
|
272
|
+
L("%", -1)
|
|
273
273
|
])]),
|
|
274
274
|
_: 1
|
|
275
275
|
}, 8, ["modelValue", "rules"]),
|
|
276
|
-
n(
|
|
276
|
+
n(g, {
|
|
277
277
|
modelValue: m.value.mydebitCard,
|
|
278
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
278
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => m.value.mydebitCard = t),
|
|
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((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
286
286
|
)
|
|
287
287
|
}, {
|
|
288
|
-
append:
|
|
289
|
-
|
|
288
|
+
append: V(() => [...l[40] || (l[40] = [
|
|
289
|
+
L("%", -1)
|
|
290
290
|
])]),
|
|
291
291
|
_: 1
|
|
292
292
|
}, 8, ["modelValue", "rules"]),
|
|
293
|
-
n(
|
|
293
|
+
n(g, {
|
|
294
294
|
modelValue: m.value.localDebit,
|
|
295
|
-
"onUpdate:modelValue": l[2] || (l[2] = (
|
|
295
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => m.value.localDebit = t),
|
|
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((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
303
303
|
)
|
|
304
304
|
}, {
|
|
305
|
-
append:
|
|
306
|
-
|
|
305
|
+
append: V(() => [...l[41] || (l[41] = [
|
|
306
|
+
L("%", -1)
|
|
307
307
|
])]),
|
|
308
308
|
_: 1
|
|
309
309
|
}, 8, ["modelValue", "rules"]),
|
|
310
|
-
n(
|
|
310
|
+
n(g, {
|
|
311
311
|
modelValue: m.value.localCredit,
|
|
312
|
-
"onUpdate:modelValue": l[3] || (l[3] = (
|
|
312
|
+
"onUpdate:modelValue": l[3] || (l[3] = (t) => m.value.localCredit = t),
|
|
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((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
320
320
|
)
|
|
321
321
|
}, {
|
|
322
|
-
append:
|
|
323
|
-
|
|
322
|
+
append: V(() => [...l[42] || (l[42] = [
|
|
323
|
+
L("%", -1)
|
|
324
324
|
])]),
|
|
325
325
|
_: 1
|
|
326
326
|
}, 8, ["modelValue", "rules"]),
|
|
327
|
-
n(
|
|
327
|
+
n(g, {
|
|
328
328
|
modelValue: m.value.foreignCard,
|
|
329
|
-
"onUpdate:modelValue": l[4] || (l[4] = (
|
|
329
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => m.value.foreignCard = t),
|
|
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((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
337
337
|
)
|
|
338
338
|
}, {
|
|
339
|
-
append:
|
|
340
|
-
|
|
339
|
+
append: V(() => [...l[43] || (l[43] = [
|
|
340
|
+
L("%", -1)
|
|
341
341
|
])]),
|
|
342
342
|
_: 1
|
|
343
343
|
}, 8, ["modelValue", "rules"]),
|
|
344
|
-
n(
|
|
344
|
+
n(g, {
|
|
345
345
|
modelValue: m.value.jcbStandard,
|
|
346
|
-
"onUpdate:modelValue": l[5] || (l[5] = (
|
|
346
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => m.value.jcbStandard = t),
|
|
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((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
354
354
|
)
|
|
355
355
|
}, {
|
|
356
|
-
append:
|
|
357
|
-
|
|
356
|
+
append: V(() => [...l[44] || (l[44] = [
|
|
357
|
+
L("%", -1)
|
|
358
358
|
])]),
|
|
359
359
|
_: 1
|
|
360
360
|
}, 8, ["modelValue", "rules"]),
|
|
361
|
-
n(
|
|
361
|
+
n(g, {
|
|
362
362
|
modelValue: m.value.jcbPlatinum,
|
|
363
|
-
"onUpdate:modelValue": l[6] || (l[6] = (
|
|
363
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => m.value.jcbPlatinum = t),
|
|
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((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
371
371
|
)
|
|
372
372
|
}, {
|
|
373
|
-
append:
|
|
374
|
-
|
|
373
|
+
append: V(() => [...l[45] || (l[45] = [
|
|
374
|
+
L("%", -1)
|
|
375
375
|
])]),
|
|
376
376
|
_: 1
|
|
377
377
|
}, 8, ["modelValue", "rules"])
|
|
378
378
|
]),
|
|
379
|
-
o("div",
|
|
380
|
-
n(
|
|
381
|
-
modelValue:
|
|
382
|
-
"onUpdate:modelValue": l[8] || (l[8] = (
|
|
379
|
+
o("div", Ce, [
|
|
380
|
+
n(c, {
|
|
381
|
+
modelValue: w.value,
|
|
382
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => w.value = t)
|
|
383
383
|
}, {
|
|
384
|
-
"dialog-button":
|
|
385
|
-
n(
|
|
384
|
+
"dialog-button": V(() => [
|
|
385
|
+
n(C, {
|
|
386
386
|
class: "mr-6",
|
|
387
387
|
type: "button",
|
|
388
388
|
variant: "destructive",
|
|
389
389
|
"prepend-icon": "block",
|
|
390
|
-
loading: e(
|
|
390
|
+
loading: e(y),
|
|
391
391
|
label: "Reject Submission"
|
|
392
392
|
}, null, 8, ["loading"])
|
|
393
393
|
]),
|
|
394
|
-
"dialog-header":
|
|
394
|
+
"dialog-header": V(() => [...l[46] || (l[46] = [
|
|
395
395
|
o("div", null, "Rejecting Submission", -1)
|
|
396
396
|
])]),
|
|
397
|
-
default:
|
|
398
|
-
n(
|
|
399
|
-
modelValue:
|
|
400
|
-
"onUpdate:modelValue": l[7] || (l[7] = (
|
|
397
|
+
default: V(() => [
|
|
398
|
+
n(a, {
|
|
399
|
+
modelValue: v.value,
|
|
400
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => v.value = t),
|
|
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
|
-
n(
|
|
405
|
+
n(C, {
|
|
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: Y,
|
|
410
|
+
loading: e(y)
|
|
411
411
|
}, null, 8, ["loading"])
|
|
412
412
|
]),
|
|
413
413
|
_: 1
|
|
414
414
|
}, 8, ["modelValue"]),
|
|
415
|
-
n(
|
|
415
|
+
n(C, {
|
|
416
416
|
type: "button",
|
|
417
417
|
variant: "primary",
|
|
418
418
|
"prepend-icon": "approval",
|
|
419
|
-
disabled: !
|
|
419
|
+
disabled: !B.value,
|
|
420
420
|
label: "Approve Submission with Rates",
|
|
421
421
|
onClick: j,
|
|
422
|
-
loading: e(
|
|
422
|
+
loading: e(y)
|
|
423
423
|
}, null, 8, ["disabled", "loading"])
|
|
424
424
|
]),
|
|
425
|
-
n(
|
|
426
|
-
default:
|
|
425
|
+
n(X, { disabled: !0 }, {
|
|
426
|
+
default: V(() => [
|
|
427
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",
|
|
429
|
-
o("div",
|
|
430
|
-
n(
|
|
428
|
+
o("div", Ne, [
|
|
429
|
+
o("div", Se, [
|
|
430
|
+
n(g, {
|
|
431
431
|
modelValue: e(s).picName,
|
|
432
|
-
"onUpdate:modelValue": l[9] || (l[9] = (
|
|
432
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => e(s).picName = t),
|
|
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
|
-
o("div",
|
|
440
|
-
n(
|
|
439
|
+
o("div", Pe, [
|
|
440
|
+
n(g, {
|
|
441
441
|
modelValue: e(s).picRole,
|
|
442
|
-
"onUpdate:modelValue": l[10] || (l[10] = (
|
|
442
|
+
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(s).picRole = t),
|
|
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
|
-
o("div",
|
|
450
|
-
n(
|
|
449
|
+
o("div", qe, [
|
|
450
|
+
n(g, {
|
|
451
451
|
modelValue: e(s).picEmail,
|
|
452
|
-
"onUpdate:modelValue": l[11] || (l[11] = (
|
|
452
|
+
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(s).picEmail = t),
|
|
453
453
|
label: "PIC Email",
|
|
454
454
|
type: "email",
|
|
455
455
|
placeholder: "Enter your email address",
|
|
@@ -457,64 +457,64 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
457
457
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
458
458
|
}, null, 8, ["modelValue", "rules"])
|
|
459
459
|
]),
|
|
460
|
-
o("div",
|
|
461
|
-
n(
|
|
460
|
+
o("div", we, [
|
|
461
|
+
n(M, {
|
|
462
462
|
"model-value": e(s).picContact,
|
|
463
|
-
"onUpdate:modelValue": l[12] || (l[12] = (
|
|
463
|
+
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(s).picContact = t),
|
|
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
|
-
o("div",
|
|
471
|
-
n(
|
|
470
|
+
o("div", Fe, [
|
|
471
|
+
n(g, {
|
|
472
472
|
modelValue: e(s).outletName,
|
|
473
|
-
"onUpdate:modelValue": l[13] || (l[13] = (
|
|
473
|
+
"onUpdate:modelValue": l[13] || (l[13] = (t) => e(s).outletName = t),
|
|
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
|
-
o("div",
|
|
481
|
-
n(
|
|
480
|
+
o("div", Ie, [
|
|
481
|
+
n(g, {
|
|
482
482
|
modelValue: e(s).outletAddress,
|
|
483
|
-
"onUpdate:modelValue": l[14] || (l[14] = (
|
|
483
|
+
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(s).outletAddress = t),
|
|
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
|
-
n(
|
|
490
|
+
n(g, {
|
|
491
491
|
modelValue: e(s).outletPostCode,
|
|
492
|
-
"onUpdate:modelValue": l[15] || (l[15] = (
|
|
492
|
+
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(s).outletPostCode = t),
|
|
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
|
-
n(
|
|
498
|
+
n(g, {
|
|
499
499
|
modelValue: e(s).outletState,
|
|
500
|
-
"onUpdate:modelValue": l[16] || (l[16] = (
|
|
500
|
+
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(s).outletState = t),
|
|
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
|
-
n(
|
|
506
|
+
n(g, {
|
|
507
507
|
modelValue: e(s).outletCity,
|
|
508
|
-
"onUpdate:modelValue": l[17] || (l[17] = (
|
|
508
|
+
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(s).outletCity = t),
|
|
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
|
-
o("div",
|
|
515
|
-
n(
|
|
514
|
+
o("div", Ue, [
|
|
515
|
+
n(G, {
|
|
516
516
|
modelValue: e(s).businessType,
|
|
517
|
-
"onUpdate:modelValue": l[18] || (l[18] = (
|
|
517
|
+
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(s).businessType = t),
|
|
518
518
|
label: "Type",
|
|
519
519
|
placeholder: "Select business type",
|
|
520
520
|
"label-mark": "required",
|
|
@@ -533,30 +533,30 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
533
533
|
]
|
|
534
534
|
}, null, 8, ["modelValue", "rules"])
|
|
535
535
|
]),
|
|
536
|
-
o("div",
|
|
537
|
-
n(
|
|
536
|
+
o("div", xe, [
|
|
537
|
+
n(g, {
|
|
538
538
|
modelValue: e(s).businessRegNo,
|
|
539
|
-
"onUpdate:modelValue": l[19] || (l[19] = (
|
|
539
|
+
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(s).businessRegNo = t),
|
|
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
|
-
o("div",
|
|
547
|
-
n(
|
|
546
|
+
o("div", Re, [
|
|
547
|
+
n(g, {
|
|
548
548
|
modelValue: e(s).tinNo,
|
|
549
|
-
"onUpdate:modelValue": l[20] || (l[20] = (
|
|
549
|
+
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(s).tinNo = t),
|
|
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
|
-
o("div",
|
|
557
|
-
n(
|
|
556
|
+
o("div", Be, [
|
|
557
|
+
n(g, {
|
|
558
558
|
modelValue: e(s).sstNo,
|
|
559
|
-
"onUpdate:modelValue": l[21] || (l[21] = (
|
|
559
|
+
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(s).sstNo = t),
|
|
560
560
|
label: "SST Registration No (SST)",
|
|
561
561
|
placeholder: "Enter your SST number",
|
|
562
562
|
"label-mark": "optional"
|
|
@@ -564,90 +564,90 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
564
564
|
])
|
|
565
565
|
]),
|
|
566
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",
|
|
568
|
-
n(
|
|
567
|
+
o("div", Te, [
|
|
568
|
+
n(G, {
|
|
569
569
|
modelValue: e(s).bankName,
|
|
570
|
-
"onUpdate:modelValue": l[22] || (l[22] = (
|
|
570
|
+
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(s).bankName = t),
|
|
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
|
-
items: e(
|
|
575
|
+
items: e(ne).bankNameOptions()
|
|
576
576
|
}, null, 8, ["modelValue", "rules", "items"]),
|
|
577
|
-
n(
|
|
577
|
+
n(g, {
|
|
578
578
|
modelValue: e(s).bankHolderName,
|
|
579
|
-
"onUpdate:modelValue": l[23] || (l[23] = (
|
|
579
|
+
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(s).bankHolderName = t),
|
|
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
|
-
n(
|
|
585
|
+
n(g, {
|
|
586
586
|
modelValue: e(s).bankAccountNo,
|
|
587
|
-
"onUpdate:modelValue": l[24] || (l[24] = (
|
|
587
|
+
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(s).bankAccountNo = t),
|
|
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
|
-
n(
|
|
593
|
+
n(F, {
|
|
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] = (t) => e(i).authorizedPersonID = t),
|
|
597
597
|
type: "image",
|
|
598
598
|
"restaurant-id": p.submission.restaurantId
|
|
599
599
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
600
|
-
n(
|
|
600
|
+
n(F, {
|
|
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] = (t) => e(i).outletPhoto = t),
|
|
604
604
|
type: "image",
|
|
605
605
|
"restaurant-id": p.submission.restaurantId
|
|
606
606
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
607
|
-
n(
|
|
607
|
+
n(F, {
|
|
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] = (t) => e(i).interiorPhoto = t),
|
|
611
611
|
type: "image",
|
|
612
612
|
"restaurant-id": p.submission.restaurantId
|
|
613
613
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
614
|
-
n(
|
|
614
|
+
n(F, {
|
|
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] = (t) => e(i).bankStatement = t),
|
|
618
618
|
type: "pdf",
|
|
619
619
|
"restaurant-id": p.submission.restaurantId
|
|
620
620
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
621
|
-
e(s).businessType === "private_limited" || e(s).businessType === "public_limited" ? (
|
|
621
|
+
e(s).businessType === "private_limited" || e(s).businessType === "public_limited" ? (f(), D(F, {
|
|
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] = (t) => e(i).certificate = t),
|
|
627
627
|
"restaurant-id": p.submission.restaurantId
|
|
628
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
629
|
-
e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (
|
|
628
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
629
|
+
e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (f(), D(F, {
|
|
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] = (t) => e(i).certificate = t),
|
|
635
635
|
"restaurant-id": p.submission.restaurantId
|
|
636
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
636
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
|
|
637
637
|
]),
|
|
638
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",
|
|
640
|
-
n(
|
|
639
|
+
o("div", je, [
|
|
640
|
+
n(pe, {
|
|
641
641
|
modelValue: e(i).signature,
|
|
642
|
-
"onUpdate:modelValue": l[31] || (l[31] = (
|
|
642
|
+
"onUpdate:modelValue": l[31] || (l[31] = (t) => e(i).signature = t),
|
|
643
643
|
"restaurant-id": p.submission.restaurantId,
|
|
644
644
|
label: "Signature"
|
|
645
645
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
646
|
-
n(
|
|
646
|
+
n(F, {
|
|
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] = (t) => e(i).companyStamp = t),
|
|
651
651
|
"restaurant-id": p.submission.restaurantId
|
|
652
652
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
653
653
|
])
|
|
@@ -657,7 +657,7 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
657
657
|
], 64);
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), De = { class: "space-y-2" }, $e = { class: "text-gray-900" }, Ae = { class: "text-gray-900" }, Oe = { class: "text-gray-900" }, Le = { class: "text-gray-900" }, ze = { class: "text-gray-900" }, He = { class: "text-gray-900" }, Me = { class: "mt-6 grid grid-cols-4 gap-24" }, We = { class: "w-full flex justify-end mt-6" }, Je = { class: "mt-6 grid grid-cols-4 gap-24" }, Qe = { class: "col-span-2" }, Ge = { class: "col-span-2" }, Ke = { class: "col-span-2" }, Ye = { class: "col-span-2" }, Xe = { class: "mt-6 grid grid-cols-4 gap-24" }, Ze = { class: "mt-6 grid grid-cols-4 gap-24" }, he = { class: "mt-6 grid grid-cols-4 gap-24" }, _e = { class: "col-span-2" }, el = { class: "col-span-2" }, ll = { class: "col-span-2" }, al = { class: "col-span-2" }, tl = { class: "col-span-2" }, sl = { class: "col-span-2" }, ol = /* @__PURE__ */ Q({
|
|
661
661
|
__name: "NTTSubmission",
|
|
662
662
|
props: {
|
|
663
663
|
submission: {
|
|
@@ -666,365 +666,433 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
666
666
|
}
|
|
667
667
|
},
|
|
668
668
|
emits: ["update:submission"],
|
|
669
|
-
setup(p, { emit:
|
|
670
|
-
const
|
|
669
|
+
setup(p, { emit: A }) {
|
|
670
|
+
const S = p, P = A, q = h(), w = T(!1), { isLoading: y, startAsyncCall: R } = Z(), { fields: s, documents: i, restaurantId: I, profile: b, status: k, statusReason: E } = S.submission, v = T(""), m = [
|
|
671
|
+
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
672
|
+
{
|
|
673
|
+
key: "localCardStandard",
|
|
674
|
+
label: "Local Card (Standard)",
|
|
675
|
+
defaultValue: "2.3"
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
key: "localCardPremium",
|
|
679
|
+
label: "Local Card (Premium)",
|
|
680
|
+
defaultValue: "2.3"
|
|
681
|
+
},
|
|
682
|
+
{
|
|
683
|
+
key: "localCardSuperPremium",
|
|
684
|
+
label: "Local Card (Super Premium)",
|
|
685
|
+
defaultValue: "2.3"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
key: "internationalCard",
|
|
689
|
+
label: "International Card",
|
|
690
|
+
defaultValue: "3.1"
|
|
691
|
+
},
|
|
692
|
+
{ key: "upiCard", label: "UPI Card", defaultValue: "3" },
|
|
693
|
+
{ key: "jcbCard", label: "JCB Card", defaultValue: "3" },
|
|
694
|
+
{ key: "dciCard", label: "DCI Card", defaultValue: "3" },
|
|
695
|
+
{ key: "amexCard", label: "Amex Card", defaultValue: "3" },
|
|
696
|
+
{ key: "alipay", label: "Alipay", defaultValue: "2.3" },
|
|
697
|
+
{ key: "alipayPlus", label: "Alipay+", defaultValue: "2.3" },
|
|
698
|
+
{ key: "trueMoney", label: "TrueMoney", defaultValue: "2.3" },
|
|
699
|
+
{ key: "shopeePay", label: "ShopeePay", defaultValue: "2.3" },
|
|
700
|
+
{ key: "linePay", label: "LinePay", defaultValue: "2.1" },
|
|
701
|
+
{ key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
|
|
702
|
+
], B = Object.fromEntries(
|
|
703
|
+
m.map((C) => [C.key, C.defaultValue])
|
|
704
|
+
), j = T(
|
|
705
|
+
S.submission.rates ? Object.fromEntries(
|
|
706
|
+
Object.entries(S.submission.rates).map(([C, a]) => [C, `${a}`])
|
|
707
|
+
) : { ...B }
|
|
708
|
+
), Y = J(
|
|
709
|
+
() => Object.values(j.value).every((C) => parseFloat(C) > 0)
|
|
710
|
+
), U = J(() => s.businessType === "juristic" ? "Juristic" : s.businessType === "individual" ? "Individual" : s.businessType || "-"), l = () => R(async () => {
|
|
671
711
|
try {
|
|
672
|
-
const
|
|
673
|
-
|
|
712
|
+
const C = await z.reviewById(
|
|
713
|
+
S.submission._id,
|
|
674
714
|
{
|
|
715
|
+
rates: Object.fromEntries(
|
|
716
|
+
m.map((a) => [
|
|
717
|
+
a.key,
|
|
718
|
+
parseFloat(j.value[a.key])
|
|
719
|
+
])
|
|
720
|
+
),
|
|
675
721
|
status: "approved"
|
|
676
722
|
}
|
|
677
723
|
);
|
|
678
|
-
|
|
724
|
+
P("update:submission", C), w.value = !1, q.open({
|
|
679
725
|
type: "success",
|
|
680
726
|
title: "Submission updated successfully"
|
|
681
727
|
});
|
|
682
|
-
} catch (
|
|
728
|
+
} catch (C) {
|
|
683
729
|
q.open({
|
|
684
730
|
type: "error",
|
|
685
731
|
title: "Error occurs when updating submission",
|
|
686
|
-
message:
|
|
732
|
+
message: H(C)
|
|
687
733
|
});
|
|
688
734
|
}
|
|
689
|
-
}),
|
|
735
|
+
}), g = () => R(async () => {
|
|
690
736
|
try {
|
|
691
|
-
const
|
|
692
|
-
|
|
737
|
+
const C = await z.reviewById(
|
|
738
|
+
S.submission._id,
|
|
693
739
|
{
|
|
694
740
|
status: "rejected",
|
|
695
|
-
statusReason:
|
|
741
|
+
statusReason: v.value
|
|
696
742
|
}
|
|
697
743
|
);
|
|
698
|
-
|
|
744
|
+
P("update:submission", C), w.value = !1, q.open({
|
|
699
745
|
type: "success",
|
|
700
746
|
title: "Submission updated successfully"
|
|
701
747
|
});
|
|
702
|
-
} catch (
|
|
748
|
+
} catch (C) {
|
|
703
749
|
q.open({
|
|
704
750
|
type: "error",
|
|
705
751
|
title: "Error occurs when updating submission",
|
|
706
|
-
message:
|
|
752
|
+
message: H(C)
|
|
707
753
|
});
|
|
708
754
|
}
|
|
709
755
|
});
|
|
710
|
-
return (
|
|
711
|
-
const
|
|
712
|
-
return
|
|
713
|
-
o("div",
|
|
756
|
+
return (C, a) => {
|
|
757
|
+
const c = N("FmTextField"), M = N("FmButton"), G = N("FmTextarea"), X = N("FmDialog"), t = N("FmPhoneNumber"), le = N("FmForm");
|
|
758
|
+
return f(), O(K, null, [
|
|
759
|
+
o("div", De, [
|
|
714
760
|
o("div", null, [
|
|
715
|
-
|
|
716
|
-
o("span",
|
|
761
|
+
a[31] || (a[31] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
762
|
+
o("span", $e, x(e(I)), 1)
|
|
717
763
|
]),
|
|
718
764
|
o("div", null, [
|
|
719
|
-
|
|
720
|
-
o("span",
|
|
765
|
+
a[32] || (a[32] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
766
|
+
o("span", Ae, x(e(b).name) + " ( " + x(e(b).legalName) + " )", 1)
|
|
721
767
|
]),
|
|
722
768
|
o("div", null, [
|
|
723
|
-
|
|
724
|
-
o("span",
|
|
769
|
+
a[33] || (a[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
770
|
+
o("span", Oe, x(e(b).email), 1)
|
|
725
771
|
]),
|
|
726
772
|
o("div", null, [
|
|
727
|
-
|
|
728
|
-
o("span",
|
|
773
|
+
a[34] || (a[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
774
|
+
o("span", Le, x(e(b).phoneNo), 1)
|
|
729
775
|
]),
|
|
730
776
|
o("div", null, [
|
|
731
|
-
|
|
732
|
-
o("span",
|
|
733
|
-
n(
|
|
777
|
+
a[35] || (a[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
778
|
+
o("span", ze, [
|
|
779
|
+
n(ee, { data: e(k) }, null, 8, ["data"])
|
|
734
780
|
])
|
|
735
781
|
]),
|
|
736
782
|
o("div", null, [
|
|
737
|
-
|
|
738
|
-
o("span",
|
|
783
|
+
a[36] || (a[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
784
|
+
o("span", He, x(e(E)), 1)
|
|
739
785
|
])
|
|
740
786
|
]),
|
|
741
|
-
o("
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
787
|
+
a[43] || (a[43] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
788
|
+
o("div", Me, [
|
|
789
|
+
(f(), O(K, null, ae(m, (r) => n(c, {
|
|
790
|
+
key: r.key,
|
|
791
|
+
modelValue: j.value[r.key],
|
|
792
|
+
"onUpdate:modelValue": (W) => j.value[r.key] = W,
|
|
793
|
+
label: r.label,
|
|
794
|
+
"label-mark": "required",
|
|
795
|
+
type: "number",
|
|
796
|
+
inputmode: "numeric",
|
|
797
|
+
decimal: 2,
|
|
798
|
+
rules: e(u)(
|
|
799
|
+
e(d).string().min(1, "Rate is required").transform((W) => parseFloat(W)).refine((W) => !isNaN(W), { message: "Rate must be a number" })
|
|
800
|
+
)
|
|
801
|
+
}, {
|
|
802
|
+
append: V(() => [...a[37] || (a[37] = [
|
|
803
|
+
L("%", -1)
|
|
804
|
+
])]),
|
|
805
|
+
_: 1
|
|
806
|
+
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
807
|
+
]),
|
|
808
|
+
o("div", We, [
|
|
809
|
+
n(X, {
|
|
810
|
+
modelValue: w.value,
|
|
811
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => w.value = r)
|
|
745
812
|
}, {
|
|
746
|
-
"dialog-button":
|
|
747
|
-
n(
|
|
813
|
+
"dialog-button": V(() => [
|
|
814
|
+
n(M, {
|
|
748
815
|
class: "mr-6",
|
|
749
816
|
type: "button",
|
|
750
817
|
variant: "destructive",
|
|
751
818
|
"prepend-icon": "block",
|
|
752
|
-
loading: e(
|
|
819
|
+
loading: e(y),
|
|
753
820
|
label: "Reject Submission"
|
|
754
821
|
}, null, 8, ["loading"])
|
|
755
822
|
]),
|
|
756
|
-
"dialog-header":
|
|
823
|
+
"dialog-header": V(() => [...a[38] || (a[38] = [
|
|
757
824
|
o("div", null, "Rejecting Submission", -1)
|
|
758
825
|
])]),
|
|
759
|
-
default:
|
|
760
|
-
n(
|
|
761
|
-
modelValue:
|
|
762
|
-
"onUpdate:modelValue":
|
|
826
|
+
default: V(() => [
|
|
827
|
+
n(G, {
|
|
828
|
+
modelValue: v.value,
|
|
829
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => v.value = r),
|
|
763
830
|
label: "Reason for Rejection",
|
|
764
831
|
"label-mark": "optional",
|
|
765
832
|
"helper-text": "Please provide a reason for rejection."
|
|
766
833
|
}, null, 8, ["modelValue"]),
|
|
767
|
-
n(
|
|
834
|
+
n(M, {
|
|
768
835
|
class: "mb-2 mt-6 w-full",
|
|
769
836
|
label: "Submit",
|
|
770
837
|
"prepend-icon": "save",
|
|
771
|
-
onClick:
|
|
772
|
-
loading: e(
|
|
838
|
+
onClick: g,
|
|
839
|
+
loading: e(y)
|
|
773
840
|
}, null, 8, ["loading"])
|
|
774
841
|
]),
|
|
775
842
|
_: 1
|
|
776
843
|
}, 8, ["modelValue"]),
|
|
777
|
-
n(
|
|
844
|
+
n(M, {
|
|
778
845
|
type: "button",
|
|
779
846
|
variant: "primary",
|
|
780
847
|
"prepend-icon": "approval",
|
|
781
|
-
label: "Approve Submission",
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
848
|
+
label: "Approve Submission with Rates",
|
|
849
|
+
disabled: !Y.value,
|
|
850
|
+
onClick: l,
|
|
851
|
+
loading: e(y)
|
|
852
|
+
}, null, 8, ["disabled", "loading"])
|
|
785
853
|
]),
|
|
786
|
-
n(
|
|
787
|
-
default:
|
|
788
|
-
|
|
789
|
-
o("div",
|
|
790
|
-
o("div",
|
|
791
|
-
n(
|
|
854
|
+
n(le, { disabled: !0 }, {
|
|
855
|
+
default: V(() => [
|
|
856
|
+
a[39] || (a[39] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
857
|
+
o("div", Je, [
|
|
858
|
+
o("div", Qe, [
|
|
859
|
+
n(c, {
|
|
792
860
|
modelValue: e(s).companyName,
|
|
793
|
-
"onUpdate:modelValue":
|
|
861
|
+
"onUpdate:modelValue": a[2] || (a[2] = (r) => e(s).companyName = r),
|
|
794
862
|
label: "Company Name",
|
|
795
863
|
"label-mark": "required",
|
|
796
864
|
rules: e(u)(e(d).string().min(1, "Company Name is required"))
|
|
797
865
|
}, null, 8, ["modelValue", "rules"])
|
|
798
866
|
]),
|
|
799
|
-
o("div",
|
|
800
|
-
n(
|
|
867
|
+
o("div", Ge, [
|
|
868
|
+
n(c, {
|
|
801
869
|
modelValue: e(s).outletName,
|
|
802
|
-
"onUpdate:modelValue":
|
|
870
|
+
"onUpdate:modelValue": a[3] || (a[3] = (r) => e(s).outletName = r),
|
|
803
871
|
label: "Outlet Name (Thai)",
|
|
804
872
|
"label-mark": "required",
|
|
805
873
|
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
|
806
874
|
}, null, 8, ["modelValue", "rules"])
|
|
807
875
|
]),
|
|
808
|
-
o("div",
|
|
809
|
-
n(
|
|
876
|
+
o("div", Ke, [
|
|
877
|
+
n(c, {
|
|
810
878
|
modelValue: e(s).outletNameEnglish,
|
|
811
|
-
"onUpdate:modelValue":
|
|
879
|
+
"onUpdate:modelValue": a[4] || (a[4] = (r) => e(s).outletNameEnglish = r),
|
|
812
880
|
label: "Outlet Name (English)",
|
|
813
881
|
"label-mark": "required",
|
|
814
882
|
rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
|
|
815
883
|
}, null, 8, ["modelValue", "rules"])
|
|
816
884
|
]),
|
|
817
|
-
o("div",
|
|
818
|
-
n(
|
|
885
|
+
o("div", Ye, [
|
|
886
|
+
n(c, {
|
|
819
887
|
modelValue: e(s).outletAddress,
|
|
820
|
-
"onUpdate:modelValue":
|
|
888
|
+
"onUpdate:modelValue": a[5] || (a[5] = (r) => e(s).outletAddress = r),
|
|
821
889
|
label: "Outlet Address",
|
|
822
890
|
"label-mark": "required",
|
|
823
891
|
rules: e(u)(e(d).string().min(1, "Outlet Address is required"))
|
|
824
892
|
}, null, 8, ["modelValue", "rules"])
|
|
825
893
|
]),
|
|
826
|
-
n(
|
|
894
|
+
n(c, {
|
|
827
895
|
modelValue: e(s).outletPostCode,
|
|
828
|
-
"onUpdate:modelValue":
|
|
896
|
+
"onUpdate:modelValue": a[6] || (a[6] = (r) => e(s).outletPostCode = r),
|
|
829
897
|
label: "Post Code",
|
|
830
898
|
"label-mark": "required",
|
|
831
899
|
rules: e(u)(e(d).string().min(1, "Post Code is required"))
|
|
832
900
|
}, null, 8, ["modelValue", "rules"]),
|
|
833
|
-
n(
|
|
901
|
+
n(c, {
|
|
834
902
|
modelValue: e(s).outletState,
|
|
835
|
-
"onUpdate:modelValue":
|
|
903
|
+
"onUpdate:modelValue": a[7] || (a[7] = (r) => e(s).outletState = r),
|
|
836
904
|
label: "State",
|
|
837
905
|
"label-mark": "required",
|
|
838
906
|
rules: e(u)(e(d).string().min(1, "State is required"))
|
|
839
907
|
}, null, 8, ["modelValue", "rules"]),
|
|
840
|
-
n(
|
|
908
|
+
n(c, {
|
|
841
909
|
modelValue: e(s).outletCity,
|
|
842
|
-
"onUpdate:modelValue":
|
|
910
|
+
"onUpdate:modelValue": a[8] || (a[8] = (r) => e(s).outletCity = r),
|
|
843
911
|
label: "City",
|
|
844
912
|
"label-mark": "required",
|
|
845
913
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
846
914
|
}, null, 8, ["modelValue", "rules"]),
|
|
847
|
-
n(
|
|
848
|
-
"model-value":
|
|
915
|
+
n(c, {
|
|
916
|
+
"model-value": U.value,
|
|
849
917
|
label: "Business Type",
|
|
850
918
|
"label-mark": "required"
|
|
851
919
|
}, null, 8, ["model-value"]),
|
|
852
|
-
n(
|
|
920
|
+
n(c, {
|
|
853
921
|
modelValue: e(s).numberOfDevices,
|
|
854
|
-
"onUpdate:modelValue":
|
|
922
|
+
"onUpdate:modelValue": a[9] || (a[9] = (r) => e(s).numberOfDevices = r),
|
|
855
923
|
label: "Number of Devices",
|
|
856
924
|
"label-mark": "required"
|
|
857
925
|
}, null, 8, ["modelValue"])
|
|
858
926
|
]),
|
|
859
|
-
|
|
860
|
-
o("div",
|
|
861
|
-
n(
|
|
927
|
+
a[40] || (a[40] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
928
|
+
o("div", Xe, [
|
|
929
|
+
n(c, {
|
|
862
930
|
modelValue: e(s).bankName,
|
|
863
|
-
"onUpdate:modelValue":
|
|
931
|
+
"onUpdate:modelValue": a[10] || (a[10] = (r) => e(s).bankName = r),
|
|
864
932
|
label: "Bank Name",
|
|
865
933
|
"label-mark": "required",
|
|
866
934
|
rules: e(u)(e(d).string().min(1, "Bank Name is required"))
|
|
867
935
|
}, null, 8, ["modelValue", "rules"]),
|
|
868
|
-
n(
|
|
936
|
+
n(c, {
|
|
869
937
|
modelValue: e(s).bankHolderName,
|
|
870
|
-
"onUpdate:modelValue":
|
|
938
|
+
"onUpdate:modelValue": a[11] || (a[11] = (r) => e(s).bankHolderName = r),
|
|
871
939
|
label: "Bank Holder Name",
|
|
872
940
|
"label-mark": "required",
|
|
873
941
|
rules: e(u)(e(d).string().min(1, "Bank Holder Name is required"))
|
|
874
942
|
}, null, 8, ["modelValue", "rules"]),
|
|
875
|
-
n(
|
|
943
|
+
n(c, {
|
|
876
944
|
modelValue: e(s).bankAccountNo,
|
|
877
|
-
"onUpdate:modelValue":
|
|
945
|
+
"onUpdate:modelValue": a[12] || (a[12] = (r) => e(s).bankAccountNo = r),
|
|
878
946
|
label: "Bank Account No",
|
|
879
947
|
"label-mark": "required",
|
|
880
948
|
rules: e(u)(e(d).string().min(1, "Bank Account No is required"))
|
|
881
949
|
}, null, 8, ["modelValue", "rules"]),
|
|
882
|
-
n(
|
|
950
|
+
n(c, {
|
|
883
951
|
modelValue: e(s).bankBranch,
|
|
884
|
-
"onUpdate:modelValue":
|
|
952
|
+
"onUpdate:modelValue": a[13] || (a[13] = (r) => e(s).bankBranch = r),
|
|
885
953
|
label: "Bank Branch",
|
|
886
954
|
"label-mark": "required",
|
|
887
955
|
rules: e(u)(e(d).string().min(1, "Bank Branch is required"))
|
|
888
956
|
}, null, 8, ["modelValue", "rules"]),
|
|
889
|
-
n(
|
|
957
|
+
n(c, {
|
|
890
958
|
modelValue: e(s).bankBranchCode,
|
|
891
|
-
"onUpdate:modelValue":
|
|
959
|
+
"onUpdate:modelValue": a[14] || (a[14] = (r) => e(s).bankBranchCode = r),
|
|
892
960
|
label: "Bank Branch Code",
|
|
893
961
|
"label-mark": "required",
|
|
894
962
|
rules: e(u)(e(d).string().min(1, "Bank Branch Code is required"))
|
|
895
963
|
}, null, 8, ["modelValue", "rules"])
|
|
896
964
|
]),
|
|
897
|
-
|
|
898
|
-
o("div",
|
|
899
|
-
n(
|
|
965
|
+
a[41] || (a[41] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
966
|
+
o("div", Ze, [
|
|
967
|
+
n(F, {
|
|
900
968
|
label: "Authorized Person ID",
|
|
901
969
|
modelValue: e(i).authorizedPersonID,
|
|
902
|
-
"onUpdate:modelValue":
|
|
970
|
+
"onUpdate:modelValue": a[15] || (a[15] = (r) => e(i).authorizedPersonID = r),
|
|
903
971
|
type: "image",
|
|
904
972
|
"restaurant-id": p.submission.restaurantId
|
|
905
973
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
906
|
-
n(
|
|
974
|
+
n(F, {
|
|
907
975
|
label: "Outlet Photo",
|
|
908
976
|
modelValue: e(i).outletPhoto,
|
|
909
|
-
"onUpdate:modelValue":
|
|
977
|
+
"onUpdate:modelValue": a[16] || (a[16] = (r) => e(i).outletPhoto = r),
|
|
910
978
|
type: "image",
|
|
911
979
|
"restaurant-id": p.submission.restaurantId
|
|
912
980
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
913
|
-
n(
|
|
981
|
+
n(F, {
|
|
914
982
|
label: "Interior Photo",
|
|
915
983
|
modelValue: e(i).interiorPhoto,
|
|
916
|
-
"onUpdate:modelValue":
|
|
984
|
+
"onUpdate:modelValue": a[17] || (a[17] = (r) => e(i).interiorPhoto = r),
|
|
917
985
|
type: "image",
|
|
918
986
|
"restaurant-id": p.submission.restaurantId
|
|
919
987
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
920
|
-
n(
|
|
988
|
+
n(F, {
|
|
921
989
|
label: "Bank Statement",
|
|
922
990
|
modelValue: e(i).bankStatement,
|
|
923
|
-
"onUpdate:modelValue":
|
|
991
|
+
"onUpdate:modelValue": a[18] || (a[18] = (r) => e(i).bankStatement = r),
|
|
924
992
|
type: "pdf",
|
|
925
993
|
"restaurant-id": p.submission.restaurantId
|
|
926
994
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
927
|
-
e(s).businessType === "juristic" ? (
|
|
995
|
+
e(s).businessType === "juristic" ? (f(), D(F, {
|
|
928
996
|
key: 0,
|
|
929
997
|
label: "Company Certificate",
|
|
930
998
|
type: "pdf",
|
|
931
999
|
modelValue: e(i).companyCertificate,
|
|
932
|
-
"onUpdate:modelValue":
|
|
1000
|
+
"onUpdate:modelValue": a[19] || (a[19] = (r) => e(i).companyCertificate = r),
|
|
933
1001
|
"restaurant-id": p.submission.restaurantId
|
|
934
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
935
|
-
e(s).businessType === "juristic" ? (
|
|
1002
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1003
|
+
e(s).businessType === "juristic" ? (f(), D(F, {
|
|
936
1004
|
key: 1,
|
|
937
1005
|
label: "VAT Certificate",
|
|
938
1006
|
type: "pdf",
|
|
939
1007
|
modelValue: e(i).vatCertificate,
|
|
940
|
-
"onUpdate:modelValue":
|
|
1008
|
+
"onUpdate:modelValue": a[20] || (a[20] = (r) => e(i).vatCertificate = r),
|
|
941
1009
|
"restaurant-id": p.submission.restaurantId
|
|
942
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
943
|
-
e(s).businessType === "individual" ? (
|
|
1010
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1011
|
+
e(s).businessType === "individual" ? (f(), D(F, {
|
|
944
1012
|
key: 2,
|
|
945
1013
|
label: "Commercial Certificate",
|
|
946
1014
|
type: "pdf",
|
|
947
1015
|
modelValue: e(i).commercialCertificate,
|
|
948
|
-
"onUpdate:modelValue":
|
|
1016
|
+
"onUpdate:modelValue": a[21] || (a[21] = (r) => e(i).commercialCertificate = r),
|
|
949
1017
|
"restaurant-id": p.submission.restaurantId
|
|
950
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
1018
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
|
|
951
1019
|
]),
|
|
952
|
-
|
|
953
|
-
o("div",
|
|
954
|
-
o("div",
|
|
955
|
-
n(
|
|
1020
|
+
a[42] || (a[42] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1021
|
+
o("div", he, [
|
|
1022
|
+
o("div", _e, [
|
|
1023
|
+
n(c, {
|
|
956
1024
|
modelValue: e(s).picName,
|
|
957
|
-
"onUpdate:modelValue":
|
|
1025
|
+
"onUpdate:modelValue": a[22] || (a[22] = (r) => e(s).picName = r),
|
|
958
1026
|
label: "PIC Name",
|
|
959
1027
|
"label-mark": "required",
|
|
960
1028
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
961
1029
|
}, null, 8, ["modelValue", "rules"])
|
|
962
1030
|
]),
|
|
963
|
-
o("div",
|
|
964
|
-
n(
|
|
1031
|
+
o("div", el, [
|
|
1032
|
+
n(c, {
|
|
965
1033
|
modelValue: e(s).picRole,
|
|
966
|
-
"onUpdate:modelValue":
|
|
1034
|
+
"onUpdate:modelValue": a[23] || (a[23] = (r) => e(s).picRole = r),
|
|
967
1035
|
label: "PIC Role",
|
|
968
1036
|
"label-mark": "required",
|
|
969
1037
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
970
1038
|
}, null, 8, ["modelValue", "rules"])
|
|
971
1039
|
]),
|
|
972
|
-
o("div",
|
|
973
|
-
n(
|
|
1040
|
+
o("div", ll, [
|
|
1041
|
+
n(c, {
|
|
974
1042
|
modelValue: e(s).picEmail,
|
|
975
|
-
"onUpdate:modelValue":
|
|
1043
|
+
"onUpdate:modelValue": a[24] || (a[24] = (r) => e(s).picEmail = r),
|
|
976
1044
|
label: "PIC Email",
|
|
977
1045
|
"label-mark": "required",
|
|
978
1046
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
979
1047
|
}, null, 8, ["modelValue", "rules"])
|
|
980
1048
|
]),
|
|
981
|
-
o("div",
|
|
982
|
-
n(
|
|
1049
|
+
o("div", al, [
|
|
1050
|
+
n(t, {
|
|
983
1051
|
"model-value": e(s).picContact,
|
|
984
|
-
"onUpdate:modelValue":
|
|
1052
|
+
"onUpdate:modelValue": a[25] || (a[25] = (r) => e(s).picContact = r),
|
|
985
1053
|
"default-country": "TH",
|
|
986
1054
|
label: "PIC Contact",
|
|
987
1055
|
"label-mark": "required",
|
|
988
1056
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
989
1057
|
}, null, 8, ["model-value", "rules"])
|
|
990
1058
|
]),
|
|
991
|
-
o("div",
|
|
992
|
-
n(
|
|
1059
|
+
o("div", tl, [
|
|
1060
|
+
n(c, {
|
|
993
1061
|
modelValue: e(s).witnessName,
|
|
994
|
-
"onUpdate:modelValue":
|
|
1062
|
+
"onUpdate:modelValue": a[26] || (a[26] = (r) => e(s).witnessName = r),
|
|
995
1063
|
label: "Witness Name",
|
|
996
1064
|
"label-mark": "required",
|
|
997
1065
|
rules: e(u)(e(d).string().min(1, "Witness Name is required"))
|
|
998
1066
|
}, null, 8, ["modelValue", "rules"])
|
|
999
1067
|
]),
|
|
1000
|
-
o("div",
|
|
1001
|
-
n(
|
|
1068
|
+
o("div", sl, [
|
|
1069
|
+
n(c, {
|
|
1002
1070
|
modelValue: e(s).witnessRole,
|
|
1003
|
-
"onUpdate:modelValue":
|
|
1071
|
+
"onUpdate:modelValue": a[27] || (a[27] = (r) => e(s).witnessRole = r),
|
|
1004
1072
|
label: "Witness Role",
|
|
1005
1073
|
"label-mark": "required",
|
|
1006
1074
|
rules: e(u)(e(d).string().min(1, "Witness Role is required"))
|
|
1007
1075
|
}, null, 8, ["modelValue", "rules"])
|
|
1008
1076
|
]),
|
|
1009
|
-
n(
|
|
1077
|
+
n(F, {
|
|
1010
1078
|
label: "Signature",
|
|
1011
1079
|
type: "image",
|
|
1012
1080
|
modelValue: e(i).signature,
|
|
1013
|
-
"onUpdate:modelValue":
|
|
1081
|
+
"onUpdate:modelValue": a[28] || (a[28] = (r) => e(i).signature = r),
|
|
1014
1082
|
"restaurant-id": p.submission.restaurantId
|
|
1015
1083
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1016
|
-
n(
|
|
1084
|
+
n(F, {
|
|
1017
1085
|
label: "Witness Signature",
|
|
1018
1086
|
type: "image",
|
|
1019
1087
|
modelValue: e(i).witnessSignature,
|
|
1020
|
-
"onUpdate:modelValue":
|
|
1088
|
+
"onUpdate:modelValue": a[29] || (a[29] = (r) => e(i).witnessSignature = r),
|
|
1021
1089
|
"restaurant-id": p.submission.restaurantId
|
|
1022
1090
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1023
|
-
n(
|
|
1091
|
+
n(F, {
|
|
1024
1092
|
label: "Company Stamp",
|
|
1025
1093
|
type: "image",
|
|
1026
1094
|
modelValue: e(i).companyStamp,
|
|
1027
|
-
"onUpdate:modelValue":
|
|
1095
|
+
"onUpdate:modelValue": a[30] || (a[30] = (r) => e(i).companyStamp = r),
|
|
1028
1096
|
"restaurant-id": p.submission.restaurantId
|
|
1029
1097
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
1030
1098
|
])
|
|
@@ -1034,10 +1102,10 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
1034
1102
|
], 64);
|
|
1035
1103
|
};
|
|
1036
1104
|
}
|
|
1037
|
-
}),
|
|
1105
|
+
}), nl = {
|
|
1038
1106
|
key: 0,
|
|
1039
1107
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1040
|
-
},
|
|
1108
|
+
}, rl = { class: "px-32 pb-32" }, fl = /* @__PURE__ */ Q({
|
|
1041
1109
|
__name: "OnboardForm",
|
|
1042
1110
|
props: {
|
|
1043
1111
|
submissionId: {
|
|
@@ -1046,87 +1114,87 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
1046
1114
|
}
|
|
1047
1115
|
},
|
|
1048
1116
|
setup(p) {
|
|
1049
|
-
const { startAsyncCall:
|
|
1117
|
+
const { startAsyncCall: A, isLoading: S } = Z(), P = h(), q = p, w = oe(), y = T(null), R = () => {
|
|
1050
1118
|
if (window.history.length > 1) {
|
|
1051
|
-
|
|
1119
|
+
w.back();
|
|
1052
1120
|
return;
|
|
1053
1121
|
}
|
|
1054
|
-
|
|
1122
|
+
w.push({ name: "mf-payment-admin.onboard-submission" });
|
|
1055
1123
|
};
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1124
|
+
te(() => {
|
|
1125
|
+
A(async () => {
|
|
1126
|
+
y.value = await z.readById(q.submissionId);
|
|
1059
1127
|
});
|
|
1060
1128
|
});
|
|
1061
|
-
const s =
|
|
1062
|
-
if (!
|
|
1063
|
-
switch (
|
|
1129
|
+
const s = J(() => {
|
|
1130
|
+
if (!y.value) return null;
|
|
1131
|
+
switch (y.value.type) {
|
|
1064
1132
|
case "softspace":
|
|
1065
|
-
return
|
|
1133
|
+
return Ee;
|
|
1066
1134
|
case "ntt":
|
|
1067
|
-
return
|
|
1135
|
+
return ol;
|
|
1068
1136
|
default:
|
|
1069
1137
|
return null;
|
|
1070
1138
|
}
|
|
1071
|
-
}), i =
|
|
1072
|
-
function
|
|
1073
|
-
|
|
1139
|
+
}), i = T(0);
|
|
1140
|
+
function I(k) {
|
|
1141
|
+
y.value = k, i.value = Date.now();
|
|
1074
1142
|
}
|
|
1075
|
-
const b = async (
|
|
1076
|
-
var
|
|
1077
|
-
if (
|
|
1078
|
-
switch (
|
|
1143
|
+
const b = async (k) => {
|
|
1144
|
+
var E, v;
|
|
1145
|
+
if (y.value)
|
|
1146
|
+
switch (k) {
|
|
1079
1147
|
case "preview":
|
|
1080
1148
|
let m;
|
|
1081
1149
|
try {
|
|
1082
|
-
m =
|
|
1150
|
+
m = P.open({
|
|
1083
1151
|
message: "Generating preview document...",
|
|
1084
1152
|
type: "info"
|
|
1085
|
-
}), await
|
|
1086
|
-
(
|
|
1153
|
+
}), await z.previewDocument(
|
|
1154
|
+
(E = y.value) == null ? void 0 : E._id
|
|
1087
1155
|
);
|
|
1088
|
-
} catch (
|
|
1089
|
-
|
|
1156
|
+
} catch (B) {
|
|
1157
|
+
P.open({
|
|
1090
1158
|
type: "error",
|
|
1091
1159
|
title: "Error occurs when generating submission document",
|
|
1092
|
-
message:
|
|
1160
|
+
message: H(B)
|
|
1093
1161
|
});
|
|
1094
1162
|
} finally {
|
|
1095
|
-
m &&
|
|
1163
|
+
m && P.close(m);
|
|
1096
1164
|
}
|
|
1097
1165
|
break;
|
|
1098
1166
|
case "send":
|
|
1099
1167
|
try {
|
|
1100
|
-
|
|
1168
|
+
P.open({
|
|
1101
1169
|
message: "Sending onboarding document...",
|
|
1102
1170
|
type: "info"
|
|
1103
|
-
}), await
|
|
1104
|
-
(
|
|
1105
|
-
),
|
|
1171
|
+
}), await z.sendDocument(
|
|
1172
|
+
(v = y.value) == null ? void 0 : v._id
|
|
1173
|
+
), P.open({
|
|
1106
1174
|
type: "success",
|
|
1107
1175
|
title: "Submission documents send successfully"
|
|
1108
1176
|
});
|
|
1109
|
-
} catch (
|
|
1110
|
-
|
|
1177
|
+
} catch (B) {
|
|
1178
|
+
P.open({
|
|
1111
1179
|
type: "error",
|
|
1112
1180
|
title: "Error occurs when sending document",
|
|
1113
|
-
message:
|
|
1181
|
+
message: H(B)
|
|
1114
1182
|
});
|
|
1115
1183
|
}
|
|
1116
1184
|
break;
|
|
1117
1185
|
}
|
|
1118
1186
|
};
|
|
1119
|
-
return (
|
|
1120
|
-
var
|
|
1121
|
-
const
|
|
1122
|
-
return e(
|
|
1123
|
-
n(
|
|
1124
|
-
])) : (
|
|
1187
|
+
return (k, E) => {
|
|
1188
|
+
var B, j;
|
|
1189
|
+
const v = N("FmCircularProgress"), m = N("FmPageHead");
|
|
1190
|
+
return e(S) ? (f(), O("div", nl, [
|
|
1191
|
+
n(v, { size: "xxl" })
|
|
1192
|
+
])) : (f(), O(K, { key: 1 }, [
|
|
1125
1193
|
n(m, {
|
|
1126
|
-
title: `Submission - ${(
|
|
1127
|
-
description: `ID - ${(j =
|
|
1194
|
+
title: `Submission - ${(B = y.value) == null ? void 0 : B.type}`,
|
|
1195
|
+
description: `ID - ${(j = y.value) == null ? void 0 : j._id}`,
|
|
1128
1196
|
"back-button": !0,
|
|
1129
|
-
"onClick:back":
|
|
1197
|
+
"onClick:back": R,
|
|
1130
1198
|
"onClick:action": b,
|
|
1131
1199
|
actions: [
|
|
1132
1200
|
{
|
|
@@ -1142,11 +1210,11 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
1142
1210
|
}
|
|
1143
1211
|
]
|
|
1144
1212
|
}, null, 8, ["title", "description"]),
|
|
1145
|
-
o("div",
|
|
1146
|
-
(
|
|
1213
|
+
o("div", rl, [
|
|
1214
|
+
(f(), D(se(s.value), {
|
|
1147
1215
|
key: i.value,
|
|
1148
|
-
submission:
|
|
1149
|
-
"onUpdate:submission":
|
|
1216
|
+
submission: y.value,
|
|
1217
|
+
"onUpdate:submission": I
|
|
1150
1218
|
}, null, 40, ["submission"]))
|
|
1151
1219
|
])
|
|
1152
1220
|
], 64));
|
|
@@ -1154,5 +1222,5 @@ const se = ["src"], P = /* @__PURE__ */ M({
|
|
|
1154
1222
|
}
|
|
1155
1223
|
});
|
|
1156
1224
|
export {
|
|
1157
|
-
|
|
1225
|
+
fl as default
|
|
1158
1226
|
};
|