@feedmepos/mf-payment 1.1.9 → 1.1.10

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 (32) hide show
  1. package/dist/{PayoutAccount-BuYnCwX0.js → PayoutAccount-DS8uWdg6.js} +152 -152
  2. package/dist/{PayoutAccount-D-UAfJmx.js → PayoutAccount-DYaDyUv-.js} +5 -5
  3. package/dist/{PayoutAccountSetting-P3EEdPd8.js → PayoutAccountSetting-CaWSuWfP.js} +3 -3
  4. package/dist/{Restaurant-DVfQgRDa.js → Restaurant-DQVYjNCS.js} +4 -4
  5. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js} +6 -6
  6. package/dist/{RestaurantSetting-v4X04iUd.js → RestaurantSetting-CIIbhon-.js} +3 -3
  7. package/dist/{Settlement-B7E4lpuy.js → Settlement-B1Wxz1Ud.js} +3 -3
  8. package/dist/{Settlement-BvOHdyd-.js → Settlement-BYpA6n3I.js} +92 -92
  9. package/dist/{SettlementTransactions-C_QiVAAT.js → SettlementTransactions-Cn894u3m.js} +82 -82
  10. package/dist/{SettlementTransactions-XWF6lcgO.js → SettlementTransactions-SPDIlLfj.js} +3 -3
  11. package/dist/{Terminal-uiqG_SS0.js → Terminal-DwRmKAkV.js} +5 -5
  12. package/dist/{TerminalSetting-BZ13kPwS.js → TerminalSetting-BXjGS7gr.js} +3 -3
  13. package/dist/{Transaction-Do-cIw77.js → Transaction-CZXLiiK_.js} +36 -36
  14. package/dist/{Transaction-73ONBoa8.js → Transaction-DfCzQWjl.js} +5 -5
  15. package/dist/{TransactionOld-CImEq3E_.js → TransactionOld-V05PFuAs.js} +14 -14
  16. package/dist/{TransactionTable.vue_vue_type_script_setup_true_lang-Ba83O4G-.js → TransactionTable.vue_vue_type_script_setup_true_lang-pP3veVBQ.js} +16 -16
  17. package/dist/{app-BboGv5bA.js → app-Cwh0hT_9.js} +693 -689
  18. package/dist/app.d.ts +242 -238
  19. package/dist/app.js +1 -1
  20. package/dist/{assets-SBx-FS2c.js → assets-A_2acaHr.js} +1 -1
  21. package/dist/{grafana-DKPCmS74.js → grafana-S2Pyvvsb.js} +1 -1
  22. package/dist/{index-BMI-n_D8.js → index-B45raqGN.js} +1455 -1455
  23. package/dist/{index-Cc3tk2uy.js → index-BO9tnr5e.js} +1 -1
  24. package/dist/{index-DitA7AGz.js → index-DRMgFTyD.js} +1 -1
  25. package/dist/{index-CUXRAwm_.js → index-DlkaQaXu.js} +1 -1
  26. package/dist/{index-DChD3CMr.js → index-Dwo99xiS.js} +1 -1
  27. package/dist/{index-DNVOx0Qk.js → index-nh9QzbMv.js} +1 -1
  28. package/dist/{index.vue_vue_type_script_setup_true_lang-Bk00_8Zw.js → index.vue_vue_type_script_setup_true_lang-_ttdMw6x.js} +1 -1
  29. package/dist/package.json +1 -1
  30. package/dist/{payout-account-DEWX726j.js → payout-account-CqkVIkNF.js} +2 -2
  31. package/dist/tsconfig.app.tsbuildinfo +1 -1
  32. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as y, resolveComponent as u, openBlock as h, createBlock as k, normalizeClass as N, withCtx as c, createElementVNode as P, toDisplayString as I, createVNode as i, computed as x, ref as S, watch as F, unref as r, isRef as f, h as v } from "vue";
2
- import { u as O } from "./index-DChD3CMr.js";
3
- import { _ as K } from "./index-BMI-n_D8.js";
2
+ import { u as O } from "./index-Dwo99xiS.js";
3
+ import { _ as K } from "./index-B45raqGN.js";
4
4
  import { _ as A } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
- import { P as V } from "./payout-account-DEWX726j.js";
6
- import { p as D } from "./index-Cc3tk2uy.js";
5
+ import { P as V } from "./payout-account-CqkVIkNF.js";
6
+ import { p as D } from "./index-BO9tnr5e.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-Bk00_8Zw.js";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-_ttdMw6x.js";
9
9
  import { useRouter as U } from "vue-router";
10
10
  import { _ as $ } from "./SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js";
11
11
  const G = /* @__PURE__ */ y({
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as k, resolveComponent as y, openBlock as b, createElementBlock as A, Fragment as $, createElementVNode as l, createVNode as s, withCtx as F, createTextVNode as _, toDisplayString as h, createCommentVNode as S, createBlock as C, ref as V, watch as L, computed as G, unref as v, isRef as M, h as B, onMounted as H, resolveDynamicComponent as Y, normalizeProps as Q, mergeProps as W } from "vue";
2
- import { p as P } from "./index-Cc3tk2uy.js";
3
- import { u as K, e as N } from "./index-BMI-n_D8.js";
2
+ import { p as P } from "./index-BO9tnr5e.js";
3
+ import { u as K, e as N } from "./index-B45raqGN.js";
4
4
  import { _ as J } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
5
  import { useRouter as X } from "vue-router";
6
- import { u as D } from "./index-DChD3CMr.js";
6
+ import { u as D } from "./index-Dwo99xiS.js";
7
7
  import { P as z, _ as ee } from "./PDFViewer-BQfgFexr.js";
8
8
  import { useSnackbar as j, components as te } from "@feedmepos/ui-library";
9
9
  import { u as I } from "./error-K1CakhA9.js";
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as F, ref as y, resolveComponent as g, openBlock as x, createBlock as A, withCtx as $, createVNode as f, createElementVNode as d, normalizeStyle as T, createElementBlock as R, Fragment as z, renderList as q, computed as C, watch as I, onMounted as N, unref as h, toDisplayString as B, normalizeClass as W, isRef as E, h as P } from "vue";
2
- import { u as O } from "./index-DChD3CMr.js";
2
+ import { u as O } from "./index-Dwo99xiS.js";
3
3
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
4
4
  import "@feedmepos/ui-library";
5
- import { u as G } from "./index-BMI-n_D8.js";
5
+ import { u as G } from "./index-B45raqGN.js";
6
6
  import { _ as Q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
7
- import { r as H } from "./index-DNVOx0Qk.js";
7
+ import { r as H } from "./index-nh9QzbMv.js";
8
8
  import { useRouter as J } from "vue-router";
9
- import { g as X } from "./grafana-DKPCmS74.js";
9
+ import { g as X } from "./grafana-S2Pyvvsb.js";
10
10
  const Y = ["id"], L = /* @__PURE__ */ F({
11
11
  __name: "FmTableSelection",
12
12
  props: {
@@ -1,4 +1,4 @@
1
- import { defineComponent as i, computed as l, resolveComponent as d, openBlock as _, createBlock as v, unref as a } from "vue";
1
+ import { defineComponent as i, computed as l, resolveComponent as d, openBlock as _, createBlock as v, unref as o } from "vue";
2
2
  import { useCoreStore as f, useI18n as S } from "@feedmepos/mf-common";
3
3
  const V = /* @__PURE__ */ i({
4
4
  __name: "RestaurantSelector",
@@ -13,13 +13,13 @@ const V = /* @__PURE__ */ i({
13
13
  return (e, n) => {
14
14
  const m = d("FmSelect");
15
15
  return _(), v(m, {
16
- label: a(s)("components.restaurant"),
16
+ label: o(s)("payment.components.restaurant"),
17
17
  modelValue: r.value,
18
18
  "onUpdate:modelValue": [
19
- n[0] || (n[0] = (o) => r.value = o),
20
- n[1] || (n[1] = (o) => {
21
- const p = a(t).restaurants.value.find((c) => c._id == o);
22
- a(t).changeRestaurant(p);
19
+ n[0] || (n[0] = (a) => r.value = a),
20
+ n[1] || (n[1] = (a) => {
21
+ const p = o(t).restaurants.value.find((c) => c._id == a);
22
+ o(t).changeRestaurant(p);
23
23
  })
24
24
  ],
25
25
  class: "w-[220px]",
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as C, ref as I, resolveComponent as d, openBlock as f, createBlock as F, withCtx as k, createVNode as u, unref as a, createElementVNode as D, createCommentVNode as S, onMounted as P, computed as q, createElementBlock as K, Fragment as M, resolveDynamicComponent as O, normalizeProps as $, mergeProps as B, isRef as N } from "vue";
2
- import { g as T, b as R, u as E, e as U } from "./index-BMI-n_D8.js";
2
+ import { g as T, b as R, u as E, e as U } from "./index-B45raqGN.js";
3
3
  import { _ as Y } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
4
4
  import { useRouter as A } from "vue-router";
5
- import { u as L } from "./index-DChD3CMr.js";
5
+ import { u as L } from "./index-Dwo99xiS.js";
6
6
  import { z as p, a as v } from "./validator-D5jtpt9A.js";
7
7
  import { useCoreStore as j } from "@feedmepos/mf-common";
8
- import { r as z } from "./index-DNVOx0Qk.js";
8
+ import { r as z } from "./index-nh9QzbMv.js";
9
9
  const _ = {
10
10
  async get(n) {
11
11
  return T(
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as M, ref as h, computed as T, resolveComponent as d, openBlock as F, createBlock as Y, h as E, watch as C, onMounted as L, unref as r, withCtx as g, createElementVNode as k, createVNode as i, isRef as R, createElementBlock as N, Fragment as O, renderList as P } from "vue";
2
- import { u as A } from "./index-BMI-n_D8.js";
2
+ import { u as A } from "./index-B45raqGN.js";
3
3
  import { h as S } from "./moment-h96o7c8I.js";
4
- import { s as _ } from "./index-CUXRAwm_.js";
4
+ import { s as _ } from "./index-DlkaQaXu.js";
5
5
  import { useSnackbar as U } from "@feedmepos/ui-library";
6
6
  import { d as w } from "./dinero-CIVmXLL-.js";
7
7
  import { _ as q } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
8
8
  import { useRouter as J } from "vue-router";
9
9
  import { _ as j } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as z } from "./index-DChD3CMr.js";
10
+ import { u as z } from "./index-Dwo99xiS.js";
11
11
  import { u as G } from "./error-K1CakhA9.js";
12
12
  import { _ as Q } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
13
  import "@feedmepos/mf-common";
@@ -1,16 +1,16 @@
1
- import { defineComponent as C, ref as k, computed as R, resolveComponent as w, openBlock as V, createBlock as D, h as T, watch as P, createElementBlock as U, Fragment as q, createElementVNode as r, createVNode as u, withCtx as _, unref as t, toDisplayString as m, createTextVNode as v, onMounted as O, isRef as M, createCommentVNode as N } from "vue";
2
- import { u as z } from "./index-BMI-n_D8.js";
1
+ import { defineComponent as C, ref as k, computed as R, resolveComponent as w, openBlock as V, createBlock as D, h as T, watch as P, createElementBlock as U, Fragment as q, createElementVNode as m, createVNode as u, withCtx as _, unref as t, toDisplayString as r, createTextVNode as v, onMounted as O, isRef as M, createCommentVNode as N } from "vue";
2
+ import { u as z } from "./index-B45raqGN.js";
3
3
  import { h as $ } from "./moment-h96o7c8I.js";
4
4
  import { useI18n as K, useCoreStore as E } from "@feedmepos/mf-common";
5
5
  import { _ as H } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { s as A } from "./index-CUXRAwm_.js";
6
+ import { s as A } from "./index-DlkaQaXu.js";
7
7
  import { useDialog as I } from "@feedmepos/ui-library";
8
8
  import { d } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as B } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
10
10
  import { useRouter as L } from "vue-router";
11
- import { u as J } from "./index-DChD3CMr.js";
11
+ import { u as J } from "./index-Dwo99xiS.js";
12
12
  import { _ as Q } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
- import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-hJAJYKmE.js";
13
+ import { _ as W } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-DyLnqQYe.js";
14
14
  import { _ as G } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
15
15
  const X = /* @__PURE__ */ C({
16
16
  __name: "SettlementTable",
@@ -25,38 +25,38 @@ const X = /* @__PURE__ */ C({
25
25
  }
26
26
  },
27
27
  emits: ["row-click"],
28
- setup(c, { emit: o }) {
29
- const { t: l } = K(), s = c, p = o, y = k(""), h = [
28
+ setup(c, { emit: n }) {
29
+ const { t: l } = K(), s = c, f = n, y = k(""), h = [
30
30
  {
31
- header: () => l("settlements.table.id"),
31
+ header: () => l("payment.settlements.table.id"),
32
32
  accessorKey: "id",
33
33
  cell: ({ cell: a }) => T(B, { data: a.getValue() })
34
34
  },
35
35
  {
36
- header: () => l("settlements.table.bank"),
36
+ header: () => l("payment.settlements.table.bank"),
37
37
  accessorKey: "bank"
38
38
  },
39
39
  {
40
- header: () => l("settlements.table.account"),
40
+ header: () => l("payment.settlements.table.account"),
41
41
  accessorKey: "accountNo"
42
42
  },
43
43
  {
44
- header: () => l("settlements.table.created_at"),
44
+ header: () => l("payment.settlements.table.created_at"),
45
45
  accessorKey: "transactionAt",
46
46
  meta: {
47
47
  width: "180px"
48
48
  }
49
49
  },
50
50
  {
51
- header: () => l("settlements.table.sales_amount"),
51
+ header: () => l("payment.settlements.table.sales_amount"),
52
52
  accessorKey: "amount"
53
53
  },
54
54
  {
55
- header: () => l("settlements.table.fee"),
55
+ header: () => l("payment.settlements.table.fee"),
56
56
  accessorKey: "fee"
57
57
  },
58
58
  {
59
- header: () => l("settlements.table.settlement_amount"),
59
+ header: () => l("payment.settlements.table.settlement_amount"),
60
60
  accessorKey: "payout"
61
61
  }
62
62
  ], b = R(() => s.data.map((a) => ({
@@ -69,15 +69,15 @@ const X = /* @__PURE__ */ C({
69
69
  payout: d(a.totalPayout).toFormat("$0.00")
70
70
  })));
71
71
  return (a, e) => {
72
- const n = w("FmTable");
73
- return V(), D(n, {
72
+ const o = w("FmTable");
73
+ return V(), D(o, {
74
74
  modelValue: y.value,
75
75
  "onUpdate:modelValue": e[0] || (e[0] = (i) => y.value = i),
76
76
  "row-data": b.value,
77
77
  "shrink-at": !1,
78
78
  "column-defs": h,
79
79
  loading: s.loading,
80
- onRowClick: e[1] || (e[1] = (i) => p("row-click", s.data.at(i.index)))
80
+ onRowClick: e[1] || (e[1] = (i) => f("row-click", s.data.at(i.index)))
81
81
  }, null, 8, ["modelValue", "row-data", "loading"]);
82
82
  };
83
83
  }
@@ -94,38 +94,38 @@ const X = /* @__PURE__ */ C({
94
94
  }
95
95
  },
96
96
  emits: ["row-click"],
97
- setup(c, { emit: o }) {
98
- const { t: l } = K(), s = c, p = o, y = k(""), h = [
97
+ setup(c, { emit: n }) {
98
+ const { t: l } = K(), s = c, f = n, y = k(""), h = [
99
99
  {
100
- header: () => l("settlements.table.id"),
100
+ header: () => l("payment.settlements.table.id"),
101
101
  accessorKey: "id",
102
102
  cell: ({ cell: a }) => T(B, { data: a.getValue() })
103
103
  },
104
104
  {
105
- header: () => l("settlements.table.bank"),
105
+ header: () => l("payment.settlements.table.bank"),
106
106
  accessorKey: "bank"
107
107
  },
108
108
  {
109
- header: () => l("settlements.table.account"),
109
+ header: () => l("payment.settlements.table.account"),
110
110
  accessorKey: "accountNo"
111
111
  },
112
112
  {
113
- header: () => l("settlements.table.created_at"),
113
+ header: () => l("payment.settlements.table.created_at"),
114
114
  accessorKey: "transactionAt",
115
115
  meta: {
116
116
  width: "180px"
117
117
  }
118
118
  },
119
119
  {
120
- header: () => l("settlements.table.sales_amount"),
120
+ header: () => l("payment.settlements.table.sales_amount"),
121
121
  accessorKey: "amount"
122
122
  },
123
123
  {
124
- header: () => l("settlements.table.fee"),
124
+ header: () => l("payment.settlements.table.fee"),
125
125
  accessorKey: "fee"
126
126
  },
127
127
  {
128
- header: () => l("settlements.table.settlement_amount"),
128
+ header: () => l("payment.settlements.table.settlement_amount"),
129
129
  accessorKey: "payout"
130
130
  }
131
131
  ], b = R(() => s.data.map((a) => ({
@@ -138,15 +138,15 @@ const X = /* @__PURE__ */ C({
138
138
  payout: d(a.summary.payout).toFormat("$0.00")
139
139
  })));
140
140
  return (a, e) => {
141
- const n = w("FmTable");
142
- return V(), D(n, {
141
+ const o = w("FmTable");
142
+ return V(), D(o, {
143
143
  modelValue: y.value,
144
144
  "onUpdate:modelValue": e[0] || (e[0] = (i) => y.value = i),
145
145
  "row-data": b.value,
146
146
  "shrink-at": !1,
147
147
  "column-defs": h,
148
148
  loading: s.loading,
149
- onRowClick: e[1] || (e[1] = (i) => p("row-click", s.data.at(i.index)))
149
+ onRowClick: e[1] || (e[1] = (i) => f("row-click", s.data.at(i.index)))
150
150
  }, null, 8, ["modelValue", "row-data", "loading"]);
151
151
  };
152
152
  }
@@ -162,23 +162,23 @@ const X = /* @__PURE__ */ C({
162
162
  }
163
163
  },
164
164
  setup(c) {
165
- const { t: o } = K(), s = k(
165
+ const { t: n } = K(), s = k(
166
166
  c.settlement.record.map((e) => (Object.assign(e, {
167
167
  __localAmount: d(e.amount).toFormat("0.00"),
168
168
  __localComission: d(e.commission).toFormat("0.00"),
169
169
  __localNetAMount: d(e.netAmount).toFormat("0.00")
170
170
  }), e))
171
- ), p = k(s.value), y = k(""), h = [
171
+ ), f = k(s.value), y = k(""), h = [
172
172
  {
173
- header: () => o("settlements.dialog.fiuu.id"),
173
+ header: () => n("payment.settlements.dialog.fiuu.id"),
174
174
  accessorKey: "referenceNo"
175
175
  },
176
176
  {
177
- header: () => o("settlements.dialog.fiuu.type"),
177
+ header: () => n("payment.settlements.dialog.fiuu.type"),
178
178
  accessorKey: "group"
179
179
  },
180
180
  {
181
- header: () => o("settlements.dialog.fiuu.transaction_at"),
181
+ header: () => n("payment.settlements.dialog.fiuu.transaction_at"),
182
182
  accessorKey: "completedAt",
183
183
  meta: {
184
184
  width: "180px"
@@ -186,17 +186,17 @@ const X = /* @__PURE__ */ C({
186
186
  cell: ({ cell: e }) => $(e.getValue()).format("YYYY-MM-DD HH:mm:ss")
187
187
  },
188
188
  {
189
- header: () => o("settlements.dialog.fiuu.sales_amount"),
189
+ header: () => n("payment.settlements.dialog.fiuu.sales_amount"),
190
190
  accessorKey: "amount",
191
191
  cell: ({ cell: e }) => d(e.getValue()).toFormat("$0.00")
192
192
  },
193
193
  {
194
- header: () => o("settlements.dialog.fiuu.fee"),
194
+ header: () => n("payment.settlements.dialog.fiuu.fee"),
195
195
  accessorKey: "commission",
196
196
  cell: ({ cell: e }) => d(e.getValue()).toFormat("$0.00")
197
197
  },
198
198
  {
199
- header: () => o("settlements.dialog.fiuu.settlement_amount"),
199
+ header: () => n("payment.settlements.dialog.fiuu.settlement_amount"),
200
200
  accessorKey: "netAmount",
201
201
  cell: ({ cell: e }) => d(e.getValue()).toFormat("$0.00")
202
202
  }
@@ -205,15 +205,15 @@ const X = /* @__PURE__ */ C({
205
205
  return P(b, async () => {
206
206
  a && clearTimeout(a), a = setTimeout(() => {
207
207
  var e = new RegExp(b.value, "i");
208
- p.value = s.value.filter((n) => {
209
- const i = JSON.stringify(n);
208
+ f.value = s.value.filter((o) => {
209
+ const i = JSON.stringify(o);
210
210
  return e.test(i);
211
211
  });
212
212
  }, 700);
213
- }), (e, n) => {
213
+ }), (e, o) => {
214
214
  const i = w("FmCardHeader"), F = w("FmCardSection"), x = w("FmCard"), S = w("FmSearch"), g = w("FmTable");
215
215
  return V(), U(q, null, [
216
- r("div", ee, [
216
+ m("div", ee, [
217
217
  u(x, {
218
218
  horizontal: "",
219
219
  class: "flex-1 p-6",
@@ -224,19 +224,19 @@ const X = /* @__PURE__ */ C({
224
224
  default: _(() => [
225
225
  u(i, {
226
226
  class: "p-0",
227
- title: t(o)("settlements.dialog.info.transaction.title"),
227
+ title: t(n)("payment.settlements.dialog.info.transaction.title"),
228
228
  subtitle: ""
229
229
  }, null, 8, ["title"]),
230
230
  u(F, { class: "p-0" }, {
231
231
  default: _(() => [
232
- r("b", null, m(t(o)("settlements.dialog.info.transaction.for")), 1),
233
- v(": " + m(c.settlement.summary.group) + " ", 1),
234
- n[2] || (n[2] = r("br", null, null, -1)),
235
- r("b", null, m(t(o)("settlements.dialog.info.transaction.reference")), 1),
236
- v(": " + m(c.settlement.summary.referenceNo), 1),
237
- n[3] || (n[3] = r("br", null, null, -1)),
238
- r("b", null, m(t(o)("settlements.dialog.info.transaction.count")), 1),
239
- v(": " + m(s.value.length), 1)
232
+ m("b", null, r(t(n)("payment.settlements.dialog.info.transaction.for")), 1),
233
+ v(": " + r(c.settlement.summary.group) + " ", 1),
234
+ o[2] || (o[2] = m("br", null, null, -1)),
235
+ m("b", null, r(t(n)("payment.settlements.dialog.info.transaction.reference")), 1),
236
+ v(": " + r(c.settlement.summary.referenceNo), 1),
237
+ o[3] || (o[3] = m("br", null, null, -1)),
238
+ m("b", null, r(t(n)("payment.settlements.dialog.info.transaction.count")), 1),
239
+ v(": " + r(s.value.length), 1)
240
240
  ]),
241
241
  _: 1
242
242
  })
@@ -256,19 +256,19 @@ const X = /* @__PURE__ */ C({
256
256
  default: _(() => [
257
257
  u(i, {
258
258
  class: "p-0",
259
- title: t(o)("settlements.dialog.info.bank.title"),
259
+ title: t(n)("payment.settlements.dialog.info.bank.title"),
260
260
  subtitle: ""
261
261
  }, null, 8, ["title"]),
262
262
  u(F, { class: "p-0" }, {
263
263
  default: _(() => [
264
- r("b", null, m(t(o)("settlements.dialog.info.bank.for")), 1),
265
- v(": " + m(c.settlement.summary.bank.name), 1),
266
- n[4] || (n[4] = r("br", null, null, -1)),
267
- r("b", null, m(t(o)("settlements.dialog.info.bank.name")), 1),
268
- v(": " + m(c.settlement.summary.bank.holderName), 1),
269
- n[5] || (n[5] = r("br", null, null, -1)),
270
- r("b", null, m(t(o)("settlements.dialog.info.bank.number")), 1),
271
- v(": " + m(c.settlement.summary.bank.accountNo), 1)
264
+ m("b", null, r(t(n)("payment.settlements.dialog.info.bank.for")), 1),
265
+ v(": " + r(c.settlement.summary.bank.name), 1),
266
+ o[4] || (o[4] = m("br", null, null, -1)),
267
+ m("b", null, r(t(n)("payment.settlements.dialog.info.bank.name")), 1),
268
+ v(": " + r(c.settlement.summary.bank.holderName), 1),
269
+ o[5] || (o[5] = m("br", null, null, -1)),
270
+ m("b", null, r(t(n)("payment.settlements.dialog.info.bank.number")), 1),
271
+ v(": " + r(c.settlement.summary.bank.accountNo), 1)
272
272
  ]),
273
273
  _: 1
274
274
  })
@@ -288,19 +288,19 @@ const X = /* @__PURE__ */ C({
288
288
  default: _(() => [
289
289
  u(i, {
290
290
  class: "p-0",
291
- title: t(o)("settlements.dialog.info.payout.title"),
291
+ title: t(n)("payment.settlements.dialog.info.payout.title"),
292
292
  subtitle: ""
293
293
  }, null, 8, ["title"]),
294
294
  u(F, { class: "p-0" }, {
295
295
  default: _(() => [
296
- r("b", null, m(t(o)("settlements.dialog.info.payout.amount")), 1),
297
- v(": " + m(t(d)(c.settlement.summary.amount).toFormat("$0.00")), 1),
298
- n[6] || (n[6] = r("br", null, null, -1)),
299
- r("b", null, m(t(o)("settlements.dialog.info.payout.fee")), 1),
300
- v(": " + m(t(d)(c.settlement.summary.commission).toFormat("$0.00")), 1),
301
- n[7] || (n[7] = r("br", null, null, -1)),
302
- r("b", null, m(t(o)("settlements.dialog.info.payout.payout")), 1),
303
- v(": " + m(t(d)(c.settlement.summary.payout).toFormat("$0.00")), 1)
296
+ m("b", null, r(t(n)("payment.settlements.dialog.info.payout.amount")), 1),
297
+ v(": " + r(t(d)(c.settlement.summary.amount).toFormat("$0.00")), 1),
298
+ o[6] || (o[6] = m("br", null, null, -1)),
299
+ m("b", null, r(t(n)("payment.settlements.dialog.info.payout.fee")), 1),
300
+ v(": " + r(t(d)(c.settlement.summary.commission).toFormat("$0.00")), 1),
301
+ o[7] || (o[7] = m("br", null, null, -1)),
302
+ m("b", null, r(t(n)("payment.settlements.dialog.info.payout.payout")), 1),
303
+ v(": " + r(t(d)(c.settlement.summary.payout).toFormat("$0.00")), 1)
304
304
  ]),
305
305
  _: 1
306
306
  })
@@ -311,34 +311,34 @@ const X = /* @__PURE__ */ C({
311
311
  _: 1
312
312
  })
313
313
  ]),
314
- r("div", te, [
314
+ m("div", te, [
315
315
  u(S, {
316
316
  modelValue: b.value,
317
- "onUpdate:modelValue": n[0] || (n[0] = (f) => b.value = f),
318
- placeholder: t(o)("settlements.dialog.search")
317
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => b.value = p),
318
+ placeholder: t(n)("payment.settlements.dialog.search")
319
319
  }, null, 8, ["modelValue", "placeholder"])
320
320
  ]),
321
321
  u(g, {
322
322
  modelValue: y.value,
323
- "onUpdate:modelValue": n[1] || (n[1] = (f) => y.value = f),
323
+ "onUpdate:modelValue": o[1] || (o[1] = (p) => y.value = p),
324
324
  "shrink-at": !1,
325
325
  "search-value": b.value,
326
- "row-data": p.value,
326
+ "row-data": f.value,
327
327
  "column-defs": h
328
328
  }, null, 8, ["modelValue", "search-value", "row-data"])
329
329
  ], 64);
330
330
  };
331
331
  }
332
- }), oe = { class: "flex justify-between items-center mb-6" }, ne = { class: "flex space-x-8 items-center" }, le = { class: "flex space-x-4 self-center" }, se = { class: "mb-6" }, re = { class: "mb-6" }, ke = /* @__PURE__ */ C({
332
+ }), ne = { class: "flex justify-between items-center mb-6" }, oe = { class: "flex space-x-8 items-center" }, le = { class: "flex space-x-4 self-center" }, se = { class: "mb-6" }, me = { class: "mb-6" }, ke = /* @__PURE__ */ C({
333
333
  __name: "Settlement",
334
334
  setup(c) {
335
- const o = L(), { tab: l, dateRange: s } = J({
335
+ const n = L(), { tab: l, dateRange: s } = J({
336
336
  tab: "feedme",
337
337
  dateRange: {
338
338
  startDate: $().startOf("day").format("YYYY-MM-DD"),
339
339
  endDate: $().endOf("day").format("YYYY-MM-DD")
340
340
  }
341
- }), { t: p } = K(), { isLoading: y, startAsyncCall: h } = z(!0), { currentRestaurant: b } = E(), a = I(), e = k([]), n = k([]);
341
+ }), { t: f } = K(), { isLoading: y, startAsyncCall: h } = z(!0), { currentRestaurant: b } = E(), a = I(), e = k([]), o = k([]);
342
342
  async function i() {
343
343
  const g = await A.readRestaurantSettlements(
344
344
  {
@@ -355,7 +355,7 @@ const X = /* @__PURE__ */ C({
355
355
  end: s.value.endDate
356
356
  }
357
357
  );
358
- n.value = g;
358
+ o.value = g;
359
359
  }
360
360
  async function x() {
361
361
  await h(async () => Promise.all([
@@ -364,29 +364,29 @@ const X = /* @__PURE__ */ C({
364
364
  ]));
365
365
  }
366
366
  async function S(g) {
367
- const f = $(g.summary.completedAt).format("YYYY/MM/DD");
367
+ const p = $(g.summary.completedAt).format("YYYY/MM/DD");
368
368
  a.open({
369
- title: `${p("settlements.dialog.title")} (${g.summary.referenceNo})`,
370
- subTitle: `${p("settlements.dialog.date")}: ${f}`,
369
+ title: `${f("payment.settlements.dialog.title")} (${g.summary.referenceNo})`,
370
+ subTitle: `${f("payment.settlements.dialog.date")}: ${p}`,
371
371
  minWidth: "90%",
372
372
  primaryActions: { text: "Close", close: !0 },
373
373
  contentComponent: ae,
374
374
  contentComponentProps: { settlement: g }
375
375
  });
376
376
  }
377
- return O(x), P([b, s], x), (g, f) => {
377
+ return O(x), P([b, s], x), (g, p) => {
378
378
  const j = w("FmTabs");
379
379
  return V(), D(H, {
380
- title: t(p)("settlements.title"),
381
- description: t(p)("settlements.description"),
380
+ title: t(f)("payment.settlements.title"),
381
+ description: t(f)("payment.settlements.description"),
382
382
  loading: !1
383
383
  }, {
384
384
  default: _(() => [
385
- r("div", oe, [
386
- r("div", ne, [
385
+ m("div", ne, [
386
+ m("div", oe, [
387
387
  u(W)
388
388
  ]),
389
- r("div", le, [
389
+ m("div", le, [
390
390
  u(Q, {
391
391
  button: {
392
392
  appendIcon: "file_download",
@@ -402,16 +402,16 @@ const X = /* @__PURE__ */ C({
402
402
  }, null, 8, ["handler"])
403
403
  ])
404
404
  ]),
405
- r("div", se, [
405
+ m("div", se, [
406
406
  u(G, {
407
407
  modelValue: t(s),
408
- "onUpdate:modelValue": f[0] || (f[0] = (Y) => M(s) ? s.value = Y : null)
408
+ "onUpdate:modelValue": p[0] || (p[0] = (Y) => M(s) ? s.value = Y : null)
409
409
  }, null, 8, ["modelValue"])
410
410
  ]),
411
- r("div", re, [
411
+ m("div", me, [
412
412
  u(j, {
413
413
  modelValue: t(l),
414
- "onUpdate:modelValue": f[1] || (f[1] = (Y) => M(l) ? l.value = Y : null),
414
+ "onUpdate:modelValue": p[1] || (p[1] = (Y) => M(l) ? l.value = Y : null),
415
415
  items: [
416
416
  {
417
417
  label: "FeedMe",
@@ -429,14 +429,14 @@ const X = /* @__PURE__ */ C({
429
429
  t(l) === "fiuu" ? (V(), D(Z, {
430
430
  key: 0,
431
431
  loading: t(y),
432
- data: n.value,
432
+ data: o.value,
433
433
  onRowClick: S
434
434
  }, null, 8, ["loading", "data"])) : N("", !0),
435
435
  t(l) === "feedme" ? (V(), D(X, {
436
436
  key: 1,
437
437
  loading: t(y),
438
438
  data: e.value,
439
- onRowClick: f[2] || (f[2] = (Y) => t(o).push({
439
+ onRowClick: p[2] || (p[2] = (Y) => t(n).push({
440
440
  name: "mf-payment-settlement-transaction",
441
441
  params: {
442
442
  settlementId: Y._id