@feedmepos/mf-payment 0.0.0-beta.42 → 0.0.0-beta.44
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-BmZwmSt4.js → PayoutAccount-B36CsJWY.js} +1 -1
- package/dist/{PayoutAccount-UHEZ4sXv.js → PayoutAccount-CEEjvQ2y.js} +1 -1
- package/dist/app-CkViCBtc.js +6345 -0
- package/dist/app.js +3 -221
- package/dist/package.json +1 -1
- package/dist/payout-account-Czc_-GAc.js +1805 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/payout-account-D_HmqPHp.js +0 -3335
package/dist/app.js
CHANGED
@@ -1,223 +1,5 @@
|
|
1
|
-
import {
|
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
|
-
{
|
7
|
-
path: "/admin/payout-accounts",
|
8
|
-
name: "mf-payment-admin.payout-account",
|
9
|
-
meta: {
|
10
|
-
sidebarDisplay: "Payout Accounts"
|
11
|
-
},
|
12
|
-
component: () => import("./PayoutAccount-BmZwmSt4.js")
|
13
|
-
},
|
14
|
-
{
|
15
|
-
path: "/admin/payout-accounts/:accountId",
|
16
|
-
name: "mf-payment-admin.payout-account-settings",
|
17
|
-
props: !0,
|
18
|
-
component: () => import("./PayoutAccountSetting-CywVFXxL.js")
|
19
|
-
},
|
20
|
-
{
|
21
|
-
path: "/admin/terminal",
|
22
|
-
name: "mf-payment-admin.terminal",
|
23
|
-
meta: {
|
24
|
-
sidebarDisplay: "Terminals"
|
25
|
-
},
|
26
|
-
component: () => import("./Terminal-CD2HjTZ6.js")
|
27
|
-
},
|
28
|
-
{
|
29
|
-
path: "/admin/terminal/:terminalId",
|
30
|
-
name: "mf-payment-admin.terminal-setting",
|
31
|
-
props: !0,
|
32
|
-
component: () => import("./TerminalSetting-1bqfLfaT.js")
|
33
|
-
},
|
34
|
-
{
|
35
|
-
path: "/admin/terminal-transaction",
|
36
|
-
name: "mf-payment-admin.terminal-transaction",
|
37
|
-
meta: {
|
38
|
-
sidebarDisplay: "Offline Transactions"
|
39
|
-
},
|
40
|
-
component: () => import("./TerminalTransaction-DYrFWTIb.js")
|
41
|
-
},
|
42
|
-
{
|
43
|
-
path: "/admin/transaction",
|
44
|
-
name: "mf-payment-admin.transaction",
|
45
|
-
meta: {
|
46
|
-
sidebarDisplay: "Online Transactions"
|
47
|
-
},
|
48
|
-
component: () => import("./Transaction-D1RHJmuR.js")
|
49
|
-
},
|
50
|
-
{
|
51
|
-
path: "/admin/settlement",
|
52
|
-
name: "mf-payment-admin.settlement",
|
53
|
-
meta: {
|
54
|
-
sidebarDisplay: "Settlements"
|
55
|
-
},
|
56
|
-
component: () => import("./Settlement-ID4SKZQU.js")
|
57
|
-
},
|
58
|
-
{
|
59
|
-
path: "/admin/settlement/:settlementId",
|
60
|
-
name: "mf-payment-admin.settlement-transaction",
|
61
|
-
props: !0,
|
62
|
-
component: () => import("./SettlementTransactions-Cva0BhNe.js")
|
63
|
-
}
|
64
|
-
], y = [
|
65
|
-
{
|
66
|
-
path: "",
|
67
|
-
redirect: { name: "mf-payment-payout-account" }
|
68
|
-
},
|
69
|
-
{
|
70
|
-
path: "/payout-account",
|
71
|
-
name: "mf-payment-payout-account",
|
72
|
-
component: () => import("./PayoutAccount-UHEZ4sXv.js"),
|
73
|
-
meta: {
|
74
|
-
sidebarDisplay: "Payout Accounts"
|
75
|
-
}
|
76
|
-
},
|
77
|
-
{
|
78
|
-
path: "/terminal-tranasction",
|
79
|
-
name: "mf-payment-terminal-transaction",
|
80
|
-
meta: {
|
81
|
-
sidebarDisplay: "Offline Transactions"
|
82
|
-
},
|
83
|
-
component: () => import("./TerminalTransaction-jVoZHvia.js")
|
84
|
-
},
|
85
|
-
{
|
86
|
-
path: "/transaction",
|
87
|
-
name: "mf-payment-transaction",
|
88
|
-
component: () => import("./Transaction-CjUdHN9-.js"),
|
89
|
-
meta: {
|
90
|
-
sidebarDisplay: "Online Transactions"
|
91
|
-
}
|
92
|
-
},
|
93
|
-
{
|
94
|
-
path: "/settlement",
|
95
|
-
name: "mf-payment-settlement",
|
96
|
-
component: () => import("./Settlement-CwdBiElJ.js"),
|
97
|
-
meta: {
|
98
|
-
sidebarDisplay: "Settlements"
|
99
|
-
}
|
100
|
-
},
|
101
|
-
{
|
102
|
-
path: "/settlement/:settlementId",
|
103
|
-
name: "mf-payment-settlement-transaction",
|
104
|
-
props: !0,
|
105
|
-
component: () => import("./SettlementTransactions-CZc3gg2W.js")
|
106
|
-
}
|
107
|
-
], C = A("iframe", () => {
|
108
|
-
const m = {
|
109
|
-
isIframe: !1
|
110
|
-
}, a = h(() => m);
|
111
|
-
function n(r) {
|
112
|
-
m.isIframe = r;
|
113
|
-
}
|
114
|
-
return {
|
115
|
-
state: a,
|
116
|
-
init: n
|
117
|
-
};
|
118
|
-
}), B = I({
|
119
|
-
history: P(),
|
120
|
-
routes: [...y, ...f]
|
121
|
-
});
|
122
|
-
let u, l;
|
123
|
-
B.beforeEach(async (m) => {
|
124
|
-
const {
|
125
|
-
sessionUser: a,
|
126
|
-
currentRestaurant: n,
|
127
|
-
currentBusiness: r,
|
128
|
-
readRestaurants: p,
|
129
|
-
changeRestaurant: i
|
130
|
-
} = d();
|
131
|
-
return m.name.startsWith("mf-payment-admin") ? a.value ? !0 : (u || (u = new Promise((o) => {
|
132
|
-
const e = c(a, (t) => {
|
133
|
-
var s;
|
134
|
-
t && (e(), o(((s = a.value) == null ? void 0 : s.isInternal) ?? !1));
|
135
|
-
});
|
136
|
-
})), u) : !r.value || !n.value ? (l || (l = Promise.all([
|
137
|
-
new Promise(async (o) => {
|
138
|
-
const e = c(r, (t) => {
|
139
|
-
t && (e(), o(!0));
|
140
|
-
});
|
141
|
-
}),
|
142
|
-
new Promise(async (o) => {
|
143
|
-
const e = c(n, (s) => {
|
144
|
-
s && (e(), o(!0));
|
145
|
-
}), t = await p();
|
146
|
-
await i(t == null ? void 0 : t.at(0));
|
147
|
-
})
|
148
|
-
]).then((o) => !0)), l) : !0;
|
149
|
-
});
|
150
|
-
const V = /* @__PURE__ */ b({
|
151
|
-
__name: "AppSidebar",
|
152
|
-
setup(m) {
|
153
|
-
const a = d(), n = S(), r = w(n.currentRoute.value.name);
|
154
|
-
c(n.currentRoute, () => {
|
155
|
-
r.value = n.currentRoute.value.name;
|
156
|
-
});
|
157
|
-
const p = y.map((e) => {
|
158
|
-
var t;
|
159
|
-
if ((t = e.meta) != null && t.sidebarDisplay)
|
160
|
-
return {
|
161
|
-
label: e.meta.sidebarDisplay,
|
162
|
-
value: e.name,
|
163
|
-
action: () => {
|
164
|
-
if (n.currentRoute.value.name !== e.name)
|
165
|
-
return n.push({ name: e.name });
|
166
|
-
}
|
167
|
-
};
|
168
|
-
}).filter((e) => !!e), i = f.map((e) => {
|
169
|
-
var t;
|
170
|
-
if ((t = e.meta) != null && t.sidebarDisplay)
|
171
|
-
return {
|
172
|
-
label: e.meta.sidebarDisplay,
|
173
|
-
value: e.name,
|
174
|
-
action: () => {
|
175
|
-
if (n.currentRoute.value.name !== e.name)
|
176
|
-
return n.push({ name: e.name });
|
177
|
-
}
|
178
|
-
};
|
179
|
-
}).filter((e) => !!e), o = h(() => {
|
180
|
-
var t;
|
181
|
-
const e = [...p];
|
182
|
-
return (t = a.sessionUser.value) != null && t.isInternal && (e.push({
|
183
|
-
label: "",
|
184
|
-
value: "divider",
|
185
|
-
disabled: !0
|
186
|
-
}), e.push({
|
187
|
-
label: "Admin Panel",
|
188
|
-
icon: "admin_panel_settings",
|
189
|
-
value: "divider",
|
190
|
-
disabled: !0
|
191
|
-
}), e.push(...i)), e;
|
192
|
-
});
|
193
|
-
return (e, t) => {
|
194
|
-
const s = v("FmCollapsibleTabs");
|
195
|
-
return _(), R(s, {
|
196
|
-
modelValue: r.value,
|
197
|
-
"onUpdate:modelValue": t[0] || (t[0] = (D) => r.value = D),
|
198
|
-
items: o.value,
|
199
|
-
class: "py-16 px-8"
|
200
|
-
}, null, 8, ["modelValue", "items"]);
|
201
|
-
};
|
202
|
-
}
|
203
|
-
}), F = /* @__PURE__ */ b({
|
204
|
-
__name: "App",
|
205
|
-
setup(m) {
|
206
|
-
const { state: a } = C(), n = d();
|
207
|
-
return T(() => {
|
208
|
-
a.isIframe && parent.postMessage({ event: "ready" }, "*");
|
209
|
-
}), g(() => {
|
210
|
-
n.registerSidebarComponent(V);
|
211
|
-
}), (r, p) => {
|
212
|
-
const i = v("RouterView");
|
213
|
-
return _(), R(i);
|
214
|
-
};
|
215
|
-
}
|
216
|
-
}), M = [
|
217
|
-
...f,
|
218
|
-
...y
|
219
|
-
];
|
1
|
+
import { h as p, f as s } from "./app-CkViCBtc.js";
|
220
2
|
export {
|
221
|
-
|
222
|
-
|
3
|
+
p as FmApp,
|
4
|
+
s as routers
|
223
5
|
};
|