@feedmepos/mf-payment 0.0.0-beta.50 → 0.0.0-beta.52

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. package/dist/{PayoutAccount-DGydj2Rp.js → PayoutAccount-BlK2cHYk.js} +3 -3
  2. package/dist/{PayoutAccount-DABJBnNC.js → PayoutAccount-DPBewHqT.js} +5 -5
  3. package/dist/{PayoutAccountSetting-CTHMEsjH.js → PayoutAccountSetting-kUQLeAcb.js} +3 -3
  4. package/dist/Settlement-Cp-TFGIq.js +195 -0
  5. package/dist/{Settlement-DsjIRuJW.js → Settlement-DluLTk33.js} +3 -3
  6. package/dist/{SettlementTransactions-D1pkLrWn.js → SettlementTransactions-BxuLXUR-.js} +4 -4
  7. package/dist/{SettlementTransactions-DZnWOOzM.js → SettlementTransactions-daWMAmtz.js} +4 -4
  8. package/dist/{Terminal-ClGqWjhf.js → Terminal-gxGnjFGc.js} +4 -4
  9. package/dist/{TerminalSetting-BixN506L.js → TerminalSetting--ZAJJ_Hf.js} +3 -3
  10. package/dist/{TerminalTransaction-Cpovc2fH.js → TerminalTransaction-C0-YVtZT.js} +19 -11
  11. package/dist/{TerminalTransaction-CjYedRYO.js → TerminalTransaction-lScNo7gJ.js} +45 -37
  12. package/dist/{Transaction-LC2KAr1G.js → Transaction-6Woe-8FI.js} +4 -4
  13. package/dist/{Transaction-bUy85OPi.js → Transaction-BA9Phcbt.js} +4 -4
  14. package/dist/api/index.d.ts +2 -0
  15. package/dist/api/settlement/index.d.ts +5 -0
  16. package/dist/{app-BSw8aQiR.js → app-eJW0P3w3.js} +174 -174
  17. package/dist/app.js +1 -1
  18. package/dist/{assets-B9l5jWbK.js → assets-NrCec-W0.js} +18 -17
  19. package/dist/{index-C5AZUa6M.js → index-7KNaibcq.js} +1 -1
  20. package/dist/{index-DuCv6dOI.js → index-BWUtjGg7.js} +1 -1
  21. package/dist/{index-BlGpdOEP.js → index-BwcJZFsi.js} +1 -1
  22. package/dist/{index-9ujJCGqe.js → index-CWaKb7bG.js} +6844 -6648
  23. package/dist/index-CojhNtuG.js +127 -0
  24. package/dist/{index-DYz8XIrE.js → index-DbJpbpSs.js} +1 -1
  25. package/dist/{index.vue_vue_type_script_setup_true_lang-DcbfY6SQ.js → index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js} +1 -1
  26. package/dist/package.json +2 -2
  27. package/dist/{payout-account-DDKFUaz5.js → payout-account-wavTTRgR.js} +2 -2
  28. package/dist/stores/payoutAccount.d.ts +4 -4
  29. package/dist/{transaction-D5lnozQA.js → transaction-CQiT7Y_s.js} +1 -1
  30. package/dist/tsconfig.app.tsbuildinfo +1 -1
  31. package/dist/views/admin/payout-account/tabs/Information.vue.d.ts +4 -4
  32. package/dist/views/admin/payout-account/tabs/PaymentGateway.vue.d.ts +4 -4
  33. package/dist/views/admin/payout-account/tabs/PaymentStatus.vue.d.ts +4 -4
  34. package/dist/views/admin/payout-account/tabs/Settlement.vue.d.ts +4 -4
  35. package/dist/views/admin/payout-account/tabs/gateway/FiuuGateway.vue.d.ts +8 -8
  36. package/dist/views/admin/payout-account/tabs/gateway/GhlGateway.vue.d.ts +6 -6
  37. package/dist/views/admin/payout-account/tabs/gateway/RevenueMonsterGateway.vue.d.ts +6 -6
  38. package/dist/views/admin/settlement/SettlementTable.vue.d.ts +12 -12
  39. package/dist/views/admin/terminal/TerminalDialog.vue.d.ts +6 -6
  40. package/dist/views/admin/terminal/cell/Actions.vue.d.ts +6 -6
  41. package/dist/views/admin/terminal/tabs/FiuuGateway.vue.d.ts +6 -6
  42. package/dist/views/admin/terminal/tabs/GhlGateway.vue.d.ts +6 -6
  43. package/dist/views/admin/terminal/tabs/Information.vue.d.ts +6 -6
  44. package/dist/views/admin/terminal/tabs/TerminalGateway.vue.d.ts +6 -6
  45. package/dist/views/payout-account/PayoutAccountTable.vue.d.ts +8 -8
  46. package/dist/views/settlement/SettlementTable.vue.d.ts +12 -12
  47. package/package.json +2 -2
  48. package/dist/Settlement-G6Ac690_.js +0 -144
  49. package/dist/index-C074LfUa.js +0 -51
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as F, ref as P, reactive as k, computed as Z, watch as y, resolveComponent as i, openBlock as c, createBlock as Y, withCtx as X, createElementVNode as g, createVNode as u, unref as n, createCommentVNode as v, createElementBlock as p, normalizeClass as N, toDisplayString as R, h as W, onMounted as T, Fragment as L } from "vue";
2
- import { p as z } from "./index-BlGpdOEP.js";
3
- import { _ as I, u as S, e as h } from "./index-9ujJCGqe.js";
2
+ import { p as z } from "./index-BwcJZFsi.js";
3
+ import { _ as I, u as S, e as h } from "./index-CWaKb7bG.js";
4
4
  import { defineStore as _ } from "pinia";
5
5
  import { useCoreStore as $ } from "@feedmepos/mf-common";
6
- import { c as AA, P as j } from "./payout-account-DDKFUaz5.js";
6
+ import { c as AA, P as j } from "./payout-account-wavTTRgR.js";
7
7
  import { useDialogChild as sA, useDialog as eA } from "@feedmepos/ui-library";
8
8
  import { z as f, a as q } from "./validator-D5jtpt9A.js";
9
9
  import { P as K } from "./PDFViewer-CjH_C1uT.js";
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as b, resolveComponent as m, openBlock as g, createBlock as h, normalizeClass as N, withCtx as f, createElementVNode as P, toDisplayString as C, createVNode as c, computed as x, ref as E, watch as F, unref as l, isRef as k, h as w } from "vue";
2
- import { u as S } from "./index-C5AZUa6M.js";
3
- import { _ as O } from "./index-9ujJCGqe.js";
2
+ import { u as S } from "./index-7KNaibcq.js";
3
+ import { _ as O } from "./index-CWaKb7bG.js";
4
4
  import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
5
- import { P as V } from "./payout-account-DDKFUaz5.js";
6
- import { p as D } from "./index-BlGpdOEP.js";
5
+ import { P as V } from "./payout-account-wavTTRgR.js";
6
+ import { p as D } from "./index-BwcJZFsi.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-DcbfY6SQ.js";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js";
9
9
  import { useRouter as $ } from "vue-router";
10
10
  const G = /* @__PURE__ */ b({
11
11
  __name: "Status",
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, resolveComponent as m, openBlock as g, createElementBlock as R, Fragment as D, createElementVNode as s, createVNode as u, withCtx as x, createTextVNode as C, toDisplayString as P, createCommentVNode as U, createBlock as V, ref as k, watch as O, computed as K, unref as r, isRef as j, h as q, onMounted as Y, resolveDynamicComponent as z, normalizeProps as H, mergeProps as L } from "vue";
2
- import { p as N } from "./index-BlGpdOEP.js";
3
- import { g as B, b as E, u as Q, e as $ } from "./index-9ujJCGqe.js";
2
+ import { p as N } from "./index-BwcJZFsi.js";
3
+ import { g as B, b as E, u as Q, e as $ } from "./index-CWaKb7bG.js";
4
4
  import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
5
5
  import { useRouter as J } from "vue-router";
6
- import { u as W } from "./index-C5AZUa6M.js";
6
+ import { u as W } from "./index-7KNaibcq.js";
7
7
  import { P as M } from "./PDFViewer-CjH_C1uT.js";
8
8
  import { useSnackbar as X } from "@feedmepos/ui-library";
9
9
  import { u as h } from "./error-K1CakhA9.js";
@@ -0,0 +1,195 @@
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-CWaKb7bG.js";
3
+ import { h as v } from "./moment-h96o7c8I.js";
4
+ import { s as d } from "./index-CojhNtuG.js";
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";
8
+ import { useRouter as q } from "vue-router";
9
+ import { _ as N } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
10
+ import { u as U } from "./index-7KNaibcq.js";
11
+ import { u as j } from "./error-K1CakhA9.js";
12
+ const z = /* @__PURE__ */ h({
13
+ __name: "SettlementTable",
14
+ props: {
15
+ data: {
16
+ type: Array,
17
+ required: !0
18
+ },
19
+ loading: {
20
+ type: Boolean,
21
+ required: !0
22
+ }
23
+ },
24
+ emits: ["row-click"],
25
+ setup(w, { emit: u }) {
26
+ const r = w, c = u, o = C(""), p = [
27
+ {
28
+ header: () => "Settlement ID",
29
+ accessorKey: "id",
30
+ cell: ({ cell: e }) => M(Y, { data: e.getValue() })
31
+ },
32
+ {
33
+ header: () => "Created At",
34
+ accessorKey: "transactionAt",
35
+ meta: {
36
+ width: "180px"
37
+ }
38
+ },
39
+ {
40
+ header: () => "Sales Amount",
41
+ accessorKey: "amount"
42
+ },
43
+ {
44
+ header: () => "Fee",
45
+ accessorKey: "fee"
46
+ },
47
+ {
48
+ header: () => "Settlement Amount",
49
+ accessorKey: "payout"
50
+ }
51
+ ], f = V(() => r.data.map((e) => ({
52
+ 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")
57
+ })));
58
+ return (e, n) => {
59
+ const _ = i("FmTable");
60
+ return k(), D(_, {
61
+ modelValue: o.value,
62
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => o.value = l),
63
+ "row-data": f.value,
64
+ "column-defs": p,
65
+ loading: r.loading,
66
+ onRowClick: n[1] || (n[1] = (l) => c("row-click", r.data.at(l.index)))
67
+ }, null, 8, ["modelValue", "row-data", "loading"]);
68
+ };
69
+ }
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
+ __name: "Settlement",
72
+ setup(w) {
73
+ const { isLoading: u, startAsyncCall: r } = S(!0), c = S(!1), o = C([]), p = q(), f = T(), { dateRange: e } = U({
74
+ dateRange: {
75
+ startDate: v().startOf("day").toISOString(),
76
+ endDate: v().endOf("day").toISOString()
77
+ }
78
+ });
79
+ $(e, n);
80
+ async function n() {
81
+ await r(async () => {
82
+ const F = await d.readByDate(
83
+ {
84
+ start: e.value.startDate,
85
+ end: e.value.endDate
86
+ }
87
+ );
88
+ o.value = F;
89
+ });
90
+ }
91
+ function _() {
92
+ n();
93
+ }
94
+ L(_);
95
+ const l = [
96
+ {
97
+ label: "Audit Report",
98
+ sublabel: "Full transactions details report from each payment providers.",
99
+ icon: "file_download",
100
+ value: "auditReport",
101
+ onClick: () => d.downloadSettlementReport({
102
+ start: e.value.startDate,
103
+ end: e.value.endDate
104
+ })
105
+ },
106
+ {
107
+ label: "Summary Report",
108
+ sublabel: "Summarized settlement information for each payout accounts.",
109
+ icon: "account_balance",
110
+ value: "summaryReport",
111
+ onClick: () => d.downloadSummaryReport(o.value, {
112
+ start: e.value.startDate,
113
+ end: e.value.endDate
114
+ })
115
+ },
116
+ {
117
+ label: "Bank Instruction File",
118
+ sublabel: "Generate bank instruction file based on bank formats.",
119
+ icon: "description",
120
+ value: "bankInstructionFile",
121
+ onClick: () => d.downloadBankInstructionFile(o.value)
122
+ }
123
+ ];
124
+ return (F, m) => {
125
+ const R = i("FmDateRangePicker"), A = i("FmButton"), x = i("FmMenuItem"), I = i("FmMenu");
126
+ return k(), D(N, {
127
+ title: "Settlements",
128
+ loading: a(u)
129
+ }, {
130
+ default: b(() => [
131
+ y("div", G, [
132
+ y("div", Q, [
133
+ s(R, {
134
+ modelValue: a(e),
135
+ "onUpdate:modelValue": m[0] || (m[0] = (t) => K(e) ? e.value = t : null),
136
+ compare: "",
137
+ "show-predefined-range": ""
138
+ }, null, 8, ["modelValue"])
139
+ ]),
140
+ y("div", H, [
141
+ s(I, { trigger: "click" }, {
142
+ "menu-button": b(() => [
143
+ s(A, {
144
+ class: "w-full mt-6",
145
+ variant: "primary",
146
+ "append-icon": "arrow_drop_down",
147
+ label: "Actions",
148
+ loading: a(c).isLoading.value
149
+ }, null, 8, ["loading"])
150
+ ]),
151
+ default: b(() => [
152
+ (k(), P(E, null, O(l, (t) => s(x, {
153
+ key: t.value,
154
+ label: t.label,
155
+ icon: t.icon,
156
+ sublabel: t.sublabel,
157
+ selectable: !0,
158
+ onClick: (J) => {
159
+ a(c).startAsyncCall(async () => {
160
+ try {
161
+ await t.onClick();
162
+ } catch (B) {
163
+ a(f).open({
164
+ type: "error",
165
+ title: "Error",
166
+ message: a(j)(B)
167
+ });
168
+ }
169
+ });
170
+ }
171
+ }, null, 8, ["label", "icon", "sublabel", "onClick"])), 64))
172
+ ]),
173
+ _: 1
174
+ })
175
+ ])
176
+ ]),
177
+ s(z, {
178
+ loading: a(u),
179
+ data: o.value,
180
+ onRowClick: m[1] || (m[1] = (t) => a(p).push({
181
+ name: "mf-payment-admin.settlement-transaction",
182
+ params: {
183
+ settlementId: t._id
184
+ }
185
+ }))
186
+ }, null, 8, ["loading", "data"])
187
+ ]),
188
+ _: 1
189
+ }, 8, ["loading"]);
190
+ };
191
+ }
192
+ });
193
+ export {
194
+ ie as default
195
+ };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as w, ref as S, computed as D, resolveComponent as h, openBlock as v, createBlock as x, h as A, onMounted as k, watch as F, unref as n, withCtx as V, createElementVNode as p, createVNode as i, isRef as C } from "vue";
2
- import { u as $ } from "./index-9ujJCGqe.js";
2
+ import { u as $ } from "./index-CWaKb7bG.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
4
  import { useCoreStore as b } from "@feedmepos/mf-common";
5
5
  import { _ as I } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { s as g } from "./index-C074LfUa.js";
6
+ import { s as g } from "./index-CojhNtuG.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { d as f } from "./dinero-CIVmXLL-.js";
9
9
  import { _ as K } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
10
10
  import { useRouter as P } from "vue-router";
11
- import { u as O } from "./index-C5AZUa6M.js";
11
+ import { u as O } from "./index-7KNaibcq.js";
12
12
  import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as B } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
14
14
  const L = /* @__PURE__ */ w({
@@ -1,12 +1,12 @@
1
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-9ujJCGqe.js";
2
+ import { e as E, u as j } from "./index-CWaKb7bG.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-B9l5jWbK.js";
6
- import { t as q, a as J } from "./transaction-D5lnozQA.js";
5
+ import { g as Y, a as H } from "./assets-NrCec-W0.js";
6
+ import { t as q, a as J } from "./transaction-CQiT7Y_s.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-C074LfUa.js";
9
+ import { s as X } from "./index-CojhNtuG.js";
10
10
  import { useCoreStore as Z } from "@feedmepos/mf-common";
11
11
  const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
@@ -1,12 +1,12 @@
1
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-9ujJCGqe.js";
2
+ import { e as E, u as q } from "./index-CWaKb7bG.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-B9l5jWbK.js";
6
- import { t as P, a as Z } from "./transaction-D5lnozQA.js";
5
+ import { g as W, a as X } from "./assets-NrCec-W0.js";
6
+ import { t as P, a as Z } from "./transaction-CQiT7Y_s.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-C074LfUa.js";
9
+ import { s as ae } from "./index-CojhNtuG.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({
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as x, openBlock as f, createElementBlock as B, createTextVNode as L, createElementVNode as h, toDisplayString as U, resolveComponent as p, createVNode as v, normalizeClass as O, withCtx as V, createBlock as g, createCommentVNode as I, ref as k, computed as z, unref as c, watch as D, isRef as K, h as E } from "vue";
2
- import "./index-9ujJCGqe.js";
2
+ import "./index-CWaKb7bG.js";
3
3
  import { h as Y } from "./moment-h96o7c8I.js";
4
- import { u as j } from "./index-C5AZUa6M.js";
5
- import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-DcbfY6SQ.js";
4
+ import { u as j } from "./index-7KNaibcq.js";
5
+ import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js";
6
6
  import { _ as Q } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
7
  import { useSnackbar as $, useDialogChild as G, useDialog as H } from "@feedmepos/ui-library";
8
- import { t as A } from "./index-DuCv6dOI.js";
8
+ import { t as A } from "./index-BWUtjGg7.js";
9
9
  import { c as J } from "./clipboard-4jh1WteU.js";
10
10
  import { u as N } from "./error-K1CakhA9.js";
11
11
  import { z as P, a as R } from "./validator-D5jtpt9A.js";
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as x, openBlock as I, createElementBlock as M, Fragment as $, createElementVNode as v, createTextVNode as T, toDisplayString as V, ref as g, onMounted as C, computed as D, resolveComponent as f, unref as b, createVNode as F, createBlock as w, withCtx as G, createCommentVNode as q, isRef as P, resolveDynamicComponent as R, normalizeProps as Y, mergeProps as K } from "vue";
2
- import { u as _, e as U } from "./index-9ujJCGqe.js";
2
+ import { u as _, e as U } from "./index-CWaKb7bG.js";
3
3
  import { useRouter as L } from "vue-router";
4
- import { t as S } from "./index-DuCv6dOI.js";
4
+ import { t as S } from "./index-BWUtjGg7.js";
5
5
  import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
6
- import { u as E } from "./index-C5AZUa6M.js";
6
+ import { u as E } from "./index-7KNaibcq.js";
7
7
  import { useSnackbar as A } from "@feedmepos/ui-library";
8
8
  import { u as z } from "./error-K1CakhA9.js";
9
9
  import { useCoreStore as N } from "@feedmepos/mf-common";
@@ -1,18 +1,18 @@
1
- import { defineComponent as N, openBlock as _, createElementBlock as x, Fragment as F, unref as t, createCommentVNode as k, createElementVNode as d, resolveComponent as p, createBlock as R, normalizeClass as D, withCtx as C, toDisplayString as V, ref as K, watch as T, createVNode as i, isRef as g, h } from "vue";
2
- import { c as l } from "./index-9ujJCGqe.js";
1
+ import { defineComponent as y, openBlock as _, createElementBlock as x, Fragment as F, unref as t, createCommentVNode as k, createElementVNode as d, resolveComponent as p, createBlock as R, normalizeClass as D, withCtx as C, toDisplayString as V, ref as K, watch as T, createVNode as i, isRef as g, h } from "vue";
2
+ import { c as l } from "./index-CWaKb7bG.js";
3
3
  import { h as I } from "./moment-h96o7c8I.js";
4
- import { u as M } from "./index-C5AZUa6M.js";
5
- import { _ as $ } from "./index.vue_vue_type_script_setup_true_lang-DcbfY6SQ.js";
4
+ import { u as M } from "./index-7KNaibcq.js";
5
+ import { _ as $ } from "./index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js";
6
6
  import "@feedmepos/ui-library";
7
- import { g as L } from "./assets-B9l5jWbK.js";
8
- import { E as B, t as w } from "./index-DYz8XIrE.js";
7
+ import { g as L } from "./assets-NrCec-W0.js";
8
+ import { E as B, t as w } from "./index-DbJpbpSs.js";
9
9
  import { d as G } from "./dinero-CIVmXLL-.js";
10
10
  import { _ as P } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
11
11
  import { useCoreStore as U } from "@feedmepos/mf-common";
12
12
  import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
13
  import { _ as W } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
14
14
  import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
15
- const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
15
+ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ y({
16
16
  __name: "Gateway",
17
17
  props: {
18
18
  row: {},
@@ -31,7 +31,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
31
31
  }, null, 8, z)
32
32
  ], 64));
33
33
  }
34
- }), H = /* @__PURE__ */ N({
34
+ }), H = /* @__PURE__ */ y({
35
35
  __name: "Status",
36
36
  props: {
37
37
  row: {},
@@ -55,7 +55,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
55
55
  }, 8, ["class"]);
56
56
  };
57
57
  }
58
- }), J = { class: "flex justify-between mb-6 items-start" }, X = { class: "flex space-x-8 items-start" }, Z = { class: "flex space-x-4" }, _e = /* @__PURE__ */ N({
58
+ }), J = { class: "flex justify-between mb-6 items-start" }, X = { class: "flex space-x-8 items-start" }, Z = { class: "flex space-x-4" }, _e = /* @__PURE__ */ y({
59
59
  __name: "TerminalTransaction",
60
60
  setup(f) {
61
61
  const { currentRestaurant: n } = U(), s = K(), { dateRange: o, status: m, searchKey: c } = M({
@@ -105,6 +105,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
105
105
  let u = "-";
106
106
  return a.details && a.details.amount && (u = G(a.details.amount).toFormat("$0.00")), {
107
107
  id: e._id,
108
+ orderId: e.orderId,
108
109
  refId: e.refId,
109
110
  terminalId: e.terminalId,
110
111
  transactionAt: I(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
@@ -122,6 +123,13 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
122
123
  },
123
124
  cell: ({ cell: e }) => h(W, { data: e.getValue() })
124
125
  },
126
+ {
127
+ accessorKey: "orderId",
128
+ header: () => "Pay ID",
129
+ meta: {
130
+ textAlign: "left"
131
+ }
132
+ },
125
133
  {
126
134
  accessorKey: "refId",
127
135
  header: () => "Reference ID",
@@ -170,7 +178,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
170
178
  }
171
179
  ];
172
180
  return (e, a) => {
173
- const u = p("FmSearch"), y = p("FmSelect"), v = p("FmDateRangePicker");
181
+ const u = p("FmSearch"), N = p("FmSelect"), v = p("FmDateRangePicker");
174
182
  return _(), R(j, {
175
183
  title: "Offline Transactions",
176
184
  description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
@@ -187,7 +195,7 @@ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
187
195
  label: "Search",
188
196
  placeholder: "Search Transactions ..."
189
197
  }, null, 8, ["model-value"]),
190
- i(y, {
198
+ i(N, {
191
199
  modelValue: t(m),
192
200
  "onUpdate:modelValue": a[1] || (a[1] = (r) => g(m) ? m.value = r : null),
193
201
  class: "mr-6 w-[300px]",
@@ -1,27 +1,27 @@
1
- import { defineComponent as I, openBlock as y, createElementBlock as h, unref as c, createCommentVNode as V, createElementVNode as w, resolveComponent as g, createBlock as v, normalizeClass as K, withCtx as N, toDisplayString as C, createVNode as p, Fragment as $, renderList as L, ref as P, watch as F, isRef as x, h as A } from "vue";
2
- import { c as f } from "./index-9ujJCGqe.js";
1
+ import { defineComponent as h, openBlock as y, createElementBlock as I, unref as c, createCommentVNode as V, createElementVNode as w, resolveComponent as g, createBlock as v, normalizeClass as K, withCtx as x, toDisplayString as C, createVNode as p, Fragment as $, renderList as P, ref as L, watch as F, isRef as N, h as A } from "vue";
2
+ import { c as f } from "./index-CWaKb7bG.js";
3
3
  import { h as R } from "./moment-h96o7c8I.js";
4
- import { u as B } from "./index-C5AZUa6M.js";
5
- import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-DcbfY6SQ.js";
4
+ import { u as B } from "./index-7KNaibcq.js";
5
+ import { _ as G } from "./index.vue_vue_type_script_setup_true_lang-JdAFa8vy.js";
6
6
  import { _ as U } from "./AdminLayout.vue_vue_type_script_setup_true_lang-BTmMOzwx.js";
7
7
  import { useSnackbar as Y, useDialog as Q } from "@feedmepos/ui-library";
8
- import { g as W } from "./assets-B9l5jWbK.js";
9
- import { E as j, t as b } from "./index-DYz8XIrE.js";
8
+ import { g as W } from "./assets-NrCec-W0.js";
9
+ import { E as j, t as b } from "./index-DbJpbpSs.js";
10
10
  import { d as z } from "./dinero-CIVmXLL-.js";
11
11
  import { _ as H } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
12
  import { _ as J } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
13
13
  import { useRouter as X } from "vue-router";
14
14
  import { w as Z } from "./Modal-DB8M9o1T.js";
15
15
  import { u as S } from "./error-K1CakhA9.js";
16
- const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I({
16
+ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ h({
17
17
  __name: "Gateway",
18
18
  props: {
19
19
  row: {},
20
20
  data: {}
21
21
  },
22
22
  setup(T) {
23
- return (a, m) => (y(), h("div", ee, [
24
- a.row.original.ecrGateway ? (y(), h("img", {
23
+ return (a, m) => (y(), I("div", ee, [
24
+ a.row.original.ecrGateway ? (y(), I("img", {
25
25
  key: 0,
26
26
  class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
27
27
  src: c(j)
@@ -32,7 +32,7 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
32
32
  }, null, 8, ae)
33
33
  ]));
34
34
  }
35
- }), re = /* @__PURE__ */ I({
35
+ }), re = /* @__PURE__ */ h({
36
36
  __name: "Status",
37
37
  props: {
38
38
  row: {},
@@ -49,14 +49,14 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
49
49
  inline: "",
50
50
  class: K(m())
51
51
  }, {
52
- default: N(() => [
52
+ default: x(() => [
53
53
  w("div", null, C(o.data.toUpperCase()), 1)
54
54
  ]),
55
55
  _: 1
56
56
  }, 8, ["class"]);
57
57
  };
58
58
  }
59
- }), oe = /* @__PURE__ */ I({
59
+ }), oe = /* @__PURE__ */ h({
60
60
  __name: "RouteCell",
61
61
  props: {
62
62
  data: {},
@@ -67,14 +67,14 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
67
67
  function o() {
68
68
  m.push(a.route);
69
69
  }
70
- return (l, s) => (y(), h("div", {
70
+ return (l, s) => (y(), I("div", {
71
71
  class: "fm-typo-en-link-md-600",
72
72
  onClick: s[0] || (s[0] = (u) => {
73
73
  u.stopPropagation(), o();
74
74
  })
75
75
  }, C(l.data), 1));
76
76
  }
77
- }), se = /* @__PURE__ */ I({
77
+ }), se = /* @__PURE__ */ h({
78
78
  __name: "Actions",
79
79
  props: {
80
80
  onAction: { type: Function }
@@ -96,17 +96,17 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
96
96
  ];
97
97
  return (m, o) => {
98
98
  const l = g("FmIcon"), s = g("FmMenuItem"), u = g("FmMenu");
99
- return y(), h("div", {
99
+ return y(), I("div", {
100
100
  onClick: o[0] || (o[0] = (i) => {
101
101
  i.stopPropagation();
102
102
  })
103
103
  }, [
104
104
  p(u, null, {
105
- "menu-button": N(() => [
105
+ "menu-button": x(() => [
106
106
  p(l, { name: "settings" })
107
107
  ]),
108
- default: N(() => [
109
- (y(), h($, null, L(a, (i) => p(s, {
108
+ default: x(() => [
109
+ (y(), I($, null, P(a, (i) => p(s, {
110
110
  selectable: !0,
111
111
  key: i.label,
112
112
  sublabel: i.sublabel,
@@ -120,10 +120,10 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
120
120
  ]);
121
121
  };
122
122
  }
123
- }), le = { class: "flex justify-between mb-6 items-start" }, ie = { class: "flex space-x-4 items-start" }, ce = { class: "flex space-x-4" }, xe = /* @__PURE__ */ I({
123
+ }), le = { class: "flex justify-between mb-6 items-start" }, ie = { class: "flex space-x-4 items-start" }, ce = { class: "flex space-x-4" }, Ne = /* @__PURE__ */ h({
124
124
  __name: "TerminalTransaction",
125
125
  setup(T) {
126
- const a = Y(), m = Q(), o = P(), { dateRange: l, status: s, searchKey: u } = B({
126
+ const a = Y(), m = Q(), o = L(), { dateRange: l, status: s, searchKey: u } = B({
127
127
  searchKey: "",
128
128
  status: [f.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
129
129
  dateRange: {
@@ -245,6 +245,7 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
245
245
  let r = "-";
246
246
  return t.details && t.details.amount && (r = z(t.details.amount).toFormat("$0.00")), {
247
247
  id: e._id,
248
+ orderId: e.orderId,
248
249
  refId: e.refId,
249
250
  owner: e.owner,
250
251
  terminalId: e.terminalId,
@@ -264,20 +265,10 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
264
265
  cell: ({ cell: e }) => A(J, { data: e.getValue() })
265
266
  },
266
267
  {
267
- accessorKey: "terminalId",
268
- header: () => "Terminal ID",
268
+ accessorKey: "orderId",
269
+ header: () => "Pay ID",
269
270
  meta: {
270
271
  textAlign: "left"
271
- },
272
- cell: ({ cell: e, row: t }) => {
273
- const r = e.getValue();
274
- return A(oe, {
275
- data: r,
276
- route: {
277
- name: "mf-payment-admin.terminal-setting",
278
- params: { terminalId: r }
279
- }
280
- });
281
272
  }
282
273
  },
283
274
  {
@@ -312,6 +303,23 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
312
303
  textAlign: "center"
313
304
  }
314
305
  },
306
+ {
307
+ accessorKey: "terminalId",
308
+ header: () => "Terminal ID",
309
+ meta: {
310
+ textAlign: "left"
311
+ },
312
+ cell: ({ cell: e, row: t }) => {
313
+ const r = e.getValue();
314
+ return A(oe, {
315
+ data: r,
316
+ route: {
317
+ name: "mf-payment-admin.terminal-setting",
318
+ params: { terminalId: r }
319
+ }
320
+ });
321
+ }
322
+ },
315
323
  {
316
324
  accessorKey: "owner",
317
325
  header: () => "Reference",
@@ -351,19 +359,19 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
351
359
  title: "Offline Transactions",
352
360
  loading: !1
353
361
  }, {
354
- default: N(() => [
362
+ default: x(() => [
355
363
  w("div", le, [
356
364
  w("div", ie, [
357
365
  p(r, {
358
366
  "model-value": c(u),
359
- "onUpdate:modelValue": t[0] || (t[0] = (n) => x(u) ? u.value = n : null),
367
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => N(u) ? u.value = n : null),
360
368
  class: "mr-8",
361
369
  label: "Search",
362
370
  placeholder: "Search Transactions ..."
363
371
  }, null, 8, ["model-value"]),
364
372
  p(d, {
365
373
  modelValue: c(s),
366
- "onUpdate:modelValue": t[1] || (t[1] = (n) => x(s) ? s.value = n : null),
374
+ "onUpdate:modelValue": t[1] || (t[1] = (n) => N(s) ? s.value = n : null),
367
375
  class: "mr-6 w-[300px]",
368
376
  label: "Status",
369
377
  "label-mark": "required",
@@ -372,7 +380,7 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
372
380
  }, null, 8, ["modelValue"]),
373
381
  p(_, {
374
382
  modelValue: c(l),
375
- "onUpdate:modelValue": t[2] || (t[2] = (n) => x(l) ? l.value = n : null),
383
+ "onUpdate:modelValue": t[2] || (t[2] = (n) => N(l) ? l.value = n : null),
376
384
  compare: "",
377
385
  "show-predefined-range": ""
378
386
  }, null, 8, ["modelValue"])
@@ -414,5 +422,5 @@ const ee = { class: "flex" }, te = ["src"], ae = ["src"], ne = /* @__PURE__ */ I
414
422
  }
415
423
  });
416
424
  export {
417
- xe as default
425
+ Ne as default
418
426
  };
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as _, resolveComponent as T, openBlock as f, createBlock as N, normalizeClass as k, withCtx as R, createElementVNode as y, toDisplayString as K, createElementBlock as O, unref as o, ref as A, h as x, onMounted as V, watch as E, createVNode as p, isRef as F } from "vue";
2
- import { t as I, a as C } from "./transaction-D5lnozQA.js";
3
- import { e as S, u as P } from "./index-9ujJCGqe.js";
2
+ import { t as I, a as C } from "./transaction-CQiT7Y_s.js";
3
+ import { e as S, u as P } from "./index-CWaKb7bG.js";
4
4
  import { useSnackbar as $ } from "@feedmepos/ui-library";
5
5
  import "./dinero-CIVmXLL-.js";
6
6
  import { h as b } from "./moment-h96o7c8I.js";
7
- import { g as L, a as B } from "./assets-B9l5jWbK.js";
7
+ import { g as L, a as B } from "./assets-NrCec-W0.js";
8
8
  import { useCoreStore as M } from "@feedmepos/mf-common";
9
9
  import { _ as U } from "./Layout.vue_vue_type_script_setup_true_lang-DJm5br5a.js";
10
- import { u as G } from "./index-C5AZUa6M.js";
10
+ import { u as G } from "./index-7KNaibcq.js";
11
11
  import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
12
  import { _ as q } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
13
13
  const J = /* @__PURE__ */ _({