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