@feedmepos/mf-payment 0.0.0-beta.11 → 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-uqw305f2.js → PayoutAccount-CIKS18wv.js} +37 -34
  4. package/dist/{PayoutAccount-h58IN5jz.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-Bqw7WbtT.js → SettlementTransactions-Bne5lD30.js} +4 -4
  9. package/dist/{SettlementTransactions-De_DYXFh.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-D_lILlqx.js → TerminalTransaction-XrqXeZZH.js} +18 -18
  13. package/dist/{Transaction-CiFh9jYU.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 +68 -62
  20. package/dist/{assets-DZoIWoOi.js → assets-nIQ0r4oP.js} +49 -49
  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-D_lGAP8q.js → payout-account-C4iFFgWi.js} +262 -262
  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-DWJ4TWTQ.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,59 +1,65 @@
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 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
- 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-uqw305f2.js")
12
+ component: () => import("./PayoutAccount-CIKS18wv.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
- component: () => import("./PayoutAccountSetting-CIeos0md.js")
18
+ component: () => import("./PayoutAccountSetting-CnjAKH1q.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-DWJ4TWTQ.js")
26
+ component: () => import("./Transaction-CpOhK6md.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"
33
33
  },
34
- component: () => import("./Settlement-Ce48KHrc.js")
34
+ component: () => import("./Settlement-C7X_gzIk.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-De_DYXFh.js")
40
+ component: () => import("./SettlementTransactions-RqT0OWUX.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"
47
47
  },
48
- component: () => import("./Terminal-ByKV2Rof.js")
48
+ component: () => import("./Terminal-CddS-zgz.js")
49
49
  },
50
50
  {
51
- path: "/payment/admin/terminal-transaction",
51
+ path: "/admin/terminal/:terminalId",
52
+ name: "mf-payment-admin.terminal-setting",
53
+ props: !0,
54
+ component: () => import("./TerminalSetting-B2aM1gW-.js")
55
+ },
56
+ {
57
+ path: "/admin/terminal-transaction",
52
58
  name: "mf-payment-admin.terminal-transaction",
53
59
  meta: {
54
60
  sidebarDisplay: "Terminal Transactions"
55
61
  },
56
- component: () => import("./TerminalTransaction-D_lILlqx.js")
62
+ component: () => import("./TerminalTransaction-XrqXeZZH.js")
57
63
  }
58
64
  ], l = [
59
65
  {
@@ -61,75 +67,75 @@ const u = [
61
67
  redirect: { name: "mf-payment-payout-account" }
62
68
  },
63
69
  {
64
- path: "/payment/payout-account",
70
+ path: "/payout-account",
65
71
  name: "mf-payment-payout-account",
66
- component: () => import("./PayoutAccount-h58IN5jz.js"),
72
+ component: () => import("./PayoutAccount-Daxv1Djz.js"),
67
73
  meta: {
68
74
  sidebarDisplay: "Payout Accounts"
69
75
  }
70
76
  },
71
77
  {
72
- path: "/payment/transaction",
78
+ path: "/transaction",
73
79
  name: "mf-payment-transaction",
74
- component: () => import("./Transaction-CiFh9jYU.js"),
80
+ component: () => import("./Transaction-B16xeZ39.js"),
75
81
  meta: {
76
82
  sidebarDisplay: "Transactions"
77
83
  }
78
84
  },
79
85
  {
80
- path: "/payment/settlement",
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
  }
86
92
  },
87
93
  {
88
- path: "/payment/settlement/:settlementId",
94
+ path: "/settlement/:settlementId",
89
95
  name: "mf-payment-settlement-transaction",
90
96
  props: !0,
91
- component: () => import("./SettlementTransactions-Bqw7WbtT.js")
97
+ component: () => import("./SettlementTransactions-Bne5lD30.js")
92
98
  }
93
- ], A = P("iframe", () => {
94
- const o = {
99
+ ], P = w("iframe", () => {
100
+ const m = {
95
101
  isIframe: !1
96
- }, n = d(() => o);
97
- function a(m) {
98
- o.isIframe = m;
102
+ }, a = d(() => m);
103
+ function n(o) {
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 (o) => {
109
- const { sessionUser: n, currentRestaurant: a, readRestaurants: m, changeRestaurant: i } = c();
110
- if (o.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) {
118
- const r = await m();
123
+ if (!n.value) {
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__ */ y({
133
+ const C = /* @__PURE__ */ f({
128
134
  __name: "AppSidebar",
129
- setup(o) {
130
- const n = c(), a = I(), m = S(a.currentRoute.value.name);
131
- p(a.currentRoute, () => {
132
- m.value = a.currentRoute.value.name;
135
+ setup(m) {
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__ */ y({
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__ */ y({
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
@@ -168,25 +174,25 @@ const g = /* @__PURE__ */ y({
168
174
  }), e.push(...r)), e;
169
175
  });
170
176
  return (e, t) => {
171
- const _ = f("FmCollapsibleTabs");
177
+ const _ = y("FmCollapsibleTabs");
172
178
  return b(), h(_, {
173
- modelValue: m.value,
174
- "onUpdate:modelValue": t[0] || (t[0] = (v) => m.value = v),
179
+ modelValue: o.value,
180
+ "onUpdate:modelValue": t[0] || (t[0] = (v) => o.value = v),
175
181
  items: s.value,
176
182
  class: "py-16 px-8"
177
183
  }, null, 8, ["modelValue", "items"]);
178
184
  };
179
185
  }
180
- }), F = /* @__PURE__ */ y({
186
+ }), F = /* @__PURE__ */ f({
181
187
  __name: "App",
182
- setup(o) {
183
- const { state: n } = A(), a = c();
188
+ setup(m) {
189
+ const { state: a } = P(), n = c();
184
190
  return T(() => {
185
- n.isIframe && parent.postMessage({ event: "ready" }, "*");
186
- }), w(() => {
187
- a.registerSidebarComponent(g);
188
- }), (m, i) => {
189
- const r = f("RouterView");
191
+ a.isIframe && parent.postMessage({ event: "ready" }, "*");
192
+ }), g(() => {
193
+ n.registerSidebarComponent(C);
194
+ }), (o, i) => {
195
+ const r = y("RouterView");
190
196
  return b(), h(r);
191
197
  };
192
198
  }