@feedmepos/mf-payment 0.0.0-beta.12 → 0.0.0-beta.13
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-CIKS18wv.js} +37 -34
- package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-Daxv1Djz.js} +288 -3160
- package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
- package/dist/Settlement-C7X_gzIk.js +142 -0
- package/dist/Settlement-DxQ9WNy-.js +146 -0
- package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-Bne5lD30.js} +4 -4
- package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-RqT0OWUX.js} +100 -107
- package/dist/Terminal-CddS-zgz.js +318 -0
- package/dist/TerminalSetting-B2aM1gW-.js +176 -0
- package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-XrqXeZZH.js} +18 -18
- package/dist/{Transaction-CaOxsIQH.js → Transaction-B16xeZ39.js} +80 -74
- package/dist/Transaction-CpOhK6md.js +249 -0
- package/dist/api/index.d.ts +7 -0
- package/dist/api/settlement/index.d.ts +7 -13
- package/dist/api/terminal/index.d.ts +8 -1
- package/dist/api/transaction/index.d.ts +6 -2
- package/dist/app.js +46 -40
- package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/CursorTable/index.vue.d.ts +16 -5
- package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
- package/dist/index-CxYMbN69.js +37 -0
- package/dist/index-DflgpHga.js +55560 -0
- package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
- package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
- package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
- package/dist/package.json +3 -3
- package/dist/{payout-account-OR4juI9N.js → payout-account-C4iFFgWi.js} +260 -260
- package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
- package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
- package/package.json +3 -3
- package/dist/Settlement-BVGACeme.js +0 -136
- package/dist/Settlement-Ce48KHrc.js +0 -132
- package/dist/Terminal-ByKV2Rof.js +0 -204
- package/dist/Transaction-C-X11abA.js +0 -242
- package/dist/index-DCPNrUDq.js +0 -40075
- package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
package/dist/app.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { createRouter as R, createWebHistory as D, useRouter as I } from "vue-router";
|
2
|
-
import { computed as d, watch as p, defineComponent as f, ref as S, resolveComponent as y, openBlock as b, createBlock as h, onMounted as T, onBeforeMount as
|
2
|
+
import { computed as d, watch as p, defineComponent as f, ref as S, resolveComponent as y, openBlock as b, createBlock as h, onMounted as T, onBeforeMount as g } from "vue";
|
3
3
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
4
|
-
import { defineStore as
|
4
|
+
import { defineStore as w } from "pinia";
|
5
5
|
const u = [
|
6
6
|
{
|
7
7
|
path: "/admin/payout-accounts",
|
@@ -9,13 +9,13 @@ const u = [
|
|
9
9
|
meta: {
|
10
10
|
sidebarDisplay: "Payout Accounts"
|
11
11
|
},
|
12
|
-
component: () => import("./PayoutAccount-
|
12
|
+
component: () => import("./PayoutAccount-CIKS18wv.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-CnjAKH1q.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-CpOhK6md.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-C7X_gzIk.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-RqT0OWUX.js")
|
41
41
|
},
|
42
42
|
{
|
43
43
|
path: "/admin/terminal",
|
@@ -45,7 +45,13 @@ const u = [
|
|
45
45
|
meta: {
|
46
46
|
sidebarDisplay: "Terminals"
|
47
47
|
},
|
48
|
-
component: () => import("./Terminal-
|
48
|
+
component: () => import("./Terminal-CddS-zgz.js")
|
49
|
+
},
|
50
|
+
{
|
51
|
+
path: "/admin/terminal/:terminalId",
|
52
|
+
name: "mf-payment-admin.terminal-setting",
|
53
|
+
props: !0,
|
54
|
+
component: () => import("./TerminalSetting-B2aM1gW-.js")
|
49
55
|
},
|
50
56
|
{
|
51
57
|
path: "/admin/terminal-transaction",
|
@@ -53,7 +59,7 @@ const u = [
|
|
53
59
|
meta: {
|
54
60
|
sidebarDisplay: "Terminal Transactions"
|
55
61
|
},
|
56
|
-
component: () => import("./TerminalTransaction-
|
62
|
+
component: () => import("./TerminalTransaction-XrqXeZZH.js")
|
57
63
|
}
|
58
64
|
], l = [
|
59
65
|
{
|
@@ -63,7 +69,7 @@ const u = [
|
|
63
69
|
{
|
64
70
|
path: "/payout-account",
|
65
71
|
name: "mf-payment-payout-account",
|
66
|
-
component: () => import("./PayoutAccount-
|
72
|
+
component: () => import("./PayoutAccount-Daxv1Djz.js"),
|
67
73
|
meta: {
|
68
74
|
sidebarDisplay: "Payout Accounts"
|
69
75
|
}
|
@@ -71,7 +77,7 @@ const u = [
|
|
71
77
|
{
|
72
78
|
path: "/transaction",
|
73
79
|
name: "mf-payment-transaction",
|
74
|
-
component: () => import("./Transaction-
|
80
|
+
component: () => import("./Transaction-B16xeZ39.js"),
|
75
81
|
meta: {
|
76
82
|
sidebarDisplay: "Transactions"
|
77
83
|
}
|
@@ -79,7 +85,7 @@ const u = [
|
|
79
85
|
{
|
80
86
|
path: "/settlement",
|
81
87
|
name: "mf-payment-settlement",
|
82
|
-
component: () => import("./Settlement-
|
88
|
+
component: () => import("./Settlement-DxQ9WNy-.js"),
|
83
89
|
meta: {
|
84
90
|
sidebarDisplay: "Settlements"
|
85
91
|
}
|
@@ -88,48 +94,48 @@ const u = [
|
|
88
94
|
path: "/settlement/:settlementId",
|
89
95
|
name: "mf-payment-settlement-transaction",
|
90
96
|
props: !0,
|
91
|
-
component: () => import("./SettlementTransactions-
|
97
|
+
component: () => import("./SettlementTransactions-Bne5lD30.js")
|
92
98
|
}
|
93
|
-
],
|
99
|
+
], P = w("iframe", () => {
|
94
100
|
const m = {
|
95
101
|
isIframe: !1
|
96
|
-
},
|
97
|
-
function
|
102
|
+
}, a = d(() => m);
|
103
|
+
function n(o) {
|
98
104
|
m.isIframe = o;
|
99
105
|
}
|
100
106
|
return {
|
101
|
-
state:
|
102
|
-
init:
|
107
|
+
state: a,
|
108
|
+
init: n
|
103
109
|
};
|
104
|
-
}),
|
110
|
+
}), A = R({
|
105
111
|
history: D(),
|
106
112
|
routes: [...l, ...u]
|
107
113
|
});
|
108
|
-
|
109
|
-
const { sessionUser:
|
110
|
-
if (m.name.startsWith("admin"))
|
111
|
-
return
|
112
|
-
const s = p(
|
114
|
+
A.beforeEach(async (m) => {
|
115
|
+
const { sessionUser: a, currentRestaurant: n, readRestaurants: o, changeRestaurant: i } = c();
|
116
|
+
if (console.log(m), m.name.startsWith("mf-payment-admin"))
|
117
|
+
return a.value ? !0 : new Promise((r) => {
|
118
|
+
const s = p(a, (e) => {
|
113
119
|
var t;
|
114
|
-
e && (s(), r((t =
|
120
|
+
e && (s(), r((t = a.value) == null ? void 0 : t.isInternal));
|
115
121
|
});
|
116
122
|
});
|
117
|
-
if (!
|
123
|
+
if (!n.value) {
|
118
124
|
const r = await o();
|
119
125
|
return await i(r == null ? void 0 : r.at(0)), new Promise((s) => {
|
120
|
-
const e = p(
|
126
|
+
const e = p(n, (t) => {
|
121
127
|
t && (e(), s(!0));
|
122
128
|
});
|
123
129
|
});
|
124
130
|
}
|
125
131
|
return !0;
|
126
132
|
});
|
127
|
-
const
|
133
|
+
const C = /* @__PURE__ */ f({
|
128
134
|
__name: "AppSidebar",
|
129
135
|
setup(m) {
|
130
|
-
const
|
131
|
-
p(
|
132
|
-
o.value =
|
136
|
+
const a = c(), n = I(), o = S(n.currentRoute.value.name);
|
137
|
+
p(n.currentRoute, () => {
|
138
|
+
o.value = n.currentRoute.value.name;
|
133
139
|
});
|
134
140
|
const i = l.map((e) => {
|
135
141
|
var t;
|
@@ -138,8 +144,8 @@ const g = /* @__PURE__ */ f({
|
|
138
144
|
label: e.meta.sidebarDisplay,
|
139
145
|
value: e.name,
|
140
146
|
action: () => {
|
141
|
-
if (
|
142
|
-
return
|
147
|
+
if (n.currentRoute.value.name !== e.name)
|
148
|
+
return n.push({ name: e.name });
|
143
149
|
}
|
144
150
|
};
|
145
151
|
}).filter((e) => !!e), r = u.map((e) => {
|
@@ -149,14 +155,14 @@ const g = /* @__PURE__ */ f({
|
|
149
155
|
label: e.meta.sidebarDisplay,
|
150
156
|
value: e.name,
|
151
157
|
action: () => {
|
152
|
-
if (
|
153
|
-
return
|
158
|
+
if (n.currentRoute.value.name !== e.name)
|
159
|
+
return n.push({ name: e.name });
|
154
160
|
}
|
155
161
|
};
|
156
162
|
}).filter((e) => !!e), s = d(() => {
|
157
163
|
var t;
|
158
164
|
const e = [...i];
|
159
|
-
return (t =
|
165
|
+
return (t = a.sessionUser.value) != null && t.isInternal && (e.push({
|
160
166
|
label: "",
|
161
167
|
value: "divider",
|
162
168
|
disabled: !0
|
@@ -180,11 +186,11 @@ const g = /* @__PURE__ */ f({
|
|
180
186
|
}), F = /* @__PURE__ */ f({
|
181
187
|
__name: "App",
|
182
188
|
setup(m) {
|
183
|
-
const { state:
|
189
|
+
const { state: a } = P(), n = c();
|
184
190
|
return T(() => {
|
185
|
-
|
186
|
-
}),
|
187
|
-
|
191
|
+
a.isIframe && parent.postMessage({ event: "ready" }, "*");
|
192
|
+
}), g(() => {
|
193
|
+
n.registerSidebarComponent(C);
|
188
194
|
}), (o, i) => {
|
189
195
|
const r = y("RouterView");
|
190
196
|
return b(), h(r);
|