@feedmepos/mf-payment 0.0.0-beta.37 → 0.0.0-beta.38
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-BcgYhX4b.js → PayoutAccount-B2RkqaQ9.js} +1 -1
- package/dist/{PayoutAccount-B0viIh7c.js → PayoutAccount-BGbBteeq.js} +1 -1
- package/dist/app.js +49 -48
- package/dist/package.json +1 -1
- package/dist/{payout-account-DKm-YncB.js → payout-account-CfYFecy1.js} +245 -245
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { defineComponent as b, resolveComponent as m, openBlock as g, createBloc
|
|
2
2
|
import { u as S } from "./index-BgnU5ezY.js";
|
3
3
|
import { _ as O } from "./index-Cnxt2xmc.js";
|
4
4
|
import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
|
5
|
-
import { P as V } from "./payout-account-
|
5
|
+
import { P as V } from "./payout-account-CfYFecy1.js";
|
6
6
|
import { p as D } from "./index-ApzEWD1P.js";
|
7
7
|
import "@feedmepos/ui-library";
|
8
8
|
import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-B8eGz19R.js";
|
@@ -3,7 +3,7 @@ import { p as z } from "./index-ApzEWD1P.js";
|
|
3
3
|
import { _ as I, u as S, c as h } from "./index-Cnxt2xmc.js";
|
4
4
|
import { defineStore as _ } from "pinia";
|
5
5
|
import { useCoreStore as $ } from "@feedmepos/mf-common";
|
6
|
-
import { c as AA, P as j } from "./payout-account-
|
6
|
+
import { c as AA, P as j } from "./payout-account-CfYFecy1.js";
|
7
7
|
import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
|
8
8
|
import { z as f, a as q } from "./validator-D5jtpt9A.js";
|
9
9
|
import { P as K } from "./PDFViewer-CjH_C1uT.js";
|
package/dist/app.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { createRouter as
|
2
|
-
import { computed as
|
3
|
-
import { useCoreStore as
|
4
|
-
import { defineStore as
|
5
|
-
const
|
1
|
+
import { createRouter as I, createWebHistory as P, useRouter as S } from "vue-router";
|
2
|
+
import { computed as h, watch as c, defineComponent as b, ref as w, resolveComponent as v, openBlock as _, createBlock as R, onMounted as T, onBeforeMount as g } from "vue";
|
3
|
+
import { useCoreStore as d } from "@feedmepos/mf-common";
|
4
|
+
import { defineStore as A } from "pinia";
|
5
|
+
const f = [
|
6
6
|
{
|
7
7
|
path: "/admin/payout-accounts",
|
8
8
|
name: "mf-payment-admin.payout-account",
|
9
9
|
meta: {
|
10
10
|
sidebarDisplay: "Payout Accounts"
|
11
11
|
},
|
12
|
-
component: () => import("./PayoutAccount-
|
12
|
+
component: () => import("./PayoutAccount-B2RkqaQ9.js")
|
13
13
|
},
|
14
14
|
{
|
15
15
|
path: "/admin/payout-accounts/:accountId",
|
@@ -61,7 +61,7 @@ const l = [
|
|
61
61
|
props: !0,
|
62
62
|
component: () => import("./SettlementTransactions-yJhT6FR4.js")
|
63
63
|
}
|
64
|
-
],
|
64
|
+
], y = [
|
65
65
|
{
|
66
66
|
path: "",
|
67
67
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -69,7 +69,7 @@ const l = [
|
|
69
69
|
{
|
70
70
|
path: "/payout-account",
|
71
71
|
name: "mf-payment-payout-account",
|
72
|
-
component: () => import("./PayoutAccount-
|
72
|
+
component: () => import("./PayoutAccount-BGbBteeq.js"),
|
73
73
|
meta: {
|
74
74
|
sidebarDisplay: "Payout Accounts"
|
75
75
|
}
|
@@ -104,56 +104,57 @@ const l = [
|
|
104
104
|
props: !0,
|
105
105
|
component: () => import("./SettlementTransactions-Co4ziq3a.js")
|
106
106
|
}
|
107
|
-
],
|
108
|
-
const
|
107
|
+
], C = A("iframe", () => {
|
108
|
+
const m = {
|
109
109
|
isIframe: !1
|
110
|
-
}, a =
|
110
|
+
}, a = h(() => m);
|
111
111
|
function n(r) {
|
112
|
-
|
112
|
+
m.isIframe = r;
|
113
113
|
}
|
114
114
|
return {
|
115
115
|
state: a,
|
116
116
|
init: n
|
117
117
|
};
|
118
|
-
}),
|
119
|
-
history:
|
120
|
-
routes: [...
|
118
|
+
}), B = I({
|
119
|
+
history: P(),
|
120
|
+
routes: [...y, ...f]
|
121
121
|
});
|
122
|
-
|
122
|
+
let u, l;
|
123
|
+
B.beforeEach(async (m) => {
|
123
124
|
const {
|
124
125
|
sessionUser: a,
|
125
126
|
currentRestaurant: n,
|
126
127
|
currentBusiness: r,
|
127
128
|
readRestaurants: p,
|
128
129
|
changeRestaurant: i
|
129
|
-
} =
|
130
|
-
return
|
130
|
+
} = d();
|
131
|
+
return m.name.startsWith("mf-payment-admin") ? a.value ? !0 : (u || (u = new Promise((o) => {
|
131
132
|
const e = c(a, (t) => {
|
132
133
|
var s;
|
133
|
-
t && (e(),
|
134
|
+
t && (e(), o(((s = a.value) == null ? void 0 : s.isInternal) ?? !1));
|
134
135
|
});
|
135
|
-
}) : !r.value || !n.value ? Promise.all([
|
136
|
-
new Promise(async (
|
136
|
+
})), u) : !r.value || !n.value ? (l || (l = Promise.all([
|
137
|
+
new Promise(async (o) => {
|
137
138
|
const e = c(r, (t) => {
|
138
|
-
t && (e(),
|
139
|
+
t && (e(), o(!0));
|
139
140
|
});
|
140
141
|
}),
|
141
|
-
new Promise(async (
|
142
|
+
new Promise(async (o) => {
|
142
143
|
const e = c(n, (s) => {
|
143
|
-
s && (e(),
|
144
|
+
s && (e(), o(!0));
|
144
145
|
}), t = await p();
|
145
146
|
await i(t == null ? void 0 : t.at(0));
|
146
147
|
})
|
147
|
-
]).then((
|
148
|
+
]).then((o) => !0)), l) : !0;
|
148
149
|
});
|
149
|
-
const
|
150
|
+
const V = /* @__PURE__ */ b({
|
150
151
|
__name: "AppSidebar",
|
151
|
-
setup(
|
152
|
-
const a =
|
152
|
+
setup(m) {
|
153
|
+
const a = d(), n = S(), r = w(n.currentRoute.value.name);
|
153
154
|
c(n.currentRoute, () => {
|
154
155
|
r.value = n.currentRoute.value.name;
|
155
156
|
});
|
156
|
-
const p =
|
157
|
+
const p = y.map((e) => {
|
157
158
|
var t;
|
158
159
|
if ((t = e.meta) != null && t.sidebarDisplay)
|
159
160
|
return {
|
@@ -164,7 +165,7 @@ const C = /* @__PURE__ */ y({
|
|
164
165
|
return n.push({ name: e.name });
|
165
166
|
}
|
166
167
|
};
|
167
|
-
}).filter((e) => !!e), i =
|
168
|
+
}).filter((e) => !!e), i = f.map((e) => {
|
168
169
|
var t;
|
169
170
|
if ((t = e.meta) != null && t.sidebarDisplay)
|
170
171
|
return {
|
@@ -175,7 +176,7 @@ const C = /* @__PURE__ */ y({
|
|
175
176
|
return n.push({ name: e.name });
|
176
177
|
}
|
177
178
|
};
|
178
|
-
}).filter((e) => !!e),
|
179
|
+
}).filter((e) => !!e), o = h(() => {
|
179
180
|
var t;
|
180
181
|
const e = [...p];
|
181
182
|
return (t = a.sessionUser.value) != null && t.isInternal && (e.push({
|
@@ -190,33 +191,33 @@ const C = /* @__PURE__ */ y({
|
|
190
191
|
}), e.push(...i)), e;
|
191
192
|
});
|
192
193
|
return (e, t) => {
|
193
|
-
const s =
|
194
|
-
return
|
194
|
+
const s = v("FmCollapsibleTabs");
|
195
|
+
return _(), R(s, {
|
195
196
|
modelValue: r.value,
|
196
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
197
|
-
items:
|
197
|
+
"onUpdate:modelValue": t[0] || (t[0] = (D) => r.value = D),
|
198
|
+
items: o.value,
|
198
199
|
class: "py-16 px-8"
|
199
200
|
}, null, 8, ["modelValue", "items"]);
|
200
201
|
};
|
201
202
|
}
|
202
|
-
}),
|
203
|
+
}), F = /* @__PURE__ */ b({
|
203
204
|
__name: "App",
|
204
|
-
setup(
|
205
|
-
const { state: a } =
|
206
|
-
return
|
205
|
+
setup(m) {
|
206
|
+
const { state: a } = C(), n = d();
|
207
|
+
return T(() => {
|
207
208
|
a.isIframe && parent.postMessage({ event: "ready" }, "*");
|
208
|
-
}),
|
209
|
-
n.registerSidebarComponent(
|
209
|
+
}), g(() => {
|
210
|
+
n.registerSidebarComponent(V);
|
210
211
|
}), (r, p) => {
|
211
|
-
const i =
|
212
|
-
return
|
212
|
+
const i = v("RouterView");
|
213
|
+
return _(), R(i);
|
213
214
|
};
|
214
215
|
}
|
215
|
-
}),
|
216
|
-
...
|
217
|
-
...
|
216
|
+
}), M = [
|
217
|
+
...f,
|
218
|
+
...y
|
218
219
|
];
|
219
220
|
export {
|
220
|
-
|
221
|
-
|
221
|
+
F as FmApp,
|
222
|
+
M as routers
|
222
223
|
};
|