@feedmepos/mf-payment 1.3.7 → 1.3.9
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/{OnboardForm-BLfsB8xK.js → OnboardForm-BlBxXNvQ.js} +197 -197
- package/dist/{OnboardForm-B8asbqQ2.js → OnboardForm-C0YWCDXr.js} +4 -4
- package/dist/{OnboardSubmission-BQMqZ-wP.js → OnboardSubmission-BUH9EBp9.js} +5 -5
- package/dist/{OnboardSubmission-DdF0Dy9-.js → OnboardSubmission-BxLJ76Gd.js} +2 -2
- package/dist/{PayoutAccount-CXjj7Euz.js → PayoutAccount-D6TQgPUP.js} +5 -5
- package/dist/{PayoutAccount-BKZJa7Xu.js → PayoutAccount-DC_bIwCU.js} +5 -5
- package/dist/{PayoutAccountSetting-CHRrrPyM.js → PayoutAccountSetting-cePknwDI.js} +3 -3
- package/dist/{Restaurant-B4_By3gk.js → Restaurant-B7pxOPfA.js} +4 -4
- package/dist/{RestaurantSetting-Dub_-JlB.js → RestaurantSetting-D6KMzqFP.js} +3 -3
- package/dist/{Settlement-Y9WvXhNL.js → Settlement-Bth8Ui2Z.js} +3 -3
- package/dist/{Settlement-CZ8pzFMH.js → Settlement-IeUvfy80.js} +3 -3
- package/dist/{SettlementTransactions-CYKZ3qJR.js → SettlementTransactions-D8KcC1xS.js} +3 -3
- package/dist/{SettlementTransactions-CT7yHI03.js → SettlementTransactions-DZGFok3q.js} +3 -3
- package/dist/{Status.vue_vue_type_script_setup_true_lang-knGxQsIT.js → Status.vue_vue_type_script_setup_true_lang-DJqdH669.js} +1 -1
- package/dist/{Terminal-DpU8bG_E.js → Terminal-CBpKZr2A.js} +5 -5
- package/dist/{TerminalSetting-ayjTqDOf.js → TerminalSetting-ClzbzycY.js} +498 -379
- package/dist/{Transaction-BglDJkA1.js → Transaction-BVDi8UBy.js} +6 -6
- package/dist/{Transaction-BhaE4B7P.js → Transaction-DqMCm2X7.js} +5 -5
- package/dist/{TransactionOld-lu-6Wsl0.js → TransactionOld-DNeC5gfJ.js} +4 -4
- package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-DwsA4v2y.js → TransactionTable.vue_vue_type_script_setup_true_lang-Dp26HmG3.js} +3 -3
- package/dist/{app-BrNzXeBI.js → app-CU0L5rLn.js} +151 -151
- package/dist/app.js +1 -1
- package/dist/{assets-CXWjWs3-.js → assets-DWVOr5nK.js} +1 -1
- package/dist/{grafana-DMIeh04o.js → grafana-BjVYzsSk.js} +1 -1
- package/dist/{index-DYisiI7M.js → index-2Lq-dday.js} +1 -1
- package/dist/{index-CggStwHL.js → index-BaS5NvBk.js} +8423 -8356
- package/dist/{index-DXzy1nT_.js → index-BuuwDeHB.js} +1 -1
- package/dist/{index-BUbV9yXt.js → index-C3ELtK6q.js} +1 -1
- package/dist/{index-LG8BpXxO.js → index-C7_F7LKb.js} +1 -1
- package/dist/{index-JNNpGY70.js → index-DG_Tv3TM.js} +1 -1
- package/dist/{index-Bq7l2vy5.js → index-DOFcxZxn.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-roF28cJy.js → index.vue_vue_type_script_setup_true_lang-DZpYH6rl.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-CrY-ksUT.js → payout-account-CbmGMzzE.js} +3 -3
- package/dist/{plugins-CI7MsCL_.js → plugins-C_ElAUdX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +184 -0
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +12 -2
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +12 -2
- package/package.json +2 -2
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as $, ref as P, computed as O, resolveComponent as f, openBlock as y, createElementBlock as
|
2
|
-
import { o as T } from "./index-
|
3
|
-
import { u as M } from "./index-
|
4
|
-
import { useRouter as
|
1
|
+
import { defineComponent as $, ref as P, computed as O, resolveComponent as f, openBlock as y, createElementBlock as q, createElementVNode as o, toDisplayString as E, Fragment as z, createBlock as j, withCtx as c, createVNode as s, createCommentVNode as I, unref as e, createTextVNode as D, onMounted as X, resolveDynamicComponent as Z } from "vue";
|
2
|
+
import { o as T } from "./index-DOFcxZxn.js";
|
3
|
+
import { u as M } from "./index-BaS5NvBk.js";
|
4
|
+
import { useRouter as h } from "vue-router";
|
5
5
|
import { z as u, a as d } from "./validator-D5jtpt9A.js";
|
6
|
-
import { P as ee } from "./payout-account-
|
6
|
+
import { P as ee } from "./payout-account-CbmGMzzE.js";
|
7
7
|
import { P as le } from "./PDFViewer-DlSCBBxr.js";
|
8
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-
|
9
|
+
import { _ as ae } from "./Status.vue_vue_type_script_setup_true_lang-DJqdH669.js";
|
10
10
|
import { useSnackbar as J } from "@feedmepos/ui-library";
|
11
11
|
import { u as A } from "./error-K1CakhA9.js";
|
12
12
|
const oe = ["src"], B = /* @__PURE__ */ $({
|
@@ -17,8 +17,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
17
17
|
type: {}
|
18
18
|
},
|
19
19
|
emits: ["update:modelValue"],
|
20
|
-
setup(
|
21
|
-
const V =
|
20
|
+
setup(R, { emit: x }) {
|
21
|
+
const V = R, b = P(V.modelValue), k = x, S = (a) => {
|
22
22
|
const r = new FileReader();
|
23
23
|
r.onload = (C) => {
|
24
24
|
var i;
|
@@ -30,19 +30,19 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
30
30
|
const r = document.createElement("a");
|
31
31
|
r.href = b.value, r.download = `${(a = V.label) == null ? void 0 : a.toLowerCase().replaceAll(" ", "_")}.pdf`, document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
32
32
|
}
|
33
|
-
},
|
33
|
+
}, F = O(() => V.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
|
34
34
|
return (a, r) => {
|
35
35
|
const C = f("FmButton"), i = f("FmDialog"), g = f("FmDropField");
|
36
|
-
return y(),
|
36
|
+
return y(), q("div", null, [
|
37
37
|
o("p", null, E(a.label), 1),
|
38
|
-
b.value ? (y(),
|
38
|
+
b.value ? (y(), q(z, { key: 0 }, [
|
39
39
|
a.type === "pdf" ? (y(), j(i, {
|
40
40
|
key: 0,
|
41
41
|
"max-width": 800,
|
42
42
|
"max-height": 800
|
43
43
|
}, {
|
44
44
|
"dialog-button": c(() => [
|
45
|
-
|
45
|
+
s(C, {
|
46
46
|
class: "mt-4",
|
47
47
|
"prepend-icon": "preview",
|
48
48
|
label: "Preview"
|
@@ -52,13 +52,13 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
52
52
|
o("div", null, "Document Preview", -1)
|
53
53
|
])),
|
54
54
|
default: c(() => [
|
55
|
-
|
55
|
+
s(le, {
|
56
56
|
height: 800,
|
57
57
|
pdf: b.value,
|
58
58
|
"disable-text-layer": !0,
|
59
59
|
"disable-annotation-layer": !0
|
60
60
|
}, null, 8, ["pdf"]),
|
61
|
-
|
61
|
+
s(C, {
|
62
62
|
class: "w-full my-6",
|
63
63
|
"prepend-icon": "download",
|
64
64
|
label: "Download",
|
@@ -67,19 +67,19 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
67
67
|
]),
|
68
68
|
_: 1
|
69
69
|
})) : I("", !0),
|
70
|
-
a.type === "image" ? (y(),
|
70
|
+
a.type === "image" ? (y(), q("img", {
|
71
71
|
key: 1,
|
72
72
|
src: b.value
|
73
73
|
}, null, 8, oe)) : I("", !0)
|
74
74
|
], 64)) : (y(), j(g, {
|
75
75
|
key: 1,
|
76
|
-
accept:
|
77
|
-
onFileUpload:
|
76
|
+
accept: F.value,
|
77
|
+
onFileUpload: S
|
78
78
|
}, null, 8, ["accept"]))
|
79
79
|
]);
|
80
80
|
};
|
81
81
|
}
|
82
|
-
}),
|
82
|
+
}), se = ["src"], ne = {
|
83
83
|
key: 0,
|
84
84
|
class: "text-center text-red-700 py-4"
|
85
85
|
}, re = { class: "flex justify-evenly py-3" }, ie = /* @__PURE__ */ $({
|
@@ -89,39 +89,39 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
89
89
|
label: {}
|
90
90
|
},
|
91
91
|
emits: ["update:modelValue"],
|
92
|
-
setup(
|
93
|
-
const V =
|
92
|
+
setup(R, { emit: x }) {
|
93
|
+
const V = R, b = x, k = P(V.modelValue), S = P(!1), m = P(), F = P(!1);
|
94
94
|
function a(C, i) {
|
95
95
|
var _;
|
96
|
-
const g = C.split(","),
|
97
|
-
let
|
98
|
-
const U = new Uint8Array(
|
99
|
-
for (;
|
100
|
-
U[
|
101
|
-
return new File([U], i, { type:
|
96
|
+
const g = C.split(","), w = ((_ = g[0].match(/:(.*?);/)) == null ? void 0 : _[1]) || "", v = atob(g[1]);
|
97
|
+
let n = v.length;
|
98
|
+
const U = new Uint8Array(n);
|
99
|
+
for (; n--; )
|
100
|
+
U[n] = v.charCodeAt(n);
|
101
|
+
return new File([U], i, { type: w });
|
102
102
|
}
|
103
103
|
const r = function() {
|
104
104
|
const { isEmpty: C, data: i } = m.value.saveSignature();
|
105
105
|
if (C)
|
106
|
-
return
|
107
|
-
k.value = i,
|
106
|
+
return S.value = !0;
|
107
|
+
k.value = i, F.value = !1, b("update:modelValue", a(i, "signature.png"));
|
108
108
|
};
|
109
109
|
return (C, i) => {
|
110
|
-
const g = f("FmButton"),
|
111
|
-
return y(),
|
112
|
-
k.value ? (y(),
|
110
|
+
const g = f("FmButton"), w = f("FmDialog");
|
111
|
+
return y(), q("div", null, [
|
112
|
+
k.value ? (y(), q("img", {
|
113
113
|
key: 0,
|
114
114
|
src: k.value,
|
115
115
|
alt: "Signature Preview",
|
116
116
|
class: "w-full h-auto"
|
117
|
-
}, null, 8,
|
118
|
-
k.value ? I("", !0) : (y(), j(
|
117
|
+
}, null, 8, se)) : I("", !0),
|
118
|
+
k.value ? I("", !0) : (y(), j(w, {
|
119
119
|
key: 1,
|
120
|
-
modelValue:
|
121
|
-
"onUpdate:modelValue": i[1] || (i[1] = (v) =>
|
120
|
+
modelValue: F.value,
|
121
|
+
"onUpdate:modelValue": i[1] || (i[1] = (v) => F.value = v)
|
122
122
|
}, {
|
123
123
|
"dialog-button": c(() => [
|
124
|
-
|
124
|
+
s(g, {
|
125
125
|
"prepend-icon": "signature",
|
126
126
|
class: "w-full",
|
127
127
|
label: "Signature"
|
@@ -131,22 +131,22 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
131
131
|
o("div", null, "Signature Board", -1)
|
132
132
|
])),
|
133
133
|
default: c(() => [
|
134
|
-
|
134
|
+
s(e(te), {
|
135
135
|
ref_key: "signaturePad",
|
136
136
|
ref: m,
|
137
137
|
height: "300px",
|
138
138
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
139
139
|
options: { penColor: "#000000" }
|
140
140
|
}, null, 512),
|
141
|
-
|
141
|
+
S.value ? (y(), q("p", ne, " Please sign your signature before saving. ")) : I("", !0),
|
142
142
|
o("div", re, [
|
143
|
-
|
143
|
+
s(g, {
|
144
144
|
variant: "destructive",
|
145
145
|
label: "Clear",
|
146
146
|
"prepend-icon": "delete",
|
147
147
|
onClick: i[0] || (i[0] = (v) => m.value.clearSignature())
|
148
148
|
}),
|
149
|
-
|
149
|
+
s(g, {
|
150
150
|
label: "Save",
|
151
151
|
"prepend-icon": "save",
|
152
152
|
onClick: r
|
@@ -158,7 +158,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
158
158
|
]);
|
159
159
|
};
|
160
160
|
}
|
161
|
-
}), 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" }, ve = { class: "mt-6 grid grid-cols-4 gap-24" }, ye = { 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" },
|
161
|
+
}), 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" }, ve = { class: "mt-6 grid grid-cols-4 gap-24" }, ye = { 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" }, Re = { class: "col-span-2" }, xe = { class: "mt-6 grid grid-cols-4 gap-24" }, Ue = { class: "mt-6 grid grid-cols-2 gap-24" }, De = /* @__PURE__ */ $({
|
162
162
|
__name: "SoftspaceSubmission",
|
163
163
|
props: {
|
164
164
|
submission: {
|
@@ -167,220 +167,220 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
167
167
|
}
|
168
168
|
},
|
169
169
|
emits: ["update:submission"],
|
170
|
-
setup(
|
171
|
-
const V =
|
172
|
-
duitNow: "0",
|
173
|
-
mydebitCard: "0",
|
174
|
-
localDebit: "0",
|
175
|
-
localCredit: "
|
176
|
-
foreignCard: "
|
177
|
-
jcbStandard: "
|
178
|
-
jcbPlatinum: "
|
170
|
+
setup(R, { emit: x }) {
|
171
|
+
const V = R, b = x, k = J(), S = P(!1), { isLoading: m, startAsyncCall: F } = M(), { fields: a, documents: r, restaurantId: C, profile: i, status: g, statusReason: w } = V.submission, v = P(""), n = P(V.submission.rates ? Object.fromEntries(Object.entries(V.submission.rates).map(([N, l]) => [N, `${l}`])) : {
|
172
|
+
duitNow: "0.8",
|
173
|
+
mydebitCard: "0.5",
|
174
|
+
localDebit: "0.5",
|
175
|
+
localCredit: "1.1",
|
176
|
+
foreignCard: "3.2",
|
177
|
+
jcbStandard: "2.2",
|
178
|
+
jcbPlatinum: "2.2"
|
179
179
|
}), U = O(
|
180
|
-
() => Object.values(
|
181
|
-
), _ = () =>
|
180
|
+
() => Object.values(n.value).every((N) => parseFloat(N) > 0)
|
181
|
+
), _ = () => F(async () => {
|
182
182
|
try {
|
183
|
-
const
|
183
|
+
const N = await T.reviewById(V.submission._id, {
|
184
184
|
rates: {
|
185
|
-
duitNow: parseFloat(
|
186
|
-
mydebitCard: parseFloat(
|
187
|
-
localDebit: parseFloat(
|
188
|
-
localCredit: parseFloat(
|
189
|
-
foreignCard: parseFloat(
|
190
|
-
jcbStandard: parseFloat(
|
191
|
-
jcbPlatinum: parseFloat(
|
185
|
+
duitNow: parseFloat(n.value.duitNow),
|
186
|
+
mydebitCard: parseFloat(n.value.mydebitCard),
|
187
|
+
localDebit: parseFloat(n.value.localDebit),
|
188
|
+
localCredit: parseFloat(n.value.localCredit),
|
189
|
+
foreignCard: parseFloat(n.value.foreignCard),
|
190
|
+
jcbStandard: parseFloat(n.value.jcbStandard),
|
191
|
+
jcbPlatinum: parseFloat(n.value.jcbPlatinum)
|
192
192
|
},
|
193
193
|
status: "approved"
|
194
194
|
});
|
195
|
-
b("update:submission",
|
195
|
+
b("update:submission", N), S.value = !1, k.open({
|
196
196
|
type: "success",
|
197
197
|
title: "Submission updated successfully"
|
198
198
|
});
|
199
|
-
} catch (
|
199
|
+
} catch (N) {
|
200
200
|
k.open({
|
201
201
|
type: "error",
|
202
202
|
title: "Error occurs when updating submission",
|
203
|
-
message: A(
|
203
|
+
message: A(N)
|
204
204
|
});
|
205
205
|
}
|
206
|
-
}), G = () =>
|
206
|
+
}), G = () => F(async () => {
|
207
207
|
try {
|
208
|
-
const
|
208
|
+
const N = await T.reviewById(V.submission._id, {
|
209
209
|
status: "rejected",
|
210
210
|
statusReason: v.value
|
211
211
|
});
|
212
|
-
b("update:submission",
|
212
|
+
b("update:submission", N), S.value = !1, k.open({
|
213
213
|
type: "success",
|
214
214
|
title: "Submission updated successfully"
|
215
215
|
});
|
216
|
-
} catch (
|
216
|
+
} catch (N) {
|
217
217
|
k.open({
|
218
218
|
type: "error",
|
219
219
|
title: "Error occurs when updating submission",
|
220
|
-
message: A(
|
220
|
+
message: A(N)
|
221
221
|
});
|
222
222
|
}
|
223
223
|
});
|
224
|
-
return (
|
225
|
-
const p = f("FmTextField"), L = f("FmButton"), K = f("FmTextarea"), Q = f("FmDialog"), Y = f("FmPhoneNumber"), H = f("FmSelect"),
|
226
|
-
return y(),
|
224
|
+
return (N, l) => {
|
225
|
+
const p = f("FmTextField"), L = f("FmButton"), K = f("FmTextarea"), Q = f("FmDialog"), Y = f("FmPhoneNumber"), H = f("FmSelect"), W = f("FmForm");
|
226
|
+
return y(), q(z, null, [
|
227
227
|
o("div", ue, [
|
228
228
|
o("div", null, [
|
229
|
-
|
229
|
+
l[32] || (l[32] = o("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
230
230
|
o("span", de, E(e(C)), 1)
|
231
231
|
]),
|
232
232
|
o("div", null, [
|
233
|
-
|
233
|
+
l[33] || (l[33] = o("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
234
234
|
o("span", me, E(e(i).name) + " ( " + E(e(i).legalName) + " )", 1)
|
235
235
|
]),
|
236
236
|
o("div", null, [
|
237
|
-
|
237
|
+
l[34] || (l[34] = o("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
238
238
|
o("span", pe, E(e(i).email), 1)
|
239
239
|
]),
|
240
240
|
o("div", null, [
|
241
|
-
|
241
|
+
l[35] || (l[35] = o("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
242
242
|
o("span", be, E(e(i).phoneNo), 1)
|
243
243
|
]),
|
244
244
|
o("div", null, [
|
245
|
-
|
245
|
+
l[36] || (l[36] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
246
246
|
o("span", ce, [
|
247
|
-
|
247
|
+
s(ae, { data: e(g) }, null, 8, ["data"])
|
248
248
|
])
|
249
249
|
]),
|
250
250
|
o("div", null, [
|
251
|
-
|
252
|
-
o("span", ge, E(e(
|
251
|
+
l[37] || (l[37] = o("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
252
|
+
o("span", ge, E(e(w)), 1)
|
253
253
|
])
|
254
254
|
]),
|
255
|
-
|
255
|
+
l[49] || (l[49] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Rate Settings ", -1)),
|
256
256
|
o("div", ve, [
|
257
|
-
|
258
|
-
modelValue:
|
259
|
-
"onUpdate:modelValue":
|
257
|
+
s(p, {
|
258
|
+
modelValue: n.value.duitNow,
|
259
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value.duitNow = t),
|
260
260
|
label: "DuitNow QR",
|
261
261
|
"label-mark": "required",
|
262
262
|
type: "number",
|
263
263
|
inputmode: "numeric",
|
264
264
|
decimal: 2,
|
265
265
|
rules: e(u)(
|
266
|
-
e(d).string().min(1, "Rate is required").transform((
|
266
|
+
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
267
267
|
)
|
268
268
|
}, {
|
269
|
-
append: c(() =>
|
269
|
+
append: c(() => l[38] || (l[38] = [
|
270
270
|
D("%")
|
271
271
|
])),
|
272
272
|
_: 1
|
273
273
|
}, 8, ["modelValue", "rules"]),
|
274
|
-
|
275
|
-
modelValue:
|
276
|
-
"onUpdate:modelValue":
|
274
|
+
s(p, {
|
275
|
+
modelValue: n.value.mydebitCard,
|
276
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => n.value.mydebitCard = t),
|
277
277
|
label: "myDebit Card",
|
278
278
|
"label-mark": "required",
|
279
279
|
type: "number",
|
280
280
|
inputmode: "numeric",
|
281
281
|
decimal: 2,
|
282
282
|
rules: e(u)(
|
283
|
-
e(d).string().min(1, "Rate is required").transform((
|
283
|
+
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
284
284
|
)
|
285
285
|
}, {
|
286
|
-
append: c(() =>
|
286
|
+
append: c(() => l[39] || (l[39] = [
|
287
287
|
D("%")
|
288
288
|
])),
|
289
289
|
_: 1
|
290
290
|
}, 8, ["modelValue", "rules"]),
|
291
|
-
|
292
|
-
modelValue:
|
293
|
-
"onUpdate:modelValue":
|
291
|
+
s(p, {
|
292
|
+
modelValue: n.value.localDebit,
|
293
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => n.value.localDebit = t),
|
294
294
|
label: "Local Debit Card",
|
295
295
|
"label-mark": "required",
|
296
296
|
type: "number",
|
297
297
|
inputmode: "numeric",
|
298
298
|
decimal: 2,
|
299
299
|
rules: e(u)(
|
300
|
-
e(d).string().min(1, "Rate is required").transform((
|
300
|
+
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
301
301
|
)
|
302
302
|
}, {
|
303
|
-
append: c(() =>
|
303
|
+
append: c(() => l[40] || (l[40] = [
|
304
304
|
D("%")
|
305
305
|
])),
|
306
306
|
_: 1
|
307
307
|
}, 8, ["modelValue", "rules"]),
|
308
|
-
|
309
|
-
modelValue:
|
310
|
-
"onUpdate:modelValue":
|
308
|
+
s(p, {
|
309
|
+
modelValue: n.value.localCredit,
|
310
|
+
"onUpdate:modelValue": l[3] || (l[3] = (t) => n.value.localCredit = t),
|
311
311
|
label: "Local Credit Card",
|
312
312
|
"label-mark": "required",
|
313
313
|
type: "number",
|
314
314
|
inputmode: "numeric",
|
315
315
|
decimal: 2,
|
316
316
|
rules: e(u)(
|
317
|
-
e(d).string().min(1, "Rate is required").transform((
|
317
|
+
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
318
318
|
)
|
319
319
|
}, {
|
320
|
-
append: c(() =>
|
320
|
+
append: c(() => l[41] || (l[41] = [
|
321
321
|
D("%")
|
322
322
|
])),
|
323
323
|
_: 1
|
324
324
|
}, 8, ["modelValue", "rules"]),
|
325
|
-
|
326
|
-
modelValue:
|
327
|
-
"onUpdate:modelValue":
|
325
|
+
s(p, {
|
326
|
+
modelValue: n.value.foreignCard,
|
327
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => n.value.foreignCard = t),
|
328
328
|
label: "Foreign Card",
|
329
329
|
"label-mark": "required",
|
330
330
|
type: "number",
|
331
331
|
inputmode: "numeric",
|
332
332
|
decimal: 2,
|
333
333
|
rules: e(u)(
|
334
|
-
e(d).string().min(1, "Rate is required").transform((
|
334
|
+
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
335
335
|
)
|
336
336
|
}, {
|
337
|
-
append: c(() =>
|
337
|
+
append: c(() => l[42] || (l[42] = [
|
338
338
|
D("%")
|
339
339
|
])),
|
340
340
|
_: 1
|
341
341
|
}, 8, ["modelValue", "rules"]),
|
342
|
-
|
343
|
-
modelValue:
|
344
|
-
"onUpdate:modelValue":
|
342
|
+
s(p, {
|
343
|
+
modelValue: n.value.jcbStandard,
|
344
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => n.value.jcbStandard = t),
|
345
345
|
label: "JCB Standard",
|
346
346
|
"label-mark": "required",
|
347
347
|
type: "number",
|
348
348
|
inputmode: "numeric",
|
349
349
|
decimal: 2,
|
350
350
|
rules: e(u)(
|
351
|
-
e(d).string().min(1, "Rate is required").transform((
|
351
|
+
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
352
352
|
)
|
353
353
|
}, {
|
354
|
-
append: c(() =>
|
354
|
+
append: c(() => l[43] || (l[43] = [
|
355
355
|
D("%")
|
356
356
|
])),
|
357
357
|
_: 1
|
358
358
|
}, 8, ["modelValue", "rules"]),
|
359
|
-
|
360
|
-
modelValue:
|
361
|
-
"onUpdate:modelValue":
|
359
|
+
s(p, {
|
360
|
+
modelValue: n.value.jcbPlatinum,
|
361
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => n.value.jcbPlatinum = t),
|
362
362
|
label: "JCB Platinum",
|
363
363
|
"label-mark": "required",
|
364
364
|
type: "number",
|
365
365
|
inputmode: "numeric",
|
366
366
|
decimal: 2,
|
367
367
|
rules: e(u)(
|
368
|
-
e(d).string().min(1, "Rate is required").transform((
|
368
|
+
e(d).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
369
369
|
)
|
370
370
|
}, {
|
371
|
-
append: c(() =>
|
371
|
+
append: c(() => l[44] || (l[44] = [
|
372
372
|
D("%")
|
373
373
|
])),
|
374
374
|
_: 1
|
375
375
|
}, 8, ["modelValue", "rules"])
|
376
376
|
]),
|
377
377
|
o("div", ye, [
|
378
|
-
|
379
|
-
modelValue:
|
380
|
-
"onUpdate:modelValue":
|
378
|
+
s(Q, {
|
379
|
+
modelValue: S.value,
|
380
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => S.value = t)
|
381
381
|
}, {
|
382
382
|
"dialog-button": c(() => [
|
383
|
-
|
383
|
+
s(L, {
|
384
384
|
class: "mr-6",
|
385
385
|
type: "button",
|
386
386
|
variant: "destructive",
|
@@ -389,18 +389,18 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
389
389
|
label: "Reject Submission"
|
390
390
|
}, null, 8, ["loading"])
|
391
391
|
]),
|
392
|
-
"dialog-header": c(() =>
|
392
|
+
"dialog-header": c(() => l[45] || (l[45] = [
|
393
393
|
o("div", null, "Rejecting Submission", -1)
|
394
394
|
])),
|
395
395
|
default: c(() => [
|
396
|
-
|
396
|
+
s(K, {
|
397
397
|
modelValue: v.value,
|
398
|
-
"onUpdate:modelValue":
|
398
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => v.value = t),
|
399
399
|
label: "Reason for Rejection",
|
400
400
|
"label-mark": "optional",
|
401
401
|
"helper-text": "Please provide a reason for rejection."
|
402
402
|
}, null, 8, ["modelValue"]),
|
403
|
-
|
403
|
+
s(L, {
|
404
404
|
class: "mb-2 mt-6 w-full",
|
405
405
|
label: "Submit",
|
406
406
|
"prepend-icon": "save",
|
@@ -410,7 +410,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
410
410
|
]),
|
411
411
|
_: 1
|
412
412
|
}, 8, ["modelValue"]),
|
413
|
-
|
413
|
+
s(L, {
|
414
414
|
type: "button",
|
415
415
|
variant: "primary",
|
416
416
|
"prepend-icon": "approval",
|
@@ -420,14 +420,14 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
420
420
|
loading: e(m)
|
421
421
|
}, null, 8, ["disabled", "loading"])
|
422
422
|
]),
|
423
|
-
|
423
|
+
s(W, { disabled: !0 }, {
|
424
424
|
default: c(() => [
|
425
|
-
|
425
|
+
l[46] || (l[46] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
426
426
|
o("div", fe, [
|
427
427
|
o("div", Ve, [
|
428
|
-
|
428
|
+
s(p, {
|
429
429
|
modelValue: e(a).picName,
|
430
|
-
"onUpdate:modelValue":
|
430
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => e(a).picName = t),
|
431
431
|
label: "PIC Name",
|
432
432
|
placeholder: "Enter your name",
|
433
433
|
"label-mark": "required",
|
@@ -435,9 +435,9 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
435
435
|
}, null, 8, ["modelValue", "rules"])
|
436
436
|
]),
|
437
437
|
o("div", ke, [
|
438
|
-
|
438
|
+
s(p, {
|
439
439
|
modelValue: e(a).picRole,
|
440
|
-
"onUpdate:modelValue":
|
440
|
+
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picRole = t),
|
441
441
|
label: "PIC Role",
|
442
442
|
placeholder: "Enter your role",
|
443
443
|
"label-mark": "required",
|
@@ -445,9 +445,9 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
445
445
|
}, null, 8, ["modelValue", "rules"])
|
446
446
|
]),
|
447
447
|
o("div", Ce, [
|
448
|
-
|
448
|
+
s(p, {
|
449
449
|
modelValue: e(a).picEmail,
|
450
|
-
"onUpdate:modelValue":
|
450
|
+
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picEmail = t),
|
451
451
|
label: "PIC Email",
|
452
452
|
type: "email",
|
453
453
|
placeholder: "Enter your email address",
|
@@ -455,64 +455,64 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
455
455
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
456
456
|
}, null, 8, ["modelValue", "rules"])
|
457
457
|
]),
|
458
|
-
o("div",
|
459
|
-
|
458
|
+
o("div", Ne, [
|
459
|
+
s(Y, {
|
460
460
|
"model-value": e(a).picContact,
|
461
|
-
"onUpdate:modelValue":
|
461
|
+
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picContact = t),
|
462
462
|
"default-country": "MY",
|
463
463
|
label: "PIC Contact",
|
464
464
|
"label-mark": "required",
|
465
465
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
466
466
|
}, null, 8, ["model-value", "rules"])
|
467
467
|
]),
|
468
|
-
o("div",
|
469
|
-
|
468
|
+
o("div", Se, [
|
469
|
+
s(p, {
|
470
470
|
modelValue: e(a).outletName,
|
471
|
-
"onUpdate:modelValue":
|
471
|
+
"onUpdate:modelValue": l[13] || (l[13] = (t) => e(a).outletName = t),
|
472
472
|
label: "Outlet Name",
|
473
473
|
placeholder: "Enter outlet name",
|
474
474
|
"label-mark": "required",
|
475
475
|
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
476
476
|
}, null, 8, ["modelValue", "rules"])
|
477
477
|
]),
|
478
|
-
o("div",
|
479
|
-
|
478
|
+
o("div", Fe, [
|
479
|
+
s(p, {
|
480
480
|
modelValue: e(a).outletAddress,
|
481
|
-
"onUpdate:modelValue":
|
481
|
+
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(a).outletAddress = t),
|
482
482
|
label: "Outlet Address",
|
483
483
|
placeholder: "Enter outlet address",
|
484
484
|
"label-mark": "required",
|
485
485
|
rules: e(u)(e(d).string().min(1, "Address is required"))
|
486
486
|
}, null, 8, ["modelValue", "rules"])
|
487
487
|
]),
|
488
|
-
|
488
|
+
s(p, {
|
489
489
|
modelValue: e(a).outletPostCode,
|
490
|
-
"onUpdate:modelValue":
|
490
|
+
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(a).outletPostCode = t),
|
491
491
|
label: "Postal Code",
|
492
492
|
placeholder: "Enter postal code",
|
493
493
|
"label-mark": "required",
|
494
494
|
rules: e(u)(e(d).string().min(1, "Postal Code is required"))
|
495
495
|
}, null, 8, ["modelValue", "rules"]),
|
496
|
-
|
496
|
+
s(p, {
|
497
497
|
modelValue: e(a).outletState,
|
498
|
-
"onUpdate:modelValue":
|
498
|
+
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(a).outletState = t),
|
499
499
|
label: "State",
|
500
500
|
placeholder: "Enter state",
|
501
501
|
"label-mark": "required",
|
502
502
|
rules: e(u)(e(d).string().min(1, "State is required"))
|
503
503
|
}, null, 8, ["modelValue", "rules"]),
|
504
|
-
|
504
|
+
s(p, {
|
505
505
|
modelValue: e(a).outletCity,
|
506
|
-
"onUpdate:modelValue":
|
506
|
+
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(a).outletCity = t),
|
507
507
|
label: "City",
|
508
508
|
placeholder: "Enter city",
|
509
509
|
"label-mark": "required",
|
510
510
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
511
511
|
}, null, 8, ["modelValue", "rules"]),
|
512
|
-
o("div",
|
513
|
-
|
512
|
+
o("div", we, [
|
513
|
+
s(H, {
|
514
514
|
modelValue: e(a).businessType,
|
515
|
-
"onUpdate:modelValue":
|
515
|
+
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(a).businessType = t),
|
516
516
|
label: "Type",
|
517
517
|
placeholder: "Select business type",
|
518
518
|
"label-mark": "required",
|
@@ -526,29 +526,29 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
526
526
|
}, null, 8, ["modelValue", "rules"])
|
527
527
|
]),
|
528
528
|
o("div", Pe, [
|
529
|
-
|
529
|
+
s(p, {
|
530
530
|
modelValue: e(a).businessRegNo,
|
531
|
-
"onUpdate:modelValue":
|
531
|
+
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(a).businessRegNo = t),
|
532
532
|
label: "Registration No",
|
533
533
|
placeholder: "Enter registration number",
|
534
534
|
"label-mark": "required",
|
535
535
|
rules: e(u)(e(d).string().min(1, "Reg No is required"))
|
536
536
|
}, null, 8, ["modelValue", "rules"])
|
537
537
|
]),
|
538
|
-
o("div",
|
539
|
-
|
538
|
+
o("div", qe, [
|
539
|
+
s(p, {
|
540
540
|
modelValue: e(a).tinNo,
|
541
|
-
"onUpdate:modelValue":
|
541
|
+
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(a).tinNo = t),
|
542
542
|
label: "Tax Identification No (TIN)",
|
543
543
|
placeholder: "Enter your TIN number",
|
544
544
|
"label-mark": "required",
|
545
545
|
rules: e(u)(e(d).string().min(1, "TIN is required"))
|
546
546
|
}, null, 8, ["modelValue", "rules"])
|
547
547
|
]),
|
548
|
-
o("div",
|
549
|
-
|
548
|
+
o("div", Re, [
|
549
|
+
s(p, {
|
550
550
|
modelValue: e(a).sstNo,
|
551
|
-
"onUpdate:modelValue":
|
551
|
+
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(a).sstNo = t),
|
552
552
|
label: "SST Registration No (SST)",
|
553
553
|
placeholder: "Enter your SST number",
|
554
554
|
"label-mark": "required",
|
@@ -556,49 +556,49 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
556
556
|
}, null, 8, ["modelValue", "rules"])
|
557
557
|
])
|
558
558
|
]),
|
559
|
-
|
559
|
+
l[47] || (l[47] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
|
560
560
|
o("div", xe, [
|
561
|
-
|
561
|
+
s(H, {
|
562
562
|
modelValue: e(a).bankName,
|
563
|
-
"onUpdate:modelValue":
|
563
|
+
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(a).bankName = t),
|
564
564
|
label: "Bank",
|
565
565
|
placeholder: "Select bank type",
|
566
566
|
"label-mark": "required",
|
567
567
|
rules: e(u)(e(d).string().min(1, "Bank Type is required")),
|
568
568
|
items: e(ee).bankNameOptions()
|
569
569
|
}, null, 8, ["modelValue", "rules", "items"]),
|
570
|
-
|
570
|
+
s(p, {
|
571
571
|
modelValue: e(a).bankHolderName,
|
572
|
-
"onUpdate:modelValue":
|
572
|
+
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(a).bankHolderName = t),
|
573
573
|
label: "Beneficiary Name",
|
574
574
|
placeholder: "Enter Beneficiary Name",
|
575
575
|
"label-mark": "required",
|
576
576
|
rules: e(u)(e(d).string().min(1, "Beneficiary Name is required"))
|
577
577
|
}, null, 8, ["modelValue", "rules"]),
|
578
|
-
|
578
|
+
s(p, {
|
579
579
|
modelValue: e(a).bankAccountNo,
|
580
|
-
"onUpdate:modelValue":
|
580
|
+
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(a).bankAccountNo = t),
|
581
581
|
label: "Account Number",
|
582
582
|
placeholder: "Enter Account Number",
|
583
583
|
"label-mark": "required",
|
584
584
|
rules: e(u)(e(d).string().min(1, "Account Number is required"))
|
585
585
|
}, null, 8, ["modelValue", "rules"]),
|
586
|
-
|
586
|
+
s(B, {
|
587
587
|
label: "Authorized Person ID",
|
588
588
|
modelValue: e(r).authorizedPersonID,
|
589
|
-
"onUpdate:modelValue":
|
589
|
+
"onUpdate:modelValue": l[25] || (l[25] = (t) => e(r).authorizedPersonID = t),
|
590
590
|
type: "image"
|
591
591
|
}, null, 8, ["modelValue"]),
|
592
|
-
|
592
|
+
s(B, {
|
593
593
|
label: "Outlet Photo",
|
594
594
|
modelValue: e(r).outletPhoto,
|
595
|
-
"onUpdate:modelValue":
|
595
|
+
"onUpdate:modelValue": l[26] || (l[26] = (t) => e(r).outletPhoto = t),
|
596
596
|
type: "image"
|
597
597
|
}, null, 8, ["modelValue"]),
|
598
|
-
|
598
|
+
s(B, {
|
599
599
|
label: "Latest Bank Statement",
|
600
600
|
modelValue: e(r).bankStatement,
|
601
|
-
"onUpdate:modelValue":
|
601
|
+
"onUpdate:modelValue": l[27] || (l[27] = (t) => e(r).bankStatement = t),
|
602
602
|
type: "pdf"
|
603
603
|
}, null, 8, ["modelValue"]),
|
604
604
|
e(a).businessType === "private_limited" || e(a).businessType === "public_limited" ? (y(), j(B, {
|
@@ -606,28 +606,28 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
606
606
|
label: "Superform",
|
607
607
|
type: "pdf",
|
608
608
|
modelValue: e(r).certificate,
|
609
|
-
"onUpdate:modelValue":
|
609
|
+
"onUpdate:modelValue": l[28] || (l[28] = (t) => e(r).certificate = t)
|
610
610
|
}, null, 8, ["modelValue"])) : I("", !0),
|
611
611
|
e(a).businessType === "sole_proprietorship" || e(a).businessType === "partnership" ? (y(), j(B, {
|
612
612
|
key: 1,
|
613
613
|
label: "SSM Certificate & Info",
|
614
614
|
type: "pdf",
|
615
615
|
modelValue: e(r).certificate,
|
616
|
-
"onUpdate:modelValue":
|
616
|
+
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(r).certificate = t)
|
617
617
|
}, null, 8, ["modelValue"])) : I("", !0)
|
618
618
|
]),
|
619
|
-
|
619
|
+
l[48] || (l[48] = o("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
620
620
|
o("div", Ue, [
|
621
|
-
|
621
|
+
s(ie, {
|
622
622
|
modelValue: e(r).signature,
|
623
|
-
"onUpdate:modelValue":
|
623
|
+
"onUpdate:modelValue": l[30] || (l[30] = (t) => e(r).signature = t),
|
624
624
|
label: "Signature"
|
625
625
|
}, null, 8, ["modelValue"]),
|
626
|
-
|
626
|
+
s(B, {
|
627
627
|
label: "Company Stamp",
|
628
628
|
type: "image",
|
629
629
|
modelValue: e(r).companyStamp,
|
630
|
-
"onUpdate:modelValue":
|
630
|
+
"onUpdate:modelValue": l[31] || (l[31] = (t) => e(r).companyStamp = t)
|
631
631
|
}, null, 8, ["modelValue"])
|
632
632
|
])
|
633
633
|
]),
|
@@ -647,14 +647,14 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
647
647
|
required: !0
|
648
648
|
}
|
649
649
|
},
|
650
|
-
setup(
|
651
|
-
const { startAsyncCall: x, isLoading: V } = M(), b = J(), k =
|
652
|
-
|
650
|
+
setup(R) {
|
651
|
+
const { startAsyncCall: x, isLoading: V } = M(), b = J(), k = R, S = h(), m = P(null);
|
652
|
+
X(() => {
|
653
653
|
x(async () => {
|
654
654
|
m.value = await T.readById(k.submissionId);
|
655
655
|
});
|
656
656
|
});
|
657
|
-
const
|
657
|
+
const F = O(() => {
|
658
658
|
if (!m.value) return null;
|
659
659
|
switch (m.value.type) {
|
660
660
|
case "softspace":
|
@@ -667,7 +667,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
667
667
|
m.value = i, a.value = Date.now();
|
668
668
|
}
|
669
669
|
const C = async (i) => {
|
670
|
-
var g,
|
670
|
+
var g, w;
|
671
671
|
if (m.value)
|
672
672
|
switch (i) {
|
673
673
|
case "preview":
|
@@ -679,11 +679,11 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
679
679
|
}), await T.previewDocument(
|
680
680
|
(g = m.value) == null ? void 0 : g._id
|
681
681
|
);
|
682
|
-
} catch (
|
682
|
+
} catch (n) {
|
683
683
|
b.open({
|
684
684
|
type: "error",
|
685
685
|
title: "Error occurs when generating submission document",
|
686
|
-
message: A(
|
686
|
+
message: A(n)
|
687
687
|
});
|
688
688
|
} finally {
|
689
689
|
v && b.close(v);
|
@@ -695,32 +695,32 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
695
695
|
message: "Sending onboarding document...",
|
696
696
|
type: "info"
|
697
697
|
}), await T.sendDocument(
|
698
|
-
(
|
698
|
+
(w = m.value) == null ? void 0 : w._id
|
699
699
|
), b.open({
|
700
700
|
type: "success",
|
701
701
|
title: "Submission documents send successfully"
|
702
702
|
});
|
703
|
-
} catch (
|
703
|
+
} catch (n) {
|
704
704
|
b.open({
|
705
705
|
type: "error",
|
706
706
|
title: "Error occurs when sending document",
|
707
|
-
message: A(
|
707
|
+
message: A(n)
|
708
708
|
});
|
709
709
|
}
|
710
710
|
break;
|
711
711
|
}
|
712
712
|
};
|
713
713
|
return (i, g) => {
|
714
|
-
var
|
715
|
-
const
|
716
|
-
return e(V) ? (y(),
|
717
|
-
|
718
|
-
])) : (y(),
|
719
|
-
|
720
|
-
title: `Submission - ${(
|
714
|
+
var n, U;
|
715
|
+
const w = f("FmCircularProgress"), v = f("FmPageHead");
|
716
|
+
return e(V) ? (y(), q("div", Ee, [
|
717
|
+
s(w, { size: "xxl" })
|
718
|
+
])) : (y(), q(z, { key: 1 }, [
|
719
|
+
s(v, {
|
720
|
+
title: `Submission - ${(n = m.value) == null ? void 0 : n.type}`,
|
721
721
|
description: `ID - ${(U = m.value) == null ? void 0 : U._id}`,
|
722
722
|
"back-button": !0,
|
723
|
-
"onClick:back": g[0] || (g[0] = () => e(
|
723
|
+
"onClick:back": g[0] || (g[0] = () => e(S).back()),
|
724
724
|
"onClick:action": C,
|
725
725
|
actions: [
|
726
726
|
{
|
@@ -737,7 +737,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
737
737
|
]
|
738
738
|
}, null, 8, ["title", "description"]),
|
739
739
|
o("div", Ie, [
|
740
|
-
(y(), j(
|
740
|
+
(y(), j(Z(F.value), {
|
741
741
|
key: a.value,
|
742
742
|
submission: m.value,
|
743
743
|
"onUpdate:submission": r
|