@feedmepos/mf-payment 0.0.0-beta.18 → 0.0.0-beta.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/{PayoutAccount-CDe3m7kn.js → PayoutAccount-DEEuJq8a.js} +5 -5
  2. package/dist/{PayoutAccount-DGPPMIV2.js → PayoutAccount-Fg0fD2z1.js} +3 -3
  3. package/dist/{PayoutAccountSetting-uiFglxyj.js → PayoutAccountSetting-D6rCau39.js} +3 -3
  4. package/dist/{Settlement-DLFEvFiY.js → Settlement-DO3KQc7V.js} +3 -3
  5. package/dist/{Settlement-DuT2FxzJ.js → Settlement-KxjeLkyq.js} +3 -3
  6. package/dist/{SettlementTransactions-BQpqcrAK.js → SettlementTransactions-BHm0Xr73.js} +4 -4
  7. package/dist/{SettlementTransactions--BvqHEHi.js → SettlementTransactions-D8SewaiK.js} +4 -4
  8. package/dist/{Terminal-ilkedvT7.js → Terminal-CG3mIv6Z.js} +4 -4
  9. package/dist/{TerminalSetting-CEp_RasG.js → TerminalSetting-CIFHaoHX.js} +3 -3
  10. package/dist/{TerminalTransaction-CxkG6chg.js → TerminalTransaction-B2PFfPKP.js} +69 -67
  11. package/dist/{TerminalTransaction-DYlm_3zt.js → TerminalTransaction-CnfWv95d.js} +5 -5
  12. package/dist/{Transaction-CkRaGtkz.js → Transaction-CM_VKdEN.js} +4 -4
  13. package/dist/{Transaction-CHHwlo39.js → Transaction-D7ZuZ-IB.js} +4 -4
  14. package/dist/api/index.d.ts +5 -1
  15. package/dist/api/terminal-transaction/index.d.ts +1 -0
  16. package/dist/app.js +79 -76
  17. package/dist/assets-CLiVU4As.js +42 -0
  18. package/dist/components/CursorTable/index.vue.d.ts +2 -2
  19. package/dist/{index-Bboaan5m.js → index-ByCQqfan.js} +1 -1
  20. package/dist/{index-BBTjdV3w.js → index-CkIbCIHJ.js} +765 -765
  21. package/dist/{index-DIT7Btp7.js → index-CpIkc_Lq.js} +1 -1
  22. package/dist/index-DVSsAdF3.js +26 -0
  23. package/dist/{index-CCLnLskX.js → index-DvsSYfvP.js} +1 -1
  24. package/dist/{index-BuCL5h0R.js → index-eVOVYNBC.js} +1 -1
  25. 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
  26. package/dist/package.json +1 -1
  27. package/dist/{payout-account-D22v2HHW.js → payout-account-Bj0y4ywE.js} +193 -193
  28. package/dist/{transaction-CSqbF07L.js → transaction-C1MtaXOd.js} +13 -10
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/package.json +1 -1
  31. package/dist/assets-DB7pg43Y.js +0 -471
  32. package/dist/index-BVmZTFl8.js +0 -20
package/dist/app.js CHANGED
@@ -1,21 +1,21 @@
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 T, resolveComponent as y, openBlock as b, createBlock as h, onMounted as S, onBeforeMount as w } from "vue";
3
- import { useCoreStore as c } from "@feedmepos/mf-common";
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 u = [
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-CDe3m7kn.js")
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-uiFglxyj.js")
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-CkRaGtkz.js")
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-DLFEvFiY.js")
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--BvqHEHi.js")
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-ilkedvT7.js")
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-CEp_RasG.js")
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-DYlm_3zt.js")
62
+ component: () => import("./TerminalTransaction-CnfWv95d.js")
63
63
  }
64
- ], l = [
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-DGPPMIV2.js"),
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-CHHwlo39.js"),
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-DuT2FxzJ.js"),
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-BQpqcrAK.js")
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-CxkG6chg.js")
105
+ component: () => import("./TerminalTransaction-B2PFfPKP.js")
106
106
  }
107
- ], g = P("iframe", () => {
107
+ ], A = P("iframe", () => {
108
108
  const o = {
109
109
  isIframe: !1
110
- }, n = d(() => o);
111
- function a(m) {
112
- o.isIframe = m;
110
+ }, a = b(() => o);
111
+ function n(r) {
112
+ o.isIframe = r;
113
113
  }
114
114
  return {
115
- state: n,
116
- init: a
115
+ state: a,
116
+ init: n
117
117
  };
118
- }), A = R({
119
- history: D(),
120
- routes: [...l, ...u]
118
+ }), C = D({
119
+ history: I(),
120
+ routes: [...y, ...f]
121
121
  });
122
- A.beforeEach(async (o) => {
123
- const { sessionUser: n, currentRestaurant: a, readRestaurants: m, changeRestaurant: i } = c();
124
- if (o.name.startsWith("mf-payment-admin"))
125
- return n.value ? !0 : new Promise((r) => {
126
- const s = p(n, (e) => {
127
- var t;
128
- e && (s(), r((t = n.value) == null ? void 0 : t.isInternal));
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
- if (!a.value) {
132
- const r = await m();
133
- return await i(r == null ? void 0 : r.at(0)), new Promise((s) => {
134
- const e = p(a, (t) => {
135
- t && (e(), s(!0));
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 C = /* @__PURE__ */ f({
144
+ const B = /* @__PURE__ */ h({
142
145
  __name: "AppSidebar",
143
146
  setup(o) {
144
- const n = c(), a = I(), m = T(a.currentRoute.value.name);
145
- p(a.currentRoute, () => {
146
- m.value = a.currentRoute.value.name;
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 i = l.map((e) => {
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 (a.currentRoute.value.name !== e.name)
156
- return a.push({ name: e.name });
158
+ if (n.currentRoute.value.name !== e.name)
159
+ return n.push({ name: e.name });
157
160
  }
158
161
  };
159
- }).filter((e) => !!e), r = u.map((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 (a.currentRoute.value.name !== e.name)
167
- return a.push({ name: e.name });
169
+ if (n.currentRoute.value.name !== e.name)
170
+ return n.push({ name: e.name });
168
171
  }
169
172
  };
170
- }).filter((e) => !!e), s = d(() => {
173
+ }).filter((e) => !!e), u = b(() => {
171
174
  var t;
172
- const e = [...i];
173
- return (t = n.sessionUser.value) != null && t.isInternal && (e.push({
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(...r)), e;
185
+ }), e.push(...s)), e;
183
186
  });
184
187
  return (e, t) => {
185
- const _ = y("FmCollapsibleTabs");
186
- return b(), h(_, {
187
- modelValue: m.value,
188
- "onUpdate:modelValue": t[0] || (t[0] = (v) => m.value = v),
189
- items: s.value,
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
- }), F = /* @__PURE__ */ f({
197
+ }), M = /* @__PURE__ */ h({
195
198
  __name: "App",
196
199
  setup(o) {
197
- const { state: n } = g(), a = c();
198
- return S(() => {
199
- n.isIframe && parent.postMessage({ event: "ready" }, "*");
200
+ const { state: a } = A(), n = d();
201
+ return g(() => {
202
+ a.isIframe && parent.postMessage({ event: "ready" }, "*");
200
203
  }), w(() => {
201
- a.registerSidebarComponent(C);
202
- }), (m, i) => {
203
- const r = y("RouterView");
204
- return b(), h(r);
204
+ n.registerSidebarComponent(B);
205
+ }), (r, c) => {
206
+ const s = v("RouterView");
207
+ return _(), R(s);
205
208
  };
206
209
  }
207
- }), M = [
208
- ...u,
209
- ...l
210
+ }), U = [
211
+ ...f,
212
+ ...y
210
213
  ];
211
214
  export {
212
- F as FmApp,
213
- M as routers
215
+ M as FmApp,
216
+ U as routers
214
217
  };