@mx-cartographer/experiences 7.11.20 → 7.11.21
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 +4 -0
- package/dist/{AccountDetailsHeader-DCTCLB3K.mjs → AccountDetailsHeader-DkBNsLsI.mjs} +2 -2
- package/dist/{AccountListItem-CZk-bo6j.mjs → AccountListItem-BIVhda6q.mjs} +2 -2
- package/dist/{AccountStore-Cw54qb7Y.mjs → AccountStore-Brc0MNSF.mjs} +1 -1
- package/dist/BudgetUtil--_QXyszn.mjs +479 -0
- package/dist/{CategorySelectorDrawer-Blb22HWt.mjs → CategorySelectorDrawer-5n6Pil_E.mjs} +1 -1
- package/dist/{Connect-Df7iVTcV.mjs → Connect-eYIWqCEr.mjs} +1 -1
- package/dist/{ConnectDrawer-CVt-8rPJ.mjs → ConnectDrawer-CioFo6Wy.mjs} +2 -2
- package/dist/{ConnectionsDrawer-c7HaKeRj.mjs → ConnectionsDrawer-DqhSaMrJ.mjs} +2 -2
- package/dist/{CurrencyInput-bcKNJ22c.mjs → CurrencyInput-DuMktPu3.mjs} +1 -1
- package/dist/{ExportCsvAction-B5Mn5uyb.mjs → ExportCsvAction-Bg6gO_Cz.mjs} +3 -3
- package/dist/{GlobalAccountFilter-CbwySv6c.mjs → GlobalAccountFilter-B73Pw1hJ.mjs} +1 -1
- package/dist/{GoalStore-DXIP9dLt.mjs → GoalStore-0bd-Upkc.mjs} +1 -1
- package/dist/{Help-COWDMsJq.mjs → Help-CINT6-wG.mjs} +1 -1
- package/dist/{LineChart-DVn1AamK.mjs → LineChart-B1qbKR8q.mjs} +1 -1
- package/dist/{ListItemAction-5YhgdUZW.mjs → ListItemAction-CfXGuY7a.mjs} +1 -1
- package/dist/{ManageIncome-_ZP3uPwX.mjs → ManageIncome-C0ddaiMR.mjs} +10 -10
- package/dist/{MicroWidgetContainer-CMES42I1.mjs → MicroWidgetContainer-B_EnfvCq.mjs} +1 -1
- package/dist/{MiniWidgetContainer-DhEx4qKi.mjs → MiniWidgetContainer-Cu72GNsE.mjs} +1 -1
- package/dist/{NotificationSettings-D8uSK6m9.mjs → NotificationSettings-DCbMa5mg.mjs} +4 -4
- package/dist/{OriginalBalanceAction-DuVHcBdO.mjs → OriginalBalanceAction-CW_xOa6Z.mjs} +3 -3
- package/dist/{RecurringSettings-CSrJUzaC.mjs → RecurringSettings-CD1_vCES.mjs} +2 -2
- package/dist/{SpendingLegend-Cpd_jtoX.mjs → SpendingLegend-DHi0vx8B.mjs} +1 -1
- package/dist/StatusIndicator-wyBzyHJc.mjs +252 -0
- package/dist/{Transaction-BR682Yj5.mjs → Transaction-B_2AG36b.mjs} +1 -1
- package/dist/TransactionDetails-CgC3Qu7o.mjs +1474 -0
- package/dist/{TransactionStore-BbjZQa-N.mjs → TransactionStore-DIbZkSVI.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-Bf1J0zYY.mjs → ViewMoreMicroCard-CLHlPWC-.mjs} +1 -1
- package/dist/{WidgetContainer-DSs6lJbr.mjs → WidgetContainer-BSCjBupR.mjs} +2 -2
- package/dist/accounts/index.es.js +13 -13
- package/dist/analytics/index.es.js +11 -11
- package/dist/budgets/api/BudgetsApi.d.ts +2 -0
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.es.js +550 -609
- package/dist/budgets/store/BudgetsStore.d.ts +6 -0
- package/dist/budgets/utils/BudgetUtil.d.ts +5 -0
- package/dist/cashflow/index.es.js +8 -8
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +254 -224
- package/dist/common/types/localization/BudgetsCopy.d.ts +4 -0
- package/dist/dashboard/index.es.js +4 -4
- package/dist/debts/index.es.js +8 -8
- package/dist/{exportTransactionsToCSV-CKHt_UOp.mjs → exportTransactionsToCSV-EwhjfqsJ.mjs} +1 -1
- package/dist/finstrong/index.es.js +10 -10
- package/dist/goals/index.es.js +10 -10
- package/dist/help/index.es.js +4 -4
- package/dist/{hooks-zu7yblbi.mjs → hooks-BxkfR-Ff.mjs} +5 -5
- package/dist/insights/index.es.js +103 -104
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +6 -6
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +9 -9
- package/dist/settings/index.es.js +7 -7
- package/dist/spending/index.es.js +8 -8
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +5 -0
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +1 -0
- package/dist/transactions/index.es.js +16 -16
- package/dist/trends/index.es.js +12 -12
- package/dist/{useAccountDisplayName-CxYB0Wpw.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
- package/dist/{useInsightsEnabled-CYLDtNYt.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-Bmgv_UeH.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
- package/package.json +1 -1
- package/dist/BudgetUtil-QbRXtLKn.mjs +0 -101
- package/dist/StatusIndicator-0iX3Gnnu.mjs +0 -55
- package/dist/TransactionDetails-BEKQKH03.mjs +0 -1261
- package/dist/TransactionList-CXiLG0Ur.mjs +0 -204
- package/dist/User-BIgPTsU6.mjs +0 -372
|
@@ -17,15 +17,15 @@ import { endOfMonth as ue } from "date-fns/endOfMonth";
|
|
|
17
17
|
import { parseISO as me } from "date-fns/parseISO";
|
|
18
18
|
import J from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
|
-
import { T as V, u as fe, S as ge, a as Ce } from "./
|
|
21
|
-
import { T as be } from "./TransactionDetails-
|
|
22
|
-
import { addYears as
|
|
20
|
+
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-wyBzyHJc.mjs";
|
|
21
|
+
import { T as be } from "./TransactionDetails-CgC3Qu7o.mjs";
|
|
22
|
+
import { addYears as j } from "date-fns/addYears";
|
|
23
23
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
24
24
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
25
25
|
import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
26
26
|
import { DatePicker as De } from "@mui/x-date-pickers";
|
|
27
27
|
import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
|
|
28
|
-
import { u as w,
|
|
28
|
+
import { u as w, i as Y, g as P, b as Ae, h as ee, o as Ie } from "./hooks-BxkfR-Ff.mjs";
|
|
29
29
|
import { b as Re, f as te } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
30
30
|
import { D as N } from "./Drawer-DV4NTsFg.mjs";
|
|
31
31
|
import { A as O } from "./Analytics-i5h6BxR1.mjs";
|
|
@@ -36,7 +36,7 @@ import { fromUnixTime as ke } from "date-fns/fromUnixTime";
|
|
|
36
36
|
import { S as Ne } from "./SearchBox-B7km148n.mjs";
|
|
37
37
|
import { h as Me } from "./DateUtil-wcYTmDRD.mjs";
|
|
38
38
|
import { b as B } from "./Category-CevNQ03n.mjs";
|
|
39
|
-
import { T as ne } from "./Transaction-
|
|
39
|
+
import { T as ne } from "./Transaction-B_2AG36b.mjs";
|
|
40
40
|
const re = ({
|
|
41
41
|
frequency: n,
|
|
42
42
|
firstDay: t,
|
|
@@ -70,7 +70,7 @@ const re = ({
|
|
|
70
70
|
label: Re(b + 1)
|
|
71
71
|
}));
|
|
72
72
|
h[30].label += ` (${r.last_day_of_month})`;
|
|
73
|
-
const g = h.slice(0, 15), v = h.slice(14), C = n === d.EveryWeek || n === d.EveryOtherWeek, f = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, A = Se(E(), t), y = A < E() ?
|
|
73
|
+
const g = h.slice(0, 15), v = h.slice(14), C = n === d.EveryWeek || n === d.EveryOtherWeek, f = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, A = Se(E(), t), y = A < E() ? j(A, 1) : A, D = (b) => {
|
|
74
74
|
b && s(xe(b));
|
|
75
75
|
};
|
|
76
76
|
return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -115,7 +115,7 @@ const re = ({
|
|
|
115
115
|
{
|
|
116
116
|
disablePast: !0,
|
|
117
117
|
label: r.next_payment_date,
|
|
118
|
-
maxDate: Z(
|
|
118
|
+
maxDate: Z(j(E(), 1), 1),
|
|
119
119
|
minDate: E(),
|
|
120
120
|
onChange: D,
|
|
121
121
|
value: y
|
|
@@ -433,7 +433,7 @@ const re = ({
|
|
|
433
433
|
g(!0), l(n ? { ...s, custom: W } : { ...s, custom: q });
|
|
434
434
|
}, ie = async () => {
|
|
435
435
|
if (!u) {
|
|
436
|
-
|
|
436
|
+
K();
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
439
439
|
o();
|
|
@@ -452,8 +452,8 @@ const re = ({
|
|
|
452
452
|
transaction_type: u.transaction_type,
|
|
453
453
|
user_guid: m.guid
|
|
454
454
|
};
|
|
455
|
-
await a(R, u),
|
|
456
|
-
},
|
|
455
|
+
await a(R, u), K();
|
|
456
|
+
}, K = () => {
|
|
457
457
|
C(""), g(!1);
|
|
458
458
|
};
|
|
459
459
|
return /* @__PURE__ */ c(k, { children: [
|
|
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
|
|
|
6
6
|
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
7
|
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
8
|
import { u as M } from "./useDimensions-CeDR9V8N.mjs";
|
|
9
|
-
import { W as w } from "./hooks-
|
|
9
|
+
import { W as w } from "./hooks-BxkfR-Ff.mjs";
|
|
10
10
|
const H = ({
|
|
11
11
|
children: e,
|
|
12
12
|
className: o,
|
|
@@ -8,7 +8,7 @@ import W from "@mui/material/IconButton";
|
|
|
8
8
|
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
9
|
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
10
|
import { u as S } from "./useDimensions-CeDR9V8N.mjs";
|
|
11
|
-
import { W as j } from "./hooks-
|
|
11
|
+
import { W as j } from "./hooks-BxkfR-Ff.mjs";
|
|
12
12
|
const w = ({
|
|
13
13
|
children: a,
|
|
14
14
|
className: m = "mx-cmn-mini-widget",
|
|
@@ -15,11 +15,11 @@ import { DateCalendar as se } from "@mui/x-date-pickers/DateCalendar";
|
|
|
15
15
|
import { LocalizationProvider as ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
import { AdapterDateFns as ce } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
17
|
import { A as le, T as R, a as D, N as b } from "./Notification-CMBNDGC-.mjs";
|
|
18
|
-
import { u as S, r as T, o as A, d as J, g as re, a as X, b as de } from "./hooks-
|
|
18
|
+
import { u as S, r as T, o as A, d as J, g as re, a as X, b as de } from "./hooks-BxkfR-Ff.mjs";
|
|
19
19
|
import { b as me } from "./Localization-CPkpIwIx.mjs";
|
|
20
20
|
import { b as _e, f as he } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
21
21
|
import { D as N } from "./Dialog-DdCwLgrl.mjs";
|
|
22
|
-
import { C as ue } from "./CurrencyInput-
|
|
22
|
+
import { C as ue } from "./CurrencyInput-DuMktPu3.mjs";
|
|
23
23
|
import { u as fe } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as q } from "./Drawer-DV4NTsFg.mjs";
|
|
25
25
|
import pe from "@mui/material/Collapse";
|
|
@@ -30,8 +30,8 @@ import j from "@mui/material/Button";
|
|
|
30
30
|
import U from "@mui/material/TextField";
|
|
31
31
|
import { u as be } from "./useDimensions-CeDR9V8N.mjs";
|
|
32
32
|
import K from "@mui/material/styles/useTheme";
|
|
33
|
-
import { u as xe } from "./useInsightsEnabled-
|
|
34
|
-
import { u as Ce } from "./useWidgetLoadTimer-
|
|
33
|
+
import { u as xe } from "./useInsightsEnabled-DL_oNyI0.mjs";
|
|
34
|
+
import { u as Ce } from "./useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
35
35
|
import { L as ve } from "./Loader-D3rjKx72.mjs";
|
|
36
36
|
const Te = C(() => {
|
|
37
37
|
const { common: n, settings: t } = S(), { sendEmailVerification: s } = T(), { user: l } = A(), i = K(), [r, a] = f.useState(!1), o = () => {
|
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import { L as y } from "./ListItemAction-
|
|
6
|
-
import { u as h,
|
|
5
|
+
import { L as y } from "./ListItemAction-CfXGuY7a.mjs";
|
|
6
|
+
import { u as h, k as b } from "./hooks-BxkfR-Ff.mjs";
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
8
|
+
import { C as f } from "./CurrencyInput-DuMktPu3.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const n = { ...e, interest_rate: t };
|
|
@@ -7,8 +7,8 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
11
|
-
import { u as _,
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-C0ddaiMR.mjs";
|
|
11
|
+
import { u as _, i as A, g as f } from "./hooks-BxkfR-Ff.mjs";
|
|
12
12
|
import { R as y, F as N } from "./RecurringTransactions-CYNpe_RS.mjs";
|
|
13
13
|
import { A as m } from "./Analytics-i5h6BxR1.mjs";
|
|
14
14
|
const I = h(() => {
|
|
@@ -9,7 +9,7 @@ import { useTheme as M } from "@mui/material/styles";
|
|
|
9
9
|
import { CategoryIcon as A, CategoryIconVariants as G, Text as y, P as O } from "@mxenabled/mxui";
|
|
10
10
|
import { D as $ } from "./Donut-DSGXraiS.mjs";
|
|
11
11
|
import { u as j } from "./useAriaLive-MkYebyUR.mjs";
|
|
12
|
-
import { u as R } from "./hooks-
|
|
12
|
+
import { u as R } from "./hooks-BxkfR-Ff.mjs";
|
|
13
13
|
import { u as v } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
14
|
import { f as x } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
15
15
|
import B from "@mui/material/Box";
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { jsxs as o, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import m from "react";
|
|
3
|
+
import { observer as v } from "mobx-react-lite";
|
|
4
|
+
import { useVirtualizer as B } from "@tanstack/react-virtual";
|
|
5
|
+
import T from "@mui/material/Box";
|
|
6
|
+
import H from "@mui/material/Divider";
|
|
7
|
+
import W from "@mui/material/List";
|
|
8
|
+
import { G as X, h as C, u as R, g as K } from "./hooks-BxkfR-Ff.mjs";
|
|
9
|
+
import { MerchantLogo as P, Icon as w, Text as l, P as Y, H2 as Z } from "@mxenabled/mxui";
|
|
10
|
+
import F from "@mui/material/ListItemAvatar";
|
|
11
|
+
import q from "@mui/material/ListItemText";
|
|
12
|
+
import s from "@mui/material/Stack";
|
|
13
|
+
import { T as J, L as Q, O as ee } from "./Transaction-B_2AG36b.mjs";
|
|
14
|
+
import { f as te } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
15
|
+
import { Receipt as re } from "@mxenabled/mx-icons";
|
|
16
|
+
import { fromUnixTime as S } from "date-fns/fromUnixTime";
|
|
17
|
+
import { isSameDay as z } from "date-fns/isSameDay";
|
|
18
|
+
import { h as ne } from "./DateUtil-wcYTmDRD.mjs";
|
|
19
|
+
import { L as oe } from "./Loader-D3rjKx72.mjs";
|
|
20
|
+
import { A as ie } from "./Analytics-i5h6BxR1.mjs";
|
|
21
|
+
const I = () => {
|
|
22
|
+
if (!m.useContext(X))
|
|
23
|
+
throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
|
|
24
|
+
return C().uiStore;
|
|
25
|
+
};
|
|
26
|
+
function se() {
|
|
27
|
+
return window.opener && window.opener.location ? window.opener.location.toString() : document.referrer;
|
|
28
|
+
}
|
|
29
|
+
function ae(e) {
|
|
30
|
+
const r = se().replace(/([^:]+:\/\/[^\/]+).*/, "$1"), n = window.parent || window.opener || !1;
|
|
31
|
+
return n && n.postMessage && r ? (n.postMessage(e, r), !0) : !1;
|
|
32
|
+
}
|
|
33
|
+
function ce(e) {
|
|
34
|
+
return ae({
|
|
35
|
+
metadata: { beat_guid: e },
|
|
36
|
+
mx: !0,
|
|
37
|
+
type: "mx/moneyDashboard/insightOnTransaction"
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
const le = ({ transaction: e, onClick: r }) => {
|
|
41
|
+
const { associatedBeats: n } = C(), { expandedSplits: c } = I(), { transactions: h } = R(), { showInsights: g } = I(), d = e.transaction_type === J.CREDIT, u = m.useMemo(() => n.find((p) => p.associated_transaction_guid === e.guid), [n, e]);
|
|
42
|
+
return (
|
|
43
|
+
//TODO: implement common/components/ListItemRow.tsx
|
|
44
|
+
/* @__PURE__ */ o(
|
|
45
|
+
Q,
|
|
46
|
+
{
|
|
47
|
+
clickEventName: ee.ON_TRANSACTION_LIST_ITEM_CLICK,
|
|
48
|
+
onClick: r ? () => r(e.guid) : void 0,
|
|
49
|
+
children: [
|
|
50
|
+
/* @__PURE__ */ t(F, { children: e.parent_guid && c.includes(e.parent_guid) ? /* @__PURE__ */ t(m.Fragment, {}) : /* @__PURE__ */ t(
|
|
51
|
+
P,
|
|
52
|
+
{
|
|
53
|
+
categoryGuid: e.top_level_category_guid || "",
|
|
54
|
+
merchantGuid: e.merchant_guid || ""
|
|
55
|
+
}
|
|
56
|
+
) }),
|
|
57
|
+
/* @__PURE__ */ t(
|
|
58
|
+
q,
|
|
59
|
+
{
|
|
60
|
+
disableTypography: !0,
|
|
61
|
+
secondary: /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", children: [
|
|
62
|
+
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
63
|
+
e.is_flagged && /* @__PURE__ */ t(w, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
|
64
|
+
e.is_hidden && /* @__PURE__ */ t(w, { name: "visibility_off", size: 16 }),
|
|
65
|
+
e.has_been_split && /* @__PURE__ */ t(w, { name: "call_split", size: 16 }),
|
|
66
|
+
/* @__PURE__ */ t(l, { variant: "XSmall", children: e.has_been_split ? h.split_transaction_category_label : e.category })
|
|
67
|
+
] }),
|
|
68
|
+
u && g && /* @__PURE__ */ t(
|
|
69
|
+
l,
|
|
70
|
+
{
|
|
71
|
+
bold: !0,
|
|
72
|
+
color: "action.active",
|
|
73
|
+
onClick: (p) => {
|
|
74
|
+
p.stopPropagation(), p.preventDefault(), ce(u.guid);
|
|
75
|
+
},
|
|
76
|
+
variant: "XSmall",
|
|
77
|
+
children: u.short_title
|
|
78
|
+
}
|
|
79
|
+
)
|
|
80
|
+
] }),
|
|
81
|
+
children: /* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
|
|
82
|
+
/* @__PURE__ */ o(l, { bold: !0, variant: "Body", children: [
|
|
83
|
+
e.is_hidden && h.hide_trnx_cancel_hidden_note,
|
|
84
|
+
e.payee || e.description || e.feed_description
|
|
85
|
+
] }),
|
|
86
|
+
/* @__PURE__ */ o(
|
|
87
|
+
l,
|
|
88
|
+
{
|
|
89
|
+
bold: !0,
|
|
90
|
+
color: d ? "success.main" : "text.primary",
|
|
91
|
+
sx: { flexShrink: 0 },
|
|
92
|
+
variant: "Body",
|
|
93
|
+
children: [
|
|
94
|
+
d ? "+" : "",
|
|
95
|
+
te(e.amount, "0,0.00")
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] })
|
|
100
|
+
}
|
|
101
|
+
)
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
);
|
|
106
|
+
}, de = v(le), ue = ({
|
|
107
|
+
bgcolor: e = "background.default",
|
|
108
|
+
children: r
|
|
109
|
+
}) => /* @__PURE__ */ t(T, { display: "inline-block", sx: { bgcolor: e, py: 6, width: "100%" }, children: /* @__PURE__ */ t(l, { bold: !0, sx: { pl: 24 }, variant: "XSmall", children: r }) }), pe = ({ showIcon: e = !0, showSubtitle: r = !0 }) => {
|
|
110
|
+
const { transactions: n } = R();
|
|
111
|
+
return /* @__PURE__ */ o(s, { alignItems: "center", gap: 12, height: "auto", mt: 24, children: [
|
|
112
|
+
e && /* @__PURE__ */ t(re, { color: "secondary", sx: { fontSize: 32 } }),
|
|
113
|
+
/* @__PURE__ */ t(l, { bold: !0, color: "secondary", variant: "Small", children: n.zero_state_no_transactions }),
|
|
114
|
+
r && /* @__PURE__ */ t(l, { color: "secondary", variant: "XSmall", children: n.zero_state_there_are_no_transactions })
|
|
115
|
+
] });
|
|
116
|
+
}, me = v(pe), L = (e, r) => {
|
|
117
|
+
const n = S(r[e].date), c = S(r[e - 1]?.date);
|
|
118
|
+
return !z(n, c);
|
|
119
|
+
}, he = (e, r) => {
|
|
120
|
+
const n = S(r[e].date), c = S(r[e + 1]?.date);
|
|
121
|
+
return z(n, c);
|
|
122
|
+
}, A = 65, N = 32, fe = ({
|
|
123
|
+
bgcolor: e,
|
|
124
|
+
filter: r,
|
|
125
|
+
height: n = "calc(100dvh - 36px)",
|
|
126
|
+
loader: c = /* @__PURE__ */ t(oe, { label: "Loading", size: 40 }),
|
|
127
|
+
onClick: h,
|
|
128
|
+
showInsights: g = !1,
|
|
129
|
+
showLoader: d = !1,
|
|
130
|
+
showHiddenTransactions: u = !1,
|
|
131
|
+
transaction: p,
|
|
132
|
+
width: D = "100%",
|
|
133
|
+
zeroState: O = /* @__PURE__ */ t(me, {})
|
|
134
|
+
}) => {
|
|
135
|
+
const { isLoading: b, sortedTransactions: y } = C(), f = m.useMemo(() => {
|
|
136
|
+
const i = r ? y.filter(r) : y, a = p ?? i;
|
|
137
|
+
return u ? a : a.filter((x) => !x.is_hidden);
|
|
138
|
+
}, [y, u]), { clearExpandedSplits: k, setShowInsights: G, toggleSplit: V } = I(), { onEvent: M } = K(), $ = (i) => {
|
|
139
|
+
const a = f.find((x) => x.guid === i);
|
|
140
|
+
if (a?.has_been_split) {
|
|
141
|
+
V(a.guid);
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
M(ie.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
145
|
+
account_guid: a?.account_guid,
|
|
146
|
+
transaction_guid: i
|
|
147
|
+
}), h?.(i);
|
|
148
|
+
}, E = m.useRef(null), _ = B({
|
|
149
|
+
count: f.length,
|
|
150
|
+
getScrollElement: () => E.current,
|
|
151
|
+
estimateSize: (i) => A + (L(i, f) ? N : 0),
|
|
152
|
+
overscan: 5
|
|
153
|
+
});
|
|
154
|
+
return m.useEffect(() => _.measure(), [f]), m.useEffect(() => G(g), [g]), m.useEffect(() => () => k(), []), /* @__PURE__ */ t(W, { sx: { width: D }, children: /* @__PURE__ */ t(T, { height: n, overflow: "auto", ref: E, width: D, children: /* @__PURE__ */ o(
|
|
155
|
+
T,
|
|
156
|
+
{
|
|
157
|
+
height: (
|
|
158
|
+
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
159
|
+
_.getVirtualItems().length === 0 ? "auto" : _.getTotalSize()
|
|
160
|
+
),
|
|
161
|
+
position: "relative",
|
|
162
|
+
width: "100%",
|
|
163
|
+
children: [
|
|
164
|
+
(b || d) && c,
|
|
165
|
+
!b && !d && _.getVirtualItems().length === 0 && O,
|
|
166
|
+
!b && !d && _.getVirtualItems().length > 0 && _.getVirtualItems().map((i) => {
|
|
167
|
+
const a = f[i.index], x = L(i.index, f), U = he(i.index, f), j = A + (x ? N : 0);
|
|
168
|
+
return /* @__PURE__ */ o(
|
|
169
|
+
T,
|
|
170
|
+
{
|
|
171
|
+
sx: {
|
|
172
|
+
height: j,
|
|
173
|
+
position: "absolute",
|
|
174
|
+
transform: `translateY(${i.start}px)`,
|
|
175
|
+
width: "100%",
|
|
176
|
+
bgcolor: "background.paper"
|
|
177
|
+
},
|
|
178
|
+
children: [
|
|
179
|
+
x && /* @__PURE__ */ t(ue, { bgcolor: e, children: ne(a.date) }),
|
|
180
|
+
/* @__PURE__ */ t(
|
|
181
|
+
de,
|
|
182
|
+
{
|
|
183
|
+
...h && { onClick: $ },
|
|
184
|
+
transaction: a
|
|
185
|
+
}
|
|
186
|
+
),
|
|
187
|
+
/* @__PURE__ */ t(H, { sx: { ml: U ? 68 : 0 } })
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
a.guid
|
|
191
|
+
);
|
|
192
|
+
})
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
) }) });
|
|
196
|
+
}, Ve = v(fe), ge = ({
|
|
197
|
+
amount: e,
|
|
198
|
+
borderRadius: r = "2px",
|
|
199
|
+
completeColor: n = "success.main",
|
|
200
|
+
icon: c,
|
|
201
|
+
label: h,
|
|
202
|
+
leftLabel: g,
|
|
203
|
+
percentComplete: d = 0,
|
|
204
|
+
rightLabel: u,
|
|
205
|
+
sx: p
|
|
206
|
+
}) => /* @__PURE__ */ t(s, { sx: { p: 24, width: "100%", ...p }, children: /* @__PURE__ */ o(s, { className: "details-container", sx: { gap: 16 }, children: [
|
|
207
|
+
/* @__PURE__ */ o(s, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
208
|
+
/* @__PURE__ */ t(T, { children: c }),
|
|
209
|
+
/* @__PURE__ */ o(s, { children: [
|
|
210
|
+
/* @__PURE__ */ t(Y, { variant: "body2", children: h }),
|
|
211
|
+
typeof e == "string" ? /* @__PURE__ */ t(Z, { children: e }) : e
|
|
212
|
+
] })
|
|
213
|
+
] }),
|
|
214
|
+
/* @__PURE__ */ o(s, { sx: { gap: 4 }, children: [
|
|
215
|
+
/* @__PURE__ */ t(
|
|
216
|
+
s,
|
|
217
|
+
{
|
|
218
|
+
sx: {
|
|
219
|
+
bgcolor: "divider",
|
|
220
|
+
borderRadius: r,
|
|
221
|
+
flexDirection: "row",
|
|
222
|
+
height: 16,
|
|
223
|
+
width: "100%"
|
|
224
|
+
},
|
|
225
|
+
children: /* @__PURE__ */ t(
|
|
226
|
+
T,
|
|
227
|
+
{
|
|
228
|
+
sx: {
|
|
229
|
+
bgcolor: n,
|
|
230
|
+
borderRadius: r,
|
|
231
|
+
height: 16,
|
|
232
|
+
width: `${d}%`
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
)
|
|
236
|
+
}
|
|
237
|
+
),
|
|
238
|
+
/* @__PURE__ */ o(s, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
239
|
+
/* @__PURE__ */ t(l, { variant: "body2", children: g }),
|
|
240
|
+
/* @__PURE__ */ t(l, { variant: "body2", children: u })
|
|
241
|
+
] })
|
|
242
|
+
] })
|
|
243
|
+
] }) }), Me = ge;
|
|
244
|
+
export {
|
|
245
|
+
ue as S,
|
|
246
|
+
Ve as T,
|
|
247
|
+
de as a,
|
|
248
|
+
Me as b,
|
|
249
|
+
he as h,
|
|
250
|
+
L as s,
|
|
251
|
+
I as u
|
|
252
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as C } from "react/jsx-runtime";
|
|
2
2
|
import A from "@mui/material/ListItem";
|
|
3
3
|
import o from "@mui/material/ListItemButton";
|
|
4
|
-
import { g as O } from "./hooks-
|
|
4
|
+
import { g as O } from "./hooks-BxkfR-Ff.mjs";
|
|
5
5
|
const S = ({
|
|
6
6
|
children: T,
|
|
7
7
|
clickEventName: _,
|