@feedmepos/mf-payment 0.0.0-beta.18 → 0.0.0-beta.21
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{PayoutAccount-CDe3m7kn.js → PayoutAccount-DEEuJq8a.js} +5 -5
- package/dist/{PayoutAccount-DGPPMIV2.js → PayoutAccount-Fg0fD2z1.js} +3 -3
- package/dist/{PayoutAccountSetting-uiFglxyj.js → PayoutAccountSetting-D6rCau39.js} +3 -3
- package/dist/{Settlement-DLFEvFiY.js → Settlement-DO3KQc7V.js} +3 -3
- package/dist/{Settlement-DuT2FxzJ.js → Settlement-KxjeLkyq.js} +3 -3
- package/dist/{SettlementTransactions-BQpqcrAK.js → SettlementTransactions-BHm0Xr73.js} +4 -4
- package/dist/{SettlementTransactions--BvqHEHi.js → SettlementTransactions-D8SewaiK.js} +4 -4
- package/dist/{Terminal-ilkedvT7.js → Terminal-CG3mIv6Z.js} +4 -4
- package/dist/{TerminalSetting-CEp_RasG.js → TerminalSetting-CIFHaoHX.js} +3 -3
- package/dist/{TerminalTransaction-CxkG6chg.js → TerminalTransaction-B2PFfPKP.js} +69 -67
- package/dist/{TerminalTransaction-DYlm_3zt.js → TerminalTransaction-CnfWv95d.js} +5 -5
- package/dist/{Transaction-CkRaGtkz.js → Transaction-CM_VKdEN.js} +4 -4
- package/dist/{Transaction-CHHwlo39.js → Transaction-D7ZuZ-IB.js} +4 -4
- package/dist/api/index.d.ts +5 -1
- package/dist/api/terminal-transaction/index.d.ts +1 -0
- package/dist/app.js +79 -76
- package/dist/assets-CLiVU4As.js +42 -0
- package/dist/components/CursorTable/index.vue.d.ts +2 -2
- package/dist/{index-Bboaan5m.js → index-ByCQqfan.js} +1 -1
- package/dist/{index-BBTjdV3w.js → index-CkIbCIHJ.js} +765 -765
- package/dist/{index-DIT7Btp7.js → index-CpIkc_Lq.js} +1 -1
- package/dist/index-DVSsAdF3.js +26 -0
- package/dist/{index-CCLnLskX.js → index-DvsSYfvP.js} +1 -1
- package/dist/{index-BuCL5h0R.js → index-eVOVYNBC.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-CcT6hjAl.js → index.vue_vue_type_script_setup_true_lang-sNgZ-dwX.js} +1 -1
- package/dist/package.json +1 -1
- package/dist/{payout-account-D22v2HHW.js → payout-account-Bj0y4ywE.js} +193 -193
- package/dist/{transaction-CSqbF07L.js → transaction-C1MtaXOd.js} +13 -10
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/assets-DB7pg43Y.js +0 -471
- package/dist/index-BVmZTFl8.js +0 -20
package/dist/app.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
import { createRouter as
|
2
|
-
import { computed as
|
3
|
-
import { useCoreStore as
|
1
|
+
import { createRouter as D, createWebHistory as I, useRouter as T } from "vue-router";
|
2
|
+
import { computed as b, watch as l, defineComponent as h, ref as S, resolveComponent as v, openBlock as _, createBlock as R, onMounted as g, onBeforeMount as w } from "vue";
|
3
|
+
import { useCoreStore as d } from "@feedmepos/mf-common";
|
4
4
|
import { defineStore as P } from "pinia";
|
5
|
-
const
|
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-DEEuJq8a.js")
|
13
13
|
},
|
14
14
|
{
|
15
15
|
path: "/admin/payout-accounts/:accountId",
|
16
16
|
name: "mf-payment-admin.payout-account-settings",
|
17
17
|
props: !0,
|
18
|
-
component: () => import("./PayoutAccountSetting-
|
18
|
+
component: () => import("./PayoutAccountSetting-D6rCau39.js")
|
19
19
|
},
|
20
20
|
{
|
21
21
|
path: "/admin/transaction",
|
@@ -23,7 +23,7 @@ const u = [
|
|
23
23
|
meta: {
|
24
24
|
sidebarDisplay: "Transactions"
|
25
25
|
},
|
26
|
-
component: () => import("./Transaction-
|
26
|
+
component: () => import("./Transaction-CM_VKdEN.js")
|
27
27
|
},
|
28
28
|
{
|
29
29
|
path: "/admin/settlement",
|
@@ -31,13 +31,13 @@ const u = [
|
|
31
31
|
meta: {
|
32
32
|
sidebarDisplay: "Settlements"
|
33
33
|
},
|
34
|
-
component: () => import("./Settlement-
|
34
|
+
component: () => import("./Settlement-DO3KQc7V.js")
|
35
35
|
},
|
36
36
|
{
|
37
37
|
path: "/admin/settlement/:settlementId",
|
38
38
|
name: "mf-payment-admin.settlement-transaction",
|
39
39
|
props: !0,
|
40
|
-
component: () => import("./SettlementTransactions
|
40
|
+
component: () => import("./SettlementTransactions-D8SewaiK.js")
|
41
41
|
},
|
42
42
|
{
|
43
43
|
path: "/admin/terminal",
|
@@ -45,13 +45,13 @@ const u = [
|
|
45
45
|
meta: {
|
46
46
|
sidebarDisplay: "Terminals"
|
47
47
|
},
|
48
|
-
component: () => import("./Terminal-
|
48
|
+
component: () => import("./Terminal-CG3mIv6Z.js")
|
49
49
|
},
|
50
50
|
{
|
51
51
|
path: "/admin/terminal/:terminalId",
|
52
52
|
name: "mf-payment-admin.terminal-setting",
|
53
53
|
props: !0,
|
54
|
-
component: () => import("./TerminalSetting-
|
54
|
+
component: () => import("./TerminalSetting-CIFHaoHX.js")
|
55
55
|
},
|
56
56
|
{
|
57
57
|
path: "/admin/terminal-transaction",
|
@@ -59,9 +59,9 @@ const u = [
|
|
59
59
|
meta: {
|
60
60
|
sidebarDisplay: "Terminal Transactions"
|
61
61
|
},
|
62
|
-
component: () => import("./TerminalTransaction-
|
62
|
+
component: () => import("./TerminalTransaction-CnfWv95d.js")
|
63
63
|
}
|
64
|
-
],
|
64
|
+
], y = [
|
65
65
|
{
|
66
66
|
path: "",
|
67
67
|
redirect: { name: "mf-payment-payout-account" }
|
@@ -69,7 +69,7 @@ const u = [
|
|
69
69
|
{
|
70
70
|
path: "/payout-account",
|
71
71
|
name: "mf-payment-payout-account",
|
72
|
-
component: () => import("./PayoutAccount-
|
72
|
+
component: () => import("./PayoutAccount-Fg0fD2z1.js"),
|
73
73
|
meta: {
|
74
74
|
sidebarDisplay: "Payout Accounts"
|
75
75
|
}
|
@@ -77,7 +77,7 @@ const u = [
|
|
77
77
|
{
|
78
78
|
path: "/transaction",
|
79
79
|
name: "mf-payment-transaction",
|
80
|
-
component: () => import("./Transaction-
|
80
|
+
component: () => import("./Transaction-D7ZuZ-IB.js"),
|
81
81
|
meta: {
|
82
82
|
sidebarDisplay: "Transactions"
|
83
83
|
}
|
@@ -85,7 +85,7 @@ const u = [
|
|
85
85
|
{
|
86
86
|
path: "/settlement",
|
87
87
|
name: "mf-payment-settlement",
|
88
|
-
component: () => import("./Settlement-
|
88
|
+
component: () => import("./Settlement-KxjeLkyq.js"),
|
89
89
|
meta: {
|
90
90
|
sidebarDisplay: "Settlements"
|
91
91
|
}
|
@@ -94,7 +94,7 @@ const u = [
|
|
94
94
|
path: "/settlement/:settlementId",
|
95
95
|
name: "mf-payment-settlement-transaction",
|
96
96
|
props: !0,
|
97
|
-
component: () => import("./SettlementTransactions-
|
97
|
+
component: () => import("./SettlementTransactions-BHm0Xr73.js")
|
98
98
|
},
|
99
99
|
{
|
100
100
|
path: "/terminal-tranasction",
|
@@ -102,75 +102,78 @@ const u = [
|
|
102
102
|
meta: {
|
103
103
|
sidebarDisplay: "Terminal Transactions"
|
104
104
|
},
|
105
|
-
component: () => import("./TerminalTransaction-
|
105
|
+
component: () => import("./TerminalTransaction-B2PFfPKP.js")
|
106
106
|
}
|
107
|
-
],
|
107
|
+
], A = P("iframe", () => {
|
108
108
|
const o = {
|
109
109
|
isIframe: !1
|
110
|
-
},
|
111
|
-
function
|
112
|
-
o.isIframe =
|
110
|
+
}, a = b(() => o);
|
111
|
+
function n(r) {
|
112
|
+
o.isIframe = r;
|
113
113
|
}
|
114
114
|
return {
|
115
|
-
state:
|
116
|
-
init:
|
115
|
+
state: a,
|
116
|
+
init: n
|
117
117
|
};
|
118
|
-
}),
|
119
|
-
history:
|
120
|
-
routes: [...
|
118
|
+
}), C = D({
|
119
|
+
history: I(),
|
120
|
+
routes: [...y, ...f]
|
121
121
|
});
|
122
|
-
|
123
|
-
const {
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
122
|
+
C.beforeEach(async (o) => {
|
123
|
+
const {
|
124
|
+
sessionUser: a,
|
125
|
+
currentRestaurant: n,
|
126
|
+
businesses: r,
|
127
|
+
changeBusiness: c,
|
128
|
+
currentBusiness: s,
|
129
|
+
readRestaurants: u,
|
130
|
+
changeRestaurant: e
|
131
|
+
} = d();
|
132
|
+
return o.name.startsWith("mf-payment-admin") ? a.value ? !0 : new Promise((t) => {
|
133
|
+
const i = l(a, (m) => {
|
134
|
+
var p;
|
135
|
+
m && (i(), t((p = a.value) == null ? void 0 : p.isInternal));
|
130
136
|
});
|
131
|
-
|
132
|
-
const
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
});
|
138
|
-
}
|
139
|
-
return !0;
|
137
|
+
}) : !s.value || !n.value ? new Promise(async (t) => {
|
138
|
+
const i = l(n, (p) => {
|
139
|
+
p && (i(), t(!0));
|
140
|
+
}), m = await u();
|
141
|
+
await e(m == null ? void 0 : m.at(0));
|
142
|
+
}) : !0;
|
140
143
|
});
|
141
|
-
const
|
144
|
+
const B = /* @__PURE__ */ h({
|
142
145
|
__name: "AppSidebar",
|
143
146
|
setup(o) {
|
144
|
-
const
|
145
|
-
|
146
|
-
|
147
|
+
const a = d(), n = T(), r = S(n.currentRoute.value.name);
|
148
|
+
l(n.currentRoute, () => {
|
149
|
+
r.value = n.currentRoute.value.name;
|
147
150
|
});
|
148
|
-
const
|
151
|
+
const c = y.map((e) => {
|
149
152
|
var t;
|
150
153
|
if ((t = e.meta) != null && t.sidebarDisplay)
|
151
154
|
return {
|
152
155
|
label: e.meta.sidebarDisplay,
|
153
156
|
value: e.name,
|
154
157
|
action: () => {
|
155
|
-
if (
|
156
|
-
return
|
158
|
+
if (n.currentRoute.value.name !== e.name)
|
159
|
+
return n.push({ name: e.name });
|
157
160
|
}
|
158
161
|
};
|
159
|
-
}).filter((e) => !!e),
|
162
|
+
}).filter((e) => !!e), s = f.map((e) => {
|
160
163
|
var t;
|
161
164
|
if ((t = e.meta) != null && t.sidebarDisplay)
|
162
165
|
return {
|
163
166
|
label: e.meta.sidebarDisplay,
|
164
167
|
value: e.name,
|
165
168
|
action: () => {
|
166
|
-
if (
|
167
|
-
return
|
169
|
+
if (n.currentRoute.value.name !== e.name)
|
170
|
+
return n.push({ name: e.name });
|
168
171
|
}
|
169
172
|
};
|
170
|
-
}).filter((e) => !!e),
|
173
|
+
}).filter((e) => !!e), u = b(() => {
|
171
174
|
var t;
|
172
|
-
const e = [...
|
173
|
-
return (t =
|
175
|
+
const e = [...c];
|
176
|
+
return (t = a.sessionUser.value) != null && t.isInternal && (e.push({
|
174
177
|
label: "",
|
175
178
|
value: "divider",
|
176
179
|
disabled: !0
|
@@ -179,36 +182,36 @@ const C = /* @__PURE__ */ f({
|
|
179
182
|
icon: "admin_panel_settings",
|
180
183
|
value: "divider",
|
181
184
|
disabled: !0
|
182
|
-
}), e.push(...
|
185
|
+
}), e.push(...s)), e;
|
183
186
|
});
|
184
187
|
return (e, t) => {
|
185
|
-
const
|
186
|
-
return
|
187
|
-
modelValue:
|
188
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
189
|
-
items:
|
188
|
+
const i = v("FmCollapsibleTabs");
|
189
|
+
return _(), R(i, {
|
190
|
+
modelValue: r.value,
|
191
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => r.value = m),
|
192
|
+
items: u.value,
|
190
193
|
class: "py-16 px-8"
|
191
194
|
}, null, 8, ["modelValue", "items"]);
|
192
195
|
};
|
193
196
|
}
|
194
|
-
}),
|
197
|
+
}), M = /* @__PURE__ */ h({
|
195
198
|
__name: "App",
|
196
199
|
setup(o) {
|
197
|
-
const { state:
|
198
|
-
return
|
199
|
-
|
200
|
+
const { state: a } = A(), n = d();
|
201
|
+
return g(() => {
|
202
|
+
a.isIframe && parent.postMessage({ event: "ready" }, "*");
|
200
203
|
}), w(() => {
|
201
|
-
|
202
|
-
}), (
|
203
|
-
const
|
204
|
-
return
|
204
|
+
n.registerSidebarComponent(B);
|
205
|
+
}), (r, c) => {
|
206
|
+
const s = v("RouterView");
|
207
|
+
return _(), R(s);
|
205
208
|
};
|
206
209
|
}
|
207
|
-
}),
|
208
|
-
...
|
209
|
-
...
|
210
|
+
}), U = [
|
211
|
+
...f,
|
212
|
+
...y
|
210
213
|
];
|
211
214
|
export {
|
212
|
-
|
213
|
-
|
215
|
+
M as FmApp,
|
216
|
+
U as routers
|
214
217
|
};
|