@feedmepos/mf-payment 1.8.0 → 1.8.1
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-CX1_lQSw.js → Actions.vue_vue_type_script_setup_true_lang-Dlzf1_Z2.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BeMe0eWN.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DxQ_rqx2.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DfYsAAaC.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-C75H1Ceo.js} +2 -2
- package/dist/{Chargeback-xwB_glv5.js → Chargeback-SIUMDthx.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-CrvzKQgC.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Dj7T0UfK.js} +1 -1
- package/dist/{OnboardForm-DKhsjm3n.js → OnboardForm-7l2leqZt.js} +722 -717
- package/dist/{OnboardForm-F2Qcvalp.js → OnboardForm-Cw3hE2kC.js} +128 -127
- package/dist/{OnboardSubmission-0hfx_f8i.js → OnboardSubmission-AdfL2fZ6.js} +3 -3
- package/dist/{OnboardSubmission-D2ebcVnG.js → OnboardSubmission-BD0rCRno.js} +6 -6
- package/dist/{PayoutAccount-Dw-_pf4z.js → PayoutAccount-DETijuS2.js} +7 -7
- package/dist/{PayoutAccount-CIek2Qnh.js → PayoutAccount-DPFyawSA.js} +5 -5
- package/dist/{PayoutAccountSetting-DSk8ZV9p.js → PayoutAccountSetting-V9Eq_gos.js} +6 -6
- package/dist/{Restaurant-Bdike4SW.js → Restaurant-CUV6ZTes.js} +4 -4
- package/dist/{RestaurantSetting-DSDzRmgE.js → RestaurantSetting-BijsKuVo.js} +3 -3
- package/dist/{Settlement-BEhvMZje.js → Settlement-CbEzybBt.js} +4 -4
- package/dist/{Settlement-Cw6JGHxU.js → Settlement-HIQYPYFM.js} +3 -3
- package/dist/{SettlementTransactions-BlRbAo_K.js → SettlementTransactions-D5OmeO48.js} +5 -5
- package/dist/{SettlementTransactions-yczyKInV.js → SettlementTransactions-DJMtMRWB.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-sobv3LfF.js → Status.vue_vue_type_script_setup_true_lang-Cxwh-ZAo.js} +1 -1
- package/dist/{Terminal-BwHi929R.js → Terminal-r7uMh8T5.js} +5 -5
- package/dist/{TerminalSetting-ZA-ADJVD.js → TerminalSetting-CyLFt8zi.js} +5 -5
- package/dist/{Transaction-BvvdK0go.js → Transaction-CHiifmqo.js} +11 -11
- package/dist/{Transaction-DqwB7HTI.js → Transaction-TT1vYYXH.js} +10 -10
- package/dist/{TransactionOld-B0fQrQ7W.js → TransactionOld-BlUzK5ce.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-KpyoB07o.js → TransactionStatus.vue_vue_type_script_setup_true_lang-C4Fb3dN9.js} +1 -1
- package/dist/{app-v4m_QvHC.js → app-L4Mup4fv.js} +23 -23
- package/dist/app.js +1 -1
- package/dist/{assets-xspGnWqt.js → assets-Of_hj4RH.js} +1 -1
- package/dist/{grafana-By90eHTE.js → grafana-DT_fIysC.js} +1 -1
- package/dist/{index-B-1dMDti.js → index-BUrVZ5a9.js} +1 -1
- package/dist/{index-BO4m11-f.js → index-Bc5457jC.js} +1 -1
- package/dist/{index-DQ81tv1s.js → index-ByakkpM7.js} +1 -1
- package/dist/{index-CnoeFPh3.js → index-BzvwMfQk.js} +1 -1
- package/dist/{index-Bm1fndT6.js → index-CD6l2DSu.js} +1 -1
- package/dist/{index-ClZtCkMC.js → index-CTgKTdVY.js} +1 -1
- package/dist/{index-COhy5Sra.js → index-DmGt9Niy.js} +1 -1
- package/dist/{index-CMIKOUH0.js → index-VSU9R-Ad.js} +1 -1
- package/dist/{index-D3G27Mr4.js → index-XZ7-E2Dm.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-FjfVgwqj.js → index.vue_vue_type_script_setup_true_lang-RxeF1kbT.js} +1 -1
- package/dist/model/onboard-submission.d.ts +1 -0
- package/dist/onboard-submission-BMS7XTCq.js +30 -0
- package/dist/package.json +2 -2
- package/dist/{payout-account-Dz18wMnQ.js → payout-account-DA3cKnqy.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/onboard-submission-dp_mz2J_.js +0 -23
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as
|
|
2
|
-
import { o as H } from "./index-
|
|
3
|
-
import { u as te, p as oe } from "./index-
|
|
1
|
+
import { defineComponent as Z, ref as E, computed as W, resolveComponent as C, openBlock as b, createElementBlock as P, createElementVNode as n, toDisplayString as U, createBlock as T, withCtx as f, createCommentVNode as A, createVNode as r, unref as e, Fragment as J, renderList as le, createTextVNode as z, onMounted as pe, resolveDynamicComponent as be } from "vue";
|
|
2
|
+
import { o as H } from "./index-XZ7-E2Dm.js";
|
|
3
|
+
import { u as te, p as oe } from "./index-BUrVZ5a9.js";
|
|
4
4
|
import { useRouter as ce } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-CTlVogBQ.js";
|
|
6
|
-
import { P as ye } from "./payout-account-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { P as ye } from "./payout-account-DA3cKnqy.js";
|
|
7
|
+
import { a as ge } from "./onboard-submission-BMS7XTCq.js";
|
|
8
|
+
import { _ as re } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Dj7T0UfK.js";
|
|
9
|
+
import { s as Ve } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
+
import { _ as ie } from "./Status.vue_vue_type_script_setup_true_lang-Cxwh-ZAo.js";
|
|
10
11
|
import { useSnackbar as ae } from "@feedmepos/ui-library";
|
|
11
12
|
import { u as Q } from "./error-K1CakhA9.js";
|
|
12
|
-
const
|
|
13
|
+
const ve = ["src"], F = /* @__PURE__ */ Z({
|
|
13
14
|
__name: "UploadButton",
|
|
14
15
|
props: {
|
|
15
16
|
modelValue: {},
|
|
@@ -19,7 +20,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
19
20
|
},
|
|
20
21
|
emits: ["update:modelValue"],
|
|
21
22
|
setup(m, { emit: O }) {
|
|
22
|
-
const v = m, k =
|
|
23
|
+
const v = m, k = E(v.modelValue), g = O, w = (a) => {
|
|
23
24
|
const i = new FileReader();
|
|
24
25
|
i.onload = (x) => {
|
|
25
26
|
var V;
|
|
@@ -41,7 +42,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
41
42
|
m.type === "image" ? (b(), P("img", {
|
|
42
43
|
key: 0,
|
|
43
44
|
src: I
|
|
44
|
-
}, null, 8,
|
|
45
|
+
}, null, 8, ve)) : A("", !0),
|
|
45
46
|
m.type === "pdf" ? (b(), T(x, {
|
|
46
47
|
key: 1,
|
|
47
48
|
class: "mt-4 w-full",
|
|
@@ -61,10 +62,10 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
61
62
|
]);
|
|
62
63
|
};
|
|
63
64
|
}
|
|
64
|
-
}),
|
|
65
|
+
}), fe = ["src"], ke = {
|
|
65
66
|
key: 0,
|
|
66
67
|
class: "text-center text-red-700 py-4"
|
|
67
|
-
},
|
|
68
|
+
}, Ce = { class: "flex justify-evenly py-3" }, Ne = /* @__PURE__ */ Z({
|
|
68
69
|
__name: "SignatureBoard",
|
|
69
70
|
props: {
|
|
70
71
|
modelValue: {},
|
|
@@ -73,15 +74,15 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
73
74
|
},
|
|
74
75
|
emits: ["update:modelValue"],
|
|
75
76
|
setup(m, { emit: O }) {
|
|
76
|
-
const v = m, k = O, g =
|
|
77
|
+
const v = m, k = O, g = E(v.modelValue), w = E(!1), c = E(), R = E(!1);
|
|
77
78
|
function a(x, V) {
|
|
78
79
|
var D;
|
|
79
80
|
const I = x.split(","), B = ((D = I[0].match(/:(.*?);/)) == null ? void 0 : D[1]) || "", q = atob(I[1]);
|
|
80
81
|
let p = q.length;
|
|
81
|
-
const
|
|
82
|
+
const j = new Uint8Array(p);
|
|
82
83
|
for (; p--; )
|
|
83
|
-
|
|
84
|
-
return new File([
|
|
84
|
+
j[p] = q.charCodeAt(p);
|
|
85
|
+
return new File([j], V, { type: B });
|
|
85
86
|
}
|
|
86
87
|
const i = function() {
|
|
87
88
|
const { isEmpty: x, data: V } = c.value.saveSignature();
|
|
@@ -103,7 +104,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
103
104
|
src: q,
|
|
104
105
|
alt: "Signature Preview",
|
|
105
106
|
class: "w-full h-auto"
|
|
106
|
-
}, null, 8,
|
|
107
|
+
}, null, 8, fe)
|
|
107
108
|
]),
|
|
108
109
|
_: 1
|
|
109
110
|
}, 8, ["document", "restaurant-id"])) : A("", !0),
|
|
@@ -123,15 +124,15 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
123
124
|
n("div", null, "Signature Board", -1)
|
|
124
125
|
])]),
|
|
125
126
|
default: f(() => [
|
|
126
|
-
r(e(
|
|
127
|
+
r(e(Ve), {
|
|
127
128
|
ref_key: "signaturePad",
|
|
128
129
|
ref: c,
|
|
129
130
|
height: "300px",
|
|
130
131
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
|
131
132
|
options: { penColor: "#000000" }
|
|
132
133
|
}, null, 512),
|
|
133
|
-
w.value ? (b(), P("p",
|
|
134
|
-
n("div",
|
|
134
|
+
w.value ? (b(), P("p", ke, " Please sign your signature before saving. ")) : A("", !0),
|
|
135
|
+
n("div", Ce, [
|
|
135
136
|
r(I, {
|
|
136
137
|
variant: "destructive",
|
|
137
138
|
label: "Clear",
|
|
@@ -150,13 +151,13 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
150
151
|
]);
|
|
151
152
|
};
|
|
152
153
|
}
|
|
153
|
-
}),
|
|
154
|
+
}), Se = { class: "space-y-2" }, we = { class: "text-gray-900" }, qe = { class: "text-gray-900" }, Fe = { class: "text-gray-900" }, Pe = { class: "text-gray-900" }, Ue = { class: "text-gray-900" }, xe = { class: "text-gray-900" }, Ie = { class: "grid grid-cols-4 gap-6" }, Re = ["src"], De = {
|
|
154
155
|
key: 1,
|
|
155
156
|
class: "mt-2 truncate text-gray-700"
|
|
156
|
-
},
|
|
157
|
+
}, Te = { key: 0 }, Be = {
|
|
157
158
|
key: 0,
|
|
158
159
|
class: "w-full flex justify-end mt-6"
|
|
159
|
-
},
|
|
160
|
+
}, Ae = { class: "mt-6 grid grid-cols-4 gap-24" }, Ee = { class: "w-full flex justify-end mt-6" }, $e = { class: "mt-6 grid grid-cols-4 gap-24" }, je = { class: "col-span-2" }, Oe = { class: "col-span-2" }, Le = { class: "col-span-2" }, Me = { class: "col-span-2" }, He = { class: "col-span-2" }, ze = { class: "col-span-2" }, We = { class: "col-span-2" }, Je = { class: "col-start-1 col-span-2" }, Qe = { class: "col-span-2" }, Ke = { class: "col-span-2" }, Ge = { class: "col-span-2" }, Ye = { class: "mt-6 grid grid-cols-4 gap-6" }, he = { class: "mt-6 grid grid-cols-2 gap-24" }, ne = 30, Xe = /* @__PURE__ */ Z({
|
|
160
161
|
__name: "SoftspaceSubmission",
|
|
161
162
|
props: {
|
|
162
163
|
submission: {
|
|
@@ -166,7 +167,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
166
167
|
},
|
|
167
168
|
emits: ["update:submission"],
|
|
168
169
|
setup(m, { emit: O }) {
|
|
169
|
-
const v = m, k = O, g = ae(), w =
|
|
170
|
+
const v = m, k = O, g = ae(), w = E(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: x, profile: V, status: I, statusReason: B } = v.submission, q = E(""), p = E(
|
|
170
171
|
v.submission.rates ? Object.fromEntries(
|
|
171
172
|
Object.entries(v.submission.rates).map(([y, l]) => [y, `${l}`])
|
|
172
173
|
) : {
|
|
@@ -178,40 +179,40 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
178
179
|
jcbStandard: "2.2",
|
|
179
180
|
jcbPlatinum: "2.2"
|
|
180
181
|
}
|
|
181
|
-
),
|
|
182
|
+
), j = W(
|
|
182
183
|
() => Object.values(p.value).every((y) => parseFloat(y) > 0)
|
|
183
|
-
), { isLoading: D, startAsyncCall:
|
|
184
|
+
), { isLoading: D, startAsyncCall: Y } = te(), M = E([]), _ = (y) => Number(y.replace("additionalDocument", "")), h = W(
|
|
184
185
|
() => Object.keys(v.submission.documents).filter((y) => /^additionalDocument\d+$/.test(y)).sort((y, l) => _(y) - _(l))
|
|
185
186
|
), ee = W(
|
|
186
|
-
() =>
|
|
187
|
+
() => h.value.length + M.value.length
|
|
187
188
|
), S = (y) => {
|
|
188
189
|
if (!(ee.value >= ne)) {
|
|
189
190
|
if (y.type.startsWith("image/")) {
|
|
190
191
|
const l = new FileReader();
|
|
191
|
-
l.onload = (
|
|
192
|
+
l.onload = ($) => {
|
|
192
193
|
var L;
|
|
193
194
|
return M.value.push({
|
|
194
195
|
file: y,
|
|
195
|
-
preview: String(((L =
|
|
196
|
+
preview: String(((L = $.target) == null ? void 0 : L.result) ?? "")
|
|
196
197
|
});
|
|
197
198
|
}, l.readAsDataURL(y);
|
|
198
199
|
return;
|
|
199
200
|
}
|
|
200
201
|
M.value.push({ file: y, preview: "" });
|
|
201
202
|
}
|
|
202
|
-
}, s = () =>
|
|
203
|
+
}, s = () => Y(async () => {
|
|
203
204
|
try {
|
|
204
|
-
let y =
|
|
205
|
-
(
|
|
205
|
+
let y = h.value.reduce(
|
|
206
|
+
($, L) => Math.max($, _(L)),
|
|
206
207
|
0
|
|
207
208
|
);
|
|
208
209
|
const l = {};
|
|
209
|
-
for (const { file:
|
|
210
|
+
for (const { file: $ } of M.value) {
|
|
210
211
|
const L = `additionalDocument${++y}`;
|
|
211
212
|
l[L] = await H.uploadDocument(
|
|
212
213
|
x,
|
|
213
214
|
L,
|
|
214
|
-
|
|
215
|
+
$
|
|
215
216
|
);
|
|
216
217
|
}
|
|
217
218
|
k(
|
|
@@ -278,64 +279,64 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
278
279
|
}
|
|
279
280
|
});
|
|
280
281
|
return (y, l) => {
|
|
281
|
-
const
|
|
282
|
+
const $ = C("FmButton"), L = C("FmDropField"), o = C("FmTextField"), K = C("FmTextarea"), ue = C("FmDialog"), de = C("FmPhoneNumber"), se = C("FmSelect"), me = C("FmForm");
|
|
282
283
|
return b(), P(J, null, [
|
|
283
|
-
n("div",
|
|
284
|
+
n("div", Se, [
|
|
284
285
|
n("div", null, [
|
|
285
286
|
l[34] || (l[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
286
|
-
n("span",
|
|
287
|
+
n("span", we, U(e(x)), 1)
|
|
287
288
|
]),
|
|
288
289
|
n("div", null, [
|
|
289
290
|
l[35] || (l[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
290
|
-
n("span",
|
|
291
|
+
n("span", qe, U(e(V).name) + " ( " + U(e(V).legalName) + " )", 1)
|
|
291
292
|
]),
|
|
292
293
|
n("div", null, [
|
|
293
294
|
l[36] || (l[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
294
|
-
n("span",
|
|
295
|
+
n("span", Fe, U(e(V).email), 1)
|
|
295
296
|
]),
|
|
296
297
|
n("div", null, [
|
|
297
298
|
l[37] || (l[37] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
298
|
-
n("span",
|
|
299
|
+
n("span", Pe, U(e(V).phoneNo), 1)
|
|
299
300
|
]),
|
|
300
301
|
n("div", null, [
|
|
301
302
|
l[38] || (l[38] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
302
|
-
n("span",
|
|
303
|
+
n("span", Ue, [
|
|
303
304
|
r(ie, { data: e(I) }, null, 8, ["data"])
|
|
304
305
|
])
|
|
305
306
|
]),
|
|
306
307
|
n("div", null, [
|
|
307
308
|
l[39] || (l[39] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
308
|
-
n("span",
|
|
309
|
+
n("span", xe, U(e(B)), 1)
|
|
309
310
|
])
|
|
310
311
|
]),
|
|
311
312
|
l[51] || (l[51] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Additional Documents ", -1)),
|
|
312
|
-
n("div",
|
|
313
|
-
(b(!0), P(J, null, le(
|
|
313
|
+
n("div", Ie, [
|
|
314
|
+
(b(!0), P(J, null, le(h.value, (t) => (b(), T(F, {
|
|
314
315
|
key: t,
|
|
315
316
|
label: t.replace("additionalDocument", "Document "),
|
|
316
317
|
type: /\.pdf$/i.test(v.submission.documents[t]) ? "pdf" : "image",
|
|
317
318
|
modelValue: v.submission.documents[t],
|
|
318
|
-
"onUpdate:modelValue": (
|
|
319
|
+
"onUpdate:modelValue": (G) => v.submission.documents[t] = G,
|
|
319
320
|
"restaurant-id": e(x)
|
|
320
321
|
}, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
321
|
-
(b(!0), P(J, null, le(M.value, (t,
|
|
322
|
-
key: `new-${
|
|
322
|
+
(b(!0), P(J, null, le(M.value, (t, G) => (b(), P("div", {
|
|
323
|
+
key: `new-${G}`
|
|
323
324
|
}, [
|
|
324
|
-
n("p", null, "Document " + U(
|
|
325
|
+
n("p", null, "Document " + U(h.value.length + G + 1), 1),
|
|
325
326
|
t.file.type.startsWith("image/") ? (b(), P("img", {
|
|
326
327
|
key: 0,
|
|
327
328
|
src: t.preview,
|
|
328
329
|
class: "mt-2 rounded border"
|
|
329
|
-
}, null, 8,
|
|
330
|
-
r(
|
|
330
|
+
}, null, 8, Re)) : (b(), P("p", De, U(t.file.name), 1)),
|
|
331
|
+
r($, {
|
|
331
332
|
class: "mt-4",
|
|
332
333
|
"prepend-icon": "delete",
|
|
333
334
|
label: "Remove",
|
|
334
335
|
variant: "destructive",
|
|
335
|
-
onClick: (
|
|
336
|
+
onClick: (ql) => M.value.splice(G, 1)
|
|
336
337
|
}, null, 8, ["onClick"])
|
|
337
338
|
]))), 128)),
|
|
338
|
-
ee.value < ne ? (b(), P("div",
|
|
339
|
+
ee.value < ne ? (b(), P("div", Te, [
|
|
339
340
|
n("p", null, "Document " + U(ee.value + 1), 1),
|
|
340
341
|
r(L, {
|
|
341
342
|
accept: ".png, .jpg, .jpeg, .pdf",
|
|
@@ -343,8 +344,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
343
344
|
})
|
|
344
345
|
])) : A("", !0)
|
|
345
346
|
]),
|
|
346
|
-
M.value.length ? (b(), P("div",
|
|
347
|
-
r(
|
|
347
|
+
M.value.length ? (b(), P("div", Be, [
|
|
348
|
+
r($, {
|
|
348
349
|
type: "button",
|
|
349
350
|
variant: "primary",
|
|
350
351
|
"prepend-icon": "cloud_upload",
|
|
@@ -354,7 +355,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
354
355
|
}, null, 8, ["loading"])
|
|
355
356
|
])) : A("", !0),
|
|
356
357
|
l[52] || (l[52] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
357
|
-
n("div",
|
|
358
|
+
n("div", Ae, [
|
|
358
359
|
r(o, {
|
|
359
360
|
modelValue: p.value.duitNow,
|
|
360
361
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => p.value.duitNow = t),
|
|
@@ -475,13 +476,13 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
475
476
|
_: 1
|
|
476
477
|
}, 8, ["modelValue", "rules"])
|
|
477
478
|
]),
|
|
478
|
-
n("div",
|
|
479
|
+
n("div", Ee, [
|
|
479
480
|
r(ue, {
|
|
480
481
|
modelValue: w.value,
|
|
481
482
|
"onUpdate:modelValue": l[8] || (l[8] = (t) => w.value = t)
|
|
482
483
|
}, {
|
|
483
484
|
"dialog-button": f(() => [
|
|
484
|
-
r(
|
|
485
|
+
r($, {
|
|
485
486
|
class: "mr-6",
|
|
486
487
|
type: "button",
|
|
487
488
|
variant: "destructive",
|
|
@@ -501,7 +502,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
501
502
|
"label-mark": "optional",
|
|
502
503
|
"helper-text": "Please provide a reason for rejection."
|
|
503
504
|
}, null, 8, ["modelValue"]),
|
|
504
|
-
r(
|
|
505
|
+
r($, {
|
|
505
506
|
class: "mb-2 mt-6 w-full",
|
|
506
507
|
label: "Submit",
|
|
507
508
|
"prepend-icon": "save",
|
|
@@ -511,11 +512,11 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
511
512
|
]),
|
|
512
513
|
_: 1
|
|
513
514
|
}, 8, ["modelValue"]),
|
|
514
|
-
r(
|
|
515
|
+
r($, {
|
|
515
516
|
type: "button",
|
|
516
517
|
variant: "primary",
|
|
517
518
|
"prepend-icon": "approval",
|
|
518
|
-
disabled: !
|
|
519
|
+
disabled: !j.value,
|
|
519
520
|
label: "Approve Submission with Rates",
|
|
520
521
|
onClick: N,
|
|
521
522
|
loading: e(c)
|
|
@@ -535,7 +536,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
535
536
|
rules: e(u)(e(d).string().min(1, "Owner/Director Name is required"))
|
|
536
537
|
}, null, 8, ["modelValue", "rules"])
|
|
537
538
|
]),
|
|
538
|
-
n("div",
|
|
539
|
+
n("div", Oe, [
|
|
539
540
|
r(o, {
|
|
540
541
|
modelValue: e(a).picRole,
|
|
541
542
|
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(a).picRole = t),
|
|
@@ -545,7 +546,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
545
546
|
rules: e(u)(e(d).string().min(1, "Owner/Director Role is required"))
|
|
546
547
|
}, null, 8, ["modelValue", "rules"])
|
|
547
548
|
]),
|
|
548
|
-
n("div",
|
|
549
|
+
n("div", Le, [
|
|
549
550
|
r(o, {
|
|
550
551
|
modelValue: e(a).picEmail,
|
|
551
552
|
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(a).picEmail = t),
|
|
@@ -556,7 +557,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
556
557
|
rules: e(u)(e(d).string().min(1, "Owner/Director Email is required"))
|
|
557
558
|
}, null, 8, ["modelValue", "rules"])
|
|
558
559
|
]),
|
|
559
|
-
n("div",
|
|
560
|
+
n("div", Me, [
|
|
560
561
|
r(de, {
|
|
561
562
|
"model-value": e(a).picContact,
|
|
562
563
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(a).picContact = t),
|
|
@@ -566,7 +567,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
566
567
|
rules: e(u)(e(d).string().min(1, "Owner/Director Contact is required"))
|
|
567
568
|
}, null, 8, ["model-value", "rules"])
|
|
568
569
|
]),
|
|
569
|
-
n("div",
|
|
570
|
+
n("div", He, [
|
|
570
571
|
r(o, {
|
|
571
572
|
modelValue: e(a).tradingName,
|
|
572
573
|
"onUpdate:modelValue": l[13] || (l[13] = (t) => e(a).tradingName = t),
|
|
@@ -576,7 +577,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
576
577
|
rules: e(u)(e(d).string().min(1, "Trading Name is required"))
|
|
577
578
|
}, null, 8, ["modelValue", "rules"])
|
|
578
579
|
]),
|
|
579
|
-
n("div",
|
|
580
|
+
n("div", ze, [
|
|
580
581
|
r(o, {
|
|
581
582
|
modelValue: e(a).outletName,
|
|
582
583
|
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(a).outletName = t),
|
|
@@ -586,7 +587,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
586
587
|
rules: e(u)(e(d).string().min(1, "Registered Name is required"))
|
|
587
588
|
}, null, 8, ["modelValue", "rules"])
|
|
588
589
|
]),
|
|
589
|
-
n("div",
|
|
590
|
+
n("div", We, [
|
|
590
591
|
r(o, {
|
|
591
592
|
modelValue: e(a).outletAddress,
|
|
592
593
|
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(a).outletAddress = t),
|
|
@@ -620,7 +621,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
620
621
|
"label-mark": "required",
|
|
621
622
|
rules: e(u)(e(d).string().min(1, "City is required"))
|
|
622
623
|
}, null, 8, ["modelValue", "rules"]),
|
|
623
|
-
n("div",
|
|
624
|
+
n("div", Je, [
|
|
624
625
|
r(se, {
|
|
625
626
|
modelValue: e(a).businessType,
|
|
626
627
|
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(a).businessType = t),
|
|
@@ -642,7 +643,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
642
643
|
]
|
|
643
644
|
}, null, 8, ["modelValue", "rules"])
|
|
644
645
|
]),
|
|
645
|
-
n("div",
|
|
646
|
+
n("div", Qe, [
|
|
646
647
|
r(o, {
|
|
647
648
|
modelValue: e(a).businessRegNo,
|
|
648
649
|
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(a).businessRegNo = t),
|
|
@@ -652,7 +653,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
652
653
|
rules: e(u)(e(d).string().min(1, "Reg No is required"))
|
|
653
654
|
}, null, 8, ["modelValue", "rules"])
|
|
654
655
|
]),
|
|
655
|
-
n("div",
|
|
656
|
+
n("div", Ke, [
|
|
656
657
|
r(o, {
|
|
657
658
|
modelValue: e(a).tinNo,
|
|
658
659
|
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(a).tinNo = t),
|
|
@@ -662,7 +663,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
662
663
|
rules: e(u)(e(d).string().min(1, "TIN is required"))
|
|
663
664
|
}, null, 8, ["modelValue", "rules"])
|
|
664
665
|
]),
|
|
665
|
-
n("div",
|
|
666
|
+
n("div", Ge, [
|
|
666
667
|
r(o, {
|
|
667
668
|
modelValue: e(a).sstNo,
|
|
668
669
|
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(a).sstNo = t),
|
|
@@ -673,7 +674,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
673
674
|
])
|
|
674
675
|
]),
|
|
675
676
|
l[49] || (l[49] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information & Documents ", -1)),
|
|
676
|
-
n("div",
|
|
677
|
+
n("div", Ye, [
|
|
677
678
|
r(se, {
|
|
678
679
|
modelValue: e(a).bankName,
|
|
679
680
|
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(a).bankName = t),
|
|
@@ -717,9 +718,9 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
717
718
|
(t) => !!e(i)[`onsitePhoto${t}`]
|
|
718
719
|
), (t) => (b(), T(F, {
|
|
719
720
|
key: t,
|
|
720
|
-
label:
|
|
721
|
+
label: e(ge)[t - 1],
|
|
721
722
|
modelValue: e(i)[`onsitePhoto${t}`],
|
|
722
|
-
"onUpdate:modelValue": (
|
|
723
|
+
"onUpdate:modelValue": (G) => e(i)[`onsitePhoto${t}`] = G,
|
|
723
724
|
type: "image",
|
|
724
725
|
"restaurant-id": m.submission.restaurantId
|
|
725
726
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
@@ -756,8 +757,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
756
757
|
}, null, 8, ["modelValue", "restaurant-id"])) : A("", !0)
|
|
757
758
|
]),
|
|
758
759
|
l[50] || (l[50] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
759
|
-
n("div",
|
|
760
|
-
r(
|
|
760
|
+
n("div", he, [
|
|
761
|
+
r(Ne, {
|
|
761
762
|
modelValue: e(i).signature,
|
|
762
763
|
"onUpdate:modelValue": l[32] || (l[32] = (t) => e(i).signature = t),
|
|
763
764
|
"restaurant-id": m.submission.restaurantId,
|
|
@@ -777,7 +778,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
777
778
|
], 64);
|
|
778
779
|
};
|
|
779
780
|
}
|
|
780
|
-
}),
|
|
781
|
+
}), Ze = { class: "space-y-2" }, _e = { class: "text-gray-900" }, el = { class: "text-gray-900" }, ll = { class: "text-gray-900" }, tl = { class: "text-gray-900" }, al = { class: "text-gray-900" }, sl = { class: "text-gray-900" }, nl = { class: "mt-6 grid grid-cols-4 gap-24" }, ol = { class: "w-full flex justify-end mt-6" }, rl = { class: "mt-6 grid grid-cols-4 gap-24" }, il = { class: "col-span-2" }, ul = { class: "col-span-2" }, dl = { class: "col-span-2" }, ml = { class: "col-span-2" }, pl = { class: "mt-6 grid grid-cols-4 gap-24" }, bl = { class: "mt-6 grid grid-cols-4 gap-24" }, cl = { class: "mt-6 grid grid-cols-4 gap-24" }, yl = { class: "col-span-2" }, gl = { class: "col-span-2" }, Vl = { class: "col-span-2" }, vl = { class: "col-span-2" }, fl = { class: "col-span-2" }, kl = { class: "col-span-2" }, Cl = /* @__PURE__ */ Z({
|
|
781
782
|
__name: "NTTSubmission",
|
|
782
783
|
props: {
|
|
783
784
|
submission: {
|
|
@@ -787,7 +788,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
787
788
|
},
|
|
788
789
|
emits: ["update:submission"],
|
|
789
790
|
setup(m, { emit: O }) {
|
|
790
|
-
const v = m, k = O, g = ae(), w =
|
|
791
|
+
const v = m, k = O, g = ae(), w = E(!1), { isLoading: c, startAsyncCall: R } = te(), { fields: a, documents: i, restaurantId: x, profile: V, status: I, statusReason: B } = v.submission, q = E(""), p = [
|
|
791
792
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
792
793
|
{
|
|
793
794
|
key: "localCardStandard",
|
|
@@ -819,13 +820,13 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
819
820
|
{ key: "shopeePay", label: "ShopeePay", defaultValue: "2.3" },
|
|
820
821
|
{ key: "linePay", label: "LinePay", defaultValue: "2.1" },
|
|
821
822
|
{ key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
|
|
822
|
-
],
|
|
823
|
+
], j = Object.fromEntries(
|
|
823
824
|
p.map((S) => [S.key, S.defaultValue])
|
|
824
|
-
), D =
|
|
825
|
+
), D = E(
|
|
825
826
|
v.submission.rates ? Object.fromEntries(
|
|
826
827
|
Object.entries(v.submission.rates).map(([S, s]) => [S, `${s}`])
|
|
827
|
-
) : { ...
|
|
828
|
-
),
|
|
828
|
+
) : { ...j }
|
|
829
|
+
), Y = W(
|
|
829
830
|
() => Object.values(D.value).every((S) => parseFloat(S) > 0)
|
|
830
831
|
), M = W(() => a.businessType === "juristic" ? "Juristic" : a.businessType === "individual" ? "Individual" : a.businessType || "-"), _ = () => R(async () => {
|
|
831
832
|
try {
|
|
@@ -846,7 +847,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
846
847
|
message: Q(S)
|
|
847
848
|
});
|
|
848
849
|
}
|
|
849
|
-
}),
|
|
850
|
+
}), h = () => R(async () => {
|
|
850
851
|
try {
|
|
851
852
|
const S = await H.reviewById(
|
|
852
853
|
v.submission._id,
|
|
@@ -893,38 +894,38 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
893
894
|
}
|
|
894
895
|
});
|
|
895
896
|
return (S, s) => {
|
|
896
|
-
const N = C("FmTextField"), X = C("FmButton"), y = C("FmTextarea"), l = C("FmDialog"),
|
|
897
|
+
const N = C("FmTextField"), X = C("FmButton"), y = C("FmTextarea"), l = C("FmDialog"), $ = C("FmPhoneNumber"), L = C("FmForm");
|
|
897
898
|
return b(), P(J, null, [
|
|
898
|
-
n("div",
|
|
899
|
+
n("div", Ze, [
|
|
899
900
|
n("div", null, [
|
|
900
901
|
s[31] || (s[31] = n("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
901
|
-
n("span",
|
|
902
|
+
n("span", _e, U(e(x)), 1)
|
|
902
903
|
]),
|
|
903
904
|
n("div", null, [
|
|
904
905
|
s[32] || (s[32] = n("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
905
|
-
n("span",
|
|
906
|
+
n("span", el, U(e(V).name) + " ( " + U(e(V).legalName) + " )", 1)
|
|
906
907
|
]),
|
|
907
908
|
n("div", null, [
|
|
908
909
|
s[33] || (s[33] = n("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
909
|
-
n("span",
|
|
910
|
+
n("span", ll, U(e(V).email), 1)
|
|
910
911
|
]),
|
|
911
912
|
n("div", null, [
|
|
912
913
|
s[34] || (s[34] = n("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
913
|
-
n("span",
|
|
914
|
+
n("span", tl, U(e(V).phoneNo), 1)
|
|
914
915
|
]),
|
|
915
916
|
n("div", null, [
|
|
916
917
|
s[35] || (s[35] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
917
|
-
n("span",
|
|
918
|
+
n("span", al, [
|
|
918
919
|
r(ie, { data: e(I) }, null, 8, ["data"])
|
|
919
920
|
])
|
|
920
921
|
]),
|
|
921
922
|
n("div", null, [
|
|
922
923
|
s[36] || (s[36] = n("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
923
|
-
n("span",
|
|
924
|
+
n("span", sl, U(e(B)), 1)
|
|
924
925
|
])
|
|
925
926
|
]),
|
|
926
927
|
s[43] || (s[43] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
927
|
-
n("div",
|
|
928
|
+
n("div", nl, [
|
|
928
929
|
(b(), P(J, null, le(p, (o) => r(N, {
|
|
929
930
|
key: o.key,
|
|
930
931
|
modelValue: D.value[o.key],
|
|
@@ -944,7 +945,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
944
945
|
_: 1
|
|
945
946
|
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
946
947
|
]),
|
|
947
|
-
n("div",
|
|
948
|
+
n("div", ol, [
|
|
948
949
|
r(l, {
|
|
949
950
|
modelValue: w.value,
|
|
950
951
|
"onUpdate:modelValue": s[1] || (s[1] = (o) => w.value = o)
|
|
@@ -985,8 +986,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
985
986
|
variant: "primary",
|
|
986
987
|
"prepend-icon": "approval",
|
|
987
988
|
label: "Approve Submission with Rates",
|
|
988
|
-
disabled: !
|
|
989
|
-
onClick:
|
|
989
|
+
disabled: !Y.value,
|
|
990
|
+
onClick: h,
|
|
990
991
|
loading: e(c)
|
|
991
992
|
}, null, 8, ["disabled", "loading"]),
|
|
992
993
|
e(I) === "approved" ? (b(), T(X, {
|
|
@@ -1003,8 +1004,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1003
1004
|
r(L, { disabled: !0 }, {
|
|
1004
1005
|
default: f(() => [
|
|
1005
1006
|
s[39] || (s[39] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
1006
|
-
n("div",
|
|
1007
|
-
n("div",
|
|
1007
|
+
n("div", rl, [
|
|
1008
|
+
n("div", il, [
|
|
1008
1009
|
r(N, {
|
|
1009
1010
|
modelValue: e(a).companyName,
|
|
1010
1011
|
"onUpdate:modelValue": s[2] || (s[2] = (o) => e(a).companyName = o),
|
|
@@ -1013,7 +1014,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1013
1014
|
rules: e(u)(e(d).string().min(1, "Company Name is required"))
|
|
1014
1015
|
}, null, 8, ["modelValue", "rules"])
|
|
1015
1016
|
]),
|
|
1016
|
-
n("div",
|
|
1017
|
+
n("div", ul, [
|
|
1017
1018
|
r(N, {
|
|
1018
1019
|
modelValue: e(a).outletName,
|
|
1019
1020
|
"onUpdate:modelValue": s[3] || (s[3] = (o) => e(a).outletName = o),
|
|
@@ -1022,7 +1023,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1022
1023
|
rules: e(u)(e(d).string().min(1, "Outlet Name is required"))
|
|
1023
1024
|
}, null, 8, ["modelValue", "rules"])
|
|
1024
1025
|
]),
|
|
1025
|
-
n("div",
|
|
1026
|
+
n("div", dl, [
|
|
1026
1027
|
r(N, {
|
|
1027
1028
|
modelValue: e(a).outletNameEnglish,
|
|
1028
1029
|
"onUpdate:modelValue": s[4] || (s[4] = (o) => e(a).outletNameEnglish = o),
|
|
@@ -1031,7 +1032,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1031
1032
|
rules: e(u)(e(d).string().min(1, "Outlet Name English is required"))
|
|
1032
1033
|
}, null, 8, ["modelValue", "rules"])
|
|
1033
1034
|
]),
|
|
1034
|
-
n("div",
|
|
1035
|
+
n("div", ml, [
|
|
1035
1036
|
r(N, {
|
|
1036
1037
|
modelValue: e(a).outletAddress,
|
|
1037
1038
|
"onUpdate:modelValue": s[5] || (s[5] = (o) => e(a).outletAddress = o),
|
|
@@ -1074,7 +1075,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1074
1075
|
}, null, 8, ["modelValue"])
|
|
1075
1076
|
]),
|
|
1076
1077
|
s[40] || (s[40] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
1077
|
-
n("div",
|
|
1078
|
+
n("div", pl, [
|
|
1078
1079
|
r(N, {
|
|
1079
1080
|
modelValue: e(a).bankName,
|
|
1080
1081
|
"onUpdate:modelValue": s[10] || (s[10] = (o) => e(a).bankName = o),
|
|
@@ -1112,7 +1113,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1112
1113
|
}, null, 8, ["modelValue", "rules"])
|
|
1113
1114
|
]),
|
|
1114
1115
|
s[41] || (s[41] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
1115
|
-
n("div",
|
|
1116
|
+
n("div", bl, [
|
|
1116
1117
|
r(F, {
|
|
1117
1118
|
label: "Authorized Person ID",
|
|
1118
1119
|
modelValue: e(i).authorizedPersonID,
|
|
@@ -1167,8 +1168,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1167
1168
|
}, null, 8, ["modelValue", "restaurant-id"])) : A("", !0)
|
|
1168
1169
|
]),
|
|
1169
1170
|
s[42] || (s[42] = n("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1170
|
-
n("div",
|
|
1171
|
-
n("div",
|
|
1171
|
+
n("div", cl, [
|
|
1172
|
+
n("div", yl, [
|
|
1172
1173
|
r(N, {
|
|
1173
1174
|
modelValue: e(a).picName,
|
|
1174
1175
|
"onUpdate:modelValue": s[22] || (s[22] = (o) => e(a).picName = o),
|
|
@@ -1177,7 +1178,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1177
1178
|
rules: e(u)(e(d).string().min(1, "PIC Name is required"))
|
|
1178
1179
|
}, null, 8, ["modelValue", "rules"])
|
|
1179
1180
|
]),
|
|
1180
|
-
n("div",
|
|
1181
|
+
n("div", gl, [
|
|
1181
1182
|
r(N, {
|
|
1182
1183
|
modelValue: e(a).picRole,
|
|
1183
1184
|
"onUpdate:modelValue": s[23] || (s[23] = (o) => e(a).picRole = o),
|
|
@@ -1186,7 +1187,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1186
1187
|
rules: e(u)(e(d).string().min(1, "PIC Role is required"))
|
|
1187
1188
|
}, null, 8, ["modelValue", "rules"])
|
|
1188
1189
|
]),
|
|
1189
|
-
n("div",
|
|
1190
|
+
n("div", Vl, [
|
|
1190
1191
|
r(N, {
|
|
1191
1192
|
modelValue: e(a).picEmail,
|
|
1192
1193
|
"onUpdate:modelValue": s[24] || (s[24] = (o) => e(a).picEmail = o),
|
|
@@ -1195,8 +1196,8 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1195
1196
|
rules: e(u)(e(d).string().min(1, "PIC Email is required"))
|
|
1196
1197
|
}, null, 8, ["modelValue", "rules"])
|
|
1197
1198
|
]),
|
|
1198
|
-
n("div",
|
|
1199
|
-
r(
|
|
1199
|
+
n("div", vl, [
|
|
1200
|
+
r($, {
|
|
1200
1201
|
"model-value": e(a).picContact,
|
|
1201
1202
|
"onUpdate:modelValue": s[25] || (s[25] = (o) => e(a).picContact = o),
|
|
1202
1203
|
"default-country": "TH",
|
|
@@ -1205,7 +1206,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1205
1206
|
rules: e(u)(e(d).string().min(1, "PIC Contact is required"))
|
|
1206
1207
|
}, null, 8, ["model-value", "rules"])
|
|
1207
1208
|
]),
|
|
1208
|
-
n("div",
|
|
1209
|
+
n("div", fl, [
|
|
1209
1210
|
r(N, {
|
|
1210
1211
|
modelValue: e(a).witnessName,
|
|
1211
1212
|
"onUpdate:modelValue": s[26] || (s[26] = (o) => e(a).witnessName = o),
|
|
@@ -1214,7 +1215,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1214
1215
|
rules: e(u)(e(d).string().min(1, "Witness Name is required"))
|
|
1215
1216
|
}, null, 8, ["modelValue", "rules"])
|
|
1216
1217
|
]),
|
|
1217
|
-
n("div",
|
|
1218
|
+
n("div", kl, [
|
|
1218
1219
|
r(N, {
|
|
1219
1220
|
modelValue: e(a).witnessRole,
|
|
1220
1221
|
"onUpdate:modelValue": s[27] || (s[27] = (o) => e(a).witnessRole = o),
|
|
@@ -1251,7 +1252,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1251
1252
|
], 64);
|
|
1252
1253
|
};
|
|
1253
1254
|
}
|
|
1254
|
-
}),
|
|
1255
|
+
}), Nl = /* @__PURE__ */ Z({
|
|
1255
1256
|
__name: "TyroSubmission",
|
|
1256
1257
|
props: {
|
|
1257
1258
|
submission: {
|
|
@@ -1316,10 +1317,10 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1316
1317
|
});
|
|
1317
1318
|
};
|
|
1318
1319
|
}
|
|
1319
|
-
}),
|
|
1320
|
+
}), Sl = {
|
|
1320
1321
|
key: 0,
|
|
1321
1322
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1322
|
-
},
|
|
1323
|
+
}, wl = { class: "px-32 pb-32" }, jl = /* @__PURE__ */ Z({
|
|
1323
1324
|
__name: "OnboardForm",
|
|
1324
1325
|
props: {
|
|
1325
1326
|
submissionId: {
|
|
@@ -1328,7 +1329,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1328
1329
|
}
|
|
1329
1330
|
},
|
|
1330
1331
|
setup(m) {
|
|
1331
|
-
const { startAsyncCall: O, isLoading: v } = te(), k = ae(), g = m, w = ce(), c =
|
|
1332
|
+
const { startAsyncCall: O, isLoading: v } = te(), k = ae(), g = m, w = ce(), c = E(null), R = W(
|
|
1332
1333
|
() => {
|
|
1333
1334
|
var B;
|
|
1334
1335
|
return ((B = c.value) == null ? void 0 : B.type) === oe.FdoOnboardType.enum.tyro;
|
|
@@ -1349,15 +1350,15 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1349
1350
|
if (!c.value) return null;
|
|
1350
1351
|
switch (c.value.type) {
|
|
1351
1352
|
case "softspace":
|
|
1352
|
-
return
|
|
1353
|
+
return Xe;
|
|
1353
1354
|
case "ntt":
|
|
1354
|
-
return kl;
|
|
1355
|
-
case "tyro":
|
|
1356
1355
|
return Cl;
|
|
1356
|
+
case "tyro":
|
|
1357
|
+
return Nl;
|
|
1357
1358
|
default:
|
|
1358
1359
|
return null;
|
|
1359
1360
|
}
|
|
1360
|
-
}), x =
|
|
1361
|
+
}), x = E(0);
|
|
1361
1362
|
function V(B) {
|
|
1362
1363
|
c.value = B, x.value = Date.now();
|
|
1363
1364
|
}
|
|
@@ -1366,9 +1367,9 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1366
1367
|
if (c.value)
|
|
1367
1368
|
switch (B) {
|
|
1368
1369
|
case "preview":
|
|
1369
|
-
let
|
|
1370
|
+
let j;
|
|
1370
1371
|
try {
|
|
1371
|
-
|
|
1372
|
+
j = k.open({
|
|
1372
1373
|
message: "Generating preview document...",
|
|
1373
1374
|
type: "info"
|
|
1374
1375
|
}), await H.previewDocument(
|
|
@@ -1381,7 +1382,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1381
1382
|
message: Q(D)
|
|
1382
1383
|
});
|
|
1383
1384
|
} finally {
|
|
1384
|
-
|
|
1385
|
+
j && k.close(j);
|
|
1385
1386
|
}
|
|
1386
1387
|
break;
|
|
1387
1388
|
case "send":
|
|
@@ -1406,14 +1407,14 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1406
1407
|
}
|
|
1407
1408
|
};
|
|
1408
1409
|
return (B, q) => {
|
|
1409
|
-
var D,
|
|
1410
|
-
const p = C("FmCircularProgress"),
|
|
1411
|
-
return e(v) ? (b(), P("div",
|
|
1410
|
+
var D, Y;
|
|
1411
|
+
const p = C("FmCircularProgress"), j = C("FmPageHead");
|
|
1412
|
+
return e(v) ? (b(), P("div", Sl, [
|
|
1412
1413
|
r(p, { size: "xxl" })
|
|
1413
1414
|
])) : (b(), P(J, { key: 1 }, [
|
|
1414
|
-
r(
|
|
1415
|
+
r(j, {
|
|
1415
1416
|
title: `Submission - ${(D = c.value) == null ? void 0 : D.type}`,
|
|
1416
|
-
description: `ID - ${(
|
|
1417
|
+
description: `ID - ${(Y = c.value) == null ? void 0 : Y._id}`,
|
|
1417
1418
|
"back-button": !0,
|
|
1418
1419
|
"onClick:back": a,
|
|
1419
1420
|
"onClick:action": I,
|
|
@@ -1431,7 +1432,7 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1431
1432
|
}
|
|
1432
1433
|
]
|
|
1433
1434
|
}, null, 8, ["title", "description", "actions"]),
|
|
1434
|
-
n("div",
|
|
1435
|
+
n("div", wl, [
|
|
1435
1436
|
(b(), T(be(i.value), {
|
|
1436
1437
|
key: x.value,
|
|
1437
1438
|
submission: c.value,
|
|
@@ -1443,5 +1444,5 @@ const Ve = ["src"], F = /* @__PURE__ */ Z({
|
|
|
1443
1444
|
}
|
|
1444
1445
|
});
|
|
1445
1446
|
export {
|
|
1446
|
-
|
|
1447
|
+
jl as default
|
|
1447
1448
|
};
|