@feedmepos/mf-payment 1.6.24-dev → 1.6.26-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-CfpBus8E.js → Actions.vue_vue_type_script_setup_true_lang-iXqW5wLW.js} +1 -1
- package/dist/{AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-D86X4SBT.js → AdminRestaurantSelector.vue_vue_type_script_setup_true_lang-CYtvX7so.js} +2 -2
- package/dist/{Chargeback-D3g1A6nb.js → Chargeback-BGe5XDl_.js} +5 -5
- package/dist/{DocumentViewer.vue_vue_type_script_setup_true_lang-Buv8z4ni.js → DocumentViewer.vue_vue_type_script_setup_true_lang-DN_6q2_n.js} +1 -1
- package/dist/{OnboardForm-CHir9Btu.js → OnboardForm-BnhW72k-.js} +1154 -1147
- package/dist/{OnboardForm-D57O0vs3.js → OnboardForm-C3Fr7gLX.js} +5 -5
- package/dist/{OnboardSubmission-Y6Khfcf2.js → OnboardSubmission-Da4ddkN6.js} +5 -5
- package/dist/{OnboardSubmission-BOEj8OAe.js → OnboardSubmission-Dim4WQjJ.js} +127 -126
- package/dist/{PayoutAccount-CYLQa1q0.js → PayoutAccount-Ckw1l_qj.js} +5 -5
- package/dist/{PayoutAccount-Cx-vRKx0.js → PayoutAccount-CtPL_D_S.js} +5 -5
- package/dist/{PayoutAccountSetting-h-ECAjUg.js → PayoutAccountSetting-DAt-NWWK.js} +6 -6
- package/dist/{Restaurant-C3JG5jTm.js → Restaurant-3onCdWrc.js} +4 -4
- package/dist/{RestaurantSetting-CVJGDhr3.js → RestaurantSetting-BJ5P9d8A.js} +3 -3
- package/dist/{Settlement-YDfJfpqD.js → Settlement-Cb2hQdZF.js} +4 -4
- package/dist/{Settlement-CFj4ZHEj.js → Settlement-DuXn-xyR.js} +3 -3
- package/dist/{SettlementTransactions-C8xr7D9B.js → SettlementTransactions-Cl8C5O0J.js} +4 -4
- package/dist/{SettlementTransactions-Bqs6AjVt.js → SettlementTransactions-igk5fdWl.js} +4 -4
- package/dist/{Status.vue_vue_type_script_setup_true_lang-DuBsXgzP.js → Status.vue_vue_type_script_setup_true_lang-DurKmA3Q.js} +1 -1
- package/dist/{Terminal-BFgiH70m.js → Terminal-DMOhtME8.js} +5 -5
- package/dist/{TerminalSetting-Bv9ugacI.js → TerminalSetting-BzL7K-uH.js} +4 -4
- package/dist/{Transaction-D-mLQ70N.js → Transaction-D7uX4qHQ.js} +9 -9
- package/dist/{Transaction-DVFos9iG.js → Transaction-DfKVD6f1.js} +10 -10
- package/dist/{TransactionOld-YmgueJYY.js → TransactionOld-D_JU2_mR.js} +7 -7
- package/dist/{app-BZEXvbmu.js → app-Bezc2BFB.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/{assets--_mQamiD.js → assets-D3BP5M_A.js} +1 -1
- package/dist/{grafana-DhN7GnGA.js → grafana-BbjqeSUV.js} +1 -1
- package/dist/{index-CeZEM77q.js → index-Agw94979.js} +1 -1
- package/dist/{index-DomE1UrM.js → index-B46LoJuc.js} +1 -1
- package/dist/{index-DCMc1PDw.js → index-BbMFtfU9.js} +1 -1
- package/dist/{index-rgwK36IL.js → index-BoZvRGNb.js} +27 -9
- package/dist/{index-C-l3GAhP.js → index-Bv2sHRuG.js} +1 -1
- package/dist/{index-CjdeCxlU.js → index-C4VQgcNt.js} +2 -2
- package/dist/{index-XZHPpZuF.js → index-ZhbF97Tm.js} +1 -1
- package/dist/{index-Cjcuoaiu.js → index-da9XXOQN.js} +1 -1
- package/dist/{index-CMQx91rD.js → index-pOLLwiKx.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BNgnzmHn.js → index.vue_vue_type_script_setup_true_lang-B79Nwx5o.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-DJnCUWF1.js → payout-account-Do9T9GvQ.js} +3 -3
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/onboard-submission/OnboardForm.vue.d.ts +6 -2
- package/dist/views/onboard-submission/form/NTTSubmission.vue.d.ts +2 -1
- package/dist/views/onboard-submission/form/SoftSpaceSubmission.vue.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as G, ref as D, computed as W, resolveComponent as C, openBlock as g, createElementBlock as $, createElementVNode as o, toDisplayString as x, createBlock as j, withCtx as V, createCommentVNode as O, createVNode as n, unref as e, Fragment as Q, createTextVNode as L, renderList as h, onMounted as oe, resolveDynamicComponent as ne } from "vue";
|
|
2
|
-
import { o as M } from "./index-
|
|
3
|
-
import { u as _, p as le } from "./index-
|
|
2
|
+
import { o as M } from "./index-C4VQgcNt.js";
|
|
3
|
+
import { u as _, p as le } from "./index-Agw94979.js";
|
|
4
4
|
import { useRouter as re } from "vue-router";
|
|
5
5
|
import { z as u, a as d } from "./validator-CTlVogBQ.js";
|
|
6
|
-
import { P as ie } from "./payout-account-
|
|
7
|
-
import { _ as ae } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { P as ie } from "./payout-account-Do9T9GvQ.js";
|
|
7
|
+
import { _ as ae } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DN_6q2_n.js";
|
|
8
8
|
import { s as ue } from "./vue-signature-pad.esm-IXPjf4fL.js";
|
|
9
|
-
import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as te } from "./Status.vue_vue_type_script_setup_true_lang-DurKmA3Q.js";
|
|
10
10
|
import { useSnackbar as ee } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as z } from "./error-K1CakhA9.js";
|
|
12
12
|
const de = ["src"], F = /* @__PURE__ */ G({
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as x, ref as w, watch as f, computed as y, resolveComponent as _, openBlock as k, createBlock as F, withCtx as b, createElementVNode as K, createVNode as m, isRef as n, unref as o, h as O } from "vue";
|
|
2
|
-
import { o as R } from "./index-
|
|
3
|
-
import { p as d } from "./index-
|
|
4
|
-
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { o as R } from "./index-C4VQgcNt.js";
|
|
3
|
+
import { p as d } from "./index-Agw94979.js";
|
|
4
|
+
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-B79Nwx5o.js";
|
|
5
5
|
import { useRouter as D } from "vue-router";
|
|
6
6
|
import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
7
7
|
import { h as U } from "./moment-h96o7c8I.js";
|
|
8
|
-
import { u as C } from "./index-
|
|
8
|
+
import { u as C } from "./index-da9XXOQN.js";
|
|
9
9
|
import { _ as E } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
|
|
10
|
-
import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as I } from "./Status.vue_vue_type_script_setup_true_lang-DurKmA3Q.js";
|
|
11
11
|
const Y = { class: "flex items-start mb-6" }, L = /* @__PURE__ */ x({
|
|
12
12
|
__name: "OnboardSubmission",
|
|
13
13
|
setup($) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as fA, ref as X, computed as W, onMounted as pA, watch as gA, onBeforeUnmount as vA, resolveComponent as C, openBlock as
|
|
1
|
+
import { defineComponent as fA, ref as X, computed as W, onMounted as pA, watch as gA, onBeforeUnmount as vA, resolveComponent as C, openBlock as d, createBlock as Z, unref as o, withCtx as U, createElementVNode as t, createVNode as x, createElementBlock as b, Fragment as K, renderList as q, normalizeClass as PA, toDisplayString as a, createTextVNode as B, createCommentVNode as T } from "vue";
|
|
2
2
|
import { _ as BA } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
3
|
-
import { u as DA, e as F, p as f } from "./index-
|
|
4
|
-
import { u as
|
|
3
|
+
import { u as DA, e as F, p as f } from "./index-Agw94979.js";
|
|
4
|
+
import { u as G } from "./error-K1CakhA9.js";
|
|
5
5
|
import { useI18n as wA, useCoreStore as xA } from "@feedmepos/mf-common";
|
|
6
6
|
import { useSnackbar as HA } from "@feedmepos/ui-library";
|
|
7
7
|
import { _ as LA } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-D08ykrWf.js";
|
|
8
|
-
import { o as
|
|
8
|
+
import { o as E } from "./index-C4VQgcNt.js";
|
|
9
9
|
import { useRouter as CA } from "vue-router";
|
|
10
10
|
import { c as TA } from "./index-MdV54cWO.js";
|
|
11
11
|
import { s as QA, t as OA } from "./tyro-BovmsorS.js";
|
|
12
|
-
function
|
|
12
|
+
function j(p) {
|
|
13
13
|
return p ? {
|
|
14
14
|
exists: !0,
|
|
15
15
|
id: p._id,
|
|
@@ -21,24 +21,24 @@ function E(p) {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
function zA(p, H) {
|
|
24
|
-
const L =
|
|
24
|
+
const L = j(H);
|
|
25
25
|
return p.exists !== L.exists || p.id !== L.id || p.status !== L.status;
|
|
26
26
|
}
|
|
27
27
|
function YA({
|
|
28
28
|
fetchSubmissions: p,
|
|
29
29
|
getCurrentSubmission: H,
|
|
30
30
|
loadTyroLocations: L,
|
|
31
|
-
onApproved:
|
|
31
|
+
onApproved: k,
|
|
32
32
|
onRejected: s,
|
|
33
|
-
onTimeout:
|
|
34
|
-
onError:
|
|
33
|
+
onTimeout: m,
|
|
34
|
+
onError: i,
|
|
35
35
|
intervalMs: Q = 2e3,
|
|
36
|
-
timeoutMs:
|
|
36
|
+
timeoutMs: M = 12e4
|
|
37
37
|
}) {
|
|
38
|
-
let g =
|
|
38
|
+
let g = j(H());
|
|
39
39
|
const D = TA({
|
|
40
40
|
intervalMs: Q,
|
|
41
|
-
timeoutMs:
|
|
41
|
+
timeoutMs: M,
|
|
42
42
|
onTick: async ({ isCurrentRun: y, stop: O }) => {
|
|
43
43
|
if (await p(), !y())
|
|
44
44
|
return;
|
|
@@ -47,7 +47,7 @@ function YA({
|
|
|
47
47
|
if (O({ invalidate: !1 }), (P == null ? void 0 : P.status) === "approved") {
|
|
48
48
|
if (await L(), !y())
|
|
49
49
|
return;
|
|
50
|
-
|
|
50
|
+
k();
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
53
|
(P == null ? void 0 : P.status) === "rejected" && s();
|
|
@@ -55,14 +55,14 @@ function YA({
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
onTimeout: () => {
|
|
58
|
-
|
|
58
|
+
m();
|
|
59
59
|
},
|
|
60
60
|
onError: (y) => {
|
|
61
|
-
|
|
61
|
+
i(y);
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
function v(y) {
|
|
65
|
-
g = y ??
|
|
65
|
+
g = y ?? j(H()), D.start();
|
|
66
66
|
}
|
|
67
67
|
return {
|
|
68
68
|
isPolling: D.isPolling,
|
|
@@ -88,7 +88,7 @@ const XA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjwAAAG2CAYAAADLFS87AA
|
|
|
88
88
|
}, rs = { class: "text-xs text-gray-500 text-right mb-4" }, as = { class: "flex items-center mt-2" }, ls = { class: "text-orange-600 font-medium mr-2" }, ds = 2e3, us = 12e4, Hs = /* @__PURE__ */ fA({
|
|
89
89
|
__name: "OnboardSubmission",
|
|
90
90
|
setup(p) {
|
|
91
|
-
const H = CA(), { isLoading: L, startAsyncCall:
|
|
91
|
+
const H = CA(), { isLoading: L, startAsyncCall: k } = DA(!1), { t: s } = wA(), m = HA(), { currentRestaurant: i, currentCountry: Q, pushDataLayer: M } = xA(), g = X([]), D = X([]), v = X(""), y = X(!1), O = X(!1), P = [
|
|
92
92
|
{
|
|
93
93
|
type: f.FdoOnboardType.enum.softspace,
|
|
94
94
|
name: () => "FassPay",
|
|
@@ -121,29 +121,29 @@ const XA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjwAAAG2CAYAAADLFS87AA
|
|
|
121
121
|
() => s("payment.onboard-submission.tyro.service2")
|
|
122
122
|
]
|
|
123
123
|
}
|
|
124
|
-
],
|
|
124
|
+
], iA = W(
|
|
125
125
|
() => P.filter((A) => A.country.includes((Q == null ? void 0 : Q.value) || F.F_COUNTRY.enum.MY)).map((A) => ({
|
|
126
126
|
...A,
|
|
127
127
|
submission: g.value.find((e) => e.type === A.type)
|
|
128
128
|
}))
|
|
129
|
-
),
|
|
129
|
+
), rA = W(
|
|
130
130
|
() => D.value.map((A) => ({
|
|
131
131
|
label: `${A.name} (${A.locationId})`,
|
|
132
132
|
value: A.locationId
|
|
133
133
|
}))
|
|
134
134
|
), h = W(
|
|
135
135
|
() => g.value.find((A) => A.type === f.FdoOnboardType.enum.tyro)
|
|
136
|
-
),
|
|
136
|
+
), aA = W(
|
|
137
137
|
() => D.value.find((A) => A.locationId === v.value)
|
|
138
|
-
),
|
|
138
|
+
), S = W(() => {
|
|
139
139
|
var u;
|
|
140
|
-
const A = (u =
|
|
140
|
+
const A = (u = aA.value) == null ? void 0 : u.address;
|
|
141
141
|
if (!A || typeof A != "object")
|
|
142
142
|
return [];
|
|
143
|
-
const e = [A.line1, A.line2, A.street].filter(Boolean).join(", "),
|
|
144
|
-
return [e,
|
|
145
|
-
}),
|
|
146
|
-
var
|
|
143
|
+
const e = [A.line1, A.line2, A.street].filter(Boolean).join(", "), r = [A.city, A.suburb, A.state, A.postcode].filter(Boolean).join(", "), l = [A.country].filter(Boolean).join(", ");
|
|
144
|
+
return [e, r, l].filter(Boolean);
|
|
145
|
+
}), lA = (A) => A.submission ? A.type === f.FdoOnboardType.enum.tyro ? s("payment.onboard-submission.reauthorize") : s("payment.onboard-submission.edit") : A.type === f.FdoOnboardType.enum.tyro ? s("payment.onboard-submission.authorize") : s("payment.onboard-submission.apply"), dA = (A) => {
|
|
146
|
+
var r, l;
|
|
147
147
|
const e = {
|
|
148
148
|
event: "payment_onboarding_started",
|
|
149
149
|
gateway: A.type,
|
|
@@ -151,114 +151,115 @@ const XA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjwAAAG2CAYAAADLFS87AA
|
|
|
151
151
|
onboarding_mode: A.submission ? "edit" : "new",
|
|
152
152
|
onboarding_country: Q.value || F.F_COUNTRY.enum.MY
|
|
153
153
|
};
|
|
154
|
-
(
|
|
155
|
-
},
|
|
156
|
-
var e,
|
|
157
|
-
if (
|
|
158
|
-
if (!((e =
|
|
154
|
+
(r = i.value) != null && r._id && (e.restaurant_id = i.value._id), (l = A.submission) != null && l._id && (e.submission_id = A.submission._id), M(e);
|
|
155
|
+
}, uA = async (A) => {
|
|
156
|
+
var e, r, l, u, N;
|
|
157
|
+
if (dA(A), A.type === f.FdoOnboardType.enum.tyro) {
|
|
158
|
+
if (!((e = i.value) != null && e._id))
|
|
159
159
|
return;
|
|
160
|
-
const
|
|
161
|
-
if (!
|
|
162
|
-
|
|
160
|
+
const c = window.open("", "_blank");
|
|
161
|
+
if (!c) {
|
|
162
|
+
m.open({
|
|
163
163
|
title: s("payment.onboard-submission.tyro.toast.authorizationStartFailedTitle"),
|
|
164
164
|
message: s("payment.onboard-submission.tyro.toast.authorizationPopupBlocked")
|
|
165
165
|
});
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
c.opener = null, (r = c.focus) == null || r.call(c);
|
|
169
169
|
try {
|
|
170
|
-
const { url:
|
|
171
|
-
|
|
170
|
+
const { url: Y } = await E.getOnboardSubmissionTyroAuthUrl(
|
|
171
|
+
i.value._id
|
|
172
172
|
);
|
|
173
|
-
|
|
174
|
-
} catch (
|
|
175
|
-
|
|
173
|
+
c.location.href = Y, (l = c.focus) == null || l.call(c), mA();
|
|
174
|
+
} catch (Y) {
|
|
175
|
+
c.close(), m.open({
|
|
176
176
|
title: s("payment.onboard-submission.tyro.toast.authorizationStartFailedTitle"),
|
|
177
|
-
message:
|
|
177
|
+
message: G(Y)
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
|
-
H.push({
|
|
182
|
+
(u = i.value) != null && u._id && H.push({
|
|
183
183
|
name: "mf-payment-onboard-submission-form",
|
|
184
184
|
params: {
|
|
185
185
|
type: A.type,
|
|
186
|
-
|
|
186
|
+
restaurantId: i.value._id,
|
|
187
|
+
submission: (N = A.submission) == null ? void 0 : N._id
|
|
187
188
|
}
|
|
188
189
|
});
|
|
189
190
|
};
|
|
190
191
|
function I() {
|
|
191
192
|
D.value = [], v.value = "";
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
194
|
+
function V() {
|
|
195
|
+
R.stop();
|
|
195
196
|
}
|
|
196
|
-
async function
|
|
197
|
+
async function J() {
|
|
197
198
|
var A;
|
|
198
|
-
if (!((A =
|
|
199
|
+
if (!((A = i.value) != null && A._id)) {
|
|
199
200
|
g.value = [], I();
|
|
200
201
|
return;
|
|
201
202
|
}
|
|
202
|
-
g.value = await
|
|
203
|
+
g.value = await E.getByRestaurant(i.value._id);
|
|
203
204
|
}
|
|
204
|
-
async function
|
|
205
|
-
var A, e,
|
|
206
|
-
if (!((A =
|
|
205
|
+
async function _() {
|
|
206
|
+
var A, e, r, l;
|
|
207
|
+
if (!((A = i.value) != null && A._id) || ((e = h.value) == null ? void 0 : e.status) !== "approved") {
|
|
207
208
|
I();
|
|
208
209
|
return;
|
|
209
210
|
}
|
|
210
211
|
y.value = !0;
|
|
211
212
|
try {
|
|
212
|
-
const u = await
|
|
213
|
-
D.value = u.results, v.value = ((
|
|
213
|
+
const u = await E.getTyroLocations(i.value._id);
|
|
214
|
+
D.value = u.results, v.value = ((r = h.value.fields) == null ? void 0 : r.tyroLocationId) || ((l = u.results[0]) == null ? void 0 : l.locationId) || "";
|
|
214
215
|
} catch (u) {
|
|
215
|
-
I(),
|
|
216
|
+
I(), m.open({
|
|
216
217
|
type: "error",
|
|
217
|
-
message:
|
|
218
|
+
message: G(u)
|
|
218
219
|
});
|
|
219
220
|
} finally {
|
|
220
221
|
y.value = !1;
|
|
221
222
|
}
|
|
222
223
|
}
|
|
223
|
-
const
|
|
224
|
-
fetchSubmissions:
|
|
224
|
+
const R = YA({
|
|
225
|
+
fetchSubmissions: J,
|
|
225
226
|
getCurrentSubmission: () => h.value,
|
|
226
|
-
loadTyroLocations:
|
|
227
|
+
loadTyroLocations: _,
|
|
227
228
|
onApproved: () => {
|
|
228
|
-
|
|
229
|
+
m.open({
|
|
229
230
|
type: "success",
|
|
230
231
|
message: s("payment.onboard-submission.tyro.toast.authorizationApproved")
|
|
231
232
|
});
|
|
232
233
|
},
|
|
233
234
|
onRejected: () => {
|
|
234
|
-
|
|
235
|
+
m.open({
|
|
235
236
|
type: "error",
|
|
236
237
|
message: s("payment.onboard-submission.tyro.toast.authorizationRejected")
|
|
237
238
|
});
|
|
238
239
|
},
|
|
239
240
|
onTimeout: () => {
|
|
240
|
-
|
|
241
|
+
m.open({
|
|
241
242
|
type: "error",
|
|
242
243
|
message: s("payment.onboard-submission.tyro.toast.authorizationTimeout")
|
|
243
244
|
});
|
|
244
245
|
},
|
|
245
246
|
onError: (A) => {
|
|
246
|
-
|
|
247
|
+
m.open({
|
|
247
248
|
type: "error",
|
|
248
|
-
message:
|
|
249
|
+
message: G(A)
|
|
249
250
|
});
|
|
250
251
|
},
|
|
251
252
|
intervalMs: ds,
|
|
252
253
|
timeoutMs: us
|
|
253
|
-
}),
|
|
254
|
-
function
|
|
255
|
-
|
|
254
|
+
}), cA = R.isPolling;
|
|
255
|
+
function mA() {
|
|
256
|
+
R.start(j(h.value));
|
|
256
257
|
}
|
|
257
|
-
async function
|
|
258
|
+
async function yA() {
|
|
258
259
|
var A;
|
|
259
|
-
if ((A =
|
|
260
|
+
if ((A = i.value) != null && A._id) {
|
|
260
261
|
if (!v.value) {
|
|
261
|
-
|
|
262
|
+
m.open({
|
|
262
263
|
type: "error",
|
|
263
264
|
message: s("payment.onboard-submission.tyro.toast.locationRequired")
|
|
264
265
|
});
|
|
@@ -266,91 +267,91 @@ const XA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjwAAAG2CAYAAADLFS87AA
|
|
|
266
267
|
}
|
|
267
268
|
O.value = !0;
|
|
268
269
|
try {
|
|
269
|
-
const e = await
|
|
270
|
-
|
|
270
|
+
const e = await E.bindTyroLocation(
|
|
271
|
+
i.value._id,
|
|
271
272
|
{ locationId: v.value }
|
|
272
|
-
),
|
|
273
|
-
(
|
|
273
|
+
), r = g.value.findIndex(
|
|
274
|
+
(l) => l._id === e._id
|
|
274
275
|
);
|
|
275
|
-
|
|
276
|
+
r >= 0 ? g.value.splice(r, 1, e) : g.value.push(e), I(), m.open({
|
|
276
277
|
type: "success",
|
|
277
278
|
message: s("payment.onboard-submission.tyro.toast.locationBindSuccess")
|
|
278
279
|
});
|
|
279
280
|
} catch (e) {
|
|
280
|
-
|
|
281
|
+
m.open({
|
|
281
282
|
type: "error",
|
|
282
|
-
message:
|
|
283
|
+
message: G(e)
|
|
283
284
|
});
|
|
284
285
|
} finally {
|
|
285
286
|
O.value = !1;
|
|
286
287
|
}
|
|
287
288
|
}
|
|
288
289
|
}
|
|
289
|
-
function
|
|
290
|
-
|
|
291
|
-
await
|
|
290
|
+
function $() {
|
|
291
|
+
V(), k(async () => {
|
|
292
|
+
await J(), await _();
|
|
292
293
|
});
|
|
293
294
|
}
|
|
294
|
-
return pA(
|
|
295
|
-
|
|
295
|
+
return pA($), gA([i], $), vA(() => {
|
|
296
|
+
V();
|
|
296
297
|
}), (A, e) => {
|
|
297
|
-
const
|
|
298
|
-
return
|
|
298
|
+
const r = C("FmCardHeader"), l = C("FmSelect"), u = C("FmButton"), N = C("FmIcon"), c = C("FmCircularProgress"), Y = C("FmCardActions"), bA = C("FmCard");
|
|
299
|
+
return d(), Z(BA, {
|
|
299
300
|
title: o(s)("payment.onboard-submission.title"),
|
|
300
301
|
description: o(s)("payment.onboard-submission.description"),
|
|
301
302
|
loading: o(L)
|
|
302
303
|
}, {
|
|
303
|
-
default:
|
|
304
|
+
default: U(() => [
|
|
304
305
|
t("div", WA, [
|
|
305
306
|
x(LA)
|
|
306
307
|
]),
|
|
307
308
|
t("div", FA, [
|
|
308
|
-
(
|
|
309
|
-
default:
|
|
310
|
-
var
|
|
309
|
+
(d(!0), b(K, null, q(iA.value, (n, cs) => (d(), Z(bA, { class: "h-full flex flex-col pt-8" }, {
|
|
310
|
+
default: U(() => {
|
|
311
|
+
var AA, sA, eA;
|
|
311
312
|
return [
|
|
312
313
|
t("div", hA, [
|
|
313
314
|
t("img", {
|
|
314
315
|
class: PA(n.logoClass),
|
|
315
316
|
src: n.logo
|
|
316
317
|
}, null, 10, IA),
|
|
317
|
-
x(
|
|
318
|
+
x(r, {
|
|
318
319
|
title: n.name(),
|
|
319
320
|
subtitle: n.description()
|
|
320
321
|
}, null, 8, ["title", "subtitle"])
|
|
321
322
|
]),
|
|
322
323
|
t("div", NA, [
|
|
323
324
|
t("ul", GA, [
|
|
324
|
-
(
|
|
325
|
-
key: `service-${
|
|
326
|
-
},
|
|
325
|
+
(d(!0), b(K, null, q(n.services, (w, z) => (d(), b("li", {
|
|
326
|
+
key: `service-${z}`
|
|
327
|
+
}, a(w()), 1))), 128))
|
|
327
328
|
])
|
|
328
329
|
]),
|
|
329
|
-
(
|
|
330
|
+
(AA = n.submission) != null && AA.statusReason ? (d(), b("div", EA, [
|
|
330
331
|
t("p", jA, [
|
|
331
|
-
B(
|
|
332
|
-
t("span", kA,
|
|
332
|
+
B(a(o(s)("payment.onboard-submission.note")) + ": ", 1),
|
|
333
|
+
t("span", kA, a((sA = n.submission) == null ? void 0 : sA.statusReason), 1)
|
|
333
334
|
])
|
|
334
335
|
])) : T("", !0),
|
|
335
|
-
((
|
|
336
|
+
((eA = n.submission) == null ? void 0 : eA.status) === "approved" && n.type === o(f.FdoOnboardType).enum.tyro ? (d(), b("div", MA, [
|
|
336
337
|
t("div", RA, [
|
|
337
338
|
t("div", ZA, [
|
|
338
|
-
t("p", UA,
|
|
339
|
+
t("p", UA, a(o(s)("payment.onboard-submission.tyro.location.description")), 1)
|
|
339
340
|
]),
|
|
340
341
|
t("div", KA, [
|
|
341
|
-
x(
|
|
342
|
+
x(l, {
|
|
342
343
|
modelValue: v.value,
|
|
343
344
|
"onUpdate:modelValue": e[0] || (e[0] = (w) => v.value = w),
|
|
344
345
|
label: o(s)("payment.onboard-submission.tyro.location.label"),
|
|
345
|
-
items:
|
|
346
|
+
items: rA.value,
|
|
346
347
|
disabled: y.value || O.value
|
|
347
348
|
}, null, 8, ["modelValue", "label", "items", "disabled"]),
|
|
348
|
-
|
|
349
|
-
t("p", SA,
|
|
349
|
+
S.value.length ? (d(), b("div", qA, [
|
|
350
|
+
t("p", SA, a(o(s)("payment.onboard-submission.tyro.location.address")), 1),
|
|
350
351
|
t("div", VA, [
|
|
351
|
-
(
|
|
352
|
-
key: `tyro-address-${
|
|
353
|
-
},
|
|
352
|
+
(d(!0), b(K, null, q(S.value, (w, z) => (d(), b("p", {
|
|
353
|
+
key: `tyro-address-${z}`
|
|
354
|
+
}, a(w), 1))), 128))
|
|
354
355
|
])
|
|
355
356
|
])) : T("", !0)
|
|
356
357
|
]),
|
|
@@ -360,71 +361,71 @@ const XA = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABjwAAAG2CAYAAADLFS87AA
|
|
|
360
361
|
class: "w-full sm:w-auto",
|
|
361
362
|
label: o(s)("payment.onboard-submission.tyro.location.bind"),
|
|
362
363
|
loading: y.value || O.value,
|
|
363
|
-
onClick:
|
|
364
|
+
onClick: yA
|
|
364
365
|
}, null, 8, ["label", "loading"])
|
|
365
366
|
])
|
|
366
367
|
])
|
|
367
368
|
])) : T("", !0),
|
|
368
|
-
x(
|
|
369
|
-
default:
|
|
370
|
-
var w,
|
|
369
|
+
x(Y, { class: "justify-end mt-auto" }, {
|
|
370
|
+
default: U(() => {
|
|
371
|
+
var w, z, tA, oA, nA;
|
|
371
372
|
return [
|
|
372
|
-
((w = n.submission) == null ? void 0 : w.status) === "ready" ? (
|
|
373
|
+
((w = n.submission) == null ? void 0 : w.status) === "ready" ? (d(), b("div", _A, [
|
|
373
374
|
t("p", $A, [
|
|
374
|
-
B(
|
|
375
|
+
B(a(o(s)("payment.onboard-submission.ready.line1")), 1),
|
|
375
376
|
e[1] || (e[1] = t("br", null, null, -1)),
|
|
376
|
-
B(" " +
|
|
377
|
+
B(" " + a(o(s)("payment.onboard-submission.ready.line2")), 1)
|
|
377
378
|
]),
|
|
378
379
|
t("div", As, [
|
|
379
380
|
t("p", ss, [
|
|
380
|
-
B(
|
|
381
|
+
B(a(o(s)("payment.onboard-submission.ready.status")), 1),
|
|
381
382
|
e[2] || (e[2] = t("br", null, null, -1))
|
|
382
383
|
]),
|
|
383
|
-
x(
|
|
384
|
+
x(N, {
|
|
384
385
|
size: "md",
|
|
385
386
|
name: "check",
|
|
386
387
|
color: "#16a34a"
|
|
387
388
|
})
|
|
388
389
|
])
|
|
389
390
|
])) : T("", !0),
|
|
390
|
-
((
|
|
391
|
+
((z = n.submission) == null ? void 0 : z.status) === "approved" && n.type !== o(f.FdoOnboardType).enum.tyro ? (d(), b("div", es, [
|
|
391
392
|
t("p", ts, [
|
|
392
|
-
B(
|
|
393
|
+
B(a(o(s)("payment.onboard-submission.approval.line1")), 1),
|
|
393
394
|
e[3] || (e[3] = t("br", null, null, -1)),
|
|
394
|
-
B(" " +
|
|
395
|
+
B(" " + a(o(s)("payment.onboard-submission.approval.line2")), 1)
|
|
395
396
|
]),
|
|
396
397
|
t("div", os, [
|
|
397
398
|
t("p", ns, [
|
|
398
|
-
B(
|
|
399
|
+
B(a(o(s)("payment.onboard-submission.approval.status")), 1),
|
|
399
400
|
e[4] || (e[4] = t("br", null, null, -1))
|
|
400
401
|
]),
|
|
401
|
-
x(
|
|
402
|
+
x(c, {
|
|
402
403
|
size: "md",
|
|
403
404
|
color: "#ea580c"
|
|
404
405
|
})
|
|
405
406
|
])
|
|
406
407
|
])) : T("", !0),
|
|
407
|
-
((
|
|
408
|
+
((tA = n.submission) == null ? void 0 : tA.status) === "submitted" ? (d(), b("div", is, [
|
|
408
409
|
t("p", rs, [
|
|
409
|
-
B(
|
|
410
|
+
B(a(o(s)("payment.onboard-submission.review.line1")), 1),
|
|
410
411
|
e[5] || (e[5] = t("br", null, null, -1)),
|
|
411
|
-
B(" " +
|
|
412
|
+
B(" " + a(o(s)("payment.onboard-submission.review.line2")), 1)
|
|
412
413
|
]),
|
|
413
414
|
t("div", as, [
|
|
414
|
-
t("p", ls,
|
|
415
|
-
x(
|
|
415
|
+
t("p", ls, a(o(s)("payment.onboard-submission.review.status")), 1),
|
|
416
|
+
x(c, {
|
|
416
417
|
size: "md",
|
|
417
418
|
color: "#ea580c"
|
|
418
419
|
})
|
|
419
420
|
])
|
|
420
421
|
])) : T("", !0),
|
|
421
|
-
!n.submission || ((
|
|
422
|
+
!n.submission || ((oA = n.submission) == null ? void 0 : oA.status) === "pending" || ((nA = n.submission) == null ? void 0 : nA.status) === "rejected" ? (d(), Z(u, {
|
|
422
423
|
key: 3,
|
|
423
424
|
variant: "primary",
|
|
424
425
|
"prepend-icon": n.type === o(f.FdoOnboardType).enum.tyro ? "lock" : n.submission ? "edit" : "manage_accounts",
|
|
425
|
-
label:
|
|
426
|
-
loading: n.type === o(f.FdoOnboardType).enum.tyro && o(
|
|
427
|
-
onClick: (ms) =>
|
|
426
|
+
label: lA(n),
|
|
427
|
+
loading: n.type === o(f.FdoOnboardType).enum.tyro && o(cA),
|
|
428
|
+
onClick: (ms) => uA(n)
|
|
428
429
|
}, null, 8, ["prepend-icon", "label", "loading", "onClick"])) : T("", !0)
|
|
429
430
|
];
|
|
430
431
|
}),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { defineComponent as P, ref as v, reactive as aA, computed as N, watch as AA, resolveComponent as G, openBlock as n, createElementBlock as X, Fragment as tA, unref as a, createVNode as i, createBlock as d, createCommentVNode as j, withCtx as Q, createElementVNode as B, toDisplayString as p, normalizeClass as L, h as z, onMounted as sA } from "vue";
|
|
2
2
|
import { defineStore as oA, storeToRefs as gA } from "pinia";
|
|
3
|
-
import { p as k } from "./index-
|
|
4
|
-
import { p as W, u as rA, e as lA } from "./index-
|
|
3
|
+
import { p as k } from "./index-Bv2sHRuG.js";
|
|
4
|
+
import { p as W, u as rA, e as lA } from "./index-Agw94979.js";
|
|
5
5
|
import { useI18n as S, useCoreStore as eA } from "@feedmepos/mf-common";
|
|
6
|
-
import { c as nA, a as _, P as R } from "./payout-account-
|
|
6
|
+
import { c as nA, a as _, P as R } from "./payout-account-Do9T9GvQ.js";
|
|
7
7
|
import { useDialogChild as cA, useDialog as BA } from "@feedmepos/ui-library";
|
|
8
8
|
import { z as F, a as H } from "./validator-CTlVogBQ.js";
|
|
9
9
|
import { P as $ } from "./PDFViewer-CIPPbzWD.js";
|
|
10
|
-
import { _ as T } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { h as uA, A as wA, o as iA, q as DA } from "./app-
|
|
10
|
+
import { _ as T } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DN_6q2_n.js";
|
|
11
|
+
import { h as uA, A as wA, o as iA, q as DA } from "./app-Bezc2BFB.js";
|
|
12
12
|
import { _ as dA } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
13
13
|
function mA() {
|
|
14
14
|
return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as y, resolveComponent as p, openBlock as f, createElementBlock as N, createVNode as m, normalizeClass as v, withCtx as b, createElementVNode as P, toDisplayString as k, createCommentVNode as I, createBlock as V, computed as F, ref as O, watch as R, isRef as _, unref as l, h as x } from "vue";
|
|
2
2
|
import { h as K } from "./moment-h96o7c8I.js";
|
|
3
|
-
import { u as T } from "./index-
|
|
4
|
-
import { p as $ } from "./index-
|
|
3
|
+
import { u as T } from "./index-da9XXOQN.js";
|
|
4
|
+
import { p as $ } from "./index-Agw94979.js";
|
|
5
5
|
import { _ as U } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
6
|
-
import { P as E } from "./payout-account-
|
|
7
|
-
import { p as A } from "./index-
|
|
6
|
+
import { P as E } from "./payout-account-Do9T9GvQ.js";
|
|
7
|
+
import { p as A } from "./index-Bv2sHRuG.js";
|
|
8
8
|
import "@feedmepos/ui-library";
|
|
9
|
-
import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-B79Nwx5o.js";
|
|
10
10
|
import { useRouter as Y } from "vue-router";
|
|
11
11
|
import { _ as L } from "./SelectAll.vue_vue_type_script_setup_true_lang-BNZTqdoF.js";
|
|
12
12
|
const W = { class: "flex flex-col gap-1" }, j = {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as D, resolveComponent as y, openBlock as g, createElementBlock as E, Fragment as j, createElementVNode as r, createVNode as n, withCtx as k, createTextVNode as h, toDisplayString as B, unref as s, reactive as de, ref as C, createBlock as w, watch as te, computed as Y, isRef as W, createCommentVNode as $, h as H, onMounted as se, resolveDynamicComponent as ae, normalizeProps as ne, mergeProps as oe } from "vue";
|
|
2
|
-
import { p as G } from "./index-
|
|
3
|
-
import { u as X, e as _ } from "./index-
|
|
2
|
+
import { p as G } from "./index-Bv2sHRuG.js";
|
|
3
|
+
import { u as X, e as _ } from "./index-Agw94979.js";
|
|
4
4
|
import { _ as pe } from "./Layout.vue_vue_type_script_setup_true_lang-BKIvkgA_.js";
|
|
5
5
|
import { useRouter as ye } from "vue-router";
|
|
6
|
-
import { u as ee } from "./index-
|
|
7
|
-
import { _ as Z } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { u as ee } from "./index-da9XXOQN.js";
|
|
7
|
+
import { _ as Z } from "./DocumentViewer.vue_vue_type_script_setup_true_lang-DN_6q2_n.js";
|
|
8
8
|
import { h as be } from "./moment-h96o7c8I.js";
|
|
9
9
|
import { useDialogChild as fe, useDialog as ie, useSnackbar as J, components as ve } from "@feedmepos/ui-library";
|
|
10
10
|
import { P as Q } from "./PDFViewer-CIPPbzWD.js";
|
|
11
11
|
import { u as z } from "./error-K1CakhA9.js";
|
|
12
|
-
import { P as ge } from "./payout-account-
|
|
13
|
-
import { d as re } from "./index-
|
|
12
|
+
import { P as ge } from "./payout-account-Do9T9GvQ.js";
|
|
13
|
+
import { d as re } from "./index-ZhbF97Tm.js";
|
|
14
14
|
import { s as L, o as Fe, z as A, a as N } from "./validator-CTlVogBQ.js";
|
|
15
15
|
import { _ as xe } from "./TextInputDialog.vue_vue_type_script_setup_true_lang-C3AeZqwO.js";
|
|
16
16
|
import { useCoreStore as me } from "@feedmepos/mf-common";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as F, ref as y, resolveComponent as _, openBlock as x, createBlock as A, withCtx as $, createElementVNode as p, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, createVNode as v, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
|
|
2
|
-
import { u as O } from "./index-
|
|
2
|
+
import { u as O } from "./index-da9XXOQN.js";
|
|
3
3
|
import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-0Mf1MhAL.js";
|
|
4
4
|
import "@feedmepos/ui-library";
|
|
5
|
-
import { u as G } from "./index-
|
|
5
|
+
import { u as G } from "./index-Agw94979.js";
|
|
6
6
|
import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DrBLdVka.js";
|
|
7
|
-
import { r as H } from "./index-
|
|
7
|
+
import { r as H } from "./index-BbMFtfU9.js";
|
|
8
8
|
import { useRouter as J } from "vue-router";
|
|
9
|
-
import { g as X } from "./grafana-
|
|
9
|
+
import { g as X } from "./grafana-BbjqeSUV.js";
|
|
10
10
|
const Y = ["id"], L = /* @__PURE__ */ F({
|
|
11
11
|
__name: "FmTableSelection",
|
|
12
12
|
props: {
|