@feedmepos/mf-payment 0.0.0-beta.10 → 0.0.0-beta.12

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.
@@ -2,7 +2,7 @@ import { defineComponent as b, resolveComponent as m, openBlock as g, createBloc
2
2
  import { u as S } from "./index-Bmka-1lQ.js";
3
3
  import { _ as O } from "./index-DCPNrUDq.js";
4
4
  import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
5
- import { P as V } from "./payout-account-3A-mTs1E.js";
5
+ import { P as V } from "./payout-account-OR4juI9N.js";
6
6
  import { p as $ } from "./index-CF56zGyu.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { _ as D } from "./index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js";
@@ -2,7 +2,7 @@ import { defineComponent as w, resolveComponent as d, openBlock as A, createBloc
2
2
  import { e as B, u as H } from "./index-DCPNrUDq.js";
3
3
  import { useDialog as q, useSnackbar as J } from "@feedmepos/ui-library";
4
4
  import { d as k } from "./dinero-CIVmXLL-.js";
5
- import { g as Q, a as W } from "./assets-BuLGUMIx.js";
5
+ import { g as Q, a as W } from "./assets-DnuLfRTO.js";
6
6
  import { t as $, a as X } from "./transaction-vRrBf3FN.js";
7
7
  import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as ee } from "vue-router";
@@ -2,7 +2,7 @@ import { defineComponent as F, resolveComponent as p, openBlock as S, createBloc
2
2
  import { e as E, u as G } from "./index-DCPNrUDq.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as B } from "./dinero-CIVmXLL-.js";
5
- import { g as j, a as Y } from "./assets-BuLGUMIx.js";
5
+ import { g as j, a as Y } from "./assets-DnuLfRTO.js";
6
6
  import { t as H, a as q } from "./transaction-vRrBf3FN.js";
7
7
  import { _ as J } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as Q } from "vue-router";
@@ -5,7 +5,7 @@ import { u as K } from "./index-Bmka-1lQ.js";
5
5
  import { _ as V } from "./index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js";
6
6
  import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
7
7
  import "@feedmepos/ui-library";
8
- import { g as L } from "./assets-BuLGUMIx.js";
8
+ import { g as L } from "./assets-DnuLfRTO.js";
9
9
  import { d as B } from "./dinero-CIVmXLL-.js";
10
10
  const P = /* @__PURE__ */ A({
11
11
  __name: "Gateway",
@@ -4,7 +4,7 @@ import { e as F, u as V } from "./index-DCPNrUDq.js";
4
4
  import "@feedmepos/ui-library";
5
5
  import "./dinero-CIVmXLL-.js";
6
6
  import { h as b } from "./moment-h96o7c8I.js";
7
- import { g as k, a as P } from "./assets-BuLGUMIx.js";
7
+ import { g as k, a as P } from "./assets-DnuLfRTO.js";
8
8
  import { useCoreStore as B } from "@feedmepos/mf-common";
9
9
  import { u as L } from "./index-Bmka-1lQ.js";
10
10
  import { _ as M } from "./AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js";
@@ -4,7 +4,7 @@ import { e as A, u as k } from "./index-DCPNrUDq.js";
4
4
  import "@feedmepos/ui-library";
5
5
  import "./dinero-CIVmXLL-.js";
6
6
  import { h as I } from "./moment-h96o7c8I.js";
7
- import { g as P, a as B } from "./assets-BuLGUMIx.js";
7
+ import { g as P, a as B } from "./assets-DnuLfRTO.js";
8
8
  import { useCoreStore as L } from "@feedmepos/mf-common";
9
9
  import { _ as M } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
10
10
  import { u as U } from "./index-Bmka-1lQ.js";
package/dist/app.js CHANGED
@@ -1,32 +1,32 @@
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 y, ref as S, resolveComponent as f, openBlock as b, createBlock as h, onMounted as T, onBeforeMount as w } from "vue";
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 w } from "vue";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  import { defineStore as P } from "pinia";
5
5
  const u = [
6
6
  {
7
- path: "/payment/admin/payout-accounts",
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-zpXvSHPw.js")
12
+ component: () => import("./PayoutAccount-DQm62Wf2.js")
13
13
  },
14
14
  {
15
- path: "/payment/admin/payout-accounts/:accountId",
15
+ path: "/admin/payout-accounts/:accountId",
16
16
  name: "mf-payment-admin.payout-account-settings",
17
17
  props: !0,
18
18
  component: () => import("./PayoutAccountSetting-CIeos0md.js")
19
19
  },
20
20
  {
21
- path: "/payment/admin/transaction",
21
+ path: "/admin/transaction",
22
22
  name: "mf-payment-admin.transaction",
23
23
  meta: {
24
24
  sidebarDisplay: "Transactions"
25
25
  },
26
- component: () => import("./Transaction-Cjw9WwX8.js")
26
+ component: () => import("./Transaction-C-X11abA.js")
27
27
  },
28
28
  {
29
- path: "/payment/admin/settlement",
29
+ path: "/admin/settlement",
30
30
  name: "mf-payment-admin.settlement",
31
31
  meta: {
32
32
  sidebarDisplay: "Settlements"
@@ -34,13 +34,13 @@ const u = [
34
34
  component: () => import("./Settlement-Ce48KHrc.js")
35
35
  },
36
36
  {
37
- path: "/payment/admin/settlement/:settlementId",
37
+ path: "/admin/settlement/:settlementId",
38
38
  name: "mf-payment-admin.settlement-transaction",
39
39
  props: !0,
40
- component: () => import("./SettlementTransactions-Dl1H4jvh.js")
40
+ component: () => import("./SettlementTransactions-B1v0f-0o.js")
41
41
  },
42
42
  {
43
- path: "/payment/admin/terminal",
43
+ path: "/admin/terminal",
44
44
  name: "mf-payment-admin.terminal",
45
45
  meta: {
46
46
  sidebarDisplay: "Terminals"
@@ -48,12 +48,12 @@ const u = [
48
48
  component: () => import("./Terminal-ByKV2Rof.js")
49
49
  },
50
50
  {
51
- path: "/payment/admin/terminal-transaction",
51
+ path: "/admin/terminal-transaction",
52
52
  name: "mf-payment-admin.terminal-transaction",
53
53
  meta: {
54
54
  sidebarDisplay: "Terminal Transactions"
55
55
  },
56
- component: () => import("./TerminalTransaction-RuSxBAxf.js")
56
+ component: () => import("./TerminalTransaction-LofDTVwC.js")
57
57
  }
58
58
  ], l = [
59
59
  {
@@ -61,23 +61,23 @@ const u = [
61
61
  redirect: { name: "mf-payment-payout-account" }
62
62
  },
63
63
  {
64
- path: "/payment/payout-account",
64
+ path: "/payout-account",
65
65
  name: "mf-payment-payout-account",
66
- component: () => import("./PayoutAccount-Cpu-cs_L.js"),
66
+ component: () => import("./PayoutAccount-CeLwLffx.js"),
67
67
  meta: {
68
68
  sidebarDisplay: "Payout Accounts"
69
69
  }
70
70
  },
71
71
  {
72
- path: "/payment/transaction",
72
+ path: "/transaction",
73
73
  name: "mf-payment-transaction",
74
- component: () => import("./Transaction-CYo-uLQi.js"),
74
+ component: () => import("./Transaction-CaOxsIQH.js"),
75
75
  meta: {
76
76
  sidebarDisplay: "Transactions"
77
77
  }
78
78
  },
79
79
  {
80
- path: "/payment/settlement",
80
+ path: "/settlement",
81
81
  name: "mf-payment-settlement",
82
82
  component: () => import("./Settlement-BVGACeme.js"),
83
83
  meta: {
@@ -85,17 +85,17 @@ const u = [
85
85
  }
86
86
  },
87
87
  {
88
- path: "/payment/settlement/:settlementId",
88
+ path: "/settlement/:settlementId",
89
89
  name: "mf-payment-settlement-transaction",
90
90
  props: !0,
91
- component: () => import("./SettlementTransactions-CoEzdtYT.js")
91
+ component: () => import("./SettlementTransactions-CYES5YMF.js")
92
92
  }
93
93
  ], A = P("iframe", () => {
94
- const o = {
94
+ const m = {
95
95
  isIframe: !1
96
- }, n = d(() => o);
97
- function a(m) {
98
- o.isIframe = m;
96
+ }, n = d(() => m);
97
+ function a(o) {
98
+ m.isIframe = o;
99
99
  }
100
100
  return {
101
101
  state: n,
@@ -105,9 +105,9 @@ const u = [
105
105
  history: D(),
106
106
  routes: [...l, ...u]
107
107
  });
108
- C.beforeEach(async (o) => {
109
- const { sessionUser: n, currentRestaurant: a, readRestaurants: m, changeRestaurant: i } = c();
110
- if (o.name.startsWith("admin"))
108
+ C.beforeEach(async (m) => {
109
+ const { sessionUser: n, currentRestaurant: a, readRestaurants: o, changeRestaurant: i } = c();
110
+ if (m.name.startsWith("admin"))
111
111
  return n.value ? !0 : new Promise((r) => {
112
112
  const s = p(n, (e) => {
113
113
  var t;
@@ -115,7 +115,7 @@ C.beforeEach(async (o) => {
115
115
  });
116
116
  });
117
117
  if (!a.value) {
118
- const r = await m();
118
+ const r = await o();
119
119
  return await i(r == null ? void 0 : r.at(0)), new Promise((s) => {
120
120
  const e = p(a, (t) => {
121
121
  t && (e(), s(!0));
@@ -124,12 +124,12 @@ C.beforeEach(async (o) => {
124
124
  }
125
125
  return !0;
126
126
  });
127
- const g = /* @__PURE__ */ y({
127
+ const g = /* @__PURE__ */ f({
128
128
  __name: "AppSidebar",
129
- setup(o) {
130
- const n = c(), a = I(), m = S(a.currentRoute.value.name);
129
+ setup(m) {
130
+ const n = c(), a = I(), o = S(a.currentRoute.value.name);
131
131
  p(a.currentRoute, () => {
132
- m.value = a.currentRoute.value.name;
132
+ o.value = a.currentRoute.value.name;
133
133
  });
134
134
  const i = l.map((e) => {
135
135
  var t;
@@ -168,25 +168,25 @@ const g = /* @__PURE__ */ y({
168
168
  }), e.push(...r)), e;
169
169
  });
170
170
  return (e, t) => {
171
- const _ = f("FmCollapsibleTabs");
171
+ const _ = y("FmCollapsibleTabs");
172
172
  return b(), h(_, {
173
- modelValue: m.value,
174
- "onUpdate:modelValue": t[0] || (t[0] = (v) => m.value = v),
173
+ modelValue: o.value,
174
+ "onUpdate:modelValue": t[0] || (t[0] = (v) => o.value = v),
175
175
  items: s.value,
176
176
  class: "py-16 px-8"
177
177
  }, null, 8, ["modelValue", "items"]);
178
178
  };
179
179
  }
180
- }), F = /* @__PURE__ */ y({
180
+ }), F = /* @__PURE__ */ f({
181
181
  __name: "App",
182
- setup(o) {
182
+ setup(m) {
183
183
  const { state: n } = A(), a = c();
184
184
  return T(() => {
185
185
  n.isIframe && parent.postMessage({ event: "ready" }, "*");
186
186
  }), w(() => {
187
187
  a.registerSidebarComponent(g);
188
- }), (m, i) => {
189
- const r = f("RouterView");
188
+ }), (o, i) => {
189
+ const r = y("RouterView");
190
190
  return b(), h(r);
191
191
  };
192
192
  }