@feedmepos/mf-payment 1.1.7-beta.4 → 1.1.7-beta.6

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 (34) hide show
  1. package/dist/{PayoutAccount-7TEE2BzE.js → PayoutAccount-1d1J3Mbp.js} +5 -5
  2. package/dist/{PayoutAccount-DwKI9IhW.js → PayoutAccount-DTRSgLrZ.js} +3 -3
  3. package/dist/{PayoutAccountSetting-C2ISSDKv.js → PayoutAccountSetting-DM7pMb0z.js} +3 -3
  4. package/dist/{Restaurant-BXWgyQGg.js → Restaurant-DCJsgh4n.js} +4 -4
  5. package/dist/{RestaurantSetting-B2zqIloE.js → RestaurantSetting-DSv0mpiy.js} +3 -3
  6. package/dist/{Settlement-CBhBo7w7.js → Settlement-BP4npkfA.js} +3 -3
  7. package/dist/Settlement-Cie3vI3n.js +453 -0
  8. package/dist/{SettlementTransactions-DAzU50AC.js → SettlementTransactions-DyXb1ZAw.js} +80 -78
  9. package/dist/{SettlementTransactions-C4Hj7cKF.js → SettlementTransactions-bRdkx8o5.js} +68 -66
  10. package/dist/{Terminal-D-mwA9bo.js → Terminal-CDBNFPbr.js} +5 -5
  11. package/dist/TerminalSetting-pAsMFueM.js +497 -0
  12. package/dist/{Transaction-C1Z1g1Oh.js → Transaction-DqvPuX4W.js} +5 -5
  13. package/dist/{Transaction-CCjNEXsW.js → Transaction-W8sRSgGc.js} +6 -6
  14. package/dist/{TransactionOld-xW6kfmjb.js → TransactionOld-BOQ6tBqe.js} +4 -4
  15. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-CU6q9oND.js → TransactionTable.vue_vue_type_script_setup_true_lang-CtjjM2gz.js} +3 -3
  16. package/dist/api/terminal/index.d.ts +1 -1
  17. package/dist/{app-DSu8Bqxt.js → app-CYglC23K.js} +252 -250
  18. package/dist/app.d.ts +2 -0
  19. package/dist/app.js +1 -1
  20. package/dist/{assets-BYZLC205.js → assets-G15yB8yl.js} +1 -1
  21. package/dist/{grafana-B-ZEJ__-.js → grafana-ByGWVKk3.js} +1 -1
  22. package/dist/{index-B5I6xD5e.js → index-BKTCJbdW.js} +1 -1
  23. package/dist/{index-Yd0Q7mxR.js → index-C13NEGId.js} +1 -1
  24. package/dist/{index-CEbxMc8H.js → index-CtqzAx42.js} +1 -1
  25. package/dist/{index-ClUkVJXR.js → index-DXrfVp2-.js} +1 -1
  26. package/dist/{index-EJS3NJlp.js → index-DjrHDthD.js} +2064 -2064
  27. package/dist/{index-yIQx0FT4.js → index-WON1wez7.js} +1 -1
  28. package/dist/{index.vue_vue_type_script_setup_true_lang-BHvwhRYU.js → index.vue_vue_type_script_setup_true_lang-BL_w1CP7.js} +1 -1
  29. package/dist/package.json +1 -1
  30. package/dist/{payout-account-DgcZA_FW.js → payout-account-Bk7qyKXt.js} +2 -2
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/package.json +1 -1
  33. package/dist/Settlement-6eU_HP7K.js +0 -445
  34. package/dist/TerminalSetting-ByPtWVqu.js +0 -489
@@ -1,13 +1,14 @@
1
- import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as L, normalizeClass as z, withCtx as i, createElementVNode as l, toDisplayString as n, createElementBlock as O, unref as a, ref as v, onMounted as G, watch as R, createVNode as o, createTextVNode as d, h as I } from "vue";
2
- import { e as C, u as Y } from "./index-EJS3NJlp.js";
1
+ import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as M, normalizeClass as z, withCtx as u, createElementVNode as l, toDisplayString as n, createElementBlock as O, unref as a, ref as v, onMounted as G, watch as L, createVNode as o, createTextVNode as d, h as I } from "vue";
2
+ import { e as C, u as H } from "./index-DjrHDthD.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as E } from "./dinero-CIVmXLL-.js";
5
- import { g as H, a as q, t as J, b as Q } from "./assets-BYZLC205.js";
6
- import { _ as W } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
- import { useRouter as X } from "vue-router";
8
- import { s as Z } from "./index-CEbxMc8H.js";
9
- import { useI18n as ee, useCoreStore as te } from "@feedmepos/mf-common";
10
- const ae = /* @__PURE__ */ w({
5
+ import { g as q, a as J, t as Q, b as W } from "./assets-G15yB8yl.js";
6
+ import { _ as X } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
7
+ import { useRouter as Z } from "vue-router";
8
+ import { s as ee } from "./index-CtqzAx42.js";
9
+ import { useI18n as te, useCoreStore as ae } from "@feedmepos/mf-common";
10
+ import { h as ne } from "./moment-h96o7c8I.js";
11
+ const le = /* @__PURE__ */ w({
11
12
  __name: "Status",
12
13
  props: {
13
14
  row: {},
@@ -20,18 +21,18 @@ const ae = /* @__PURE__ */ w({
20
21
  }
21
22
  return (h, k) => {
22
23
  const T = g("FmBadge");
23
- return F(), L(T, {
24
+ return F(), M(T, {
24
25
  inline: "",
25
26
  class: z(f())
26
27
  }, {
27
- default: i(() => [
28
+ default: u(() => [
28
29
  l("div", null, n(h.data), 1)
29
30
  ]),
30
31
  _: 1
31
32
  }, 8, ["class"]);
32
33
  };
33
34
  }
34
- }), ne = ["src"], le = /* @__PURE__ */ w({
35
+ }), oe = ["src"], se = /* @__PURE__ */ w({
35
36
  __name: "Gateway",
36
37
  props: {
37
38
  row: {},
@@ -40,10 +41,10 @@ const ae = /* @__PURE__ */ w({
40
41
  setup(_) {
41
42
  return (e, f) => (F(), O("img", {
42
43
  class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
43
- src: a(H)(e.row.original.gateway)
44
- }, null, 8, ne));
44
+ src: a(q)(e.row.original.gateway)
45
+ }, null, 8, oe));
45
46
  }
46
- }), oe = ["src"], se = /* @__PURE__ */ w({
47
+ }), re = ["src"], ie = /* @__PURE__ */ w({
47
48
  __name: "Method",
48
49
  props: {
49
50
  row: {},
@@ -52,10 +53,10 @@ const ae = /* @__PURE__ */ w({
52
53
  setup(_) {
53
54
  return (e, f) => (F(), O("img", {
54
55
  class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
55
- src: a(q)(e.row.original.method.issuer, e.row.original.method.variant)
56
- }, null, 8, oe));
56
+ src: a(J)(e.row.original.method.issuer, e.row.original.method.variant)
57
+ }, null, 8, re));
57
58
  }
58
- }), re = { class: "flex mb-6" }, ie = { class: "my-6 w-[240px]" }, be = /* @__PURE__ */ w({
59
+ }), ue = { class: "flex mb-6" }, de = { class: "my-6 w-[240px]" }, xe = /* @__PURE__ */ w({
59
60
  __name: "SettlementTransactions",
60
61
  props: {
61
62
  settlementId: {
@@ -64,19 +65,19 @@ const ae = /* @__PURE__ */ w({
64
65
  }
65
66
  },
66
67
  setup(_) {
67
- const { t: e } = ee(), f = _, { isLoading: h, startAsyncCall: k } = Y(!0), { currentRestaurant: T } = te(), M = X(), u = v(), x = v([]), N = v([]);
68
- async function P(s = !1) {
68
+ const { t: e } = te(), f = _, { isLoading: h, startAsyncCall: k } = H(!0), { currentRestaurant: T } = ae(), D = Z(), i = v(), x = v([]), N = v([]);
69
+ async function Y(s = !1) {
69
70
  k(async () => {
70
- s || (u.value = await Z.readRestaurantSettlementById(f.settlementId));
71
- const t = await J.readRestaurantTransactionsBySettlementId(f.settlementId);
72
- x.value = Q(t), N.value = x.value;
71
+ s || (i.value = await ee.readRestaurantSettlementById(f.settlementId));
72
+ const t = await Q.readRestaurantTransactionsBySettlementId(f.settlementId);
73
+ x.value = W(t), N.value = x.value;
73
74
  });
74
75
  }
75
76
  function B() {
76
- P();
77
+ Y();
77
78
  }
78
- G(B), R(T, B);
79
- const K = v(""), U = [
79
+ G(B), L(T, B);
80
+ const $ = v(""), P = [
80
81
  {
81
82
  header: () => e("settlements.dialog.feedme.id"),
82
83
  accessorKey: "id"
@@ -91,7 +92,7 @@ const ae = /* @__PURE__ */ w({
91
92
  meta: {
92
93
  textAlign: "center"
93
94
  },
94
- cell: ({ cell: s, row: t }) => t.original.method ? I(le, { row: t, data: s.getValue() }) : ""
95
+ cell: ({ cell: s, row: t }) => t.original.method ? I(se, { row: t, data: s.getValue() }) : ""
95
96
  },
96
97
  {
97
98
  header: () => e("settlements.dialog.feedme.method"),
@@ -99,7 +100,7 @@ const ae = /* @__PURE__ */ w({
99
100
  meta: {
100
101
  textAlign: "center"
101
102
  },
102
- cell: ({ cell: s, row: t }) => t.original.method ? I(se, { row: t, data: s.getValue() }) : ""
103
+ cell: ({ cell: s, row: t }) => t.original.method ? I(ie, { row: t, data: s.getValue() }) : ""
103
104
  },
104
105
  {
105
106
  header: () => e("settlements.dialog.feedme.payFor"),
@@ -121,7 +122,7 @@ const ae = /* @__PURE__ */ w({
121
122
  {
122
123
  header: () => e("settlements.dialog.feedme.status"),
123
124
  accessorKey: "status",
124
- cell: ({ cell: s, row: t }) => I(ae, { row: t, data: s.getValue() })
125
+ cell: ({ cell: s, row: t }) => I(le, { row: t, data: s.getValue() })
125
126
  },
126
127
  {
127
128
  header: () => e("settlements.dialog.feedme.transaction_at"),
@@ -143,9 +144,9 @@ const ae = /* @__PURE__ */ w({
143
144
  accessorKey: "payout"
144
145
  }
145
146
  ], y = v("");
146
- let S;
147
- return R(y, async () => {
148
- S && clearTimeout(S), S = setTimeout(() => {
147
+ let A;
148
+ return L(y, async () => {
149
+ A && clearTimeout(A), A = setTimeout(() => {
149
150
  var s = new RegExp(y.value, "i");
150
151
  N.value = x.value.filter((t) => {
151
152
  const b = JSON.stringify(t);
@@ -153,37 +154,38 @@ const ae = /* @__PURE__ */ w({
153
154
  });
154
155
  }, 700);
155
156
  }), (s, t) => {
156
- var V;
157
- const b = g("FmCardHeader"), p = g("FmCardSection"), A = g("FmCard"), D = g("FmSearch"), j = g("FmTable");
158
- return F(), L(W, {
159
- title: `${a(e)("settlements.dialog.title")} (${(V = u.value) == null ? void 0 : V._id})`,
157
+ var K, V;
158
+ const b = g("FmCardHeader"), p = g("FmCardSection"), S = g("FmCard"), U = g("FmSearch"), j = g("FmTable");
159
+ return F(), M(X, {
160
+ title: `${a(e)("settlements.dialog.title")} (${(K = i.value) == null ? void 0 : K._id})`,
161
+ description: `${a(e)("settlements.dialog.date")}: ${a(ne)((V = i.value) == null ? void 0 : V.createdAt).format("YYYY-MM-DD")}`,
160
162
  loading: a(h),
161
- onBack: a(M).back
163
+ onBack: a(D).back
162
164
  }, {
163
- default: i(() => [
164
- l("div", re, [
165
- o(A, {
165
+ default: u(() => [
166
+ l("div", ue, [
167
+ o(S, {
166
168
  horizontal: "",
167
169
  class: "flex-1 p-6",
168
170
  variant: "elevated"
169
171
  }, {
170
- default: i(() => [
172
+ default: u(() => [
171
173
  o(p, { class: "flex flex-col gap-16 justify-between" }, {
172
- default: i(() => [
174
+ default: u(() => [
173
175
  o(b, {
174
176
  class: "p-0",
175
177
  title: a(e)("settlements.dialog.info.transaction.title"),
176
178
  subtitle: ""
177
179
  }, null, 8, ["title"]),
178
180
  o(p, { class: "p-0" }, {
179
- default: i(() => {
180
- var r, m, c, $;
181
+ default: u(() => {
182
+ var r, m, c, R;
181
183
  return [
182
184
  l("b", null, n(a(e)("settlements.dialog.info.transaction.for")), 1),
183
- d(": " + n((m = (r = u.value) == null ? void 0 : r.store) == null ? void 0 : m.event) + " ", 1),
185
+ d(": " + n((m = (r = i.value) == null ? void 0 : r.store) == null ? void 0 : m.event) + " ", 1),
184
186
  t[2] || (t[2] = l("br", null, null, -1)),
185
187
  l("b", null, n(a(e)("settlements.dialog.info.transaction.reference")), 1),
186
- d(": " + n(($ = (c = u.value) == null ? void 0 : c.store) == null ? void 0 : $.id), 1),
188
+ d(": " + n((R = (c = i.value) == null ? void 0 : c.store) == null ? void 0 : R.id), 1),
187
189
  t[3] || (t[3] = l("br", null, null, -1)),
188
190
  l("b", null, n(a(e)("settlements.dialog.info.transaction.count")), 1),
189
191
  d(": " + n(x.value.length), 1)
@@ -197,31 +199,31 @@ const ae = /* @__PURE__ */ w({
197
199
  ]),
198
200
  _: 1
199
201
  }),
200
- o(A, {
202
+ o(S, {
201
203
  horizontal: "",
202
204
  class: "flex-1 p-6 mx-6",
203
205
  variant: "elevated"
204
206
  }, {
205
- default: i(() => [
207
+ default: u(() => [
206
208
  o(p, { class: "flex flex-col gap-16 justify-between" }, {
207
- default: i(() => [
209
+ default: u(() => [
208
210
  o(b, {
209
211
  class: "p-0",
210
212
  title: a(e)("settlements.dialog.info.bank.title"),
211
213
  subtitle: ""
212
214
  }, null, 8, ["title"]),
213
215
  o(p, { class: "p-0" }, {
214
- default: i(() => {
216
+ default: u(() => {
215
217
  var r, m, c;
216
218
  return [
217
219
  l("b", null, n(a(e)("settlements.dialog.info.bank.for")), 1),
218
- d(": " + n((r = u.value) == null ? void 0 : r.beneficiaryBank.name), 1),
220
+ d(": " + n((r = i.value) == null ? void 0 : r.beneficiaryBank.name), 1),
219
221
  t[4] || (t[4] = l("br", null, null, -1)),
220
222
  l("b", null, n(a(e)("settlements.dialog.info.bank.name")), 1),
221
- d(": " + n((m = u.value) == null ? void 0 : m.beneficiaryBank.holderName), 1),
223
+ d(": " + n((m = i.value) == null ? void 0 : m.beneficiaryBank.holderName), 1),
222
224
  t[5] || (t[5] = l("br", null, null, -1)),
223
225
  l("b", null, n(a(e)("settlements.dialog.info.bank.number")), 1),
224
- d(": " + n((c = u.value) == null ? void 0 : c.beneficiaryBank.accountNumber), 1)
226
+ d(": " + n((c = i.value) == null ? void 0 : c.beneficiaryBank.accountNumber), 1)
225
227
  ];
226
228
  }),
227
229
  _: 1
@@ -232,31 +234,31 @@ const ae = /* @__PURE__ */ w({
232
234
  ]),
233
235
  _: 1
234
236
  }),
235
- o(A, {
237
+ o(S, {
236
238
  horizontal: "",
237
239
  class: "flex-1 p-6",
238
240
  variant: "elevated"
239
241
  }, {
240
- default: i(() => [
242
+ default: u(() => [
241
243
  o(p, { class: "flex flex-col gap-16 justify-between" }, {
242
- default: i(() => [
244
+ default: u(() => [
243
245
  o(b, {
244
246
  class: "p-0",
245
247
  title: a(e)("settlements.dialog.info.payout.title"),
246
248
  subtitle: ""
247
249
  }, null, 8, ["title"]),
248
250
  o(p, { class: "p-0" }, {
249
- default: i(() => {
251
+ default: u(() => {
250
252
  var r, m, c;
251
253
  return [
252
254
  l("b", null, n(a(e)("settlements.dialog.info.payout.amount")), 1),
253
- d(": " + n(a(E)((r = u.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
255
+ d(": " + n(a(E)((r = i.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
254
256
  t[6] || (t[6] = l("br", null, null, -1)),
255
257
  l("b", null, n(a(e)("settlements.dialog.info.payout.fee")), 1),
256
- d(": " + n(a(E)((m = u.value) == null ? void 0 : m.totalFee).toFormat("$0.00")), 1),
258
+ d(": " + n(a(E)((m = i.value) == null ? void 0 : m.totalFee).toFormat("$0.00")), 1),
257
259
  t[7] || (t[7] = l("br", null, null, -1)),
258
260
  l("b", null, n(a(e)("settlements.dialog.info.payout.payout")), 1),
259
- d(": " + n(a(E)((c = u.value) == null ? void 0 : c.totalPayout).toFormat("$0.00")), 1)
261
+ d(": " + n(a(E)((c = i.value) == null ? void 0 : c.totalPayout).toFormat("$0.00")), 1)
260
262
  ];
261
263
  }),
262
264
  _: 1
@@ -268,28 +270,28 @@ const ae = /* @__PURE__ */ w({
268
270
  _: 1
269
271
  })
270
272
  ]),
271
- l("div", ie, [
272
- o(D, {
273
+ l("div", de, [
274
+ o(U, {
273
275
  modelValue: y.value,
274
276
  "onUpdate:modelValue": t[0] || (t[0] = (r) => y.value = r),
275
277
  placeholder: a(e)("settlements.dialog.search")
276
278
  }, null, 8, ["modelValue", "placeholder"])
277
279
  ]),
278
280
  o(j, {
279
- modelValue: K.value,
280
- "onUpdate:modelValue": t[1] || (t[1] = (r) => K.value = r),
281
+ modelValue: $.value,
282
+ "onUpdate:modelValue": t[1] || (t[1] = (r) => $.value = r),
281
283
  "shrink-at": !1,
282
284
  "search-value": y.value,
283
285
  "row-data": N.value,
284
- "column-defs": U,
286
+ "column-defs": P,
285
287
  loading: a(h)
286
288
  }, null, 8, ["modelValue", "search-value", "row-data", "loading"])
287
289
  ]),
288
290
  _: 1
289
- }, 8, ["title", "loading", "onBack"]);
291
+ }, 8, ["title", "description", "loading", "onBack"]);
290
292
  };
291
293
  }
292
294
  });
293
295
  export {
294
- be as default
296
+ xe as default
295
297
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as z, ref as I, onUpdated as oe, h as M, onMounted as he, Fragment as ie, openBlock as N, createElementBlock as G, createElementVNode as A, createTextVNode as ee, toDisplayString as se, createVNode as k, resolveComponent as _, normalizeClass as me, withCtx as q, createBlock as D, createCommentVNode as V, computed as pe, unref as P, watch as te, isRef as ge } from "vue";
2
- import { e as Ce } from "./index-EJS3NJlp.js";
2
+ import { e as Ce } from "./index-DjrHDthD.js";
3
3
  import { h as ye } from "./moment-h96o7c8I.js";
4
- import { u as we } from "./index-ClUkVJXR.js";
5
- import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-BHvwhRYU.js";
4
+ import { u as we } from "./index-DXrfVp2-.js";
5
+ import { _ as Ee } from "./index.vue_vue_type_script_setup_true_lang-BL_w1CP7.js";
6
6
  import { _ as Me } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
7
  import { useSnackbar as W, useDialogChild as Re, useDialog as Ae } from "@feedmepos/ui-library";
8
- import { t as Q } from "./index-Yd0Q7mxR.js";
8
+ import { t as Q } from "./index-C13NEGId.js";
9
9
  import { c as le } from "./clipboard-4jh1WteU.js";
10
10
  import { useCoreStore as ue } from "@feedmepos/mf-common";
11
- import { g as Se } from "./grafana-B-ZEJ__-.js";
11
+ import { g as Se } from "./grafana-ByGWVKk3.js";
12
12
  import { u as Y } from "./error-K1CakhA9.js";
13
13
  import { z as re, a as ne } from "./validator-D5jtpt9A.js";
14
14
  import { w as ae } from "./Modal-DB8M9o1T.js";