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

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 (45) hide show
  1. package/dist/AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js +42 -0
  2. package/dist/Modal-DB8M9o1T.js +13 -0
  3. package/dist/{PayoutAccount-DQm62Wf2.js → PayoutAccount-CIKS18wv.js} +37 -34
  4. package/dist/{PayoutAccount-CeLwLffx.js → PayoutAccount-Daxv1Djz.js} +288 -3160
  5. package/dist/{PayoutAccountSetting-CIeos0md.js → PayoutAccountSetting-CnjAKH1q.js} +3 -3
  6. package/dist/Settlement-C7X_gzIk.js +142 -0
  7. package/dist/Settlement-DxQ9WNy-.js +146 -0
  8. package/dist/{SettlementTransactions-CYES5YMF.js → SettlementTransactions-Bne5lD30.js} +4 -4
  9. package/dist/{SettlementTransactions-B1v0f-0o.js → SettlementTransactions-RqT0OWUX.js} +100 -107
  10. package/dist/Terminal-CddS-zgz.js +318 -0
  11. package/dist/TerminalSetting-B2aM1gW-.js +176 -0
  12. package/dist/{TerminalTransaction-LofDTVwC.js → TerminalTransaction-XrqXeZZH.js} +18 -18
  13. package/dist/{Transaction-CaOxsIQH.js → Transaction-B16xeZ39.js} +80 -74
  14. package/dist/Transaction-CpOhK6md.js +249 -0
  15. package/dist/api/index.d.ts +7 -0
  16. package/dist/api/settlement/index.d.ts +7 -13
  17. package/dist/api/terminal/index.d.ts +8 -1
  18. package/dist/api/transaction/index.d.ts +6 -2
  19. package/dist/app.js +46 -40
  20. package/dist/{assets-DnuLfRTO.js → assets-nIQ0r4oP.js} +1 -1
  21. package/dist/components/AsyncButton.vue.d.ts +21 -0
  22. package/dist/components/CursorTable/index.vue.d.ts +16 -5
  23. package/dist/{index-Bmka-1lQ.js → index-CIIojtd5.js} +1 -1
  24. package/dist/index-CxYMbN69.js +37 -0
  25. package/dist/index-DflgpHga.js +55560 -0
  26. package/dist/{index-Coz5aeIO.js → index-DhPhiNvt.js} +13 -23
  27. package/dist/{index-CF56zGyu.js → index-DqQBDo_Y.js} +1 -1
  28. package/dist/index.vue_vue_type_script_setup_true_lang-CcY9Uu6G.js +155 -0
  29. package/dist/package.json +3 -3
  30. package/dist/{payout-account-OR4juI9N.js → payout-account-C4iFFgWi.js} +260 -260
  31. package/dist/{transaction-vRrBf3FN.js → transaction-B4rEbejx.js} +28 -15
  32. package/dist/tsconfig.app.tsbuildinfo +1 -1
  33. package/dist/validator-D5jtpt9A.js +2877 -0
  34. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +61 -0
  35. package/dist/views/admin/terminal/TerminalSetting.vue.d.ts +12 -0
  36. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +58 -9
  37. package/dist/views/admin/terminal/tabs/Fiuu.vue.d.ts +72 -0
  38. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +63 -0
  39. package/package.json +3 -3
  40. package/dist/Settlement-BVGACeme.js +0 -136
  41. package/dist/Settlement-Ce48KHrc.js +0 -132
  42. package/dist/Terminal-ByKV2Rof.js +0 -204
  43. package/dist/Transaction-C-X11abA.js +0 -242
  44. package/dist/index-DCPNrUDq.js +0 -40075
  45. 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-CIKS18wv.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-CnjAKH1q.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-CpOhK6md.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-C7X_gzIk.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-RqT0OWUX.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-CddS-zgz.js")
49
+ },
50
+ {
51
+ path: "/admin/terminal/:terminalId",
52
+ name: "mf-payment-admin.terminal-setting",
53
+ props: !0,
54
+ component: () => import("./TerminalSetting-B2aM1gW-.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-XrqXeZZH.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-Daxv1Djz.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-B16xeZ39.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-DxQ9WNy-.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-Bne5lD30.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);