@feedmepos/mf-payment 1.5.7-dev → 1.5.10-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-Cwt13ALm.js → Actions.vue_vue_type_script_setup_true_lang-RxsoXGmj.js} +2 -2
- package/dist/{Chargeback-BdT_s3at.js → Chargeback-XvqkgLyP.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CTA026mA.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BOeGeY7m.js} +1 -1
- package/dist/OnboardForm-BQ3lT186.js +22258 -0
- package/dist/OnboardForm-DI76E48F.js +1158 -0
- package/dist/OnboardSubmission-BD3dlVhn.js +182 -0
- package/dist/{OnboardSubmission-DcFt464S.js → OnboardSubmission-Dsmx8jL-.js} +5 -5
- package/dist/{PayoutAccount-H6N30yNO.js → PayoutAccount--qg1uqvj.js} +5 -5
- package/dist/{PayoutAccount-Bfzuby3c.js → PayoutAccount-SSUIXAUy.js} +4 -4
- package/dist/{PayoutAccountSetting-BqpRTFyn.js → PayoutAccountSetting-C_sOEhxT.js} +4 -4
- package/dist/{Restaurant-DCycaRR7.js → Restaurant-DFj4DxUs.js} +4 -4
- package/dist/{RestaurantSetting-D6s1uPMz.js → RestaurantSetting-DtW3agNP.js} +3 -3
- package/dist/{Settlement-DHebMBfs.js → Settlement-Ba9VT3_G.js} +3 -3
- package/dist/{Settlement-DlplAJW2.js → Settlement-BfBhdISH.js} +3 -3
- package/dist/{SettlementTransactions-D1FZ4SvU.js → SettlementTransactions-B201cJ6d.js} +4 -4
- package/dist/{SettlementTransactions-BB3jFvdP.js → SettlementTransactions-VXPpphL-.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-BsbxaRKL.js → Status.vue_vue_type_script_setup_true_lang-D8XZZvTw.js} +1 -1
- package/dist/{Terminal-DOf20nIw.js → Terminal-CVwd5a9c.js} +5 -5
- package/dist/{TerminalSetting-fwdOkBMF.js → TerminalSetting-BP3ZVciy.js} +3 -3
- package/dist/{Transaction-DRc7VdWm.js → Transaction-BSqDZOyl.js} +9 -9
- package/dist/{Transaction-BojSMumb.js → Transaction-BohAwJv-.js} +6 -6
- package/dist/{TransactionOld-CVid_gM_.js → TransactionOld-8HS433e9.js} +6 -6
- package/dist/{app-BLwmgjLV.js → app-CJwEtlqV.js} +1468 -703
- package/dist/app.js +1 -1
- package/dist/{assets-BnwoyNOf.js → assets-Bfc4qvL9.js} +2 -2
- package/dist/{grafana-Bz7xSfdW.js → grafana-D6m7Ncb9.js} +1 -1
- package/dist/{index-D68osbqj.js → index-BqR-1lMt.js} +2 -2
- package/dist/{index-6TNmNay6.js → index-CJycbvdH.js} +1 -1
- package/dist/{index-Dqk3bGgi.js → index-CPRFae6C.js} +1 -1
- package/dist/{index-DqW_m_SE.js → index-CRRwtbB3.js} +1 -1
- package/dist/{index-Bi2r6bNV.js → index-CbtpnJDK.js} +1 -1
- package/dist/{index-DyEaoZ8f.js → index-DbXPVAha.js} +1 -1
- package/dist/{index-DaMy_lQ6.js → index-DrBQEK7n.js} +1 -1
- package/dist/{index-BcpQUz2-.js → index-ON0bN189.js} +1 -1
- package/dist/{index-BGliGchf.js → index-SR7HzFCM.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-D6hndvwu.js → index.vue_vue_type_script_setup_true_lang-ikp60oFB.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-ppiDcfDV.js → payout-account-Cuyubk9y.js} +3 -3
- package/dist/{softspace-25X2bjBx.js → softspace-D9cEyOQT.js} +1 -1
- package/dist/stores/payoutAccount.d.ts +24 -24
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +81 -0
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +20 -20
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +28 -28
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +28 -28
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +24 -24
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +28 -28
- package/dist/views/admin/payout-account/tabs/gateway/AdyenGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +2 -2
- package/dist/views/admin/restaurant/tabs/gateway/KsherGateway.vue.d.ts +2 -2
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +10 -10
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +10 -10
- package/dist/views/onboard-submission/cell/SignatureBoardV2.vue.d.ts +14 -0
- package/dist/views/onboard-submission/form/NTTSubmission.vue.d.ts +5 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +48 -48
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +40 -40
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +20 -20
- package/package.json +2 -2
- package/dist/OnboardForm-6LLulbsZ.js +0 -839
- package/dist/OnboardForm-nxAX33US.js +0 -779
- package/dist/OnboardSubmission-DrWzegfK.js +0 -173
|
@@ -1,779 +0,0 @@
|
|
|
1
|
-
import { defineComponent as O, ref as q, computed as z, resolveComponent as k, openBlock as f, createElementBlock as T, createElementVNode as o, toDisplayString as R, createBlock as x, withCtx as y, createCommentVNode as j, createVNode as n, unref as e, Fragment as H, createTextVNode as E, onMounted as Z, resolveDynamicComponent as h } from "vue";
|
|
2
|
-
import { o as A } from "./index-D68osbqj.js";
|
|
3
|
-
import { u as J } from "./index-Dqk3bGgi.js";
|
|
4
|
-
import { useRouter as ee } from "vue-router";
|
|
5
|
-
import { z as u, a as d } from "./validator-DzjyJnvv.js";
|
|
6
|
-
import { P as le } from "./payout-account-ppiDcfDV.js";
|
|
7
|
-
import { _ } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-CTA026mA.js";
|
|
8
|
-
import { s as te } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
9
|
-
import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-BsbxaRKL.js";
|
|
10
|
-
import { useSnackbar as G } from "@feedmepos/ui-library";
|
|
11
|
-
import { u as $ } from "./error-K1CakhA9.js";
|
|
12
|
-
const oe = ["src"], B = /* @__PURE__ */ O({
|
|
13
|
-
__name: "UploadButton",
|
|
14
|
-
props: {
|
|
15
|
-
modelValue: {},
|
|
16
|
-
label: {},
|
|
17
|
-
type: {},
|
|
18
|
-
restaurantId: {}
|
|
19
|
-
},
|
|
20
|
-
emits: ["update:modelValue"],
|
|
21
|
-
setup(m, { emit: U }) {
|
|
22
|
-
const C = m, v = q(C.modelValue), V = U, N = (a) => {
|
|
23
|
-
const r = new FileReader();
|
|
24
|
-
r.onload = (S) => {
|
|
25
|
-
var i;
|
|
26
|
-
v.value = (i = S.target) == null ? void 0 : i.result, V("update:modelValue", a);
|
|
27
|
-
}, r.readAsDataURL(a);
|
|
28
|
-
}, p = (a) => {
|
|
29
|
-
window.open(a, "_blank", "noopener,noreferrer");
|
|
30
|
-
}, P = z(() => C.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
|
|
31
|
-
return (a, r) => {
|
|
32
|
-
const S = k("FmButton"), i = k("FmDropField");
|
|
33
|
-
return f(), T("div", null, [
|
|
34
|
-
o("p", null, R(m.label), 1),
|
|
35
|
-
v.value ? (f(), x(_, {
|
|
36
|
-
key: 0,
|
|
37
|
-
document: v.value,
|
|
38
|
-
"restaurant-id": m.restaurantId
|
|
39
|
-
}, {
|
|
40
|
-
default: y(({ src: c }) => [
|
|
41
|
-
m.type === "image" ? (f(), T("img", {
|
|
42
|
-
key: 0,
|
|
43
|
-
src: c
|
|
44
|
-
}, null, 8, oe)) : j("", !0),
|
|
45
|
-
m.type === "pdf" ? (f(), x(S, {
|
|
46
|
-
key: 1,
|
|
47
|
-
class: "mt-4 w-full",
|
|
48
|
-
"prepend-icon": "manage_accounts",
|
|
49
|
-
label: "View Document",
|
|
50
|
-
variant: "primary",
|
|
51
|
-
onVnodeMounted: () => p(c),
|
|
52
|
-
onClick: () => p(c)
|
|
53
|
-
}, null, 8, ["onVnodeMounted", "onClick"])) : j("", !0)
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
}, 8, ["document", "restaurant-id"])) : (f(), x(i, {
|
|
57
|
-
key: 1,
|
|
58
|
-
accept: P.value,
|
|
59
|
-
onFileUpload: N
|
|
60
|
-
}, null, 8, ["accept"]))
|
|
61
|
-
]);
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
}), ne = ["src"], se = {
|
|
65
|
-
key: 0,
|
|
66
|
-
class: "text-center text-red-700 py-4"
|
|
67
|
-
}, re = { class: "flex justify-evenly py-3" }, ie = /* @__PURE__ */ O({
|
|
68
|
-
__name: "SignatureBoard",
|
|
69
|
-
props: {
|
|
70
|
-
modelValue: {},
|
|
71
|
-
label: {},
|
|
72
|
-
restaurantId: {}
|
|
73
|
-
},
|
|
74
|
-
emits: ["update:modelValue"],
|
|
75
|
-
setup(m, { emit: U }) {
|
|
76
|
-
const C = m, v = U, V = q(C.modelValue), N = q(!1), p = q(), P = q(!1);
|
|
77
|
-
function a(S, i) {
|
|
78
|
-
var D;
|
|
79
|
-
const c = S.split(","), I = ((D = c[0].match(/:(.*?);/)) == null ? void 0 : D[1]) || "", g = atob(c[1]);
|
|
80
|
-
let s = g.length;
|
|
81
|
-
const w = new Uint8Array(s);
|
|
82
|
-
for (; s--; )
|
|
83
|
-
w[s] = g.charCodeAt(s);
|
|
84
|
-
return new File([w], i, { type: I });
|
|
85
|
-
}
|
|
86
|
-
const r = function() {
|
|
87
|
-
const { isEmpty: S, data: i } = p.value.saveSignature();
|
|
88
|
-
if (S)
|
|
89
|
-
return N.value = !0;
|
|
90
|
-
V.value = i, P.value = !1, v("update:modelValue", a(i, "signature.png"));
|
|
91
|
-
};
|
|
92
|
-
return (S, i) => {
|
|
93
|
-
const c = k("FmButton"), I = k("FmDialog");
|
|
94
|
-
return f(), T("div", null, [
|
|
95
|
-
o("p", null, R(m.label), 1),
|
|
96
|
-
V.value ? (f(), x(_, {
|
|
97
|
-
key: 0,
|
|
98
|
-
document: V.value,
|
|
99
|
-
"restaurant-id": m.restaurantId
|
|
100
|
-
}, {
|
|
101
|
-
default: y(({ src: g }) => [
|
|
102
|
-
o("img", {
|
|
103
|
-
src: g,
|
|
104
|
-
alt: "Signature Preview",
|
|
105
|
-
class: "w-full h-auto"
|
|
106
|
-
}, null, 8, ne)
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}, 8, ["document", "restaurant-id"])) : j("", !0),
|
|
110
|
-
V.value ? j("", !0) : (f(), x(I, {
|
|
111
|
-
key: 1,
|
|
112
|
-
modelValue: P.value,
|
|
113
|
-
"onUpdate:modelValue": i[1] || (i[1] = (g) => P.value = g)
|
|
114
|
-
}, {
|
|
115
|
-
"dialog-button": y(() => [
|
|
116
|
-
n(c, {
|
|
117
|
-
"prepend-icon": "signature",
|
|
118
|
-
class: "w-full",
|
|
119
|
-
label: "Signature"
|
|
120
|
-
})
|
|
121
|
-
]),
|
|
122
|
-
"dialog-header": y(() => [...i[2] || (i[2] = [
|
|
123
|
-
o("div", null, "Signature Board", -1)
|
|
124
|
-
])]),
|
|
125
|
-
default: y(() => [
|
|
126
|
-
n(e(te), {
|
|
127
|
-
ref_key: "signaturePad",
|
|
128
|
-
ref: p,
|
|
129
|
-
height: "300px",
|
|
130
|
-
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
|
131
|
-
options: { penColor: "#000000" }
|
|
132
|
-
}, null, 512),
|
|
133
|
-
N.value ? (f(), T("p", se, " Please sign your signature before saving. ")) : j("", !0),
|
|
134
|
-
o("div", re, [
|
|
135
|
-
n(c, {
|
|
136
|
-
variant: "destructive",
|
|
137
|
-
label: "Clear",
|
|
138
|
-
"prepend-icon": "delete",
|
|
139
|
-
onClick: i[0] || (i[0] = (g) => p.value.clearSignature())
|
|
140
|
-
}),
|
|
141
|
-
n(c, {
|
|
142
|
-
label: "Save",
|
|
143
|
-
"prepend-icon": "save",
|
|
144
|
-
onClick: r
|
|
145
|
-
})
|
|
146
|
-
])
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}, 8, ["modelValue"]))
|
|
150
|
-
]);
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
}), ue = { class: "space-y-2" }, de = { class: "text-gray-900" }, me = { class: "text-gray-900" }, pe = { class: "text-gray-900" }, be = { class: "text-gray-900" }, ce = { class: "text-gray-900" }, ge = { class: "text-gray-900" }, ye = { class: "mt-6 grid grid-cols-4 gap-24" }, ve = { class: "w-full flex justify-end mt-6" }, fe = { class: "mt-6 grid grid-cols-4 gap-24" }, Ve = { class: "col-span-2" }, ke = { class: "col-span-2" }, Ce = { class: "col-span-2" }, Ne = { class: "col-span-2" }, Se = { class: "col-span-2" }, Fe = { class: "col-span-2" }, we = { class: "col-start-1 col-span-2" }, Pe = { class: "col-span-2" }, qe = { class: "col-span-2" }, Ie = { class: "col-span-2" }, Re = { class: "mt-6 grid grid-cols-4 gap-24" }, xe = { class: "mt-6 grid grid-cols-2 gap-24" }, Ue = /* @__PURE__ */ O({
|
|
154
|
-
__name: "SoftspaceSubmission",
|
|
155
|
-
props: {
|
|
156
|
-
submission: {
|
|
157
|
-
type: Object,
|
|
158
|
-
required: !0
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
emits: ["update:submission"],
|
|
162
|
-
setup(m, { emit: U }) {
|
|
163
|
-
const C = m, v = U, V = G(), N = q(!1), { isLoading: p, startAsyncCall: P } = J(), { fields: a, documents: r, restaurantId: S, profile: i, status: c, statusReason: I } = C.submission, g = q(""), s = q(
|
|
164
|
-
C.submission.rates ? Object.fromEntries(
|
|
165
|
-
Object.entries(C.submission.rates).map(([F, l]) => [F, `${l}`])
|
|
166
|
-
) : {
|
|
167
|
-
duitNow: "0.8",
|
|
168
|
-
mydebitCard: "0.5",
|
|
169
|
-
localDebit: "0.5",
|
|
170
|
-
localCredit: "1.1",
|
|
171
|
-
foreignCard: "3.2",
|
|
172
|
-
jcbStandard: "2.2",
|
|
173
|
-
jcbPlatinum: "2.2"
|
|
174
|
-
}
|
|
175
|
-
), w = z(
|
|
176
|
-
() => Object.values(s.value).every((F) => parseFloat(F) > 0)
|
|
177
|
-
), D = () => P(async () => {
|
|
178
|
-
try {
|
|
179
|
-
const F = await A.reviewById(
|
|
180
|
-
C.submission._id,
|
|
181
|
-
{
|
|
182
|
-
rates: {
|
|
183
|
-
duitNow: parseFloat(s.value.duitNow),
|
|
184
|
-
mydebitCard: parseFloat(s.value.mydebitCard),
|
|
185
|
-
localDebit: parseFloat(s.value.localDebit),
|
|
186
|
-
localCredit: parseFloat(s.value.localCredit),
|
|
187
|
-
foreignCard: parseFloat(s.value.foreignCard),
|
|
188
|
-
jcbStandard: parseFloat(s.value.jcbStandard),
|
|
189
|
-
jcbPlatinum: parseFloat(s.value.jcbPlatinum)
|
|
190
|
-
},
|
|
191
|
-
status: "approved"
|
|
192
|
-
}
|
|
193
|
-
);
|
|
194
|
-
v("update:submission", F), N.value = !1, V.open({
|
|
195
|
-
type: "success",
|
|
196
|
-
title: "Submission updated successfully"
|
|
197
|
-
});
|
|
198
|
-
} catch (F) {
|
|
199
|
-
V.open({
|
|
200
|
-
type: "error",
|
|
201
|
-
title: "Error occurs when updating submission",
|
|
202
|
-
message: $(F)
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
}), K = () => P(async () => {
|
|
206
|
-
try {
|
|
207
|
-
const F = await A.reviewById(
|
|
208
|
-
C.submission._id,
|
|
209
|
-
{
|
|
210
|
-
status: "rejected",
|
|
211
|
-
statusReason: g.value
|
|
212
|
-
}
|
|
213
|
-
);
|
|
214
|
-
v("update:submission", F), N.value = !1, V.open({
|
|
215
|
-
type: "success",
|
|
216
|
-
title: "Submission updated successfully"
|
|
217
|
-
});
|
|
218
|
-
} catch (F) {
|
|
219
|
-
V.open({
|
|
220
|
-
type: "error",
|
|
221
|
-
title: "Error occurs when updating submission",
|
|
222
|
-
message: $(F)
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
return (F, l) => {
|
|
227
|
-
const b = k("FmTextField"), L = k("FmButton"), Q = k("FmTextarea"), Y = k("FmDialog"), W = k("FmPhoneNumber"), M = k("FmSelect"), X = k("FmForm");
|
|
228
|
-
return f(), T(H, null, [
|
|
229
|
-
o("div", ue, [
|
|
230
|
-
o("div", null, [
|
|
231
|
-
l[33] || (l[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
232
|
-
o("span", de, R(e(S)), 1)
|
|
233
|
-
]),
|
|
234
|
-
o("div", null, [
|
|
235
|
-
l[34] || (l[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
236
|
-
o("span", me, R(e(i).name) + " ( " + R(e(i).legalName) + " )", 1)
|
|
237
|
-
]),
|
|
238
|
-
o("div", null, [
|
|
239
|
-
l[35] || (l[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
240
|
-
o("span", pe, R(e(i).email), 1)
|
|
241
|
-
]),
|
|
242
|
-
o("div", null, [
|
|
243
|
-
l[36] || (l[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
244
|
-
o("span", be, R(e(i).phoneNo), 1)
|
|
245
|
-
]),
|
|
246
|
-
o("div", null, [
|
|
247
|
-
l[37] || (l[37] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
248
|
-
o("span", ce, [
|
|
249
|
-
n(ae, { data: e(c) }, null, 8, ["data"])
|
|
250
|
-
])
|
|
251
|
-
]),
|
|
252
|
-
o("div", null, [
|
|
253
|
-
l[38] || (l[38] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
254
|
-
o("span", ge, R(e(I)), 1)
|
|
255
|
-
])
|
|
256
|
-
]),
|
|
257
|
-
l[50] || (l[50] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
258
|
-
o("div", ye, [
|
|
259
|
-
n(b, {
|
|
260
|
-
modelValue: s.value.duitNow,
|
|
261
|
-
"onUpdate:modelValue": l[0] || (l[0] = (t) => s.value.duitNow = t),
|
|
262
|
-
label: "DuitNow QR",
|
|
263
|
-
"label-mark": "required",
|
|
264
|
-
type: "number",
|
|
265
|
-
inputmode: "numeric",
|
|
266
|
-
decimal: 2,
|
|
267
|
-
rules: e(u)(
|
|
268
|
-
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
269
|
-
)
|
|
270
|
-
}, {
|
|
271
|
-
append: y(() => [...l[39] || (l[39] = [
|
|
272
|
-
E("%", -1)
|
|
273
|
-
])]),
|
|
274
|
-
_: 1
|
|
275
|
-
}, 8, ["modelValue", "rules"]),
|
|
276
|
-
n(b, {
|
|
277
|
-
modelValue: s.value.mydebitCard,
|
|
278
|
-
"onUpdate:modelValue": l[1] || (l[1] = (t) => s.value.mydebitCard = t),
|
|
279
|
-
label: "myDebit Card",
|
|
280
|
-
"label-mark": "required",
|
|
281
|
-
type: "number",
|
|
282
|
-
inputmode: "numeric",
|
|
283
|
-
decimal: 2,
|
|
284
|
-
rules: e(u)(
|
|
285
|
-
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
286
|
-
)
|
|
287
|
-
}, {
|
|
288
|
-
append: y(() => [...l[40] || (l[40] = [
|
|
289
|
-
E("%", -1)
|
|
290
|
-
])]),
|
|
291
|
-
_: 1
|
|
292
|
-
}, 8, ["modelValue", "rules"]),
|
|
293
|
-
n(b, {
|
|
294
|
-
modelValue: s.value.localDebit,
|
|
295
|
-
"onUpdate:modelValue": l[2] || (l[2] = (t) => s.value.localDebit = t),
|
|
296
|
-
label: "Local Debit Card",
|
|
297
|
-
"label-mark": "required",
|
|
298
|
-
type: "number",
|
|
299
|
-
inputmode: "numeric",
|
|
300
|
-
decimal: 2,
|
|
301
|
-
rules: e(u)(
|
|
302
|
-
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
303
|
-
)
|
|
304
|
-
}, {
|
|
305
|
-
append: y(() => [...l[41] || (l[41] = [
|
|
306
|
-
E("%", -1)
|
|
307
|
-
])]),
|
|
308
|
-
_: 1
|
|
309
|
-
}, 8, ["modelValue", "rules"]),
|
|
310
|
-
n(b, {
|
|
311
|
-
modelValue: s.value.localCredit,
|
|
312
|
-
"onUpdate:modelValue": l[3] || (l[3] = (t) => s.value.localCredit = t),
|
|
313
|
-
label: "Local Credit Card",
|
|
314
|
-
"label-mark": "required",
|
|
315
|
-
type: "number",
|
|
316
|
-
inputmode: "numeric",
|
|
317
|
-
decimal: 2,
|
|
318
|
-
rules: e(u)(
|
|
319
|
-
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
320
|
-
)
|
|
321
|
-
}, {
|
|
322
|
-
append: y(() => [...l[42] || (l[42] = [
|
|
323
|
-
E("%", -1)
|
|
324
|
-
])]),
|
|
325
|
-
_: 1
|
|
326
|
-
}, 8, ["modelValue", "rules"]),
|
|
327
|
-
n(b, {
|
|
328
|
-
modelValue: s.value.foreignCard,
|
|
329
|
-
"onUpdate:modelValue": l[4] || (l[4] = (t) => s.value.foreignCard = t),
|
|
330
|
-
label: "Foreign Card",
|
|
331
|
-
"label-mark": "required",
|
|
332
|
-
type: "number",
|
|
333
|
-
inputmode: "numeric",
|
|
334
|
-
decimal: 2,
|
|
335
|
-
rules: e(u)(
|
|
336
|
-
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
337
|
-
)
|
|
338
|
-
}, {
|
|
339
|
-
append: y(() => [...l[43] || (l[43] = [
|
|
340
|
-
E("%", -1)
|
|
341
|
-
])]),
|
|
342
|
-
_: 1
|
|
343
|
-
}, 8, ["modelValue", "rules"]),
|
|
344
|
-
n(b, {
|
|
345
|
-
modelValue: s.value.jcbStandard,
|
|
346
|
-
"onUpdate:modelValue": l[5] || (l[5] = (t) => s.value.jcbStandard = t),
|
|
347
|
-
label: "JCB Standard",
|
|
348
|
-
"label-mark": "required",
|
|
349
|
-
type: "number",
|
|
350
|
-
inputmode: "numeric",
|
|
351
|
-
decimal: 2,
|
|
352
|
-
rules: e(u)(
|
|
353
|
-
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
354
|
-
)
|
|
355
|
-
}, {
|
|
356
|
-
append: y(() => [...l[44] || (l[44] = [
|
|
357
|
-
E("%", -1)
|
|
358
|
-
])]),
|
|
359
|
-
_: 1
|
|
360
|
-
}, 8, ["modelValue", "rules"]),
|
|
361
|
-
n(b, {
|
|
362
|
-
modelValue: s.value.jcbPlatinum,
|
|
363
|
-
"onUpdate:modelValue": l[6] || (l[6] = (t) => s.value.jcbPlatinum = t),
|
|
364
|
-
label: "JCB Platinum",
|
|
365
|
-
"label-mark": "required",
|
|
366
|
-
type: "number",
|
|
367
|
-
inputmode: "numeric",
|
|
368
|
-
decimal: 2,
|
|
369
|
-
rules: e(u)(
|
|
370
|
-
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
371
|
-
)
|
|
372
|
-
}, {
|
|
373
|
-
append: y(() => [...l[45] || (l[45] = [
|
|
374
|
-
E("%", -1)
|
|
375
|
-
])]),
|
|
376
|
-
_: 1
|
|
377
|
-
}, 8, ["modelValue", "rules"])
|
|
378
|
-
]),
|
|
379
|
-
o("div", ve, [
|
|
380
|
-
n(Y, {
|
|
381
|
-
modelValue: N.value,
|
|
382
|
-
"onUpdate:modelValue": l[8] || (l[8] = (t) => N.value = t)
|
|
383
|
-
}, {
|
|
384
|
-
"dialog-button": y(() => [
|
|
385
|
-
n(L, {
|
|
386
|
-
class: "mr-6",
|
|
387
|
-
type: "button",
|
|
388
|
-
variant: "destructive",
|
|
389
|
-
"prepend-icon": "block",
|
|
390
|
-
loading: e(p),
|
|
391
|
-
label: "Reject Submission"
|
|
392
|
-
}, null, 8, ["loading"])
|
|
393
|
-
]),
|
|
394
|
-
"dialog-header": y(() => [...l[46] || (l[46] = [
|
|
395
|
-
o("div", null, "Rejecting Submission", -1)
|
|
396
|
-
])]),
|
|
397
|
-
default: y(() => [
|
|
398
|
-
n(Q, {
|
|
399
|
-
modelValue: g.value,
|
|
400
|
-
"onUpdate:modelValue": l[7] || (l[7] = (t) => g.value = t),
|
|
401
|
-
label: "Reason for Rejection",
|
|
402
|
-
"label-mark": "optional",
|
|
403
|
-
"helper-text": "Please provide a reason for rejection."
|
|
404
|
-
}, null, 8, ["modelValue"]),
|
|
405
|
-
n(L, {
|
|
406
|
-
class: "mb-2 mt-6 w-full",
|
|
407
|
-
label: "Submit",
|
|
408
|
-
"prepend-icon": "save",
|
|
409
|
-
onClick: K,
|
|
410
|
-
loading: e(p)
|
|
411
|
-
}, null, 8, ["loading"])
|
|
412
|
-
]),
|
|
413
|
-
_: 1
|
|
414
|
-
}, 8, ["modelValue"]),
|
|
415
|
-
n(L, {
|
|
416
|
-
type: "button",
|
|
417
|
-
variant: "primary",
|
|
418
|
-
"prepend-icon": "approval",
|
|
419
|
-
disabled: !w.value,
|
|
420
|
-
label: "Approve Submission with Rates",
|
|
421
|
-
onClick: D,
|
|
422
|
-
loading: e(p)
|
|
423
|
-
}, null, 8, ["disabled", "loading"])
|
|
424
|
-
]),
|
|
425
|
-
n(X, { disabled: !0 }, {
|
|
426
|
-
default: y(() => [
|
|
427
|
-
l[47] || (l[47] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
428
|
-
o("div", fe, [
|
|
429
|
-
o("div", Ve, [
|
|
430
|
-
n(b, {
|
|
431
|
-
modelValue: e(a).picName,
|
|
432
|
-
"onUpdate:modelValue": l[9] || (l[9] = (t) => e(a).picName = t),
|
|
433
|
-
label: "PIC Name",
|
|
434
|
-
placeholder: "Enter your name",
|
|
435
|
-
"label-mark": "required",
|
|
436
|
-
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
437
|
-
}, null, 8, ["modelValue", "rules"])
|
|
438
|
-
]),
|
|
439
|
-
o("div", ke, [
|
|
440
|
-
n(b, {
|
|
441
|
-
modelValue: e(a).picRole,
|
|
442
|
-
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picRole = t),
|
|
443
|
-
label: "PIC Role",
|
|
444
|
-
placeholder: "Enter your role",
|
|
445
|
-
"label-mark": "required",
|
|
446
|
-
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
447
|
-
}, null, 8, ["modelValue", "rules"])
|
|
448
|
-
]),
|
|
449
|
-
o("div", Ce, [
|
|
450
|
-
n(b, {
|
|
451
|
-
modelValue: e(a).picEmail,
|
|
452
|
-
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picEmail = t),
|
|
453
|
-
label: "PIC Email",
|
|
454
|
-
type: "email",
|
|
455
|
-
placeholder: "Enter your email address",
|
|
456
|
-
"label-mark": "required",
|
|
457
|
-
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
458
|
-
}, null, 8, ["modelValue", "rules"])
|
|
459
|
-
]),
|
|
460
|
-
o("div", Ne, [
|
|
461
|
-
n(W, {
|
|
462
|
-
"model-value": e(a).picContact,
|
|
463
|
-
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picContact = t),
|
|
464
|
-
"default-country": "MY",
|
|
465
|
-
label: "PIC Contact",
|
|
466
|
-
"label-mark": "required",
|
|
467
|
-
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
468
|
-
}, null, 8, ["model-value", "rules"])
|
|
469
|
-
]),
|
|
470
|
-
o("div", Se, [
|
|
471
|
-
n(b, {
|
|
472
|
-
modelValue: e(a).outletName,
|
|
473
|
-
"onUpdate:modelValue": l[13] || (l[13] = (t) => e(a).outletName = t),
|
|
474
|
-
label: "Outlet Name",
|
|
475
|
-
placeholder: "Enter outlet name",
|
|
476
|
-
"label-mark": "required",
|
|
477
|
-
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
|
478
|
-
}, null, 8, ["modelValue", "rules"])
|
|
479
|
-
]),
|
|
480
|
-
o("div", Fe, [
|
|
481
|
-
n(b, {
|
|
482
|
-
modelValue: e(a).outletAddress,
|
|
483
|
-
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(a).outletAddress = t),
|
|
484
|
-
label: "Outlet Address",
|
|
485
|
-
placeholder: "Enter outlet address",
|
|
486
|
-
"label-mark": "required",
|
|
487
|
-
rules: e(u)(e(d).string().min(1, "Address is required"))
|
|
488
|
-
}, null, 8, ["modelValue", "rules"])
|
|
489
|
-
]),
|
|
490
|
-
n(b, {
|
|
491
|
-
modelValue: e(a).outletPostCode,
|
|
492
|
-
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(a).outletPostCode = t),
|
|
493
|
-
label: "Postal Code",
|
|
494
|
-
placeholder: "Enter postal code",
|
|
495
|
-
"label-mark": "required",
|
|
496
|
-
rules: e(u)(e(d).string().min(1, "Postal Code is required"))
|
|
497
|
-
}, null, 8, ["modelValue", "rules"]),
|
|
498
|
-
n(b, {
|
|
499
|
-
modelValue: e(a).outletState,
|
|
500
|
-
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(a).outletState = t),
|
|
501
|
-
label: "State",
|
|
502
|
-
placeholder: "Enter state",
|
|
503
|
-
"label-mark": "required",
|
|
504
|
-
rules: e(u)(e(d).string().min(1, "State is required"))
|
|
505
|
-
}, null, 8, ["modelValue", "rules"]),
|
|
506
|
-
n(b, {
|
|
507
|
-
modelValue: e(a).outletCity,
|
|
508
|
-
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(a).outletCity = t),
|
|
509
|
-
label: "City",
|
|
510
|
-
placeholder: "Enter city",
|
|
511
|
-
"label-mark": "required",
|
|
512
|
-
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
513
|
-
}, null, 8, ["modelValue", "rules"]),
|
|
514
|
-
o("div", we, [
|
|
515
|
-
n(M, {
|
|
516
|
-
modelValue: e(a).businessType,
|
|
517
|
-
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(a).businessType = t),
|
|
518
|
-
label: "Type",
|
|
519
|
-
placeholder: "Select business type",
|
|
520
|
-
"label-mark": "required",
|
|
521
|
-
rules: e(u)(e(d).string().min(1, "Business Type is required")),
|
|
522
|
-
items: [
|
|
523
|
-
{ label: "Sole Proprietorship", value: "sole_proprietorship" },
|
|
524
|
-
{ label: "Partnership", value: "partnership" },
|
|
525
|
-
{
|
|
526
|
-
label: "Private Limited Company (Sdn Bhd)",
|
|
527
|
-
value: "private_limited"
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
label: "Public Limited Company (Berhad)",
|
|
531
|
-
value: "public_limited"
|
|
532
|
-
}
|
|
533
|
-
]
|
|
534
|
-
}, null, 8, ["modelValue", "rules"])
|
|
535
|
-
]),
|
|
536
|
-
o("div", Pe, [
|
|
537
|
-
n(b, {
|
|
538
|
-
modelValue: e(a).businessRegNo,
|
|
539
|
-
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(a).businessRegNo = t),
|
|
540
|
-
label: "Registration No",
|
|
541
|
-
placeholder: "Enter registration number",
|
|
542
|
-
"label-mark": "required",
|
|
543
|
-
rules: e(u)(e(d).string().min(1, "Reg No is required"))
|
|
544
|
-
}, null, 8, ["modelValue", "rules"])
|
|
545
|
-
]),
|
|
546
|
-
o("div", qe, [
|
|
547
|
-
n(b, {
|
|
548
|
-
modelValue: e(a).tinNo,
|
|
549
|
-
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(a).tinNo = t),
|
|
550
|
-
label: "Tax Identification No (TIN)",
|
|
551
|
-
placeholder: "Enter your TIN number",
|
|
552
|
-
"label-mark": "required",
|
|
553
|
-
rules: e(u)(e(d).string().min(1, "TIN is required"))
|
|
554
|
-
}, null, 8, ["modelValue", "rules"])
|
|
555
|
-
]),
|
|
556
|
-
o("div", Ie, [
|
|
557
|
-
n(b, {
|
|
558
|
-
modelValue: e(a).sstNo,
|
|
559
|
-
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(a).sstNo = t),
|
|
560
|
-
label: "SST Registration No (SST)",
|
|
561
|
-
placeholder: "Enter your SST number",
|
|
562
|
-
"label-mark": "optional"
|
|
563
|
-
}, null, 8, ["modelValue"])
|
|
564
|
-
])
|
|
565
|
-
]),
|
|
566
|
-
l[48] || (l[48] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
|
|
567
|
-
o("div", Re, [
|
|
568
|
-
n(M, {
|
|
569
|
-
modelValue: e(a).bankName,
|
|
570
|
-
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(a).bankName = t),
|
|
571
|
-
label: "Bank",
|
|
572
|
-
placeholder: "Select bank type",
|
|
573
|
-
"label-mark": "required",
|
|
574
|
-
rules: e(u)(e(d).string().min(1, "Bank Type is required")),
|
|
575
|
-
items: e(le).bankNameOptions()
|
|
576
|
-
}, null, 8, ["modelValue", "rules", "items"]),
|
|
577
|
-
n(b, {
|
|
578
|
-
modelValue: e(a).bankHolderName,
|
|
579
|
-
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(a).bankHolderName = t),
|
|
580
|
-
label: "Beneficiary Name",
|
|
581
|
-
placeholder: "Enter Beneficiary Name",
|
|
582
|
-
"label-mark": "required",
|
|
583
|
-
rules: e(u)(e(d).string().min(1, "Beneficiary Name is required"))
|
|
584
|
-
}, null, 8, ["modelValue", "rules"]),
|
|
585
|
-
n(b, {
|
|
586
|
-
modelValue: e(a).bankAccountNo,
|
|
587
|
-
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(a).bankAccountNo = t),
|
|
588
|
-
label: "Account Number",
|
|
589
|
-
placeholder: "Enter Account Number",
|
|
590
|
-
"label-mark": "required",
|
|
591
|
-
rules: e(u)(e(d).string().min(1, "Account Number is required"))
|
|
592
|
-
}, null, 8, ["modelValue", "rules"]),
|
|
593
|
-
n(B, {
|
|
594
|
-
label: "Authorized Person ID",
|
|
595
|
-
modelValue: e(r).authorizedPersonID,
|
|
596
|
-
"onUpdate:modelValue": l[25] || (l[25] = (t) => e(r).authorizedPersonID = t),
|
|
597
|
-
type: "image",
|
|
598
|
-
"restaurant-id": m.submission.restaurantId
|
|
599
|
-
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
600
|
-
n(B, {
|
|
601
|
-
label: "Outlet Photo",
|
|
602
|
-
modelValue: e(r).outletPhoto,
|
|
603
|
-
"onUpdate:modelValue": l[26] || (l[26] = (t) => e(r).outletPhoto = t),
|
|
604
|
-
type: "image",
|
|
605
|
-
"restaurant-id": m.submission.restaurantId
|
|
606
|
-
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
607
|
-
n(B, {
|
|
608
|
-
label: "Interior Photo",
|
|
609
|
-
modelValue: e(r).interiorPhoto,
|
|
610
|
-
"onUpdate:modelValue": l[27] || (l[27] = (t) => e(r).interiorPhoto = t),
|
|
611
|
-
type: "image",
|
|
612
|
-
"restaurant-id": m.submission.restaurantId
|
|
613
|
-
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
614
|
-
n(B, {
|
|
615
|
-
label: "Latest Bank Statement",
|
|
616
|
-
modelValue: e(r).bankStatement,
|
|
617
|
-
"onUpdate:modelValue": l[28] || (l[28] = (t) => e(r).bankStatement = t),
|
|
618
|
-
type: "pdf",
|
|
619
|
-
"restaurant-id": m.submission.restaurantId
|
|
620
|
-
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
621
|
-
e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (f(), x(B, {
|
|
622
|
-
key: 0,
|
|
623
|
-
label: "Superform",
|
|
624
|
-
type: "pdf",
|
|
625
|
-
modelValue: e(r).certificate,
|
|
626
|
-
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(r).certificate = t),
|
|
627
|
-
"restaurant-id": m.submission.restaurantId
|
|
628
|
-
}, null, 8, ["modelValue", "restaurant-id"])) : j("", !0),
|
|
629
|
-
e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (f(), x(B, {
|
|
630
|
-
key: 1,
|
|
631
|
-
label: "SSM Certificate & Info",
|
|
632
|
-
type: "pdf",
|
|
633
|
-
modelValue: e(r).certificate,
|
|
634
|
-
"onUpdate:modelValue": l[30] || (l[30] = (t) => e(r).certificate = t),
|
|
635
|
-
"restaurant-id": m.submission.restaurantId
|
|
636
|
-
}, null, 8, ["modelValue", "restaurant-id"])) : j("", !0)
|
|
637
|
-
]),
|
|
638
|
-
l[49] || (l[49] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
639
|
-
o("div", xe, [
|
|
640
|
-
n(ie, {
|
|
641
|
-
modelValue: e(r).signature,
|
|
642
|
-
"onUpdate:modelValue": l[31] || (l[31] = (t) => e(r).signature = t),
|
|
643
|
-
"restaurant-id": m.submission.restaurantId,
|
|
644
|
-
label: "Signature"
|
|
645
|
-
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
646
|
-
n(B, {
|
|
647
|
-
label: "Company Stamp",
|
|
648
|
-
type: "image",
|
|
649
|
-
modelValue: e(r).companyStamp,
|
|
650
|
-
"onUpdate:modelValue": l[32] || (l[32] = (t) => e(r).companyStamp = t),
|
|
651
|
-
"restaurant-id": m.submission.restaurantId
|
|
652
|
-
}, null, 8, ["modelValue", "restaurant-id"])
|
|
653
|
-
])
|
|
654
|
-
]),
|
|
655
|
-
_: 1
|
|
656
|
-
})
|
|
657
|
-
], 64);
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
}), De = {
|
|
661
|
-
key: 0,
|
|
662
|
-
class: "flex items-center justify-center min-h-[80vh]"
|
|
663
|
-
}, Ee = { class: "px-32 pb-32" }, _e = /* @__PURE__ */ O({
|
|
664
|
-
__name: "OnboardForm",
|
|
665
|
-
props: {
|
|
666
|
-
submissionId: {
|
|
667
|
-
type: String,
|
|
668
|
-
required: !0
|
|
669
|
-
}
|
|
670
|
-
},
|
|
671
|
-
setup(m) {
|
|
672
|
-
const { startAsyncCall: U, isLoading: C } = J(), v = G(), V = m, N = ee(), p = q(null), P = () => {
|
|
673
|
-
if (window.history.length > 1) {
|
|
674
|
-
N.back();
|
|
675
|
-
return;
|
|
676
|
-
}
|
|
677
|
-
N.push({ name: "mf-payment-admin.onboard-submission" });
|
|
678
|
-
};
|
|
679
|
-
Z(() => {
|
|
680
|
-
U(async () => {
|
|
681
|
-
p.value = await A.readById(V.submissionId);
|
|
682
|
-
});
|
|
683
|
-
});
|
|
684
|
-
const a = z(() => {
|
|
685
|
-
if (!p.value) return null;
|
|
686
|
-
switch (p.value.type) {
|
|
687
|
-
case "softspace":
|
|
688
|
-
return Ue;
|
|
689
|
-
default:
|
|
690
|
-
return null;
|
|
691
|
-
}
|
|
692
|
-
}), r = q(0);
|
|
693
|
-
function S(c) {
|
|
694
|
-
p.value = c, r.value = Date.now();
|
|
695
|
-
}
|
|
696
|
-
const i = async (c) => {
|
|
697
|
-
var I, g;
|
|
698
|
-
if (p.value)
|
|
699
|
-
switch (c) {
|
|
700
|
-
case "preview":
|
|
701
|
-
let s;
|
|
702
|
-
try {
|
|
703
|
-
s = v.open({
|
|
704
|
-
message: "Generating preview document...",
|
|
705
|
-
type: "info"
|
|
706
|
-
}), await A.previewDocument(
|
|
707
|
-
(I = p.value) == null ? void 0 : I._id
|
|
708
|
-
);
|
|
709
|
-
} catch (w) {
|
|
710
|
-
v.open({
|
|
711
|
-
type: "error",
|
|
712
|
-
title: "Error occurs when generating submission document",
|
|
713
|
-
message: $(w)
|
|
714
|
-
});
|
|
715
|
-
} finally {
|
|
716
|
-
s && v.close(s);
|
|
717
|
-
}
|
|
718
|
-
break;
|
|
719
|
-
case "send":
|
|
720
|
-
try {
|
|
721
|
-
v.open({
|
|
722
|
-
message: "Sending onboarding document...",
|
|
723
|
-
type: "info"
|
|
724
|
-
}), await A.sendDocument(
|
|
725
|
-
(g = p.value) == null ? void 0 : g._id
|
|
726
|
-
), v.open({
|
|
727
|
-
type: "success",
|
|
728
|
-
title: "Submission documents send successfully"
|
|
729
|
-
});
|
|
730
|
-
} catch (w) {
|
|
731
|
-
v.open({
|
|
732
|
-
type: "error",
|
|
733
|
-
title: "Error occurs when sending document",
|
|
734
|
-
message: $(w)
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
break;
|
|
738
|
-
}
|
|
739
|
-
};
|
|
740
|
-
return (c, I) => {
|
|
741
|
-
var w, D;
|
|
742
|
-
const g = k("FmCircularProgress"), s = k("FmPageHead");
|
|
743
|
-
return e(C) ? (f(), T("div", De, [
|
|
744
|
-
n(g, { size: "xxl" })
|
|
745
|
-
])) : (f(), T(H, { key: 1 }, [
|
|
746
|
-
n(s, {
|
|
747
|
-
title: `Submission - ${(w = p.value) == null ? void 0 : w.type}`,
|
|
748
|
-
description: `ID - ${(D = p.value) == null ? void 0 : D._id}`,
|
|
749
|
-
"back-button": !0,
|
|
750
|
-
"onClick:back": P,
|
|
751
|
-
"onClick:action": i,
|
|
752
|
-
actions: [
|
|
753
|
-
{
|
|
754
|
-
label: "Preview Document",
|
|
755
|
-
value: "preview",
|
|
756
|
-
prependIcon: "preview"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
label: "Send for Review",
|
|
760
|
-
value: "send",
|
|
761
|
-
isPrimary: !0,
|
|
762
|
-
prependIcon: "send"
|
|
763
|
-
}
|
|
764
|
-
]
|
|
765
|
-
}, null, 8, ["title", "description"]),
|
|
766
|
-
o("div", Ee, [
|
|
767
|
-
(f(), x(h(a.value), {
|
|
768
|
-
key: r.value,
|
|
769
|
-
submission: p.value,
|
|
770
|
-
"onUpdate:submission": S
|
|
771
|
-
}, null, 40, ["submission"]))
|
|
772
|
-
])
|
|
773
|
-
], 64));
|
|
774
|
-
};
|
|
775
|
-
}
|
|
776
|
-
});
|
|
777
|
-
export {
|
|
778
|
-
_e as default
|
|
779
|
-
};
|