@feedmepos/mf-payment 0.0.0-beta.9 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
- package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
- package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
- package/dist/Modal-DB8M9o1T.js +13 -0
- package/dist/PayoutAccount-DZaKHWcy.js +612 -0
- package/dist/{PayoutAccount-DLhMMlw_.js → PayoutAccount-Dc1CYQ0W.js} +38 -35
- package/dist/PayoutAccountSetting-BzmNuLFj.js +780 -0
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
- package/dist/Settlement-Bx3zAkIw.js +195 -0
- package/dist/Settlement-mwnO-iYH.js +150 -0
- package/dist/{SettlementTransactions-CoEzdtYT.js → SettlementTransactions-AaYyTH96.js} +99 -105
- package/dist/{SettlementTransactions-Dl1H4jvh.js → SettlementTransactions-D_SVuKyR.js} +117 -130
- package/dist/Terminal-68OQnhM3.js +372 -0
- package/dist/TerminalSetting-DEFim0xg.js +379 -0
- package/dist/TerminalTransaction-CQjNdffr.js +426 -0
- package/dist/TerminalTransaction-ClihmWOJ.js +250 -0
- package/dist/Transaction-68L7JzIk.js +242 -0
- package/dist/Transaction-a1VfiCP_.js +405 -0
- package/dist/api/index.d.ts +14 -0
- package/dist/api/pagination.d.ts +20 -0
- package/dist/api/payment-gateway/index.d.ts +9 -0
- package/dist/api/settlement/index.d.ts +12 -13
- package/dist/api/terminal/index.d.ts +13 -1
- package/dist/api/terminal-transaction/index.d.ts +12 -1
- package/dist/api/transaction/index.d.ts +7 -2
- package/dist/app-C9FRsUfb.js +6343 -0
- package/dist/app.js +3 -198
- package/dist/assets-Bji7O2YD.js +45 -0
- package/dist/clipboard-4jh1WteU.js +10 -0
- package/dist/components/AsyncButton.vue.d.ts +21 -0
- package/dist/components/AutoCopyCell.vue.d.ts +6 -0
- package/dist/components/CursorTable/index.vue.d.ts +24 -5
- package/dist/components/RestaurantSelector.vue.d.ts +2 -0
- package/dist/components/RouteCell.vue.d.ts +8 -0
- package/dist/helpers/assets.d.ts +2 -0
- package/dist/index-Bt_OgDYn.js +56107 -0
- package/dist/index-CLYePgWW.js +47 -0
- package/dist/{index-CF56zGyu.js → index-DBfZnaV1.js} +1 -1
- package/dist/index-DSuZG0l6.js +52 -0
- package/dist/{index-Bmka-1lQ.js → index-DjDGwRX8.js} +1 -1
- package/dist/index-_0TroOJr.js +127 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js +167 -0
- package/dist/model/transaction.d.ts +2 -1
- package/dist/package.json +4 -4
- package/dist/payout-account-BWcq7OJy.js +1805 -0
- package/dist/stores/payoutAccount.d.ts +4 -4
- package/dist/transaction-DqrhM5jB.js +87 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/validator-D5jtpt9A.js +2877 -0
- package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
- package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
- package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
- package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
- package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
- package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
- package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
- package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
- package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
- package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
- package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
- package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
- package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
- package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
- package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
- package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
- package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
- package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
- package/package.json +4 -4
- package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
- package/dist/PayoutAccount-xxSxqBTL.js +0 -3485
- package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
- package/dist/Settlement-BVGACeme.js +0 -136
- package/dist/Settlement-Ce48KHrc.js +0 -132
- package/dist/Terminal-ByKV2Rof.js +0 -204
- package/dist/TerminalTransaction-RuSxBAxf.js +0 -240
- package/dist/Transaction-CYo-uLQi.js +0 -241
- package/dist/Transaction-Cjw9WwX8.js +0 -242
- package/dist/api/auth/index.d.ts +0 -7
- package/dist/assets-BuLGUMIx.js +0 -472
- package/dist/index-Coz5aeIO.js +0 -61
- package/dist/index-DCPNrUDq.js +0 -40075
- package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
- package/dist/mascot-side-3VXskf9y.js +0 -4
- package/dist/payout-account-iAM7HPtG.js +0 -3317
- package/dist/transaction-vRrBf3FN.js +0 -64
package/dist/app.js
CHANGED
@@ -1,200 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import { computed as d, watch as p, defineComponent as y, ref as S, resolveComponent as f, openBlock as b, createBlock as h, onMounted as T, onBeforeMount as w } from "vue";
|
3
|
-
import { useCoreStore as c } from "@feedmepos/mf-common";
|
4
|
-
import { defineStore as P } from "pinia";
|
5
|
-
const u = [
|
6
|
-
{
|
7
|
-
path: "/payment/admin/payout-accounts",
|
8
|
-
name: "mf-payment-admin.payout-account",
|
9
|
-
meta: {
|
10
|
-
sidebarDisplay: "Payout Accounts"
|
11
|
-
},
|
12
|
-
component: () => import("./PayoutAccount-DLhMMlw_.js")
|
13
|
-
},
|
14
|
-
{
|
15
|
-
path: "/payment/admin/payout-accounts/:accountId",
|
16
|
-
name: "mf-payment-admin.payout-account-settings",
|
17
|
-
props: !0,
|
18
|
-
component: () => import("./PayoutAccountSetting-CIeos0md.js")
|
19
|
-
},
|
20
|
-
{
|
21
|
-
path: "/payment/admin/transaction",
|
22
|
-
name: "mf-payment-admin.transaction",
|
23
|
-
meta: {
|
24
|
-
sidebarDisplay: "Transactions"
|
25
|
-
},
|
26
|
-
component: () => import("./Transaction-Cjw9WwX8.js")
|
27
|
-
},
|
28
|
-
{
|
29
|
-
path: "/payment/admin/settlement",
|
30
|
-
name: "mf-payment-admin.settlement",
|
31
|
-
meta: {
|
32
|
-
sidebarDisplay: "Settlements"
|
33
|
-
},
|
34
|
-
component: () => import("./Settlement-Ce48KHrc.js")
|
35
|
-
},
|
36
|
-
{
|
37
|
-
path: "/payment/admin/settlement/:settlementId",
|
38
|
-
name: "mf-payment-admin.settlement-transaction",
|
39
|
-
props: !0,
|
40
|
-
component: () => import("./SettlementTransactions-Dl1H4jvh.js")
|
41
|
-
},
|
42
|
-
{
|
43
|
-
path: "/payment/admin/terminal",
|
44
|
-
name: "mf-payment-admin.terminal",
|
45
|
-
meta: {
|
46
|
-
sidebarDisplay: "Terminals"
|
47
|
-
},
|
48
|
-
component: () => import("./Terminal-ByKV2Rof.js")
|
49
|
-
},
|
50
|
-
{
|
51
|
-
path: "/payment/admin/terminal-transaction",
|
52
|
-
name: "mf-payment-admin.terminal-transaction",
|
53
|
-
meta: {
|
54
|
-
sidebarDisplay: "Terminal Transactions"
|
55
|
-
},
|
56
|
-
component: () => import("./TerminalTransaction-RuSxBAxf.js")
|
57
|
-
}
|
58
|
-
], l = [
|
59
|
-
{
|
60
|
-
path: "",
|
61
|
-
redirect: { name: "mf-payment-payout-account" }
|
62
|
-
},
|
63
|
-
{
|
64
|
-
path: "/payment/payout-account",
|
65
|
-
name: "mf-payment-payout-account",
|
66
|
-
component: () => import("./PayoutAccount-xxSxqBTL.js"),
|
67
|
-
meta: {
|
68
|
-
sidebarDisplay: "Payout Accounts"
|
69
|
-
}
|
70
|
-
},
|
71
|
-
{
|
72
|
-
path: "/payment/transaction",
|
73
|
-
name: "mf-payment-transaction",
|
74
|
-
component: () => import("./Transaction-CYo-uLQi.js"),
|
75
|
-
meta: {
|
76
|
-
sidebarDisplay: "Transactions"
|
77
|
-
}
|
78
|
-
},
|
79
|
-
{
|
80
|
-
path: "/payment/settlement",
|
81
|
-
name: "mf-payment-settlement",
|
82
|
-
component: () => import("./Settlement-BVGACeme.js"),
|
83
|
-
meta: {
|
84
|
-
sidebarDisplay: "Settlements"
|
85
|
-
}
|
86
|
-
},
|
87
|
-
{
|
88
|
-
path: "/payment/settlement/:settlementId",
|
89
|
-
name: "mf-payment-settlement-transaction",
|
90
|
-
props: !0,
|
91
|
-
component: () => import("./SettlementTransactions-CoEzdtYT.js")
|
92
|
-
}
|
93
|
-
], A = P("iframe", () => {
|
94
|
-
const o = {
|
95
|
-
isIframe: !1
|
96
|
-
}, n = d(() => o);
|
97
|
-
function a(m) {
|
98
|
-
o.isIframe = m;
|
99
|
-
}
|
100
|
-
return {
|
101
|
-
state: n,
|
102
|
-
init: a
|
103
|
-
};
|
104
|
-
}), C = R({
|
105
|
-
history: D(),
|
106
|
-
routes: [...l, ...u]
|
107
|
-
});
|
108
|
-
C.beforeEach(async (o) => {
|
109
|
-
const { sessionUser: n, currentRestaurant: a, readRestaurants: m, changeRestaurant: i } = c();
|
110
|
-
if (o.name.startsWith("admin"))
|
111
|
-
return n.value ? !0 : new Promise((r) => {
|
112
|
-
const s = p(n, (e) => {
|
113
|
-
var t;
|
114
|
-
e && (s(), r((t = n.value) == null ? void 0 : t.isInternal));
|
115
|
-
});
|
116
|
-
});
|
117
|
-
if (!a.value) {
|
118
|
-
const r = await m();
|
119
|
-
return await i(r == null ? void 0 : r.at(0)), new Promise((s) => {
|
120
|
-
const e = p(a, (t) => {
|
121
|
-
t && (e(), s(!0));
|
122
|
-
});
|
123
|
-
});
|
124
|
-
}
|
125
|
-
return !0;
|
126
|
-
});
|
127
|
-
const g = /* @__PURE__ */ y({
|
128
|
-
__name: "AppSidebar",
|
129
|
-
setup(o) {
|
130
|
-
const n = c(), a = I(), m = S(a.currentRoute.value.name);
|
131
|
-
p(a.currentRoute, () => {
|
132
|
-
m.value = a.currentRoute.value.name;
|
133
|
-
});
|
134
|
-
const i = l.map((e) => {
|
135
|
-
var t;
|
136
|
-
if ((t = e.meta) != null && t.sidebarDisplay)
|
137
|
-
return {
|
138
|
-
label: e.meta.sidebarDisplay,
|
139
|
-
value: e.name,
|
140
|
-
action: () => {
|
141
|
-
if (a.currentRoute.value.name !== e.name)
|
142
|
-
return a.push({ name: e.name });
|
143
|
-
}
|
144
|
-
};
|
145
|
-
}).filter((e) => !!e), r = u.map((e) => {
|
146
|
-
var t;
|
147
|
-
if ((t = e.meta) != null && t.sidebarDisplay)
|
148
|
-
return {
|
149
|
-
label: e.meta.sidebarDisplay,
|
150
|
-
value: e.name,
|
151
|
-
action: () => {
|
152
|
-
if (a.currentRoute.value.name !== e.name)
|
153
|
-
return a.push({ name: e.name });
|
154
|
-
}
|
155
|
-
};
|
156
|
-
}).filter((e) => !!e), s = d(() => {
|
157
|
-
var t;
|
158
|
-
const e = [...i];
|
159
|
-
return (t = n.sessionUser.value) != null && t.isInternal && (e.push({
|
160
|
-
label: "",
|
161
|
-
value: "divider",
|
162
|
-
disabled: !0
|
163
|
-
}), e.push({
|
164
|
-
label: "Admin Panel",
|
165
|
-
icon: "admin_panel_settings",
|
166
|
-
value: "divider",
|
167
|
-
disabled: !0
|
168
|
-
}), e.push(...r)), e;
|
169
|
-
});
|
170
|
-
return (e, t) => {
|
171
|
-
const _ = f("FmCollapsibleTabs");
|
172
|
-
return b(), h(_, {
|
173
|
-
modelValue: m.value,
|
174
|
-
"onUpdate:modelValue": t[0] || (t[0] = (v) => m.value = v),
|
175
|
-
items: s.value,
|
176
|
-
class: "py-16 px-8"
|
177
|
-
}, null, 8, ["modelValue", "items"]);
|
178
|
-
};
|
179
|
-
}
|
180
|
-
}), F = /* @__PURE__ */ y({
|
181
|
-
__name: "App",
|
182
|
-
setup(o) {
|
183
|
-
const { state: n } = A(), a = c();
|
184
|
-
return T(() => {
|
185
|
-
n.isIframe && parent.postMessage({ event: "ready" }, "*");
|
186
|
-
}), w(() => {
|
187
|
-
a.registerSidebarComponent(g);
|
188
|
-
}), (m, i) => {
|
189
|
-
const r = f("RouterView");
|
190
|
-
return b(), h(r);
|
191
|
-
};
|
192
|
-
}
|
193
|
-
}), M = [
|
194
|
-
...u,
|
195
|
-
...l
|
196
|
-
];
|
1
|
+
import { h as p, f as s } from "./app-C9FRsUfb.js";
|
197
2
|
export {
|
198
|
-
|
199
|
-
|
3
|
+
p as FmApp,
|
4
|
+
s as routers
|
200
5
|
};
|