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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/dist/{AdminLayout.vue_vue_type_script_setup_true_lang-oPYFBeEo.js → AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js} +1 -1
  2. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  3. package/dist/{Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js → Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js} +9 -9
  4. package/dist/Modal-DB8M9o1T.js +13 -0
  5. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-BHwKD9si.js} +288 -3160
  6. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-DuqITwjB.js} +38 -35
  7. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-cOThY31e.js} +4 -4
  8. package/dist/Settlement-Dr6Rmkid.js +142 -0
  9. package/dist/Settlement-JkH7-Wd_.js +146 -0
  10. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-BGfDReId.js} +5 -5
  11. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-CSz0G9iE.js} +101 -108
  12. package/dist/Terminal-DQqtUzV2.js +318 -0
  13. package/dist/TerminalSetting-T0Sxq_z0.js +176 -0
  14. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-C0g2mMBJ.js} +19 -19
  15. package/dist/Transaction-BKBh8jOT.js +249 -0
  16. package/dist/{Transaction-CaOxsIQH.js → Transaction-DVS8SkBi.js} +80 -74
  17. package/dist/api/index.d.ts +7 -0
  18. package/dist/api/settlement/index.d.ts +7 -13
  19. package/dist/api/terminal/index.d.ts +8 -1
  20. package/dist/api/transaction/index.d.ts +6 -2
  21. package/dist/app.js +46 -40
  22. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  23. package/dist/components/AsyncButton.vue.d.ts +21 -0
  24. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  25. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  26. package/dist/index-CxYMbN69.js +37 -0
  27. package/dist/index-DflgpHga.js +55560 -0
  28. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  29. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  30. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  31. package/dist/package.json +3 -3
  32. package/dist/{payout-account-OR4juI9N.js → payout-account-FNZygqj-.js} +130 -130
  33. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/validator-D5jtpt9A.js +2877 -0
  36. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  37. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  38. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  39. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  40. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  41. package/package.json +3 -3
  42. package/dist/Settlement-BVGACeme.js +0 -136
  43. package/dist/Settlement-Ce48KHrc.js +0 -132
  44. package/dist/Terminal-ByKV2Rof.js +0 -204
  45. package/dist/Transaction-C-X11abA.js +0 -242
  46. package/dist/index-DCPNrUDq.js +0 -40075
  47. package/dist/index.vue_vue_type_script_setup_true_lang-CAR-bNaR.js +0 -150
package/dist/app.js CHANGED
@@ -1,7 +1,7 @@
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 f, ref as S, resolveComponent as y, 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 g } from "vue";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
- import { defineStore as P } from "pinia";
4
+ import { defineStore as w } from "pinia";
5
5
  const u = [
6
6
  {
7
7
  path: "/admin/payout-accounts",
@@ -9,13 +9,13 @@ const u = [
9
9
  meta: {
10
10
  sidebarDisplay: "Payout Accounts"
11
11
  },
12
- component: () => import("./PayoutAccount-DQm62Wf2.js")
12
+ component: () => import("./PayoutAccount-DuqITwjB.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-CIeos0md.js")
18
+ component: () => import("./PayoutAccountSetting-cOThY31e.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-C-X11abA.js")
26
+ component: () => import("./Transaction-BKBh8jOT.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-Ce48KHrc.js")
34
+ component: () => import("./Settlement-Dr6Rmkid.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-B1v0f-0o.js")
40
+ component: () => import("./SettlementTransactions-CSz0G9iE.js")
41
41
  },
42
42
  {
43
43
  path: "/admin/terminal",
@@ -45,7 +45,13 @@ const u = [
45
45
  meta: {
46
46
  sidebarDisplay: "Terminals"
47
47
  },
48
- component: () => import("./Terminal-ByKV2Rof.js")
48
+ component: () => import("./Terminal-DQqtUzV2.js")
49
+ },
50
+ {
51
+ path: "/admin/terminal/:terminalId",
52
+ name: "mf-payment-admin.terminal-setting",
53
+ props: !0,
54
+ component: () => import("./TerminalSetting-T0Sxq_z0.js")
49
55
  },
50
56
  {
51
57
  path: "/admin/terminal-transaction",
@@ -53,7 +59,7 @@ const u = [
53
59
  meta: {
54
60
  sidebarDisplay: "Terminal Transactions"
55
61
  },
56
- component: () => import("./TerminalTransaction-LofDTVwC.js")
62
+ component: () => import("./TerminalTransaction-C0g2mMBJ.js")
57
63
  }
58
64
  ], l = [
59
65
  {
@@ -63,7 +69,7 @@ const u = [
63
69
  {
64
70
  path: "/payout-account",
65
71
  name: "mf-payment-payout-account",
66
- component: () => import("./PayoutAccount-CeLwLffx.js"),
72
+ component: () => import("./PayoutAccount-BHwKD9si.js"),
67
73
  meta: {
68
74
  sidebarDisplay: "Payout Accounts"
69
75
  }
@@ -71,7 +77,7 @@ const u = [
71
77
  {
72
78
  path: "/transaction",
73
79
  name: "mf-payment-transaction",
74
- component: () => import("./Transaction-CaOxsIQH.js"),
80
+ component: () => import("./Transaction-DVS8SkBi.js"),
75
81
  meta: {
76
82
  sidebarDisplay: "Transactions"
77
83
  }
@@ -79,7 +85,7 @@ const u = [
79
85
  {
80
86
  path: "/settlement",
81
87
  name: "mf-payment-settlement",
82
- component: () => import("./Settlement-BVGACeme.js"),
88
+ component: () => import("./Settlement-JkH7-Wd_.js"),
83
89
  meta: {
84
90
  sidebarDisplay: "Settlements"
85
91
  }
@@ -88,48 +94,48 @@ const u = [
88
94
  path: "/settlement/:settlementId",
89
95
  name: "mf-payment-settlement-transaction",
90
96
  props: !0,
91
- component: () => import("./SettlementTransactions-CYES5YMF.js")
97
+ component: () => import("./SettlementTransactions-BGfDReId.js")
92
98
  }
93
- ], A = P("iframe", () => {
99
+ ], P = w("iframe", () => {
94
100
  const m = {
95
101
  isIframe: !1
96
- }, n = d(() => m);
97
- function a(o) {
102
+ }, a = d(() => m);
103
+ function n(o) {
98
104
  m.isIframe = o;
99
105
  }
100
106
  return {
101
- state: n,
102
- init: a
107
+ state: a,
108
+ init: n
103
109
  };
104
- }), C = R({
110
+ }), A = R({
105
111
  history: D(),
106
112
  routes: [...l, ...u]
107
113
  });
108
- C.beforeEach(async (m) => {
109
- const { sessionUser: n, currentRestaurant: a, readRestaurants: o, changeRestaurant: i } = c();
110
- if (m.name.startsWith("admin"))
111
- return n.value ? !0 : new Promise((r) => {
112
- const s = p(n, (e) => {
114
+ A.beforeEach(async (m) => {
115
+ const { sessionUser: a, currentRestaurant: n, readRestaurants: o, changeRestaurant: i } = c();
116
+ if (console.log(m), m.name.startsWith("mf-payment-admin"))
117
+ return a.value ? !0 : new Promise((r) => {
118
+ const s = p(a, (e) => {
113
119
  var t;
114
- e && (s(), r((t = n.value) == null ? void 0 : t.isInternal));
120
+ e && (s(), r((t = a.value) == null ? void 0 : t.isInternal));
115
121
  });
116
122
  });
117
- if (!a.value) {
123
+ if (!n.value) {
118
124
  const r = await o();
119
125
  return await i(r == null ? void 0 : r.at(0)), new Promise((s) => {
120
- const e = p(a, (t) => {
126
+ const e = p(n, (t) => {
121
127
  t && (e(), s(!0));
122
128
  });
123
129
  });
124
130
  }
125
131
  return !0;
126
132
  });
127
- const g = /* @__PURE__ */ f({
133
+ const C = /* @__PURE__ */ f({
128
134
  __name: "AppSidebar",
129
135
  setup(m) {
130
- const n = c(), a = I(), o = S(a.currentRoute.value.name);
131
- p(a.currentRoute, () => {
132
- o.value = a.currentRoute.value.name;
136
+ const a = c(), n = I(), o = S(n.currentRoute.value.name);
137
+ p(n.currentRoute, () => {
138
+ o.value = n.currentRoute.value.name;
133
139
  });
134
140
  const i = l.map((e) => {
135
141
  var t;
@@ -138,8 +144,8 @@ const g = /* @__PURE__ */ f({
138
144
  label: e.meta.sidebarDisplay,
139
145
  value: e.name,
140
146
  action: () => {
141
- if (a.currentRoute.value.name !== e.name)
142
- return a.push({ name: e.name });
147
+ if (n.currentRoute.value.name !== e.name)
148
+ return n.push({ name: e.name });
143
149
  }
144
150
  };
145
151
  }).filter((e) => !!e), r = u.map((e) => {
@@ -149,14 +155,14 @@ const g = /* @__PURE__ */ f({
149
155
  label: e.meta.sidebarDisplay,
150
156
  value: e.name,
151
157
  action: () => {
152
- if (a.currentRoute.value.name !== e.name)
153
- return a.push({ name: e.name });
158
+ if (n.currentRoute.value.name !== e.name)
159
+ return n.push({ name: e.name });
154
160
  }
155
161
  };
156
162
  }).filter((e) => !!e), s = d(() => {
157
163
  var t;
158
164
  const e = [...i];
159
- return (t = n.sessionUser.value) != null && t.isInternal && (e.push({
165
+ return (t = a.sessionUser.value) != null && t.isInternal && (e.push({
160
166
  label: "",
161
167
  value: "divider",
162
168
  disabled: !0
@@ -180,11 +186,11 @@ const g = /* @__PURE__ */ f({
180
186
  }), F = /* @__PURE__ */ f({
181
187
  __name: "App",
182
188
  setup(m) {
183
- const { state: n } = A(), a = c();
189
+ const { state: a } = P(), n = c();
184
190
  return T(() => {
185
- n.isIframe && parent.postMessage({ event: "ready" }, "*");
186
- }), w(() => {
187
- a.registerSidebarComponent(g);
191
+ a.isIframe && parent.postMessage({ event: "ready" }, "*");
192
+ }), g(() => {
193
+ n.registerSidebarComponent(C);
188
194
  }), (o, i) => {
189
195
  const r = y("RouterView");
190
196
  return b(), h(r);