@mx-cartographer/experiences 8.0.14 → 8.0.15
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.
- package/CHANGELOG.md +2 -0
- package/dist/EmbeddedCard-B4U5fIbl.mjs +796 -0
- package/dist/{ExportCsvAction-ErKh7wJ2.mjs → ExportCsvAction-CHCmCCqf.mjs} +4 -5
- package/dist/{ManageIncome-C_XOG9CZ.mjs → ManageIncome-DZ_6f0js.mjs} +3 -3
- package/dist/{RecurringSettings-Bt-zMwCB.mjs → RecurringSettings-CJJndcMu.mjs} +1 -1
- package/dist/{Transaction-Cn5_iFm0.mjs → Transaction-C3Pg9TKf.mjs} +2 -2
- package/dist/TransactionDetails-B9rTYhMA.mjs +1703 -0
- package/dist/{TransactionStore-CbZfz7-2.mjs → TransactionStore-BUsgGRL1.mjs} +43 -32
- package/dist/accounts/index.es.js +2 -2
- package/dist/budgets/index.es.js +5 -6
- package/dist/cashflow/index.es.js +3 -3
- package/dist/common/index.es.js +20 -20
- package/dist/core/index.es.js +1 -1
- package/dist/core/types/localization/InsightsFeedCopy.d.ts +11 -0
- package/dist/{OnClickEvents-CseHDZ94.mjs → exportTransactionsToCSV-DgdB3TBt.mjs} +70 -24
- package/dist/finstrong/index.es.js +3 -3
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +1 -2
- package/dist/insights/index.es.js +1043 -1566
- package/dist/recurringtransactions/index.es.js +4 -4
- package/dist/spending/index.es.js +3 -3
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +8 -0
- package/dist/transactions/index.es.js +15 -15
- package/dist/transactions/stores/TransactionStore.d.ts +1 -0
- package/dist/trends/index.es.js +3 -3
- package/package.json +1 -1
- package/dist/StatusIndicator-DAWRKwmE.mjs +0 -264
- package/dist/TransactionDetails-DA6tdnu0.mjs +0 -1476
- package/dist/exportTransactionsToCSV-MCYH_zzN.mjs +0 -48
|
@@ -6,8 +6,8 @@ import { endOfToday as J } from "date-fns/endOfToday";
|
|
|
6
6
|
import { startOfMonth as k } from "date-fns/startOfMonth";
|
|
7
7
|
import { startOfToday as Q } from "date-fns/startOfToday";
|
|
8
8
|
import { subDays as ee } from "date-fns/subDays";
|
|
9
|
-
import { R as _e } from "../RecurringSettings-
|
|
10
|
-
import { M as Yn } from "../RecurringSettings-
|
|
9
|
+
import { R as _e } from "../RecurringSettings-CJJndcMu.mjs";
|
|
10
|
+
import { M as Yn } from "../RecurringSettings-CJJndcMu.mjs";
|
|
11
11
|
import { addMonths as He } from "date-fns/addMonths";
|
|
12
12
|
import { subMonths as $e } from "date-fns/subMonths";
|
|
13
13
|
import { isBefore as Be } from "date-fns/isBefore";
|
|
@@ -48,8 +48,8 @@ import { g as ye, d as dt } from "../RecurringTransactions-BbZ6MQsX.mjs";
|
|
|
48
48
|
import ut from "@mui/material/ListItemAvatar";
|
|
49
49
|
import mt from "@mui/material/ListItemButton";
|
|
50
50
|
import pt from "@mui/material/ListItemText";
|
|
51
|
-
import { b as gt } from "../ManageIncome-
|
|
52
|
-
import { c as qn, M as Zn, S as Xn } from "../ManageIncome-
|
|
51
|
+
import { b as gt } from "../ManageIncome-DZ_6f0js.mjs";
|
|
52
|
+
import { c as qn, M as Zn, S as Xn } from "../ManageIncome-DZ_6f0js.mjs";
|
|
53
53
|
import { f as E } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
54
54
|
import { D as ie } from "../Drawer-Bbe4AMB1.mjs";
|
|
55
55
|
import O from "@mui/material/Box";
|
|
@@ -18,9 +18,9 @@ import { M as Ct } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
|
|
|
18
18
|
import { startOfToday as q } from "date-fns/startOfToday";
|
|
19
19
|
import St from "@mui/material/Button";
|
|
20
20
|
import { useTheme as Tt } from "@mui/material";
|
|
21
|
-
import { e as Mt } from "../exportTransactionsToCSV-
|
|
22
|
-
import { T as Dt } from "../
|
|
23
|
-
import { T as xt } from "../TransactionDetails-
|
|
21
|
+
import { e as Mt } from "../exportTransactionsToCSV-DgdB3TBt.mjs";
|
|
22
|
+
import { T as Dt } from "../EmbeddedCard-B4U5fIbl.mjs";
|
|
23
|
+
import { T as xt } from "../TransactionDetails-B9rTYhMA.mjs";
|
|
24
24
|
import vt from "@mui/material/Collapse";
|
|
25
25
|
import wt from "@mui/material/Divider";
|
|
26
26
|
import J from "@mui/material/List";
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { CommonCopy } from '../../../core/types/localization/CommonCopy';
|
|
2
2
|
import { Beat } from '../../../insights/types/CommonBeat';
|
|
3
|
+
import { ChartDataProps } from '../../utils/Transactions';
|
|
3
4
|
export declare const BeatTemplates: {
|
|
4
5
|
BILL_AMOUNT_NOT_STANDARD: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const getEmbeddedInstanceSlotByBeatTemplates: (copy: CommonCopy, beat?: Beat) => {
|
|
7
8
|
instanceSlot: import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
dataSeries: ChartDataProps[];
|
|
10
|
+
chartData: {
|
|
11
|
+
ariaLabel: string;
|
|
12
|
+
label: string;
|
|
13
|
+
value: number;
|
|
14
|
+
formattedAmount: string;
|
|
15
|
+
}[];
|
|
8
16
|
callToAction: string;
|
|
9
17
|
} | null;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { T as wa } from "../TransactionApi-Ck5Ua-7F.mjs";
|
|
2
|
-
import { C as Me, D as Re, M as Be, a as He, T as Pe } from "../TransactionDetails-
|
|
3
|
-
import { B as Da, b as Ia } from "../TransactionDetails-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { E as Ra } from "../ExportCsvAction-
|
|
2
|
+
import { C as Me, D as Re, M as Be, a as He, T as Pe } from "../TransactionDetails-B9rTYhMA.mjs";
|
|
3
|
+
import { B as Da, b as Ia } from "../TransactionDetails-B9rTYhMA.mjs";
|
|
4
|
+
import { e as $e } from "../exportTransactionsToCSV-DgdB3TBt.mjs";
|
|
5
|
+
import { O as Na } from "../exportTransactionsToCSV-DgdB3TBt.mjs";
|
|
6
|
+
import { S as Z, D as Ve } from "../TransactionStore-BUsgGRL1.mjs";
|
|
7
|
+
import { T as Oa } from "../TransactionStore-BUsgGRL1.mjs";
|
|
8
|
+
import { u as B, T as We } from "../EmbeddedCard-B4U5fIbl.mjs";
|
|
9
|
+
import { a as La } from "../EmbeddedCard-B4U5fIbl.mjs";
|
|
10
|
+
import { E as Ra } from "../ExportCsvAction-CHCmCCqf.mjs";
|
|
11
11
|
import { jsxs as _, jsx as e } from "react/jsx-runtime";
|
|
12
12
|
import m from "react";
|
|
13
13
|
import { observer as I } from "mobx-react-lite";
|
|
@@ -20,7 +20,7 @@ import { Text as C, Icon as R, MerchantLogo as Ye, TextField as ee, P as je } fr
|
|
|
20
20
|
import { fromUnixTime as Xe } from "date-fns/fromUnixTime";
|
|
21
21
|
import { f as Je, D as Qe } from "../DateFormats-BMpMrZpW.mjs";
|
|
22
22
|
import D from "@mui/material/Stack";
|
|
23
|
-
import {
|
|
23
|
+
import { a as O } from "../Transaction-C3Pg9TKf.mjs";
|
|
24
24
|
import { f as re } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
25
25
|
import { L as z } from "../Loader-D3rjKx72.mjs";
|
|
26
26
|
import { A } from "../Analytics-0Xm_BjHU.mjs";
|
|
@@ -431,10 +431,10 @@ const ft = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
431
431
|
searchTerm: u
|
|
432
432
|
}), d(A.TRANSACTIONS_CLICK_SEARCH, { search_term: u });
|
|
433
433
|
}, Ie = () => {
|
|
434
|
-
|
|
434
|
+
$e(ue, me), d(A.TRANSACTIONS_CLICK_EXPORT);
|
|
435
435
|
}, ve = () => {
|
|
436
436
|
s.length > 0 ? (ye({
|
|
437
|
-
|
|
437
|
+
...Ve,
|
|
438
438
|
date: et(F()),
|
|
439
439
|
user_guid: Te?.user_guid || ""
|
|
440
440
|
}), T(
|
|
@@ -519,7 +519,7 @@ const ft = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "body2",
|
|
|
519
519
|
[k.breakpoints.up("md")]: { display: "none" }
|
|
520
520
|
},
|
|
521
521
|
children: /* @__PURE__ */ e(
|
|
522
|
-
|
|
522
|
+
We,
|
|
523
523
|
{
|
|
524
524
|
height: `calc(${r} - ${ae}px)`,
|
|
525
525
|
onClick: (u) => {
|
|
@@ -597,11 +597,11 @@ export {
|
|
|
597
597
|
Ia as TopActions,
|
|
598
598
|
wa as TransactionApi,
|
|
599
599
|
Pe as TransactionDetails,
|
|
600
|
-
|
|
600
|
+
We as TransactionList,
|
|
601
601
|
La as TransactionRow,
|
|
602
602
|
Oa as TransactionStore,
|
|
603
603
|
Dt as TransactionTable,
|
|
604
604
|
ba as TransactionWidget,
|
|
605
|
-
|
|
605
|
+
$e as exportTransactionsToCSV,
|
|
606
606
|
B as useTransactionsUiStore
|
|
607
607
|
};
|
|
@@ -69,4 +69,5 @@ export declare class TransactionStore {
|
|
|
69
69
|
updateTaggings: (tagGuids: string[], transactionGuid: string) => Promise<void>;
|
|
70
70
|
updateTag: (tag: Tag) => Promise<void>;
|
|
71
71
|
updateTransaction: (transaction: Transaction) => Promise<void>;
|
|
72
|
+
loadEmbeddedInstanceTransactions: (fromDate: Date) => Promise<void>;
|
|
72
73
|
}
|
package/dist/trends/index.es.js
CHANGED
|
@@ -35,8 +35,8 @@ import { useGridApiContext as jt, useGridRootProps as Ut, DataGridPro as Xt } fr
|
|
|
35
35
|
import Zt from "@mui/material/Badge";
|
|
36
36
|
import Qt from "@mui/material/IconButton";
|
|
37
37
|
import { A as v } from "../Analytics-0Xm_BjHU.mjs";
|
|
38
|
-
import { T as ct } from "../
|
|
39
|
-
import { T as dt } from "../TransactionDetails-
|
|
38
|
+
import { T as ct } from "../EmbeddedCard-B4U5fIbl.mjs";
|
|
39
|
+
import { T as dt } from "../TransactionDetails-B9rTYhMA.mjs";
|
|
40
40
|
import { D as Pe } from "../Drawer-Bbe4AMB1.mjs";
|
|
41
41
|
import { u as Ie } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
42
42
|
import { L as Le } from "../Loader-D3rjKx72.mjs";
|
|
@@ -56,7 +56,7 @@ import gt from "@mui/material/styles/useTheme";
|
|
|
56
56
|
import { b as Oe } from "../CategoryUtil-BVixr0d5.mjs";
|
|
57
57
|
import { Stack as mo } from "@mui/material";
|
|
58
58
|
import ho from "@mui/material/ListItemAvatar";
|
|
59
|
-
import { E as go } from "../ExportCsvAction-
|
|
59
|
+
import { E as go } from "../ExportCsvAction-CHCmCCqf.mjs";
|
|
60
60
|
import { u as po } from "../useInsightsEnabled-DL_oNyI0.mjs";
|
|
61
61
|
import { E as fo } from "../EmptyState-DHAkGsjk.mjs";
|
|
62
62
|
import { C as yo } from "../ConnectDrawer-C0wjwcJt.mjs";
|
package/package.json
CHANGED
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import u from "react";
|
|
3
|
-
import { observer as D } from "mobx-react-lite";
|
|
4
|
-
import { useVirtualizer as H } from "@tanstack/react-virtual";
|
|
5
|
-
import y from "@mui/material/Box";
|
|
6
|
-
import W from "@mui/material/Divider";
|
|
7
|
-
import B from "@mui/material/List";
|
|
8
|
-
import { G as K, h as E, u as R, g as P } from "./hooks-BxkfR-Ff.mjs";
|
|
9
|
-
import { MerchantLogo as Y, Icon as v, Text as l, P as Z, H2 as F } from "@mxenabled/mxui";
|
|
10
|
-
import q from "@mui/material/ListItemAvatar";
|
|
11
|
-
import J from "@mui/material/ListItemText";
|
|
12
|
-
import s from "@mui/material/Stack";
|
|
13
|
-
import { useTheme as Q } from "@mui/material/styles";
|
|
14
|
-
import { L as X, O as ee } from "./OnClickEvents-CseHDZ94.mjs";
|
|
15
|
-
import { T as te } from "./Transaction-Cn5_iFm0.mjs";
|
|
16
|
-
import { f as re } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
17
|
-
import { Receipt as oe } from "@mxenabled/mx-icons";
|
|
18
|
-
import { fromUnixTime as w } from "date-fns/fromUnixTime";
|
|
19
|
-
import { isSameDay as z } from "date-fns/isSameDay";
|
|
20
|
-
import { h as ne } from "./DateUtil-wcYTmDRD.mjs";
|
|
21
|
-
import { L as ie } from "./Loader-D3rjKx72.mjs";
|
|
22
|
-
import { A as se } from "./Analytics-0Xm_BjHU.mjs";
|
|
23
|
-
const C = () => {
|
|
24
|
-
if (!u.useContext(K))
|
|
25
|
-
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
26
|
-
return E().uiStore;
|
|
27
|
-
};
|
|
28
|
-
function ae() {
|
|
29
|
-
return window.opener && window.opener.location ? window.opener.location.toString() : document.referrer;
|
|
30
|
-
}
|
|
31
|
-
function ce(e) {
|
|
32
|
-
const r = ae().replace(/([^:]+:\/\/[^\/]+).*/, "$1"), o = window.parent || window.opener || !1;
|
|
33
|
-
return o && o.postMessage && r ? (o.postMessage(e, r), !0) : !1;
|
|
34
|
-
}
|
|
35
|
-
function le(e) {
|
|
36
|
-
return ce({
|
|
37
|
-
metadata: { beat_guid: e },
|
|
38
|
-
mx: !0,
|
|
39
|
-
type: "mx/moneyDashboard/insightOnTransaction"
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
const de = ({ transaction: e, onClick: r }) => {
|
|
43
|
-
const c = Q().palette.mode === "dark", { associatedBeats: p } = E(), { expandedSplits: h } = C(), { transactions: d } = R(), { showInsights: f } = C(), g = e.transaction_type === te.CREDIT, _ = u.useMemo(() => p.find((x) => x.associated_transaction_guid === e.guid), [p, e]);
|
|
44
|
-
return (
|
|
45
|
-
//TODO: implement common/components/ListItemRow.tsx
|
|
46
|
-
/* @__PURE__ */ n(
|
|
47
|
-
X,
|
|
48
|
-
{
|
|
49
|
-
clickEventName: ee.ON_TRANSACTION_LIST_ITEM_CLICK,
|
|
50
|
-
onClick: r ? () => r(e.guid) : void 0,
|
|
51
|
-
children: [
|
|
52
|
-
/* @__PURE__ */ t(q, { children: e.parent_guid && h.includes(e.parent_guid) ? /* @__PURE__ */ t(u.Fragment, {}) : /* @__PURE__ */ t(
|
|
53
|
-
Y,
|
|
54
|
-
{
|
|
55
|
-
categoryGuid: e.top_level_category_guid || "",
|
|
56
|
-
merchantGuid: e.merchant_guid || ""
|
|
57
|
-
}
|
|
58
|
-
) }),
|
|
59
|
-
/* @__PURE__ */ t(
|
|
60
|
-
J,
|
|
61
|
-
{
|
|
62
|
-
disableTypography: !0,
|
|
63
|
-
secondary: /* @__PURE__ */ n(s, { direction: "row", justifyContent: "space-between", children: [
|
|
64
|
-
/* @__PURE__ */ n(s, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
65
|
-
e.is_flagged && /* @__PURE__ */ t(
|
|
66
|
-
v,
|
|
67
|
-
{
|
|
68
|
-
fill: !0,
|
|
69
|
-
name: "flag",
|
|
70
|
-
size: 16,
|
|
71
|
-
sx: { color: c ? "primary.main" : "warning.dark" }
|
|
72
|
-
}
|
|
73
|
-
),
|
|
74
|
-
e.is_hidden && /* @__PURE__ */ t(v, { name: "visibility_off", size: 16 }),
|
|
75
|
-
e.has_been_split && /* @__PURE__ */ t(v, { name: "call_split", size: 16 }),
|
|
76
|
-
/* @__PURE__ */ t(l, { variant: "caption", children: e.has_been_split ? d.split_transaction_category_label : e.category })
|
|
77
|
-
] }),
|
|
78
|
-
_ && f && /* @__PURE__ */ t(
|
|
79
|
-
l,
|
|
80
|
-
{
|
|
81
|
-
bold: !0,
|
|
82
|
-
color: "action.active",
|
|
83
|
-
onClick: (x) => {
|
|
84
|
-
x.stopPropagation(), x.preventDefault(), le(_.guid);
|
|
85
|
-
},
|
|
86
|
-
variant: "caption",
|
|
87
|
-
children: _.short_title
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
] }),
|
|
91
|
-
children: /* @__PURE__ */ n(s, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
|
|
92
|
-
/* @__PURE__ */ n(l, { bold: !0, variant: "body1", children: [
|
|
93
|
-
e.is_hidden && d.hide_trnx_cancel_hidden_note,
|
|
94
|
-
e.payee || e.description || e.feed_description
|
|
95
|
-
] }),
|
|
96
|
-
/* @__PURE__ */ n(
|
|
97
|
-
l,
|
|
98
|
-
{
|
|
99
|
-
bold: !0,
|
|
100
|
-
color: g ? "success.main" : "text.primary",
|
|
101
|
-
sx: { flexShrink: 0 },
|
|
102
|
-
variant: "body1",
|
|
103
|
-
children: [
|
|
104
|
-
g ? "+" : "",
|
|
105
|
-
re(e.amount, "0,0.00")
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
] })
|
|
110
|
-
}
|
|
111
|
-
)
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
);
|
|
116
|
-
}, ue = D(de), pe = ({
|
|
117
|
-
bgcolor: e = "background.default",
|
|
118
|
-
children: r
|
|
119
|
-
}) => /* @__PURE__ */ t(y, { display: "inline-block", sx: { bgcolor: e, py: 6, width: "100%" }, children: /* @__PURE__ */ t(l, { bold: !0, sx: { pl: 24 }, variant: "caption", children: r }) }), me = ({ showIcon: e = !0, showSubtitle: r = !0 }) => {
|
|
120
|
-
const { transactions: o } = R();
|
|
121
|
-
return /* @__PURE__ */ n(s, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
|
|
122
|
-
e && /* @__PURE__ */ t(oe, { color: "action", sx: { fontSize: 32 } }),
|
|
123
|
-
/* @__PURE__ */ t(l, { bold: !0, color: "text.secondary", variant: "body2", children: o.zero_state_no_transactions }),
|
|
124
|
-
r && /* @__PURE__ */ t(l, { color: "text.secondary", variant: "caption", children: o.zero_state_there_are_no_transactions })
|
|
125
|
-
] });
|
|
126
|
-
}, he = D(me), k = (e, r) => {
|
|
127
|
-
const o = w(r[e].date), c = w(r[e - 1]?.date);
|
|
128
|
-
return !z(o, c);
|
|
129
|
-
}, fe = (e, r) => {
|
|
130
|
-
const o = w(r[e].date), c = w(r[e + 1]?.date);
|
|
131
|
-
return z(o, c);
|
|
132
|
-
}, A = 65, N = 32, ge = ({
|
|
133
|
-
bgcolor: e,
|
|
134
|
-
filter: r,
|
|
135
|
-
height: o = "calc(100dvh - 36px)",
|
|
136
|
-
loader: c = /* @__PURE__ */ t(ie, { label: "Loading", size: 40 }),
|
|
137
|
-
onClick: p,
|
|
138
|
-
showInsights: h = !1,
|
|
139
|
-
showLoader: d = !1,
|
|
140
|
-
showHiddenTransactions: f = !1,
|
|
141
|
-
transaction: g,
|
|
142
|
-
width: _ = "100%",
|
|
143
|
-
zeroState: x = /* @__PURE__ */ t(he, {})
|
|
144
|
-
}) => {
|
|
145
|
-
const { isLoading: S, sortedTransactions: I } = E(), m = u.useMemo(() => {
|
|
146
|
-
const i = r ? I.filter(r) : I, a = g ?? i;
|
|
147
|
-
return f ? a : a.filter((T) => !T.is_hidden);
|
|
148
|
-
}, [I, f]), { clearExpandedSplits: O, setShowInsights: G, toggleSplit: M } = C(), { onEvent: V } = P(), $ = (i) => {
|
|
149
|
-
const a = m.find((T) => T.guid === i);
|
|
150
|
-
if (a?.has_been_split) {
|
|
151
|
-
M(a.guid);
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
V(se.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
155
|
-
account_guid: a?.account_guid,
|
|
156
|
-
transaction_guid: i
|
|
157
|
-
}), p?.(i);
|
|
158
|
-
}, L = u.useRef(null), b = H({
|
|
159
|
-
count: m.length,
|
|
160
|
-
getScrollElement: () => L.current,
|
|
161
|
-
estimateSize: (i) => A + (k(i, m) ? N : 0),
|
|
162
|
-
overscan: 5
|
|
163
|
-
});
|
|
164
|
-
return u.useEffect(() => b.measure(), [m]), u.useEffect(() => G(h), [h]), u.useEffect(() => () => O(), []), /* @__PURE__ */ t(B, { component: "div", role: "list", sx: { width: _ }, children: /* @__PURE__ */ t(y, { height: o, overflow: "auto", ref: L, role: "presentation", width: _, children: /* @__PURE__ */ n(
|
|
165
|
-
y,
|
|
166
|
-
{
|
|
167
|
-
height: (
|
|
168
|
-
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
169
|
-
b.getVirtualItems().length === 0 ? "auto" : b.getTotalSize()
|
|
170
|
-
),
|
|
171
|
-
position: "relative",
|
|
172
|
-
role: "presentation",
|
|
173
|
-
width: "100%",
|
|
174
|
-
children: [
|
|
175
|
-
(S || d) && c,
|
|
176
|
-
!S && !d && b.getVirtualItems().length === 0 && x,
|
|
177
|
-
!S && !d && b.getVirtualItems().length > 0 && b.getVirtualItems().map((i) => {
|
|
178
|
-
const a = m[i.index], T = k(i.index, m), U = fe(i.index, m), j = A + (T ? N : 0);
|
|
179
|
-
return /* @__PURE__ */ n(
|
|
180
|
-
y,
|
|
181
|
-
{
|
|
182
|
-
role: "listitem",
|
|
183
|
-
sx: {
|
|
184
|
-
height: j,
|
|
185
|
-
position: "absolute",
|
|
186
|
-
transform: `translateY(${i.start}px)`,
|
|
187
|
-
width: "100%",
|
|
188
|
-
bgcolor: "background.paper"
|
|
189
|
-
},
|
|
190
|
-
children: [
|
|
191
|
-
T && /* @__PURE__ */ t(pe, { bgcolor: e, children: ne(a.date) }),
|
|
192
|
-
/* @__PURE__ */ t(
|
|
193
|
-
ue,
|
|
194
|
-
{
|
|
195
|
-
...p && { onClick: $ },
|
|
196
|
-
transaction: a
|
|
197
|
-
}
|
|
198
|
-
),
|
|
199
|
-
/* @__PURE__ */ t(W, { sx: { ml: U ? 68 : 0 } })
|
|
200
|
-
]
|
|
201
|
-
},
|
|
202
|
-
a.guid
|
|
203
|
-
);
|
|
204
|
-
})
|
|
205
|
-
]
|
|
206
|
-
}
|
|
207
|
-
) }) });
|
|
208
|
-
}, Ue = D(ge), _e = ({
|
|
209
|
-
amount: e,
|
|
210
|
-
borderRadius: r = "2px",
|
|
211
|
-
completeColor: o = "success.main",
|
|
212
|
-
icon: c,
|
|
213
|
-
label: p,
|
|
214
|
-
leftLabel: h,
|
|
215
|
-
percentComplete: d = 0,
|
|
216
|
-
rightLabel: f,
|
|
217
|
-
sx: g
|
|
218
|
-
}) => /* @__PURE__ */ t(s, { sx: { p: 24, width: "100%", ...g }, children: /* @__PURE__ */ n(s, { className: "details-container", sx: { gap: 16 }, children: [
|
|
219
|
-
/* @__PURE__ */ n(s, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
220
|
-
/* @__PURE__ */ t(y, { children: c }),
|
|
221
|
-
/* @__PURE__ */ n(s, { children: [
|
|
222
|
-
/* @__PURE__ */ t(Z, { variant: "body2", children: p }),
|
|
223
|
-
typeof e == "string" ? /* @__PURE__ */ t(F, { children: e }) : e
|
|
224
|
-
] })
|
|
225
|
-
] }),
|
|
226
|
-
/* @__PURE__ */ n(s, { sx: { gap: 4 }, children: [
|
|
227
|
-
/* @__PURE__ */ t(
|
|
228
|
-
s,
|
|
229
|
-
{
|
|
230
|
-
sx: {
|
|
231
|
-
bgcolor: "divider",
|
|
232
|
-
borderRadius: r,
|
|
233
|
-
flexDirection: "row",
|
|
234
|
-
height: 16,
|
|
235
|
-
width: "100%"
|
|
236
|
-
},
|
|
237
|
-
children: /* @__PURE__ */ t(
|
|
238
|
-
y,
|
|
239
|
-
{
|
|
240
|
-
sx: {
|
|
241
|
-
bgcolor: o,
|
|
242
|
-
borderRadius: r,
|
|
243
|
-
height: 16,
|
|
244
|
-
width: `${d}%`
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
)
|
|
248
|
-
}
|
|
249
|
-
),
|
|
250
|
-
/* @__PURE__ */ n(s, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
251
|
-
/* @__PURE__ */ t(l, { variant: "body2", children: h }),
|
|
252
|
-
/* @__PURE__ */ t(l, { variant: "body2", children: f })
|
|
253
|
-
] })
|
|
254
|
-
] })
|
|
255
|
-
] }) }), je = _e;
|
|
256
|
-
export {
|
|
257
|
-
pe as S,
|
|
258
|
-
Ue as T,
|
|
259
|
-
ue as a,
|
|
260
|
-
je as b,
|
|
261
|
-
fe as h,
|
|
262
|
-
k as s,
|
|
263
|
-
C as u
|
|
264
|
-
};
|