@feedmepos/mf-payment 1.11.15-dev → 1.11.16-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-jHHxT2aC.js → Actions.vue_vue_type_script_setup_true_lang-C7wa3o3y.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-VFoXeuLu.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BvhrP3i-.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-By8zolfK.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-BjGEcK8R.js} +3 -3
- package/dist/{Chargeback-BU_boVPd.js → Chargeback-CCzx9M4d.js} +6 -6
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-sVsPiyYk.js → DocumentViewer.vue_vue_type_script_setup_true_lang-Cgetk-s9.js} +1 -1
- package/dist/{ExternalTerminal-BuREkqWh.js → ExternalTerminal-BL5sEkJK.js} +7 -7
- package/dist/{OnboardForm-xv4zv6RH.js → OnboardForm-CHBL2xs2.js} +6 -6
- package/dist/{OnboardForm-BPMVwISA.js → OnboardForm-CwoQ-u0X.js} +694 -631
- package/dist/OnboardSubmission-CwdA6Fh0.js +733 -0
- package/dist/{OnboardSubmission-C3ZnK3wz.js → OnboardSubmission-De50hDlQ.js} +6 -6
- package/dist/{PaymentCheckout-Bxi5DX2A.js → PaymentCheckout-C4zXAkTu.js} +2 -2
- package/dist/{PayoutAccount-mFiIK-eR.js → PayoutAccount-ChqGHuRR.js} +7 -7
- package/dist/{PayoutAccount-DBxrNUbb.js → PayoutAccount-CpJaVhKj.js} +5 -5
- package/dist/{PayoutAccountSetting-CCUtehbr.js → PayoutAccountSetting-SjFMSEu9.js} +7 -7
- package/dist/{Restaurant-CtUQKbwI.js → Restaurant-CYJ-XLRZ.js} +5 -5
- package/dist/{RestaurantSetting-BHH2eOVN.js → RestaurantSetting-BdXl1yPZ.js} +22 -8
- package/dist/{Settlement-CO-MmLbZ.js → Settlement-DFRxxs_m.js} +3 -3
- package/dist/{Settlement-X16CO-_E.js → Settlement-DlNwIY-o.js} +4 -4
- package/dist/{SettlementTransactions-Brsp124P.js → SettlementTransactions-C3Fsm_X9.js} +5 -5
- package/dist/{SettlementTransactions-D5I725nZ.js → SettlementTransactions-CGBKh1GN.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-EGE_gOFG.js → Status.vue_vue_type_script_setup_true_lang-B64OGluJ.js} +1 -1
- package/dist/{Terminal-CfYYUt2Y.js → Terminal-C-rbyBC8.js} +7 -7
- package/dist/{TerminalSetting-B7ywXMUB.js → TerminalSetting-CcTRaKIt.js} +776 -650
- package/dist/{TerminalTemplate-yC-gGBJU.js → TerminalTemplate-DLaa9wUZ.js} +5 -5
- package/dist/{TerminalTemplateSetting-CxinRgs9.js → TerminalTemplateSetting-YzhPDF8J.js} +6 -6
- package/dist/{Transaction-BgjI8TyL.js → Transaction-Bk8usnmd.js} +10 -10
- package/dist/{Transaction-BWI8AhZS.js → Transaction-ou3zdIBB.js} +12 -12
- package/dist/{TransactionOld-DMXawoi0.js → TransactionOld-0X1celu9.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-BgrsuHFn.js → TransactionStatus.vue_vue_type_script_setup_true_lang-BS4AYaq1.js} +1 -1
- package/dist/api/onboard-submission/index.d.ts +6 -1
- package/dist/api/terminal/index.d.ts +2 -1
- package/dist/{app-CgsrQ6oc.js → app-obftSkFb.js} +10174 -9260
- package/dist/app.js +1 -1
- package/dist/{assets-DZQKL_fH.js → assets-DLPXM2Y4.js} +47 -46
- package/dist/{grafana-YDhbkDxd.js → grafana-BXLOtIvx.js} +1 -1
- package/dist/{index-Corqznx3.js → index-BQadSOBj.js} +6 -1
- package/dist/{index-CCVtM-GN.js → index-Baec1AT2.js} +6901 -6958
- package/dist/{index-CRUvX-Q1.js → index-CAT0OmJZ.js} +1 -1
- package/dist/{index-Dd7KHdD-.js → index-CJPHA9xo.js} +1 -1
- package/dist/{index-CGG3_dOy.js → index-CK7aA2pd.js} +1 -1
- package/dist/{index-BxxakqT7.js → index-CR-HSdwu.js} +2 -2
- package/dist/{index-noO83PTl.js → index-CtbE-KF0.js} +1 -1
- package/dist/{index-DzpswLTy.js → index-DRy36FqO.js} +1 -1
- package/dist/{index-CRwE0jgw.js → index-Dlng-M3Z.js} +39 -5
- package/dist/{index-D7cOsILR.js → index-a8lvAiCb.js} +1 -1
- package/dist/{index-62AsZ3ly.js → index-owIgdVJd.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DRHqtOV6.js → index.vue_vue_type_script_setup_true_lang-DrxOa3Bv.js} +1 -1
- package/dist/model/onboard-submission.d.ts +5 -5
- package/dist/{onboard-submission-B14SKa5e.js → onboard-submission-Dzw9Nu3k.js} +4 -3
- package/dist/package.json +5 -5
- package/dist/{payout-account-DkHFhIZJ.js → payout-account-BXeQXNBN.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{tyro-BovmsorS.js → teya-UA6TM323.js} +3 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{useQuery-D9w7g4U4.js → useQuery-COlCU4ZR.js} +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +4 -4
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +4 -4
- package/dist/views/admin/onboard-submission/forms/TeyaSubmission.vue.d.ts +117 -0
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +4 -4
- 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/restaurant/tabs/PaymentGateway.vue.d.ts +32 -8
- package/dist/views/admin/restaurant/tabs/gateway/MaybankGateway.vue.d.ts +4 -0
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/ecr/TeyaGateway.vue.d.ts +210 -0
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +16 -2
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +16 -2
- package/dist/views/admin/terminal-template/TerminalTemplateSideSheet.vue.d.ts +4 -4
- package/dist/views/admin/terminal-template/tabs/EcrGateways.vue.d.ts +2 -2
- package/dist/views/admin/terminal-template/tabs/Information.vue.d.ts +2 -2
- package/dist/views/onboard-submission/useTeyaConnect.d.ts +71 -0
- package/package.json +5 -5
- package/dist/OnboardSubmission-CIfvaz_u.js +0 -449
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { o as
|
|
3
|
-
import { u as ne, p as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { z as
|
|
6
|
-
import { D as qe, P as
|
|
7
|
-
import { a as $e } from "./onboard-submission-
|
|
8
|
-
import { _ as ke } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { s as
|
|
10
|
-
import { _ as Ce } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { useSnackbar as
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
1
|
+
import { defineComponent as G, ref as B, computed as j, resolveComponent as h, openBlock as i, createElementBlock as p, createElementVNode as s, toDisplayString as R, createBlock as _, withCtx as P, createCommentVNode as E, createVNode as o, unref as e, onMounted as Ve, watch as he, Fragment as L, renderList as O, normalizeClass as ie, nextTick as Ie, resolveDynamicComponent as ue, createTextVNode as H } from "vue";
|
|
2
|
+
import { o as z } from "./index-Dlng-M3Z.js";
|
|
3
|
+
import { u as ne, p as de } from "./index-Baec1AT2.js";
|
|
4
|
+
import { useRouter as Re } from "vue-router";
|
|
5
|
+
import { z as y, a as f } from "./validator-CTlVogBQ.js";
|
|
6
|
+
import { D as qe, P as Fe } from "./payout-account-BXeQXNBN.js";
|
|
7
|
+
import { a as $e } from "./onboard-submission-Dzw9Nu3k.js";
|
|
8
|
+
import { _ as ke } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-Cgetk-s9.js";
|
|
9
|
+
import { s as Ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
+
import { _ as Ce } from "./Status.vue_vue_type_script_setup_true_lang-B64OGluJ.js";
|
|
11
|
+
import { useSnackbar as me } from "@feedmepos/ui-library";
|
|
12
|
+
import { u as J } from "./error-K1CakhA9.js";
|
|
13
|
+
const Te = ["src"], ce = ".png, .jpg, .jpeg", be = ".pdf", D = /* @__PURE__ */ G({
|
|
14
14
|
__name: "UploadButton",
|
|
15
15
|
props: {
|
|
16
16
|
modelValue: {},
|
|
@@ -19,52 +19,52 @@ const Fe = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", T = /* @__PURE__ */ J
|
|
|
19
19
|
restaurantId: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:modelValue"],
|
|
22
|
-
setup(d, { emit:
|
|
23
|
-
const u = d,
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
},
|
|
22
|
+
setup(d, { emit: V }) {
|
|
23
|
+
const u = d, v = B(u.modelValue), c = V, m = (r) => {
|
|
24
|
+
const x = new FileReader();
|
|
25
|
+
x.onload = (g) => {
|
|
26
|
+
var I;
|
|
27
|
+
v.value = (I = g.target) == null ? void 0 : I.result, c("update:modelValue", r);
|
|
28
|
+
}, x.readAsDataURL(r);
|
|
29
|
+
}, b = (r) => {
|
|
30
30
|
window.open(r, "_blank", "noopener,noreferrer");
|
|
31
|
-
},
|
|
32
|
-
return (r,
|
|
33
|
-
const
|
|
31
|
+
}, C = j(() => u.type === "image" ? ce : u.type === "pdf" ? be : `${ce}, ${be}`), l = (r) => u.type === "pdf" ? !0 : u.type === "image" ? !1 : r === "application/pdf";
|
|
32
|
+
return (r, x) => {
|
|
33
|
+
const g = h("FmButton"), I = h("FmDropField");
|
|
34
34
|
return i(), p("div", null, [
|
|
35
|
-
s("p", null,
|
|
36
|
-
|
|
35
|
+
s("p", null, R(d.label), 1),
|
|
36
|
+
v.value ? (i(), _(ke, {
|
|
37
37
|
key: 0,
|
|
38
|
-
document:
|
|
38
|
+
document: v.value,
|
|
39
39
|
"restaurant-id": d.restaurantId
|
|
40
40
|
}, {
|
|
41
|
-
default:
|
|
42
|
-
|
|
41
|
+
default: P(({ src: U, type: N }) => [
|
|
42
|
+
l(N) ? (i(), _(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: () =>
|
|
48
|
+
onVnodeMounted: () => b(U),
|
|
49
|
+
onClick: () => b(U)
|
|
50
50
|
}, null, 8, ["onVnodeMounted", "onClick"])) : (i(), p("img", {
|
|
51
51
|
key: 0,
|
|
52
|
-
src:
|
|
53
|
-
}, null, 8,
|
|
52
|
+
src: U
|
|
53
|
+
}, null, 8, Te))
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
}, 8, ["document", "restaurant-id"])) : (i(),
|
|
56
|
+
}, 8, ["document", "restaurant-id"])) : (i(), _(I, {
|
|
57
57
|
key: 1,
|
|
58
|
-
accept:
|
|
58
|
+
accept: C.value,
|
|
59
59
|
onFileUpload: m
|
|
60
60
|
}, null, 8, ["accept"]))
|
|
61
61
|
]);
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
64
|
+
}), De = ["src"], _e = {
|
|
65
65
|
key: 0,
|
|
66
66
|
class: "text-center text-red-700 py-4"
|
|
67
|
-
},
|
|
67
|
+
}, Ee = { class: "flex justify-evenly py-3" }, Le = /* @__PURE__ */ G({
|
|
68
68
|
__name: "SignatureBoard",
|
|
69
69
|
props: {
|
|
70
70
|
modelValue: {},
|
|
@@ -72,73 +72,73 @@ const Fe = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", T = /* @__PURE__ */ J
|
|
|
72
72
|
restaurantId: {}
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:modelValue"],
|
|
75
|
-
setup(d, { emit:
|
|
76
|
-
const u = d,
|
|
77
|
-
function
|
|
78
|
-
var
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
const k = new Uint8Array(
|
|
82
|
-
for (;
|
|
83
|
-
k[
|
|
84
|
-
return new File([k],
|
|
75
|
+
setup(d, { emit: V }) {
|
|
76
|
+
const u = d, v = V, c = B(u.modelValue), m = B(!1), b = B(), C = B(!1);
|
|
77
|
+
function l(x, g) {
|
|
78
|
+
var w;
|
|
79
|
+
const I = x.split(","), U = ((w = I[0].match(/:(.*?);/)) == null ? void 0 : w[1]) || "", N = atob(I[1]);
|
|
80
|
+
let q = N.length;
|
|
81
|
+
const k = new Uint8Array(q);
|
|
82
|
+
for (; q--; )
|
|
83
|
+
k[q] = N.charCodeAt(q);
|
|
84
|
+
return new File([k], g, { type: U });
|
|
85
85
|
}
|
|
86
86
|
const r = function() {
|
|
87
|
-
const { isEmpty:
|
|
88
|
-
if (
|
|
87
|
+
const { isEmpty: x, data: g } = b.value.saveSignature();
|
|
88
|
+
if (x)
|
|
89
89
|
return m.value = !0;
|
|
90
|
-
|
|
90
|
+
c.value = g, C.value = !1, v("update:modelValue", l(g, "signature.png"));
|
|
91
91
|
};
|
|
92
|
-
return (
|
|
93
|
-
const
|
|
92
|
+
return (x, g) => {
|
|
93
|
+
const I = h("FmButton"), U = h("FmDialog");
|
|
94
94
|
return i(), p("div", null, [
|
|
95
|
-
s("p", null,
|
|
96
|
-
|
|
95
|
+
s("p", null, R(d.label), 1),
|
|
96
|
+
c.value ? (i(), _(ke, {
|
|
97
97
|
key: 0,
|
|
98
|
-
document:
|
|
98
|
+
document: c.value,
|
|
99
99
|
"restaurant-id": d.restaurantId
|
|
100
100
|
}, {
|
|
101
|
-
default:
|
|
101
|
+
default: P(({ src: N }) => [
|
|
102
102
|
s("img", {
|
|
103
103
|
src: N,
|
|
104
104
|
alt: "Signature Preview",
|
|
105
105
|
class: "w-full h-auto"
|
|
106
|
-
}, null, 8,
|
|
106
|
+
}, null, 8, De)
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["document", "restaurant-id"])) : E("", !0),
|
|
110
|
-
|
|
110
|
+
c.value ? E("", !0) : (i(), _(U, {
|
|
111
111
|
key: 1,
|
|
112
|
-
modelValue:
|
|
113
|
-
"onUpdate:modelValue":
|
|
112
|
+
modelValue: C.value,
|
|
113
|
+
"onUpdate:modelValue": g[1] || (g[1] = (N) => C.value = N)
|
|
114
114
|
}, {
|
|
115
|
-
"dialog-button":
|
|
116
|
-
o(
|
|
115
|
+
"dialog-button": P(() => [
|
|
116
|
+
o(I, {
|
|
117
117
|
"prepend-icon": "signature",
|
|
118
118
|
class: "w-full",
|
|
119
119
|
label: "Signature"
|
|
120
120
|
})
|
|
121
121
|
]),
|
|
122
|
-
"dialog-header":
|
|
122
|
+
"dialog-header": P(() => [...g[2] || (g[2] = [
|
|
123
123
|
s("div", null, "Signature Board", -1)
|
|
124
124
|
])]),
|
|
125
|
-
default:
|
|
126
|
-
o(e(
|
|
125
|
+
default: P(() => [
|
|
126
|
+
o(e(Ue), {
|
|
127
127
|
ref_key: "signaturePad",
|
|
128
|
-
ref:
|
|
128
|
+
ref: b,
|
|
129
129
|
height: "300px",
|
|
130
130
|
customStyle: { border: "2px solid #ccc", borderRadius: "3px" },
|
|
131
131
|
options: { penColor: "#000000" }
|
|
132
132
|
}, null, 512),
|
|
133
|
-
m.value ? (i(), p("p",
|
|
134
|
-
s("div",
|
|
135
|
-
o(
|
|
133
|
+
m.value ? (i(), p("p", _e, " Please sign your signature before saving. ")) : E("", !0),
|
|
134
|
+
s("div", Ee, [
|
|
135
|
+
o(I, {
|
|
136
136
|
variant: "destructive",
|
|
137
137
|
label: "Clear",
|
|
138
138
|
"prepend-icon": "delete",
|
|
139
|
-
onClick:
|
|
139
|
+
onClick: g[0] || (g[0] = (N) => b.value.clearSignature())
|
|
140
140
|
}),
|
|
141
|
-
o(
|
|
141
|
+
o(I, {
|
|
142
142
|
label: "Save",
|
|
143
143
|
"prepend-icon": "save",
|
|
144
144
|
onClick: r
|
|
@@ -150,28 +150,28 @@ const Fe = ["src"], pe = ".png, .jpg, .jpeg", be = ".pdf", T = /* @__PURE__ */ J
|
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}),
|
|
154
|
-
function He(d,
|
|
155
|
-
let u = d.replace(
|
|
156
|
-
|
|
157
|
-
let
|
|
158
|
-
for (; u.charAt(
|
|
159
|
-
|
|
160
|
-
if (
|
|
153
|
+
}), Ae = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), Be = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), Oe = new RegExp("(\\d)(\\p{Ll})", "gu"), je = new RegExp("(\\p{L})(\\d)", "gu"), Me = /[^\p{L}\d]+/giu, ae = "$1\0$2";
|
|
154
|
+
function He(d, V = {}) {
|
|
155
|
+
let u = d.replace(Ae, ae).replace(Be, ae);
|
|
156
|
+
V.separateNumbers && (u = u.replace(Oe, ae).replace(je, ae)), u = u.replace(Me, "\0");
|
|
157
|
+
let v = 0, c = u.length;
|
|
158
|
+
for (; u.charAt(v) === "\0"; )
|
|
159
|
+
v++;
|
|
160
|
+
if (v === c)
|
|
161
161
|
return [];
|
|
162
|
-
for (; u.charAt(
|
|
163
|
-
|
|
164
|
-
return u.slice(
|
|
162
|
+
for (; u.charAt(c - 1) === "\0"; )
|
|
163
|
+
c--;
|
|
164
|
+
return u.slice(v, c).split(/\0/g);
|
|
165
165
|
}
|
|
166
166
|
function ze(d) {
|
|
167
|
-
return (
|
|
167
|
+
return (V) => V.toLocaleLowerCase(d);
|
|
168
168
|
}
|
|
169
169
|
function We(d) {
|
|
170
|
-
return (
|
|
170
|
+
return (V) => V.toLocaleUpperCase(d);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
const u = ze(
|
|
174
|
-
return He(d).map((
|
|
172
|
+
function ge(d, V) {
|
|
173
|
+
const u = ze(V == null ? void 0 : V.locale), v = We(V == null ? void 0 : V.locale);
|
|
174
|
+
return He(d).map((c, m) => m === 0 ? v(c[0]) + u(c.slice(1)) : u(c)).join(" ");
|
|
175
175
|
}
|
|
176
176
|
const Ye = {
|
|
177
177
|
key: 0,
|
|
@@ -191,7 +191,7 @@ const Ye = {
|
|
|
191
191
|
}, lt = {
|
|
192
192
|
key: 5,
|
|
193
193
|
class: "mt-1 whitespace-pre-line break-words text-xs text-gray-700"
|
|
194
|
-
}, xe = /* @__PURE__ */
|
|
194
|
+
}, xe = /* @__PURE__ */ G({
|
|
195
195
|
__name: "Timeline",
|
|
196
196
|
props: {
|
|
197
197
|
entries: {
|
|
@@ -200,7 +200,7 @@ const Ye = {
|
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
202
|
setup(d) {
|
|
203
|
-
const
|
|
203
|
+
const V = d, u = {
|
|
204
204
|
submission: { label: "Submitted", icon: "upload_file", color: "bg-blue-400" },
|
|
205
205
|
resubmission: {
|
|
206
206
|
label: "Resubmitted",
|
|
@@ -262,84 +262,84 @@ const Ye = {
|
|
|
262
262
|
icon: "update",
|
|
263
263
|
color: "bg-orange-400"
|
|
264
264
|
}
|
|
265
|
-
},
|
|
265
|
+
}, v = {
|
|
266
266
|
approved: "bg-green-400",
|
|
267
267
|
ready: "bg-green-400",
|
|
268
268
|
rejected: "bg-red-400",
|
|
269
269
|
submitted: "bg-blue-400",
|
|
270
270
|
pending: "bg-yellow-400"
|
|
271
271
|
};
|
|
272
|
-
function
|
|
273
|
-
const r = u[
|
|
272
|
+
function c(l) {
|
|
273
|
+
const r = u[l];
|
|
274
274
|
if (r) return r;
|
|
275
|
-
if (
|
|
276
|
-
const
|
|
275
|
+
if (l.startsWith("status-update-")) {
|
|
276
|
+
const x = l.replace("status-update-", "");
|
|
277
277
|
return {
|
|
278
|
-
label: `Status Updated to ${
|
|
278
|
+
label: `Status Updated to ${ge(x)}`,
|
|
279
279
|
icon: "sync",
|
|
280
|
-
color:
|
|
280
|
+
color: v[x] ?? "bg-gray-400"
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
283
|
return {
|
|
284
|
-
label:
|
|
284
|
+
label: ge(l.replace(/-/g, " ")),
|
|
285
285
|
icon: "radio_button_checked",
|
|
286
286
|
color: "bg-gray-400"
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
const m = j(
|
|
290
|
-
() => (
|
|
291
|
-
...
|
|
292
|
-
...
|
|
293
|
-
at: qe(
|
|
294
|
-
})).sort((
|
|
295
|
-
),
|
|
296
|
-
await
|
|
290
|
+
() => (V.entries ?? []).map((l) => ({
|
|
291
|
+
...l,
|
|
292
|
+
...c(l.action),
|
|
293
|
+
at: qe(l.timestamp)
|
|
294
|
+
})).sort((l, r) => l.at.valueOf() - r.at.valueOf())
|
|
295
|
+
), b = B(null), C = async () => {
|
|
296
|
+
await Ie(), b.value && (b.value.scrollLeft = b.value.scrollWidth);
|
|
297
297
|
};
|
|
298
|
-
return
|
|
299
|
-
const
|
|
298
|
+
return Ve(C), he(() => m.value.length, C), (l, r) => {
|
|
299
|
+
const x = h("FmIcon");
|
|
300
300
|
return m.value.length ? (i(), p("div", {
|
|
301
301
|
key: 1,
|
|
302
302
|
ref_key: "rail",
|
|
303
|
-
ref:
|
|
303
|
+
ref: b,
|
|
304
304
|
class: "overflow-x-auto mt-6 pb-6"
|
|
305
305
|
}, [
|
|
306
306
|
s("ol", Qe, [
|
|
307
|
-
(i(!0), p(
|
|
308
|
-
key: `${
|
|
307
|
+
(i(!0), p(L, null, O(m.value, (g, I) => (i(), p("li", {
|
|
308
|
+
key: `${g.action}-${g.timestamp}-${I}`,
|
|
309
309
|
class: "relative flex w-[160px] shrink-0 flex-col items-center px-8 text-center"
|
|
310
310
|
}, [
|
|
311
|
-
|
|
312
|
-
|
|
311
|
+
I > 0 ? (i(), p("span", Ge)) : E("", !0),
|
|
312
|
+
I < m.value.length - 1 ? (i(), p("span", Je)) : E("", !0),
|
|
313
313
|
s("span", {
|
|
314
314
|
class: ie([
|
|
315
315
|
"relative z-10 h-4 w-4 rounded-full ring-4 ring-white",
|
|
316
|
-
|
|
316
|
+
g.color
|
|
317
317
|
])
|
|
318
318
|
}, null, 2),
|
|
319
|
-
o(
|
|
320
|
-
name:
|
|
319
|
+
o(x, {
|
|
320
|
+
name: g.icon,
|
|
321
321
|
size: "sm",
|
|
322
322
|
class: "mt-3 text-gray-500"
|
|
323
323
|
}, null, 8, ["name"]),
|
|
324
|
-
s("span", Ke,
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
s("span", Ze,
|
|
328
|
-
s("span", et,
|
|
329
|
-
], 64)) : (i(), p("span", tt,
|
|
330
|
-
|
|
324
|
+
s("span", Ke, R(g.label), 1),
|
|
325
|
+
I === m.value.length - 1 ? (i(), p("span", Xe, " Latest ")) : E("", !0),
|
|
326
|
+
g.at.isValid() ? (i(), p(L, { key: 3 }, [
|
|
327
|
+
s("span", Ze, R(g.at.format("DD MMM YYYY")), 1),
|
|
328
|
+
s("span", et, R(g.at.format("HH:mm")), 1)
|
|
329
|
+
], 64)) : (i(), p("span", tt, R(g.timestamp), 1)),
|
|
330
|
+
g.description ? (i(), p("span", lt, R(g.description), 1)) : E("", !0)
|
|
331
331
|
]))), 128))
|
|
332
332
|
])
|
|
333
333
|
], 512)) : (i(), p("p", Ye, " No activity recorded yet. "));
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
|
-
}), se = "\0", at = /^(#{1,6})\s+(.*)$/, st = /^[-*+]\s+(.*)$/, nt = /^\d+[.)]\s+(.*)$/, ot = /^(-{3,}|\*{3,}|_{3,})$/, rt = /^>\s?(.*)$/,
|
|
337
|
-
function
|
|
336
|
+
}), se = "\0", at = /^(#{1,6})\s+(.*)$/, st = /^[-*+]\s+(.*)$/, nt = /^\d+[.)]\s+(.*)$/, ot = /^(-{3,}|\*{3,}|_{3,})$/, rt = /^>\s?(.*)$/, ye = /^\|(.+)\|$/, it = /^\|[\s:|-]+\|$/;
|
|
337
|
+
function fe(d) {
|
|
338
338
|
return d.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
339
339
|
}
|
|
340
340
|
function ee(d) {
|
|
341
|
-
const
|
|
342
|
-
return
|
|
341
|
+
const V = [], u = d.replace(/`([^`]+)`/g, (c, m) => (V.push(m), `${se}${V.length - 1}${se}`));
|
|
342
|
+
return fe(u).replace(
|
|
343
343
|
/\[([^\]]+)\]\((https?:\/\/[^\s)]+)\)/g,
|
|
344
344
|
'<a href="$2" target="_blank" rel="noopener noreferrer" class="text-blue-600 underline">$1</a>'
|
|
345
345
|
).replace(
|
|
@@ -350,88 +350,88 @@ function ee(d) {
|
|
|
350
350
|
'<strong class="font-semibold text-gray-900">$1</strong>'
|
|
351
351
|
).replace(/(^|[^*])\*(\S(?:[^*\n]*\S)?)\*/g, "$1<em>$2</em>").replace(
|
|
352
352
|
new RegExp(`${se}(\\d+)${se}`, "g"),
|
|
353
|
-
(
|
|
354
|
-
|
|
353
|
+
(c, m) => `<code class="rounded bg-gray-100 px-1 py-[1px] text-[13px]">${fe(
|
|
354
|
+
V[Number(m)]
|
|
355
355
|
)}</code>`
|
|
356
356
|
);
|
|
357
357
|
}
|
|
358
358
|
function ut(d) {
|
|
359
|
-
return d.slice(1, -1).split("|").map((
|
|
359
|
+
return d.slice(1, -1).split("|").map((V) => ee(V.trim()));
|
|
360
360
|
}
|
|
361
361
|
function dt(d) {
|
|
362
|
-
const
|
|
362
|
+
const V = (d ?? "").replace(/\r\n/g, `
|
|
363
363
|
`).split(`
|
|
364
364
|
`), u = [];
|
|
365
|
-
let
|
|
365
|
+
let v = [], c = [];
|
|
366
366
|
const m = () => {
|
|
367
|
-
|
|
367
|
+
v.length && (u.push({
|
|
368
368
|
type: "paragraph",
|
|
369
|
-
html: ee(
|
|
370
|
-
}),
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
},
|
|
374
|
-
m(),
|
|
369
|
+
html: ee(v.join(" "))
|
|
370
|
+
}), v = []);
|
|
371
|
+
}, b = () => {
|
|
372
|
+
c.length && (u.push({ type: "quote", html: ee(c.join(" ")) }), c = []);
|
|
373
|
+
}, C = () => {
|
|
374
|
+
m(), b();
|
|
375
375
|
};
|
|
376
|
-
for (let
|
|
377
|
-
const r =
|
|
378
|
-
if (
|
|
379
|
-
|
|
376
|
+
for (let l = 0; l < V.length; l += 1) {
|
|
377
|
+
const r = V[l].replace(/\t/g, " "), x = r.trim();
|
|
378
|
+
if (x.startsWith("```")) {
|
|
379
|
+
C();
|
|
380
380
|
continue;
|
|
381
381
|
}
|
|
382
|
-
if (!
|
|
383
|
-
|
|
382
|
+
if (!x) {
|
|
383
|
+
C();
|
|
384
384
|
continue;
|
|
385
385
|
}
|
|
386
|
-
const
|
|
387
|
-
if (
|
|
388
|
-
|
|
386
|
+
const g = x.match(at);
|
|
387
|
+
if (g) {
|
|
388
|
+
C(), u.push({
|
|
389
389
|
type: "heading",
|
|
390
|
-
level:
|
|
391
|
-
html: ee(
|
|
390
|
+
level: g[1].length,
|
|
391
|
+
html: ee(g[2])
|
|
392
392
|
});
|
|
393
393
|
continue;
|
|
394
394
|
}
|
|
395
|
-
if (ot.test(
|
|
396
|
-
|
|
395
|
+
if (ot.test(x)) {
|
|
396
|
+
C(), u.push({ type: "rule" });
|
|
397
397
|
continue;
|
|
398
398
|
}
|
|
399
|
-
const
|
|
400
|
-
if (
|
|
401
|
-
m(),
|
|
399
|
+
const I = x.match(rt);
|
|
400
|
+
if (I) {
|
|
401
|
+
m(), c.push(I[1]);
|
|
402
402
|
continue;
|
|
403
403
|
}
|
|
404
|
-
if (
|
|
405
|
-
|
|
406
|
-
const
|
|
404
|
+
if (ye.test(x)) {
|
|
405
|
+
C();
|
|
406
|
+
const q = [];
|
|
407
407
|
let k = [];
|
|
408
|
-
for (;
|
|
409
|
-
const
|
|
410
|
-
if (!
|
|
411
|
-
it.test(
|
|
408
|
+
for (; l < V.length; ) {
|
|
409
|
+
const w = V[l].trim();
|
|
410
|
+
if (!ye.test(w)) break;
|
|
411
|
+
it.test(w) ? k = q.shift() ?? [] : q.push(ut(w)), l += 1;
|
|
412
412
|
}
|
|
413
|
-
|
|
413
|
+
l -= 1, u.push({ type: "table", head: k, rows: q });
|
|
414
414
|
continue;
|
|
415
415
|
}
|
|
416
|
-
const
|
|
417
|
-
if (
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
if (k >= 2 && (
|
|
421
|
-
|
|
416
|
+
const U = x.match(st), N = x.match(nt);
|
|
417
|
+
if (U || N) {
|
|
418
|
+
C();
|
|
419
|
+
const q = (U ?? N)[1], k = r.length - r.trimStart().length, w = u[u.length - 1];
|
|
420
|
+
if (k >= 2 && (w == null ? void 0 : w.type) === "list" && w.items.length) {
|
|
421
|
+
w.items[w.items.length - 1].children.push(ee(q));
|
|
422
422
|
continue;
|
|
423
423
|
}
|
|
424
|
-
const
|
|
425
|
-
(
|
|
424
|
+
const W = { html: ee(q), children: [] };
|
|
425
|
+
(w == null ? void 0 : w.type) === "list" && w.ordered === !!N ? w.items.push(W) : u.push({
|
|
426
426
|
type: "list",
|
|
427
427
|
ordered: !!N,
|
|
428
|
-
items: [
|
|
428
|
+
items: [W]
|
|
429
429
|
});
|
|
430
430
|
continue;
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
b(), v.push(x);
|
|
433
433
|
}
|
|
434
|
-
return
|
|
434
|
+
return C(), u;
|
|
435
435
|
}
|
|
436
436
|
const mt = {
|
|
437
437
|
key: 0,
|
|
@@ -439,7 +439,7 @@ const mt = {
|
|
|
439
439
|
}, pt = {
|
|
440
440
|
key: 1,
|
|
441
441
|
class: "space-y-3 rounded-lg border border-gray-200 bg-gray-50 p-6 text-sm leading-relaxed text-gray-700"
|
|
442
|
-
},
|
|
442
|
+
}, ct = ["innerHTML"], bt = {
|
|
443
443
|
key: 0,
|
|
444
444
|
class: "mt-1 list-[circle] space-y-1 pl-5"
|
|
445
445
|
}, gt = ["innerHTML"], yt = {
|
|
@@ -448,7 +448,7 @@ const mt = {
|
|
|
448
448
|
}, ft = { class: "w-full border-collapse text-left" }, vt = { key: 0 }, Vt = ["innerHTML"], kt = ["innerHTML"], Ct = ["innerHTML"], xt = {
|
|
449
449
|
key: 4,
|
|
450
450
|
class: "border-gray-200"
|
|
451
|
-
},
|
|
451
|
+
}, St = ["innerHTML"], wt = /* @__PURE__ */ G({
|
|
452
452
|
__name: "AiSummary",
|
|
453
453
|
props: {
|
|
454
454
|
summary: {
|
|
@@ -457,24 +457,24 @@ const mt = {
|
|
|
457
457
|
}
|
|
458
458
|
},
|
|
459
459
|
setup(d) {
|
|
460
|
-
const
|
|
461
|
-
return (
|
|
462
|
-
(i(!0), p(
|
|
463
|
-
m.type === "heading" ? (i(),
|
|
460
|
+
const V = d, u = j(() => dt(V.summary));
|
|
461
|
+
return (v, c) => u.value.length ? (i(), p("div", pt, [
|
|
462
|
+
(i(!0), p(L, null, O(u.value, (m, b) => (i(), p(L, { key: b }, [
|
|
463
|
+
m.type === "heading" ? (i(), _(ue(m.level <= 2 ? "h4" : "h5"), {
|
|
464
464
|
key: 0,
|
|
465
465
|
class: ie(["pt-2 font-semibold text-gray-900 first:pt-0", m.level <= 2 ? "text-base" : "text-sm"]),
|
|
466
466
|
innerHTML: m.html
|
|
467
|
-
}, null, 8, ["class", "innerHTML"])) : m.type === "list" ? (i(),
|
|
467
|
+
}, null, 8, ["class", "innerHTML"])) : m.type === "list" ? (i(), _(ue(m.ordered ? "ol" : "ul"), {
|
|
468
468
|
key: 1,
|
|
469
469
|
class: ie(["space-y-1 pl-5", m.ordered ? "list-decimal" : "list-disc"])
|
|
470
470
|
}, {
|
|
471
|
-
default:
|
|
472
|
-
(i(!0), p(
|
|
471
|
+
default: P(() => [
|
|
472
|
+
(i(!0), p(L, null, O(m.items, (C, l) => (i(), p("li", { key: l }, [
|
|
473
473
|
s("span", {
|
|
474
|
-
innerHTML:
|
|
475
|
-
}, null, 8,
|
|
476
|
-
|
|
477
|
-
(i(!0), p(
|
|
474
|
+
innerHTML: C.html
|
|
475
|
+
}, null, 8, ct),
|
|
476
|
+
C.children.length ? (i(), p("ul", bt, [
|
|
477
|
+
(i(!0), p(L, null, O(C.children, (r, x) => (i(), p("li", { key: x }, [
|
|
478
478
|
s("span", { innerHTML: r }, null, 8, gt)
|
|
479
479
|
]))), 128))
|
|
480
480
|
])) : E("", !0)
|
|
@@ -485,17 +485,17 @@ const mt = {
|
|
|
485
485
|
s("table", ft, [
|
|
486
486
|
m.head.length ? (i(), p("thead", vt, [
|
|
487
487
|
s("tr", null, [
|
|
488
|
-
(i(!0), p(
|
|
489
|
-
key:
|
|
488
|
+
(i(!0), p(L, null, O(m.head, (C, l) => (i(), p("th", {
|
|
489
|
+
key: l,
|
|
490
490
|
class: "border-b border-gray-300 px-2 py-1 font-semibold text-gray-900",
|
|
491
|
-
innerHTML:
|
|
491
|
+
innerHTML: C
|
|
492
492
|
}, null, 8, Vt))), 128))
|
|
493
493
|
])
|
|
494
494
|
])) : E("", !0),
|
|
495
495
|
s("tbody", null, [
|
|
496
|
-
(i(!0), p(
|
|
497
|
-
(i(!0), p(
|
|
498
|
-
key:
|
|
496
|
+
(i(!0), p(L, null, O(m.rows, (C, l) => (i(), p("tr", { key: l }, [
|
|
497
|
+
(i(!0), p(L, null, O(C, (r, x) => (i(), p("td", {
|
|
498
|
+
key: x,
|
|
499
499
|
class: "border-b border-gray-200 px-2 py-1 align-top",
|
|
500
500
|
innerHTML: r
|
|
501
501
|
}, null, 8, kt))), 128))
|
|
@@ -509,20 +509,20 @@ const mt = {
|
|
|
509
509
|
}, null, 8, Ct)) : m.type === "rule" ? (i(), p("hr", xt)) : (i(), p("p", {
|
|
510
510
|
key: 5,
|
|
511
511
|
innerHTML: m.html
|
|
512
|
-
}, null, 8,
|
|
512
|
+
}, null, 8, St))
|
|
513
513
|
], 64))), 128))
|
|
514
514
|
])) : (i(), p("p", mt, " No review generated for this submission. "));
|
|
515
515
|
}
|
|
516
|
-
}), Nt = { class: "space-y-2" }, Pt = { class: "text-gray-900" }, ht = { class: "text-gray-900" },
|
|
516
|
+
}), Nt = { class: "space-y-2" }, Pt = { class: "text-gray-900" }, ht = { class: "text-gray-900" }, It = { class: "text-gray-900" }, Rt = { class: "text-gray-900" }, qt = { class: "text-gray-900" }, Ft = { class: "text-gray-900" }, $t = { class: "grid grid-cols-4 gap-6" }, Ut = ["src"], Tt = {
|
|
517
517
|
key: 1,
|
|
518
518
|
class: "mt-2 truncate text-gray-700"
|
|
519
|
-
},
|
|
519
|
+
}, Dt = { key: 0 }, _t = {
|
|
520
520
|
key: 0,
|
|
521
521
|
class: "w-full flex justify-end mt-6"
|
|
522
|
-
},
|
|
522
|
+
}, Et = { class: "mt-6 grid grid-cols-4 gap-24" }, Lt = { class: "grid grid-cols-4 gap-6" }, At = { class: "w-full flex justify-end mt-6" }, Bt = { class: "mt-6 grid grid-cols-4 gap-24" }, Ot = { class: "col-span-2" }, jt = { class: "col-span-2" }, Mt = { class: "col-span-2" }, Ht = { class: "col-span-2" }, zt = { class: "col-span-2" }, Wt = { class: "col-span-2" }, Yt = { class: "col-span-2" }, Qt = { class: "col-span-2" }, Gt = { class: "col-start-1 col-span-2" }, Jt = { class: "col-span-2" }, Kt = { class: "col-span-2" }, Xt = { class: "col-span-2" }, Zt = { class: "mt-6 grid grid-cols-4 gap-6" }, el = { class: "mt-6 grid grid-cols-4 gap-6" }, tl = { class: "mt-6 grid grid-cols-4 gap-6" }, ll = { class: "mt-6 grid grid-cols-4 gap-6" }, al = { class: "mt-6 grid grid-cols-4 gap-6" }, sl = { class: "mt-6 grid grid-cols-4 gap-6" }, nl = {
|
|
523
523
|
key: 2,
|
|
524
524
|
class: "text-sm text-gray-500"
|
|
525
|
-
}, ol = { class: "mt-6 grid grid-cols-2 gap-24" },
|
|
525
|
+
}, ol = { class: "mt-6 grid grid-cols-2 gap-24" }, ve = 30, rl = /* @__PURE__ */ G({
|
|
526
526
|
__name: "SoftspaceSubmission",
|
|
527
527
|
props: {
|
|
528
528
|
submission: {
|
|
@@ -531,13 +531,13 @@ const mt = {
|
|
|
531
531
|
}
|
|
532
532
|
},
|
|
533
533
|
emits: ["update:submission"],
|
|
534
|
-
setup(d, { emit:
|
|
534
|
+
setup(d, { emit: V }) {
|
|
535
535
|
var le;
|
|
536
|
-
const u = d,
|
|
536
|
+
const u = d, v = V, c = me(), m = B(!1), { isLoading: b, startAsyncCall: C } = ne(), { fields: l, documents: r, restaurantId: x, profile: g, status: I, statusReason: U } = u.submission, N = B(""), q = B(
|
|
537
537
|
parseInt(((le = u.submission.fields) == null ? void 0 : le.numberOfDevices) ?? 1)
|
|
538
538
|
), k = B(
|
|
539
539
|
u.submission.rates ? Object.fromEntries(
|
|
540
|
-
Object.entries(u.submission.rates).map(([
|
|
540
|
+
Object.entries(u.submission.rates).map(([S, t]) => [S, `${t}`])
|
|
541
541
|
) : {
|
|
542
542
|
duitNow: "0.8",
|
|
543
543
|
mydebitCard: "0.5",
|
|
@@ -547,66 +547,66 @@ const mt = {
|
|
|
547
547
|
jcbStandard: "2.2",
|
|
548
548
|
jcbPlatinum: "2.2"
|
|
549
549
|
}
|
|
550
|
-
),
|
|
551
|
-
() => Object.values(k.value).every((
|
|
552
|
-
),
|
|
553
|
-
() => Object.keys(u.submission.documents).filter((
|
|
554
|
-
(
|
|
550
|
+
), w = j(
|
|
551
|
+
() => Object.values(k.value).every((S) => parseFloat(S) > 0)
|
|
552
|
+
), W = j(
|
|
553
|
+
() => Object.keys(u.submission.documents).filter((S) => /^authorizedPersonID\d+$/.test(S)).sort(
|
|
554
|
+
(S, t) => Number(S.replace("authorizedPersonID", "")) - Number(t.replace("authorizedPersonID", ""))
|
|
555
555
|
)
|
|
556
|
-
), { isLoading: K, startAsyncCall: X } = ne(), M = B([]), te = (
|
|
557
|
-
() => Object.keys(u.submission.documents).filter((
|
|
556
|
+
), { isLoading: K, startAsyncCall: X } = ne(), M = B([]), te = (S) => Number(S.replace("additionalDocument", "")), F = j(
|
|
557
|
+
() => Object.keys(u.submission.documents).filter((S) => /^additionalDocument\d+$/.test(S)).sort((S, t) => te(S) - te(t))
|
|
558
558
|
), n = j(
|
|
559
|
-
() =>
|
|
560
|
-
),
|
|
561
|
-
if (!(n.value >=
|
|
562
|
-
if (
|
|
559
|
+
() => F.value.length + M.value.length
|
|
560
|
+
), T = (S) => {
|
|
561
|
+
if (!(n.value >= ve)) {
|
|
562
|
+
if (S.type.startsWith("image/")) {
|
|
563
563
|
const t = new FileReader();
|
|
564
|
-
t.onload = (
|
|
565
|
-
var
|
|
564
|
+
t.onload = (A) => {
|
|
565
|
+
var Y;
|
|
566
566
|
return M.value.push({
|
|
567
|
-
file:
|
|
568
|
-
preview: String(((
|
|
567
|
+
file: S,
|
|
568
|
+
preview: String(((Y = A.target) == null ? void 0 : Y.result) ?? "")
|
|
569
569
|
});
|
|
570
|
-
}, t.readAsDataURL(
|
|
570
|
+
}, t.readAsDataURL(S);
|
|
571
571
|
return;
|
|
572
572
|
}
|
|
573
|
-
M.value.push({ file:
|
|
573
|
+
M.value.push({ file: S, preview: "" });
|
|
574
574
|
}
|
|
575
575
|
}, Z = () => X(async () => {
|
|
576
576
|
try {
|
|
577
|
-
let
|
|
578
|
-
(
|
|
577
|
+
let S = F.value.reduce(
|
|
578
|
+
(A, Y) => Math.max(A, te(Y)),
|
|
579
579
|
0
|
|
580
580
|
);
|
|
581
581
|
const t = {};
|
|
582
|
-
for (const { file:
|
|
583
|
-
const
|
|
584
|
-
t[
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
582
|
+
for (const { file: A } of M.value) {
|
|
583
|
+
const Y = `additionalDocument${++S}`;
|
|
584
|
+
t[Y] = await z.uploadDocument(
|
|
585
|
+
x,
|
|
586
|
+
Y,
|
|
587
|
+
A
|
|
588
588
|
);
|
|
589
589
|
}
|
|
590
|
-
|
|
590
|
+
v(
|
|
591
591
|
"update:submission",
|
|
592
|
-
await
|
|
592
|
+
await z.addAdditionalDocuments(
|
|
593
593
|
u.submission._id,
|
|
594
594
|
t
|
|
595
595
|
)
|
|
596
|
-
), M.value = [],
|
|
597
|
-
} catch (
|
|
598
|
-
|
|
596
|
+
), M.value = [], c.open({ type: "success", title: "Documents saved" });
|
|
597
|
+
} catch (S) {
|
|
598
|
+
c.open({
|
|
599
599
|
type: "error",
|
|
600
600
|
title: "Error occurs when sending additional documents",
|
|
601
|
-
message:
|
|
601
|
+
message: J(S)
|
|
602
602
|
});
|
|
603
603
|
}
|
|
604
|
-
}), oe = () =>
|
|
604
|
+
}), oe = () => C(async () => {
|
|
605
605
|
try {
|
|
606
|
-
const
|
|
606
|
+
const S = await z.reviewById(
|
|
607
607
|
u.submission._id,
|
|
608
608
|
{
|
|
609
|
-
numberOfDevices:
|
|
609
|
+
numberOfDevices: q.value.toString(),
|
|
610
610
|
rates: {
|
|
611
611
|
duitNow: parseFloat(k.value.duitNow),
|
|
612
612
|
mydebitCard: parseFloat(k.value.mydebitCard),
|
|
@@ -619,74 +619,74 @@ const mt = {
|
|
|
619
619
|
status: "approved"
|
|
620
620
|
}
|
|
621
621
|
);
|
|
622
|
-
|
|
622
|
+
v("update:submission", S), m.value = !1, c.open({
|
|
623
623
|
type: "success",
|
|
624
624
|
title: "Submission updated successfully"
|
|
625
625
|
});
|
|
626
|
-
} catch (
|
|
627
|
-
|
|
626
|
+
} catch (S) {
|
|
627
|
+
c.open({
|
|
628
628
|
type: "error",
|
|
629
629
|
title: "Error occurs when updating submission",
|
|
630
|
-
message:
|
|
630
|
+
message: J(S)
|
|
631
631
|
});
|
|
632
632
|
}
|
|
633
|
-
}), re = () =>
|
|
633
|
+
}), re = () => C(async () => {
|
|
634
634
|
try {
|
|
635
|
-
const
|
|
635
|
+
const S = await z.reviewById(
|
|
636
636
|
u.submission._id,
|
|
637
637
|
{
|
|
638
638
|
status: "rejected",
|
|
639
639
|
statusReason: N.value
|
|
640
640
|
}
|
|
641
641
|
);
|
|
642
|
-
|
|
642
|
+
v("update:submission", S), m.value = !1, c.open({
|
|
643
643
|
type: "success",
|
|
644
644
|
title: "Submission updated successfully"
|
|
645
645
|
});
|
|
646
|
-
} catch (
|
|
647
|
-
|
|
646
|
+
} catch (S) {
|
|
647
|
+
c.open({
|
|
648
648
|
type: "error",
|
|
649
649
|
title: "Error occurs when updating submission",
|
|
650
|
-
message:
|
|
650
|
+
message: J(S)
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
|
-
return (
|
|
655
|
-
const
|
|
656
|
-
return i(), p(
|
|
654
|
+
return (S, t) => {
|
|
655
|
+
const A = h("FmButton"), Y = h("FmDropField"), $ = h("FmTextField"), Se = h("FmTextarea"), we = h("FmDialog"), Ne = h("FmPhoneNumber"), pe = h("FmSelect"), Pe = h("FmForm");
|
|
656
|
+
return i(), p(L, null, [
|
|
657
657
|
s("div", Nt, [
|
|
658
658
|
s("div", null, [
|
|
659
659
|
t[38] || (t[38] = s("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
660
|
-
s("span", Pt,
|
|
660
|
+
s("span", Pt, R(e(x)), 1)
|
|
661
661
|
]),
|
|
662
662
|
s("div", null, [
|
|
663
663
|
t[39] || (t[39] = s("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
664
|
-
s("span", ht,
|
|
664
|
+
s("span", ht, R(e(g).name) + " ( " + R(e(g).legalName) + " )", 1)
|
|
665
665
|
]),
|
|
666
666
|
s("div", null, [
|
|
667
667
|
t[40] || (t[40] = s("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
668
|
-
s("span",
|
|
668
|
+
s("span", It, R(e(g).email), 1)
|
|
669
669
|
]),
|
|
670
670
|
s("div", null, [
|
|
671
671
|
t[41] || (t[41] = s("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
672
|
-
s("span",
|
|
672
|
+
s("span", Rt, R(e(g).phoneNo), 1)
|
|
673
673
|
]),
|
|
674
674
|
s("div", null, [
|
|
675
675
|
t[42] || (t[42] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
676
676
|
s("span", qt, [
|
|
677
|
-
o(Ce, { data: e(
|
|
677
|
+
o(Ce, { data: e(I) }, null, 8, ["data"])
|
|
678
678
|
])
|
|
679
679
|
]),
|
|
680
680
|
s("div", null, [
|
|
681
681
|
t[43] || (t[43] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
682
|
-
s("span",
|
|
682
|
+
s("span", Ft, R(e(U)), 1)
|
|
683
683
|
])
|
|
684
684
|
]),
|
|
685
685
|
t[61] || (t[61] = s("div", { class: "flex items-center gap-2 border-b pb-1 mt-6 mb-6" }, [
|
|
686
686
|
s("h3", { class: "font-semibold text-lg" }, "AI Review"),
|
|
687
687
|
s("span", { class: "rounded bg-gray-100 px-2 py-[2px] text-xs text-gray-600" }, " FIRST SUBMISSION ")
|
|
688
688
|
], -1)),
|
|
689
|
-
o(
|
|
689
|
+
o(wt, {
|
|
690
690
|
summary: d.submission.aiSummary
|
|
691
691
|
}, null, 8, ["summary"]),
|
|
692
692
|
t[62] || (t[62] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Timeline", -1)),
|
|
@@ -695,41 +695,41 @@ const mt = {
|
|
|
695
695
|
}, null, 8, ["entries"]),
|
|
696
696
|
t[63] || (t[63] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " (SharePoint) Additional Requested Documents ", -1)),
|
|
697
697
|
s("div", $t, [
|
|
698
|
-
(i(!0), p(
|
|
699
|
-
key:
|
|
700
|
-
label:
|
|
701
|
-
type: /\.pdf$/i.test(u.submission.documents[
|
|
702
|
-
modelValue: u.submission.documents[
|
|
703
|
-
"onUpdate:modelValue": (
|
|
704
|
-
"restaurant-id": e(
|
|
698
|
+
(i(!0), p(L, null, O(F.value, (a) => (i(), _(D, {
|
|
699
|
+
key: a,
|
|
700
|
+
label: a.replace("additionalDocument", "Document "),
|
|
701
|
+
type: /\.pdf$/i.test(u.submission.documents[a]) ? "pdf" : "image",
|
|
702
|
+
modelValue: u.submission.documents[a],
|
|
703
|
+
"onUpdate:modelValue": (Q) => u.submission.documents[a] = Q,
|
|
704
|
+
"restaurant-id": e(x)
|
|
705
705
|
}, null, 8, ["label", "type", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128)),
|
|
706
|
-
(i(!0), p(
|
|
707
|
-
key: `new-${
|
|
706
|
+
(i(!0), p(L, null, O(M.value, (a, Q) => (i(), p("div", {
|
|
707
|
+
key: `new-${Q}`
|
|
708
708
|
}, [
|
|
709
|
-
s("p", null, "Document " +
|
|
710
|
-
|
|
709
|
+
s("p", null, "Document " + R(F.value.length + Q + 1), 1),
|
|
710
|
+
a.file.type.startsWith("image/") ? (i(), p("img", {
|
|
711
711
|
key: 0,
|
|
712
|
-
src:
|
|
712
|
+
src: a.preview,
|
|
713
713
|
class: "mt-2 rounded border"
|
|
714
|
-
}, null, 8,
|
|
715
|
-
o(
|
|
714
|
+
}, null, 8, Ut)) : (i(), p("p", Tt, R(a.file.name), 1)),
|
|
715
|
+
o(A, {
|
|
716
716
|
class: "mt-4",
|
|
717
717
|
"prepend-icon": "delete",
|
|
718
718
|
label: "Remove",
|
|
719
719
|
variant: "destructive",
|
|
720
|
-
onClick: (
|
|
720
|
+
onClick: (_l) => M.value.splice(Q, 1)
|
|
721
721
|
}, null, 8, ["onClick"])
|
|
722
722
|
]))), 128)),
|
|
723
|
-
n.value <
|
|
724
|
-
s("p", null, "Document " +
|
|
725
|
-
o(
|
|
723
|
+
n.value < ve ? (i(), p("div", Dt, [
|
|
724
|
+
s("p", null, "Document " + R(n.value + 1), 1),
|
|
725
|
+
o(Y, {
|
|
726
726
|
accept: ".png, .jpg, .jpeg, .pdf",
|
|
727
|
-
onFileUpload:
|
|
727
|
+
onFileUpload: T
|
|
728
728
|
})
|
|
729
729
|
])) : E("", !0)
|
|
730
730
|
]),
|
|
731
|
-
M.value.length ? (i(), p("div",
|
|
732
|
-
o(
|
|
731
|
+
M.value.length ? (i(), p("div", _t, [
|
|
732
|
+
o(A, {
|
|
733
733
|
type: "button",
|
|
734
734
|
variant: "primary",
|
|
735
735
|
"prepend-icon": "cloud_upload",
|
|
@@ -739,301 +739,301 @@ const mt = {
|
|
|
739
739
|
}, null, 8, ["loading"])
|
|
740
740
|
])) : E("", !0),
|
|
741
741
|
t[64] || (t[64] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
742
|
-
s("div",
|
|
742
|
+
s("div", Et, [
|
|
743
743
|
o($, {
|
|
744
744
|
modelValue: k.value.duitNow,
|
|
745
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
745
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => k.value.duitNow = a),
|
|
746
746
|
label: "DuitNow QR",
|
|
747
747
|
"label-mark": "required",
|
|
748
748
|
type: "number",
|
|
749
749
|
inputmode: "numeric",
|
|
750
750
|
decimal: 2,
|
|
751
|
-
rules: e(
|
|
752
|
-
e(
|
|
751
|
+
rules: e(y)(
|
|
752
|
+
e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
|
|
753
753
|
)
|
|
754
754
|
}, {
|
|
755
|
-
append:
|
|
756
|
-
|
|
755
|
+
append: P(() => [...t[44] || (t[44] = [
|
|
756
|
+
H("%", -1)
|
|
757
757
|
])]),
|
|
758
758
|
_: 1
|
|
759
759
|
}, 8, ["modelValue", "rules"]),
|
|
760
760
|
o($, {
|
|
761
761
|
modelValue: k.value.mydebitCard,
|
|
762
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
762
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => k.value.mydebitCard = a),
|
|
763
763
|
label: "myDebit Card",
|
|
764
764
|
"label-mark": "required",
|
|
765
765
|
type: "number",
|
|
766
766
|
inputmode: "numeric",
|
|
767
767
|
decimal: 2,
|
|
768
|
-
rules: e(
|
|
769
|
-
e(
|
|
768
|
+
rules: e(y)(
|
|
769
|
+
e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
|
|
770
770
|
)
|
|
771
771
|
}, {
|
|
772
|
-
append:
|
|
773
|
-
|
|
772
|
+
append: P(() => [...t[45] || (t[45] = [
|
|
773
|
+
H("%", -1)
|
|
774
774
|
])]),
|
|
775
775
|
_: 1
|
|
776
776
|
}, 8, ["modelValue", "rules"]),
|
|
777
777
|
o($, {
|
|
778
778
|
modelValue: k.value.localDebit,
|
|
779
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
779
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => k.value.localDebit = a),
|
|
780
780
|
label: "Local Debit Card",
|
|
781
781
|
"label-mark": "required",
|
|
782
782
|
type: "number",
|
|
783
783
|
inputmode: "numeric",
|
|
784
784
|
decimal: 2,
|
|
785
|
-
rules: e(
|
|
786
|
-
e(
|
|
785
|
+
rules: e(y)(
|
|
786
|
+
e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
|
|
787
787
|
)
|
|
788
788
|
}, {
|
|
789
|
-
append:
|
|
790
|
-
|
|
789
|
+
append: P(() => [...t[46] || (t[46] = [
|
|
790
|
+
H("%", -1)
|
|
791
791
|
])]),
|
|
792
792
|
_: 1
|
|
793
793
|
}, 8, ["modelValue", "rules"]),
|
|
794
794
|
o($, {
|
|
795
795
|
modelValue: k.value.localCredit,
|
|
796
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
796
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => k.value.localCredit = a),
|
|
797
797
|
label: "Local Credit Card",
|
|
798
798
|
"label-mark": "required",
|
|
799
799
|
type: "number",
|
|
800
800
|
inputmode: "numeric",
|
|
801
801
|
decimal: 2,
|
|
802
|
-
rules: e(
|
|
803
|
-
e(
|
|
802
|
+
rules: e(y)(
|
|
803
|
+
e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
|
|
804
804
|
)
|
|
805
805
|
}, {
|
|
806
|
-
append:
|
|
807
|
-
|
|
806
|
+
append: P(() => [...t[47] || (t[47] = [
|
|
807
|
+
H("%", -1)
|
|
808
808
|
])]),
|
|
809
809
|
_: 1
|
|
810
810
|
}, 8, ["modelValue", "rules"]),
|
|
811
811
|
o($, {
|
|
812
812
|
modelValue: k.value.foreignCard,
|
|
813
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
813
|
+
"onUpdate:modelValue": t[4] || (t[4] = (a) => k.value.foreignCard = a),
|
|
814
814
|
label: "Foreign Card",
|
|
815
815
|
"label-mark": "required",
|
|
816
816
|
type: "number",
|
|
817
817
|
inputmode: "numeric",
|
|
818
818
|
decimal: 2,
|
|
819
|
-
rules: e(
|
|
820
|
-
e(
|
|
819
|
+
rules: e(y)(
|
|
820
|
+
e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
|
|
821
821
|
)
|
|
822
822
|
}, {
|
|
823
|
-
append:
|
|
824
|
-
|
|
823
|
+
append: P(() => [...t[48] || (t[48] = [
|
|
824
|
+
H("%", -1)
|
|
825
825
|
])]),
|
|
826
826
|
_: 1
|
|
827
827
|
}, 8, ["modelValue", "rules"]),
|
|
828
828
|
o($, {
|
|
829
829
|
modelValue: k.value.jcbStandard,
|
|
830
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
830
|
+
"onUpdate:modelValue": t[5] || (t[5] = (a) => k.value.jcbStandard = a),
|
|
831
831
|
label: "JCB Standard",
|
|
832
832
|
"label-mark": "required",
|
|
833
833
|
type: "number",
|
|
834
834
|
inputmode: "numeric",
|
|
835
835
|
decimal: 2,
|
|
836
|
-
rules: e(
|
|
837
|
-
e(
|
|
836
|
+
rules: e(y)(
|
|
837
|
+
e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
|
|
838
838
|
)
|
|
839
839
|
}, {
|
|
840
|
-
append:
|
|
841
|
-
|
|
840
|
+
append: P(() => [...t[49] || (t[49] = [
|
|
841
|
+
H("%", -1)
|
|
842
842
|
])]),
|
|
843
843
|
_: 1
|
|
844
844
|
}, 8, ["modelValue", "rules"]),
|
|
845
845
|
o($, {
|
|
846
846
|
modelValue: k.value.jcbPlatinum,
|
|
847
|
-
"onUpdate:modelValue": t[6] || (t[6] = (
|
|
847
|
+
"onUpdate:modelValue": t[6] || (t[6] = (a) => k.value.jcbPlatinum = a),
|
|
848
848
|
label: "JCB Platinum",
|
|
849
849
|
"label-mark": "required",
|
|
850
850
|
type: "number",
|
|
851
851
|
inputmode: "numeric",
|
|
852
852
|
decimal: 2,
|
|
853
|
-
rules: e(
|
|
854
|
-
e(
|
|
853
|
+
rules: e(y)(
|
|
854
|
+
e(f).string().min(1, "Rate is required").transform((a) => parseFloat(a)).refine((a) => !isNaN(a), { message: "Rate must be a number" })
|
|
855
855
|
)
|
|
856
856
|
}, {
|
|
857
|
-
append:
|
|
858
|
-
|
|
857
|
+
append: P(() => [...t[50] || (t[50] = [
|
|
858
|
+
H("%", -1)
|
|
859
859
|
])]),
|
|
860
860
|
_: 1
|
|
861
861
|
}, 8, ["modelValue", "rules"])
|
|
862
862
|
]),
|
|
863
863
|
t[65] || (t[65] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Extra Settings", -1)),
|
|
864
|
-
s("div",
|
|
864
|
+
s("div", Lt, [
|
|
865
865
|
o($, {
|
|
866
|
-
modelValue:
|
|
867
|
-
"onUpdate:modelValue": t[7] || (t[7] = (
|
|
866
|
+
modelValue: q.value,
|
|
867
|
+
"onUpdate:modelValue": t[7] || (t[7] = (a) => q.value = a),
|
|
868
868
|
label: "Number of Devices",
|
|
869
869
|
"label-mark": "required",
|
|
870
870
|
type: "number",
|
|
871
871
|
inputmode: "numeric"
|
|
872
872
|
}, null, 8, ["modelValue"])
|
|
873
873
|
]),
|
|
874
|
-
s("div",
|
|
875
|
-
o(
|
|
874
|
+
s("div", At, [
|
|
875
|
+
o(we, {
|
|
876
876
|
modelValue: m.value,
|
|
877
|
-
"onUpdate:modelValue": t[9] || (t[9] = (
|
|
877
|
+
"onUpdate:modelValue": t[9] || (t[9] = (a) => m.value = a)
|
|
878
878
|
}, {
|
|
879
|
-
"dialog-button":
|
|
880
|
-
o(
|
|
879
|
+
"dialog-button": P(() => [
|
|
880
|
+
o(A, {
|
|
881
881
|
class: "mr-6",
|
|
882
882
|
type: "button",
|
|
883
883
|
variant: "destructive",
|
|
884
884
|
"prepend-icon": "block",
|
|
885
|
-
loading: e(
|
|
885
|
+
loading: e(b),
|
|
886
886
|
label: "Reject Submission"
|
|
887
887
|
}, null, 8, ["loading"])
|
|
888
888
|
]),
|
|
889
|
-
"dialog-header":
|
|
889
|
+
"dialog-header": P(() => [...t[51] || (t[51] = [
|
|
890
890
|
s("div", null, "Rejecting Submission", -1)
|
|
891
891
|
])]),
|
|
892
|
-
default:
|
|
893
|
-
o(
|
|
892
|
+
default: P(() => [
|
|
893
|
+
o(Se, {
|
|
894
894
|
modelValue: N.value,
|
|
895
|
-
"onUpdate:modelValue": t[8] || (t[8] = (
|
|
895
|
+
"onUpdate:modelValue": t[8] || (t[8] = (a) => N.value = a),
|
|
896
896
|
label: "Reason for Rejection",
|
|
897
897
|
"label-mark": "optional",
|
|
898
898
|
"helper-text": "Please provide a reason for rejection."
|
|
899
899
|
}, null, 8, ["modelValue"]),
|
|
900
|
-
o(
|
|
900
|
+
o(A, {
|
|
901
901
|
class: "mb-2 mt-6 w-full",
|
|
902
902
|
label: "Submit",
|
|
903
903
|
"prepend-icon": "save",
|
|
904
904
|
onClick: re,
|
|
905
|
-
loading: e(
|
|
905
|
+
loading: e(b)
|
|
906
906
|
}, null, 8, ["loading"])
|
|
907
907
|
]),
|
|
908
908
|
_: 1
|
|
909
909
|
}, 8, ["modelValue"]),
|
|
910
|
-
o(
|
|
910
|
+
o(A, {
|
|
911
911
|
type: "button",
|
|
912
912
|
variant: "primary",
|
|
913
913
|
"prepend-icon": "approval",
|
|
914
|
-
disabled: !
|
|
914
|
+
disabled: !w.value,
|
|
915
915
|
label: "Approve Submission with Rates",
|
|
916
916
|
onClick: oe,
|
|
917
|
-
loading: e(
|
|
917
|
+
loading: e(b)
|
|
918
918
|
}, null, 8, ["disabled", "loading"])
|
|
919
919
|
]),
|
|
920
920
|
o(Pe, { disabled: !0 }, {
|
|
921
|
-
default:
|
|
921
|
+
default: P(() => [
|
|
922
922
|
t[52] || (t[52] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
923
923
|
s("div", Bt, [
|
|
924
924
|
s("div", Ot, [
|
|
925
925
|
o($, {
|
|
926
|
-
modelValue: e(
|
|
927
|
-
"onUpdate:modelValue": t[10] || (t[10] = (
|
|
926
|
+
modelValue: e(l).picName,
|
|
927
|
+
"onUpdate:modelValue": t[10] || (t[10] = (a) => e(l).picName = a),
|
|
928
928
|
label: "Owner/Director Name",
|
|
929
929
|
placeholder: "Enter your name",
|
|
930
930
|
"label-mark": "required",
|
|
931
|
-
rules: e(
|
|
931
|
+
rules: e(y)(e(f).string().min(1, "Owner/Director Name is required"))
|
|
932
932
|
}, null, 8, ["modelValue", "rules"])
|
|
933
933
|
]),
|
|
934
934
|
s("div", jt, [
|
|
935
935
|
o($, {
|
|
936
|
-
modelValue: e(
|
|
937
|
-
"onUpdate:modelValue": t[11] || (t[11] = (
|
|
936
|
+
modelValue: e(l).picRole,
|
|
937
|
+
"onUpdate:modelValue": t[11] || (t[11] = (a) => e(l).picRole = a),
|
|
938
938
|
label: "Owner/Director Role",
|
|
939
939
|
placeholder: "Enter your role",
|
|
940
940
|
"label-mark": "required",
|
|
941
|
-
rules: e(
|
|
941
|
+
rules: e(y)(e(f).string().min(1, "Owner/Director Role is required"))
|
|
942
942
|
}, null, 8, ["modelValue", "rules"])
|
|
943
943
|
]),
|
|
944
944
|
s("div", Mt, [
|
|
945
945
|
o($, {
|
|
946
|
-
modelValue: e(
|
|
947
|
-
"onUpdate:modelValue": t[12] || (t[12] = (
|
|
946
|
+
modelValue: e(l).picEmail,
|
|
947
|
+
"onUpdate:modelValue": t[12] || (t[12] = (a) => e(l).picEmail = a),
|
|
948
948
|
label: "Owner/Director Email",
|
|
949
949
|
type: "email",
|
|
950
950
|
placeholder: "Enter your email address",
|
|
951
951
|
"label-mark": "required",
|
|
952
|
-
rules: e(
|
|
952
|
+
rules: e(y)(e(f).string().min(1, "Owner/Director Email is required"))
|
|
953
953
|
}, null, 8, ["modelValue", "rules"])
|
|
954
954
|
]),
|
|
955
955
|
s("div", Ht, [
|
|
956
956
|
o(Ne, {
|
|
957
|
-
"model-value": e(
|
|
958
|
-
"onUpdate:modelValue": t[13] || (t[13] = (
|
|
957
|
+
"model-value": e(l).picContact,
|
|
958
|
+
"onUpdate:modelValue": t[13] || (t[13] = (a) => e(l).picContact = a),
|
|
959
959
|
"default-country": "MY",
|
|
960
960
|
label: "Owner/Director Contact",
|
|
961
961
|
"label-mark": "required",
|
|
962
|
-
rules: e(
|
|
962
|
+
rules: e(y)(e(f).string().min(1, "Owner/Director Contact is required"))
|
|
963
963
|
}, null, 8, ["model-value", "rules"])
|
|
964
964
|
]),
|
|
965
965
|
s("div", zt, [
|
|
966
966
|
o($, {
|
|
967
|
-
modelValue: e(
|
|
968
|
-
"onUpdate:modelValue": t[14] || (t[14] = (
|
|
967
|
+
modelValue: e(l).nric,
|
|
968
|
+
"onUpdate:modelValue": t[14] || (t[14] = (a) => e(l).nric = a),
|
|
969
969
|
label: "Owner/Director NRIC No",
|
|
970
970
|
placeholder: "Enter your NRIC number",
|
|
971
971
|
"label-mark": "required",
|
|
972
|
-
rules: e(
|
|
972
|
+
rules: e(y)(e(f).string().min(1, "NRIC No is required"))
|
|
973
973
|
}, null, 8, ["modelValue", "rules"])
|
|
974
974
|
]),
|
|
975
975
|
s("div", Wt, [
|
|
976
976
|
o($, {
|
|
977
|
-
modelValue: e(
|
|
978
|
-
"onUpdate:modelValue": t[15] || (t[15] = (
|
|
977
|
+
modelValue: e(l).tradingName,
|
|
978
|
+
"onUpdate:modelValue": t[15] || (t[15] = (a) => e(l).tradingName = a),
|
|
979
979
|
label: "Trading Name",
|
|
980
980
|
placeholder: "Enter trading name",
|
|
981
981
|
"label-mark": "required",
|
|
982
|
-
rules: e(
|
|
982
|
+
rules: e(y)(e(f).string().min(1, "Trading Name is required"))
|
|
983
983
|
}, null, 8, ["modelValue", "rules"])
|
|
984
984
|
]),
|
|
985
985
|
s("div", Yt, [
|
|
986
986
|
o($, {
|
|
987
|
-
modelValue: e(
|
|
988
|
-
"onUpdate:modelValue": t[16] || (t[16] = (
|
|
987
|
+
modelValue: e(l).outletName,
|
|
988
|
+
"onUpdate:modelValue": t[16] || (t[16] = (a) => e(l).outletName = a),
|
|
989
989
|
label: "Registered Name",
|
|
990
990
|
placeholder: "Enter registered name",
|
|
991
991
|
"label-mark": "required",
|
|
992
|
-
rules: e(
|
|
992
|
+
rules: e(y)(e(f).string().min(1, "Registered Name is required"))
|
|
993
993
|
}, null, 8, ["modelValue", "rules"])
|
|
994
994
|
]),
|
|
995
995
|
s("div", Qt, [
|
|
996
996
|
o($, {
|
|
997
|
-
modelValue: e(
|
|
998
|
-
"onUpdate:modelValue": t[17] || (t[17] = (
|
|
997
|
+
modelValue: e(l).outletAddress,
|
|
998
|
+
"onUpdate:modelValue": t[17] || (t[17] = (a) => e(l).outletAddress = a),
|
|
999
999
|
label: "Outlet Address",
|
|
1000
1000
|
placeholder: "Enter outlet address",
|
|
1001
1001
|
"label-mark": "required",
|
|
1002
|
-
rules: e(
|
|
1002
|
+
rules: e(y)(e(f).string().min(1, "Address is required"))
|
|
1003
1003
|
}, null, 8, ["modelValue", "rules"])
|
|
1004
1004
|
]),
|
|
1005
1005
|
o($, {
|
|
1006
|
-
modelValue: e(
|
|
1007
|
-
"onUpdate:modelValue": t[18] || (t[18] = (
|
|
1006
|
+
modelValue: e(l).outletPostCode,
|
|
1007
|
+
"onUpdate:modelValue": t[18] || (t[18] = (a) => e(l).outletPostCode = a),
|
|
1008
1008
|
label: "Postal Code",
|
|
1009
1009
|
placeholder: "Enter postal code",
|
|
1010
1010
|
"label-mark": "required",
|
|
1011
|
-
rules: e(
|
|
1011
|
+
rules: e(y)(e(f).string().min(1, "Postal Code is required"))
|
|
1012
1012
|
}, null, 8, ["modelValue", "rules"]),
|
|
1013
1013
|
o($, {
|
|
1014
|
-
modelValue: e(
|
|
1015
|
-
"onUpdate:modelValue": t[19] || (t[19] = (
|
|
1014
|
+
modelValue: e(l).outletState,
|
|
1015
|
+
"onUpdate:modelValue": t[19] || (t[19] = (a) => e(l).outletState = a),
|
|
1016
1016
|
label: "State",
|
|
1017
1017
|
placeholder: "Enter state",
|
|
1018
1018
|
"label-mark": "required",
|
|
1019
|
-
rules: e(
|
|
1019
|
+
rules: e(y)(e(f).string().min(1, "State is required"))
|
|
1020
1020
|
}, null, 8, ["modelValue", "rules"]),
|
|
1021
1021
|
o($, {
|
|
1022
|
-
modelValue: e(
|
|
1023
|
-
"onUpdate:modelValue": t[20] || (t[20] = (
|
|
1022
|
+
modelValue: e(l).outletCity,
|
|
1023
|
+
"onUpdate:modelValue": t[20] || (t[20] = (a) => e(l).outletCity = a),
|
|
1024
1024
|
label: "City",
|
|
1025
1025
|
placeholder: "Enter city",
|
|
1026
1026
|
"label-mark": "required",
|
|
1027
|
-
rules: e(
|
|
1027
|
+
rules: e(y)(e(f).string().min(1, "City is required"))
|
|
1028
1028
|
}, null, 8, ["modelValue", "rules"]),
|
|
1029
1029
|
s("div", Gt, [
|
|
1030
|
-
o(
|
|
1031
|
-
modelValue: e(
|
|
1032
|
-
"onUpdate:modelValue": t[21] || (t[21] = (
|
|
1030
|
+
o(pe, {
|
|
1031
|
+
modelValue: e(l).businessType,
|
|
1032
|
+
"onUpdate:modelValue": t[21] || (t[21] = (a) => e(l).businessType = a),
|
|
1033
1033
|
label: "Type",
|
|
1034
1034
|
placeholder: "Select business type",
|
|
1035
1035
|
"label-mark": "required",
|
|
1036
|
-
rules: e(
|
|
1036
|
+
rules: e(y)(e(f).string().min(1, "Business Type is required")),
|
|
1037
1037
|
items: [
|
|
1038
1038
|
{ label: "Sole Proprietorship", value: "sole_proprietorship" },
|
|
1039
1039
|
{ label: "Partnership", value: "partnership" },
|
|
@@ -1050,28 +1050,28 @@ const mt = {
|
|
|
1050
1050
|
]),
|
|
1051
1051
|
s("div", Jt, [
|
|
1052
1052
|
o($, {
|
|
1053
|
-
modelValue: e(
|
|
1054
|
-
"onUpdate:modelValue": t[22] || (t[22] = (
|
|
1053
|
+
modelValue: e(l).businessRegNo,
|
|
1054
|
+
"onUpdate:modelValue": t[22] || (t[22] = (a) => e(l).businessRegNo = a),
|
|
1055
1055
|
label: "Registration No",
|
|
1056
1056
|
placeholder: "Enter registration number",
|
|
1057
1057
|
"label-mark": "required",
|
|
1058
|
-
rules: e(
|
|
1058
|
+
rules: e(y)(e(f).string().min(1, "Reg No is required"))
|
|
1059
1059
|
}, null, 8, ["modelValue", "rules"])
|
|
1060
1060
|
]),
|
|
1061
1061
|
s("div", Kt, [
|
|
1062
1062
|
o($, {
|
|
1063
|
-
modelValue: e(
|
|
1064
|
-
"onUpdate:modelValue": t[23] || (t[23] = (
|
|
1063
|
+
modelValue: e(l).tinNo,
|
|
1064
|
+
"onUpdate:modelValue": t[23] || (t[23] = (a) => e(l).tinNo = a),
|
|
1065
1065
|
label: "Tax Identification No (TIN)",
|
|
1066
1066
|
placeholder: "Enter your TIN number",
|
|
1067
1067
|
"label-mark": "required",
|
|
1068
|
-
rules: e(
|
|
1068
|
+
rules: e(y)(e(f).string().min(1, "TIN is required"))
|
|
1069
1069
|
}, null, 8, ["modelValue", "rules"])
|
|
1070
1070
|
]),
|
|
1071
1071
|
s("div", Xt, [
|
|
1072
1072
|
o($, {
|
|
1073
|
-
modelValue: e(
|
|
1074
|
-
"onUpdate:modelValue": t[24] || (t[24] = (
|
|
1073
|
+
modelValue: e(l).sstNo,
|
|
1074
|
+
"onUpdate:modelValue": t[24] || (t[24] = (a) => e(l).sstNo = a),
|
|
1075
1075
|
label: "SST Registration No (SST)",
|
|
1076
1076
|
placeholder: "Enter your SST number",
|
|
1077
1077
|
"label-mark": "optional"
|
|
@@ -1080,123 +1080,123 @@ const mt = {
|
|
|
1080
1080
|
]),
|
|
1081
1081
|
t[53] || (t[53] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
1082
1082
|
s("div", Zt, [
|
|
1083
|
-
o(
|
|
1084
|
-
modelValue: e(
|
|
1085
|
-
"onUpdate:modelValue": t[25] || (t[25] = (
|
|
1083
|
+
o(pe, {
|
|
1084
|
+
modelValue: e(l).bankName,
|
|
1085
|
+
"onUpdate:modelValue": t[25] || (t[25] = (a) => e(l).bankName = a),
|
|
1086
1086
|
label: "Bank",
|
|
1087
1087
|
placeholder: "Select bank type",
|
|
1088
1088
|
"label-mark": "required",
|
|
1089
|
-
rules: e(
|
|
1090
|
-
items: e(
|
|
1089
|
+
rules: e(y)(e(f).string().min(1, "Bank Type is required")),
|
|
1090
|
+
items: e(Fe).bankNameOptions()
|
|
1091
1091
|
}, null, 8, ["modelValue", "rules", "items"]),
|
|
1092
1092
|
o($, {
|
|
1093
|
-
modelValue: e(
|
|
1094
|
-
"onUpdate:modelValue": t[26] || (t[26] = (
|
|
1093
|
+
modelValue: e(l).bankHolderName,
|
|
1094
|
+
"onUpdate:modelValue": t[26] || (t[26] = (a) => e(l).bankHolderName = a),
|
|
1095
1095
|
label: "Beneficiary Name",
|
|
1096
1096
|
placeholder: "Enter Beneficiary Name",
|
|
1097
1097
|
"label-mark": "required",
|
|
1098
|
-
rules: e(
|
|
1098
|
+
rules: e(y)(e(f).string().min(1, "Beneficiary Name is required"))
|
|
1099
1099
|
}, null, 8, ["modelValue", "rules"]),
|
|
1100
1100
|
o($, {
|
|
1101
|
-
modelValue: e(
|
|
1102
|
-
"onUpdate:modelValue": t[27] || (t[27] = (
|
|
1101
|
+
modelValue: e(l).bankAccountNo,
|
|
1102
|
+
"onUpdate:modelValue": t[27] || (t[27] = (a) => e(l).bankAccountNo = a),
|
|
1103
1103
|
label: "Account Number",
|
|
1104
1104
|
placeholder: "Enter Account Number",
|
|
1105
1105
|
"label-mark": "required",
|
|
1106
|
-
rules: e(
|
|
1106
|
+
rules: e(y)(e(f).string().min(1, "Account Number is required"))
|
|
1107
1107
|
}, null, 8, ["modelValue", "rules"])
|
|
1108
1108
|
]),
|
|
1109
1109
|
t[54] || (t[54] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
1110
1110
|
t[55] || (t[55] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 1. All Directors/Owner ICs ", -1)),
|
|
1111
1111
|
s("div", el, [
|
|
1112
|
-
o(
|
|
1112
|
+
o(D, {
|
|
1113
1113
|
label: "Authorized Person ID",
|
|
1114
1114
|
modelValue: e(r).authorizedPersonID,
|
|
1115
|
-
"onUpdate:modelValue": t[28] || (t[28] = (
|
|
1115
|
+
"onUpdate:modelValue": t[28] || (t[28] = (a) => e(r).authorizedPersonID = a),
|
|
1116
1116
|
type: "image",
|
|
1117
1117
|
"restaurant-id": d.submission.restaurantId
|
|
1118
1118
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1119
|
-
(i(!0), p(
|
|
1120
|
-
key:
|
|
1121
|
-
label: `Authorized Person ID ${
|
|
1122
|
-
modelValue: e(r)[
|
|
1123
|
-
"onUpdate:modelValue": (
|
|
1119
|
+
(i(!0), p(L, null, O(W.value, (a) => (i(), _(D, {
|
|
1120
|
+
key: a,
|
|
1121
|
+
label: `Authorized Person ID ${a.replace("authorizedPersonID", "")}`,
|
|
1122
|
+
modelValue: e(r)[a],
|
|
1123
|
+
"onUpdate:modelValue": (Q) => e(r)[a] = Q,
|
|
1124
1124
|
type: "image",
|
|
1125
1125
|
"restaurant-id": d.submission.restaurantId
|
|
1126
1126
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
|
|
1127
1127
|
]),
|
|
1128
1128
|
t[56] || (t[56] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-6" }, " Section 2. Business Information ", -1)),
|
|
1129
1129
|
s("div", tl, [
|
|
1130
|
-
e(
|
|
1130
|
+
e(l).businessType === "private_limited" || e(l).businessType === "public_limited" ? (i(), _(D, {
|
|
1131
1131
|
key: 0,
|
|
1132
1132
|
label: "Superform",
|
|
1133
1133
|
type: "pdf",
|
|
1134
1134
|
modelValue: e(r).certificate,
|
|
1135
|
-
"onUpdate:modelValue": t[29] || (t[29] = (
|
|
1135
|
+
"onUpdate:modelValue": t[29] || (t[29] = (a) => e(r).certificate = a),
|
|
1136
1136
|
"restaurant-id": d.submission.restaurantId
|
|
1137
1137
|
}, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
|
|
1138
|
-
e(
|
|
1138
|
+
e(l).businessType === "sole_proprietorship" || e(l).businessType === "partnership" ? (i(), _(D, {
|
|
1139
1139
|
key: 1,
|
|
1140
1140
|
label: "Business Registration Document",
|
|
1141
1141
|
type: "pdf",
|
|
1142
1142
|
modelValue: e(r).certificate,
|
|
1143
|
-
"onUpdate:modelValue": t[30] || (t[30] = (
|
|
1143
|
+
"onUpdate:modelValue": t[30] || (t[30] = (a) => e(r).certificate = a),
|
|
1144
1144
|
"restaurant-id": d.submission.restaurantId
|
|
1145
1145
|
}, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
|
|
1146
|
-
e(r).interiorPhoto ? (i(),
|
|
1146
|
+
e(r).interiorPhoto ? (i(), _(D, {
|
|
1147
1147
|
key: 2,
|
|
1148
1148
|
label: "Interior Photo",
|
|
1149
1149
|
modelValue: e(r).interiorPhoto,
|
|
1150
|
-
"onUpdate:modelValue": t[31] || (t[31] = (
|
|
1150
|
+
"onUpdate:modelValue": t[31] || (t[31] = (a) => e(r).interiorPhoto = a),
|
|
1151
1151
|
type: "image",
|
|
1152
1152
|
"restaurant-id": d.submission.restaurantId
|
|
1153
1153
|
}, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
|
|
1154
|
-
o(
|
|
1154
|
+
o(D, {
|
|
1155
1155
|
label: "Outlet Photo",
|
|
1156
1156
|
modelValue: e(r).outletPhoto,
|
|
1157
|
-
"onUpdate:modelValue": t[32] || (t[32] = (
|
|
1157
|
+
"onUpdate:modelValue": t[32] || (t[32] = (a) => e(r).outletPhoto = a),
|
|
1158
1158
|
type: "image-or-pdf",
|
|
1159
1159
|
"restaurant-id": d.submission.restaurantId
|
|
1160
1160
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
1161
1161
|
]),
|
|
1162
1162
|
t[57] || (t[57] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 3. Payout Information ", -1)),
|
|
1163
1163
|
s("div", ll, [
|
|
1164
|
-
o(
|
|
1164
|
+
o(D, {
|
|
1165
1165
|
label: "Latest Bank Statement",
|
|
1166
1166
|
modelValue: e(r).bankStatement,
|
|
1167
|
-
"onUpdate:modelValue": t[33] || (t[33] = (
|
|
1167
|
+
"onUpdate:modelValue": t[33] || (t[33] = (a) => e(r).bankStatement = a),
|
|
1168
1168
|
type: "pdf",
|
|
1169
1169
|
"restaurant-id": d.submission.restaurantId
|
|
1170
1170
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
1171
1171
|
]),
|
|
1172
1172
|
t[58] || (t[58] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 4. Site Photos ", -1)),
|
|
1173
1173
|
s("div", al, [
|
|
1174
|
-
(i(!0), p(
|
|
1175
|
-
(
|
|
1176
|
-
), (
|
|
1177
|
-
key:
|
|
1178
|
-
label: e($e)[
|
|
1179
|
-
modelValue: e(r)[`onsitePhoto${
|
|
1180
|
-
"onUpdate:modelValue": (
|
|
1174
|
+
(i(!0), p(L, null, O([1, 2, 3, 4, 5].filter(
|
|
1175
|
+
(a) => !!e(r)[`onsitePhoto${a}`]
|
|
1176
|
+
), (a) => (i(), _(D, {
|
|
1177
|
+
key: a,
|
|
1178
|
+
label: e($e)[a - 1],
|
|
1179
|
+
modelValue: e(r)[`onsitePhoto${a}`],
|
|
1180
|
+
"onUpdate:modelValue": (Q) => e(r)[`onsitePhoto${a}`] = Q,
|
|
1181
1181
|
type: "image",
|
|
1182
1182
|
"restaurant-id": d.submission.restaurantId
|
|
1183
1183
|
}, null, 8, ["label", "modelValue", "onUpdate:modelValue", "restaurant-id"]))), 128))
|
|
1184
1184
|
]),
|
|
1185
1185
|
t[59] || (t[59] = s("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 5. Additional Documents ", -1)),
|
|
1186
1186
|
s("div", sl, [
|
|
1187
|
-
e(r).liquorLicense ? (i(),
|
|
1187
|
+
e(r).liquorLicense ? (i(), _(D, {
|
|
1188
1188
|
key: 0,
|
|
1189
1189
|
label: "Liquor License",
|
|
1190
1190
|
modelValue: e(r).liquorLicense,
|
|
1191
|
-
"onUpdate:modelValue": t[34] || (t[34] = (
|
|
1191
|
+
"onUpdate:modelValue": t[34] || (t[34] = (a) => e(r).liquorLicense = a),
|
|
1192
1192
|
type: "image-or-pdf",
|
|
1193
1193
|
"restaurant-id": d.submission.restaurantId
|
|
1194
1194
|
}, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
|
|
1195
|
-
e(r).appendixC ? (i(),
|
|
1195
|
+
e(r).appendixC ? (i(), _(D, {
|
|
1196
1196
|
key: 1,
|
|
1197
1197
|
label: "Appendix C",
|
|
1198
1198
|
modelValue: e(r).appendixC,
|
|
1199
|
-
"onUpdate:modelValue": t[35] || (t[35] = (
|
|
1199
|
+
"onUpdate:modelValue": t[35] || (t[35] = (a) => e(r).appendixC = a),
|
|
1200
1200
|
type: "pdf",
|
|
1201
1201
|
"restaurant-id": d.submission.restaurantId
|
|
1202
1202
|
}, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
|
|
@@ -1204,17 +1204,17 @@ const mt = {
|
|
|
1204
1204
|
]),
|
|
1205
1205
|
t[60] || (t[60] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1206
1206
|
s("div", ol, [
|
|
1207
|
-
o(
|
|
1207
|
+
o(Le, {
|
|
1208
1208
|
modelValue: e(r).signature,
|
|
1209
|
-
"onUpdate:modelValue": t[36] || (t[36] = (
|
|
1209
|
+
"onUpdate:modelValue": t[36] || (t[36] = (a) => e(r).signature = a),
|
|
1210
1210
|
"restaurant-id": d.submission.restaurantId,
|
|
1211
1211
|
label: "Signature"
|
|
1212
1212
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1213
|
-
o(
|
|
1213
|
+
o(D, {
|
|
1214
1214
|
label: "Company Stamp",
|
|
1215
1215
|
type: "image",
|
|
1216
1216
|
modelValue: e(r).companyStamp,
|
|
1217
|
-
"onUpdate:modelValue": t[37] || (t[37] = (
|
|
1217
|
+
"onUpdate:modelValue": t[37] || (t[37] = (a) => e(r).companyStamp = a),
|
|
1218
1218
|
"restaurant-id": d.submission.restaurantId
|
|
1219
1219
|
}, null, 8, ["modelValue", "restaurant-id"])
|
|
1220
1220
|
])
|
|
@@ -1224,7 +1224,7 @@ const mt = {
|
|
|
1224
1224
|
], 64);
|
|
1225
1225
|
};
|
|
1226
1226
|
}
|
|
1227
|
-
}), il = { class: "space-y-2" }, ul = { class: "text-gray-900" }, dl = { class: "text-gray-900" }, ml = { class: "text-gray-900" }, pl = { class: "text-gray-900" },
|
|
1227
|
+
}), il = { class: "space-y-2" }, ul = { class: "text-gray-900" }, dl = { class: "text-gray-900" }, ml = { class: "text-gray-900" }, pl = { class: "text-gray-900" }, cl = { class: "text-gray-900" }, bl = { class: "text-gray-900" }, gl = { class: "mt-6 grid grid-cols-4 gap-24" }, yl = { class: "w-full flex justify-end mt-6" }, fl = { class: "mt-6 grid grid-cols-4 gap-24" }, vl = { class: "col-span-2" }, Vl = { class: "col-span-2" }, kl = { class: "col-span-2" }, Cl = { class: "col-span-2" }, xl = { class: "mt-6 grid grid-cols-4 gap-24" }, Sl = { class: "mt-6 grid grid-cols-4 gap-24" }, wl = { class: "mt-6 grid grid-cols-4 gap-24" }, Nl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, hl = { class: "col-span-2" }, Il = { class: "col-span-2" }, Rl = { class: "col-span-2" }, ql = { class: "col-span-2" }, Fl = /* @__PURE__ */ G({
|
|
1228
1228
|
__name: "NTTSubmission",
|
|
1229
1229
|
props: {
|
|
1230
1230
|
submission: {
|
|
@@ -1233,8 +1233,8 @@ const mt = {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
},
|
|
1235
1235
|
emits: ["update:submission"],
|
|
1236
|
-
setup(d, { emit:
|
|
1237
|
-
const u = d,
|
|
1236
|
+
setup(d, { emit: V }) {
|
|
1237
|
+
const u = d, v = V, c = me(), m = B(!1), { isLoading: b, startAsyncCall: C } = ne(), { fields: l, documents: r, restaurantId: x, profile: g, status: I, statusReason: U } = u.submission, N = B(""), q = [
|
|
1238
1238
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
1239
1239
|
{
|
|
1240
1240
|
key: "localCardStandard",
|
|
@@ -1267,126 +1267,126 @@ const mt = {
|
|
|
1267
1267
|
{ key: "linePay", label: "LinePay", defaultValue: "2.1" },
|
|
1268
1268
|
{ key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
|
|
1269
1269
|
], k = Object.fromEntries(
|
|
1270
|
-
|
|
1271
|
-
),
|
|
1270
|
+
q.map((F) => [F.key, F.defaultValue])
|
|
1271
|
+
), w = B(
|
|
1272
1272
|
u.submission.rates ? Object.fromEntries(
|
|
1273
|
-
Object.entries(u.submission.rates).map(([
|
|
1273
|
+
Object.entries(u.submission.rates).map(([F, n]) => [F, `${n}`])
|
|
1274
1274
|
) : { ...k }
|
|
1275
|
-
),
|
|
1276
|
-
() => Object.values(
|
|
1277
|
-
), K = j(() =>
|
|
1275
|
+
), W = j(
|
|
1276
|
+
() => Object.values(w.value).every((F) => parseFloat(F) > 0)
|
|
1277
|
+
), K = j(() => l.businessType === "juristic" ? "Juristic" : l.businessType === "individual" ? "Individual" : l.businessType || "-"), X = () => C(async () => {
|
|
1278
1278
|
try {
|
|
1279
|
-
const
|
|
1279
|
+
const F = await z.reviewById(
|
|
1280
1280
|
u.submission._id,
|
|
1281
1281
|
{
|
|
1282
|
-
status:
|
|
1282
|
+
status: de.FdoOnboardStatus.enum.ready
|
|
1283
1283
|
}
|
|
1284
1284
|
);
|
|
1285
|
-
|
|
1285
|
+
v("update:submission", F), c.open({
|
|
1286
1286
|
type: "success",
|
|
1287
1287
|
title: "Submission marked as ready"
|
|
1288
1288
|
});
|
|
1289
|
-
} catch (
|
|
1290
|
-
|
|
1289
|
+
} catch (F) {
|
|
1290
|
+
c.open({
|
|
1291
1291
|
type: "error",
|
|
1292
1292
|
title: "Error occurs when marking submission as ready",
|
|
1293
|
-
message:
|
|
1293
|
+
message: J(F)
|
|
1294
1294
|
});
|
|
1295
1295
|
}
|
|
1296
|
-
}), M = () =>
|
|
1296
|
+
}), M = () => C(async () => {
|
|
1297
1297
|
try {
|
|
1298
|
-
const
|
|
1298
|
+
const F = await z.reviewById(
|
|
1299
1299
|
u.submission._id,
|
|
1300
1300
|
{
|
|
1301
1301
|
rates: Object.fromEntries(
|
|
1302
|
-
|
|
1302
|
+
q.map((n) => [
|
|
1303
1303
|
n.key,
|
|
1304
|
-
parseFloat(
|
|
1304
|
+
parseFloat(w.value[n.key])
|
|
1305
1305
|
])
|
|
1306
1306
|
),
|
|
1307
1307
|
status: "approved"
|
|
1308
1308
|
}
|
|
1309
1309
|
);
|
|
1310
|
-
|
|
1310
|
+
v("update:submission", F), c.open({
|
|
1311
1311
|
type: "success",
|
|
1312
1312
|
title: "Submission updated successfully"
|
|
1313
1313
|
});
|
|
1314
|
-
} catch (
|
|
1315
|
-
|
|
1314
|
+
} catch (F) {
|
|
1315
|
+
c.open({
|
|
1316
1316
|
type: "error",
|
|
1317
1317
|
title: "Error occurs when updating submission",
|
|
1318
|
-
message:
|
|
1318
|
+
message: J(F)
|
|
1319
1319
|
});
|
|
1320
1320
|
}
|
|
1321
|
-
}), te = () =>
|
|
1321
|
+
}), te = () => C(async () => {
|
|
1322
1322
|
try {
|
|
1323
|
-
const
|
|
1323
|
+
const F = await z.reviewById(
|
|
1324
1324
|
u.submission._id,
|
|
1325
1325
|
{
|
|
1326
1326
|
status: "rejected",
|
|
1327
1327
|
statusReason: N.value
|
|
1328
1328
|
}
|
|
1329
1329
|
);
|
|
1330
|
-
|
|
1330
|
+
v("update:submission", F), m.value = !1, c.open({
|
|
1331
1331
|
type: "success",
|
|
1332
1332
|
title: "Submission updated successfully"
|
|
1333
1333
|
});
|
|
1334
|
-
} catch (
|
|
1335
|
-
|
|
1334
|
+
} catch (F) {
|
|
1335
|
+
c.open({
|
|
1336
1336
|
type: "error",
|
|
1337
1337
|
title: "Error occurs when updating submission",
|
|
1338
|
-
message:
|
|
1338
|
+
message: J(F)
|
|
1339
1339
|
});
|
|
1340
1340
|
}
|
|
1341
1341
|
});
|
|
1342
|
-
return (
|
|
1343
|
-
const
|
|
1344
|
-
return i(), p(
|
|
1342
|
+
return (F, n) => {
|
|
1343
|
+
const T = h("FmTextField"), Z = h("FmButton"), oe = h("FmTextarea"), re = h("FmDialog"), le = h("FmPhoneNumber"), S = h("FmForm");
|
|
1344
|
+
return i(), p(L, null, [
|
|
1345
1345
|
s("div", il, [
|
|
1346
1346
|
s("div", null, [
|
|
1347
1347
|
n[31] || (n[31] = s("span", { class: "w-40 font-medium text-gray-600" }, "Restaurant: ", -1)),
|
|
1348
|
-
s("span", ul,
|
|
1348
|
+
s("span", ul, R(e(x)), 1)
|
|
1349
1349
|
]),
|
|
1350
1350
|
s("div", null, [
|
|
1351
1351
|
n[32] || (n[32] = s("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
1352
|
-
s("span", dl,
|
|
1352
|
+
s("span", dl, R(e(g).name) + " ( " + R(e(g).legalName) + " )", 1)
|
|
1353
1353
|
]),
|
|
1354
1354
|
s("div", null, [
|
|
1355
1355
|
n[33] || (n[33] = s("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
1356
|
-
s("span", ml,
|
|
1356
|
+
s("span", ml, R(e(g).email), 1)
|
|
1357
1357
|
]),
|
|
1358
1358
|
s("div", null, [
|
|
1359
1359
|
n[34] || (n[34] = s("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
1360
|
-
s("span", pl,
|
|
1360
|
+
s("span", pl, R(e(g).phoneNo), 1)
|
|
1361
1361
|
]),
|
|
1362
1362
|
s("div", null, [
|
|
1363
1363
|
n[35] || (n[35] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
1364
|
-
s("span",
|
|
1365
|
-
o(Ce, { data: e(
|
|
1364
|
+
s("span", cl, [
|
|
1365
|
+
o(Ce, { data: e(I) }, null, 8, ["data"])
|
|
1366
1366
|
])
|
|
1367
1367
|
]),
|
|
1368
1368
|
s("div", null, [
|
|
1369
1369
|
n[36] || (n[36] = s("span", { class: "w-40 font-medium text-gray-600" }, "Status Reason: ", -1)),
|
|
1370
|
-
s("span",
|
|
1370
|
+
s("span", bl, R(e(U)), 1)
|
|
1371
1371
|
])
|
|
1372
1372
|
]),
|
|
1373
1373
|
n[43] || (n[43] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
1374
1374
|
s("div", gl, [
|
|
1375
|
-
(i(), p(
|
|
1375
|
+
(i(), p(L, null, O(q, (t) => o(T, {
|
|
1376
1376
|
key: t.key,
|
|
1377
|
-
modelValue:
|
|
1378
|
-
"onUpdate:modelValue": (
|
|
1377
|
+
modelValue: w.value[t.key],
|
|
1378
|
+
"onUpdate:modelValue": (A) => w.value[t.key] = A,
|
|
1379
1379
|
label: t.label,
|
|
1380
1380
|
"label-mark": "required",
|
|
1381
1381
|
type: "number",
|
|
1382
1382
|
inputmode: "numeric",
|
|
1383
1383
|
decimal: 2,
|
|
1384
|
-
rules: e(
|
|
1385
|
-
e(
|
|
1384
|
+
rules: e(y)(
|
|
1385
|
+
e(f).string().min(1, "Rate is required").transform((A) => parseFloat(A)).refine((A) => !isNaN(A), { message: "Rate must be a number" })
|
|
1386
1386
|
)
|
|
1387
1387
|
}, {
|
|
1388
|
-
append:
|
|
1389
|
-
|
|
1388
|
+
append: P(() => [...n[37] || (n[37] = [
|
|
1389
|
+
H("%", -1)
|
|
1390
1390
|
])]),
|
|
1391
1391
|
_: 1
|
|
1392
1392
|
}, 8, ["modelValue", "onUpdate:modelValue", "label", "rules"])), 64))
|
|
@@ -1396,20 +1396,20 @@ const mt = {
|
|
|
1396
1396
|
modelValue: m.value,
|
|
1397
1397
|
"onUpdate:modelValue": n[1] || (n[1] = (t) => m.value = t)
|
|
1398
1398
|
}, {
|
|
1399
|
-
"dialog-button":
|
|
1399
|
+
"dialog-button": P(() => [
|
|
1400
1400
|
o(Z, {
|
|
1401
1401
|
class: "mr-6",
|
|
1402
1402
|
type: "button",
|
|
1403
1403
|
variant: "destructive",
|
|
1404
1404
|
"prepend-icon": "block",
|
|
1405
|
-
loading: e(
|
|
1405
|
+
loading: e(b),
|
|
1406
1406
|
label: "Reject Submission"
|
|
1407
1407
|
}, null, 8, ["loading"])
|
|
1408
1408
|
]),
|
|
1409
|
-
"dialog-header":
|
|
1409
|
+
"dialog-header": P(() => [...n[38] || (n[38] = [
|
|
1410
1410
|
s("div", null, "Rejecting Submission", -1)
|
|
1411
1411
|
])]),
|
|
1412
|
-
default:
|
|
1412
|
+
default: P(() => [
|
|
1413
1413
|
o(oe, {
|
|
1414
1414
|
modelValue: N.value,
|
|
1415
1415
|
"onUpdate:modelValue": n[0] || (n[0] = (t) => N.value = t),
|
|
@@ -1422,7 +1422,7 @@ const mt = {
|
|
|
1422
1422
|
label: "Submit",
|
|
1423
1423
|
"prepend-icon": "save",
|
|
1424
1424
|
onClick: te,
|
|
1425
|
-
loading: e(
|
|
1425
|
+
loading: e(b)
|
|
1426
1426
|
}, null, 8, ["loading"])
|
|
1427
1427
|
]),
|
|
1428
1428
|
_: 1
|
|
@@ -1432,11 +1432,11 @@ const mt = {
|
|
|
1432
1432
|
variant: "primary",
|
|
1433
1433
|
"prepend-icon": "approval",
|
|
1434
1434
|
label: "Approve Submission with Rates",
|
|
1435
|
-
disabled: !
|
|
1435
|
+
disabled: !W.value,
|
|
1436
1436
|
onClick: M,
|
|
1437
|
-
loading: e(
|
|
1437
|
+
loading: e(b)
|
|
1438
1438
|
}, null, 8, ["disabled", "loading"]),
|
|
1439
|
-
e(
|
|
1439
|
+
e(I) === "approved" ? (i(), _(Z, {
|
|
1440
1440
|
key: 0,
|
|
1441
1441
|
type: "button",
|
|
1442
1442
|
variant: "secondary",
|
|
@@ -1444,151 +1444,151 @@ const mt = {
|
|
|
1444
1444
|
label: "Mark as Ready",
|
|
1445
1445
|
class: "ml-6",
|
|
1446
1446
|
onClick: X,
|
|
1447
|
-
loading: e(
|
|
1447
|
+
loading: e(b)
|
|
1448
1448
|
}, null, 8, ["loading"])) : E("", !0)
|
|
1449
1449
|
]),
|
|
1450
|
-
o(
|
|
1451
|
-
default:
|
|
1450
|
+
o(S, { disabled: !0 }, {
|
|
1451
|
+
default: P(() => [
|
|
1452
1452
|
n[39] || (n[39] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Outlet Information ", -1)),
|
|
1453
1453
|
s("div", fl, [
|
|
1454
1454
|
s("div", vl, [
|
|
1455
|
-
o(
|
|
1456
|
-
modelValue: e(
|
|
1457
|
-
"onUpdate:modelValue": n[2] || (n[2] = (t) => e(
|
|
1455
|
+
o(T, {
|
|
1456
|
+
modelValue: e(l).companyName,
|
|
1457
|
+
"onUpdate:modelValue": n[2] || (n[2] = (t) => e(l).companyName = t),
|
|
1458
1458
|
label: "Company Name",
|
|
1459
1459
|
"label-mark": "required",
|
|
1460
|
-
rules: e(
|
|
1460
|
+
rules: e(y)(e(f).string().min(1, "Company Name is required"))
|
|
1461
1461
|
}, null, 8, ["modelValue", "rules"])
|
|
1462
1462
|
]),
|
|
1463
1463
|
s("div", Vl, [
|
|
1464
|
-
o(
|
|
1465
|
-
modelValue: e(
|
|
1466
|
-
"onUpdate:modelValue": n[3] || (n[3] = (t) => e(
|
|
1464
|
+
o(T, {
|
|
1465
|
+
modelValue: e(l).outletName,
|
|
1466
|
+
"onUpdate:modelValue": n[3] || (n[3] = (t) => e(l).outletName = t),
|
|
1467
1467
|
label: "Outlet Name (Thai)",
|
|
1468
1468
|
"label-mark": "required",
|
|
1469
|
-
rules: e(
|
|
1469
|
+
rules: e(y)(e(f).string().min(1, "Outlet Name is required"))
|
|
1470
1470
|
}, null, 8, ["modelValue", "rules"])
|
|
1471
1471
|
]),
|
|
1472
1472
|
s("div", kl, [
|
|
1473
|
-
o(
|
|
1474
|
-
modelValue: e(
|
|
1475
|
-
"onUpdate:modelValue": n[4] || (n[4] = (t) => e(
|
|
1473
|
+
o(T, {
|
|
1474
|
+
modelValue: e(l).outletNameEnglish,
|
|
1475
|
+
"onUpdate:modelValue": n[4] || (n[4] = (t) => e(l).outletNameEnglish = t),
|
|
1476
1476
|
label: "Outlet Name (English)",
|
|
1477
1477
|
"label-mark": "required",
|
|
1478
|
-
rules: e(
|
|
1478
|
+
rules: e(y)(e(f).string().min(1, "Outlet Name English is required"))
|
|
1479
1479
|
}, null, 8, ["modelValue", "rules"])
|
|
1480
1480
|
]),
|
|
1481
1481
|
s("div", Cl, [
|
|
1482
|
-
o(
|
|
1483
|
-
modelValue: e(
|
|
1484
|
-
"onUpdate:modelValue": n[5] || (n[5] = (t) => e(
|
|
1482
|
+
o(T, {
|
|
1483
|
+
modelValue: e(l).outletAddress,
|
|
1484
|
+
"onUpdate:modelValue": n[5] || (n[5] = (t) => e(l).outletAddress = t),
|
|
1485
1485
|
label: "Outlet Address",
|
|
1486
1486
|
"label-mark": "required",
|
|
1487
|
-
rules: e(
|
|
1487
|
+
rules: e(y)(e(f).string().min(1, "Outlet Address is required"))
|
|
1488
1488
|
}, null, 8, ["modelValue", "rules"])
|
|
1489
1489
|
]),
|
|
1490
|
-
o(
|
|
1491
|
-
modelValue: e(
|
|
1492
|
-
"onUpdate:modelValue": n[6] || (n[6] = (t) => e(
|
|
1490
|
+
o(T, {
|
|
1491
|
+
modelValue: e(l).outletPostCode,
|
|
1492
|
+
"onUpdate:modelValue": n[6] || (n[6] = (t) => e(l).outletPostCode = t),
|
|
1493
1493
|
label: "Post Code",
|
|
1494
1494
|
"label-mark": "required",
|
|
1495
|
-
rules: e(
|
|
1495
|
+
rules: e(y)(e(f).string().min(1, "Post Code is required"))
|
|
1496
1496
|
}, null, 8, ["modelValue", "rules"]),
|
|
1497
|
-
o(
|
|
1498
|
-
modelValue: e(
|
|
1499
|
-
"onUpdate:modelValue": n[7] || (n[7] = (t) => e(
|
|
1497
|
+
o(T, {
|
|
1498
|
+
modelValue: e(l).outletState,
|
|
1499
|
+
"onUpdate:modelValue": n[7] || (n[7] = (t) => e(l).outletState = t),
|
|
1500
1500
|
label: "State",
|
|
1501
1501
|
"label-mark": "required",
|
|
1502
|
-
rules: e(
|
|
1502
|
+
rules: e(y)(e(f).string().min(1, "State is required"))
|
|
1503
1503
|
}, null, 8, ["modelValue", "rules"]),
|
|
1504
|
-
o(
|
|
1505
|
-
modelValue: e(
|
|
1506
|
-
"onUpdate:modelValue": n[8] || (n[8] = (t) => e(
|
|
1504
|
+
o(T, {
|
|
1505
|
+
modelValue: e(l).outletCity,
|
|
1506
|
+
"onUpdate:modelValue": n[8] || (n[8] = (t) => e(l).outletCity = t),
|
|
1507
1507
|
label: "City",
|
|
1508
1508
|
"label-mark": "required",
|
|
1509
|
-
rules: e(
|
|
1509
|
+
rules: e(y)(e(f).string().min(1, "City is required"))
|
|
1510
1510
|
}, null, 8, ["modelValue", "rules"]),
|
|
1511
|
-
o(
|
|
1511
|
+
o(T, {
|
|
1512
1512
|
"model-value": K.value,
|
|
1513
1513
|
label: "Business Type",
|
|
1514
1514
|
"label-mark": "required"
|
|
1515
1515
|
}, null, 8, ["model-value"]),
|
|
1516
|
-
o(
|
|
1517
|
-
modelValue: e(
|
|
1518
|
-
"onUpdate:modelValue": n[9] || (n[9] = (t) => e(
|
|
1516
|
+
o(T, {
|
|
1517
|
+
modelValue: e(l).numberOfDevices,
|
|
1518
|
+
"onUpdate:modelValue": n[9] || (n[9] = (t) => e(l).numberOfDevices = t),
|
|
1519
1519
|
label: "Number of Devices",
|
|
1520
1520
|
"label-mark": "required"
|
|
1521
1521
|
}, null, 8, ["modelValue"])
|
|
1522
1522
|
]),
|
|
1523
1523
|
n[40] || (n[40] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Payout Information ", -1)),
|
|
1524
1524
|
s("div", xl, [
|
|
1525
|
-
o(
|
|
1526
|
-
modelValue: e(
|
|
1527
|
-
"onUpdate:modelValue": n[10] || (n[10] = (t) => e(
|
|
1525
|
+
o(T, {
|
|
1526
|
+
modelValue: e(l).bankName,
|
|
1527
|
+
"onUpdate:modelValue": n[10] || (n[10] = (t) => e(l).bankName = t),
|
|
1528
1528
|
label: "Bank Name",
|
|
1529
1529
|
"label-mark": "required",
|
|
1530
|
-
rules: e(
|
|
1530
|
+
rules: e(y)(e(f).string().min(1, "Bank Name is required"))
|
|
1531
1531
|
}, null, 8, ["modelValue", "rules"]),
|
|
1532
|
-
o(
|
|
1533
|
-
modelValue: e(
|
|
1534
|
-
"onUpdate:modelValue": n[11] || (n[11] = (t) => e(
|
|
1532
|
+
o(T, {
|
|
1533
|
+
modelValue: e(l).bankHolderName,
|
|
1534
|
+
"onUpdate:modelValue": n[11] || (n[11] = (t) => e(l).bankHolderName = t),
|
|
1535
1535
|
label: "Bank Holder Name",
|
|
1536
1536
|
"label-mark": "required",
|
|
1537
|
-
rules: e(
|
|
1537
|
+
rules: e(y)(e(f).string().min(1, "Bank Holder Name is required"))
|
|
1538
1538
|
}, null, 8, ["modelValue", "rules"]),
|
|
1539
|
-
o(
|
|
1540
|
-
modelValue: e(
|
|
1541
|
-
"onUpdate:modelValue": n[12] || (n[12] = (t) => e(
|
|
1539
|
+
o(T, {
|
|
1540
|
+
modelValue: e(l).bankAccountNo,
|
|
1541
|
+
"onUpdate:modelValue": n[12] || (n[12] = (t) => e(l).bankAccountNo = t),
|
|
1542
1542
|
label: "Bank Account No",
|
|
1543
1543
|
"label-mark": "required",
|
|
1544
|
-
rules: e(
|
|
1544
|
+
rules: e(y)(e(f).string().min(1, "Bank Account No is required"))
|
|
1545
1545
|
}, null, 8, ["modelValue", "rules"]),
|
|
1546
|
-
o(
|
|
1547
|
-
modelValue: e(
|
|
1548
|
-
"onUpdate:modelValue": n[13] || (n[13] = (t) => e(
|
|
1546
|
+
o(T, {
|
|
1547
|
+
modelValue: e(l).bankBranch,
|
|
1548
|
+
"onUpdate:modelValue": n[13] || (n[13] = (t) => e(l).bankBranch = t),
|
|
1549
1549
|
label: "Bank Branch",
|
|
1550
1550
|
"label-mark": "required",
|
|
1551
|
-
rules: e(
|
|
1551
|
+
rules: e(y)(e(f).string().min(1, "Bank Branch is required"))
|
|
1552
1552
|
}, null, 8, ["modelValue", "rules"]),
|
|
1553
|
-
o(
|
|
1554
|
-
modelValue: e(
|
|
1555
|
-
"onUpdate:modelValue": n[14] || (n[14] = (t) => e(
|
|
1553
|
+
o(T, {
|
|
1554
|
+
modelValue: e(l).bankBranchCode,
|
|
1555
|
+
"onUpdate:modelValue": n[14] || (n[14] = (t) => e(l).bankBranchCode = t),
|
|
1556
1556
|
label: "Bank Branch Code",
|
|
1557
1557
|
"label-mark": "required",
|
|
1558
|
-
rules: e(
|
|
1558
|
+
rules: e(y)(e(f).string().min(1, "Bank Branch Code is required"))
|
|
1559
1559
|
}, null, 8, ["modelValue", "rules"])
|
|
1560
1560
|
]),
|
|
1561
1561
|
n[41] || (n[41] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Documents", -1)),
|
|
1562
|
-
s("div",
|
|
1563
|
-
o(
|
|
1562
|
+
s("div", Sl, [
|
|
1563
|
+
o(D, {
|
|
1564
1564
|
label: "Authorized Person ID",
|
|
1565
1565
|
modelValue: e(r).authorizedPersonID,
|
|
1566
1566
|
"onUpdate:modelValue": n[15] || (n[15] = (t) => e(r).authorizedPersonID = t),
|
|
1567
1567
|
type: "image",
|
|
1568
1568
|
"restaurant-id": d.submission.restaurantId
|
|
1569
1569
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1570
|
-
o(
|
|
1570
|
+
o(D, {
|
|
1571
1571
|
label: "Outlet Photo",
|
|
1572
1572
|
modelValue: e(r).outletPhoto,
|
|
1573
1573
|
"onUpdate:modelValue": n[16] || (n[16] = (t) => e(r).outletPhoto = t),
|
|
1574
1574
|
type: "image",
|
|
1575
1575
|
"restaurant-id": d.submission.restaurantId
|
|
1576
1576
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1577
|
-
o(
|
|
1577
|
+
o(D, {
|
|
1578
1578
|
label: "Interior Photo",
|
|
1579
1579
|
modelValue: e(r).interiorPhoto,
|
|
1580
1580
|
"onUpdate:modelValue": n[17] || (n[17] = (t) => e(r).interiorPhoto = t),
|
|
1581
1581
|
type: "image",
|
|
1582
1582
|
"restaurant-id": d.submission.restaurantId
|
|
1583
1583
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1584
|
-
o(
|
|
1584
|
+
o(D, {
|
|
1585
1585
|
label: "Bank Statement",
|
|
1586
1586
|
modelValue: e(r).bankStatement,
|
|
1587
1587
|
"onUpdate:modelValue": n[18] || (n[18] = (t) => e(r).bankStatement = t),
|
|
1588
1588
|
type: "pdf",
|
|
1589
1589
|
"restaurant-id": d.submission.restaurantId
|
|
1590
1590
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1591
|
-
e(
|
|
1591
|
+
e(l).businessType === "juristic" ? (i(), _(D, {
|
|
1592
1592
|
key: 0,
|
|
1593
1593
|
label: "Company Certificate",
|
|
1594
1594
|
type: "pdf",
|
|
@@ -1596,7 +1596,7 @@ const mt = {
|
|
|
1596
1596
|
"onUpdate:modelValue": n[19] || (n[19] = (t) => e(r).companyCertificate = t),
|
|
1597
1597
|
"restaurant-id": d.submission.restaurantId
|
|
1598
1598
|
}, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
|
|
1599
|
-
e(
|
|
1599
|
+
e(l).businessType === "juristic" ? (i(), _(D, {
|
|
1600
1600
|
key: 1,
|
|
1601
1601
|
label: "VAT Certificate",
|
|
1602
1602
|
type: "pdf",
|
|
@@ -1604,7 +1604,7 @@ const mt = {
|
|
|
1604
1604
|
"onUpdate:modelValue": n[20] || (n[20] = (t) => e(r).vatCertificate = t),
|
|
1605
1605
|
"restaurant-id": d.submission.restaurantId
|
|
1606
1606
|
}, null, 8, ["modelValue", "restaurant-id"])) : E("", !0),
|
|
1607
|
-
e(
|
|
1607
|
+
e(l).businessType === "individual" ? (i(), _(D, {
|
|
1608
1608
|
key: 2,
|
|
1609
1609
|
label: "Commercial Certificate",
|
|
1610
1610
|
type: "pdf",
|
|
@@ -1614,77 +1614,77 @@ const mt = {
|
|
|
1614
1614
|
}, null, 8, ["modelValue", "restaurant-id"])) : E("", !0)
|
|
1615
1615
|
]),
|
|
1616
1616
|
n[42] || (n[42] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " Declaration Information ", -1)),
|
|
1617
|
-
s("div",
|
|
1617
|
+
s("div", wl, [
|
|
1618
1618
|
s("div", Nl, [
|
|
1619
|
-
o(
|
|
1620
|
-
modelValue: e(
|
|
1621
|
-
"onUpdate:modelValue": n[22] || (n[22] = (t) => e(
|
|
1619
|
+
o(T, {
|
|
1620
|
+
modelValue: e(l).picName,
|
|
1621
|
+
"onUpdate:modelValue": n[22] || (n[22] = (t) => e(l).picName = t),
|
|
1622
1622
|
label: "PIC Name",
|
|
1623
1623
|
"label-mark": "required",
|
|
1624
|
-
rules: e(
|
|
1624
|
+
rules: e(y)(e(f).string().min(1, "PIC Name is required"))
|
|
1625
1625
|
}, null, 8, ["modelValue", "rules"])
|
|
1626
1626
|
]),
|
|
1627
1627
|
s("div", Pl, [
|
|
1628
|
-
o(
|
|
1629
|
-
modelValue: e(
|
|
1630
|
-
"onUpdate:modelValue": n[23] || (n[23] = (t) => e(
|
|
1628
|
+
o(T, {
|
|
1629
|
+
modelValue: e(l).picRole,
|
|
1630
|
+
"onUpdate:modelValue": n[23] || (n[23] = (t) => e(l).picRole = t),
|
|
1631
1631
|
label: "PIC Role",
|
|
1632
1632
|
"label-mark": "required",
|
|
1633
|
-
rules: e(
|
|
1633
|
+
rules: e(y)(e(f).string().min(1, "PIC Role is required"))
|
|
1634
1634
|
}, null, 8, ["modelValue", "rules"])
|
|
1635
1635
|
]),
|
|
1636
1636
|
s("div", hl, [
|
|
1637
|
-
o(
|
|
1638
|
-
modelValue: e(
|
|
1639
|
-
"onUpdate:modelValue": n[24] || (n[24] = (t) => e(
|
|
1637
|
+
o(T, {
|
|
1638
|
+
modelValue: e(l).picEmail,
|
|
1639
|
+
"onUpdate:modelValue": n[24] || (n[24] = (t) => e(l).picEmail = t),
|
|
1640
1640
|
label: "PIC Email",
|
|
1641
1641
|
"label-mark": "required",
|
|
1642
|
-
rules: e(
|
|
1642
|
+
rules: e(y)(e(f).string().min(1, "PIC Email is required"))
|
|
1643
1643
|
}, null, 8, ["modelValue", "rules"])
|
|
1644
1644
|
]),
|
|
1645
|
-
s("div",
|
|
1645
|
+
s("div", Il, [
|
|
1646
1646
|
o(le, {
|
|
1647
|
-
"model-value": e(
|
|
1648
|
-
"onUpdate:modelValue": n[25] || (n[25] = (t) => e(
|
|
1647
|
+
"model-value": e(l).picContact,
|
|
1648
|
+
"onUpdate:modelValue": n[25] || (n[25] = (t) => e(l).picContact = t),
|
|
1649
1649
|
"default-country": "TH",
|
|
1650
1650
|
label: "PIC Contact",
|
|
1651
1651
|
"label-mark": "required",
|
|
1652
|
-
rules: e(
|
|
1652
|
+
rules: e(y)(e(f).string().min(1, "PIC Contact is required"))
|
|
1653
1653
|
}, null, 8, ["model-value", "rules"])
|
|
1654
1654
|
]),
|
|
1655
|
-
s("div",
|
|
1656
|
-
o(
|
|
1657
|
-
modelValue: e(
|
|
1658
|
-
"onUpdate:modelValue": n[26] || (n[26] = (t) => e(
|
|
1655
|
+
s("div", Rl, [
|
|
1656
|
+
o(T, {
|
|
1657
|
+
modelValue: e(l).witnessName,
|
|
1658
|
+
"onUpdate:modelValue": n[26] || (n[26] = (t) => e(l).witnessName = t),
|
|
1659
1659
|
label: "Witness Name",
|
|
1660
1660
|
"label-mark": "required",
|
|
1661
|
-
rules: e(
|
|
1661
|
+
rules: e(y)(e(f).string().min(1, "Witness Name is required"))
|
|
1662
1662
|
}, null, 8, ["modelValue", "rules"])
|
|
1663
1663
|
]),
|
|
1664
1664
|
s("div", ql, [
|
|
1665
|
-
o(
|
|
1666
|
-
modelValue: e(
|
|
1667
|
-
"onUpdate:modelValue": n[27] || (n[27] = (t) => e(
|
|
1665
|
+
o(T, {
|
|
1666
|
+
modelValue: e(l).witnessRole,
|
|
1667
|
+
"onUpdate:modelValue": n[27] || (n[27] = (t) => e(l).witnessRole = t),
|
|
1668
1668
|
label: "Witness Role",
|
|
1669
1669
|
"label-mark": "required",
|
|
1670
|
-
rules: e(
|
|
1670
|
+
rules: e(y)(e(f).string().min(1, "Witness Role is required"))
|
|
1671
1671
|
}, null, 8, ["modelValue", "rules"])
|
|
1672
1672
|
]),
|
|
1673
|
-
o(
|
|
1673
|
+
o(D, {
|
|
1674
1674
|
label: "Signature",
|
|
1675
1675
|
type: "image",
|
|
1676
1676
|
modelValue: e(r).signature,
|
|
1677
1677
|
"onUpdate:modelValue": n[28] || (n[28] = (t) => e(r).signature = t),
|
|
1678
1678
|
"restaurant-id": d.submission.restaurantId
|
|
1679
1679
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1680
|
-
o(
|
|
1680
|
+
o(D, {
|
|
1681
1681
|
label: "Witness Signature",
|
|
1682
1682
|
type: "image",
|
|
1683
1683
|
modelValue: e(r).witnessSignature,
|
|
1684
1684
|
"onUpdate:modelValue": n[29] || (n[29] = (t) => e(r).witnessSignature = t),
|
|
1685
1685
|
"restaurant-id": d.submission.restaurantId
|
|
1686
1686
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1687
|
-
o(
|
|
1687
|
+
o(D, {
|
|
1688
1688
|
label: "Company Stamp",
|
|
1689
1689
|
type: "image",
|
|
1690
1690
|
modelValue: e(r).companyStamp,
|
|
@@ -1698,7 +1698,7 @@ const mt = {
|
|
|
1698
1698
|
], 64);
|
|
1699
1699
|
};
|
|
1700
1700
|
}
|
|
1701
|
-
}), $l = /* @__PURE__ */
|
|
1701
|
+
}), $l = /* @__PURE__ */ G({
|
|
1702
1702
|
__name: "TyroSubmission",
|
|
1703
1703
|
props: {
|
|
1704
1704
|
submission: {
|
|
@@ -1708,49 +1708,49 @@ const mt = {
|
|
|
1708
1708
|
},
|
|
1709
1709
|
emits: ["update:submission"],
|
|
1710
1710
|
setup(d) {
|
|
1711
|
-
const
|
|
1712
|
-
const
|
|
1711
|
+
const V = d, u = j(() => {
|
|
1712
|
+
const v = V.submission.fields || {}, c = (m) => v[m] || "N/A";
|
|
1713
1713
|
return [
|
|
1714
1714
|
{
|
|
1715
1715
|
label: "Tyro POS Reference ID",
|
|
1716
|
-
value:
|
|
1716
|
+
value: c("tyroPosReference")
|
|
1717
1717
|
},
|
|
1718
1718
|
{
|
|
1719
1719
|
label: "Tyro Merchant ID",
|
|
1720
|
-
value:
|
|
1720
|
+
value: c("tyroMerchantId")
|
|
1721
1721
|
},
|
|
1722
1722
|
{
|
|
1723
1723
|
label: "Tyro Merchant Name",
|
|
1724
|
-
value:
|
|
1724
|
+
value: c("tyroMerchantDisplayName")
|
|
1725
1725
|
},
|
|
1726
1726
|
{
|
|
1727
1727
|
label: "Authorised",
|
|
1728
|
-
value:
|
|
1728
|
+
value: c("tyroIsAuthorised")
|
|
1729
1729
|
}
|
|
1730
1730
|
];
|
|
1731
1731
|
});
|
|
1732
|
-
return (
|
|
1733
|
-
const m =
|
|
1734
|
-
return i(),
|
|
1732
|
+
return (v, c) => {
|
|
1733
|
+
const m = h("FmCardHeader"), b = h("FmCardSection"), C = h("FmCard");
|
|
1734
|
+
return i(), _(C, {
|
|
1735
1735
|
class: "max-w-3xl mt-8 p-6",
|
|
1736
1736
|
variant: "elevated"
|
|
1737
1737
|
}, {
|
|
1738
|
-
default:
|
|
1739
|
-
o(
|
|
1740
|
-
default:
|
|
1738
|
+
default: P(() => [
|
|
1739
|
+
o(b, { class: "flex flex-col gap-16 justify-between" }, {
|
|
1740
|
+
default: P(() => [
|
|
1741
1741
|
o(m, {
|
|
1742
1742
|
class: "p-0",
|
|
1743
1743
|
title: "Tyro Authorisation",
|
|
1744
1744
|
subtitle: ""
|
|
1745
1745
|
}),
|
|
1746
|
-
o(
|
|
1747
|
-
default:
|
|
1748
|
-
(i(!0), p(
|
|
1749
|
-
key:
|
|
1746
|
+
o(b, { class: "p-0" }, {
|
|
1747
|
+
default: P(() => [
|
|
1748
|
+
(i(!0), p(L, null, O(u.value, (l) => (i(), p("p", {
|
|
1749
|
+
key: l.label,
|
|
1750
1750
|
class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
|
|
1751
1751
|
}, [
|
|
1752
|
-
s("b", null,
|
|
1753
|
-
|
|
1752
|
+
s("b", null, R(l.label), 1),
|
|
1753
|
+
H(": " + R(l.value), 1)
|
|
1754
1754
|
]))), 128))
|
|
1755
1755
|
]),
|
|
1756
1756
|
_: 1
|
|
@@ -1763,10 +1763,71 @@ const mt = {
|
|
|
1763
1763
|
});
|
|
1764
1764
|
};
|
|
1765
1765
|
}
|
|
1766
|
-
}),
|
|
1766
|
+
}), Ul = /* @__PURE__ */ G({
|
|
1767
|
+
__name: "TeyaSubmission",
|
|
1768
|
+
props: {
|
|
1769
|
+
submission: {
|
|
1770
|
+
type: Object,
|
|
1771
|
+
required: !0
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
emits: ["update:submission"],
|
|
1775
|
+
setup(d) {
|
|
1776
|
+
const V = d, u = j(() => {
|
|
1777
|
+
const v = V.submission.fields || {}, c = (m) => v[m] || "N/A";
|
|
1778
|
+
return [
|
|
1779
|
+
{
|
|
1780
|
+
label: "Teya Store ID",
|
|
1781
|
+
value: c("teyaStoreId")
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
label: "Teya Store Name",
|
|
1785
|
+
value: c("teyaStoreName")
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
label: "Connected At",
|
|
1789
|
+
value: c("teyaConnectedAt")
|
|
1790
|
+
}
|
|
1791
|
+
];
|
|
1792
|
+
});
|
|
1793
|
+
return (v, c) => {
|
|
1794
|
+
const m = h("FmCardHeader"), b = h("FmCardSection"), C = h("FmCard");
|
|
1795
|
+
return i(), _(C, {
|
|
1796
|
+
class: "max-w-3xl mt-8 p-6",
|
|
1797
|
+
variant: "elevated"
|
|
1798
|
+
}, {
|
|
1799
|
+
default: P(() => [
|
|
1800
|
+
o(b, { class: "flex flex-col gap-16 justify-between" }, {
|
|
1801
|
+
default: P(() => [
|
|
1802
|
+
o(m, {
|
|
1803
|
+
class: "p-0",
|
|
1804
|
+
title: "Teya Connection",
|
|
1805
|
+
subtitle: ""
|
|
1806
|
+
}),
|
|
1807
|
+
o(b, { class: "p-0" }, {
|
|
1808
|
+
default: P(() => [
|
|
1809
|
+
(i(!0), p(L, null, O(u.value, (l) => (i(), p("p", {
|
|
1810
|
+
key: l.label,
|
|
1811
|
+
class: "text-sm text-gray-900 break-all mb-4 last:mb-0"
|
|
1812
|
+
}, [
|
|
1813
|
+
s("b", null, R(l.label), 1),
|
|
1814
|
+
H(": " + R(l.value), 1)
|
|
1815
|
+
]))), 128))
|
|
1816
|
+
]),
|
|
1817
|
+
_: 1
|
|
1818
|
+
})
|
|
1819
|
+
]),
|
|
1820
|
+
_: 1
|
|
1821
|
+
})
|
|
1822
|
+
]),
|
|
1823
|
+
_: 1
|
|
1824
|
+
});
|
|
1825
|
+
};
|
|
1826
|
+
}
|
|
1827
|
+
}), Tl = {
|
|
1767
1828
|
key: 0,
|
|
1768
1829
|
class: "flex items-center justify-center min-h-[80vh]"
|
|
1769
|
-
},
|
|
1830
|
+
}, Dl = { class: "px-32 pb-32" }, Gl = /* @__PURE__ */ G({
|
|
1770
1831
|
__name: "OnboardForm",
|
|
1771
1832
|
props: {
|
|
1772
1833
|
submissionId: {
|
|
@@ -1775,92 +1836,94 @@ const mt = {
|
|
|
1775
1836
|
}
|
|
1776
1837
|
},
|
|
1777
1838
|
setup(d) {
|
|
1778
|
-
const { startAsyncCall:
|
|
1839
|
+
const { startAsyncCall: V, isLoading: u } = ne(), v = me(), c = d, m = Re(), b = B(null), C = j(
|
|
1779
1840
|
() => {
|
|
1780
|
-
var
|
|
1781
|
-
return ((
|
|
1841
|
+
var U, N;
|
|
1842
|
+
return ((U = b.value) == null ? void 0 : U.type) === de.FdoOnboardType.enum.tyro || ((N = b.value) == null ? void 0 : N.type) === de.FdoOnboardType.enum.teya;
|
|
1782
1843
|
}
|
|
1783
|
-
),
|
|
1844
|
+
), l = () => {
|
|
1784
1845
|
if (window.history.length > 1) {
|
|
1785
1846
|
m.back();
|
|
1786
1847
|
return;
|
|
1787
1848
|
}
|
|
1788
1849
|
m.push({ name: "mf-payment-admin.onboard-submission" });
|
|
1789
1850
|
};
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1851
|
+
Ve(() => {
|
|
1852
|
+
V(async () => {
|
|
1853
|
+
b.value = await z.readById(c.submissionId);
|
|
1793
1854
|
});
|
|
1794
1855
|
});
|
|
1795
1856
|
const r = j(() => {
|
|
1796
|
-
if (!
|
|
1797
|
-
switch (
|
|
1857
|
+
if (!b.value) return null;
|
|
1858
|
+
switch (b.value.type) {
|
|
1798
1859
|
case "softspace":
|
|
1799
1860
|
return rl;
|
|
1800
1861
|
case "ntt":
|
|
1801
|
-
return
|
|
1862
|
+
return Fl;
|
|
1802
1863
|
case "tyro":
|
|
1803
1864
|
return $l;
|
|
1865
|
+
case "teya":
|
|
1866
|
+
return Ul;
|
|
1804
1867
|
default:
|
|
1805
1868
|
return null;
|
|
1806
1869
|
}
|
|
1807
|
-
}),
|
|
1808
|
-
function
|
|
1809
|
-
|
|
1870
|
+
}), x = B(0);
|
|
1871
|
+
function g(U) {
|
|
1872
|
+
b.value = U, x.value = Date.now();
|
|
1810
1873
|
}
|
|
1811
|
-
const
|
|
1812
|
-
var N,
|
|
1813
|
-
if (
|
|
1814
|
-
switch (
|
|
1874
|
+
const I = async (U) => {
|
|
1875
|
+
var N, q;
|
|
1876
|
+
if (b.value)
|
|
1877
|
+
switch (U) {
|
|
1815
1878
|
case "preview":
|
|
1816
1879
|
let k;
|
|
1817
1880
|
try {
|
|
1818
|
-
k =
|
|
1881
|
+
k = v.open({
|
|
1819
1882
|
message: "Generating preview document...",
|
|
1820
1883
|
type: "info"
|
|
1821
|
-
}), await
|
|
1822
|
-
} catch (
|
|
1823
|
-
|
|
1884
|
+
}), await z.previewDocument((N = b.value) == null ? void 0 : N._id);
|
|
1885
|
+
} catch (w) {
|
|
1886
|
+
v.open({
|
|
1824
1887
|
type: "error",
|
|
1825
1888
|
title: "Error occurs when generating submission document",
|
|
1826
|
-
message:
|
|
1889
|
+
message: J(w)
|
|
1827
1890
|
});
|
|
1828
1891
|
} finally {
|
|
1829
|
-
k &&
|
|
1892
|
+
k && v.close(k);
|
|
1830
1893
|
}
|
|
1831
1894
|
break;
|
|
1832
1895
|
case "send":
|
|
1833
1896
|
try {
|
|
1834
|
-
|
|
1897
|
+
v.open({
|
|
1835
1898
|
message: "Sending onboarding document...",
|
|
1836
1899
|
type: "info"
|
|
1837
|
-
}), await
|
|
1900
|
+
}), await z.sendDocument((q = b.value) == null ? void 0 : q._id), v.open({
|
|
1838
1901
|
type: "success",
|
|
1839
1902
|
title: "Submission documents send successfully"
|
|
1840
1903
|
});
|
|
1841
|
-
} catch (
|
|
1842
|
-
|
|
1904
|
+
} catch (w) {
|
|
1905
|
+
v.open({
|
|
1843
1906
|
type: "error",
|
|
1844
1907
|
title: "Error occurs when sending document",
|
|
1845
|
-
message:
|
|
1908
|
+
message: J(w)
|
|
1846
1909
|
});
|
|
1847
1910
|
}
|
|
1848
1911
|
break;
|
|
1849
1912
|
}
|
|
1850
1913
|
};
|
|
1851
|
-
return (
|
|
1852
|
-
var
|
|
1853
|
-
const
|
|
1854
|
-
return e(u) ? (i(), p("div",
|
|
1855
|
-
o(
|
|
1856
|
-
])) : (i(), p(
|
|
1914
|
+
return (U, N) => {
|
|
1915
|
+
var w, W, K, X;
|
|
1916
|
+
const q = h("FmCircularProgress"), k = h("FmPageHead");
|
|
1917
|
+
return e(u) ? (i(), p("div", Tl, [
|
|
1918
|
+
o(q, { size: "xxl" })
|
|
1919
|
+
])) : (i(), p(L, { key: 1 }, [
|
|
1857
1920
|
o(k, {
|
|
1858
|
-
title: `Submission - ${(
|
|
1859
|
-
description: `ID - ${(
|
|
1921
|
+
title: `Submission - ${(w = b.value) == null ? void 0 : w.type}`,
|
|
1922
|
+
description: `ID - ${(W = b.value) == null ? void 0 : W._id}`,
|
|
1860
1923
|
"back-button": !0,
|
|
1861
|
-
"onClick:back":
|
|
1862
|
-
"onClick:action":
|
|
1863
|
-
actions:
|
|
1924
|
+
"onClick:back": l,
|
|
1925
|
+
"onClick:action": I,
|
|
1926
|
+
actions: C.value ? [] : [
|
|
1864
1927
|
{
|
|
1865
1928
|
label: "Preview Document",
|
|
1866
1929
|
value: "preview",
|
|
@@ -1874,16 +1937,16 @@ const mt = {
|
|
|
1874
1937
|
}
|
|
1875
1938
|
]
|
|
1876
1939
|
}, null, 8, ["title", "description", "actions"]),
|
|
1877
|
-
s("div",
|
|
1878
|
-
(i(),
|
|
1879
|
-
key:
|
|
1880
|
-
submission:
|
|
1881
|
-
"onUpdate:submission":
|
|
1940
|
+
s("div", Dl, [
|
|
1941
|
+
(i(), _(ue(r.value), {
|
|
1942
|
+
key: x.value,
|
|
1943
|
+
submission: b.value,
|
|
1944
|
+
"onUpdate:submission": g
|
|
1882
1945
|
}, null, 40, ["submission"])),
|
|
1883
|
-
((K =
|
|
1946
|
+
((K = b.value) == null ? void 0 : K.type) !== "softspace" ? (i(), p(L, { key: 0 }, [
|
|
1884
1947
|
N[0] || (N[0] = s("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Timeline", -1)),
|
|
1885
1948
|
o(xe, {
|
|
1886
|
-
entries: (X =
|
|
1949
|
+
entries: (X = b.value) == null ? void 0 : X.timeline
|
|
1887
1950
|
}, null, 8, ["entries"])
|
|
1888
1951
|
], 64)) : E("", !0)
|
|
1889
1952
|
])
|
|
@@ -1892,5 +1955,5 @@ const mt = {
|
|
|
1892
1955
|
}
|
|
1893
1956
|
});
|
|
1894
1957
|
export {
|
|
1895
|
-
|
|
1958
|
+
Gl as default
|
|
1896
1959
|
};
|