@feedmepos/mf-payment 1.10.4-dev → 1.10.5-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Actions.vue_vue_type_script_setup_true_lang-DWEzAvsz.js → Actions.vue_vue_type_script_setup_true_lang-BIxmXhVi.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CZdQwUHi.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BOuAR3Jk.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BHNukQgp.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CVWH4h9m.js} +2 -2
- package/dist/{Chargeback-DX6btYQD.js → Chargeback-D-SaWEZ3.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-D1U0GGBL.js → DocumentViewer.vue_vue_type_script_setup_true_lang-BddsB-O7.js} +1 -1
- package/dist/{ExternalTerminal-BQRUDzIN.js → ExternalTerminal-DSFdyxgo.js} +6 -6
- package/dist/{OnboardForm-BMljWq6i.js → OnboardForm-BW_d_NI5.js} +6 -6
- package/dist/{OnboardForm-BJn0vnaI.js → OnboardForm-rjhOG28l.js} +243 -233
- package/dist/{OnboardSubmission-B3uhuuS0.js → OnboardSubmission-CvSo8EfH.js} +6 -6
- package/dist/{OnboardSubmission-CbEIskW_.js → OnboardSubmission-b73A_sV3.js} +3 -3
- package/dist/{PayoutAccount-lK6S8iFC.js → PayoutAccount-DaFv-aML.js} +5 -5
- package/dist/{PayoutAccount-DrHmix7L.js → PayoutAccount-q8erqoPY.js} +7 -7
- package/dist/{PayoutAccountSetting-Y0UjGXB_.js → PayoutAccountSetting-DxxdGfgG.js} +6 -6
- package/dist/{Restaurant-DIxJpmSI.js → Restaurant-CV8QkUbQ.js} +4 -4
- package/dist/{RestaurantSetting-8WT3PwCq.js → RestaurantSetting-CTlqvfdy.js} +3 -3
- package/dist/{Settlement-qtUt-fV7.js → Settlement-Cl9Gg13I.js} +3 -3
- package/dist/{Settlement-DCIg5lYX.js → Settlement-iRQ6XDJ4.js} +4 -4
- package/dist/{SettlementTransactions-CrtEN8Qk.js → SettlementTransactions-CHUT3xnm.js} +5 -5
- package/dist/{SettlementTransactions-CHC53bzQ.js → SettlementTransactions-blKyTkGq.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-Bgtawcmv.js → Status.vue_vue_type_script_setup_true_lang-D_nmEdyu.js} +1 -1
- package/dist/{Terminal-C_wDQsYu.js → Terminal-BXvAm6w3.js} +6 -6
- package/dist/{TerminalSetting-leYySvWx.js → TerminalSetting-C4o5IOpK.js} +6 -6
- package/dist/{Transaction-BvZ3sQKk.js → Transaction-BIeW9fTK.js} +10 -10
- package/dist/{Transaction-PkfDY_22.js → Transaction-DntiUDtA.js} +11 -11
- package/dist/{TransactionOld-DZfYgD-J.js → TransactionOld-BLrS-7GS.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-2JjmRrBE.js → TransactionStatus.vue_vue_type_script_setup_true_lang-CjQ2GMrD.js} +1 -1
- package/dist/{app-BN99hFif.js → app-DyJjl-JW.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/{assets-C__HD_rf.js → assets-Dli_wsgY.js} +1 -1
- package/dist/{grafana-B4tXE6aU.js → grafana-B_QqlaQQ.js} +1 -1
- package/dist/{index-Dfh5_ii8.js → index-8GWhPszq.js} +1 -1
- package/dist/{index-Bku7iW7x.js → index-B8bREy8p.js} +1 -1
- package/dist/{index-CWO4ygXh.js → index-BAEwRvM-.js} +1 -1
- package/dist/{index-CgL2TLW2.js → index-C1n_Ih97.js} +1 -1
- package/dist/{index-BVkRb_Qy.js → index-CUDgQRLT.js} +1 -1
- package/dist/{index-CdJLIUK1.js → index-CbTXFbRi.js} +1 -1
- package/dist/{index-BJukJrqD.js → index-CqWAZhwv.js} +2 -2
- package/dist/{index-BiC8s_0I.js → index-Cvrxt3gd.js} +1 -1
- package/dist/{index-Bxzzp9Hp.js → index-DjlqF6I0.js} +1 -1
- package/dist/{index-DmxOGKCp.js → index-eEK4FJWw.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-B-BcbMgi.js → index.vue_vue_type_script_setup_true_lang-BBqaMh-p.js} +1 -1
- package/dist/{onboard-submission-ClwLhJmC.js → onboard-submission-DW1TUY3U.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DydUp6Qo.js → payout-account-BEdIU70O.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as X, ref as j, computed as z, resolveComponent as
|
|
2
|
-
import { o as M } from "./index-
|
|
3
|
-
import { u as ee, p as de } from "./index-
|
|
1
|
+
import { defineComponent as X, ref as j, computed as z, resolveComponent as N, openBlock as d, createElementBlock as w, createElementVNode as a, toDisplayString as F, createBlock as U, withCtx as f, createCommentVNode as $, createVNode as n, unref as e, Fragment as K, renderList as G, createTextVNode as J, onMounted as Ve, resolveDynamicComponent as ve } from "vue";
|
|
2
|
+
import { o as M } from "./index-CqWAZhwv.js";
|
|
3
|
+
import { u as ee, p as de } from "./index-CbTXFbRi.js";
|
|
4
4
|
import { useRouter as fe } from "vue-router";
|
|
5
5
|
import { z as i, a as u } from "./validator-CTlVogBQ.js";
|
|
6
|
-
import { P as ke } from "./payout-account-
|
|
7
|
-
import { a as Ce } from "./onboard-submission-
|
|
8
|
-
import { _ as me } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { P as ke } from "./payout-account-BEdIU70O.js";
|
|
7
|
+
import { a as Ce } from "./onboard-submission-DW1TUY3U.js";
|
|
8
|
+
import { _ as me } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-BddsB-O7.js";
|
|
9
9
|
import { s as Ne } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
-
import { _ as pe } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as pe } from "./Status.vue_vue_type_script_setup_true_lang-D_nmEdyu.js";
|
|
11
11
|
import { useSnackbar as oe } from "@feedmepos/ui-library";
|
|
12
12
|
import { u as Q } from "./error-K1CakhA9.js";
|
|
13
13
|
const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X({
|
|
@@ -20,7 +20,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
22
|
setup(m, { emit: O }) {
|
|
23
|
-
const c = m, k = j(c.modelValue), y = O,
|
|
23
|
+
const c = m, k = j(c.modelValue), y = O, I = (r) => {
|
|
24
24
|
const R = new FileReader();
|
|
25
25
|
R.onload = (V) => {
|
|
26
26
|
var D;
|
|
@@ -30,41 +30,41 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
30
30
|
window.open(r, "_blank", "noopener,noreferrer");
|
|
31
31
|
}, T = z(() => c.type === "image" ? re : c.type === "pdf" ? ie : `${re}, ${ie}`), o = (r) => c.type === "pdf" ? !0 : c.type === "image" ? !1 : r === "application/pdf";
|
|
32
32
|
return (r, R) => {
|
|
33
|
-
const V =
|
|
34
|
-
return d(),
|
|
35
|
-
a("p", null,
|
|
33
|
+
const V = N("FmButton"), D = N("FmDropField");
|
|
34
|
+
return d(), w("div", null, [
|
|
35
|
+
a("p", null, F(m.label), 1),
|
|
36
36
|
k.value ? (d(), U(me, {
|
|
37
37
|
key: 0,
|
|
38
38
|
document: k.value,
|
|
39
39
|
"restaurant-id": m.restaurantId
|
|
40
40
|
}, {
|
|
41
|
-
default: f(({ src:
|
|
42
|
-
o(
|
|
41
|
+
default: f(({ src: x, type: q }) => [
|
|
42
|
+
o(q) ? (d(), U(V, {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "mt-4 w-full",
|
|
45
45
|
"prepend-icon": "manage_accounts",
|
|
46
46
|
label: "View Document",
|
|
47
47
|
variant: "primary",
|
|
48
|
-
onVnodeMounted: () => g(
|
|
49
|
-
onClick: () => g(
|
|
50
|
-
}, null, 8, ["onVnodeMounted", "onClick"])) : (d(),
|
|
48
|
+
onVnodeMounted: () => g(x),
|
|
49
|
+
onClick: () => g(x)
|
|
50
|
+
}, null, 8, ["onVnodeMounted", "onClick"])) : (d(), w("img", {
|
|
51
51
|
key: 0,
|
|
52
|
-
src:
|
|
52
|
+
src: x
|
|
53
53
|
}, null, 8, Se))
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
56
|
}, 8, ["document", "restaurant-id"])) : (d(), U(D, {
|
|
57
57
|
key: 1,
|
|
58
58
|
accept: T.value,
|
|
59
|
-
onFileUpload:
|
|
59
|
+
onFileUpload: I
|
|
60
60
|
}, null, 8, ["accept"]))
|
|
61
61
|
]);
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
}), Pe = ["src"],
|
|
64
|
+
}), Pe = ["src"], qe = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "text-center text-red-700 py-4"
|
|
67
|
-
},
|
|
67
|
+
}, we = { class: "flex justify-evenly py-3" }, Ie = /* @__PURE__ */ X({
|
|
68
68
|
__name: "SignatureBoard",
|
|
69
69
|
props: {
|
|
70
70
|
modelValue: {},
|
|
@@ -73,44 +73,44 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:modelValue"],
|
|
75
75
|
setup(m, { emit: O }) {
|
|
76
|
-
const c = m, k = O, y = j(c.modelValue),
|
|
76
|
+
const c = m, k = O, y = j(c.modelValue), I = j(!1), g = j(), T = j(!1);
|
|
77
77
|
function o(R, V) {
|
|
78
78
|
var E;
|
|
79
|
-
const D = R.split(","),
|
|
80
|
-
let B =
|
|
79
|
+
const D = R.split(","), x = ((E = D[0].match(/:(.*?);/)) == null ? void 0 : E[1]) || "", q = atob(D[1]);
|
|
80
|
+
let B = q.length;
|
|
81
81
|
const p = new Uint8Array(B);
|
|
82
82
|
for (; B--; )
|
|
83
|
-
p[B] =
|
|
84
|
-
return new File([p], V, { type:
|
|
83
|
+
p[B] = q.charCodeAt(B);
|
|
84
|
+
return new File([p], V, { type: x });
|
|
85
85
|
}
|
|
86
86
|
const r = function() {
|
|
87
87
|
const { isEmpty: R, data: V } = g.value.saveSignature();
|
|
88
88
|
if (R)
|
|
89
|
-
return
|
|
89
|
+
return I.value = !0;
|
|
90
90
|
y.value = V, T.value = !1, k("update:modelValue", o(V, "signature.png"));
|
|
91
91
|
};
|
|
92
92
|
return (R, V) => {
|
|
93
|
-
const D =
|
|
94
|
-
return d(),
|
|
95
|
-
a("p", null,
|
|
93
|
+
const D = N("FmButton"), x = N("FmDialog");
|
|
94
|
+
return d(), w("div", null, [
|
|
95
|
+
a("p", null, F(m.label), 1),
|
|
96
96
|
y.value ? (d(), U(me, {
|
|
97
97
|
key: 0,
|
|
98
98
|
document: y.value,
|
|
99
99
|
"restaurant-id": m.restaurantId
|
|
100
100
|
}, {
|
|
101
|
-
default: f(({ src:
|
|
101
|
+
default: f(({ src: q }) => [
|
|
102
102
|
a("img", {
|
|
103
|
-
src:
|
|
103
|
+
src: q,
|
|
104
104
|
alt: "Signature Preview",
|
|
105
105
|
class: "w-full h-auto"
|
|
106
106
|
}, null, 8, Pe)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["document", "restaurant-id"])) : $("", !0),
|
|
110
|
-
y.value ? $("", !0) : (d(), U(
|
|
110
|
+
y.value ? $("", !0) : (d(), U(x, {
|
|
111
111
|
key: 1,
|
|
112
112
|
modelValue: T.value,
|
|
113
|
-
"onUpdate:modelValue": V[1] || (V[1] = (
|
|
113
|
+
"onUpdate:modelValue": V[1] || (V[1] = (q) => T.value = q)
|
|
114
114
|
}, {
|
|
115
115
|
"dialog-button": f(() => [
|
|
116
116
|
n(D, {
|
|
@@ -130,13 +130,13 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
130
130
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
|
131
131
|
options: { penColor: "#000000" }
|
|
132
132
|
}, null, 512),
|
|
133
|
-
|
|
134
|
-
a("div",
|
|
133
|
+
I.value ? (d(), w("p", qe, " Please sign your signature before saving. ")) : $("", !0),
|
|
134
|
+
a("div", we, [
|
|
135
135
|
n(D, {
|
|
136
136
|
variant: "destructive",
|
|
137
137
|
label: "Clear",
|
|
138
138
|
"prepend-icon": "delete",
|
|
139
|
-
onClick: V[0] || (V[0] = (
|
|
139
|
+
onClick: V[0] || (V[0] = (q) => g.value.clearSignature())
|
|
140
140
|
}),
|
|
141
141
|
n(D, {
|
|
142
142
|
label: "Save",
|
|
@@ -150,16 +150,16 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}),
|
|
153
|
+
}), xe = { class: "space-y-2" }, Fe = { class: "text-gray-900" }, Ue = { class: "text-gray-900" }, De = { class: "text-gray-900" }, Re = { class: "text-gray-900" }, Ae = { class: "text-gray-900" }, Te = { class: "text-gray-900" }, Be = { class: "grid grid-cols-4 gap-6" }, Ee = ["src"], $e = {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "mt-2 truncate text-gray-700"
|
|
156
156
|
}, je = { key: 0 }, Oe = {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: "w-full flex justify-end mt-6"
|
|
159
|
-
}, Le = { class: "mt-6 grid grid-cols-4 gap-24" }, ze = { class: "grid grid-cols-4 gap-6" }, Me = { class: "w-full flex justify-end mt-6" }, He = { class: "mt-6 grid grid-cols-4 gap-24" }, We = { class: "col-span-2" }, Je = { class: "col-span-2" }, Ke = { class: "col-span-2" }, Qe = { class: "col-span-2" }, Ye = { class: "col-span-2" }, he = { class: "col-span-2" }, Ge = { class: "col-span-2" }, Xe = { class: "col-start-1 col-span-2" },
|
|
159
|
+
}, Le = { class: "mt-6 grid grid-cols-4 gap-24" }, ze = { class: "grid grid-cols-4 gap-6" }, Me = { class: "w-full flex justify-end mt-6" }, He = { class: "mt-6 grid grid-cols-4 gap-24" }, We = { class: "col-span-2" }, Je = { class: "col-span-2" }, Ke = { class: "col-span-2" }, Qe = { class: "col-span-2" }, Ye = { class: "col-span-2" }, he = { class: "col-span-2" }, Ge = { class: "col-span-2" }, Xe = { class: "col-span-2" }, Ze = { class: "col-start-1 col-span-2" }, _e = { class: "col-span-2" }, el = { class: "col-span-2" }, ll = { class: "col-span-2" }, tl = { class: "mt-6 grid grid-cols-4 gap-6" }, al = { class: "mt-6 grid grid-cols-4 gap-6" }, sl = { class: "mt-6 grid grid-cols-4 gap-6" }, ol = { class: "mt-6 grid grid-cols-4 gap-6" }, nl = { class: "mt-6 grid grid-cols-4 gap-6" }, rl = { class: "mt-6 grid grid-cols-4 gap-6" }, il = {
|
|
160
160
|
key: 2,
|
|
161
161
|
class: "text-sm text-gray-500"
|
|
162
|
-
},
|
|
162
|
+
}, ul = { class: "mt-6 grid grid-cols-2 gap-24" }, ue = 30, dl = /* @__PURE__ */ X({
|
|
163
163
|
__name: "SoftspaceSubmission",
|
|
164
164
|
props: {
|
|
165
165
|
submission: {
|
|
@@ -170,7 +170,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
170
170
|
emits: ["update:submission"],
|
|
171
171
|
setup(m, { emit: O }) {
|
|
172
172
|
var _;
|
|
173
|
-
const c = m, k = O, y = oe(),
|
|
173
|
+
const c = m, k = O, y = oe(), I = j(!1), { isLoading: g, startAsyncCall: T } = ee(), { fields: o, documents: r, restaurantId: R, profile: V, status: D, statusReason: x } = c.submission, q = j(""), B = j(
|
|
174
174
|
parseInt(((_ = c.submission.fields) == null ? void 0 : _.numberOfDevices) ?? 1)
|
|
175
175
|
), p = j(
|
|
176
176
|
c.submission.rates ? Object.fromEntries(
|
|
@@ -194,7 +194,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
194
194
|
() => Object.keys(c.submission.documents).filter((b) => /^additionalDocument\d+$/.test(b)).sort((b, l) => Z(b) - Z(l))
|
|
195
195
|
), s = z(
|
|
196
196
|
() => v.value.length + L.value.length
|
|
197
|
-
),
|
|
197
|
+
), S = (b) => {
|
|
198
198
|
if (!(s.value >= ue)) {
|
|
199
199
|
if (b.type.startsWith("image/")) {
|
|
200
200
|
const l = new FileReader();
|
|
@@ -255,7 +255,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
255
255
|
status: "approved"
|
|
256
256
|
}
|
|
257
257
|
);
|
|
258
|
-
k("update:submission", b),
|
|
258
|
+
k("update:submission", b), I.value = !1, y.open({
|
|
259
259
|
type: "success",
|
|
260
260
|
title: "Submission updated successfully"
|
|
261
261
|
});
|
|
@@ -272,10 +272,10 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
272
272
|
c.submission._id,
|
|
273
273
|
{
|
|
274
274
|
status: "rejected",
|
|
275
|
-
statusReason:
|
|
275
|
+
statusReason: q.value
|
|
276
276
|
}
|
|
277
277
|
);
|
|
278
|
-
k("update:submission", b),
|
|
278
|
+
k("update:submission", b), I.value = !1, y.open({
|
|
279
279
|
type: "success",
|
|
280
280
|
title: "Submission updated successfully"
|
|
281
281
|
});
|
|
@@ -288,39 +288,39 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
288
288
|
}
|
|
289
289
|
});
|
|
290
290
|
return (b, l) => {
|
|
291
|
-
const A =
|
|
292
|
-
return d(),
|
|
293
|
-
a("div",
|
|
291
|
+
const A = N("FmButton"), H = N("FmDropField"), C = N("FmTextField"), be = N("FmTextarea"), ce = N("FmDialog"), ge = N("FmPhoneNumber"), ne = N("FmSelect"), ye = N("FmForm");
|
|
292
|
+
return d(), w(K, null, [
|
|
293
|
+
a("div", xe, [
|
|
294
294
|
a("div", null, [
|
|
295
|
-
l[
|
|
296
|
-
a("span",
|
|
295
|
+
l[38] || (l[38] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
296
|
+
a("span", Fe, F(e(R)), 1)
|
|
297
297
|
]),
|
|
298
298
|
a("div", null, [
|
|
299
|
-
l[
|
|
300
|
-
a("span", Ue,
|
|
299
|
+
l[39] || (l[39] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
300
|
+
a("span", Ue, F(e(V).name) + " ( " + F(e(V).legalName) + " )", 1)
|
|
301
301
|
]),
|
|
302
302
|
a("div", null, [
|
|
303
|
-
l[
|
|
304
|
-
a("span", De,
|
|
303
|
+
l[40] || (l[40] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
304
|
+
a("span", De, F(e(V).email), 1)
|
|
305
305
|
]),
|
|
306
306
|
a("div", null, [
|
|
307
|
-
l[
|
|
308
|
-
a("span", Re,
|
|
307
|
+
l[41] || (l[41] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
308
|
+
a("span", Re, F(e(V).phoneNo), 1)
|
|
309
309
|
]),
|
|
310
310
|
a("div", null, [
|
|
311
|
-
l[
|
|
311
|
+
l[42] || (l[42] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
312
312
|
a("span", Ae, [
|
|
313
313
|
n(pe, { data: e(D) }, null, 8, ["data"])
|
|
314
314
|
])
|
|
315
315
|
]),
|
|
316
316
|
a("div", null, [
|
|
317
|
-
l[
|
|
318
|
-
a("span", Te,
|
|
317
|
+
l[43] || (l[43] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
318
|
+
a("span", Te, F(e(x)), 1)
|
|
319
319
|
])
|
|
320
320
|
]),
|
|
321
|
-
l[
|
|
321
|
+
l[61] || (l[61] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " (SharePoint) Additional Requested Documents ", -1)),
|
|
322
322
|
a("div", Be, [
|
|
323
|
-
(d(!0),
|
|
323
|
+
(d(!0), w(K, null, G(v.value, (t) => (d(), U(P, {
|
|
324
324
|
key: t,
|
|
325
325
|
label: t.replace("additionalDocument", "Document "),
|
|
326
326
|
type: /\.pdf$/i.test(c.submission.documents[t]) ? "pdf" : "image",
|
|
@@ -328,32 +328,32 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
328
328
|
"onUpdate:modelValue": (W) => c.submission.documents[t] = W,
|
|
329
329
|
"restaurant-id": e(R)
|
|
330
330
|
}, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
331
|
-
(d(!0),
|
|
331
|
+
(d(!0), w(K, null, G(L.value, (t, W) => (d(), w("div", {
|
|
332
332
|
key: `new-${W}`
|
|
333
333
|
}, [
|
|
334
|
-
a("p", null, "Document " +
|
|
335
|
-
t.file.type.startsWith("image/") ? (d(),
|
|
334
|
+
a("p", null, "Document " + F(v.value.length + W + 1), 1),
|
|
335
|
+
t.file.type.startsWith("image/") ? (d(), w("img", {
|
|
336
336
|
key: 0,
|
|
337
337
|
src: t.preview,
|
|
338
338
|
class: "mt-2 rounded border"
|
|
339
|
-
}, null, 8, Ee)) : (d(),
|
|
339
|
+
}, null, 8, Ee)) : (d(), w("p", $e, F(t.file.name), 1)),
|
|
340
340
|
n(A, {
|
|
341
341
|
class: "mt-4",
|
|
342
342
|
"prepend-icon": "delete",
|
|
343
343
|
label: "Remove",
|
|
344
344
|
variant: "destructive",
|
|
345
|
-
onClick: (
|
|
345
|
+
onClick: (jl) => L.value.splice(W, 1)
|
|
346
346
|
}, null, 8, ["onClick"])
|
|
347
347
|
]))), 128)),
|
|
348
|
-
s.value < ue ? (d(),
|
|
349
|
-
a("p", null, "Document " +
|
|
348
|
+
s.value < ue ? (d(), w("div", je, [
|
|
349
|
+
a("p", null, "Document " + F(s.value + 1), 1),
|
|
350
350
|
n(H, {
|
|
351
351
|
accept: ".png, .jpg, .jpeg, .pdf",
|
|
352
|
-
onFileUpload:
|
|
352
|
+
onFileUpload: S
|
|
353
353
|
})
|
|
354
354
|
])) : $("", !0)
|
|
355
355
|
]),
|
|
356
|
-
L.value.length ? (d(),
|
|
356
|
+
L.value.length ? (d(), w("div", Oe, [
|
|
357
357
|
n(A, {
|
|
358
358
|
type: "button",
|
|
359
359
|
variant: "primary",
|
|
@@ -363,9 +363,9 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
363
363
|
onClick: h
|
|
364
364
|
}, null, 8, ["loading"])
|
|
365
365
|
])) : $("", !0),
|
|
366
|
-
l[
|
|
366
|
+
l[62] || (l[62] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
367
367
|
a("div", Le, [
|
|
368
|
-
n(
|
|
368
|
+
n(C, {
|
|
369
369
|
modelValue: p.value.duitNow,
|
|
370
370
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => p.value.duitNow = t),
|
|
371
371
|
label: "DuitNow QR",
|
|
@@ -377,12 +377,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
377
377
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
378
378
|
)
|
|
379
379
|
}, {
|
|
380
|
-
append: f(() => [...l[
|
|
380
|
+
append: f(() => [...l[44] || (l[44] = [
|
|
381
381
|
J("%", -1)
|
|
382
382
|
])]),
|
|
383
383
|
_: 1
|
|
384
384
|
}, 8, ["modelValue", "rules"]),
|
|
385
|
-
n(
|
|
385
|
+
n(C, {
|
|
386
386
|
modelValue: p.value.mydebitCard,
|
|
387
387
|
"onUpdate:modelValue": l[1] || (l[1] = (t) => p.value.mydebitCard = t),
|
|
388
388
|
label: "myDebit Card",
|
|
@@ -394,12 +394,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
394
394
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
395
395
|
)
|
|
396
396
|
}, {
|
|
397
|
-
append: f(() => [...l[
|
|
397
|
+
append: f(() => [...l[45] || (l[45] = [
|
|
398
398
|
J("%", -1)
|
|
399
399
|
])]),
|
|
400
400
|
_: 1
|
|
401
401
|
}, 8, ["modelValue", "rules"]),
|
|
402
|
-
n(
|
|
402
|
+
n(C, {
|
|
403
403
|
modelValue: p.value.localDebit,
|
|
404
404
|
"onUpdate:modelValue": l[2] || (l[2] = (t) => p.value.localDebit = t),
|
|
405
405
|
label: "Local Debit Card",
|
|
@@ -411,12 +411,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
411
411
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
412
412
|
)
|
|
413
413
|
}, {
|
|
414
|
-
append: f(() => [...l[
|
|
414
|
+
append: f(() => [...l[46] || (l[46] = [
|
|
415
415
|
J("%", -1)
|
|
416
416
|
])]),
|
|
417
417
|
_: 1
|
|
418
418
|
}, 8, ["modelValue", "rules"]),
|
|
419
|
-
n(
|
|
419
|
+
n(C, {
|
|
420
420
|
modelValue: p.value.localCredit,
|
|
421
421
|
"onUpdate:modelValue": l[3] || (l[3] = (t) => p.value.localCredit = t),
|
|
422
422
|
label: "Local Credit Card",
|
|
@@ -428,12 +428,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
428
428
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
429
429
|
)
|
|
430
430
|
}, {
|
|
431
|
-
append: f(() => [...l[
|
|
431
|
+
append: f(() => [...l[47] || (l[47] = [
|
|
432
432
|
J("%", -1)
|
|
433
433
|
])]),
|
|
434
434
|
_: 1
|
|
435
435
|
}, 8, ["modelValue", "rules"]),
|
|
436
|
-
n(
|
|
436
|
+
n(C, {
|
|
437
437
|
modelValue: p.value.foreignCard,
|
|
438
438
|
"onUpdate:modelValue": l[4] || (l[4] = (t) => p.value.foreignCard = t),
|
|
439
439
|
label: "Foreign Card",
|
|
@@ -445,12 +445,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
445
445
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
446
446
|
)
|
|
447
447
|
}, {
|
|
448
|
-
append: f(() => [...l[
|
|
448
|
+
append: f(() => [...l[48] || (l[48] = [
|
|
449
449
|
J("%", -1)
|
|
450
450
|
])]),
|
|
451
451
|
_: 1
|
|
452
452
|
}, 8, ["modelValue", "rules"]),
|
|
453
|
-
n(
|
|
453
|
+
n(C, {
|
|
454
454
|
modelValue: p.value.jcbStandard,
|
|
455
455
|
"onUpdate:modelValue": l[5] || (l[5] = (t) => p.value.jcbStandard = t),
|
|
456
456
|
label: "JCB Standard",
|
|
@@ -462,12 +462,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
462
462
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
463
463
|
)
|
|
464
464
|
}, {
|
|
465
|
-
append: f(() => [...l[
|
|
465
|
+
append: f(() => [...l[49] || (l[49] = [
|
|
466
466
|
J("%", -1)
|
|
467
467
|
])]),
|
|
468
468
|
_: 1
|
|
469
469
|
}, 8, ["modelValue", "rules"]),
|
|
470
|
-
n(
|
|
470
|
+
n(C, {
|
|
471
471
|
modelValue: p.value.jcbPlatinum,
|
|
472
472
|
"onUpdate:modelValue": l[6] || (l[6] = (t) => p.value.jcbPlatinum = t),
|
|
473
473
|
label: "JCB Platinum",
|
|
@@ -479,15 +479,15 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
479
479
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
480
480
|
)
|
|
481
481
|
}, {
|
|
482
|
-
append: f(() => [...l[
|
|
482
|
+
append: f(() => [...l[50] || (l[50] = [
|
|
483
483
|
J("%", -1)
|
|
484
484
|
])]),
|
|
485
485
|
_: 1
|
|
486
486
|
}, 8, ["modelValue", "rules"])
|
|
487
487
|
]),
|
|
488
|
-
l[
|
|
488
|
+
l[63] || (l[63] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Extra Settings", -1)),
|
|
489
489
|
a("div", ze, [
|
|
490
|
-
n(
|
|
490
|
+
n(C, {
|
|
491
491
|
modelValue: B.value,
|
|
492
492
|
"onUpdate:modelValue": l[7] || (l[7] = (t) => B.value = t),
|
|
493
493
|
label: "Number of Devices",
|
|
@@ -498,8 +498,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
498
498
|
]),
|
|
499
499
|
a("div", Me, [
|
|
500
500
|
n(ce, {
|
|
501
|
-
modelValue:
|
|
502
|
-
"onUpdate:modelValue": l[9] || (l[9] = (t) =>
|
|
501
|
+
modelValue: I.value,
|
|
502
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => I.value = t)
|
|
503
503
|
}, {
|
|
504
504
|
"dialog-button": f(() => [
|
|
505
505
|
n(A, {
|
|
@@ -511,13 +511,13 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
511
511
|
label: "Reject Submission"
|
|
512
512
|
}, null, 8, ["loading"])
|
|
513
513
|
]),
|
|
514
|
-
"dialog-header": f(() => [...l[
|
|
514
|
+
"dialog-header": f(() => [...l[51] || (l[51] = [
|
|
515
515
|
a("div", null, "Rejecting Submission", -1)
|
|
516
516
|
])]),
|
|
517
517
|
default: f(() => [
|
|
518
518
|
n(be, {
|
|
519
|
-
modelValue:
|
|
520
|
-
"onUpdate:modelValue": l[8] || (l[8] = (t) =>
|
|
519
|
+
modelValue: q.value,
|
|
520
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => q.value = t),
|
|
521
521
|
label: "Reason for Rejection",
|
|
522
522
|
"label-mark": "optional",
|
|
523
523
|
"helper-text": "Please provide a reason for rejection."
|
|
@@ -544,10 +544,10 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
544
544
|
]),
|
|
545
545
|
n(ye, { disabled: !0 }, {
|
|
546
546
|
default: f(() => [
|
|
547
|
-
l[
|
|
547
|
+
l[52] || (l[52] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
548
548
|
a("div", He, [
|
|
549
549
|
a("div", We, [
|
|
550
|
-
n(
|
|
550
|
+
n(C, {
|
|
551
551
|
modelValue: e(o).picName,
|
|
552
552
|
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(o).picName = t),
|
|
553
553
|
label: "Owner/Director Name",
|
|
@@ -557,7 +557,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
557
557
|
}, null, 8, ["modelValue", "rules"])
|
|
558
558
|
]),
|
|
559
559
|
a("div", Je, [
|
|
560
|
-
n(
|
|
560
|
+
n(C, {
|
|
561
561
|
modelValue: e(o).picRole,
|
|
562
562
|
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(o).picRole = t),
|
|
563
563
|
label: "Owner/Director Role",
|
|
@@ -567,7 +567,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
567
567
|
}, null, 8, ["modelValue", "rules"])
|
|
568
568
|
]),
|
|
569
569
|
a("div", Ke, [
|
|
570
|
-
n(
|
|
570
|
+
n(C, {
|
|
571
571
|
modelValue: e(o).picEmail,
|
|
572
572
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(o).picEmail = t),
|
|
573
573
|
label: "Owner/Director Email",
|
|
@@ -588,63 +588,73 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
588
588
|
}, null, 8, ["model-value", "rules"])
|
|
589
589
|
]),
|
|
590
590
|
a("div", Ye, [
|
|
591
|
-
n(
|
|
591
|
+
n(C, {
|
|
592
|
+
modelValue: e(o).nric,
|
|
593
|
+
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(o).nric = t),
|
|
594
|
+
label: "Owner/Director NRIC No",
|
|
595
|
+
placeholder: "Enter your NRIC number",
|
|
596
|
+
"label-mark": "required",
|
|
597
|
+
rules: e(i)(e(u).string().min(1, "NRIC No is required"))
|
|
598
|
+
}, null, 8, ["modelValue", "rules"])
|
|
599
|
+
]),
|
|
600
|
+
a("div", he, [
|
|
601
|
+
n(C, {
|
|
592
602
|
modelValue: e(o).tradingName,
|
|
593
|
-
"onUpdate:modelValue": l[
|
|
603
|
+
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(o).tradingName = t),
|
|
594
604
|
label: "Trading Name",
|
|
595
605
|
placeholder: "Enter trading name",
|
|
596
606
|
"label-mark": "required",
|
|
597
607
|
rules: e(i)(e(u).string().min(1, "Trading Name is required"))
|
|
598
608
|
}, null, 8, ["modelValue", "rules"])
|
|
599
609
|
]),
|
|
600
|
-
a("div",
|
|
601
|
-
n(
|
|
610
|
+
a("div", Ge, [
|
|
611
|
+
n(C, {
|
|
602
612
|
modelValue: e(o).outletName,
|
|
603
|
-
"onUpdate:modelValue": l[
|
|
613
|
+
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(o).outletName = t),
|
|
604
614
|
label: "Registered Name",
|
|
605
615
|
placeholder: "Enter registered name",
|
|
606
616
|
"label-mark": "required",
|
|
607
617
|
rules: e(i)(e(u).string().min(1, "Registered Name is required"))
|
|
608
618
|
}, null, 8, ["modelValue", "rules"])
|
|
609
619
|
]),
|
|
610
|
-
a("div",
|
|
611
|
-
n(
|
|
620
|
+
a("div", Xe, [
|
|
621
|
+
n(C, {
|
|
612
622
|
modelValue: e(o).outletAddress,
|
|
613
|
-
"onUpdate:modelValue": l[
|
|
623
|
+
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(o).outletAddress = t),
|
|
614
624
|
label: "Outlet Address",
|
|
615
625
|
placeholder: "Enter outlet address",
|
|
616
626
|
"label-mark": "required",
|
|
617
627
|
rules: e(i)(e(u).string().min(1, "Address is required"))
|
|
618
628
|
}, null, 8, ["modelValue", "rules"])
|
|
619
629
|
]),
|
|
620
|
-
n(
|
|
630
|
+
n(C, {
|
|
621
631
|
modelValue: e(o).outletPostCode,
|
|
622
|
-
"onUpdate:modelValue": l[
|
|
632
|
+
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(o).outletPostCode = t),
|
|
623
633
|
label: "Postal Code",
|
|
624
634
|
placeholder: "Enter postal code",
|
|
625
635
|
"label-mark": "required",
|
|
626
636
|
rules: e(i)(e(u).string().min(1, "Postal Code is required"))
|
|
627
637
|
}, null, 8, ["modelValue", "rules"]),
|
|
628
|
-
n(
|
|
638
|
+
n(C, {
|
|
629
639
|
modelValue: e(o).outletState,
|
|
630
|
-
"onUpdate:modelValue": l[
|
|
640
|
+
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(o).outletState = t),
|
|
631
641
|
label: "State",
|
|
632
642
|
placeholder: "Enter state",
|
|
633
643
|
"label-mark": "required",
|
|
634
644
|
rules: e(i)(e(u).string().min(1, "State is required"))
|
|
635
645
|
}, null, 8, ["modelValue", "rules"]),
|
|
636
|
-
n(
|
|
646
|
+
n(C, {
|
|
637
647
|
modelValue: e(o).outletCity,
|
|
638
|
-
"onUpdate:modelValue": l[
|
|
648
|
+
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(o).outletCity = t),
|
|
639
649
|
label: "City",
|
|
640
650
|
placeholder: "Enter city",
|
|
641
651
|
"label-mark": "required",
|
|
642
652
|
rules: e(i)(e(u).string().min(1, "City is required"))
|
|
643
653
|
}, null, 8, ["modelValue", "rules"]),
|
|
644
|
-
a("div",
|
|
654
|
+
a("div", Ze, [
|
|
645
655
|
n(ne, {
|
|
646
656
|
modelValue: e(o).businessType,
|
|
647
|
-
"onUpdate:modelValue": l[
|
|
657
|
+
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(o).businessType = t),
|
|
648
658
|
label: "Type",
|
|
649
659
|
placeholder: "Select business type",
|
|
650
660
|
"label-mark": "required",
|
|
@@ -663,75 +673,75 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
663
673
|
]
|
|
664
674
|
}, null, 8, ["modelValue", "rules"])
|
|
665
675
|
]),
|
|
666
|
-
a("div",
|
|
667
|
-
n(
|
|
676
|
+
a("div", _e, [
|
|
677
|
+
n(C, {
|
|
668
678
|
modelValue: e(o).businessRegNo,
|
|
669
|
-
"onUpdate:modelValue": l[
|
|
679
|
+
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(o).businessRegNo = t),
|
|
670
680
|
label: "Registration No",
|
|
671
681
|
placeholder: "Enter registration number",
|
|
672
682
|
"label-mark": "required",
|
|
673
683
|
rules: e(i)(e(u).string().min(1, "Reg No is required"))
|
|
674
684
|
}, null, 8, ["modelValue", "rules"])
|
|
675
685
|
]),
|
|
676
|
-
a("div",
|
|
677
|
-
n(
|
|
686
|
+
a("div", el, [
|
|
687
|
+
n(C, {
|
|
678
688
|
modelValue: e(o).tinNo,
|
|
679
|
-
"onUpdate:modelValue": l[
|
|
689
|
+
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(o).tinNo = t),
|
|
680
690
|
label: "Tax Identification No (TIN)",
|
|
681
691
|
placeholder: "Enter your TIN number",
|
|
682
692
|
"label-mark": "required",
|
|
683
693
|
rules: e(i)(e(u).string().min(1, "TIN is required"))
|
|
684
694
|
}, null, 8, ["modelValue", "rules"])
|
|
685
695
|
]),
|
|
686
|
-
a("div",
|
|
687
|
-
n(
|
|
696
|
+
a("div", ll, [
|
|
697
|
+
n(C, {
|
|
688
698
|
modelValue: e(o).sstNo,
|
|
689
|
-
"onUpdate:modelValue": l[
|
|
699
|
+
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(o).sstNo = t),
|
|
690
700
|
label: "SST Registration No (SST)",
|
|
691
701
|
placeholder: "Enter your SST number",
|
|
692
702
|
"label-mark": "optional"
|
|
693
703
|
}, null, 8, ["modelValue"])
|
|
694
704
|
])
|
|
695
705
|
]),
|
|
696
|
-
l[
|
|
697
|
-
a("div",
|
|
706
|
+
l[53] || (l[53] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
707
|
+
a("div", tl, [
|
|
698
708
|
n(ne, {
|
|
699
709
|
modelValue: e(o).bankName,
|
|
700
|
-
"onUpdate:modelValue": l[
|
|
710
|
+
"onUpdate:modelValue": l[25] || (l[25] = (t) => e(o).bankName = t),
|
|
701
711
|
label: "Bank",
|
|
702
712
|
placeholder: "Select bank type",
|
|
703
713
|
"label-mark": "required",
|
|
704
714
|
rules: e(i)(e(u).string().min(1, "Bank Type is required")),
|
|
705
715
|
items: e(ke).bankNameOptions()
|
|
706
716
|
}, null, 8, ["modelValue", "rules", "items"]),
|
|
707
|
-
n(
|
|
717
|
+
n(C, {
|
|
708
718
|
modelValue: e(o).bankHolderName,
|
|
709
|
-
"onUpdate:modelValue": l[
|
|
719
|
+
"onUpdate:modelValue": l[26] || (l[26] = (t) => e(o).bankHolderName = t),
|
|
710
720
|
label: "Beneficiary Name",
|
|
711
721
|
placeholder: "Enter Beneficiary Name",
|
|
712
722
|
"label-mark": "required",
|
|
713
723
|
rules: e(i)(e(u).string().min(1, "Beneficiary Name is required"))
|
|
714
724
|
}, null, 8, ["modelValue", "rules"]),
|
|
715
|
-
n(
|
|
725
|
+
n(C, {
|
|
716
726
|
modelValue: e(o).bankAccountNo,
|
|
717
|
-
"onUpdate:modelValue": l[
|
|
727
|
+
"onUpdate:modelValue": l[27] || (l[27] = (t) => e(o).bankAccountNo = t),
|
|
718
728
|
label: "Account Number",
|
|
719
729
|
placeholder: "Enter Account Number",
|
|
720
730
|
"label-mark": "required",
|
|
721
731
|
rules: e(i)(e(u).string().min(1, "Account Number is required"))
|
|
722
732
|
}, null, 8, ["modelValue", "rules"])
|
|
723
733
|
]),
|
|
724
|
-
l[
|
|
725
|
-
l[
|
|
726
|
-
a("div",
|
|
734
|
+
l[54] || (l[54] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
735
|
+
l[55] || (l[55] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 1. All Directors/Owner ICs ", -1)),
|
|
736
|
+
a("div", al, [
|
|
727
737
|
n(P, {
|
|
728
738
|
label: "Authorized Person ID",
|
|
729
739
|
modelValue: e(r).authorizedPersonID,
|
|
730
|
-
"onUpdate:modelValue": l[
|
|
740
|
+
"onUpdate:modelValue": l[28] || (l[28] = (t) => e(r).authorizedPersonID = t),
|
|
731
741
|
type: "image",
|
|
732
742
|
"restaurant-id": m.submission.restaurantId
|
|
733
743
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
734
|
-
(d(!0),
|
|
744
|
+
(d(!0), w(K, null, G(Y.value, (t) => (d(), U(P, {
|
|
735
745
|
key: t,
|
|
736
746
|
label: `Authorized Person ID ${t.replace("authorizedPersonID", "")}`,
|
|
737
747
|
modelValue: e(r)[t],
|
|
@@ -740,14 +750,14 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
740
750
|
"restaurant-id": m.submission.restaurantId
|
|
741
751
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
|
|
742
752
|
]),
|
|
743
|
-
l[
|
|
744
|
-
a("div",
|
|
753
|
+
l[56] || (l[56] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-6" }, " Section 2. Business Information ", -1)),
|
|
754
|
+
a("div", sl, [
|
|
745
755
|
e(o).businessType === "private_limited" || e(o).businessType === "public_limited" ? (d(), U(P, {
|
|
746
756
|
key: 0,
|
|
747
757
|
label: "Superform",
|
|
748
758
|
type: "pdf",
|
|
749
759
|
modelValue: e(r).certificate,
|
|
750
|
-
"onUpdate:modelValue": l[
|
|
760
|
+
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(r).certificate = t),
|
|
751
761
|
"restaurant-id": m.submission.restaurantId
|
|
752
762
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
753
763
|
e(o).businessType === "sole_proprietorship" || e(o).businessType === "partnership" ? (d(), U(P, {
|
|
@@ -755,38 +765,38 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
755
765
|
label: "Business Registration Document",
|
|
756
766
|
type: "pdf",
|
|
757
767
|
modelValue: e(r).certificate,
|
|
758
|
-
"onUpdate:modelValue": l[
|
|
768
|
+
"onUpdate:modelValue": l[30] || (l[30] = (t) => e(r).certificate = t),
|
|
759
769
|
"restaurant-id": m.submission.restaurantId
|
|
760
770
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
761
771
|
e(r).interiorPhoto ? (d(), U(P, {
|
|
762
772
|
key: 2,
|
|
763
773
|
label: "Interior Photo",
|
|
764
774
|
modelValue: e(r).interiorPhoto,
|
|
765
|
-
"onUpdate:modelValue": l[
|
|
775
|
+
"onUpdate:modelValue": l[31] || (l[31] = (t) => e(r).interiorPhoto = t),
|
|
766
776
|
type: "image",
|
|
767
777
|
"restaurant-id": m.submission.restaurantId
|
|
768
778
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
769
779
|
n(P, {
|
|
770
780
|
label: "Outlet Photo",
|
|
771
781
|
modelValue: e(r).outletPhoto,
|
|
772
|
-
"onUpdate:modelValue": l[
|
|
782
|
+
"onUpdate:modelValue": l[32] || (l[32] = (t) => e(r).outletPhoto = t),
|
|
773
783
|
type: "image-or-pdf",
|
|
774
784
|
"restaurant-id": m.submission.restaurantId
|
|
775
785
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
776
786
|
]),
|
|
777
|
-
l[
|
|
778
|
-
a("div",
|
|
787
|
+
l[57] || (l[57] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 3. Payout Information ", -1)),
|
|
788
|
+
a("div", ol, [
|
|
779
789
|
n(P, {
|
|
780
790
|
label: "Latest Bank Statement",
|
|
781
791
|
modelValue: e(r).bankStatement,
|
|
782
|
-
"onUpdate:modelValue": l[
|
|
792
|
+
"onUpdate:modelValue": l[33] || (l[33] = (t) => e(r).bankStatement = t),
|
|
783
793
|
type: "pdf",
|
|
784
794
|
"restaurant-id": m.submission.restaurantId
|
|
785
795
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
786
796
|
]),
|
|
787
|
-
l[
|
|
788
|
-
a("div",
|
|
789
|
-
(d(!0),
|
|
797
|
+
l[58] || (l[58] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 4. Site Photos ", -1)),
|
|
798
|
+
a("div", nl, [
|
|
799
|
+
(d(!0), w(K, null, G([1, 2, 3, 4, 5].filter(
|
|
790
800
|
(t) => !!e(r)[`onsitePhoto${t}`]
|
|
791
801
|
), (t) => (d(), U(P, {
|
|
792
802
|
key: t,
|
|
@@ -797,13 +807,13 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
797
807
|
"restaurant-id": m.submission.restaurantId
|
|
798
808
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
|
|
799
809
|
]),
|
|
800
|
-
l[
|
|
801
|
-
a("div",
|
|
810
|
+
l[59] || (l[59] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 5. Additional Documents ", -1)),
|
|
811
|
+
a("div", rl, [
|
|
802
812
|
e(r).liquorLicense ? (d(), U(P, {
|
|
803
813
|
key: 0,
|
|
804
814
|
label: "Liquor License",
|
|
805
815
|
modelValue: e(r).liquorLicense,
|
|
806
|
-
"onUpdate:modelValue": l[
|
|
816
|
+
"onUpdate:modelValue": l[34] || (l[34] = (t) => e(r).liquorLicense = t),
|
|
807
817
|
type: "image-or-pdf",
|
|
808
818
|
"restaurant-id": m.submission.restaurantId
|
|
809
819
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
@@ -811,17 +821,17 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
811
821
|
key: 1,
|
|
812
822
|
label: "Appendix C",
|
|
813
823
|
modelValue: e(r).appendixC,
|
|
814
|
-
"onUpdate:modelValue": l[
|
|
824
|
+
"onUpdate:modelValue": l[35] || (l[35] = (t) => e(r).appendixC = t),
|
|
815
825
|
type: "pdf",
|
|
816
826
|
"restaurant-id": m.submission.restaurantId
|
|
817
827
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
818
|
-
!e(r).liquorLicense && !e(r).appendixC ? (d(),
|
|
828
|
+
!e(r).liquorLicense && !e(r).appendixC ? (d(), w("p", il, " No additional documents submitted. ")) : $("", !0)
|
|
819
829
|
]),
|
|
820
|
-
l[
|
|
821
|
-
a("div",
|
|
822
|
-
n(
|
|
830
|
+
l[60] || (l[60] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
831
|
+
a("div", ul, [
|
|
832
|
+
n(Ie, {
|
|
823
833
|
modelValue: e(r).signature,
|
|
824
|
-
"onUpdate:modelValue": l[
|
|
834
|
+
"onUpdate:modelValue": l[36] || (l[36] = (t) => e(r).signature = t),
|
|
825
835
|
"restaurant-id": m.submission.restaurantId,
|
|
826
836
|
label: "Signature"
|
|
827
837
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
@@ -829,7 +839,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
829
839
|
label: "Company Stamp",
|
|
830
840
|
type: "image",
|
|
831
841
|
modelValue: e(r).companyStamp,
|
|
832
|
-
"onUpdate:modelValue": l[
|
|
842
|
+
"onUpdate:modelValue": l[37] || (l[37] = (t) => e(r).companyStamp = t),
|
|
833
843
|
"restaurant-id": m.submission.restaurantId
|
|
834
844
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
835
845
|
])
|
|
@@ -839,7 +849,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
839
849
|
], 64);
|
|
840
850
|
};
|
|
841
851
|
}
|
|
842
|
-
}),
|
|
852
|
+
}), ml = { class: "space-y-2" }, pl = { class: "text-gray-900" }, bl = { class: "text-gray-900" }, cl = { class: "text-gray-900" }, gl = { class: "text-gray-900" }, yl = { class: "text-gray-900" }, Vl = { class: "text-gray-900" }, vl = { class: "mt-6 grid grid-cols-4 gap-24" }, fl = { class: "w-full flex justify-end mt-6" }, kl = { class: "mt-6 grid grid-cols-4 gap-24" }, Cl = { class: "col-span-2" }, Nl = { class: "col-span-2" }, Sl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, ql = { class: "mt-6 grid grid-cols-4 gap-24" }, wl = { class: "mt-6 grid grid-cols-4 gap-24" }, Il = { class: "mt-6 grid grid-cols-4 gap-24" }, xl = { class: "col-span-2" }, Fl = { class: "col-span-2" }, Ul = { class: "col-span-2" }, Dl = { class: "col-span-2" }, Rl = { class: "col-span-2" }, Al = { class: "col-span-2" }, Tl = /* @__PURE__ */ X({
|
|
843
853
|
__name: "NTTSubmission",
|
|
844
854
|
props: {
|
|
845
855
|
submission: {
|
|
@@ -849,7 +859,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
849
859
|
},
|
|
850
860
|
emits: ["update:submission"],
|
|
851
861
|
setup(m, { emit: O }) {
|
|
852
|
-
const c = m, k = O, y = oe(),
|
|
862
|
+
const c = m, k = O, y = oe(), I = j(!1), { isLoading: g, startAsyncCall: T } = ee(), { fields: o, documents: r, restaurantId: R, profile: V, status: D, statusReason: x } = c.submission, q = j(""), B = [
|
|
853
863
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
854
864
|
{
|
|
855
865
|
key: "localCardStandard",
|
|
@@ -939,10 +949,10 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
939
949
|
c.submission._id,
|
|
940
950
|
{
|
|
941
951
|
status: "rejected",
|
|
942
|
-
statusReason:
|
|
952
|
+
statusReason: q.value
|
|
943
953
|
}
|
|
944
954
|
);
|
|
945
|
-
k("update:submission", v),
|
|
955
|
+
k("update:submission", v), I.value = !1, y.open({
|
|
946
956
|
type: "success",
|
|
947
957
|
title: "Submission updated successfully"
|
|
948
958
|
});
|
|
@@ -955,39 +965,39 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
955
965
|
}
|
|
956
966
|
});
|
|
957
967
|
return (v, s) => {
|
|
958
|
-
const
|
|
959
|
-
return d(),
|
|
960
|
-
a("div",
|
|
968
|
+
const S = N("FmTextField"), h = N("FmButton"), ae = N("FmTextarea"), se = N("FmDialog"), _ = N("FmPhoneNumber"), b = N("FmForm");
|
|
969
|
+
return d(), w(K, null, [
|
|
970
|
+
a("div", ml, [
|
|
961
971
|
a("div", null, [
|
|
962
972
|
s[31] || (s[31] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
963
|
-
a("span",
|
|
973
|
+
a("span", pl, F(e(R)), 1)
|
|
964
974
|
]),
|
|
965
975
|
a("div", null, [
|
|
966
976
|
s[32] || (s[32] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
967
|
-
a("span",
|
|
977
|
+
a("span", bl, F(e(V).name) + " ( " + F(e(V).legalName) + " )", 1)
|
|
968
978
|
]),
|
|
969
979
|
a("div", null, [
|
|
970
980
|
s[33] || (s[33] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
971
|
-
a("span",
|
|
981
|
+
a("span", cl, F(e(V).email), 1)
|
|
972
982
|
]),
|
|
973
983
|
a("div", null, [
|
|
974
984
|
s[34] || (s[34] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
975
|
-
a("span",
|
|
985
|
+
a("span", gl, F(e(V).phoneNo), 1)
|
|
976
986
|
]),
|
|
977
987
|
a("div", null, [
|
|
978
988
|
s[35] || (s[35] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
979
|
-
a("span",
|
|
989
|
+
a("span", yl, [
|
|
980
990
|
n(pe, { data: e(D) }, null, 8, ["data"])
|
|
981
991
|
])
|
|
982
992
|
]),
|
|
983
993
|
a("div", null, [
|
|
984
994
|
s[36] || (s[36] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
985
|
-
a("span",
|
|
995
|
+
a("span", Vl, F(e(x)), 1)
|
|
986
996
|
])
|
|
987
997
|
]),
|
|
988
998
|
s[43] || (s[43] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
989
|
-
a("div",
|
|
990
|
-
(d(),
|
|
999
|
+
a("div", vl, [
|
|
1000
|
+
(d(), w(K, null, G(B, (l) => n(S, {
|
|
991
1001
|
key: l.key,
|
|
992
1002
|
modelValue: E.value[l.key],
|
|
993
1003
|
"onUpdate:modelValue": (A) => E.value[l.key] = A,
|
|
@@ -1006,10 +1016,10 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1006
1016
|
_: 1
|
|
1007
1017
|
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
1008
1018
|
]),
|
|
1009
|
-
a("div",
|
|
1019
|
+
a("div", fl, [
|
|
1010
1020
|
n(se, {
|
|
1011
|
-
modelValue:
|
|
1012
|
-
"onUpdate:modelValue": s[1] || (s[1] = (l) =>
|
|
1021
|
+
modelValue: I.value,
|
|
1022
|
+
"onUpdate:modelValue": s[1] || (s[1] = (l) => I.value = l)
|
|
1013
1023
|
}, {
|
|
1014
1024
|
"dialog-button": f(() => [
|
|
1015
1025
|
n(h, {
|
|
@@ -1026,8 +1036,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1026
1036
|
])]),
|
|
1027
1037
|
default: f(() => [
|
|
1028
1038
|
n(ae, {
|
|
1029
|
-
modelValue:
|
|
1030
|
-
"onUpdate:modelValue": s[0] || (s[0] = (l) =>
|
|
1039
|
+
modelValue: q.value,
|
|
1040
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => q.value = l),
|
|
1031
1041
|
label: "Reason for Rejection",
|
|
1032
1042
|
"label-mark": "optional",
|
|
1033
1043
|
"helper-text": "Please provide a reason for rejection."
|
|
@@ -1065,9 +1075,9 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1065
1075
|
n(b, { disabled: !0 }, {
|
|
1066
1076
|
default: f(() => [
|
|
1067
1077
|
s[39] || (s[39] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
1068
|
-
a("div",
|
|
1069
|
-
a("div",
|
|
1070
|
-
n(
|
|
1078
|
+
a("div", kl, [
|
|
1079
|
+
a("div", Cl, [
|
|
1080
|
+
n(S, {
|
|
1071
1081
|
modelValue: e(o).companyName,
|
|
1072
1082
|
"onUpdate:modelValue": s[2] || (s[2] = (l) => e(o).companyName = l),
|
|
1073
1083
|
label: "Company Name",
|
|
@@ -1075,8 +1085,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1075
1085
|
rules: e(i)(e(u).string().min(1, "Company Name is required"))
|
|
1076
1086
|
}, null, 8, ["modelValue", "rules"])
|
|
1077
1087
|
]),
|
|
1078
|
-
a("div",
|
|
1079
|
-
n(
|
|
1088
|
+
a("div", Nl, [
|
|
1089
|
+
n(S, {
|
|
1080
1090
|
modelValue: e(o).outletName,
|
|
1081
1091
|
"onUpdate:modelValue": s[3] || (s[3] = (l) => e(o).outletName = l),
|
|
1082
1092
|
label: "Outlet Name (Thai)",
|
|
@@ -1084,8 +1094,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1084
1094
|
rules: e(i)(e(u).string().min(1, "Outlet Name is required"))
|
|
1085
1095
|
}, null, 8, ["modelValue", "rules"])
|
|
1086
1096
|
]),
|
|
1087
|
-
a("div",
|
|
1088
|
-
n(
|
|
1097
|
+
a("div", Sl, [
|
|
1098
|
+
n(S, {
|
|
1089
1099
|
modelValue: e(o).outletNameEnglish,
|
|
1090
1100
|
"onUpdate:modelValue": s[4] || (s[4] = (l) => e(o).outletNameEnglish = l),
|
|
1091
1101
|
label: "Outlet Name (English)",
|
|
@@ -1093,8 +1103,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1093
1103
|
rules: e(i)(e(u).string().min(1, "Outlet Name English is required"))
|
|
1094
1104
|
}, null, 8, ["modelValue", "rules"])
|
|
1095
1105
|
]),
|
|
1096
|
-
a("div",
|
|
1097
|
-
n(
|
|
1106
|
+
a("div", Pl, [
|
|
1107
|
+
n(S, {
|
|
1098
1108
|
modelValue: e(o).outletAddress,
|
|
1099
1109
|
"onUpdate:modelValue": s[5] || (s[5] = (l) => e(o).outletAddress = l),
|
|
1100
1110
|
label: "Outlet Address",
|
|
@@ -1102,33 +1112,33 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1102
1112
|
rules: e(i)(e(u).string().min(1, "Outlet Address is required"))
|
|
1103
1113
|
}, null, 8, ["modelValue", "rules"])
|
|
1104
1114
|
]),
|
|
1105
|
-
n(
|
|
1115
|
+
n(S, {
|
|
1106
1116
|
modelValue: e(o).outletPostCode,
|
|
1107
1117
|
"onUpdate:modelValue": s[6] || (s[6] = (l) => e(o).outletPostCode = l),
|
|
1108
1118
|
label: "Post Code",
|
|
1109
1119
|
"label-mark": "required",
|
|
1110
1120
|
rules: e(i)(e(u).string().min(1, "Post Code is required"))
|
|
1111
1121
|
}, null, 8, ["modelValue", "rules"]),
|
|
1112
|
-
n(
|
|
1122
|
+
n(S, {
|
|
1113
1123
|
modelValue: e(o).outletState,
|
|
1114
1124
|
"onUpdate:modelValue": s[7] || (s[7] = (l) => e(o).outletState = l),
|
|
1115
1125
|
label: "State",
|
|
1116
1126
|
"label-mark": "required",
|
|
1117
1127
|
rules: e(i)(e(u).string().min(1, "State is required"))
|
|
1118
1128
|
}, null, 8, ["modelValue", "rules"]),
|
|
1119
|
-
n(
|
|
1129
|
+
n(S, {
|
|
1120
1130
|
modelValue: e(o).outletCity,
|
|
1121
1131
|
"onUpdate:modelValue": s[8] || (s[8] = (l) => e(o).outletCity = l),
|
|
1122
1132
|
label: "City",
|
|
1123
1133
|
"label-mark": "required",
|
|
1124
1134
|
rules: e(i)(e(u).string().min(1, "City is required"))
|
|
1125
1135
|
}, null, 8, ["modelValue", "rules"]),
|
|
1126
|
-
n(
|
|
1136
|
+
n(S, {
|
|
1127
1137
|
"model-value": le.value,
|
|
1128
1138
|
label: "Business Type",
|
|
1129
1139
|
"label-mark": "required"
|
|
1130
1140
|
}, null, 8, ["model-value"]),
|
|
1131
|
-
n(
|
|
1141
|
+
n(S, {
|
|
1132
1142
|
modelValue: e(o).numberOfDevices,
|
|
1133
1143
|
"onUpdate:modelValue": s[9] || (s[9] = (l) => e(o).numberOfDevices = l),
|
|
1134
1144
|
label: "Number of Devices",
|
|
@@ -1136,36 +1146,36 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1136
1146
|
}, null, 8, ["modelValue"])
|
|
1137
1147
|
]),
|
|
1138
1148
|
s[40] || (s[40] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
1139
|
-
a("div",
|
|
1140
|
-
n(
|
|
1149
|
+
a("div", ql, [
|
|
1150
|
+
n(S, {
|
|
1141
1151
|
modelValue: e(o).bankName,
|
|
1142
1152
|
"onUpdate:modelValue": s[10] || (s[10] = (l) => e(o).bankName = l),
|
|
1143
1153
|
label: "Bank Name",
|
|
1144
1154
|
"label-mark": "required",
|
|
1145
1155
|
rules: e(i)(e(u).string().min(1, "Bank Name is required"))
|
|
1146
1156
|
}, null, 8, ["modelValue", "rules"]),
|
|
1147
|
-
n(
|
|
1157
|
+
n(S, {
|
|
1148
1158
|
modelValue: e(o).bankHolderName,
|
|
1149
1159
|
"onUpdate:modelValue": s[11] || (s[11] = (l) => e(o).bankHolderName = l),
|
|
1150
1160
|
label: "Bank Holder Name",
|
|
1151
1161
|
"label-mark": "required",
|
|
1152
1162
|
rules: e(i)(e(u).string().min(1, "Bank Holder Name is required"))
|
|
1153
1163
|
}, null, 8, ["modelValue", "rules"]),
|
|
1154
|
-
n(
|
|
1164
|
+
n(S, {
|
|
1155
1165
|
modelValue: e(o).bankAccountNo,
|
|
1156
1166
|
"onUpdate:modelValue": s[12] || (s[12] = (l) => e(o).bankAccountNo = l),
|
|
1157
1167
|
label: "Bank Account No",
|
|
1158
1168
|
"label-mark": "required",
|
|
1159
1169
|
rules: e(i)(e(u).string().min(1, "Bank Account No is required"))
|
|
1160
1170
|
}, null, 8, ["modelValue", "rules"]),
|
|
1161
|
-
n(
|
|
1171
|
+
n(S, {
|
|
1162
1172
|
modelValue: e(o).bankBranch,
|
|
1163
1173
|
"onUpdate:modelValue": s[13] || (s[13] = (l) => e(o).bankBranch = l),
|
|
1164
1174
|
label: "Bank Branch",
|
|
1165
1175
|
"label-mark": "required",
|
|
1166
1176
|
rules: e(i)(e(u).string().min(1, "Bank Branch is required"))
|
|
1167
1177
|
}, null, 8, ["modelValue", "rules"]),
|
|
1168
|
-
n(
|
|
1178
|
+
n(S, {
|
|
1169
1179
|
modelValue: e(o).bankBranchCode,
|
|
1170
1180
|
"onUpdate:modelValue": s[14] || (s[14] = (l) => e(o).bankBranchCode = l),
|
|
1171
1181
|
label: "Bank Branch Code",
|
|
@@ -1229,9 +1239,9 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1229
1239
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
|
|
1230
1240
|
]),
|
|
1231
1241
|
s[42] || (s[42] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1232
|
-
a("div",
|
|
1242
|
+
a("div", Il, [
|
|
1233
1243
|
a("div", xl, [
|
|
1234
|
-
n(
|
|
1244
|
+
n(S, {
|
|
1235
1245
|
modelValue: e(o).picName,
|
|
1236
1246
|
"onUpdate:modelValue": s[22] || (s[22] = (l) => e(o).picName = l),
|
|
1237
1247
|
label: "PIC Name",
|
|
@@ -1240,7 +1250,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1240
1250
|
}, null, 8, ["modelValue", "rules"])
|
|
1241
1251
|
]),
|
|
1242
1252
|
a("div", Fl, [
|
|
1243
|
-
n(
|
|
1253
|
+
n(S, {
|
|
1244
1254
|
modelValue: e(o).picRole,
|
|
1245
1255
|
"onUpdate:modelValue": s[23] || (s[23] = (l) => e(o).picRole = l),
|
|
1246
1256
|
label: "PIC Role",
|
|
@@ -1248,8 +1258,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1248
1258
|
rules: e(i)(e(u).string().min(1, "PIC Role is required"))
|
|
1249
1259
|
}, null, 8, ["modelValue", "rules"])
|
|
1250
1260
|
]),
|
|
1251
|
-
a("div",
|
|
1252
|
-
n(
|
|
1261
|
+
a("div", Ul, [
|
|
1262
|
+
n(S, {
|
|
1253
1263
|
modelValue: e(o).picEmail,
|
|
1254
1264
|
"onUpdate:modelValue": s[24] || (s[24] = (l) => e(o).picEmail = l),
|
|
1255
1265
|
label: "PIC Email",
|
|
@@ -1257,7 +1267,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1257
1267
|
rules: e(i)(e(u).string().min(1, "PIC Email is required"))
|
|
1258
1268
|
}, null, 8, ["modelValue", "rules"])
|
|
1259
1269
|
]),
|
|
1260
|
-
a("div",
|
|
1270
|
+
a("div", Dl, [
|
|
1261
1271
|
n(_, {
|
|
1262
1272
|
"model-value": e(o).picContact,
|
|
1263
1273
|
"onUpdate:modelValue": s[25] || (s[25] = (l) => e(o).picContact = l),
|
|
@@ -1267,8 +1277,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1267
1277
|
rules: e(i)(e(u).string().min(1, "PIC Contact is required"))
|
|
1268
1278
|
}, null, 8, ["model-value", "rules"])
|
|
1269
1279
|
]),
|
|
1270
|
-
a("div",
|
|
1271
|
-
n(
|
|
1280
|
+
a("div", Rl, [
|
|
1281
|
+
n(S, {
|
|
1272
1282
|
modelValue: e(o).witnessName,
|
|
1273
1283
|
"onUpdate:modelValue": s[26] || (s[26] = (l) => e(o).witnessName = l),
|
|
1274
1284
|
label: "Witness Name",
|
|
@@ -1276,8 +1286,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1276
1286
|
rules: e(i)(e(u).string().min(1, "Witness Name is required"))
|
|
1277
1287
|
}, null, 8, ["modelValue", "rules"])
|
|
1278
1288
|
]),
|
|
1279
|
-
a("div",
|
|
1280
|
-
n(
|
|
1289
|
+
a("div", Al, [
|
|
1290
|
+
n(S, {
|
|
1281
1291
|
modelValue: e(o).witnessRole,
|
|
1282
1292
|
"onUpdate:modelValue": s[27] || (s[27] = (l) => e(o).witnessRole = l),
|
|
1283
1293
|
label: "Witness Role",
|
|
@@ -1313,7 +1323,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1313
1323
|
], 64);
|
|
1314
1324
|
};
|
|
1315
1325
|
}
|
|
1316
|
-
}),
|
|
1326
|
+
}), Bl = /* @__PURE__ */ X({
|
|
1317
1327
|
__name: "TyroSubmission",
|
|
1318
1328
|
props: {
|
|
1319
1329
|
submission: {
|
|
@@ -1324,7 +1334,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1324
1334
|
emits: ["update:submission"],
|
|
1325
1335
|
setup(m) {
|
|
1326
1336
|
const O = m, c = z(() => {
|
|
1327
|
-
const k = O.submission.fields || {}, y = (
|
|
1337
|
+
const k = O.submission.fields || {}, y = (I) => k[I] || "N/A";
|
|
1328
1338
|
return [
|
|
1329
1339
|
{
|
|
1330
1340
|
label: "Tyro POS Reference ID",
|
|
@@ -1345,7 +1355,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1345
1355
|
];
|
|
1346
1356
|
});
|
|
1347
1357
|
return (k, y) => {
|
|
1348
|
-
const
|
|
1358
|
+
const I = N("FmCardHeader"), g = N("FmCardSection"), T = N("FmCard");
|
|
1349
1359
|
return d(), U(T, {
|
|
1350
1360
|
class: "max-w-3xl mt-8 p-6",
|
|
1351
1361
|
variant: "elevated"
|
|
@@ -1353,19 +1363,19 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1353
1363
|
default: f(() => [
|
|
1354
1364
|
n(g, { class: "flex flex-col gap-16 justify-between" }, {
|
|
1355
1365
|
default: f(() => [
|
|
1356
|
-
n(
|
|
1366
|
+
n(I, {
|
|
1357
1367
|
class: "p-0",
|
|
1358
1368
|
title: "Tyro Authorisation",
|
|
1359
1369
|
subtitle: ""
|
|
1360
1370
|
}),
|
|
1361
1371
|
n(g, { class: "p-0" }, {
|
|
1362
1372
|
default: f(() => [
|
|
1363
|
-
(d(!0),
|
|
1373
|
+
(d(!0), w(K, null, G(c.value, (o) => (d(), w("p", {
|
|
1364
1374
|
key: o.label,
|
|
1365
1375
|
class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
|
|
1366
1376
|
}, [
|
|
1367
|
-
a("b", null,
|
|
1368
|
-
J(": " +
|
|
1377
|
+
a("b", null, F(o.label), 1),
|
|
1378
|
+
J(": " + F(o.value), 1)
|
|
1369
1379
|
]))), 128))
|
|
1370
1380
|
]),
|
|
1371
1381
|
_: 1
|
|
@@ -1378,10 +1388,10 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1378
1388
|
});
|
|
1379
1389
|
};
|
|
1380
1390
|
}
|
|
1381
|
-
}),
|
|
1391
|
+
}), El = {
|
|
1382
1392
|
key: 0,
|
|
1383
1393
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1384
|
-
},
|
|
1394
|
+
}, $l = { class: "px-32 pb-32" }, Xl = /* @__PURE__ */ X({
|
|
1385
1395
|
__name: "OnboardForm",
|
|
1386
1396
|
props: {
|
|
1387
1397
|
submissionId: {
|
|
@@ -1390,17 +1400,17 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1390
1400
|
}
|
|
1391
1401
|
},
|
|
1392
1402
|
setup(m) {
|
|
1393
|
-
const { startAsyncCall: O, isLoading: c } = ee(), k = oe(), y = m,
|
|
1403
|
+
const { startAsyncCall: O, isLoading: c } = ee(), k = oe(), y = m, I = fe(), g = j(null), T = z(
|
|
1394
1404
|
() => {
|
|
1395
|
-
var
|
|
1396
|
-
return ((
|
|
1405
|
+
var x;
|
|
1406
|
+
return ((x = g.value) == null ? void 0 : x.type) === de.FdoOnboardType.enum.tyro;
|
|
1397
1407
|
}
|
|
1398
1408
|
), o = () => {
|
|
1399
1409
|
if (window.history.length > 1) {
|
|
1400
|
-
|
|
1410
|
+
I.back();
|
|
1401
1411
|
return;
|
|
1402
1412
|
}
|
|
1403
|
-
|
|
1413
|
+
I.push({ name: "mf-payment-admin.onboard-submission" });
|
|
1404
1414
|
};
|
|
1405
1415
|
Ve(() => {
|
|
1406
1416
|
O(async () => {
|
|
@@ -1411,22 +1421,22 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1411
1421
|
if (!g.value) return null;
|
|
1412
1422
|
switch (g.value.type) {
|
|
1413
1423
|
case "softspace":
|
|
1414
|
-
return
|
|
1424
|
+
return dl;
|
|
1415
1425
|
case "ntt":
|
|
1416
|
-
return Al;
|
|
1417
|
-
case "tyro":
|
|
1418
1426
|
return Tl;
|
|
1427
|
+
case "tyro":
|
|
1428
|
+
return Bl;
|
|
1419
1429
|
default:
|
|
1420
1430
|
return null;
|
|
1421
1431
|
}
|
|
1422
1432
|
}), R = j(0);
|
|
1423
|
-
function V(
|
|
1424
|
-
g.value =
|
|
1433
|
+
function V(x) {
|
|
1434
|
+
g.value = x, R.value = Date.now();
|
|
1425
1435
|
}
|
|
1426
|
-
const D = async (
|
|
1427
|
-
var
|
|
1436
|
+
const D = async (x) => {
|
|
1437
|
+
var q, B;
|
|
1428
1438
|
if (g.value)
|
|
1429
|
-
switch (
|
|
1439
|
+
switch (x) {
|
|
1430
1440
|
case "preview":
|
|
1431
1441
|
let p;
|
|
1432
1442
|
try {
|
|
@@ -1434,7 +1444,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1434
1444
|
message: "Generating preview document...",
|
|
1435
1445
|
type: "info"
|
|
1436
1446
|
}), await M.previewDocument(
|
|
1437
|
-
(
|
|
1447
|
+
(q = g.value) == null ? void 0 : q._id
|
|
1438
1448
|
);
|
|
1439
1449
|
} catch (E) {
|
|
1440
1450
|
k.open({
|
|
@@ -1467,12 +1477,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1467
1477
|
break;
|
|
1468
1478
|
}
|
|
1469
1479
|
};
|
|
1470
|
-
return (
|
|
1480
|
+
return (x, q) => {
|
|
1471
1481
|
var E, Y;
|
|
1472
|
-
const B =
|
|
1473
|
-
return e(c) ? (d(),
|
|
1482
|
+
const B = N("FmCircularProgress"), p = N("FmPageHead");
|
|
1483
|
+
return e(c) ? (d(), w("div", El, [
|
|
1474
1484
|
n(B, { size: "xxl" })
|
|
1475
|
-
])) : (d(),
|
|
1485
|
+
])) : (d(), w(K, { key: 1 }, [
|
|
1476
1486
|
n(p, {
|
|
1477
1487
|
title: `Submission - ${(E = g.value) == null ? void 0 : E.type}`,
|
|
1478
1488
|
description: `ID - ${(Y = g.value) == null ? void 0 : Y._id}`,
|
|
@@ -1493,7 +1503,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1493
1503
|
}
|
|
1494
1504
|
]
|
|
1495
1505
|
}, null, 8, ["title", "description", "actions"]),
|
|
1496
|
-
a("div",
|
|
1506
|
+
a("div", $l, [
|
|
1497
1507
|
(d(), U(ve(r.value), {
|
|
1498
1508
|
key: R.value,
|
|
1499
1509
|
submission: g.value,
|
|
@@ -1505,5 +1515,5 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1505
1515
|
}
|
|
1506
1516
|
});
|
|
1507
1517
|
export {
|
|
1508
|
-
|
|
1518
|
+
Xl as default
|
|
1509
1519
|
};
|