@feedmepos/mf-payment 1.3.1 → 1.3.3
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-Ci-MOxt6.js → OnboardForm-C5nUtZO_.js} +132 -131
- package/dist/{OnboardForm-DrKfhe4F.js → OnboardForm-DTRmaj9L.js} +154 -153
- package/dist/{OnboardSubmission-BhHD6quL.js → OnboardSubmission-8tkTVlht.js} +1 -1
- package/dist/{OnboardSubmission-WkGYHTti.js → OnboardSubmission-xPnZcrmA.js} +1 -1
- package/dist/{PayoutAccount-C2kWbALj.js → PayoutAccount-CSOKcgIP.js} +3 -3
- package/dist/{PayoutAccount-CIItr-ru.js → PayoutAccount-tO_wZfTt.js} +1 -1
- package/dist/{app-D_nJ0bPY.js → app-T_M9ajBn.js} +6 -6
- package/dist/app.js +1 -1
- package/dist/{index-BF2tC_f4.js → index-sgLhHJjg.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-B0OvJ2_h.js → payout-account-59dfXB3Z.js} +2 -2
- package/dist/{plugins-ewG_w1UY.js → plugins-BTjb8IwB.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/vue-signature-pad.esm-IXPjf4fL.js +460 -0
- package/package.json +1 -1
@@ -1,14 +1,15 @@
|
|
1
|
-
import { defineComponent as $, ref as w, computed as L, resolveComponent as
|
2
|
-
import { o as
|
1
|
+
import { defineComponent as $, ref as w, computed as L, resolveComponent as f, openBlock as v, createElementBlock as N, createElementVNode as a, toDisplayString as D, Fragment as z, createBlock as j, withCtx as c, createVNode as s, createCommentVNode as E, unref as e, createTextVNode as I, onMounted as X, resolveDynamicComponent as Z } from "vue";
|
2
|
+
import { o as T } from "./index-sgLhHJjg.js";
|
3
3
|
import { u as M } from "./index-eNSd1RuW.js";
|
4
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-59dfXB3Z.js";
|
7
7
|
import { P as le } from "./PDFViewer-DlSCBBxr.js";
|
8
|
-
import {
|
8
|
+
import { s as te } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
9
|
+
import { _ as oe } from "./Status.vue_vue_type_script_setup_true_lang-BumKpo4s.js";
|
9
10
|
import { useSnackbar as J } from "@feedmepos/ui-library";
|
10
11
|
import { u as A } from "./error-K1CakhA9.js";
|
11
|
-
const
|
12
|
+
const ae = ["src"], B = /* @__PURE__ */ $({
|
12
13
|
__name: "UploadButton",
|
13
14
|
props: {
|
14
15
|
modelValue: {},
|
@@ -17,7 +18,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
17
18
|
},
|
18
19
|
emits: ["update:modelValue"],
|
19
20
|
setup(x, { emit: U }) {
|
20
|
-
const S = x, b = w(S.modelValue), k = U,
|
21
|
+
const S = x, b = w(S.modelValue), k = U, P = (g) => {
|
21
22
|
const o = new FileReader();
|
22
23
|
o.onload = (i) => {
|
23
24
|
var C;
|
@@ -25,16 +26,16 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
25
26
|
}, o.readAsDataURL(g);
|
26
27
|
}, m = L(() => S.type === "image" ? ".png, .jpg, .jpeg" : ".pdf");
|
27
28
|
return (g, o) => {
|
28
|
-
const i =
|
29
|
+
const i = f("FmButton"), C = f("FmDialog"), r = f("FmDropField");
|
29
30
|
return v(), N("div", null, [
|
30
31
|
a("p", null, D(g.label), 1),
|
31
32
|
b.value ? (v(), N(z, { key: 0 }, [
|
32
|
-
g.type === "pdf" ? (v(),
|
33
|
+
g.type === "pdf" ? (v(), j(C, {
|
33
34
|
key: 0,
|
34
35
|
'"': ""
|
35
36
|
}, {
|
36
37
|
"dialog-button": c(() => [
|
37
|
-
|
38
|
+
s(i, {
|
38
39
|
class: "mt-4",
|
39
40
|
"prepend-icon": "preview",
|
40
41
|
label: "Preview"
|
@@ -44,7 +45,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
44
45
|
a("div", null, "Document Preview", -1)
|
45
46
|
])),
|
46
47
|
default: c(() => [
|
47
|
-
|
48
|
+
s(le, {
|
48
49
|
height: 450,
|
49
50
|
pdf: b.value,
|
50
51
|
"disable-text-layer": !0,
|
@@ -56,19 +57,19 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
56
57
|
g.type === "image" ? (v(), N("img", {
|
57
58
|
key: 1,
|
58
59
|
src: b.value
|
59
|
-
}, null, 8,
|
60
|
-
], 64)) : (v(),
|
60
|
+
}, null, 8, ae)) : E("", !0)
|
61
|
+
], 64)) : (v(), j(r, {
|
61
62
|
key: 1,
|
62
63
|
accept: m.value,
|
63
|
-
onFileUpload:
|
64
|
+
onFileUpload: P
|
64
65
|
}, null, 8, ["accept"]))
|
65
66
|
]);
|
66
67
|
};
|
67
68
|
}
|
68
|
-
}),
|
69
|
+
}), se = ["src"], ne = {
|
69
70
|
key: 0,
|
70
71
|
class: "text-center text-red-700 py-4"
|
71
|
-
},
|
72
|
+
}, re = { class: "flex justify-evenly py-3" }, ie = /* @__PURE__ */ $({
|
72
73
|
__name: "SignatureBoard",
|
73
74
|
props: {
|
74
75
|
modelValue: {},
|
@@ -76,38 +77,38 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
76
77
|
},
|
77
78
|
emits: ["update:modelValue"],
|
78
79
|
setup(x, { emit: U }) {
|
79
|
-
const S = x, b = U, k = w(S.modelValue),
|
80
|
+
const S = x, b = U, k = w(S.modelValue), P = w(!1), m = w(), g = w(!1);
|
80
81
|
function o(C, r) {
|
81
|
-
var
|
82
|
-
const V = C.split(","), q = ((
|
83
|
-
let
|
84
|
-
const R = new Uint8Array(
|
85
|
-
for (;
|
86
|
-
R[
|
82
|
+
var _;
|
83
|
+
const V = C.split(","), q = ((_ = V[0].match(/:(.*?);/)) == null ? void 0 : _[1]) || "", y = atob(V[1]);
|
84
|
+
let n = y.length;
|
85
|
+
const R = new Uint8Array(n);
|
86
|
+
for (; n--; )
|
87
|
+
R[n] = y.charCodeAt(n);
|
87
88
|
return new File([R], r, { type: q });
|
88
89
|
}
|
89
90
|
const i = function() {
|
90
91
|
const { isEmpty: C, data: r } = m.value.saveSignature();
|
91
92
|
if (C)
|
92
|
-
return
|
93
|
+
return P.value = !0;
|
93
94
|
k.value = r, g.value = !1, b("update:modelValue", o(r, "signature.png"));
|
94
95
|
};
|
95
96
|
return (C, r) => {
|
96
|
-
const V =
|
97
|
+
const V = f("FmButton"), q = f("FmDialog");
|
97
98
|
return v(), N("div", null, [
|
98
99
|
k.value ? (v(), N("img", {
|
99
100
|
key: 0,
|
100
101
|
src: k.value,
|
101
102
|
alt: "Signature Preview",
|
102
103
|
class: "w-full h-auto"
|
103
|
-
}, null, 8,
|
104
|
-
k.value ? E("", !0) : (v(),
|
104
|
+
}, null, 8, se)) : E("", !0),
|
105
|
+
k.value ? E("", !0) : (v(), j(q, {
|
105
106
|
key: 1,
|
106
107
|
modelValue: g.value,
|
107
|
-
"onUpdate:modelValue": r[1] || (r[1] = (
|
108
|
+
"onUpdate:modelValue": r[1] || (r[1] = (y) => g.value = y)
|
108
109
|
}, {
|
109
110
|
"dialog-button": c(() => [
|
110
|
-
|
111
|
+
s(V, {
|
111
112
|
"prepend-icon": "signature",
|
112
113
|
class: "w-full",
|
113
114
|
label: "Signature"
|
@@ -117,22 +118,22 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
117
118
|
a("div", null, "Signature Board", -1)
|
118
119
|
])),
|
119
120
|
default: c(() => [
|
120
|
-
|
121
|
+
s(e(te), {
|
121
122
|
ref_key: "signaturePad",
|
122
123
|
ref: m,
|
123
124
|
height: "300px",
|
124
125
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
125
126
|
options: { penColor: "#000000" }
|
126
127
|
}, null, 512),
|
127
|
-
|
128
|
-
a("div",
|
129
|
-
|
128
|
+
P.value ? (v(), N("p", ne, " Please sign your signature before saving. ")) : E("", !0),
|
129
|
+
a("div", re, [
|
130
|
+
s(V, {
|
130
131
|
variant: "destructive",
|
131
132
|
label: "Clear",
|
132
133
|
"prepend-icon": "delete",
|
133
|
-
onClick: r[0] || (r[0] = (
|
134
|
+
onClick: r[0] || (r[0] = (y) => m.value.clearSignature())
|
134
135
|
}),
|
135
|
-
|
136
|
+
s(V, {
|
136
137
|
label: "Save",
|
137
138
|
"prepend-icon": "save",
|
138
139
|
onClick: i
|
@@ -144,7 +145,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
144
145
|
]);
|
145
146
|
};
|
146
147
|
}
|
147
|
-
}),
|
148
|
+
}), 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" }, Ve = { class: "mt-6 grid grid-cols-4 gap-24" }, fe = { class: "col-span-2" }, ke = { class: "col-span-2" }, Ce = { class: "col-span-2" }, Se = { class: "col-span-2" }, Fe = { class: "col-span-2" }, Pe = { class: "col-span-2" }, qe = { class: "col-start-1 col-span-2" }, we = { class: "col-span-2" }, Ne = { class: "col-span-2" }, xe = { class: "col-span-2" }, Ue = { class: "mt-6 grid grid-cols-4 gap-24" }, Re = { class: "mt-6 grid grid-cols-2 gap-24" }, De = /* @__PURE__ */ $({
|
148
149
|
__name: "SoftspaceSubmission",
|
149
150
|
props: {
|
150
151
|
submission: {
|
@@ -154,7 +155,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
154
155
|
},
|
155
156
|
emits: ["update:submission"],
|
156
157
|
setup(x, { emit: U }) {
|
157
|
-
const S = x, b = U, k = J(),
|
158
|
+
const S = x, b = U, k = J(), P = w(!1), { isLoading: m, startAsyncCall: g } = M(), { fields: o, documents: i, restaurantId: C, profile: r, status: V, statusReason: q } = S.submission, y = w(""), n = w(S.submission.rates ? Object.fromEntries(Object.entries(S.submission.rates).map(([F, l]) => [F, `${l}`])) : {
|
158
159
|
mydebitCard: "0",
|
159
160
|
localDebit: "0",
|
160
161
|
localCredit: "0",
|
@@ -162,85 +163,85 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
162
163
|
jcbStandard: "0",
|
163
164
|
jcbPlatinum: "0"
|
164
165
|
}), R = L(
|
165
|
-
() => Object.values(
|
166
|
-
),
|
166
|
+
() => Object.values(n.value).every((F) => parseFloat(F) > 0)
|
167
|
+
), _ = () => g(async () => {
|
167
168
|
try {
|
168
|
-
const
|
169
|
+
const F = await T.reviewById(S.submission._id, {
|
169
170
|
rates: {
|
170
|
-
mydebitCard: parseFloat(
|
171
|
-
localDebit: parseFloat(
|
172
|
-
localCredit: parseFloat(
|
173
|
-
foreignCard: parseFloat(
|
174
|
-
jcbStandard: parseFloat(
|
175
|
-
jcbPlatinum: parseFloat(
|
171
|
+
mydebitCard: parseFloat(n.value.mydebitCard),
|
172
|
+
localDebit: parseFloat(n.value.localDebit),
|
173
|
+
localCredit: parseFloat(n.value.localCredit),
|
174
|
+
foreignCard: parseFloat(n.value.foreignCard),
|
175
|
+
jcbStandard: parseFloat(n.value.jcbStandard),
|
176
|
+
jcbPlatinum: parseFloat(n.value.jcbPlatinum)
|
176
177
|
},
|
177
178
|
status: "approved"
|
178
179
|
});
|
179
|
-
b("update:submission",
|
180
|
+
b("update:submission", F), P.value = !1, k.open({
|
180
181
|
type: "success",
|
181
182
|
title: "Submission updated successfully"
|
182
183
|
});
|
183
|
-
} catch (
|
184
|
+
} catch (F) {
|
184
185
|
k.open({
|
185
186
|
type: "error",
|
186
187
|
title: "Error occurs when updating submission",
|
187
|
-
message: A(
|
188
|
+
message: A(F)
|
188
189
|
});
|
189
190
|
}
|
190
191
|
}), G = () => g(async () => {
|
191
192
|
try {
|
192
|
-
const
|
193
|
+
const F = await T.reviewById(S.submission._id, {
|
193
194
|
status: "rejected",
|
194
|
-
statusReason:
|
195
|
+
statusReason: y.value
|
195
196
|
});
|
196
|
-
b("update:submission",
|
197
|
+
b("update:submission", F), P.value = !1, k.open({
|
197
198
|
type: "success",
|
198
199
|
title: "Submission updated successfully"
|
199
200
|
});
|
200
|
-
} catch (
|
201
|
+
} catch (F) {
|
201
202
|
k.open({
|
202
203
|
type: "error",
|
203
204
|
title: "Error occurs when updating submission",
|
204
|
-
message: A(
|
205
|
+
message: A(F)
|
205
206
|
});
|
206
207
|
}
|
207
208
|
});
|
208
|
-
return (
|
209
|
-
const p =
|
209
|
+
return (F, l) => {
|
210
|
+
const p = f("FmTextField"), O = f("FmButton"), K = f("FmTextarea"), Y = f("FmDialog"), Q = f("FmPhoneNumber"), H = f("FmSelect"), W = f("FmForm");
|
210
211
|
return v(), N(z, null, [
|
211
|
-
a("div",
|
212
|
+
a("div", ue, [
|
212
213
|
a("div", null, [
|
213
214
|
l[31] || (l[31] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
214
|
-
a("span",
|
215
|
+
a("span", de, D(e(C)), 1)
|
215
216
|
]),
|
216
217
|
a("div", null, [
|
217
218
|
l[32] || (l[32] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
218
|
-
a("span",
|
219
|
+
a("span", me, D(e(r).name) + " ( " + D(e(r).legalName) + " )", 1)
|
219
220
|
]),
|
220
221
|
a("div", null, [
|
221
222
|
l[33] || (l[33] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
222
|
-
a("span",
|
223
|
+
a("span", pe, D(e(r).email), 1)
|
223
224
|
]),
|
224
225
|
a("div", null, [
|
225
226
|
l[34] || (l[34] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
226
|
-
a("span",
|
227
|
+
a("span", be, D(e(r).phoneNo), 1)
|
227
228
|
]),
|
228
229
|
a("div", null, [
|
229
230
|
l[35] || (l[35] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
230
|
-
a("span",
|
231
|
-
|
231
|
+
a("span", ce, [
|
232
|
+
s(oe, { data: e(V) }, null, 8, ["data"])
|
232
233
|
])
|
233
234
|
]),
|
234
235
|
a("div", null, [
|
235
236
|
l[36] || (l[36] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
236
|
-
a("span",
|
237
|
+
a("span", ge, D(e(q)), 1)
|
237
238
|
])
|
238
239
|
]),
|
239
240
|
l[47] || (l[47] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Rate Settings ", -1)),
|
240
|
-
a("div",
|
241
|
-
|
242
|
-
modelValue:
|
243
|
-
"onUpdate:modelValue": l[0] || (l[0] = (t) =>
|
241
|
+
a("div", ye, [
|
242
|
+
s(p, {
|
243
|
+
modelValue: n.value.mydebitCard,
|
244
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value.mydebitCard = t),
|
244
245
|
label: "myDebit Card",
|
245
246
|
"label-mark": "required",
|
246
247
|
type: "number",
|
@@ -253,9 +254,9 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
253
254
|
])),
|
254
255
|
_: 1
|
255
256
|
}, 8, ["modelValue", "rules"]),
|
256
|
-
|
257
|
-
modelValue:
|
258
|
-
"onUpdate:modelValue": l[1] || (l[1] = (t) =>
|
257
|
+
s(p, {
|
258
|
+
modelValue: n.value.localDebit,
|
259
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => n.value.localDebit = t),
|
259
260
|
label: "Local Debit Card",
|
260
261
|
"label-mark": "required",
|
261
262
|
type: "number",
|
@@ -268,9 +269,9 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
268
269
|
])),
|
269
270
|
_: 1
|
270
271
|
}, 8, ["modelValue", "rules"]),
|
271
|
-
|
272
|
-
modelValue:
|
273
|
-
"onUpdate:modelValue": l[2] || (l[2] = (t) =>
|
272
|
+
s(p, {
|
273
|
+
modelValue: n.value.localCredit,
|
274
|
+
"onUpdate:modelValue": l[2] || (l[2] = (t) => n.value.localCredit = t),
|
274
275
|
label: "Local Credit Card",
|
275
276
|
"label-mark": "required",
|
276
277
|
type: "number",
|
@@ -283,9 +284,9 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
283
284
|
])),
|
284
285
|
_: 1
|
285
286
|
}, 8, ["modelValue", "rules"]),
|
286
|
-
|
287
|
-
modelValue:
|
288
|
-
"onUpdate:modelValue": l[3] || (l[3] = (t) =>
|
287
|
+
s(p, {
|
288
|
+
modelValue: n.value.foreignCard,
|
289
|
+
"onUpdate:modelValue": l[3] || (l[3] = (t) => n.value.foreignCard = t),
|
289
290
|
label: "Foreign Card",
|
290
291
|
"label-mark": "required",
|
291
292
|
type: "number",
|
@@ -298,9 +299,9 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
298
299
|
])),
|
299
300
|
_: 1
|
300
301
|
}, 8, ["modelValue", "rules"]),
|
301
|
-
|
302
|
-
modelValue:
|
303
|
-
"onUpdate:modelValue": l[4] || (l[4] = (t) =>
|
302
|
+
s(p, {
|
303
|
+
modelValue: n.value.jcbStandard,
|
304
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => n.value.jcbStandard = t),
|
304
305
|
label: "JCB Standard",
|
305
306
|
"label-mark": "required",
|
306
307
|
type: "number",
|
@@ -313,9 +314,9 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
313
314
|
])),
|
314
315
|
_: 1
|
315
316
|
}, 8, ["modelValue", "rules"]),
|
316
|
-
|
317
|
-
modelValue:
|
318
|
-
"onUpdate:modelValue": l[5] || (l[5] = (t) =>
|
317
|
+
s(p, {
|
318
|
+
modelValue: n.value.jcbPlatinum,
|
319
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => n.value.jcbPlatinum = t),
|
319
320
|
label: "JCB Platinum",
|
320
321
|
"label-mark": "required",
|
321
322
|
type: "number",
|
@@ -329,13 +330,13 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
329
330
|
_: 1
|
330
331
|
}, 8, ["modelValue", "rules"])
|
331
332
|
]),
|
332
|
-
a("div",
|
333
|
-
|
334
|
-
modelValue:
|
335
|
-
"onUpdate:modelValue": l[7] || (l[7] = (t) =>
|
333
|
+
a("div", ve, [
|
334
|
+
s(Y, {
|
335
|
+
modelValue: P.value,
|
336
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => P.value = t)
|
336
337
|
}, {
|
337
338
|
"dialog-button": c(() => [
|
338
|
-
|
339
|
+
s(O, {
|
339
340
|
class: "mr-6",
|
340
341
|
type: "button",
|
341
342
|
variant: "destructive",
|
@@ -348,14 +349,14 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
348
349
|
a("div", null, "Rejecting Submission", -1)
|
349
350
|
])),
|
350
351
|
default: c(() => [
|
351
|
-
|
352
|
-
modelValue:
|
353
|
-
"onUpdate:modelValue": l[6] || (l[6] = (t) =>
|
352
|
+
s(K, {
|
353
|
+
modelValue: y.value,
|
354
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => y.value = t),
|
354
355
|
label: "Reason for Rejection",
|
355
356
|
"label-mark": "optional",
|
356
357
|
"helper-text": "Please provide a reason for rejection."
|
357
358
|
}, null, 8, ["modelValue"]),
|
358
|
-
|
359
|
+
s(O, {
|
359
360
|
class: "mb-2 mt-6 w-full",
|
360
361
|
label: "Submit",
|
361
362
|
"prepend-icon": "save",
|
@@ -365,22 +366,22 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
365
366
|
]),
|
366
367
|
_: 1
|
367
368
|
}, 8, ["modelValue"]),
|
368
|
-
|
369
|
+
s(O, {
|
369
370
|
type: "button",
|
370
371
|
variant: "primary",
|
371
372
|
"prepend-icon": "approval",
|
372
373
|
disabled: !R.value,
|
373
374
|
label: "Approve Submission with Rates",
|
374
|
-
onClick:
|
375
|
+
onClick: _,
|
375
376
|
loading: e(m)
|
376
377
|
}, null, 8, ["disabled", "loading"])
|
377
378
|
]),
|
378
|
-
|
379
|
+
s(W, { disabled: !0 }, {
|
379
380
|
default: c(() => [
|
380
381
|
l[44] || (l[44] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
381
|
-
a("div",
|
382
|
-
a("div",
|
383
|
-
|
382
|
+
a("div", Ve, [
|
383
|
+
a("div", fe, [
|
384
|
+
s(p, {
|
384
385
|
modelValue: e(o).picName,
|
385
386
|
"onUpdate:modelValue": l[8] || (l[8] = (t) => e(o).picName = t),
|
386
387
|
label: "PIC Name",
|
@@ -389,8 +390,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
389
390
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
390
391
|
}, null, 8, ["modelValue", "rules"])
|
391
392
|
]),
|
392
|
-
a("div",
|
393
|
-
|
393
|
+
a("div", ke, [
|
394
|
+
s(p, {
|
394
395
|
modelValue: e(o).picRole,
|
395
396
|
"onUpdate:modelValue": l[9] || (l[9] = (t) => e(o).picRole = t),
|
396
397
|
label: "PIC Role",
|
@@ -399,8 +400,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
399
400
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
400
401
|
}, null, 8, ["modelValue", "rules"])
|
401
402
|
]),
|
402
|
-
a("div",
|
403
|
-
|
403
|
+
a("div", Ce, [
|
404
|
+
s(p, {
|
404
405
|
modelValue: e(o).picEmail,
|
405
406
|
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(o).picEmail = t),
|
406
407
|
label: "PIC Email",
|
@@ -410,8 +411,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
410
411
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
411
412
|
}, null, 8, ["modelValue", "rules"])
|
412
413
|
]),
|
413
|
-
a("div",
|
414
|
-
|
414
|
+
a("div", Se, [
|
415
|
+
s(Q, {
|
415
416
|
"model-value": e(o).picContact,
|
416
417
|
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(o).picContact = t),
|
417
418
|
"default-country": "MY",
|
@@ -420,8 +421,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
420
421
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
421
422
|
}, null, 8, ["model-value", "rules"])
|
422
423
|
]),
|
423
|
-
a("div",
|
424
|
-
|
424
|
+
a("div", Fe, [
|
425
|
+
s(p, {
|
425
426
|
modelValue: e(o).outletName,
|
426
427
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(o).outletName = t),
|
427
428
|
label: "Outlet Name",
|
@@ -431,7 +432,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
431
432
|
}, null, 8, ["modelValue", "rules"])
|
432
433
|
]),
|
433
434
|
a("div", Pe, [
|
434
|
-
|
435
|
+
s(p, {
|
435
436
|
modelValue: e(o).outletAddress,
|
436
437
|
"onUpdate:modelValue": l[13] || (l[13] = (t) => e(o).outletAddress = t),
|
437
438
|
label: "Outlet Address",
|
@@ -440,7 +441,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
440
441
|
rules: e(u)(e(d).string().min(1, "Address is required"))
|
441
442
|
}, null, 8, ["modelValue", "rules"])
|
442
443
|
]),
|
443
|
-
|
444
|
+
s(p, {
|
444
445
|
modelValue: e(o).outletPostCode,
|
445
446
|
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(o).outletPostCode = t),
|
446
447
|
label: "Postal Code",
|
@@ -448,7 +449,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
448
449
|
"label-mark": "required",
|
449
450
|
rules: e(u)(e(d).string().min(1, "Postal Code is required"))
|
450
451
|
}, null, 8, ["modelValue", "rules"]),
|
451
|
-
|
452
|
+
s(p, {
|
452
453
|
modelValue: e(o).outletState,
|
453
454
|
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(o).outletState = t),
|
454
455
|
label: "State",
|
@@ -456,7 +457,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
456
457
|
"label-mark": "required",
|
457
458
|
rules: e(u)(e(d).string().min(1, "State is required"))
|
458
459
|
}, null, 8, ["modelValue", "rules"]),
|
459
|
-
|
460
|
+
s(p, {
|
460
461
|
modelValue: e(o).outletCity,
|
461
462
|
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(o).outletCity = t),
|
462
463
|
label: "City",
|
@@ -464,8 +465,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
464
465
|
"label-mark": "required",
|
465
466
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
466
467
|
}, null, 8, ["modelValue", "rules"]),
|
467
|
-
a("div",
|
468
|
-
|
468
|
+
a("div", qe, [
|
469
|
+
s(H, {
|
469
470
|
modelValue: e(o).businessType,
|
470
471
|
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(o).businessType = t),
|
471
472
|
label: "Type",
|
@@ -480,8 +481,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
480
481
|
]
|
481
482
|
}, null, 8, ["modelValue", "rules"])
|
482
483
|
]),
|
483
|
-
a("div",
|
484
|
-
|
484
|
+
a("div", we, [
|
485
|
+
s(p, {
|
485
486
|
modelValue: e(o).businessRegNo,
|
486
487
|
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(o).businessRegNo = t),
|
487
488
|
label: "Registration No",
|
@@ -490,8 +491,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
490
491
|
rules: e(u)(e(d).string().min(1, "Reg No is required"))
|
491
492
|
}, null, 8, ["modelValue", "rules"])
|
492
493
|
]),
|
493
|
-
a("div",
|
494
|
-
|
494
|
+
a("div", Ne, [
|
495
|
+
s(p, {
|
495
496
|
modelValue: e(o).tinNo,
|
496
497
|
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(o).tinNo = t),
|
497
498
|
label: "Tax Identification No (TIN)",
|
@@ -500,8 +501,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
500
501
|
rules: e(u)(e(d).string().min(1, "TIN is required"))
|
501
502
|
}, null, 8, ["modelValue", "rules"])
|
502
503
|
]),
|
503
|
-
a("div",
|
504
|
-
|
504
|
+
a("div", xe, [
|
505
|
+
s(p, {
|
505
506
|
modelValue: e(o).sstNo,
|
506
507
|
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(o).sstNo = t),
|
507
508
|
label: "SST Registration No (SST)",
|
@@ -512,8 +513,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
512
513
|
])
|
513
514
|
]),
|
514
515
|
l[45] || (l[45] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
|
515
|
-
a("div",
|
516
|
-
|
516
|
+
a("div", Ue, [
|
517
|
+
s(H, {
|
517
518
|
modelValue: e(o).bankName,
|
518
519
|
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(o).bankName = t),
|
519
520
|
label: "Bank",
|
@@ -522,7 +523,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
522
523
|
rules: e(u)(e(d).string().min(1, "Bank Type is required")),
|
523
524
|
items: e(ee).bankNameOptions()
|
524
525
|
}, null, 8, ["modelValue", "rules", "items"]),
|
525
|
-
|
526
|
+
s(p, {
|
526
527
|
modelValue: e(o).bankHolderName,
|
527
528
|
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(o).bankHolderName = t),
|
528
529
|
label: "Beneficiary Name",
|
@@ -530,7 +531,7 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
530
531
|
"label-mark": "required",
|
531
532
|
rules: e(u)(e(d).string().min(1, "Beneficiary Name is required"))
|
532
533
|
}, null, 8, ["modelValue", "rules"]),
|
533
|
-
|
534
|
+
s(p, {
|
534
535
|
modelValue: e(o).bankAccountNo,
|
535
536
|
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(o).bankAccountNo = t),
|
536
537
|
label: "Account Number",
|
@@ -538,32 +539,32 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
538
539
|
"label-mark": "required",
|
539
540
|
rules: e(u)(e(d).string().min(1, "Account Number is required"))
|
540
541
|
}, null, 8, ["modelValue", "rules"]),
|
541
|
-
|
542
|
+
s(B, {
|
542
543
|
label: "Authorized Person ID",
|
543
544
|
modelValue: e(i).authorizedPersonID,
|
544
545
|
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(i).authorizedPersonID = t),
|
545
546
|
type: "image"
|
546
547
|
}, null, 8, ["modelValue"]),
|
547
|
-
|
548
|
+
s(B, {
|
548
549
|
label: "Outlet Photo",
|
549
550
|
modelValue: e(i).outletPhoto,
|
550
551
|
"onUpdate:modelValue": l[25] || (l[25] = (t) => e(i).outletPhoto = t),
|
551
552
|
type: "image"
|
552
553
|
}, null, 8, ["modelValue"]),
|
553
|
-
|
554
|
+
s(B, {
|
554
555
|
label: "Latest Bank Statement",
|
555
556
|
modelValue: e(i).bankStatement,
|
556
557
|
"onUpdate:modelValue": l[26] || (l[26] = (t) => e(i).bankStatement = t),
|
557
558
|
type: "pdf"
|
558
559
|
}, null, 8, ["modelValue"]),
|
559
|
-
e(o).businessType === "private_limited" || e(o).businessType === "public_limited" ? (v(),
|
560
|
+
e(o).businessType === "private_limited" || e(o).businessType === "public_limited" ? (v(), j(B, {
|
560
561
|
key: 0,
|
561
562
|
label: "Superform",
|
562
563
|
type: "pdf",
|
563
564
|
modelValue: e(i).certificate,
|
564
565
|
"onUpdate:modelValue": l[27] || (l[27] = (t) => e(i).certificate = t)
|
565
566
|
}, null, 8, ["modelValue"])) : E("", !0),
|
566
|
-
e(o).businessType === "sole_proprietorship" || e(o).businessType === "partnership" ? (v(),
|
567
|
+
e(o).businessType === "sole_proprietorship" || e(o).businessType === "partnership" ? (v(), j(B, {
|
567
568
|
key: 1,
|
568
569
|
label: "SSM Certificate & Info",
|
569
570
|
type: "pdf",
|
@@ -572,13 +573,13 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
572
573
|
}, null, 8, ["modelValue"])) : E("", !0)
|
573
574
|
]),
|
574
575
|
l[46] || (l[46] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
575
|
-
a("div",
|
576
|
-
|
576
|
+
a("div", Re, [
|
577
|
+
s(ie, {
|
577
578
|
modelValue: e(i).signature,
|
578
579
|
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(i).signature = t),
|
579
580
|
label: "Signature"
|
580
581
|
}, null, 8, ["modelValue"]),
|
581
|
-
|
582
|
+
s(B, {
|
582
583
|
label: "Company Stamp",
|
583
584
|
type: "image",
|
584
585
|
modelValue: e(i).companyStamp,
|
@@ -591,10 +592,10 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
591
592
|
], 64);
|
592
593
|
};
|
593
594
|
}
|
594
|
-
}),
|
595
|
+
}), Ee = {
|
595
596
|
key: 0,
|
596
597
|
class: "flex items-center justify-center min-h-[80vh]"
|
597
|
-
},
|
598
|
+
}, Ie = { class: "px-32 pb-32" }, Je = /* @__PURE__ */ $({
|
598
599
|
__name: "OnboardForm",
|
599
600
|
props: {
|
600
601
|
submissionId: {
|
@@ -603,17 +604,17 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
603
604
|
}
|
604
605
|
},
|
605
606
|
setup(x) {
|
606
|
-
const { startAsyncCall: U, isLoading: S } = M(), b = J(), k = x,
|
607
|
+
const { startAsyncCall: U, isLoading: S } = M(), b = J(), k = x, P = h(), m = w(null);
|
607
608
|
X(() => {
|
608
609
|
U(async () => {
|
609
|
-
m.value = await
|
610
|
+
m.value = await T.readById(k.submissionId);
|
610
611
|
});
|
611
612
|
});
|
612
613
|
const g = L(() => {
|
613
614
|
if (!m.value) return null;
|
614
615
|
switch (m.value.type) {
|
615
616
|
case "softspace":
|
616
|
-
return
|
617
|
+
return De;
|
617
618
|
default:
|
618
619
|
return null;
|
619
620
|
}
|
@@ -626,22 +627,22 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
626
627
|
if (m.value)
|
627
628
|
switch (r) {
|
628
629
|
case "preview":
|
629
|
-
let
|
630
|
+
let y;
|
630
631
|
try {
|
631
|
-
|
632
|
+
y = b.open({
|
632
633
|
message: "Generating preview document...",
|
633
634
|
type: "info"
|
634
|
-
}), await
|
635
|
+
}), await T.previewDocument(
|
635
636
|
(V = m.value) == null ? void 0 : V._id
|
636
637
|
);
|
637
|
-
} catch (
|
638
|
+
} catch (n) {
|
638
639
|
b.open({
|
639
640
|
type: "error",
|
640
641
|
title: "Error occurs when generating submission document",
|
641
|
-
message: A(
|
642
|
+
message: A(n)
|
642
643
|
});
|
643
644
|
} finally {
|
644
|
-
|
645
|
+
y && b.close(y);
|
645
646
|
}
|
646
647
|
break;
|
647
648
|
case "send":
|
@@ -649,33 +650,33 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
649
650
|
b.open({
|
650
651
|
message: "Sending onboarding document...",
|
651
652
|
type: "info"
|
652
|
-
}), await
|
653
|
+
}), await T.sendDocument(
|
653
654
|
(q = m.value) == null ? void 0 : q._id
|
654
655
|
), b.open({
|
655
656
|
type: "success",
|
656
657
|
title: "Submission documents send successfully"
|
657
658
|
});
|
658
|
-
} catch (
|
659
|
+
} catch (n) {
|
659
660
|
b.open({
|
660
661
|
type: "error",
|
661
662
|
title: "Error occurs when sending document",
|
662
|
-
message: A(
|
663
|
+
message: A(n)
|
663
664
|
});
|
664
665
|
}
|
665
666
|
break;
|
666
667
|
}
|
667
668
|
};
|
668
669
|
return (r, V) => {
|
669
|
-
var
|
670
|
-
const q =
|
671
|
-
return e(S) ? (v(), N("div",
|
672
|
-
|
670
|
+
var n, R;
|
671
|
+
const q = f("FmCircularProgress"), y = f("FmPageHead");
|
672
|
+
return e(S) ? (v(), N("div", Ee, [
|
673
|
+
s(q, { size: "xxl" })
|
673
674
|
])) : (v(), N(z, { key: 1 }, [
|
674
|
-
|
675
|
-
title: `Submission - ${(
|
675
|
+
s(y, {
|
676
|
+
title: `Submission - ${(n = m.value) == null ? void 0 : n.type}`,
|
676
677
|
description: `ID - ${(R = m.value) == null ? void 0 : R._id}`,
|
677
678
|
"back-button": !0,
|
678
|
-
"onClick:back": V[0] || (V[0] = () => e(
|
679
|
+
"onClick:back": V[0] || (V[0] = () => e(P).back()),
|
679
680
|
"onClick:action": C,
|
680
681
|
actions: [
|
681
682
|
{
|
@@ -691,8 +692,8 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
691
692
|
}
|
692
693
|
]
|
693
694
|
}, null, 8, ["title", "description"]),
|
694
|
-
a("div",
|
695
|
-
(v(),
|
695
|
+
a("div", Ie, [
|
696
|
+
(v(), j(Z(g.value), {
|
696
697
|
key: o.value,
|
697
698
|
submission: m.value,
|
698
699
|
"onUpdate:submission": i
|
@@ -703,5 +704,5 @@ const oe = ["src"], B = /* @__PURE__ */ $({
|
|
703
704
|
}
|
704
705
|
});
|
705
706
|
export {
|
706
|
-
|
707
|
+
Je as default
|
707
708
|
};
|