@feedmepos/mf-payment 1.11.2-dev → 1.11.4-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-CqIH_Wgb.js → Actions.vue_vue_type_script_setup_true_lang-BPh2hhit.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-B_xS0a4g.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-DgswT3Ud.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-DT0T1HyB.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D7RuRMlk.js} +3 -3
- package/dist/{Chargeback-It_ypMRE.js → Chargeback-B8cjc_pN.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-a-bX5Lqt.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DQXv0gnh.js} +1 -1
- package/dist/{ExternalTerminal-CE8tlcy4.js → ExternalTerminal-r_0OqPCU.js} +6 -6
- package/dist/{OnboardForm-CMWpL-JX.js → OnboardForm-BCZ_YurN.js} +6 -6
- package/dist/{OnboardForm-BeDDUdY1.js → OnboardForm-BVfA7iqT.js} +866 -756
- package/dist/{OnboardSubmission-0iohV3ip.js → OnboardSubmission-DmWcJsAp.js} +6 -6
- package/dist/{OnboardSubmission-C6-zMQAT.js → OnboardSubmission-JZDSvuzp.js} +3 -3
- package/dist/{PaymentCheckout-BoPQVDtI.js → PaymentCheckout-CstxxfEL.js} +2 -2
- package/dist/{PayoutAccount-D82rrOiB.js → PayoutAccount-D-G1xwPX.js} +5 -5
- package/dist/{PayoutAccount-Bsmw4uY_.js → PayoutAccount-SYruVIwb.js} +7 -7
- package/dist/{PayoutAccountSetting-CXqXa7kJ.js → PayoutAccountSetting-B99lsGOy.js} +6 -6
- package/dist/{Restaurant-Da_0RO2P.js → Restaurant-BX2gE_HI.js} +4 -4
- package/dist/{RestaurantSetting-CyN2zPoR.js → RestaurantSetting-D0E6REVo.js} +3 -3
- package/dist/{Settlement-CJMu94mC.js → Settlement-BDov44GA.js} +3 -3
- package/dist/{Settlement-D1lIUjuP.js → Settlement-D16D5PXH.js} +4 -4
- package/dist/{SettlementTransactions-nLyTOQ-V.js → SettlementTransactions-BUvDH10q.js} +5 -5
- package/dist/{SettlementTransactions-i6dvSl8W.js → SettlementTransactions-CyJ21ZA6.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DHG1EsIG.js → Status.vue_vue_type_script_setup_true_lang-DlIp-zin.js} +1 -1
- package/dist/{Terminal-BXruPbvM.js → Terminal-CY2uX4Wf.js} +6 -6
- package/dist/{TerminalSetting-CIGLCOnF.js → TerminalSetting-C6U8gzkD.js} +7 -7
- package/dist/{TerminalTemplate-z1A0N8mF.js → TerminalTemplate-DwxrCqyi.js} +5 -5
- package/dist/{TerminalTemplateSetting-D2Jid3yh.js → TerminalTemplateSetting-Ca1bBZOK.js} +5 -5
- package/dist/{Transaction-DL80OHFr.js → Transaction-EZWgDtJ8.js} +10 -10
- package/dist/{Transaction-xsD36tW9.js → Transaction-wBN2-1H9.js} +12 -12
- package/dist/{TransactionOld-DrKIK5TU.js → TransactionOld-b8vKw1PJ.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-DPh45qkC.js → TransactionStatus.vue_vue_type_script_setup_true_lang-Bju-v34z.js} +1 -1
- package/dist/api/onboard-submission/index.d.ts +2 -1
- package/dist/{app-CwZzGMXK.js → app-DJINOWPG.js} +26 -26
- package/dist/app.js +1 -1
- package/dist/{assets-KuiA079r.js → assets-RL6HCVpd.js} +1 -1
- package/dist/{grafana-BZzc7TR-.js → grafana-De5XGV4f.js} +1 -1
- package/dist/{index-C7DEHzTj.js → index-B8KFOPPX.js} +33 -25
- package/dist/{index-CFxKxXOi.js → index-BCyFg7AI.js} +1 -1
- package/dist/{index-D0glLFof.js → index-BKieABma.js} +1 -1
- package/dist/{index-Bz6BKvMi.js → index-BKtdCHW0.js} +1 -1
- package/dist/{index-ltUJL3fo.js → index-BPMowDa0.js} +11 -5
- package/dist/{index-BnZM1Wro.js → index-BWJe-a5q.js} +1 -1
- package/dist/{index-BVoFRJi1.js → index-Bv9zWWLS.js} +1 -1
- package/dist/{index-hp52-LCN.js → index-CSRxJCgx.js} +1 -1
- package/dist/{index-VKGN9Hxm.js → index-DBm5x5lN.js} +1 -1
- package/dist/{index-COlUvaZo.js → index-DoL1iPS4.js} +1 -1
- package/dist/{index-Df1bsmVD.js → index-UgdiYNp8.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CO65xxRe.js → index.vue_vue_type_script_setup_true_lang-BiA2JIwO.js} +1 -1
- package/dist/{onboard-submission-BiO6l0wG.js → onboard-submission-mj3NaLcK.js} +1 -1
- package/dist/package.json +2 -2
- package/dist/{payout-account-BUu5dzD8.js → payout-account-Bg55qZ-o.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +12 -12
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useQuery-BJBSQTRU.js → useQuery-CzkaEzXi.js} +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +4 -8
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +4 -8
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +8 -12
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +16 -16
- 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 +12 -12
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +64 -64
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +64 -64
- package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +22 -22
- package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +12 -12
- package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +12 -12
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +24 -24
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +56 -56
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +28 -28
- package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
- package/package.json +2 -2
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { u as
|
|
4
|
-
import { useRouter as
|
|
1
|
+
import { defineComponent as Q, ref as O, computed as _, resolveComponent as P, openBlock as u, createElementBlock as k, createElementVNode as a, toDisplayString as N, createBlock as A, withCtx as S, createCommentVNode as T, createVNode as o, unref as e, onMounted as ye, watch as Pe, Fragment as h, renderList as K, normalizeClass as ve, nextTick as Ie, createTextVNode as Y, resolveDynamicComponent as Re } from "vue";
|
|
2
|
+
import { o as M } from "./index-B8KFOPPX.js";
|
|
3
|
+
import { u as ne, p as fe } from "./index-BPMowDa0.js";
|
|
4
|
+
import { useRouter as qe } from "vue-router";
|
|
5
5
|
import { z as p, a as b } from "./validator-CTlVogBQ.js";
|
|
6
|
-
import {
|
|
7
|
-
import { a as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { s as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { useSnackbar as
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
6
|
+
import { D as Ue, P as Fe } from "./payout-account-Bg55qZ-o.js";
|
|
7
|
+
import { a as De } from "./onboard-submission-mj3NaLcK.js";
|
|
8
|
+
import { _ as Ve } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DQXv0gnh.js";
|
|
9
|
+
import { s as Te } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
+
import { _ as ke } from "./Status.vue_vue_type_script_setup_true_lang-DlIp-zin.js";
|
|
11
|
+
import { useSnackbar as ue } from "@feedmepos/ui-library";
|
|
12
|
+
import { u as G } from "./error-K1CakhA9.js";
|
|
13
|
+
const Ee = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ Q({
|
|
14
14
|
__name: "UploadButton",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {},
|
|
@@ -19,52 +19,52 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
19
19
|
restaurantId: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
v.value = (
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
window.open(
|
|
31
|
-
},
|
|
32
|
-
return (
|
|
33
|
-
const
|
|
34
|
-
return u(),
|
|
35
|
-
a("p", null,
|
|
36
|
-
v.value ? (u(),
|
|
22
|
+
setup(d, { emit: x }) {
|
|
23
|
+
const m = d, v = O(m.modelValue), c = x, C = (i) => {
|
|
24
|
+
const U = new FileReader();
|
|
25
|
+
U.onload = (g) => {
|
|
26
|
+
var I;
|
|
27
|
+
v.value = (I = g.target) == null ? void 0 : I.result, c("update:modelValue", i);
|
|
28
|
+
}, U.readAsDataURL(i);
|
|
29
|
+
}, y = (i) => {
|
|
30
|
+
window.open(i, "_blank", "noopener,noreferrer");
|
|
31
|
+
}, E = _(() => m.type === "image" ? pe : m.type === "pdf" ? be : `${pe}, ${be}`), s = (i) => m.type === "pdf" ? !0 : m.type === "image" ? !1 : i === "application/pdf";
|
|
32
|
+
return (i, U) => {
|
|
33
|
+
const g = P("FmButton"), I = P("FmDropField");
|
|
34
|
+
return u(), k("div", null, [
|
|
35
|
+
a("p", null, N(d.label), 1),
|
|
36
|
+
v.value ? (u(), A(Ve, {
|
|
37
37
|
key: 0,
|
|
38
38
|
document: v.value,
|
|
39
|
-
"restaurant-id":
|
|
39
|
+
"restaurant-id": d.restaurantId
|
|
40
40
|
}, {
|
|
41
|
-
default: S(({ src:
|
|
42
|
-
s(
|
|
41
|
+
default: S(({ src: $, type: R }) => [
|
|
42
|
+
s(R) ? (u(), A(g, {
|
|
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: () =>
|
|
49
|
-
onClick: () =>
|
|
50
|
-
}, null, 8, ["onVnodeMounted", "onClick"])) : (u(),
|
|
48
|
+
onVnodeMounted: () => y($),
|
|
49
|
+
onClick: () => y($)
|
|
50
|
+
}, null, 8, ["onVnodeMounted", "onClick"])) : (u(), k("img", {
|
|
51
51
|
key: 0,
|
|
52
|
-
src:
|
|
53
|
-
}, null, 8,
|
|
52
|
+
src: $
|
|
53
|
+
}, null, 8, Ee))
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
}, 8, ["document", "restaurant-id"])) : (u(),
|
|
56
|
+
}, 8, ["document", "restaurant-id"])) : (u(), A(I, {
|
|
57
57
|
key: 1,
|
|
58
|
-
accept:
|
|
58
|
+
accept: E.value,
|
|
59
59
|
onFileUpload: C
|
|
60
60
|
}, null, 8, ["accept"]))
|
|
61
61
|
]);
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
64
|
+
}), $e = ["src"], Ae = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "text-center text-red-700 py-4"
|
|
67
|
-
},
|
|
67
|
+
}, Le = { class: "flex justify-evenly py-3" }, Be = /* @__PURE__ */ Q({
|
|
68
68
|
__name: "SignatureBoard",
|
|
69
69
|
props: {
|
|
70
70
|
modelValue: {},
|
|
@@ -72,76 +72,76 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
72
72
|
restaurantId: {}
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:modelValue"],
|
|
75
|
-
setup(
|
|
76
|
-
const
|
|
77
|
-
function s(
|
|
78
|
-
var
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
const
|
|
82
|
-
for (;
|
|
83
|
-
|
|
84
|
-
return new File([
|
|
75
|
+
setup(d, { emit: x }) {
|
|
76
|
+
const m = d, v = x, c = O(m.modelValue), C = O(!1), y = O(), E = O(!1);
|
|
77
|
+
function s(U, g) {
|
|
78
|
+
var B;
|
|
79
|
+
const I = U.split(","), $ = ((B = I[0].match(/:(.*?);/)) == null ? void 0 : B[1]) || "", R = atob(I[1]);
|
|
80
|
+
let L = R.length;
|
|
81
|
+
const f = new Uint8Array(L);
|
|
82
|
+
for (; L--; )
|
|
83
|
+
f[L] = R.charCodeAt(L);
|
|
84
|
+
return new File([f], g, { type: $ });
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
const { isEmpty:
|
|
88
|
-
if (
|
|
86
|
+
const i = function() {
|
|
87
|
+
const { isEmpty: U, data: g } = y.value.saveSignature();
|
|
88
|
+
if (U)
|
|
89
89
|
return C.value = !0;
|
|
90
|
-
c.value =
|
|
90
|
+
c.value = g, E.value = !1, v("update:modelValue", s(g, "signature.png"));
|
|
91
91
|
};
|
|
92
|
-
return (
|
|
93
|
-
const
|
|
94
|
-
return u(),
|
|
95
|
-
a("p", null,
|
|
96
|
-
c.value ? (u(),
|
|
92
|
+
return (U, g) => {
|
|
93
|
+
const I = P("FmButton"), $ = P("FmDialog");
|
|
94
|
+
return u(), k("div", null, [
|
|
95
|
+
a("p", null, N(d.label), 1),
|
|
96
|
+
c.value ? (u(), A(Ve, {
|
|
97
97
|
key: 0,
|
|
98
98
|
document: c.value,
|
|
99
|
-
"restaurant-id":
|
|
99
|
+
"restaurant-id": d.restaurantId
|
|
100
100
|
}, {
|
|
101
|
-
default: S(({ src:
|
|
101
|
+
default: S(({ src: R }) => [
|
|
102
102
|
a("img", {
|
|
103
|
-
src:
|
|
103
|
+
src: R,
|
|
104
104
|
alt: "Signature Preview",
|
|
105
105
|
class: "w-full h-auto"
|
|
106
|
-
}, null, 8,
|
|
106
|
+
}, null, 8, $e)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
|
-
}, 8, ["document", "restaurant-id"])) :
|
|
110
|
-
c.value ?
|
|
109
|
+
}, 8, ["document", "restaurant-id"])) : T("", !0),
|
|
110
|
+
c.value ? T("", !0) : (u(), A($, {
|
|
111
111
|
key: 1,
|
|
112
|
-
modelValue:
|
|
113
|
-
"onUpdate:modelValue":
|
|
112
|
+
modelValue: E.value,
|
|
113
|
+
"onUpdate:modelValue": g[1] || (g[1] = (R) => E.value = R)
|
|
114
114
|
}, {
|
|
115
115
|
"dialog-button": S(() => [
|
|
116
|
-
|
|
116
|
+
o(I, {
|
|
117
117
|
"prepend-icon": "signature",
|
|
118
118
|
class: "w-full",
|
|
119
119
|
label: "Signature"
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
|
-
"dialog-header": S(() => [...
|
|
122
|
+
"dialog-header": S(() => [...g[2] || (g[2] = [
|
|
123
123
|
a("div", null, "Signature Board", -1)
|
|
124
124
|
])]),
|
|
125
125
|
default: S(() => [
|
|
126
|
-
|
|
126
|
+
o(e(Te), {
|
|
127
127
|
ref_key: "signaturePad",
|
|
128
|
-
ref:
|
|
128
|
+
ref: y,
|
|
129
129
|
height: "300px",
|
|
130
130
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
|
131
131
|
options: { penColor: "#000000" }
|
|
132
132
|
}, null, 512),
|
|
133
|
-
C.value ? (u(),
|
|
134
|
-
a("div",
|
|
135
|
-
|
|
133
|
+
C.value ? (u(), k("p", Ae, " Please sign your signature before saving. ")) : T("", !0),
|
|
134
|
+
a("div", Le, [
|
|
135
|
+
o(I, {
|
|
136
136
|
variant: "destructive",
|
|
137
137
|
label: "Clear",
|
|
138
138
|
"prepend-icon": "delete",
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: g[0] || (g[0] = (R) => y.value.clearSignature())
|
|
140
140
|
}),
|
|
141
|
-
|
|
141
|
+
o(I, {
|
|
142
142
|
label: "Save",
|
|
143
143
|
"prepend-icon": "save",
|
|
144
|
-
onClick:
|
|
144
|
+
onClick: i
|
|
145
145
|
})
|
|
146
146
|
])
|
|
147
147
|
]),
|
|
@@ -150,16 +150,199 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}),
|
|
153
|
+
}), Oe = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), je = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), _e = new RegExp("(\\d)(\\p{Ll})", "gu"), he = new RegExp("(\\p{L})(\\d)", "gu"), Me = /[^\p{L}\d]+/giu, oe = "$1\0$2";
|
|
154
|
+
function ze(d, x = {}) {
|
|
155
|
+
let m = d.replace(Oe, oe).replace(je, oe);
|
|
156
|
+
x.separateNumbers && (m = m.replace(_e, oe).replace(he, oe)), m = m.replace(Me, "\0");
|
|
157
|
+
let v = 0, c = m.length;
|
|
158
|
+
for (; m.charAt(v) === "\0"; )
|
|
159
|
+
v++;
|
|
160
|
+
if (v === c)
|
|
161
|
+
return [];
|
|
162
|
+
for (; m.charAt(c - 1) === "\0"; )
|
|
163
|
+
c--;
|
|
164
|
+
return m.slice(v, c).split(/\0/g);
|
|
165
|
+
}
|
|
166
|
+
function He(d) {
|
|
167
|
+
return (x) => x.toLocaleLowerCase(d);
|
|
168
|
+
}
|
|
169
|
+
function We(d) {
|
|
170
|
+
return (x) => x.toLocaleUpperCase(d);
|
|
171
|
+
}
|
|
172
|
+
function ce(d, x) {
|
|
173
|
+
const m = He(x == null ? void 0 : x.locale), v = We(x == null ? void 0 : x.locale);
|
|
174
|
+
return ze(d).map((c, C) => C === 0 ? v(c[0]) + m(c.slice(1)) : m(c)).join(" ");
|
|
175
|
+
}
|
|
176
|
+
const Ye = {
|
|
177
|
+
key: 0,
|
|
178
|
+
class: "text-sm text-gray-500"
|
|
179
|
+
}, Ge = { class: "flex min-w-max items-start pt-1" }, Je = {
|
|
180
|
+
key: 0,
|
|
181
|
+
class: "absolute left-0 top-[7px] h-[2px] w-1/2 bg-gray-200"
|
|
182
|
+
}, Ke = {
|
|
183
|
+
key: 1,
|
|
184
|
+
class: "absolute right-0 top-[7px] h-[2px] w-1/2 bg-gray-200"
|
|
185
|
+
}, Qe = { class: "mt-1 text-sm font-medium leading-snug text-gray-900" }, Xe = {
|
|
186
|
+
key: 2,
|
|
187
|
+
class: "mt-1 rounded bg-gray-100 px-2 py-[2px] text-xs text-gray-600"
|
|
188
|
+
}, Ze = { class: "mt-1 text-xs text-gray-500" }, el = { class: "text-xs text-gray-500" }, ll = {
|
|
189
|
+
key: 4,
|
|
190
|
+
class: "mt-1 text-xs text-gray-500"
|
|
191
|
+
}, tl = {
|
|
192
|
+
key: 5,
|
|
193
|
+
class: "mt-1 text-xs text-gray-700"
|
|
194
|
+
}, Ce = /* @__PURE__ */ Q({
|
|
195
|
+
__name: "Timeline",
|
|
196
|
+
props: {
|
|
197
|
+
entries: {
|
|
198
|
+
type: Array,
|
|
199
|
+
default: () => []
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
setup(d) {
|
|
203
|
+
const x = d, m = {
|
|
204
|
+
submission: { label: "Submitted", icon: "upload_file", color: "bg-blue-400" },
|
|
205
|
+
resubmission: {
|
|
206
|
+
label: "Resubmitted",
|
|
207
|
+
icon: "upload_file",
|
|
208
|
+
color: "bg-blue-400"
|
|
209
|
+
},
|
|
210
|
+
"send-for-review": {
|
|
211
|
+
label: "Sent for Review",
|
|
212
|
+
icon: "send",
|
|
213
|
+
color: "bg-indigo-400"
|
|
214
|
+
},
|
|
215
|
+
"submission-review-approved": {
|
|
216
|
+
label: "Review Approved",
|
|
217
|
+
icon: "check_circle",
|
|
218
|
+
color: "bg-green-400"
|
|
219
|
+
},
|
|
220
|
+
"submission-review-rejected": {
|
|
221
|
+
label: "Review Rejected",
|
|
222
|
+
icon: "cancel",
|
|
223
|
+
color: "bg-red-400"
|
|
224
|
+
},
|
|
225
|
+
"submission-review-ready": {
|
|
226
|
+
label: "Marked as Ready",
|
|
227
|
+
icon: "task_alt",
|
|
228
|
+
color: "bg-green-400"
|
|
229
|
+
},
|
|
230
|
+
"additional-document": {
|
|
231
|
+
label: "Additional Document Added",
|
|
232
|
+
icon: "attach_file",
|
|
233
|
+
color: "bg-gray-400"
|
|
234
|
+
},
|
|
235
|
+
reminder: {
|
|
236
|
+
label: "Reminder Sent",
|
|
237
|
+
icon: "notifications",
|
|
238
|
+
color: "bg-yellow-400"
|
|
239
|
+
},
|
|
240
|
+
"pending-merchant": {
|
|
241
|
+
label: "Pending Merchant",
|
|
242
|
+
icon: "storefront",
|
|
243
|
+
color: "bg-yellow-400"
|
|
244
|
+
},
|
|
245
|
+
"pending-fasspay": {
|
|
246
|
+
label: "Pending FassPay",
|
|
247
|
+
icon: "hourglass_top",
|
|
248
|
+
color: "bg-orange-400"
|
|
249
|
+
},
|
|
250
|
+
"complete-fasspay": {
|
|
251
|
+
label: "FassPay Completed",
|
|
252
|
+
icon: "task_alt",
|
|
253
|
+
color: "bg-green-400"
|
|
254
|
+
},
|
|
255
|
+
"complete-credit-card": {
|
|
256
|
+
label: "Credit Card Completed",
|
|
257
|
+
icon: "credit_card",
|
|
258
|
+
color: "bg-green-400"
|
|
259
|
+
},
|
|
260
|
+
"provider-update": {
|
|
261
|
+
label: "Provider Update",
|
|
262
|
+
icon: "update",
|
|
263
|
+
color: "bg-orange-400"
|
|
264
|
+
}
|
|
265
|
+
}, v = {
|
|
266
|
+
approved: "bg-green-400",
|
|
267
|
+
ready: "bg-green-400",
|
|
268
|
+
rejected: "bg-red-400",
|
|
269
|
+
submitted: "bg-blue-400",
|
|
270
|
+
pending: "bg-yellow-400"
|
|
271
|
+
};
|
|
272
|
+
function c(s) {
|
|
273
|
+
const i = m[s];
|
|
274
|
+
if (i) return i;
|
|
275
|
+
if (s.startsWith("status-update-")) {
|
|
276
|
+
const U = s.replace("status-update-", "");
|
|
277
|
+
return {
|
|
278
|
+
label: `Status Updated to ${ce(U)}`,
|
|
279
|
+
icon: "sync",
|
|
280
|
+
color: v[U] ?? "bg-gray-400"
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
return {
|
|
284
|
+
label: ce(s.replace(/-/g, " ")),
|
|
285
|
+
icon: "radio_button_checked",
|
|
286
|
+
color: "bg-gray-400"
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
const C = _(
|
|
290
|
+
() => (x.entries ?? []).map((s) => ({
|
|
291
|
+
...s,
|
|
292
|
+
...c(s.action),
|
|
293
|
+
at: Ue(s.timestamp)
|
|
294
|
+
})).sort((s, i) => s.at.valueOf() - i.at.valueOf())
|
|
295
|
+
), y = O(null), E = async () => {
|
|
296
|
+
await Ie(), y.value && (y.value.scrollLeft = y.value.scrollWidth);
|
|
297
|
+
};
|
|
298
|
+
return ye(E), Pe(() => C.value.length, E), (s, i) => {
|
|
299
|
+
const U = P("FmIcon");
|
|
300
|
+
return C.value.length ? (u(), k("div", {
|
|
301
|
+
key: 1,
|
|
302
|
+
ref_key: "rail",
|
|
303
|
+
ref: y,
|
|
304
|
+
class: "overflow-x-auto mt-6 pb-6"
|
|
305
|
+
}, [
|
|
306
|
+
a("ol", Ge, [
|
|
307
|
+
(u(!0), k(h, null, K(C.value, (g, I) => (u(), k("li", {
|
|
308
|
+
key: `${g.action}-${g.timestamp}-${I}`,
|
|
309
|
+
class: "relative flex w-[160px] shrink-0 flex-col items-center px-8 text-center"
|
|
310
|
+
}, [
|
|
311
|
+
I > 0 ? (u(), k("span", Je)) : T("", !0),
|
|
312
|
+
I < C.value.length - 1 ? (u(), k("span", Ke)) : T("", !0),
|
|
313
|
+
a("span", {
|
|
314
|
+
class: ve([
|
|
315
|
+
"relative z-10 h-4 w-4 rounded-full ring-4 ring-white",
|
|
316
|
+
g.color
|
|
317
|
+
])
|
|
318
|
+
}, null, 2),
|
|
319
|
+
o(U, {
|
|
320
|
+
name: g.icon,
|
|
321
|
+
size: "sm",
|
|
322
|
+
class: "mt-3 text-gray-500"
|
|
323
|
+
}, null, 8, ["name"]),
|
|
324
|
+
a("span", Qe, N(g.label), 1),
|
|
325
|
+
I === C.value.length - 1 ? (u(), k("span", Xe, " Latest ")) : T("", !0),
|
|
326
|
+
g.at.isValid() ? (u(), k(h, { key: 3 }, [
|
|
327
|
+
a("span", Ze, N(g.at.format("DD MMM YYYY")), 1),
|
|
328
|
+
a("span", el, N(g.at.format("HH:mm")), 1)
|
|
329
|
+
], 64)) : (u(), k("span", ll, N(g.timestamp), 1)),
|
|
330
|
+
g.description ? (u(), k("span", tl, N(g.description), 1)) : T("", !0)
|
|
331
|
+
]))), 128))
|
|
332
|
+
])
|
|
333
|
+
], 512)) : (u(), k("p", Ye, " No activity recorded yet. "));
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
}), al = { class: "space-y-2" }, sl = { class: "text-gray-900" }, nl = { class: "text-gray-900" }, ol = { class: "text-gray-900" }, rl = { class: "text-gray-900" }, il = { class: "text-gray-900" }, ul = { class: "text-gray-900" }, dl = { class: "flex items-center gap-2 border-b pb-1 mt-6 mb-6" }, ml = { class: "flex items-center justify-between gap-6" }, pl = { class: "flex gap-6" }, bl = { class: "flex gap-6" }, cl = { class: "grid grid-cols-4 gap-6" }, gl = ["src"], yl = {
|
|
154
337
|
key: 1,
|
|
155
338
|
class: "mt-2 truncate text-gray-700"
|
|
156
|
-
},
|
|
339
|
+
}, vl = { key: 0 }, fl = {
|
|
157
340
|
key: 0,
|
|
158
341
|
class: "w-full flex justify-end mt-6"
|
|
159
|
-
},
|
|
342
|
+
}, Vl = { class: "mt-6 grid grid-cols-4 gap-24" }, kl = { class: "grid grid-cols-4 gap-6" }, Cl = { class: "w-full flex justify-end mt-6" }, xl = { class: "mt-6 grid grid-cols-4 gap-24" }, Nl = { class: "col-span-2" }, wl = { class: "col-span-2" }, Sl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, Il = { class: "col-span-2" }, Rl = { class: "col-span-2" }, ql = { class: "col-span-2" }, Ul = { class: "col-span-2" }, Fl = { class: "col-start-1 col-span-2" }, Dl = { class: "col-span-2" }, Tl = { class: "col-span-2" }, El = { class: "col-span-2" }, $l = { class: "mt-6 grid grid-cols-4 gap-6" }, Al = { class: "mt-6 grid grid-cols-4 gap-6" }, Ll = { class: "mt-6 grid grid-cols-4 gap-6" }, Bl = { class: "mt-6 grid grid-cols-4 gap-6" }, Ol = { class: "mt-6 grid grid-cols-4 gap-6" }, jl = { class: "mt-6 grid grid-cols-4 gap-6" }, _l = {
|
|
160
343
|
key: 2,
|
|
161
344
|
class: "text-sm text-gray-500"
|
|
162
|
-
},
|
|
345
|
+
}, hl = { class: "mt-6 grid grid-cols-2 gap-24" }, ge = 30, Ml = /* @__PURE__ */ Q({
|
|
163
346
|
__name: "SoftspaceSubmission",
|
|
164
347
|
props: {
|
|
165
348
|
submission: {
|
|
@@ -168,13 +351,13 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
168
351
|
}
|
|
169
352
|
},
|
|
170
353
|
emits: ["update:submission"],
|
|
171
|
-
setup(
|
|
172
|
-
var
|
|
173
|
-
const
|
|
174
|
-
parseInt(((
|
|
175
|
-
),
|
|
176
|
-
|
|
177
|
-
Object.entries(
|
|
354
|
+
setup(d, { emit: x }) {
|
|
355
|
+
var de;
|
|
356
|
+
const m = d, v = x, c = ue(), C = O(!1), { isLoading: y, startAsyncCall: E } = ne(), { fields: s, documents: i, restaurantId: U, profile: g, status: I, statusReason: $ } = m.submission, R = O(""), L = O(
|
|
357
|
+
parseInt(((de = m.submission.fields) == null ? void 0 : de.numberOfDevices) ?? 1)
|
|
358
|
+
), f = O(
|
|
359
|
+
m.submission.rates ? Object.fromEntries(
|
|
360
|
+
Object.entries(m.submission.rates).map(([V, l]) => [V, `${l}`])
|
|
178
361
|
) : {
|
|
179
362
|
duitNow: "0.8",
|
|
180
363
|
mydebitCard: "0.5",
|
|
@@ -184,191 +367,261 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
184
367
|
jcbStandard: "2.2",
|
|
185
368
|
jcbPlatinum: "2.2"
|
|
186
369
|
}
|
|
187
|
-
),
|
|
188
|
-
() => Object.values(
|
|
189
|
-
),
|
|
190
|
-
() => Object.keys(
|
|
191
|
-
(
|
|
370
|
+
), B = _(
|
|
371
|
+
() => Object.values(f.value).every((V) => parseFloat(V) > 0)
|
|
372
|
+
), X = _(
|
|
373
|
+
() => Object.keys(m.submission.documents).filter((V) => /^authorizedPersonID\d+$/.test(V)).sort(
|
|
374
|
+
(V, l) => Number(V.replace("authorizedPersonID", "")) - Number(l.replace("authorizedPersonID", ""))
|
|
192
375
|
)
|
|
193
|
-
), { isLoading:
|
|
194
|
-
() => Object.keys(
|
|
195
|
-
),
|
|
196
|
-
() =>
|
|
197
|
-
),
|
|
198
|
-
if (!(
|
|
199
|
-
if (
|
|
376
|
+
), { isLoading: Z, startAsyncCall: ee } = ne(), z = O([]), ae = (V) => Number(V.replace("additionalDocument", "")), w = _(
|
|
377
|
+
() => Object.keys(m.submission.documents).filter((V) => /^additionalDocument\d+$/.test(V)).sort((V, l) => ae(V) - ae(l))
|
|
378
|
+
), n = _(
|
|
379
|
+
() => w.value.length + z.value.length
|
|
380
|
+
), F = (V) => {
|
|
381
|
+
if (!(n.value >= ge)) {
|
|
382
|
+
if (V.type.startsWith("image/")) {
|
|
200
383
|
const l = new FileReader();
|
|
201
|
-
l.onload = (
|
|
202
|
-
var
|
|
203
|
-
return
|
|
204
|
-
file:
|
|
205
|
-
preview: String(((
|
|
384
|
+
l.onload = (j) => {
|
|
385
|
+
var H;
|
|
386
|
+
return z.value.push({
|
|
387
|
+
file: V,
|
|
388
|
+
preview: String(((H = j.target) == null ? void 0 : H.result) ?? "")
|
|
206
389
|
});
|
|
207
|
-
}, l.readAsDataURL(
|
|
390
|
+
}, l.readAsDataURL(V);
|
|
208
391
|
return;
|
|
209
392
|
}
|
|
210
|
-
|
|
393
|
+
z.value.push({ file: V, preview: "" });
|
|
211
394
|
}
|
|
212
|
-
},
|
|
395
|
+
}, le = () => ee(async () => {
|
|
213
396
|
try {
|
|
214
|
-
let
|
|
215
|
-
(
|
|
397
|
+
let V = w.value.reduce(
|
|
398
|
+
(j, H) => Math.max(j, ae(H)),
|
|
216
399
|
0
|
|
217
400
|
);
|
|
218
401
|
const l = {};
|
|
219
|
-
for (const { file:
|
|
220
|
-
const
|
|
221
|
-
l[
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
402
|
+
for (const { file: j } of z.value) {
|
|
403
|
+
const H = `additionalDocument${++V}`;
|
|
404
|
+
l[H] = await M.uploadDocument(
|
|
405
|
+
U,
|
|
406
|
+
H,
|
|
407
|
+
j
|
|
225
408
|
);
|
|
226
409
|
}
|
|
227
410
|
v(
|
|
228
411
|
"update:submission",
|
|
229
|
-
await
|
|
230
|
-
|
|
412
|
+
await M.addAdditionalDocuments(
|
|
413
|
+
m.submission._id,
|
|
231
414
|
l
|
|
232
415
|
)
|
|
233
|
-
),
|
|
234
|
-
} catch (
|
|
416
|
+
), z.value = [], c.open({ type: "success", title: "Documents saved" });
|
|
417
|
+
} catch (V) {
|
|
235
418
|
c.open({
|
|
236
419
|
type: "error",
|
|
237
420
|
title: "Error occurs when sending additional documents",
|
|
238
|
-
message:
|
|
421
|
+
message: G(V)
|
|
239
422
|
});
|
|
240
423
|
}
|
|
241
|
-
}),
|
|
424
|
+
}), re = () => E(async () => {
|
|
242
425
|
try {
|
|
243
|
-
const
|
|
244
|
-
|
|
426
|
+
const V = await M.reviewById(
|
|
427
|
+
m.submission._id,
|
|
245
428
|
{
|
|
246
|
-
numberOfDevices:
|
|
429
|
+
numberOfDevices: L.value.toString(),
|
|
247
430
|
rates: {
|
|
248
|
-
duitNow: parseFloat(
|
|
249
|
-
mydebitCard: parseFloat(
|
|
250
|
-
localDebit: parseFloat(
|
|
251
|
-
localCredit: parseFloat(
|
|
252
|
-
foreignCard: parseFloat(
|
|
253
|
-
jcbStandard: parseFloat(
|
|
254
|
-
jcbPlatinum: parseFloat(
|
|
431
|
+
duitNow: parseFloat(f.value.duitNow),
|
|
432
|
+
mydebitCard: parseFloat(f.value.mydebitCard),
|
|
433
|
+
localDebit: parseFloat(f.value.localDebit),
|
|
434
|
+
localCredit: parseFloat(f.value.localCredit),
|
|
435
|
+
foreignCard: parseFloat(f.value.foreignCard),
|
|
436
|
+
jcbStandard: parseFloat(f.value.jcbStandard),
|
|
437
|
+
jcbPlatinum: parseFloat(f.value.jcbPlatinum)
|
|
255
438
|
},
|
|
256
439
|
status: "approved"
|
|
257
440
|
}
|
|
258
441
|
);
|
|
259
|
-
v("update:submission",
|
|
442
|
+
v("update:submission", V), C.value = !1, c.open({
|
|
260
443
|
type: "success",
|
|
261
444
|
title: "Submission updated successfully"
|
|
262
445
|
});
|
|
263
|
-
} catch (
|
|
446
|
+
} catch (V) {
|
|
264
447
|
c.open({
|
|
265
448
|
type: "error",
|
|
266
449
|
title: "Error occurs when updating submission",
|
|
267
|
-
message:
|
|
450
|
+
message: G(V)
|
|
268
451
|
});
|
|
269
452
|
}
|
|
270
|
-
}),
|
|
453
|
+
}), { isLoading: te, startAsyncCall: ie } = ne(), se = _(
|
|
454
|
+
() => m.submission.timelineStatus === "complete"
|
|
455
|
+
), r = (V) => ie(async () => {
|
|
271
456
|
try {
|
|
272
|
-
|
|
273
|
-
|
|
457
|
+
v(
|
|
458
|
+
"update:submission",
|
|
459
|
+
await M.trackStatus(m.submission._id, V)
|
|
460
|
+
), c.open({
|
|
461
|
+
type: "success",
|
|
462
|
+
title: "Status tracking updated successfully"
|
|
463
|
+
});
|
|
464
|
+
} catch (l) {
|
|
465
|
+
c.open({
|
|
466
|
+
type: "error",
|
|
467
|
+
title: "Error occurs when updating status tracking",
|
|
468
|
+
message: G(l)
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
}), J = () => E(async () => {
|
|
472
|
+
try {
|
|
473
|
+
const V = await M.reviewById(
|
|
474
|
+
m.submission._id,
|
|
274
475
|
{
|
|
275
476
|
status: "rejected",
|
|
276
|
-
statusReason:
|
|
477
|
+
statusReason: R.value
|
|
277
478
|
}
|
|
278
479
|
);
|
|
279
|
-
v("update:submission",
|
|
480
|
+
v("update:submission", V), C.value = !1, c.open({
|
|
280
481
|
type: "success",
|
|
281
482
|
title: "Submission updated successfully"
|
|
282
483
|
});
|
|
283
|
-
} catch (
|
|
484
|
+
} catch (V) {
|
|
284
485
|
c.open({
|
|
285
486
|
type: "error",
|
|
286
487
|
title: "Error occurs when updating submission",
|
|
287
|
-
message:
|
|
488
|
+
message: G(V)
|
|
288
489
|
});
|
|
289
490
|
}
|
|
290
491
|
});
|
|
291
|
-
return (
|
|
292
|
-
const
|
|
293
|
-
return u(),
|
|
294
|
-
a("div",
|
|
492
|
+
return (V, l) => {
|
|
493
|
+
const j = P("FmButton"), H = P("FmDropField"), q = P("FmTextField"), xe = P("FmTextarea"), Ne = P("FmDialog"), we = P("FmPhoneNumber"), me = P("FmSelect"), Se = P("FmForm");
|
|
494
|
+
return u(), k(h, null, [
|
|
495
|
+
a("div", al, [
|
|
295
496
|
a("div", null, [
|
|
296
|
-
l[
|
|
297
|
-
a("span",
|
|
497
|
+
l[42] || (l[42] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
498
|
+
a("span", sl, N(e(U)), 1)
|
|
298
499
|
]),
|
|
299
500
|
a("div", null, [
|
|
300
|
-
l[
|
|
301
|
-
a("span",
|
|
501
|
+
l[43] || (l[43] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
502
|
+
a("span", nl, N(e(g).name) + " ( " + N(e(g).legalName) + " )", 1)
|
|
302
503
|
]),
|
|
303
504
|
a("div", null, [
|
|
304
|
-
l[
|
|
305
|
-
a("span",
|
|
505
|
+
l[44] || (l[44] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
506
|
+
a("span", ol, N(e(g).email), 1)
|
|
306
507
|
]),
|
|
307
508
|
a("div", null, [
|
|
308
|
-
l[
|
|
309
|
-
a("span",
|
|
509
|
+
l[45] || (l[45] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
510
|
+
a("span", rl, N(e(g).phoneNo), 1)
|
|
310
511
|
]),
|
|
311
512
|
a("div", null, [
|
|
312
|
-
l[
|
|
313
|
-
a("span",
|
|
314
|
-
|
|
513
|
+
l[46] || (l[46] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
514
|
+
a("span", il, [
|
|
515
|
+
o(ke, { data: e(I) }, null, 8, ["data"])
|
|
315
516
|
])
|
|
316
517
|
]),
|
|
317
518
|
a("div", null, [
|
|
318
|
-
l[
|
|
319
|
-
a("span",
|
|
519
|
+
l[47] || (l[47] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
520
|
+
a("span", ul, N(e($)), 1)
|
|
521
|
+
])
|
|
522
|
+
]),
|
|
523
|
+
a("div", dl, [
|
|
524
|
+
l[48] || (l[48] = a("h3", { class: "font-semibold text-lg" }, "Status Tracking", -1)),
|
|
525
|
+
a("span", {
|
|
526
|
+
class: ve([
|
|
527
|
+
"rounded px-2 py-[2px] text-xs",
|
|
528
|
+
se.value ? "bg-green-100 text-green-700" : "bg-yellow-100 text-yellow-700"
|
|
529
|
+
])
|
|
530
|
+
}, N(se.value ? "COMPLETE" : "PENDING"), 3)
|
|
531
|
+
]),
|
|
532
|
+
a("div", ml, [
|
|
533
|
+
a("div", pl, [
|
|
534
|
+
o(j, {
|
|
535
|
+
type: "button",
|
|
536
|
+
variant: "secondary",
|
|
537
|
+
"prepend-icon": "storefront",
|
|
538
|
+
label: "Pending Merchant",
|
|
539
|
+
loading: e(te),
|
|
540
|
+
onClick: l[0] || (l[0] = (t) => r("pending-merchant"))
|
|
541
|
+
}, null, 8, ["loading"]),
|
|
542
|
+
o(j, {
|
|
543
|
+
type: "button",
|
|
544
|
+
variant: "secondary",
|
|
545
|
+
"prepend-icon": "hourglass_top",
|
|
546
|
+
label: "Pending FassPay",
|
|
547
|
+
loading: e(te),
|
|
548
|
+
onClick: l[1] || (l[1] = (t) => r("pending-fasspay"))
|
|
549
|
+
}, null, 8, ["loading"])
|
|
550
|
+
]),
|
|
551
|
+
a("div", bl, [
|
|
552
|
+
o(j, {
|
|
553
|
+
type: "button",
|
|
554
|
+
variant: "tertiary",
|
|
555
|
+
"prepend-icon": "task_alt",
|
|
556
|
+
label: "Complete FassPay",
|
|
557
|
+
loading: e(te),
|
|
558
|
+
onClick: l[2] || (l[2] = (t) => r("complete-fasspay"))
|
|
559
|
+
}, null, 8, ["loading"]),
|
|
560
|
+
o(j, {
|
|
561
|
+
type: "button",
|
|
562
|
+
variant: "primary",
|
|
563
|
+
"prepend-icon": "credit_card",
|
|
564
|
+
label: "Complete Credit Card",
|
|
565
|
+
loading: e(te),
|
|
566
|
+
disabled: se.value,
|
|
567
|
+
onClick: l[3] || (l[3] = (t) => r("complete-credit-card"))
|
|
568
|
+
}, null, 8, ["loading", "disabled"])
|
|
320
569
|
])
|
|
321
570
|
]),
|
|
322
|
-
l[
|
|
323
|
-
|
|
324
|
-
|
|
571
|
+
l[66] || (l[66] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Timeline", -1)),
|
|
572
|
+
o(Ce, {
|
|
573
|
+
entries: d.submission.timeline
|
|
574
|
+
}, null, 8, ["entries"]),
|
|
575
|
+
l[67] || (l[67] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " (SharePoint) Additional Requested Documents ", -1)),
|
|
576
|
+
a("div", cl, [
|
|
577
|
+
(u(!0), k(h, null, K(w.value, (t) => (u(), A(D, {
|
|
325
578
|
key: t,
|
|
326
579
|
label: t.replace("additionalDocument", "Document "),
|
|
327
|
-
type: /\.pdf$/i.test(
|
|
328
|
-
modelValue:
|
|
329
|
-
"onUpdate:modelValue": (
|
|
330
|
-
"restaurant-id": e(
|
|
580
|
+
type: /\.pdf$/i.test(m.submission.documents[t]) ? "pdf" : "image",
|
|
581
|
+
modelValue: m.submission.documents[t],
|
|
582
|
+
"onUpdate:modelValue": (W) => m.submission.documents[t] = W,
|
|
583
|
+
"restaurant-id": e(U)
|
|
331
584
|
}, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
332
|
-
(u(!0),
|
|
333
|
-
key: `new-${
|
|
585
|
+
(u(!0), k(h, null, K(z.value, (t, W) => (u(), k("div", {
|
|
586
|
+
key: `new-${W}`
|
|
334
587
|
}, [
|
|
335
|
-
a("p", null, "Document " +
|
|
336
|
-
t.file.type.startsWith("image/") ? (u(),
|
|
588
|
+
a("p", null, "Document " + N(w.value.length + W + 1), 1),
|
|
589
|
+
t.file.type.startsWith("image/") ? (u(), k("img", {
|
|
337
590
|
key: 0,
|
|
338
591
|
src: t.preview,
|
|
339
592
|
class: "mt-2 rounded border"
|
|
340
|
-
}, null, 8,
|
|
341
|
-
|
|
593
|
+
}, null, 8, gl)) : (u(), k("p", yl, N(t.file.name), 1)),
|
|
594
|
+
o(j, {
|
|
342
595
|
class: "mt-4",
|
|
343
596
|
"prepend-icon": "delete",
|
|
344
597
|
label: "Remove",
|
|
345
598
|
variant: "destructive",
|
|
346
|
-
onClick: (
|
|
599
|
+
onClick: (vt) => z.value.splice(W, 1)
|
|
347
600
|
}, null, 8, ["onClick"])
|
|
348
601
|
]))), 128)),
|
|
349
|
-
|
|
350
|
-
a("p", null, "Document " +
|
|
351
|
-
|
|
602
|
+
n.value < ge ? (u(), k("div", vl, [
|
|
603
|
+
a("p", null, "Document " + N(n.value + 1), 1),
|
|
604
|
+
o(H, {
|
|
352
605
|
accept: ".png, .jpg, .jpeg, .pdf",
|
|
353
|
-
onFileUpload:
|
|
606
|
+
onFileUpload: F
|
|
354
607
|
})
|
|
355
|
-
])) :
|
|
608
|
+
])) : T("", !0)
|
|
356
609
|
]),
|
|
357
|
-
|
|
358
|
-
|
|
610
|
+
z.value.length ? (u(), k("div", fl, [
|
|
611
|
+
o(j, {
|
|
359
612
|
type: "button",
|
|
360
613
|
variant: "primary",
|
|
361
614
|
"prepend-icon": "cloud_upload",
|
|
362
615
|
label: "Save documents",
|
|
363
|
-
loading: e(
|
|
364
|
-
onClick:
|
|
616
|
+
loading: e(Z),
|
|
617
|
+
onClick: le
|
|
365
618
|
}, null, 8, ["loading"])
|
|
366
|
-
])) :
|
|
367
|
-
l[
|
|
368
|
-
a("div",
|
|
369
|
-
|
|
370
|
-
modelValue:
|
|
371
|
-
"onUpdate:modelValue": l[
|
|
619
|
+
])) : T("", !0),
|
|
620
|
+
l[68] || (l[68] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
621
|
+
a("div", Vl, [
|
|
622
|
+
o(q, {
|
|
623
|
+
modelValue: f.value.duitNow,
|
|
624
|
+
"onUpdate:modelValue": l[4] || (l[4] = (t) => f.value.duitNow = t),
|
|
372
625
|
label: "DuitNow QR",
|
|
373
626
|
"label-mark": "required",
|
|
374
627
|
type: "number",
|
|
@@ -378,14 +631,14 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
378
631
|
e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
379
632
|
)
|
|
380
633
|
}, {
|
|
381
|
-
append: S(() => [...l[
|
|
382
|
-
|
|
634
|
+
append: S(() => [...l[49] || (l[49] = [
|
|
635
|
+
Y("%", -1)
|
|
383
636
|
])]),
|
|
384
637
|
_: 1
|
|
385
638
|
}, 8, ["modelValue", "rules"]),
|
|
386
|
-
|
|
387
|
-
modelValue:
|
|
388
|
-
"onUpdate:modelValue": l[
|
|
639
|
+
o(q, {
|
|
640
|
+
modelValue: f.value.mydebitCard,
|
|
641
|
+
"onUpdate:modelValue": l[5] || (l[5] = (t) => f.value.mydebitCard = t),
|
|
389
642
|
label: "myDebit Card",
|
|
390
643
|
"label-mark": "required",
|
|
391
644
|
type: "number",
|
|
@@ -395,14 +648,14 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
395
648
|
e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
396
649
|
)
|
|
397
650
|
}, {
|
|
398
|
-
append: S(() => [...l[
|
|
399
|
-
|
|
651
|
+
append: S(() => [...l[50] || (l[50] = [
|
|
652
|
+
Y("%", -1)
|
|
400
653
|
])]),
|
|
401
654
|
_: 1
|
|
402
655
|
}, 8, ["modelValue", "rules"]),
|
|
403
|
-
|
|
404
|
-
modelValue:
|
|
405
|
-
"onUpdate:modelValue": l[
|
|
656
|
+
o(q, {
|
|
657
|
+
modelValue: f.value.localDebit,
|
|
658
|
+
"onUpdate:modelValue": l[6] || (l[6] = (t) => f.value.localDebit = t),
|
|
406
659
|
label: "Local Debit Card",
|
|
407
660
|
"label-mark": "required",
|
|
408
661
|
type: "number",
|
|
@@ -412,14 +665,14 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
412
665
|
e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
413
666
|
)
|
|
414
667
|
}, {
|
|
415
|
-
append: S(() => [...l[
|
|
416
|
-
|
|
668
|
+
append: S(() => [...l[51] || (l[51] = [
|
|
669
|
+
Y("%", -1)
|
|
417
670
|
])]),
|
|
418
671
|
_: 1
|
|
419
672
|
}, 8, ["modelValue", "rules"]),
|
|
420
|
-
|
|
421
|
-
modelValue:
|
|
422
|
-
"onUpdate:modelValue": l[
|
|
673
|
+
o(q, {
|
|
674
|
+
modelValue: f.value.localCredit,
|
|
675
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => f.value.localCredit = t),
|
|
423
676
|
label: "Local Credit Card",
|
|
424
677
|
"label-mark": "required",
|
|
425
678
|
type: "number",
|
|
@@ -429,14 +682,14 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
429
682
|
e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
430
683
|
)
|
|
431
684
|
}, {
|
|
432
|
-
append: S(() => [...l[
|
|
433
|
-
|
|
685
|
+
append: S(() => [...l[52] || (l[52] = [
|
|
686
|
+
Y("%", -1)
|
|
434
687
|
])]),
|
|
435
688
|
_: 1
|
|
436
689
|
}, 8, ["modelValue", "rules"]),
|
|
437
|
-
|
|
438
|
-
modelValue:
|
|
439
|
-
"onUpdate:modelValue": l[
|
|
690
|
+
o(q, {
|
|
691
|
+
modelValue: f.value.foreignCard,
|
|
692
|
+
"onUpdate:modelValue": l[8] || (l[8] = (t) => f.value.foreignCard = t),
|
|
440
693
|
label: "Foreign Card",
|
|
441
694
|
"label-mark": "required",
|
|
442
695
|
type: "number",
|
|
@@ -446,14 +699,14 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
446
699
|
e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
447
700
|
)
|
|
448
701
|
}, {
|
|
449
|
-
append: S(() => [...l[
|
|
450
|
-
|
|
702
|
+
append: S(() => [...l[53] || (l[53] = [
|
|
703
|
+
Y("%", -1)
|
|
451
704
|
])]),
|
|
452
705
|
_: 1
|
|
453
706
|
}, 8, ["modelValue", "rules"]),
|
|
454
|
-
|
|
455
|
-
modelValue:
|
|
456
|
-
"onUpdate:modelValue": l[
|
|
707
|
+
o(q, {
|
|
708
|
+
modelValue: f.value.jcbStandard,
|
|
709
|
+
"onUpdate:modelValue": l[9] || (l[9] = (t) => f.value.jcbStandard = t),
|
|
457
710
|
label: "JCB Standard",
|
|
458
711
|
"label-mark": "required",
|
|
459
712
|
type: "number",
|
|
@@ -463,14 +716,14 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
463
716
|
e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
464
717
|
)
|
|
465
718
|
}, {
|
|
466
|
-
append: S(() => [...l[
|
|
467
|
-
|
|
719
|
+
append: S(() => [...l[54] || (l[54] = [
|
|
720
|
+
Y("%", -1)
|
|
468
721
|
])]),
|
|
469
722
|
_: 1
|
|
470
723
|
}, 8, ["modelValue", "rules"]),
|
|
471
|
-
|
|
472
|
-
modelValue:
|
|
473
|
-
"onUpdate:modelValue": l[
|
|
724
|
+
o(q, {
|
|
725
|
+
modelValue: f.value.jcbPlatinum,
|
|
726
|
+
"onUpdate:modelValue": l[10] || (l[10] = (t) => f.value.jcbPlatinum = t),
|
|
474
727
|
label: "JCB Platinum",
|
|
475
728
|
"label-mark": "required",
|
|
476
729
|
type: "number",
|
|
@@ -480,97 +733,97 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
480
733
|
e(b).string().min(1, "Rate is required").transform((t) => parseFloat(t)).refine((t) => !isNaN(t), { message: "Rate must be a number" })
|
|
481
734
|
)
|
|
482
735
|
}, {
|
|
483
|
-
append: S(() => [...l[
|
|
484
|
-
|
|
736
|
+
append: S(() => [...l[55] || (l[55] = [
|
|
737
|
+
Y("%", -1)
|
|
485
738
|
])]),
|
|
486
739
|
_: 1
|
|
487
740
|
}, 8, ["modelValue", "rules"])
|
|
488
741
|
]),
|
|
489
|
-
l[
|
|
490
|
-
a("div",
|
|
491
|
-
|
|
492
|
-
modelValue:
|
|
493
|
-
"onUpdate:modelValue": l[
|
|
742
|
+
l[69] || (l[69] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Extra Settings", -1)),
|
|
743
|
+
a("div", kl, [
|
|
744
|
+
o(q, {
|
|
745
|
+
modelValue: L.value,
|
|
746
|
+
"onUpdate:modelValue": l[11] || (l[11] = (t) => L.value = t),
|
|
494
747
|
label: "Number of Devices",
|
|
495
748
|
"label-mark": "required",
|
|
496
749
|
type: "number",
|
|
497
750
|
inputmode: "numeric"
|
|
498
751
|
}, null, 8, ["modelValue"])
|
|
499
752
|
]),
|
|
500
|
-
a("div",
|
|
501
|
-
|
|
753
|
+
a("div", Cl, [
|
|
754
|
+
o(Ne, {
|
|
502
755
|
modelValue: C.value,
|
|
503
|
-
"onUpdate:modelValue": l[
|
|
756
|
+
"onUpdate:modelValue": l[13] || (l[13] = (t) => C.value = t)
|
|
504
757
|
}, {
|
|
505
758
|
"dialog-button": S(() => [
|
|
506
|
-
|
|
759
|
+
o(j, {
|
|
507
760
|
class: "mr-6",
|
|
508
761
|
type: "button",
|
|
509
762
|
variant: "destructive",
|
|
510
763
|
"prepend-icon": "block",
|
|
511
|
-
loading: e(
|
|
764
|
+
loading: e(y),
|
|
512
765
|
label: "Reject Submission"
|
|
513
766
|
}, null, 8, ["loading"])
|
|
514
767
|
]),
|
|
515
|
-
"dialog-header": S(() => [...l[
|
|
768
|
+
"dialog-header": S(() => [...l[56] || (l[56] = [
|
|
516
769
|
a("div", null, "Rejecting Submission", -1)
|
|
517
770
|
])]),
|
|
518
771
|
default: S(() => [
|
|
519
|
-
|
|
520
|
-
modelValue:
|
|
521
|
-
"onUpdate:modelValue": l[
|
|
772
|
+
o(xe, {
|
|
773
|
+
modelValue: R.value,
|
|
774
|
+
"onUpdate:modelValue": l[12] || (l[12] = (t) => R.value = t),
|
|
522
775
|
label: "Reason for Rejection",
|
|
523
776
|
"label-mark": "optional",
|
|
524
777
|
"helper-text": "Please provide a reason for rejection."
|
|
525
778
|
}, null, 8, ["modelValue"]),
|
|
526
|
-
|
|
779
|
+
o(j, {
|
|
527
780
|
class: "mb-2 mt-6 w-full",
|
|
528
781
|
label: "Submit",
|
|
529
782
|
"prepend-icon": "save",
|
|
530
|
-
onClick:
|
|
531
|
-
loading: e(
|
|
783
|
+
onClick: J,
|
|
784
|
+
loading: e(y)
|
|
532
785
|
}, null, 8, ["loading"])
|
|
533
786
|
]),
|
|
534
787
|
_: 1
|
|
535
788
|
}, 8, ["modelValue"]),
|
|
536
|
-
|
|
789
|
+
o(j, {
|
|
537
790
|
type: "button",
|
|
538
791
|
variant: "primary",
|
|
539
792
|
"prepend-icon": "approval",
|
|
540
|
-
disabled: !
|
|
793
|
+
disabled: !B.value,
|
|
541
794
|
label: "Approve Submission with Rates",
|
|
542
|
-
onClick:
|
|
543
|
-
loading: e(
|
|
795
|
+
onClick: re,
|
|
796
|
+
loading: e(y)
|
|
544
797
|
}, null, 8, ["disabled", "loading"])
|
|
545
798
|
]),
|
|
546
|
-
|
|
799
|
+
o(Se, { disabled: !0 }, {
|
|
547
800
|
default: S(() => [
|
|
548
|
-
l[
|
|
549
|
-
a("div",
|
|
550
|
-
a("div",
|
|
551
|
-
|
|
801
|
+
l[57] || (l[57] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
802
|
+
a("div", xl, [
|
|
803
|
+
a("div", Nl, [
|
|
804
|
+
o(q, {
|
|
552
805
|
modelValue: e(s).picName,
|
|
553
|
-
"onUpdate:modelValue": l[
|
|
806
|
+
"onUpdate:modelValue": l[14] || (l[14] = (t) => e(s).picName = t),
|
|
554
807
|
label: "Owner/Director Name",
|
|
555
808
|
placeholder: "Enter your name",
|
|
556
809
|
"label-mark": "required",
|
|
557
810
|
rules: e(p)(e(b).string().min(1, "Owner/Director Name is required"))
|
|
558
811
|
}, null, 8, ["modelValue", "rules"])
|
|
559
812
|
]),
|
|
560
|
-
a("div",
|
|
561
|
-
|
|
813
|
+
a("div", wl, [
|
|
814
|
+
o(q, {
|
|
562
815
|
modelValue: e(s).picRole,
|
|
563
|
-
"onUpdate:modelValue": l[
|
|
816
|
+
"onUpdate:modelValue": l[15] || (l[15] = (t) => e(s).picRole = t),
|
|
564
817
|
label: "Owner/Director Role",
|
|
565
818
|
placeholder: "Enter your role",
|
|
566
819
|
"label-mark": "required",
|
|
567
820
|
rules: e(p)(e(b).string().min(1, "Owner/Director Role is required"))
|
|
568
821
|
}, null, 8, ["modelValue", "rules"])
|
|
569
822
|
]),
|
|
570
|
-
a("div",
|
|
571
|
-
|
|
823
|
+
a("div", Sl, [
|
|
824
|
+
o(q, {
|
|
572
825
|
modelValue: e(s).picEmail,
|
|
573
|
-
"onUpdate:modelValue": l[
|
|
826
|
+
"onUpdate:modelValue": l[16] || (l[16] = (t) => e(s).picEmail = t),
|
|
574
827
|
label: "Owner/Director Email",
|
|
575
828
|
type: "email",
|
|
576
829
|
placeholder: "Enter your email address",
|
|
@@ -578,84 +831,84 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
578
831
|
rules: e(p)(e(b).string().min(1, "Owner/Director Email is required"))
|
|
579
832
|
}, null, 8, ["modelValue", "rules"])
|
|
580
833
|
]),
|
|
581
|
-
a("div",
|
|
582
|
-
|
|
834
|
+
a("div", Pl, [
|
|
835
|
+
o(we, {
|
|
583
836
|
"model-value": e(s).picContact,
|
|
584
|
-
"onUpdate:modelValue": l[
|
|
837
|
+
"onUpdate:modelValue": l[17] || (l[17] = (t) => e(s).picContact = t),
|
|
585
838
|
"default-country": "MY",
|
|
586
839
|
label: "Owner/Director Contact",
|
|
587
840
|
"label-mark": "required",
|
|
588
841
|
rules: e(p)(e(b).string().min(1, "Owner/Director Contact is required"))
|
|
589
842
|
}, null, 8, ["model-value", "rules"])
|
|
590
843
|
]),
|
|
591
|
-
a("div",
|
|
592
|
-
|
|
844
|
+
a("div", Il, [
|
|
845
|
+
o(q, {
|
|
593
846
|
modelValue: e(s).nric,
|
|
594
|
-
"onUpdate:modelValue": l[
|
|
847
|
+
"onUpdate:modelValue": l[18] || (l[18] = (t) => e(s).nric = t),
|
|
595
848
|
label: "Owner/Director NRIC No",
|
|
596
849
|
placeholder: "Enter your NRIC number",
|
|
597
850
|
"label-mark": "required",
|
|
598
851
|
rules: e(p)(e(b).string().min(1, "NRIC No is required"))
|
|
599
852
|
}, null, 8, ["modelValue", "rules"])
|
|
600
853
|
]),
|
|
601
|
-
a("div",
|
|
602
|
-
|
|
854
|
+
a("div", Rl, [
|
|
855
|
+
o(q, {
|
|
603
856
|
modelValue: e(s).tradingName,
|
|
604
|
-
"onUpdate:modelValue": l[
|
|
857
|
+
"onUpdate:modelValue": l[19] || (l[19] = (t) => e(s).tradingName = t),
|
|
605
858
|
label: "Trading Name",
|
|
606
859
|
placeholder: "Enter trading name",
|
|
607
860
|
"label-mark": "required",
|
|
608
861
|
rules: e(p)(e(b).string().min(1, "Trading Name is required"))
|
|
609
862
|
}, null, 8, ["modelValue", "rules"])
|
|
610
863
|
]),
|
|
611
|
-
a("div",
|
|
612
|
-
|
|
864
|
+
a("div", ql, [
|
|
865
|
+
o(q, {
|
|
613
866
|
modelValue: e(s).outletName,
|
|
614
|
-
"onUpdate:modelValue": l[
|
|
867
|
+
"onUpdate:modelValue": l[20] || (l[20] = (t) => e(s).outletName = t),
|
|
615
868
|
label: "Registered Name",
|
|
616
869
|
placeholder: "Enter registered name",
|
|
617
870
|
"label-mark": "required",
|
|
618
871
|
rules: e(p)(e(b).string().min(1, "Registered Name is required"))
|
|
619
872
|
}, null, 8, ["modelValue", "rules"])
|
|
620
873
|
]),
|
|
621
|
-
a("div",
|
|
622
|
-
|
|
874
|
+
a("div", Ul, [
|
|
875
|
+
o(q, {
|
|
623
876
|
modelValue: e(s).outletAddress,
|
|
624
|
-
"onUpdate:modelValue": l[
|
|
877
|
+
"onUpdate:modelValue": l[21] || (l[21] = (t) => e(s).outletAddress = t),
|
|
625
878
|
label: "Outlet Address",
|
|
626
879
|
placeholder: "Enter outlet address",
|
|
627
880
|
"label-mark": "required",
|
|
628
881
|
rules: e(p)(e(b).string().min(1, "Address is required"))
|
|
629
882
|
}, null, 8, ["modelValue", "rules"])
|
|
630
883
|
]),
|
|
631
|
-
|
|
884
|
+
o(q, {
|
|
632
885
|
modelValue: e(s).outletPostCode,
|
|
633
|
-
"onUpdate:modelValue": l[
|
|
886
|
+
"onUpdate:modelValue": l[22] || (l[22] = (t) => e(s).outletPostCode = t),
|
|
634
887
|
label: "Postal Code",
|
|
635
888
|
placeholder: "Enter postal code",
|
|
636
889
|
"label-mark": "required",
|
|
637
890
|
rules: e(p)(e(b).string().min(1, "Postal Code is required"))
|
|
638
891
|
}, null, 8, ["modelValue", "rules"]),
|
|
639
|
-
|
|
892
|
+
o(q, {
|
|
640
893
|
modelValue: e(s).outletState,
|
|
641
|
-
"onUpdate:modelValue": l[
|
|
894
|
+
"onUpdate:modelValue": l[23] || (l[23] = (t) => e(s).outletState = t),
|
|
642
895
|
label: "State",
|
|
643
896
|
placeholder: "Enter state",
|
|
644
897
|
"label-mark": "required",
|
|
645
898
|
rules: e(p)(e(b).string().min(1, "State is required"))
|
|
646
899
|
}, null, 8, ["modelValue", "rules"]),
|
|
647
|
-
|
|
900
|
+
o(q, {
|
|
648
901
|
modelValue: e(s).outletCity,
|
|
649
|
-
"onUpdate:modelValue": l[
|
|
902
|
+
"onUpdate:modelValue": l[24] || (l[24] = (t) => e(s).outletCity = t),
|
|
650
903
|
label: "City",
|
|
651
904
|
placeholder: "Enter city",
|
|
652
905
|
"label-mark": "required",
|
|
653
906
|
rules: e(p)(e(b).string().min(1, "City is required"))
|
|
654
907
|
}, null, 8, ["modelValue", "rules"]),
|
|
655
|
-
a("div",
|
|
656
|
-
|
|
908
|
+
a("div", Fl, [
|
|
909
|
+
o(me, {
|
|
657
910
|
modelValue: e(s).businessType,
|
|
658
|
-
"onUpdate:modelValue": l[
|
|
911
|
+
"onUpdate:modelValue": l[25] || (l[25] = (t) => e(s).businessType = t),
|
|
659
912
|
label: "Type",
|
|
660
913
|
placeholder: "Select business type",
|
|
661
914
|
"label-mark": "required",
|
|
@@ -674,174 +927,174 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
674
927
|
]
|
|
675
928
|
}, null, 8, ["modelValue", "rules"])
|
|
676
929
|
]),
|
|
677
|
-
a("div",
|
|
678
|
-
|
|
930
|
+
a("div", Dl, [
|
|
931
|
+
o(q, {
|
|
679
932
|
modelValue: e(s).businessRegNo,
|
|
680
|
-
"onUpdate:modelValue": l[
|
|
933
|
+
"onUpdate:modelValue": l[26] || (l[26] = (t) => e(s).businessRegNo = t),
|
|
681
934
|
label: "Registration No",
|
|
682
935
|
placeholder: "Enter registration number",
|
|
683
936
|
"label-mark": "required",
|
|
684
937
|
rules: e(p)(e(b).string().min(1, "Reg No is required"))
|
|
685
938
|
}, null, 8, ["modelValue", "rules"])
|
|
686
939
|
]),
|
|
687
|
-
a("div",
|
|
688
|
-
|
|
940
|
+
a("div", Tl, [
|
|
941
|
+
o(q, {
|
|
689
942
|
modelValue: e(s).tinNo,
|
|
690
|
-
"onUpdate:modelValue": l[
|
|
943
|
+
"onUpdate:modelValue": l[27] || (l[27] = (t) => e(s).tinNo = t),
|
|
691
944
|
label: "Tax Identification No (TIN)",
|
|
692
945
|
placeholder: "Enter your TIN number",
|
|
693
946
|
"label-mark": "required",
|
|
694
947
|
rules: e(p)(e(b).string().min(1, "TIN is required"))
|
|
695
948
|
}, null, 8, ["modelValue", "rules"])
|
|
696
949
|
]),
|
|
697
|
-
a("div",
|
|
698
|
-
|
|
950
|
+
a("div", El, [
|
|
951
|
+
o(q, {
|
|
699
952
|
modelValue: e(s).sstNo,
|
|
700
|
-
"onUpdate:modelValue": l[
|
|
953
|
+
"onUpdate:modelValue": l[28] || (l[28] = (t) => e(s).sstNo = t),
|
|
701
954
|
label: "SST Registration No (SST)",
|
|
702
955
|
placeholder: "Enter your SST number",
|
|
703
956
|
"label-mark": "optional"
|
|
704
957
|
}, null, 8, ["modelValue"])
|
|
705
958
|
])
|
|
706
959
|
]),
|
|
707
|
-
l[
|
|
708
|
-
a("div",
|
|
709
|
-
|
|
960
|
+
l[58] || (l[58] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
961
|
+
a("div", $l, [
|
|
962
|
+
o(me, {
|
|
710
963
|
modelValue: e(s).bankName,
|
|
711
|
-
"onUpdate:modelValue": l[
|
|
964
|
+
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(s).bankName = t),
|
|
712
965
|
label: "Bank",
|
|
713
966
|
placeholder: "Select bank type",
|
|
714
967
|
"label-mark": "required",
|
|
715
968
|
rules: e(p)(e(b).string().min(1, "Bank Type is required")),
|
|
716
|
-
items: e(
|
|
969
|
+
items: e(Fe).bankNameOptions()
|
|
717
970
|
}, null, 8, ["modelValue", "rules", "items"]),
|
|
718
|
-
|
|
971
|
+
o(q, {
|
|
719
972
|
modelValue: e(s).bankHolderName,
|
|
720
|
-
"onUpdate:modelValue": l[
|
|
973
|
+
"onUpdate:modelValue": l[30] || (l[30] = (t) => e(s).bankHolderName = t),
|
|
721
974
|
label: "Beneficiary Name",
|
|
722
975
|
placeholder: "Enter Beneficiary Name",
|
|
723
976
|
"label-mark": "required",
|
|
724
977
|
rules: e(p)(e(b).string().min(1, "Beneficiary Name is required"))
|
|
725
978
|
}, null, 8, ["modelValue", "rules"]),
|
|
726
|
-
|
|
979
|
+
o(q, {
|
|
727
980
|
modelValue: e(s).bankAccountNo,
|
|
728
|
-
"onUpdate:modelValue": l[
|
|
981
|
+
"onUpdate:modelValue": l[31] || (l[31] = (t) => e(s).bankAccountNo = t),
|
|
729
982
|
label: "Account Number",
|
|
730
983
|
placeholder: "Enter Account Number",
|
|
731
984
|
"label-mark": "required",
|
|
732
985
|
rules: e(p)(e(b).string().min(1, "Account Number is required"))
|
|
733
986
|
}, null, 8, ["modelValue", "rules"])
|
|
734
987
|
]),
|
|
735
|
-
l[
|
|
736
|
-
l[
|
|
737
|
-
a("div",
|
|
738
|
-
|
|
988
|
+
l[59] || (l[59] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
989
|
+
l[60] || (l[60] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 1. All Directors/Owner ICs ", -1)),
|
|
990
|
+
a("div", Al, [
|
|
991
|
+
o(D, {
|
|
739
992
|
label: "Authorized Person ID",
|
|
740
|
-
modelValue: e(
|
|
741
|
-
"onUpdate:modelValue": l[
|
|
993
|
+
modelValue: e(i).authorizedPersonID,
|
|
994
|
+
"onUpdate:modelValue": l[32] || (l[32] = (t) => e(i).authorizedPersonID = t),
|
|
742
995
|
type: "image",
|
|
743
|
-
"restaurant-id":
|
|
996
|
+
"restaurant-id": d.submission.restaurantId
|
|
744
997
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
745
|
-
(u(!0),
|
|
998
|
+
(u(!0), k(h, null, K(X.value, (t) => (u(), A(D, {
|
|
746
999
|
key: t,
|
|
747
1000
|
label: `Authorized Person ID ${t.replace("authorizedPersonID", "")}`,
|
|
748
|
-
modelValue: e(
|
|
749
|
-
"onUpdate:modelValue": (
|
|
1001
|
+
modelValue: e(i)[t],
|
|
1002
|
+
"onUpdate:modelValue": (W) => e(i)[t] = W,
|
|
750
1003
|
type: "image",
|
|
751
|
-
"restaurant-id":
|
|
1004
|
+
"restaurant-id": d.submission.restaurantId
|
|
752
1005
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
|
|
753
1006
|
]),
|
|
754
|
-
l[
|
|
755
|
-
a("div",
|
|
756
|
-
e(s).businessType === "private_limited" || e(s).businessType === "public_limited" ? (u(),
|
|
1007
|
+
l[61] || (l[61] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-6" }, " Section 2. Business Information ", -1)),
|
|
1008
|
+
a("div", Ll, [
|
|
1009
|
+
e(s).businessType === "private_limited" || e(s).businessType === "public_limited" ? (u(), A(D, {
|
|
757
1010
|
key: 0,
|
|
758
1011
|
label: "Superform",
|
|
759
1012
|
type: "pdf",
|
|
760
|
-
modelValue: e(
|
|
761
|
-
"onUpdate:modelValue": l[
|
|
762
|
-
"restaurant-id":
|
|
763
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
764
|
-
e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (u(),
|
|
1013
|
+
modelValue: e(i).certificate,
|
|
1014
|
+
"onUpdate:modelValue": l[33] || (l[33] = (t) => e(i).certificate = t),
|
|
1015
|
+
"restaurant-id": d.submission.restaurantId
|
|
1016
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
|
|
1017
|
+
e(s).businessType === "sole_proprietorship" || e(s).businessType === "partnership" ? (u(), A(D, {
|
|
765
1018
|
key: 1,
|
|
766
1019
|
label: "Business Registration Document",
|
|
767
1020
|
type: "pdf",
|
|
768
|
-
modelValue: e(
|
|
769
|
-
"onUpdate:modelValue": l[
|
|
770
|
-
"restaurant-id":
|
|
771
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
772
|
-
e(
|
|
1021
|
+
modelValue: e(i).certificate,
|
|
1022
|
+
"onUpdate:modelValue": l[34] || (l[34] = (t) => e(i).certificate = t),
|
|
1023
|
+
"restaurant-id": d.submission.restaurantId
|
|
1024
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
|
|
1025
|
+
e(i).interiorPhoto ? (u(), A(D, {
|
|
773
1026
|
key: 2,
|
|
774
1027
|
label: "Interior Photo",
|
|
775
|
-
modelValue: e(
|
|
776
|
-
"onUpdate:modelValue": l[
|
|
1028
|
+
modelValue: e(i).interiorPhoto,
|
|
1029
|
+
"onUpdate:modelValue": l[35] || (l[35] = (t) => e(i).interiorPhoto = t),
|
|
777
1030
|
type: "image",
|
|
778
|
-
"restaurant-id":
|
|
779
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
780
|
-
|
|
1031
|
+
"restaurant-id": d.submission.restaurantId
|
|
1032
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
|
|
1033
|
+
o(D, {
|
|
781
1034
|
label: "Outlet Photo",
|
|
782
|
-
modelValue: e(
|
|
783
|
-
"onUpdate:modelValue": l[
|
|
1035
|
+
modelValue: e(i).outletPhoto,
|
|
1036
|
+
"onUpdate:modelValue": l[36] || (l[36] = (t) => e(i).outletPhoto = t),
|
|
784
1037
|
type: "image-or-pdf",
|
|
785
|
-
"restaurant-id":
|
|
1038
|
+
"restaurant-id": d.submission.restaurantId
|
|
786
1039
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
787
1040
|
]),
|
|
788
|
-
l[
|
|
789
|
-
a("div",
|
|
790
|
-
|
|
1041
|
+
l[62] || (l[62] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 3. Payout Information ", -1)),
|
|
1042
|
+
a("div", Bl, [
|
|
1043
|
+
o(D, {
|
|
791
1044
|
label: "Latest Bank Statement",
|
|
792
|
-
modelValue: e(
|
|
793
|
-
"onUpdate:modelValue": l[
|
|
1045
|
+
modelValue: e(i).bankStatement,
|
|
1046
|
+
"onUpdate:modelValue": l[37] || (l[37] = (t) => e(i).bankStatement = t),
|
|
794
1047
|
type: "pdf",
|
|
795
|
-
"restaurant-id":
|
|
1048
|
+
"restaurant-id": d.submission.restaurantId
|
|
796
1049
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
797
1050
|
]),
|
|
798
|
-
l[
|
|
799
|
-
a("div",
|
|
800
|
-
(u(!0),
|
|
801
|
-
(t) => !!e(
|
|
802
|
-
), (t) => (u(),
|
|
1051
|
+
l[63] || (l[63] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 4. Site Photos ", -1)),
|
|
1052
|
+
a("div", Ol, [
|
|
1053
|
+
(u(!0), k(h, null, K([1, 2, 3, 4, 5].filter(
|
|
1054
|
+
(t) => !!e(i)[`onsitePhoto${t}`]
|
|
1055
|
+
), (t) => (u(), A(D, {
|
|
803
1056
|
key: t,
|
|
804
|
-
label: e(
|
|
805
|
-
modelValue: e(
|
|
806
|
-
"onUpdate:modelValue": (
|
|
1057
|
+
label: e(De)[t - 1],
|
|
1058
|
+
modelValue: e(i)[`onsitePhoto${t}`],
|
|
1059
|
+
"onUpdate:modelValue": (W) => e(i)[`onsitePhoto${t}`] = W,
|
|
807
1060
|
type: "image",
|
|
808
|
-
"restaurant-id":
|
|
1061
|
+
"restaurant-id": d.submission.restaurantId
|
|
809
1062
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
|
|
810
1063
|
]),
|
|
811
|
-
l[
|
|
812
|
-
a("div",
|
|
813
|
-
e(
|
|
1064
|
+
l[64] || (l[64] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 5. Additional Documents ", -1)),
|
|
1065
|
+
a("div", jl, [
|
|
1066
|
+
e(i).liquorLicense ? (u(), A(D, {
|
|
814
1067
|
key: 0,
|
|
815
1068
|
label: "Liquor License",
|
|
816
|
-
modelValue: e(
|
|
817
|
-
"onUpdate:modelValue": l[
|
|
1069
|
+
modelValue: e(i).liquorLicense,
|
|
1070
|
+
"onUpdate:modelValue": l[38] || (l[38] = (t) => e(i).liquorLicense = t),
|
|
818
1071
|
type: "image-or-pdf",
|
|
819
|
-
"restaurant-id":
|
|
820
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
821
|
-
e(
|
|
1072
|
+
"restaurant-id": d.submission.restaurantId
|
|
1073
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
|
|
1074
|
+
e(i).appendixC ? (u(), A(D, {
|
|
822
1075
|
key: 1,
|
|
823
1076
|
label: "Appendix C",
|
|
824
|
-
modelValue: e(
|
|
825
|
-
"onUpdate:modelValue": l[
|
|
1077
|
+
modelValue: e(i).appendixC,
|
|
1078
|
+
"onUpdate:modelValue": l[39] || (l[39] = (t) => e(i).appendixC = t),
|
|
826
1079
|
type: "pdf",
|
|
827
|
-
"restaurant-id":
|
|
828
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
829
|
-
!e(
|
|
1080
|
+
"restaurant-id": d.submission.restaurantId
|
|
1081
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
|
|
1082
|
+
!e(i).liquorLicense && !e(i).appendixC ? (u(), k("p", _l, " No additional documents submitted. ")) : T("", !0)
|
|
830
1083
|
]),
|
|
831
|
-
l[
|
|
832
|
-
a("div",
|
|
833
|
-
|
|
834
|
-
modelValue: e(
|
|
835
|
-
"onUpdate:modelValue": l[
|
|
836
|
-
"restaurant-id":
|
|
1084
|
+
l[65] || (l[65] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1085
|
+
a("div", hl, [
|
|
1086
|
+
o(Be, {
|
|
1087
|
+
modelValue: e(i).signature,
|
|
1088
|
+
"onUpdate:modelValue": l[40] || (l[40] = (t) => e(i).signature = t),
|
|
1089
|
+
"restaurant-id": d.submission.restaurantId,
|
|
837
1090
|
label: "Signature"
|
|
838
1091
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
839
|
-
|
|
1092
|
+
o(D, {
|
|
840
1093
|
label: "Company Stamp",
|
|
841
1094
|
type: "image",
|
|
842
|
-
modelValue: e(
|
|
843
|
-
"onUpdate:modelValue": l[
|
|
844
|
-
"restaurant-id":
|
|
1095
|
+
modelValue: e(i).companyStamp,
|
|
1096
|
+
"onUpdate:modelValue": l[41] || (l[41] = (t) => e(i).companyStamp = t),
|
|
1097
|
+
"restaurant-id": d.submission.restaurantId
|
|
845
1098
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
846
1099
|
])
|
|
847
1100
|
]),
|
|
@@ -850,7 +1103,7 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
850
1103
|
], 64);
|
|
851
1104
|
};
|
|
852
1105
|
}
|
|
853
|
-
}),
|
|
1106
|
+
}), zl = { class: "space-y-2" }, Hl = { class: "text-gray-900" }, Wl = { class: "text-gray-900" }, Yl = { class: "text-gray-900" }, Gl = { class: "text-gray-900" }, Jl = { class: "text-gray-900" }, Kl = { class: "text-gray-900" }, Ql = { class: "mt-6 grid grid-cols-4 gap-24" }, Xl = { class: "w-full flex justify-end mt-6" }, Zl = { class: "mt-6 grid grid-cols-4 gap-24" }, et = { class: "col-span-2" }, lt = { class: "col-span-2" }, tt = { class: "col-span-2" }, at = { class: "col-span-2" }, st = { class: "mt-6 grid grid-cols-4 gap-24" }, nt = { class: "mt-6 grid grid-cols-4 gap-24" }, ot = { class: "mt-6 grid grid-cols-4 gap-24" }, rt = { class: "col-span-2" }, it = { class: "col-span-2" }, ut = { class: "col-span-2" }, dt = { class: "col-span-2" }, mt = { class: "col-span-2" }, pt = { class: "col-span-2" }, bt = /* @__PURE__ */ Q({
|
|
854
1107
|
__name: "NTTSubmission",
|
|
855
1108
|
props: {
|
|
856
1109
|
submission: {
|
|
@@ -859,8 +1112,8 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
859
1112
|
}
|
|
860
1113
|
},
|
|
861
1114
|
emits: ["update:submission"],
|
|
862
|
-
setup(
|
|
863
|
-
const
|
|
1115
|
+
setup(d, { emit: x }) {
|
|
1116
|
+
const m = d, v = x, c = ue(), C = O(!1), { isLoading: y, startAsyncCall: E } = ne(), { fields: s, documents: i, restaurantId: U, profile: g, status: I, statusReason: $ } = m.submission, R = O(""), L = [
|
|
864
1117
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
865
1118
|
{
|
|
866
1119
|
key: "localCardStandard",
|
|
@@ -892,430 +1145,430 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
892
1145
|
{ key: "shopeePay", label: "ShopeePay", defaultValue: "2.3" },
|
|
893
1146
|
{ key: "linePay", label: "LinePay", defaultValue: "2.1" },
|
|
894
1147
|
{ key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
|
|
895
|
-
],
|
|
896
|
-
|
|
897
|
-
),
|
|
898
|
-
|
|
899
|
-
Object.entries(
|
|
900
|
-
) : { ...
|
|
901
|
-
),
|
|
902
|
-
() => Object.values(
|
|
903
|
-
),
|
|
1148
|
+
], f = Object.fromEntries(
|
|
1149
|
+
L.map((w) => [w.key, w.defaultValue])
|
|
1150
|
+
), B = O(
|
|
1151
|
+
m.submission.rates ? Object.fromEntries(
|
|
1152
|
+
Object.entries(m.submission.rates).map(([w, n]) => [w, `${n}`])
|
|
1153
|
+
) : { ...f }
|
|
1154
|
+
), X = _(
|
|
1155
|
+
() => Object.values(B.value).every((w) => parseFloat(w) > 0)
|
|
1156
|
+
), Z = _(() => s.businessType === "juristic" ? "Juristic" : s.businessType === "individual" ? "Individual" : s.businessType || "-"), ee = () => E(async () => {
|
|
904
1157
|
try {
|
|
905
|
-
const
|
|
906
|
-
|
|
1158
|
+
const w = await M.reviewById(
|
|
1159
|
+
m.submission._id,
|
|
907
1160
|
{
|
|
908
|
-
status:
|
|
1161
|
+
status: fe.FdoOnboardStatus.enum.ready
|
|
909
1162
|
}
|
|
910
1163
|
);
|
|
911
|
-
v("update:submission",
|
|
1164
|
+
v("update:submission", w), c.open({
|
|
912
1165
|
type: "success",
|
|
913
1166
|
title: "Submission marked as ready"
|
|
914
1167
|
});
|
|
915
|
-
} catch (
|
|
1168
|
+
} catch (w) {
|
|
916
1169
|
c.open({
|
|
917
1170
|
type: "error",
|
|
918
1171
|
title: "Error occurs when marking submission as ready",
|
|
919
|
-
message:
|
|
1172
|
+
message: G(w)
|
|
920
1173
|
});
|
|
921
1174
|
}
|
|
922
|
-
}),
|
|
1175
|
+
}), z = () => E(async () => {
|
|
923
1176
|
try {
|
|
924
|
-
const
|
|
925
|
-
|
|
1177
|
+
const w = await M.reviewById(
|
|
1178
|
+
m.submission._id,
|
|
926
1179
|
{
|
|
927
1180
|
rates: Object.fromEntries(
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
parseFloat(
|
|
1181
|
+
L.map((n) => [
|
|
1182
|
+
n.key,
|
|
1183
|
+
parseFloat(B.value[n.key])
|
|
931
1184
|
])
|
|
932
1185
|
),
|
|
933
1186
|
status: "approved"
|
|
934
1187
|
}
|
|
935
1188
|
);
|
|
936
|
-
v("update:submission",
|
|
1189
|
+
v("update:submission", w), c.open({
|
|
937
1190
|
type: "success",
|
|
938
1191
|
title: "Submission updated successfully"
|
|
939
1192
|
});
|
|
940
|
-
} catch (
|
|
1193
|
+
} catch (w) {
|
|
941
1194
|
c.open({
|
|
942
1195
|
type: "error",
|
|
943
1196
|
title: "Error occurs when updating submission",
|
|
944
|
-
message:
|
|
1197
|
+
message: G(w)
|
|
945
1198
|
});
|
|
946
1199
|
}
|
|
947
|
-
}),
|
|
1200
|
+
}), ae = () => E(async () => {
|
|
948
1201
|
try {
|
|
949
|
-
const
|
|
950
|
-
|
|
1202
|
+
const w = await M.reviewById(
|
|
1203
|
+
m.submission._id,
|
|
951
1204
|
{
|
|
952
1205
|
status: "rejected",
|
|
953
|
-
statusReason:
|
|
1206
|
+
statusReason: R.value
|
|
954
1207
|
}
|
|
955
1208
|
);
|
|
956
|
-
v("update:submission",
|
|
1209
|
+
v("update:submission", w), C.value = !1, c.open({
|
|
957
1210
|
type: "success",
|
|
958
1211
|
title: "Submission updated successfully"
|
|
959
1212
|
});
|
|
960
|
-
} catch (
|
|
1213
|
+
} catch (w) {
|
|
961
1214
|
c.open({
|
|
962
1215
|
type: "error",
|
|
963
1216
|
title: "Error occurs when updating submission",
|
|
964
|
-
message:
|
|
1217
|
+
message: G(w)
|
|
965
1218
|
});
|
|
966
1219
|
}
|
|
967
1220
|
});
|
|
968
|
-
return (
|
|
969
|
-
const
|
|
970
|
-
return u(),
|
|
971
|
-
a("div",
|
|
1221
|
+
return (w, n) => {
|
|
1222
|
+
const F = P("FmTextField"), le = P("FmButton"), re = P("FmTextarea"), te = P("FmDialog"), ie = P("FmPhoneNumber"), se = P("FmForm");
|
|
1223
|
+
return u(), k(h, null, [
|
|
1224
|
+
a("div", zl, [
|
|
972
1225
|
a("div", null, [
|
|
973
|
-
|
|
974
|
-
a("span",
|
|
1226
|
+
n[31] || (n[31] = a("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
1227
|
+
a("span", Hl, N(e(U)), 1)
|
|
975
1228
|
]),
|
|
976
1229
|
a("div", null, [
|
|
977
|
-
|
|
978
|
-
a("span",
|
|
1230
|
+
n[32] || (n[32] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
1231
|
+
a("span", Wl, N(e(g).name) + " ( " + N(e(g).legalName) + " )", 1)
|
|
979
1232
|
]),
|
|
980
1233
|
a("div", null, [
|
|
981
|
-
|
|
982
|
-
a("span",
|
|
1234
|
+
n[33] || (n[33] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
1235
|
+
a("span", Yl, N(e(g).email), 1)
|
|
983
1236
|
]),
|
|
984
1237
|
a("div", null, [
|
|
985
|
-
|
|
986
|
-
a("span",
|
|
1238
|
+
n[34] || (n[34] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
1239
|
+
a("span", Gl, N(e(g).phoneNo), 1)
|
|
987
1240
|
]),
|
|
988
1241
|
a("div", null, [
|
|
989
|
-
|
|
990
|
-
a("span",
|
|
991
|
-
|
|
1242
|
+
n[35] || (n[35] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
1243
|
+
a("span", Jl, [
|
|
1244
|
+
o(ke, { data: e(I) }, null, 8, ["data"])
|
|
992
1245
|
])
|
|
993
1246
|
]),
|
|
994
1247
|
a("div", null, [
|
|
995
|
-
|
|
996
|
-
a("span",
|
|
1248
|
+
n[36] || (n[36] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
1249
|
+
a("span", Kl, N(e($)), 1)
|
|
997
1250
|
])
|
|
998
1251
|
]),
|
|
999
|
-
|
|
1000
|
-
a("div",
|
|
1001
|
-
(u(),
|
|
1002
|
-
key:
|
|
1003
|
-
modelValue:
|
|
1004
|
-
"onUpdate:modelValue": (
|
|
1005
|
-
label:
|
|
1252
|
+
n[43] || (n[43] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
1253
|
+
a("div", Ql, [
|
|
1254
|
+
(u(), k(h, null, K(L, (r) => o(F, {
|
|
1255
|
+
key: r.key,
|
|
1256
|
+
modelValue: B.value[r.key],
|
|
1257
|
+
"onUpdate:modelValue": (J) => B.value[r.key] = J,
|
|
1258
|
+
label: r.label,
|
|
1006
1259
|
"label-mark": "required",
|
|
1007
1260
|
type: "number",
|
|
1008
1261
|
inputmode: "numeric",
|
|
1009
1262
|
decimal: 2,
|
|
1010
1263
|
rules: e(p)(
|
|
1011
|
-
e(b).string().min(1, "Rate is required").transform((
|
|
1264
|
+
e(b).string().min(1, "Rate is required").transform((J) => parseFloat(J)).refine((J) => !isNaN(J), { message: "Rate must be a number" })
|
|
1012
1265
|
)
|
|
1013
1266
|
}, {
|
|
1014
|
-
append: S(() => [...
|
|
1015
|
-
|
|
1267
|
+
append: S(() => [...n[37] || (n[37] = [
|
|
1268
|
+
Y("%", -1)
|
|
1016
1269
|
])]),
|
|
1017
1270
|
_: 1
|
|
1018
1271
|
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
1019
1272
|
]),
|
|
1020
|
-
a("div",
|
|
1021
|
-
|
|
1273
|
+
a("div", Xl, [
|
|
1274
|
+
o(te, {
|
|
1022
1275
|
modelValue: C.value,
|
|
1023
|
-
"onUpdate:modelValue":
|
|
1276
|
+
"onUpdate:modelValue": n[1] || (n[1] = (r) => C.value = r)
|
|
1024
1277
|
}, {
|
|
1025
1278
|
"dialog-button": S(() => [
|
|
1026
|
-
|
|
1279
|
+
o(le, {
|
|
1027
1280
|
class: "mr-6",
|
|
1028
1281
|
type: "button",
|
|
1029
1282
|
variant: "destructive",
|
|
1030
1283
|
"prepend-icon": "block",
|
|
1031
|
-
loading: e(
|
|
1284
|
+
loading: e(y),
|
|
1032
1285
|
label: "Reject Submission"
|
|
1033
1286
|
}, null, 8, ["loading"])
|
|
1034
1287
|
]),
|
|
1035
|
-
"dialog-header": S(() => [...
|
|
1288
|
+
"dialog-header": S(() => [...n[38] || (n[38] = [
|
|
1036
1289
|
a("div", null, "Rejecting Submission", -1)
|
|
1037
1290
|
])]),
|
|
1038
1291
|
default: S(() => [
|
|
1039
|
-
|
|
1040
|
-
modelValue:
|
|
1041
|
-
"onUpdate:modelValue":
|
|
1292
|
+
o(re, {
|
|
1293
|
+
modelValue: R.value,
|
|
1294
|
+
"onUpdate:modelValue": n[0] || (n[0] = (r) => R.value = r),
|
|
1042
1295
|
label: "Reason for Rejection",
|
|
1043
1296
|
"label-mark": "optional",
|
|
1044
1297
|
"helper-text": "Please provide a reason for rejection."
|
|
1045
1298
|
}, null, 8, ["modelValue"]),
|
|
1046
|
-
|
|
1299
|
+
o(le, {
|
|
1047
1300
|
class: "mb-2 mt-6 w-full",
|
|
1048
1301
|
label: "Submit",
|
|
1049
1302
|
"prepend-icon": "save",
|
|
1050
|
-
onClick:
|
|
1051
|
-
loading: e(
|
|
1303
|
+
onClick: ae,
|
|
1304
|
+
loading: e(y)
|
|
1052
1305
|
}, null, 8, ["loading"])
|
|
1053
1306
|
]),
|
|
1054
1307
|
_: 1
|
|
1055
1308
|
}, 8, ["modelValue"]),
|
|
1056
|
-
|
|
1309
|
+
o(le, {
|
|
1057
1310
|
type: "button",
|
|
1058
1311
|
variant: "primary",
|
|
1059
1312
|
"prepend-icon": "approval",
|
|
1060
1313
|
label: "Approve Submission with Rates",
|
|
1061
|
-
disabled: !
|
|
1062
|
-
onClick:
|
|
1063
|
-
loading: e(
|
|
1314
|
+
disabled: !X.value,
|
|
1315
|
+
onClick: z,
|
|
1316
|
+
loading: e(y)
|
|
1064
1317
|
}, null, 8, ["disabled", "loading"]),
|
|
1065
|
-
e(
|
|
1318
|
+
e(I) === "approved" ? (u(), A(le, {
|
|
1066
1319
|
key: 0,
|
|
1067
1320
|
type: "button",
|
|
1068
1321
|
variant: "secondary",
|
|
1069
1322
|
"prepend-icon": "check_circle",
|
|
1070
1323
|
label: "Mark as Ready",
|
|
1071
1324
|
class: "ml-6",
|
|
1072
|
-
onClick:
|
|
1073
|
-
loading: e(
|
|
1074
|
-
}, null, 8, ["loading"])) :
|
|
1325
|
+
onClick: ee,
|
|
1326
|
+
loading: e(y)
|
|
1327
|
+
}, null, 8, ["loading"])) : T("", !0)
|
|
1075
1328
|
]),
|
|
1076
|
-
|
|
1329
|
+
o(se, { disabled: !0 }, {
|
|
1077
1330
|
default: S(() => [
|
|
1078
|
-
|
|
1079
|
-
a("div",
|
|
1080
|
-
a("div",
|
|
1081
|
-
|
|
1331
|
+
n[39] || (n[39] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
1332
|
+
a("div", Zl, [
|
|
1333
|
+
a("div", et, [
|
|
1334
|
+
o(F, {
|
|
1082
1335
|
modelValue: e(s).companyName,
|
|
1083
|
-
"onUpdate:modelValue":
|
|
1336
|
+
"onUpdate:modelValue": n[2] || (n[2] = (r) => e(s).companyName = r),
|
|
1084
1337
|
label: "Company Name",
|
|
1085
1338
|
"label-mark": "required",
|
|
1086
1339
|
rules: e(p)(e(b).string().min(1, "Company Name is required"))
|
|
1087
1340
|
}, null, 8, ["modelValue", "rules"])
|
|
1088
1341
|
]),
|
|
1089
|
-
a("div",
|
|
1090
|
-
|
|
1342
|
+
a("div", lt, [
|
|
1343
|
+
o(F, {
|
|
1091
1344
|
modelValue: e(s).outletName,
|
|
1092
|
-
"onUpdate:modelValue":
|
|
1345
|
+
"onUpdate:modelValue": n[3] || (n[3] = (r) => e(s).outletName = r),
|
|
1093
1346
|
label: "Outlet Name (Thai)",
|
|
1094
1347
|
"label-mark": "required",
|
|
1095
1348
|
rules: e(p)(e(b).string().min(1, "Outlet Name is required"))
|
|
1096
1349
|
}, null, 8, ["modelValue", "rules"])
|
|
1097
1350
|
]),
|
|
1098
|
-
a("div",
|
|
1099
|
-
|
|
1351
|
+
a("div", tt, [
|
|
1352
|
+
o(F, {
|
|
1100
1353
|
modelValue: e(s).outletNameEnglish,
|
|
1101
|
-
"onUpdate:modelValue":
|
|
1354
|
+
"onUpdate:modelValue": n[4] || (n[4] = (r) => e(s).outletNameEnglish = r),
|
|
1102
1355
|
label: "Outlet Name (English)",
|
|
1103
1356
|
"label-mark": "required",
|
|
1104
1357
|
rules: e(p)(e(b).string().min(1, "Outlet Name English is required"))
|
|
1105
1358
|
}, null, 8, ["modelValue", "rules"])
|
|
1106
1359
|
]),
|
|
1107
|
-
a("div",
|
|
1108
|
-
|
|
1360
|
+
a("div", at, [
|
|
1361
|
+
o(F, {
|
|
1109
1362
|
modelValue: e(s).outletAddress,
|
|
1110
|
-
"onUpdate:modelValue":
|
|
1363
|
+
"onUpdate:modelValue": n[5] || (n[5] = (r) => e(s).outletAddress = r),
|
|
1111
1364
|
label: "Outlet Address",
|
|
1112
1365
|
"label-mark": "required",
|
|
1113
1366
|
rules: e(p)(e(b).string().min(1, "Outlet Address is required"))
|
|
1114
1367
|
}, null, 8, ["modelValue", "rules"])
|
|
1115
1368
|
]),
|
|
1116
|
-
|
|
1369
|
+
o(F, {
|
|
1117
1370
|
modelValue: e(s).outletPostCode,
|
|
1118
|
-
"onUpdate:modelValue":
|
|
1371
|
+
"onUpdate:modelValue": n[6] || (n[6] = (r) => e(s).outletPostCode = r),
|
|
1119
1372
|
label: "Post Code",
|
|
1120
1373
|
"label-mark": "required",
|
|
1121
1374
|
rules: e(p)(e(b).string().min(1, "Post Code is required"))
|
|
1122
1375
|
}, null, 8, ["modelValue", "rules"]),
|
|
1123
|
-
|
|
1376
|
+
o(F, {
|
|
1124
1377
|
modelValue: e(s).outletState,
|
|
1125
|
-
"onUpdate:modelValue":
|
|
1378
|
+
"onUpdate:modelValue": n[7] || (n[7] = (r) => e(s).outletState = r),
|
|
1126
1379
|
label: "State",
|
|
1127
1380
|
"label-mark": "required",
|
|
1128
1381
|
rules: e(p)(e(b).string().min(1, "State is required"))
|
|
1129
1382
|
}, null, 8, ["modelValue", "rules"]),
|
|
1130
|
-
|
|
1383
|
+
o(F, {
|
|
1131
1384
|
modelValue: e(s).outletCity,
|
|
1132
|
-
"onUpdate:modelValue":
|
|
1385
|
+
"onUpdate:modelValue": n[8] || (n[8] = (r) => e(s).outletCity = r),
|
|
1133
1386
|
label: "City",
|
|
1134
1387
|
"label-mark": "required",
|
|
1135
1388
|
rules: e(p)(e(b).string().min(1, "City is required"))
|
|
1136
1389
|
}, null, 8, ["modelValue", "rules"]),
|
|
1137
|
-
|
|
1138
|
-
"model-value":
|
|
1390
|
+
o(F, {
|
|
1391
|
+
"model-value": Z.value,
|
|
1139
1392
|
label: "Business Type",
|
|
1140
1393
|
"label-mark": "required"
|
|
1141
1394
|
}, null, 8, ["model-value"]),
|
|
1142
|
-
|
|
1395
|
+
o(F, {
|
|
1143
1396
|
modelValue: e(s).numberOfDevices,
|
|
1144
|
-
"onUpdate:modelValue":
|
|
1397
|
+
"onUpdate:modelValue": n[9] || (n[9] = (r) => e(s).numberOfDevices = r),
|
|
1145
1398
|
label: "Number of Devices",
|
|
1146
1399
|
"label-mark": "required"
|
|
1147
1400
|
}, null, 8, ["modelValue"])
|
|
1148
1401
|
]),
|
|
1149
|
-
|
|
1150
|
-
a("div",
|
|
1151
|
-
|
|
1402
|
+
n[40] || (n[40] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
1403
|
+
a("div", st, [
|
|
1404
|
+
o(F, {
|
|
1152
1405
|
modelValue: e(s).bankName,
|
|
1153
|
-
"onUpdate:modelValue":
|
|
1406
|
+
"onUpdate:modelValue": n[10] || (n[10] = (r) => e(s).bankName = r),
|
|
1154
1407
|
label: "Bank Name",
|
|
1155
1408
|
"label-mark": "required",
|
|
1156
1409
|
rules: e(p)(e(b).string().min(1, "Bank Name is required"))
|
|
1157
1410
|
}, null, 8, ["modelValue", "rules"]),
|
|
1158
|
-
|
|
1411
|
+
o(F, {
|
|
1159
1412
|
modelValue: e(s).bankHolderName,
|
|
1160
|
-
"onUpdate:modelValue":
|
|
1413
|
+
"onUpdate:modelValue": n[11] || (n[11] = (r) => e(s).bankHolderName = r),
|
|
1161
1414
|
label: "Bank Holder Name",
|
|
1162
1415
|
"label-mark": "required",
|
|
1163
1416
|
rules: e(p)(e(b).string().min(1, "Bank Holder Name is required"))
|
|
1164
1417
|
}, null, 8, ["modelValue", "rules"]),
|
|
1165
|
-
|
|
1418
|
+
o(F, {
|
|
1166
1419
|
modelValue: e(s).bankAccountNo,
|
|
1167
|
-
"onUpdate:modelValue":
|
|
1420
|
+
"onUpdate:modelValue": n[12] || (n[12] = (r) => e(s).bankAccountNo = r),
|
|
1168
1421
|
label: "Bank Account No",
|
|
1169
1422
|
"label-mark": "required",
|
|
1170
1423
|
rules: e(p)(e(b).string().min(1, "Bank Account No is required"))
|
|
1171
1424
|
}, null, 8, ["modelValue", "rules"]),
|
|
1172
|
-
|
|
1425
|
+
o(F, {
|
|
1173
1426
|
modelValue: e(s).bankBranch,
|
|
1174
|
-
"onUpdate:modelValue":
|
|
1427
|
+
"onUpdate:modelValue": n[13] || (n[13] = (r) => e(s).bankBranch = r),
|
|
1175
1428
|
label: "Bank Branch",
|
|
1176
1429
|
"label-mark": "required",
|
|
1177
1430
|
rules: e(p)(e(b).string().min(1, "Bank Branch is required"))
|
|
1178
1431
|
}, null, 8, ["modelValue", "rules"]),
|
|
1179
|
-
|
|
1432
|
+
o(F, {
|
|
1180
1433
|
modelValue: e(s).bankBranchCode,
|
|
1181
|
-
"onUpdate:modelValue":
|
|
1434
|
+
"onUpdate:modelValue": n[14] || (n[14] = (r) => e(s).bankBranchCode = r),
|
|
1182
1435
|
label: "Bank Branch Code",
|
|
1183
1436
|
"label-mark": "required",
|
|
1184
1437
|
rules: e(p)(e(b).string().min(1, "Bank Branch Code is required"))
|
|
1185
1438
|
}, null, 8, ["modelValue", "rules"])
|
|
1186
1439
|
]),
|
|
1187
|
-
|
|
1188
|
-
a("div",
|
|
1189
|
-
|
|
1440
|
+
n[41] || (n[41] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
1441
|
+
a("div", nt, [
|
|
1442
|
+
o(D, {
|
|
1190
1443
|
label: "Authorized Person ID",
|
|
1191
|
-
modelValue: e(
|
|
1192
|
-
"onUpdate:modelValue":
|
|
1444
|
+
modelValue: e(i).authorizedPersonID,
|
|
1445
|
+
"onUpdate:modelValue": n[15] || (n[15] = (r) => e(i).authorizedPersonID = r),
|
|
1193
1446
|
type: "image",
|
|
1194
|
-
"restaurant-id":
|
|
1447
|
+
"restaurant-id": d.submission.restaurantId
|
|
1195
1448
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1196
|
-
|
|
1449
|
+
o(D, {
|
|
1197
1450
|
label: "Outlet Photo",
|
|
1198
|
-
modelValue: e(
|
|
1199
|
-
"onUpdate:modelValue":
|
|
1451
|
+
modelValue: e(i).outletPhoto,
|
|
1452
|
+
"onUpdate:modelValue": n[16] || (n[16] = (r) => e(i).outletPhoto = r),
|
|
1200
1453
|
type: "image",
|
|
1201
|
-
"restaurant-id":
|
|
1454
|
+
"restaurant-id": d.submission.restaurantId
|
|
1202
1455
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1203
|
-
|
|
1456
|
+
o(D, {
|
|
1204
1457
|
label: "Interior Photo",
|
|
1205
|
-
modelValue: e(
|
|
1206
|
-
"onUpdate:modelValue":
|
|
1458
|
+
modelValue: e(i).interiorPhoto,
|
|
1459
|
+
"onUpdate:modelValue": n[17] || (n[17] = (r) => e(i).interiorPhoto = r),
|
|
1207
1460
|
type: "image",
|
|
1208
|
-
"restaurant-id":
|
|
1461
|
+
"restaurant-id": d.submission.restaurantId
|
|
1209
1462
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1210
|
-
|
|
1463
|
+
o(D, {
|
|
1211
1464
|
label: "Bank Statement",
|
|
1212
|
-
modelValue: e(
|
|
1213
|
-
"onUpdate:modelValue":
|
|
1465
|
+
modelValue: e(i).bankStatement,
|
|
1466
|
+
"onUpdate:modelValue": n[18] || (n[18] = (r) => e(i).bankStatement = r),
|
|
1214
1467
|
type: "pdf",
|
|
1215
|
-
"restaurant-id":
|
|
1468
|
+
"restaurant-id": d.submission.restaurantId
|
|
1216
1469
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1217
|
-
e(s).businessType === "juristic" ? (u(),
|
|
1470
|
+
e(s).businessType === "juristic" ? (u(), A(D, {
|
|
1218
1471
|
key: 0,
|
|
1219
1472
|
label: "Company Certificate",
|
|
1220
1473
|
type: "pdf",
|
|
1221
|
-
modelValue: e(
|
|
1222
|
-
"onUpdate:modelValue":
|
|
1223
|
-
"restaurant-id":
|
|
1224
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
1225
|
-
e(s).businessType === "juristic" ? (u(),
|
|
1474
|
+
modelValue: e(i).companyCertificate,
|
|
1475
|
+
"onUpdate:modelValue": n[19] || (n[19] = (r) => e(i).companyCertificate = r),
|
|
1476
|
+
"restaurant-id": d.submission.restaurantId
|
|
1477
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
|
|
1478
|
+
e(s).businessType === "juristic" ? (u(), A(D, {
|
|
1226
1479
|
key: 1,
|
|
1227
1480
|
label: "VAT Certificate",
|
|
1228
1481
|
type: "pdf",
|
|
1229
|
-
modelValue: e(
|
|
1230
|
-
"onUpdate:modelValue":
|
|
1231
|
-
"restaurant-id":
|
|
1232
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
1233
|
-
e(s).businessType === "individual" ? (u(),
|
|
1482
|
+
modelValue: e(i).vatCertificate,
|
|
1483
|
+
"onUpdate:modelValue": n[20] || (n[20] = (r) => e(i).vatCertificate = r),
|
|
1484
|
+
"restaurant-id": d.submission.restaurantId
|
|
1485
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : T("", !0),
|
|
1486
|
+
e(s).businessType === "individual" ? (u(), A(D, {
|
|
1234
1487
|
key: 2,
|
|
1235
1488
|
label: "Commercial Certificate",
|
|
1236
1489
|
type: "pdf",
|
|
1237
|
-
modelValue: e(
|
|
1238
|
-
"onUpdate:modelValue":
|
|
1239
|
-
"restaurant-id":
|
|
1240
|
-
}, null, 8, ["modelValue", "restaurant-id"])) :
|
|
1490
|
+
modelValue: e(i).commercialCertificate,
|
|
1491
|
+
"onUpdate:modelValue": n[21] || (n[21] = (r) => e(i).commercialCertificate = r),
|
|
1492
|
+
"restaurant-id": d.submission.restaurantId
|
|
1493
|
+
}, null, 8, ["modelValue", "restaurant-id"])) : T("", !0)
|
|
1241
1494
|
]),
|
|
1242
|
-
|
|
1243
|
-
a("div",
|
|
1244
|
-
a("div",
|
|
1245
|
-
|
|
1495
|
+
n[42] || (n[42] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1496
|
+
a("div", ot, [
|
|
1497
|
+
a("div", rt, [
|
|
1498
|
+
o(F, {
|
|
1246
1499
|
modelValue: e(s).picName,
|
|
1247
|
-
"onUpdate:modelValue":
|
|
1500
|
+
"onUpdate:modelValue": n[22] || (n[22] = (r) => e(s).picName = r),
|
|
1248
1501
|
label: "PIC Name",
|
|
1249
1502
|
"label-mark": "required",
|
|
1250
1503
|
rules: e(p)(e(b).string().min(1, "PIC Name is required"))
|
|
1251
1504
|
}, null, 8, ["modelValue", "rules"])
|
|
1252
1505
|
]),
|
|
1253
|
-
a("div",
|
|
1254
|
-
|
|
1506
|
+
a("div", it, [
|
|
1507
|
+
o(F, {
|
|
1255
1508
|
modelValue: e(s).picRole,
|
|
1256
|
-
"onUpdate:modelValue":
|
|
1509
|
+
"onUpdate:modelValue": n[23] || (n[23] = (r) => e(s).picRole = r),
|
|
1257
1510
|
label: "PIC Role",
|
|
1258
1511
|
"label-mark": "required",
|
|
1259
1512
|
rules: e(p)(e(b).string().min(1, "PIC Role is required"))
|
|
1260
1513
|
}, null, 8, ["modelValue", "rules"])
|
|
1261
1514
|
]),
|
|
1262
|
-
a("div",
|
|
1263
|
-
|
|
1515
|
+
a("div", ut, [
|
|
1516
|
+
o(F, {
|
|
1264
1517
|
modelValue: e(s).picEmail,
|
|
1265
|
-
"onUpdate:modelValue":
|
|
1518
|
+
"onUpdate:modelValue": n[24] || (n[24] = (r) => e(s).picEmail = r),
|
|
1266
1519
|
label: "PIC Email",
|
|
1267
1520
|
"label-mark": "required",
|
|
1268
1521
|
rules: e(p)(e(b).string().min(1, "PIC Email is required"))
|
|
1269
1522
|
}, null, 8, ["modelValue", "rules"])
|
|
1270
1523
|
]),
|
|
1271
|
-
a("div",
|
|
1272
|
-
|
|
1524
|
+
a("div", dt, [
|
|
1525
|
+
o(ie, {
|
|
1273
1526
|
"model-value": e(s).picContact,
|
|
1274
|
-
"onUpdate:modelValue":
|
|
1527
|
+
"onUpdate:modelValue": n[25] || (n[25] = (r) => e(s).picContact = r),
|
|
1275
1528
|
"default-country": "TH",
|
|
1276
1529
|
label: "PIC Contact",
|
|
1277
1530
|
"label-mark": "required",
|
|
1278
1531
|
rules: e(p)(e(b).string().min(1, "PIC Contact is required"))
|
|
1279
1532
|
}, null, 8, ["model-value", "rules"])
|
|
1280
1533
|
]),
|
|
1281
|
-
a("div",
|
|
1282
|
-
|
|
1534
|
+
a("div", mt, [
|
|
1535
|
+
o(F, {
|
|
1283
1536
|
modelValue: e(s).witnessName,
|
|
1284
|
-
"onUpdate:modelValue":
|
|
1537
|
+
"onUpdate:modelValue": n[26] || (n[26] = (r) => e(s).witnessName = r),
|
|
1285
1538
|
label: "Witness Name",
|
|
1286
1539
|
"label-mark": "required",
|
|
1287
1540
|
rules: e(p)(e(b).string().min(1, "Witness Name is required"))
|
|
1288
1541
|
}, null, 8, ["modelValue", "rules"])
|
|
1289
1542
|
]),
|
|
1290
|
-
a("div",
|
|
1291
|
-
|
|
1543
|
+
a("div", pt, [
|
|
1544
|
+
o(F, {
|
|
1292
1545
|
modelValue: e(s).witnessRole,
|
|
1293
|
-
"onUpdate:modelValue":
|
|
1546
|
+
"onUpdate:modelValue": n[27] || (n[27] = (r) => e(s).witnessRole = r),
|
|
1294
1547
|
label: "Witness Role",
|
|
1295
1548
|
"label-mark": "required",
|
|
1296
1549
|
rules: e(p)(e(b).string().min(1, "Witness Role is required"))
|
|
1297
1550
|
}, null, 8, ["modelValue", "rules"])
|
|
1298
1551
|
]),
|
|
1299
|
-
|
|
1552
|
+
o(D, {
|
|
1300
1553
|
label: "Signature",
|
|
1301
1554
|
type: "image",
|
|
1302
|
-
modelValue: e(
|
|
1303
|
-
"onUpdate:modelValue":
|
|
1304
|
-
"restaurant-id":
|
|
1555
|
+
modelValue: e(i).signature,
|
|
1556
|
+
"onUpdate:modelValue": n[28] || (n[28] = (r) => e(i).signature = r),
|
|
1557
|
+
"restaurant-id": d.submission.restaurantId
|
|
1305
1558
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1306
|
-
|
|
1559
|
+
o(D, {
|
|
1307
1560
|
label: "Witness Signature",
|
|
1308
1561
|
type: "image",
|
|
1309
|
-
modelValue: e(
|
|
1310
|
-
"onUpdate:modelValue":
|
|
1311
|
-
"restaurant-id":
|
|
1562
|
+
modelValue: e(i).witnessSignature,
|
|
1563
|
+
"onUpdate:modelValue": n[29] || (n[29] = (r) => e(i).witnessSignature = r),
|
|
1564
|
+
"restaurant-id": d.submission.restaurantId
|
|
1312
1565
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1313
|
-
|
|
1566
|
+
o(D, {
|
|
1314
1567
|
label: "Company Stamp",
|
|
1315
1568
|
type: "image",
|
|
1316
|
-
modelValue: e(
|
|
1317
|
-
"onUpdate:modelValue":
|
|
1318
|
-
"restaurant-id":
|
|
1569
|
+
modelValue: e(i).companyStamp,
|
|
1570
|
+
"onUpdate:modelValue": n[30] || (n[30] = (r) => e(i).companyStamp = r),
|
|
1571
|
+
"restaurant-id": d.submission.restaurantId
|
|
1319
1572
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
1320
1573
|
])
|
|
1321
1574
|
]),
|
|
@@ -1324,7 +1577,7 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
1324
1577
|
], 64);
|
|
1325
1578
|
};
|
|
1326
1579
|
}
|
|
1327
|
-
}),
|
|
1580
|
+
}), ct = /* @__PURE__ */ Q({
|
|
1328
1581
|
__name: "TyroSubmission",
|
|
1329
1582
|
props: {
|
|
1330
1583
|
submission: {
|
|
@@ -1333,9 +1586,9 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
1333
1586
|
}
|
|
1334
1587
|
},
|
|
1335
1588
|
emits: ["update:submission"],
|
|
1336
|
-
setup(
|
|
1337
|
-
const
|
|
1338
|
-
const v =
|
|
1589
|
+
setup(d) {
|
|
1590
|
+
const x = d, m = _(() => {
|
|
1591
|
+
const v = x.submission.fields || {}, c = (C) => v[C] || "N/A";
|
|
1339
1592
|
return [
|
|
1340
1593
|
{
|
|
1341
1594
|
label: "Tyro POS Reference ID",
|
|
@@ -1356,27 +1609,27 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
1356
1609
|
];
|
|
1357
1610
|
});
|
|
1358
1611
|
return (v, c) => {
|
|
1359
|
-
const C = P("FmCardHeader"),
|
|
1360
|
-
return u(), E
|
|
1612
|
+
const C = P("FmCardHeader"), y = P("FmCardSection"), E = P("FmCard");
|
|
1613
|
+
return u(), A(E, {
|
|
1361
1614
|
class: "max-w-3xl mt-8 p-6",
|
|
1362
1615
|
variant: "elevated"
|
|
1363
1616
|
}, {
|
|
1364
1617
|
default: S(() => [
|
|
1365
|
-
|
|
1618
|
+
o(y, { class: "flex flex-col gap-16 justify-between" }, {
|
|
1366
1619
|
default: S(() => [
|
|
1367
|
-
|
|
1620
|
+
o(C, {
|
|
1368
1621
|
class: "p-0",
|
|
1369
1622
|
title: "Tyro Authorisation",
|
|
1370
1623
|
subtitle: ""
|
|
1371
1624
|
}),
|
|
1372
|
-
|
|
1625
|
+
o(y, { class: "p-0" }, {
|
|
1373
1626
|
default: S(() => [
|
|
1374
|
-
(u(!0),
|
|
1627
|
+
(u(!0), k(h, null, K(m.value, (s) => (u(), k("p", {
|
|
1375
1628
|
key: s.label,
|
|
1376
1629
|
class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
|
|
1377
1630
|
}, [
|
|
1378
|
-
a("b", null,
|
|
1379
|
-
|
|
1631
|
+
a("b", null, N(s.label), 1),
|
|
1632
|
+
Y(": " + N(s.value), 1)
|
|
1380
1633
|
]))), 128))
|
|
1381
1634
|
]),
|
|
1382
1635
|
_: 1
|
|
@@ -1389,155 +1642,10 @@ const Re = ["src"], ie = ".png, .jpg, .jpeg", ue = ".pdf", q = /* @__PURE__ */ G
|
|
|
1389
1642
|
});
|
|
1390
1643
|
};
|
|
1391
1644
|
}
|
|
1392
|
-
}),
|
|
1393
|
-
function Hl(i, k = {}) {
|
|
1394
|
-
let d = i.replace(jl, le).replace(_l, le);
|
|
1395
|
-
k.separateNumbers && (d = d.replace(Ml, le).replace(hl, le)), d = d.replace(zl, "\0");
|
|
1396
|
-
let v = 0, c = d.length;
|
|
1397
|
-
for (; d.charAt(v) === "\0"; )
|
|
1398
|
-
v++;
|
|
1399
|
-
if (v === c)
|
|
1400
|
-
return [];
|
|
1401
|
-
for (; d.charAt(c - 1) === "\0"; )
|
|
1402
|
-
c--;
|
|
1403
|
-
return d.slice(v, c).split(/\0/g);
|
|
1404
|
-
}
|
|
1405
|
-
function Wl(i) {
|
|
1406
|
-
return (k) => k.toLocaleLowerCase(i);
|
|
1407
|
-
}
|
|
1408
|
-
function Yl(i) {
|
|
1409
|
-
return (k) => k.toLocaleUpperCase(i);
|
|
1410
|
-
}
|
|
1411
|
-
function me(i, k) {
|
|
1412
|
-
const d = Wl(k == null ? void 0 : k.locale), v = Yl(k == null ? void 0 : k.locale);
|
|
1413
|
-
return Hl(i).map((c, C) => C === 0 ? v(c[0]) + d(c.slice(1)) : d(c)).join(" ");
|
|
1414
|
-
}
|
|
1415
|
-
const Jl = {
|
|
1416
|
-
key: 0,
|
|
1417
|
-
class: "text-sm text-gray-500"
|
|
1418
|
-
}, Gl = {
|
|
1419
|
-
key: 1,
|
|
1420
|
-
class: "relative ml-2 border-l border-gray-200"
|
|
1421
|
-
}, Kl = { class: "flex items-center gap-2" }, Ql = { class: "font-medium text-gray-900" }, Xl = {
|
|
1422
|
-
key: 0,
|
|
1423
|
-
class: "rounded bg-gray-100 px-2 py-[2px] text-xs text-gray-600"
|
|
1424
|
-
}, Zl = { class: "mt-1 text-sm text-gray-500" }, et = {
|
|
1425
|
-
key: 0,
|
|
1426
|
-
class: "mt-1 text-sm text-gray-700"
|
|
1427
|
-
}, lt = /* @__PURE__ */ G({
|
|
1428
|
-
__name: "Timeline",
|
|
1429
|
-
props: {
|
|
1430
|
-
entries: {
|
|
1431
|
-
type: Array,
|
|
1432
|
-
default: () => []
|
|
1433
|
-
}
|
|
1434
|
-
},
|
|
1435
|
-
setup(i) {
|
|
1436
|
-
const k = i, d = {
|
|
1437
|
-
submission: { label: "Submitted", icon: "upload_file", color: "bg-blue-400" },
|
|
1438
|
-
resubmission: {
|
|
1439
|
-
label: "Resubmitted",
|
|
1440
|
-
icon: "upload_file",
|
|
1441
|
-
color: "bg-blue-400"
|
|
1442
|
-
},
|
|
1443
|
-
"send-for-review": {
|
|
1444
|
-
label: "Sent for Review",
|
|
1445
|
-
icon: "send",
|
|
1446
|
-
color: "bg-indigo-400"
|
|
1447
|
-
},
|
|
1448
|
-
"submission-review-approved": {
|
|
1449
|
-
label: "Review Approved",
|
|
1450
|
-
icon: "check_circle",
|
|
1451
|
-
color: "bg-green-400"
|
|
1452
|
-
},
|
|
1453
|
-
"submission-review-rejected": {
|
|
1454
|
-
label: "Review Rejected",
|
|
1455
|
-
icon: "cancel",
|
|
1456
|
-
color: "bg-red-400"
|
|
1457
|
-
},
|
|
1458
|
-
"submission-review-ready": {
|
|
1459
|
-
label: "Marked as Ready",
|
|
1460
|
-
icon: "task_alt",
|
|
1461
|
-
color: "bg-green-400"
|
|
1462
|
-
},
|
|
1463
|
-
"additional-document": {
|
|
1464
|
-
label: "Additional Document Added",
|
|
1465
|
-
icon: "attach_file",
|
|
1466
|
-
color: "bg-gray-400"
|
|
1467
|
-
},
|
|
1468
|
-
reminder: {
|
|
1469
|
-
label: "Reminder Sent",
|
|
1470
|
-
icon: "notifications",
|
|
1471
|
-
color: "bg-yellow-400"
|
|
1472
|
-
},
|
|
1473
|
-
"provider-update": {
|
|
1474
|
-
label: "Provider Update",
|
|
1475
|
-
icon: "update",
|
|
1476
|
-
color: "bg-orange-400"
|
|
1477
|
-
}
|
|
1478
|
-
}, v = {
|
|
1479
|
-
approved: "bg-green-400",
|
|
1480
|
-
ready: "bg-green-400",
|
|
1481
|
-
rejected: "bg-red-400",
|
|
1482
|
-
submitted: "bg-blue-400",
|
|
1483
|
-
pending: "bg-yellow-400"
|
|
1484
|
-
};
|
|
1485
|
-
function c(m) {
|
|
1486
|
-
const R = d[m];
|
|
1487
|
-
if (R) return R;
|
|
1488
|
-
if (m.startsWith("status-update-")) {
|
|
1489
|
-
const s = m.replace("status-update-", "");
|
|
1490
|
-
return {
|
|
1491
|
-
label: `Status Updated to ${me(s)}`,
|
|
1492
|
-
icon: "sync",
|
|
1493
|
-
color: v[s] ?? "bg-gray-400"
|
|
1494
|
-
};
|
|
1495
|
-
}
|
|
1496
|
-
return {
|
|
1497
|
-
label: me(m.replace(/-/g, " ")),
|
|
1498
|
-
icon: "radio_button_checked",
|
|
1499
|
-
color: "bg-gray-400"
|
|
1500
|
-
};
|
|
1501
|
-
}
|
|
1502
|
-
const C = j(
|
|
1503
|
-
() => (k.entries ?? []).map((m) => ({
|
|
1504
|
-
...m,
|
|
1505
|
-
...c(m.action),
|
|
1506
|
-
at: Pe(m.timestamp)
|
|
1507
|
-
})).sort((m, R) => R.at.valueOf() - m.at.valueOf())
|
|
1508
|
-
);
|
|
1509
|
-
return (m, R) => {
|
|
1510
|
-
const s = P("FmIcon");
|
|
1511
|
-
return C.value.length ? (u(), V("ol", Gl, [
|
|
1512
|
-
(u(!0), V(M, null, J(C.value, (r, F) => (u(), V("li", {
|
|
1513
|
-
key: `${r.action}-${r.timestamp}-${F}`,
|
|
1514
|
-
class: "relative pb-6 pl-6 last:pb-0"
|
|
1515
|
-
}, [
|
|
1516
|
-
a("span", {
|
|
1517
|
-
class: Ve([
|
|
1518
|
-
"absolute -left-[8px] top-1 h-4 w-4 rounded-full ring-4 ring-white",
|
|
1519
|
-
r.color
|
|
1520
|
-
])
|
|
1521
|
-
}, null, 2),
|
|
1522
|
-
a("div", Kl, [
|
|
1523
|
-
n(s, {
|
|
1524
|
-
name: r.icon,
|
|
1525
|
-
size: "sm",
|
|
1526
|
-
class: "text-gray-500"
|
|
1527
|
-
}, null, 8, ["name"]),
|
|
1528
|
-
a("span", Ql, U(r.label), 1),
|
|
1529
|
-
F === 0 ? (u(), V("span", Xl, " Latest ")) : B("", !0)
|
|
1530
|
-
]),
|
|
1531
|
-
a("p", Zl, U(r.at.isValid() ? r.at.format("DD MMM YYYY, HH:mm") : r.timestamp), 1),
|
|
1532
|
-
r.description ? (u(), V("p", et, U(r.description), 1)) : B("", !0)
|
|
1533
|
-
]))), 128))
|
|
1534
|
-
])) : (u(), V("p", Jl, " No activity recorded yet. "));
|
|
1535
|
-
};
|
|
1536
|
-
}
|
|
1537
|
-
}), tt = {
|
|
1645
|
+
}), gt = {
|
|
1538
1646
|
key: 0,
|
|
1539
1647
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1540
|
-
},
|
|
1648
|
+
}, yt = { class: "px-32 pb-32" }, Ut = /* @__PURE__ */ Q({
|
|
1541
1649
|
__name: "OnboardForm",
|
|
1542
1650
|
props: {
|
|
1543
1651
|
submissionId: {
|
|
@@ -1545,11 +1653,11 @@ const Jl = {
|
|
|
1545
1653
|
required: !0
|
|
1546
1654
|
}
|
|
1547
1655
|
},
|
|
1548
|
-
setup(
|
|
1549
|
-
const { startAsyncCall:
|
|
1656
|
+
setup(d) {
|
|
1657
|
+
const { startAsyncCall: x, isLoading: m } = ne(), v = ue(), c = d, C = qe(), y = O(null), E = _(
|
|
1550
1658
|
() => {
|
|
1551
|
-
var
|
|
1552
|
-
return ((
|
|
1659
|
+
var $;
|
|
1660
|
+
return (($ = y.value) == null ? void 0 : $.type) === fe.FdoOnboardType.enum.tyro;
|
|
1553
1661
|
}
|
|
1554
1662
|
), s = () => {
|
|
1555
1663
|
if (window.history.length > 1) {
|
|
@@ -1558,46 +1666,46 @@ const Jl = {
|
|
|
1558
1666
|
}
|
|
1559
1667
|
C.push({ name: "mf-payment-admin.onboard-submission" });
|
|
1560
1668
|
};
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1669
|
+
ye(() => {
|
|
1670
|
+
x(async () => {
|
|
1671
|
+
y.value = await M.readById(c.submissionId);
|
|
1564
1672
|
});
|
|
1565
1673
|
});
|
|
1566
|
-
const
|
|
1567
|
-
if (!
|
|
1568
|
-
switch (
|
|
1674
|
+
const i = _(() => {
|
|
1675
|
+
if (!y.value) return null;
|
|
1676
|
+
switch (y.value.type) {
|
|
1569
1677
|
case "softspace":
|
|
1570
|
-
return
|
|
1678
|
+
return Ml;
|
|
1571
1679
|
case "ntt":
|
|
1572
|
-
return
|
|
1680
|
+
return bt;
|
|
1573
1681
|
case "tyro":
|
|
1574
|
-
return
|
|
1682
|
+
return ct;
|
|
1575
1683
|
default:
|
|
1576
1684
|
return null;
|
|
1577
1685
|
}
|
|
1578
|
-
}),
|
|
1579
|
-
function
|
|
1580
|
-
|
|
1686
|
+
}), U = O(0);
|
|
1687
|
+
function g($) {
|
|
1688
|
+
y.value = $, U.value = Date.now();
|
|
1581
1689
|
}
|
|
1582
|
-
const
|
|
1583
|
-
var
|
|
1584
|
-
if (
|
|
1585
|
-
switch (
|
|
1690
|
+
const I = async ($) => {
|
|
1691
|
+
var R, L;
|
|
1692
|
+
if (y.value)
|
|
1693
|
+
switch ($) {
|
|
1586
1694
|
case "preview":
|
|
1587
|
-
let
|
|
1695
|
+
let f;
|
|
1588
1696
|
try {
|
|
1589
|
-
|
|
1697
|
+
f = v.open({
|
|
1590
1698
|
message: "Generating preview document...",
|
|
1591
1699
|
type: "info"
|
|
1592
|
-
}), await
|
|
1593
|
-
} catch (
|
|
1700
|
+
}), await M.previewDocument((R = y.value) == null ? void 0 : R._id);
|
|
1701
|
+
} catch (B) {
|
|
1594
1702
|
v.open({
|
|
1595
1703
|
type: "error",
|
|
1596
1704
|
title: "Error occurs when generating submission document",
|
|
1597
|
-
message:
|
|
1705
|
+
message: G(B)
|
|
1598
1706
|
});
|
|
1599
1707
|
} finally {
|
|
1600
|
-
|
|
1708
|
+
f && v.close(f);
|
|
1601
1709
|
}
|
|
1602
1710
|
break;
|
|
1603
1711
|
case "send":
|
|
@@ -1605,33 +1713,33 @@ const Jl = {
|
|
|
1605
1713
|
v.open({
|
|
1606
1714
|
message: "Sending onboarding document...",
|
|
1607
1715
|
type: "info"
|
|
1608
|
-
}), await
|
|
1716
|
+
}), await M.sendDocument((L = y.value) == null ? void 0 : L._id), v.open({
|
|
1609
1717
|
type: "success",
|
|
1610
1718
|
title: "Submission documents send successfully"
|
|
1611
1719
|
});
|
|
1612
|
-
} catch (
|
|
1720
|
+
} catch (B) {
|
|
1613
1721
|
v.open({
|
|
1614
1722
|
type: "error",
|
|
1615
1723
|
title: "Error occurs when sending document",
|
|
1616
|
-
message:
|
|
1724
|
+
message: G(B)
|
|
1617
1725
|
});
|
|
1618
1726
|
}
|
|
1619
1727
|
break;
|
|
1620
1728
|
}
|
|
1621
1729
|
};
|
|
1622
|
-
return (
|
|
1623
|
-
var
|
|
1624
|
-
const
|
|
1625
|
-
return e(
|
|
1626
|
-
|
|
1627
|
-
])) : (u(),
|
|
1628
|
-
|
|
1629
|
-
title: `Submission - ${(
|
|
1630
|
-
description: `ID - ${(
|
|
1730
|
+
return ($, R) => {
|
|
1731
|
+
var B, X, Z, ee;
|
|
1732
|
+
const L = P("FmCircularProgress"), f = P("FmPageHead");
|
|
1733
|
+
return e(m) ? (u(), k("div", gt, [
|
|
1734
|
+
o(L, { size: "xxl" })
|
|
1735
|
+
])) : (u(), k(h, { key: 1 }, [
|
|
1736
|
+
o(f, {
|
|
1737
|
+
title: `Submission - ${(B = y.value) == null ? void 0 : B.type}`,
|
|
1738
|
+
description: `ID - ${(X = y.value) == null ? void 0 : X._id}`,
|
|
1631
1739
|
"back-button": !0,
|
|
1632
1740
|
"onClick:back": s,
|
|
1633
|
-
"onClick:action":
|
|
1634
|
-
actions:
|
|
1741
|
+
"onClick:action": I,
|
|
1742
|
+
actions: E.value ? [] : [
|
|
1635
1743
|
{
|
|
1636
1744
|
label: "Preview Document",
|
|
1637
1745
|
value: "preview",
|
|
@@ -1645,21 +1753,23 @@ const Jl = {
|
|
|
1645
1753
|
}
|
|
1646
1754
|
]
|
|
1647
1755
|
}, null, 8, ["title", "description", "actions"]),
|
|
1648
|
-
a("div",
|
|
1649
|
-
(u(),
|
|
1650
|
-
key:
|
|
1651
|
-
submission:
|
|
1652
|
-
"onUpdate:submission":
|
|
1756
|
+
a("div", yt, [
|
|
1757
|
+
(u(), A(Re(i.value), {
|
|
1758
|
+
key: U.value,
|
|
1759
|
+
submission: y.value,
|
|
1760
|
+
"onUpdate:submission": g
|
|
1653
1761
|
}, null, 40, ["submission"])),
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1762
|
+
((Z = y.value) == null ? void 0 : Z.type) !== "softspace" ? (u(), k(h, { key: 0 }, [
|
|
1763
|
+
R[0] || (R[0] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Timeline", -1)),
|
|
1764
|
+
o(Ce, {
|
|
1765
|
+
entries: (ee = y.value) == null ? void 0 : ee.timeline
|
|
1766
|
+
}, null, 8, ["entries"])
|
|
1767
|
+
], 64)) : T("", !0)
|
|
1658
1768
|
])
|
|
1659
1769
|
], 64));
|
|
1660
1770
|
};
|
|
1661
1771
|
}
|
|
1662
1772
|
});
|
|
1663
1773
|
export {
|
|
1664
|
-
|
|
1774
|
+
Ut as default
|
|
1665
1775
|
};
|