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