@feedmepos/mf-payment 1.10.4-dev → 1.10.6-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-ATn3Tlcj.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-CZdQwUHi.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-D9hJtlmx.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BHNukQgp.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DYSvmA3k.js} +2 -2
- package/dist/{Chargeback-DX6btYQD.js → Chargeback-DY1lpPba.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-D1U0GGBL.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Db0KxLSo.js} +1 -1
- package/dist/{ExternalTerminal-BQRUDzIN.js → ExternalTerminal-DEaWdTTK.js} +6 -6
- package/dist/{OnboardForm-BMljWq6i.js → OnboardForm-CNpruJP8.js} +6 -6
- package/dist/{OnboardForm-BJn0vnaI.js → OnboardForm-jArObBrH.js} +296 -285
- package/dist/{OnboardSubmission-CbEIskW_.js → OnboardSubmission-DHhqzyc9.js} +3 -3
- package/dist/{OnboardSubmission-B3uhuuS0.js → OnboardSubmission-o6Pm5NTr.js} +6 -6
- package/dist/{PayoutAccount-DrHmix7L.js → PayoutAccount-DSoPmV57.js} +7 -7
- package/dist/{PayoutAccount-lK6S8iFC.js → PayoutAccount-DuvsXvJs.js} +5 -5
- package/dist/{PayoutAccountSetting-Y0UjGXB_.js → PayoutAccountSetting-e19ax2vk.js} +722 -715
- package/dist/{Restaurant-DIxJpmSI.js → Restaurant-CCEJBvxb.js} +4 -4
- package/dist/{RestaurantSetting-8WT3PwCq.js → RestaurantSetting-CheSyHkb.js} +3 -3
- package/dist/{Settlement-DCIg5lYX.js → Settlement-3DbkvPBv.js} +4 -4
- package/dist/{Settlement-qtUt-fV7.js → Settlement-dRrhA56K.js} +3 -3
- package/dist/{SettlementTransactions-CrtEN8Qk.js → SettlementTransactions-B-Wmfaib.js} +5 -5
- package/dist/{SettlementTransactions-CHC53bzQ.js → SettlementTransactions-C7iNdEk6.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-Bgtawcmv.js → Status.vue_vue_type_script_setup_true_lang-DLH4nADh.js} +1 -1
- package/dist/{Terminal-C_wDQsYu.js → Terminal-BpL4cbOU.js} +6 -6
- package/dist/{TerminalSetting-leYySvWx.js → TerminalSetting-BbrAd4hL.js} +6 -6
- package/dist/{Transaction-BvZ3sQKk.js → Transaction-AaxwllI6.js} +10 -10
- package/dist/{Transaction-PkfDY_22.js → Transaction-DwqOmYbT.js} +11 -11
- package/dist/{TransactionOld-DZfYgD-J.js → TransactionOld-odjyhbxH.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-2JjmRrBE.js → TransactionStatus.vue_vue_type_script_setup_true_lang-CQZ8Z9h-.js} +1 -1
- package/dist/{app-BN99hFif.js → app-DwFwOy1b.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/{assets-C__HD_rf.js → assets-NDLHbw8x.js} +1 -1
- package/dist/{grafana-B4tXE6aU.js → grafana-BoDtircI.js} +1 -1
- package/dist/{index-BVkRb_Qy.js → index-BpFNeku9.js} +1 -1
- package/dist/{index-CdJLIUK1.js → index-C77qYIZZ.js} +2 -1
- package/dist/{index-DmxOGKCp.js → index-CqMb7ApF.js} +1 -1
- package/dist/{index-CgL2TLW2.js → index-D1TFVU05.js} +1 -1
- package/dist/{index-Bku7iW7x.js → index-D8Y1-C5S.js} +1 -1
- package/dist/{index-CWO4ygXh.js → index-DMZJs3ZX.js} +1 -1
- package/dist/{index-Dfh5_ii8.js → index-Dk2HNPKO.js} +1 -1
- package/dist/{index-Bxzzp9Hp.js → index-DyfgcRmw.js} +1 -1
- package/dist/{index-BiC8s_0I.js → index-JPLrFuPE.js} +1 -1
- package/dist/{index-BJukJrqD.js → index-VAVCTmge.js} +2 -2
- package/dist/{index.vue_vue_type_script_setup_true_lang-B-BcbMgi.js → index.vue_vue_type_script_setup_true_lang-CsuYHoaF.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{onboard-submission-ClwLhJmC.js → onboard-submission-DQ4dLVBO.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-DydUp6Qo.js → payout-account-CnLC1IAK.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +32 -32
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -18
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
- package/dist/views/settlement/SettlementTable.vue.d.ts +32 -32
- package/package.json +2 -2
|
@@ -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 D, 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-VAVCTmge.js";
|
|
3
|
+
import { u as ee, p as de } from "./index-C77qYIZZ.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-CnLC1IAK.js";
|
|
7
|
+
import { a as Ce } from "./onboard-submission-DQ4dLVBO.js";
|
|
8
|
+
import { _ as me } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Db0KxLSo.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-DLH4nADh.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,51 +20,51 @@ 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
|
-
var
|
|
27
|
-
k.value = (
|
|
26
|
+
var U;
|
|
27
|
+
k.value = (U = V.target) == null ? void 0 : U.result, y("update:modelValue", r);
|
|
28
28
|
}, R.readAsDataURL(r);
|
|
29
29
|
}, g = (r) => {
|
|
30
30
|
window.open(r, "_blank", "noopener,noreferrer");
|
|
31
|
-
},
|
|
31
|
+
}, B = 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,
|
|
36
|
-
k.value ? (d(),
|
|
33
|
+
const V = N("FmButton"), U = N("FmDropField");
|
|
34
|
+
return d(), w("div", null, [
|
|
35
|
+
a("p", null, F(m.label), 1),
|
|
36
|
+
k.value ? (d(), D(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(), D(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
|
-
}, 8, ["document", "restaurant-id"])) : (d(), U
|
|
56
|
+
}, 8, ["document", "restaurant-id"])) : (d(), D(U, {
|
|
57
57
|
key: 1,
|
|
58
|
-
accept:
|
|
59
|
-
onFileUpload:
|
|
58
|
+
accept: B.value,
|
|
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,47 +73,47 @@ 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(), B = j(!1);
|
|
77
77
|
function o(R, V) {
|
|
78
78
|
var E;
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
const p = new Uint8Array(
|
|
82
|
-
for (;
|
|
83
|
-
p[
|
|
84
|
-
return new File([p], V, { type:
|
|
79
|
+
const U = R.split(","), x = ((E = U[0].match(/:(.*?);/)) == null ? void 0 : E[1]) || "", q = atob(U[1]);
|
|
80
|
+
let A = q.length;
|
|
81
|
+
const p = new Uint8Array(A);
|
|
82
|
+
for (; A--; )
|
|
83
|
+
p[A] = q.charCodeAt(A);
|
|
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
|
|
90
|
-
y.value = V,
|
|
89
|
+
return I.value = !0;
|
|
90
|
+
y.value = V, B.value = !1, k("update:modelValue", o(V, "signature.png"));
|
|
91
91
|
};
|
|
92
92
|
return (R, V) => {
|
|
93
|
-
const
|
|
94
|
-
return d(),
|
|
95
|
-
a("p", null,
|
|
96
|
-
y.value ? (d(),
|
|
93
|
+
const U = N("FmButton"), x = N("FmDialog");
|
|
94
|
+
return d(), w("div", null, [
|
|
95
|
+
a("p", null, F(m.label), 1),
|
|
96
|
+
y.value ? (d(), D(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(),
|
|
110
|
+
y.value ? $("", !0) : (d(), D(x, {
|
|
111
111
|
key: 1,
|
|
112
|
-
modelValue:
|
|
113
|
-
"onUpdate:modelValue": V[1] || (V[1] = (
|
|
112
|
+
modelValue: B.value,
|
|
113
|
+
"onUpdate:modelValue": V[1] || (V[1] = (q) => B.value = q)
|
|
114
114
|
}, {
|
|
115
115
|
"dialog-button": f(() => [
|
|
116
|
-
n(
|
|
116
|
+
n(U, {
|
|
117
117
|
"prepend-icon": "signature",
|
|
118
118
|
class: "w-full",
|
|
119
119
|
label: "Signature"
|
|
@@ -130,15 +130,15 @@ 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",
|
|
135
|
-
n(
|
|
133
|
+
I.value ? (d(), w("p", qe, " Please sign your signature before saving. ")) : $("", !0),
|
|
134
|
+
a("div", we, [
|
|
135
|
+
n(U, {
|
|
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
|
-
n(
|
|
141
|
+
n(U, {
|
|
142
142
|
label: "Save",
|
|
143
143
|
"prepend-icon": "save",
|
|
144
144
|
onClick: r
|
|
@@ -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" }, De = { class: "text-gray-900" }, Ue = { 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: B } = ee(), { fields: o, documents: r, restaurantId: R, profile: V, status: U, statusReason: x } = c.submission, q = j(""), A = j(
|
|
174
174
|
parseInt(((_ = c.submission.fields) == null ? void 0 : _.numberOfDevices) ?? 1)
|
|
175
175
|
), p = j(
|
|
176
176
|
c.submission.rates ? Object.fromEntries(
|
|
@@ -194,15 +194,15 @@ 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();
|
|
201
|
-
l.onload = (
|
|
201
|
+
l.onload = (T) => {
|
|
202
202
|
var H;
|
|
203
203
|
return L.value.push({
|
|
204
204
|
file: b,
|
|
205
|
-
preview: String(((H =
|
|
205
|
+
preview: String(((H = T.target) == null ? void 0 : H.result) ?? "")
|
|
206
206
|
});
|
|
207
207
|
}, l.readAsDataURL(b);
|
|
208
208
|
return;
|
|
@@ -212,16 +212,16 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
212
212
|
}, h = () => te(async () => {
|
|
213
213
|
try {
|
|
214
214
|
let b = v.value.reduce(
|
|
215
|
-
(
|
|
215
|
+
(T, H) => Math.max(T, Z(H)),
|
|
216
216
|
0
|
|
217
217
|
);
|
|
218
218
|
const l = {};
|
|
219
|
-
for (const { file:
|
|
219
|
+
for (const { file: T } of L.value) {
|
|
220
220
|
const H = `additionalDocument${++b}`;
|
|
221
221
|
l[H] = await M.uploadDocument(
|
|
222
222
|
R,
|
|
223
223
|
H,
|
|
224
|
-
|
|
224
|
+
T
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
227
|
k(
|
|
@@ -238,11 +238,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
238
238
|
message: Q(b)
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
}), ae = () =>
|
|
241
|
+
}), ae = () => B(async () => {
|
|
242
242
|
try {
|
|
243
243
|
const b = await M.reviewById(
|
|
244
244
|
c.submission._id,
|
|
245
245
|
{
|
|
246
|
+
numberOfDevices: A.value.toString(),
|
|
246
247
|
rates: {
|
|
247
248
|
duitNow: parseFloat(p.value.duitNow),
|
|
248
249
|
mydebitCard: parseFloat(p.value.mydebitCard),
|
|
@@ -255,7 +256,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
255
256
|
status: "approved"
|
|
256
257
|
}
|
|
257
258
|
);
|
|
258
|
-
k("update:submission", b),
|
|
259
|
+
k("update:submission", b), I.value = !1, y.open({
|
|
259
260
|
type: "success",
|
|
260
261
|
title: "Submission updated successfully"
|
|
261
262
|
});
|
|
@@ -266,16 +267,16 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
266
267
|
message: Q(b)
|
|
267
268
|
});
|
|
268
269
|
}
|
|
269
|
-
}), se = () =>
|
|
270
|
+
}), se = () => B(async () => {
|
|
270
271
|
try {
|
|
271
272
|
const b = await M.reviewById(
|
|
272
273
|
c.submission._id,
|
|
273
274
|
{
|
|
274
275
|
status: "rejected",
|
|
275
|
-
statusReason:
|
|
276
|
+
statusReason: q.value
|
|
276
277
|
}
|
|
277
278
|
);
|
|
278
|
-
k("update:submission", b),
|
|
279
|
+
k("update:submission", b), I.value = !1, y.open({
|
|
279
280
|
type: "success",
|
|
280
281
|
title: "Submission updated successfully"
|
|
281
282
|
});
|
|
@@ -288,39 +289,39 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
288
289
|
}
|
|
289
290
|
});
|
|
290
291
|
return (b, l) => {
|
|
291
|
-
const
|
|
292
|
-
return d(),
|
|
293
|
-
a("div",
|
|
292
|
+
const T = N("FmButton"), H = N("FmDropField"), C = N("FmTextField"), be = N("FmTextarea"), ce = N("FmDialog"), ge = N("FmPhoneNumber"), ne = N("FmSelect"), ye = N("FmForm");
|
|
293
|
+
return d(), w(K, null, [
|
|
294
|
+
a("div", xe, [
|
|
294
295
|
a("div", null, [
|
|
295
|
-
l[
|
|
296
|
-
a("span",
|
|
296
|
+
l[38] || (l[38] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
297
|
+
a("span", Fe, F(e(R)), 1)
|
|
297
298
|
]),
|
|
298
299
|
a("div", null, [
|
|
299
|
-
l[
|
|
300
|
-
a("span",
|
|
300
|
+
l[39] || (l[39] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
301
|
+
a("span", De, F(e(V).name) + " ( " + F(e(V).legalName) + " )", 1)
|
|
301
302
|
]),
|
|
302
303
|
a("div", null, [
|
|
303
|
-
l[
|
|
304
|
-
a("span",
|
|
304
|
+
l[40] || (l[40] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
305
|
+
a("span", Ue, F(e(V).email), 1)
|
|
305
306
|
]),
|
|
306
307
|
a("div", null, [
|
|
307
|
-
l[
|
|
308
|
-
a("span", Re,
|
|
308
|
+
l[41] || (l[41] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
309
|
+
a("span", Re, F(e(V).phoneNo), 1)
|
|
309
310
|
]),
|
|
310
311
|
a("div", null, [
|
|
311
|
-
l[
|
|
312
|
+
l[42] || (l[42] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
312
313
|
a("span", Ae, [
|
|
313
|
-
n(pe, { data: e(
|
|
314
|
+
n(pe, { data: e(U) }, null, 8, ["data"])
|
|
314
315
|
])
|
|
315
316
|
]),
|
|
316
317
|
a("div", null, [
|
|
317
|
-
l[
|
|
318
|
-
a("span", Te,
|
|
318
|
+
l[43] || (l[43] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
319
|
+
a("span", Te, F(e(x)), 1)
|
|
319
320
|
])
|
|
320
321
|
]),
|
|
321
|
-
l[
|
|
322
|
+
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
323
|
a("div", Be, [
|
|
323
|
-
(d(!0),
|
|
324
|
+
(d(!0), w(K, null, G(v.value, (t) => (d(), D(P, {
|
|
324
325
|
key: t,
|
|
325
326
|
label: t.replace("additionalDocument", "Document "),
|
|
326
327
|
type: /\.pdf$/i.test(c.submission.documents[t]) ? "pdf" : "image",
|
|
@@ -328,33 +329,33 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
328
329
|
"onUpdate:modelValue": (W) => c.submission.documents[t] = W,
|
|
329
330
|
"restaurant-id": e(R)
|
|
330
331
|
}, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
331
|
-
(d(!0),
|
|
332
|
+
(d(!0), w(K, null, G(L.value, (t, W) => (d(), w("div", {
|
|
332
333
|
key: `new-${W}`
|
|
333
334
|
}, [
|
|
334
|
-
a("p", null, "Document " +
|
|
335
|
-
t.file.type.startsWith("image/") ? (d(),
|
|
335
|
+
a("p", null, "Document " + F(v.value.length + W + 1), 1),
|
|
336
|
+
t.file.type.startsWith("image/") ? (d(), w("img", {
|
|
336
337
|
key: 0,
|
|
337
338
|
src: t.preview,
|
|
338
339
|
class: "mt-2 rounded border"
|
|
339
|
-
}, null, 8, Ee)) : (d(),
|
|
340
|
-
n(
|
|
340
|
+
}, null, 8, Ee)) : (d(), w("p", $e, F(t.file.name), 1)),
|
|
341
|
+
n(T, {
|
|
341
342
|
class: "mt-4",
|
|
342
343
|
"prepend-icon": "delete",
|
|
343
344
|
label: "Remove",
|
|
344
345
|
variant: "destructive",
|
|
345
|
-
onClick: (
|
|
346
|
+
onClick: (jl) => L.value.splice(W, 1)
|
|
346
347
|
}, null, 8, ["onClick"])
|
|
347
348
|
]))), 128)),
|
|
348
|
-
s.value < ue ? (d(),
|
|
349
|
-
a("p", null, "Document " +
|
|
349
|
+
s.value < ue ? (d(), w("div", je, [
|
|
350
|
+
a("p", null, "Document " + F(s.value + 1), 1),
|
|
350
351
|
n(H, {
|
|
351
352
|
accept: ".png, .jpg, .jpeg, .pdf",
|
|
352
|
-
onFileUpload:
|
|
353
|
+
onFileUpload: S
|
|
353
354
|
})
|
|
354
355
|
])) : $("", !0)
|
|
355
356
|
]),
|
|
356
|
-
L.value.length ? (d(),
|
|
357
|
-
n(
|
|
357
|
+
L.value.length ? (d(), w("div", Oe, [
|
|
358
|
+
n(T, {
|
|
358
359
|
type: "button",
|
|
359
360
|
variant: "primary",
|
|
360
361
|
"prepend-icon": "cloud_upload",
|
|
@@ -363,9 +364,9 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
363
364
|
onClick: h
|
|
364
365
|
}, null, 8, ["loading"])
|
|
365
366
|
])) : $("", !0),
|
|
366
|
-
l[
|
|
367
|
+
l[62] || (l[62] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
367
368
|
a("div", Le, [
|
|
368
|
-
n(
|
|
369
|
+
n(C, {
|
|
369
370
|
modelValue: p.value.duitNow,
|
|
370
371
|
"onUpdate:modelValue": l[0] || (l[0] = (t) => p.value.duitNow = t),
|
|
371
372
|
label: "DuitNow QR",
|
|
@@ -377,12 +378,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
377
378
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
378
379
|
)
|
|
379
380
|
}, {
|
|
380
|
-
append: f(() => [...l[
|
|
381
|
+
append: f(() => [...l[44] || (l[44] = [
|
|
381
382
|
J("%", -1)
|
|
382
383
|
])]),
|
|
383
384
|
_: 1
|
|
384
385
|
}, 8, ["modelValue", "rules"]),
|
|
385
|
-
n(
|
|
386
|
+
n(C, {
|
|
386
387
|
modelValue: p.value.mydebitCard,
|
|
387
388
|
"onUpdate:modelValue": l[1] || (l[1] = (t) => p.value.mydebitCard = t),
|
|
388
389
|
label: "myDebit Card",
|
|
@@ -394,12 +395,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
394
395
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
395
396
|
)
|
|
396
397
|
}, {
|
|
397
|
-
append: f(() => [...l[
|
|
398
|
+
append: f(() => [...l[45] || (l[45] = [
|
|
398
399
|
J("%", -1)
|
|
399
400
|
])]),
|
|
400
401
|
_: 1
|
|
401
402
|
}, 8, ["modelValue", "rules"]),
|
|
402
|
-
n(
|
|
403
|
+
n(C, {
|
|
403
404
|
modelValue: p.value.localDebit,
|
|
404
405
|
"onUpdate:modelValue": l[2] || (l[2] = (t) => p.value.localDebit = t),
|
|
405
406
|
label: "Local Debit Card",
|
|
@@ -411,12 +412,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
411
412
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
412
413
|
)
|
|
413
414
|
}, {
|
|
414
|
-
append: f(() => [...l[
|
|
415
|
+
append: f(() => [...l[46] || (l[46] = [
|
|
415
416
|
J("%", -1)
|
|
416
417
|
])]),
|
|
417
418
|
_: 1
|
|
418
419
|
}, 8, ["modelValue", "rules"]),
|
|
419
|
-
n(
|
|
420
|
+
n(C, {
|
|
420
421
|
modelValue: p.value.localCredit,
|
|
421
422
|
"onUpdate:modelValue": l[3] || (l[3] = (t) => p.value.localCredit = t),
|
|
422
423
|
label: "Local Credit Card",
|
|
@@ -428,12 +429,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
428
429
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
429
430
|
)
|
|
430
431
|
}, {
|
|
431
|
-
append: f(() => [...l[
|
|
432
|
+
append: f(() => [...l[47] || (l[47] = [
|
|
432
433
|
J("%", -1)
|
|
433
434
|
])]),
|
|
434
435
|
_: 1
|
|
435
436
|
}, 8, ["modelValue", "rules"]),
|
|
436
|
-
n(
|
|
437
|
+
n(C, {
|
|
437
438
|
modelValue: p.value.foreignCard,
|
|
438
439
|
"onUpdate:modelValue": l[4] || (l[4] = (t) => p.value.foreignCard = t),
|
|
439
440
|
label: "Foreign Card",
|
|
@@ -445,12 +446,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
445
446
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
446
447
|
)
|
|
447
448
|
}, {
|
|
448
|
-
append: f(() => [...l[
|
|
449
|
+
append: f(() => [...l[48] || (l[48] = [
|
|
449
450
|
J("%", -1)
|
|
450
451
|
])]),
|
|
451
452
|
_: 1
|
|
452
453
|
}, 8, ["modelValue", "rules"]),
|
|
453
|
-
n(
|
|
454
|
+
n(C, {
|
|
454
455
|
modelValue: p.value.jcbStandard,
|
|
455
456
|
"onUpdate:modelValue": l[5] || (l[5] = (t) => p.value.jcbStandard = t),
|
|
456
457
|
label: "JCB Standard",
|
|
@@ -462,12 +463,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
462
463
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
463
464
|
)
|
|
464
465
|
}, {
|
|
465
|
-
append: f(() => [...l[
|
|
466
|
+
append: f(() => [...l[49] || (l[49] = [
|
|
466
467
|
J("%", -1)
|
|
467
468
|
])]),
|
|
468
469
|
_: 1
|
|
469
470
|
}, 8, ["modelValue", "rules"]),
|
|
470
|
-
n(
|
|
471
|
+
n(C, {
|
|
471
472
|
modelValue: p.value.jcbPlatinum,
|
|
472
473
|
"onUpdate:modelValue": l[6] || (l[6] = (t) => p.value.jcbPlatinum = t),
|
|
473
474
|
label: "JCB Platinum",
|
|
@@ -479,17 +480,17 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
479
480
|
e(u).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
480
481
|
)
|
|
481
482
|
}, {
|
|
482
|
-
append: f(() => [...l[
|
|
483
|
+
append: f(() => [...l[50] || (l[50] = [
|
|
483
484
|
J("%", -1)
|
|
484
485
|
])]),
|
|
485
486
|
_: 1
|
|
486
487
|
}, 8, ["modelValue", "rules"])
|
|
487
488
|
]),
|
|
488
|
-
l[
|
|
489
|
+
l[63] || (l[63] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Extra Settings", -1)),
|
|
489
490
|
a("div", ze, [
|
|
490
|
-
n(
|
|
491
|
-
modelValue:
|
|
492
|
-
"onUpdate:modelValue": l[7] || (l[7] = (t) =>
|
|
491
|
+
n(C, {
|
|
492
|
+
modelValue: A.value,
|
|
493
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => A.value = t),
|
|
493
494
|
label: "Number of Devices",
|
|
494
495
|
"label-mark": "required",
|
|
495
496
|
type: "number",
|
|
@@ -498,11 +499,11 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
498
499
|
]),
|
|
499
500
|
a("div", Me, [
|
|
500
501
|
n(ce, {
|
|
501
|
-
modelValue:
|
|
502
|
-
"onUpdate:modelValue": l[9] || (l[9] = (t) =>
|
|
502
|
+
modelValue: I.value,
|
|
503
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => I.value = t)
|
|
503
504
|
}, {
|
|
504
505
|
"dialog-button": f(() => [
|
|
505
|
-
n(
|
|
506
|
+
n(T, {
|
|
506
507
|
class: "mr-6",
|
|
507
508
|
type: "button",
|
|
508
509
|
variant: "destructive",
|
|
@@ -511,18 +512,18 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
511
512
|
label: "Reject Submission"
|
|
512
513
|
}, null, 8, ["loading"])
|
|
513
514
|
]),
|
|
514
|
-
"dialog-header": f(() => [...l[
|
|
515
|
+
"dialog-header": f(() => [...l[51] || (l[51] = [
|
|
515
516
|
a("div", null, "Rejecting Submission", -1)
|
|
516
517
|
])]),
|
|
517
518
|
default: f(() => [
|
|
518
519
|
n(be, {
|
|
519
|
-
modelValue:
|
|
520
|
-
"onUpdate:modelValue": l[8] || (l[8] = (t) =>
|
|
520
|
+
modelValue: q.value,
|
|
521
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => q.value = t),
|
|
521
522
|
label: "Reason for Rejection",
|
|
522
523
|
"label-mark": "optional",
|
|
523
524
|
"helper-text": "Please provide a reason for rejection."
|
|
524
525
|
}, null, 8, ["modelValue"]),
|
|
525
|
-
n(
|
|
526
|
+
n(T, {
|
|
526
527
|
class: "mb-2 mt-6 w-full",
|
|
527
528
|
label: "Submit",
|
|
528
529
|
"prepend-icon": "save",
|
|
@@ -532,7 +533,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
532
533
|
]),
|
|
533
534
|
_: 1
|
|
534
535
|
}, 8, ["modelValue"]),
|
|
535
|
-
n(
|
|
536
|
+
n(T, {
|
|
536
537
|
type: "button",
|
|
537
538
|
variant: "primary",
|
|
538
539
|
"prepend-icon": "approval",
|
|
@@ -544,10 +545,10 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
544
545
|
]),
|
|
545
546
|
n(ye, { disabled: !0 }, {
|
|
546
547
|
default: f(() => [
|
|
547
|
-
l[
|
|
548
|
+
l[52] || (l[52] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
548
549
|
a("div", He, [
|
|
549
550
|
a("div", We, [
|
|
550
|
-
n(
|
|
551
|
+
n(C, {
|
|
551
552
|
modelValue: e(o).picName,
|
|
552
553
|
"onUpdate:modelValue": l[10] || (l[10] = (t) => e(o).picName = t),
|
|
553
554
|
label: "Owner/Director Name",
|
|
@@ -557,7 +558,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
557
558
|
}, null, 8, ["modelValue", "rules"])
|
|
558
559
|
]),
|
|
559
560
|
a("div", Je, [
|
|
560
|
-
n(
|
|
561
|
+
n(C, {
|
|
561
562
|
modelValue: e(o).picRole,
|
|
562
563
|
"onUpdate:modelValue": l[11] || (l[11] = (t) => e(o).picRole = t),
|
|
563
564
|
label: "Owner/Director Role",
|
|
@@ -567,7 +568,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
567
568
|
}, null, 8, ["modelValue", "rules"])
|
|
568
569
|
]),
|
|
569
570
|
a("div", Ke, [
|
|
570
|
-
n(
|
|
571
|
+
n(C, {
|
|
571
572
|
modelValue: e(o).picEmail,
|
|
572
573
|
"onUpdate:modelValue": l[12] || (l[12] = (t) => e(o).picEmail = t),
|
|
573
574
|
label: "Owner/Director Email",
|
|
@@ -588,63 +589,73 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
588
589
|
}, null, 8, ["model-value", "rules"])
|
|
589
590
|
]),
|
|
590
591
|
a("div", Ye, [
|
|
591
|
-
n(
|
|
592
|
+
n(C, {
|
|
593
|
+
modelValue: e(o).nric,
|
|
594
|
+
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(o).nric = t),
|
|
595
|
+
label: "Owner/Director NRIC No",
|
|
596
|
+
placeholder: "Enter your NRIC number",
|
|
597
|
+
"label-mark": "required",
|
|
598
|
+
rules: e(i)(e(u).string().min(1, "NRIC No is required"))
|
|
599
|
+
}, null, 8, ["modelValue", "rules"])
|
|
600
|
+
]),
|
|
601
|
+
a("div", he, [
|
|
602
|
+
n(C, {
|
|
592
603
|
modelValue: e(o).tradingName,
|
|
593
|
-
"onUpdate:modelValue": l[
|
|
604
|
+
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(o).tradingName = t),
|
|
594
605
|
label: "Trading Name",
|
|
595
606
|
placeholder: "Enter trading name",
|
|
596
607
|
"label-mark": "required",
|
|
597
608
|
rules: e(i)(e(u).string().min(1, "Trading Name is required"))
|
|
598
609
|
}, null, 8, ["modelValue", "rules"])
|
|
599
610
|
]),
|
|
600
|
-
a("div",
|
|
601
|
-
n(
|
|
611
|
+
a("div", Ge, [
|
|
612
|
+
n(C, {
|
|
602
613
|
modelValue: e(o).outletName,
|
|
603
|
-
"onUpdate:modelValue": l[
|
|
614
|
+
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(o).outletName = t),
|
|
604
615
|
label: "Registered Name",
|
|
605
616
|
placeholder: "Enter registered name",
|
|
606
617
|
"label-mark": "required",
|
|
607
618
|
rules: e(i)(e(u).string().min(1, "Registered Name is required"))
|
|
608
619
|
}, null, 8, ["modelValue", "rules"])
|
|
609
620
|
]),
|
|
610
|
-
a("div",
|
|
611
|
-
n(
|
|
621
|
+
a("div", Xe, [
|
|
622
|
+
n(C, {
|
|
612
623
|
modelValue: e(o).outletAddress,
|
|
613
|
-
"onUpdate:modelValue": l[
|
|
624
|
+
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(o).outletAddress = t),
|
|
614
625
|
label: "Outlet Address",
|
|
615
626
|
placeholder: "Enter outlet address",
|
|
616
627
|
"label-mark": "required",
|
|
617
628
|
rules: e(i)(e(u).string().min(1, "Address is required"))
|
|
618
629
|
}, null, 8, ["modelValue", "rules"])
|
|
619
630
|
]),
|
|
620
|
-
n(
|
|
631
|
+
n(C, {
|
|
621
632
|
modelValue: e(o).outletPostCode,
|
|
622
|
-
"onUpdate:modelValue": l[
|
|
633
|
+
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(o).outletPostCode = t),
|
|
623
634
|
label: "Postal Code",
|
|
624
635
|
placeholder: "Enter postal code",
|
|
625
636
|
"label-mark": "required",
|
|
626
637
|
rules: e(i)(e(u).string().min(1, "Postal Code is required"))
|
|
627
638
|
}, null, 8, ["modelValue", "rules"]),
|
|
628
|
-
n(
|
|
639
|
+
n(C, {
|
|
629
640
|
modelValue: e(o).outletState,
|
|
630
|
-
"onUpdate:modelValue": l[
|
|
641
|
+
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(o).outletState = t),
|
|
631
642
|
label: "State",
|
|
632
643
|
placeholder: "Enter state",
|
|
633
644
|
"label-mark": "required",
|
|
634
645
|
rules: e(i)(e(u).string().min(1, "State is required"))
|
|
635
646
|
}, null, 8, ["modelValue", "rules"]),
|
|
636
|
-
n(
|
|
647
|
+
n(C, {
|
|
637
648
|
modelValue: e(o).outletCity,
|
|
638
|
-
"onUpdate:modelValue": l[
|
|
649
|
+
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(o).outletCity = t),
|
|
639
650
|
label: "City",
|
|
640
651
|
placeholder: "Enter city",
|
|
641
652
|
"label-mark": "required",
|
|
642
653
|
rules: e(i)(e(u).string().min(1, "City is required"))
|
|
643
654
|
}, null, 8, ["modelValue", "rules"]),
|
|
644
|
-
a("div",
|
|
655
|
+
a("div", Ze, [
|
|
645
656
|
n(ne, {
|
|
646
657
|
modelValue: e(o).businessType,
|
|
647
|
-
"onUpdate:modelValue": l[
|
|
658
|
+
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(o).businessType = t),
|
|
648
659
|
label: "Type",
|
|
649
660
|
placeholder: "Select business type",
|
|
650
661
|
"label-mark": "required",
|
|
@@ -663,75 +674,75 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
663
674
|
]
|
|
664
675
|
}, null, 8, ["modelValue", "rules"])
|
|
665
676
|
]),
|
|
666
|
-
a("div",
|
|
667
|
-
n(
|
|
677
|
+
a("div", _e, [
|
|
678
|
+
n(C, {
|
|
668
679
|
modelValue: e(o).businessRegNo,
|
|
669
|
-
"onUpdate:modelValue": l[
|
|
680
|
+
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(o).businessRegNo = t),
|
|
670
681
|
label: "Registration No",
|
|
671
682
|
placeholder: "Enter registration number",
|
|
672
683
|
"label-mark": "required",
|
|
673
684
|
rules: e(i)(e(u).string().min(1, "Reg No is required"))
|
|
674
685
|
}, null, 8, ["modelValue", "rules"])
|
|
675
686
|
]),
|
|
676
|
-
a("div",
|
|
677
|
-
n(
|
|
687
|
+
a("div", el, [
|
|
688
|
+
n(C, {
|
|
678
689
|
modelValue: e(o).tinNo,
|
|
679
|
-
"onUpdate:modelValue": l[
|
|
690
|
+
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(o).tinNo = t),
|
|
680
691
|
label: "Tax Identification No (TIN)",
|
|
681
692
|
placeholder: "Enter your TIN number",
|
|
682
693
|
"label-mark": "required",
|
|
683
694
|
rules: e(i)(e(u).string().min(1, "TIN is required"))
|
|
684
695
|
}, null, 8, ["modelValue", "rules"])
|
|
685
696
|
]),
|
|
686
|
-
a("div",
|
|
687
|
-
n(
|
|
697
|
+
a("div", ll, [
|
|
698
|
+
n(C, {
|
|
688
699
|
modelValue: e(o).sstNo,
|
|
689
|
-
"onUpdate:modelValue": l[
|
|
700
|
+
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(o).sstNo = t),
|
|
690
701
|
label: "SST Registration No (SST)",
|
|
691
702
|
placeholder: "Enter your SST number",
|
|
692
703
|
"label-mark": "optional"
|
|
693
704
|
}, null, 8, ["modelValue"])
|
|
694
705
|
])
|
|
695
706
|
]),
|
|
696
|
-
l[
|
|
697
|
-
a("div",
|
|
707
|
+
l[53] || (l[53] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
708
|
+
a("div", tl, [
|
|
698
709
|
n(ne, {
|
|
699
710
|
modelValue: e(o).bankName,
|
|
700
|
-
"onUpdate:modelValue": l[
|
|
711
|
+
"onUpdate:modelValue": l[25] || (l[25] = (t) => e(o).bankName = t),
|
|
701
712
|
label: "Bank",
|
|
702
713
|
placeholder: "Select bank type",
|
|
703
714
|
"label-mark": "required",
|
|
704
715
|
rules: e(i)(e(u).string().min(1, "Bank Type is required")),
|
|
705
716
|
items: e(ke).bankNameOptions()
|
|
706
717
|
}, null, 8, ["modelValue", "rules", "items"]),
|
|
707
|
-
n(
|
|
718
|
+
n(C, {
|
|
708
719
|
modelValue: e(o).bankHolderName,
|
|
709
|
-
"onUpdate:modelValue": l[
|
|
720
|
+
"onUpdate:modelValue": l[26] || (l[26] = (t) => e(o).bankHolderName = t),
|
|
710
721
|
label: "Beneficiary Name",
|
|
711
722
|
placeholder: "Enter Beneficiary Name",
|
|
712
723
|
"label-mark": "required",
|
|
713
724
|
rules: e(i)(e(u).string().min(1, "Beneficiary Name is required"))
|
|
714
725
|
}, null, 8, ["modelValue", "rules"]),
|
|
715
|
-
n(
|
|
726
|
+
n(C, {
|
|
716
727
|
modelValue: e(o).bankAccountNo,
|
|
717
|
-
"onUpdate:modelValue": l[
|
|
728
|
+
"onUpdate:modelValue": l[27] || (l[27] = (t) => e(o).bankAccountNo = t),
|
|
718
729
|
label: "Account Number",
|
|
719
730
|
placeholder: "Enter Account Number",
|
|
720
731
|
"label-mark": "required",
|
|
721
732
|
rules: e(i)(e(u).string().min(1, "Account Number is required"))
|
|
722
733
|
}, null, 8, ["modelValue", "rules"])
|
|
723
734
|
]),
|
|
724
|
-
l[
|
|
725
|
-
l[
|
|
726
|
-
a("div",
|
|
735
|
+
l[54] || (l[54] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
736
|
+
l[55] || (l[55] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 1. All Directors/Owner ICs ", -1)),
|
|
737
|
+
a("div", al, [
|
|
727
738
|
n(P, {
|
|
728
739
|
label: "Authorized Person ID",
|
|
729
740
|
modelValue: e(r).authorizedPersonID,
|
|
730
|
-
"onUpdate:modelValue": l[
|
|
741
|
+
"onUpdate:modelValue": l[28] || (l[28] = (t) => e(r).authorizedPersonID = t),
|
|
731
742
|
type: "image",
|
|
732
743
|
"restaurant-id": m.submission.restaurantId
|
|
733
744
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
734
|
-
(d(!0),
|
|
745
|
+
(d(!0), w(K, null, G(Y.value, (t) => (d(), D(P, {
|
|
735
746
|
key: t,
|
|
736
747
|
label: `Authorized Person ID ${t.replace("authorizedPersonID", "")}`,
|
|
737
748
|
modelValue: e(r)[t],
|
|
@@ -740,55 +751,55 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
740
751
|
"restaurant-id": m.submission.restaurantId
|
|
741
752
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
|
|
742
753
|
]),
|
|
743
|
-
l[
|
|
744
|
-
a("div",
|
|
745
|
-
e(o).businessType === "private_limited" || e(o).businessType === "public_limited" ? (d(),
|
|
754
|
+
l[56] || (l[56] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-6" }, " Section 2. Business Information ", -1)),
|
|
755
|
+
a("div", sl, [
|
|
756
|
+
e(o).businessType === "private_limited" || e(o).businessType === "public_limited" ? (d(), D(P, {
|
|
746
757
|
key: 0,
|
|
747
758
|
label: "Superform",
|
|
748
759
|
type: "pdf",
|
|
749
760
|
modelValue: e(r).certificate,
|
|
750
|
-
"onUpdate:modelValue": l[
|
|
761
|
+
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(r).certificate = t),
|
|
751
762
|
"restaurant-id": m.submission.restaurantId
|
|
752
763
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
753
|
-
e(o).businessType === "sole_proprietorship" || e(o).businessType === "partnership" ? (d(),
|
|
764
|
+
e(o).businessType === "sole_proprietorship" || e(o).businessType === "partnership" ? (d(), D(P, {
|
|
754
765
|
key: 1,
|
|
755
766
|
label: "Business Registration Document",
|
|
756
767
|
type: "pdf",
|
|
757
768
|
modelValue: e(r).certificate,
|
|
758
|
-
"onUpdate:modelValue": l[
|
|
769
|
+
"onUpdate:modelValue": l[30] || (l[30] = (t) => e(r).certificate = t),
|
|
759
770
|
"restaurant-id": m.submission.restaurantId
|
|
760
771
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
761
|
-
e(r).interiorPhoto ? (d(),
|
|
772
|
+
e(r).interiorPhoto ? (d(), D(P, {
|
|
762
773
|
key: 2,
|
|
763
774
|
label: "Interior Photo",
|
|
764
775
|
modelValue: e(r).interiorPhoto,
|
|
765
|
-
"onUpdate:modelValue": l[
|
|
776
|
+
"onUpdate:modelValue": l[31] || (l[31] = (t) => e(r).interiorPhoto = t),
|
|
766
777
|
type: "image",
|
|
767
778
|
"restaurant-id": m.submission.restaurantId
|
|
768
779
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
769
780
|
n(P, {
|
|
770
781
|
label: "Outlet Photo",
|
|
771
782
|
modelValue: e(r).outletPhoto,
|
|
772
|
-
"onUpdate:modelValue": l[
|
|
783
|
+
"onUpdate:modelValue": l[32] || (l[32] = (t) => e(r).outletPhoto = t),
|
|
773
784
|
type: "image-or-pdf",
|
|
774
785
|
"restaurant-id": m.submission.restaurantId
|
|
775
786
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
776
787
|
]),
|
|
777
|
-
l[
|
|
778
|
-
a("div",
|
|
788
|
+
l[57] || (l[57] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 3. Payout Information ", -1)),
|
|
789
|
+
a("div", ol, [
|
|
779
790
|
n(P, {
|
|
780
791
|
label: "Latest Bank Statement",
|
|
781
792
|
modelValue: e(r).bankStatement,
|
|
782
|
-
"onUpdate:modelValue": l[
|
|
793
|
+
"onUpdate:modelValue": l[33] || (l[33] = (t) => e(r).bankStatement = t),
|
|
783
794
|
type: "pdf",
|
|
784
795
|
"restaurant-id": m.submission.restaurantId
|
|
785
796
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
786
797
|
]),
|
|
787
|
-
l[
|
|
788
|
-
a("div",
|
|
789
|
-
(d(!0),
|
|
798
|
+
l[58] || (l[58] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 4. Site Photos ", -1)),
|
|
799
|
+
a("div", nl, [
|
|
800
|
+
(d(!0), w(K, null, G([1, 2, 3, 4, 5].filter(
|
|
790
801
|
(t) => !!e(r)[`onsitePhoto${t}`]
|
|
791
|
-
), (t) => (d(),
|
|
802
|
+
), (t) => (d(), D(P, {
|
|
792
803
|
key: t,
|
|
793
804
|
label: e(Ce)[t - 1],
|
|
794
805
|
modelValue: e(r)[`onsitePhoto${t}`],
|
|
@@ -797,31 +808,31 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
797
808
|
"restaurant-id": m.submission.restaurantId
|
|
798
809
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
|
|
799
810
|
]),
|
|
800
|
-
l[
|
|
801
|
-
a("div",
|
|
802
|
-
e(r).liquorLicense ? (d(),
|
|
811
|
+
l[59] || (l[59] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 5. Additional Documents ", -1)),
|
|
812
|
+
a("div", rl, [
|
|
813
|
+
e(r).liquorLicense ? (d(), D(P, {
|
|
803
814
|
key: 0,
|
|
804
815
|
label: "Liquor License",
|
|
805
816
|
modelValue: e(r).liquorLicense,
|
|
806
|
-
"onUpdate:modelValue": l[
|
|
817
|
+
"onUpdate:modelValue": l[34] || (l[34] = (t) => e(r).liquorLicense = t),
|
|
807
818
|
type: "image-or-pdf",
|
|
808
819
|
"restaurant-id": m.submission.restaurantId
|
|
809
820
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
810
|
-
e(r).appendixC ? (d(),
|
|
821
|
+
e(r).appendixC ? (d(), D(P, {
|
|
811
822
|
key: 1,
|
|
812
823
|
label: "Appendix C",
|
|
813
824
|
modelValue: e(r).appendixC,
|
|
814
|
-
"onUpdate:modelValue": l[
|
|
825
|
+
"onUpdate:modelValue": l[35] || (l[35] = (t) => e(r).appendixC = t),
|
|
815
826
|
type: "pdf",
|
|
816
827
|
"restaurant-id": m.submission.restaurantId
|
|
817
828
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
818
|
-
!e(r).liquorLicense && !e(r).appendixC ? (d(),
|
|
829
|
+
!e(r).liquorLicense && !e(r).appendixC ? (d(), w("p", il, " No additional documents submitted. ")) : $("", !0)
|
|
819
830
|
]),
|
|
820
|
-
l[
|
|
821
|
-
a("div",
|
|
822
|
-
n(
|
|
831
|
+
l[60] || (l[60] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
832
|
+
a("div", ul, [
|
|
833
|
+
n(Ie, {
|
|
823
834
|
modelValue: e(r).signature,
|
|
824
|
-
"onUpdate:modelValue": l[
|
|
835
|
+
"onUpdate:modelValue": l[36] || (l[36] = (t) => e(r).signature = t),
|
|
825
836
|
"restaurant-id": m.submission.restaurantId,
|
|
826
837
|
label: "Signature"
|
|
827
838
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
@@ -829,7 +840,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
829
840
|
label: "Company Stamp",
|
|
830
841
|
type: "image",
|
|
831
842
|
modelValue: e(r).companyStamp,
|
|
832
|
-
"onUpdate:modelValue": l[
|
|
843
|
+
"onUpdate:modelValue": l[37] || (l[37] = (t) => e(r).companyStamp = t),
|
|
833
844
|
"restaurant-id": m.submission.restaurantId
|
|
834
845
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
835
846
|
])
|
|
@@ -839,7 +850,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
839
850
|
], 64);
|
|
840
851
|
};
|
|
841
852
|
}
|
|
842
|
-
}),
|
|
853
|
+
}), 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" }, Dl = { class: "col-span-2" }, Ul = { class: "col-span-2" }, Rl = { class: "col-span-2" }, Al = { class: "col-span-2" }, Tl = /* @__PURE__ */ X({
|
|
843
854
|
__name: "NTTSubmission",
|
|
844
855
|
props: {
|
|
845
856
|
submission: {
|
|
@@ -849,7 +860,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
849
860
|
},
|
|
850
861
|
emits: ["update:submission"],
|
|
851
862
|
setup(m, { emit: O }) {
|
|
852
|
-
const c = m, k = O, y = oe(),
|
|
863
|
+
const c = m, k = O, y = oe(), I = j(!1), { isLoading: g, startAsyncCall: B } = ee(), { fields: o, documents: r, restaurantId: R, profile: V, status: U, statusReason: x } = c.submission, q = j(""), A = [
|
|
853
864
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
854
865
|
{
|
|
855
866
|
key: "localCardStandard",
|
|
@@ -882,14 +893,14 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
882
893
|
{ key: "linePay", label: "LinePay", defaultValue: "2.1" },
|
|
883
894
|
{ key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
|
|
884
895
|
], p = Object.fromEntries(
|
|
885
|
-
|
|
896
|
+
A.map((v) => [v.key, v.defaultValue])
|
|
886
897
|
), E = j(
|
|
887
898
|
c.submission.rates ? Object.fromEntries(
|
|
888
899
|
Object.entries(c.submission.rates).map(([v, s]) => [v, `${s}`])
|
|
889
900
|
) : { ...p }
|
|
890
901
|
), Y = z(
|
|
891
902
|
() => Object.values(E.value).every((v) => parseFloat(v) > 0)
|
|
892
|
-
), le = z(() => o.businessType === "juristic" ? "Juristic" : o.businessType === "individual" ? "Individual" : o.businessType || "-"), te = () =>
|
|
903
|
+
), le = z(() => o.businessType === "juristic" ? "Juristic" : o.businessType === "individual" ? "Individual" : o.businessType || "-"), te = () => B(async () => {
|
|
893
904
|
try {
|
|
894
905
|
const v = await M.reviewById(
|
|
895
906
|
c.submission._id,
|
|
@@ -908,13 +919,13 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
908
919
|
message: Q(v)
|
|
909
920
|
});
|
|
910
921
|
}
|
|
911
|
-
}), L = () =>
|
|
922
|
+
}), L = () => B(async () => {
|
|
912
923
|
try {
|
|
913
924
|
const v = await M.reviewById(
|
|
914
925
|
c.submission._id,
|
|
915
926
|
{
|
|
916
927
|
rates: Object.fromEntries(
|
|
917
|
-
|
|
928
|
+
A.map((s) => [
|
|
918
929
|
s.key,
|
|
919
930
|
parseFloat(E.value[s.key])
|
|
920
931
|
])
|
|
@@ -933,16 +944,16 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
933
944
|
message: Q(v)
|
|
934
945
|
});
|
|
935
946
|
}
|
|
936
|
-
}), Z = () =>
|
|
947
|
+
}), Z = () => B(async () => {
|
|
937
948
|
try {
|
|
938
949
|
const v = await M.reviewById(
|
|
939
950
|
c.submission._id,
|
|
940
951
|
{
|
|
941
952
|
status: "rejected",
|
|
942
|
-
statusReason:
|
|
953
|
+
statusReason: q.value
|
|
943
954
|
}
|
|
944
955
|
);
|
|
945
|
-
k("update:submission", v),
|
|
956
|
+
k("update:submission", v), I.value = !1, y.open({
|
|
946
957
|
type: "success",
|
|
947
958
|
title: "Submission updated successfully"
|
|
948
959
|
});
|
|
@@ -955,49 +966,49 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
955
966
|
}
|
|
956
967
|
});
|
|
957
968
|
return (v, s) => {
|
|
958
|
-
const
|
|
959
|
-
return d(),
|
|
960
|
-
a("div",
|
|
969
|
+
const S = N("FmTextField"), h = N("FmButton"), ae = N("FmTextarea"), se = N("FmDialog"), _ = N("FmPhoneNumber"), b = N("FmForm");
|
|
970
|
+
return d(), w(K, null, [
|
|
971
|
+
a("div", ml, [
|
|
961
972
|
a("div", null, [
|
|
962
973
|
s[31] || (s[31] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
963
|
-
a("span",
|
|
974
|
+
a("span", pl, F(e(R)), 1)
|
|
964
975
|
]),
|
|
965
976
|
a("div", null, [
|
|
966
977
|
s[32] || (s[32] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
967
|
-
a("span",
|
|
978
|
+
a("span", bl, F(e(V).name) + " ( " + F(e(V).legalName) + " )", 1)
|
|
968
979
|
]),
|
|
969
980
|
a("div", null, [
|
|
970
981
|
s[33] || (s[33] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
971
|
-
a("span",
|
|
982
|
+
a("span", cl, F(e(V).email), 1)
|
|
972
983
|
]),
|
|
973
984
|
a("div", null, [
|
|
974
985
|
s[34] || (s[34] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
975
|
-
a("span",
|
|
986
|
+
a("span", gl, F(e(V).phoneNo), 1)
|
|
976
987
|
]),
|
|
977
988
|
a("div", null, [
|
|
978
989
|
s[35] || (s[35] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
979
|
-
a("span",
|
|
980
|
-
n(pe, { data: e(
|
|
990
|
+
a("span", yl, [
|
|
991
|
+
n(pe, { data: e(U) }, null, 8, ["data"])
|
|
981
992
|
])
|
|
982
993
|
]),
|
|
983
994
|
a("div", null, [
|
|
984
995
|
s[36] || (s[36] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
985
|
-
a("span",
|
|
996
|
+
a("span", Vl, F(e(x)), 1)
|
|
986
997
|
])
|
|
987
998
|
]),
|
|
988
999
|
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(),
|
|
1000
|
+
a("div", vl, [
|
|
1001
|
+
(d(), w(K, null, G(A, (l) => n(S, {
|
|
991
1002
|
key: l.key,
|
|
992
1003
|
modelValue: E.value[l.key],
|
|
993
|
-
"onUpdate:modelValue": (
|
|
1004
|
+
"onUpdate:modelValue": (T) => E.value[l.key] = T,
|
|
994
1005
|
label: l.label,
|
|
995
1006
|
"label-mark": "required",
|
|
996
1007
|
type: "number",
|
|
997
1008
|
inputmode: "numeric",
|
|
998
1009
|
decimal: 2,
|
|
999
1010
|
rules: e(i)(
|
|
1000
|
-
e(u).string().min(1, "Rate is required").transform((
|
|
1011
|
+
e(u).string().min(1, "Rate is required").transform((T) => parseFloat(T)).refine((T) => !isNaN(T), { message: "Rate must be a number" })
|
|
1001
1012
|
)
|
|
1002
1013
|
}, {
|
|
1003
1014
|
append: f(() => [...s[37] || (s[37] = [
|
|
@@ -1006,10 +1017,10 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1006
1017
|
_: 1
|
|
1007
1018
|
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
1008
1019
|
]),
|
|
1009
|
-
a("div",
|
|
1020
|
+
a("div", fl, [
|
|
1010
1021
|
n(se, {
|
|
1011
|
-
modelValue:
|
|
1012
|
-
"onUpdate:modelValue": s[1] || (s[1] = (l) =>
|
|
1022
|
+
modelValue: I.value,
|
|
1023
|
+
"onUpdate:modelValue": s[1] || (s[1] = (l) => I.value = l)
|
|
1013
1024
|
}, {
|
|
1014
1025
|
"dialog-button": f(() => [
|
|
1015
1026
|
n(h, {
|
|
@@ -1026,8 +1037,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1026
1037
|
])]),
|
|
1027
1038
|
default: f(() => [
|
|
1028
1039
|
n(ae, {
|
|
1029
|
-
modelValue:
|
|
1030
|
-
"onUpdate:modelValue": s[0] || (s[0] = (l) =>
|
|
1040
|
+
modelValue: q.value,
|
|
1041
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => q.value = l),
|
|
1031
1042
|
label: "Reason for Rejection",
|
|
1032
1043
|
"label-mark": "optional",
|
|
1033
1044
|
"helper-text": "Please provide a reason for rejection."
|
|
@@ -1051,7 +1062,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1051
1062
|
onClick: L,
|
|
1052
1063
|
loading: e(g)
|
|
1053
1064
|
}, null, 8, ["disabled", "loading"]),
|
|
1054
|
-
e(
|
|
1065
|
+
e(U) === "approved" ? (d(), D(h, {
|
|
1055
1066
|
key: 0,
|
|
1056
1067
|
type: "button",
|
|
1057
1068
|
variant: "secondary",
|
|
@@ -1065,9 +1076,9 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1065
1076
|
n(b, { disabled: !0 }, {
|
|
1066
1077
|
default: f(() => [
|
|
1067
1078
|
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(
|
|
1079
|
+
a("div", kl, [
|
|
1080
|
+
a("div", Cl, [
|
|
1081
|
+
n(S, {
|
|
1071
1082
|
modelValue: e(o).companyName,
|
|
1072
1083
|
"onUpdate:modelValue": s[2] || (s[2] = (l) => e(o).companyName = l),
|
|
1073
1084
|
label: "Company Name",
|
|
@@ -1075,8 +1086,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1075
1086
|
rules: e(i)(e(u).string().min(1, "Company Name is required"))
|
|
1076
1087
|
}, null, 8, ["modelValue", "rules"])
|
|
1077
1088
|
]),
|
|
1078
|
-
a("div",
|
|
1079
|
-
n(
|
|
1089
|
+
a("div", Nl, [
|
|
1090
|
+
n(S, {
|
|
1080
1091
|
modelValue: e(o).outletName,
|
|
1081
1092
|
"onUpdate:modelValue": s[3] || (s[3] = (l) => e(o).outletName = l),
|
|
1082
1093
|
label: "Outlet Name (Thai)",
|
|
@@ -1084,8 +1095,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1084
1095
|
rules: e(i)(e(u).string().min(1, "Outlet Name is required"))
|
|
1085
1096
|
}, null, 8, ["modelValue", "rules"])
|
|
1086
1097
|
]),
|
|
1087
|
-
a("div",
|
|
1088
|
-
n(
|
|
1098
|
+
a("div", Sl, [
|
|
1099
|
+
n(S, {
|
|
1089
1100
|
modelValue: e(o).outletNameEnglish,
|
|
1090
1101
|
"onUpdate:modelValue": s[4] || (s[4] = (l) => e(o).outletNameEnglish = l),
|
|
1091
1102
|
label: "Outlet Name (English)",
|
|
@@ -1093,8 +1104,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1093
1104
|
rules: e(i)(e(u).string().min(1, "Outlet Name English is required"))
|
|
1094
1105
|
}, null, 8, ["modelValue", "rules"])
|
|
1095
1106
|
]),
|
|
1096
|
-
a("div",
|
|
1097
|
-
n(
|
|
1107
|
+
a("div", Pl, [
|
|
1108
|
+
n(S, {
|
|
1098
1109
|
modelValue: e(o).outletAddress,
|
|
1099
1110
|
"onUpdate:modelValue": s[5] || (s[5] = (l) => e(o).outletAddress = l),
|
|
1100
1111
|
label: "Outlet Address",
|
|
@@ -1102,33 +1113,33 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1102
1113
|
rules: e(i)(e(u).string().min(1, "Outlet Address is required"))
|
|
1103
1114
|
}, null, 8, ["modelValue", "rules"])
|
|
1104
1115
|
]),
|
|
1105
|
-
n(
|
|
1116
|
+
n(S, {
|
|
1106
1117
|
modelValue: e(o).outletPostCode,
|
|
1107
1118
|
"onUpdate:modelValue": s[6] || (s[6] = (l) => e(o).outletPostCode = l),
|
|
1108
1119
|
label: "Post Code",
|
|
1109
1120
|
"label-mark": "required",
|
|
1110
1121
|
rules: e(i)(e(u).string().min(1, "Post Code is required"))
|
|
1111
1122
|
}, null, 8, ["modelValue", "rules"]),
|
|
1112
|
-
n(
|
|
1123
|
+
n(S, {
|
|
1113
1124
|
modelValue: e(o).outletState,
|
|
1114
1125
|
"onUpdate:modelValue": s[7] || (s[7] = (l) => e(o).outletState = l),
|
|
1115
1126
|
label: "State",
|
|
1116
1127
|
"label-mark": "required",
|
|
1117
1128
|
rules: e(i)(e(u).string().min(1, "State is required"))
|
|
1118
1129
|
}, null, 8, ["modelValue", "rules"]),
|
|
1119
|
-
n(
|
|
1130
|
+
n(S, {
|
|
1120
1131
|
modelValue: e(o).outletCity,
|
|
1121
1132
|
"onUpdate:modelValue": s[8] || (s[8] = (l) => e(o).outletCity = l),
|
|
1122
1133
|
label: "City",
|
|
1123
1134
|
"label-mark": "required",
|
|
1124
1135
|
rules: e(i)(e(u).string().min(1, "City is required"))
|
|
1125
1136
|
}, null, 8, ["modelValue", "rules"]),
|
|
1126
|
-
n(
|
|
1137
|
+
n(S, {
|
|
1127
1138
|
"model-value": le.value,
|
|
1128
1139
|
label: "Business Type",
|
|
1129
1140
|
"label-mark": "required"
|
|
1130
1141
|
}, null, 8, ["model-value"]),
|
|
1131
|
-
n(
|
|
1142
|
+
n(S, {
|
|
1132
1143
|
modelValue: e(o).numberOfDevices,
|
|
1133
1144
|
"onUpdate:modelValue": s[9] || (s[9] = (l) => e(o).numberOfDevices = l),
|
|
1134
1145
|
label: "Number of Devices",
|
|
@@ -1136,36 +1147,36 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1136
1147
|
}, null, 8, ["modelValue"])
|
|
1137
1148
|
]),
|
|
1138
1149
|
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(
|
|
1150
|
+
a("div", ql, [
|
|
1151
|
+
n(S, {
|
|
1141
1152
|
modelValue: e(o).bankName,
|
|
1142
1153
|
"onUpdate:modelValue": s[10] || (s[10] = (l) => e(o).bankName = l),
|
|
1143
1154
|
label: "Bank Name",
|
|
1144
1155
|
"label-mark": "required",
|
|
1145
1156
|
rules: e(i)(e(u).string().min(1, "Bank Name is required"))
|
|
1146
1157
|
}, null, 8, ["modelValue", "rules"]),
|
|
1147
|
-
n(
|
|
1158
|
+
n(S, {
|
|
1148
1159
|
modelValue: e(o).bankHolderName,
|
|
1149
1160
|
"onUpdate:modelValue": s[11] || (s[11] = (l) => e(o).bankHolderName = l),
|
|
1150
1161
|
label: "Bank Holder Name",
|
|
1151
1162
|
"label-mark": "required",
|
|
1152
1163
|
rules: e(i)(e(u).string().min(1, "Bank Holder Name is required"))
|
|
1153
1164
|
}, null, 8, ["modelValue", "rules"]),
|
|
1154
|
-
n(
|
|
1165
|
+
n(S, {
|
|
1155
1166
|
modelValue: e(o).bankAccountNo,
|
|
1156
1167
|
"onUpdate:modelValue": s[12] || (s[12] = (l) => e(o).bankAccountNo = l),
|
|
1157
1168
|
label: "Bank Account No",
|
|
1158
1169
|
"label-mark": "required",
|
|
1159
1170
|
rules: e(i)(e(u).string().min(1, "Bank Account No is required"))
|
|
1160
1171
|
}, null, 8, ["modelValue", "rules"]),
|
|
1161
|
-
n(
|
|
1172
|
+
n(S, {
|
|
1162
1173
|
modelValue: e(o).bankBranch,
|
|
1163
1174
|
"onUpdate:modelValue": s[13] || (s[13] = (l) => e(o).bankBranch = l),
|
|
1164
1175
|
label: "Bank Branch",
|
|
1165
1176
|
"label-mark": "required",
|
|
1166
1177
|
rules: e(i)(e(u).string().min(1, "Bank Branch is required"))
|
|
1167
1178
|
}, null, 8, ["modelValue", "rules"]),
|
|
1168
|
-
n(
|
|
1179
|
+
n(S, {
|
|
1169
1180
|
modelValue: e(o).bankBranchCode,
|
|
1170
1181
|
"onUpdate:modelValue": s[14] || (s[14] = (l) => e(o).bankBranchCode = l),
|
|
1171
1182
|
label: "Bank Branch Code",
|
|
@@ -1203,7 +1214,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1203
1214
|
type: "pdf",
|
|
1204
1215
|
"restaurant-id": m.submission.restaurantId
|
|
1205
1216
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1206
|
-
e(o).businessType === "juristic" ? (d(),
|
|
1217
|
+
e(o).businessType === "juristic" ? (d(), D(P, {
|
|
1207
1218
|
key: 0,
|
|
1208
1219
|
label: "Company Certificate",
|
|
1209
1220
|
type: "pdf",
|
|
@@ -1211,7 +1222,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1211
1222
|
"onUpdate:modelValue": s[19] || (s[19] = (l) => e(r).companyCertificate = l),
|
|
1212
1223
|
"restaurant-id": m.submission.restaurantId
|
|
1213
1224
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1214
|
-
e(o).businessType === "juristic" ? (d(),
|
|
1225
|
+
e(o).businessType === "juristic" ? (d(), D(P, {
|
|
1215
1226
|
key: 1,
|
|
1216
1227
|
label: "VAT Certificate",
|
|
1217
1228
|
type: "pdf",
|
|
@@ -1219,7 +1230,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1219
1230
|
"onUpdate:modelValue": s[20] || (s[20] = (l) => e(r).vatCertificate = l),
|
|
1220
1231
|
"restaurant-id": m.submission.restaurantId
|
|
1221
1232
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1222
|
-
e(o).businessType === "individual" ? (d(),
|
|
1233
|
+
e(o).businessType === "individual" ? (d(), D(P, {
|
|
1223
1234
|
key: 2,
|
|
1224
1235
|
label: "Commercial Certificate",
|
|
1225
1236
|
type: "pdf",
|
|
@@ -1229,9 +1240,9 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1229
1240
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0)
|
|
1230
1241
|
]),
|
|
1231
1242
|
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",
|
|
1243
|
+
a("div", Il, [
|
|
1233
1244
|
a("div", xl, [
|
|
1234
|
-
n(
|
|
1245
|
+
n(S, {
|
|
1235
1246
|
modelValue: e(o).picName,
|
|
1236
1247
|
"onUpdate:modelValue": s[22] || (s[22] = (l) => e(o).picName = l),
|
|
1237
1248
|
label: "PIC Name",
|
|
@@ -1240,7 +1251,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1240
1251
|
}, null, 8, ["modelValue", "rules"])
|
|
1241
1252
|
]),
|
|
1242
1253
|
a("div", Fl, [
|
|
1243
|
-
n(
|
|
1254
|
+
n(S, {
|
|
1244
1255
|
modelValue: e(o).picRole,
|
|
1245
1256
|
"onUpdate:modelValue": s[23] || (s[23] = (l) => e(o).picRole = l),
|
|
1246
1257
|
label: "PIC Role",
|
|
@@ -1248,8 +1259,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1248
1259
|
rules: e(i)(e(u).string().min(1, "PIC Role is required"))
|
|
1249
1260
|
}, null, 8, ["modelValue", "rules"])
|
|
1250
1261
|
]),
|
|
1251
|
-
a("div",
|
|
1252
|
-
n(
|
|
1262
|
+
a("div", Dl, [
|
|
1263
|
+
n(S, {
|
|
1253
1264
|
modelValue: e(o).picEmail,
|
|
1254
1265
|
"onUpdate:modelValue": s[24] || (s[24] = (l) => e(o).picEmail = l),
|
|
1255
1266
|
label: "PIC Email",
|
|
@@ -1267,8 +1278,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1267
1278
|
rules: e(i)(e(u).string().min(1, "PIC Contact is required"))
|
|
1268
1279
|
}, null, 8, ["model-value", "rules"])
|
|
1269
1280
|
]),
|
|
1270
|
-
a("div",
|
|
1271
|
-
n(
|
|
1281
|
+
a("div", Rl, [
|
|
1282
|
+
n(S, {
|
|
1272
1283
|
modelValue: e(o).witnessName,
|
|
1273
1284
|
"onUpdate:modelValue": s[26] || (s[26] = (l) => e(o).witnessName = l),
|
|
1274
1285
|
label: "Witness Name",
|
|
@@ -1276,8 +1287,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1276
1287
|
rules: e(i)(e(u).string().min(1, "Witness Name is required"))
|
|
1277
1288
|
}, null, 8, ["modelValue", "rules"])
|
|
1278
1289
|
]),
|
|
1279
|
-
a("div",
|
|
1280
|
-
n(
|
|
1290
|
+
a("div", Al, [
|
|
1291
|
+
n(S, {
|
|
1281
1292
|
modelValue: e(o).witnessRole,
|
|
1282
1293
|
"onUpdate:modelValue": s[27] || (s[27] = (l) => e(o).witnessRole = l),
|
|
1283
1294
|
label: "Witness Role",
|
|
@@ -1313,7 +1324,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1313
1324
|
], 64);
|
|
1314
1325
|
};
|
|
1315
1326
|
}
|
|
1316
|
-
}),
|
|
1327
|
+
}), Bl = /* @__PURE__ */ X({
|
|
1317
1328
|
__name: "TyroSubmission",
|
|
1318
1329
|
props: {
|
|
1319
1330
|
submission: {
|
|
@@ -1324,7 +1335,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1324
1335
|
emits: ["update:submission"],
|
|
1325
1336
|
setup(m) {
|
|
1326
1337
|
const O = m, c = z(() => {
|
|
1327
|
-
const k = O.submission.fields || {}, y = (
|
|
1338
|
+
const k = O.submission.fields || {}, y = (I) => k[I] || "N/A";
|
|
1328
1339
|
return [
|
|
1329
1340
|
{
|
|
1330
1341
|
label: "Tyro POS Reference ID",
|
|
@@ -1345,27 +1356,27 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1345
1356
|
];
|
|
1346
1357
|
});
|
|
1347
1358
|
return (k, y) => {
|
|
1348
|
-
const
|
|
1349
|
-
return d(),
|
|
1359
|
+
const I = N("FmCardHeader"), g = N("FmCardSection"), B = N("FmCard");
|
|
1360
|
+
return d(), D(B, {
|
|
1350
1361
|
class: "max-w-3xl mt-8 p-6",
|
|
1351
1362
|
variant: "elevated"
|
|
1352
1363
|
}, {
|
|
1353
1364
|
default: f(() => [
|
|
1354
1365
|
n(g, { class: "flex flex-col gap-16 justify-between" }, {
|
|
1355
1366
|
default: f(() => [
|
|
1356
|
-
n(
|
|
1367
|
+
n(I, {
|
|
1357
1368
|
class: "p-0",
|
|
1358
1369
|
title: "Tyro Authorisation",
|
|
1359
1370
|
subtitle: ""
|
|
1360
1371
|
}),
|
|
1361
1372
|
n(g, { class: "p-0" }, {
|
|
1362
1373
|
default: f(() => [
|
|
1363
|
-
(d(!0),
|
|
1374
|
+
(d(!0), w(K, null, G(c.value, (o) => (d(), w("p", {
|
|
1364
1375
|
key: o.label,
|
|
1365
1376
|
class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
|
|
1366
1377
|
}, [
|
|
1367
|
-
a("b", null,
|
|
1368
|
-
J(": " +
|
|
1378
|
+
a("b", null, F(o.label), 1),
|
|
1379
|
+
J(": " + F(o.value), 1)
|
|
1369
1380
|
]))), 128))
|
|
1370
1381
|
]),
|
|
1371
1382
|
_: 1
|
|
@@ -1378,10 +1389,10 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1378
1389
|
});
|
|
1379
1390
|
};
|
|
1380
1391
|
}
|
|
1381
|
-
}),
|
|
1392
|
+
}), El = {
|
|
1382
1393
|
key: 0,
|
|
1383
1394
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1384
|
-
},
|
|
1395
|
+
}, $l = { class: "px-32 pb-32" }, Xl = /* @__PURE__ */ X({
|
|
1385
1396
|
__name: "OnboardForm",
|
|
1386
1397
|
props: {
|
|
1387
1398
|
submissionId: {
|
|
@@ -1390,17 +1401,17 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1390
1401
|
}
|
|
1391
1402
|
},
|
|
1392
1403
|
setup(m) {
|
|
1393
|
-
const { startAsyncCall: O, isLoading: c } = ee(), k = oe(), y = m,
|
|
1404
|
+
const { startAsyncCall: O, isLoading: c } = ee(), k = oe(), y = m, I = fe(), g = j(null), B = z(
|
|
1394
1405
|
() => {
|
|
1395
|
-
var
|
|
1396
|
-
return ((
|
|
1406
|
+
var x;
|
|
1407
|
+
return ((x = g.value) == null ? void 0 : x.type) === de.FdoOnboardType.enum.tyro;
|
|
1397
1408
|
}
|
|
1398
1409
|
), o = () => {
|
|
1399
1410
|
if (window.history.length > 1) {
|
|
1400
|
-
|
|
1411
|
+
I.back();
|
|
1401
1412
|
return;
|
|
1402
1413
|
}
|
|
1403
|
-
|
|
1414
|
+
I.push({ name: "mf-payment-admin.onboard-submission" });
|
|
1404
1415
|
};
|
|
1405
1416
|
Ve(() => {
|
|
1406
1417
|
O(async () => {
|
|
@@ -1411,22 +1422,22 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1411
1422
|
if (!g.value) return null;
|
|
1412
1423
|
switch (g.value.type) {
|
|
1413
1424
|
case "softspace":
|
|
1414
|
-
return
|
|
1425
|
+
return dl;
|
|
1415
1426
|
case "ntt":
|
|
1416
|
-
return Al;
|
|
1417
|
-
case "tyro":
|
|
1418
1427
|
return Tl;
|
|
1428
|
+
case "tyro":
|
|
1429
|
+
return Bl;
|
|
1419
1430
|
default:
|
|
1420
1431
|
return null;
|
|
1421
1432
|
}
|
|
1422
1433
|
}), R = j(0);
|
|
1423
|
-
function V(
|
|
1424
|
-
g.value =
|
|
1434
|
+
function V(x) {
|
|
1435
|
+
g.value = x, R.value = Date.now();
|
|
1425
1436
|
}
|
|
1426
|
-
const
|
|
1427
|
-
var
|
|
1437
|
+
const U = async (x) => {
|
|
1438
|
+
var q, A;
|
|
1428
1439
|
if (g.value)
|
|
1429
|
-
switch (
|
|
1440
|
+
switch (x) {
|
|
1430
1441
|
case "preview":
|
|
1431
1442
|
let p;
|
|
1432
1443
|
try {
|
|
@@ -1434,7 +1445,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1434
1445
|
message: "Generating preview document...",
|
|
1435
1446
|
type: "info"
|
|
1436
1447
|
}), await M.previewDocument(
|
|
1437
|
-
(
|
|
1448
|
+
(q = g.value) == null ? void 0 : q._id
|
|
1438
1449
|
);
|
|
1439
1450
|
} catch (E) {
|
|
1440
1451
|
k.open({
|
|
@@ -1452,7 +1463,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1452
1463
|
message: "Sending onboarding document...",
|
|
1453
1464
|
type: "info"
|
|
1454
1465
|
}), await M.sendDocument(
|
|
1455
|
-
(
|
|
1466
|
+
(A = g.value) == null ? void 0 : A._id
|
|
1456
1467
|
), k.open({
|
|
1457
1468
|
type: "success",
|
|
1458
1469
|
title: "Submission documents send successfully"
|
|
@@ -1467,19 +1478,19 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1467
1478
|
break;
|
|
1468
1479
|
}
|
|
1469
1480
|
};
|
|
1470
|
-
return (
|
|
1481
|
+
return (x, q) => {
|
|
1471
1482
|
var E, Y;
|
|
1472
|
-
const
|
|
1473
|
-
return e(c) ? (d(),
|
|
1474
|
-
n(
|
|
1475
|
-
])) : (d(),
|
|
1483
|
+
const A = N("FmCircularProgress"), p = N("FmPageHead");
|
|
1484
|
+
return e(c) ? (d(), w("div", El, [
|
|
1485
|
+
n(A, { size: "xxl" })
|
|
1486
|
+
])) : (d(), w(K, { key: 1 }, [
|
|
1476
1487
|
n(p, {
|
|
1477
1488
|
title: `Submission - ${(E = g.value) == null ? void 0 : E.type}`,
|
|
1478
1489
|
description: `ID - ${(Y = g.value) == null ? void 0 : Y._id}`,
|
|
1479
1490
|
"back-button": !0,
|
|
1480
1491
|
"onClick:back": o,
|
|
1481
|
-
"onClick:action":
|
|
1482
|
-
actions:
|
|
1492
|
+
"onClick:action": U,
|
|
1493
|
+
actions: B.value ? [] : [
|
|
1483
1494
|
{
|
|
1484
1495
|
label: "Preview Document",
|
|
1485
1496
|
value: "preview",
|
|
@@ -1493,8 +1504,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1493
1504
|
}
|
|
1494
1505
|
]
|
|
1495
1506
|
}, null, 8, ["title", "description", "actions"]),
|
|
1496
|
-
a("div",
|
|
1497
|
-
(d(),
|
|
1507
|
+
a("div", $l, [
|
|
1508
|
+
(d(), D(ve(r.value), {
|
|
1498
1509
|
key: R.value,
|
|
1499
1510
|
submission: g.value,
|
|
1500
1511
|
"onUpdate:submission": V
|
|
@@ -1505,5 +1516,5 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1505
1516
|
}
|
|
1506
1517
|
});
|
|
1507
1518
|
export {
|
|
1508
|
-
|
|
1519
|
+
Xl as default
|
|
1509
1520
|
};
|