@feedmepos/mf-payment 1.5.14-dev → 1.5.16-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-BmOIDlHF.js → Actions.vue_vue_type_script_setup_true_lang-BVJmo7yZ.js} +2 -2
- package/dist/{Chargeback-BwFrnuVw.js → Chargeback-CN_5ffe0.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-VCdsMJXV.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DVeP7_1A.js} +1 -1
- package/dist/{OnboardForm-D-TlxYQm.js → OnboardForm-DUgCDg0z.js} +5 -5
- package/dist/{OnboardForm-1bjTqyjr.js → OnboardForm-DvYi9dVM.js} +364 -335
- package/dist/{OnboardSubmission-CsFQc3w-.js → OnboardSubmission-Dd_VhLYi.js} +2 -2
- package/dist/{OnboardSubmission-B1p_ss6c.js → OnboardSubmission-uKpGFwN-.js} +5 -5
- package/dist/{PayoutAccount-gKGc70jp.js → PayoutAccount-C_CgRoWJ.js} +5 -5
- package/dist/{PayoutAccount-CpaFIxzp.js → PayoutAccount-Dmm8RQll.js} +4 -4
- package/dist/{PayoutAccountSetting-BoIhsg96.js → PayoutAccountSetting-BGqJyEP-.js} +4 -4
- package/dist/{Restaurant-tXUEtR_q.js → Restaurant-BjF1a029.js} +4 -4
- package/dist/{RestaurantSetting-CgHsz4H3.js → RestaurantSetting-DC0f4Ucf.js} +3 -3
- package/dist/{Settlement-DOvppZAi.js → Settlement-BC3V4klw.js} +3 -3
- package/dist/{Settlement-c0bY9_gD.js → Settlement-ZBIhVddV.js} +3 -3
- package/dist/{SettlementTransactions-bF7EFZ2j.js → SettlementTransactions---x0z4Fg.js} +4 -4
- package/dist/{SettlementTransactions-BouvzPU4.js → SettlementTransactions-NtqKVZ4y.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-CvA16aFf.js → Status.vue_vue_type_script_setup_true_lang-DiLHaz81.js} +1 -1
- package/dist/{Terminal-CNqJtWgk.js → Terminal-Dp4YfQLn.js} +5 -5
- package/dist/{TerminalSetting-CxbuTkH6.js → TerminalSetting-22VMhd8q.js} +3 -3
- package/dist/{Transaction-DsG8LE6e.js → Transaction-BiT6BRmx.js} +6 -6
- package/dist/{Transaction-BqSxZ7lr.js → Transaction-JFDOKyml.js} +9 -9
- package/dist/{TransactionOld-CJe-29ZZ.js → TransactionOld-CmRVIeU2.js} +6 -6
- package/dist/{app-DfYY05aO.js → app-Be-8zsJx.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-BQ2aldLR.js → assets-lFgK3KQx.js} +1 -1
- package/dist/{grafana-BUZudDE4.js → grafana-BRpcfaCo.js} +1 -1
- package/dist/{index-p6MzFJyt.js → index-9ABD__aA.js} +1 -1
- package/dist/index-BcOHdPNx.js +80 -0
- package/dist/{index-DxBjQBeA.js → index-CFxxPCNY.js} +1 -1
- package/dist/{index-y2BEVclv.js → index-CHX0p0Dm.js} +1 -1
- package/dist/{index-a1n8cWO_.js → index-DTD9SWXp.js} +1 -1
- package/dist/{index-7Tof5vdq.js → index-QTsd1BO1.js} +6 -6
- package/dist/{index-CxOPkwlX.js → index-VWqgxrIV.js} +1 -1
- package/dist/{index-DltFdclg.js → index-hKHpA30o.js} +1 -1
- package/dist/{index-oL7n2plf.js → index-s7pe9sTx.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-Bl3q7hOw.js → index.vue_vue_type_script_setup_true_lang-QCvHWbIq.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DWWpqLNM.js → payout-account-B_WG1TKC.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +20 -20
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -20
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +14 -14
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +14 -14
- package/package.json +2 -2
- package/dist/index-BXr5_TWx.js +0 -72
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as z } from "./index-
|
|
3
|
-
import { u as Z } from "./index-
|
|
4
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as G, ref as E, computed as Q, resolveComponent as q, openBlock as f, createElementBlock as O, createElementVNode as n, toDisplayString as x, createBlock as j, withCtx as v, createCommentVNode as $, createVNode as o, unref as e, Fragment as K, createTextVNode as L, renderList as te, onMounted as se, resolveDynamicComponent as ne } from "vue";
|
|
2
|
+
import { o as z } from "./index-BcOHdPNx.js";
|
|
3
|
+
import { u as Z, p as oe } from "./index-QTsd1BO1.js";
|
|
4
|
+
import { useRouter as re } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-DzjyJnvv.js";
|
|
6
|
-
import { P as
|
|
7
|
-
import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { s as
|
|
9
|
-
import { _ as ee } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { P as ie } from "./payout-account-B_WG1TKC.js";
|
|
7
|
+
import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DVeP7_1A.js";
|
|
8
|
+
import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
9
|
+
import { _ as ee } from "./Status.vue_vue_type_script_setup_true_lang-DiLHaz81.js";
|
|
10
10
|
import { useSnackbar as h } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as H } from "./error-K1CakhA9.js";
|
|
12
|
-
const
|
|
12
|
+
const de = ["src"], w = /* @__PURE__ */ G({
|
|
13
13
|
__name: "UploadButton",
|
|
14
14
|
props: {
|
|
15
15
|
modelValue: {},
|
|
@@ -19,52 +19,52 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:modelValue"],
|
|
21
21
|
setup(p, { emit: A }) {
|
|
22
|
-
const S = p, P =
|
|
22
|
+
const S = p, P = E(S.modelValue), k = A, F = (s) => {
|
|
23
23
|
const i = new FileReader();
|
|
24
|
-
i.onload = (
|
|
24
|
+
i.onload = (U) => {
|
|
25
25
|
var b;
|
|
26
|
-
P.value = (b =
|
|
26
|
+
P.value = (b = U.target) == null ? void 0 : b.result, k("update:modelValue", s);
|
|
27
27
|
}, i.readAsDataURL(s);
|
|
28
|
-
},
|
|
28
|
+
}, c = (s) => {
|
|
29
29
|
window.open(s, "_blank", "noopener,noreferrer");
|
|
30
|
-
},
|
|
30
|
+
}, I = Q(() => S.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
|
|
31
31
|
return (s, i) => {
|
|
32
|
-
const
|
|
32
|
+
const U = q("FmButton"), b = q("FmDropField");
|
|
33
33
|
return f(), O("div", null, [
|
|
34
|
-
|
|
35
|
-
P.value ? (f(),
|
|
34
|
+
n("p", null, x(p.label), 1),
|
|
35
|
+
P.value ? (f(), j(_, {
|
|
36
36
|
key: 0,
|
|
37
37
|
document: P.value,
|
|
38
38
|
"restaurant-id": p.restaurantId
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
40
|
+
default: v(({ src: C }) => [
|
|
41
41
|
p.type === "image" ? (f(), O("img", {
|
|
42
42
|
key: 0,
|
|
43
|
-
src:
|
|
44
|
-
}, null, 8,
|
|
45
|
-
p.type === "pdf" ? (f(),
|
|
43
|
+
src: C
|
|
44
|
+
}, null, 8, de)) : $("", !0),
|
|
45
|
+
p.type === "pdf" ? (f(), j(U, {
|
|
46
46
|
key: 1,
|
|
47
47
|
class: "mt-4 w-full",
|
|
48
48
|
"prepend-icon": "manage_accounts",
|
|
49
49
|
label: "View Document",
|
|
50
50
|
variant: "primary",
|
|
51
|
-
onVnodeMounted: () =>
|
|
52
|
-
onClick: () =>
|
|
51
|
+
onVnodeMounted: () => c(C),
|
|
52
|
+
onClick: () => c(C)
|
|
53
53
|
}, null, 8, ["onVnodeMounted", "onClick"])) : $("", !0)
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
}, 8, ["document", "restaurant-id"])) : (f(),
|
|
56
|
+
}, 8, ["document", "restaurant-id"])) : (f(), j(b, {
|
|
57
57
|
key: 1,
|
|
58
|
-
accept:
|
|
59
|
-
onFileUpload:
|
|
58
|
+
accept: I.value,
|
|
59
|
+
onFileUpload: F
|
|
60
60
|
}, null, 8, ["accept"]))
|
|
61
61
|
]);
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
64
|
+
}), me = ["src"], pe = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "text-center text-red-700 py-4"
|
|
67
|
-
},
|
|
67
|
+
}, be = { class: "flex justify-evenly py-3" }, ce = /* @__PURE__ */ G({
|
|
68
68
|
__name: "SignatureBoard",
|
|
69
69
|
props: {
|
|
70
70
|
modelValue: {},
|
|
@@ -73,72 +73,72 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:modelValue"],
|
|
75
75
|
setup(p, { emit: A }) {
|
|
76
|
-
const S = p, P = A,
|
|
77
|
-
function s(
|
|
78
|
-
var
|
|
79
|
-
const
|
|
80
|
-
let m =
|
|
76
|
+
const S = p, P = A, k = E(S.modelValue), F = E(!1), c = E(), I = E(!1);
|
|
77
|
+
function s(U, b) {
|
|
78
|
+
var T;
|
|
79
|
+
const C = U.split(","), D = ((T = C[0].match(/:(.*?);/)) == null ? void 0 : T[1]) || "", N = atob(C[1]);
|
|
80
|
+
let m = N.length;
|
|
81
81
|
const B = new Uint8Array(m);
|
|
82
82
|
for (; m--; )
|
|
83
|
-
B[m] =
|
|
84
|
-
return new File([B], b, { type:
|
|
83
|
+
B[m] = N.charCodeAt(m);
|
|
84
|
+
return new File([B], b, { type: D });
|
|
85
85
|
}
|
|
86
86
|
const i = function() {
|
|
87
|
-
const { isEmpty:
|
|
88
|
-
if (
|
|
89
|
-
return
|
|
90
|
-
|
|
87
|
+
const { isEmpty: U, data: b } = c.value.saveSignature();
|
|
88
|
+
if (U)
|
|
89
|
+
return F.value = !0;
|
|
90
|
+
k.value = b, I.value = !1, P("update:modelValue", s(b, "signature.png"));
|
|
91
91
|
};
|
|
92
|
-
return (
|
|
93
|
-
const
|
|
92
|
+
return (U, b) => {
|
|
93
|
+
const C = q("FmButton"), D = q("FmDialog");
|
|
94
94
|
return f(), O("div", null, [
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
n("p", null, x(p.label), 1),
|
|
96
|
+
k.value ? (f(), j(_, {
|
|
97
97
|
key: 0,
|
|
98
|
-
document:
|
|
98
|
+
document: k.value,
|
|
99
99
|
"restaurant-id": p.restaurantId
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
|
|
103
|
-
src:
|
|
101
|
+
default: v(({ src: N }) => [
|
|
102
|
+
n("img", {
|
|
103
|
+
src: N,
|
|
104
104
|
alt: "Signature Preview",
|
|
105
105
|
class: "w-full h-auto"
|
|
106
|
-
}, null, 8,
|
|
106
|
+
}, null, 8, me)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["document", "restaurant-id"])) : $("", !0),
|
|
110
|
-
|
|
110
|
+
k.value ? $("", !0) : (f(), j(D, {
|
|
111
111
|
key: 1,
|
|
112
|
-
modelValue:
|
|
113
|
-
"onUpdate:modelValue": b[1] || (b[1] = (
|
|
112
|
+
modelValue: I.value,
|
|
113
|
+
"onUpdate:modelValue": b[1] || (b[1] = (N) => I.value = N)
|
|
114
114
|
}, {
|
|
115
|
-
"dialog-button":
|
|
116
|
-
|
|
115
|
+
"dialog-button": v(() => [
|
|
116
|
+
o(C, {
|
|
117
117
|
"prepend-icon": "signature",
|
|
118
118
|
class: "w-full",
|
|
119
119
|
label: "Signature"
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
|
-
"dialog-header":
|
|
123
|
-
|
|
122
|
+
"dialog-header": v(() => [...b[2] || (b[2] = [
|
|
123
|
+
n("div", null, "Signature Board", -1)
|
|
124
124
|
])]),
|
|
125
|
-
default:
|
|
126
|
-
|
|
125
|
+
default: v(() => [
|
|
126
|
+
o(e(ue), {
|
|
127
127
|
ref_key: "signaturePad",
|
|
128
|
-
ref:
|
|
128
|
+
ref: c,
|
|
129
129
|
height: "300px",
|
|
130
130
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
|
131
131
|
options: { penColor: "#000000" }
|
|
132
132
|
}, null, 512),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
F.value ? (f(), O("p", pe, " Please sign your signature before saving. ")) : $("", !0),
|
|
134
|
+
n("div", be, [
|
|
135
|
+
o(C, {
|
|
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] = (N) => c.value.clearSignature())
|
|
140
140
|
}),
|
|
141
|
-
|
|
141
|
+
o(C, {
|
|
142
142
|
label: "Save",
|
|
143
143
|
"prepend-icon": "save",
|
|
144
144
|
onClick: i
|
|
@@ -150,7 +150,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}),
|
|
153
|
+
}), ye = { class: "space-y-2" }, ge = { class: "text-gray-900" }, Ve = { class: "text-gray-900" }, ve = { class: "text-gray-900" }, fe = { class: "text-gray-900" }, ke = { class: "text-gray-900" }, Ce = { class: "text-gray-900" }, Ne = { class: "mt-6 grid grid-cols-4 gap-24" }, Se = { class: "w-full flex justify-end mt-6" }, Pe = { class: "mt-6 grid grid-cols-4 gap-24" }, qe = { class: "col-span-2" }, we = { class: "col-span-2" }, Fe = { class: "col-span-2" }, Ie = { class: "col-span-2" }, Ue = { class: "col-span-2" }, Re = { class: "col-span-2" }, xe = { class: "col-start-1 col-span-2" }, Be = { class: "col-span-2" }, Ee = { class: "col-span-2" }, Te = { class: "col-span-2" }, je = { class: "mt-6 grid grid-cols-4 gap-24" }, De = { class: "mt-6 grid grid-cols-2 gap-24" }, $e = /* @__PURE__ */ G({
|
|
154
154
|
__name: "SoftspaceSubmission",
|
|
155
155
|
props: {
|
|
156
156
|
submission: {
|
|
@@ -160,9 +160,9 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
160
160
|
},
|
|
161
161
|
emits: ["update:submission"],
|
|
162
162
|
setup(p, { emit: A }) {
|
|
163
|
-
const S = p, P = A,
|
|
163
|
+
const S = p, P = A, k = h(), F = E(!1), { isLoading: c, startAsyncCall: I } = Z(), { fields: s, documents: i, restaurantId: U, profile: b, status: C, statusReason: D } = S.submission, N = E(""), m = E(
|
|
164
164
|
S.submission.rates ? Object.fromEntries(
|
|
165
|
-
Object.entries(S.submission.rates).map(([
|
|
165
|
+
Object.entries(S.submission.rates).map(([R, l]) => [R, `${l}`])
|
|
166
166
|
) : {
|
|
167
167
|
duitNow: "0.8",
|
|
168
168
|
mydebitCard: "0.5",
|
|
@@ -172,11 +172,11 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
172
172
|
jcbStandard: "2.2",
|
|
173
173
|
jcbPlatinum: "2.2"
|
|
174
174
|
}
|
|
175
|
-
), B =
|
|
176
|
-
() => Object.values(m.value).every((
|
|
177
|
-
),
|
|
175
|
+
), B = Q(
|
|
176
|
+
() => Object.values(m.value).every((R) => parseFloat(R) > 0)
|
|
177
|
+
), T = () => I(async () => {
|
|
178
178
|
try {
|
|
179
|
-
const
|
|
179
|
+
const R = await z.reviewById(
|
|
180
180
|
S.submission._id,
|
|
181
181
|
{
|
|
182
182
|
rates: {
|
|
@@ -191,72 +191,72 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
191
191
|
status: "approved"
|
|
192
192
|
}
|
|
193
193
|
);
|
|
194
|
-
P("update:submission",
|
|
194
|
+
P("update:submission", R), F.value = !1, k.open({
|
|
195
195
|
type: "success",
|
|
196
196
|
title: "Submission updated successfully"
|
|
197
197
|
});
|
|
198
|
-
} catch (
|
|
199
|
-
|
|
198
|
+
} catch (R) {
|
|
199
|
+
k.open({
|
|
200
200
|
type: "error",
|
|
201
201
|
title: "Error occurs when updating submission",
|
|
202
|
-
message: H(
|
|
202
|
+
message: H(R)
|
|
203
203
|
});
|
|
204
204
|
}
|
|
205
|
-
}), Y = () =>
|
|
205
|
+
}), Y = () => I(async () => {
|
|
206
206
|
try {
|
|
207
|
-
const
|
|
207
|
+
const R = await z.reviewById(
|
|
208
208
|
S.submission._id,
|
|
209
209
|
{
|
|
210
210
|
status: "rejected",
|
|
211
|
-
statusReason:
|
|
211
|
+
statusReason: N.value
|
|
212
212
|
}
|
|
213
213
|
);
|
|
214
|
-
P("update:submission",
|
|
214
|
+
P("update:submission", R), F.value = !1, k.open({
|
|
215
215
|
type: "success",
|
|
216
216
|
title: "Submission updated successfully"
|
|
217
217
|
});
|
|
218
|
-
} catch (
|
|
219
|
-
|
|
218
|
+
} catch (R) {
|
|
219
|
+
k.open({
|
|
220
220
|
type: "error",
|
|
221
221
|
title: "Error occurs when updating submission",
|
|
222
|
-
message: H(
|
|
222
|
+
message: H(R)
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
|
-
return (
|
|
227
|
-
const
|
|
226
|
+
return (R, l) => {
|
|
227
|
+
const y = q("FmTextField"), W = q("FmButton"), V = q("FmTextarea"), a = q("FmDialog"), g = q("FmPhoneNumber"), M = q("FmSelect"), X = q("FmForm");
|
|
228
228
|
return f(), O(K, null, [
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
l[33] || (l[33] =
|
|
232
|
-
|
|
229
|
+
n("div", ye, [
|
|
230
|
+
n("div", null, [
|
|
231
|
+
l[33] || (l[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
232
|
+
n("span", ge, x(e(U)), 1)
|
|
233
233
|
]),
|
|
234
|
-
|
|
235
|
-
l[34] || (l[34] =
|
|
236
|
-
|
|
234
|
+
n("div", null, [
|
|
235
|
+
l[34] || (l[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
236
|
+
n("span", Ve, x(e(b).name) + " ( " + x(e(b).legalName) + " )", 1)
|
|
237
237
|
]),
|
|
238
|
-
|
|
239
|
-
l[35] || (l[35] =
|
|
240
|
-
|
|
238
|
+
n("div", null, [
|
|
239
|
+
l[35] || (l[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
240
|
+
n("span", ve, x(e(b).email), 1)
|
|
241
241
|
]),
|
|
242
|
-
|
|
243
|
-
l[36] || (l[36] =
|
|
244
|
-
|
|
242
|
+
n("div", null, [
|
|
243
|
+
l[36] || (l[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
244
|
+
n("span", fe, x(e(b).phoneNo), 1)
|
|
245
245
|
]),
|
|
246
|
-
|
|
247
|
-
l[37] || (l[37] =
|
|
248
|
-
|
|
249
|
-
|
|
246
|
+
n("div", null, [
|
|
247
|
+
l[37] || (l[37] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
248
|
+
n("span", ke, [
|
|
249
|
+
o(ee, { data: e(C) }, null, 8, ["data"])
|
|
250
250
|
])
|
|
251
251
|
]),
|
|
252
|
-
|
|
253
|
-
l[38] || (l[38] =
|
|
254
|
-
|
|
252
|
+
n("div", null, [
|
|
253
|
+
l[38] || (l[38] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
254
|
+
n("span", Ce, x(e(D)), 1)
|
|
255
255
|
])
|
|
256
256
|
]),
|
|
257
|
-
l[50] || (l[50] =
|
|
258
|
-
|
|
259
|
-
|
|
257
|
+
l[50] || (l[50] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
258
|
+
n("div", Ne, [
|
|
259
|
+
o(y, {
|
|
260
260
|
modelValue: m.value.duitNow,
|
|
261
261
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => m.value.duitNow = t),
|
|
262
262
|
label: "DuitNow QR",
|
|
@@ -268,12 +268,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
268
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:
|
|
271
|
+
append: v(() => [...l[39] || (l[39] = [
|
|
272
272
|
L("%", -1)
|
|
273
273
|
])]),
|
|
274
274
|
_: 1
|
|
275
275
|
}, 8, ["modelValue", "rules"]),
|
|
276
|
-
|
|
276
|
+
o(y, {
|
|
277
277
|
modelValue: m.value.mydebitCard,
|
|
278
278
|
"onUpdate:modelValue": l[1] || (l[1] = (t) => m.value.mydebitCard = t),
|
|
279
279
|
label: "myDebit Card",
|
|
@@ -285,12 +285,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
285
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:
|
|
288
|
+
append: v(() => [...l[40] || (l[40] = [
|
|
289
289
|
L("%", -1)
|
|
290
290
|
])]),
|
|
291
291
|
_: 1
|
|
292
292
|
}, 8, ["modelValue", "rules"]),
|
|
293
|
-
|
|
293
|
+
o(y, {
|
|
294
294
|
modelValue: m.value.localDebit,
|
|
295
295
|
"onUpdate:modelValue": l[2] || (l[2] = (t) => m.value.localDebit = t),
|
|
296
296
|
label: "Local Debit Card",
|
|
@@ -302,12 +302,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
302
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:
|
|
305
|
+
append: v(() => [...l[41] || (l[41] = [
|
|
306
306
|
L("%", -1)
|
|
307
307
|
])]),
|
|
308
308
|
_: 1
|
|
309
309
|
}, 8, ["modelValue", "rules"]),
|
|
310
|
-
|
|
310
|
+
o(y, {
|
|
311
311
|
modelValue: m.value.localCredit,
|
|
312
312
|
"onUpdate:modelValue": l[3] || (l[3] = (t) => m.value.localCredit = t),
|
|
313
313
|
label: "Local Credit Card",
|
|
@@ -319,12 +319,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
319
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:
|
|
322
|
+
append: v(() => [...l[42] || (l[42] = [
|
|
323
323
|
L("%", -1)
|
|
324
324
|
])]),
|
|
325
325
|
_: 1
|
|
326
326
|
}, 8, ["modelValue", "rules"]),
|
|
327
|
-
|
|
327
|
+
o(y, {
|
|
328
328
|
modelValue: m.value.foreignCard,
|
|
329
329
|
"onUpdate:modelValue": l[4] || (l[4] = (t) => m.value.foreignCard = t),
|
|
330
330
|
label: "Foreign Card",
|
|
@@ -336,12 +336,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
336
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:
|
|
339
|
+
append: v(() => [...l[43] || (l[43] = [
|
|
340
340
|
L("%", -1)
|
|
341
341
|
])]),
|
|
342
342
|
_: 1
|
|
343
343
|
}, 8, ["modelValue", "rules"]),
|
|
344
|
-
|
|
344
|
+
o(y, {
|
|
345
345
|
modelValue: m.value.jcbStandard,
|
|
346
346
|
"onUpdate:modelValue": l[5] || (l[5] = (t) => m.value.jcbStandard = t),
|
|
347
347
|
label: "JCB Standard",
|
|
@@ -353,12 +353,12 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
353
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:
|
|
356
|
+
append: v(() => [...l[44] || (l[44] = [
|
|
357
357
|
L("%", -1)
|
|
358
358
|
])]),
|
|
359
359
|
_: 1
|
|
360
360
|
}, 8, ["modelValue", "rules"]),
|
|
361
|
-
|
|
361
|
+
o(y, {
|
|
362
362
|
modelValue: m.value.jcbPlatinum,
|
|
363
363
|
"onUpdate:modelValue": l[6] || (l[6] = (t) => m.value.jcbPlatinum = t),
|
|
364
364
|
label: "JCB Platinum",
|
|
@@ -370,64 +370,64 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
370
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:
|
|
373
|
+
append: v(() => [...l[45] || (l[45] = [
|
|
374
374
|
L("%", -1)
|
|
375
375
|
])]),
|
|
376
376
|
_: 1
|
|
377
377
|
}, 8, ["modelValue", "rules"])
|
|
378
378
|
]),
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
modelValue:
|
|
382
|
-
"onUpdate:modelValue": l[8] || (l[8] = (t) =>
|
|
379
|
+
n("div", Se, [
|
|
380
|
+
o(a, {
|
|
381
|
+
modelValue: F.value,
|
|
382
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => F.value = t)
|
|
383
383
|
}, {
|
|
384
|
-
"dialog-button":
|
|
385
|
-
|
|
384
|
+
"dialog-button": v(() => [
|
|
385
|
+
o(W, {
|
|
386
386
|
class: "mr-6",
|
|
387
387
|
type: "button",
|
|
388
388
|
variant: "destructive",
|
|
389
389
|
"prepend-icon": "block",
|
|
390
|
-
loading: e(
|
|
390
|
+
loading: e(c),
|
|
391
391
|
label: "Reject Submission"
|
|
392
392
|
}, null, 8, ["loading"])
|
|
393
393
|
]),
|
|
394
|
-
"dialog-header":
|
|
395
|
-
|
|
394
|
+
"dialog-header": v(() => [...l[46] || (l[46] = [
|
|
395
|
+
n("div", null, "Rejecting Submission", -1)
|
|
396
396
|
])]),
|
|
397
|
-
default:
|
|
398
|
-
|
|
399
|
-
modelValue:
|
|
400
|
-
"onUpdate:modelValue": l[7] || (l[7] = (t) =>
|
|
397
|
+
default: v(() => [
|
|
398
|
+
o(V, {
|
|
399
|
+
modelValue: N.value,
|
|
400
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => N.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
|
-
|
|
405
|
+
o(W, {
|
|
406
406
|
class: "mb-2 mt-6 w-full",
|
|
407
407
|
label: "Submit",
|
|
408
408
|
"prepend-icon": "save",
|
|
409
409
|
onClick: Y,
|
|
410
|
-
loading: e(
|
|
410
|
+
loading: e(c)
|
|
411
411
|
}, null, 8, ["loading"])
|
|
412
412
|
]),
|
|
413
413
|
_: 1
|
|
414
414
|
}, 8, ["modelValue"]),
|
|
415
|
-
|
|
415
|
+
o(W, {
|
|
416
416
|
type: "button",
|
|
417
417
|
variant: "primary",
|
|
418
418
|
"prepend-icon": "approval",
|
|
419
419
|
disabled: !B.value,
|
|
420
420
|
label: "Approve Submission with Rates",
|
|
421
|
-
onClick:
|
|
422
|
-
loading: e(
|
|
421
|
+
onClick: T,
|
|
422
|
+
loading: e(c)
|
|
423
423
|
}, null, 8, ["disabled", "loading"])
|
|
424
424
|
]),
|
|
425
|
-
|
|
426
|
-
default:
|
|
427
|
-
l[47] || (l[47] =
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
425
|
+
o(X, { disabled: !0 }, {
|
|
426
|
+
default: v(() => [
|
|
427
|
+
l[47] || (l[47] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
428
|
+
n("div", Pe, [
|
|
429
|
+
n("div", qe, [
|
|
430
|
+
o(y, {
|
|
431
431
|
modelValue: e(s).picName,
|
|
432
432
|
"onUpdate:modelValue": l[9] || (l[9] = (t) => e(s).picName = t),
|
|
433
433
|
label: "PIC Name",
|
|
@@ -436,8 +436,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
436
436
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
437
437
|
}, null, 8, ["modelValue", "rules"])
|
|
438
438
|
]),
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
n("div", we, [
|
|
440
|
+
o(y, {
|
|
441
441
|
modelValue: e(s).picRole,
|
|
442
442
|
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(s).picRole = t),
|
|
443
443
|
label: "PIC Role",
|
|
@@ -446,8 +446,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
446
446
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
447
447
|
}, null, 8, ["modelValue", "rules"])
|
|
448
448
|
]),
|
|
449
|
-
|
|
450
|
-
|
|
449
|
+
n("div", Fe, [
|
|
450
|
+
o(y, {
|
|
451
451
|
modelValue: e(s).picEmail,
|
|
452
452
|
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(s).picEmail = t),
|
|
453
453
|
label: "PIC Email",
|
|
@@ -457,8 +457,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
457
457
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
458
458
|
}, null, 8, ["modelValue", "rules"])
|
|
459
459
|
]),
|
|
460
|
-
|
|
461
|
-
|
|
460
|
+
n("div", Ie, [
|
|
461
|
+
o(g, {
|
|
462
462
|
"model-value": e(s).picContact,
|
|
463
463
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(s).picContact = t),
|
|
464
464
|
"default-country": "MY",
|
|
@@ -467,8 +467,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
467
467
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
468
468
|
}, null, 8, ["model-value", "rules"])
|
|
469
469
|
]),
|
|
470
|
-
|
|
471
|
-
|
|
470
|
+
n("div", Ue, [
|
|
471
|
+
o(y, {
|
|
472
472
|
modelValue: e(s).outletName,
|
|
473
473
|
"onUpdate:modelValue": l[13] || (l[13] = (t) => e(s).outletName = t),
|
|
474
474
|
label: "Outlet Name",
|
|
@@ -477,8 +477,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
477
477
|
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
|
478
478
|
}, null, 8, ["modelValue", "rules"])
|
|
479
479
|
]),
|
|
480
|
-
|
|
481
|
-
|
|
480
|
+
n("div", Re, [
|
|
481
|
+
o(y, {
|
|
482
482
|
modelValue: e(s).outletAddress,
|
|
483
483
|
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(s).outletAddress = t),
|
|
484
484
|
label: "Outlet Address",
|
|
@@ -487,7 +487,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
487
487
|
rules: e(u)(e(d).string().min(1, "Address is required"))
|
|
488
488
|
}, null, 8, ["modelValue", "rules"])
|
|
489
489
|
]),
|
|
490
|
-
|
|
490
|
+
o(y, {
|
|
491
491
|
modelValue: e(s).outletPostCode,
|
|
492
492
|
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(s).outletPostCode = t),
|
|
493
493
|
label: "Postal Code",
|
|
@@ -495,7 +495,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
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
|
-
|
|
498
|
+
o(y, {
|
|
499
499
|
modelValue: e(s).outletState,
|
|
500
500
|
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(s).outletState = t),
|
|
501
501
|
label: "State",
|
|
@@ -503,7 +503,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
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
|
-
|
|
506
|
+
o(y, {
|
|
507
507
|
modelValue: e(s).outletCity,
|
|
508
508
|
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(s).outletCity = t),
|
|
509
509
|
label: "City",
|
|
@@ -511,8 +511,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
511
511
|
"label-mark": "required",
|
|
512
512
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
513
513
|
}, null, 8, ["modelValue", "rules"]),
|
|
514
|
-
|
|
515
|
-
|
|
514
|
+
n("div", xe, [
|
|
515
|
+
o(M, {
|
|
516
516
|
modelValue: e(s).businessType,
|
|
517
517
|
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(s).businessType = t),
|
|
518
518
|
label: "Type",
|
|
@@ -533,8 +533,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
533
533
|
]
|
|
534
534
|
}, null, 8, ["modelValue", "rules"])
|
|
535
535
|
]),
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
n("div", Be, [
|
|
537
|
+
o(y, {
|
|
538
538
|
modelValue: e(s).businessRegNo,
|
|
539
539
|
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(s).businessRegNo = t),
|
|
540
540
|
label: "Registration No",
|
|
@@ -543,8 +543,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
543
543
|
rules: e(u)(e(d).string().min(1, "Reg No is required"))
|
|
544
544
|
}, null, 8, ["modelValue", "rules"])
|
|
545
545
|
]),
|
|
546
|
-
|
|
547
|
-
|
|
546
|
+
n("div", Ee, [
|
|
547
|
+
o(y, {
|
|
548
548
|
modelValue: e(s).tinNo,
|
|
549
549
|
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(s).tinNo = t),
|
|
550
550
|
label: "Tax Identification No (TIN)",
|
|
@@ -553,8 +553,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
553
553
|
rules: e(u)(e(d).string().min(1, "TIN is required"))
|
|
554
554
|
}, null, 8, ["modelValue", "rules"])
|
|
555
555
|
]),
|
|
556
|
-
|
|
557
|
-
|
|
556
|
+
n("div", Te, [
|
|
557
|
+
o(y, {
|
|
558
558
|
modelValue: e(s).sstNo,
|
|
559
559
|
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(s).sstNo = t),
|
|
560
560
|
label: "SST Registration No (SST)",
|
|
@@ -563,18 +563,18 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
563
563
|
}, null, 8, ["modelValue"])
|
|
564
564
|
])
|
|
565
565
|
]),
|
|
566
|
-
l[48] || (l[48] =
|
|
567
|
-
|
|
568
|
-
|
|
566
|
+
l[48] || (l[48] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
|
|
567
|
+
n("div", je, [
|
|
568
|
+
o(M, {
|
|
569
569
|
modelValue: e(s).bankName,
|
|
570
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(ie).bankNameOptions()
|
|
576
576
|
}, null, 8, ["modelValue", "rules", "items"]),
|
|
577
|
-
|
|
577
|
+
o(y, {
|
|
578
578
|
modelValue: e(s).bankHolderName,
|
|
579
579
|
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(s).bankHolderName = t),
|
|
580
580
|
label: "Beneficiary Name",
|
|
@@ -582,7 +582,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
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
|
-
|
|
585
|
+
o(y, {
|
|
586
586
|
modelValue: e(s).bankAccountNo,
|
|
587
587
|
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(s).bankAccountNo = t),
|
|
588
588
|
label: "Account Number",
|
|
@@ -590,35 +590,35 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
590
590
|
"label-mark": "required",
|
|
591
591
|
rules: e(u)(e(d).string().min(1, "Account Number is required"))
|
|
592
592
|
}, null, 8, ["modelValue", "rules"]),
|
|
593
|
-
|
|
593
|
+
o(w, {
|
|
594
594
|
label: "Authorized Person ID",
|
|
595
595
|
modelValue: e(i).authorizedPersonID,
|
|
596
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
|
-
|
|
600
|
+
o(w, {
|
|
601
601
|
label: "Outlet Photo",
|
|
602
602
|
modelValue: e(i).outletPhoto,
|
|
603
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
|
-
|
|
607
|
+
o(w, {
|
|
608
608
|
label: "Interior Photo",
|
|
609
609
|
modelValue: e(i).interiorPhoto,
|
|
610
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
|
-
|
|
614
|
+
o(w, {
|
|
615
615
|
label: "Latest Bank Statement",
|
|
616
616
|
modelValue: e(i).bankStatement,
|
|
617
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" ? (f(),
|
|
621
|
+
e(s).businessType === "private_limited" || e(s).businessType === "public_limited" ? (f(), j(w, {
|
|
622
622
|
key: 0,
|
|
623
623
|
label: "Superform",
|
|
624
624
|
type: "pdf",
|
|
@@ -626,7 +626,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
626
626
|
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(i).certificate = t),
|
|
627
627
|
"restaurant-id": p.submission.restaurantId
|
|
628
628
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
629
|
-
e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (f(),
|
|
629
|
+
e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (f(), j(w, {
|
|
630
630
|
key: 1,
|
|
631
631
|
label: "SSM Certificate & Info",
|
|
632
632
|
type: "pdf",
|
|
@@ -635,15 +635,15 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
635
635
|
"restaurant-id": p.submission.restaurantId
|
|
636
636
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
|
|
637
637
|
]),
|
|
638
|
-
l[49] || (l[49] =
|
|
639
|
-
|
|
640
|
-
|
|
638
|
+
l[49] || (l[49] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
639
|
+
n("div", De, [
|
|
640
|
+
o(ce, {
|
|
641
641
|
modelValue: e(i).signature,
|
|
642
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
|
-
|
|
646
|
+
o(w, {
|
|
647
647
|
label: "Company Stamp",
|
|
648
648
|
type: "image",
|
|
649
649
|
modelValue: e(i).companyStamp,
|
|
@@ -657,7 +657,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
657
657
|
], 64);
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), Ae = { class: "space-y-2" }, Oe = { class: "text-gray-900" }, Le = { class: "text-gray-900" }, ze = { class: "text-gray-900" }, Me = { class: "text-gray-900" }, He = { class: "text-gray-900" }, We = { class: "text-gray-900" }, Je = { class: "mt-6 grid grid-cols-4 gap-24" }, Qe = { class: "w-full flex justify-end mt-6" }, Ge = { class: "mt-6 grid grid-cols-4 gap-24" }, Ke = { class: "col-span-2" }, Ye = { class: "col-span-2" }, Xe = { class: "col-span-2" }, Ze = { class: "col-span-2" }, he = { class: "mt-6 grid grid-cols-4 gap-24" }, _e = { class: "mt-6 grid grid-cols-4 gap-24" }, el = { class: "mt-6 grid grid-cols-4 gap-24" }, ll = { class: "col-span-2" }, al = { class: "col-span-2" }, tl = { class: "col-span-2" }, sl = { class: "col-span-2" }, nl = { class: "col-span-2" }, ol = { class: "col-span-2" }, rl = /* @__PURE__ */ G({
|
|
661
661
|
__name: "NTTSubmission",
|
|
662
662
|
props: {
|
|
663
663
|
submission: {
|
|
@@ -667,7 +667,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
667
667
|
},
|
|
668
668
|
emits: ["update:submission"],
|
|
669
669
|
setup(p, { emit: A }) {
|
|
670
|
-
const S = p, P = A,
|
|
670
|
+
const S = p, P = A, k = h(), F = E(!1), { isLoading: c, startAsyncCall: I } = Z(), { fields: s, documents: i, restaurantId: U, profile: b, status: C, statusReason: D } = S.submission, N = E(""), m = [
|
|
671
671
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
672
672
|
{
|
|
673
673
|
key: "localCardStandard",
|
|
@@ -700,163 +700,192 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
700
700
|
{ key: "linePay", label: "LinePay", defaultValue: "2.1" },
|
|
701
701
|
{ key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
|
|
702
702
|
], B = Object.fromEntries(
|
|
703
|
-
m.map((
|
|
704
|
-
),
|
|
703
|
+
m.map((V) => [V.key, V.defaultValue])
|
|
704
|
+
), T = E(
|
|
705
705
|
S.submission.rates ? Object.fromEntries(
|
|
706
|
-
Object.entries(S.submission.rates).map(([
|
|
706
|
+
Object.entries(S.submission.rates).map(([V, a]) => [V, `${a}`])
|
|
707
707
|
) : { ...B }
|
|
708
|
-
), Y =
|
|
709
|
-
() => Object.values(
|
|
710
|
-
),
|
|
708
|
+
), Y = Q(
|
|
709
|
+
() => Object.values(T.value).every((V) => parseFloat(V) > 0)
|
|
710
|
+
), R = Q(() => s.businessType === "juristic" ? "Juristic" : s.businessType === "individual" ? "Individual" : s.businessType || "-"), l = () => I(async () => {
|
|
711
711
|
try {
|
|
712
|
-
const
|
|
712
|
+
const V = await z.reviewById(
|
|
713
|
+
S.submission._id,
|
|
714
|
+
{
|
|
715
|
+
status: oe.FdoOnboardStatus.enum.ready
|
|
716
|
+
}
|
|
717
|
+
);
|
|
718
|
+
P("update:submission", V), k.open({
|
|
719
|
+
type: "success",
|
|
720
|
+
title: "Submission marked as ready"
|
|
721
|
+
});
|
|
722
|
+
} catch (V) {
|
|
723
|
+
k.open({
|
|
724
|
+
type: "error",
|
|
725
|
+
title: "Error occurs when marking submission as ready",
|
|
726
|
+
message: H(V)
|
|
727
|
+
});
|
|
728
|
+
}
|
|
729
|
+
}), y = () => I(async () => {
|
|
730
|
+
try {
|
|
731
|
+
const V = await z.reviewById(
|
|
713
732
|
S.submission._id,
|
|
714
733
|
{
|
|
715
734
|
rates: Object.fromEntries(
|
|
716
735
|
m.map((a) => [
|
|
717
736
|
a.key,
|
|
718
|
-
parseFloat(
|
|
737
|
+
parseFloat(T.value[a.key])
|
|
719
738
|
])
|
|
720
739
|
),
|
|
721
740
|
status: "approved"
|
|
722
741
|
}
|
|
723
742
|
);
|
|
724
|
-
P("update:submission",
|
|
743
|
+
P("update:submission", V), k.open({
|
|
725
744
|
type: "success",
|
|
726
745
|
title: "Submission updated successfully"
|
|
727
746
|
});
|
|
728
|
-
} catch (
|
|
729
|
-
|
|
747
|
+
} catch (V) {
|
|
748
|
+
k.open({
|
|
730
749
|
type: "error",
|
|
731
750
|
title: "Error occurs when updating submission",
|
|
732
|
-
message: H(
|
|
751
|
+
message: H(V)
|
|
733
752
|
});
|
|
734
753
|
}
|
|
735
|
-
}),
|
|
754
|
+
}), W = () => I(async () => {
|
|
736
755
|
try {
|
|
737
|
-
const
|
|
756
|
+
const V = await z.reviewById(
|
|
738
757
|
S.submission._id,
|
|
739
758
|
{
|
|
740
759
|
status: "rejected",
|
|
741
|
-
statusReason:
|
|
760
|
+
statusReason: N.value
|
|
742
761
|
}
|
|
743
762
|
);
|
|
744
|
-
P("update:submission",
|
|
763
|
+
P("update:submission", V), F.value = !1, k.open({
|
|
745
764
|
type: "success",
|
|
746
765
|
title: "Submission updated successfully"
|
|
747
766
|
});
|
|
748
|
-
} catch (
|
|
749
|
-
|
|
767
|
+
} catch (V) {
|
|
768
|
+
k.open({
|
|
750
769
|
type: "error",
|
|
751
770
|
title: "Error occurs when updating submission",
|
|
752
|
-
message: H(
|
|
771
|
+
message: H(V)
|
|
753
772
|
});
|
|
754
773
|
}
|
|
755
774
|
});
|
|
756
|
-
return (
|
|
757
|
-
const
|
|
775
|
+
return (V, a) => {
|
|
776
|
+
const g = q("FmTextField"), M = q("FmButton"), X = q("FmTextarea"), t = q("FmDialog"), le = q("FmPhoneNumber"), ae = q("FmForm");
|
|
758
777
|
return f(), O(K, null, [
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
a[31] || (a[31] =
|
|
762
|
-
|
|
778
|
+
n("div", Ae, [
|
|
779
|
+
n("div", null, [
|
|
780
|
+
a[31] || (a[31] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
781
|
+
n("span", Oe, x(e(U)), 1)
|
|
763
782
|
]),
|
|
764
|
-
|
|
765
|
-
a[32] || (a[32] =
|
|
766
|
-
|
|
783
|
+
n("div", null, [
|
|
784
|
+
a[32] || (a[32] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
785
|
+
n("span", Le, x(e(b).name) + " ( " + x(e(b).legalName) + " )", 1)
|
|
767
786
|
]),
|
|
768
|
-
|
|
769
|
-
a[33] || (a[33] =
|
|
770
|
-
|
|
787
|
+
n("div", null, [
|
|
788
|
+
a[33] || (a[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
789
|
+
n("span", ze, x(e(b).email), 1)
|
|
771
790
|
]),
|
|
772
|
-
|
|
773
|
-
a[34] || (a[34] =
|
|
774
|
-
|
|
791
|
+
n("div", null, [
|
|
792
|
+
a[34] || (a[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
793
|
+
n("span", Me, x(e(b).phoneNo), 1)
|
|
775
794
|
]),
|
|
776
|
-
|
|
777
|
-
a[35] || (a[35] =
|
|
778
|
-
|
|
779
|
-
|
|
795
|
+
n("div", null, [
|
|
796
|
+
a[35] || (a[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
797
|
+
n("span", He, [
|
|
798
|
+
o(ee, { data: e(C) }, null, 8, ["data"])
|
|
780
799
|
])
|
|
781
800
|
]),
|
|
782
|
-
|
|
783
|
-
a[36] || (a[36] =
|
|
784
|
-
|
|
801
|
+
n("div", null, [
|
|
802
|
+
a[36] || (a[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
803
|
+
n("span", We, x(e(D)), 1)
|
|
785
804
|
])
|
|
786
805
|
]),
|
|
787
|
-
a[43] || (a[43] =
|
|
788
|
-
|
|
789
|
-
(f(), O(K, null,
|
|
806
|
+
a[43] || (a[43] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
807
|
+
n("div", Je, [
|
|
808
|
+
(f(), O(K, null, te(m, (r) => o(g, {
|
|
790
809
|
key: r.key,
|
|
791
|
-
modelValue:
|
|
792
|
-
"onUpdate:modelValue": (
|
|
810
|
+
modelValue: T.value[r.key],
|
|
811
|
+
"onUpdate:modelValue": (J) => T.value[r.key] = J,
|
|
793
812
|
label: r.label,
|
|
794
813
|
"label-mark": "required",
|
|
795
814
|
type: "number",
|
|
796
815
|
inputmode: "numeric",
|
|
797
816
|
decimal: 2,
|
|
798
817
|
rules: e(u)(
|
|
799
|
-
e(d).string().min(1, "Rate is required").transform((
|
|
818
|
+
e(d).string().min(1, "Rate is required").transform((J) => parseFloat(J)).refine((J) => !isNaN(J), { message: "Rate must be a number" })
|
|
800
819
|
)
|
|
801
820
|
}, {
|
|
802
|
-
append:
|
|
821
|
+
append: v(() => [...a[37] || (a[37] = [
|
|
803
822
|
L("%", -1)
|
|
804
823
|
])]),
|
|
805
824
|
_: 1
|
|
806
825
|
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
807
826
|
]),
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
modelValue:
|
|
811
|
-
"onUpdate:modelValue": a[1] || (a[1] = (r) =>
|
|
827
|
+
n("div", Qe, [
|
|
828
|
+
o(t, {
|
|
829
|
+
modelValue: F.value,
|
|
830
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => F.value = r)
|
|
812
831
|
}, {
|
|
813
|
-
"dialog-button":
|
|
814
|
-
|
|
832
|
+
"dialog-button": v(() => [
|
|
833
|
+
o(M, {
|
|
815
834
|
class: "mr-6",
|
|
816
835
|
type: "button",
|
|
817
836
|
variant: "destructive",
|
|
818
837
|
"prepend-icon": "block",
|
|
819
|
-
loading: e(
|
|
838
|
+
loading: e(c),
|
|
820
839
|
label: "Reject Submission"
|
|
821
840
|
}, null, 8, ["loading"])
|
|
822
841
|
]),
|
|
823
|
-
"dialog-header":
|
|
824
|
-
|
|
842
|
+
"dialog-header": v(() => [...a[38] || (a[38] = [
|
|
843
|
+
n("div", null, "Rejecting Submission", -1)
|
|
825
844
|
])]),
|
|
826
|
-
default:
|
|
827
|
-
|
|
828
|
-
modelValue:
|
|
829
|
-
"onUpdate:modelValue": a[0] || (a[0] = (r) =>
|
|
845
|
+
default: v(() => [
|
|
846
|
+
o(X, {
|
|
847
|
+
modelValue: N.value,
|
|
848
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => N.value = r),
|
|
830
849
|
label: "Reason for Rejection",
|
|
831
850
|
"label-mark": "optional",
|
|
832
851
|
"helper-text": "Please provide a reason for rejection."
|
|
833
852
|
}, null, 8, ["modelValue"]),
|
|
834
|
-
|
|
853
|
+
o(M, {
|
|
835
854
|
class: "mb-2 mt-6 w-full",
|
|
836
855
|
label: "Submit",
|
|
837
856
|
"prepend-icon": "save",
|
|
838
|
-
onClick:
|
|
839
|
-
loading: e(
|
|
857
|
+
onClick: W,
|
|
858
|
+
loading: e(c)
|
|
840
859
|
}, null, 8, ["loading"])
|
|
841
860
|
]),
|
|
842
861
|
_: 1
|
|
843
862
|
}, 8, ["modelValue"]),
|
|
844
|
-
|
|
863
|
+
o(M, {
|
|
845
864
|
type: "button",
|
|
846
865
|
variant: "primary",
|
|
847
866
|
"prepend-icon": "approval",
|
|
848
867
|
label: "Approve Submission with Rates",
|
|
849
868
|
disabled: !Y.value,
|
|
869
|
+
onClick: y,
|
|
870
|
+
loading: e(c)
|
|
871
|
+
}, null, 8, ["disabled", "loading"]),
|
|
872
|
+
e(C) === "approved" ? (f(), j(M, {
|
|
873
|
+
key: 0,
|
|
874
|
+
type: "button",
|
|
875
|
+
variant: "secondary",
|
|
876
|
+
"prepend-icon": "check_circle",
|
|
877
|
+
label: "Mark as Ready",
|
|
878
|
+
class: "ml-6",
|
|
850
879
|
onClick: l,
|
|
851
|
-
loading: e(
|
|
852
|
-
}, null, 8, ["
|
|
880
|
+
loading: e(c)
|
|
881
|
+
}, null, 8, ["loading"])) : $("", !0)
|
|
853
882
|
]),
|
|
854
|
-
|
|
855
|
-
default:
|
|
856
|
-
a[39] || (a[39] =
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
883
|
+
o(ae, { disabled: !0 }, {
|
|
884
|
+
default: v(() => [
|
|
885
|
+
a[39] || (a[39] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
886
|
+
n("div", Ge, [
|
|
887
|
+
n("div", Ke, [
|
|
888
|
+
o(g, {
|
|
860
889
|
modelValue: e(s).companyName,
|
|
861
890
|
"onUpdate:modelValue": a[2] || (a[2] = (r) => e(s).companyName = r),
|
|
862
891
|
label: "Company Name",
|
|
@@ -864,8 +893,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
864
893
|
rules: e(u)(e(d).string().min(1, "Company Name is required"))
|
|
865
894
|
}, null, 8, ["modelValue", "rules"])
|
|
866
895
|
]),
|
|
867
|
-
|
|
868
|
-
|
|
896
|
+
n("div", Ye, [
|
|
897
|
+
o(g, {
|
|
869
898
|
modelValue: e(s).outletName,
|
|
870
899
|
"onUpdate:modelValue": a[3] || (a[3] = (r) => e(s).outletName = r),
|
|
871
900
|
label: "Outlet Name (Thai)",
|
|
@@ -873,8 +902,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
873
902
|
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
|
874
903
|
}, null, 8, ["modelValue", "rules"])
|
|
875
904
|
]),
|
|
876
|
-
|
|
877
|
-
|
|
905
|
+
n("div", Xe, [
|
|
906
|
+
o(g, {
|
|
878
907
|
modelValue: e(s).outletNameEnglish,
|
|
879
908
|
"onUpdate:modelValue": a[4] || (a[4] = (r) => e(s).outletNameEnglish = r),
|
|
880
909
|
label: "Outlet Name (English)",
|
|
@@ -882,8 +911,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
882
911
|
rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
|
|
883
912
|
}, null, 8, ["modelValue", "rules"])
|
|
884
913
|
]),
|
|
885
|
-
|
|
886
|
-
|
|
914
|
+
n("div", Ze, [
|
|
915
|
+
o(g, {
|
|
887
916
|
modelValue: e(s).outletAddress,
|
|
888
917
|
"onUpdate:modelValue": a[5] || (a[5] = (r) => e(s).outletAddress = r),
|
|
889
918
|
label: "Outlet Address",
|
|
@@ -891,70 +920,70 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
891
920
|
rules: e(u)(e(d).string().min(1, "Outlet Address is required"))
|
|
892
921
|
}, null, 8, ["modelValue", "rules"])
|
|
893
922
|
]),
|
|
894
|
-
|
|
923
|
+
o(g, {
|
|
895
924
|
modelValue: e(s).outletPostCode,
|
|
896
925
|
"onUpdate:modelValue": a[6] || (a[6] = (r) => e(s).outletPostCode = r),
|
|
897
926
|
label: "Post Code",
|
|
898
927
|
"label-mark": "required",
|
|
899
928
|
rules: e(u)(e(d).string().min(1, "Post Code is required"))
|
|
900
929
|
}, null, 8, ["modelValue", "rules"]),
|
|
901
|
-
|
|
930
|
+
o(g, {
|
|
902
931
|
modelValue: e(s).outletState,
|
|
903
932
|
"onUpdate:modelValue": a[7] || (a[7] = (r) => e(s).outletState = r),
|
|
904
933
|
label: "State",
|
|
905
934
|
"label-mark": "required",
|
|
906
935
|
rules: e(u)(e(d).string().min(1, "State is required"))
|
|
907
936
|
}, null, 8, ["modelValue", "rules"]),
|
|
908
|
-
|
|
937
|
+
o(g, {
|
|
909
938
|
modelValue: e(s).outletCity,
|
|
910
939
|
"onUpdate:modelValue": a[8] || (a[8] = (r) => e(s).outletCity = r),
|
|
911
940
|
label: "City",
|
|
912
941
|
"label-mark": "required",
|
|
913
942
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
914
943
|
}, null, 8, ["modelValue", "rules"]),
|
|
915
|
-
|
|
916
|
-
"model-value":
|
|
944
|
+
o(g, {
|
|
945
|
+
"model-value": R.value,
|
|
917
946
|
label: "Business Type",
|
|
918
947
|
"label-mark": "required"
|
|
919
948
|
}, null, 8, ["model-value"]),
|
|
920
|
-
|
|
949
|
+
o(g, {
|
|
921
950
|
modelValue: e(s).numberOfDevices,
|
|
922
951
|
"onUpdate:modelValue": a[9] || (a[9] = (r) => e(s).numberOfDevices = r),
|
|
923
952
|
label: "Number of Devices",
|
|
924
953
|
"label-mark": "required"
|
|
925
954
|
}, null, 8, ["modelValue"])
|
|
926
955
|
]),
|
|
927
|
-
a[40] || (a[40] =
|
|
928
|
-
|
|
929
|
-
|
|
956
|
+
a[40] || (a[40] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
957
|
+
n("div", he, [
|
|
958
|
+
o(g, {
|
|
930
959
|
modelValue: e(s).bankName,
|
|
931
960
|
"onUpdate:modelValue": a[10] || (a[10] = (r) => e(s).bankName = r),
|
|
932
961
|
label: "Bank Name",
|
|
933
962
|
"label-mark": "required",
|
|
934
963
|
rules: e(u)(e(d).string().min(1, "Bank Name is required"))
|
|
935
964
|
}, null, 8, ["modelValue", "rules"]),
|
|
936
|
-
|
|
965
|
+
o(g, {
|
|
937
966
|
modelValue: e(s).bankHolderName,
|
|
938
967
|
"onUpdate:modelValue": a[11] || (a[11] = (r) => e(s).bankHolderName = r),
|
|
939
968
|
label: "Bank Holder Name",
|
|
940
969
|
"label-mark": "required",
|
|
941
970
|
rules: e(u)(e(d).string().min(1, "Bank Holder Name is required"))
|
|
942
971
|
}, null, 8, ["modelValue", "rules"]),
|
|
943
|
-
|
|
972
|
+
o(g, {
|
|
944
973
|
modelValue: e(s).bankAccountNo,
|
|
945
974
|
"onUpdate:modelValue": a[12] || (a[12] = (r) => e(s).bankAccountNo = r),
|
|
946
975
|
label: "Bank Account No",
|
|
947
976
|
"label-mark": "required",
|
|
948
977
|
rules: e(u)(e(d).string().min(1, "Bank Account No is required"))
|
|
949
978
|
}, null, 8, ["modelValue", "rules"]),
|
|
950
|
-
|
|
979
|
+
o(g, {
|
|
951
980
|
modelValue: e(s).bankBranch,
|
|
952
981
|
"onUpdate:modelValue": a[13] || (a[13] = (r) => e(s).bankBranch = r),
|
|
953
982
|
label: "Bank Branch",
|
|
954
983
|
"label-mark": "required",
|
|
955
984
|
rules: e(u)(e(d).string().min(1, "Bank Branch is required"))
|
|
956
985
|
}, null, 8, ["modelValue", "rules"]),
|
|
957
|
-
|
|
986
|
+
o(g, {
|
|
958
987
|
modelValue: e(s).bankBranchCode,
|
|
959
988
|
"onUpdate:modelValue": a[14] || (a[14] = (r) => e(s).bankBranchCode = r),
|
|
960
989
|
label: "Bank Branch Code",
|
|
@@ -962,37 +991,37 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
962
991
|
rules: e(u)(e(d).string().min(1, "Bank Branch Code is required"))
|
|
963
992
|
}, null, 8, ["modelValue", "rules"])
|
|
964
993
|
]),
|
|
965
|
-
a[41] || (a[41] =
|
|
966
|
-
|
|
967
|
-
|
|
994
|
+
a[41] || (a[41] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
995
|
+
n("div", _e, [
|
|
996
|
+
o(w, {
|
|
968
997
|
label: "Authorized Person ID",
|
|
969
998
|
modelValue: e(i).authorizedPersonID,
|
|
970
999
|
"onUpdate:modelValue": a[15] || (a[15] = (r) => e(i).authorizedPersonID = r),
|
|
971
1000
|
type: "image",
|
|
972
1001
|
"restaurant-id": p.submission.restaurantId
|
|
973
1002
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
974
|
-
|
|
1003
|
+
o(w, {
|
|
975
1004
|
label: "Outlet Photo",
|
|
976
1005
|
modelValue: e(i).outletPhoto,
|
|
977
1006
|
"onUpdate:modelValue": a[16] || (a[16] = (r) => e(i).outletPhoto = r),
|
|
978
1007
|
type: "image",
|
|
979
1008
|
"restaurant-id": p.submission.restaurantId
|
|
980
1009
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
981
|
-
|
|
1010
|
+
o(w, {
|
|
982
1011
|
label: "Interior Photo",
|
|
983
1012
|
modelValue: e(i).interiorPhoto,
|
|
984
1013
|
"onUpdate:modelValue": a[17] || (a[17] = (r) => e(i).interiorPhoto = r),
|
|
985
1014
|
type: "image",
|
|
986
1015
|
"restaurant-id": p.submission.restaurantId
|
|
987
1016
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
988
|
-
|
|
1017
|
+
o(w, {
|
|
989
1018
|
label: "Bank Statement",
|
|
990
1019
|
modelValue: e(i).bankStatement,
|
|
991
1020
|
"onUpdate:modelValue": a[18] || (a[18] = (r) => e(i).bankStatement = r),
|
|
992
1021
|
type: "pdf",
|
|
993
1022
|
"restaurant-id": p.submission.restaurantId
|
|
994
1023
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
995
|
-
e(s).businessType === "juristic" ? (f(),
|
|
1024
|
+
e(s).businessType === "juristic" ? (f(), j(w, {
|
|
996
1025
|
key: 0,
|
|
997
1026
|
label: "Company Certificate",
|
|
998
1027
|
type: "pdf",
|
|
@@ -1000,7 +1029,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1000
1029
|
"onUpdate:modelValue": a[19] || (a[19] = (r) => e(i).companyCertificate = r),
|
|
1001
1030
|
"restaurant-id": p.submission.restaurantId
|
|
1002
1031
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1003
|
-
e(s).businessType === "juristic" ? (f(),
|
|
1032
|
+
e(s).businessType === "juristic" ? (f(), j(w, {
|
|
1004
1033
|
key: 1,
|
|
1005
1034
|
label: "VAT Certificate",
|
|
1006
1035
|
type: "pdf",
|
|
@@ -1008,7 +1037,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1008
1037
|
"onUpdate:modelValue": a[20] || (a[20] = (r) => e(i).vatCertificate = r),
|
|
1009
1038
|
"restaurant-id": p.submission.restaurantId
|
|
1010
1039
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1011
|
-
e(s).businessType === "individual" ? (f(),
|
|
1040
|
+
e(s).businessType === "individual" ? (f(), j(w, {
|
|
1012
1041
|
key: 2,
|
|
1013
1042
|
label: "Commercial Certificate",
|
|
1014
1043
|
type: "pdf",
|
|
@@ -1017,10 +1046,10 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1017
1046
|
"restaurant-id": p.submission.restaurantId
|
|
1018
1047
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
|
|
1019
1048
|
]),
|
|
1020
|
-
a[42] || (a[42] =
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1049
|
+
a[42] || (a[42] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1050
|
+
n("div", el, [
|
|
1051
|
+
n("div", ll, [
|
|
1052
|
+
o(g, {
|
|
1024
1053
|
modelValue: e(s).picName,
|
|
1025
1054
|
"onUpdate:modelValue": a[22] || (a[22] = (r) => e(s).picName = r),
|
|
1026
1055
|
label: "PIC Name",
|
|
@@ -1028,8 +1057,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1028
1057
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
1029
1058
|
}, null, 8, ["modelValue", "rules"])
|
|
1030
1059
|
]),
|
|
1031
|
-
|
|
1032
|
-
|
|
1060
|
+
n("div", al, [
|
|
1061
|
+
o(g, {
|
|
1033
1062
|
modelValue: e(s).picRole,
|
|
1034
1063
|
"onUpdate:modelValue": a[23] || (a[23] = (r) => e(s).picRole = r),
|
|
1035
1064
|
label: "PIC Role",
|
|
@@ -1037,8 +1066,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1037
1066
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
1038
1067
|
}, null, 8, ["modelValue", "rules"])
|
|
1039
1068
|
]),
|
|
1040
|
-
|
|
1041
|
-
|
|
1069
|
+
n("div", tl, [
|
|
1070
|
+
o(g, {
|
|
1042
1071
|
modelValue: e(s).picEmail,
|
|
1043
1072
|
"onUpdate:modelValue": a[24] || (a[24] = (r) => e(s).picEmail = r),
|
|
1044
1073
|
label: "PIC Email",
|
|
@@ -1046,8 +1075,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1046
1075
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
1047
1076
|
}, null, 8, ["modelValue", "rules"])
|
|
1048
1077
|
]),
|
|
1049
|
-
|
|
1050
|
-
|
|
1078
|
+
n("div", sl, [
|
|
1079
|
+
o(le, {
|
|
1051
1080
|
"model-value": e(s).picContact,
|
|
1052
1081
|
"onUpdate:modelValue": a[25] || (a[25] = (r) => e(s).picContact = r),
|
|
1053
1082
|
"default-country": "TH",
|
|
@@ -1056,8 +1085,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1056
1085
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
1057
1086
|
}, null, 8, ["model-value", "rules"])
|
|
1058
1087
|
]),
|
|
1059
|
-
|
|
1060
|
-
|
|
1088
|
+
n("div", nl, [
|
|
1089
|
+
o(g, {
|
|
1061
1090
|
modelValue: e(s).witnessName,
|
|
1062
1091
|
"onUpdate:modelValue": a[26] || (a[26] = (r) => e(s).witnessName = r),
|
|
1063
1092
|
label: "Witness Name",
|
|
@@ -1065,8 +1094,8 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1065
1094
|
rules: e(u)(e(d).string().min(1, "Witness Name is required"))
|
|
1066
1095
|
}, null, 8, ["modelValue", "rules"])
|
|
1067
1096
|
]),
|
|
1068
|
-
|
|
1069
|
-
|
|
1097
|
+
n("div", ol, [
|
|
1098
|
+
o(g, {
|
|
1070
1099
|
modelValue: e(s).witnessRole,
|
|
1071
1100
|
"onUpdate:modelValue": a[27] || (a[27] = (r) => e(s).witnessRole = r),
|
|
1072
1101
|
label: "Witness Role",
|
|
@@ -1074,21 +1103,21 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1074
1103
|
rules: e(u)(e(d).string().min(1, "Witness Role is required"))
|
|
1075
1104
|
}, null, 8, ["modelValue", "rules"])
|
|
1076
1105
|
]),
|
|
1077
|
-
|
|
1106
|
+
o(w, {
|
|
1078
1107
|
label: "Signature",
|
|
1079
1108
|
type: "image",
|
|
1080
1109
|
modelValue: e(i).signature,
|
|
1081
1110
|
"onUpdate:modelValue": a[28] || (a[28] = (r) => e(i).signature = r),
|
|
1082
1111
|
"restaurant-id": p.submission.restaurantId
|
|
1083
1112
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1084
|
-
|
|
1113
|
+
o(w, {
|
|
1085
1114
|
label: "Witness Signature",
|
|
1086
1115
|
type: "image",
|
|
1087
1116
|
modelValue: e(i).witnessSignature,
|
|
1088
1117
|
"onUpdate:modelValue": a[29] || (a[29] = (r) => e(i).witnessSignature = r),
|
|
1089
1118
|
"restaurant-id": p.submission.restaurantId
|
|
1090
1119
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1091
|
-
|
|
1120
|
+
o(w, {
|
|
1092
1121
|
label: "Company Stamp",
|
|
1093
1122
|
type: "image",
|
|
1094
1123
|
modelValue: e(i).companyStamp,
|
|
@@ -1102,10 +1131,10 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1102
1131
|
], 64);
|
|
1103
1132
|
};
|
|
1104
1133
|
}
|
|
1105
|
-
}),
|
|
1134
|
+
}), il = {
|
|
1106
1135
|
key: 0,
|
|
1107
1136
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1108
|
-
},
|
|
1137
|
+
}, ul = { class: "px-32 pb-32" }, Cl = /* @__PURE__ */ G({
|
|
1109
1138
|
__name: "OnboardForm",
|
|
1110
1139
|
props: {
|
|
1111
1140
|
submissionId: {
|
|
@@ -1114,36 +1143,36 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1114
1143
|
}
|
|
1115
1144
|
},
|
|
1116
1145
|
setup(p) {
|
|
1117
|
-
const { startAsyncCall: A, isLoading: S } = Z(), P = h(),
|
|
1146
|
+
const { startAsyncCall: A, isLoading: S } = Z(), P = h(), k = p, F = re(), c = E(null), I = () => {
|
|
1118
1147
|
if (window.history.length > 1) {
|
|
1119
|
-
|
|
1148
|
+
F.back();
|
|
1120
1149
|
return;
|
|
1121
1150
|
}
|
|
1122
|
-
|
|
1151
|
+
F.push({ name: "mf-payment-admin.onboard-submission" });
|
|
1123
1152
|
};
|
|
1124
|
-
|
|
1153
|
+
se(() => {
|
|
1125
1154
|
A(async () => {
|
|
1126
|
-
|
|
1155
|
+
c.value = await z.readById(k.submissionId);
|
|
1127
1156
|
});
|
|
1128
1157
|
});
|
|
1129
|
-
const s =
|
|
1130
|
-
if (!
|
|
1131
|
-
switch (
|
|
1158
|
+
const s = Q(() => {
|
|
1159
|
+
if (!c.value) return null;
|
|
1160
|
+
switch (c.value.type) {
|
|
1132
1161
|
case "softspace":
|
|
1133
|
-
return
|
|
1162
|
+
return $e;
|
|
1134
1163
|
case "ntt":
|
|
1135
|
-
return
|
|
1164
|
+
return rl;
|
|
1136
1165
|
default:
|
|
1137
1166
|
return null;
|
|
1138
1167
|
}
|
|
1139
|
-
}), i =
|
|
1140
|
-
function
|
|
1141
|
-
|
|
1168
|
+
}), i = E(0);
|
|
1169
|
+
function U(C) {
|
|
1170
|
+
c.value = C, i.value = Date.now();
|
|
1142
1171
|
}
|
|
1143
|
-
const b = async (
|
|
1144
|
-
var
|
|
1145
|
-
if (
|
|
1146
|
-
switch (
|
|
1172
|
+
const b = async (C) => {
|
|
1173
|
+
var D, N;
|
|
1174
|
+
if (c.value)
|
|
1175
|
+
switch (C) {
|
|
1147
1176
|
case "preview":
|
|
1148
1177
|
let m;
|
|
1149
1178
|
try {
|
|
@@ -1151,7 +1180,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1151
1180
|
message: "Generating preview document...",
|
|
1152
1181
|
type: "info"
|
|
1153
1182
|
}), await z.previewDocument(
|
|
1154
|
-
(
|
|
1183
|
+
(D = c.value) == null ? void 0 : D._id
|
|
1155
1184
|
);
|
|
1156
1185
|
} catch (B) {
|
|
1157
1186
|
P.open({
|
|
@@ -1169,7 +1198,7 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1169
1198
|
message: "Sending onboarding document...",
|
|
1170
1199
|
type: "info"
|
|
1171
1200
|
}), await z.sendDocument(
|
|
1172
|
-
(
|
|
1201
|
+
(N = c.value) == null ? void 0 : N._id
|
|
1173
1202
|
), P.open({
|
|
1174
1203
|
type: "success",
|
|
1175
1204
|
title: "Submission documents send successfully"
|
|
@@ -1184,17 +1213,17 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1184
1213
|
break;
|
|
1185
1214
|
}
|
|
1186
1215
|
};
|
|
1187
|
-
return (
|
|
1188
|
-
var B,
|
|
1189
|
-
const
|
|
1190
|
-
return e(S) ? (f(), O("div",
|
|
1191
|
-
|
|
1216
|
+
return (C, D) => {
|
|
1217
|
+
var B, T;
|
|
1218
|
+
const N = q("FmCircularProgress"), m = q("FmPageHead");
|
|
1219
|
+
return e(S) ? (f(), O("div", il, [
|
|
1220
|
+
o(N, { size: "xxl" })
|
|
1192
1221
|
])) : (f(), O(K, { key: 1 }, [
|
|
1193
|
-
|
|
1194
|
-
title: `Submission - ${(B =
|
|
1195
|
-
description: `ID - ${(
|
|
1222
|
+
o(m, {
|
|
1223
|
+
title: `Submission - ${(B = c.value) == null ? void 0 : B.type}`,
|
|
1224
|
+
description: `ID - ${(T = c.value) == null ? void 0 : T._id}`,
|
|
1196
1225
|
"back-button": !0,
|
|
1197
|
-
"onClick:back":
|
|
1226
|
+
"onClick:back": I,
|
|
1198
1227
|
"onClick:action": b,
|
|
1199
1228
|
actions: [
|
|
1200
1229
|
{
|
|
@@ -1210,11 +1239,11 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1210
1239
|
}
|
|
1211
1240
|
]
|
|
1212
1241
|
}, null, 8, ["title", "description"]),
|
|
1213
|
-
|
|
1214
|
-
(f(),
|
|
1242
|
+
n("div", ul, [
|
|
1243
|
+
(f(), j(ne(s.value), {
|
|
1215
1244
|
key: i.value,
|
|
1216
|
-
submission:
|
|
1217
|
-
"onUpdate:submission":
|
|
1245
|
+
submission: c.value,
|
|
1246
|
+
"onUpdate:submission": U
|
|
1218
1247
|
}, null, 40, ["submission"]))
|
|
1219
1248
|
])
|
|
1220
1249
|
], 64));
|
|
@@ -1222,5 +1251,5 @@ const ie = ["src"], F = /* @__PURE__ */ Q({
|
|
|
1222
1251
|
}
|
|
1223
1252
|
});
|
|
1224
1253
|
export {
|
|
1225
|
-
|
|
1254
|
+
Cl as default
|
|
1226
1255
|
};
|