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