@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.bb4
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 +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
- package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
- package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
- package/dist/AccountListItem-wgmlex-_.mjs +90 -0
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Jv8h9H9l.mjs} +33 -33
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
- package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
- package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BF40nbsH.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/LineChart-C1PxNf7P.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
- package/dist/Loader-Ckqi9Rx6.mjs +21 -0
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
- package/dist/SearchBox-B7km148n.mjs +39 -0
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
- package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
- package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +228 -221
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +459 -462
- package/dist/cashflow/index.es.js +419 -428
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +5 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +402 -668
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +1 -3
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +1 -2
- package/dist/debts/index.es.js +673 -665
- package/dist/exportTransactionsToCSV-BgV_wTLT.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- 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 +4 -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 +17 -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/DialScoreCard.d.ts +7 -1
- 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/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3175 -1067
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +580 -570
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +537 -536
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/components/NetWorthChange.d.ts +3 -1
- package/dist/networth/index.es.js +262 -254
- package/dist/notifications/index.es.js +90 -91
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +586 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +371 -365
- package/dist/spending/index.es.js +267 -419
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +231 -226
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +988 -612
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
- package/package.json +51 -56
- package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/AccountListItem-JFMZROh7.mjs +0 -90
- package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
package/dist/trends/index.es.js
CHANGED
|
@@ -1,75 +1,439 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { addSeconds as
|
|
9
|
-
import { differenceInCalendarMonths as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { a as
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import {
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
import { jsxs as y, jsx as e, Fragment as lt } from "react/jsx-runtime";
|
|
2
|
+
import c, { useRef as dt, useState as ut, useEffect as ht } from "react";
|
|
3
|
+
import { observer as R } from "mobx-react-lite";
|
|
4
|
+
import { CategoryIcon as we, Text as z, Icon as Se, P as pe, H3 as Pe } from "@mxenabled/mxui";
|
|
5
|
+
import W from "@mui/material/Box";
|
|
6
|
+
import S from "@mui/material/Stack";
|
|
7
|
+
import xe from "@mui/material/Button";
|
|
8
|
+
import { addSeconds as Fe } from "date-fns/addSeconds";
|
|
9
|
+
import { differenceInCalendarMonths as Ae } from "date-fns/differenceInCalendarMonths";
|
|
10
|
+
import { useTheme as ue } from "@mui/material/styles";
|
|
11
|
+
import { LineChart as gt } from "@mui/x-charts";
|
|
12
|
+
import { u as J } from "../useScreenSize-B5afALev.mjs";
|
|
13
|
+
import { u as mt } from "../useDimensions-27p2evRx.mjs";
|
|
14
|
+
import pt from "@mui/material/Card";
|
|
15
|
+
import ft from "@mui/material/CardContent";
|
|
16
|
+
import Re from "@mui/material/Divider";
|
|
17
|
+
import We from "@mui/material/Grid";
|
|
18
|
+
import { u as O, m as Y, g as P, b as ye, h as De, d as Le, w as Ce, q as ze, f as He, n as yt, a as Ct } from "../hooks-C41HAxM5.mjs";
|
|
19
|
+
import { b as $e } from "../Localization-2MODESHW.mjs";
|
|
20
|
+
import { C as ve } from "../CurrencyText-Dr0EZ7bp.mjs";
|
|
21
|
+
import { useTheme as _t, Card as Tt, CardContent as bt, Box as St, Stack as xt } from "@mui/material";
|
|
22
|
+
import { f as Q, a as F } from "../Dialog-CDV0kKxj.mjs";
|
|
23
|
+
import { a as Me, c as vt } from "../Category-Ccoew_sA.mjs";
|
|
24
|
+
import { f as oe, a as wt } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
25
|
+
import { a as Dt, g as Lt, L as Ke } from "../TrendsStore-_mRaFUdf.mjs";
|
|
26
|
+
import { T as Pn } from "../TrendsStore-_mRaFUdf.mjs";
|
|
27
|
+
import { i as Et, c as It, d as Mt, e as At, f as Rt, h as kt, g as je, b as Ye, j as Oe } from "../SpendingData-DPQ96k3x.mjs";
|
|
28
|
+
import Ht from "@mui/material/ToggleButton";
|
|
29
|
+
import Nt from "@mui/material/ToggleButtonGroup";
|
|
30
|
+
import { DataGridPro as Wt } from "@mui/x-data-grid-pro";
|
|
31
|
+
import { H as Ge } from "../HeaderCell-P8w6CmfO.mjs";
|
|
32
|
+
import { T as V, b as Ot } from "../ViewMoreMicroCard-DAkyNRlD.mjs";
|
|
33
|
+
import { A as w, W as Ue } from "../WidgetContainer-CDh9fjpR.mjs";
|
|
34
|
+
import { a as Xe, T as Ze } from "../TransactionDetails-Bn0qY5Hw.mjs";
|
|
35
|
+
import { D as ke } from "../Drawer-BF40nbsH.mjs";
|
|
36
|
+
import { L as fe } from "../Loader-Ckqi9Rx6.mjs";
|
|
37
|
+
import { L as Ne } from "../LineChart-C1PxNf7P.mjs";
|
|
38
|
+
import { M as Gt } from "../MiniWidgetContainer-CKzf_Ira.mjs";
|
|
39
|
+
import { subMonths as Bt } from "date-fns";
|
|
40
|
+
import { TrendingUp as Vt, TrendingDown as Pt, MultilineChart as Ft, ExpandLess as zt, ExpandMore as $t, ChevronRight as Kt } from "@mxenabled/mx-icons";
|
|
41
|
+
import { M as jt } from "../MicroWidgetContainer-BGpNl5ZS.mjs";
|
|
42
|
+
import Yt from "@mui/material/Collapse";
|
|
43
|
+
import Ut from "@mui/material/List";
|
|
44
|
+
import Xt from "@mui/material/ListItem";
|
|
45
|
+
import Zt from "@mui/material/ListItemButton";
|
|
46
|
+
import qt from "@mui/material/ListItemIcon";
|
|
47
|
+
import Qt from "@mui/material/ListItemText";
|
|
48
|
+
import Jt from "@mui/material/Paper";
|
|
49
|
+
import { b as eo } from "../CategoryUtil-DfVKKkRf.mjs";
|
|
50
|
+
import { E as to } from "../ExportCsvAction-QhQK4_FU.mjs";
|
|
51
|
+
import { u as oo } from "../useInsightsEnabled-CNjP5cfR.mjs";
|
|
52
|
+
import { E as no } from "../EmptyState-DoxNUae-.mjs";
|
|
53
|
+
import { l as so } from "../ConnectDrawer-DVp54lUH.mjs";
|
|
54
|
+
const qe = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
55
|
+
const { categories: t } = O(), { getCategoryName: n } = Y(), s = n(o);
|
|
56
|
+
return /* @__PURE__ */ y(S, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
57
|
+
/* @__PURE__ */ e(
|
|
58
|
+
W,
|
|
59
|
+
{
|
|
60
|
+
"aria-label": $e(t.category_icon_label_aria, s),
|
|
61
|
+
mb: 4,
|
|
62
|
+
role: "img",
|
|
63
|
+
children: /* @__PURE__ */ e(we, { categoryGuid: a })
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ e(z, { variant: "body1", children: s })
|
|
67
|
+
] });
|
|
68
|
+
}, ao = ({
|
|
69
|
+
categoryGuids: { guid: o, topLevelGuid: a },
|
|
70
|
+
hoveredAreaData: t,
|
|
71
|
+
cursorPosition: n,
|
|
72
|
+
chartContainerRef: s
|
|
73
|
+
}) => {
|
|
74
|
+
const l = ue(), m = dt(null), [h, i] = ut({ x: n.x, y: n.y });
|
|
75
|
+
if (ht(() => {
|
|
76
|
+
(() => {
|
|
77
|
+
const p = m.current, _ = s.current;
|
|
78
|
+
if (!p || !_) return;
|
|
79
|
+
const u = p.getBoundingClientRect(), C = _.getBoundingClientRect();
|
|
80
|
+
let b = n.x, g = n.y;
|
|
81
|
+
b + u.width * 2 > C.right ? b = n.x - u.width : b - u.width < C.left && (b = n.x), g + u.height * 2 > C.bottom && (g = n.y - u.height), i({ x: b, y: g });
|
|
82
|
+
})();
|
|
83
|
+
}, [n, s]), !t) return null;
|
|
84
|
+
const d = t.reduce((f, p) => f + p.y, 0);
|
|
85
|
+
return /* @__PURE__ */ e(
|
|
86
|
+
pt,
|
|
87
|
+
{
|
|
88
|
+
ref: m,
|
|
89
|
+
sx: {
|
|
90
|
+
position: "absolute",
|
|
91
|
+
top: h.y,
|
|
92
|
+
left: h.x,
|
|
93
|
+
width: 250,
|
|
94
|
+
pointerEvents: "none"
|
|
95
|
+
},
|
|
96
|
+
children: /* @__PURE__ */ y(ft, { children: [
|
|
97
|
+
/* @__PURE__ */ y(W, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
98
|
+
/* @__PURE__ */ e(qe, { categoryGuid: o, topLevelCategoryGuid: a }),
|
|
99
|
+
/* @__PURE__ */ e(z, { variant: "body2", children: `${t.length}-month total` }),
|
|
100
|
+
/* @__PURE__ */ e(ve, { amount: d, bold: !0, formatString: "0,0", variant: "body2" })
|
|
101
|
+
] }),
|
|
102
|
+
/* @__PURE__ */ e(Re, { sx: { my: 16, width: "100%" } }),
|
|
103
|
+
/* @__PURE__ */ e(We, { container: !0, children: t.map((f, p) => /* @__PURE__ */ y(c.Fragment, { children: [
|
|
104
|
+
p > 0 && p % 3 === 0 && /* @__PURE__ */ e(Re, { sx: { my: 16, width: "100%" } }),
|
|
105
|
+
/* @__PURE__ */ e(We, { size: { xs: 4 }, children: /* @__PURE__ */ y(W, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
106
|
+
/* @__PURE__ */ e(z, { color: l.palette.text.secondary, variant: "caption", children: f.x }),
|
|
107
|
+
/* @__PURE__ */ e(
|
|
108
|
+
ve,
|
|
109
|
+
{
|
|
110
|
+
amount: f.y,
|
|
111
|
+
bold: !0,
|
|
112
|
+
formatString: "0,0",
|
|
113
|
+
variant: "body1"
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
] }) })
|
|
117
|
+
] }, p)) })
|
|
118
|
+
] })
|
|
119
|
+
}
|
|
120
|
+
);
|
|
121
|
+
}, ro = R(ao), io = ({
|
|
122
|
+
categoryGuids: { guid: o, topLevelGuid: a },
|
|
123
|
+
itemData: { dataIndex: t },
|
|
124
|
+
series: n,
|
|
125
|
+
xData: s
|
|
126
|
+
}) => {
|
|
127
|
+
const l = _t(), m = n.data[t], h = s[t];
|
|
128
|
+
return m === void 0 || !h ? null : /* @__PURE__ */ e(Tt, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ e(bt, { children: /* @__PURE__ */ y(St, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
129
|
+
/* @__PURE__ */ e(qe, { categoryGuid: o, topLevelCategoryGuid: a }),
|
|
130
|
+
/* @__PURE__ */ e(z, { color: l.palette.text.secondary, variant: "body2", children: Q(h, F.MONTH_SHORT_YEAR) }),
|
|
131
|
+
/* @__PURE__ */ e(ve, { amount: String(m), bold: !0, formatString: "0,0", variant: "body1" })
|
|
132
|
+
] }) }) });
|
|
133
|
+
}, co = ({
|
|
134
|
+
sx: o,
|
|
135
|
+
categoryGuids: a,
|
|
136
|
+
hoveredLegend: t,
|
|
137
|
+
legendRef: n,
|
|
138
|
+
onHoverLegend: s,
|
|
139
|
+
onClickLegend: l
|
|
140
|
+
}) => {
|
|
141
|
+
const { isMobile: m } = J(), { getCategoryName: h } = Y();
|
|
142
|
+
return /* @__PURE__ */ e(
|
|
143
|
+
S,
|
|
144
|
+
{
|
|
145
|
+
direction: "row",
|
|
146
|
+
flexWrap: "wrap",
|
|
147
|
+
gap: m ? 2 : 6,
|
|
148
|
+
justifyContent: "start",
|
|
149
|
+
ref: n,
|
|
150
|
+
sx: o,
|
|
151
|
+
children: a.map(({ guid: i, top_level_guid: d }) => {
|
|
152
|
+
const f = t === i, p = Me[i], _ = Me[d], u = p ?? _ ?? Me.default, C = u + "33";
|
|
153
|
+
return /* @__PURE__ */ y(
|
|
154
|
+
xe,
|
|
155
|
+
{
|
|
156
|
+
onClick: () => l(i),
|
|
157
|
+
onMouseEnter: () => s(i),
|
|
158
|
+
onMouseLeave: () => s(null),
|
|
159
|
+
sx: {
|
|
160
|
+
color: "text.primary",
|
|
161
|
+
fontWeight: "normal",
|
|
162
|
+
display: "flex",
|
|
163
|
+
justifyContent: "center",
|
|
164
|
+
alignItems: "center",
|
|
165
|
+
paddingX: 8,
|
|
166
|
+
paddingY: 4,
|
|
167
|
+
borderRadius: 1,
|
|
168
|
+
opacity: f ? 1 : 0.7
|
|
169
|
+
},
|
|
170
|
+
children: [
|
|
171
|
+
/* @__PURE__ */ e(
|
|
172
|
+
W,
|
|
173
|
+
{
|
|
174
|
+
sx: {
|
|
175
|
+
width: 16,
|
|
176
|
+
height: 16,
|
|
177
|
+
marginRight: m ? 5 : 10,
|
|
178
|
+
borderRadius: "2px",
|
|
179
|
+
backgroundColor: t ? f ? u : C : u
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ e(z, { variant: "body1", children: h(i) })
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
i
|
|
187
|
+
);
|
|
188
|
+
})
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
}, lo = ({
|
|
192
|
+
onHoverArea: o,
|
|
193
|
+
onHoverPoint: a,
|
|
194
|
+
onHoverLegend: t,
|
|
195
|
+
onClickLegend: n,
|
|
196
|
+
stackedDatasets: s,
|
|
197
|
+
unstackedDatasets: l = [],
|
|
198
|
+
availableHeight: m = 0,
|
|
199
|
+
minimumHeight: h = 350
|
|
200
|
+
}) => {
|
|
201
|
+
const i = ue(), { isMobile: d } = J(), [f, { height: p }] = mt(), _ = c.useRef(null), [u, C] = c.useState(0);
|
|
202
|
+
c.useEffect(() => {
|
|
203
|
+
const r = Math.max(m - p, h);
|
|
204
|
+
C(r);
|
|
205
|
+
}, [m, p]);
|
|
206
|
+
const [b, g] = c.useState(null), [v, E] = c.useState({
|
|
207
|
+
hoveredSeriesId: null,
|
|
208
|
+
hoveredAreaData: null,
|
|
209
|
+
isAreaHovered: !1,
|
|
210
|
+
cursorPos: { x: 0, y: 0 }
|
|
211
|
+
}), { hoveredSeriesId: I, hoveredAreaData: x, isAreaHovered: M, cursorPos: k } = v, A = M && I && x, G = !A, ee = [...s, ...l], ne = ee[0]?.dataset.length ?? 0, H = ee.flatMap((r) => r.dataset.map((T) => T.x)), he = ee.flatMap((r) => r.dataset.map((T) => T.y)), B = s[0]?.dataset?.map(
|
|
212
|
+
(r, T) => s.reduce((L, j) => L + j.dataset[T]?.y || 0, 0)
|
|
213
|
+
) ?? [0], se = Math.max(...B), ae = Math.max(
|
|
214
|
+
...l.flatMap((r) => r.dataset.map((T) => T.y))
|
|
215
|
+
), $ = Math.floor(Math.min(...he) / 100) * 100, _e = Math.ceil(Math.max(se, ae) / 100) * 100, U = s.map((r, T) => ({
|
|
216
|
+
id: `stacked-${T}`,
|
|
217
|
+
guid: r.category_guid,
|
|
218
|
+
top_level_guid: r.top_level_category_guid,
|
|
219
|
+
area: !0,
|
|
220
|
+
color: s[T].category_color ?? i.palette.primary.main,
|
|
221
|
+
data: r.dataset.map((L) => L.y),
|
|
222
|
+
label: s[T].category_name,
|
|
223
|
+
stack: "total",
|
|
224
|
+
type: "line",
|
|
225
|
+
highlightScope: { highlight: "item" },
|
|
226
|
+
valueFormatter: (L) => oe(L, "0,0")
|
|
227
|
+
})), K = l.map((r, T) => ({
|
|
228
|
+
id: `unstacked-${T}`,
|
|
229
|
+
guid: r.category_guid,
|
|
230
|
+
top_level_guid: r.top_level_category_guid,
|
|
231
|
+
area: !1,
|
|
232
|
+
color: r.category_color,
|
|
233
|
+
data: r.dataset.map((L) => L.y),
|
|
234
|
+
label: r.category_name,
|
|
235
|
+
type: "line",
|
|
236
|
+
valueFormatter: (L) => oe(L, "0,0")
|
|
237
|
+
})), re = [...U, ...K], X = [
|
|
238
|
+
...U.map(({ guid: r, top_level_guid: T }) => ({
|
|
239
|
+
guid: r,
|
|
240
|
+
top_level_guid: T
|
|
241
|
+
})),
|
|
242
|
+
...K.map(({ guid: r, top_level_guid: T }) => ({
|
|
243
|
+
guid: r,
|
|
244
|
+
top_level_guid: T
|
|
245
|
+
}))
|
|
246
|
+
], Z = (r) => {
|
|
247
|
+
const L = r.startsWith("stacked-") ? s[parseInt(r.split("-")[1])] : l[parseInt(r.split("-")[1])];
|
|
248
|
+
return {
|
|
249
|
+
guid: L?.category_guid,
|
|
250
|
+
topLevelGuid: L?.top_level_category_guid
|
|
251
|
+
};
|
|
252
|
+
}, te = (r) => {
|
|
253
|
+
g(r), t?.(r ?? "");
|
|
254
|
+
}, ie = (r) => {
|
|
255
|
+
n?.(r ?? "");
|
|
256
|
+
}, ge = () => {
|
|
257
|
+
const r = Z(String(I)).guid;
|
|
258
|
+
r && n?.(r);
|
|
259
|
+
}, ce = (r) => {
|
|
260
|
+
const T = String(r?.seriesId), L = Z(T).guid, j = re.find((de) => de.id === T), Te = j && r?.dataIndex !== void 0, Ee = j && r?.dataIndex === void 0;
|
|
261
|
+
if (Te)
|
|
262
|
+
E({
|
|
263
|
+
hoveredSeriesId: T,
|
|
264
|
+
hoveredAreaData: null,
|
|
265
|
+
isAreaHovered: !1,
|
|
266
|
+
cursorPos: k
|
|
267
|
+
}), a?.(L);
|
|
268
|
+
else if (Ee) {
|
|
269
|
+
const de = j?.data.map((be, Ie) => ({
|
|
270
|
+
x: H[Ie],
|
|
271
|
+
y: be
|
|
272
|
+
})) ?? [];
|
|
273
|
+
E({
|
|
274
|
+
hoveredSeriesId: T,
|
|
275
|
+
hoveredAreaData: de,
|
|
276
|
+
isAreaHovered: !0,
|
|
277
|
+
cursorPos: k
|
|
278
|
+
}), o?.(L);
|
|
279
|
+
} else
|
|
280
|
+
E({
|
|
281
|
+
hoveredSeriesId: null,
|
|
282
|
+
hoveredAreaData: null,
|
|
283
|
+
isAreaHovered: !1,
|
|
284
|
+
cursorPos: k
|
|
285
|
+
});
|
|
286
|
+
}, le = (r) => {
|
|
287
|
+
const T = r.currentTarget.getBoundingClientRect();
|
|
288
|
+
E((L) => ({
|
|
289
|
+
...L,
|
|
290
|
+
cursorPos: {
|
|
291
|
+
x: r.clientX - T.left,
|
|
292
|
+
y: r.clientY - T.top
|
|
293
|
+
}
|
|
294
|
+
}));
|
|
295
|
+
}, D = {
|
|
296
|
+
p: 4,
|
|
297
|
+
"& .MuiBarLabel-root": {
|
|
298
|
+
fontSize: 10,
|
|
299
|
+
fontWeight: 600
|
|
300
|
+
},
|
|
301
|
+
"& .MuiAreaElement-root": {
|
|
302
|
+
opacity: 0.4,
|
|
303
|
+
transition: "opacity 0.3s ease"
|
|
304
|
+
},
|
|
305
|
+
"& .MuiAreaElement-root:hover": {
|
|
306
|
+
opacity: 1
|
|
307
|
+
},
|
|
308
|
+
'& [class*="MuiLineElement-series-unstacked-"]': {
|
|
309
|
+
strokeWidth: 3
|
|
310
|
+
},
|
|
311
|
+
...b && U.reduce((r, T, L) => {
|
|
312
|
+
const j = `.MuiAreaElement-series-stacked-${L}`;
|
|
313
|
+
return r[j] = {
|
|
314
|
+
opacity: U[L].guid === b ? 0.9 : 0.2
|
|
315
|
+
}, r;
|
|
316
|
+
}, {})
|
|
317
|
+
};
|
|
318
|
+
return /* @__PURE__ */ e(
|
|
319
|
+
W,
|
|
320
|
+
{
|
|
321
|
+
onMouseMove: le,
|
|
322
|
+
ref: _,
|
|
323
|
+
sx: {
|
|
324
|
+
position: "relative",
|
|
325
|
+
touchAction: "pan-y",
|
|
326
|
+
"& svg": {
|
|
327
|
+
touchAction: "pan-y",
|
|
328
|
+
userSelect: "none"
|
|
329
|
+
},
|
|
330
|
+
"& .recharts-wrapper": {
|
|
331
|
+
touchAction: "pan-y"
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
children: /* @__PURE__ */ y(
|
|
335
|
+
S,
|
|
336
|
+
{
|
|
337
|
+
direction: { xs: "column", md: "column" },
|
|
338
|
+
spacing: { xs: 0, md: 4 },
|
|
339
|
+
sx: { width: "100%", position: "relative" },
|
|
340
|
+
children: [
|
|
341
|
+
/* @__PURE__ */ e(
|
|
342
|
+
gt,
|
|
343
|
+
{
|
|
344
|
+
height: u,
|
|
345
|
+
margin: { bottom: 50 },
|
|
346
|
+
onAreaClick: ge,
|
|
347
|
+
onHighlightChange: ce,
|
|
348
|
+
series: re,
|
|
349
|
+
skipAnimation: !0,
|
|
350
|
+
slotProps: {
|
|
351
|
+
legend: {
|
|
352
|
+
hidden: !0
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
slots: {
|
|
356
|
+
itemContent: (r) => G && I ? /* @__PURE__ */ e(
|
|
357
|
+
io,
|
|
358
|
+
{
|
|
359
|
+
categoryGuids: Z(I),
|
|
360
|
+
xData: H,
|
|
361
|
+
...r
|
|
362
|
+
}
|
|
363
|
+
) : null
|
|
364
|
+
},
|
|
365
|
+
sx: D,
|
|
366
|
+
tooltip: {
|
|
367
|
+
trigger: G ? "item" : "none"
|
|
368
|
+
},
|
|
369
|
+
xAxis: [
|
|
370
|
+
{
|
|
371
|
+
data: H,
|
|
372
|
+
scaleType: "time",
|
|
373
|
+
valueFormatter: (r) => Q(r, F.MONTH_SHORT_YEAR),
|
|
374
|
+
tickNumber: ne
|
|
375
|
+
// How many ticks to show on the x-axis
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
yAxis: [
|
|
379
|
+
{
|
|
380
|
+
min: $,
|
|
381
|
+
max: _e || 100
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
),
|
|
386
|
+
/* @__PURE__ */ e(
|
|
387
|
+
co,
|
|
388
|
+
{
|
|
389
|
+
categoryGuids: X,
|
|
390
|
+
hoveredLegend: b,
|
|
391
|
+
legendRef: f,
|
|
392
|
+
onClickLegend: ie,
|
|
393
|
+
onHoverLegend: te,
|
|
394
|
+
sx: { px: d ? 0 : 24 }
|
|
395
|
+
}
|
|
396
|
+
),
|
|
397
|
+
A && /* @__PURE__ */ e(
|
|
398
|
+
ro,
|
|
399
|
+
{
|
|
400
|
+
categoryGuids: Z(I),
|
|
401
|
+
chartContainerRef: _,
|
|
402
|
+
cursorPosition: k,
|
|
403
|
+
hoveredAreaData: x.map((r) => ({
|
|
404
|
+
...r,
|
|
405
|
+
x: Q(r.x, F.MONTH_SHORT_YEAR)
|
|
406
|
+
}))
|
|
407
|
+
}
|
|
408
|
+
)
|
|
409
|
+
]
|
|
410
|
+
}
|
|
411
|
+
)
|
|
412
|
+
}
|
|
413
|
+
);
|
|
414
|
+
}, Qe = ({ selectedTab: o, onTabChange: a }) => /* @__PURE__ */ e(
|
|
415
|
+
Nt,
|
|
52
416
|
{
|
|
53
417
|
exclusive: !0,
|
|
54
|
-
onChange:
|
|
418
|
+
onChange: a,
|
|
55
419
|
orientation: "horizontal",
|
|
56
|
-
value:
|
|
57
|
-
children: ["Chart", "Table"].map((
|
|
420
|
+
value: o,
|
|
421
|
+
children: ["Chart", "Table"].map((t) => /* @__PURE__ */ e(Ht, { color: "primary", sx: { width: 56 }, value: t, children: t === "Chart" ? /* @__PURE__ */ e(Se, { name: "table_chart_view" }) : /* @__PURE__ */ e(Se, { name: "format_list_bulleted" }) }, t))
|
|
58
422
|
}
|
|
59
|
-
),
|
|
60
|
-
const { trends:
|
|
61
|
-
const h =
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
),
|
|
65
|
-
|
|
66
|
-
|
|
423
|
+
), Je = ({ selectedDateRange: o, selectedCategoryGuid: a }) => {
|
|
424
|
+
const { trends: t } = O(), { isMobile: n, isDesktop: s } = J(), { getCategoryName: l } = Y(), m = c.useMemo(() => {
|
|
425
|
+
const h = Q(
|
|
426
|
+
o.start,
|
|
427
|
+
n ? F.MONTH_SHORT_YEAR : F.MONTH_YEAR
|
|
428
|
+
), i = Q(
|
|
429
|
+
o.end,
|
|
430
|
+
n ? F.MONTH_SHORT_YEAR : F.MONTH_YEAR
|
|
67
431
|
);
|
|
68
|
-
return `${h} - ${
|
|
69
|
-
}, [
|
|
70
|
-
return /* @__PURE__ */
|
|
432
|
+
return `${h} - ${i}`;
|
|
433
|
+
}, [o, n]);
|
|
434
|
+
return /* @__PURE__ */ y(W, { sx: { mr: 10, minWidth: "60%" }, children: [
|
|
71
435
|
/* @__PURE__ */ e(
|
|
72
|
-
|
|
436
|
+
z,
|
|
73
437
|
{
|
|
74
438
|
display: "block",
|
|
75
439
|
fontWeight: 700,
|
|
@@ -78,272 +442,282 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
78
442
|
overflow: "visible",
|
|
79
443
|
textOverflow: "unset"
|
|
80
444
|
},
|
|
81
|
-
variant:
|
|
82
|
-
children: l(
|
|
445
|
+
variant: s ? "h3" : "body1",
|
|
446
|
+
children: l(a) || t.sub_title
|
|
83
447
|
}
|
|
84
448
|
),
|
|
85
|
-
/* @__PURE__ */ e(
|
|
449
|
+
/* @__PURE__ */ e(z, { variant: s ? "body1" : "body2", children: m })
|
|
86
450
|
] });
|
|
87
|
-
},
|
|
88
|
-
const
|
|
89
|
-
return /* @__PURE__ */ e(
|
|
90
|
-
},
|
|
91
|
-
const { getCategoryName:
|
|
92
|
-
return /* @__PURE__ */
|
|
451
|
+
}, uo = (o) => {
|
|
452
|
+
const a = o.row[o.field];
|
|
453
|
+
return /* @__PURE__ */ e(S, { alignItems: "flex-end", tabIndex: o.tabIndex, children: /* @__PURE__ */ e(ve, { amount: a, variant: "body2" }) });
|
|
454
|
+
}, ho = ({ categoryGuid: o, topLevelCategoryGuid: a }) => {
|
|
455
|
+
const { getCategoryName: t } = Y(), { categories: n } = O(), s = n.default_categories[o]?.replace(/&/g, "&") ?? t(o);
|
|
456
|
+
return /* @__PURE__ */ y(S, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
93
457
|
/* @__PURE__ */ e(
|
|
94
|
-
|
|
458
|
+
W,
|
|
95
459
|
{
|
|
96
|
-
"aria-label":
|
|
460
|
+
"aria-label": $e(n.category_icon_label_aria, s),
|
|
97
461
|
role: "img",
|
|
98
|
-
children: /* @__PURE__ */ e(
|
|
462
|
+
children: /* @__PURE__ */ e(we, { categoryGuid: a })
|
|
99
463
|
}
|
|
100
464
|
),
|
|
101
|
-
/* @__PURE__ */ e(
|
|
465
|
+
/* @__PURE__ */ e(z, { sx: { ml: 12, pb: 6 }, variant: "body2", children: s })
|
|
102
466
|
] });
|
|
103
|
-
},
|
|
104
|
-
|
|
467
|
+
}, go = (o) => /* @__PURE__ */ e(S, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
|
|
468
|
+
ho,
|
|
105
469
|
{
|
|
106
|
-
categoryGuid:
|
|
107
|
-
topLevelCategoryGuid:
|
|
470
|
+
categoryGuid: o.row.category,
|
|
471
|
+
topLevelCategoryGuid: o.row.top_level_category_guid
|
|
108
472
|
}
|
|
109
|
-
) }),
|
|
110
|
-
const
|
|
111
|
-
for (;
|
|
112
|
-
const
|
|
113
|
-
|
|
473
|
+
) }), mo = (o, a) => {
|
|
474
|
+
const t = [], n = new Date(o);
|
|
475
|
+
for (; n <= a; ) {
|
|
476
|
+
const s = Q(n, F.MONTH);
|
|
477
|
+
t.push(s), n.setMonth(n.getMonth() + 1);
|
|
114
478
|
}
|
|
115
|
-
return
|
|
116
|
-
},
|
|
117
|
-
monthlyCategoryTotals:
|
|
118
|
-
selectedDateRange:
|
|
119
|
-
selectedCategory:
|
|
120
|
-
onClickRow:
|
|
121
|
-
height:
|
|
479
|
+
return t;
|
|
480
|
+
}, et = ({
|
|
481
|
+
monthlyCategoryTotals: o,
|
|
482
|
+
selectedDateRange: a,
|
|
483
|
+
selectedCategory: t,
|
|
484
|
+
onClickRow: n,
|
|
485
|
+
height: s = "100dvh",
|
|
122
486
|
sx: l = {}
|
|
123
487
|
}) => {
|
|
124
|
-
const { onEvent:
|
|
488
|
+
const { onEvent: m } = P(), h = Q(/* @__PURE__ */ new Date(), F.MONTH_SHORT), [i, d] = c.useState([
|
|
125
489
|
{ field: h, sort: "desc" }
|
|
126
|
-
]), f =
|
|
490
|
+
]), f = c.useMemo(() => mo(a.start, a.end), [a]), p = [
|
|
127
491
|
{
|
|
128
492
|
field: "category",
|
|
129
493
|
flex: 1,
|
|
130
494
|
headerName: "Category",
|
|
131
495
|
minWidth: 175,
|
|
132
|
-
renderHeader:
|
|
133
|
-
renderCell:
|
|
496
|
+
renderHeader: Ge,
|
|
497
|
+
renderCell: go,
|
|
134
498
|
sortable: !0,
|
|
135
499
|
type: "string"
|
|
136
500
|
},
|
|
137
501
|
...f.map(
|
|
138
|
-
(
|
|
139
|
-
field:
|
|
502
|
+
(u) => ({
|
|
503
|
+
field: u,
|
|
140
504
|
flex: 1,
|
|
141
|
-
headerName:
|
|
505
|
+
headerName: u,
|
|
142
506
|
minWidth: 100,
|
|
143
|
-
renderHeader:
|
|
144
|
-
renderCell:
|
|
507
|
+
renderHeader: Ge,
|
|
508
|
+
renderCell: uo,
|
|
145
509
|
align: "right",
|
|
146
510
|
headerAlign: "right",
|
|
147
511
|
sortable: !0,
|
|
148
512
|
hideSortIcons: !1,
|
|
149
513
|
type: "number",
|
|
150
|
-
sortComparator:
|
|
514
|
+
sortComparator: Dt
|
|
151
515
|
})
|
|
152
516
|
)
|
|
153
|
-
],
|
|
154
|
-
const
|
|
155
|
-
(
|
|
156
|
-
),
|
|
157
|
-
(
|
|
158
|
-
) :
|
|
159
|
-
(
|
|
160
|
-
const { category_guid:
|
|
161
|
-
|
|
162
|
-
id:
|
|
163
|
-
category:
|
|
164
|
-
category_guid:
|
|
165
|
-
top_level_category_guid:
|
|
517
|
+
], _ = c.useMemo(() => {
|
|
518
|
+
const u = o.filter(
|
|
519
|
+
(g) => !Et(g) && !It(g)
|
|
520
|
+
), b = (t ? u.filter(
|
|
521
|
+
(g) => g.category_guid === t || g.top_level_category_guid === t
|
|
522
|
+
) : u).reduce(
|
|
523
|
+
(g, v) => {
|
|
524
|
+
const { category_guid: E, top_level_category_guid: I, month: x, total: M, year: k } = v, A = t ? E : I;
|
|
525
|
+
g[A] || (g[A] = {
|
|
526
|
+
id: A,
|
|
527
|
+
category: A,
|
|
528
|
+
category_guid: E,
|
|
529
|
+
top_level_category_guid: I
|
|
166
530
|
});
|
|
167
|
-
const
|
|
168
|
-
return
|
|
531
|
+
const G = Q(new Date(k, x - 1), F.MONTH_SHORT);
|
|
532
|
+
return g[A][G] || (g[A][G] = 0), g[A][G] = g[A][G] + Math.abs(M), g;
|
|
169
533
|
},
|
|
170
534
|
{}
|
|
171
535
|
);
|
|
172
|
-
return Object.values(
|
|
173
|
-
}, [
|
|
174
|
-
return /* @__PURE__ */ e(
|
|
175
|
-
|
|
536
|
+
return Object.values(b);
|
|
537
|
+
}, [o, t]);
|
|
538
|
+
return /* @__PURE__ */ e(W, { sx: { height: s, width: "100%", overflowX: "auto", boxShadow: "none", ...l }, children: /* @__PURE__ */ e(
|
|
539
|
+
Wt,
|
|
176
540
|
{
|
|
177
|
-
columns:
|
|
541
|
+
columns: p,
|
|
178
542
|
disableColumnFilter: !0,
|
|
179
543
|
disableColumnMenu: !0,
|
|
180
544
|
hideFooter: !0,
|
|
181
|
-
initialState: { sorting: { sortModel:
|
|
182
|
-
onRowClick: (
|
|
183
|
-
|
|
184
|
-
...
|
|
185
|
-
listItem:
|
|
545
|
+
initialState: { sorting: { sortModel: i } },
|
|
546
|
+
onRowClick: (u) => {
|
|
547
|
+
n?.(u.row.category), m(w.TRENDS_CLICK_LIST_ITEM, {
|
|
548
|
+
...V,
|
|
549
|
+
listItem: vt[u.row.category]
|
|
186
550
|
});
|
|
187
551
|
},
|
|
188
|
-
onSortModelChange: (
|
|
189
|
-
u
|
|
552
|
+
onSortModelChange: (u) => {
|
|
553
|
+
d(u), m(w.TRENDS_CLICK_TABLE_SORT, V);
|
|
190
554
|
},
|
|
191
|
-
rows:
|
|
555
|
+
rows: _,
|
|
192
556
|
slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
|
|
193
|
-
sortModel:
|
|
557
|
+
sortModel: i,
|
|
194
558
|
sortingOrder: ["asc", "desc"]
|
|
195
559
|
}
|
|
196
560
|
) });
|
|
197
|
-
},
|
|
561
|
+
}, po = {
|
|
198
562
|
title: "Transaction List"
|
|
199
|
-
},
|
|
200
|
-
categoryGuid:
|
|
201
|
-
dateRange:
|
|
202
|
-
isOpen:
|
|
203
|
-
onClose:
|
|
563
|
+
}, fo = ({
|
|
564
|
+
categoryGuid: o,
|
|
565
|
+
dateRange: a,
|
|
566
|
+
isOpen: t,
|
|
567
|
+
onClose: n
|
|
204
568
|
}) => {
|
|
205
|
-
const { onEvent:
|
|
206
|
-
() =>
|
|
207
|
-
[
|
|
569
|
+
const { onEvent: s } = P(), { selectedAccountGuids: l } = ye(), { common: m } = O(), { setFilter: h, sortedTransactions: i } = De(), [d, f] = c.useState(""), p = c.useMemo(
|
|
570
|
+
() => i.find((u) => u.guid === d),
|
|
571
|
+
[d, i]
|
|
208
572
|
);
|
|
209
|
-
|
|
573
|
+
c.useEffect(() => {
|
|
210
574
|
h({
|
|
211
575
|
accounts: l,
|
|
212
|
-
dateRange:
|
|
213
|
-
custom: (
|
|
214
|
-
showSplits: !!
|
|
576
|
+
dateRange: a,
|
|
577
|
+
custom: (u) => o === "" || o === u.category_guid || o === u.top_level_category_guid,
|
|
578
|
+
showSplits: !!o
|
|
215
579
|
});
|
|
216
|
-
}, [l,
|
|
217
|
-
const
|
|
218
|
-
f(""),
|
|
580
|
+
}, [l, o, a]), c.useEffect(() => s(w.TRENDS_VIEW_TRANSACTIONS), []);
|
|
581
|
+
const _ = () => {
|
|
582
|
+
f(""), n();
|
|
219
583
|
};
|
|
220
|
-
return /* @__PURE__ */
|
|
221
|
-
|
|
584
|
+
return /* @__PURE__ */ y(
|
|
585
|
+
ke,
|
|
222
586
|
{
|
|
223
|
-
ariaLabelClose:
|
|
224
|
-
isOpen:
|
|
225
|
-
onClose:
|
|
226
|
-
title:
|
|
587
|
+
ariaLabelClose: m.close_aria,
|
|
588
|
+
isOpen: t,
|
|
589
|
+
onClose: _,
|
|
590
|
+
title: po.title,
|
|
227
591
|
children: [
|
|
228
|
-
|
|
229
|
-
!
|
|
592
|
+
p && /* @__PURE__ */ e(Xe, { transaction: p }),
|
|
593
|
+
!p && /* @__PURE__ */ e(Ze, { onClick: f })
|
|
230
594
|
]
|
|
231
595
|
}
|
|
232
596
|
);
|
|
233
|
-
},
|
|
234
|
-
const { onEvent:
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
597
|
+
}, yo = R(fo), Co = ({ onBackClick: o, sx: a }) => {
|
|
598
|
+
const { onEvent: t } = P(), { isDesktop: n, isTablet: s, isMobile: l } = J(), { isAccountDataLoaded: m, loadAccountData: h, visibleAccounts: i } = Le(), {
|
|
599
|
+
categoriesLoaded: d,
|
|
600
|
+
loadCategories: f,
|
|
601
|
+
loadMonthlyCategoryTotals: p,
|
|
602
|
+
monthlyCategoryTotals: _,
|
|
603
|
+
getCategoryName: u
|
|
604
|
+
} = Y(), {
|
|
605
|
+
isTransactionDataLoaded: C,
|
|
606
|
+
loadTransactionData: b,
|
|
607
|
+
sortedTransactions: g
|
|
608
|
+
} = De(), { selectedDateRange: v, setSelectedDateRange: E } = Ce(), { isInitialized: I, selectedAccounts: x, setSelectedAccounts: M } = ye(), { trends: k } = O(), [A, G] = c.useState(!1), [ee, ne] = c.useState(!1), [H, he] = c.useState("Chart"), [B, se] = c.useState(""), [ae, $] = c.useState(window.innerHeight), U = ae - (l ? 315 : 345);
|
|
609
|
+
c.useEffect(() => {
|
|
610
|
+
const D = () => $(window.innerHeight);
|
|
611
|
+
return window.addEventListener("resize", D), m || h().finally(), d || f().finally(), C || b().finally(), () => window.removeEventListener("resize", D);
|
|
612
|
+
}, []), c.useEffect(() => {
|
|
613
|
+
M(i);
|
|
614
|
+
}, [i]), c.useEffect(() => {
|
|
615
|
+
I && p(
|
|
616
|
+
x,
|
|
617
|
+
v.start,
|
|
618
|
+
v.end
|
|
245
619
|
).finally(() => {
|
|
246
|
-
|
|
620
|
+
G(!0);
|
|
247
621
|
});
|
|
248
|
-
}, [
|
|
249
|
-
const
|
|
250
|
-
if (!
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
),
|
|
256
|
-
(
|
|
257
|
-
) :
|
|
622
|
+
}, [I, x, v]);
|
|
623
|
+
const K = c.useMemo(() => {
|
|
624
|
+
if (!A) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
625
|
+
const D = Lt(
|
|
626
|
+
_,
|
|
627
|
+
v.start,
|
|
628
|
+
v.end
|
|
629
|
+
), r = B.length ? D.filter(
|
|
630
|
+
(T) => T.top_level_category_guid === B || T.category_guid === B
|
|
631
|
+
) : Mt(D);
|
|
258
632
|
return {
|
|
259
|
-
stackedDatasets:
|
|
260
|
-
unstackedDatasets:
|
|
633
|
+
stackedDatasets: r.filter(Rt),
|
|
634
|
+
unstackedDatasets: r.filter(At)
|
|
261
635
|
};
|
|
262
|
-
}, [
|
|
263
|
-
|
|
264
|
-
},
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
time_period:
|
|
636
|
+
}, [_, B, v]), re = (D, r) => {
|
|
637
|
+
he(r ?? H), t(w.TRENDS_CLICK_TOGGLE_VIEW);
|
|
638
|
+
}, X = (D) => {
|
|
639
|
+
const r = Fe(D?.[0], 1), T = D?.[1], L = Ae(T, r);
|
|
640
|
+
E({ start: r, end: T }), t(w.TRENDS_CLICK_TIME_WINDOW, {
|
|
641
|
+
time_period: L + "M"
|
|
268
642
|
});
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
},
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
},
|
|
276
|
-
|
|
277
|
-
},
|
|
278
|
-
|
|
279
|
-
},
|
|
280
|
-
|
|
643
|
+
}, Z = () => {
|
|
644
|
+
t(w.TRENDS_CLICK_FILTER);
|
|
645
|
+
}, te = (D) => {
|
|
646
|
+
se(D);
|
|
647
|
+
}, ie = (D) => {
|
|
648
|
+
se(D), t(w.TRENDS_CLICK_LEGEND, { category: u(D) });
|
|
649
|
+
}, ge = (D) => {
|
|
650
|
+
t(w.TRENDS_HOVER_LEGEND, { category: u(D) });
|
|
651
|
+
}, ce = (D) => {
|
|
652
|
+
t(w.TRENDS_HOVER_AREA, { category: D });
|
|
653
|
+
}, le = (D) => {
|
|
654
|
+
t(w.TRENDS_HOVER_POINT, { category: D });
|
|
281
655
|
};
|
|
282
|
-
return !
|
|
283
|
-
|
|
656
|
+
return !I || !A ? /* @__PURE__ */ e(fe, {}) : /* @__PURE__ */ y(
|
|
657
|
+
Ue,
|
|
284
658
|
{
|
|
285
|
-
accountOptions:
|
|
286
|
-
calendarActions: { onRangeChanged:
|
|
287
|
-
dateRange:
|
|
659
|
+
accountOptions: i,
|
|
660
|
+
calendarActions: { onRangeChanged: X },
|
|
661
|
+
dateRange: v,
|
|
288
662
|
dateRangeVariant: "timeframebuttons",
|
|
289
|
-
onAccountsFilterClick:
|
|
290
|
-
onBackClick:
|
|
291
|
-
sx:
|
|
292
|
-
title:
|
|
663
|
+
onAccountsFilterClick: Z,
|
|
664
|
+
onBackClick: o,
|
|
665
|
+
sx: a,
|
|
666
|
+
title: k.title,
|
|
293
667
|
children: [
|
|
294
|
-
/* @__PURE__ */
|
|
295
|
-
|
|
668
|
+
/* @__PURE__ */ y(
|
|
669
|
+
S,
|
|
296
670
|
{
|
|
297
671
|
sx: {
|
|
298
672
|
// eslint-disable-next-line no-nested-ternary
|
|
299
|
-
px:
|
|
673
|
+
px: n ? 48 : s ? 24 : 12
|
|
300
674
|
},
|
|
301
675
|
children: [
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
|
|
676
|
+
/* @__PURE__ */ y(
|
|
677
|
+
S,
|
|
304
678
|
{
|
|
305
679
|
flexDirection: "row",
|
|
306
680
|
justifyContent: "space-between",
|
|
307
681
|
sx: { pb: l ? 12 : 24, pt: l ? 24 : 48 },
|
|
308
682
|
children: [
|
|
309
683
|
/* @__PURE__ */ e(
|
|
310
|
-
|
|
684
|
+
Je,
|
|
311
685
|
{
|
|
312
|
-
selectedCategoryGuid:
|
|
313
|
-
selectedDateRange:
|
|
686
|
+
selectedCategoryGuid: B,
|
|
687
|
+
selectedDateRange: v
|
|
314
688
|
}
|
|
315
689
|
),
|
|
316
|
-
/* @__PURE__ */ e(
|
|
690
|
+
/* @__PURE__ */ e(Qe, { onTabChange: re, selectedTab: H })
|
|
317
691
|
]
|
|
318
692
|
}
|
|
319
693
|
),
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
/* @__PURE__ */ e(
|
|
322
|
-
/* @__PURE__ */ e(
|
|
323
|
-
|
|
694
|
+
/* @__PURE__ */ y(S, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
695
|
+
/* @__PURE__ */ e(W, { flexGrow: 1, children: B && /* @__PURE__ */ y(xe, { onClick: () => se(""), sx: { p: 0, pr: 5 }, children: [
|
|
696
|
+
/* @__PURE__ */ e(Se, { name: "arrow_back" }),
|
|
697
|
+
k.all_categories
|
|
324
698
|
] }) }),
|
|
325
|
-
/* @__PURE__ */ e(
|
|
699
|
+
/* @__PURE__ */ e(xe, { onClick: () => ne(!0), sx: { px: 5 }, children: `${k.view_transactions} (${g.length})` })
|
|
326
700
|
] }),
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
|
|
329
|
-
|
|
701
|
+
/* @__PURE__ */ y(W, { children: [
|
|
702
|
+
H === "Chart" && /* @__PURE__ */ e(
|
|
703
|
+
lo,
|
|
330
704
|
{
|
|
331
|
-
availableHeight:
|
|
332
|
-
onClickLegend:
|
|
333
|
-
onHoverArea:
|
|
334
|
-
onHoverLegend:
|
|
335
|
-
onHoverPoint:
|
|
336
|
-
stackedDatasets:
|
|
337
|
-
unstackedDatasets:
|
|
705
|
+
availableHeight: U,
|
|
706
|
+
onClickLegend: ie,
|
|
707
|
+
onHoverArea: ce,
|
|
708
|
+
onHoverLegend: ge,
|
|
709
|
+
onHoverPoint: le,
|
|
710
|
+
stackedDatasets: K.stackedDatasets,
|
|
711
|
+
unstackedDatasets: K.unstackedDatasets
|
|
338
712
|
}
|
|
339
713
|
),
|
|
340
|
-
|
|
341
|
-
|
|
714
|
+
H === "Table" && /* @__PURE__ */ e(
|
|
715
|
+
et,
|
|
342
716
|
{
|
|
343
|
-
monthlyCategoryTotals:
|
|
344
|
-
onClickRow:
|
|
345
|
-
selectedCategory:
|
|
346
|
-
selectedDateRange:
|
|
717
|
+
monthlyCategoryTotals: _,
|
|
718
|
+
onClickRow: te,
|
|
719
|
+
selectedCategory: B,
|
|
720
|
+
selectedDateRange: v
|
|
347
721
|
}
|
|
348
722
|
)
|
|
349
723
|
] })
|
|
@@ -351,27 +725,27 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
351
725
|
}
|
|
352
726
|
),
|
|
353
727
|
/* @__PURE__ */ e(
|
|
354
|
-
|
|
728
|
+
yo,
|
|
355
729
|
{
|
|
356
|
-
categoryGuid:
|
|
357
|
-
dateRange:
|
|
358
|
-
isOpen:
|
|
359
|
-
onClose: () =>
|
|
730
|
+
categoryGuid: B,
|
|
731
|
+
dateRange: v,
|
|
732
|
+
isOpen: ee,
|
|
733
|
+
onClose: () => ne(!1)
|
|
360
734
|
}
|
|
361
735
|
)
|
|
362
736
|
]
|
|
363
737
|
}
|
|
364
738
|
);
|
|
365
|
-
},
|
|
366
|
-
const
|
|
739
|
+
}, Nn = R(Co), _o = () => {
|
|
740
|
+
const { monthlyCategoryTotals: o } = Y(), { trends: a } = O(), t = ue(), { availableHeight: n = 300 } = ze(), s = kt(o);
|
|
367
741
|
return /* @__PURE__ */ e(
|
|
368
|
-
|
|
742
|
+
Ne,
|
|
369
743
|
{
|
|
370
744
|
baseline: "min",
|
|
371
745
|
colors: [t.palette.primary.main],
|
|
372
746
|
datasets: [s],
|
|
373
|
-
height:
|
|
374
|
-
labels: [
|
|
747
|
+
height: n,
|
|
748
|
+
labels: [a.spending_label],
|
|
375
749
|
showArea: !0,
|
|
376
750
|
showAverage: !0,
|
|
377
751
|
showLegend: !0,
|
|
@@ -380,37 +754,40 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
380
754
|
valueFormatterString: "0,0"
|
|
381
755
|
}
|
|
382
756
|
);
|
|
383
|
-
},
|
|
384
|
-
const {
|
|
385
|
-
return
|
|
386
|
-
|
|
387
|
-
}, [
|
|
388
|
-
|
|
389
|
-
}, [
|
|
390
|
-
|
|
757
|
+
}, To = R(_o), bo = ({ onPrimaryCtaClick: o, sx: a }) => {
|
|
758
|
+
const { isAccountDataLoaded: t, loadAccountData: n, visibleAccounts: s } = Le(), { loadMonthlyCategoryTotals: l, monthlyTotalsLoaded: m } = Y(), { isInitialized: h } = He(), { trends: i } = O(), { selectedAccounts: d, setSelectedAccounts: f } = ye();
|
|
759
|
+
return c.useEffect(() => {
|
|
760
|
+
t || n().finally();
|
|
761
|
+
}, []), c.useEffect(() => {
|
|
762
|
+
f(s);
|
|
763
|
+
}, [s]), c.useEffect(() => {
|
|
764
|
+
h && l(d).finally();
|
|
765
|
+
}, [h, d]), h ? /* @__PURE__ */ e(
|
|
766
|
+
Gt,
|
|
391
767
|
{
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
768
|
+
contentStyles: { height: "calc(100% - 72px)", ":last-child": { pb: 0 } },
|
|
769
|
+
onPrimaryCtaClick: o,
|
|
770
|
+
primaryCtaLabel: i.primary_cta,
|
|
771
|
+
subTitle: i.sub_title,
|
|
772
|
+
sx: { height: "100%", ...a },
|
|
773
|
+
title: i.mini_title,
|
|
774
|
+
children: m ? /* @__PURE__ */ e(To, {}) : /* @__PURE__ */ e(fe, {})
|
|
398
775
|
}
|
|
399
|
-
);
|
|
400
|
-
},
|
|
401
|
-
title:
|
|
402
|
-
totalAmount:
|
|
403
|
-
transactionType:
|
|
404
|
-
percentage:
|
|
405
|
-
secondaryLabel:
|
|
776
|
+
) : /* @__PURE__ */ e(fe, {});
|
|
777
|
+
}, Wn = R(bo), So = 70, Be = ({
|
|
778
|
+
title: o,
|
|
779
|
+
totalAmount: a,
|
|
780
|
+
transactionType: t,
|
|
781
|
+
percentage: n,
|
|
782
|
+
secondaryLabel: s,
|
|
406
783
|
shouldDisplayPercentage: l
|
|
407
784
|
}) => {
|
|
408
|
-
const { availableWidth:
|
|
785
|
+
const { availableWidth: m } = ze(), h = c.useRef(null), i = c.useRef(null), d = wt(Number(Math.abs(n)), {
|
|
409
786
|
style: "percent",
|
|
410
787
|
minimumIntegerDigits: 1
|
|
411
|
-
}), f =
|
|
412
|
-
return /* @__PURE__ */
|
|
413
|
-
|
|
788
|
+
}), f = m === 288 && oe(a, "0,0.00").length > 10 ? oe(a, "0,0") : oe(a, "0,0.00"), p = t === "spending" ? n > 0 : n >= 0, _ = t === "spending" ? "error.main" : "success.main", u = t === "spending" ? "success.main" : "text.secondary", C = h?.current, b = i?.current, g = C && b ? C.scrollWidth > b.clientWidth - So : !1;
|
|
789
|
+
return /* @__PURE__ */ y(
|
|
790
|
+
S,
|
|
414
791
|
{
|
|
415
792
|
sx: {
|
|
416
793
|
border: 1,
|
|
@@ -422,8 +799,8 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
422
799
|
py: 8
|
|
423
800
|
},
|
|
424
801
|
children: [
|
|
425
|
-
/* @__PURE__ */
|
|
426
|
-
|
|
802
|
+
/* @__PURE__ */ y(
|
|
803
|
+
S,
|
|
427
804
|
{
|
|
428
805
|
sx: {
|
|
429
806
|
alignItems: "center",
|
|
@@ -431,28 +808,28 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
431
808
|
justifyContent: "space-between"
|
|
432
809
|
},
|
|
433
810
|
children: [
|
|
434
|
-
/* @__PURE__ */ e(
|
|
435
|
-
l && /* @__PURE__ */
|
|
436
|
-
|
|
811
|
+
/* @__PURE__ */ e(pe, { color: "text.secondary", variant: "caption", children: o }),
|
|
812
|
+
l && /* @__PURE__ */ y(S, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
|
813
|
+
p ? /* @__PURE__ */ e(Vt, { size: 20, sx: { color: _ } }) : /* @__PURE__ */ e(Pt, { size: 20, sx: { color: u } }),
|
|
437
814
|
/* @__PURE__ */ e(
|
|
438
|
-
|
|
815
|
+
pe,
|
|
439
816
|
{
|
|
440
817
|
sx: {
|
|
441
|
-
color:
|
|
818
|
+
color: p ? _ : u,
|
|
442
819
|
fontWeight: 600
|
|
443
820
|
},
|
|
444
821
|
variant: "body2",
|
|
445
|
-
children:
|
|
822
|
+
children: d
|
|
446
823
|
}
|
|
447
824
|
)
|
|
448
825
|
] })
|
|
449
826
|
]
|
|
450
827
|
}
|
|
451
828
|
),
|
|
452
|
-
/* @__PURE__ */
|
|
453
|
-
|
|
829
|
+
/* @__PURE__ */ y(
|
|
830
|
+
S,
|
|
454
831
|
{
|
|
455
|
-
ref:
|
|
832
|
+
ref: i,
|
|
456
833
|
sx: {
|
|
457
834
|
alignItems: "center",
|
|
458
835
|
flexDirection: "row",
|
|
@@ -460,19 +837,19 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
460
837
|
},
|
|
461
838
|
children: [
|
|
462
839
|
/* @__PURE__ */ e(
|
|
463
|
-
|
|
840
|
+
W,
|
|
464
841
|
{
|
|
465
842
|
ref: h,
|
|
466
843
|
sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
|
467
|
-
children: /* @__PURE__ */ e(
|
|
844
|
+
children: /* @__PURE__ */ e(Pe, { children: f })
|
|
468
845
|
}
|
|
469
846
|
),
|
|
470
|
-
l &&
|
|
471
|
-
|
|
847
|
+
l && m >= 450 && !g && /* @__PURE__ */ e(
|
|
848
|
+
pe,
|
|
472
849
|
{
|
|
473
|
-
color:
|
|
850
|
+
color: p ? _ : u,
|
|
474
851
|
variant: "caption",
|
|
475
|
-
children:
|
|
852
|
+
children: s
|
|
476
853
|
}
|
|
477
854
|
)
|
|
478
855
|
]
|
|
@@ -481,50 +858,54 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
481
858
|
]
|
|
482
859
|
}
|
|
483
860
|
);
|
|
484
|
-
},
|
|
485
|
-
const { trends:
|
|
486
|
-
return /* @__PURE__ */
|
|
487
|
-
/* @__PURE__ */ e(
|
|
488
|
-
/* @__PURE__ */
|
|
489
|
-
/* @__PURE__ */ e(
|
|
490
|
-
/* @__PURE__ */ e(
|
|
861
|
+
}, xo = R(() => {
|
|
862
|
+
const { trends: o } = O();
|
|
863
|
+
return /* @__PURE__ */ y(S, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
864
|
+
/* @__PURE__ */ e(Ft, { size: 32 }),
|
|
865
|
+
/* @__PURE__ */ y(S, { children: [
|
|
866
|
+
/* @__PURE__ */ e(pe, { fontWeight: 600, variant: "body1", children: o.zero_state_content_header }),
|
|
867
|
+
/* @__PURE__ */ e(pe, { color: "text.secondary", variant: "subtitle2", children: o.zero_state_content_description })
|
|
491
868
|
] })
|
|
492
869
|
] });
|
|
493
|
-
}),
|
|
494
|
-
const {
|
|
495
|
-
|
|
870
|
+
}), On = R(({ onCtaClick: o }) => {
|
|
871
|
+
const { isAccountDataLoaded: a, loadAccountData: t, visibleAccounts: n } = Le();
|
|
872
|
+
c.useEffect(() => {
|
|
873
|
+
a || t().finally();
|
|
874
|
+
}, []);
|
|
875
|
+
const { onEvent: s } = P(), { monthlyCategoryTotals: l, loadMonthlyCategoryTotals: m, monthlyTotalsLoaded: h } = Y(), i = {
|
|
876
|
+
start: Bt(/* @__PURE__ */ new Date(), 1),
|
|
496
877
|
end: /* @__PURE__ */ new Date()
|
|
497
|
-
}, { trends:
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
}, [
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
state:
|
|
878
|
+
}, { trends: d } = O(), { selectedAccounts: f, setSelectedAccounts: p, isInitialized: _ } = ye();
|
|
879
|
+
c.useEffect(() => {
|
|
880
|
+
p(n);
|
|
881
|
+
}, [n]), c.useEffect(() => {
|
|
882
|
+
_ && m(f, i.start).then(() => {
|
|
883
|
+
s(w.TRENDS_LOAD_WIDGET, {
|
|
884
|
+
state: n?.length ? "default" : "zeroState"
|
|
504
885
|
});
|
|
505
886
|
});
|
|
506
|
-
}, [
|
|
507
|
-
const { spendingData:
|
|
887
|
+
}, [_, f]);
|
|
888
|
+
const { spendingData: u, incomeData: C } = c.useMemo(
|
|
508
889
|
() => ({
|
|
509
|
-
spendingData:
|
|
510
|
-
incomeData:
|
|
890
|
+
spendingData: Ye(l, i),
|
|
891
|
+
incomeData: je(l, i)
|
|
511
892
|
}),
|
|
512
|
-
[
|
|
513
|
-
), [
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
),
|
|
893
|
+
[l, i]
|
|
894
|
+
), [b, g] = u, [v, E] = C, I = Oe(g.y, b.y), x = Oe(E.y, v.y), M = _ && !n?.length, k = () => {
|
|
895
|
+
s(
|
|
896
|
+
M ? w.TRENDS_CLICK_GET_STARTED : w.TRENDS_CLICK_VIEW_MORE
|
|
897
|
+
), o();
|
|
517
898
|
};
|
|
518
|
-
return !
|
|
519
|
-
|
|
899
|
+
return !h || !_ ? /* @__PURE__ */ e(fe, {}) : /* @__PURE__ */ e(
|
|
900
|
+
jt,
|
|
520
901
|
{
|
|
521
902
|
className: "mx-trends-microwidget",
|
|
522
|
-
ctaLabel:
|
|
523
|
-
onCTAClick:
|
|
524
|
-
subHeader:
|
|
525
|
-
title:
|
|
526
|
-
children:
|
|
527
|
-
|
|
903
|
+
ctaLabel: d.micro_primary_cta_label,
|
|
904
|
+
onCTAClick: k,
|
|
905
|
+
subHeader: M ? void 0 : d.micro_subheader,
|
|
906
|
+
title: d.title,
|
|
907
|
+
children: M ? /* @__PURE__ */ e(xo, {}) : /* @__PURE__ */ y(
|
|
908
|
+
S,
|
|
528
909
|
{
|
|
529
910
|
sx: {
|
|
530
911
|
alignItems: "stretch",
|
|
@@ -533,24 +914,24 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
533
914
|
},
|
|
534
915
|
children: [
|
|
535
916
|
/* @__PURE__ */ e(
|
|
536
|
-
|
|
917
|
+
Be,
|
|
537
918
|
{
|
|
538
|
-
percentage:
|
|
539
|
-
secondaryLabel:
|
|
540
|
-
shouldDisplayPercentage:
|
|
541
|
-
title:
|
|
542
|
-
totalAmount:
|
|
919
|
+
percentage: I,
|
|
920
|
+
secondaryLabel: d.micro_secondary_label,
|
|
921
|
+
shouldDisplayPercentage: g.y !== 0 && b.y !== 0,
|
|
922
|
+
title: d.spending_label,
|
|
923
|
+
totalAmount: g.y,
|
|
543
924
|
transactionType: "spending"
|
|
544
925
|
}
|
|
545
926
|
),
|
|
546
927
|
/* @__PURE__ */ e(
|
|
547
|
-
|
|
928
|
+
Be,
|
|
548
929
|
{
|
|
549
|
-
percentage:
|
|
550
|
-
secondaryLabel:
|
|
551
|
-
shouldDisplayPercentage:
|
|
552
|
-
title:
|
|
553
|
-
totalAmount:
|
|
930
|
+
percentage: x,
|
|
931
|
+
secondaryLabel: d.micro_secondary_label,
|
|
932
|
+
shouldDisplayPercentage: E.y !== 0 && v.y !== 0,
|
|
933
|
+
title: d.income_label,
|
|
934
|
+
totalAmount: E.y,
|
|
554
935
|
transactionType: "income"
|
|
555
936
|
}
|
|
556
937
|
)
|
|
@@ -559,21 +940,21 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
559
940
|
)
|
|
560
941
|
}
|
|
561
942
|
);
|
|
562
|
-
}),
|
|
563
|
-
({ isExpanded:
|
|
564
|
-
const
|
|
565
|
-
return /* @__PURE__ */ e(
|
|
566
|
-
|
|
943
|
+
}), vo = R(
|
|
944
|
+
({ isExpanded: o, onClick: a }) => {
|
|
945
|
+
const t = ue();
|
|
946
|
+
return /* @__PURE__ */ e(Xt, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(Zt, { onClick: a, sx: { justifyContent: "center" }, children: /* @__PURE__ */ y(
|
|
947
|
+
S,
|
|
567
948
|
{
|
|
568
|
-
sx: { color:
|
|
949
|
+
sx: { color: t.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
569
950
|
children: [
|
|
570
|
-
/* @__PURE__ */ e(
|
|
571
|
-
/* @__PURE__ */ e(
|
|
572
|
-
|
|
951
|
+
/* @__PURE__ */ e(Qt, { children: /* @__PURE__ */ e(z, { bold: !0, variant: "body2", children: o ? "View less" : "View more" }) }),
|
|
952
|
+
/* @__PURE__ */ e(qt, { sx: { color: t.palette.primary.main }, children: o ? /* @__PURE__ */ e(zt, {}) : /* @__PURE__ */ e(
|
|
953
|
+
$t,
|
|
573
954
|
{
|
|
574
955
|
sx: {
|
|
575
956
|
transition: "transform 0.3s ease-in-out",
|
|
576
|
-
transform:
|
|
957
|
+
transform: o ? "rotate(180deg)" : "rotate(0deg)"
|
|
577
958
|
}
|
|
578
959
|
}
|
|
579
960
|
) })
|
|
@@ -581,129 +962,128 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
581
962
|
}
|
|
582
963
|
) }) });
|
|
583
964
|
}
|
|
584
|
-
),
|
|
965
|
+
), Ve = R(
|
|
585
966
|
({
|
|
586
|
-
totalAmount:
|
|
587
|
-
guid:
|
|
588
|
-
name:
|
|
589
|
-
transactions:
|
|
590
|
-
onClick:
|
|
967
|
+
totalAmount: o,
|
|
968
|
+
guid: a,
|
|
969
|
+
name: t,
|
|
970
|
+
transactions: n,
|
|
971
|
+
onClick: s,
|
|
591
972
|
isLastItem: l = !1,
|
|
592
|
-
showDivider:
|
|
973
|
+
showDivider: m = !0
|
|
593
974
|
}) => {
|
|
594
|
-
const { trends: h } =
|
|
595
|
-
|
|
596
|
-
...
|
|
597
|
-
listItem:
|
|
975
|
+
const { trends: h } = O(), { onEvent: i } = P(), d = `${n.length} ${n.length === 1 ? h.transaction : h.transactions}`, f = () => {
|
|
976
|
+
s?.(), i(w.TRENDS_CLICK_LIST_ITEM, {
|
|
977
|
+
...V,
|
|
978
|
+
listItem: t
|
|
598
979
|
});
|
|
599
980
|
};
|
|
600
|
-
return /* @__PURE__ */
|
|
981
|
+
return /* @__PURE__ */ y(c.Fragment, { children: [
|
|
601
982
|
/* @__PURE__ */ e(
|
|
602
|
-
|
|
983
|
+
Ke,
|
|
603
984
|
{
|
|
604
|
-
leftIcon:
|
|
985
|
+
leftIcon: a ? /* @__PURE__ */ e(we, { categoryGuid: a }) : void 0,
|
|
605
986
|
onClick: f,
|
|
606
|
-
rightContent:
|
|
607
|
-
rightIcon:
|
|
608
|
-
subtitle:
|
|
609
|
-
title:
|
|
987
|
+
rightContent: oe(Math.abs(o), "0,0.00"),
|
|
988
|
+
rightIcon: s ? /* @__PURE__ */ e(Kt, {}) : void 0,
|
|
989
|
+
subtitle: d,
|
|
990
|
+
title: t
|
|
610
991
|
}
|
|
611
992
|
),
|
|
612
|
-
|
|
613
|
-
] },
|
|
993
|
+
m && /* @__PURE__ */ e(Re, { sx: { ml: l ? 24 : 68 } })
|
|
994
|
+
] }, a);
|
|
614
995
|
}
|
|
615
|
-
),
|
|
616
|
-
({ availableHeight:
|
|
617
|
-
const { collapsedCategories:
|
|
618
|
-
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
}, [
|
|
622
|
-
const
|
|
623
|
-
f(!
|
|
624
|
-
...
|
|
996
|
+
), wo = R(
|
|
997
|
+
({ availableHeight: o = 0, onCategoryClick: a }) => {
|
|
998
|
+
const { collapsedCategories: t, visibleCategories: n, setVisibleListLength: s } = Ce(), { isLargeDesktop: l, isDesktop: m } = J(), { trends: h } = O(), { onEvent: i } = P(), [d, f] = c.useState(!1), p = m || l;
|
|
999
|
+
c.useEffect(() => {
|
|
1000
|
+
const C = Math.floor(o / 64) - 1, b = n.length + t.length;
|
|
1001
|
+
C !== n.length && (s(p ? Math.max(C, 5) : 5), f(C >= b));
|
|
1002
|
+
}, [o]);
|
|
1003
|
+
const _ = () => {
|
|
1004
|
+
f(!d), i(w.TRENDS_CLICK_VIEW_MORE, {
|
|
1005
|
+
...V
|
|
625
1006
|
});
|
|
626
|
-
},
|
|
627
|
-
return /* @__PURE__ */ e(
|
|
628
|
-
/* @__PURE__ */ e(
|
|
629
|
-
|
|
630
|
-
|
|
1007
|
+
}, u = n.length + (d ? t.length : 0);
|
|
1008
|
+
return /* @__PURE__ */ e(S, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ y(Ut, { children: [
|
|
1009
|
+
/* @__PURE__ */ e(S, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ e(Pe, { children: h.categories }) }),
|
|
1010
|
+
n.map((C, b) => /* @__PURE__ */ e(
|
|
1011
|
+
Ve,
|
|
631
1012
|
{
|
|
632
|
-
...
|
|
633
|
-
isLastItem:
|
|
634
|
-
onClick:
|
|
1013
|
+
...C,
|
|
1014
|
+
isLastItem: b === u - 1,
|
|
1015
|
+
onClick: C.transactions.length > 0 ? () => a(C) : void 0,
|
|
635
1016
|
showDivider: !0
|
|
636
1017
|
},
|
|
637
|
-
|
|
1018
|
+
C.guid
|
|
638
1019
|
)),
|
|
639
1020
|
/* @__PURE__ */ e(
|
|
640
|
-
|
|
1021
|
+
Yt,
|
|
641
1022
|
{
|
|
642
|
-
in:
|
|
1023
|
+
in: d,
|
|
643
1024
|
sx: { "&.MuiCollapse-root .MuiListItemButton-root": { paddingLeft: 24 } },
|
|
644
|
-
children:
|
|
645
|
-
const
|
|
1025
|
+
children: t.map((C, b) => {
|
|
1026
|
+
const g = n.length + b;
|
|
646
1027
|
return /* @__PURE__ */ e(
|
|
647
|
-
|
|
1028
|
+
Ve,
|
|
648
1029
|
{
|
|
649
|
-
...
|
|
650
|
-
isLastItem:
|
|
651
|
-
onClick:
|
|
1030
|
+
...C,
|
|
1031
|
+
isLastItem: g === u - 1,
|
|
1032
|
+
onClick: C.transactions.length > 0 ? () => a(C) : void 0,
|
|
652
1033
|
showDivider: !0
|
|
653
1034
|
},
|
|
654
|
-
|
|
1035
|
+
C.guid
|
|
655
1036
|
);
|
|
656
1037
|
})
|
|
657
1038
|
}
|
|
658
1039
|
),
|
|
659
|
-
|
|
1040
|
+
t.length > 0 && /* @__PURE__ */ e(vo, { isExpanded: d, onClick: _ })
|
|
660
1041
|
] }) });
|
|
661
1042
|
}
|
|
662
|
-
),
|
|
663
|
-
const
|
|
664
|
-
|
|
665
|
-
},
|
|
666
|
-
return /* @__PURE__ */ e(
|
|
667
|
-
|
|
1043
|
+
), Do = ({ beats: o, onInsightCardClick: a }) => {
|
|
1044
|
+
const { onEvent: t } = P(), { isMobile: n, isDesktop: s, isLargeDesktop: l } = J(), { beatStore: m, endpoint: h, sessionToken: i } = He(), d = s || l, f = d || n ? 1 : 2, p = () => null, _ = (E) => {
|
|
1045
|
+
a?.(E), t(w.TRENDS_CLICK_INSIGHT, V);
|
|
1046
|
+
}, u = d ? 200 : 170, C = d ? 170 : 124, b = d ? 56 : 0, g = o.length > 0 ? u + b : C, v = d && o.length > 0 ? u : void 0;
|
|
1047
|
+
return /* @__PURE__ */ e(xt, { sx: { height: g }, children: /* @__PURE__ */ e(
|
|
1048
|
+
Ot,
|
|
668
1049
|
{
|
|
669
|
-
areBeatsLoading:
|
|
670
|
-
beats:
|
|
671
|
-
endpoint:
|
|
672
|
-
heightOverrides:
|
|
673
|
-
logOutUser:
|
|
674
|
-
onCardClick:
|
|
1050
|
+
areBeatsLoading: m.isLoading,
|
|
1051
|
+
beats: o,
|
|
1052
|
+
endpoint: h,
|
|
1053
|
+
heightOverrides: v,
|
|
1054
|
+
logOutUser: p,
|
|
1055
|
+
onCardClick: _,
|
|
675
1056
|
showBorder: !0,
|
|
676
1057
|
showCTAColocatedWithText: !1,
|
|
677
1058
|
showCarouselControls: !0,
|
|
678
|
-
showHeader:
|
|
1059
|
+
showHeader: d,
|
|
679
1060
|
showIcon: !0,
|
|
680
1061
|
showWithMargin: !1,
|
|
681
|
-
token:
|
|
682
|
-
useDarkMode: f,
|
|
1062
|
+
token: i,
|
|
683
1063
|
userHasFullInsightFeedBeats: !1,
|
|
684
1064
|
variant: "outlined",
|
|
685
|
-
visibleCardsCount:
|
|
1065
|
+
visibleCardsCount: f
|
|
686
1066
|
}
|
|
687
1067
|
) });
|
|
688
|
-
},
|
|
689
|
-
const { onEvent:
|
|
690
|
-
categoryDetailsChartData: { monthlyAmounts:
|
|
691
|
-
} =
|
|
692
|
-
return /* @__PURE__ */ e(
|
|
693
|
-
|
|
1068
|
+
}, Lo = R(Do), Eo = R(({ chartLabel: o, chartColor: a }) => {
|
|
1069
|
+
const { onEvent: t } = P(), {
|
|
1070
|
+
categoryDetailsChartData: { monthlyAmounts: n, tooltipLabels: s }
|
|
1071
|
+
} = Ce();
|
|
1072
|
+
return /* @__PURE__ */ e(S, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ e(
|
|
1073
|
+
Ne,
|
|
694
1074
|
{
|
|
695
1075
|
baseline: "min",
|
|
696
|
-
colors: [
|
|
1076
|
+
colors: [a],
|
|
697
1077
|
curveType: "bump",
|
|
698
|
-
customTooltipLabels:
|
|
699
|
-
datasets: [
|
|
1078
|
+
customTooltipLabels: s,
|
|
1079
|
+
datasets: [n],
|
|
700
1080
|
height: 265,
|
|
701
|
-
labels: [
|
|
1081
|
+
labels: [o],
|
|
702
1082
|
markStyles: () => ({
|
|
703
|
-
stroke:
|
|
1083
|
+
stroke: a
|
|
704
1084
|
}),
|
|
705
1085
|
onItemClick: () => {
|
|
706
|
-
|
|
1086
|
+
t(w.TRENDS_CLICK_CHART, V);
|
|
707
1087
|
},
|
|
708
1088
|
showArea: !0,
|
|
709
1089
|
showAverage: !0,
|
|
@@ -718,100 +1098,100 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
718
1098
|
valueFormatterString: "0,0"
|
|
719
1099
|
}
|
|
720
1100
|
) });
|
|
721
|
-
}),
|
|
722
|
-
const
|
|
1101
|
+
}), Io = R(({ onClose: o }) => {
|
|
1102
|
+
const a = ue(), { onEvent: t } = P(), { common: n, trends: s } = O(), { selectedCategoryData: l, selectedDateRangeMonthRange: m } = Ce(), { sortedTransactions: h } = De(), [i, d] = c.useState(null);
|
|
723
1103
|
if (!l)
|
|
724
1104
|
return null;
|
|
725
|
-
const { guid: f, name:
|
|
726
|
-
() => h.find((
|
|
727
|
-
[
|
|
728
|
-
),
|
|
729
|
-
|
|
1105
|
+
const { guid: f, name: p, is_income: _, totalAmount: u } = l, C = _ ? s.category_income : s.category_spending, b = eo(f, a), g = _ ? s.income_label : s.spending_label, v = ` ${l.transactions.length === 1 ? s.transaction : s.transactions} (${l.transactions.length})`, E = c.useMemo(
|
|
1106
|
+
() => h.find((M) => M.guid === i),
|
|
1107
|
+
[i, h]
|
|
1108
|
+
), I = (M) => M.category_guid === f || M.top_level_category_guid === f, x = () => {
|
|
1109
|
+
o?.(), t(w.TRENDS_CLICK_BACK, V);
|
|
730
1110
|
};
|
|
731
|
-
return /* @__PURE__ */
|
|
732
|
-
|
|
1111
|
+
return /* @__PURE__ */ y(
|
|
1112
|
+
ke,
|
|
733
1113
|
{
|
|
734
|
-
ariaLabelClose:
|
|
1114
|
+
ariaLabelClose: s.close_category_details,
|
|
735
1115
|
isOpen: !0,
|
|
736
|
-
onClose:
|
|
1116
|
+
onClose: x,
|
|
737
1117
|
shouldShowHeaderShadow: !0,
|
|
738
|
-
title:
|
|
1118
|
+
title: C,
|
|
739
1119
|
children: [
|
|
740
|
-
/* @__PURE__ */
|
|
741
|
-
/* @__PURE__ */
|
|
1120
|
+
/* @__PURE__ */ y(S, { sx: { alignItems: "center", height: "100%" }, children: [
|
|
1121
|
+
/* @__PURE__ */ y(Jt, { sx: { borderRadius: 0, pb: 4, pt: 16, width: "100%" }, children: [
|
|
742
1122
|
/* @__PURE__ */ e(
|
|
743
|
-
|
|
1123
|
+
Ke,
|
|
744
1124
|
{
|
|
745
|
-
leftIcon: /* @__PURE__ */ e(
|
|
746
|
-
rightContent:
|
|
747
|
-
subtitle:
|
|
748
|
-
title:
|
|
1125
|
+
leftIcon: /* @__PURE__ */ e(we, { categoryGuid: f }),
|
|
1126
|
+
rightContent: oe(Math.abs(u), "0,0.00"),
|
|
1127
|
+
subtitle: m,
|
|
1128
|
+
title: p
|
|
749
1129
|
}
|
|
750
1130
|
),
|
|
751
|
-
/* @__PURE__ */ e(
|
|
752
|
-
/* @__PURE__ */
|
|
753
|
-
/* @__PURE__ */ e(
|
|
754
|
-
/* @__PURE__ */ e(
|
|
1131
|
+
/* @__PURE__ */ e(Eo, { chartColor: b, chartLabel: g }),
|
|
1132
|
+
/* @__PURE__ */ y(S, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 24 }, children: [
|
|
1133
|
+
/* @__PURE__ */ e(z, { bold: !0, variant: "body1", children: v }),
|
|
1134
|
+
/* @__PURE__ */ e(to, { filter: I })
|
|
755
1135
|
] })
|
|
756
1136
|
] }),
|
|
757
1137
|
/* @__PURE__ */ e(
|
|
758
|
-
|
|
1138
|
+
Ze,
|
|
759
1139
|
{
|
|
760
1140
|
bgcolor: "transparent",
|
|
761
|
-
filter:
|
|
1141
|
+
filter: I,
|
|
762
1142
|
height: "calc(100vh - 475px)",
|
|
763
|
-
onClick:
|
|
1143
|
+
onClick: d
|
|
764
1144
|
}
|
|
765
1145
|
)
|
|
766
1146
|
] }),
|
|
767
1147
|
/* @__PURE__ */ e(
|
|
768
|
-
|
|
1148
|
+
ke,
|
|
769
1149
|
{
|
|
770
|
-
ariaLabelClose:
|
|
771
|
-
isOpen: !!
|
|
772
|
-
onClose: () =>
|
|
773
|
-
title:
|
|
774
|
-
children:
|
|
1150
|
+
ariaLabelClose: n.close_aria,
|
|
1151
|
+
isOpen: !!E,
|
|
1152
|
+
onClose: () => d(""),
|
|
1153
|
+
title: s.transaction,
|
|
1154
|
+
children: E && /* @__PURE__ */ e(Xe, { transaction: E })
|
|
775
1155
|
}
|
|
776
1156
|
)
|
|
777
1157
|
]
|
|
778
1158
|
}
|
|
779
1159
|
);
|
|
780
|
-
}),
|
|
781
|
-
const
|
|
782
|
-
return [
|
|
783
|
-
},
|
|
784
|
-
const [
|
|
785
|
-
if (
|
|
786
|
-
const h =
|
|
787
|
-
|
|
1160
|
+
}), Mo = (o, a) => {
|
|
1161
|
+
const t = je(o, a), n = Ye(o, a);
|
|
1162
|
+
return [t, n].filter((s) => s.length > 0);
|
|
1163
|
+
}, Ao = (o, a) => {
|
|
1164
|
+
const [t, n] = o, s = t, l = n ?? t, m = [];
|
|
1165
|
+
if (s) {
|
|
1166
|
+
const h = s.reduce((i, d) => i + d.y, 0);
|
|
1167
|
+
m.push({ label: a.income_label, amount: h });
|
|
788
1168
|
}
|
|
789
1169
|
if (l) {
|
|
790
|
-
const h = l.reduce((
|
|
791
|
-
|
|
1170
|
+
const h = l.reduce((i, d) => i + d.y, 0);
|
|
1171
|
+
m.push({ label: a.spending_label, amount: h });
|
|
792
1172
|
}
|
|
793
|
-
return
|
|
794
|
-
},
|
|
795
|
-
availableHeight:
|
|
796
|
-
minHeight:
|
|
797
|
-
selectedDateRange:
|
|
798
|
-
totals:
|
|
1173
|
+
return m;
|
|
1174
|
+
}, Ro = ({
|
|
1175
|
+
availableHeight: o = 0,
|
|
1176
|
+
minHeight: a = 500,
|
|
1177
|
+
selectedDateRange: t,
|
|
1178
|
+
totals: n
|
|
799
1179
|
}) => {
|
|
800
|
-
const
|
|
801
|
-
return
|
|
802
|
-
const
|
|
803
|
-
|
|
804
|
-
}, [
|
|
805
|
-
|
|
1180
|
+
const s = ue(), { onEvent: l } = P(), { trends: m } = O(), { isSmallMobile: h, isMobile: i, isSmallTablet: d, isTablet: f } = J(), p = [s.palette.chart?.chart1, s.palette.chart?.chart2], _ = Mo(n, t), u = Ao(_, m), [C, b] = c.useState(0), g = 458, v = 195, E = 56, I = i || h ? v : d || f ? g : C;
|
|
1181
|
+
return c.useEffect(() => {
|
|
1182
|
+
const M = Math.max(o - E, a);
|
|
1183
|
+
b(M);
|
|
1184
|
+
}, [o]), /* @__PURE__ */ e(
|
|
1185
|
+
Ne,
|
|
806
1186
|
{
|
|
807
1187
|
baseline: "min",
|
|
808
|
-
colors:
|
|
1188
|
+
colors: p,
|
|
809
1189
|
curveType: "bump",
|
|
810
|
-
datasets:
|
|
811
|
-
height:
|
|
812
|
-
labels:
|
|
1190
|
+
datasets: _,
|
|
1191
|
+
height: I,
|
|
1192
|
+
labels: u,
|
|
813
1193
|
onItemClick: () => {
|
|
814
|
-
l(
|
|
1194
|
+
l(w.TRENDS_CLICK_CHART, V);
|
|
815
1195
|
},
|
|
816
1196
|
showArea: !0,
|
|
817
1197
|
showAxisHighlight: !0,
|
|
@@ -824,7 +1204,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
824
1204
|
valueFormatterString: "0.0a"
|
|
825
1205
|
}
|
|
826
1206
|
);
|
|
827
|
-
},
|
|
1207
|
+
}, ko = R(Ro), Ho = [
|
|
828
1208
|
"BillAmountNotStandard",
|
|
829
1209
|
"CategorySpendingV2",
|
|
830
1210
|
"CostOfLivingToIncome",
|
|
@@ -858,192 +1238,188 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
|
|
|
858
1238
|
"WeeklyNewMerchantsV2",
|
|
859
1239
|
"WeeklyNoSpendDays",
|
|
860
1240
|
"WeeklySmallPurchasesSummary"
|
|
861
|
-
],
|
|
862
|
-
const { onEvent:
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
} =
|
|
869
|
-
() =>
|
|
870
|
-
[
|
|
871
|
-
);
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
g(
|
|
884
|
-
D,
|
|
885
|
-
a.start,
|
|
886
|
-
a.end
|
|
1241
|
+
], No = ({ onBackClick: o, onInsightCardClick: a, sx: t }) => {
|
|
1242
|
+
const { onEvent: n } = P(), { onLoad: s } = yt(), { config: l } = Ct(), { isLargeDesktop: m, isDesktop: h, isMobile: i } = J(), { isAccountDataLoaded: d, loadAccountData: f, visibleAccounts: p } = Le(), {
|
|
1243
|
+
categoriesLoaded: _,
|
|
1244
|
+
loadCategories: u,
|
|
1245
|
+
loadDateRangeCategoryTotals: C,
|
|
1246
|
+
loadMonthlyCategoryTotals: b,
|
|
1247
|
+
monthlyCategoryTotals: g
|
|
1248
|
+
} = Y(), { isTransactionDataLoaded: v, loadTransactionData: E, setFilter: I } = De(), { selectedDateRange: x, setSelectedCategoryData: M, setSelectedDateRange: k } = Ce(), { isInitialized: A, selectedAccounts: G, selectedAccountGuids: ee, setSelectedAccounts: ne } = ye(), { trends: H, connect: he } = O(), { beatStore: B } = He(), ae = oo() && l.show_insights_widget_in_master, $ = h || m, [_e, U] = c.useState(!1), [K, re] = c.useState(!1), [X, Z] = c.useState("Chart"), [te, ie] = c.useState(""), [ge, ce] = c.useState(!1), [le, D] = c.useState(window.innerHeight), r = $ ? 56 : 0, T = le - 208, L = le - (ae ? 550 + r : 266), [j, Te] = c.useState(!1), Ee = l.show_connections_widget_in_master ? "buttons" : "no-buttons", de = c.useMemo(
|
|
1249
|
+
() => p && p.length === 0 || g.length === 0,
|
|
1250
|
+
[p, g]
|
|
1251
|
+
), be = c.useMemo(() => K ? B.getFilteredBeats({ templates: Ho }) : [], [K]);
|
|
1252
|
+
c.useEffect(() => {
|
|
1253
|
+
const N = () => D(window.innerHeight);
|
|
1254
|
+
return window.addEventListener("resize", N), d || f().finally(), _ || u().finally(), v || E().finally(), () => window.removeEventListener("resize", N);
|
|
1255
|
+
}, []), c.useEffect(() => {
|
|
1256
|
+
ne(p);
|
|
1257
|
+
}, [p]), c.useEffect(() => {
|
|
1258
|
+
A && (B.loadBeats().finally(() => re(!0)), C(G, x.start, x.end).then(() => {
|
|
1259
|
+
b(
|
|
1260
|
+
G,
|
|
1261
|
+
x.start,
|
|
1262
|
+
x.end
|
|
887
1263
|
);
|
|
888
1264
|
}).finally(() => {
|
|
889
|
-
|
|
890
|
-
...
|
|
891
|
-
time_period: `${
|
|
892
|
-
}),
|
|
893
|
-
});
|
|
894
|
-
}, [
|
|
895
|
-
if (
|
|
896
|
-
const
|
|
897
|
-
accounts:
|
|
898
|
-
dateRange: { start:
|
|
1265
|
+
U(!0), n(w.TRENDS_LOAD_WIDGET, {
|
|
1266
|
+
...V,
|
|
1267
|
+
time_period: `${Ae(x.end, x.start)}M`
|
|
1268
|
+
}), s?.("TrendsWidget");
|
|
1269
|
+
}));
|
|
1270
|
+
}, [A, G, x]), c.useEffect(() => {
|
|
1271
|
+
if (g.length !== 0) {
|
|
1272
|
+
const N = {
|
|
1273
|
+
accounts: ee,
|
|
1274
|
+
dateRange: { start: x.start, end: x.end }
|
|
899
1275
|
};
|
|
900
|
-
|
|
901
|
-
...
|
|
902
|
-
custom: (
|
|
903
|
-
(
|
|
1276
|
+
I({
|
|
1277
|
+
...N,
|
|
1278
|
+
custom: (q) => !!g.find(
|
|
1279
|
+
(me) => me.top_level_category_guid === q.top_level_category_guid || me.category_guid === q.category_guid
|
|
904
1280
|
)
|
|
905
1281
|
});
|
|
906
1282
|
}
|
|
907
|
-
}, [
|
|
908
|
-
const
|
|
909
|
-
|
|
910
|
-
},
|
|
911
|
-
|
|
912
|
-
},
|
|
913
|
-
|
|
914
|
-
},
|
|
915
|
-
|
|
916
|
-
...
|
|
917
|
-
toggleView:
|
|
1283
|
+
}, [g]);
|
|
1284
|
+
const Ie = (N) => {
|
|
1285
|
+
M(N), ce(!0);
|
|
1286
|
+
}, tt = () => {
|
|
1287
|
+
M(null), ce(!1);
|
|
1288
|
+
}, ot = () => {
|
|
1289
|
+
Te(!0), n(w.TRENDS_CLICK_CONNECT_ACCOUNTS);
|
|
1290
|
+
}, nt = (N, q) => {
|
|
1291
|
+
Z(q ?? X), n(w.TRENDS_CLICK_TOGGLE_VIEW, {
|
|
1292
|
+
...V,
|
|
1293
|
+
toggleView: q
|
|
918
1294
|
});
|
|
919
|
-
},
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
...
|
|
923
|
-
time_period:
|
|
1295
|
+
}, st = (N) => {
|
|
1296
|
+
const q = Fe(N?.[0], 1), me = N?.[1], ct = Ae(me, q);
|
|
1297
|
+
k({ start: q, end: me }), n(w.TRENDS_CLICK_TIME_WINDOW, {
|
|
1298
|
+
...V,
|
|
1299
|
+
time_period: ct + "M"
|
|
924
1300
|
});
|
|
925
|
-
},
|
|
926
|
-
|
|
927
|
-
...
|
|
928
|
-
filterValue:
|
|
1301
|
+
}, at = (N) => {
|
|
1302
|
+
n(w.TRENDS_CLICK_FILTER, {
|
|
1303
|
+
...V,
|
|
1304
|
+
filterValue: N
|
|
929
1305
|
});
|
|
930
|
-
},
|
|
931
|
-
|
|
932
|
-
},
|
|
933
|
-
|
|
1306
|
+
}, rt = (N) => {
|
|
1307
|
+
ie(N);
|
|
1308
|
+
}, it = () => {
|
|
1309
|
+
ie(""), n(w.TRENDS_CLICK_ALL_CATEGORIES, V);
|
|
934
1310
|
};
|
|
935
|
-
return !
|
|
936
|
-
|
|
1311
|
+
return !A || !_e ? /* @__PURE__ */ e(fe, {}) : /* @__PURE__ */ y(
|
|
1312
|
+
Ue,
|
|
937
1313
|
{
|
|
938
|
-
accountOptions:
|
|
939
|
-
calendarActions: { onRangeChanged:
|
|
940
|
-
dateRange:
|
|
941
|
-
dateRangeVariant:
|
|
942
|
-
onAccountsFilterClick:
|
|
943
|
-
onBackClick:
|
|
944
|
-
sx:
|
|
945
|
-
title:
|
|
1314
|
+
accountOptions: p,
|
|
1315
|
+
calendarActions: { onRangeChanged: st },
|
|
1316
|
+
dateRange: x,
|
|
1317
|
+
dateRangeVariant: i ? "timeframetabs" : "timeframebuttons",
|
|
1318
|
+
onAccountsFilterClick: at,
|
|
1319
|
+
onBackClick: o,
|
|
1320
|
+
sx: t,
|
|
1321
|
+
title: H.title,
|
|
946
1322
|
children: [
|
|
947
|
-
|
|
948
|
-
|
|
1323
|
+
de && /* @__PURE__ */ e(
|
|
1324
|
+
no,
|
|
949
1325
|
{
|
|
950
|
-
header:
|
|
1326
|
+
header: H.zero_state_content_header,
|
|
951
1327
|
icon: "",
|
|
952
|
-
onClick:
|
|
953
|
-
primaryButton:
|
|
954
|
-
subText:
|
|
955
|
-
sx: { height:
|
|
956
|
-
variant:
|
|
1328
|
+
onClick: ot,
|
|
1329
|
+
primaryButton: H.empty_state_primary,
|
|
1330
|
+
subText: H.empty_state_sub_text,
|
|
1331
|
+
sx: { height: T },
|
|
1332
|
+
variant: Ee
|
|
957
1333
|
}
|
|
958
1334
|
),
|
|
959
|
-
!
|
|
960
|
-
|
|
1335
|
+
!de && /* @__PURE__ */ y(
|
|
1336
|
+
S,
|
|
961
1337
|
{
|
|
962
1338
|
sx: {
|
|
963
|
-
px:
|
|
1339
|
+
px: i ? 0 : 48
|
|
964
1340
|
},
|
|
965
1341
|
children: [
|
|
966
|
-
/* @__PURE__ */
|
|
967
|
-
|
|
1342
|
+
/* @__PURE__ */ y(
|
|
1343
|
+
S,
|
|
968
1344
|
{
|
|
969
1345
|
flexDirection: "row",
|
|
970
1346
|
justifyContent: "space-between",
|
|
971
|
-
sx: { pb:
|
|
1347
|
+
sx: { pb: i ? 12 : 24, pt: i ? 24 : 48 },
|
|
972
1348
|
children: [
|
|
973
1349
|
/* @__PURE__ */ e(
|
|
974
|
-
|
|
1350
|
+
Je,
|
|
975
1351
|
{
|
|
976
|
-
selectedCategoryGuid:
|
|
977
|
-
selectedDateRange:
|
|
1352
|
+
selectedCategoryGuid: te,
|
|
1353
|
+
selectedDateRange: x
|
|
978
1354
|
}
|
|
979
1355
|
),
|
|
980
|
-
/* @__PURE__ */ e(
|
|
1356
|
+
/* @__PURE__ */ e(Qe, { onTabChange: nt, selectedTab: X })
|
|
981
1357
|
]
|
|
982
1358
|
}
|
|
983
1359
|
),
|
|
984
|
-
/* @__PURE__ */ e(
|
|
985
|
-
/* @__PURE__ */ e(
|
|
986
|
-
|
|
1360
|
+
/* @__PURE__ */ e(S, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(W, { flexGrow: 1, children: te && /* @__PURE__ */ y(xe, { onClick: it, sx: { p: 0, pr: 5 }, children: [
|
|
1361
|
+
/* @__PURE__ */ e(Se, { name: "arrow_back" }),
|
|
1362
|
+
H.all_categories
|
|
987
1363
|
] }) }) }),
|
|
988
|
-
/* @__PURE__ */
|
|
989
|
-
|
|
990
|
-
/* @__PURE__ */ e(
|
|
991
|
-
|
|
1364
|
+
/* @__PURE__ */ y(S, { flexDirection: $ ? "row" : "column", gap: $ ? 48 : 16, children: [
|
|
1365
|
+
X === "Chart" && /* @__PURE__ */ y(lt, { children: [
|
|
1366
|
+
/* @__PURE__ */ e(W, { sx: { width: $ ? "68%" : "100%" }, children: /* @__PURE__ */ e(
|
|
1367
|
+
ko,
|
|
992
1368
|
{
|
|
993
|
-
availableHeight:
|
|
1369
|
+
availableHeight: T,
|
|
994
1370
|
minHeight: 450,
|
|
995
|
-
selectedDateRange:
|
|
996
|
-
totals:
|
|
1371
|
+
selectedDateRange: x,
|
|
1372
|
+
totals: g
|
|
997
1373
|
}
|
|
998
1374
|
) }),
|
|
999
|
-
/* @__PURE__ */
|
|
1000
|
-
|
|
1001
|
-
|
|
1375
|
+
/* @__PURE__ */ y(S, { gap: 16, sx: { width: $ ? "32%" : "100%" }, children: [
|
|
1376
|
+
ae && K && be.length > 0 && /* @__PURE__ */ e(
|
|
1377
|
+
Lo,
|
|
1002
1378
|
{
|
|
1003
|
-
beats:
|
|
1004
|
-
onInsightCardClick:
|
|
1379
|
+
beats: be,
|
|
1380
|
+
onInsightCardClick: a
|
|
1005
1381
|
}
|
|
1006
1382
|
),
|
|
1007
1383
|
/* @__PURE__ */ e(
|
|
1008
|
-
|
|
1384
|
+
wo,
|
|
1009
1385
|
{
|
|
1010
|
-
availableHeight:
|
|
1011
|
-
onCategoryClick:
|
|
1386
|
+
availableHeight: L,
|
|
1387
|
+
onCategoryClick: Ie
|
|
1012
1388
|
}
|
|
1013
1389
|
)
|
|
1014
1390
|
] })
|
|
1015
1391
|
] }),
|
|
1016
|
-
|
|
1017
|
-
|
|
1392
|
+
X === "Table" && /* @__PURE__ */ e(W, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
|
|
1393
|
+
et,
|
|
1018
1394
|
{
|
|
1019
1395
|
height: "unset",
|
|
1020
|
-
monthlyCategoryTotals:
|
|
1021
|
-
onClickRow:
|
|
1022
|
-
selectedCategory:
|
|
1023
|
-
selectedDateRange:
|
|
1396
|
+
monthlyCategoryTotals: g,
|
|
1397
|
+
onClickRow: rt,
|
|
1398
|
+
selectedCategory: te,
|
|
1399
|
+
selectedDateRange: x
|
|
1024
1400
|
}
|
|
1025
1401
|
) })
|
|
1026
1402
|
] }),
|
|
1027
|
-
|
|
1403
|
+
ge && /* @__PURE__ */ e(Io, { onClose: tt })
|
|
1028
1404
|
]
|
|
1029
1405
|
}
|
|
1030
1406
|
),
|
|
1031
1407
|
/* @__PURE__ */ e(
|
|
1032
|
-
|
|
1408
|
+
so,
|
|
1033
1409
|
{
|
|
1034
|
-
onClose: () =>
|
|
1035
|
-
showConnectWidget:
|
|
1036
|
-
title:
|
|
1410
|
+
onClose: () => Te(!1),
|
|
1411
|
+
showConnectWidget: j,
|
|
1412
|
+
title: he.mini_title
|
|
1037
1413
|
}
|
|
1038
1414
|
)
|
|
1039
1415
|
]
|
|
1040
1416
|
}
|
|
1041
1417
|
);
|
|
1042
|
-
},
|
|
1418
|
+
}, Gn = R(No);
|
|
1043
1419
|
export {
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1420
|
+
Nn as TrendsFullWidget,
|
|
1421
|
+
On as TrendsMicroWidget,
|
|
1422
|
+
Wn as TrendsMiniWidget,
|
|
1423
|
+
Pn as TrendsStore,
|
|
1424
|
+
Gn as TrendsWidget
|
|
1049
1425
|
};
|