@mx-cartographer/experiences 7.1.3-alpha.mm1 → 7.1.4-ram1-alpha-finstrong-credit-score-graph-check
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 +13 -0
- package/dist/{Account-DKy2na__.mjs → Account-CpRTVIHg.mjs} +1 -1
- package/dist/{AccountDetailsContent-CCOCsdoL.mjs → AccountDetailsContent-6aPMU6Hp.mjs} +10 -10
- package/dist/{AccountDetailsHeader-Ca9SPAjA.mjs → AccountDetailsHeader-BkUZYoV8.mjs} +8 -8
- package/dist/{AccountFields-DDAr5SEq.mjs → AccountFields-DOLjKu5l.mjs} +5 -5
- package/dist/{AccountListItem-CMes1Q7Z.mjs → AccountListItem-CTT5m4qx.mjs} +4 -4
- package/dist/{AccountStore-DYOG9MYj.mjs → AccountStore-DTfpr3h0.mjs} +60 -41
- package/dist/{Accounts-BNvFndCa.mjs → Accounts-D0BmvNxn.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-D2Jcp-E-.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DomNyubP.mjs} +3 -3
- package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-C1IfDPCE.mjs} +1 -1
- package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
- package/dist/{ConnectDrawer-CHG5Lv_B.mjs → ConnectDrawer--gJHyp-S.mjs} +9 -9
- package/dist/{ConnectionsDrawer-BeB6ab8V.mjs → ConnectionsDrawer-DabiwV9L.mjs} +3 -3
- package/dist/{CurrencyInput-CsCy7uaS.mjs → CurrencyInput-CC5cwVit.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-BblTVTMD.mjs → DebtsStore-9aR2sTJQ.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Um-CDa4C.mjs} +3 -3
- package/dist/FinstrongStore-CC4SrBjA.mjs +436 -0
- package/dist/{GoalStore-CSsU4LR2.mjs → GoalStore-CiBKZvTg.mjs} +3 -3
- package/dist/{Help-B6dIcujh.mjs → Help-BZ8pIkkR.mjs} +2 -2
- package/dist/LineChart-CE3oLBQ0.mjs +566 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-DGaxy7oz.mjs} +10 -10
- package/dist/{ManageIncome-DqG75uQd.mjs → ManageIncome-BaNgfwr5.mjs} +63 -61
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-C3iV1FBR.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-LtXXgZ6H.mjs} +1 -1
- package/dist/{NetWorthStore-BbA7H83o.mjs → NetWorthStore-MnpP5KEc.mjs} +2 -2
- package/dist/{NotificationSettings-BRm_EJZV.mjs → NotificationSettings-Ckx8tgQj.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CAaVbVMO.mjs → OriginalBalanceAction-CGZDUsCc.mjs} +3 -3
- package/dist/{RecurringSettings-B9l_Axnd.mjs → RecurringSettings-DE4T4yQy.mjs} +4 -4
- package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
- package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4RVULF8.mjs} +1 -1
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-D24CEkL3.mjs +170 -0
- package/dist/{TransactionDetails-DPvvi4Iu.mjs → TransactionDetails-DRlrltGq.mjs} +11 -8
- package/dist/{TransactionStore-CBrJOY0H.mjs → TransactionStore-D8MKYDMb.mjs} +3 -3
- package/dist/{TrendsStore-DCYbpXPO.mjs → TrendsStore-DL3Vuh71.mjs} +14 -14
- package/dist/{User-BQUxBeZV.mjs → User-BthIKO4w.mjs} +2 -2
- package/dist/{WidgetContainer-BMWagbIl.mjs → WidgetContainer-DJA1bxLn.mjs} +12 -12
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +4 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +383 -389
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +2 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +2 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/context/GlobalDataProvider.d.ts +0 -1
- package/dist/common/context/hooks.d.ts +0 -3
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +57 -58
- package/dist/common/types/Finstrong.d.ts +50 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +57 -1
- package/dist/dashboard/index.es.js +77 -79
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-XqdHNe2V.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +2 -1
- package/dist/finstrong/components/CreditOverTimeGraph.d.ts +1 -0
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +1 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +11 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/TransactionList.d.ts +15 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +8 -0
- package/dist/finstrong/index.es.js +2899 -1017
- package/dist/finstrong/stores/FinstrongStore.d.ts +9 -1
- package/dist/finstrong/util/finstrongUtils.d.ts +65 -1
- package/dist/goals/index.es.js +54 -54
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-CBST3rkm.mjs +74 -0
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +34 -34
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +24 -24
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +222 -373
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +451 -451
- package/dist/{useAccountDisplayName-BEorBm5u.mjs → useAccountDisplayName-DH1CuQ9R.mjs} +2 -2
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-jdvS1ppf.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/hooks-D6XlXHf4.mjs +0 -77
|
@@ -1,192 +1,41 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import { startOfMonth as
|
|
5
|
-
import { endOfMonth as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { b as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import { M as St } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
22
|
-
import { startOfToday as U } from "date-fns/startOfToday";
|
|
23
|
-
import { T as Tt, a as Mt } from "../TransactionDetails-DPvvi4Iu.mjs";
|
|
24
|
-
import Dt from "@mui/material/Collapse";
|
|
1
|
+
import { jsxs as d, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import a from "react";
|
|
3
|
+
import { observer as D } from "mobx-react-lite";
|
|
4
|
+
import { startOfMonth as tt } from "date-fns/startOfMonth";
|
|
5
|
+
import { endOfMonth as et } from "date-fns/endOfMonth";
|
|
6
|
+
import T from "@mui/material/Box";
|
|
7
|
+
import b from "@mui/material/Stack";
|
|
8
|
+
import W from "@mui/material/Tab";
|
|
9
|
+
import nt from "@mui/material/Tabs";
|
|
10
|
+
import dt from "@mui/material/styles/useTheme";
|
|
11
|
+
import { g as ot, a as at, S as N, b as U } from "../SpendingLegend-D24CEkL3.mjs";
|
|
12
|
+
import { Text as y } from "@mxenabled/mxui";
|
|
13
|
+
import { f as E } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
14
|
+
import { u as w, b as O, m as j, d as it, a as st, h as gt, g as pt } from "../hooks-CBST3rkm.mjs";
|
|
15
|
+
import { L as z } from "../Loader-DUaFpDGv.mjs";
|
|
16
|
+
import { M as ut } from "../MiniWidgetContainer-LtXXgZ6H.mjs";
|
|
17
|
+
import { startOfToday as X } from "date-fns/startOfToday";
|
|
18
|
+
import { useTheme as mt } from "@mui/material";
|
|
19
|
+
import { T as ht, a as ft } from "../TransactionDetails-DRlrltGq.mjs";
|
|
20
|
+
import _t from "@mui/material/Collapse";
|
|
25
21
|
import B from "@mui/material/Divider";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
guid: a.guid,
|
|
39
|
-
name: a.guid === o ? `General ${a.name}` : a.name,
|
|
40
|
-
color: V(e.guid, l),
|
|
41
|
-
amount: c.total
|
|
42
|
-
}, u = i.find((s) => s.guid === o);
|
|
43
|
-
u ? (u.amount += c.total, u.categoryTotals?.push(d)) : i.push({
|
|
44
|
-
guid: o,
|
|
45
|
-
name: e.name,
|
|
46
|
-
color: V(e.guid, l),
|
|
47
|
-
categoryTotals: [d],
|
|
48
|
-
amount: c.total
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return i;
|
|
52
|
-
}, []), lt = (n, l, r, i) => {
|
|
53
|
-
const c = vt(n, r, i), a = c.filter(
|
|
54
|
-
(s) => s.guid !== b.INCOME && s.guid !== b.INVESTMENTS && s.guid !== b.TRANSFER
|
|
55
|
-
).sort((s, g) => g.amount - s.amount), o = a.reduce(
|
|
56
|
-
(s, g) => s + g.amount,
|
|
57
|
-
0
|
|
58
|
-
), e = a.length > j ? j : a.length, d = a.slice(0, e), u = d.map((s) => ({
|
|
59
|
-
id: s.guid,
|
|
60
|
-
color: V(s.guid, r),
|
|
61
|
-
label: s.name,
|
|
62
|
-
value: s.amount / o * 100
|
|
63
|
-
}));
|
|
64
|
-
if (a.length > 5) {
|
|
65
|
-
const s = a.slice(j, c.length), g = s.reduce(
|
|
66
|
-
(S, _) => S + _.amount,
|
|
67
|
-
0
|
|
68
|
-
);
|
|
69
|
-
d.push({
|
|
70
|
-
guid: "other",
|
|
71
|
-
color: r.palette.categories.others || "",
|
|
72
|
-
name: l.saving_goal_other,
|
|
73
|
-
categoryTotals: s,
|
|
74
|
-
amount: g
|
|
75
|
-
}), u.push({
|
|
76
|
-
id: "other",
|
|
77
|
-
color: r.palette.categories.others || "",
|
|
78
|
-
label: l.saving_goal_other,
|
|
79
|
-
value: g / o * 100
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return {
|
|
83
|
-
categoryData: d,
|
|
84
|
-
donutData: u,
|
|
85
|
-
totalAmount: o
|
|
86
|
-
};
|
|
87
|
-
}, dt = (n, l, r) => {
|
|
88
|
-
const i = n.filter(
|
|
89
|
-
(e) => e.guid === b.INCOME || e.parent_guid === b.INCOME
|
|
90
|
-
), c = l.filter((e) => i.some((d) => d.guid === e.category_guid)).sort((e, d) => e.total - d.total).map((e, d) => ({
|
|
91
|
-
guid: e.category_guid,
|
|
92
|
-
name: n.find((u) => u.guid === e.category_guid)?.name,
|
|
93
|
-
color: r[d],
|
|
94
|
-
categoryTotals: [],
|
|
95
|
-
amount: Math.abs(e.total)
|
|
96
|
-
})), a = c.reduce(
|
|
97
|
-
(e, d) => e + d.amount,
|
|
98
|
-
0
|
|
99
|
-
), o = c.map((e) => ({
|
|
100
|
-
id: e.guid,
|
|
101
|
-
color: e.color,
|
|
102
|
-
label: e.name,
|
|
103
|
-
value: e.amount / a * 100
|
|
104
|
-
}));
|
|
105
|
-
return {
|
|
106
|
-
categoryData: c,
|
|
107
|
-
donutData: o,
|
|
108
|
-
totalAmount: a
|
|
109
|
-
};
|
|
110
|
-
}, W = ({ amount: n, label: l }) => /* @__PURE__ */ m(C, { direction: "column", children: [
|
|
111
|
-
/* @__PURE__ */ t(f, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: l }),
|
|
112
|
-
/* @__PURE__ */ t(f, { variant: "XSmall", children: A(n, "0,0") })
|
|
113
|
-
] }), At = ({
|
|
114
|
-
data: n,
|
|
115
|
-
isIncome: l = !1,
|
|
116
|
-
onSelected: r,
|
|
117
|
-
onViewTransactions: i,
|
|
118
|
-
selectedId: c,
|
|
119
|
-
size: a = 150,
|
|
120
|
-
totalLabel: o,
|
|
121
|
-
variant: e = "mini"
|
|
122
|
-
}) => {
|
|
123
|
-
const { spending: d } = w(), u = it(), { isTablet: s } = ct(), g = p.useMemo(
|
|
124
|
-
() => c ? n.categoryData.find((v) => v.guid === c) : void 0,
|
|
125
|
-
[c]
|
|
126
|
-
), S = p.useMemo(() => n.donutData.length > 0 ? n.donutData : [{ id: "0", color: u.palette.divider, value: 100 }], [n, u]), _ = () => {
|
|
127
|
-
i?.(c);
|
|
128
|
-
}, y = s ? 32 : 48;
|
|
129
|
-
return /* @__PURE__ */ t(bt, { data: S, onClick: r, selectedId: c, size: a, children: /* @__PURE__ */ t(C, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ m(C, { alignItems: "center", justifyContent: "center", minHeight: a, minWidth: a, children: [
|
|
130
|
-
g && /* @__PURE__ */ m(
|
|
131
|
-
C,
|
|
132
|
-
{
|
|
133
|
-
alignItems: "center",
|
|
134
|
-
gap: e === "mini" ? 0 : 8,
|
|
135
|
-
mb: e === "mini" ? 0 : 8,
|
|
136
|
-
mt: e === "mini" ? 0 : -16,
|
|
137
|
-
sx: e === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
138
|
-
children: [
|
|
139
|
-
/* @__PURE__ */ t(
|
|
140
|
-
ht,
|
|
141
|
-
{
|
|
142
|
-
categoryGuid: l ? b.INCOME : g.guid,
|
|
143
|
-
size: e === "mini" ? 24 : y,
|
|
144
|
-
variant: ft.Transparent
|
|
145
|
-
}
|
|
146
|
-
),
|
|
147
|
-
/* @__PURE__ */ t(f, { color: "secondary", noWrap: !0, variant: e === "mini" ? "Tiny" : "Body", children: g ? g.name : o })
|
|
148
|
-
]
|
|
149
|
-
}
|
|
150
|
-
),
|
|
151
|
-
!g && e === "full" && /* @__PURE__ */ t(f, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: o }),
|
|
152
|
-
/* @__PURE__ */ t(f, { variant: e === "mini" ? "H2" : "H1", children: g ? A(g.amount, "0,0") : A(n.totalAmount, "0,0") }),
|
|
153
|
-
!g && e === "mini" && /* @__PURE__ */ t(f, { color: "secondary", noWrap: !0, variant: "Tiny", children: o }),
|
|
154
|
-
e === "full" && /* @__PURE__ */ t(
|
|
155
|
-
yt,
|
|
156
|
-
{
|
|
157
|
-
"aria-label": `View ${g?.name || ""} Transactions`,
|
|
158
|
-
disabled: n.categoryData.length === 0,
|
|
159
|
-
onClick: _,
|
|
160
|
-
sx: { mt: { xl: 4, xs: 0 }, zIndex: 1 },
|
|
161
|
-
variant: "text",
|
|
162
|
-
children: d.view_transactions
|
|
163
|
-
}
|
|
164
|
-
)
|
|
165
|
-
] }) }) });
|
|
166
|
-
}, O = x(At), tt = ({ data: n, onSelected: l, selectedId: r }) => /* @__PURE__ */ t(C, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: n.categoryData.map((i) => /* @__PURE__ */ m(
|
|
167
|
-
C,
|
|
168
|
-
{
|
|
169
|
-
alignItems: "center",
|
|
170
|
-
"aria-label": i.name,
|
|
171
|
-
"aria-selected": i.guid === r,
|
|
172
|
-
direction: "row",
|
|
173
|
-
gap: 8,
|
|
174
|
-
onClick: () => l(i.guid),
|
|
175
|
-
role: "button",
|
|
176
|
-
sx: { cursor: "pointer" },
|
|
177
|
-
children: [
|
|
178
|
-
/* @__PURE__ */ t(D, { borderRadius: 4, height: 8, sx: { backgroundColor: i.color }, width: 8 }),
|
|
179
|
-
/* @__PURE__ */ t(f, { bold: i.guid === r, variant: "XSmall", children: i.name })
|
|
180
|
-
]
|
|
181
|
-
},
|
|
182
|
-
i.guid
|
|
183
|
-
)) }), Et = () => {
|
|
184
|
-
const n = mt(), { goals: l, spending: r } = w(), { selectedAccounts: i } = R(), {
|
|
22
|
+
import Y from "@mui/material/List";
|
|
23
|
+
import q from "@mui/material/ListItem";
|
|
24
|
+
import Ct from "@mui/material/ListItemButton";
|
|
25
|
+
import { u as yt } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
26
|
+
import { D as J } from "../Drawer-BEtCk82g.mjs";
|
|
27
|
+
import { b as L } from "../Category-CevNQ03n.mjs";
|
|
28
|
+
import { A as Q, W as St } from "../WidgetContainer-DJA1bxLn.mjs";
|
|
29
|
+
const R = ({ amount: n, label: r }) => /* @__PURE__ */ d(b, { direction: "column", children: [
|
|
30
|
+
/* @__PURE__ */ t(y, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: r }),
|
|
31
|
+
/* @__PURE__ */ t(y, { variant: "XSmall", children: E(n, "0,0") })
|
|
32
|
+
] }), bt = () => {
|
|
33
|
+
const n = dt(), { goals: r, spending: o } = w(), { selectedAccounts: i } = O(), {
|
|
185
34
|
categories: c,
|
|
186
|
-
dateRangeCategoryTotals:
|
|
187
|
-
dataRangeTotalsLoaded:
|
|
188
|
-
loadDateRangeCategoryTotals:
|
|
189
|
-
} =
|
|
35
|
+
dateRangeCategoryTotals: s,
|
|
36
|
+
dataRangeTotalsLoaded: e,
|
|
37
|
+
loadDateRangeCategoryTotals: l
|
|
38
|
+
} = j(), u = a.useMemo(
|
|
190
39
|
() => [
|
|
191
40
|
n.palette.chartMono.chartMono5,
|
|
192
41
|
n.palette.chartMono.chartMono4,
|
|
@@ -197,145 +46,145 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
|
|
|
197
46
|
],
|
|
198
47
|
[n]
|
|
199
48
|
);
|
|
200
|
-
|
|
201
|
-
|
|
49
|
+
a.useEffect(() => {
|
|
50
|
+
l(
|
|
202
51
|
i,
|
|
203
|
-
|
|
204
|
-
|
|
52
|
+
tt(/* @__PURE__ */ new Date()),
|
|
53
|
+
et(/* @__PURE__ */ new Date())
|
|
205
54
|
).finally();
|
|
206
55
|
}, [i]);
|
|
207
|
-
const [
|
|
208
|
-
() =>
|
|
209
|
-
[c,
|
|
210
|
-
),
|
|
211
|
-
() =>
|
|
212
|
-
[c,
|
|
213
|
-
),
|
|
214
|
-
|
|
215
|
-
},
|
|
216
|
-
|
|
56
|
+
const [m, p] = a.useState(""), [C, M] = a.useState(0), S = a.useMemo(
|
|
57
|
+
() => ot(c, r, n, s),
|
|
58
|
+
[c, s]
|
|
59
|
+
), h = a.useMemo(
|
|
60
|
+
() => at(c, s, u),
|
|
61
|
+
[c, s, u]
|
|
62
|
+
), A = (v, I) => {
|
|
63
|
+
M(I), p("");
|
|
64
|
+
}, _ = (v) => {
|
|
65
|
+
p(m === v ? "" : v);
|
|
217
66
|
};
|
|
218
|
-
return
|
|
219
|
-
/* @__PURE__ */
|
|
67
|
+
return e ? /* @__PURE__ */ d(T, { width: "100%", children: [
|
|
68
|
+
/* @__PURE__ */ d(nt, { onChange: A, value: C, variant: "fullWidth", children: [
|
|
220
69
|
/* @__PURE__ */ t(
|
|
221
|
-
|
|
70
|
+
W,
|
|
222
71
|
{
|
|
223
72
|
label: /* @__PURE__ */ t(
|
|
224
|
-
|
|
73
|
+
R,
|
|
225
74
|
{
|
|
226
|
-
amount:
|
|
227
|
-
label:
|
|
75
|
+
amount: S.totalAmount,
|
|
76
|
+
label: o.spend_tab_title
|
|
228
77
|
}
|
|
229
78
|
)
|
|
230
79
|
}
|
|
231
80
|
),
|
|
232
81
|
/* @__PURE__ */ t(
|
|
233
|
-
|
|
82
|
+
W,
|
|
234
83
|
{
|
|
235
84
|
label: /* @__PURE__ */ t(
|
|
236
|
-
|
|
85
|
+
R,
|
|
237
86
|
{
|
|
238
|
-
amount:
|
|
239
|
-
label:
|
|
87
|
+
amount: h.totalAmount,
|
|
88
|
+
label: o.income_tab_title
|
|
240
89
|
}
|
|
241
90
|
)
|
|
242
91
|
}
|
|
243
92
|
)
|
|
244
93
|
] }),
|
|
245
|
-
|
|
94
|
+
C === 0 && /* @__PURE__ */ t(T, { children: /* @__PURE__ */ d(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
246
95
|
/* @__PURE__ */ t(
|
|
247
|
-
|
|
96
|
+
N,
|
|
248
97
|
{
|
|
249
|
-
data:
|
|
250
|
-
onSelected:
|
|
251
|
-
selectedId:
|
|
252
|
-
totalLabel:
|
|
98
|
+
data: S,
|
|
99
|
+
onSelected: _,
|
|
100
|
+
selectedId: m,
|
|
101
|
+
totalLabel: o.total_spending
|
|
253
102
|
}
|
|
254
103
|
),
|
|
255
104
|
/* @__PURE__ */ t(
|
|
256
|
-
|
|
105
|
+
U,
|
|
257
106
|
{
|
|
258
|
-
data:
|
|
259
|
-
onSelected:
|
|
260
|
-
selectedId:
|
|
107
|
+
data: S,
|
|
108
|
+
onSelected: _,
|
|
109
|
+
selectedId: m
|
|
261
110
|
}
|
|
262
111
|
)
|
|
263
112
|
] }) }),
|
|
264
|
-
|
|
113
|
+
C === 1 && /* @__PURE__ */ t(T, { children: /* @__PURE__ */ d(b, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
265
114
|
/* @__PURE__ */ t(
|
|
266
|
-
|
|
115
|
+
N,
|
|
267
116
|
{
|
|
268
|
-
data:
|
|
117
|
+
data: h,
|
|
269
118
|
isIncome: !0,
|
|
270
|
-
onSelected:
|
|
271
|
-
selectedId:
|
|
272
|
-
totalLabel:
|
|
119
|
+
onSelected: _,
|
|
120
|
+
selectedId: m,
|
|
121
|
+
totalLabel: o.total_income
|
|
273
122
|
}
|
|
274
123
|
),
|
|
275
|
-
/* @__PURE__ */ t(
|
|
124
|
+
/* @__PURE__ */ t(U, { data: h, onSelected: _, selectedId: m })
|
|
276
125
|
] }) })
|
|
277
|
-
] }) : /* @__PURE__ */ t(
|
|
278
|
-
},
|
|
279
|
-
const { visibleAccounts:
|
|
280
|
-
return
|
|
281
|
-
o
|
|
282
|
-
}, [
|
|
283
|
-
|
|
126
|
+
] }) : /* @__PURE__ */ t(z, { height: 250 });
|
|
127
|
+
}, Mt = D(bt), Tt = ({ onPrimaryCtaClick: n, sx: r = {} }) => {
|
|
128
|
+
const { visibleAccounts: o } = it(), { spending: i } = w(), { isCopyLoaded: c, isInitialized: s, setSelectedAccounts: e } = O();
|
|
129
|
+
return a.useEffect(() => {
|
|
130
|
+
e(o);
|
|
131
|
+
}, [o]), !c || !s ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
|
|
132
|
+
ut,
|
|
284
133
|
{
|
|
285
134
|
className: "mx-exp-spending-miniwidget",
|
|
286
135
|
onPrimaryCtaClick: n,
|
|
287
136
|
primaryCtaLabel: i.primary_cta,
|
|
288
|
-
sx:
|
|
137
|
+
sx: r,
|
|
289
138
|
title: i.mini_title,
|
|
290
|
-
children: /* @__PURE__ */ t(
|
|
139
|
+
children: /* @__PURE__ */ t(Mt, {})
|
|
291
140
|
}
|
|
292
141
|
);
|
|
293
|
-
},
|
|
142
|
+
}, ie = D(Tt), Dt = ({
|
|
294
143
|
data: n,
|
|
295
|
-
onSelected:
|
|
296
|
-
selectedId:
|
|
144
|
+
onSelected: r,
|
|
145
|
+
selectedId: o = "",
|
|
297
146
|
title: i
|
|
298
147
|
}) => {
|
|
299
|
-
const { spending: c } = w(),
|
|
300
|
-
return /* @__PURE__ */
|
|
301
|
-
/* @__PURE__ */ t(
|
|
148
|
+
const { spending: c } = w(), s = n.categoryData.find((e) => e.guid === o);
|
|
149
|
+
return /* @__PURE__ */ d(b, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
|
|
150
|
+
/* @__PURE__ */ t(y, { bold: !0, sx: { py: 12 }, children: `${i} ${c.by_category}` }),
|
|
302
151
|
/* @__PURE__ */ t(B, { "aria-hidden": "true" }),
|
|
303
|
-
/* @__PURE__ */ t(
|
|
152
|
+
/* @__PURE__ */ t(Y, { children: n.categoryData.map((e) => /* @__PURE__ */ d(a.Fragment, { children: [
|
|
304
153
|
/* @__PURE__ */ t(
|
|
305
|
-
|
|
154
|
+
q,
|
|
306
155
|
{
|
|
307
156
|
disableGutters: !0,
|
|
308
157
|
disablePadding: !0,
|
|
309
158
|
sx: {
|
|
310
159
|
minHeight: 44
|
|
311
160
|
},
|
|
312
|
-
children: /* @__PURE__ */
|
|
313
|
-
|
|
161
|
+
children: /* @__PURE__ */ d(
|
|
162
|
+
Ct,
|
|
314
163
|
{
|
|
315
|
-
"aria-expanded":
|
|
316
|
-
onClick: () =>
|
|
164
|
+
"aria-expanded": s?.guid === e.guid,
|
|
165
|
+
onClick: () => r(e.guid),
|
|
317
166
|
sx: { minHeight: 44, px: 8, py: 0 },
|
|
318
167
|
children: [
|
|
319
168
|
/* @__PURE__ */ t(
|
|
320
|
-
|
|
169
|
+
T,
|
|
321
170
|
{
|
|
322
171
|
borderRadius: 4,
|
|
323
172
|
flexShrink: 0,
|
|
324
173
|
height: 8,
|
|
325
|
-
sx: { backgroundColor:
|
|
174
|
+
sx: { backgroundColor: e.color, mr: 8 },
|
|
326
175
|
width: 8
|
|
327
176
|
}
|
|
328
177
|
),
|
|
329
|
-
/* @__PURE__ */
|
|
330
|
-
|
|
178
|
+
/* @__PURE__ */ d(
|
|
179
|
+
b,
|
|
331
180
|
{
|
|
332
181
|
alignItems: "center",
|
|
333
182
|
direction: "row",
|
|
334
183
|
justifyContent: "space-between",
|
|
335
184
|
width: "100%",
|
|
336
185
|
children: [
|
|
337
|
-
/* @__PURE__ */ t(
|
|
338
|
-
/* @__PURE__ */ t(
|
|
186
|
+
/* @__PURE__ */ t(y, { bold: o === e.guid, children: e.name }),
|
|
187
|
+
/* @__PURE__ */ t(y, { bold: o === e.guid, variant: "Body", children: E(e.amount, "0,0") })
|
|
339
188
|
]
|
|
340
189
|
}
|
|
341
190
|
)
|
|
@@ -345,50 +194,50 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
|
|
|
345
194
|
}
|
|
346
195
|
),
|
|
347
196
|
/* @__PURE__ */ t(B, {}),
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
197
|
+
e.categoryTotals && e.categoryTotals.length > 0 && /* @__PURE__ */ t(_t, { in: s?.guid === e.guid, unmountOnExit: !0, children: /* @__PURE__ */ d(Y, { children: [
|
|
198
|
+
s?.categoryTotals?.map((l) => /* @__PURE__ */ t(
|
|
199
|
+
q,
|
|
351
200
|
{
|
|
352
201
|
sx: {
|
|
353
202
|
pl: 24,
|
|
354
203
|
pr: 8,
|
|
355
204
|
py: 0
|
|
356
205
|
},
|
|
357
|
-
children: /* @__PURE__ */
|
|
358
|
-
/* @__PURE__ */
|
|
359
|
-
|
|
206
|
+
children: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
207
|
+
/* @__PURE__ */ d(y, { children: [
|
|
208
|
+
l.name,
|
|
360
209
|
" "
|
|
361
210
|
] }),
|
|
362
|
-
/* @__PURE__ */ t(
|
|
211
|
+
/* @__PURE__ */ t(y, { children: E(l.amount, "0,0") })
|
|
363
212
|
] })
|
|
364
213
|
},
|
|
365
|
-
|
|
214
|
+
l.guid
|
|
366
215
|
)),
|
|
367
216
|
/* @__PURE__ */ t(B, {})
|
|
368
217
|
] }) })
|
|
369
|
-
] },
|
|
370
|
-
/* @__PURE__ */ t(
|
|
218
|
+
] }, e.guid)) }),
|
|
219
|
+
/* @__PURE__ */ t(y, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${c.total}: ${E(n.totalAmount, "0,0")}` })
|
|
371
220
|
] });
|
|
372
|
-
},
|
|
221
|
+
}, wt = D(Dt), vt = ({
|
|
373
222
|
data: n,
|
|
374
|
-
onSelected:
|
|
375
|
-
onViewTransactions:
|
|
223
|
+
onSelected: r,
|
|
224
|
+
onViewTransactions: o,
|
|
376
225
|
selectedId: i,
|
|
377
226
|
title: c
|
|
378
227
|
}) => {
|
|
379
|
-
const { isDesktop:
|
|
380
|
-
return /* @__PURE__ */
|
|
381
|
-
|
|
228
|
+
const { isDesktop: s, isMobile: e } = yt(), { isLoadingCategoryTotals: l } = j(), { spending: u } = w();
|
|
229
|
+
return /* @__PURE__ */ d(
|
|
230
|
+
b,
|
|
382
231
|
{
|
|
383
|
-
alignItems:
|
|
384
|
-
direction:
|
|
232
|
+
alignItems: e ? "center" : "flex-start",
|
|
233
|
+
direction: e ? "column" : "row",
|
|
385
234
|
gap: { xs: 16, md: 64, xl: 100 },
|
|
386
235
|
justifyContent: "center",
|
|
387
236
|
pt: 50,
|
|
388
237
|
px: 8,
|
|
389
238
|
children: [
|
|
390
|
-
|
|
391
|
-
|
|
239
|
+
l && /* @__PURE__ */ t(
|
|
240
|
+
N,
|
|
392
241
|
{
|
|
393
242
|
data: {
|
|
394
243
|
categoryData: [],
|
|
@@ -398,173 +247,173 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
|
|
|
398
247
|
onSelected: () => {
|
|
399
248
|
},
|
|
400
249
|
selectedId: "",
|
|
401
|
-
size:
|
|
250
|
+
size: s ? 400 : 300,
|
|
402
251
|
totalLabel: "Loading ...",
|
|
403
252
|
variant: "full"
|
|
404
253
|
}
|
|
405
254
|
),
|
|
406
|
-
!
|
|
407
|
-
|
|
255
|
+
!l && /* @__PURE__ */ t(
|
|
256
|
+
N,
|
|
408
257
|
{
|
|
409
258
|
data: n,
|
|
410
|
-
onSelected:
|
|
411
|
-
onViewTransactions:
|
|
259
|
+
onSelected: r,
|
|
260
|
+
onViewTransactions: o,
|
|
412
261
|
selectedId: i,
|
|
413
|
-
size:
|
|
414
|
-
totalLabel:
|
|
262
|
+
size: s ? 400 : 300,
|
|
263
|
+
totalLabel: u.total_amount,
|
|
415
264
|
variant: "full"
|
|
416
265
|
}
|
|
417
266
|
),
|
|
418
|
-
/* @__PURE__ */ t(
|
|
267
|
+
/* @__PURE__ */ t(wt, { data: n, onSelected: r, selectedId: i, title: c })
|
|
419
268
|
]
|
|
420
269
|
}
|
|
421
270
|
);
|
|
422
|
-
},
|
|
271
|
+
}, Z = D(vt), xt = (n) => [
|
|
423
272
|
n.palette.chartMono.chartMono5,
|
|
424
273
|
n.palette.chartMono.chartMono4,
|
|
425
274
|
n.palette.chartMono.chartMono3,
|
|
426
275
|
n.palette.chartMono.chartMono2,
|
|
427
276
|
n.palette.chartMono.chartMono1,
|
|
428
277
|
n.palette.chartMono.chartMono6
|
|
429
|
-
],
|
|
430
|
-
const n =
|
|
431
|
-
|
|
278
|
+
], Lt = () => {
|
|
279
|
+
const n = mt(), { clientConfig: r } = st(), { categories: o, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: c } = j(), { goals: s, spending: e } = w(), { displayedDateRange: l, selectedAccounts: u, selectedAccountGuids: m } = O(), { setFilter: p, sortedTransactions: C } = gt(), M = r?.master?.deep_link_params?.account_guids, S = r?.master?.deep_link_params?.view, [h, A] = a.useState(""), [_, v] = a.useState(S === "income" ? 1 : 0), [I, F] = a.useState(""), [rt, V] = a.useState(!1);
|
|
280
|
+
a.useEffect(() => {
|
|
432
281
|
c(
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
282
|
+
u,
|
|
283
|
+
l.start,
|
|
284
|
+
l.end
|
|
436
285
|
).finally();
|
|
437
|
-
}, [
|
|
438
|
-
const
|
|
439
|
-
() =>
|
|
440
|
-
[
|
|
441
|
-
),
|
|
442
|
-
() =>
|
|
443
|
-
[
|
|
444
|
-
), k =
|
|
445
|
-
() =>
|
|
446
|
-
[
|
|
447
|
-
),
|
|
448
|
-
|
|
449
|
-
},
|
|
450
|
-
|
|
451
|
-
}, K = (
|
|
452
|
-
const
|
|
453
|
-
accounts:
|
|
454
|
-
dateRange:
|
|
286
|
+
}, [u, l]);
|
|
287
|
+
const $ = a.useMemo(
|
|
288
|
+
() => ot(o, s, n, i),
|
|
289
|
+
[o, i]
|
|
290
|
+
), P = a.useMemo(
|
|
291
|
+
() => at(o, i, xt(n)),
|
|
292
|
+
[o, i]
|
|
293
|
+
), k = a.useMemo(
|
|
294
|
+
() => C.find((g) => g.guid === I),
|
|
295
|
+
[I, C]
|
|
296
|
+
), ct = (g, x) => {
|
|
297
|
+
v(x), A("");
|
|
298
|
+
}, H = (g) => {
|
|
299
|
+
A(h === g || g === "0" ? "" : g);
|
|
300
|
+
}, K = (g) => {
|
|
301
|
+
const x = {
|
|
302
|
+
accounts: M || m,
|
|
303
|
+
dateRange: l
|
|
455
304
|
};
|
|
456
|
-
if (
|
|
457
|
-
if (
|
|
458
|
-
const
|
|
459
|
-
|
|
460
|
-
...
|
|
461
|
-
custom: (
|
|
305
|
+
if (_ === 0)
|
|
306
|
+
if (g === "other") {
|
|
307
|
+
const f = $.categoryData.find((G) => G.guid === "other");
|
|
308
|
+
p({
|
|
309
|
+
...x,
|
|
310
|
+
custom: (G) => !!f?.categoryTotals?.find((lt) => lt.guid === G.top_level_category_guid)
|
|
462
311
|
});
|
|
463
312
|
} else
|
|
464
|
-
|
|
465
|
-
...
|
|
466
|
-
custom: (
|
|
467
|
-
showSplits: !!
|
|
313
|
+
p({
|
|
314
|
+
...x,
|
|
315
|
+
custom: (f) => g ? f.top_level_category_guid === g : f.top_level_category_guid !== L.INCOME && f.top_level_category_guid !== L.INVESTMENTS && f.top_level_category_guid !== L.TRANSFER,
|
|
316
|
+
showSplits: !!g
|
|
468
317
|
});
|
|
469
318
|
else
|
|
470
|
-
|
|
471
|
-
...
|
|
472
|
-
custom: (
|
|
319
|
+
p({
|
|
320
|
+
...x,
|
|
321
|
+
custom: (f) => g ? f.category_guid === g : f.category_guid === L.INCOME || f.top_level_category_guid === L.INCOME
|
|
473
322
|
});
|
|
474
|
-
|
|
323
|
+
V(!0);
|
|
475
324
|
};
|
|
476
|
-
return /* @__PURE__ */
|
|
477
|
-
/* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ d(T, { children: [
|
|
326
|
+
/* @__PURE__ */ d(nt, { onChange: ct, value: _, variant: "fullWidth", children: [
|
|
478
327
|
/* @__PURE__ */ t(
|
|
479
|
-
|
|
328
|
+
W,
|
|
480
329
|
{
|
|
481
330
|
label: /* @__PURE__ */ t(
|
|
482
|
-
|
|
331
|
+
R,
|
|
483
332
|
{
|
|
484
|
-
amount:
|
|
485
|
-
label:
|
|
333
|
+
amount: $.totalAmount,
|
|
334
|
+
label: e.spend_tab_title
|
|
486
335
|
}
|
|
487
336
|
)
|
|
488
337
|
}
|
|
489
338
|
),
|
|
490
339
|
/* @__PURE__ */ t(
|
|
491
|
-
|
|
340
|
+
W,
|
|
492
341
|
{
|
|
493
342
|
label: /* @__PURE__ */ t(
|
|
494
|
-
|
|
343
|
+
R,
|
|
495
344
|
{
|
|
496
|
-
amount:
|
|
497
|
-
label:
|
|
345
|
+
amount: P.totalAmount,
|
|
346
|
+
label: e.income_tab_title
|
|
498
347
|
}
|
|
499
348
|
)
|
|
500
349
|
}
|
|
501
350
|
)
|
|
502
351
|
] }),
|
|
503
|
-
|
|
504
|
-
|
|
352
|
+
_ === 0 && /* @__PURE__ */ t(
|
|
353
|
+
Z,
|
|
505
354
|
{
|
|
506
|
-
data:
|
|
507
|
-
onSelected:
|
|
355
|
+
data: $,
|
|
356
|
+
onSelected: H,
|
|
508
357
|
onViewTransactions: K,
|
|
509
|
-
selectedId:
|
|
510
|
-
title:
|
|
358
|
+
selectedId: h,
|
|
359
|
+
title: e.spend_tab_title
|
|
511
360
|
}
|
|
512
361
|
),
|
|
513
|
-
|
|
514
|
-
|
|
362
|
+
_ === 1 && /* @__PURE__ */ t(
|
|
363
|
+
Z,
|
|
515
364
|
{
|
|
516
|
-
data:
|
|
517
|
-
onSelected:
|
|
365
|
+
data: P,
|
|
366
|
+
onSelected: H,
|
|
518
367
|
onViewTransactions: K,
|
|
519
|
-
selectedId:
|
|
520
|
-
title:
|
|
368
|
+
selectedId: h,
|
|
369
|
+
title: e.income_tab_title
|
|
521
370
|
}
|
|
522
371
|
),
|
|
523
372
|
/* @__PURE__ */ t(
|
|
524
|
-
|
|
373
|
+
J,
|
|
525
374
|
{
|
|
526
|
-
ariaLabelClose:
|
|
527
|
-
isOpen:
|
|
528
|
-
onClose: () =>
|
|
529
|
-
title:
|
|
530
|
-
children: /* @__PURE__ */ t(
|
|
375
|
+
ariaLabelClose: e.close_drawer_aria,
|
|
376
|
+
isOpen: rt,
|
|
377
|
+
onClose: () => V(!1),
|
|
378
|
+
title: e.transactions_drawer_title,
|
|
379
|
+
children: /* @__PURE__ */ t(ht, { onClick: F })
|
|
531
380
|
}
|
|
532
381
|
),
|
|
533
382
|
/* @__PURE__ */ t(
|
|
534
|
-
|
|
383
|
+
J,
|
|
535
384
|
{
|
|
536
|
-
ariaLabelClose:
|
|
385
|
+
ariaLabelClose: e.close_drawer_aria,
|
|
537
386
|
isOpen: !!k,
|
|
538
|
-
onClose: () =>
|
|
539
|
-
title:
|
|
540
|
-
children: k && /* @__PURE__ */ t(
|
|
387
|
+
onClose: () => F(""),
|
|
388
|
+
title: e.transaction_details_drawer_title,
|
|
389
|
+
children: k && /* @__PURE__ */ t(ft, { transaction: k })
|
|
541
390
|
}
|
|
542
391
|
)
|
|
543
392
|
] });
|
|
544
|
-
},
|
|
545
|
-
const { visibleAccounts:
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}, [
|
|
549
|
-
|
|
393
|
+
}, At = D(Lt), It = ({ onBackClick: n, sx: r = {} }) => {
|
|
394
|
+
const { visibleAccounts: o } = it(), { spending: i } = w(), { isCopyLoaded: c, isInitialized: s, setDisplayedDate: e, setSelectedAccounts: l } = O(), { onEvent: u } = pt(), { clientConfig: m } = st(), p = m?.master?.deep_link_params?.date_range, [C, M] = a.useState(!1);
|
|
395
|
+
a.useEffect(() => {
|
|
396
|
+
l(o);
|
|
397
|
+
}, [o]), a.useEffect(() => {
|
|
398
|
+
p && Array.isArray(p) && p.length === 2 ? e(p[0], p[1]) : e(tt(X()), et(X())), M(!0), u(Q.SPENDING_VIEW);
|
|
550
399
|
}, []);
|
|
551
|
-
const
|
|
552
|
-
|
|
400
|
+
const S = (h) => {
|
|
401
|
+
e(h[0], h[1]);
|
|
553
402
|
};
|
|
554
|
-
return !c || !
|
|
555
|
-
|
|
403
|
+
return !c || !s || !C ? /* @__PURE__ */ t(z, {}) : /* @__PURE__ */ t(
|
|
404
|
+
St,
|
|
556
405
|
{
|
|
557
|
-
accountOptions:
|
|
558
|
-
calendarActions: { onRangeChanged:
|
|
559
|
-
onAccountsFilterClick: () =>
|
|
406
|
+
accountOptions: o,
|
|
407
|
+
calendarActions: { onRangeChanged: S },
|
|
408
|
+
onAccountsFilterClick: () => u(Q.SPENDING_CLICK_FILTER),
|
|
560
409
|
onBackClick: n,
|
|
561
|
-
sx:
|
|
410
|
+
sx: r,
|
|
562
411
|
title: i.title,
|
|
563
|
-
children: /* @__PURE__ */ t(
|
|
412
|
+
children: /* @__PURE__ */ t(T, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(At, {}) })
|
|
564
413
|
}
|
|
565
414
|
);
|
|
566
|
-
},
|
|
415
|
+
}, se = D(It);
|
|
567
416
|
export {
|
|
568
|
-
|
|
569
|
-
|
|
417
|
+
ie as SpendingMiniWidget,
|
|
418
|
+
se as SpendingWidget
|
|
570
419
|
};
|