@feedmepos/mf-payment 1.6.27-dev → 1.6.29-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/{Actions.vue_vue_type_script_setup_true_lang-Bwzl_cxX.js → Actions.vue_vue_type_script_setup_true_lang-CxgB3gak.js} +1 -1
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DbOBie8s.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CavzjmWi.js} +2 -2
- package/dist/{Chargeback-BbEH3Y_G.js → Chargeback-Cry1DMwD.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BcsxIsdr.js → DocumentViewer.vue_vue_type_script_setup_true_lang-D8idx1-Z.js} +1 -1
- package/dist/{OnboardForm-Bb9YjKYW.js → OnboardForm-BICBXsq_.js} +279 -269
- package/dist/{OnboardForm-DdAQcuVP.js → OnboardForm-N5TC3pGo.js} +5 -5
- package/dist/{OnboardSubmission-BCUkTerS.js → OnboardSubmission-B5zK3JR8.js} +5 -5
- package/dist/{OnboardSubmission-CCKdtcm9.js → OnboardSubmission-CJwLQ2iU.js} +2 -2
- package/dist/{PayoutAccount-DWyFmSBa.js → PayoutAccount-DpwF64wD.js} +5 -5
- package/dist/{PayoutAccount-BB4FABnd.js → PayoutAccount-_5wsCE2a.js} +5 -5
- package/dist/{PayoutAccountSetting-BL67hUzD.js → PayoutAccountSetting-Cbs7lu6j.js} +6 -6
- package/dist/{Restaurant-DCSJtwU6.js → Restaurant-BKqkYJjV.js} +4 -4
- package/dist/{RestaurantSetting-BGaDyDys.js → RestaurantSetting-CU7Gibsy.js} +3 -3
- package/dist/{Settlement-DIOB9jJg.js → Settlement-9Wt6qs5z.js} +3 -3
- package/dist/{Settlement-uF5WsLGG.js → Settlement-CXZXsGGs.js} +4 -4
- package/dist/{SettlementTransactions-DVVXtgMg.js → SettlementTransactions-CjQCyqLj.js} +4 -4
- package/dist/{SettlementTransactions-XQzK0lZC.js → SettlementTransactions-D_baa0Hn.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BMX1tovh.js → Status.vue_vue_type_script_setup_true_lang-x0EZp8b0.js} +1 -1
- package/dist/{Terminal-DOEJnX8s.js → Terminal-C1n0Lie7.js} +5 -5
- package/dist/{TerminalSetting-CxWoXAjO.js → TerminalSetting-OthcOhf3.js} +4 -4
- package/dist/{Transaction-CwSo9WYj.js → Transaction-BGZfx6hv.js} +10 -10
- package/dist/{Transaction-DoYcy9hE.js → Transaction-DGGntzbu.js} +9 -9
- package/dist/{TransactionOld-D-0XhJ5i.js → TransactionOld-QfF1TDbn.js} +7 -7
- package/dist/{app-dkgd1MWR.js → app-BXxYnAdP.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-D0GykycT.js → assets-FsPzRWA-.js} +1 -1
- package/dist/{grafana-C3X8a_Ya.js → grafana-LNdyUCTn.js} +1 -1
- package/dist/{index-DdSDe8gD.js → index-B9kBvAuZ.js} +1 -1
- package/dist/{index-DfBw_WqY.js → index-BLlubB5V.js} +1 -1
- package/dist/{index-BoX3KpRv.js → index-BiN8uQLO.js} +2 -2
- package/dist/{index-CAGDJp3I.js → index-Bu0WHIMy.js} +1 -1
- package/dist/{index-D55DYdIu.js → index-CzdgIzVt.js} +1 -1
- package/dist/{index-BGYJM6Bc.js → index-DCKgj5G3.js} +1 -1
- package/dist/{index-TWIyXiIU.js → index-DJDlwMPc.js} +1 -1
- package/dist/{index-B_3uFCLd.js → index-DWfjw0Ov.js} +1 -1
- package/dist/{index-BdnHBZLD.js → index-IVRI6J3d.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CNKfkvUm.js → index.vue_vue_type_script_setup_true_lang-_gApzFsx.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-CAaDJkTo.js → payout-account-CO6LyV6R.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as $, computed as W, resolveComponent as C, openBlock as b, createElementBlock as
|
|
2
|
-
import { o as H } from "./index-
|
|
3
|
-
import { u as te, p as
|
|
1
|
+
import { defineComponent as Z, ref as $, computed as W, resolveComponent as C, openBlock as b, createElementBlock as F, createElementVNode as n, toDisplayString as I, createBlock as T, withCtx as f, createCommentVNode as A, createVNode as r, unref as e, Fragment as J, renderList as le, createTextVNode as z, onMounted as pe, resolveDynamicComponent as be } from "vue";
|
|
2
|
+
import { o as H } from "./index-BiN8uQLO.js";
|
|
3
|
+
import { u as te, p as oe } from "./index-BLlubB5V.js";
|
|
4
4
|
import { useRouter as ce } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-CTlVogBQ.js";
|
|
6
|
-
import { P as ye } from "./payout-account-
|
|
7
|
-
import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { P as ye } from "./payout-account-CO6LyV6R.js";
|
|
7
|
+
import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-D8idx1-Z.js";
|
|
8
8
|
import { s as ge } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
9
|
-
import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-x0EZp8b0.js";
|
|
10
10
|
import { useSnackbar as ae } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as Q } from "./error-K1CakhA9.js";
|
|
12
|
-
const Ve = ["src"],
|
|
12
|
+
const Ve = ["src"], w = /* @__PURE__ */ Z({
|
|
13
13
|
__name: "UploadButton",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {},
|
|
@@ -30,19 +30,19 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
30
30
|
}, R = W(() => v.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
|
|
31
31
|
return (a, i) => {
|
|
32
32
|
const U = C("FmButton"), V = C("FmDropField");
|
|
33
|
-
return b(),
|
|
34
|
-
|
|
35
|
-
k.value ? (b(),
|
|
33
|
+
return b(), F("div", null, [
|
|
34
|
+
n("p", null, I(m.label), 1),
|
|
35
|
+
k.value ? (b(), T(re, {
|
|
36
36
|
key: 0,
|
|
37
37
|
document: k.value,
|
|
38
38
|
"restaurant-id": m.restaurantId
|
|
39
39
|
}, {
|
|
40
40
|
default: f(({ src: x }) => [
|
|
41
|
-
m.type === "image" ? (b(),
|
|
41
|
+
m.type === "image" ? (b(), F("img", {
|
|
42
42
|
key: 0,
|
|
43
43
|
src: x
|
|
44
44
|
}, null, 8, Ve)) : A("", !0),
|
|
45
|
-
m.type === "pdf" ? (b(),
|
|
45
|
+
m.type === "pdf" ? (b(), T(U, {
|
|
46
46
|
key: 1,
|
|
47
47
|
class: "mt-4 w-full",
|
|
48
48
|
"prepend-icon": "manage_accounts",
|
|
@@ -53,7 +53,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
53
53
|
}, null, 8, ["onVnodeMounted", "onClick"])) : A("", !0)
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
}, 8, ["document", "restaurant-id"])) : (b(),
|
|
56
|
+
}, 8, ["document", "restaurant-id"])) : (b(), T(V, {
|
|
57
57
|
key: 1,
|
|
58
58
|
accept: R.value,
|
|
59
59
|
onFileUpload: P
|
|
@@ -76,12 +76,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
76
76
|
const v = m, k = O, g = $(v.modelValue), P = $(!1), c = $(), R = $(!1);
|
|
77
77
|
function a(U, V) {
|
|
78
78
|
var D;
|
|
79
|
-
const x = U.split(","),
|
|
80
|
-
let p =
|
|
79
|
+
const x = U.split(","), B = ((D = x[0].match(/:(.*?);/)) == null ? void 0 : D[1]) || "", q = atob(x[1]);
|
|
80
|
+
let p = q.length;
|
|
81
81
|
const E = new Uint8Array(p);
|
|
82
82
|
for (; p--; )
|
|
83
|
-
E[p] =
|
|
84
|
-
return new File([E], V, { type:
|
|
83
|
+
E[p] = q.charCodeAt(p);
|
|
84
|
+
return new File([E], V, { type: B });
|
|
85
85
|
}
|
|
86
86
|
const i = function() {
|
|
87
87
|
const { isEmpty: U, data: V } = c.value.saveSignature();
|
|
@@ -90,27 +90,27 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
90
90
|
g.value = V, R.value = !1, k("update:modelValue", a(V, "signature.png"));
|
|
91
91
|
};
|
|
92
92
|
return (U, V) => {
|
|
93
|
-
const x = C("FmButton"),
|
|
94
|
-
return b(),
|
|
95
|
-
|
|
96
|
-
g.value ? (b(),
|
|
93
|
+
const x = C("FmButton"), B = C("FmDialog");
|
|
94
|
+
return b(), F("div", null, [
|
|
95
|
+
n("p", null, I(m.label), 1),
|
|
96
|
+
g.value ? (b(), T(re, {
|
|
97
97
|
key: 0,
|
|
98
98
|
document: g.value,
|
|
99
99
|
"restaurant-id": m.restaurantId
|
|
100
100
|
}, {
|
|
101
|
-
default: f(({ src:
|
|
102
|
-
|
|
103
|
-
src:
|
|
101
|
+
default: f(({ src: q }) => [
|
|
102
|
+
n("img", {
|
|
103
|
+
src: q,
|
|
104
104
|
alt: "Signature Preview",
|
|
105
105
|
class: "w-full h-auto"
|
|
106
106
|
}, null, 8, ve)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["document", "restaurant-id"])) : A("", !0),
|
|
110
|
-
g.value ? A("", !0) : (b(), B
|
|
110
|
+
g.value ? A("", !0) : (b(), T(B, {
|
|
111
111
|
key: 1,
|
|
112
112
|
modelValue: R.value,
|
|
113
|
-
"onUpdate:modelValue": V[1] || (V[1] = (
|
|
113
|
+
"onUpdate:modelValue": V[1] || (V[1] = (q) => R.value = q)
|
|
114
114
|
}, {
|
|
115
115
|
"dialog-button": f(() => [
|
|
116
116
|
r(x, {
|
|
@@ -120,7 +120,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
122
|
"dialog-header": f(() => [...V[2] || (V[2] = [
|
|
123
|
-
|
|
123
|
+
n("div", null, "Signature Board", -1)
|
|
124
124
|
])]),
|
|
125
125
|
default: f(() => [
|
|
126
126
|
r(e(ge), {
|
|
@@ -130,13 +130,13 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
130
130
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
|
131
131
|
options: { penColor: "#000000" }
|
|
132
132
|
}, null, 512),
|
|
133
|
-
P.value ? (b(),
|
|
134
|
-
|
|
133
|
+
P.value ? (b(), F("p", fe, " Please sign your signature before saving. ")) : A("", !0),
|
|
134
|
+
n("div", ke, [
|
|
135
135
|
r(x, {
|
|
136
136
|
variant: "destructive",
|
|
137
137
|
label: "Clear",
|
|
138
138
|
"prepend-icon": "delete",
|
|
139
|
-
onClick: V[0] || (V[0] = (
|
|
139
|
+
onClick: V[0] || (V[0] = (q) => c.value.clearSignature())
|
|
140
140
|
}),
|
|
141
141
|
r(x, {
|
|
142
142
|
label: "Save",
|
|
@@ -150,13 +150,13 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}), Ne = { class: "space-y-2" }, Se = { class: "text-gray-900" }, Pe = { class: "text-gray-900" },
|
|
153
|
+
}), Ne = { class: "space-y-2" }, Se = { class: "text-gray-900" }, Pe = { class: "text-gray-900" }, qe = { class: "text-gray-900" }, we = { class: "text-gray-900" }, Fe = { class: "text-gray-900" }, Ie = { class: "text-gray-900" }, Ue = { class: "grid grid-cols-4 gap-6" }, xe = ["src"], Re = {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "mt-2 truncate text-gray-700"
|
|
156
|
-
}, De = { key: 0 },
|
|
156
|
+
}, De = { key: 0 }, Te = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "w-full flex justify-end mt-6"
|
|
159
|
-
},
|
|
159
|
+
}, Be = { class: "mt-6 grid grid-cols-4 gap-24" }, Ae = { class: "w-full flex justify-end mt-6" }, $e = { class: "mt-6 grid grid-cols-4 gap-24" }, je = { class: "col-span-2" }, Ee = { class: "col-span-2" }, Oe = { class: "col-span-2" }, Le = { class: "col-span-2" }, Me = { class: "col-span-2" }, He = { class: "col-span-2" }, ze = { class: "col-span-2" }, We = { class: "col-start-1 col-span-2" }, Je = { class: "col-span-2" }, Qe = { class: "col-span-2" }, Ke = { class: "col-span-2" }, he = { class: "mt-6 grid grid-cols-4 gap-6" }, Ge = { class: "mt-6 grid grid-cols-2 gap-24" }, ne = 30, Ye = /* @__PURE__ */ Z({
|
|
160
160
|
__name: "SoftspaceSubmission",
|
|
161
161
|
props: {
|
|
162
162
|
submission: {
|
|
@@ -166,7 +166,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
166
166
|
},
|
|
167
167
|
emits: ["update:submission"],
|
|
168
168
|
setup(m, { emit: O }) {
|
|
169
|
-
const v = m, k = O, g = ae(), P = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: U, profile: V, status: x, statusReason:
|
|
169
|
+
const v = m, k = O, g = ae(), P = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: U, profile: V, status: x, statusReason: B } = v.submission, q = $(""), p = $(
|
|
170
170
|
v.submission.rates ? Object.fromEntries(
|
|
171
171
|
Object.entries(v.submission.rates).map(([y, l]) => [y, `${l}`])
|
|
172
172
|
) : {
|
|
@@ -185,7 +185,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
185
185
|
), ee = W(
|
|
186
186
|
() => Y.value.length + M.value.length
|
|
187
187
|
), S = (y) => {
|
|
188
|
-
if (!(ee.value >=
|
|
188
|
+
if (!(ee.value >= ne)) {
|
|
189
189
|
if (y.type.startsWith("image/")) {
|
|
190
190
|
const l = new FileReader();
|
|
191
191
|
l.onload = (j) => {
|
|
@@ -262,7 +262,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
262
262
|
v.submission._id,
|
|
263
263
|
{
|
|
264
264
|
status: "rejected",
|
|
265
|
-
statusReason:
|
|
265
|
+
statusReason: q.value
|
|
266
266
|
}
|
|
267
267
|
);
|
|
268
268
|
k("update:submission", y), P.value = !1, g.open({
|
|
@@ -278,72 +278,72 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
280
|
return (y, l) => {
|
|
281
|
-
const j = C("FmButton"), L = C("FmDropField"),
|
|
282
|
-
return b(),
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
l[
|
|
286
|
-
|
|
281
|
+
const j = C("FmButton"), L = C("FmDropField"), o = C("FmTextField"), K = C("FmTextarea"), ue = C("FmDialog"), de = C("FmPhoneNumber"), se = C("FmSelect"), me = C("FmForm");
|
|
282
|
+
return b(), F(J, null, [
|
|
283
|
+
n("div", Ne, [
|
|
284
|
+
n("div", null, [
|
|
285
|
+
l[34] || (l[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
286
|
+
n("span", Se, I(e(U)), 1)
|
|
287
287
|
]),
|
|
288
|
-
|
|
289
|
-
l[
|
|
290
|
-
|
|
288
|
+
n("div", null, [
|
|
289
|
+
l[35] || (l[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
290
|
+
n("span", Pe, I(e(V).name) + " ( " + I(e(V).legalName) + " )", 1)
|
|
291
291
|
]),
|
|
292
|
-
|
|
293
|
-
l[
|
|
294
|
-
|
|
292
|
+
n("div", null, [
|
|
293
|
+
l[36] || (l[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
294
|
+
n("span", qe, I(e(V).email), 1)
|
|
295
295
|
]),
|
|
296
|
-
|
|
297
|
-
l[
|
|
298
|
-
|
|
296
|
+
n("div", null, [
|
|
297
|
+
l[37] || (l[37] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
298
|
+
n("span", we, I(e(V).phoneNo), 1)
|
|
299
299
|
]),
|
|
300
|
-
|
|
301
|
-
l[
|
|
302
|
-
|
|
300
|
+
n("div", null, [
|
|
301
|
+
l[38] || (l[38] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
302
|
+
n("span", Fe, [
|
|
303
303
|
r(ie, { data: e(x) }, null, 8, ["data"])
|
|
304
304
|
])
|
|
305
305
|
]),
|
|
306
|
-
|
|
307
|
-
l[
|
|
308
|
-
|
|
306
|
+
n("div", null, [
|
|
307
|
+
l[39] || (l[39] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
308
|
+
n("span", Ie, I(e(B)), 1)
|
|
309
309
|
])
|
|
310
310
|
]),
|
|
311
|
-
l[
|
|
312
|
-
|
|
313
|
-
(b(!0),
|
|
311
|
+
l[51] || (l[51] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Additional Documents ", -1)),
|
|
312
|
+
n("div", Ue, [
|
|
313
|
+
(b(!0), F(J, null, le(Y.value, (t) => (b(), T(w, {
|
|
314
314
|
key: t,
|
|
315
315
|
label: t.replace("additionalDocument", "Document "),
|
|
316
|
-
type: "pdf",
|
|
316
|
+
type: /\.pdf$/i.test(v.submission.documents[t]) ? "pdf" : "image",
|
|
317
317
|
modelValue: v.submission.documents[t],
|
|
318
318
|
"onUpdate:modelValue": (h) => v.submission.documents[t] = h,
|
|
319
319
|
"restaurant-id": e(U)
|
|
320
|
-
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
321
|
-
(b(!0),
|
|
320
|
+
}, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
321
|
+
(b(!0), F(J, null, le(M.value, (t, h) => (b(), F("div", {
|
|
322
322
|
key: `new-${h}`
|
|
323
323
|
}, [
|
|
324
|
-
|
|
325
|
-
t.file.type.startsWith("image/") ? (b(),
|
|
324
|
+
n("p", null, "Document " + I(Y.value.length + h + 1), 1),
|
|
325
|
+
t.file.type.startsWith("image/") ? (b(), F("img", {
|
|
326
326
|
key: 0,
|
|
327
327
|
src: t.preview,
|
|
328
328
|
class: "mt-2 rounded border"
|
|
329
|
-
}, null, 8, xe)) : (b(),
|
|
329
|
+
}, null, 8, xe)) : (b(), F("p", Re, I(t.file.name), 1)),
|
|
330
330
|
r(j, {
|
|
331
331
|
class: "mt-4",
|
|
332
332
|
"prepend-icon": "delete",
|
|
333
333
|
label: "Remove",
|
|
334
334
|
variant: "destructive",
|
|
335
|
-
onClick: (
|
|
335
|
+
onClick: (Pl) => M.value.splice(h, 1)
|
|
336
336
|
}, null, 8, ["onClick"])
|
|
337
337
|
]))), 128)),
|
|
338
|
-
ee.value <
|
|
339
|
-
|
|
338
|
+
ee.value < ne ? (b(), F("div", De, [
|
|
339
|
+
n("p", null, "Document " + I(ee.value + 1), 1),
|
|
340
340
|
r(L, {
|
|
341
341
|
accept: ".png, .jpg, .jpeg, .pdf",
|
|
342
342
|
onFileUpload: S
|
|
343
343
|
})
|
|
344
344
|
])) : A("", !0)
|
|
345
345
|
]),
|
|
346
|
-
M.value.length ? (b(),
|
|
346
|
+
M.value.length ? (b(), F("div", Te, [
|
|
347
347
|
r(j, {
|
|
348
348
|
type: "button",
|
|
349
349
|
variant: "primary",
|
|
@@ -353,9 +353,9 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
353
353
|
onClick: s
|
|
354
354
|
}, null, 8, ["loading"])
|
|
355
355
|
])) : A("", !0),
|
|
356
|
-
l[
|
|
357
|
-
|
|
358
|
-
r(
|
|
356
|
+
l[52] || (l[52] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
357
|
+
n("div", Be, [
|
|
358
|
+
r(o, {
|
|
359
359
|
modelValue: p.value.duitNow,
|
|
360
360
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => p.value.duitNow = t),
|
|
361
361
|
label: "DuitNow QR",
|
|
@@ -367,12 +367,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
367
367
|
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
368
368
|
)
|
|
369
369
|
}, {
|
|
370
|
-
append: f(() => [...l[
|
|
370
|
+
append: f(() => [...l[40] || (l[40] = [
|
|
371
371
|
z("%", -1)
|
|
372
372
|
])]),
|
|
373
373
|
_: 1
|
|
374
374
|
}, 8, ["modelValue", "rules"]),
|
|
375
|
-
r(
|
|
375
|
+
r(o, {
|
|
376
376
|
modelValue: p.value.mydebitCard,
|
|
377
377
|
"onUpdate:modelValue": l[1] || (l[1] = (t) => p.value.mydebitCard = t),
|
|
378
378
|
label: "myDebit Card",
|
|
@@ -384,12 +384,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
384
384
|
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
385
385
|
)
|
|
386
386
|
}, {
|
|
387
|
-
append: f(() => [...l[
|
|
387
|
+
append: f(() => [...l[41] || (l[41] = [
|
|
388
388
|
z("%", -1)
|
|
389
389
|
])]),
|
|
390
390
|
_: 1
|
|
391
391
|
}, 8, ["modelValue", "rules"]),
|
|
392
|
-
r(
|
|
392
|
+
r(o, {
|
|
393
393
|
modelValue: p.value.localDebit,
|
|
394
394
|
"onUpdate:modelValue": l[2] || (l[2] = (t) => p.value.localDebit = t),
|
|
395
395
|
label: "Local Debit Card",
|
|
@@ -401,12 +401,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
401
401
|
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
402
402
|
)
|
|
403
403
|
}, {
|
|
404
|
-
append: f(() => [...l[
|
|
404
|
+
append: f(() => [...l[42] || (l[42] = [
|
|
405
405
|
z("%", -1)
|
|
406
406
|
])]),
|
|
407
407
|
_: 1
|
|
408
408
|
}, 8, ["modelValue", "rules"]),
|
|
409
|
-
r(
|
|
409
|
+
r(o, {
|
|
410
410
|
modelValue: p.value.localCredit,
|
|
411
411
|
"onUpdate:modelValue": l[3] || (l[3] = (t) => p.value.localCredit = t),
|
|
412
412
|
label: "Local Credit Card",
|
|
@@ -418,12 +418,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
418
418
|
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
419
419
|
)
|
|
420
420
|
}, {
|
|
421
|
-
append: f(() => [...l[
|
|
421
|
+
append: f(() => [...l[43] || (l[43] = [
|
|
422
422
|
z("%", -1)
|
|
423
423
|
])]),
|
|
424
424
|
_: 1
|
|
425
425
|
}, 8, ["modelValue", "rules"]),
|
|
426
|
-
r(
|
|
426
|
+
r(o, {
|
|
427
427
|
modelValue: p.value.foreignCard,
|
|
428
428
|
"onUpdate:modelValue": l[4] || (l[4] = (t) => p.value.foreignCard = t),
|
|
429
429
|
label: "Foreign Card",
|
|
@@ -435,12 +435,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
435
435
|
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
436
436
|
)
|
|
437
437
|
}, {
|
|
438
|
-
append: f(() => [...l[
|
|
438
|
+
append: f(() => [...l[44] || (l[44] = [
|
|
439
439
|
z("%", -1)
|
|
440
440
|
])]),
|
|
441
441
|
_: 1
|
|
442
442
|
}, 8, ["modelValue", "rules"]),
|
|
443
|
-
r(
|
|
443
|
+
r(o, {
|
|
444
444
|
modelValue: p.value.jcbStandard,
|
|
445
445
|
"onUpdate:modelValue": l[5] || (l[5] = (t) => p.value.jcbStandard = t),
|
|
446
446
|
label: "JCB Standard",
|
|
@@ -452,12 +452,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
452
452
|
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
453
453
|
)
|
|
454
454
|
}, {
|
|
455
|
-
append: f(() => [...l[
|
|
455
|
+
append: f(() => [...l[45] || (l[45] = [
|
|
456
456
|
z("%", -1)
|
|
457
457
|
])]),
|
|
458
458
|
_: 1
|
|
459
459
|
}, 8, ["modelValue", "rules"]),
|
|
460
|
-
r(
|
|
460
|
+
r(o, {
|
|
461
461
|
modelValue: p.value.jcbPlatinum,
|
|
462
462
|
"onUpdate:modelValue": l[6] || (l[6] = (t) => p.value.jcbPlatinum = t),
|
|
463
463
|
label: "JCB Platinum",
|
|
@@ -469,13 +469,13 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
469
469
|
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
470
470
|
)
|
|
471
471
|
}, {
|
|
472
|
-
append: f(() => [...l[
|
|
472
|
+
append: f(() => [...l[46] || (l[46] = [
|
|
473
473
|
z("%", -1)
|
|
474
474
|
])]),
|
|
475
475
|
_: 1
|
|
476
476
|
}, 8, ["modelValue", "rules"])
|
|
477
477
|
]),
|
|
478
|
-
|
|
478
|
+
n("div", Ae, [
|
|
479
479
|
r(ue, {
|
|
480
480
|
modelValue: P.value,
|
|
481
481
|
"onUpdate:modelValue": l[8] || (l[8] = (t) => P.value = t)
|
|
@@ -490,13 +490,13 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
490
490
|
label: "Reject Submission"
|
|
491
491
|
}, null, 8, ["loading"])
|
|
492
492
|
]),
|
|
493
|
-
"dialog-header": f(() => [...l[
|
|
494
|
-
|
|
493
|
+
"dialog-header": f(() => [...l[47] || (l[47] = [
|
|
494
|
+
n("div", null, "Rejecting Submission", -1)
|
|
495
495
|
])]),
|
|
496
496
|
default: f(() => [
|
|
497
497
|
r(K, {
|
|
498
|
-
modelValue:
|
|
499
|
-
"onUpdate:modelValue": l[7] || (l[7] = (t) =>
|
|
498
|
+
modelValue: q.value,
|
|
499
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => q.value = t),
|
|
500
500
|
label: "Reason for Rejection",
|
|
501
501
|
"label-mark": "optional",
|
|
502
502
|
"helper-text": "Please provide a reason for rejection."
|
|
@@ -523,10 +523,10 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
523
523
|
]),
|
|
524
524
|
r(me, { disabled: !0 }, {
|
|
525
525
|
default: f(() => [
|
|
526
|
-
l[
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
r(
|
|
526
|
+
l[48] || (l[48] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
527
|
+
n("div", $e, [
|
|
528
|
+
n("div", je, [
|
|
529
|
+
r(o, {
|
|
530
530
|
modelValue: e(a).picName,
|
|
531
531
|
"onUpdate:modelValue": l[9] || (l[9] = (t) => e(a).picName = t),
|
|
532
532
|
label: "PIC Name",
|
|
@@ -535,8 +535,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
535
535
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
536
536
|
}, null, 8, ["modelValue", "rules"])
|
|
537
537
|
]),
|
|
538
|
-
|
|
539
|
-
r(
|
|
538
|
+
n("div", Ee, [
|
|
539
|
+
r(o, {
|
|
540
540
|
modelValue: e(a).picRole,
|
|
541
541
|
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picRole = t),
|
|
542
542
|
label: "PIC Role",
|
|
@@ -545,8 +545,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
545
545
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
546
546
|
}, null, 8, ["modelValue", "rules"])
|
|
547
547
|
]),
|
|
548
|
-
|
|
549
|
-
r(
|
|
548
|
+
n("div", Oe, [
|
|
549
|
+
r(o, {
|
|
550
550
|
modelValue: e(a).picEmail,
|
|
551
551
|
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picEmail = t),
|
|
552
552
|
label: "PIC Email",
|
|
@@ -556,7 +556,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
556
556
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
557
557
|
}, null, 8, ["modelValue", "rules"])
|
|
558
558
|
]),
|
|
559
|
-
|
|
559
|
+
n("div", Le, [
|
|
560
560
|
r(de, {
|
|
561
561
|
"model-value": e(a).picContact,
|
|
562
562
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picContact = t),
|
|
@@ -566,54 +566,64 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
566
566
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
567
567
|
}, null, 8, ["model-value", "rules"])
|
|
568
568
|
]),
|
|
569
|
-
|
|
570
|
-
r(
|
|
569
|
+
n("div", Me, [
|
|
570
|
+
r(o, {
|
|
571
|
+
modelValue: e(a).tradingName,
|
|
572
|
+
"onUpdate:modelValue": l[13] || (l[13] = (t) => e(a).tradingName = t),
|
|
573
|
+
label: "Trading Name",
|
|
574
|
+
placeholder: "Enter trading name",
|
|
575
|
+
"label-mark": "required",
|
|
576
|
+
rules: e(u)(e(d).string().min(1, "Trading Name is required"))
|
|
577
|
+
}, null, 8, ["modelValue", "rules"])
|
|
578
|
+
]),
|
|
579
|
+
n("div", He, [
|
|
580
|
+
r(o, {
|
|
571
581
|
modelValue: e(a).outletName,
|
|
572
|
-
"onUpdate:modelValue": l[
|
|
573
|
-
label: "
|
|
574
|
-
placeholder: "Enter
|
|
582
|
+
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(a).outletName = t),
|
|
583
|
+
label: "Registered Name",
|
|
584
|
+
placeholder: "Enter registered name",
|
|
575
585
|
"label-mark": "required",
|
|
576
|
-
rules: e(u)(e(d).string().min(1, "
|
|
586
|
+
rules: e(u)(e(d).string().min(1, "Registered Name is required"))
|
|
577
587
|
}, null, 8, ["modelValue", "rules"])
|
|
578
588
|
]),
|
|
579
|
-
|
|
580
|
-
r(
|
|
589
|
+
n("div", ze, [
|
|
590
|
+
r(o, {
|
|
581
591
|
modelValue: e(a).outletAddress,
|
|
582
|
-
"onUpdate:modelValue": l[
|
|
592
|
+
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(a).outletAddress = t),
|
|
583
593
|
label: "Outlet Address",
|
|
584
594
|
placeholder: "Enter outlet address",
|
|
585
595
|
"label-mark": "required",
|
|
586
596
|
rules: e(u)(e(d).string().min(1, "Address is required"))
|
|
587
597
|
}, null, 8, ["modelValue", "rules"])
|
|
588
598
|
]),
|
|
589
|
-
r(
|
|
599
|
+
r(o, {
|
|
590
600
|
modelValue: e(a).outletPostCode,
|
|
591
|
-
"onUpdate:modelValue": l[
|
|
601
|
+
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(a).outletPostCode = t),
|
|
592
602
|
label: "Postal Code",
|
|
593
603
|
placeholder: "Enter postal code",
|
|
594
604
|
"label-mark": "required",
|
|
595
605
|
rules: e(u)(e(d).string().min(1, "Postal Code is required"))
|
|
596
606
|
}, null, 8, ["modelValue", "rules"]),
|
|
597
|
-
r(
|
|
607
|
+
r(o, {
|
|
598
608
|
modelValue: e(a).outletState,
|
|
599
|
-
"onUpdate:modelValue": l[
|
|
609
|
+
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(a).outletState = t),
|
|
600
610
|
label: "State",
|
|
601
611
|
placeholder: "Enter state",
|
|
602
612
|
"label-mark": "required",
|
|
603
613
|
rules: e(u)(e(d).string().min(1, "State is required"))
|
|
604
614
|
}, null, 8, ["modelValue", "rules"]),
|
|
605
|
-
r(
|
|
615
|
+
r(o, {
|
|
606
616
|
modelValue: e(a).outletCity,
|
|
607
|
-
"onUpdate:modelValue": l[
|
|
617
|
+
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(a).outletCity = t),
|
|
608
618
|
label: "City",
|
|
609
619
|
placeholder: "Enter city",
|
|
610
620
|
"label-mark": "required",
|
|
611
621
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
612
622
|
}, null, 8, ["modelValue", "rules"]),
|
|
613
|
-
|
|
623
|
+
n("div", We, [
|
|
614
624
|
r(se, {
|
|
615
625
|
modelValue: e(a).businessType,
|
|
616
|
-
"onUpdate:modelValue": l[
|
|
626
|
+
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(a).businessType = t),
|
|
617
627
|
label: "Type",
|
|
618
628
|
placeholder: "Select business type",
|
|
619
629
|
"label-mark": "required",
|
|
@@ -632,80 +642,80 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
632
642
|
]
|
|
633
643
|
}, null, 8, ["modelValue", "rules"])
|
|
634
644
|
]),
|
|
635
|
-
|
|
636
|
-
r(
|
|
645
|
+
n("div", Je, [
|
|
646
|
+
r(o, {
|
|
637
647
|
modelValue: e(a).businessRegNo,
|
|
638
|
-
"onUpdate:modelValue": l[
|
|
648
|
+
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(a).businessRegNo = t),
|
|
639
649
|
label: "Registration No",
|
|
640
650
|
placeholder: "Enter registration number",
|
|
641
651
|
"label-mark": "required",
|
|
642
652
|
rules: e(u)(e(d).string().min(1, "Reg No is required"))
|
|
643
653
|
}, null, 8, ["modelValue", "rules"])
|
|
644
654
|
]),
|
|
645
|
-
|
|
646
|
-
r(
|
|
655
|
+
n("div", Qe, [
|
|
656
|
+
r(o, {
|
|
647
657
|
modelValue: e(a).tinNo,
|
|
648
|
-
"onUpdate:modelValue": l[
|
|
658
|
+
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(a).tinNo = t),
|
|
649
659
|
label: "Tax Identification No (TIN)",
|
|
650
660
|
placeholder: "Enter your TIN number",
|
|
651
661
|
"label-mark": "required",
|
|
652
662
|
rules: e(u)(e(d).string().min(1, "TIN is required"))
|
|
653
663
|
}, null, 8, ["modelValue", "rules"])
|
|
654
664
|
]),
|
|
655
|
-
|
|
656
|
-
r(
|
|
665
|
+
n("div", Ke, [
|
|
666
|
+
r(o, {
|
|
657
667
|
modelValue: e(a).sstNo,
|
|
658
|
-
"onUpdate:modelValue": l[
|
|
668
|
+
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(a).sstNo = t),
|
|
659
669
|
label: "SST Registration No (SST)",
|
|
660
670
|
placeholder: "Enter your SST number",
|
|
661
671
|
"label-mark": "optional"
|
|
662
672
|
}, null, 8, ["modelValue"])
|
|
663
673
|
])
|
|
664
674
|
]),
|
|
665
|
-
l[
|
|
666
|
-
|
|
675
|
+
l[49] || (l[49] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
|
|
676
|
+
n("div", he, [
|
|
667
677
|
r(se, {
|
|
668
678
|
modelValue: e(a).bankName,
|
|
669
|
-
"onUpdate:modelValue": l[
|
|
679
|
+
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(a).bankName = t),
|
|
670
680
|
label: "Bank",
|
|
671
681
|
placeholder: "Select bank type",
|
|
672
682
|
"label-mark": "required",
|
|
673
683
|
rules: e(u)(e(d).string().min(1, "Bank Type is required")),
|
|
674
684
|
items: e(ye).bankNameOptions()
|
|
675
685
|
}, null, 8, ["modelValue", "rules", "items"]),
|
|
676
|
-
r(
|
|
686
|
+
r(o, {
|
|
677
687
|
modelValue: e(a).bankHolderName,
|
|
678
|
-
"onUpdate:modelValue": l[
|
|
688
|
+
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(a).bankHolderName = t),
|
|
679
689
|
label: "Beneficiary Name",
|
|
680
690
|
placeholder: "Enter Beneficiary Name",
|
|
681
691
|
"label-mark": "required",
|
|
682
692
|
rules: e(u)(e(d).string().min(1, "Beneficiary Name is required"))
|
|
683
693
|
}, null, 8, ["modelValue", "rules"]),
|
|
684
|
-
r(
|
|
694
|
+
r(o, {
|
|
685
695
|
modelValue: e(a).bankAccountNo,
|
|
686
|
-
"onUpdate:modelValue": l[
|
|
696
|
+
"onUpdate:modelValue": l[25] || (l[25] = (t) => e(a).bankAccountNo = t),
|
|
687
697
|
label: "Account Number",
|
|
688
698
|
placeholder: "Enter Account Number",
|
|
689
699
|
"label-mark": "required",
|
|
690
700
|
rules: e(u)(e(d).string().min(1, "Account Number is required"))
|
|
691
701
|
}, null, 8, ["modelValue", "rules"]),
|
|
692
|
-
r(
|
|
702
|
+
r(w, {
|
|
693
703
|
label: "Authorized Person ID",
|
|
694
704
|
modelValue: e(i).authorizedPersonID,
|
|
695
|
-
"onUpdate:modelValue": l[
|
|
705
|
+
"onUpdate:modelValue": l[26] || (l[26] = (t) => e(i).authorizedPersonID = t),
|
|
696
706
|
type: "image",
|
|
697
707
|
"restaurant-id": m.submission.restaurantId
|
|
698
708
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
699
|
-
r(
|
|
709
|
+
r(w, {
|
|
700
710
|
label: "Outlet Photo",
|
|
701
711
|
modelValue: e(i).outletPhoto,
|
|
702
|
-
"onUpdate:modelValue": l[
|
|
712
|
+
"onUpdate:modelValue": l[27] || (l[27] = (t) => e(i).outletPhoto = t),
|
|
703
713
|
type: "image",
|
|
704
714
|
"restaurant-id": m.submission.restaurantId
|
|
705
715
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
706
|
-
(b(!0),
|
|
716
|
+
(b(!0), F(J, null, le([1, 2, 3, 4, 5].filter(
|
|
707
717
|
(t) => !!e(i)[`onsitePhoto${t}`]
|
|
708
|
-
), (t) => (b(),
|
|
718
|
+
), (t) => (b(), T(w, {
|
|
709
719
|
key: t,
|
|
710
720
|
label: `Onsite Photo ${t}`,
|
|
711
721
|
modelValue: e(i)[`onsitePhoto${t}`],
|
|
@@ -713,51 +723,51 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
713
723
|
type: "image",
|
|
714
724
|
"restaurant-id": m.submission.restaurantId
|
|
715
725
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
716
|
-
e(i).interiorPhoto ? (b(),
|
|
726
|
+
e(i).interiorPhoto ? (b(), T(w, {
|
|
717
727
|
key: 0,
|
|
718
728
|
label: "Interior Photo",
|
|
719
729
|
modelValue: e(i).interiorPhoto,
|
|
720
|
-
"onUpdate:modelValue": l[
|
|
730
|
+
"onUpdate:modelValue": l[28] || (l[28] = (t) => e(i).interiorPhoto = t),
|
|
721
731
|
type: "image",
|
|
722
732
|
"restaurant-id": m.submission.restaurantId
|
|
723
733
|
}, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
|
|
724
|
-
r(
|
|
734
|
+
r(w, {
|
|
725
735
|
label: "Latest Bank Statement",
|
|
726
736
|
modelValue: e(i).bankStatement,
|
|
727
|
-
"onUpdate:modelValue": l[
|
|
737
|
+
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(i).bankStatement = t),
|
|
728
738
|
type: "pdf",
|
|
729
739
|
"restaurant-id": m.submission.restaurantId
|
|
730
740
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
731
|
-
e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (b(),
|
|
741
|
+
e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (b(), T(w, {
|
|
732
742
|
key: 1,
|
|
733
743
|
label: "Superform",
|
|
734
744
|
type: "pdf",
|
|
735
745
|
modelValue: e(i).certificate,
|
|
736
|
-
"onUpdate:modelValue": l[
|
|
746
|
+
"onUpdate:modelValue": l[30] || (l[30] = (t) => e(i).certificate = t),
|
|
737
747
|
"restaurant-id": m.submission.restaurantId
|
|
738
748
|
}, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
|
|
739
|
-
e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (b(),
|
|
749
|
+
e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (b(), T(w, {
|
|
740
750
|
key: 2,
|
|
741
751
|
label: "SSM Certificate & Info",
|
|
742
752
|
type: "pdf",
|
|
743
753
|
modelValue: e(i).certificate,
|
|
744
|
-
"onUpdate:modelValue": l[
|
|
754
|
+
"onUpdate:modelValue": l[31] || (l[31] = (t) => e(i).certificate = t),
|
|
745
755
|
"restaurant-id": m.submission.restaurantId
|
|
746
756
|
}, null, 8, ["modelValue", "restaurant-id"])) : A("", !0)
|
|
747
757
|
]),
|
|
748
|
-
l[
|
|
749
|
-
|
|
758
|
+
l[50] || (l[50] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
759
|
+
n("div", Ge, [
|
|
750
760
|
r(Ce, {
|
|
751
761
|
modelValue: e(i).signature,
|
|
752
|
-
"onUpdate:modelValue": l[
|
|
762
|
+
"onUpdate:modelValue": l[32] || (l[32] = (t) => e(i).signature = t),
|
|
753
763
|
"restaurant-id": m.submission.restaurantId,
|
|
754
764
|
label: "Signature"
|
|
755
765
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
756
|
-
r(
|
|
766
|
+
r(w, {
|
|
757
767
|
label: "Company Stamp",
|
|
758
768
|
type: "image",
|
|
759
769
|
modelValue: e(i).companyStamp,
|
|
760
|
-
"onUpdate:modelValue": l[
|
|
770
|
+
"onUpdate:modelValue": l[33] || (l[33] = (t) => e(i).companyStamp = t),
|
|
761
771
|
"restaurant-id": m.submission.restaurantId
|
|
762
772
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
763
773
|
])
|
|
@@ -767,7 +777,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
767
777
|
], 64);
|
|
768
778
|
};
|
|
769
779
|
}
|
|
770
|
-
}),
|
|
780
|
+
}), Xe = { class: "space-y-2" }, Ze = { class: "text-gray-900" }, _e = { class: "text-gray-900" }, el = { class: "text-gray-900" }, ll = { class: "text-gray-900" }, tl = { class: "text-gray-900" }, al = { class: "text-gray-900" }, sl = { class: "mt-6 grid grid-cols-4 gap-24" }, nl = { class: "w-full flex justify-end mt-6" }, ol = { class: "mt-6 grid grid-cols-4 gap-24" }, rl = { class: "col-span-2" }, il = { class: "col-span-2" }, ul = { class: "col-span-2" }, dl = { class: "col-span-2" }, ml = { class: "mt-6 grid grid-cols-4 gap-24" }, pl = { class: "mt-6 grid grid-cols-4 gap-24" }, bl = { class: "mt-6 grid grid-cols-4 gap-24" }, cl = { class: "col-span-2" }, yl = { class: "col-span-2" }, gl = { class: "col-span-2" }, Vl = { class: "col-span-2" }, vl = { class: "col-span-2" }, fl = { class: "col-span-2" }, kl = /* @__PURE__ */ Z({
|
|
771
781
|
__name: "NTTSubmission",
|
|
772
782
|
props: {
|
|
773
783
|
submission: {
|
|
@@ -777,7 +787,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
777
787
|
},
|
|
778
788
|
emits: ["update:submission"],
|
|
779
789
|
setup(m, { emit: O }) {
|
|
780
|
-
const v = m, k = O, g = ae(), P = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: U, profile: V, status: x, statusReason:
|
|
790
|
+
const v = m, k = O, g = ae(), P = $(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: U, profile: V, status: x, statusReason: B } = v.submission, q = $(""), p = [
|
|
781
791
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
782
792
|
{
|
|
783
793
|
key: "localCardStandard",
|
|
@@ -822,7 +832,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
822
832
|
const S = await H.reviewById(
|
|
823
833
|
v.submission._id,
|
|
824
834
|
{
|
|
825
|
-
status:
|
|
835
|
+
status: oe.FdoOnboardStatus.enum.ready
|
|
826
836
|
}
|
|
827
837
|
);
|
|
828
838
|
k("update:submission", S), g.open({
|
|
@@ -867,7 +877,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
867
877
|
v.submission._id,
|
|
868
878
|
{
|
|
869
879
|
status: "rejected",
|
|
870
|
-
statusReason:
|
|
880
|
+
statusReason: q.value
|
|
871
881
|
}
|
|
872
882
|
);
|
|
873
883
|
k("update:submission", S), P.value = !1, g.open({
|
|
@@ -884,42 +894,42 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
884
894
|
});
|
|
885
895
|
return (S, s) => {
|
|
886
896
|
const N = C("FmTextField"), X = C("FmButton"), y = C("FmTextarea"), l = C("FmDialog"), j = C("FmPhoneNumber"), L = C("FmForm");
|
|
887
|
-
return b(),
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
s[31] || (s[31] =
|
|
891
|
-
|
|
897
|
+
return b(), F(J, null, [
|
|
898
|
+
n("div", Xe, [
|
|
899
|
+
n("div", null, [
|
|
900
|
+
s[31] || (s[31] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
901
|
+
n("span", Ze, I(e(U)), 1)
|
|
892
902
|
]),
|
|
893
|
-
|
|
894
|
-
s[32] || (s[32] =
|
|
895
|
-
|
|
903
|
+
n("div", null, [
|
|
904
|
+
s[32] || (s[32] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
905
|
+
n("span", _e, I(e(V).name) + " ( " + I(e(V).legalName) + " )", 1)
|
|
896
906
|
]),
|
|
897
|
-
|
|
898
|
-
s[33] || (s[33] =
|
|
899
|
-
|
|
907
|
+
n("div", null, [
|
|
908
|
+
s[33] || (s[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
909
|
+
n("span", el, I(e(V).email), 1)
|
|
900
910
|
]),
|
|
901
|
-
|
|
902
|
-
s[34] || (s[34] =
|
|
903
|
-
|
|
911
|
+
n("div", null, [
|
|
912
|
+
s[34] || (s[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
913
|
+
n("span", ll, I(e(V).phoneNo), 1)
|
|
904
914
|
]),
|
|
905
|
-
|
|
906
|
-
s[35] || (s[35] =
|
|
907
|
-
|
|
915
|
+
n("div", null, [
|
|
916
|
+
s[35] || (s[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
917
|
+
n("span", tl, [
|
|
908
918
|
r(ie, { data: e(x) }, null, 8, ["data"])
|
|
909
919
|
])
|
|
910
920
|
]),
|
|
911
|
-
|
|
912
|
-
s[36] || (s[36] =
|
|
913
|
-
|
|
921
|
+
n("div", null, [
|
|
922
|
+
s[36] || (s[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
923
|
+
n("span", al, I(e(B)), 1)
|
|
914
924
|
])
|
|
915
925
|
]),
|
|
916
|
-
s[43] || (s[43] =
|
|
917
|
-
|
|
918
|
-
(b(),
|
|
919
|
-
key:
|
|
920
|
-
modelValue: D.value[
|
|
921
|
-
"onUpdate:modelValue": (K) => D.value[
|
|
922
|
-
label:
|
|
926
|
+
s[43] || (s[43] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
927
|
+
n("div", sl, [
|
|
928
|
+
(b(), F(J, null, le(p, (o) => r(N, {
|
|
929
|
+
key: o.key,
|
|
930
|
+
modelValue: D.value[o.key],
|
|
931
|
+
"onUpdate:modelValue": (K) => D.value[o.key] = K,
|
|
932
|
+
label: o.label,
|
|
923
933
|
"label-mark": "required",
|
|
924
934
|
type: "number",
|
|
925
935
|
inputmode: "numeric",
|
|
@@ -934,10 +944,10 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
934
944
|
_: 1
|
|
935
945
|
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
936
946
|
]),
|
|
937
|
-
|
|
947
|
+
n("div", nl, [
|
|
938
948
|
r(l, {
|
|
939
949
|
modelValue: P.value,
|
|
940
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
950
|
+
"onUpdate:modelValue": s[1] || (s[1] = (o) => P.value = o)
|
|
941
951
|
}, {
|
|
942
952
|
"dialog-button": f(() => [
|
|
943
953
|
r(X, {
|
|
@@ -950,12 +960,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
950
960
|
}, null, 8, ["loading"])
|
|
951
961
|
]),
|
|
952
962
|
"dialog-header": f(() => [...s[38] || (s[38] = [
|
|
953
|
-
|
|
963
|
+
n("div", null, "Rejecting Submission", -1)
|
|
954
964
|
])]),
|
|
955
965
|
default: f(() => [
|
|
956
966
|
r(y, {
|
|
957
|
-
modelValue:
|
|
958
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
967
|
+
modelValue: q.value,
|
|
968
|
+
"onUpdate:modelValue": s[0] || (s[0] = (o) => q.value = o),
|
|
959
969
|
label: "Reason for Rejection",
|
|
960
970
|
"label-mark": "optional",
|
|
961
971
|
"helper-text": "Please provide a reason for rejection."
|
|
@@ -979,7 +989,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
979
989
|
onClick: Y,
|
|
980
990
|
loading: e(c)
|
|
981
991
|
}, null, 8, ["disabled", "loading"]),
|
|
982
|
-
e(x) === "approved" ? (b(),
|
|
992
|
+
e(x) === "approved" ? (b(), T(X, {
|
|
983
993
|
key: 0,
|
|
984
994
|
type: "button",
|
|
985
995
|
variant: "secondary",
|
|
@@ -992,39 +1002,39 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
992
1002
|
]),
|
|
993
1003
|
r(L, { disabled: !0 }, {
|
|
994
1004
|
default: f(() => [
|
|
995
|
-
s[39] || (s[39] =
|
|
996
|
-
|
|
997
|
-
|
|
1005
|
+
s[39] || (s[39] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
1006
|
+
n("div", ol, [
|
|
1007
|
+
n("div", rl, [
|
|
998
1008
|
r(N, {
|
|
999
1009
|
modelValue: e(a).companyName,
|
|
1000
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
1010
|
+
"onUpdate:modelValue": s[2] || (s[2] = (o) => e(a).companyName = o),
|
|
1001
1011
|
label: "Company Name",
|
|
1002
1012
|
"label-mark": "required",
|
|
1003
1013
|
rules: e(u)(e(d).string().min(1, "Company Name is required"))
|
|
1004
1014
|
}, null, 8, ["modelValue", "rules"])
|
|
1005
1015
|
]),
|
|
1006
|
-
|
|
1016
|
+
n("div", il, [
|
|
1007
1017
|
r(N, {
|
|
1008
1018
|
modelValue: e(a).outletName,
|
|
1009
|
-
"onUpdate:modelValue": s[3] || (s[3] = (
|
|
1019
|
+
"onUpdate:modelValue": s[3] || (s[3] = (o) => e(a).outletName = o),
|
|
1010
1020
|
label: "Outlet Name (Thai)",
|
|
1011
1021
|
"label-mark": "required",
|
|
1012
1022
|
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
|
1013
1023
|
}, null, 8, ["modelValue", "rules"])
|
|
1014
1024
|
]),
|
|
1015
|
-
|
|
1025
|
+
n("div", ul, [
|
|
1016
1026
|
r(N, {
|
|
1017
1027
|
modelValue: e(a).outletNameEnglish,
|
|
1018
|
-
"onUpdate:modelValue": s[4] || (s[4] = (
|
|
1028
|
+
"onUpdate:modelValue": s[4] || (s[4] = (o) => e(a).outletNameEnglish = o),
|
|
1019
1029
|
label: "Outlet Name (English)",
|
|
1020
1030
|
"label-mark": "required",
|
|
1021
1031
|
rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
|
|
1022
1032
|
}, null, 8, ["modelValue", "rules"])
|
|
1023
1033
|
]),
|
|
1024
|
-
|
|
1034
|
+
n("div", dl, [
|
|
1025
1035
|
r(N, {
|
|
1026
1036
|
modelValue: e(a).outletAddress,
|
|
1027
|
-
"onUpdate:modelValue": s[5] || (s[5] = (
|
|
1037
|
+
"onUpdate:modelValue": s[5] || (s[5] = (o) => e(a).outletAddress = o),
|
|
1028
1038
|
label: "Outlet Address",
|
|
1029
1039
|
"label-mark": "required",
|
|
1030
1040
|
rules: e(u)(e(d).string().min(1, "Outlet Address is required"))
|
|
@@ -1032,21 +1042,21 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1032
1042
|
]),
|
|
1033
1043
|
r(N, {
|
|
1034
1044
|
modelValue: e(a).outletPostCode,
|
|
1035
|
-
"onUpdate:modelValue": s[6] || (s[6] = (
|
|
1045
|
+
"onUpdate:modelValue": s[6] || (s[6] = (o) => e(a).outletPostCode = o),
|
|
1036
1046
|
label: "Post Code",
|
|
1037
1047
|
"label-mark": "required",
|
|
1038
1048
|
rules: e(u)(e(d).string().min(1, "Post Code is required"))
|
|
1039
1049
|
}, null, 8, ["modelValue", "rules"]),
|
|
1040
1050
|
r(N, {
|
|
1041
1051
|
modelValue: e(a).outletState,
|
|
1042
|
-
"onUpdate:modelValue": s[7] || (s[7] = (
|
|
1052
|
+
"onUpdate:modelValue": s[7] || (s[7] = (o) => e(a).outletState = o),
|
|
1043
1053
|
label: "State",
|
|
1044
1054
|
"label-mark": "required",
|
|
1045
1055
|
rules: e(u)(e(d).string().min(1, "State is required"))
|
|
1046
1056
|
}, null, 8, ["modelValue", "rules"]),
|
|
1047
1057
|
r(N, {
|
|
1048
1058
|
modelValue: e(a).outletCity,
|
|
1049
|
-
"onUpdate:modelValue": s[8] || (s[8] = (
|
|
1059
|
+
"onUpdate:modelValue": s[8] || (s[8] = (o) => e(a).outletCity = o),
|
|
1050
1060
|
label: "City",
|
|
1051
1061
|
"label-mark": "required",
|
|
1052
1062
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
@@ -1058,180 +1068,180 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1058
1068
|
}, null, 8, ["model-value"]),
|
|
1059
1069
|
r(N, {
|
|
1060
1070
|
modelValue: e(a).numberOfDevices,
|
|
1061
|
-
"onUpdate:modelValue": s[9] || (s[9] = (
|
|
1071
|
+
"onUpdate:modelValue": s[9] || (s[9] = (o) => e(a).numberOfDevices = o),
|
|
1062
1072
|
label: "Number of Devices",
|
|
1063
1073
|
"label-mark": "required"
|
|
1064
1074
|
}, null, 8, ["modelValue"])
|
|
1065
1075
|
]),
|
|
1066
|
-
s[40] || (s[40] =
|
|
1067
|
-
|
|
1076
|
+
s[40] || (s[40] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
1077
|
+
n("div", ml, [
|
|
1068
1078
|
r(N, {
|
|
1069
1079
|
modelValue: e(a).bankName,
|
|
1070
|
-
"onUpdate:modelValue": s[10] || (s[10] = (
|
|
1080
|
+
"onUpdate:modelValue": s[10] || (s[10] = (o) => e(a).bankName = o),
|
|
1071
1081
|
label: "Bank Name",
|
|
1072
1082
|
"label-mark": "required",
|
|
1073
1083
|
rules: e(u)(e(d).string().min(1, "Bank Name is required"))
|
|
1074
1084
|
}, null, 8, ["modelValue", "rules"]),
|
|
1075
1085
|
r(N, {
|
|
1076
1086
|
modelValue: e(a).bankHolderName,
|
|
1077
|
-
"onUpdate:modelValue": s[11] || (s[11] = (
|
|
1087
|
+
"onUpdate:modelValue": s[11] || (s[11] = (o) => e(a).bankHolderName = o),
|
|
1078
1088
|
label: "Bank Holder Name",
|
|
1079
1089
|
"label-mark": "required",
|
|
1080
1090
|
rules: e(u)(e(d).string().min(1, "Bank Holder Name is required"))
|
|
1081
1091
|
}, null, 8, ["modelValue", "rules"]),
|
|
1082
1092
|
r(N, {
|
|
1083
1093
|
modelValue: e(a).bankAccountNo,
|
|
1084
|
-
"onUpdate:modelValue": s[12] || (s[12] = (
|
|
1094
|
+
"onUpdate:modelValue": s[12] || (s[12] = (o) => e(a).bankAccountNo = o),
|
|
1085
1095
|
label: "Bank Account No",
|
|
1086
1096
|
"label-mark": "required",
|
|
1087
1097
|
rules: e(u)(e(d).string().min(1, "Bank Account No is required"))
|
|
1088
1098
|
}, null, 8, ["modelValue", "rules"]),
|
|
1089
1099
|
r(N, {
|
|
1090
1100
|
modelValue: e(a).bankBranch,
|
|
1091
|
-
"onUpdate:modelValue": s[13] || (s[13] = (
|
|
1101
|
+
"onUpdate:modelValue": s[13] || (s[13] = (o) => e(a).bankBranch = o),
|
|
1092
1102
|
label: "Bank Branch",
|
|
1093
1103
|
"label-mark": "required",
|
|
1094
1104
|
rules: e(u)(e(d).string().min(1, "Bank Branch is required"))
|
|
1095
1105
|
}, null, 8, ["modelValue", "rules"]),
|
|
1096
1106
|
r(N, {
|
|
1097
1107
|
modelValue: e(a).bankBranchCode,
|
|
1098
|
-
"onUpdate:modelValue": s[14] || (s[14] = (
|
|
1108
|
+
"onUpdate:modelValue": s[14] || (s[14] = (o) => e(a).bankBranchCode = o),
|
|
1099
1109
|
label: "Bank Branch Code",
|
|
1100
1110
|
"label-mark": "required",
|
|
1101
1111
|
rules: e(u)(e(d).string().min(1, "Bank Branch Code is required"))
|
|
1102
1112
|
}, null, 8, ["modelValue", "rules"])
|
|
1103
1113
|
]),
|
|
1104
|
-
s[41] || (s[41] =
|
|
1105
|
-
|
|
1106
|
-
r(
|
|
1114
|
+
s[41] || (s[41] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
1115
|
+
n("div", pl, [
|
|
1116
|
+
r(w, {
|
|
1107
1117
|
label: "Authorized Person ID",
|
|
1108
1118
|
modelValue: e(i).authorizedPersonID,
|
|
1109
|
-
"onUpdate:modelValue": s[15] || (s[15] = (
|
|
1119
|
+
"onUpdate:modelValue": s[15] || (s[15] = (o) => e(i).authorizedPersonID = o),
|
|
1110
1120
|
type: "image",
|
|
1111
1121
|
"restaurant-id": m.submission.restaurantId
|
|
1112
1122
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1113
|
-
r(
|
|
1123
|
+
r(w, {
|
|
1114
1124
|
label: "Outlet Photo",
|
|
1115
1125
|
modelValue: e(i).outletPhoto,
|
|
1116
|
-
"onUpdate:modelValue": s[16] || (s[16] = (
|
|
1126
|
+
"onUpdate:modelValue": s[16] || (s[16] = (o) => e(i).outletPhoto = o),
|
|
1117
1127
|
type: "image",
|
|
1118
1128
|
"restaurant-id": m.submission.restaurantId
|
|
1119
1129
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1120
|
-
r(
|
|
1130
|
+
r(w, {
|
|
1121
1131
|
label: "Interior Photo",
|
|
1122
1132
|
modelValue: e(i).interiorPhoto,
|
|
1123
|
-
"onUpdate:modelValue": s[17] || (s[17] = (
|
|
1133
|
+
"onUpdate:modelValue": s[17] || (s[17] = (o) => e(i).interiorPhoto = o),
|
|
1124
1134
|
type: "image",
|
|
1125
1135
|
"restaurant-id": m.submission.restaurantId
|
|
1126
1136
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1127
|
-
r(
|
|
1137
|
+
r(w, {
|
|
1128
1138
|
label: "Bank Statement",
|
|
1129
1139
|
modelValue: e(i).bankStatement,
|
|
1130
|
-
"onUpdate:modelValue": s[18] || (s[18] = (
|
|
1140
|
+
"onUpdate:modelValue": s[18] || (s[18] = (o) => e(i).bankStatement = o),
|
|
1131
1141
|
type: "pdf",
|
|
1132
1142
|
"restaurant-id": m.submission.restaurantId
|
|
1133
1143
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1134
|
-
e(a).businessType === "juristic" ? (b(),
|
|
1144
|
+
e(a).businessType === "juristic" ? (b(), T(w, {
|
|
1135
1145
|
key: 0,
|
|
1136
1146
|
label: "Company Certificate",
|
|
1137
1147
|
type: "pdf",
|
|
1138
1148
|
modelValue: e(i).companyCertificate,
|
|
1139
|
-
"onUpdate:modelValue": s[19] || (s[19] = (
|
|
1149
|
+
"onUpdate:modelValue": s[19] || (s[19] = (o) => e(i).companyCertificate = o),
|
|
1140
1150
|
"restaurant-id": m.submission.restaurantId
|
|
1141
1151
|
}, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
|
|
1142
|
-
e(a).businessType === "juristic" ? (b(),
|
|
1152
|
+
e(a).businessType === "juristic" ? (b(), T(w, {
|
|
1143
1153
|
key: 1,
|
|
1144
1154
|
label: "VAT Certificate",
|
|
1145
1155
|
type: "pdf",
|
|
1146
1156
|
modelValue: e(i).vatCertificate,
|
|
1147
|
-
"onUpdate:modelValue": s[20] || (s[20] = (
|
|
1157
|
+
"onUpdate:modelValue": s[20] || (s[20] = (o) => e(i).vatCertificate = o),
|
|
1148
1158
|
"restaurant-id": m.submission.restaurantId
|
|
1149
1159
|
}, null, 8, ["modelValue", "restaurant-id"])) : A("", !0),
|
|
1150
|
-
e(a).businessType === "individual" ? (b(),
|
|
1160
|
+
e(a).businessType === "individual" ? (b(), T(w, {
|
|
1151
1161
|
key: 2,
|
|
1152
1162
|
label: "Commercial Certificate",
|
|
1153
1163
|
type: "pdf",
|
|
1154
1164
|
modelValue: e(i).commercialCertificate,
|
|
1155
|
-
"onUpdate:modelValue": s[21] || (s[21] = (
|
|
1165
|
+
"onUpdate:modelValue": s[21] || (s[21] = (o) => e(i).commercialCertificate = o),
|
|
1156
1166
|
"restaurant-id": m.submission.restaurantId
|
|
1157
1167
|
}, null, 8, ["modelValue", "restaurant-id"])) : A("", !0)
|
|
1158
1168
|
]),
|
|
1159
|
-
s[42] || (s[42] =
|
|
1160
|
-
|
|
1161
|
-
|
|
1169
|
+
s[42] || (s[42] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1170
|
+
n("div", bl, [
|
|
1171
|
+
n("div", cl, [
|
|
1162
1172
|
r(N, {
|
|
1163
1173
|
modelValue: e(a).picName,
|
|
1164
|
-
"onUpdate:modelValue": s[22] || (s[22] = (
|
|
1174
|
+
"onUpdate:modelValue": s[22] || (s[22] = (o) => e(a).picName = o),
|
|
1165
1175
|
label: "PIC Name",
|
|
1166
1176
|
"label-mark": "required",
|
|
1167
1177
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
1168
1178
|
}, null, 8, ["modelValue", "rules"])
|
|
1169
1179
|
]),
|
|
1170
|
-
|
|
1180
|
+
n("div", yl, [
|
|
1171
1181
|
r(N, {
|
|
1172
1182
|
modelValue: e(a).picRole,
|
|
1173
|
-
"onUpdate:modelValue": s[23] || (s[23] = (
|
|
1183
|
+
"onUpdate:modelValue": s[23] || (s[23] = (o) => e(a).picRole = o),
|
|
1174
1184
|
label: "PIC Role",
|
|
1175
1185
|
"label-mark": "required",
|
|
1176
1186
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
1177
1187
|
}, null, 8, ["modelValue", "rules"])
|
|
1178
1188
|
]),
|
|
1179
|
-
|
|
1189
|
+
n("div", gl, [
|
|
1180
1190
|
r(N, {
|
|
1181
1191
|
modelValue: e(a).picEmail,
|
|
1182
|
-
"onUpdate:modelValue": s[24] || (s[24] = (
|
|
1192
|
+
"onUpdate:modelValue": s[24] || (s[24] = (o) => e(a).picEmail = o),
|
|
1183
1193
|
label: "PIC Email",
|
|
1184
1194
|
"label-mark": "required",
|
|
1185
1195
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
1186
1196
|
}, null, 8, ["modelValue", "rules"])
|
|
1187
1197
|
]),
|
|
1188
|
-
|
|
1198
|
+
n("div", Vl, [
|
|
1189
1199
|
r(j, {
|
|
1190
1200
|
"model-value": e(a).picContact,
|
|
1191
|
-
"onUpdate:modelValue": s[25] || (s[25] = (
|
|
1201
|
+
"onUpdate:modelValue": s[25] || (s[25] = (o) => e(a).picContact = o),
|
|
1192
1202
|
"default-country": "TH",
|
|
1193
1203
|
label: "PIC Contact",
|
|
1194
1204
|
"label-mark": "required",
|
|
1195
1205
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
1196
1206
|
}, null, 8, ["model-value", "rules"])
|
|
1197
1207
|
]),
|
|
1198
|
-
|
|
1208
|
+
n("div", vl, [
|
|
1199
1209
|
r(N, {
|
|
1200
1210
|
modelValue: e(a).witnessName,
|
|
1201
|
-
"onUpdate:modelValue": s[26] || (s[26] = (
|
|
1211
|
+
"onUpdate:modelValue": s[26] || (s[26] = (o) => e(a).witnessName = o),
|
|
1202
1212
|
label: "Witness Name",
|
|
1203
1213
|
"label-mark": "required",
|
|
1204
1214
|
rules: e(u)(e(d).string().min(1, "Witness Name is required"))
|
|
1205
1215
|
}, null, 8, ["modelValue", "rules"])
|
|
1206
1216
|
]),
|
|
1207
|
-
|
|
1217
|
+
n("div", fl, [
|
|
1208
1218
|
r(N, {
|
|
1209
1219
|
modelValue: e(a).witnessRole,
|
|
1210
|
-
"onUpdate:modelValue": s[27] || (s[27] = (
|
|
1220
|
+
"onUpdate:modelValue": s[27] || (s[27] = (o) => e(a).witnessRole = o),
|
|
1211
1221
|
label: "Witness Role",
|
|
1212
1222
|
"label-mark": "required",
|
|
1213
1223
|
rules: e(u)(e(d).string().min(1, "Witness Role is required"))
|
|
1214
1224
|
}, null, 8, ["modelValue", "rules"])
|
|
1215
1225
|
]),
|
|
1216
|
-
r(
|
|
1226
|
+
r(w, {
|
|
1217
1227
|
label: "Signature",
|
|
1218
1228
|
type: "image",
|
|
1219
1229
|
modelValue: e(i).signature,
|
|
1220
|
-
"onUpdate:modelValue": s[28] || (s[28] = (
|
|
1230
|
+
"onUpdate:modelValue": s[28] || (s[28] = (o) => e(i).signature = o),
|
|
1221
1231
|
"restaurant-id": m.submission.restaurantId
|
|
1222
1232
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1223
|
-
r(
|
|
1233
|
+
r(w, {
|
|
1224
1234
|
label: "Witness Signature",
|
|
1225
1235
|
type: "image",
|
|
1226
1236
|
modelValue: e(i).witnessSignature,
|
|
1227
|
-
"onUpdate:modelValue": s[29] || (s[29] = (
|
|
1237
|
+
"onUpdate:modelValue": s[29] || (s[29] = (o) => e(i).witnessSignature = o),
|
|
1228
1238
|
"restaurant-id": m.submission.restaurantId
|
|
1229
1239
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1230
|
-
r(
|
|
1240
|
+
r(w, {
|
|
1231
1241
|
label: "Company Stamp",
|
|
1232
1242
|
type: "image",
|
|
1233
1243
|
modelValue: e(i).companyStamp,
|
|
1234
|
-
"onUpdate:modelValue": s[30] || (s[30] = (
|
|
1244
|
+
"onUpdate:modelValue": s[30] || (s[30] = (o) => e(i).companyStamp = o),
|
|
1235
1245
|
"restaurant-id": m.submission.restaurantId
|
|
1236
1246
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
1237
1247
|
])
|
|
@@ -1241,7 +1251,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1241
1251
|
], 64);
|
|
1242
1252
|
};
|
|
1243
1253
|
}
|
|
1244
|
-
}),
|
|
1254
|
+
}), Cl = /* @__PURE__ */ Z({
|
|
1245
1255
|
__name: "TyroSubmission",
|
|
1246
1256
|
props: {
|
|
1247
1257
|
submission: {
|
|
@@ -1274,7 +1284,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1274
1284
|
});
|
|
1275
1285
|
return (k, g) => {
|
|
1276
1286
|
const P = C("FmCardHeader"), c = C("FmCardSection"), R = C("FmCard");
|
|
1277
|
-
return b(),
|
|
1287
|
+
return b(), T(R, {
|
|
1278
1288
|
class: "max-w-3xl mt-8 p-6",
|
|
1279
1289
|
variant: "elevated"
|
|
1280
1290
|
}, {
|
|
@@ -1288,11 +1298,11 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1288
1298
|
}),
|
|
1289
1299
|
r(c, { class: "p-0" }, {
|
|
1290
1300
|
default: f(() => [
|
|
1291
|
-
(b(!0),
|
|
1301
|
+
(b(!0), F(J, null, le(v.value, (a) => (b(), F("p", {
|
|
1292
1302
|
key: a.label,
|
|
1293
1303
|
class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
|
|
1294
1304
|
}, [
|
|
1295
|
-
|
|
1305
|
+
n("b", null, I(a.label), 1),
|
|
1296
1306
|
z(": " + I(a.value), 1)
|
|
1297
1307
|
]))), 128))
|
|
1298
1308
|
]),
|
|
@@ -1306,10 +1316,10 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1306
1316
|
});
|
|
1307
1317
|
};
|
|
1308
1318
|
}
|
|
1309
|
-
}),
|
|
1319
|
+
}), Nl = {
|
|
1310
1320
|
key: 0,
|
|
1311
1321
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1312
|
-
},
|
|
1322
|
+
}, Sl = { class: "px-32 pb-32" }, $l = /* @__PURE__ */ Z({
|
|
1313
1323
|
__name: "OnboardForm",
|
|
1314
1324
|
props: {
|
|
1315
1325
|
submissionId: {
|
|
@@ -1320,8 +1330,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1320
1330
|
setup(m) {
|
|
1321
1331
|
const { startAsyncCall: O, isLoading: v } = te(), k = ae(), g = m, P = ce(), c = $(null), R = W(
|
|
1322
1332
|
() => {
|
|
1323
|
-
var
|
|
1324
|
-
return ((
|
|
1333
|
+
var B;
|
|
1334
|
+
return ((B = c.value) == null ? void 0 : B.type) === oe.FdoOnboardType.enum.tyro;
|
|
1325
1335
|
}
|
|
1326
1336
|
), a = () => {
|
|
1327
1337
|
if (window.history.length > 1) {
|
|
@@ -1339,22 +1349,22 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1339
1349
|
if (!c.value) return null;
|
|
1340
1350
|
switch (c.value.type) {
|
|
1341
1351
|
case "softspace":
|
|
1342
|
-
return
|
|
1352
|
+
return Ye;
|
|
1343
1353
|
case "ntt":
|
|
1344
|
-
return fl;
|
|
1345
|
-
case "tyro":
|
|
1346
1354
|
return kl;
|
|
1355
|
+
case "tyro":
|
|
1356
|
+
return Cl;
|
|
1347
1357
|
default:
|
|
1348
1358
|
return null;
|
|
1349
1359
|
}
|
|
1350
1360
|
}), U = $(0);
|
|
1351
|
-
function V(
|
|
1352
|
-
c.value =
|
|
1361
|
+
function V(B) {
|
|
1362
|
+
c.value = B, U.value = Date.now();
|
|
1353
1363
|
}
|
|
1354
|
-
const x = async (
|
|
1355
|
-
var
|
|
1364
|
+
const x = async (B) => {
|
|
1365
|
+
var q, p;
|
|
1356
1366
|
if (c.value)
|
|
1357
|
-
switch (
|
|
1367
|
+
switch (B) {
|
|
1358
1368
|
case "preview":
|
|
1359
1369
|
let E;
|
|
1360
1370
|
try {
|
|
@@ -1362,7 +1372,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1362
1372
|
message: "Generating preview document...",
|
|
1363
1373
|
type: "info"
|
|
1364
1374
|
}), await H.previewDocument(
|
|
1365
|
-
(
|
|
1375
|
+
(q = c.value) == null ? void 0 : q._id
|
|
1366
1376
|
);
|
|
1367
1377
|
} catch (D) {
|
|
1368
1378
|
k.open({
|
|
@@ -1395,12 +1405,12 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1395
1405
|
break;
|
|
1396
1406
|
}
|
|
1397
1407
|
};
|
|
1398
|
-
return (
|
|
1408
|
+
return (B, q) => {
|
|
1399
1409
|
var D, G;
|
|
1400
1410
|
const p = C("FmCircularProgress"), E = C("FmPageHead");
|
|
1401
|
-
return e(v) ? (b(),
|
|
1411
|
+
return e(v) ? (b(), F("div", Nl, [
|
|
1402
1412
|
r(p, { size: "xxl" })
|
|
1403
|
-
])) : (b(),
|
|
1413
|
+
])) : (b(), F(J, { key: 1 }, [
|
|
1404
1414
|
r(E, {
|
|
1405
1415
|
title: `Submission - ${(D = c.value) == null ? void 0 : D.type}`,
|
|
1406
1416
|
description: `ID - ${(G = c.value) == null ? void 0 : G._id}`,
|
|
@@ -1421,8 +1431,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1421
1431
|
}
|
|
1422
1432
|
]
|
|
1423
1433
|
}, null, 8, ["title", "description", "actions"]),
|
|
1424
|
-
|
|
1425
|
-
(b(),
|
|
1434
|
+
n("div", Sl, [
|
|
1435
|
+
(b(), T(be(i.value), {
|
|
1426
1436
|
key: U.value,
|
|
1427
1437
|
submission: c.value,
|
|
1428
1438
|
"onUpdate:submission": V
|
|
@@ -1433,5 +1443,5 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1433
1443
|
}
|
|
1434
1444
|
});
|
|
1435
1445
|
export {
|
|
1436
|
-
|
|
1446
|
+
$l as default
|
|
1437
1447
|
};
|