@feedmepos/mf-payment 1.10.5-dev → 1.10.6
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-BIxmXhVi.js → Actions.vue_vue_type_script_setup_true_lang-CqJd1X0X.js} +1 -1
- package/dist/{AdminBusinessSelector.vue_vue_type_script_setup_true_lang-BOuAR3Jk.js → AdminBusinessSelector.vue_vue_type_script_setup_true_lang-Eu7ASW2o.js} +3 -3
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CVWH4h9m.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CRCrBun9.js} +2 -2
- package/dist/{Chargeback-D-SaWEZ3.js → Chargeback-CMd35ws-.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-BddsB-O7.js → DocumentViewer.vue_vue_type_script_setup_true_lang-B1VBR6hm.js} +1 -1
- package/dist/{ExternalTerminal-DSFdyxgo.js → ExternalTerminal--aTxkXzh.js} +6 -6
- package/dist/{OnboardForm-rjhOG28l.js → OnboardForm-C3h1KO1O.js} +87 -86
- package/dist/{OnboardForm-BW_d_NI5.js → OnboardForm-Cv-b3Skb.js} +6 -6
- package/dist/{OnboardSubmission-CvSo8EfH.js → OnboardSubmission-Ck3nezzM.js} +6 -6
- package/dist/{OnboardSubmission-b73A_sV3.js → OnboardSubmission-CxeCT_G3.js} +3 -3
- package/dist/{PayoutAccount-q8erqoPY.js → PayoutAccount-BGoBqwop.js} +7 -7
- package/dist/{PayoutAccount-DaFv-aML.js → PayoutAccount-BYYsU904.js} +5 -5
- package/dist/{PayoutAccountSetting-DxxdGfgG.js → PayoutAccountSetting-Cb3qV2mD.js} +722 -715
- package/dist/{Restaurant-CV8QkUbQ.js → Restaurant-Fzvk7vXR.js} +4 -4
- package/dist/{RestaurantSetting-CTlqvfdy.js → RestaurantSetting-DbUoc8oN.js} +3 -3
- package/dist/{Settlement-iRQ6XDJ4.js → Settlement-BRIrYWpz.js} +4 -4
- package/dist/{Settlement-Cl9Gg13I.js → Settlement-W01KavYf.js} +3 -3
- package/dist/{SettlementTransactions-CHUT3xnm.js → SettlementTransactions-DapiPPJF.js} +5 -5
- package/dist/{SettlementTransactions-blKyTkGq.js → SettlementTransactions-mwlfQemB.js} +5 -5
- package/dist/{Status.vue_vue_type_script_setup_true_lang-D_nmEdyu.js → Status.vue_vue_type_script_setup_true_lang-Ds_0bxtO.js} +1 -1
- package/dist/{Terminal-BXvAm6w3.js → Terminal-83TwJ7ie.js} +6 -6
- package/dist/{TerminalSetting-C4o5IOpK.js → TerminalSetting-DqQoSYrZ.js} +6 -6
- package/dist/{Transaction-BIeW9fTK.js → Transaction-DHs4jxYL.js} +10 -10
- package/dist/{Transaction-DntiUDtA.js → Transaction-cq5rmTfT.js} +11 -11
- package/dist/{TransactionOld-BLrS-7GS.js → TransactionOld-DaheibSS.js} +7 -7
- package/dist/{TransactionStatus.vue_vue_type_script_setup_true_lang-CjQ2GMrD.js → TransactionStatus.vue_vue_type_script_setup_true_lang-BoPXEI9q.js} +1 -1
- package/dist/{app-DyJjl-JW.js → app-DUV0ashg.js} +353 -362
- package/dist/app.js +1 -1
- package/dist/{assets-Dli_wsgY.js → assets-BGnM7nin.js} +1 -1
- package/dist/{grafana-B_QqlaQQ.js → grafana-BoNOlJ9-.js} +1 -1
- package/dist/{index-DjlqF6I0.js → index-BaEy-M8O.js} +1 -1
- package/dist/{index-CqWAZhwv.js → index-BboUkfWO.js} +2 -2
- package/dist/{index-B8bREy8p.js → index-C15EF9Ej.js} +1 -1
- package/dist/{index-8GWhPszq.js → index-ChsCKiRb.js} +1 -1
- package/dist/{index-CbTXFbRi.js → index-D8-ut4k_.js} +2 -1
- package/dist/{index-C1n_Ih97.js → index-DJzgbPBh.js} +1 -1
- package/dist/{index-Cvrxt3gd.js → index-DQ9q6Ng_.js} +1 -1
- package/dist/{index-CUDgQRLT.js → index-DVQwRCIo.js} +1 -1
- package/dist/{index-eEK4FJWw.js → index-Dp9alEOk.js} +1 -1
- package/dist/{index-BAEwRvM-.js → index-cp0D_L8y.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BBqaMh-p.js → index.vue_vue_type_script_setup_true_lang-D1bbu1bC.js} +1 -1
- package/dist/model/payout-account.d.ts +2 -2
- package/dist/{onboard-submission-DW1TUY3U.js → onboard-submission-CHqAHLM5.js} +1 -1
- package/dist/package.json +3 -3
- package/dist/{payout-account-BEdIU70O.js → payout-account-DLL_RAnN.js} +3 -3
- package/dist/stores/payoutAccount.d.ts +16 -16
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/admin/onboard-submission/forms/NTTSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/SoftspaceSubmission.vue.d.ts +12 -12
- package/dist/views/admin/onboard-submission/forms/TyroSubmission.vue.d.ts +12 -12
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/PaymentChannel.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +16 -16
- package/dist/views/admin/payout-account/tabs/TokenGateway.vue.d.ts +38 -38
- package/dist/views/admin/payout-account/tabs/token/ApplePayToken.vue.d.ts +2 -2
- package/dist/views/admin/payout-account/tabs/token/GooglePayToken.vue.d.ts +2 -2
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +32 -32
- package/dist/views/admin/terminal/TerminalSideSheet.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/EcrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/PaymentCheckout.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/QrGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SettingRequest.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/SoftposGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/BeamGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/BriGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Ghl2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Ghl3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GhlGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/GlobalPaymentsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/HlbbGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/KBankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank2Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/Maybank3Gateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/MaybankGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/NetsGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/OmaGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/PbbGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/RevenueGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/ecr/TerminalGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/qr/PromptPayGateway.vue.d.ts +18 -18
- package/dist/views/admin/terminal/tabs/settings/KioskMode.vue.d.ts +18 -18
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +32 -32
- package/dist/views/settlement/FiuuSettlementTable.vue.d.ts +80 -80
- package/dist/views/settlement/FiuuSettlementTransactions.vue.d.ts +40 -40
- package/dist/views/settlement/SettlementTable.vue.d.ts +32 -32
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as X, ref as j, computed as z, resolveComponent as N, openBlock as d, createElementBlock as w, createElementVNode as a, toDisplayString as F, createBlock as
|
|
2
|
-
import { o as M } from "./index-
|
|
3
|
-
import { u as ee, p as de } from "./index-
|
|
1
|
+
import { defineComponent as X, ref as j, computed as z, resolveComponent as N, openBlock as d, createElementBlock as w, createElementVNode as a, toDisplayString as F, createBlock as D, withCtx as f, createCommentVNode as $, createVNode as n, unref as e, Fragment as K, renderList as G, createTextVNode as J, onMounted as Ve, resolveDynamicComponent as ve } from "vue";
|
|
2
|
+
import { o as M } from "./index-BboUkfWO.js";
|
|
3
|
+
import { u as ee, p as de } from "./index-D8-ut4k_.js";
|
|
4
4
|
import { useRouter as fe } from "vue-router";
|
|
5
5
|
import { z as i, a as u } from "./validator-CTlVogBQ.js";
|
|
6
|
-
import { P as ke } from "./payout-account-
|
|
7
|
-
import { a as Ce } from "./onboard-submission-
|
|
8
|
-
import { _ as me } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { P as ke } from "./payout-account-DLL_RAnN.js";
|
|
7
|
+
import { a as Ce } from "./onboard-submission-CHqAHLM5.js";
|
|
8
|
+
import { _ as me } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-B1VBR6hm.js";
|
|
9
9
|
import { s as Ne } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
-
import { _ as pe } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as pe } from "./Status.vue_vue_type_script_setup_true_lang-Ds_0bxtO.js";
|
|
11
11
|
import { useSnackbar as oe } from "@feedmepos/ui-library";
|
|
12
12
|
import { u as Q } from "./error-K1CakhA9.js";
|
|
13
13
|
const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X({
|
|
@@ -23,23 +23,23 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
23
23
|
const c = m, k = j(c.modelValue), y = O, I = (r) => {
|
|
24
24
|
const R = new FileReader();
|
|
25
25
|
R.onload = (V) => {
|
|
26
|
-
var
|
|
27
|
-
k.value = (
|
|
26
|
+
var U;
|
|
27
|
+
k.value = (U = V.target) == null ? void 0 : U.result, y("update:modelValue", r);
|
|
28
28
|
}, R.readAsDataURL(r);
|
|
29
29
|
}, g = (r) => {
|
|
30
30
|
window.open(r, "_blank", "noopener,noreferrer");
|
|
31
|
-
},
|
|
31
|
+
}, B = z(() => c.type === "image" ? re : c.type === "pdf" ? ie : `${re}, ${ie}`), o = (r) => c.type === "pdf" ? !0 : c.type === "image" ? !1 : r === "application/pdf";
|
|
32
32
|
return (r, R) => {
|
|
33
|
-
const V = N("FmButton"),
|
|
33
|
+
const V = N("FmButton"), U = N("FmDropField");
|
|
34
34
|
return d(), w("div", null, [
|
|
35
35
|
a("p", null, F(m.label), 1),
|
|
36
|
-
k.value ? (d(),
|
|
36
|
+
k.value ? (d(), D(me, {
|
|
37
37
|
key: 0,
|
|
38
38
|
document: k.value,
|
|
39
39
|
"restaurant-id": m.restaurantId
|
|
40
40
|
}, {
|
|
41
41
|
default: f(({ src: x, type: q }) => [
|
|
42
|
-
o(q) ? (d(),
|
|
42
|
+
o(q) ? (d(), D(V, {
|
|
43
43
|
key: 1,
|
|
44
44
|
class: "mt-4 w-full",
|
|
45
45
|
"prepend-icon": "manage_accounts",
|
|
@@ -53,9 +53,9 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
53
53
|
}, null, 8, Se))
|
|
54
54
|
]),
|
|
55
55
|
_: 1
|
|
56
|
-
}, 8, ["document", "restaurant-id"])) : (d(), U
|
|
56
|
+
}, 8, ["document", "restaurant-id"])) : (d(), D(U, {
|
|
57
57
|
key: 1,
|
|
58
|
-
accept:
|
|
58
|
+
accept: B.value,
|
|
59
59
|
onFileUpload: I
|
|
60
60
|
}, null, 8, ["accept"]))
|
|
61
61
|
]);
|
|
@@ -73,27 +73,27 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
73
73
|
},
|
|
74
74
|
emits: ["update:modelValue"],
|
|
75
75
|
setup(m, { emit: O }) {
|
|
76
|
-
const c = m, k = O, y = j(c.modelValue), I = j(!1), g = j(),
|
|
76
|
+
const c = m, k = O, y = j(c.modelValue), I = j(!1), g = j(), B = j(!1);
|
|
77
77
|
function o(R, V) {
|
|
78
78
|
var E;
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
const p = new Uint8Array(
|
|
82
|
-
for (;
|
|
83
|
-
p[
|
|
79
|
+
const U = R.split(","), x = ((E = U[0].match(/:(.*?);/)) == null ? void 0 : E[1]) || "", q = atob(U[1]);
|
|
80
|
+
let A = q.length;
|
|
81
|
+
const p = new Uint8Array(A);
|
|
82
|
+
for (; A--; )
|
|
83
|
+
p[A] = q.charCodeAt(A);
|
|
84
84
|
return new File([p], V, { type: x });
|
|
85
85
|
}
|
|
86
86
|
const r = function() {
|
|
87
87
|
const { isEmpty: R, data: V } = g.value.saveSignature();
|
|
88
88
|
if (R)
|
|
89
89
|
return I.value = !0;
|
|
90
|
-
y.value = V,
|
|
90
|
+
y.value = V, B.value = !1, k("update:modelValue", o(V, "signature.png"));
|
|
91
91
|
};
|
|
92
92
|
return (R, V) => {
|
|
93
|
-
const
|
|
93
|
+
const U = N("FmButton"), x = N("FmDialog");
|
|
94
94
|
return d(), w("div", null, [
|
|
95
95
|
a("p", null, F(m.label), 1),
|
|
96
|
-
y.value ? (d(),
|
|
96
|
+
y.value ? (d(), D(me, {
|
|
97
97
|
key: 0,
|
|
98
98
|
document: y.value,
|
|
99
99
|
"restaurant-id": m.restaurantId
|
|
@@ -107,13 +107,13 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}, 8, ["document", "restaurant-id"])) : $("", !0),
|
|
110
|
-
y.value ? $("", !0) : (d(),
|
|
110
|
+
y.value ? $("", !0) : (d(), D(x, {
|
|
111
111
|
key: 1,
|
|
112
|
-
modelValue:
|
|
113
|
-
"onUpdate:modelValue": V[1] || (V[1] = (q) =>
|
|
112
|
+
modelValue: B.value,
|
|
113
|
+
"onUpdate:modelValue": V[1] || (V[1] = (q) => B.value = q)
|
|
114
114
|
}, {
|
|
115
115
|
"dialog-button": f(() => [
|
|
116
|
-
n(
|
|
116
|
+
n(U, {
|
|
117
117
|
"prepend-icon": "signature",
|
|
118
118
|
class: "w-full",
|
|
119
119
|
label: "Signature"
|
|
@@ -132,13 +132,13 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
132
132
|
}, null, 512),
|
|
133
133
|
I.value ? (d(), w("p", qe, " Please sign your signature before saving. ")) : $("", !0),
|
|
134
134
|
a("div", we, [
|
|
135
|
-
n(
|
|
135
|
+
n(U, {
|
|
136
136
|
variant: "destructive",
|
|
137
137
|
label: "Clear",
|
|
138
138
|
"prepend-icon": "delete",
|
|
139
139
|
onClick: V[0] || (V[0] = (q) => g.value.clearSignature())
|
|
140
140
|
}),
|
|
141
|
-
n(
|
|
141
|
+
n(U, {
|
|
142
142
|
label: "Save",
|
|
143
143
|
"prepend-icon": "save",
|
|
144
144
|
onClick: r
|
|
@@ -150,7 +150,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}), xe = { class: "space-y-2" }, Fe = { class: "text-gray-900" },
|
|
153
|
+
}), xe = { class: "space-y-2" }, Fe = { class: "text-gray-900" }, De = { class: "text-gray-900" }, Ue = { class: "text-gray-900" }, Re = { class: "text-gray-900" }, Ae = { class: "text-gray-900" }, Te = { class: "text-gray-900" }, Be = { class: "grid grid-cols-4 gap-6" }, Ee = ["src"], $e = {
|
|
154
154
|
key: 1,
|
|
155
155
|
class: "mt-2 truncate text-gray-700"
|
|
156
156
|
}, je = { key: 0 }, Oe = {
|
|
@@ -170,7 +170,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
170
170
|
emits: ["update:submission"],
|
|
171
171
|
setup(m, { emit: O }) {
|
|
172
172
|
var _;
|
|
173
|
-
const c = m, k = O, y = oe(), I = j(!1), { isLoading: g, startAsyncCall:
|
|
173
|
+
const c = m, k = O, y = oe(), I = j(!1), { isLoading: g, startAsyncCall: B } = ee(), { fields: o, documents: r, restaurantId: R, profile: V, status: U, statusReason: x } = c.submission, q = j(""), A = j(
|
|
174
174
|
parseInt(((_ = c.submission.fields) == null ? void 0 : _.numberOfDevices) ?? 1)
|
|
175
175
|
), p = j(
|
|
176
176
|
c.submission.rates ? Object.fromEntries(
|
|
@@ -198,11 +198,11 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
198
198
|
if (!(s.value >= ue)) {
|
|
199
199
|
if (b.type.startsWith("image/")) {
|
|
200
200
|
const l = new FileReader();
|
|
201
|
-
l.onload = (
|
|
201
|
+
l.onload = (T) => {
|
|
202
202
|
var H;
|
|
203
203
|
return L.value.push({
|
|
204
204
|
file: b,
|
|
205
|
-
preview: String(((H =
|
|
205
|
+
preview: String(((H = T.target) == null ? void 0 : H.result) ?? "")
|
|
206
206
|
});
|
|
207
207
|
}, l.readAsDataURL(b);
|
|
208
208
|
return;
|
|
@@ -212,16 +212,16 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
212
212
|
}, h = () => te(async () => {
|
|
213
213
|
try {
|
|
214
214
|
let b = v.value.reduce(
|
|
215
|
-
(
|
|
215
|
+
(T, H) => Math.max(T, Z(H)),
|
|
216
216
|
0
|
|
217
217
|
);
|
|
218
218
|
const l = {};
|
|
219
|
-
for (const { file:
|
|
219
|
+
for (const { file: T } of L.value) {
|
|
220
220
|
const H = `additionalDocument${++b}`;
|
|
221
221
|
l[H] = await M.uploadDocument(
|
|
222
222
|
R,
|
|
223
223
|
H,
|
|
224
|
-
|
|
224
|
+
T
|
|
225
225
|
);
|
|
226
226
|
}
|
|
227
227
|
k(
|
|
@@ -238,11 +238,12 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
238
238
|
message: Q(b)
|
|
239
239
|
});
|
|
240
240
|
}
|
|
241
|
-
}), ae = () =>
|
|
241
|
+
}), ae = () => B(async () => {
|
|
242
242
|
try {
|
|
243
243
|
const b = await M.reviewById(
|
|
244
244
|
c.submission._id,
|
|
245
245
|
{
|
|
246
|
+
numberOfDevices: A.value.toString(),
|
|
246
247
|
rates: {
|
|
247
248
|
duitNow: parseFloat(p.value.duitNow),
|
|
248
249
|
mydebitCard: parseFloat(p.value.mydebitCard),
|
|
@@ -266,7 +267,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
266
267
|
message: Q(b)
|
|
267
268
|
});
|
|
268
269
|
}
|
|
269
|
-
}), se = () =>
|
|
270
|
+
}), se = () => B(async () => {
|
|
270
271
|
try {
|
|
271
272
|
const b = await M.reviewById(
|
|
272
273
|
c.submission._id,
|
|
@@ -288,7 +289,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
288
289
|
}
|
|
289
290
|
});
|
|
290
291
|
return (b, l) => {
|
|
291
|
-
const
|
|
292
|
+
const T = N("FmButton"), H = N("FmDropField"), C = N("FmTextField"), be = N("FmTextarea"), ce = N("FmDialog"), ge = N("FmPhoneNumber"), ne = N("FmSelect"), ye = N("FmForm");
|
|
292
293
|
return d(), w(K, null, [
|
|
293
294
|
a("div", xe, [
|
|
294
295
|
a("div", null, [
|
|
@@ -297,11 +298,11 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
297
298
|
]),
|
|
298
299
|
a("div", null, [
|
|
299
300
|
l[39] || (l[39] = a("span", { class: "w-40 font-medium text-gray-600" }, "Profile: ", -1)),
|
|
300
|
-
a("span",
|
|
301
|
+
a("span", De, F(e(V).name) + " ( " + F(e(V).legalName) + " )", 1)
|
|
301
302
|
]),
|
|
302
303
|
a("div", null, [
|
|
303
304
|
l[40] || (l[40] = a("span", { class: "w-40 font-medium text-gray-600" }, "Email: ", -1)),
|
|
304
|
-
a("span",
|
|
305
|
+
a("span", Ue, F(e(V).email), 1)
|
|
305
306
|
]),
|
|
306
307
|
a("div", null, [
|
|
307
308
|
l[41] || (l[41] = a("span", { class: "w-40 font-medium text-gray-600" }, "Phone: ", -1)),
|
|
@@ -310,7 +311,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
310
311
|
a("div", null, [
|
|
311
312
|
l[42] || (l[42] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
312
313
|
a("span", Ae, [
|
|
313
|
-
n(pe, { data: e(
|
|
314
|
+
n(pe, { data: e(U) }, null, 8, ["data"])
|
|
314
315
|
])
|
|
315
316
|
]),
|
|
316
317
|
a("div", null, [
|
|
@@ -320,7 +321,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
320
321
|
]),
|
|
321
322
|
l[61] || (l[61] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, " (SharePoint) Additional Requested Documents ", -1)),
|
|
322
323
|
a("div", Be, [
|
|
323
|
-
(d(!0), w(K, null, G(v.value, (t) => (d(),
|
|
324
|
+
(d(!0), w(K, null, G(v.value, (t) => (d(), D(P, {
|
|
324
325
|
key: t,
|
|
325
326
|
label: t.replace("additionalDocument", "Document "),
|
|
326
327
|
type: /\.pdf$/i.test(c.submission.documents[t]) ? "pdf" : "image",
|
|
@@ -337,7 +338,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
337
338
|
src: t.preview,
|
|
338
339
|
class: "mt-2 rounded border"
|
|
339
340
|
}, null, 8, Ee)) : (d(), w("p", $e, F(t.file.name), 1)),
|
|
340
|
-
n(
|
|
341
|
+
n(T, {
|
|
341
342
|
class: "mt-4",
|
|
342
343
|
"prepend-icon": "delete",
|
|
343
344
|
label: "Remove",
|
|
@@ -354,7 +355,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
354
355
|
])) : $("", !0)
|
|
355
356
|
]),
|
|
356
357
|
L.value.length ? (d(), w("div", Oe, [
|
|
357
|
-
n(
|
|
358
|
+
n(T, {
|
|
358
359
|
type: "button",
|
|
359
360
|
variant: "primary",
|
|
360
361
|
"prepend-icon": "cloud_upload",
|
|
@@ -488,8 +489,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
488
489
|
l[63] || (l[63] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-6" }, "Extra Settings", -1)),
|
|
489
490
|
a("div", ze, [
|
|
490
491
|
n(C, {
|
|
491
|
-
modelValue:
|
|
492
|
-
"onUpdate:modelValue": l[7] || (l[7] = (t) =>
|
|
492
|
+
modelValue: A.value,
|
|
493
|
+
"onUpdate:modelValue": l[7] || (l[7] = (t) => A.value = t),
|
|
493
494
|
label: "Number of Devices",
|
|
494
495
|
"label-mark": "required",
|
|
495
496
|
type: "number",
|
|
@@ -502,7 +503,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
502
503
|
"onUpdate:modelValue": l[9] || (l[9] = (t) => I.value = t)
|
|
503
504
|
}, {
|
|
504
505
|
"dialog-button": f(() => [
|
|
505
|
-
n(
|
|
506
|
+
n(T, {
|
|
506
507
|
class: "mr-6",
|
|
507
508
|
type: "button",
|
|
508
509
|
variant: "destructive",
|
|
@@ -522,7 +523,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
522
523
|
"label-mark": "optional",
|
|
523
524
|
"helper-text": "Please provide a reason for rejection."
|
|
524
525
|
}, null, 8, ["modelValue"]),
|
|
525
|
-
n(
|
|
526
|
+
n(T, {
|
|
526
527
|
class: "mb-2 mt-6 w-full",
|
|
527
528
|
label: "Submit",
|
|
528
529
|
"prepend-icon": "save",
|
|
@@ -532,7 +533,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
532
533
|
]),
|
|
533
534
|
_: 1
|
|
534
535
|
}, 8, ["modelValue"]),
|
|
535
|
-
n(
|
|
536
|
+
n(T, {
|
|
536
537
|
type: "button",
|
|
537
538
|
variant: "primary",
|
|
538
539
|
"prepend-icon": "approval",
|
|
@@ -741,7 +742,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
741
742
|
type: "image",
|
|
742
743
|
"restaurant-id": m.submission.restaurantId
|
|
743
744
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
744
|
-
(d(!0), w(K, null, G(Y.value, (t) => (d(),
|
|
745
|
+
(d(!0), w(K, null, G(Y.value, (t) => (d(), D(P, {
|
|
745
746
|
key: t,
|
|
746
747
|
label: `Authorized Person ID ${t.replace("authorizedPersonID", "")}`,
|
|
747
748
|
modelValue: e(r)[t],
|
|
@@ -752,7 +753,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
752
753
|
]),
|
|
753
754
|
l[56] || (l[56] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-6" }, " Section 2. Business Information ", -1)),
|
|
754
755
|
a("div", sl, [
|
|
755
|
-
e(o).businessType === "private_limited" || e(o).businessType === "public_limited" ? (d(),
|
|
756
|
+
e(o).businessType === "private_limited" || e(o).businessType === "public_limited" ? (d(), D(P, {
|
|
756
757
|
key: 0,
|
|
757
758
|
label: "Superform",
|
|
758
759
|
type: "pdf",
|
|
@@ -760,7 +761,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
760
761
|
"onUpdate:modelValue": l[29] || (l[29] = (t) => e(r).certificate = t),
|
|
761
762
|
"restaurant-id": m.submission.restaurantId
|
|
762
763
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
763
|
-
e(o).businessType === "sole_proprietorship" || e(o).businessType === "partnership" ? (d(),
|
|
764
|
+
e(o).businessType === "sole_proprietorship" || e(o).businessType === "partnership" ? (d(), D(P, {
|
|
764
765
|
key: 1,
|
|
765
766
|
label: "Business Registration Document",
|
|
766
767
|
type: "pdf",
|
|
@@ -768,7 +769,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
768
769
|
"onUpdate:modelValue": l[30] || (l[30] = (t) => e(r).certificate = t),
|
|
769
770
|
"restaurant-id": m.submission.restaurantId
|
|
770
771
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
771
|
-
e(r).interiorPhoto ? (d(),
|
|
772
|
+
e(r).interiorPhoto ? (d(), D(P, {
|
|
772
773
|
key: 2,
|
|
773
774
|
label: "Interior Photo",
|
|
774
775
|
modelValue: e(r).interiorPhoto,
|
|
@@ -798,7 +799,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
798
799
|
a("div", nl, [
|
|
799
800
|
(d(!0), w(K, null, G([1, 2, 3, 4, 5].filter(
|
|
800
801
|
(t) => !!e(r)[`onsitePhoto${t}`]
|
|
801
|
-
), (t) => (d(),
|
|
802
|
+
), (t) => (d(), D(P, {
|
|
802
803
|
key: t,
|
|
803
804
|
label: e(Ce)[t - 1],
|
|
804
805
|
modelValue: e(r)[`onsitePhoto${t}`],
|
|
@@ -809,7 +810,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
809
810
|
]),
|
|
810
811
|
l[59] || (l[59] = a("h4", { class: "font-semibold border-b pb-1 mt-6 mb-4" }, " Section 5. Additional Documents ", -1)),
|
|
811
812
|
a("div", rl, [
|
|
812
|
-
e(r).liquorLicense ? (d(),
|
|
813
|
+
e(r).liquorLicense ? (d(), D(P, {
|
|
813
814
|
key: 0,
|
|
814
815
|
label: "Liquor License",
|
|
815
816
|
modelValue: e(r).liquorLicense,
|
|
@@ -817,7 +818,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
817
818
|
type: "image-or-pdf",
|
|
818
819
|
"restaurant-id": m.submission.restaurantId
|
|
819
820
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
820
|
-
e(r).appendixC ? (d(),
|
|
821
|
+
e(r).appendixC ? (d(), D(P, {
|
|
821
822
|
key: 1,
|
|
822
823
|
label: "Appendix C",
|
|
823
824
|
modelValue: e(r).appendixC,
|
|
@@ -849,7 +850,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
849
850
|
], 64);
|
|
850
851
|
};
|
|
851
852
|
}
|
|
852
|
-
}), ml = { class: "space-y-2" }, pl = { class: "text-gray-900" }, bl = { class: "text-gray-900" }, cl = { class: "text-gray-900" }, gl = { class: "text-gray-900" }, yl = { class: "text-gray-900" }, Vl = { class: "text-gray-900" }, vl = { class: "mt-6 grid grid-cols-4 gap-24" }, fl = { class: "w-full flex justify-end mt-6" }, kl = { class: "mt-6 grid grid-cols-4 gap-24" }, Cl = { class: "col-span-2" }, Nl = { class: "col-span-2" }, Sl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, ql = { class: "mt-6 grid grid-cols-4 gap-24" }, wl = { class: "mt-6 grid grid-cols-4 gap-24" }, Il = { class: "mt-6 grid grid-cols-4 gap-24" }, xl = { class: "col-span-2" }, Fl = { class: "col-span-2" },
|
|
853
|
+
}), ml = { class: "space-y-2" }, pl = { class: "text-gray-900" }, bl = { class: "text-gray-900" }, cl = { class: "text-gray-900" }, gl = { class: "text-gray-900" }, yl = { class: "text-gray-900" }, Vl = { class: "text-gray-900" }, vl = { class: "mt-6 grid grid-cols-4 gap-24" }, fl = { class: "w-full flex justify-end mt-6" }, kl = { class: "mt-6 grid grid-cols-4 gap-24" }, Cl = { class: "col-span-2" }, Nl = { class: "col-span-2" }, Sl = { class: "col-span-2" }, Pl = { class: "col-span-2" }, ql = { class: "mt-6 grid grid-cols-4 gap-24" }, wl = { class: "mt-6 grid grid-cols-4 gap-24" }, Il = { class: "mt-6 grid grid-cols-4 gap-24" }, xl = { class: "col-span-2" }, Fl = { class: "col-span-2" }, Dl = { class: "col-span-2" }, Ul = { class: "col-span-2" }, Rl = { class: "col-span-2" }, Al = { class: "col-span-2" }, Tl = /* @__PURE__ */ X({
|
|
853
854
|
__name: "NTTSubmission",
|
|
854
855
|
props: {
|
|
855
856
|
submission: {
|
|
@@ -859,7 +860,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
859
860
|
},
|
|
860
861
|
emits: ["update:submission"],
|
|
861
862
|
setup(m, { emit: O }) {
|
|
862
|
-
const c = m, k = O, y = oe(), I = j(!1), { isLoading: g, startAsyncCall:
|
|
863
|
+
const c = m, k = O, y = oe(), I = j(!1), { isLoading: g, startAsyncCall: B } = ee(), { fields: o, documents: r, restaurantId: R, profile: V, status: U, statusReason: x } = c.submission, q = j(""), A = [
|
|
863
864
|
{ key: "localCardDebit", label: "Local Card (Debit)", defaultValue: "2.3" },
|
|
864
865
|
{
|
|
865
866
|
key: "localCardStandard",
|
|
@@ -892,14 +893,14 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
892
893
|
{ key: "linePay", label: "LinePay", defaultValue: "2.1" },
|
|
893
894
|
{ key: "thaiQr", label: "ThaiQR", defaultValue: "0.5" }
|
|
894
895
|
], p = Object.fromEntries(
|
|
895
|
-
|
|
896
|
+
A.map((v) => [v.key, v.defaultValue])
|
|
896
897
|
), E = j(
|
|
897
898
|
c.submission.rates ? Object.fromEntries(
|
|
898
899
|
Object.entries(c.submission.rates).map(([v, s]) => [v, `${s}`])
|
|
899
900
|
) : { ...p }
|
|
900
901
|
), Y = z(
|
|
901
902
|
() => Object.values(E.value).every((v) => parseFloat(v) > 0)
|
|
902
|
-
), le = z(() => o.businessType === "juristic" ? "Juristic" : o.businessType === "individual" ? "Individual" : o.businessType || "-"), te = () =>
|
|
903
|
+
), le = z(() => o.businessType === "juristic" ? "Juristic" : o.businessType === "individual" ? "Individual" : o.businessType || "-"), te = () => B(async () => {
|
|
903
904
|
try {
|
|
904
905
|
const v = await M.reviewById(
|
|
905
906
|
c.submission._id,
|
|
@@ -918,13 +919,13 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
918
919
|
message: Q(v)
|
|
919
920
|
});
|
|
920
921
|
}
|
|
921
|
-
}), L = () =>
|
|
922
|
+
}), L = () => B(async () => {
|
|
922
923
|
try {
|
|
923
924
|
const v = await M.reviewById(
|
|
924
925
|
c.submission._id,
|
|
925
926
|
{
|
|
926
927
|
rates: Object.fromEntries(
|
|
927
|
-
|
|
928
|
+
A.map((s) => [
|
|
928
929
|
s.key,
|
|
929
930
|
parseFloat(E.value[s.key])
|
|
930
931
|
])
|
|
@@ -943,7 +944,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
943
944
|
message: Q(v)
|
|
944
945
|
});
|
|
945
946
|
}
|
|
946
|
-
}), Z = () =>
|
|
947
|
+
}), Z = () => B(async () => {
|
|
947
948
|
try {
|
|
948
949
|
const v = await M.reviewById(
|
|
949
950
|
c.submission._id,
|
|
@@ -987,7 +988,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
987
988
|
a("div", null, [
|
|
988
989
|
s[35] || (s[35] = a("span", { class: "w-40 font-medium text-gray-600" }, "Status: ", -1)),
|
|
989
990
|
a("span", yl, [
|
|
990
|
-
n(pe, { data: e(
|
|
991
|
+
n(pe, { data: e(U) }, null, 8, ["data"])
|
|
991
992
|
])
|
|
992
993
|
]),
|
|
993
994
|
a("div", null, [
|
|
@@ -997,17 +998,17 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
997
998
|
]),
|
|
998
999
|
s[43] || (s[43] = a("h3", { class: "font-semibold text-lg border-b pb-1 mt-6 mb-4" }, "Rate Settings", -1)),
|
|
999
1000
|
a("div", vl, [
|
|
1000
|
-
(d(), w(K, null, G(
|
|
1001
|
+
(d(), w(K, null, G(A, (l) => n(S, {
|
|
1001
1002
|
key: l.key,
|
|
1002
1003
|
modelValue: E.value[l.key],
|
|
1003
|
-
"onUpdate:modelValue": (
|
|
1004
|
+
"onUpdate:modelValue": (T) => E.value[l.key] = T,
|
|
1004
1005
|
label: l.label,
|
|
1005
1006
|
"label-mark": "required",
|
|
1006
1007
|
type: "number",
|
|
1007
1008
|
inputmode: "numeric",
|
|
1008
1009
|
decimal: 2,
|
|
1009
1010
|
rules: e(i)(
|
|
1010
|
-
e(u).string().min(1, "Rate is required").transform((
|
|
1011
|
+
e(u).string().min(1, "Rate is required").transform((T) => parseFloat(T)).refine((T) => !isNaN(T), { message: "Rate must be a number" })
|
|
1011
1012
|
)
|
|
1012
1013
|
}, {
|
|
1013
1014
|
append: f(() => [...s[37] || (s[37] = [
|
|
@@ -1061,7 +1062,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1061
1062
|
onClick: L,
|
|
1062
1063
|
loading: e(g)
|
|
1063
1064
|
}, null, 8, ["disabled", "loading"]),
|
|
1064
|
-
e(
|
|
1065
|
+
e(U) === "approved" ? (d(), D(h, {
|
|
1065
1066
|
key: 0,
|
|
1066
1067
|
type: "button",
|
|
1067
1068
|
variant: "secondary",
|
|
@@ -1213,7 +1214,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1213
1214
|
type: "pdf",
|
|
1214
1215
|
"restaurant-id": m.submission.restaurantId
|
|
1215
1216
|
}, null, 8, ["modelValue", "restaurant-id"]),
|
|
1216
|
-
e(o).businessType === "juristic" ? (d(),
|
|
1217
|
+
e(o).businessType === "juristic" ? (d(), D(P, {
|
|
1217
1218
|
key: 0,
|
|
1218
1219
|
label: "Company Certificate",
|
|
1219
1220
|
type: "pdf",
|
|
@@ -1221,7 +1222,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1221
1222
|
"onUpdate:modelValue": s[19] || (s[19] = (l) => e(r).companyCertificate = l),
|
|
1222
1223
|
"restaurant-id": m.submission.restaurantId
|
|
1223
1224
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1224
|
-
e(o).businessType === "juristic" ? (d(),
|
|
1225
|
+
e(o).businessType === "juristic" ? (d(), D(P, {
|
|
1225
1226
|
key: 1,
|
|
1226
1227
|
label: "VAT Certificate",
|
|
1227
1228
|
type: "pdf",
|
|
@@ -1229,7 +1230,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1229
1230
|
"onUpdate:modelValue": s[20] || (s[20] = (l) => e(r).vatCertificate = l),
|
|
1230
1231
|
"restaurant-id": m.submission.restaurantId
|
|
1231
1232
|
}, null, 8, ["modelValue", "restaurant-id"])) : $("", !0),
|
|
1232
|
-
e(o).businessType === "individual" ? (d(),
|
|
1233
|
+
e(o).businessType === "individual" ? (d(), D(P, {
|
|
1233
1234
|
key: 2,
|
|
1234
1235
|
label: "Commercial Certificate",
|
|
1235
1236
|
type: "pdf",
|
|
@@ -1258,7 +1259,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1258
1259
|
rules: e(i)(e(u).string().min(1, "PIC Role is required"))
|
|
1259
1260
|
}, null, 8, ["modelValue", "rules"])
|
|
1260
1261
|
]),
|
|
1261
|
-
a("div",
|
|
1262
|
+
a("div", Dl, [
|
|
1262
1263
|
n(S, {
|
|
1263
1264
|
modelValue: e(o).picEmail,
|
|
1264
1265
|
"onUpdate:modelValue": s[24] || (s[24] = (l) => e(o).picEmail = l),
|
|
@@ -1267,7 +1268,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1267
1268
|
rules: e(i)(e(u).string().min(1, "PIC Email is required"))
|
|
1268
1269
|
}, null, 8, ["modelValue", "rules"])
|
|
1269
1270
|
]),
|
|
1270
|
-
a("div",
|
|
1271
|
+
a("div", Ul, [
|
|
1271
1272
|
n(_, {
|
|
1272
1273
|
"model-value": e(o).picContact,
|
|
1273
1274
|
"onUpdate:modelValue": s[25] || (s[25] = (l) => e(o).picContact = l),
|
|
@@ -1355,8 +1356,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1355
1356
|
];
|
|
1356
1357
|
});
|
|
1357
1358
|
return (k, y) => {
|
|
1358
|
-
const I = N("FmCardHeader"), g = N("FmCardSection"),
|
|
1359
|
-
return d(),
|
|
1359
|
+
const I = N("FmCardHeader"), g = N("FmCardSection"), B = N("FmCard");
|
|
1360
|
+
return d(), D(B, {
|
|
1360
1361
|
class: "max-w-3xl mt-8 p-6",
|
|
1361
1362
|
variant: "elevated"
|
|
1362
1363
|
}, {
|
|
@@ -1400,7 +1401,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1400
1401
|
}
|
|
1401
1402
|
},
|
|
1402
1403
|
setup(m) {
|
|
1403
|
-
const { startAsyncCall: O, isLoading: c } = ee(), k = oe(), y = m, I = fe(), g = j(null),
|
|
1404
|
+
const { startAsyncCall: O, isLoading: c } = ee(), k = oe(), y = m, I = fe(), g = j(null), B = z(
|
|
1404
1405
|
() => {
|
|
1405
1406
|
var x;
|
|
1406
1407
|
return ((x = g.value) == null ? void 0 : x.type) === de.FdoOnboardType.enum.tyro;
|
|
@@ -1433,8 +1434,8 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1433
1434
|
function V(x) {
|
|
1434
1435
|
g.value = x, R.value = Date.now();
|
|
1435
1436
|
}
|
|
1436
|
-
const
|
|
1437
|
-
var q,
|
|
1437
|
+
const U = async (x) => {
|
|
1438
|
+
var q, A;
|
|
1438
1439
|
if (g.value)
|
|
1439
1440
|
switch (x) {
|
|
1440
1441
|
case "preview":
|
|
@@ -1462,7 +1463,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1462
1463
|
message: "Sending onboarding document...",
|
|
1463
1464
|
type: "info"
|
|
1464
1465
|
}), await M.sendDocument(
|
|
1465
|
-
(
|
|
1466
|
+
(A = g.value) == null ? void 0 : A._id
|
|
1466
1467
|
), k.open({
|
|
1467
1468
|
type: "success",
|
|
1468
1469
|
title: "Submission documents send successfully"
|
|
@@ -1479,17 +1480,17 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1479
1480
|
};
|
|
1480
1481
|
return (x, q) => {
|
|
1481
1482
|
var E, Y;
|
|
1482
|
-
const
|
|
1483
|
+
const A = N("FmCircularProgress"), p = N("FmPageHead");
|
|
1483
1484
|
return e(c) ? (d(), w("div", El, [
|
|
1484
|
-
n(
|
|
1485
|
+
n(A, { size: "xxl" })
|
|
1485
1486
|
])) : (d(), w(K, { key: 1 }, [
|
|
1486
1487
|
n(p, {
|
|
1487
1488
|
title: `Submission - ${(E = g.value) == null ? void 0 : E.type}`,
|
|
1488
1489
|
description: `ID - ${(Y = g.value) == null ? void 0 : Y._id}`,
|
|
1489
1490
|
"back-button": !0,
|
|
1490
1491
|
"onClick:back": o,
|
|
1491
|
-
"onClick:action":
|
|
1492
|
-
actions:
|
|
1492
|
+
"onClick:action": U,
|
|
1493
|
+
actions: B.value ? [] : [
|
|
1493
1494
|
{
|
|
1494
1495
|
label: "Preview Document",
|
|
1495
1496
|
value: "preview",
|
|
@@ -1504,7 +1505,7 @@ const Se = ["src"], re = ".png, .jpg, .jpeg", ie = ".pdf", P = /* @__PURE__ */ X
|
|
|
1504
1505
|
]
|
|
1505
1506
|
}, null, 8, ["title", "description", "actions"]),
|
|
1506
1507
|
a("div", $l, [
|
|
1507
|
-
(d(),
|
|
1508
|
+
(d(), D(ve(r.value), {
|
|
1508
1509
|
key: R.value,
|
|
1509
1510
|
submission: g.value,
|
|
1510
1511
|
"onUpdate:submission": V
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as gA, ref as d, computed as h, resolveComponent as N, openBlock as t, createElementBlock as l, createElementVNode as B, toDisplayString as $, renderSlot as mA, createCommentVNode as f, Fragment as AA, createBlock as S, withCtx as D, createVNode as i, unref as K, watch as CA, onMounted as zA, renderList as wA, createTextVNode as PA, nextTick as WA, h as HA, resolveDynamicComponent as JA } from "vue";
|
|
2
2
|
import { z as V, a as e } from "./validator-CTlVogBQ.js";
|
|
3
|
-
import { _ as dA, P as xA } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { _ as dA, P as xA } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-B1VBR6hm.js";
|
|
4
4
|
import { useCoreStore as qA, useI18n as bA } from "@feedmepos/mf-common";
|
|
5
|
-
import { o as FA } from "./index-
|
|
6
|
-
import { p as EA } from "./index-
|
|
5
|
+
import { o as FA } from "./index-BboUkfWO.js";
|
|
6
|
+
import { p as EA } from "./index-Dp9alEOk.js";
|
|
7
7
|
import { useSnackbar as IA, useFormChild as uA, useDialog as yA } from "@feedmepos/ui-library";
|
|
8
|
-
import { u as lA } from "./index-
|
|
8
|
+
import { u as lA } from "./index-D8-ut4k_.js";
|
|
9
9
|
import { s as OA } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
10
|
-
import { P as sA } from "./payout-account-
|
|
11
|
-
import { a as hA } from "./onboard-submission-
|
|
10
|
+
import { P as sA } from "./payout-account-DLL_RAnN.js";
|
|
11
|
+
import { a as hA } from "./onboard-submission-CHqAHLM5.js";
|
|
12
12
|
import { useRouter as ZA } from "vue-router";
|
|
13
13
|
import { _ as LA } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
14
|
const _A = { class: "flex" }, $A = { class: "justify-self-center font-semibold" }, Ao = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as S, ref as w, watch as c, computed as f, resolveComponent as y, openBlock as O, createBlock as k, withCtx as _, createElementVNode as K, createVNode as m, isRef as n, unref as o, h as F } from "vue";
|
|
2
|
-
import { o as R } from "./index-
|
|
3
|
-
import { p as b } from "./index-
|
|
4
|
-
import { _ as C } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { o as R } from "./index-BboUkfWO.js";
|
|
3
|
+
import { p as b } from "./index-D8-ut4k_.js";
|
|
4
|
+
import { _ as C } from "./index.vue_vue_type_script_setup_true_lang-D1bbu1bC.js";
|
|
5
5
|
import { useRouter as D } from "vue-router";
|
|
6
6
|
import { _ as E } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
7
7
|
import { h as N } from "./moment-h96o7c8I.js";
|
|
8
|
-
import { u as T } from "./index-
|
|
8
|
+
import { u as T } from "./index-BaEy-M8O.js";
|
|
9
9
|
import { _ as U } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
|
|
10
|
-
import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { O as Y } from "./onboard-submission-
|
|
10
|
+
import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-Ds_0bxtO.js";
|
|
11
|
+
import { O as Y } from "./onboard-submission-CHqAHLM5.js";
|
|
12
12
|
const $ = { class: "flex items-start mb-6" }, X = /* @__PURE__ */ S({
|
|
13
13
|
__name: "OnboardSubmission",
|
|
14
14
|
setup(P) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as pA, ref as Y, computed as W, onMounted as gA, watch as vA, onBeforeUnmount as PA, resolveComponent as T, openBlock as l, createBlock as R, unref as t, withCtx as Z, createElementVNode as o, createVNode as x, createElementBlock as f, Fragment as U, renderList as K, normalizeClass as BA, toDisplayString as a, createTextVNode as B, createCommentVNode as C } from "vue";
|
|
2
2
|
import { _ as DA } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
3
|
-
import { u as wA, p as u, e as iA } from "./index-
|
|
3
|
+
import { u as wA, p as u, e as iA } from "./index-D8-ut4k_.js";
|
|
4
4
|
import { u as N } from "./error-K1CakhA9.js";
|
|
5
5
|
import { useI18n as xA, useCoreStore as HA } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as LA } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as TA } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-D08ykrWf.js";
|
|
8
|
-
import { b as q } from "./onboard-submission-
|
|
9
|
-
import { o as G } from "./index-
|
|
8
|
+
import { b as q } from "./onboard-submission-CHqAHLM5.js";
|
|
9
|
+
import { o as G } from "./index-BboUkfWO.js";
|
|
10
10
|
import { useRouter as CA } from "vue-router";
|
|
11
11
|
import { c as QA } from "./index-MdV54cWO.js";
|
|
12
12
|
import { s as OA, t as zA } from "./tyro-BovmsorS.js";
|