@feedmepos/mf-payment 0.0.0-beta.31 → 0.0.0-beta.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js +40 -0
  2. package/dist/{PayoutAccount-SIy-StvQ.js → PayoutAccount-CRf5uapK.js} +3 -3
  3. package/dist/{PayoutAccount-CiTsWONr.js → PayoutAccount-DSXNLvNP.js} +5 -5
  4. package/dist/{PayoutAccountSetting-quTrnrC3.js → PayoutAccountSetting-Dc-ccYWa.js} +3 -3
  5. package/dist/{Settlement-DOgQp010.js → Settlement-B28WumZX.js} +4 -4
  6. package/dist/{Settlement-PVDes6sk.js → Settlement-C1H4r_ni.js} +4 -4
  7. package/dist/{SettlementTransactions-yQYGTzAC.js → SettlementTransactions-CdZswF1S.js} +4 -4
  8. package/dist/{SettlementTransactions-gvYCXBgb.js → SettlementTransactions-w0jXLftr.js} +4 -4
  9. package/dist/{Terminal-DcwgOlid.js → Terminal-BbIs7aYi.js} +4 -4
  10. package/dist/{TerminalSetting-BLp4Y6V9.js → TerminalSetting-3CRuMj8l.js} +3 -3
  11. package/dist/TerminalTransaction-CoPJlBCt.js +245 -0
  12. package/dist/TerminalTransaction-CwEwNN25.js +274 -0
  13. package/dist/{Transaction-Dwijtg8b.js → Transaction-Atm-A5eN.js} +10 -10
  14. package/dist/{Transaction-t6PdA3hg.js → Transaction-DpmCjczz.js} +6 -6
  15. package/dist/app.js +48 -48
  16. package/dist/assets-sX1_K-nt.js +44 -0
  17. package/dist/components/RouteCell.vue.d.ts +8 -0
  18. package/dist/helpers/assets.d.ts +2 -0
  19. package/dist/{index-F_l7bLXb.js → index-ApzEWD1P.js} +1 -1
  20. package/dist/{index-TbfhqZiB.js → index-BSpzaL20.js} +1 -1
  21. package/dist/{index-DrH47k0r.js → index-BgnU5ezY.js} +1 -1
  22. package/dist/{index-CAsbGPp2.js → index-CBFVJirn.js} +1 -1
  23. package/dist/{index-DTz8Nmfb.js → index-Cnxt2xmc.js} +2 -2
  24. package/dist/index-RhSxYSBk.js +35 -0
  25. package/dist/{index.vue_vue_type_script_setup_true_lang-clLSlUNS.js → index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js} +1 -1
  26. package/dist/package.json +1 -1
  27. package/dist/{payout-account-Cm4iYhNm.js → payout-account-BKVSgJb4.js} +534 -516
  28. package/dist/{transaction-CNNzvDLH.js → transaction-BH1Pm92q.js} +1 -1
  29. package/dist/tsconfig.app.tsbuildinfo +1 -1
  30. package/package.json +1 -1
  31. package/dist/AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js +0 -28
  32. package/dist/TerminalTransaction-Cb9V1igD.js +0 -237
  33. package/dist/TerminalTransaction-DHmQYA02.js +0 -243
  34. package/dist/api/auth/index.d.ts +0 -7
  35. package/dist/assets-UG99C8i-.js +0 -42
  36. package/dist/index-aI8zWz4m.js +0 -34
@@ -0,0 +1,40 @@
1
+ import { defineComponent as i, resolveComponent as s, openBlock as l, createElementBlock as m, createVNode as d, createTextVNode as C, toDisplayString as f } from "vue";
2
+ import { c as u } from "./clipboard-4jh1WteU.js";
3
+ import { useSnackbar as _ } from "@feedmepos/ui-library";
4
+ const x = /* @__PURE__ */ i({
5
+ __name: "AutoCopyCell",
6
+ props: {
7
+ data: {}
8
+ },
9
+ setup(a) {
10
+ const o = a, t = _();
11
+ function r() {
12
+ try {
13
+ u(o.data), t.open({ title: "Text copied to clipboard." }, 1e3);
14
+ } catch {
15
+ t.open({ title: "Clipboard API incompatible." }, 1e3);
16
+ }
17
+ o.data;
18
+ }
19
+ return (e, n) => {
20
+ const p = s("FmIcon");
21
+ return l(), m("div", {
22
+ class: "flex",
23
+ onClick: n[0] || (n[0] = (c) => {
24
+ c.stopPropagation(), r();
25
+ })
26
+ }, [
27
+ d(p, {
28
+ class: "mr-4",
29
+ name: "content_copy",
30
+ size: "sm",
31
+ outline: ""
32
+ }),
33
+ C(" " + f(e.data), 1)
34
+ ]);
35
+ };
36
+ }
37
+ });
38
+ export {
39
+ x as _
40
+ };
@@ -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-F_l7bLXb.js";
3
- import { _ as I, u as S, e as h } from "./index-DTz8Nmfb.js";
2
+ import { p as z } from "./index-ApzEWD1P.js";
3
+ import { _ as I, u as S, c as h } from "./index-Cnxt2xmc.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-Cm4iYhNm.js";
6
+ import { c as AA, P as j } from "./payout-account-BKVSgJb4.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-DrH47k0r.js";
3
- import { _ as O } from "./index-DTz8Nmfb.js";
2
+ import { u as S } from "./index-BgnU5ezY.js";
3
+ import { _ as O } from "./index-Cnxt2xmc.js";
4
4
  import { _ as K } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
5
- import { P as V } from "./payout-account-Cm4iYhNm.js";
6
- import { p as D } from "./index-F_l7bLXb.js";
5
+ import { P as V } from "./payout-account-BKVSgJb4.js";
6
+ import { p as D } from "./index-ApzEWD1P.js";
7
7
  import "@feedmepos/ui-library";
8
- import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-clLSlUNS.js";
8
+ import { _ as T } from "./index.vue_vue_type_script_setup_true_lang-B7ePQpGr.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 y, openBlock as b, createElementBlock as $, Fragment as T, createElementVNode as i, createVNode as o, withCtx as F, createTextVNode as S, toDisplayString as C, createCommentVNode as U, createBlock as V, ref as k, watch as N, computed as E, unref as d, isRef as M, h as K, onMounted as O, resolveDynamicComponent as j, normalizeProps as z, mergeProps as H } from "vue";
2
- import { p as R } from "./index-F_l7bLXb.js";
3
- import { g as _, b as B, u as L } from "./index-DTz8Nmfb.js";
2
+ import { p as R } from "./index-ApzEWD1P.js";
3
+ import { g as _, b as B, u as L } from "./index-Cnxt2xmc.js";
4
4
  import { _ as Z } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
5
5
  import { useRouter as J } from "vue-router";
6
- import { u as Q } from "./index-DrH47k0r.js";
6
+ import { u as Q } from "./index-BgnU5ezY.js";
7
7
  import { P as q } from "./PDFViewer-CjH_C1uT.js";
8
8
  import { useSnackbar as X } from "@feedmepos/ui-library";
9
9
  import { u as Y } from "./error-K1CakhA9.js";
@@ -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-DTz8Nmfb.js";
2
+ import { u as $ } from "./index-Cnxt2xmc.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-C38PTqO5.js";
6
- import { s as g } from "./index-TbfhqZiB.js";
6
+ import { s as g } from "./index-BSpzaL20.js";
7
7
  import "@feedmepos/ui-library";
8
8
  import { d as f } from "./dinero-CIVmXLL-.js";
9
- import { _ as K } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
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-DrH47k0r.js";
11
+ import { u as O } from "./index-BgnU5ezY.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,13 +1,13 @@
1
1
  import { defineComponent as w, ref as h, computed as S, resolveComponent as v, openBlock as x, createBlock as D, h as A, watch as k, onMounted as F, unref as o, withCtx as R, createElementVNode as u, createVNode as p, isRef as V } from "vue";
2
- import { u as b } from "./index-DTz8Nmfb.js";
2
+ import { u as b } from "./index-Cnxt2xmc.js";
3
3
  import { h as _ } from "./moment-h96o7c8I.js";
4
- import { s as g } from "./index-TbfhqZiB.js";
4
+ import { s as g } from "./index-BSpzaL20.js";
5
5
  import "@feedmepos/ui-library";
6
6
  import { d as f } from "./dinero-CIVmXLL-.js";
7
- import { _ as C } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-DWoahPJL.js";
7
+ import { _ as C } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
8
8
  import { useRouter as $ } from "vue-router";
9
9
  import { _ as I } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
10
- import { u as K } from "./index-DrH47k0r.js";
10
+ import { u as K } from "./index-BgnU5ezY.js";
11
11
  import { _ as P } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
12
12
  const B = /* @__PURE__ */ w({
13
13
  __name: "SettlementTable",
@@ -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-DTz8Nmfb.js";
2
+ import { c as E, u as q } from "./index-Cnxt2xmc.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-UG99C8i-.js";
6
- import { t as P, a as Z } from "./transaction-CNNzvDLH.js";
5
+ import { g as W, a as X } from "./assets-sX1_K-nt.js";
6
+ import { t as P, a as Z } from "./transaction-BH1Pm92q.js";
7
7
  import { _ as ee } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
8
8
  import { useRouter as te } from "vue-router";
9
- import { s as ae } from "./index-TbfhqZiB.js";
9
+ import { s as ae } from "./index-BSpzaL20.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,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-DTz8Nmfb.js";
2
+ import { c as E, u as j } from "./index-Cnxt2xmc.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-UG99C8i-.js";
6
- import { t as q, a as J } from "./transaction-CNNzvDLH.js";
5
+ import { g as Y, a as H } from "./assets-sX1_K-nt.js";
6
+ import { t as q, a as J } from "./transaction-BH1Pm92q.js";
7
7
  import { _ as Q } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
8
8
  import { useRouter as W } from "vue-router";
9
- import { s as X } from "./index-TbfhqZiB.js";
9
+ import { s as X } from "./index-BSpzaL20.js";
10
10
  import { useCoreStore as Z } from "@feedmepos/mf-common";
11
11
  const ee = /* @__PURE__ */ T({
12
12
  __name: "Status",
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as h, openBlock as d, createElementBlock as I, createTextVNode as R, createElementVNode as k, toDisplayString as N, resolveComponent as m, createVNode as _, normalizeClass as U, withCtx as V, createBlock as g, createCommentVNode as A, ref as T, computed as M, unref as c, watch as z, isRef as L, h as S } from "vue";
2
- import "./index-DTz8Nmfb.js";
2
+ import "./index-Cnxt2xmc.js";
3
3
  import { h as Y } from "./moment-h96o7c8I.js";
4
- import { u as j } from "./index-DrH47k0r.js";
5
- import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-clLSlUNS.js";
4
+ import { u as j } from "./index-BgnU5ezY.js";
5
+ import { _ as q } from "./index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js";
6
6
  import { _ as O } from "./AdminLayout.vue_vue_type_script_setup_true_lang-1DSAdvX7.js";
7
7
  import { useSnackbar as P, useDialogChild as Q, useDialog as G } from "@feedmepos/ui-library";
8
- import { t as F } from "./index-CAsbGPp2.js";
8
+ import { t as F } from "./index-CBFVJirn.js";
9
9
  import { c as H } from "./clipboard-4jh1WteU.js";
10
10
  import { u as D } from "./error-K1CakhA9.js";
11
11
  import { z as E, a as K } from "./validator-D5jtpt9A.js";
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as b, openBlock as g, createElementBlock as _, Fragment as C, createElementVNode as F, createTextVNode as q, toDisplayString as B, ref as v, onMounted as T, computed as D, resolveComponent as f, unref as w, createVNode as y, createBlock as I, withCtx as U, createCommentVNode as S, isRef as $, resolveDynamicComponent as P, normalizeProps as K, mergeProps as L } from "vue";
2
- import { u as M } from "./index-DTz8Nmfb.js";
2
+ import { u as M } from "./index-Cnxt2xmc.js";
3
3
  import { useRouter as N } from "vue-router";
4
- import { t as V } from "./index-CAsbGPp2.js";
4
+ import { t as V } from "./index-CBFVJirn.js";
5
5
  import { _ as O } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
6
- import { u as j } from "./index-DrH47k0r.js";
6
+ import { u as j } from "./index-BgnU5ezY.js";
7
7
  import { useSnackbar as E } from "@feedmepos/ui-library";
8
8
  import { u as h } from "./error-K1CakhA9.js";
9
9
  const A = /* @__PURE__ */ b({
@@ -0,0 +1,245 @@
1
+ import { defineComponent as N, openBlock as _, createElementBlock as w, Fragment as F, unref as t, createCommentVNode as k, createElementVNode as u, 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 { e as l } from "./index-Cnxt2xmc.js";
3
+ import { h as I } from "./moment-h96o7c8I.js";
4
+ import { u as M } from "./index-BgnU5ezY.js";
5
+ import { _ as $ } from "./index.vue_vue_type_script_setup_true_lang-B7ePQpGr.js";
6
+ import "@feedmepos/ui-library";
7
+ import { g as L } from "./assets-sX1_K-nt.js";
8
+ import { E as B, t as x } from "./index-RhSxYSBk.js";
9
+ import { d as G } from "./dinero-CIVmXLL-.js";
10
+ import { _ as P } from "./RestaurantSelector.vue_vue_type_script_setup_true_lang-CY4ttpKj.js";
11
+ import { useCoreStore as U } from "@feedmepos/mf-common";
12
+ import { _ as Y } from "./AsyncButton.vue_vue_type_script_setup_true_lang-DcjzvYwT.js";
13
+ import { _ as W } from "./AutoCopyCell.vue_vue_type_script_setup_true_lang-GXPXBEf5.js";
14
+ import "vue-router";
15
+ import { _ as j } from "./Layout.vue_vue_type_script_setup_true_lang-C38PTqO5.js";
16
+ const q = ["src"], z = ["src"], Q = /* @__PURE__ */ N({
17
+ __name: "Gateway",
18
+ props: {
19
+ row: {},
20
+ data: {}
21
+ },
22
+ setup(f) {
23
+ return (n, o) => (_(), w(F, null, [
24
+ n.row.original.ecrGateway ? (_(), w("img", {
25
+ key: 0,
26
+ class: "bg-fm-color-overlay-background rounded-md m-auto border-transparent w-[32px] h-[32px]",
27
+ src: t(B)
28
+ }, null, 8, q)) : k("", !0),
29
+ u("img", {
30
+ class: "rounded-md m-auto border-transparent w-[32px] h-[32px]",
31
+ src: t(L)(n.row.original.gateway)
32
+ }, null, 8, z)
33
+ ], 64));
34
+ }
35
+ }), H = /* @__PURE__ */ N({
36
+ __name: "Status",
37
+ props: {
38
+ row: {},
39
+ data: {}
40
+ },
41
+ setup(f) {
42
+ const n = f;
43
+ function o() {
44
+ return n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.process ? "!w-[16px] !h-[16px] bg-yellow-400" : n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.failed ? "!w-[16px] !h-[16px] bg-red-400" : n.data === l.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded ? "!w-[16px] !h-[16px] bg-blue-400" : "!w-[16px] !h-[16px] bg-green-400";
45
+ }
46
+ return (s, m) => {
47
+ const c = p("FmBadge");
48
+ return _(), R(c, {
49
+ inline: "",
50
+ class: D(o())
51
+ }, {
52
+ default: C(() => [
53
+ u("div", null, V(s.data.toUpperCase()), 1)
54
+ ]),
55
+ _: 1
56
+ }, 8, ["class"]);
57
+ };
58
+ }
59
+ }), J = { class: "flex justify-between mb-6 items-start" }, X = { class: "flex space-x-8 items-start" }, Z = { class: "flex space-x-4" }, fe = /* @__PURE__ */ N({
60
+ __name: "TerminalTransaction",
61
+ setup(f) {
62
+ const { currentRestaurant: n } = U(), o = K(), { dateRange: s, status: m, searchKey: c } = M({
63
+ searchKey: "",
64
+ status: [l.F_TERMINAL_TRANSACTION_ACTION.Enum.success],
65
+ dateRange: {
66
+ startDate: I().startOf("day").toISOString(),
67
+ endDate: I().endOf("day").toISOString()
68
+ }
69
+ });
70
+ T([s, m], () => {
71
+ var e;
72
+ return (e = o.value) == null ? void 0 : e.reset();
73
+ }), T(n, () => {
74
+ var e;
75
+ return (e = o.value) == null ? void 0 : e.reset();
76
+ });
77
+ let A;
78
+ T(c, async () => {
79
+ A && clearTimeout(A), A = setTimeout(
80
+ () => {
81
+ var e;
82
+ return (e = o.value) == null ? void 0 : e.reset();
83
+ },
84
+ 700
85
+ );
86
+ });
87
+ const S = [
88
+ {
89
+ label: "Success",
90
+ value: l.F_TERMINAL_TRANSACTION_ACTION.Enum.success
91
+ },
92
+ {
93
+ label: "Refunded",
94
+ value: l.F_TERMINAL_TRANSACTION_ACTION.Enum.refunded
95
+ },
96
+ {
97
+ label: "Process",
98
+ value: l.F_TERMINAL_TRANSACTION_ACTION.Enum.process
99
+ },
100
+ {
101
+ label: "Failed",
102
+ value: l.F_TERMINAL_TRANSACTION_ACTION.Enum.failed
103
+ }
104
+ ], E = function(e) {
105
+ const a = e;
106
+ let d = "-";
107
+ return a.details.amount && (d = G(a.details.amount).toFormat("$0.00")), {
108
+ id: e._id,
109
+ refId: e.refId,
110
+ terminalId: e.terminalId,
111
+ transactionAt: I(e.transactionAt).format("YYYY-MM-DD hh:mm:ss"),
112
+ action: e.action,
113
+ gateway: e.gateway,
114
+ ecrGateway: e.ecrGateway,
115
+ amount: d
116
+ };
117
+ }, O = [
118
+ {
119
+ accessorKey: "id",
120
+ header: () => "Transaction ID",
121
+ meta: {
122
+ textAlign: "left"
123
+ },
124
+ cell: ({ cell: e }) => h(W, { data: e.getValue() })
125
+ },
126
+ {
127
+ accessorKey: "refId",
128
+ header: () => "Reference ID",
129
+ meta: {
130
+ textAlign: "left"
131
+ }
132
+ },
133
+ {
134
+ accessorKey: "gateway",
135
+ header: () => "Gateway",
136
+ meta: {
137
+ textAlign: "center",
138
+ maxWidth: "128px"
139
+ },
140
+ cell: ({ cell: e, row: a }) => h(Q, { row: a, data: e.getValue() })
141
+ },
142
+ {
143
+ accessorKey: "action",
144
+ header: () => "Status",
145
+ meta: {
146
+ textAlign: "left",
147
+ maxWidth: "128px"
148
+ },
149
+ cell: ({ cell: e, row: a }) => h(H, { row: a, data: e.getValue() })
150
+ },
151
+ {
152
+ accessorKey: "amount",
153
+ header: () => "Sales Amount",
154
+ meta: {
155
+ textAlign: "center"
156
+ }
157
+ },
158
+ {
159
+ accessorKey: "terminalId",
160
+ header: () => "Terminal ID",
161
+ meta: {
162
+ textAlign: "left"
163
+ }
164
+ },
165
+ {
166
+ accessorKey: "transactionAt",
167
+ header: () => "Transaction At",
168
+ meta: {
169
+ textAlign: "left"
170
+ }
171
+ }
172
+ ];
173
+ return (e, a) => {
174
+ const d = p("FmSearch"), y = p("FmSelect"), v = p("FmDateRangePicker");
175
+ return _(), R(j, {
176
+ title: "Offline Transactions",
177
+ description: "Transactions are purchases or payments made in retail using electronic devices such as POS systems, kiosks, terminals, or ECRs.",
178
+ loading: !1
179
+ }, {
180
+ default: C(() => [
181
+ u("div", J, [
182
+ u("div", X, [
183
+ i(P),
184
+ i(d, {
185
+ "model-value": t(c),
186
+ "onUpdate:modelValue": a[0] || (a[0] = (r) => g(c) ? c.value = r : null),
187
+ class: "mr-8",
188
+ label: "Search",
189
+ placeholder: "Search Transactions ..."
190
+ }, null, 8, ["model-value"]),
191
+ i(y, {
192
+ modelValue: t(m),
193
+ "onUpdate:modelValue": a[1] || (a[1] = (r) => g(m) ? m.value = r : null),
194
+ class: "mr-6 w-[300px]",
195
+ label: "Status",
196
+ "label-mark": "required",
197
+ multiselect: "",
198
+ items: S
199
+ }, null, 8, ["modelValue"]),
200
+ i(v, {
201
+ modelValue: t(s),
202
+ "onUpdate:modelValue": a[2] || (a[2] = (r) => g(s) ? s.value = r : null),
203
+ compare: "",
204
+ "show-predefined-range": ""
205
+ }, null, 8, ["modelValue"])
206
+ ]),
207
+ u("div", Z, [
208
+ i(Y, {
209
+ button: {
210
+ appendIcon: "file_download",
211
+ variant: "primary",
212
+ label: "Export"
213
+ },
214
+ handler: () => {
215
+ var r;
216
+ return t(x).downloadTransactions(((r = o.value) == null ? void 0 : r.data()) ?? []);
217
+ }
218
+ }, null, 8, ["handler"])
219
+ ])
220
+ ]),
221
+ i($, {
222
+ ref_key: "controller",
223
+ ref: o,
224
+ "column-defs": O,
225
+ "rows-defs": E,
226
+ paginate: (r, b) => t(x).readRestaurantTransactions({
227
+ status: t(m),
228
+ searchKey: t(c),
229
+ limit: r,
230
+ cursor: b,
231
+ start: t(s).startDate,
232
+ end: t(s).endDate
233
+ }),
234
+ onRowClick: () => {
235
+ }
236
+ }, null, 8, ["paginate"])
237
+ ]),
238
+ _: 1
239
+ });
240
+ };
241
+ }
242
+ });
243
+ export {
244
+ fe as default
245
+ };