@feedmepos/mf-payment 1.0.0 → 1.0.1-beta.1

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 (98) hide show
  1. package/README.md +11 -1
  2. package/dist/{AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js → AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js} +8 -9
  3. package/dist/DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js +31 -0
  4. package/dist/PDFViewer-xrBtzrlR.js +22426 -0
  5. package/dist/{PayoutAccount-Dc1CYQ0W.js → PayoutAccount-CyVXI1Sx.js} +93 -83
  6. package/dist/{PayoutAccount-DZaKHWcy.js → PayoutAccount-DGUnImHC.js} +259 -258
  7. package/dist/{PayoutAccountSetting-BzmNuLFj.js → PayoutAccountSetting-BbtOFbsd.js} +161 -183
  8. package/dist/Restaurant-ewsvVw3P.js +262 -0
  9. package/dist/RestaurantSetting-BboKM1iG.js +389 -0
  10. package/dist/SelectAll.vue_vue_type_script_setup_true_lang-DA4rs3tk.js +42 -0
  11. package/dist/{Settlement-Bx3zAkIw.js → Settlement-DsJlFpCC.js} +41 -43
  12. package/dist/Settlement-Hr7jN3EL.js +145 -0
  13. package/dist/{SettlementTransactions-D_SVuKyR.js → SettlementTransactions-BncoGGQ3.js} +10 -10
  14. package/dist/{SettlementTransactions-AaYyTH96.js → SettlementTransactions-Bz9ZVYfq.js} +41 -41
  15. package/dist/{Terminal-68OQnhM3.js → Terminal-D-U0BVTe.js} +117 -103
  16. package/dist/TerminalSetting-JD3sbXOB.js +387 -0
  17. package/dist/TerminalTransaction-B5iY_F-3.js +261 -0
  18. package/dist/TerminalTransaction-DHmD5x8e.js +485 -0
  19. package/dist/{Transaction-a1VfiCP_.js → Transaction-BedQtv8p.js} +125 -127
  20. package/dist/Transaction-DA_TB9zD.js +238 -0
  21. package/dist/api/restaurant/index.d.ts +6 -0
  22. package/dist/{app-C9FRsUfb.js → app-CpyZU23J.js} +315 -285
  23. package/dist/app.js +1 -1
  24. package/dist/{assets-Bji7O2YD.js → assets-8c19wXSV.js} +22 -21
  25. package/dist/components/AdminLayout.vue.d.ts +8 -13
  26. package/dist/components/AutoCopyCell.vue.d.ts +3 -4
  27. package/dist/components/DateRangePicker.vue.d.ts +13 -0
  28. package/dist/components/Layout.vue.d.ts +8 -13
  29. package/dist/components/PDFViewer.vue.d.ts +1 -1
  30. package/dist/components/PagingTable/FmTableSelection.vue.d.ts +13 -0
  31. package/dist/components/PagingTable/index.vue.d.ts +48 -0
  32. package/dist/components/RouteCell.vue.d.ts +5 -6
  33. package/dist/components/SelectAll.vue.d.ts +57 -0
  34. package/dist/helpers/idToDate.d.ts +1 -1
  35. package/dist/{index-Bt_OgDYn.js → index-1fXAFo2E.js} +32176 -32166
  36. package/dist/index-BIXuzGa9.js +19 -0
  37. package/dist/{index-DBfZnaV1.js → index-Cb1zVhcH.js} +1 -1
  38. package/dist/{index-DSuZG0l6.js → index-DEpszFWF.js} +1 -1
  39. package/dist/{index-DjDGwRX8.js → index-DdJrUqkm.js} +1 -1
  40. package/dist/{index-CLYePgWW.js → index-DeU3Qyca.js} +1 -1
  41. package/dist/{index-_0TroOJr.js → index-DoAIw4wM.js} +1 -1
  42. package/dist/index-DsLFmVsY.js +28 -0
  43. package/dist/{index.vue_vue_type_script_setup_true_lang-Jlcg1hAB.js → index.vue_vue_type_script_setup_true_lang-GT2x04Bn.js} +64 -61
  44. package/dist/package.json +2 -2
  45. package/dist/{payout-account-BWcq7OJy.js → payout-account-BbheLTUt.js} +2 -2
  46. package/dist/router/index.d.ts +1 -0
  47. package/dist/stores/iframe.d.ts +1 -1
  48. package/dist/stores/payoutAccount.d.ts +1 -1
  49. package/dist/{transaction-DqrhM5jB.js → transaction-W49zE8RL.js} +26 -16
  50. package/dist/tsconfig.app.tsbuildinfo +1 -1
  51. package/dist/views/admin/payout-account/cell/Bank.vue.d.ts +3 -5
  52. package/dist/views/admin/payout-account/cell/IsActive.vue.d.ts +3 -5
  53. package/dist/views/admin/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
  54. package/dist/views/admin/payout-account/cell/RateInput.vue.d.ts +3 -5
  55. package/dist/views/admin/payout-account/cell/Status.vue.d.ts +3 -5
  56. package/dist/views/admin/payout-account/cell/TPlusInput.vue.d.ts +3 -5
  57. package/dist/views/admin/restaurant/Restaurant.vue.d.ts +2 -0
  58. package/dist/views/admin/restaurant/RestaurantSetting.vue.d.ts +12 -0
  59. package/dist/views/admin/restaurant/cell/IsActive.vue.d.ts +7 -0
  60. package/dist/views/admin/restaurant/tabs/PaymentGateway.vue.d.ts +803 -0
  61. package/dist/views/admin/restaurant/tabs/gateway/FiuuGateway.vue.d.ts +56 -0
  62. package/dist/views/admin/restaurant/tabs/gateway/GhlGateway.vue.d.ts +50 -0
  63. package/dist/views/admin/restaurant/tabs/gateway/RevenueMonsterGateway.vue.d.ts +52 -0
  64. package/dist/views/admin/settlement/cell/Actions.vue.d.ts +4 -6
  65. package/dist/views/admin/settlement/cell/Gateway.vue.d.ts +3 -5
  66. package/dist/views/admin/settlement/cell/Method.vue.d.ts +3 -5
  67. package/dist/views/admin/settlement/cell/Status.vue.d.ts +3 -5
  68. package/dist/views/admin/terminal/TerminalBindCodeDialog.vue.d.ts +1 -1
  69. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +7 -79
  70. package/dist/views/admin/terminal/cell/ID.vue.d.ts +3 -5
  71. package/dist/views/admin/terminal-transaction/cell/Actions.vue.d.ts +3 -4
  72. package/dist/views/admin/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
  73. package/dist/views/admin/terminal-transaction/cell/Status.vue.d.ts +3 -5
  74. package/dist/views/admin/terminal-transaction/cell/Timestamp.vue.d.ts +7 -0
  75. package/dist/views/admin/transaction/cell/Actions.vue.d.ts +3 -4
  76. package/dist/views/admin/transaction/cell/Gateway.vue.d.ts +3 -5
  77. package/dist/views/admin/transaction/cell/Method.vue.d.ts +3 -5
  78. package/dist/views/admin/transaction/cell/Status.vue.d.ts +3 -5
  79. package/dist/views/payout-account/cell/Bank.vue.d.ts +3 -5
  80. package/dist/views/payout-account/cell/IsActive.vue.d.ts +3 -5
  81. package/dist/views/payout-account/cell/PersonInCharge.vue.d.ts +3 -5
  82. package/dist/views/payout-account/cell/Status.vue.d.ts +3 -5
  83. package/dist/views/settlement/cell/Actions.vue.d.ts +4 -6
  84. package/dist/views/settlement/cell/Gateway.vue.d.ts +3 -5
  85. package/dist/views/settlement/cell/Method.vue.d.ts +3 -5
  86. package/dist/views/settlement/cell/Status.vue.d.ts +3 -5
  87. package/dist/views/terminal-transaction/cell/Gateway.vue.d.ts +3 -5
  88. package/dist/views/terminal-transaction/cell/Status.vue.d.ts +3 -5
  89. package/dist/views/transaction/cell/Gateway.vue.d.ts +3 -5
  90. package/dist/views/transaction/cell/Method.vue.d.ts +3 -5
  91. package/dist/views/transaction/cell/Status.vue.d.ts +3 -5
  92. package/package.json +2 -2
  93. package/dist/PDFViewer-CjH_C1uT.js +0 -21792
  94. package/dist/Settlement-mwnO-iYH.js +0 -150
  95. package/dist/TerminalSetting-DEFim0xg.js +0 -379
  96. package/dist/TerminalTransaction-CQjNdffr.js +0 -426
  97. package/dist/TerminalTransaction-ClihmWOJ.js +0 -250
  98. package/dist/Transaction-68L7JzIk.js +0 -242
@@ -1,15 +1,16 @@
1
- import { defineComponent as h, ref as C, computed as V, resolveComponent as i, openBlock as k, createBlock as D, h as M, watch as $, onMounted as L, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as K, createElementBlock as P, Fragment as E, renderList as O } from "vue";
2
- import { u as S } from "./index-Bt_OgDYn.js";
3
- import { h as v } from "./moment-h96o7c8I.js";
4
- import { s as d } from "./index-_0TroOJr.js";
1
+ import { defineComponent as C, ref as h, computed as x, resolveComponent as d, openBlock as k, createBlock as A, h as B, watch as V, onMounted as I, unref as a, withCtx as b, createElementVNode as y, createVNode as s, isRef as $, createElementBlock as L, Fragment as K, renderList as E } from "vue";
2
+ import { u as D } from "./index-1fXAFo2E.js";
3
+ import { h as g } from "./moment-h96o7c8I.js";
4
+ import { s as c } from "./index-DoAIw4wM.js";
5
5
  import { useSnackbar as T } from "@feedmepos/ui-library";
6
- import { d as g } from "./dinero-CIVmXLL-.js";
7
- import { _ as Y } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
6
+ import { d as v } from "./dinero-CIVmXLL-.js";
7
+ import { _ as P } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
8
8
  import { useRouter as q } from "vue-router";
9
9
  import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
- import { u as U } from "./index-DjDGwRX8.js";
11
- import { u as j } from "./error-K1CakhA9.js";
12
- const z = /* @__PURE__ */ h({
10
+ import { u as O } from "./index-DdJrUqkm.js";
11
+ import { u as U } from "./error-K1CakhA9.js";
12
+ import { _ as j } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
13
+ const z = /* @__PURE__ */ C({
13
14
  __name: "SettlementTable",
14
15
  props: {
15
16
  data: {
@@ -23,11 +24,11 @@ const z = /* @__PURE__ */ h({
23
24
  },
24
25
  emits: ["row-click"],
25
26
  setup(w, { emit: u }) {
26
- const r = w, c = u, o = C(""), p = [
27
+ const r = w, i = u, o = h(""), p = [
27
28
  {
28
29
  header: () => "Settlement ID",
29
30
  accessorKey: "id",
30
- cell: ({ cell: e }) => M(Y, { data: e.getValue() })
31
+ cell: ({ cell: e }) => B(P, { data: e.getValue() })
31
32
  },
32
33
  {
33
34
  header: () => "Created At",
@@ -48,38 +49,38 @@ const z = /* @__PURE__ */ h({
48
49
  header: () => "Settlement Amount",
49
50
  accessorKey: "payout"
50
51
  }
51
- ], f = V(() => r.data.map((e) => ({
52
+ ], f = x(() => r.data.map((e) => ({
52
53
  id: e._id,
53
- transactionAt: v(e.createdAt).format("YYYY-MM-DD"),
54
- amount: g(e.totalAmount).toFormat("$0.00"),
55
- fee: g(e.totalFee).toFormat("$0.00"),
56
- payout: g(e.totalPayout).toFormat("$0.00")
54
+ transactionAt: g(e.createdAt).format("YYYY-MM-DD"),
55
+ amount: v(e.totalAmount).toFormat("$0.00"),
56
+ fee: v(e.totalFee).toFormat("$0.00"),
57
+ payout: v(e.totalPayout).toFormat("$0.00")
57
58
  })));
58
59
  return (e, n) => {
59
- const _ = i("FmTable");
60
- return k(), D(_, {
60
+ const _ = d("FmTable");
61
+ return k(), A(_, {
61
62
  modelValue: o.value,
62
63
  "onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
63
64
  "row-data": f.value,
64
65
  "column-defs": p,
65
66
  loading: r.loading,
66
- onRowClick: n[1] || (n[1] = (l) => c("row-click", r.data.at(l.index)))
67
+ onRowClick: n[1] || (n[1] = (l) => i("row-click", r.data.at(l.index)))
67
68
  }, null, 8, ["modelValue", "row-data", "loading"]);
68
69
  };
69
70
  }
70
- }), G = { class: "flex justify-between items-center mb-6" }, Q = { class: "flex space-x-4 items-center" }, H = { class: "flex space-x-4 items-center" }, ie = /* @__PURE__ */ h({
71
+ }), G = { class: "flex justify-between items-center mb-6" }, Q = { class: "flex space-x-4 items-center" }, H = { class: "flex space-x-4" }, ie = /* @__PURE__ */ C({
71
72
  __name: "Settlement",
72
73
  setup(w) {
73
- const { isLoading: u, startAsyncCall: r } = S(!0), c = S(!1), o = C([]), p = q(), f = T(), { dateRange: e } = U({
74
+ const { isLoading: u, startAsyncCall: r } = D(!0), i = D(!1), o = h([]), p = q(), f = T(), { dateRange: e } = O({
74
75
  dateRange: {
75
- startDate: v().startOf("day").toISOString(),
76
- endDate: v().endOf("day").toISOString()
76
+ startDate: g().startOf("day").format("YYYY-MM-DD"),
77
+ endDate: g().endOf("day").format("YYYY-MM-DD")
77
78
  }
78
79
  });
79
- $(e, n);
80
+ V(e, n);
80
81
  async function n() {
81
82
  await r(async () => {
82
- const F = await d.readByDate(
83
+ const F = await c.readByDate(
83
84
  {
84
85
  start: e.value.startDate,
85
86
  end: e.value.endDate
@@ -91,14 +92,14 @@ const z = /* @__PURE__ */ h({
91
92
  function _() {
92
93
  n();
93
94
  }
94
- L(_);
95
+ I(_);
95
96
  const l = [
96
97
  {
97
98
  label: "Audit Report",
98
99
  sublabel: "Full transactions details report from each payment providers.",
99
100
  icon: "file_download",
100
101
  value: "auditReport",
101
- onClick: () => d.downloadSettlementReport({
102
+ onClick: () => c.downloadSettlementReport({
102
103
  start: e.value.startDate,
103
104
  end: e.value.endDate
104
105
  })
@@ -108,7 +109,7 @@ const z = /* @__PURE__ */ h({
108
109
  sublabel: "Summarized settlement information for each payout accounts.",
109
110
  icon: "account_balance",
110
111
  value: "summaryReport",
111
- onClick: () => d.downloadSummaryReport(o.value, {
112
+ onClick: () => c.downloadSummaryReport(o.value, {
112
113
  start: e.value.startDate,
113
114
  end: e.value.endDate
114
115
  })
@@ -118,52 +119,49 @@ const z = /* @__PURE__ */ h({
118
119
  sublabel: "Generate bank instruction file based on bank formats.",
119
120
  icon: "description",
120
121
  value: "bankInstructionFile",
121
- onClick: () => d.downloadBankInstructionFile(o.value)
122
+ onClick: () => c.downloadBankInstructionFile(o.value)
122
123
  }
123
124
  ];
124
125
  return (F, m) => {
125
- const R = i("FmDateRangePicker"), A = i("FmButton"), x = i("FmMenuItem"), I = i("FmMenu");
126
- return k(), D(N, {
126
+ const M = d("FmButton"), R = d("FmMenuItem"), S = d("FmMenu");
127
+ return k(), A(N, {
127
128
  title: "Settlements",
128
129
  loading: a(u)
129
130
  }, {
130
131
  default: b(() => [
131
132
  y("div", G, [
132
133
  y("div", Q, [
133
- s(R, {
134
+ s(j, {
134
135
  modelValue: a(e),
135
- "onUpdate:modelValue": m[0] || (m[0] = (t) => K(e) ? e.value = t : null),
136
- compare: "",
137
- "show-predefined-range": ""
136
+ "onUpdate:modelValue": m[0] || (m[0] = (t) => $(e) ? e.value = t : null)
138
137
  }, null, 8, ["modelValue"])
139
138
  ]),
140
139
  y("div", H, [
141
- s(I, { trigger: "click" }, {
140
+ s(S, { trigger: "click" }, {
142
141
  "menu-button": b(() => [
143
- s(A, {
144
- class: "w-full mt-6",
142
+ s(M, {
145
143
  variant: "primary",
146
144
  "append-icon": "arrow_drop_down",
147
145
  label: "Actions",
148
- loading: a(c).isLoading.value
146
+ loading: a(i).isLoading.value
149
147
  }, null, 8, ["loading"])
150
148
  ]),
151
149
  default: b(() => [
152
- (k(), P(E, null, O(l, (t) => s(x, {
150
+ (k(), L(K, null, E(l, (t) => s(R, {
153
151
  key: t.value,
154
152
  label: t.label,
155
153
  icon: t.icon,
156
154
  sublabel: t.sublabel,
157
155
  selectable: !0,
158
156
  onClick: (J) => {
159
- a(c).startAsyncCall(async () => {
157
+ a(i).startAsyncCall(async () => {
160
158
  try {
161
159
  await t.onClick();
162
- } catch (B) {
160
+ } catch (Y) {
163
161
  a(f).open({
164
162
  type: "error",
165
163
  title: "Error",
166
- message: a(j)(B)
164
+ message: a(U)(Y)
167
165
  });
168
166
  }
169
167
  });
@@ -0,0 +1,145 @@
1
+ import { defineComponent as g, ref as h, computed as x, resolveComponent as Y, openBlock as v, createBlock as D, h as S, onMounted as A, watch as R, unref as n, withCtx as V, createElementVNode as i, createVNode as d, isRef as $ } from "vue";
2
+ import { u as b } from "./index-1fXAFo2E.js";
3
+ import { h as _ } from "./moment-h96o7c8I.js";
4
+ import { useCoreStore as C } from "@feedmepos/mf-common";
5
+ import { _ as k } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
+ import { s as w } from "./index-DoAIw4wM.js";
7
+ import "@feedmepos/ui-library";
8
+ import { d as f } from "./dinero-CIVmXLL-.js";
9
+ import { _ as F } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-CdmfrBoW.js";
10
+ import { useRouter as M } from "vue-router";
11
+ import { u as K } from "./index-DdJrUqkm.js";
12
+ import { _ as B } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
+ import { _ as I } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
14
+ import { _ as L } from "./DateRangePicker.vue_vue_type_script_setup_true_lang-dP_5WjEJ.js";
15
+ const P = /* @__PURE__ */ g({
16
+ __name: "SettlementTable",
17
+ props: {
18
+ data: {
19
+ type: Array,
20
+ required: !0
21
+ },
22
+ loading: {
23
+ type: Boolean,
24
+ required: !0
25
+ }
26
+ },
27
+ emits: ["row-click"],
28
+ setup(y, { emit: c }) {
29
+ const t = y, r = c, s = h(""), u = [
30
+ {
31
+ header: () => "Settlement ID",
32
+ accessorKey: "id",
33
+ cell: ({ cell: e }) => S(F, { data: e.getValue() })
34
+ },
35
+ {
36
+ header: () => "Created At",
37
+ accessorKey: "transactionAt",
38
+ meta: {
39
+ width: "180px"
40
+ }
41
+ },
42
+ {
43
+ header: () => "Sales Amount",
44
+ accessorKey: "amount"
45
+ },
46
+ {
47
+ header: () => "Fee",
48
+ accessorKey: "fee"
49
+ },
50
+ {
51
+ header: () => "Settlement Amount",
52
+ accessorKey: "payout"
53
+ }
54
+ ], l = x(() => t.data.map((e) => ({
55
+ id: e._id,
56
+ transactionAt: _(e.createdAt).format("YYYY-MM-DD"),
57
+ amount: f(e.totalAmount).toFormat("$0.00"),
58
+ fee: f(e.totalFee).toFormat("$0.00"),
59
+ payout: f(e.totalPayout).toFormat("$0.00")
60
+ })));
61
+ return (e, o) => {
62
+ const m = Y("FmTable");
63
+ return v(), D(m, {
64
+ modelValue: s.value,
65
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => s.value = a),
66
+ "row-data": l.value,
67
+ "column-defs": u,
68
+ loading: t.loading,
69
+ onRowClick: o[1] || (o[1] = (a) => r("row-click", t.data.at(a.index)))
70
+ }, null, 8, ["modelValue", "row-data", "loading"]);
71
+ };
72
+ }
73
+ }), T = { class: "flex justify-between items-center mb-6" }, q = { class: "flex space-x-8 items-center" }, E = { class: "flex space-x-4 self-center" }, N = { class: "mb-6" }, ot = /* @__PURE__ */ g({
74
+ __name: "Settlement",
75
+ setup(y) {
76
+ const c = M(), { dateRange: t } = K({
77
+ dateRange: {
78
+ startDate: _().startOf("day").format("YYYY-MM-DD"),
79
+ endDate: _().endOf("day").format("YYYY-MM-DD")
80
+ }
81
+ }), { isLoading: r, startAsyncCall: s } = b(!0), { currentRestaurant: u } = C(), l = h([]);
82
+ async function e() {
83
+ await s(async () => {
84
+ const m = await w.readRestaurantSettlements(
85
+ {
86
+ start: t.value.startDate,
87
+ end: t.value.endDate
88
+ }
89
+ );
90
+ l.value = m;
91
+ });
92
+ }
93
+ function o() {
94
+ e();
95
+ }
96
+ return A(o), R(u, o), (m, a) => (v(), D(k, {
97
+ title: "Settlements",
98
+ description: "Settlements are the finalization of financial transactions, transferring funds to complete payments.",
99
+ loading: n(r)
100
+ }, {
101
+ default: V(() => [
102
+ i("div", T, [
103
+ i("div", q, [
104
+ d(I)
105
+ ]),
106
+ i("div", E, [
107
+ d(B, {
108
+ button: {
109
+ appendIcon: "file_download",
110
+ variant: "primary",
111
+ label: "Export"
112
+ },
113
+ handler: async () => {
114
+ await n(w).downloadRestaurantSettlementReport({
115
+ start: n(t).startDate,
116
+ end: n(t).endDate
117
+ });
118
+ }
119
+ }, null, 8, ["handler"])
120
+ ])
121
+ ]),
122
+ i("div", N, [
123
+ d(L, {
124
+ modelValue: n(t),
125
+ "onUpdate:modelValue": a[0] || (a[0] = (p) => $(t) ? t.value = p : null)
126
+ }, null, 8, ["modelValue"])
127
+ ]),
128
+ d(P, {
129
+ loading: n(r),
130
+ data: l.value,
131
+ onRowClick: a[1] || (a[1] = (p) => n(c).push({
132
+ name: "mf-payment-settlement-transaction",
133
+ params: {
134
+ settlementId: p._id
135
+ }
136
+ }))
137
+ }, null, 8, ["loading", "data"])
138
+ ]),
139
+ _: 1
140
+ }, 8, ["loading"]));
141
+ }
142
+ });
143
+ export {
144
+ ot as default
145
+ };
@@ -1,12 +1,12 @@
1
- import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as j, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as T, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
2
- import { e as E, u as q } from "./index-Bt_OgDYn.js";
1
+ import { defineComponent as w, resolveComponent as g, openBlock as F, createBlock as k, normalizeClass as G, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as p, ref as T, onMounted as Y, watch as H, createVNode as n, createTextVNode as i, h as N } from "vue";
2
+ import { e as E, u as q } from "./index-1fXAFo2E.js";
3
3
  import { useDialog as J, useSnackbar as Q } from "@feedmepos/ui-library";
4
4
  import { d as B } from "./dinero-CIVmXLL-.js";
5
- import { g as W, a as X } from "./assets-Bji7O2YD.js";
6
- import { t as P, a as Z } from "./transaction-DqrhM5jB.js";
5
+ import { g as W, a as X } from "./assets-8c19wXSV.js";
6
+ import { t as P, a as Z } from "./transaction-W49zE8RL.js";
7
7
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as te } from "vue-router";
9
- import { s as ae } from "./index-_0TroOJr.js";
9
+ import { s as ae } from "./index-DoAIw4wM.js";
10
10
  import { u as ne } from "./error-K1CakhA9.js";
11
11
  import { w as oe } from "./Modal-DB8M9o1T.js";
12
12
  const re = /* @__PURE__ */ w({
@@ -24,7 +24,7 @@ const re = /* @__PURE__ */ w({
24
24
  const b = g("FmBadge");
25
25
  return F(), k(b, {
26
26
  inline: "",
27
- class: j(m())
27
+ class: G(m())
28
28
  }, {
29
29
  default: l(() => [
30
30
  t("div", null, u(A.data), 1)
@@ -41,7 +41,7 @@ const re = /* @__PURE__ */ w({
41
41
  },
42
42
  setup(y) {
43
43
  return (o, m) => (F(), L("img", {
44
- class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
44
+ class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
45
45
  src: p(W)(o.row.original.gateway)
46
46
  }, null, 8, le));
47
47
  }
@@ -194,7 +194,7 @@ const re = /* @__PURE__ */ w({
194
194
  }, 700);
195
195
  }), (a, e) => {
196
196
  var $;
197
- const f = g("FmCardHeader"), v = g("FmCardSection"), C = g("FmCard"), z = g("FmSearch"), G = g("FmTable");
197
+ const f = g("FmCardHeader"), v = g("FmCardSection"), C = g("FmCard"), j = g("FmSearch"), z = g("FmTable");
198
198
  return F(), k(ee, {
199
199
  title: `Settlement Transactions (${($ = s.value) == null ? void 0 : $._id})`,
200
200
  loading: p(m),
@@ -309,13 +309,13 @@ const re = /* @__PURE__ */ w({
309
309
  })
310
310
  ]),
311
311
  t("div", ce, [
312
- n(z, {
312
+ n(j, {
313
313
  modelValue: x.value,
314
314
  "onUpdate:modelValue": e[0] || (e[0] = (r) => x.value = r),
315
315
  placeholder: "Search Transactions ..."
316
316
  }, null, 8, ["modelValue"])
317
317
  ]),
318
- n(G, {
318
+ n(z, {
319
319
  modelValue: K.value,
320
320
  "onUpdate:modelValue": e[1] || (e[1] = (r) => K.value = r),
321
321
  "search-value": x.value,
@@ -1,12 +1,12 @@
1
- import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as z, withCtx as l, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as G, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
2
- import { e as E, u as j } from "./index-Bt_OgDYn.js";
1
+ import { defineComponent as T, resolveComponent as g, openBlock as F, createBlock as P, normalizeClass as j, withCtx as r, createElementVNode as t, toDisplayString as u, createElementBlock as L, unref as c, ref as _, onMounted as z, watch as $, createVNode as a, createTextVNode as i, h as C } from "vue";
2
+ import { e as E, u as G } from "./index-1fXAFo2E.js";
3
3
  import "@feedmepos/ui-library";
4
4
  import { d as h } from "./dinero-CIVmXLL-.js";
5
- import { g as Y, a as H } from "./assets-Bji7O2YD.js";
6
- import { t as q, a as J } from "./transaction-DqrhM5jB.js";
5
+ import { g as Y, a as H } from "./assets-8c19wXSV.js";
6
+ import { t as q, a as J } from "./transaction-W49zE8RL.js";
7
7
  import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
8
8
  import { useRouter as W } from "vue-router";
9
- import { s as X } from "./index-_0TroOJr.js";
9
+ import { s as X } from "./index-DoAIw4wM.js";
10
10
  import { useCoreStore as Z } from "@feedmepos/mf-common";
11
11
  const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
@@ -15,17 +15,17 @@ const ee = /* @__PURE__ */ T({
15
15
  data: {}
16
16
  },
17
17
  setup(y) {
18
- const o = y;
18
+ const l = y;
19
19
  function p() {
20
- return o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : o.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
20
+ return l.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.PENDING ? "!w-[16px] !h-[16px] bg-yellow-400" : l.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.FAILED ? "!w-[16px] !h-[16px] bg-red-400" : l.data === E.F_PAYMENT_TRANSACTION_STATUS.Enum.REFUNDED ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
21
21
  }
22
22
  return (S, B) => {
23
23
  const w = g("FmBadge");
24
24
  return F(), P(w, {
25
25
  inline: "",
26
- class: z(p())
26
+ class: j(p())
27
27
  }, {
28
- default: l(() => [
28
+ default: r(() => [
29
29
  t("div", null, u(S.data), 1)
30
30
  ]),
31
31
  _: 1
@@ -39,24 +39,24 @@ const ee = /* @__PURE__ */ T({
39
39
  data: {}
40
40
  },
41
41
  setup(y) {
42
- return (o, p) => (F(), L("img", {
43
- class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
44
- src: c(Y)(o.row.original.gateway)
42
+ return (l, p) => (F(), L("img", {
43
+ class: "rounded-md m-auto border-transparent object-contain w-[32px] h-[32px]",
44
+ src: c(Y)(l.row.original.gateway)
45
45
  }, null, 8, te));
46
46
  }
47
- }), ne = ["src"], re = /* @__PURE__ */ T({
47
+ }), ne = ["src"], oe = /* @__PURE__ */ T({
48
48
  __name: "Method",
49
49
  props: {
50
50
  row: {},
51
51
  data: {}
52
52
  },
53
53
  setup(y) {
54
- return (o, p) => (F(), L("img", {
54
+ return (l, p) => (F(), L("img", {
55
55
  class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
56
- src: c(H)(o.row.original.method.issuer)
56
+ src: c(H)(l.row.original.method.issuer)
57
57
  }, null, 8, ne));
58
58
  }
59
- }), le = { class: "flex mb-6" }, oe = { class: "my-6 w-[240px]" }, ve = /* @__PURE__ */ T({
59
+ }), re = { class: "flex mb-6" }, le = { class: "my-6 w-[240px]" }, ve = /* @__PURE__ */ T({
60
60
  __name: "SettlementTransactions",
61
61
  props: {
62
62
  settlementId: {
@@ -65,18 +65,18 @@ const ee = /* @__PURE__ */ T({
65
65
  }
66
66
  },
67
67
  setup(y) {
68
- const o = y, { isLoading: p, startAsyncCall: S } = j(!0), { currentRestaurant: B } = Z(), w = W(), s = _(), x = _([]), N = _([]);
68
+ const l = y, { isLoading: p, startAsyncCall: S } = G(!0), { currentRestaurant: B } = Z(), w = W(), s = _(), x = _([]), N = _([]);
69
69
  async function O(n = !1) {
70
70
  S(async () => {
71
- n || (s.value = await X.readRestaurantSettlementById(o.settlementId));
72
- const e = await q.readRestaurantTransactionsBySettlementId(o.settlementId);
71
+ n || (s.value = await X.readRestaurantSettlementById(l.settlementId));
72
+ const e = await q.readRestaurantTransactionsBySettlementId(l.settlementId);
73
73
  x.value = J(e), N.value = x.value;
74
74
  });
75
75
  }
76
76
  function k() {
77
77
  O();
78
78
  }
79
- G(k), $(B, k);
79
+ z(k), $(B, k);
80
80
  const V = _(""), D = [
81
81
  {
82
82
  header: () => "Transaction ID",
@@ -100,7 +100,7 @@ const ee = /* @__PURE__ */ T({
100
100
  meta: {
101
101
  textAlign: "center"
102
102
  },
103
- cell: ({ cell: n, row: e }) => e.original.method ? C(re, { row: e, data: n.getValue() }) : ""
103
+ cell: ({ cell: n, row: e }) => e.original.method ? C(oe, { row: e, data: n.getValue() }) : ""
104
104
  },
105
105
  {
106
106
  header: () => "Type",
@@ -157,27 +157,27 @@ const ee = /* @__PURE__ */ T({
157
157
  loading: c(p),
158
158
  onBack: c(w).back
159
159
  }, {
160
- default: l(() => [
161
- t("div", le, [
160
+ default: r(() => [
161
+ t("div", re, [
162
162
  a(I, {
163
163
  horizontal: "",
164
164
  class: "flex-1 p-6",
165
165
  variant: "elevated"
166
166
  }, {
167
- default: l(() => [
167
+ default: r(() => [
168
168
  a(f, { class: "flex flex-col gap-16 justify-between" }, {
169
- default: l(() => [
169
+ default: r(() => [
170
170
  a(b, {
171
171
  class: "p-0",
172
172
  title: "Transaction Info",
173
173
  subtitle: ""
174
174
  }),
175
175
  a(f, { class: "p-0" }, {
176
- default: l(() => {
177
- var r, d, m, R;
176
+ default: r(() => {
177
+ var o, d, m, R;
178
178
  return [
179
179
  e[2] || (e[2] = t("b", null, "For", -1)),
180
- i(": " + u((d = (r = s.value) == null ? void 0 : r.store) == null ? void 0 : d.event) + " ", 1),
180
+ i(": " + u((d = (o = s.value) == null ? void 0 : o.store) == null ? void 0 : d.event) + " ", 1),
181
181
  e[3] || (e[3] = t("br", null, null, -1)),
182
182
  e[4] || (e[4] = t("b", null, "Reference", -1)),
183
183
  i(": " + u((R = (m = s.value) == null ? void 0 : m.store) == null ? void 0 : R.id), 1),
@@ -199,20 +199,20 @@ const ee = /* @__PURE__ */ T({
199
199
  class: "flex-1 p-6 mx-6",
200
200
  variant: "elevated"
201
201
  }, {
202
- default: l(() => [
202
+ default: r(() => [
203
203
  a(f, { class: "flex flex-col gap-16 justify-between" }, {
204
- default: l(() => [
204
+ default: r(() => [
205
205
  a(b, {
206
206
  class: "p-0",
207
207
  title: "Bank Info",
208
208
  subtitle: ""
209
209
  }),
210
210
  a(f, { class: "p-0" }, {
211
- default: l(() => {
212
- var r, d, m;
211
+ default: r(() => {
212
+ var o, d, m;
213
213
  return [
214
214
  e[7] || (e[7] = t("b", null, "Bank", -1)),
215
- i(": " + u((r = s.value) == null ? void 0 : r.beneficiaryBank.name), 1),
215
+ i(": " + u((o = s.value) == null ? void 0 : o.beneficiaryBank.name), 1),
216
216
  e[8] || (e[8] = t("br", null, null, -1)),
217
217
  e[9] || (e[9] = t("b", null, "Name", -1)),
218
218
  i(": " + u((d = s.value) == null ? void 0 : d.beneficiaryBank.holderName), 1),
@@ -234,20 +234,20 @@ const ee = /* @__PURE__ */ T({
234
234
  class: "flex-1 p-6",
235
235
  variant: "elevated"
236
236
  }, {
237
- default: l(() => [
237
+ default: r(() => [
238
238
  a(f, { class: "flex flex-col gap-16 justify-between" }, {
239
- default: l(() => [
239
+ default: r(() => [
240
240
  a(b, {
241
241
  class: "p-0",
242
242
  title: "Payout Info",
243
243
  subtitle: ""
244
244
  }),
245
245
  a(f, { class: "p-0" }, {
246
- default: l(() => {
247
- var r, d, m;
246
+ default: r(() => {
247
+ var o, d, m;
248
248
  return [
249
249
  e[12] || (e[12] = t("b", null, "Amount", -1)),
250
- i(": " + u(c(h)((r = s.value) == null ? void 0 : r.totalAmount).toFormat("$0.00")), 1),
250
+ i(": " + u(c(h)((o = s.value) == null ? void 0 : o.totalAmount).toFormat("$0.00")), 1),
251
251
  e[13] || (e[13] = t("br", null, null, -1)),
252
252
  e[14] || (e[14] = t("b", null, "Fee", -1)),
253
253
  i(": " + u(c(h)((d = s.value) == null ? void 0 : d.totalFee).toFormat("$0.00")), 1),
@@ -265,16 +265,16 @@ const ee = /* @__PURE__ */ T({
265
265
  _: 1
266
266
  })
267
267
  ]),
268
- t("div", oe, [
268
+ t("div", le, [
269
269
  a(M, {
270
270
  modelValue: v.value,
271
- "onUpdate:modelValue": e[0] || (e[0] = (r) => v.value = r),
271
+ "onUpdate:modelValue": e[0] || (e[0] = (o) => v.value = o),
272
272
  placeholder: "Search Transactions ..."
273
273
  }, null, 8, ["modelValue"])
274
274
  ]),
275
275
  a(U, {
276
276
  modelValue: V.value,
277
- "onUpdate:modelValue": e[1] || (e[1] = (r) => V.value = r),
277
+ "onUpdate:modelValue": e[1] || (e[1] = (o) => V.value = o),
278
278
  "search-value": v.value,
279
279
  "row-data": N.value,
280
280
  "column-defs": D,