@feedmepos/mf-payment 0.0.0-beta.9 → 1.0.0-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js +39 -0
  2. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  3. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  4. package/dist/Modal-DB8M9o1T.js +13 -0
  5. package/dist/PayoutAccount-BHRhEZ9h.js +613 -0
  6. package/dist/{PayoutAccount-DLhMMlw_.js → PayoutAccount-Bj5zvmoj.js} +38 -35
  7. package/dist/PayoutAccountSetting-kUQLeAcb.js +780 -0
  8. package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js +33 -0
  9. package/dist/Settlement-Crdfq22j.js +149 -0
  10. package/dist/Settlement-JHOJNkhd.js +194 -0
  11. package/dist/{SettlementTransactions-CoEzdtYT.js → SettlementTransactions-BxuLXUR-.js} +99 -105
  12. package/dist/{SettlementTransactions-Dl1H4jvh.js → SettlementTransactions-daWMAmtz.js} +117 -130
  13. package/dist/Terminal-gxGnjFGc.js +372 -0
  14. package/dist/TerminalSetting--ZAJJ_Hf.js +379 -0
  15. package/dist/TerminalTransaction---9nk_4q.js +249 -0
  16. package/dist/TerminalTransaction-B77YK3hF.js +425 -0
  17. package/dist/Transaction-8LlOLPeZ.js +404 -0
  18. package/dist/Transaction-DRQ_uZ30.js +241 -0
  19. package/dist/api/index.d.ts +14 -0
  20. package/dist/api/pagination.d.ts +20 -0
  21. package/dist/api/payment-gateway/index.d.ts +9 -0
  22. package/dist/api/settlement/index.d.ts +12 -13
  23. package/dist/api/terminal/index.d.ts +13 -1
  24. package/dist/api/terminal-transaction/index.d.ts +12 -1
  25. package/dist/api/transaction/index.d.ts +7 -2
  26. package/dist/app-DjzULXn3.js +6356 -0
  27. package/dist/app.js +3 -198
  28. package/dist/assets-NrCec-W0.js +45 -0
  29. package/dist/clipboard-4jh1WteU.js +10 -0
  30. package/dist/components/AsyncButton.vue.d.ts +21 -0
  31. package/dist/components/AutoCopyCell.vue.d.ts +6 -0
  32. package/dist/components/CursorTable/index.vue.d.ts +24 -5
  33. package/dist/components/RestaurantSelector.vue.d.ts +2 -0
  34. package/dist/components/RouteCell.vue.d.ts +8 -0
  35. package/dist/helpers/assets.d.ts +2 -0
  36. package/dist/{index-Bmka-1lQ.js → index-7KNaibcq.js} +1 -1
  37. package/dist/index-BWUtjGg7.js +47 -0
  38. package/dist/{index-CF56zGyu.js → index-BwcJZFsi.js} +1 -1
  39. package/dist/index-CWaKb7bG.js +56107 -0
  40. package/dist/index-CojhNtuG.js +127 -0
  41. package/dist/index-DbJpbpSs.js +52 -0
  42. package/dist/index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js +167 -0
  43. package/dist/model/transaction.d.ts +2 -1
  44. package/dist/package.json +5 -5
  45. package/dist/payout-account-CBT1rfSS.js +1805 -0
  46. package/dist/router/index.d.ts +1 -0
  47. package/dist/stores/payoutAccount.d.ts +4 -4
  48. package/dist/transaction-CQiT7Y_s.js +87 -0
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/validator-D5jtpt9A.js +2877 -0
  51. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  52. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +81 -0
  53. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  54. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  55. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  56. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  57. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  58. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  59. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +83 -0
  60. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  61. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +80 -9
  62. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +94 -0
  63. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +94 -0
  64. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +85 -0
  65. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +94 -0
  66. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +7 -0
  67. package/dist/views/admin/transaction/TransactionTable.vue.d.ts +6 -2
  68. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +7 -0
  69. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  70. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  71. package/dist/views/terminal-transaction/TerminalTransaction.vue.d.ts +2 -0
  72. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +9 -0
  73. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +9 -0
  74. package/package.json +5 -5
  75. package/dist/AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js +0 -42
  76. package/dist/PayoutAccount-xxSxqBTL.js +0 -3485
  77. package/dist/PayoutAccountSetting-CIeos0md.js +0 -425
  78. package/dist/Settlement-BVGACeme.js +0 -136
  79. package/dist/Settlement-Ce48KHrc.js +0 -132
  80. package/dist/Terminal-ByKV2Rof.js +0 -204
  81. package/dist/TerminalTransaction-RuSxBAxf.js +0 -240
  82. package/dist/Transaction-CYo-uLQi.js +0 -241
  83. package/dist/Transaction-Cjw9WwX8.js +0 -242
  84. package/dist/api/auth/index.d.ts +0 -7
  85. package/dist/assets-BuLGUMIx.js +0 -472
  86. package/dist/index-Coz5aeIO.js +0 -61
  87. package/dist/index-DCPNrUDq.js +0 -40075
  88. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
  89. package/dist/mascot-side-3VXskf9y.js +0 -4
  90. package/dist/payout-account-iAM7HPtG.js +0 -3317
  91. package/dist/transaction-vRrBf3FN.js +0 -64
package/dist/app.js CHANGED
@@ -1,200 +1,5 @@
1
- import { createRouter as R, createWebHistory as D, useRouter as I } from "vue-router";
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-DjzULXn3.js";
197
2
  export {
198
- F as FmApp,
199
- M as routers
3
+ p as FmApp,
4
+ s as routers
200
5
  };