@feedmepos/mf-payment 0.0.0-beta.11 → 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-uqw305f2.js → PayoutAccount-CIKS18wv.js} +37 -34
- package/dist/{PayoutAccount-h58IN5jz.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-Bqw7WbtT.js → SettlementTransactions-Bne5lD30.js} +4 -4
- package/dist/{SettlementTransactions-De_DYXFh.js → SettlementTransactions-RqT0OWUX.js} +100 -107
- package/dist/Terminal-CddS-zgz.js +318 -0
- package/dist/TerminalSetting-B2aM1gW-.js +176 -0
- package/dist/{TerminalTransaction-D_lILlqx.js → TerminalTransaction-XrqXeZZH.js} +18 -18
- package/dist/{Transaction-CiFh9jYU.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 +68 -62
- package/dist/{assets-DZoIWoOi.js → assets-nIQ0r4oP.js} +49 -49
- 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-D_lGAP8q.js → payout-account-C4iFFgWi.js} +262 -262
- 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-DWJ4TWTQ.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,59 +1,65 @@
|
|
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
|
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
|
-
path: "/
|
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-CIKS18wv.js")
|
13
13
|
},
|
14
14
|
{
|
15
|
-
path: "/
|
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
|
-
path: "/
|
21
|
+
path: "/admin/transaction",
|
22
22
|
name: "mf-payment-admin.transaction",
|
23
23
|
meta: {
|
24
24
|
sidebarDisplay: "Transactions"
|
25
25
|
},
|
26
|
-
component: () => import("./Transaction-
|
26
|
+
component: () => import("./Transaction-CpOhK6md.js")
|
27
27
|
},
|
28
28
|
{
|
29
|
-
path: "/
|
29
|
+
path: "/admin/settlement",
|
30
30
|
name: "mf-payment-admin.settlement",
|
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
|
-
path: "/
|
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
|
-
path: "/
|
43
|
+
path: "/admin/terminal",
|
44
44
|
name: "mf-payment-admin.terminal",
|
45
45
|
meta: {
|
46
46
|
sidebarDisplay: "Terminals"
|
47
47
|
},
|
48
|
-
component: () => import("./Terminal-
|
48
|
+
component: () => import("./Terminal-CddS-zgz.js")
|
49
49
|
},
|
50
50
|
{
|
51
|
-
path: "/
|
51
|
+
path: "/admin/terminal/:terminalId",
|
52
|
+
name: "mf-payment-admin.terminal-setting",
|
53
|
+
props: !0,
|
54
|
+
component: () => import("./TerminalSetting-B2aM1gW-.js")
|
55
|
+
},
|
56
|
+
{
|
57
|
+
path: "/admin/terminal-transaction",
|
52
58
|
name: "mf-payment-admin.terminal-transaction",
|
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
|
{
|
@@ -61,75 +67,75 @@ const u = [
|
|
61
67
|
redirect: { name: "mf-payment-payout-account" }
|
62
68
|
},
|
63
69
|
{
|
64
|
-
path: "/
|
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
|
}
|
70
76
|
},
|
71
77
|
{
|
72
|
-
path: "/
|
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
|
}
|
78
84
|
},
|
79
85
|
{
|
80
|
-
path: "/
|
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
|
}
|
86
92
|
},
|
87
93
|
{
|
88
|
-
path: "/
|
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
|
-
],
|
94
|
-
const
|
99
|
+
], P = w("iframe", () => {
|
100
|
+
const m = {
|
95
101
|
isIframe: !1
|
96
|
-
},
|
97
|
-
function
|
98
|
-
|
102
|
+
}, a = d(() => m);
|
103
|
+
function n(o) {
|
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 (
|
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 (!
|
118
|
-
const r = await
|
123
|
+
if (!n.value) {
|
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
|
-
setup(
|
130
|
-
const
|
131
|
-
p(
|
132
|
-
|
135
|
+
setup(m) {
|
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__ */ y({
|
|
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__ */ y({
|
|
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
|
@@ -168,25 +174,25 @@ const g = /* @__PURE__ */ y({
|
|
168
174
|
}), e.push(...r)), e;
|
169
175
|
});
|
170
176
|
return (e, t) => {
|
171
|
-
const _ =
|
177
|
+
const _ = y("FmCollapsibleTabs");
|
172
178
|
return b(), h(_, {
|
173
|
-
modelValue:
|
174
|
-
"onUpdate:modelValue": t[0] || (t[0] = (v) =>
|
179
|
+
modelValue: o.value,
|
180
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => o.value = v),
|
175
181
|
items: s.value,
|
176
182
|
class: "py-16 px-8"
|
177
183
|
}, null, 8, ["modelValue", "items"]);
|
178
184
|
};
|
179
185
|
}
|
180
|
-
}), F = /* @__PURE__ */
|
186
|
+
}), F = /* @__PURE__ */ f({
|
181
187
|
__name: "App",
|
182
|
-
setup(
|
183
|
-
const { state:
|
188
|
+
setup(m) {
|
189
|
+
const { state: a } = P(), n = c();
|
184
190
|
return T(() => {
|
185
|
-
|
186
|
-
}),
|
187
|
-
|
188
|
-
}), (
|
189
|
-
const r =
|
191
|
+
a.isIframe && parent.postMessage({ event: "ready" }, "*");
|
192
|
+
}), g(() => {
|
193
|
+
n.registerSidebarComponent(C);
|
194
|
+
}), (o, i) => {
|
195
|
+
const r = y("RouterView");
|
190
196
|
return b(), h(r);
|
191
197
|
};
|
192
198
|
}
|