@mx-cartographer/experiences 7.8.2-alpha.mm0 → 7.9.1-alpha.mega1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/{AccountDetailsHeader-Cf2TUJnM.mjs → AccountDetailsHeader-3ZD1Of4i.mjs} +19 -19
- package/dist/{AccountFields-UdOvbQ5H.mjs → AccountFields-CiofAlEI.mjs} +2 -2
- package/dist/{AccountListItem-BPVxmNT_.mjs → AccountListItem-CvYjSc-O.mjs} +3 -3
- package/dist/{AccountStore-BbPWe2C9.mjs → AccountStore-DxfUstUk.mjs} +1 -1
- package/dist/{BudgetUtil-BmZXkL0C.mjs → BudgetUtil-CrAD2kHT.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-cQKX5dZb.mjs → CategorySelectorDrawer-euTDUflY.mjs} +3 -3
- package/dist/{CategoryStore-BYICdb9m.mjs → CategoryStore-CqSW9TsW.mjs} +1 -1
- package/dist/{CategoryUtil-meuejJqP.mjs → CategoryUtil-CCY_tiFg.mjs} +1 -1
- package/dist/{ConnectionsDrawer-BDpVTTSe.mjs → ConnectionsDrawer-GcyfM8yJ.mjs} +6 -6
- package/dist/{CurrencyInput-itK0R3wV.mjs → CurrencyInput-BBifPjuC.mjs} +6 -6
- package/dist/{DateUtil-D7U-nc1Y.mjs → DateUtil-gRDTwAoC.mjs} +1 -1
- package/dist/{Dialog-B4PI-_bL.mjs → Dialog-CwiqpTGe.mjs} +4 -4
- package/dist/{Donut-Dmy3JTWd.mjs → Donut-DKY8mL3P.mjs} +2 -2
- package/dist/{ExportCsvAction-CDuzTva1.mjs → ExportCsvAction-BMWhHM8W.mjs} +3 -3
- package/dist/{FinstrongStore-bEn_im_e.mjs → FinstrongStore-DuvM8Gfg.mjs} +6 -6
- package/dist/{GlobalAccountFilter-DQCPNc95.mjs → GlobalAccountFilter-xZ4Z8AE-.mjs} +11 -11
- package/dist/{GoalStore-B4LVt_kH.mjs → GoalStore-2UZjY0z_.mjs} +3 -3
- package/dist/{Help-DhcC-C05.mjs → Help-B8mD4aLJ.mjs} +2 -2
- package/dist/{Help-DODxp9uw.mjs → Help-C0hzCqyd.mjs} +2 -2
- package/dist/{LineChart-kFoTu9Pi.mjs → LineChart-CfkLqqXU.mjs} +1 -1
- package/dist/{ListItemAction-CU42h39I.mjs → ListItemAction-pvmKK9RU.mjs} +6 -6
- package/dist/{ManageIncome-Da1ktIdG.mjs → ManageIncome-KIBMKnI6.mjs} +82 -86
- package/dist/{MicroWidgetContainer-B2hO9rOG.mjs → MicroWidgetContainer-CX0qZ57D.mjs} +2 -2
- package/dist/{MiniWidgetContainer-98-hKFqm.mjs → MiniWidgetContainer-BHk-RlKA.mjs} +2 -2
- package/dist/{NotificationSettings-SPg3pwbX.mjs → NotificationSettings-DeLwFzIJ.mjs} +81 -81
- package/dist/{OriginalBalanceAction-ChGGq5AH.mjs → OriginalBalanceAction-CQzvRZ7u.mjs} +3 -3
- package/dist/{RecurringSettings-B4sByhIM.mjs → RecurringSettings-CvQSL1ny.mjs} +4 -4
- package/dist/{RecurringTransactionsStore-BQBEJOPP.mjs → RecurringTransactionsStore-DMKtMn2C.mjs} +1 -1
- package/dist/{RepeatingTransaction-miZVnk_A.mjs → RepeatingTransaction-C5AV8wLs.mjs} +2 -2
- package/dist/{SpendingData-BmL0bwnS.mjs → SpendingData-DtNL2mQL.mjs} +1 -1
- package/dist/{SpendingLegend-CD60HCYS.mjs → SpendingLegend-DCQtF8Wf.mjs} +22 -22
- package/dist/{TransactionDetails-B9NQYa6j.mjs → TransactionDetails-CuviEVDJ.mjs} +8 -8
- package/dist/{TransactionStore-BSp5bOKg.mjs → TransactionStore-DhG1AyOA.mjs} +3 -3
- package/dist/{TrendsStore-DXQnmdc8.mjs → TrendsStore-C6mrxcHX.mjs} +1 -1
- package/dist/{User-B0LnmiKO.mjs → User-CCYFbd5i.mjs} +14 -14
- package/dist/{ViewMoreMicroCard-DQhcjIOS.mjs → ViewMoreMicroCard-B8C76vIW.mjs} +2 -2
- package/dist/{WidgetContainer-CYdQ0BSm.mjs → WidgetContainer-AuyAcUXL.mjs} +150 -153
- package/dist/accounts/index.es.js +17 -17
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +11 -11
- package/dist/categories/index.es.js +2 -2
- package/dist/common/index.es.js +33 -34
- package/dist/common/types/AppData.d.ts +0 -1
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +8 -8
- package/dist/{exportTransactionsToCSV-DtQ7ovAR.mjs → exportTransactionsToCSV-DNbCbq9P.mjs} +2 -2
- package/dist/finstrong/index.es.js +17 -17
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +2 -1
- package/dist/goals/index.es.js +545 -640
- package/dist/help/index.es.js +4 -4
- package/dist/{hooks-ZMp65DFz.mjs → hooks-BUCn6FeJ.mjs} +8 -8
- package/dist/insights-ui/components/index.d.ts +39 -0
- package/dist/insights-ui/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
- package/dist/insights-ui/components/insights/AccountDiscoverability/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
- package/dist/insights-ui/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
- package/dist/insights-ui/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
- package/dist/insights-ui/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
- package/dist/insights-ui/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
- package/dist/insights-ui/components/insights/BillAmountNotStandard/index.d.ts +2 -0
- package/dist/insights-ui/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
- package/dist/insights-ui/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
- package/dist/insights-ui/components/insights/CategoryBudget/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/CategoryBudget/types/CategoryBudget.d.ts +8 -0
- package/dist/insights-ui/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
- package/dist/insights-ui/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
- package/dist/insights-ui/components/insights/CategorySpendingV2/index.d.ts +2 -0
- package/dist/insights-ui/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +6 -0
- package/dist/insights-ui/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
- package/dist/insights-ui/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
- package/dist/insights-ui/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
- package/dist/insights-ui/components/insights/CustomTransaction/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
- package/dist/insights-ui/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
- package/dist/insights-ui/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
- package/dist/insights-ui/components/insights/DiscoveredAccounts/index.d.ts +3 -0
- package/dist/insights-ui/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
- package/dist/insights-ui/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
- package/dist/insights-ui/components/insights/FederalBankHoliday/index.d.ts +2 -0
- package/dist/insights-ui/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
- package/dist/insights-ui/components/insights/MarketingHub/Offer.d.ts +3 -0
- package/dist/insights-ui/components/insights/MarketingHub/Types.d.ts +33 -0
- package/dist/insights-ui/components/insights/MarketingHub/index.d.ts +2 -0
- package/dist/insights-ui/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights-ui/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights-ui/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
- package/dist/insights-ui/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
- package/dist/insights-ui/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
- package/dist/insights-ui/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
- package/dist/insights-ui/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
- package/dist/insights-ui/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
- package/dist/insights-ui/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
- package/dist/insights-ui/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights-ui/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights-ui/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
- package/dist/insights-ui/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
- package/dist/insights-ui/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
- package/dist/insights-ui/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
- package/dist/insights-ui/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
- package/dist/insights-ui/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
- package/dist/insights-ui/components/insights/P2pCategorization/index.d.ts +4 -0
- package/dist/insights-ui/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
- package/dist/insights-ui/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
- package/dist/insights-ui/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
- package/dist/insights-ui/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
- package/dist/insights-ui/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
- package/dist/insights-ui/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
- package/dist/insights-ui/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
- package/dist/insights-ui/components/insights/SharedDeposit/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/SharedDeposit/types/index.d.ts +7 -0
- package/dist/insights-ui/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
- package/dist/insights-ui/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
- package/dist/insights-ui/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
- package/dist/insights-ui/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
- package/dist/insights-ui/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
- package/dist/insights-ui/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
- package/dist/insights-ui/components/insights/UnifiedDeposit/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
- package/dist/insights-ui/components/insights/UserFeedback/Types.d.ts +27 -0
- package/dist/insights-ui/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
- package/dist/insights-ui/components/insights/UserFeedback/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
- package/dist/insights-ui/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
- package/dist/insights-ui/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
- package/dist/insights-ui/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
- package/dist/insights-ui/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
- package/dist/insights-ui/components/insights/index.d.ts +24 -0
- package/dist/insights-ui/components/shared/BottomSheet.d.ts +13 -0
- package/dist/insights-ui/components/shared/CarouselControls.d.ts +14 -0
- package/dist/insights-ui/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +29 -0
- package/dist/insights-ui/components/shared/ChartDrawerTemplate/TipSection.d.ts +7 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +24 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
- package/dist/insights-ui/components/shared/Charts/BarChart/index.d.ts +3 -0
- package/dist/insights-ui/components/shared/Charts/EmptyBarChart.d.ts +1 -0
- package/dist/insights-ui/components/shared/Charts/index.d.ts +2 -0
- package/dist/insights-ui/components/shared/Confetti.d.ts +5 -0
- package/dist/insights-ui/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
- package/dist/insights-ui/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
- package/dist/insights-ui/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
- package/dist/insights-ui/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
- package/dist/insights-ui/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
- package/dist/insights-ui/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
- package/dist/insights-ui/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
- package/dist/insights-ui/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
- package/dist/insights-ui/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
- package/dist/insights-ui/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
- package/dist/insights-ui/components/shared/DirectDeposit/RightBox.d.ts +8 -0
- package/dist/insights-ui/components/shared/ErrorCard/ErrorCard.d.ts +7 -0
- package/dist/insights-ui/components/shared/FormDialog.d.ts +16 -0
- package/dist/insights-ui/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
- package/dist/insights-ui/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
- package/dist/insights-ui/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
- package/dist/insights-ui/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
- package/dist/insights-ui/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
- package/dist/insights-ui/components/shared/GoalProgress.d.ts +10 -0
- package/dist/insights-ui/components/shared/GradientBox.d.ts +8 -0
- package/dist/insights-ui/components/shared/InsightsCard/BeatCard.d.ts +20 -0
- package/dist/insights-ui/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
- package/dist/insights-ui/components/shared/InsightsCard/CardError.d.ts +5 -0
- package/dist/insights-ui/components/shared/InsightsCard/CardFooter.d.ts +7 -0
- package/dist/insights-ui/components/shared/InsightsCard/CardHeader.d.ts +11 -0
- package/dist/insights-ui/components/shared/InsightsCard/CardLoading.d.ts +5 -0
- package/dist/insights-ui/components/shared/InsightsCard/ContentAndDescription.d.ts +17 -0
- package/dist/insights-ui/components/shared/InsightsCard/Description.d.ts +12 -0
- package/dist/insights-ui/components/shared/InsightsCard/EmbeddedCard.d.ts +10 -0
- package/dist/insights-ui/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
- package/dist/insights-ui/components/shared/InsightsCard/InsightButton.d.ts +12 -0
- package/dist/insights-ui/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
- package/dist/insights-ui/components/shared/MenuAction.d.ts +15 -0
- package/dist/insights-ui/components/shared/MiniInsightCard.d.ts +16 -0
- package/dist/insights-ui/components/shared/ProgressBar.d.ts +9 -0
- package/dist/insights-ui/components/shared/StatusIndicator.d.ts +14 -0
- package/dist/insights-ui/components/shared/ThemedSVGImage.d.ts +2 -0
- package/dist/insights-ui/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
- package/dist/insights-ui/components/shared/index.d.ts +1 -0
- package/dist/insights-ui/hooks/useContainerDimensions.d.ts +5 -0
- package/dist/insights-ui/index.d.ts +1 -0
- package/dist/insights-ui/index.es.js +4206 -0
- package/dist/insights-ui/themes/Typography.d.ts +3 -0
- package/dist/insights-ui/themes/index.d.ts +1 -0
- package/dist/insights-ui/types/Charts/BarChart.d.ts +77 -0
- package/dist/insights-ui/types/CommonBeat.d.ts +368 -0
- package/dist/insights-ui/types/DirectDeposit.d.ts +16 -0
- package/dist/insights-ui/types/ThemedSVGImage.d.ts +5 -0
- package/dist/investments/index.es.js +5 -5
- package/dist/merchants/index.es.js +14 -14
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +35 -35
- package/dist/notifications/index.es.js +3 -3
- package/dist/recurringtransactions/index.es.js +14 -14
- package/dist/settings/index.es.js +64 -64
- package/dist/spending/index.es.js +7 -7
- package/dist/transactions/index.es.js +16 -16
- package/dist/trends/index.es.js +17 -17
- package/dist/{useAccountDisplayName-Bot2tb4n.mjs → useAccountDisplayName-D27PXvdj.mjs} +5 -5
- package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
- package/dist/{useCombineEvents-CRwX-qWE.mjs → useCombineEvents-ARuNN9Xh.mjs} +8 -8
- package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
- package/dist/{useInsightsEnabled-B7dxpDrX.mjs → useInsightsEnabled-CzhMEHNx.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-hIOioiKx.mjs → useWidgetLoadTimer-BYMP5Q8g.mjs} +1 -1
- package/package.json +10 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import f from "react";
|
|
3
3
|
import { observer as C } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/Divider";
|
|
5
5
|
import E from "@mui/material/List";
|
|
6
6
|
import O from "@mui/material/ListItem";
|
|
7
7
|
import L from "@mui/material/ListItemText";
|
|
8
8
|
import V from "@mui/material/ListItemButton";
|
|
9
|
-
import
|
|
9
|
+
import _ from "@mui/material/Stack";
|
|
10
10
|
import { ChevronRight as w, ExpandMore as ee, Star as te } from "@mxenabled/mx-icons";
|
|
11
11
|
import { Text as x, InstitutionLogo as ne, H3 as F } from "@mxenabled/mxui";
|
|
12
12
|
import { endOfMonth as ie } from "date-fns/endOfMonth";
|
|
@@ -15,32 +15,32 @@ import { DateCalendar as se } from "@mui/x-date-pickers/DateCalendar";
|
|
|
15
15
|
import { LocalizationProvider as ae } from "@mui/x-date-pickers/LocalizationProvider";
|
|
16
16
|
import { AdapterDateFns as ce } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
17
17
|
import { A as le, T as R, a as D, N as b } from "./Notification-Bs1fdbzI.mjs";
|
|
18
|
-
import { u as S, r as T, o as A, d as J, g as re, a as X, b as de } from "./hooks-
|
|
18
|
+
import { u as S, r as T, o as A, d as J, g as re, a as X, b as de } from "./hooks-BUCn6FeJ.mjs";
|
|
19
19
|
import { b as me } from "./Localization-2MODESHW.mjs";
|
|
20
|
-
import { b as
|
|
21
|
-
import { a as N } from "./Dialog-
|
|
22
|
-
import { C as ue } from "./CurrencyInput-
|
|
23
|
-
import { u as
|
|
20
|
+
import { b as _e, f as he } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
21
|
+
import { a as N } from "./Dialog-CwiqpTGe.mjs";
|
|
22
|
+
import { C as ue } from "./CurrencyInput-BBifPjuC.mjs";
|
|
23
|
+
import { u as fe } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
24
24
|
import { D as q } from "./Drawer-DV4NTsFg.mjs";
|
|
25
|
-
import
|
|
25
|
+
import pe from "@mui/material/Collapse";
|
|
26
26
|
import ge from "@mui/material/Card";
|
|
27
27
|
import ye from "@mui/material/CardContent";
|
|
28
28
|
import H from "@mui/material/Box";
|
|
29
29
|
import j from "@mui/material/Button";
|
|
30
30
|
import U from "@mui/material/TextField";
|
|
31
|
-
import { u as be } from "./useDimensions-
|
|
31
|
+
import { u as be } from "./useDimensions-CeDR9V8N.mjs";
|
|
32
32
|
import K from "@mui/material/styles/useTheme";
|
|
33
|
-
import { u as xe } from "./useInsightsEnabled-
|
|
34
|
-
import { u as Ce } from "./useWidgetLoadTimer-
|
|
33
|
+
import { u as xe } from "./useInsightsEnabled-CzhMEHNx.mjs";
|
|
34
|
+
import { u as Ce } from "./useWidgetLoadTimer-BYMP5Q8g.mjs";
|
|
35
35
|
import { L as ve } from "./Loader-DUaFpDGv.mjs";
|
|
36
36
|
const Te = C(() => {
|
|
37
|
-
const { common: n, settings: t } = S(), { sendEmailVerification: s } = T(), { user: l } = A(), i = K(), [r, a] =
|
|
37
|
+
const { common: n, settings: t } = S(), { sendEmailVerification: s } = T(), { user: l } = A(), i = K(), [r, a] = f.useState(!1), o = () => {
|
|
38
38
|
a(!1);
|
|
39
|
-
},
|
|
39
|
+
}, h = () => {
|
|
40
40
|
a(!0);
|
|
41
41
|
};
|
|
42
|
-
return /* @__PURE__ */ c(
|
|
43
|
-
/* @__PURE__ */ c(j, { onClick:
|
|
42
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
43
|
+
/* @__PURE__ */ c(j, { onClick: h, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
44
44
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_email }),
|
|
45
45
|
/* @__PURE__ */ e(w, {})
|
|
46
46
|
] }),
|
|
@@ -62,7 +62,7 @@ const Te = C(() => {
|
|
|
62
62
|
justifyContent: "center"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
children: /* @__PURE__ */ c(
|
|
65
|
+
children: /* @__PURE__ */ c(_, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
66
66
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_email }),
|
|
67
67
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_email }),
|
|
68
68
|
/* @__PURE__ */ e(
|
|
@@ -84,7 +84,7 @@ const Te = C(() => {
|
|
|
84
84
|
] });
|
|
85
85
|
}), Pe = C(
|
|
86
86
|
({ handleClose: n, handleVerify: t, isOpen: s }) => {
|
|
87
|
-
const { common: l, settings: i } = S(), [r, a] =
|
|
87
|
+
const { common: l, settings: i } = S(), [r, a] = f.useState("");
|
|
88
88
|
return /* @__PURE__ */ e(
|
|
89
89
|
N,
|
|
90
90
|
{
|
|
@@ -103,12 +103,12 @@ const Te = C(() => {
|
|
|
103
103
|
justifyContent: "flex-end"
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
|
-
children: /* @__PURE__ */ e(
|
|
106
|
+
children: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(U, { onChange: (o) => a(o.target.value), sx: { width: 352 }, value: r }) })
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
), De = C(() => {
|
|
111
|
-
const { common: n, settings: t } = S(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = K(), [a, o] =
|
|
111
|
+
const { common: n, settings: t } = S(), { sendPhoneVerification: s, verifyPhoneToken: l } = T(), { user: i } = A(), r = K(), [a, o] = f.useState(!1), [h, d] = f.useState(!1), p = () => {
|
|
112
112
|
o(!1);
|
|
113
113
|
}, u = () => {
|
|
114
114
|
o(!0);
|
|
@@ -121,7 +121,7 @@ const Te = C(() => {
|
|
|
121
121
|
d(!1);
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
return /* @__PURE__ */ c(
|
|
124
|
+
return /* @__PURE__ */ c(f.Fragment, { children: [
|
|
125
125
|
/* @__PURE__ */ c(j, { onClick: u, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
126
126
|
/* @__PURE__ */ e(x, { variant: "Small", children: t.verify_phone }),
|
|
127
127
|
/* @__PURE__ */ e(w, {})
|
|
@@ -131,9 +131,9 @@ const Te = C(() => {
|
|
|
131
131
|
{
|
|
132
132
|
copy: { title: "" },
|
|
133
133
|
isOpen: a,
|
|
134
|
-
onClose:
|
|
134
|
+
onClose: p,
|
|
135
135
|
onPrimaryAction: y,
|
|
136
|
-
onSecondaryAction:
|
|
136
|
+
onSecondaryAction: p,
|
|
137
137
|
primaryText: t.send_verification,
|
|
138
138
|
secondaryText: n.back,
|
|
139
139
|
sx: {
|
|
@@ -144,7 +144,7 @@ const Te = C(() => {
|
|
|
144
144
|
justifyContent: "center"
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
-
children: /* @__PURE__ */ c(
|
|
147
|
+
children: /* @__PURE__ */ c(_, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
148
148
|
/* @__PURE__ */ e(x, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_phone }),
|
|
149
149
|
/* @__PURE__ */ e(x, { truncate: !1, variant: "Small", children: t.confirm_phone }),
|
|
150
150
|
/* @__PURE__ */ e(
|
|
@@ -168,21 +168,21 @@ const Te = C(() => {
|
|
|
168
168
|
{
|
|
169
169
|
handleClose: () => d(!1),
|
|
170
170
|
handleVerify: m,
|
|
171
|
-
isOpen:
|
|
171
|
+
isOpen: h
|
|
172
172
|
}
|
|
173
173
|
)
|
|
174
174
|
] });
|
|
175
175
|
}), Se = C(
|
|
176
176
|
({ onProfileUpdated: n, profile: t }) => {
|
|
177
|
-
const { common: s, recurring: l, settings: i } = S(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o,
|
|
177
|
+
const { common: s, recurring: l, settings: i } = S(), { updateAccount: r } = J(), a = t.notification_type === le.DebtPaymentReminder, [o, h] = f.useState(!1), [d, p] = f.useState(t.threshold || 0), [u, y] = f.useState(
|
|
178
178
|
t.account?.day_payment_is_due || 0
|
|
179
179
|
), m = t.account?.name || t.account?.feed_name || "", g = t.account?.day_payment_is_due ? me(
|
|
180
180
|
i.notification_debt_payment_date,
|
|
181
|
-
|
|
182
|
-
) : i.notification_debt_payment_zero_state, P = a ? g :
|
|
181
|
+
_e(t.account?.day_payment_is_due)
|
|
182
|
+
) : i.notification_debt_payment_zero_state, P = a ? g : he(t.threshold ?? 0, "0,0"), I = async () => {
|
|
183
183
|
a && t.account ? await r({ ...t.account, day_payment_is_due: u }) : n({ ...t, threshold: d });
|
|
184
184
|
};
|
|
185
|
-
return /* @__PURE__ */ c(
|
|
185
|
+
return /* @__PURE__ */ c(_, { children: [
|
|
186
186
|
/* @__PURE__ */ e(
|
|
187
187
|
R,
|
|
188
188
|
{
|
|
@@ -197,7 +197,7 @@ const Te = C(() => {
|
|
|
197
197
|
isChecked: t.is_enabled,
|
|
198
198
|
isDisabled: !t.is_enabled,
|
|
199
199
|
isPrimaryTextBold: !0,
|
|
200
|
-
onClick: () =>
|
|
200
|
+
onClick: () => h(!0),
|
|
201
201
|
onToggle: () => n({
|
|
202
202
|
...t,
|
|
203
203
|
is_enabled: !t.is_enabled
|
|
@@ -215,7 +215,7 @@ const Te = C(() => {
|
|
|
215
215
|
},
|
|
216
216
|
disablePrimaryButton: a && u === 0,
|
|
217
217
|
isOpen: o,
|
|
218
|
-
onClose: () =>
|
|
218
|
+
onClose: () => h(!1),
|
|
219
219
|
onPrimaryAction: I,
|
|
220
220
|
primaryText: s.save_button,
|
|
221
221
|
children: a ? /* @__PURE__ */ e(ae, { dateAdapter: ce, children: /* @__PURE__ */ e(
|
|
@@ -246,7 +246,7 @@ const Te = C(() => {
|
|
|
246
246
|
autoFocus: !0,
|
|
247
247
|
fullWidth: !0,
|
|
248
248
|
minAmount: 0,
|
|
249
|
-
setAmount: (k) =>
|
|
249
|
+
setAmount: (k) => p(Number(k) || 0),
|
|
250
250
|
sx: { ".MuiTypography-Body": { p: 0 } }
|
|
251
251
|
}
|
|
252
252
|
)
|
|
@@ -256,44 +256,44 @@ const Te = C(() => {
|
|
|
256
256
|
}
|
|
257
257
|
), ke = C(
|
|
258
258
|
({ onUpdateProfile: n, profile: t }) => {
|
|
259
|
-
const { settings: s } = S(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } =
|
|
260
|
-
opted_out_of_email_notifications:
|
|
259
|
+
const { settings: s } = S(), { user: l } = A(), { clientCommunicationProfile: i, userCommunicationsProfile: r } = T(), { isMobile: a } = fe(), o = t.notification_type > 2, {
|
|
260
|
+
opted_out_of_email_notifications: h,
|
|
261
261
|
opted_out_of_push_notifications: d,
|
|
262
|
-
opted_out_of_sms_notifications:
|
|
262
|
+
opted_out_of_sms_notifications: p
|
|
263
263
|
} = r, {
|
|
264
264
|
email_notifications_enabled: u,
|
|
265
265
|
push_notifications_enabled: y,
|
|
266
266
|
sms_notifications_enabled: m
|
|
267
267
|
} = i;
|
|
268
|
-
return /* @__PURE__ */ c(
|
|
268
|
+
return /* @__PURE__ */ c(_, { children: [
|
|
269
269
|
(u || m || y) && /* @__PURE__ */ c(M, { children: [
|
|
270
270
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.delivery_method_title }),
|
|
271
271
|
/* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
272
|
-
u && /* @__PURE__ */ e(
|
|
272
|
+
u && /* @__PURE__ */ e(_, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
273
273
|
D,
|
|
274
274
|
{
|
|
275
|
-
isChecked: !
|
|
276
|
-
isDisabled:
|
|
275
|
+
isChecked: !h && t.email_channel && !!l.email,
|
|
276
|
+
isDisabled: h || !l.email,
|
|
277
277
|
onToggle: () => n({ ...t, email_channel: !t.email_channel }),
|
|
278
278
|
primaryText: s.delivery_method_email_label,
|
|
279
|
-
secondaryText:
|
|
279
|
+
secondaryText: h || !t.email_channel || !l.email ? s.notification_disabled : s.notification_enabled,
|
|
280
280
|
useExtraPadding: !1
|
|
281
281
|
}
|
|
282
282
|
) }),
|
|
283
283
|
u && (m || y) && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
284
|
-
m && /* @__PURE__ */ e(
|
|
284
|
+
m && /* @__PURE__ */ e(_, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
285
285
|
D,
|
|
286
286
|
{
|
|
287
|
-
isChecked: !
|
|
288
|
-
isDisabled:
|
|
287
|
+
isChecked: !p && t.sms_channel && !!l.phone,
|
|
288
|
+
isDisabled: p || !l.phone,
|
|
289
289
|
onToggle: () => n({ ...t, sms_channel: !t.sms_channel }),
|
|
290
290
|
primaryText: `${s.delivery_method_sms_label}`,
|
|
291
|
-
secondaryText:
|
|
291
|
+
secondaryText: p || !t.sms_channel || !l.phone ? s.notification_disabled : s.notification_enabled,
|
|
292
292
|
useExtraPadding: !1
|
|
293
293
|
}
|
|
294
294
|
) }),
|
|
295
295
|
m && y && /* @__PURE__ */ e(v, { sx: { ml: a ? 0 : 24 } }),
|
|
296
|
-
y && /* @__PURE__ */ e(
|
|
296
|
+
y && /* @__PURE__ */ e(_, { sx: { pl: 24 }, children: /* @__PURE__ */ e(
|
|
297
297
|
D,
|
|
298
298
|
{
|
|
299
299
|
isChecked: !d && t.push_channel,
|
|
@@ -307,7 +307,7 @@ const Te = C(() => {
|
|
|
307
307
|
/* @__PURE__ */ e(v, {})
|
|
308
308
|
] })
|
|
309
309
|
] }),
|
|
310
|
-
o && !!t.children?.length && /* @__PURE__ */ c(
|
|
310
|
+
o && !!t.children?.length && /* @__PURE__ */ c(_, { children: [
|
|
311
311
|
/* @__PURE__ */ e(x, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: s.accounts_threshold_title }),
|
|
312
312
|
/* @__PURE__ */ e(E, { sx: { bgcolor: "background.paper" }, children: t.children?.map((g) => /* @__PURE__ */ e(
|
|
313
313
|
Se,
|
|
@@ -321,7 +321,7 @@ const Te = C(() => {
|
|
|
321
321
|
] });
|
|
322
322
|
}
|
|
323
323
|
), W = C(() => {
|
|
324
|
-
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] =
|
|
324
|
+
const { accountProfiles: n, updateNotificationProfile: t } = T(), [s, l] = f.useState(""), i = f.useMemo(
|
|
325
325
|
() => n.find((o) => o.guid === s),
|
|
326
326
|
[n, s]
|
|
327
327
|
), r = async (o) => {
|
|
@@ -332,7 +332,7 @@ const Te = C(() => {
|
|
|
332
332
|
}, a = async (o) => {
|
|
333
333
|
await t(o);
|
|
334
334
|
};
|
|
335
|
-
return /* @__PURE__ */ c(
|
|
335
|
+
return /* @__PURE__ */ c(_, { sx: { backgroundColor: "background.paper" }, children: [
|
|
336
336
|
n.filter((o) => o.children && o.children.length > 0).map((o) => /* @__PURE__ */ e(
|
|
337
337
|
R,
|
|
338
338
|
{
|
|
@@ -373,9 +373,9 @@ const Te = C(() => {
|
|
|
373
373
|
userCommunicationsProfile: {
|
|
374
374
|
opted_out_of_email_notifications: a,
|
|
375
375
|
opted_out_of_push_notifications: o,
|
|
376
|
-
opted_out_of_sms_notifications:
|
|
376
|
+
opted_out_of_sms_notifications: h
|
|
377
377
|
}
|
|
378
|
-
} = T(), { user: d } = A(), [
|
|
378
|
+
} = T(), { user: d } = A(), [p, u] = f.useState(!1), y = async () => {
|
|
379
379
|
await m({ ...n, is_enabled: !n.is_enabled }), n.is_enabled && u(!1);
|
|
380
380
|
}, m = async (P) => {
|
|
381
381
|
await r(P);
|
|
@@ -389,20 +389,20 @@ const Te = C(() => {
|
|
|
389
389
|
{
|
|
390
390
|
sx: {
|
|
391
391
|
transition: "transform 0.3s ease-in-out",
|
|
392
|
-
transform:
|
|
392
|
+
transform: p ? "rotate(180deg)" : "rotate(0deg)"
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
) : void 0,
|
|
396
396
|
isChecked: n.is_enabled,
|
|
397
397
|
isDisabled: !n.is_enabled,
|
|
398
|
-
onClick: () => u(!
|
|
398
|
+
onClick: () => u(!p),
|
|
399
399
|
onToggle: () => y(),
|
|
400
400
|
primaryText: n.label,
|
|
401
401
|
secondaryText: n.is_enabled ? n.deliveryMethodsLabel : void 0
|
|
402
402
|
},
|
|
403
403
|
n.guid
|
|
404
404
|
),
|
|
405
|
-
g && /* @__PURE__ */ e(
|
|
405
|
+
g && /* @__PURE__ */ e(pe, { in: p, children: /* @__PURE__ */ c(E, { sx: { bgcolor: "background.paper" }, children: [
|
|
406
406
|
s && /* @__PURE__ */ e(
|
|
407
407
|
D,
|
|
408
408
|
{
|
|
@@ -419,8 +419,8 @@ const Te = C(() => {
|
|
|
419
419
|
i && /* @__PURE__ */ e(
|
|
420
420
|
D,
|
|
421
421
|
{
|
|
422
|
-
isChecked: !
|
|
423
|
-
isDisabled:
|
|
422
|
+
isChecked: !h && n.sms_channel && !!d.phone,
|
|
423
|
+
isDisabled: h || !d.phone,
|
|
424
424
|
onToggle: () => m({
|
|
425
425
|
...n,
|
|
426
426
|
sms_channel: !n.sms_channel
|
|
@@ -446,21 +446,21 @@ const Te = C(() => {
|
|
|
446
446
|
] }, n.guid);
|
|
447
447
|
}), z = C(() => {
|
|
448
448
|
const { budgetProfiles: n } = T();
|
|
449
|
-
return /* @__PURE__ */ e(
|
|
449
|
+
return /* @__PURE__ */ e(_, { children: n.map((t) => /* @__PURE__ */ e(Q, { profile: t }, t.guid)) });
|
|
450
450
|
}), we = C(() => {
|
|
451
451
|
const { onEvent: n } = re(), { settings: t } = S(), {
|
|
452
452
|
clientCommunicationProfile: s,
|
|
453
453
|
updateUserCommunicationProfile: l,
|
|
454
454
|
userCommunicationsProfile: i
|
|
455
|
-
} = T(), { user: r } = A(), a = async (o,
|
|
456
|
-
const d = { ...i, [o]:
|
|
455
|
+
} = T(), { user: r } = A(), a = async (o, h) => {
|
|
456
|
+
const d = { ...i, [o]: h };
|
|
457
457
|
if (n) {
|
|
458
458
|
const u = o.split("_")[3];
|
|
459
|
-
|
|
459
|
+
h === !1 ? n("opt_in_notification_method", { notificationType: u }) : n("opt_out_notification_method", { notificationType: u });
|
|
460
460
|
}
|
|
461
461
|
await l(d);
|
|
462
462
|
};
|
|
463
|
-
return /* @__PURE__ */ c(
|
|
463
|
+
return /* @__PURE__ */ c(_, { children: [
|
|
464
464
|
/* @__PURE__ */ e(F, { sx: { mt: 24 }, children: t.delivery_method_title }),
|
|
465
465
|
s.email_notifications_enabled && /* @__PURE__ */ c(M, { children: [
|
|
466
466
|
/* @__PURE__ */ e(
|
|
@@ -505,30 +505,30 @@ const Te = C(() => {
|
|
|
505
505
|
useExtraPadding: !1
|
|
506
506
|
}
|
|
507
507
|
),
|
|
508
|
-
s.sms_notifications_enabled && /* @__PURE__ */ e(ge, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ c(
|
|
508
|
+
s.sms_notifications_enabled && /* @__PURE__ */ e(ge, { sx: { backgroundColor: "background.default", mt: 12 }, variant: "outlined", children: /* @__PURE__ */ e(ye, { children: /* @__PURE__ */ c(_, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
509
509
|
/* @__PURE__ */ e(te, { color: "primary", filled: !0 }),
|
|
510
510
|
/* @__PURE__ */ e(x, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: t.delivery_method_sms_note_1 })
|
|
511
511
|
] }) }) })
|
|
512
512
|
] });
|
|
513
513
|
}), $ = C(() => {
|
|
514
514
|
const { insightsProfiles: n } = T();
|
|
515
|
-
return /* @__PURE__ */ e(
|
|
515
|
+
return /* @__PURE__ */ e(_, { children: n.map((t) => /* @__PURE__ */ e(Q, { profile: t }, t.guid)) });
|
|
516
516
|
}), Ae = () => {
|
|
517
|
-
const { config: n } = X(), [t, { width: s }] = be(), { common: l, settings: i } = S(), { updateUser: r } = T(), { user: a } = A(), [o,
|
|
517
|
+
const { config: n } = X(), [t, { width: s }] = be(), { common: l, settings: i } = S(), { updateUser: r } = T(), { user: a } = A(), [o, h] = f.useState(!1), [d, p] = f.useState({
|
|
518
518
|
email: a.email,
|
|
519
519
|
phone: a.phone
|
|
520
520
|
}), u = d.email && !a.email_is_verified && !o, y = d.phone && !a.phone_is_verified && !o, m = (P) => {
|
|
521
521
|
const { name: I, value: k } = P.target, B = { ...d, [I]: k };
|
|
522
|
-
|
|
522
|
+
p(B), h(JSON.stringify({ ...a, ...B }) !== JSON.stringify(a));
|
|
523
523
|
}, g = async () => {
|
|
524
|
-
await r({ ...a, ...d }),
|
|
524
|
+
await r({ ...a, ...d }), h(!1);
|
|
525
525
|
};
|
|
526
|
-
return /* @__PURE__ */ c(
|
|
526
|
+
return /* @__PURE__ */ c(_, { ref: t, children: [
|
|
527
527
|
/* @__PURE__ */ e(v, {}),
|
|
528
|
-
/* @__PURE__ */ c(
|
|
528
|
+
/* @__PURE__ */ c(_, { sx: { pt: 12 }, children: [
|
|
529
529
|
/* @__PURE__ */ e(F, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: i.personal_details }),
|
|
530
|
-
/* @__PURE__ */ c(
|
|
531
|
-
n.display_email_edit_field_in_settings && /* @__PURE__ */ c(
|
|
530
|
+
/* @__PURE__ */ c(_, { sx: { flexDirection: s <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
|
|
531
|
+
n.display_email_edit_field_in_settings && /* @__PURE__ */ c(_, { sx: { flex: 1, pb: 14 }, children: [
|
|
532
532
|
/* @__PURE__ */ e(
|
|
533
533
|
U,
|
|
534
534
|
{
|
|
@@ -555,7 +555,7 @@ const Te = C(() => {
|
|
|
555
555
|
}
|
|
556
556
|
)
|
|
557
557
|
] }),
|
|
558
|
-
n.display_sms_edit_field_in_settings && /* @__PURE__ */ c(
|
|
558
|
+
n.display_sms_edit_field_in_settings && /* @__PURE__ */ c(_, { sx: { flex: 1, pb: 14 }, children: [
|
|
559
559
|
/* @__PURE__ */ e(
|
|
560
560
|
U,
|
|
561
561
|
{
|
|
@@ -595,21 +595,21 @@ const Te = C(() => {
|
|
|
595
595
|
)
|
|
596
596
|
] })
|
|
597
597
|
] });
|
|
598
|
-
}, Ie = C(Ae),
|
|
598
|
+
}, Ie = C(Ae), _t = C(
|
|
599
599
|
({
|
|
600
600
|
notificationTypes: n = [b.Accounts, b.Budgets],
|
|
601
601
|
showPersonalDetails: t = !1,
|
|
602
602
|
view: s
|
|
603
603
|
}) => {
|
|
604
|
-
const { config: l } = X(), { settings: i } = S(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile:
|
|
604
|
+
const { config: l } = X(), { settings: i } = S(), { isInitialized: r } = de(), { isAccountDataLoaded: a, loadAccountData: o } = J(), { clientCommunicationProfile: h, loadNotificationProfiles: d } = T(), p = xe(), [u, y] = f.useState(!1), [m, g] = f.useState(
|
|
605
605
|
void 0
|
|
606
606
|
);
|
|
607
|
-
if (n.length > 0 &&
|
|
607
|
+
if (n.length > 0 && p && n.push(b.Insights), Ce({
|
|
608
608
|
widgetName: "NotificationSettingsWidget",
|
|
609
609
|
isLoaded: u
|
|
610
|
-
}),
|
|
610
|
+
}), f.useEffect(() => {
|
|
611
611
|
a || o().finally();
|
|
612
|
-
}, []),
|
|
612
|
+
}, []), f.useEffect(() => {
|
|
613
613
|
r && d().finally(() => y(!0));
|
|
614
614
|
}, [r]), !r)
|
|
615
615
|
return /* @__PURE__ */ e(ve, {});
|
|
@@ -619,16 +619,16 @@ const Te = C(() => {
|
|
|
619
619
|
email_notifications_enabled: I,
|
|
620
620
|
sms_notifications_enabled: k,
|
|
621
621
|
push_notifications_enabled: B
|
|
622
|
-
} =
|
|
622
|
+
} = h, G = I || k || B;
|
|
623
623
|
if (s === "accounts")
|
|
624
624
|
return /* @__PURE__ */ e(W, {});
|
|
625
625
|
if (s === "budgets")
|
|
626
626
|
return /* @__PURE__ */ e(z, {});
|
|
627
627
|
if (s === "insights")
|
|
628
628
|
return /* @__PURE__ */ e($, {});
|
|
629
|
-
const Y = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, Z = t &&
|
|
630
|
-
return /* @__PURE__ */ c(
|
|
631
|
-
/* @__PURE__ */ c(
|
|
629
|
+
const Y = l.display_email_edit_field_in_settings || l.display_sms_edit_field_in_settings, Z = t && h.can_edit_contact_info && Y;
|
|
630
|
+
return /* @__PURE__ */ c(_, { sx: { pt: G ? 0 : 24 }, children: [
|
|
631
|
+
/* @__PURE__ */ c(_, { sx: { px: 24 }, children: [
|
|
632
632
|
G && /* @__PURE__ */ c(M, { children: [
|
|
633
633
|
/* @__PURE__ */ e(we, {}),
|
|
634
634
|
/* @__PURE__ */ e(v, { sx: { my: 24 } })
|
|
@@ -649,14 +649,14 @@ const Te = C(() => {
|
|
|
649
649
|
/* @__PURE__ */ e(w, {})
|
|
650
650
|
] }) })
|
|
651
651
|
] }),
|
|
652
|
-
Z && /* @__PURE__ */ e(
|
|
652
|
+
Z && /* @__PURE__ */ e(_, { sx: { px: 24 }, children: /* @__PURE__ */ e(Ie, {}) }),
|
|
653
653
|
/* @__PURE__ */ e(
|
|
654
654
|
q,
|
|
655
655
|
{
|
|
656
656
|
isOpen: !!m,
|
|
657
657
|
onClose: () => g(void 0),
|
|
658
658
|
title: P,
|
|
659
|
-
children: /* @__PURE__ */ c(
|
|
659
|
+
children: /* @__PURE__ */ c(_, { children: [
|
|
660
660
|
m === b.Accounts && /* @__PURE__ */ e(W, {}),
|
|
661
661
|
m === b.Budgets && /* @__PURE__ */ e(z, {}),
|
|
662
662
|
m === b.Insights && /* @__PURE__ */ e($, {})
|
|
@@ -670,7 +670,7 @@ export {
|
|
|
670
670
|
W as A,
|
|
671
671
|
z as B,
|
|
672
672
|
$ as I,
|
|
673
|
-
|
|
673
|
+
_t as N,
|
|
674
674
|
Te as V,
|
|
675
675
|
De as a
|
|
676
676
|
};
|
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import { L as y } from "./ListItemAction-
|
|
6
|
-
import { u as h, l as b } from "./hooks-
|
|
5
|
+
import { L as y } from "./ListItemAction-pvmKK9RU.mjs";
|
|
6
|
+
import { u as h, l as b } from "./hooks-BUCn6FeJ.mjs";
|
|
7
7
|
import { a as T, f as S } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
8
|
+
import { C as f } from "./CurrencyInput-BBifPjuC.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const n = { ...e, interest_rate: t };
|
|
@@ -7,10 +7,10 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
11
|
-
import { u as _, j as A, g as f } from "./hooks-
|
|
12
|
-
import { R as y, F as N } from "./RepeatingTransaction-
|
|
13
|
-
import { A as m } from "./WidgetContainer-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-KIBMKnI6.mjs";
|
|
11
|
+
import { u as _, j as A, g as f } from "./hooks-BUCn6FeJ.mjs";
|
|
12
|
+
import { R as y, F as N } from "./RepeatingTransaction-C5AV8wLs.mjs";
|
|
13
|
+
import { A as m } from "./WidgetContainer-AuyAcUXL.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { detailedRepeatingTransactions: n } = A(), { onEvent: a } = f(), l = (r) => {
|
|
16
16
|
a(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
package/dist/{RecurringTransactionsStore-BQBEJOPP.mjs → RecurringTransactionsStore-DMKtMn2C.mjs}
RENAMED
|
@@ -8,7 +8,7 @@ import { startOfMonth as y } from "date-fns/startOfMonth";
|
|
|
8
8
|
import { startOfToday as i } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as I } from "date-fns/subDays";
|
|
10
10
|
import { F as x, A as o } from "./Fetch-DecPFeGU.mjs";
|
|
11
|
-
import { a as u, b as A, c as r, d } from "./RepeatingTransaction-
|
|
11
|
+
import { a as u, b as A, c as r, d } from "./RepeatingTransaction-C5AV8wLs.mjs";
|
|
12
12
|
var E = /* @__PURE__ */ ((a) => (a.Small = "small", a.Medium = "medium", a.Large = "large", a))(E || {});
|
|
13
13
|
const G = 44;
|
|
14
14
|
class h {
|
|
@@ -29,9 +29,9 @@ import { subQuarters as N } from "date-fns/subQuarters";
|
|
|
29
29
|
import { subYears as T } from "date-fns/subYears";
|
|
30
30
|
import { lastDayOfMonth as q } from "date-fns/lastDayOfMonth";
|
|
31
31
|
import { setDayOfYear as F } from "date-fns/setDayOfYear";
|
|
32
|
-
import { g as R, a as ee, b as te, c as re, d as oe, e as ae, f as ne } from "./DateUtil-
|
|
32
|
+
import { g as R, a as ee, b as te, c as re, d as oe, e as ae, f as ne } from "./DateUtil-gRDTwAoC.mjs";
|
|
33
33
|
import { b as W } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
34
|
-
import { f as v, D as k } from "./Dialog-
|
|
34
|
+
import { f as v, D as k } from "./Dialog-CwiqpTGe.mjs";
|
|
35
35
|
import { b as l } from "./Localization-2MODESHW.mjs";
|
|
36
36
|
const se = ({ iconName: e, label: a, onClick: t, value: n }) => {
|
|
37
37
|
const o = /* @__PURE__ */ M(B, { children: [
|
|
@@ -4,7 +4,7 @@ import { startOfMonth as _ } from "date-fns/startOfMonth";
|
|
|
4
4
|
import { subMonths as y } from "date-fns/subMonths";
|
|
5
5
|
import { endOfMonth as M } from "date-fns/endOfMonth";
|
|
6
6
|
import { b as a, P as l } from "./Category-CevNQ03n.mjs";
|
|
7
|
-
import { f as m, D as T } from "./Dialog-
|
|
7
|
+
import { f as m, D as T } from "./Dialog-CwiqpTGe.mjs";
|
|
8
8
|
const i = (e) => (e.top_level_category_guid === a.INCOME || e.category_guid === a.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === a.TRANSFER || e.category_guid === a.TRANSFER, h = (e) => e.top_level_category_guid === a.INVESTMENTS || e.category_guid === a.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
|
|
9
9
|
if (r === 0) return 0;
|
|
10
10
|
const o = (e - r) / r;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as T } from "./CategoryUtil-
|
|
1
|
+
import { b as T } from "./CategoryUtil-CCY_tiFg.mjs";
|
|
2
2
|
import { b as p } from "./Category-CevNQ03n.mjs";
|
|
3
3
|
import { jsxs as f, Fragment as w, jsx as m } from "react/jsx-runtime";
|
|
4
4
|
import _ from "react";
|
|
@@ -7,37 +7,37 @@ import k from "@mui/material/Button";
|
|
|
7
7
|
import h from "@mui/material/Stack";
|
|
8
8
|
import { useTheme as M } from "@mui/material/styles";
|
|
9
9
|
import { CategoryIcon as A, CategoryIconVariants as G, Text as y, P as O } from "@mxenabled/mxui";
|
|
10
|
-
import { D as $ } from "./Donut-
|
|
11
|
-
import { u as j } from "./useAriaLive-
|
|
12
|
-
import { u as R } from "./hooks-
|
|
10
|
+
import { D as $ } from "./Donut-DKY8mL3P.mjs";
|
|
11
|
+
import { u as j } from "./useAriaLive-MkYebyUR.mjs";
|
|
12
|
+
import { u as R } from "./hooks-BUCn6FeJ.mjs";
|
|
13
13
|
import { u as v } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
14
|
import { f as x } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
15
15
|
import B from "@mui/material/Box";
|
|
16
|
-
const D = 5, H = (i, l, g,
|
|
16
|
+
const D = 5, H = (i, l, g, d) => d.reduce((t, n) => {
|
|
17
17
|
const a = i.find((s) => s.guid === n.category_guid);
|
|
18
18
|
if (!a) return t;
|
|
19
19
|
const o = a.parent_guid ?? a.guid, r = i.find((s) => s.guid === o);
|
|
20
20
|
if (!r) return t;
|
|
21
|
-
const
|
|
21
|
+
const c = {
|
|
22
22
|
guid: a.guid,
|
|
23
23
|
name: a.guid === o ? `${l.parent_category_totals_label_general} ${a.name}` : a.name,
|
|
24
24
|
color: T(r.guid, g),
|
|
25
25
|
amount: n.total
|
|
26
26
|
}, e = t.find((s) => s.guid === o);
|
|
27
|
-
return e ? (e.amount += n.total, e.categoryTotals?.push(
|
|
27
|
+
return e ? (e.amount += n.total, e.categoryTotals?.push(c)) : t.push({
|
|
28
28
|
guid: o,
|
|
29
29
|
name: r.name,
|
|
30
30
|
color: T(r.guid, g),
|
|
31
|
-
categoryTotals: [
|
|
31
|
+
categoryTotals: [c],
|
|
32
32
|
amount: n.total
|
|
33
33
|
}), t;
|
|
34
|
-
}, []), no = (i, l, g,
|
|
35
|
-
const t = H(i, l, g,
|
|
34
|
+
}, []), no = (i, l, g, d) => {
|
|
35
|
+
const t = H(i, l, g, d), n = t.filter(
|
|
36
36
|
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER && e.amount > 0
|
|
37
37
|
).sort((e, s) => s.amount - e.amount), a = n.reduce(
|
|
38
38
|
(e, s) => e + s.amount,
|
|
39
39
|
0
|
|
40
|
-
), o = n.length > D ? D : n.length, r = n.slice(0, o),
|
|
40
|
+
), o = n.length > D ? D : n.length, r = n.slice(0, o), c = r.map((e) => ({
|
|
41
41
|
id: e.guid,
|
|
42
42
|
color: T(e.guid, g),
|
|
43
43
|
label: e.name,
|
|
@@ -54,7 +54,7 @@ const D = 5, H = (i, l, g, c) => c.reduce((t, n) => {
|
|
|
54
54
|
name: l.saving_goal_other,
|
|
55
55
|
categoryTotals: e,
|
|
56
56
|
amount: s
|
|
57
|
-
}),
|
|
57
|
+
}), c.push({
|
|
58
58
|
id: "other",
|
|
59
59
|
color: g.palette.categories.others || "",
|
|
60
60
|
label: l.saving_goal_other,
|
|
@@ -63,15 +63,15 @@ const D = 5, H = (i, l, g, c) => c.reduce((t, n) => {
|
|
|
63
63
|
}
|
|
64
64
|
return {
|
|
65
65
|
categoryData: r,
|
|
66
|
-
donutData:
|
|
66
|
+
donutData: c,
|
|
67
67
|
totalAmount: a
|
|
68
68
|
};
|
|
69
69
|
}, eo = (i, l, g) => {
|
|
70
|
-
const
|
|
70
|
+
const d = i.filter(
|
|
71
71
|
(o) => o.guid === p.INCOME || o.parent_guid === p.INCOME
|
|
72
|
-
), t = l.filter((o) =>
|
|
72
|
+
), t = l.filter((o) => d.some((r) => r.guid === o.category_guid)).sort((o, r) => o.total - r.total).map((o, r) => ({
|
|
73
73
|
guid: o.category_guid,
|
|
74
|
-
name: i.find((
|
|
74
|
+
name: i.find((c) => c.guid === o.category_guid)?.name,
|
|
75
75
|
color: g[r],
|
|
76
76
|
categoryTotals: [],
|
|
77
77
|
amount: Math.abs(o.total)
|
|
@@ -93,13 +93,13 @@ const D = 5, H = (i, l, g, c) => c.reduce((t, n) => {
|
|
|
93
93
|
data: i,
|
|
94
94
|
isIncome: l = !1,
|
|
95
95
|
onSelected: g,
|
|
96
|
-
onViewTransactions:
|
|
96
|
+
onViewTransactions: d,
|
|
97
97
|
selectedId: t,
|
|
98
98
|
size: n = 150,
|
|
99
99
|
totalLabel: a,
|
|
100
100
|
variant: o = "mini"
|
|
101
101
|
}) => {
|
|
102
|
-
const { spending: r } = R(),
|
|
102
|
+
const { spending: r } = R(), c = M(), { isTablet: e } = v(), { announce: s, ariaLive: C } = j(), u = _.useMemo(
|
|
103
103
|
() => t ? i.categoryData.find((b) => b.guid === t) : void 0,
|
|
104
104
|
[t]
|
|
105
105
|
);
|
|
@@ -109,8 +109,8 @@ const D = 5, H = (i, l, g, c) => c.reduce((t, n) => {
|
|
|
109
109
|
s(`${u.name}: ${b}`);
|
|
110
110
|
}
|
|
111
111
|
}, [u, s, o]);
|
|
112
|
-
const S = i.donutData.length > 0 ? i.donutData : [{ id: "0", color:
|
|
113
|
-
|
|
112
|
+
const S = i.donutData.length > 0 ? i.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], E = () => {
|
|
113
|
+
d?.(t);
|
|
114
114
|
}, I = e ? 32 : 48;
|
|
115
115
|
return /* @__PURE__ */ f(w, { children: [
|
|
116
116
|
C,
|
|
@@ -161,7 +161,7 @@ const D = 5, H = (i, l, g, c) => c.reduce((t, n) => {
|
|
|
161
161
|
] }) }) })
|
|
162
162
|
] });
|
|
163
163
|
}, ro = N(V), ao = ({ data: i, onSelected: l, selectedId: g }) => {
|
|
164
|
-
const
|
|
164
|
+
const d = (t, n) => {
|
|
165
165
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(n));
|
|
166
166
|
};
|
|
167
167
|
return /* @__PURE__ */ m(h, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((t) => /* @__PURE__ */ f(
|
|
@@ -173,7 +173,7 @@ const D = 5, H = (i, l, g, c) => c.reduce((t, n) => {
|
|
|
173
173
|
direction: "row",
|
|
174
174
|
gap: 8,
|
|
175
175
|
onClick: () => l(t.guid),
|
|
176
|
-
onKeyDown: (n) =>
|
|
176
|
+
onKeyDown: (n) => d(n, t.guid),
|
|
177
177
|
role: "button",
|
|
178
178
|
sx: { cursor: "pointer" },
|
|
179
179
|
tabIndex: 0,
|