@feedmepos/mf-payment 0.0.0-beta.37 → 0.0.0-beta.38

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-BgnU5ezY.js";
3
3
  import { _ as O } from "./index-Cnxt2xmc.js";
4
4
  import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
5
- import { P as V } from "./payout-account-DKm-YncB.js";
5
+ import { P as V } from "./payout-account-CfYFecy1.js";
6
6
  import { p as D } from "./index-ApzEWD1P.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-B8eGz19R.js";
@@ -3,7 +3,7 @@ import { p as z } from "./index-ApzEWD1P.js";
3
3
  import { _ as I, u as S, c as h } from "./index-Cnxt2xmc.js";
4
4
  import { defineStore as _ } from "pinia";
5
5
  import { useCoreStore as $ } from "@feedmepos/mf-common";
6
- import { c as AA, P as j } from "./payout-account-DKm-YncB.js";
6
+ import { c as AA, P as j } from "./payout-account-CfYFecy1.js";
7
7
  import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
8
8
  import { z as f, a as q } from "./validator-D5jtpt9A.js";
9
9
  import { P as K } from "./PDFViewer-CjH_C1uT.js";
package/dist/app.js CHANGED
@@ -1,15 +1,15 @@
1
- import { createRouter as R, createWebHistory as D, useRouter as I } from "vue-router";
2
- import { computed as f, watch as c, defineComponent as y, ref as P, resolveComponent as h, openBlock as b, createBlock as _, onMounted as S, onBeforeMount as w } from "vue";
3
- import { useCoreStore as u } from "@feedmepos/mf-common";
4
- import { defineStore as T } from "pinia";
5
- const l = [
1
+ import { createRouter as I, createWebHistory as P, useRouter as S } from "vue-router";
2
+ import { computed as h, watch as c, defineComponent as b, ref as w, resolveComponent as v, openBlock as _, createBlock as R, onMounted as T, onBeforeMount as g } from "vue";
3
+ import { useCoreStore as d } from "@feedmepos/mf-common";
4
+ import { defineStore as A } from "pinia";
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-BcgYhX4b.js")
12
+ component: () => import("./PayoutAccount-B2RkqaQ9.js")
13
13
  },
14
14
  {
15
15
  path: "/admin/payout-accounts/:accountId",
@@ -61,7 +61,7 @@ const l = [
61
61
  props: !0,
62
62
  component: () => import("./SettlementTransactions-yJhT6FR4.js")
63
63
  }
64
- ], d = [
64
+ ], y = [
65
65
  {
66
66
  path: "",
67
67
  redirect: { name: "mf-payment-payout-account" }
@@ -69,7 +69,7 @@ const l = [
69
69
  {
70
70
  path: "/payout-account",
71
71
  name: "mf-payment-payout-account",
72
- component: () => import("./PayoutAccount-B0viIh7c.js"),
72
+ component: () => import("./PayoutAccount-BGbBteeq.js"),
73
73
  meta: {
74
74
  sidebarDisplay: "Payout Accounts"
75
75
  }
@@ -104,56 +104,57 @@ const l = [
104
104
  props: !0,
105
105
  component: () => import("./SettlementTransactions-Co4ziq3a.js")
106
106
  }
107
- ], g = T("iframe", () => {
108
- const o = {
107
+ ], C = A("iframe", () => {
108
+ const m = {
109
109
  isIframe: !1
110
- }, a = f(() => o);
110
+ }, a = h(() => m);
111
111
  function n(r) {
112
- o.isIframe = r;
112
+ m.isIframe = r;
113
113
  }
114
114
  return {
115
115
  state: a,
116
116
  init: n
117
117
  };
118
- }), A = R({
119
- history: D(),
120
- routes: [...d, ...l]
118
+ }), B = I({
119
+ history: P(),
120
+ routes: [...y, ...f]
121
121
  });
122
- A.beforeEach(async (o) => {
122
+ let u, l;
123
+ B.beforeEach(async (m) => {
123
124
  const {
124
125
  sessionUser: a,
125
126
  currentRestaurant: n,
126
127
  currentBusiness: r,
127
128
  readRestaurants: p,
128
129
  changeRestaurant: i
129
- } = u();
130
- return o.name.startsWith("mf-payment-admin") ? a.value ? !0 : new Promise((m) => {
130
+ } = d();
131
+ return m.name.startsWith("mf-payment-admin") ? a.value ? !0 : (u || (u = new Promise((o) => {
131
132
  const e = c(a, (t) => {
132
133
  var s;
133
- t && (e(), m((s = a.value) == null ? void 0 : s.isInternal));
134
+ t && (e(), o(((s = a.value) == null ? void 0 : s.isInternal) ?? !1));
134
135
  });
135
- }) : !r.value || !n.value ? Promise.all([
136
- new Promise(async (m) => {
136
+ })), u) : !r.value || !n.value ? (l || (l = Promise.all([
137
+ new Promise(async (o) => {
137
138
  const e = c(r, (t) => {
138
- t && (e(), m(!0));
139
+ t && (e(), o(!0));
139
140
  });
140
141
  }),
141
- new Promise(async (m) => {
142
+ new Promise(async (o) => {
142
143
  const e = c(n, (s) => {
143
- s && (e(), m(!0));
144
+ s && (e(), o(!0));
144
145
  }), t = await p();
145
146
  await i(t == null ? void 0 : t.at(0));
146
147
  })
147
- ]).then((m) => !0) : !0;
148
+ ]).then((o) => !0)), l) : !0;
148
149
  });
149
- const C = /* @__PURE__ */ y({
150
+ const V = /* @__PURE__ */ b({
150
151
  __name: "AppSidebar",
151
- setup(o) {
152
- const a = u(), n = I(), r = P(n.currentRoute.value.name);
152
+ setup(m) {
153
+ const a = d(), n = S(), r = w(n.currentRoute.value.name);
153
154
  c(n.currentRoute, () => {
154
155
  r.value = n.currentRoute.value.name;
155
156
  });
156
- const p = d.map((e) => {
157
+ const p = y.map((e) => {
157
158
  var t;
158
159
  if ((t = e.meta) != null && t.sidebarDisplay)
159
160
  return {
@@ -164,7 +165,7 @@ const C = /* @__PURE__ */ y({
164
165
  return n.push({ name: e.name });
165
166
  }
166
167
  };
167
- }).filter((e) => !!e), i = l.map((e) => {
168
+ }).filter((e) => !!e), i = f.map((e) => {
168
169
  var t;
169
170
  if ((t = e.meta) != null && t.sidebarDisplay)
170
171
  return {
@@ -175,7 +176,7 @@ const C = /* @__PURE__ */ y({
175
176
  return n.push({ name: e.name });
176
177
  }
177
178
  };
178
- }).filter((e) => !!e), m = f(() => {
179
+ }).filter((e) => !!e), o = h(() => {
179
180
  var t;
180
181
  const e = [...p];
181
182
  return (t = a.sessionUser.value) != null && t.isInternal && (e.push({
@@ -190,33 +191,33 @@ const C = /* @__PURE__ */ y({
190
191
  }), e.push(...i)), e;
191
192
  });
192
193
  return (e, t) => {
193
- const s = h("FmCollapsibleTabs");
194
- return b(), _(s, {
194
+ const s = v("FmCollapsibleTabs");
195
+ return _(), R(s, {
195
196
  modelValue: r.value,
196
- "onUpdate:modelValue": t[0] || (t[0] = (v) => r.value = v),
197
- items: m.value,
197
+ "onUpdate:modelValue": t[0] || (t[0] = (D) => r.value = D),
198
+ items: o.value,
198
199
  class: "py-16 px-8"
199
200
  }, null, 8, ["modelValue", "items"]);
200
201
  };
201
202
  }
202
- }), O = /* @__PURE__ */ y({
203
+ }), F = /* @__PURE__ */ b({
203
204
  __name: "App",
204
- setup(o) {
205
- const { state: a } = g(), n = u();
206
- return S(() => {
205
+ setup(m) {
206
+ const { state: a } = C(), n = d();
207
+ return T(() => {
207
208
  a.isIframe && parent.postMessage({ event: "ready" }, "*");
208
- }), w(() => {
209
- n.registerSidebarComponent(C);
209
+ }), g(() => {
210
+ n.registerSidebarComponent(V);
210
211
  }), (r, p) => {
211
- const i = h("RouterView");
212
- return b(), _(i);
212
+ const i = v("RouterView");
213
+ return _(), R(i);
213
214
  };
214
215
  }
215
- }), F = [
216
- ...l,
217
- ...d
216
+ }), M = [
217
+ ...f,
218
+ ...y
218
219
  ];
219
220
  export {
220
- O as FmApp,
221
- F as routers
221
+ F as FmApp,
222
+ M as routers
222
223
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-payment",
3
- "version": "0.0.0-beta.37",
3
+ "version": "0.0.0-beta.38",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"