@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0-ram1-bug-alpha-testing
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 +676 -9
- package/README.md +216 -47
- package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
- package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +95 -0
- package/dist/AccountFields-mwJ8NXsX.mjs +141 -0
- package/dist/AccountListItem-BDXHs4tV.mjs +94 -0
- package/dist/AccountUtils-T5_Odvos.mjs +27 -0
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Analytics-CkYXKvco.mjs +53 -0
- package/dist/Analytics-CzGzz_sE.mjs +136 -0
- package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
- package/dist/{CategorySelectorDrawer-C4aZYP4N.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +131 -119
- package/dist/Connect-Dk6GZEsA.mjs +39 -0
- package/dist/ConnectCard-CCep7Zqe.mjs +54 -0
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +58 -0
- package/dist/{ConnectionsDrawer-BExzgE16.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +13 -12
- package/dist/CurrencyDialog-DumQCTPO.mjs +373 -0
- package/dist/CurrencyInput-adTIRtL3.mjs +87 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
- package/dist/DateFormats-HudZ3Bjs.mjs +64 -0
- package/dist/DateUtil-Bhq59ZVg.mjs +58 -0
- package/dist/DebtUtils-DD3186U-.mjs +153 -0
- package/dist/Dialog-CwWc0AbH.mjs +63 -0
- package/dist/Donut-SzzfZDHF.mjs +88 -0
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-BXqqBMxg.mjs} +32 -34
- package/dist/EmbeddedCard-DPwJjqMH.mjs +856 -0
- package/dist/{EmptyState-DoxNUae-.mjs → EmptyState-CJUDc3kD.mjs} +21 -22
- package/dist/Error-Dogaw2jO.mjs +84 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
- package/dist/{ExportCsvAction-oG_Mn66T.mjs → ExportCsvAction-Bw02ZJEj.mjs} +6 -6
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +237 -0
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-CkQTjORd.mjs} +6 -27
- package/dist/{Help-BW_ar-4B.mjs → Help-DJ8PrVHX.mjs} +594 -562
- package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
- package/dist/{InvestmentUtil-jOyOgzIB.mjs → InvestmentUtil-BItV7uEs.mjs} +17 -17
- package/dist/LineChart-CejWS_rh.mjs +612 -0
- package/dist/{ListItemAction-Cbr3417C.mjs → ListItemAction-CwspSmQi.mjs} +26 -26
- package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
- package/dist/Loader-CxeBwuPG.mjs +21 -0
- package/dist/Localization-DnoVyBNK.mjs +38 -0
- package/dist/ManageIncome-B1JfqslT.mjs +595 -0
- package/dist/{MicroWidgetContainer-DSyYwRCU.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +2 -2
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +66 -0
- package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-e789PcRb.mjs → NotificationSettings-6p-h5phZ.mjs} +143 -142
- package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
- package/dist/OriginalBalanceAction-CkJPnp2c.mjs +114 -0
- package/dist/{RecurringSettings-BpCUcE8w.mjs → RecurringSettings-cm6MK_aS.mjs} +4 -4
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
- package/dist/{ResponsiveButton-C6KH8JH4.mjs → ResponsiveButton-CC9F_Ezk.mjs} +4 -4
- package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
- package/dist/Select-BFt-HD-L.mjs +55 -0
- package/dist/SelectionBox-B4xELRgp.mjs +48 -0
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
- package/dist/Sizes-DISGrlUg.mjs +6 -0
- package/dist/{SpendingData-B7NuTQ9s.mjs → SpendingData-xyRoRDHv.mjs} +7 -7
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +193 -0
- package/dist/ToggleListItem-Dl1lXNwj.mjs +91 -0
- package/dist/TransactionDetails-C3dlAzYf.mjs +1714 -0
- package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
- package/dist/UserStore-CRpKQjpP.mjs +3002 -0
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +1295 -0
- package/dist/WidgetContainer-DNuz_s7W.mjs +479 -0
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/components/AccountListItem.d.ts +1 -1
- package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
- package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
- package/dist/accounts/hooks/useUiStore.d.ts +6 -1
- package/dist/accounts/index.d.ts +0 -2
- package/dist/accounts/index.es.js +628 -527
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +3 -3
- package/dist/analytics/index.es.js +93 -112
- package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
- package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +11 -0
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
- package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
- package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
- package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
- package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.d.ts +2 -1
- package/dist/budgets/index.es.js +989 -813
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/context/hooks.d.ts +15 -1
- package/dist/cashflow/index.d.ts +0 -2
- package/dist/cashflow/index.es.js +461 -490
- package/dist/cashflow/util/Filters.d.ts +1 -1
- package/dist/categories/components/CategoryRow.d.ts +1 -1
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
- package/dist/categories/components/SubcategoryList.d.ts +1 -1
- package/dist/categories/components/SubcategoryRow.d.ts +1 -1
- package/dist/categories/context/hooks.d.ts +19 -1
- package/dist/categories/index.d.ts +0 -1
- package/dist/categories/index.es.js +4 -6
- package/dist/common/components/CurrencyDialog.d.ts +19 -0
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/EmptyState.d.ts +0 -1
- package/dist/common/components/Error.d.ts +13 -0
- package/dist/common/components/GlobalAccountFilter.d.ts +3 -2
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/TinyBarChart.d.ts +10 -0
- package/dist/common/components/WidgetContainer.d.ts +4 -3
- package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/charts/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
- package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
- package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +1 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +2 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +12 -0
- package/dist/common/constants/ScheduledPayment.d.ts +1 -10
- package/dist/common/constants/SpendingPlan.d.ts +0 -10
- package/dist/common/constants/index.d.ts +2 -6
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +24 -24
- package/dist/common/hooks/index.d.ts +2 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
- package/dist/common/hooks/useCombineEvents.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +34 -0
- package/dist/common/index.d.ts +3 -3
- package/dist/common/index.es.js +254 -1348
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +2 -2
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/PostMessage.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +7 -6
- package/dist/common/utils/index.d.ts +1 -6
- package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
- package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
- package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
- package/dist/{common → core}/api/BannerApi.d.ts +1 -1
- package/dist/{common → core}/api/BeatApi.d.ts +2 -2
- package/dist/{budgets → core}/api/BudgetsApi.d.ts +5 -1
- package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
- package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
- package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
- package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
- package/dist/{help → core}/api/HelpApi.d.ts +2 -2
- package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
- package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
- package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
- package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -1
- package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
- package/dist/{settings → core}/api/SettingsApi.d.ts +2 -3
- package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
- package/dist/{common → core}/api/UserApi.d.ts +2 -2
- package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
- package/dist/core/api/index.d.ts +20 -0
- package/dist/{common → core}/constants/ApiEndpoints.d.ts +1 -2
- package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
- package/dist/core/constants/Transaction.d.ts +10 -0
- package/dist/core/constants/index.d.ts +4 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.es.js +108 -0
- package/dist/{accounts → core}/stores/AccountStore.d.ts +15 -3
- package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
- package/dist/{common → core}/stores/AppDataStore.d.ts +1 -2
- package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
- package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +15 -2
- package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
- package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -2
- package/dist/{common → core}/stores/ConnectStore.d.ts +1 -1
- package/dist/core/stores/DebtsStore.d.ts +22 -0
- package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +5 -4
- package/dist/{common → core}/stores/GlobalStore.d.ts +4 -25
- package/dist/{goals → core}/stores/GoalStore.d.ts +3 -2
- package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -5
- package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -3
- package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -2
- package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -3
- package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -1
- package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -2
- package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -4
- package/dist/{transactions → core}/stores/TransactionStore.d.ts +30 -4
- package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -4
- package/dist/core/stores/index.d.ts +24 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +8 -2
- package/dist/{common → core}/types/Beat.d.ts +2 -0
- package/dist/{common → core}/types/Budget.d.ts +8 -0
- package/dist/{common → core}/types/Client.d.ts +1 -0
- package/dist/{common → core}/types/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/core/types/Offer.d.ts +32 -0
- package/dist/{common → core}/types/Widgets.d.ts +1 -0
- package/dist/{common → core}/types/index.d.ts +4 -3
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +26 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +3 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
- package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -1
- package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +11 -6
- package/dist/{common → core}/types/localization/TrendsCopy.d.ts +2 -0
- package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +2 -2
- package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
- package/dist/{budgets → core}/utils/BudgetUtil.d.ts +7 -2
- package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
- package/dist/core/utils/DebtUtils.d.ts +31 -0
- package/dist/core/utils/FinstrongUtils.d.ts +7 -0
- package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
- package/dist/core/utils/HelpUtil.d.ts +3 -0
- package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
- package/dist/{common → core}/utils/Localization.d.ts +9 -1
- package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
- package/dist/{notifications → core}/utils/NotificationUtils.d.ts +2 -1
- package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
- package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +2 -2
- package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
- package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
- package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/dashboard/index.es.js +39 -38
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/DebtsChart.d.ts +1 -1
- package/dist/debts/components/DebtsTable.d.ts +1 -1
- package/dist/debts/components/SnowballCard.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +6 -1
- package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +3 -1
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
- package/dist/debts/index.d.ts +0 -1
- package/dist/debts/index.es.js +715 -775
- package/dist/debts/utils/DebtsTable.d.ts +1 -1
- package/dist/debts/utils/SnowballCard.d.ts +2 -2
- package/dist/finstrong/FinstrongWidget.d.ts +2 -2
- package/dist/finstrong/components/HealthChart.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
- package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
- package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
- package/dist/finstrong/index.d.ts +0 -2
- package/dist/finstrong/index.es.js +1587 -1349
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -9
- package/dist/goals/GoalsWidget.d.ts +2 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
- package/dist/goals/components/AddGoal.d.ts +1 -1
- package/dist/goals/components/GoalDetails.d.ts +1 -1
- package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
- package/dist/goals/components/GoalList.d.ts +1 -1
- package/dist/goals/components/GoalStatusCard.d.ts +1 -1
- package/dist/goals/components/ManageGoals.d.ts +1 -1
- package/dist/goals/components/actions/AccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
- package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
- package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
- package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +2 -2
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +3 -2
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -2
- package/dist/goals/index.es.js +707 -787
- package/dist/help/HelpWidget.d.ts +2 -2
- package/dist/help/components/HelpContent.d.ts +1 -1
- package/dist/help/components/HelpList.d.ts +1 -1
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/ContentItem.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/NoImageContent.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/components/content/section/Accounts.d.ts +1 -1
- package/dist/help/components/content/section/Budgets.d.ts +1 -1
- package/dist/help/components/content/section/CashFlow.d.ts +1 -1
- package/dist/help/components/content/section/Debts.d.ts +1 -1
- package/dist/help/components/content/section/General.d.ts +1 -1
- package/dist/help/components/content/section/Goals.d.ts +1 -1
- package/dist/help/components/content/section/Insights.d.ts +1 -1
- package/dist/help/components/content/section/Investments.d.ts +1 -1
- package/dist/help/components/content/section/Mobile.d.ts +1 -1
- package/dist/help/components/content/section/NetWorth.d.ts +1 -1
- package/dist/help/components/content/section/Notifications.d.ts +1 -1
- package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
- package/dist/help/components/content/section/Spending.d.ts +1 -1
- package/dist/help/components/content/section/Transactions.d.ts +1 -1
- package/dist/help/components/content/section/Trends.d.ts +1 -1
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
- package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
- package/dist/help/index.es.js +19 -10
- package/dist/help/utils/index.d.ts +0 -1
- package/dist/{hooks-fY_n74f7.mjs → hooks-BaO_gOI6.mjs} +23 -23
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +53 -0
- package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AccountDiscoverability/index.d.ts +1 -0
- package/dist/insights/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/index.d.ts +2 -0
- package/dist/insights/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
- package/dist/insights/components/insights/CashBack/CashBack.d.ts +3 -0
- package/dist/insights/components/insights/CashBack/index.d.ts +1 -0
- package/dist/insights/components/insights/CashBack/types/CashBack.d.ts +7 -0
- package/dist/insights/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
- package/dist/insights/components/insights/CategoryBudget/index.d.ts +1 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +10 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/index.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +7 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
- package/dist/insights/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
- package/dist/insights/components/insights/CustomTransaction/index.d.ts +1 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
- package/dist/insights/components/insights/DiscoveredAccounts/index.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/index.d.ts +2 -0
- package/dist/insights/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
- package/dist/insights/components/insights/MarketingHub/Offer.d.ts +3 -0
- package/dist/insights/components/insights/MarketingHub/Types.d.ts +33 -0
- package/dist/insights/components/insights/MarketingHub/index.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/index.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
- package/dist/insights/components/insights/SharedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/types/index.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
- package/dist/insights/components/insights/UnifiedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
- package/dist/insights/components/insights/UserFeedback/Types.d.ts +27 -0
- package/dist/insights/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
- package/dist/insights/components/insights/UserFeedback/index.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
- package/dist/insights/components/insights/index.d.ts +25 -0
- package/dist/insights/components/shared/AccountBalanceCard.d.ts +13 -0
- package/dist/insights/components/shared/BottomSheet.d.ts +13 -0
- package/dist/insights/components/shared/CarouselControls.d.ts +14 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +30 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +9 -0
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +22 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/index.d.ts +4 -0
- package/dist/insights/components/shared/Charts/EmptyBarChart.d.ts +1 -0
- package/dist/insights/components/shared/Charts/index.d.ts +2 -0
- package/dist/insights/components/shared/Confetti.d.ts +5 -0
- package/dist/insights/components/shared/ConnectionCard.d.ts +14 -0
- package/dist/insights/components/shared/ConnectionDetailDrillDown.d.ts +25 -0
- package/dist/insights/components/shared/Coupon.d.ts +8 -0
- package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
- package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
- package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/RightBox.d.ts +8 -0
- package/dist/insights/components/shared/DiscoveredAccountsConnect.d.ts +8 -0
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
- package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
- package/dist/insights/components/shared/ErrorCard/ErrorCard.d.ts +8 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
- package/dist/insights/components/shared/GoalProgress.d.ts +10 -0
- package/dist/insights/components/shared/GradientBox.d.ts +8 -0
- package/dist/insights/components/shared/InsightsCard/BeatCard.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardError.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/CardFooter.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardHeader.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardLoading.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/Description.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/InsightButton.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/MenuAction.d.ts +15 -0
- package/dist/insights/components/shared/MiniInsightCard.d.ts +16 -0
- package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
- package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.d.ts +10 -0
- package/dist/insights/components/shared/ProgressBar.d.ts +9 -0
- package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.d.ts +9 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +11 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.d.ts +2 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +15 -0
- package/dist/insights/components/shared/TabContainer.d.ts +8 -0
- package/dist/insights/components/shared/ThemedSVGImage.d.ts +2 -0
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
- package/dist/insights/components/shared/index.d.ts +2 -0
- package/dist/insights/hooks/useContainerDimensions.d.ts +5 -0
- package/dist/insights/index.d.ts +1 -1
- package/dist/insights/index.es.js +4843 -2
- package/dist/insights/themes/Typography.d.ts +1 -0
- package/dist/insights/themes/index.d.ts +1 -0
- package/dist/insights/types/Charts/BarChart.d.ts +96 -0
- package/dist/insights/types/CommonBeat.d.ts +367 -0
- package/dist/insights/types/DirectDeposit.d.ts +16 -0
- package/dist/insights/types/ThemedSVGImage.d.ts +5 -0
- package/dist/investments/InvestmentsWidget.d.ts +2 -2
- package/dist/investments/components/AnalysisDetails.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +574 -574
- package/dist/merchants/index.d.ts +0 -1
- package/dist/merchants/index.es.js +18 -20
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -14
- package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
- package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
- package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
- package/dist/microinsights/beaticons/index.d.ts +3 -0
- package/dist/microinsights/cards/InsightCard.d.ts +3 -3
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -3
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -3
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -3
- package/dist/microinsights/carousel/BeatList.d.ts +3 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +4 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -12
- package/dist/microinsights/constants/Analytics.d.ts +1 -1
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +23 -40
- package/dist/microinsights/stores/CopyStore.d.ts +2 -2
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +2 -2
- package/dist/microinsights/utils/DataSeries.d.ts +1 -1
- package/dist/microinsights/utils/colorType.d.ts +22 -0
- package/dist/networth/NetWorthWidget.d.ts +1 -1
- package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
- package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -1
- package/dist/networth/components/NetWorthListItem.d.ts +1 -1
- package/dist/networth/components/NetWorthSummary.d.ts +1 -1
- package/dist/networth/components/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.d.ts +0 -4
- package/dist/networth/index.es.js +302 -314
- package/dist/notifications/components/NotificationBadge.d.ts +1 -1
- package/dist/notifications/components/NotificationCard.d.ts +1 -1
- package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
- package/dist/notifications/components/NotificationList.d.ts +2 -1
- package/dist/notifications/index.d.ts +0 -2
- package/dist/notifications/index.es.js +101 -93
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +2 -2
- package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
- package/dist/recurringtransactions/index.d.ts +0 -1
- package/dist/recurringtransactions/index.es.js +489 -462
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +2 -2
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
- package/dist/settings/components/devices/DeviceList.d.ts +1 -1
- package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
- package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
- package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
- package/dist/settings/index.d.ts +0 -2
- package/dist/settings/index.es.js +419 -430
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +229 -222
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +3 -4
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +17 -0
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.d.ts +7 -0
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +2 -1
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
- package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.d.ts +4 -1
- package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
- package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
- package/dist/transactions/constants/Actions.d.ts +4 -3
- package/dist/transactions/context/hooks.d.ts +1 -1
- package/dist/transactions/index.d.ts +0 -5
- package/dist/transactions/index.es.js +344 -351
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +17 -1
- package/dist/trends/TrendsFullWidget.d.ts +1 -1
- package/dist/trends/TrendsMiniWidget.d.ts +1 -1
- package/dist/trends/TrendsWidget.d.ts +1 -1
- package/dist/trends/components/CategoriesList.d.ts +1 -1
- package/dist/trends/components/CategoriesListItem.d.ts +1 -1
- package/dist/trends/components/CategoryDetails.d.ts +3 -0
- package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
- package/dist/trends/components/TrendsInsights.d.ts +1 -1
- package/dist/trends/components/{TrendsTable.d.ts → TrendsTableContainer.d.ts} +2 -2
- package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +12 -0
- package/dist/trends/index.d.ts +0 -1
- package/dist/trends/index.es.js +991 -876
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +5 -3
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +2 -2
- package/dist/{useAccountDisplayName-DbkgGLdg.mjs → useAccountDisplayName-CFa_MrS6.mjs} +5 -5
- package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
- package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
- package/dist/{useInsightsEnabled-dhmXeSyF.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-mWpmnh5w.mjs} +3 -3
- package/dist/{useWidgetLoadTimer-CrUzxN-P.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
- package/package.json +65 -43
- package/dist/AccountApi-DgZ8ILj1.mjs +0 -19
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +0 -95
- package/dist/AccountFields-BRRH37K1.mjs +0 -140
- package/dist/AccountListItem-Ds5C0mOT.mjs +0 -90
- package/dist/AccountStore-BFKvXJSD.mjs +0 -244
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BeatApi-De2IaqH2.mjs +0 -21
- package/dist/BeatStore-D_NYuBSz.mjs +0 -81
- package/dist/BudgetUtil-CDSOZXem.mjs +0 -101
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CategoryStore-DEqAnHbi.mjs +0 -186
- package/dist/CategoryUtil-CFHBvaV4.mjs +0 -80
- package/dist/CurrencyInput-DDQ4DBrE.mjs +0 -85
- package/dist/DateUtil-CVsMhbZU.mjs +0 -48
- package/dist/DebtsStore-Dv_T7Dts.mjs +0 -63
- package/dist/Dialog-CWymUiuO.mjs +0 -120
- package/dist/Donut-Dmy3JTWd.mjs +0 -86
- package/dist/Fetch-DecPFeGU.mjs +0 -119
- package/dist/FinstrongStore-BjFkMTIL.mjs +0 -451
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +0 -316
- package/dist/GoalStore-Dbjgft2i.mjs +0 -422
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-DHj-Bufi.mjs +0 -580
- package/dist/Loader-BSWSYqvn.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/ManageIncome-DIIyqDTp.mjs +0 -585
- package/dist/MerchantStore-WvZ4gnQe.mjs +0 -37
- package/dist/MiniWidgetContainer-DKn7ndO6.mjs +0 -56
- package/dist/NetWorthStore-B6ziBtaH.mjs +0 -168
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/NotificationStore-Ck2KdNmT.mjs +0 -79
- package/dist/OriginalBalanceAction-DFoG79Ba.mjs +0 -115
- package/dist/RecurringTransactionsStore-D_--5PWH.mjs +0 -277
- package/dist/RepeatingTransaction-C2txVA9O.mjs +0 -292
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SettingsStore-CInvh-rQ.mjs +0 -269
- package/dist/SpendingLegend-BxefXiQd.mjs +0 -193
- package/dist/TransactionApi-CjBoLleL.mjs +0 -86
- package/dist/TransactionDetails-CPwv9xtZ.mjs +0 -1374
- package/dist/TransactionStore-D2aMUClq.mjs +0 -688
- package/dist/TrendsStore-BdsYfCc7.mjs +0 -183
- package/dist/User-CulNdZUr.mjs +0 -314
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +0 -1147
- package/dist/WidgetContainer-mzejMmz2.mjs +0 -555
- package/dist/accounts/stores/UiStore.d.ts +0 -10
- package/dist/accounts/utils/index.d.ts +0 -1
- package/dist/cashflow/api/CashflowApi.d.ts +0 -13
- package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
- package/dist/categories/stores/UiStore.d.ts +0 -20
- package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
- package/dist/common/api/index.d.ts +0 -10
- 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/stores/index.d.ts +0 -3
- package/dist/common/types/SpendingPlan.d.ts +0 -44
- package/dist/common/utils/Categories.d.ts +0 -6
- package/dist/debts/store/DebtsStore.d.ts +0 -9
- package/dist/debts/store/DebtsUiStore.d.ts +0 -13
- package/dist/debts/utils/DebtStore.d.ts +0 -4
- package/dist/debts/utils/DebtsWidget.d.ts +0 -14
- package/dist/debts/utils/shared.d.ts +0 -12
- package/dist/exportTransactionsToCSV-BU1jTY0Q.mjs +0 -48
- package/dist/help/constants/index.d.ts +0 -1
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
- package/dist/transactions/analytics.d.ts +0 -3
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +0 -7
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/transactions/constants/Transaction.d.ts +0 -2
- package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
- package/dist/transactions/stores/UiStore.d.ts +0 -25
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- package/dist/useCombineEvents-CRwX-qWE.mjs +0 -92
- package/dist/{common → core}/constants/Category.d.ts +0 -0
- package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
- package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
- package/dist/{help → core}/constants/Help.d.ts +0 -0
- package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
- package/dist/{common → core}/constants/Numbers.d.ts +0 -0
- package/dist/{common → core}/constants/Table.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalCopyStore.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalUiStore.d.ts +0 -0
- package/dist/{common → core}/stores/UserStore.d.ts +1 -1
- /package/dist/{common → core}/types/Account.d.ts +0 -0
- /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
- /package/dist/{common → core}/types/Category.d.ts +0 -0
- /package/dist/{common → core}/types/Date.d.ts +0 -0
- /package/dist/{common → core}/types/Debt.d.ts +0 -0
- /package/dist/{common → core}/types/Global.d.ts +0 -0
- /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
- /package/dist/{common → core}/types/Goal.d.ts +0 -0
- /package/dist/{common → core}/types/Handlers.d.ts +0 -0
- /package/dist/{common → core}/types/Help.d.ts +0 -0
- /package/dist/{common → core}/types/Holding.d.ts +0 -0
- /package/dist/{common → core}/types/Institution.d.ts +0 -0
- /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
- /package/dist/{common → core}/types/Merchant.d.ts +0 -0
- /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
- /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
- /package/dist/{common → core}/types/Transaction.d.ts +0 -0
- /package/dist/{common → core}/types/User.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
- /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
- /package/dist/{common → core}/utils/Fetch.d.ts +0 -0
- /package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +0 -0
|
@@ -1,118 +1,344 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as H } from "react/jsx-runtime";
|
|
2
2
|
import M from "@mui/material/Box";
|
|
3
3
|
import _ from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { PieChart as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
4
|
+
import { useTheme as W, alpha as ue } from "@mui/material/styles";
|
|
5
|
+
import { PieChart as pn } from "@mui/x-charts/PieChart";
|
|
6
|
+
import { Text as D, P as A, H3 as j, InstitutionLogo as yt, H2 as Ge, MerchantLogo as un, Icon as _n } from "@mxenabled/mxui";
|
|
7
|
+
import { ChevronRight as J, Check as mn, TrendingUp as hn, ArrowRightAlt as gn, TrendingDown as yn, AccountBalance as ft, CheckCircle as fn, Cancel as bn, CreditCard as bt, Savings as xn, ContentCopy as Cn, MultilineChart as Sn, Add as xt, Cardiology as vn, Payments as wn, CalendarMonth as kn, ExpandMore as Mn } from "@mxenabled/mx-icons";
|
|
8
|
+
import { addDays as Dn } from "date-fns/addDays";
|
|
9
|
+
import { addMonths as In } from "date-fns/addMonths";
|
|
10
|
+
import { addYears as An } from "date-fns/addYears";
|
|
11
|
+
import { differenceInDays as Tn } from "date-fns/differenceInDays";
|
|
12
|
+
import { differenceInMonths as On } from "date-fns/differenceInMonths";
|
|
13
|
+
import { differenceInWeeks as it } from "date-fns/differenceInWeeks";
|
|
14
|
+
import { format as Ct } from "date-fns/format";
|
|
15
|
+
import { startOfToday as Ve } from "date-fns/startOfToday";
|
|
16
|
+
import m, { useState as Rn, useRef as Fn, useCallback as st, useEffect as ct } from "react";
|
|
17
|
+
import Ln from "@mui/material/Avatar";
|
|
18
|
+
import ae from "@mui/material/Divider";
|
|
19
|
+
import Le from "@mui/material/List";
|
|
20
|
+
import _e from "@mui/material/ListItem";
|
|
21
|
+
import Ye from "@mui/material/ListItemAvatar";
|
|
22
|
+
import St from "@mui/material/ListItemButton";
|
|
23
|
+
import me from "@mui/material/ListItemText";
|
|
24
|
+
import { f as B } from "../NumberFormatting--XMeeBfr.mjs";
|
|
25
|
+
import { b as z } from "../Localization-DnoVyBNK.mjs";
|
|
26
|
+
import { f as Xe, D as Ue } from "../DateFormats-HudZ3Bjs.mjs";
|
|
27
|
+
import * as lt from "d3";
|
|
11
28
|
import { observer as w } from "mobx-react-lite";
|
|
12
|
-
import { u as
|
|
13
|
-
import { L as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import { C as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import { u as
|
|
25
|
-
import {
|
|
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 { f as $ } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
39
|
-
import { b as j } from "../Localization-2MODESHW.mjs";
|
|
40
|
-
import { S as rt, F as wt, e as Hn, R as kt } from "../RepeatingTransaction-C2txVA9O.mjs";
|
|
41
|
-
import { A as ze } from "../Account-CMjOp7S2.mjs";
|
|
42
|
-
import { S as Nn } from "../StatusBar-CPfSXe80.mjs";
|
|
43
|
-
import { h as Mt } from "../DateUtil-CVsMhbZU.mjs";
|
|
44
|
-
import { T as jn, s as Kn, h as Vn, S as Xn, b as Yn } from "../TransactionDetails-CPwv9xtZ.mjs";
|
|
45
|
-
import { T as pe } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
46
|
-
import qn from "@mui/material/useMediaQuery";
|
|
29
|
+
import { u as S, b as ne, a as qe, C as oe, s as L, D as Pn, d as ke, l as Qe, f as Bn, i as Ze, h as En, o as Gn } from "../hooks-BaO_gOI6.mjs";
|
|
30
|
+
import { L as ee } from "../Loader-CxeBwuPG.mjs";
|
|
31
|
+
import E from "@mui/material/Button";
|
|
32
|
+
import Y from "@mui/material/Card";
|
|
33
|
+
import { L as Je } from "../LineChart-CejWS_rh.mjs";
|
|
34
|
+
import { C as vt } from "../ConnectionsDrawer-CtfPXk0M.mjs";
|
|
35
|
+
import { C as se } from "../ConnectDrawer-Cnjr3Ddg.mjs";
|
|
36
|
+
import he from "@mui/material/Tab";
|
|
37
|
+
import et from "@mui/material/Tabs";
|
|
38
|
+
import Pe from "@mui/material/TextField";
|
|
39
|
+
import { u as tt } from "../useScreenSize-mWpmnh5w.mjs";
|
|
40
|
+
import { D as Wn } from "../Dialog-CwWc0AbH.mjs";
|
|
41
|
+
import { u as wt } from "../useDimensions-CeDR9V8N.mjs";
|
|
42
|
+
import { E as Be } from "../EmptyState-CJUDc3kD.mjs";
|
|
43
|
+
import $n from "@mui/material/Chip";
|
|
44
|
+
import { D as ie } from "../Drawer-BXqqBMxg.mjs";
|
|
45
|
+
import { g as kt } from "../AccountDisplayName-CO7z3v99.mjs";
|
|
46
|
+
import { g as Mt } from "../AccountFields-mwJ8NXsX.mjs";
|
|
47
|
+
import Nn from "@mui/material/ListSubheader";
|
|
48
|
+
import { S as dt } from "../Select-BFt-HD-L.mjs";
|
|
49
|
+
import { A as je } from "../Account-BaJmiJAG.mjs";
|
|
50
|
+
import { S as zn } from "../StatusBar-CPfSXe80.mjs";
|
|
51
|
+
import { i as Dt } from "../DateUtil-Bhq59ZVg.mjs";
|
|
52
|
+
import { T as Hn, s as Kn, h as Vn, S as jn, a as Yn } from "../EmbeddedCard-DPwJjqMH.mjs";
|
|
53
|
+
import { T as ge } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
54
|
+
import Xn from "@mui/material/useMediaQuery";
|
|
47
55
|
import { BarPlot as Un } from "@mui/x-charts/BarChart";
|
|
48
|
-
import { ChartContainer as
|
|
49
|
-
import { ChartsXAxis as
|
|
50
|
-
import { ChartsYAxis as
|
|
51
|
-
import { startOfMonth as
|
|
52
|
-
import { endOfMonth as
|
|
53
|
-
import { g as
|
|
54
|
-
import { formatISO as
|
|
55
|
-
import { fromUnixTime as
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as
|
|
60
|
-
import { AdapterDateFns as
|
|
61
|
-
import { R as
|
|
62
|
-
import { LocalizationProvider as
|
|
63
|
-
import
|
|
64
|
-
import go from "@mui/lab/
|
|
65
|
-
import yo, { timelineItemClasses as bo } from "@mui/lab/TimelineItem";
|
|
56
|
+
import { ChartContainer as qn } from "@mui/x-charts/ChartContainer";
|
|
57
|
+
import { ChartsXAxis as Qn } from "@mui/x-charts/ChartsXAxis";
|
|
58
|
+
import { ChartsYAxis as Zn } from "@mui/x-charts/ChartsYAxis";
|
|
59
|
+
import { startOfMonth as It } from "date-fns/startOfMonth";
|
|
60
|
+
import { endOfMonth as At } from "date-fns/endOfMonth";
|
|
61
|
+
import { g as Jn, S as eo, b as to } from "../SpendingLegend-5Ct_FZ8o.mjs";
|
|
62
|
+
import { formatISO as no } from "date-fns/formatISO";
|
|
63
|
+
import { fromUnixTime as oo } from "date-fns/fromUnixTime";
|
|
64
|
+
import { subDays as ro } from "date-fns/subDays";
|
|
65
|
+
import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-B1JfqslT.mjs";
|
|
66
|
+
import { F as Tt, c as co, R as Ot } from "../RecurringTransactionsUtil-B3rLEx_g.mjs";
|
|
67
|
+
import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as uo } from "@mui/x-date-pickers";
|
|
68
|
+
import { AdapterDateFns as Rt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
69
|
+
import { R as _o } from "../RecurringSettings-cm6MK_aS.mjs";
|
|
70
|
+
import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
|
|
71
|
+
import ho from "@mui/lab/Timeline";
|
|
72
|
+
import go, { timelineItemClasses as yo } from "@mui/lab/TimelineItem";
|
|
66
73
|
import fo from "@mui/lab/TimelineConnector";
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import { u as
|
|
74
|
-
import { W as
|
|
75
|
-
const
|
|
74
|
+
import bo from "@mui/lab/TimelineContent";
|
|
75
|
+
import xo from "@mui/lab/TimelineDot";
|
|
76
|
+
import Co from "@mui/lab/TimelineSeparator";
|
|
77
|
+
import So from "@mui/material/Accordion";
|
|
78
|
+
import vo from "@mui/material/AccordionDetails";
|
|
79
|
+
import wo from "@mui/material/AccordionSummary";
|
|
80
|
+
import { u as ko } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
81
|
+
import { W as Mo } from "../WidgetContainer-DNuz_s7W.mjs";
|
|
82
|
+
const Ae = {
|
|
83
|
+
creditScore: {
|
|
84
|
+
poor: 600,
|
|
85
|
+
good: 720
|
|
86
|
+
},
|
|
87
|
+
daysOfCashOnHand: {
|
|
88
|
+
poor: 30,
|
|
89
|
+
good: 90
|
|
90
|
+
},
|
|
91
|
+
debtToIncomeRatio: {
|
|
92
|
+
poor: 40,
|
|
93
|
+
good: 30
|
|
94
|
+
},
|
|
95
|
+
emergencySavings: {
|
|
96
|
+
poor: 750,
|
|
97
|
+
good: 1e3
|
|
98
|
+
},
|
|
99
|
+
spendToIncomeRatio: {
|
|
100
|
+
poor: 110,
|
|
101
|
+
good: 100
|
|
102
|
+
}
|
|
103
|
+
}, De = {
|
|
104
|
+
GOOD: "GOOD",
|
|
105
|
+
FAIR: "FAIR",
|
|
106
|
+
OFF_TRACK: "OFF TRACK",
|
|
107
|
+
MISSING: "MISSING DATA"
|
|
108
|
+
};
|
|
109
|
+
var q = /* @__PURE__ */ ((t) => (t.Connections = "connections", t.CreditScore = "credit_score", t.DateOfBirth = "date_of_birth", t.MonthlyIncome = "monthly_income", t))(q || {});
|
|
110
|
+
const Do = ({ list: t, onClickItem: n }) => /* @__PURE__ */ e(M, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(
|
|
111
|
+
Le,
|
|
112
|
+
{
|
|
113
|
+
sx: {
|
|
114
|
+
"& .MuiListItemSecondaryAction-root": {
|
|
115
|
+
color: "text.primary",
|
|
116
|
+
pr: 24
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
children: t.map((o, r) => /* @__PURE__ */ s(m.Fragment, { children: [
|
|
120
|
+
/* @__PURE__ */ e(_e, { secondaryAction: /* @__PURE__ */ e(J, {}), children: /* @__PURE__ */ s(St, { onClick: () => n(o.key), children: [
|
|
121
|
+
/* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e(
|
|
122
|
+
Ln,
|
|
123
|
+
{
|
|
124
|
+
sx: {
|
|
125
|
+
bgcolor: "primary.main",
|
|
126
|
+
...!o.isComplete && {
|
|
127
|
+
bgcolor: "transparent",
|
|
128
|
+
borderColor: "action.active",
|
|
129
|
+
borderStyle: "solid",
|
|
130
|
+
borderWidth: 1,
|
|
131
|
+
color: "action.active"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
children: o.icon
|
|
135
|
+
}
|
|
136
|
+
) }),
|
|
137
|
+
/* @__PURE__ */ e(
|
|
138
|
+
me,
|
|
139
|
+
{
|
|
140
|
+
primary: /* @__PURE__ */ e(D, { sx: { color: "text.secondary" }, variant: "caption", children: o.primaryText }),
|
|
141
|
+
secondary: /* @__PURE__ */ e(D, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: o.secondaryText })
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
] }) }),
|
|
145
|
+
/* @__PURE__ */ e(ae, { sx: { color: "divider", ml: r === t.length - 1 ? 0 : 68 } })
|
|
146
|
+
] }, o.key))
|
|
147
|
+
}
|
|
148
|
+
) }), ut = (t) => t * (180 / Math.PI), nt = (t, n) => [
|
|
149
|
+
{
|
|
150
|
+
description: n.vulnerable_description,
|
|
151
|
+
max: 25,
|
|
152
|
+
scoreContent: n.accordion_details_text.vulnerable,
|
|
153
|
+
status: n.vulnerable
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
description: n.building_description,
|
|
157
|
+
max: 50,
|
|
158
|
+
scoreContent: n.accordion_details_text.building,
|
|
159
|
+
status: n.building
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
description: n.stable_description,
|
|
163
|
+
max: 75,
|
|
164
|
+
scoreContent: n.accordion_details_text.stable,
|
|
165
|
+
status: n.stable
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
description: n.strong_description,
|
|
169
|
+
max: 100,
|
|
170
|
+
scoreContent: n.accordion_details_text.strong,
|
|
171
|
+
status: n.strong
|
|
172
|
+
}
|
|
173
|
+
].find((i) => t > 0 && t <= i.max) || { status: n.insufficient_data, description: "", scoreContent: "" }, Q = {
|
|
174
|
+
POOR: "#8C0E0E",
|
|
175
|
+
FAIR: "#E32727",
|
|
176
|
+
GOOD: "#FFB70D",
|
|
177
|
+
VERY_GOOD: "#0EA26C",
|
|
178
|
+
EXCEPTIONAL: "#005C3D"
|
|
179
|
+
}, Z = {
|
|
180
|
+
POOR: "#B21C1C",
|
|
181
|
+
FAIR: "#FF3232",
|
|
182
|
+
GOOD: "#FFC02C",
|
|
183
|
+
VERY_GOOD: "#29C76B",
|
|
184
|
+
EXCEPTIONAL: "#008A5A"
|
|
185
|
+
}, Ft = (t, n, o) => t >= 300 && t < 580 ? {
|
|
186
|
+
status: o.poor,
|
|
187
|
+
color: n ? Z.POOR : Q.POOR
|
|
188
|
+
} : t >= 580 && t < 670 ? {
|
|
189
|
+
status: o.fair,
|
|
190
|
+
color: n ? Z.FAIR : Q.FAIR
|
|
191
|
+
} : t >= 670 && t < 740 ? {
|
|
192
|
+
status: o.good,
|
|
193
|
+
color: n ? Z.GOOD : Q.GOOD
|
|
194
|
+
} : t >= 740 && t < 800 ? {
|
|
195
|
+
status: o.very_good,
|
|
196
|
+
color: n ? Z.VERY_GOOD : Q.VERY_GOOD
|
|
197
|
+
} : t >= 800 && t <= 850 ? {
|
|
198
|
+
status: o.exceptional,
|
|
199
|
+
color: n ? Z.EXCEPTIONAL : Q.EXCEPTIONAL
|
|
200
|
+
} : { status: o.missing_data }, Io = (t, n, o, r) => {
|
|
201
|
+
const i = t.reduce((c, d) => c + d.value, 0);
|
|
202
|
+
let a = 0;
|
|
203
|
+
const l = t.map((c) => {
|
|
204
|
+
const d = c.value / i * n, p = o + a, u = p + d;
|
|
205
|
+
return a += d, {
|
|
206
|
+
...c,
|
|
207
|
+
startAngle: p,
|
|
208
|
+
endAngle: u
|
|
209
|
+
};
|
|
210
|
+
});
|
|
211
|
+
return [l[r].startAngle, l[r].endAngle];
|
|
212
|
+
}, Ao = (t, n, o, r, i) => {
|
|
213
|
+
let a = 0, l = 0;
|
|
214
|
+
const c = Math.floor(r), d = r - c;
|
|
215
|
+
return c > o ? (a = t, l = n) : c === o && d > 0 && (a = t, l = i), [a, l];
|
|
216
|
+
}, To = (t, n, o = 0) => {
|
|
217
|
+
const r = t * Math.sin(n - o), i = -t * Math.cos(n - o);
|
|
218
|
+
return [r, i];
|
|
219
|
+
}, Oo = ({
|
|
220
|
+
dynamicCopy: t,
|
|
221
|
+
fallbackLabel: n,
|
|
222
|
+
icon: o,
|
|
223
|
+
key: r,
|
|
224
|
+
label: i,
|
|
225
|
+
value: a
|
|
226
|
+
}) => {
|
|
227
|
+
const l = !!a, c = l ? Ro(r, a) : t && z(t, n) || n;
|
|
228
|
+
return {
|
|
229
|
+
icon: l ? /* @__PURE__ */ e(mn, {}) : o,
|
|
230
|
+
isComplete: l,
|
|
231
|
+
key: r,
|
|
232
|
+
primaryText: i,
|
|
233
|
+
secondaryText: c
|
|
234
|
+
};
|
|
235
|
+
}, Ro = (t, n) => ({
|
|
236
|
+
[q.DateOfBirth]: (r) => Ct(new Date(Number(r) * 1e3), "MMM d, yyyy"),
|
|
237
|
+
[q.MonthlyIncome]: (r) => B(Number(r), "0.00")
|
|
238
|
+
})[t]?.(n) ?? String(n), Ee = (t) => t !== null ? Math.round(t * 100) : null, Fo = (t) => {
|
|
239
|
+
const n = new Date((/* @__PURE__ */ new Date()).getFullYear(), t - 1, 1);
|
|
240
|
+
return Xe(n, Ue.MONTH_SHORT);
|
|
241
|
+
}, Lt = (t) => {
|
|
242
|
+
const { good: n, poor: o } = Ae.daysOfCashOnHand;
|
|
243
|
+
return t === null ? "MISSING" : t >= n ? "GOOD" : t >= o ? "FAIR" : "OFF_TRACK";
|
|
244
|
+
}, Pt = (t) => {
|
|
245
|
+
const { good: n, poor: o } = Ae.emergencySavings;
|
|
246
|
+
return t === null ? "MISSING" : t >= n ? "GOOD" : t >= o ? "FAIR" : "OFF_TRACK";
|
|
247
|
+
}, Bt = (t) => {
|
|
248
|
+
const { good: n, poor: o } = Ae.spendToIncomeRatio;
|
|
249
|
+
return t === null ? "MISSING" : t < n ? "GOOD" : t < o ? "FAIR" : "OFF_TRACK";
|
|
250
|
+
}, Et = (t) => {
|
|
251
|
+
const { good: n, poor: o } = Ae.debtToIncomeRatio;
|
|
252
|
+
return t === null ? "MISSING" : t <= n ? "GOOD" : t <= o ? "FAIR" : "OFF_TRACK";
|
|
253
|
+
}, Gt = (t) => {
|
|
254
|
+
const { good: n, poor: o } = Ae.creditScore;
|
|
255
|
+
return t === null ? "MISSING" : t >= n ? "GOOD" : t >= o ? "FAIR" : "OFF_TRACK";
|
|
256
|
+
}, Wt = (t) => t === null ? "MISSING" : t === 0 ? "GOOD" : "OFF_TRACK", Lo = (t, n) => {
|
|
257
|
+
const o = Wt(t), r = {
|
|
258
|
+
GOOD: n.count_good_description,
|
|
259
|
+
OFF_TRACK: n.count_off_track_description,
|
|
260
|
+
MISSING: n.count_missing_description
|
|
261
|
+
};
|
|
262
|
+
return {
|
|
263
|
+
cardState: o,
|
|
264
|
+
description: r[o],
|
|
265
|
+
title: n.count_card_title
|
|
266
|
+
};
|
|
267
|
+
}, Po = (t) => ({
|
|
268
|
+
[De.GOOD]: { backgroundColor: "success.lighter", color: "success.dark" },
|
|
269
|
+
[De.FAIR]: { backgroundColor: "warning.lighter", color: "warning.dark" },
|
|
270
|
+
[De.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.dark" },
|
|
271
|
+
[De.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
|
|
272
|
+
})[t], Bo = 1, Eo = 1, Go = {
|
|
273
|
+
1: In,
|
|
274
|
+
2: An,
|
|
275
|
+
3: Dn
|
|
276
|
+
}, Wo = {
|
|
277
|
+
1: On,
|
|
278
|
+
2: (t, n) => it(t, n) / 2,
|
|
279
|
+
3: it,
|
|
280
|
+
4: Tn
|
|
281
|
+
}, $t = [
|
|
282
|
+
{ contributionPeriodIndex: 3, targetAmount: 6, upperLimit: 500 },
|
|
283
|
+
{ contributionPeriodIndex: 3, targetAmount: 3, upperLimit: 900 },
|
|
284
|
+
{ contributionPeriodIndex: 2, targetAmount: 1, upperLimit: 1e3 }
|
|
285
|
+
], _t = ({
|
|
286
|
+
contribution: t,
|
|
287
|
+
goalAmount: n,
|
|
288
|
+
goalPeriod: o,
|
|
289
|
+
targetPeriod: r,
|
|
290
|
+
totalSaved: i
|
|
291
|
+
}) => {
|
|
292
|
+
const a = n - i;
|
|
293
|
+
if (a <= 0) return 0;
|
|
294
|
+
const l = Ve(), c = Go[r], d = Wo[t];
|
|
295
|
+
if (!c || !d) return a;
|
|
296
|
+
const p = c(l, o), u = d(p, l);
|
|
297
|
+
return Math.max(a / (u || 1), 1);
|
|
298
|
+
}, $o = (t) => !t || t <= 0 ? "0%" : t >= 1e3 ? "100%" : `${Math.round(t / 10)}%`, No = (t) => $t.find((o) => t < o.upperLimit)?.targetAmount ?? Eo, mt = (t) => $t.find((r) => t < r.upperLimit)?.contributionPeriodIndex ?? Bo, zo = (t, n) => [...t].sort((r, i) => r.year === i.year ? r.month - i.month : r.year - i.year).map((r) => ({
|
|
299
|
+
x: Xe(new Date(0, r.month - 1, 1), Ue.MONTH_SHORT),
|
|
300
|
+
y: r[n]
|
|
301
|
+
})), Ho = ({
|
|
76
302
|
dialScoreData: t,
|
|
77
|
-
dataIndex:
|
|
78
|
-
arcColor:
|
|
303
|
+
dataIndex: n,
|
|
304
|
+
arcColor: o,
|
|
79
305
|
arcStartAngle: r,
|
|
80
|
-
totalAngularSpan:
|
|
306
|
+
totalAngularSpan: i,
|
|
81
307
|
centerX: a,
|
|
82
308
|
centerY: l,
|
|
83
309
|
arcRadius: c,
|
|
84
310
|
innerArcRadius: d,
|
|
85
311
|
outterArcRadius: p,
|
|
86
312
|
progressEndAngle: u,
|
|
87
|
-
unitsPerSegment:
|
|
88
|
-
isFinacialStrengthGraph:
|
|
313
|
+
unitsPerSegment: h,
|
|
314
|
+
isFinacialStrengthGraph: f
|
|
89
315
|
}) => {
|
|
90
|
-
const
|
|
91
|
-
{ offset: "13.62%", color:
|
|
92
|
-
{ offset: "36.67%", color:
|
|
93
|
-
{ offset: "59.72%", color:
|
|
94
|
-
{ offset: "83.46%", color:
|
|
95
|
-
], [
|
|
316
|
+
const v = W(), x = [
|
|
317
|
+
{ offset: "13.62%", color: v.palette.chartMono.chartMono2 },
|
|
318
|
+
{ offset: "36.67%", color: v.palette.chartMono.chartMono3 },
|
|
319
|
+
{ offset: "59.72%", color: v.palette.chartMono.chartMono4 },
|
|
320
|
+
{ offset: "83.46%", color: v.palette.chartMono.chartMono5 }
|
|
321
|
+
], [C, b] = Io(
|
|
96
322
|
t,
|
|
97
|
-
|
|
323
|
+
i,
|
|
98
324
|
r,
|
|
99
|
-
|
|
100
|
-
), [k, g] =
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
325
|
+
n
|
|
326
|
+
), [k, g] = Ao(
|
|
327
|
+
C,
|
|
328
|
+
b,
|
|
329
|
+
n,
|
|
330
|
+
h,
|
|
105
331
|
u
|
|
106
|
-
),
|
|
107
|
-
return /* @__PURE__ */
|
|
332
|
+
), y = lt.arc().innerRadius(d).outerRadius(p).startAngle(C).endAngle(b).padAngle(0.02).cornerRadius(8), I = lt.arc().innerRadius(d).outerRadius(p).startAngle(k).endAngle(g).padAngle(0.02).cornerRadius(8);
|
|
333
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
108
334
|
/* @__PURE__ */ e(
|
|
109
335
|
"path",
|
|
110
336
|
{
|
|
111
|
-
d:
|
|
112
|
-
fill:
|
|
337
|
+
d: y({}),
|
|
338
|
+
fill: f ? v.palette.divider : o
|
|
113
339
|
}
|
|
114
340
|
),
|
|
115
|
-
|
|
341
|
+
f && /* @__PURE__ */ e("path", { d: I({}), fill: "url(#arcGradient)" }),
|
|
116
342
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
117
343
|
"linearGradient",
|
|
118
344
|
{
|
|
@@ -123,82 +349,82 @@ const Io = ({
|
|
|
123
349
|
x2: a - c * 0.8 * Math.cos(Math.PI / 1.35),
|
|
124
350
|
y1: l + c * 0.8 * Math.sin(Math.PI / 1.35),
|
|
125
351
|
y2: l - c * 0.8 * Math.sin(Math.PI / 1.35),
|
|
126
|
-
children: x.map((
|
|
352
|
+
children: x.map((G, O) => /* @__PURE__ */ e("stop", { offset: G.offset, stopColor: G.color }, O))
|
|
127
353
|
}
|
|
128
354
|
) })
|
|
129
355
|
] });
|
|
130
|
-
},
|
|
356
|
+
}, Nt = ({
|
|
131
357
|
arcRadius: t = 100,
|
|
132
|
-
healthScore:
|
|
133
|
-
size:
|
|
358
|
+
healthScore: n,
|
|
359
|
+
size: o = "L",
|
|
134
360
|
dialScoreData: r,
|
|
135
|
-
minValue:
|
|
361
|
+
minValue: i = 0,
|
|
136
362
|
maxValue: a = 100,
|
|
137
363
|
margin: l,
|
|
138
364
|
markerColor: c,
|
|
139
365
|
healthScoreStatus: d,
|
|
140
366
|
footerCenterContent: p,
|
|
141
367
|
footerLeftContent: u,
|
|
142
|
-
footerRightContent:
|
|
143
|
-
isFinacialStrengthGraph:
|
|
368
|
+
footerRightContent: h,
|
|
369
|
+
isFinacialStrengthGraph: f = !1
|
|
144
370
|
}) => {
|
|
145
|
-
const
|
|
371
|
+
const v = W(), x = -Math.PI / 1.35, C = Math.PI / 1.35, b = C - x, k = b / (a - i), g = (n - i) * k, y = x + g + 0.02, I = o !== "SM" ? 0.1 : 0.12, G = t, O = t * (1 - I), $ = G * 2, F = $ / 2, K = $ / 2, fe = (O + G) / 2, be = n !== 25 && n !== 50 && n !== 75 && n !== 100 ? 0 : 0.12, [X, re] = To(fe, y, be), ce = n / 25, U = {
|
|
146
372
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
147
373
|
M: { markerSize: 8, healthScoreFontSize: 48 },
|
|
148
374
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
149
|
-
},
|
|
375
|
+
}, V = {
|
|
150
376
|
top: 0,
|
|
151
377
|
right: 0,
|
|
152
378
|
bottom: 0,
|
|
153
379
|
left: 0,
|
|
154
380
|
...l
|
|
155
|
-
},
|
|
156
|
-
return /* @__PURE__ */
|
|
381
|
+
}, le = p === 0 ? gn : yn, de = o !== "SM" ? 3 : 1, xe = de * 4, N = U[o].markerSize * 2 + xe;
|
|
382
|
+
return /* @__PURE__ */ s(
|
|
157
383
|
_,
|
|
158
384
|
{
|
|
159
385
|
sx: {
|
|
160
|
-
width:
|
|
161
|
-
height:
|
|
386
|
+
width: $,
|
|
387
|
+
height: o === "SM" ? $ - 7 : $,
|
|
162
388
|
position: "relative",
|
|
163
389
|
alignSelf: "center",
|
|
164
390
|
overflow: "visible"
|
|
165
391
|
},
|
|
166
392
|
children: [
|
|
167
393
|
/* @__PURE__ */ e(
|
|
168
|
-
|
|
394
|
+
pn,
|
|
169
395
|
{
|
|
170
|
-
height:
|
|
396
|
+
height: o === "SM" ? $ - 7 : $,
|
|
171
397
|
hideLegend: !0,
|
|
172
|
-
margin:
|
|
398
|
+
margin: V,
|
|
173
399
|
series: [
|
|
174
400
|
{
|
|
175
401
|
data: r,
|
|
176
|
-
innerRadius:
|
|
177
|
-
outerRadius:
|
|
178
|
-
startAngle: Math.round(
|
|
402
|
+
innerRadius: O,
|
|
403
|
+
outerRadius: G,
|
|
404
|
+
startAngle: Math.round(ut(x)),
|
|
179
405
|
// Use Math.degrees to convert
|
|
180
|
-
endAngle: Math.round(
|
|
406
|
+
endAngle: Math.round(ut(C))
|
|
181
407
|
// Use Math.degrees to convert
|
|
182
408
|
}
|
|
183
409
|
],
|
|
184
410
|
skipAnimation: !0,
|
|
185
411
|
slots: {
|
|
186
|
-
pieArc: (
|
|
187
|
-
|
|
412
|
+
pieArc: (Ce) => /* @__PURE__ */ e(
|
|
413
|
+
Ho,
|
|
188
414
|
{
|
|
189
|
-
arcColor:
|
|
415
|
+
arcColor: Ce.color,
|
|
190
416
|
arcRadius: t,
|
|
191
417
|
arcStartAngle: x,
|
|
192
|
-
centerX:
|
|
193
|
-
centerY:
|
|
194
|
-
dataIndex:
|
|
418
|
+
centerX: F,
|
|
419
|
+
centerY: K,
|
|
420
|
+
dataIndex: Ce.dataIndex,
|
|
195
421
|
dialScoreData: r,
|
|
196
|
-
innerArcRadius:
|
|
197
|
-
isFinacialStrengthGraph:
|
|
198
|
-
outterArcRadius:
|
|
199
|
-
progressEndAngle:
|
|
200
|
-
totalAngularSpan:
|
|
201
|
-
unitsPerSegment:
|
|
422
|
+
innerArcRadius: O,
|
|
423
|
+
isFinacialStrengthGraph: f,
|
|
424
|
+
outterArcRadius: G,
|
|
425
|
+
progressEndAngle: y,
|
|
426
|
+
totalAngularSpan: b,
|
|
427
|
+
unitsPerSegment: ce
|
|
202
428
|
}
|
|
203
429
|
)
|
|
204
430
|
},
|
|
@@ -207,30 +433,30 @@ const Io = ({
|
|
|
207
433
|
stroke: "none"
|
|
208
434
|
}
|
|
209
435
|
},
|
|
210
|
-
width:
|
|
436
|
+
width: $
|
|
211
437
|
}
|
|
212
438
|
),
|
|
213
|
-
|
|
439
|
+
n >= i && n <= a && /* @__PURE__ */ e(
|
|
214
440
|
"svg",
|
|
215
441
|
{
|
|
216
|
-
height:
|
|
442
|
+
height: N,
|
|
217
443
|
style: {
|
|
218
444
|
position: "absolute",
|
|
219
|
-
left:
|
|
220
|
-
top:
|
|
445
|
+
left: F + X - U[o].markerSize - 5,
|
|
446
|
+
top: K + re - U[o].markerSize - 5,
|
|
221
447
|
overflow: "visible"
|
|
222
448
|
},
|
|
223
|
-
viewBox: `${
|
|
224
|
-
width:
|
|
449
|
+
viewBox: `${F + X - U[o].markerSize - 5} ${K + re - U[o].markerSize - 5} ${N} ${N}`,
|
|
450
|
+
width: N,
|
|
225
451
|
children: /* @__PURE__ */ e(
|
|
226
452
|
"circle",
|
|
227
453
|
{
|
|
228
|
-
cx:
|
|
229
|
-
cy:
|
|
230
|
-
fill:
|
|
231
|
-
r:
|
|
232
|
-
stroke:
|
|
233
|
-
strokeWidth:
|
|
454
|
+
cx: F + X,
|
|
455
|
+
cy: K + re,
|
|
456
|
+
fill: v.palette.common.white,
|
|
457
|
+
r: U[o].markerSize,
|
|
458
|
+
stroke: f ? "url(#arcGradient)" : c,
|
|
459
|
+
strokeWidth: de
|
|
234
460
|
}
|
|
235
461
|
)
|
|
236
462
|
}
|
|
@@ -240,29 +466,29 @@ const Io = ({
|
|
|
240
466
|
{
|
|
241
467
|
sx: {
|
|
242
468
|
position: "absolute",
|
|
243
|
-
top: `${
|
|
244
|
-
left: `${
|
|
469
|
+
top: `${K}px`,
|
|
470
|
+
left: `${F}px`,
|
|
245
471
|
transform: "translate(-50%, -50%)",
|
|
246
472
|
textAlign: "center"
|
|
247
473
|
},
|
|
248
|
-
children: /* @__PURE__ */
|
|
474
|
+
children: /* @__PURE__ */ s(
|
|
249
475
|
_,
|
|
250
476
|
{
|
|
251
477
|
spacing: 1,
|
|
252
|
-
sx: { alignItems: "center", justifyContent: "center", gap:
|
|
478
|
+
sx: { alignItems: "center", justifyContent: "center", gap: o !== "M" ? 10 : 3 },
|
|
253
479
|
children: [
|
|
254
480
|
/* @__PURE__ */ e(
|
|
255
|
-
|
|
481
|
+
A,
|
|
256
482
|
{
|
|
257
483
|
sx: {
|
|
258
|
-
fontSize:
|
|
259
|
-
lineHeight:
|
|
484
|
+
fontSize: U[o].healthScoreFontSize,
|
|
485
|
+
lineHeight: o !== "SM" ? "48px" : "100%"
|
|
260
486
|
},
|
|
261
|
-
variant: "
|
|
262
|
-
children:
|
|
487
|
+
variant: "h1",
|
|
488
|
+
children: n
|
|
263
489
|
}
|
|
264
490
|
),
|
|
265
|
-
|
|
491
|
+
o !== "SM" && /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: o === "L" ? "body1" : "body2", children: d })
|
|
266
492
|
]
|
|
267
493
|
}
|
|
268
494
|
)
|
|
@@ -273,12 +499,12 @@ const Io = ({
|
|
|
273
499
|
{
|
|
274
500
|
sx: {
|
|
275
501
|
position: "absolute",
|
|
276
|
-
top: `${
|
|
277
|
-
left: `${
|
|
502
|
+
top: `${K * 2 * 0.83}px`,
|
|
503
|
+
left: `${F}px`,
|
|
278
504
|
transform: "translate(-50%, -50%)",
|
|
279
505
|
textAlign: "center"
|
|
280
506
|
},
|
|
281
|
-
children: typeof p == "number" ? /* @__PURE__ */
|
|
507
|
+
children: typeof p == "number" ? /* @__PURE__ */ s(
|
|
282
508
|
_,
|
|
283
509
|
{
|
|
284
510
|
sx: {
|
|
@@ -288,9 +514,9 @@ const Io = ({
|
|
|
288
514
|
mt: 24
|
|
289
515
|
},
|
|
290
516
|
children: [
|
|
291
|
-
p > 0 ? /* @__PURE__ */ e(
|
|
517
|
+
p > 0 ? /* @__PURE__ */ e(hn, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(le, { size: 16, sx: { color: "text.secondary" } }),
|
|
292
518
|
/* @__PURE__ */ e(
|
|
293
|
-
|
|
519
|
+
A,
|
|
294
520
|
{
|
|
295
521
|
sx: {
|
|
296
522
|
fontWeight: 600,
|
|
@@ -302,7 +528,7 @@ const Io = ({
|
|
|
302
528
|
)
|
|
303
529
|
]
|
|
304
530
|
}
|
|
305
|
-
) : /* @__PURE__ */ e(
|
|
531
|
+
) : /* @__PURE__ */ e(A, { sx: { color: "text.secondary" }, variant: "subtitle2", children: p })
|
|
306
532
|
}
|
|
307
533
|
),
|
|
308
534
|
u !== void 0 && /* @__PURE__ */ e(
|
|
@@ -310,136 +536,136 @@ const Io = ({
|
|
|
310
536
|
{
|
|
311
537
|
sx: {
|
|
312
538
|
position: "absolute",
|
|
313
|
-
top: `${
|
|
314
|
-
left: `${
|
|
539
|
+
top: `${K * 2 * 0.83}px`,
|
|
540
|
+
left: `${F - F / 2}px`,
|
|
315
541
|
// shift left from center
|
|
316
542
|
transform: "translate(-50%, -50%)",
|
|
317
543
|
textAlign: "left"
|
|
318
544
|
},
|
|
319
|
-
children: /* @__PURE__ */ e(
|
|
545
|
+
children: /* @__PURE__ */ e(A, { variant: "body1", children: u })
|
|
320
546
|
}
|
|
321
547
|
),
|
|
322
|
-
|
|
548
|
+
h !== void 0 && /* @__PURE__ */ e(
|
|
323
549
|
M,
|
|
324
550
|
{
|
|
325
551
|
sx: {
|
|
326
552
|
position: "absolute",
|
|
327
|
-
top: `${
|
|
328
|
-
left: `${
|
|
553
|
+
top: `${K * 2 * 0.83}px`,
|
|
554
|
+
left: `${F + F / 2}px`,
|
|
329
555
|
transform: "translate(-50%, -50%)",
|
|
330
556
|
textAlign: "right"
|
|
331
557
|
},
|
|
332
|
-
children: /* @__PURE__ */ e(
|
|
558
|
+
children: /* @__PURE__ */ e(A, { variant: "body1", children: h })
|
|
333
559
|
}
|
|
334
560
|
)
|
|
335
561
|
]
|
|
336
562
|
}
|
|
337
563
|
);
|
|
338
|
-
},
|
|
564
|
+
}, zt = w(
|
|
339
565
|
({
|
|
340
566
|
arcRadius: t,
|
|
341
|
-
size:
|
|
342
|
-
healthScore:
|
|
567
|
+
size: n = "L",
|
|
568
|
+
healthScore: o,
|
|
343
569
|
footerCenterContent: r,
|
|
344
|
-
margin:
|
|
570
|
+
margin: i
|
|
345
571
|
}) => {
|
|
346
572
|
const a = [
|
|
347
573
|
{ id: 1, label: "Group A", value: 25 },
|
|
348
574
|
{ id: 2, label: "Group B", value: 25 },
|
|
349
575
|
{ id: 3, label: "Group C", value: 25 },
|
|
350
576
|
{ id: 4, label: "Group D", value: 25 }
|
|
351
|
-
], { finstrong: l } =
|
|
577
|
+
], { finstrong: l } = S(), c = nt(o, l);
|
|
352
578
|
return /* @__PURE__ */ e(
|
|
353
|
-
|
|
579
|
+
Nt,
|
|
354
580
|
{
|
|
355
581
|
arcRadius: t,
|
|
356
582
|
dialScoreData: a,
|
|
357
|
-
footerCenterContent:
|
|
358
|
-
healthScore:
|
|
583
|
+
footerCenterContent: n === "L" ? l.footer_center_content_updated_just_now : r,
|
|
584
|
+
healthScore: o,
|
|
359
585
|
healthScoreStatus: c.status,
|
|
360
586
|
isFinacialStrengthGraph: !0,
|
|
361
|
-
margin:
|
|
362
|
-
size:
|
|
587
|
+
margin: i,
|
|
588
|
+
size: n
|
|
363
589
|
}
|
|
364
590
|
);
|
|
365
591
|
}
|
|
366
|
-
),
|
|
592
|
+
), Ko = w(
|
|
367
593
|
({
|
|
368
594
|
arcRadius: t,
|
|
369
|
-
size:
|
|
370
|
-
healthScore:
|
|
595
|
+
size: n = "L",
|
|
596
|
+
healthScore: o,
|
|
371
597
|
maxValue: r = 850,
|
|
372
|
-
minValue:
|
|
598
|
+
minValue: i = 300,
|
|
373
599
|
footerCenterContent: a
|
|
374
600
|
}) => {
|
|
375
|
-
const c =
|
|
601
|
+
const c = W().palette.mode === "dark", d = [
|
|
376
602
|
{
|
|
377
603
|
id: 1,
|
|
378
604
|
label: "Poor",
|
|
379
605
|
value: 29,
|
|
380
|
-
color: c ?
|
|
606
|
+
color: c ? Z.POOR : Q.POOR
|
|
381
607
|
},
|
|
382
608
|
{
|
|
383
609
|
id: 2,
|
|
384
610
|
label: "Fair",
|
|
385
611
|
value: 25,
|
|
386
|
-
color: c ?
|
|
612
|
+
color: c ? Z.FAIR : Q.FAIR
|
|
387
613
|
},
|
|
388
614
|
{
|
|
389
615
|
id: 3,
|
|
390
616
|
label: "Good",
|
|
391
617
|
value: 17,
|
|
392
|
-
color: c ?
|
|
618
|
+
color: c ? Z.GOOD : Q.GOOD
|
|
393
619
|
},
|
|
394
620
|
{
|
|
395
621
|
id: 4,
|
|
396
622
|
label: "Very Good",
|
|
397
623
|
value: 17,
|
|
398
|
-
color: c ?
|
|
624
|
+
color: c ? Z.VERY_GOOD : Q.VERY_GOOD
|
|
399
625
|
},
|
|
400
626
|
{
|
|
401
627
|
id: 5,
|
|
402
628
|
label: "Exceptional",
|
|
403
629
|
value: 12,
|
|
404
|
-
color: c ?
|
|
630
|
+
color: c ? Z.EXCEPTIONAL : Q.EXCEPTIONAL
|
|
405
631
|
}
|
|
406
|
-
], { finstrong: p } =
|
|
407
|
-
if (!u) return /* @__PURE__ */ e(
|
|
408
|
-
const { status:
|
|
409
|
-
|
|
632
|
+
], { finstrong: p } = S(), { isCopyLoaded: u } = ne();
|
|
633
|
+
if (!u) return /* @__PURE__ */ e(ee, {});
|
|
634
|
+
const { status: h, color: f = "none" } = Ft(
|
|
635
|
+
o,
|
|
410
636
|
c,
|
|
411
637
|
p.credit_score_status
|
|
412
638
|
);
|
|
413
639
|
return /* @__PURE__ */ e(
|
|
414
|
-
|
|
640
|
+
Nt,
|
|
415
641
|
{
|
|
416
642
|
arcRadius: t,
|
|
417
643
|
dialScoreData: d,
|
|
418
644
|
footerCenterContent: a,
|
|
419
|
-
footerLeftContent:
|
|
645
|
+
footerLeftContent: i,
|
|
420
646
|
footerRightContent: r,
|
|
421
|
-
healthScore:
|
|
422
|
-
healthScoreStatus:
|
|
423
|
-
markerColor:
|
|
647
|
+
healthScore: o,
|
|
648
|
+
healthScoreStatus: h,
|
|
649
|
+
markerColor: f,
|
|
424
650
|
maxValue: r,
|
|
425
|
-
minValue:
|
|
426
|
-
size:
|
|
651
|
+
minValue: i,
|
|
652
|
+
size: n
|
|
427
653
|
}
|
|
428
654
|
);
|
|
429
655
|
}
|
|
430
|
-
),
|
|
656
|
+
), We = ({
|
|
431
657
|
drawerType: t,
|
|
432
|
-
isDashboard:
|
|
433
|
-
hasIcon:
|
|
658
|
+
isDashboard: n = !1,
|
|
659
|
+
hasIcon: o = !0,
|
|
434
660
|
buttonText: r,
|
|
435
|
-
title:
|
|
661
|
+
title: i,
|
|
436
662
|
titleDrawer: a,
|
|
437
663
|
description: l,
|
|
438
664
|
sx: c
|
|
439
665
|
}) => {
|
|
440
|
-
const [d, p] =
|
|
441
|
-
return t &&
|
|
442
|
-
|
|
666
|
+
const [d, p] = m.useState(!1), { connect: u, finstrong: h } = S(), { config: f } = qe();
|
|
667
|
+
return t && f.show_connections_widget_in_master ? /* @__PURE__ */ s(
|
|
668
|
+
Y,
|
|
443
669
|
{
|
|
444
670
|
sx: {
|
|
445
671
|
pb: 24,
|
|
@@ -449,40 +675,40 @@ const Io = ({
|
|
|
449
675
|
...c
|
|
450
676
|
},
|
|
451
677
|
children: [
|
|
452
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ s(
|
|
453
679
|
_,
|
|
454
680
|
{
|
|
455
681
|
sx: {
|
|
456
682
|
gap: 8,
|
|
457
|
-
...
|
|
683
|
+
...n && { flexDirection: "row", alignItems: "center" }
|
|
458
684
|
},
|
|
459
685
|
children: [
|
|
460
|
-
|
|
461
|
-
/* @__PURE__ */ e(
|
|
686
|
+
o && /* @__PURE__ */ e(ft, { sx: { height: 20, width: 20 } }),
|
|
687
|
+
/* @__PURE__ */ e(j, { className: "connect-more-accounts-title", sx: { ...n && { fontSize: 15 } }, children: i || h.connect_more_accounts_title })
|
|
462
688
|
]
|
|
463
689
|
}
|
|
464
690
|
),
|
|
465
691
|
/* @__PURE__ */ e(
|
|
466
|
-
|
|
692
|
+
A,
|
|
467
693
|
{
|
|
468
694
|
className: "connect-more-accounts-description",
|
|
469
695
|
sx: { color: "text.secondary", mt: 8 },
|
|
470
696
|
variant: "subtitle1",
|
|
471
|
-
children: l ||
|
|
697
|
+
children: l || h.connect_more_accounts_description
|
|
472
698
|
}
|
|
473
699
|
),
|
|
474
700
|
/* @__PURE__ */ e(
|
|
475
|
-
|
|
701
|
+
E,
|
|
476
702
|
{
|
|
477
|
-
endIcon: /* @__PURE__ */ e(
|
|
703
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
478
704
|
onClick: () => p(!0),
|
|
479
705
|
size: "small",
|
|
480
706
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
481
|
-
children: /* @__PURE__ */ e(
|
|
707
|
+
children: /* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "body2", children: r || h.connect_more_accounts_button })
|
|
482
708
|
}
|
|
483
709
|
),
|
|
484
710
|
t === "connectDrawer" && /* @__PURE__ */ e(
|
|
485
|
-
|
|
711
|
+
se,
|
|
486
712
|
{
|
|
487
713
|
onClose: () => p(!1),
|
|
488
714
|
showConnectWidget: d,
|
|
@@ -490,7 +716,7 @@ const Io = ({
|
|
|
490
716
|
}
|
|
491
717
|
),
|
|
492
718
|
t === "connectionsDrawer" && /* @__PURE__ */ e(
|
|
493
|
-
|
|
719
|
+
vt,
|
|
494
720
|
{
|
|
495
721
|
onClose: () => p(!1),
|
|
496
722
|
showConnectionsWidget: d,
|
|
@@ -501,46 +727,48 @@ const Io = ({
|
|
|
501
727
|
}
|
|
502
728
|
) : null;
|
|
503
729
|
};
|
|
504
|
-
var
|
|
505
|
-
const
|
|
506
|
-
const { common:
|
|
507
|
-
|
|
508
|
-
},
|
|
730
|
+
var ye = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(ye || {});
|
|
731
|
+
const Vo = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", jo = ({ isOpen: t, onClose: n }) => {
|
|
732
|
+
const { common: o, finstrong: r } = S(), { isMobile: i } = tt(), { updateUser: a, user: l } = oe(), [c, d] = m.useState(l.credit_score || 0), p = !isNaN(c), u = () => {
|
|
733
|
+
n(), setTimeout(() => d(l.credit_score || 0), 300);
|
|
734
|
+
}, h = () => {
|
|
509
735
|
!c || c === l.credit_score || a({ ...l, credit_score: c });
|
|
510
736
|
};
|
|
511
737
|
return /* @__PURE__ */ e(
|
|
512
|
-
|
|
738
|
+
Wn,
|
|
513
739
|
{
|
|
514
|
-
copy: { close_aria:
|
|
740
|
+
copy: { close_aria: o.close_aria, title: r.edit_credit_score },
|
|
515
741
|
disablePrimaryButton: !c || !p,
|
|
516
742
|
isOpen: t,
|
|
517
743
|
maxWidth: "xs",
|
|
518
744
|
onClose: u,
|
|
519
|
-
onPrimaryAction:
|
|
745
|
+
onPrimaryAction: h,
|
|
520
746
|
primaryColor: "primary",
|
|
521
|
-
primaryText:
|
|
747
|
+
primaryText: o.save_button,
|
|
522
748
|
sx: {
|
|
523
749
|
"& .MuiDialog-paper": {
|
|
524
|
-
minWidth:
|
|
750
|
+
minWidth: i ? "100%" : 400
|
|
525
751
|
}
|
|
526
752
|
},
|
|
527
753
|
children: /* @__PURE__ */ e(
|
|
528
754
|
"form",
|
|
529
755
|
{
|
|
530
|
-
onSubmit: (
|
|
531
|
-
|
|
756
|
+
onSubmit: (f) => {
|
|
757
|
+
f.preventDefault(), h(), u();
|
|
532
758
|
},
|
|
533
759
|
children: /* @__PURE__ */ e(
|
|
534
|
-
|
|
760
|
+
Pe,
|
|
535
761
|
{
|
|
536
762
|
error: !p,
|
|
537
763
|
fullWidth: !0,
|
|
538
764
|
inputMode: "numeric",
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
765
|
+
onChange: (f) => d(Number(f.target.value)),
|
|
766
|
+
slotProps: {
|
|
767
|
+
htmlInput: {
|
|
768
|
+
noValidate: !0,
|
|
769
|
+
pattern: "[0-9]*"
|
|
770
|
+
}
|
|
542
771
|
},
|
|
543
|
-
onChange: (b) => d(Number(b.target.value)),
|
|
544
772
|
value: p ? c : ""
|
|
545
773
|
}
|
|
546
774
|
)
|
|
@@ -548,8 +776,8 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
548
776
|
)
|
|
549
777
|
}
|
|
550
778
|
);
|
|
551
|
-
},
|
|
552
|
-
const
|
|
779
|
+
}, Ht = w(jo), Yo = ({ chartFor: t }) => {
|
|
780
|
+
const n = W(), o = n.palette.mode === "dark", { monthlySummaries: r } = L(), { user: i } = oe(), { finstrong: a } = S(), [l, { width: c }] = wt(), d = {
|
|
553
781
|
savingsOverTime: {
|
|
554
782
|
icon: "trending_up",
|
|
555
783
|
title: a.key_indicators_save.zero_state_title,
|
|
@@ -578,62 +806,62 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
578
806
|
title: a.credit_over_time_title,
|
|
579
807
|
valueKey: "credit_score"
|
|
580
808
|
}
|
|
581
|
-
}[t],
|
|
582
|
-
let
|
|
583
|
-
if (
|
|
584
|
-
const { color:
|
|
585
|
-
|
|
586
|
-
|
|
809
|
+
}[t], h = zo(r, u.valueKey), f = r.map((O) => O[u.valueKey]), v = Math.max(...f), x = Math.min(...f), C = () => v >= 1e6 ? { formatter: "0.000a", leftMargin: -7 } : v >= 1e3 ? { formatter: "0a", leftMargin: -27 } : { formatter: "0a", leftMargin: -32 }, { formatter: b, leftMargin: k } = C(), g = u.title, y = t === "creditOverTime";
|
|
810
|
+
let I;
|
|
811
|
+
if (y) {
|
|
812
|
+
const { color: O } = Ft(
|
|
813
|
+
i?.credit_score ?? 0,
|
|
814
|
+
o,
|
|
587
815
|
a.credit_score_status
|
|
588
816
|
);
|
|
589
|
-
|
|
817
|
+
I = O;
|
|
590
818
|
}
|
|
591
|
-
const
|
|
592
|
-
return /* @__PURE__ */ e(
|
|
593
|
-
/* @__PURE__ */ e(
|
|
819
|
+
const G = h.some((O) => O.y !== 0);
|
|
820
|
+
return /* @__PURE__ */ e(Y, { ref: l, sx: { backgroundColor: "background.paper" }, children: G ? /* @__PURE__ */ s(_, { gap: 8, sx: { pl: 18 }, children: [
|
|
821
|
+
/* @__PURE__ */ e(A, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
|
|
594
822
|
/* @__PURE__ */ e(
|
|
595
|
-
|
|
823
|
+
Je,
|
|
596
824
|
{
|
|
597
|
-
areaColor:
|
|
598
|
-
axisColor:
|
|
825
|
+
areaColor: I,
|
|
826
|
+
axisColor: n.palette.divider,
|
|
599
827
|
baseline: "min",
|
|
600
828
|
chartFor: t,
|
|
601
|
-
colors: [
|
|
602
|
-
curveType:
|
|
603
|
-
datasets:
|
|
829
|
+
colors: [n.palette.primary.main],
|
|
830
|
+
curveType: y ? "linear" : "monotoneX",
|
|
831
|
+
datasets: h ? [h] : [],
|
|
604
832
|
height: 244,
|
|
605
|
-
labelFontColor:
|
|
606
|
-
labelFontSize:
|
|
833
|
+
labelFontColor: y ? "text.primary" : "",
|
|
834
|
+
labelFontSize: y ? 13 : void 0,
|
|
607
835
|
labels: [a.key_indicators_label],
|
|
608
|
-
margin: { left: k, top:
|
|
609
|
-
markStyles: (
|
|
836
|
+
margin: { left: k, top: y ? 25 : 15, right: 20 },
|
|
837
|
+
markStyles: (O) => y ? {
|
|
610
838
|
markLabelStyles: {
|
|
611
839
|
marginLeft: 16,
|
|
612
|
-
transform:
|
|
840
|
+
transform: O === h.length - 1 ? "translateX(-16px)" : "translateX(16px)",
|
|
613
841
|
fontWeight: 600,
|
|
614
|
-
fill:
|
|
842
|
+
fill: n.palette.text.primary
|
|
615
843
|
},
|
|
616
|
-
stroke:
|
|
844
|
+
stroke: I
|
|
617
845
|
} : {},
|
|
618
|
-
maxRange:
|
|
846
|
+
maxRange: y ? 850 : void 0,
|
|
619
847
|
minRange: (() => {
|
|
620
|
-
if (
|
|
848
|
+
if (y)
|
|
621
849
|
return x < 300 ? 0 : 300;
|
|
622
850
|
})(),
|
|
623
851
|
showArea: !0,
|
|
624
|
-
showAverage: !
|
|
625
|
-
showMark: !
|
|
626
|
-
showMarkLabel:
|
|
852
|
+
showAverage: !y,
|
|
853
|
+
showMark: !y,
|
|
854
|
+
showMarkLabel: y,
|
|
627
855
|
showXAxis: !0,
|
|
628
|
-
showYAxis:
|
|
629
|
-
showYAxisTicks:
|
|
856
|
+
showYAxis: y,
|
|
857
|
+
showYAxisTicks: y,
|
|
630
858
|
useCustomMark: !0,
|
|
631
|
-
valueFormatterString:
|
|
859
|
+
valueFormatterString: y ? void 0 : b,
|
|
632
860
|
width: c < 342 ? c - 48 : 342
|
|
633
861
|
}
|
|
634
862
|
)
|
|
635
863
|
] }) : /* @__PURE__ */ e(
|
|
636
|
-
|
|
864
|
+
Be,
|
|
637
865
|
{
|
|
638
866
|
header: d.title,
|
|
639
867
|
icon: d.icon,
|
|
@@ -649,43 +877,42 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
649
877
|
lineHeight: "24px",
|
|
650
878
|
mt: 8
|
|
651
879
|
}
|
|
652
|
-
}
|
|
653
|
-
variant: "no-buttons"
|
|
880
|
+
}
|
|
654
881
|
}
|
|
655
882
|
) });
|
|
656
|
-
},
|
|
657
|
-
const { healthScoreChangeReports: t } =
|
|
658
|
-
return /* @__PURE__ */
|
|
659
|
-
/* @__PURE__ */
|
|
883
|
+
}, ot = w(Yo), Xo = () => {
|
|
884
|
+
const { healthScoreChangeReports: t } = L(), { finstrong: n } = S(), { user: o } = oe(), { availableWidth: r } = Pn(), { isSmallMobile: i } = tt(r), [a, l] = m.useState(!1), c = t.at(-1);
|
|
885
|
+
return /* @__PURE__ */ s(M, { children: [
|
|
886
|
+
/* @__PURE__ */ s(_, { sx: { gap: 28 }, children: [
|
|
660
887
|
/* @__PURE__ */ e(
|
|
661
|
-
|
|
888
|
+
Ko,
|
|
662
889
|
{
|
|
663
|
-
arcRadius:
|
|
890
|
+
arcRadius: i ? 124 : 154,
|
|
664
891
|
footerCenterContent: c ? c.newer_credit_score - c.older_credit_score : 0,
|
|
665
|
-
healthScore:
|
|
666
|
-
size:
|
|
892
|
+
healthScore: o.credit_score ?? 0,
|
|
893
|
+
size: i ? "M" : "L"
|
|
667
894
|
}
|
|
668
895
|
),
|
|
669
|
-
/* @__PURE__ */ e(
|
|
670
|
-
/* @__PURE__ */ e(
|
|
896
|
+
/* @__PURE__ */ e(E, { onClick: () => l(!0), variant: "contained", children: n.credit_score_updated_score }),
|
|
897
|
+
/* @__PURE__ */ e(ot, { chartFor: "creditOverTime" })
|
|
671
898
|
] }),
|
|
672
|
-
/* @__PURE__ */ e(
|
|
899
|
+
/* @__PURE__ */ e(Ht, { isOpen: a, onClose: () => l(!1) })
|
|
673
900
|
] });
|
|
674
|
-
},
|
|
675
|
-
const { finstrong:
|
|
676
|
-
GOOD:
|
|
677
|
-
FAIR:
|
|
678
|
-
OFF_TRACK:
|
|
679
|
-
MISSING:
|
|
901
|
+
}, Uo = w(Xo), $e = ({ status: t }) => {
|
|
902
|
+
const { finstrong: n } = S(), o = Po(De[t]), r = {
|
|
903
|
+
GOOD: n.key_indicators_good,
|
|
904
|
+
FAIR: n.key_indicators_fair,
|
|
905
|
+
OFF_TRACK: n.key_indicators_off_track,
|
|
906
|
+
MISSING: n.key_indicators_missing
|
|
680
907
|
}[t];
|
|
681
908
|
return /* @__PURE__ */ e(
|
|
682
|
-
|
|
909
|
+
$n,
|
|
683
910
|
{
|
|
684
911
|
label: /* @__PURE__ */ e(
|
|
685
|
-
|
|
912
|
+
A,
|
|
686
913
|
{
|
|
687
914
|
fontWeight: 700,
|
|
688
|
-
sx: { color:
|
|
915
|
+
sx: { color: o.color, minHeight: 12 },
|
|
689
916
|
uppercase: !0,
|
|
690
917
|
variant: "tiny",
|
|
691
918
|
children: r
|
|
@@ -693,64 +920,64 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
693
920
|
),
|
|
694
921
|
size: "small",
|
|
695
922
|
sx: {
|
|
696
|
-
bgcolor:
|
|
923
|
+
bgcolor: o.backgroundColor,
|
|
697
924
|
height: 16
|
|
698
925
|
},
|
|
699
926
|
variant: "filled"
|
|
700
927
|
}
|
|
701
928
|
);
|
|
702
|
-
},
|
|
703
|
-
const { finstrong: t } =
|
|
704
|
-
return /* @__PURE__ */
|
|
705
|
-
/* @__PURE__ */ e(
|
|
706
|
-
/* @__PURE__ */ e(
|
|
929
|
+
}, qo = () => {
|
|
930
|
+
const { finstrong: t } = S(), { user: n } = oe(), o = Gt(n.credit_score ?? null);
|
|
931
|
+
return /* @__PURE__ */ s(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
932
|
+
/* @__PURE__ */ e(j, { children: t.credit_score_keep_strong_credit_score }),
|
|
933
|
+
/* @__PURE__ */ e($e, { status: o })
|
|
707
934
|
] });
|
|
708
|
-
},
|
|
935
|
+
}, Qo = w(qo), Zo = ({
|
|
709
936
|
additionalContent: t,
|
|
710
|
-
connectTitle:
|
|
711
|
-
connectDescription:
|
|
937
|
+
connectTitle: n,
|
|
938
|
+
connectDescription: o,
|
|
712
939
|
children: r,
|
|
713
|
-
description:
|
|
940
|
+
description: i,
|
|
714
941
|
drawerTitle: a,
|
|
715
942
|
isOpen: l,
|
|
716
943
|
loadConnectAccountsCard: c = !0,
|
|
717
944
|
onClose: d,
|
|
718
945
|
stickyComponent: p,
|
|
719
946
|
title: u,
|
|
720
|
-
drawerType:
|
|
947
|
+
drawerType: h
|
|
721
948
|
}) => {
|
|
722
|
-
const { finstrong:
|
|
723
|
-
if (
|
|
724
|
-
const
|
|
725
|
-
|
|
949
|
+
const { finstrong: f } = S(), { isCopyLoaded: v } = ne(), [x, C] = Rn(!1), b = Fn(null), k = st(() => {
|
|
950
|
+
if (b.current) {
|
|
951
|
+
const y = b.current.scrollTop > 0;
|
|
952
|
+
C((I) => I !== y ? y : I);
|
|
726
953
|
}
|
|
727
|
-
}, []), g =
|
|
728
|
-
(
|
|
729
|
-
if (
|
|
730
|
-
let
|
|
731
|
-
for (;
|
|
732
|
-
const { overflow:
|
|
733
|
-
if (
|
|
734
|
-
|
|
954
|
+
}, []), g = st(
|
|
955
|
+
(y) => {
|
|
956
|
+
if (b.current && b.current.removeEventListener("scroll", k), y) {
|
|
957
|
+
let I = y.parentElement;
|
|
958
|
+
for (; I; ) {
|
|
959
|
+
const { overflow: G, overflowY: O } = window.getComputedStyle(I);
|
|
960
|
+
if (G === "auto" || O === "auto" || G === "scroll" || O === "scroll") {
|
|
961
|
+
b.current = I, I.addEventListener("scroll", k, { passive: !0 });
|
|
735
962
|
break;
|
|
736
963
|
}
|
|
737
|
-
|
|
964
|
+
I = I.parentElement;
|
|
738
965
|
}
|
|
739
966
|
}
|
|
740
967
|
},
|
|
741
968
|
[k]
|
|
742
969
|
);
|
|
743
|
-
return
|
|
744
|
-
l ||
|
|
745
|
-
}, [l]),
|
|
746
|
-
|
|
747
|
-
}, [k]),
|
|
970
|
+
return ct(() => {
|
|
971
|
+
l || C(!1);
|
|
972
|
+
}, [l]), ct(() => () => {
|
|
973
|
+
b.current && b.current.removeEventListener("scroll", k);
|
|
974
|
+
}, [k]), v ? /* @__PURE__ */ e(ie, { isOpen: l, onClose: d, title: a || f.key_indicators, children: /* @__PURE__ */ s(
|
|
748
975
|
_,
|
|
749
976
|
{
|
|
750
977
|
ref: g,
|
|
751
978
|
sx: { backgroundColor: "background.default", height: "100%" },
|
|
752
979
|
children: [
|
|
753
|
-
(u ||
|
|
980
|
+
(u || i) && /* @__PURE__ */ s(
|
|
754
981
|
_,
|
|
755
982
|
{
|
|
756
983
|
sx: {
|
|
@@ -760,8 +987,8 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
760
987
|
pb: p ? 0 : 24
|
|
761
988
|
},
|
|
762
989
|
children: [
|
|
763
|
-
u && typeof u == "string" ? /* @__PURE__ */ e(
|
|
764
|
-
|
|
990
|
+
u && typeof u == "string" ? /* @__PURE__ */ e(j, { children: u }) : u,
|
|
991
|
+
i && /* @__PURE__ */ e(A, { sx: { lineHeight: "24px" }, children: i })
|
|
765
992
|
]
|
|
766
993
|
}
|
|
767
994
|
),
|
|
@@ -781,143 +1008,151 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
781
1008
|
}
|
|
782
1009
|
),
|
|
783
1010
|
t && /* @__PURE__ */ e(M, { children: t }),
|
|
784
|
-
/* @__PURE__ */
|
|
1011
|
+
/* @__PURE__ */ s(_, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
|
|
785
1012
|
r,
|
|
786
1013
|
c && /* @__PURE__ */ e(
|
|
787
|
-
|
|
1014
|
+
We,
|
|
788
1015
|
{
|
|
789
|
-
description:
|
|
790
|
-
drawerType:
|
|
1016
|
+
description: o,
|
|
1017
|
+
drawerType: h,
|
|
791
1018
|
isDashboard: !0,
|
|
792
1019
|
sx: { backgroundColor: "background.paper" },
|
|
793
|
-
title:
|
|
1020
|
+
title: n
|
|
794
1021
|
}
|
|
795
1022
|
)
|
|
796
1023
|
] })
|
|
797
1024
|
]
|
|
798
1025
|
}
|
|
799
|
-
) }) : /* @__PURE__ */ e(
|
|
800
|
-
},
|
|
1026
|
+
) }) : /* @__PURE__ */ e(ee, {});
|
|
1027
|
+
}, Kt = w(Zo), Jo = ({
|
|
801
1028
|
onClick: t,
|
|
802
|
-
shouldShowBalance:
|
|
803
|
-
loadAccounts:
|
|
1029
|
+
shouldShowBalance: n = !0,
|
|
1030
|
+
loadAccounts: o
|
|
804
1031
|
}) => {
|
|
805
|
-
const { config: r } =
|
|
1032
|
+
const { config: r } = qe(), { accounts: i } = S(), { selectedAccounts: a } = ne(), l = m.useCallback(
|
|
806
1033
|
(d) => {
|
|
807
1034
|
t?.(d);
|
|
808
1035
|
},
|
|
809
1036
|
[t]
|
|
810
|
-
), c =
|
|
1037
|
+
), c = m.useMemo(
|
|
811
1038
|
() => Array.from(new Set(a.map((d) => d.account_type))).filter(
|
|
812
|
-
(d) =>
|
|
1039
|
+
(d) => o ? o.includes(d) : !0
|
|
813
1040
|
),
|
|
814
|
-
[a,
|
|
1041
|
+
[a, o]
|
|
815
1042
|
);
|
|
816
|
-
return a.length ? /* @__PURE__ */ e(
|
|
1043
|
+
return a.length ? /* @__PURE__ */ e(m.Fragment, { children: c.map((d) => {
|
|
817
1044
|
const { accountsForType: p, totalBalanceForType: u } = a.reduce(
|
|
818
|
-
(
|
|
1045
|
+
(h, f) => (f.account_type === d && (h.accountsForType.push(f), h.totalBalanceForType += f.balance || 0), h),
|
|
819
1046
|
{ accountsForType: [], totalBalanceForType: 0 }
|
|
820
1047
|
);
|
|
821
|
-
return /* @__PURE__ */
|
|
822
|
-
|
|
1048
|
+
return /* @__PURE__ */ s(
|
|
1049
|
+
Le,
|
|
823
1050
|
{
|
|
824
|
-
subheader: /* @__PURE__ */ e(
|
|
825
|
-
/* @__PURE__ */ e(
|
|
826
|
-
|
|
1051
|
+
subheader: /* @__PURE__ */ e(Nn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ s(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
1052
|
+
/* @__PURE__ */ e(D, { bold: !0, variant: "caption", children: i.account_types[d] }),
|
|
1053
|
+
n && /* @__PURE__ */ e(D, { bold: !0, variant: "caption", children: B(u, "0,0.00") })
|
|
827
1054
|
] }) }),
|
|
828
1055
|
sx: { bgcolor: "background.paper" },
|
|
829
1056
|
children: [
|
|
830
|
-
p.map((
|
|
831
|
-
const { firstValue:
|
|
1057
|
+
p.map((h, f) => {
|
|
1058
|
+
const { firstValue: v } = Mt(
|
|
1059
|
+
h,
|
|
1060
|
+
i,
|
|
1061
|
+
r.display_available_balance_in_accounts
|
|
1062
|
+
), x = kt(h, {
|
|
832
1063
|
allowNickname: r?.show_account_nicknames_in_master
|
|
833
|
-
}),
|
|
834
|
-
/* @__PURE__ */ e(
|
|
1064
|
+
}), C = /* @__PURE__ */ s(H, { children: [
|
|
1065
|
+
/* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e(yt, { alt: "MX", institutionGuid: h.institution_guid ?? "" }) }),
|
|
835
1066
|
/* @__PURE__ */ e(
|
|
836
|
-
|
|
1067
|
+
me,
|
|
837
1068
|
{
|
|
838
|
-
primary: `${x}${
|
|
839
|
-
|
|
1069
|
+
primary: `${x}${h.account_number ? ` *${h.account_number}` : ""}`,
|
|
1070
|
+
slotProps: { primary: { noWrap: !0, pr: 4, variant: "body1" } }
|
|
840
1071
|
}
|
|
841
1072
|
),
|
|
842
|
-
|
|
1073
|
+
n && /* @__PURE__ */ e(A, { bold: !0, variant: "body2", children: B(v ?? 0, "0,0.00") })
|
|
843
1074
|
] });
|
|
844
|
-
return /* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */ e(
|
|
846
|
-
|
|
847
|
-
] },
|
|
1075
|
+
return /* @__PURE__ */ s(m.Fragment, { children: [
|
|
1076
|
+
/* @__PURE__ */ e(_e, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(St, { onClick: () => l(h), children: C }) : C }),
|
|
1077
|
+
f !== p.length - 1 && /* @__PURE__ */ e(ae, { variant: "inset" })
|
|
1078
|
+
] }, h.guid);
|
|
848
1079
|
}),
|
|
849
|
-
/* @__PURE__ */ e(
|
|
1080
|
+
/* @__PURE__ */ e(ae, {})
|
|
850
1081
|
]
|
|
851
1082
|
},
|
|
852
1083
|
d
|
|
853
1084
|
);
|
|
854
1085
|
}) }) : null;
|
|
855
|
-
},
|
|
856
|
-
const
|
|
1086
|
+
}, Vt = w(Jo), er = ({ loadAccounts: t, loadMoreLabel: n }) => {
|
|
1087
|
+
const o = W(), { config: r } = qe(), { connect: i, finstrong: a } = S(), { accounts: l } = S(), { selectedAccounts: c } = ne(), [d, p] = m.useState(!1), [u, h] = m.useState(!1), f = m.useMemo(
|
|
857
1088
|
() => c.filter(
|
|
858
|
-
(
|
|
1089
|
+
(C) => t ? t.includes(C.account_type) : !0
|
|
859
1090
|
),
|
|
860
1091
|
[c, t]
|
|
861
|
-
),
|
|
862
|
-
const { firstValue:
|
|
863
|
-
|
|
1092
|
+
), v = m.useMemo(() => f.slice(0, 3), [f]), x = (C) => {
|
|
1093
|
+
const { firstValue: b } = Mt(
|
|
1094
|
+
C,
|
|
1095
|
+
l,
|
|
1096
|
+
r.display_available_balance_in_accounts
|
|
1097
|
+
);
|
|
1098
|
+
return b;
|
|
864
1099
|
};
|
|
865
|
-
return
|
|
866
|
-
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${
|
|
867
|
-
/* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */ e(
|
|
1100
|
+
return f.length >= 1 ? /* @__PURE__ */ s(H, { children: [
|
|
1101
|
+
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${o.palette.divider}`, borderRadius: 2 }, children: v.map((C, b) => /* @__PURE__ */ s(m.Fragment, { children: [
|
|
1102
|
+
/* @__PURE__ */ s(_e, { sx: { px: 24 }, children: [
|
|
1103
|
+
/* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e(yt, { alt: "MX", institutionGuid: C.institution_guid ?? "" }) }),
|
|
869
1104
|
/* @__PURE__ */ e(
|
|
870
|
-
|
|
1105
|
+
me,
|
|
871
1106
|
{
|
|
872
|
-
primary: `${
|
|
1107
|
+
primary: `${kt(C, {
|
|
873
1108
|
allowNickname: r?.show_account_nicknames_in_master
|
|
874
1109
|
})}
|
|
875
|
-
${
|
|
876
|
-
|
|
1110
|
+
${C.account_number ? ` *${C.account_number}` : ""}`,
|
|
1111
|
+
slotProps: { primary: { noWrap: !0, pr: 4, variant: "body1" } }
|
|
877
1112
|
}
|
|
878
1113
|
),
|
|
879
|
-
/* @__PURE__ */ e(
|
|
1114
|
+
/* @__PURE__ */ e(A, { bold: !0, variant: "body2", children: B(x(C), "0,0.00") })
|
|
880
1115
|
] }),
|
|
881
|
-
|
|
882
|
-
] },
|
|
883
|
-
|
|
1116
|
+
b < v.length - 1 && /* @__PURE__ */ e(ae, { variant: "inset" })
|
|
1117
|
+
] }, C.guid)) }),
|
|
1118
|
+
f.length > 3 && /* @__PURE__ */ s(H, { children: [
|
|
884
1119
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
885
|
-
|
|
1120
|
+
E,
|
|
886
1121
|
{
|
|
887
|
-
endIcon: /* @__PURE__ */ e(
|
|
1122
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
888
1123
|
onClick: () => p(!0),
|
|
889
1124
|
size: "small",
|
|
890
1125
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
891
|
-
children: /* @__PURE__ */
|
|
892
|
-
|
|
1126
|
+
children: /* @__PURE__ */ s(D, { bold: !0, variant: "body1", children: [
|
|
1127
|
+
f.length - 3,
|
|
893
1128
|
" ",
|
|
894
|
-
|
|
1129
|
+
n
|
|
895
1130
|
] })
|
|
896
1131
|
}
|
|
897
1132
|
) }),
|
|
898
|
-
/* @__PURE__ */ e(
|
|
1133
|
+
/* @__PURE__ */ e(ie, { isOpen: d, onClose: () => p(!1), title: a.accounts, children: /* @__PURE__ */ e(Vt, { loadAccounts: t }) })
|
|
899
1134
|
] })
|
|
900
|
-
] }) : /* @__PURE__ */
|
|
1135
|
+
] }) : /* @__PURE__ */ s(H, { children: [
|
|
901
1136
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
902
|
-
|
|
1137
|
+
E,
|
|
903
1138
|
{
|
|
904
|
-
onClick: () =>
|
|
1139
|
+
onClick: () => h(!0),
|
|
905
1140
|
size: "small",
|
|
906
1141
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
907
1142
|
variant: "contained",
|
|
908
|
-
children: /* @__PURE__ */ e(
|
|
1143
|
+
children: /* @__PURE__ */ e(D, { bold: !0, variant: "body1", children: a.connect_more_accounts_button })
|
|
909
1144
|
}
|
|
910
1145
|
) }),
|
|
911
1146
|
/* @__PURE__ */ e(
|
|
912
|
-
|
|
1147
|
+
se,
|
|
913
1148
|
{
|
|
914
|
-
onClose: () =>
|
|
1149
|
+
onClose: () => h(!1),
|
|
915
1150
|
showConnectWidget: u,
|
|
916
|
-
title:
|
|
1151
|
+
title: i.mini_title
|
|
917
1152
|
}
|
|
918
1153
|
)
|
|
919
1154
|
] });
|
|
920
|
-
},
|
|
1155
|
+
}, jt = w(er), Me = ({ balance: t, title: n, sx: o }) => /* @__PURE__ */ s(
|
|
921
1156
|
_,
|
|
922
1157
|
{
|
|
923
1158
|
sx: {
|
|
@@ -927,111 +1162,115 @@ const To = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
927
1162
|
height: 72,
|
|
928
1163
|
justifyContent: "center",
|
|
929
1164
|
p: 12,
|
|
930
|
-
...
|
|
1165
|
+
...o
|
|
931
1166
|
},
|
|
932
1167
|
children: [
|
|
933
|
-
typeof t == "number" ? /* @__PURE__ */ e(
|
|
934
|
-
/* @__PURE__ */ e(
|
|
1168
|
+
typeof t == "number" ? /* @__PURE__ */ e(A, { variant: "h2", children: B(t, "0,0.00") }) : t,
|
|
1169
|
+
/* @__PURE__ */ e(A, { color: "text.secondary", fontWeight: "400", variant: "subtitle2", children: n })
|
|
935
1170
|
]
|
|
936
1171
|
}
|
|
937
1172
|
);
|
|
938
|
-
var R = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(R || {}),
|
|
939
|
-
const
|
|
940
|
-
const { finstrong:
|
|
941
|
-
{ id:
|
|
942
|
-
{ id:
|
|
943
|
-
{ id:
|
|
944
|
-
{ id:
|
|
1173
|
+
var R = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(R || {}), Ie = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(Ie || {}), te = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(te || {});
|
|
1174
|
+
const tr = ({ total: t }) => {
|
|
1175
|
+
const { finstrong: n } = S(), o = [
|
|
1176
|
+
{ id: te.Monthly, label: n.maintain_emergency_savings_monthly },
|
|
1177
|
+
{ id: te.BiWeekly, label: n.maintain_emergency_savings_bi_weekly },
|
|
1178
|
+
{ id: te.Weekly, label: n.maintain_emergency_savings_weekly },
|
|
1179
|
+
{ id: te.Daily, label: n.maintain_emergency_savings_daily }
|
|
945
1180
|
], r = {
|
|
946
|
-
[
|
|
947
|
-
[
|
|
948
|
-
[
|
|
949
|
-
[
|
|
950
|
-
},
|
|
951
|
-
{ id:
|
|
952
|
-
{ id:
|
|
953
|
-
{ id:
|
|
954
|
-
], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] =
|
|
955
|
-
|
|
956
|
-
), [
|
|
957
|
-
|
|
1181
|
+
[te.Monthly]: n.maintain_emergency_savings_estimated_period_monthly,
|
|
1182
|
+
[te.BiWeekly]: n.maintain_emergency_savings_estimated_period_bi_weekly,
|
|
1183
|
+
[te.Weekly]: n.maintain_emergency_savings_estimated_period_weekly,
|
|
1184
|
+
[te.Daily]: n.maintain_emergency_savings_estimated_period_daily
|
|
1185
|
+
}, i = [
|
|
1186
|
+
{ id: Ie.Months, label: n.maintain_emergency_savings_months },
|
|
1187
|
+
{ id: Ie.Years, label: n.maintain_emergency_savings_years },
|
|
1188
|
+
{ id: Ie.Days, label: n.maintain_emergency_savings_days }
|
|
1189
|
+
], a = Math.ceil((t + 1) / 1e3) * 1e3, [l, c] = m.useState(0), [d, p] = m.useState(mt(t)), [u, h] = m.useState(
|
|
1190
|
+
mt(t)
|
|
1191
|
+
), [f, v] = m.useState(a), [x, C] = m.useState(No(t)), [b, k] = m.useState(Ie.Months);
|
|
1192
|
+
m.useEffect(() => {
|
|
958
1193
|
c(
|
|
959
|
-
|
|
1194
|
+
_t({
|
|
960
1195
|
contribution: u,
|
|
961
|
-
goalAmount:
|
|
1196
|
+
goalAmount: f,
|
|
962
1197
|
goalPeriod: x,
|
|
963
|
-
targetPeriod:
|
|
1198
|
+
targetPeriod: b,
|
|
964
1199
|
totalSaved: t
|
|
965
1200
|
})
|
|
966
1201
|
), p(u);
|
|
967
1202
|
}, []);
|
|
968
|
-
const g = (
|
|
969
|
-
|
|
970
|
-
|
|
1203
|
+
const g = (y) => {
|
|
1204
|
+
y.preventDefault(), c(
|
|
1205
|
+
_t({
|
|
971
1206
|
contribution: u,
|
|
972
|
-
goalAmount:
|
|
1207
|
+
goalAmount: f,
|
|
973
1208
|
goalPeriod: x,
|
|
974
|
-
targetPeriod:
|
|
1209
|
+
targetPeriod: b,
|
|
975
1210
|
totalSaved: t
|
|
976
1211
|
})
|
|
977
1212
|
), p(u);
|
|
978
1213
|
};
|
|
979
|
-
return /* @__PURE__ */ e(
|
|
1214
|
+
return /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e("form", { onSubmit: g, children: /* @__PURE__ */ s(_, { sx: { gap: 24, pb: 24, pt: 16, px: 16 }, children: [
|
|
980
1215
|
/* @__PURE__ */ e(
|
|
981
|
-
|
|
1216
|
+
Me,
|
|
982
1217
|
{
|
|
983
|
-
balance: /* @__PURE__ */
|
|
984
|
-
/* @__PURE__ */ e(
|
|
985
|
-
/* @__PURE__ */
|
|
1218
|
+
balance: /* @__PURE__ */ s(_, { sx: { flexDirection: "row", height: 32 }, children: [
|
|
1219
|
+
/* @__PURE__ */ e(D, { variant: "h2", children: B(l, "0,0") }),
|
|
1220
|
+
/* @__PURE__ */ s(D, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
986
1221
|
"/",
|
|
987
1222
|
r[d]
|
|
988
1223
|
] })
|
|
989
1224
|
] }),
|
|
990
|
-
title:
|
|
1225
|
+
title: n.maintain_emergency_savings_estimated_contribution
|
|
991
1226
|
}
|
|
992
1227
|
),
|
|
993
1228
|
/* @__PURE__ */ e(
|
|
994
|
-
|
|
1229
|
+
Pe,
|
|
995
1230
|
{
|
|
996
|
-
"aria-label":
|
|
997
|
-
helperText:
|
|
998
|
-
|
|
999
|
-
|
|
1231
|
+
"aria-label": n.maintain_emergency_savings_savings_goal,
|
|
1232
|
+
helperText: z(
|
|
1233
|
+
n.maintain_emergency_savings_suggested_goal,
|
|
1234
|
+
B(a, "0,0")
|
|
1000
1235
|
),
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1236
|
+
label: n.maintain_emergency_savings_savings_goal,
|
|
1237
|
+
onChange: (y) => {
|
|
1238
|
+
y.target.value && v(Number(y.target.value.replace(/[^0-9]/g, "")));
|
|
1004
1239
|
},
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1240
|
+
slotProps: {
|
|
1241
|
+
htmlInput: {
|
|
1242
|
+
noValidate: !0,
|
|
1243
|
+
pattern: "[0-9]*"
|
|
1244
|
+
}
|
|
1008
1245
|
},
|
|
1009
|
-
value:
|
|
1246
|
+
value: f ? B(f, "0,0") : ""
|
|
1010
1247
|
}
|
|
1011
1248
|
),
|
|
1012
1249
|
/* @__PURE__ */ e(
|
|
1013
|
-
|
|
1250
|
+
dt,
|
|
1014
1251
|
{
|
|
1015
|
-
label:
|
|
1016
|
-
onChange:
|
|
1017
|
-
options:
|
|
1252
|
+
label: n.maintain_emergency_savings_how_often_contribute,
|
|
1253
|
+
onChange: h,
|
|
1254
|
+
options: o,
|
|
1018
1255
|
required: !0,
|
|
1019
1256
|
value: u
|
|
1020
1257
|
}
|
|
1021
1258
|
),
|
|
1022
|
-
/* @__PURE__ */
|
|
1259
|
+
/* @__PURE__ */ s(_, { sx: { flexDirection: "row" }, children: [
|
|
1023
1260
|
/* @__PURE__ */ e(
|
|
1024
|
-
|
|
1261
|
+
Pe,
|
|
1025
1262
|
{
|
|
1026
|
-
"aria-label":
|
|
1263
|
+
"aria-label": n.maintain_emergency_savings_meet_your_goal_within,
|
|
1027
1264
|
fullWidth: !0,
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1265
|
+
label: n.maintain_emergency_savings_meet_your_goal_within,
|
|
1266
|
+
onChange: (y) => {
|
|
1267
|
+
isNaN(Number(y.target.value)) || C(Number(y.target.value));
|
|
1031
1268
|
},
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1269
|
+
slotProps: {
|
|
1270
|
+
htmlInput: {
|
|
1271
|
+
noValidate: !0,
|
|
1272
|
+
pattern: "[0-9]*"
|
|
1273
|
+
}
|
|
1035
1274
|
},
|
|
1036
1275
|
sx: {
|
|
1037
1276
|
"& .MuiInputBase-root": {
|
|
@@ -1057,40 +1296,40 @@ const zo = ({ total: t }) => {
|
|
|
1057
1296
|
}
|
|
1058
1297
|
}
|
|
1059
1298
|
},
|
|
1060
|
-
children: /* @__PURE__ */ e(
|
|
1299
|
+
children: /* @__PURE__ */ e(dt, { label: "", onChange: k, options: i, value: b })
|
|
1061
1300
|
}
|
|
1062
1301
|
)
|
|
1063
1302
|
] }),
|
|
1064
|
-
/* @__PURE__ */ e(
|
|
1303
|
+
/* @__PURE__ */ e(E, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: n.maintain_emergency_savings_calculate })
|
|
1065
1304
|
] }) }) });
|
|
1066
|
-
},
|
|
1067
|
-
const { savingsAccounts: t } =
|
|
1305
|
+
}, nr = w(tr), or = () => {
|
|
1306
|
+
const { savingsAccounts: t } = ke(), { finstrong: n } = S(), [o, r] = m.useState(!1), i = m.useMemo(
|
|
1068
1307
|
() => t.reduce((a, l) => a + (l.balance ?? 0), 0),
|
|
1069
1308
|
[t]
|
|
1070
1309
|
);
|
|
1071
|
-
return /* @__PURE__ */
|
|
1072
|
-
/* @__PURE__ */ e(
|
|
1073
|
-
/* @__PURE__ */ e(
|
|
1310
|
+
return /* @__PURE__ */ s(_, { sx: { gap: 24 }, children: [
|
|
1311
|
+
/* @__PURE__ */ e(Y, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ s(_, { sx: { gap: 16 }, children: [
|
|
1312
|
+
/* @__PURE__ */ e(Me, { balance: i, title: n.maintain_emergency_savings_your_savings }),
|
|
1074
1313
|
t.length ? /* @__PURE__ */ e(
|
|
1075
|
-
|
|
1314
|
+
jt,
|
|
1076
1315
|
{
|
|
1077
|
-
loadAccounts: [
|
|
1078
|
-
loadMoreLabel:
|
|
1316
|
+
loadAccounts: [je.SAVINGS],
|
|
1317
|
+
loadMoreLabel: n.connect_more_accounts_button
|
|
1079
1318
|
}
|
|
1080
|
-
) : /* @__PURE__ */ e(
|
|
1319
|
+
) : /* @__PURE__ */ e(E, { onClick: () => r(!0), variant: "contained", children: n.connect_more_accounts_button })
|
|
1081
1320
|
] }) }),
|
|
1082
|
-
/* @__PURE__ */ e(
|
|
1321
|
+
/* @__PURE__ */ e(nr, { total: i }),
|
|
1083
1322
|
/* @__PURE__ */ e(
|
|
1084
|
-
|
|
1323
|
+
se,
|
|
1085
1324
|
{
|
|
1086
1325
|
onClose: () => r(!1),
|
|
1087
|
-
showConnectWidget:
|
|
1088
|
-
title:
|
|
1326
|
+
showConnectWidget: o,
|
|
1327
|
+
title: n.connect_more_accounts_button
|
|
1089
1328
|
}
|
|
1090
1329
|
)
|
|
1091
1330
|
] });
|
|
1092
|
-
},
|
|
1093
|
-
({ label: t, value:
|
|
1331
|
+
}, rr = w(or), Ne = w(
|
|
1332
|
+
({ label: t, value: n, status: o, bottomComponent: r, statusBarData: i = [] }) => {
|
|
1094
1333
|
const a = {
|
|
1095
1334
|
GOOD: {
|
|
1096
1335
|
progressBarColor: "primary.main"
|
|
@@ -1104,14 +1343,14 @@ const zo = ({ total: t }) => {
|
|
|
1104
1343
|
MISSING: {
|
|
1105
1344
|
progressBarColor: "text.secondary"
|
|
1106
1345
|
}
|
|
1107
|
-
}[
|
|
1346
|
+
}[o], l = i.map((c, d) => i.length === 2 ? {
|
|
1108
1347
|
color: d === 0 ? "primary.main" : c.color || a?.progressBarColor,
|
|
1109
1348
|
percentage: c.percentage
|
|
1110
1349
|
} : {
|
|
1111
1350
|
color: c.color || a?.progressBarColor,
|
|
1112
1351
|
percentage: c.percentage
|
|
1113
1352
|
});
|
|
1114
|
-
return /* @__PURE__ */
|
|
1353
|
+
return /* @__PURE__ */ s(
|
|
1115
1354
|
_,
|
|
1116
1355
|
{
|
|
1117
1356
|
sx: {
|
|
@@ -1122,9 +1361,9 @@ const zo = ({ total: t }) => {
|
|
|
1122
1361
|
borderColor: "divider"
|
|
1123
1362
|
},
|
|
1124
1363
|
children: [
|
|
1125
|
-
/* @__PURE__ */
|
|
1126
|
-
/* @__PURE__ */ e(
|
|
1127
|
-
/* @__PURE__ */
|
|
1364
|
+
/* @__PURE__ */ s(_, { sx: { gap: 2 }, children: [
|
|
1365
|
+
/* @__PURE__ */ e(D, { variant: "body2", children: t }),
|
|
1366
|
+
/* @__PURE__ */ s(
|
|
1128
1367
|
_,
|
|
1129
1368
|
{
|
|
1130
1369
|
sx: {
|
|
@@ -1134,30 +1373,30 @@ const zo = ({ total: t }) => {
|
|
|
1134
1373
|
justifyContent: "space-between"
|
|
1135
1374
|
},
|
|
1136
1375
|
children: [
|
|
1137
|
-
/* @__PURE__ */ e(
|
|
1138
|
-
/* @__PURE__ */ e(
|
|
1376
|
+
/* @__PURE__ */ e(Ge, { children: n }),
|
|
1377
|
+
/* @__PURE__ */ e($e, { status: o })
|
|
1139
1378
|
]
|
|
1140
1379
|
}
|
|
1141
1380
|
)
|
|
1142
1381
|
] }),
|
|
1143
|
-
/* @__PURE__ */
|
|
1144
|
-
/* @__PURE__ */ e(
|
|
1382
|
+
/* @__PURE__ */ s(_, { children: [
|
|
1383
|
+
/* @__PURE__ */ e(zn, { data: l, height: 16 }),
|
|
1145
1384
|
r
|
|
1146
1385
|
] })
|
|
1147
1386
|
]
|
|
1148
1387
|
}
|
|
1149
1388
|
);
|
|
1150
1389
|
}
|
|
1151
|
-
),
|
|
1390
|
+
), ar = {
|
|
1152
1391
|
sticky_label: "You have saved"
|
|
1153
|
-
},
|
|
1154
|
-
const { healthScore: t } =
|
|
1392
|
+
}, ir = ["$0", "$250", "$500", "$750", "$1k"], sr = () => {
|
|
1393
|
+
const { healthScore: t } = L(), n = Math.round(t.emergency_savings_on_hand ?? NaN) || null, o = $o(n), r = Pt(n);
|
|
1155
1394
|
return /* @__PURE__ */ e(
|
|
1156
|
-
|
|
1395
|
+
Ne,
|
|
1157
1396
|
{
|
|
1158
|
-
bottomComponent: /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children:
|
|
1397
|
+
bottomComponent: /* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: ir.map((i) => /* @__PURE__ */ s(_, { sx: { alignItems: "center", height: 24, width: 30 }, children: [
|
|
1159
1398
|
/* @__PURE__ */ e(
|
|
1160
|
-
|
|
1399
|
+
ae,
|
|
1161
1400
|
{
|
|
1162
1401
|
orientation: "vertical",
|
|
1163
1402
|
sx: {
|
|
@@ -1167,54 +1406,54 @@ const zo = ({ total: t }) => {
|
|
|
1167
1406
|
}
|
|
1168
1407
|
}
|
|
1169
1408
|
),
|
|
1170
|
-
/* @__PURE__ */ e(
|
|
1171
|
-
] },
|
|
1172
|
-
label:
|
|
1409
|
+
/* @__PURE__ */ e(D, { variant: "caption", children: i })
|
|
1410
|
+
] }, i)) }),
|
|
1411
|
+
label: ar.sticky_label,
|
|
1173
1412
|
status: r,
|
|
1174
1413
|
statusBarData: [
|
|
1175
1414
|
{
|
|
1176
|
-
percentage:
|
|
1415
|
+
percentage: o
|
|
1177
1416
|
}
|
|
1178
1417
|
],
|
|
1179
|
-
value:
|
|
1418
|
+
value: B(n ?? 0, "0,0.00")
|
|
1180
1419
|
}
|
|
1181
1420
|
);
|
|
1182
|
-
},
|
|
1421
|
+
}, cr = w(sr), ze = ({
|
|
1183
1422
|
transactions: t = [],
|
|
1184
|
-
amountColor:
|
|
1185
|
-
amountPosition:
|
|
1186
|
-
formatDate: r =
|
|
1187
|
-
secondaryIcon:
|
|
1423
|
+
amountColor: n = "success.main",
|
|
1424
|
+
amountPosition: o = "center",
|
|
1425
|
+
formatDate: r = Dt,
|
|
1426
|
+
secondaryIcon: i
|
|
1188
1427
|
}) => {
|
|
1189
|
-
const a =
|
|
1428
|
+
const a = W(), { connect: l, finstrong: c, categories: d } = S(), [p, u] = m.useState(!1), [h, f] = m.useState(!1), { getCategoryName: v } = Qe(), x = 3, C = t.length > x, b = t.length - x;
|
|
1190
1429
|
let k = t;
|
|
1191
|
-
return
|
|
1430
|
+
return C && (k = t.map((g) => ({
|
|
1192
1431
|
...g,
|
|
1193
1432
|
category: d.default_categories[g.top_level_category_guid]?.replace(
|
|
1194
1433
|
/&/g,
|
|
1195
1434
|
"&"
|
|
1196
|
-
) ??
|
|
1197
|
-
})).sort((g,
|
|
1435
|
+
) ?? v(g.top_level_category_guid)
|
|
1436
|
+
})).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ s(H, { children: [
|
|
1198
1437
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1199
|
-
|
|
1438
|
+
E,
|
|
1200
1439
|
{
|
|
1201
|
-
onClick: () =>
|
|
1440
|
+
onClick: () => f(!0),
|
|
1202
1441
|
size: "small",
|
|
1203
1442
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1204
1443
|
variant: "contained",
|
|
1205
|
-
children: /* @__PURE__ */ e(
|
|
1444
|
+
children: /* @__PURE__ */ e(D, { bold: !0, variant: "body1", children: c.connect_more_accounts_button })
|
|
1206
1445
|
}
|
|
1207
1446
|
) }),
|
|
1208
1447
|
/* @__PURE__ */ e(
|
|
1209
|
-
|
|
1448
|
+
se,
|
|
1210
1449
|
{
|
|
1211
|
-
onClose: () =>
|
|
1212
|
-
showConnectWidget:
|
|
1450
|
+
onClose: () => f(!1),
|
|
1451
|
+
showConnectWidget: h,
|
|
1213
1452
|
title: l.mini_title
|
|
1214
1453
|
}
|
|
1215
1454
|
)
|
|
1216
|
-
] }) : /* @__PURE__ */
|
|
1217
|
-
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${a.palette.divider}`, borderRadius: 2 }, children: t.slice(0, x).sort((g,
|
|
1455
|
+
] }) : /* @__PURE__ */ s(_, { sx: { gap: 16 }, children: [
|
|
1456
|
+
/* @__PURE__ */ e(M, { sx: { border: `1px solid ${a.palette.divider}`, borderRadius: 2 }, children: t.slice(0, x).sort((g, y) => y.date - g.date).map((g, y) => /* @__PURE__ */ s(
|
|
1218
1457
|
_,
|
|
1219
1458
|
{
|
|
1220
1459
|
sx: {
|
|
@@ -1226,22 +1465,22 @@ const zo = ({ total: t }) => {
|
|
|
1226
1465
|
},
|
|
1227
1466
|
children: [
|
|
1228
1467
|
/* @__PURE__ */ e(_, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
|
|
1229
|
-
|
|
1468
|
+
un,
|
|
1230
1469
|
{
|
|
1231
1470
|
categoryGuid: g.top_level_category_guid || "",
|
|
1232
1471
|
merchantGuid: g.merchant_guid || "",
|
|
1233
1472
|
size: 32
|
|
1234
1473
|
}
|
|
1235
1474
|
) }),
|
|
1236
|
-
/* @__PURE__ */
|
|
1475
|
+
/* @__PURE__ */ s(
|
|
1237
1476
|
_,
|
|
1238
1477
|
{
|
|
1239
1478
|
sx: {
|
|
1240
|
-
alignItems:
|
|
1479
|
+
alignItems: o,
|
|
1241
1480
|
flexDirection: "row",
|
|
1242
1481
|
gap: 12,
|
|
1243
1482
|
justifyContent: "space-between",
|
|
1244
|
-
...
|
|
1483
|
+
...y < Math.min(t.length, x) - 1 && {
|
|
1245
1484
|
borderBottom: `1px solid ${a.palette.divider}`
|
|
1246
1485
|
},
|
|
1247
1486
|
pb: 13,
|
|
@@ -1249,58 +1488,58 @@ const zo = ({ total: t }) => {
|
|
|
1249
1488
|
width: "100%"
|
|
1250
1489
|
},
|
|
1251
1490
|
children: [
|
|
1252
|
-
/* @__PURE__ */
|
|
1253
|
-
/* @__PURE__ */ e(
|
|
1254
|
-
/* @__PURE__ */
|
|
1255
|
-
!!
|
|
1256
|
-
/* @__PURE__ */ e(
|
|
1491
|
+
/* @__PURE__ */ s(_, { children: [
|
|
1492
|
+
/* @__PURE__ */ e(A, { bold: !0, variant: "body1", children: g.description }),
|
|
1493
|
+
/* @__PURE__ */ s(_, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
|
|
1494
|
+
!!i && i,
|
|
1495
|
+
/* @__PURE__ */ e(D, { variant: "caption", children: r(g.date) })
|
|
1257
1496
|
] })
|
|
1258
1497
|
] }),
|
|
1259
|
-
/* @__PURE__ */ e(
|
|
1498
|
+
/* @__PURE__ */ e(A, { bold: !0, sx: { color: n, flexShrink: 0 }, variant: "body1", children: B(g.amount, "0,0.00") })
|
|
1260
1499
|
]
|
|
1261
1500
|
},
|
|
1262
|
-
g.guid ||
|
|
1501
|
+
g.guid || y
|
|
1263
1502
|
)
|
|
1264
1503
|
]
|
|
1265
1504
|
},
|
|
1266
|
-
|
|
1505
|
+
y
|
|
1267
1506
|
)) }),
|
|
1268
|
-
|
|
1507
|
+
C && /* @__PURE__ */ s(H, { children: [
|
|
1269
1508
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1270
|
-
|
|
1509
|
+
E,
|
|
1271
1510
|
{
|
|
1272
|
-
endIcon: /* @__PURE__ */ e(
|
|
1511
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
1273
1512
|
onClick: () => u(!0),
|
|
1274
1513
|
size: "small",
|
|
1275
1514
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
1276
|
-
children: /* @__PURE__ */
|
|
1277
|
-
|
|
1515
|
+
children: /* @__PURE__ */ s(D, { bold: !0, variant: "body1", children: [
|
|
1516
|
+
b,
|
|
1278
1517
|
" ",
|
|
1279
1518
|
c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_more_transactions
|
|
1280
1519
|
] })
|
|
1281
1520
|
}
|
|
1282
1521
|
) }),
|
|
1283
1522
|
/* @__PURE__ */ e(
|
|
1284
|
-
|
|
1523
|
+
ie,
|
|
1285
1524
|
{
|
|
1286
1525
|
isOpen: p,
|
|
1287
1526
|
onClose: () => u(!1),
|
|
1288
1527
|
title: c.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_transactions,
|
|
1289
|
-
children: /* @__PURE__ */ e(
|
|
1528
|
+
children: /* @__PURE__ */ e(Hn, { transaction: k })
|
|
1290
1529
|
}
|
|
1291
1530
|
)
|
|
1292
1531
|
] })
|
|
1293
1532
|
] });
|
|
1294
|
-
},
|
|
1295
|
-
const [t,
|
|
1533
|
+
}, lr = () => {
|
|
1534
|
+
const [t, n] = m.useState(!0), {
|
|
1296
1535
|
finstrong: {
|
|
1297
|
-
key_indicators_spend: { pay_bills_on_time_drawer:
|
|
1536
|
+
key_indicators_spend: { pay_bills_on_time_drawer: o }
|
|
1298
1537
|
}
|
|
1299
|
-
} =
|
|
1300
|
-
return
|
|
1301
|
-
r().finally(() =>
|
|
1302
|
-
}, []), t ? /* @__PURE__ */ e(
|
|
1303
|
-
|
|
1538
|
+
} = S(), { getSpendingFeeTransactions: r, allTransactions: i } = L();
|
|
1539
|
+
return m.useEffect(() => {
|
|
1540
|
+
r().finally(() => n(!1));
|
|
1541
|
+
}, []), t ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ e(H, { children: i.spendingFee.length === 0 ? /* @__PURE__ */ s(
|
|
1542
|
+
Y,
|
|
1304
1543
|
{
|
|
1305
1544
|
sx: {
|
|
1306
1545
|
backgroundColor: "background.paper",
|
|
@@ -1311,15 +1550,15 @@ const zo = ({ total: t }) => {
|
|
|
1311
1550
|
width: "100%"
|
|
1312
1551
|
},
|
|
1313
1552
|
children: [
|
|
1314
|
-
/* @__PURE__ */ e(
|
|
1315
|
-
/* @__PURE__ */
|
|
1316
|
-
/* @__PURE__ */ e(
|
|
1317
|
-
/* @__PURE__ */ e(
|
|
1553
|
+
/* @__PURE__ */ e(fn, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1554
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1555
|
+
/* @__PURE__ */ e(j, { children: o.pay_bills_on_time_zero_fees_title }),
|
|
1556
|
+
/* @__PURE__ */ e(A, { variant: "subtitle1", children: o.pay_bills_on_time_zero_fees_description })
|
|
1318
1557
|
] })
|
|
1319
1558
|
]
|
|
1320
1559
|
}
|
|
1321
|
-
) : /* @__PURE__ */
|
|
1322
|
-
|
|
1560
|
+
) : /* @__PURE__ */ s(
|
|
1561
|
+
Y,
|
|
1323
1562
|
{
|
|
1324
1563
|
sx: {
|
|
1325
1564
|
p: 16,
|
|
@@ -1327,23 +1566,23 @@ const zo = ({ total: t }) => {
|
|
|
1327
1566
|
backgroundColor: "background.paper"
|
|
1328
1567
|
},
|
|
1329
1568
|
children: [
|
|
1330
|
-
/* @__PURE__ */ e(
|
|
1569
|
+
/* @__PURE__ */ e(j, { sx: { textAlign: "left", pb: 16 }, children: o.pay_bills_on_time_sticky_fee_count }),
|
|
1331
1570
|
/* @__PURE__ */ e(
|
|
1332
|
-
|
|
1571
|
+
ze,
|
|
1333
1572
|
{
|
|
1334
1573
|
amountColor: "text.primary",
|
|
1335
1574
|
amountPosition: "flex-start",
|
|
1336
|
-
formatDate: (a) =>
|
|
1337
|
-
secondaryIcon: /* @__PURE__ */ e(
|
|
1338
|
-
transactions:
|
|
1575
|
+
formatDate: (a) => Xe(new Date(a * 1e3), Ue.MONTH_DAY),
|
|
1576
|
+
secondaryIcon: /* @__PURE__ */ e(bn, { color: "error", filled: !0, size: 12 }),
|
|
1577
|
+
transactions: i.spendingFee
|
|
1339
1578
|
}
|
|
1340
1579
|
)
|
|
1341
1580
|
]
|
|
1342
1581
|
}
|
|
1343
1582
|
) });
|
|
1344
|
-
},
|
|
1345
|
-
const { healthScore: t } =
|
|
1346
|
-
return /* @__PURE__ */
|
|
1583
|
+
}, dr = w(lr), pr = () => {
|
|
1584
|
+
const { healthScore: t } = L(), { finstrong: n } = S(), { key_indicators_spend: o } = n, { pay_bills_on_time_drawer: r } = o, i = Wt(t.spending_fee_transaction_count);
|
|
1585
|
+
return /* @__PURE__ */ s(
|
|
1347
1586
|
_,
|
|
1348
1587
|
{
|
|
1349
1588
|
sx: {
|
|
@@ -1353,104 +1592,104 @@ const zo = ({ total: t }) => {
|
|
|
1353
1592
|
borderColor: "divider"
|
|
1354
1593
|
},
|
|
1355
1594
|
children: [
|
|
1356
|
-
/* @__PURE__ */ e(
|
|
1357
|
-
/* @__PURE__ */
|
|
1358
|
-
/* @__PURE__ */
|
|
1595
|
+
/* @__PURE__ */ e(A, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
|
|
1596
|
+
/* @__PURE__ */ s(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1597
|
+
/* @__PURE__ */ s(Ge, { children: [
|
|
1359
1598
|
t.spending_fee_transaction_count,
|
|
1360
1599
|
" ",
|
|
1361
1600
|
r.pay_bills_on_time_sticky_fee_count
|
|
1362
1601
|
] }),
|
|
1363
|
-
/* @__PURE__ */ e(
|
|
1602
|
+
/* @__PURE__ */ e($e, { status: i })
|
|
1364
1603
|
] })
|
|
1365
1604
|
]
|
|
1366
1605
|
}
|
|
1367
1606
|
);
|
|
1368
|
-
},
|
|
1369
|
-
const { savingsAndCheckingAccountsBalance: t } =
|
|
1370
|
-
return /* @__PURE__ */
|
|
1607
|
+
}, ur = w(pr), _r = () => {
|
|
1608
|
+
const { savingsAndCheckingAccountsBalance: t } = ke(), { finstrong: n } = S();
|
|
1609
|
+
return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1371
1610
|
/* @__PURE__ */ e(
|
|
1372
|
-
|
|
1611
|
+
Me,
|
|
1373
1612
|
{
|
|
1374
1613
|
balance: t,
|
|
1375
|
-
title:
|
|
1614
|
+
title: n.key_indicators_save.drawer_available_balance
|
|
1376
1615
|
}
|
|
1377
1616
|
),
|
|
1378
1617
|
/* @__PURE__ */ e(
|
|
1379
|
-
|
|
1618
|
+
jt,
|
|
1380
1619
|
{
|
|
1381
|
-
loadAccounts: [
|
|
1382
|
-
loadMoreLabel:
|
|
1620
|
+
loadAccounts: [je.SAVINGS, je.CHECKING],
|
|
1621
|
+
loadMoreLabel: n.more_accounts
|
|
1383
1622
|
}
|
|
1384
1623
|
)
|
|
1385
1624
|
] });
|
|
1386
|
-
},
|
|
1387
|
-
const { finstrong: t } =
|
|
1388
|
-
isSpendingInitialized:
|
|
1389
|
-
healthScore:
|
|
1625
|
+
}, mr = w(_r), hr = () => {
|
|
1626
|
+
const { finstrong: t } = S(), {
|
|
1627
|
+
isSpendingInitialized: n,
|
|
1628
|
+
healthScore: o,
|
|
1390
1629
|
allTransactions: r,
|
|
1391
|
-
loadSpendTransactions:
|
|
1630
|
+
loadSpendTransactions: i,
|
|
1392
1631
|
loadDebtSpend: a
|
|
1393
|
-
} =
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
}, [
|
|
1397
|
-
const l =
|
|
1632
|
+
} = L();
|
|
1633
|
+
m.useEffect(() => {
|
|
1634
|
+
n || (i().finally(), a().finally());
|
|
1635
|
+
}, [n]);
|
|
1636
|
+
const l = m.useMemo(() => {
|
|
1398
1637
|
const c = r.spend.map((p) => p.transaction), d = r.debtSpend.map((p) => p.transaction);
|
|
1399
1638
|
return [...c, ...d];
|
|
1400
1639
|
}, [r.spend, r.debtSpend]);
|
|
1401
|
-
return
|
|
1640
|
+
return n ? /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1402
1641
|
/* @__PURE__ */ e(
|
|
1403
|
-
|
|
1642
|
+
Me,
|
|
1404
1643
|
{
|
|
1405
|
-
balance:
|
|
1644
|
+
balance: o.ninety_day_spend / 90,
|
|
1406
1645
|
title: t.key_indicators_save.drawer_daily_spend
|
|
1407
1646
|
}
|
|
1408
1647
|
),
|
|
1409
|
-
/* @__PURE__ */ e(
|
|
1410
|
-
] }) : /* @__PURE__ */ e(
|
|
1411
|
-
},
|
|
1412
|
-
const [t,
|
|
1413
|
-
return /* @__PURE__ */
|
|
1414
|
-
/* @__PURE__ */
|
|
1415
|
-
/* @__PURE__ */
|
|
1416
|
-
|
|
1648
|
+
/* @__PURE__ */ e(ze, { amountColor: "text.primary", transactions: l })
|
|
1649
|
+
] }) : /* @__PURE__ */ e(ee, {});
|
|
1650
|
+
}, gr = w(hr), yr = () => {
|
|
1651
|
+
const [t, n] = m.useState(0), { finstrong: o } = S();
|
|
1652
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
1653
|
+
/* @__PURE__ */ s(Y, { children: [
|
|
1654
|
+
/* @__PURE__ */ s(
|
|
1655
|
+
et,
|
|
1417
1656
|
{
|
|
1418
|
-
"aria-label":
|
|
1657
|
+
"aria-label": o.key_indicators_save.drawer_title,
|
|
1419
1658
|
centered: !0,
|
|
1420
|
-
onChange: (r,
|
|
1659
|
+
onChange: (r, i) => n(i),
|
|
1421
1660
|
selectionFollowsFocus: !0,
|
|
1422
1661
|
sx: { mb: 0 },
|
|
1423
1662
|
value: t,
|
|
1424
1663
|
variant: "fullWidth",
|
|
1425
1664
|
children: [
|
|
1426
1665
|
/* @__PURE__ */ e(
|
|
1427
|
-
|
|
1666
|
+
he,
|
|
1428
1667
|
{
|
|
1429
1668
|
"aria-controls": "available-details-tabpanel-0",
|
|
1430
|
-
label:
|
|
1669
|
+
label: o.key_indicators_save.drawer_available,
|
|
1431
1670
|
sx: { minHeight: 44 }
|
|
1432
1671
|
}
|
|
1433
1672
|
),
|
|
1434
1673
|
/* @__PURE__ */ e(
|
|
1435
|
-
|
|
1674
|
+
he,
|
|
1436
1675
|
{
|
|
1437
1676
|
"aria-controls": "spending-details-tabpanel-1",
|
|
1438
|
-
label:
|
|
1677
|
+
label: o.key_indicators_save.drawer_spending,
|
|
1439
1678
|
sx: { minHeight: 44 }
|
|
1440
1679
|
}
|
|
1441
1680
|
)
|
|
1442
1681
|
]
|
|
1443
1682
|
}
|
|
1444
1683
|
),
|
|
1445
|
-
/* @__PURE__ */ e(
|
|
1446
|
-
/* @__PURE__ */ e(
|
|
1684
|
+
/* @__PURE__ */ e(ge, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(mr, {}) }),
|
|
1685
|
+
/* @__PURE__ */ e(ge, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(gr, {}) })
|
|
1447
1686
|
] }),
|
|
1448
|
-
/* @__PURE__ */ e(
|
|
1687
|
+
/* @__PURE__ */ e(ot, { chartFor: "savingsOverTime" })
|
|
1449
1688
|
] });
|
|
1450
|
-
},
|
|
1451
|
-
const { finstrong: t } =
|
|
1689
|
+
}, fr = w(yr), br = () => {
|
|
1690
|
+
const { finstrong: t } = S(), { healthScore: n } = L(), o = n.months_of_cash_on_hand, r = Lt(o ? o * 30 : null), i = 183 / 6, a = Math.floor(o), l = Math.round((o - a) * i), c = o / 6 * 100;
|
|
1452
1691
|
return /* @__PURE__ */ e(
|
|
1453
|
-
|
|
1692
|
+
Ne,
|
|
1454
1693
|
{
|
|
1455
1694
|
bottomComponent: /* @__PURE__ */ e(
|
|
1456
1695
|
_,
|
|
@@ -1462,7 +1701,7 @@ const zo = ({ total: t }) => {
|
|
|
1462
1701
|
mt: 2,
|
|
1463
1702
|
px: 1
|
|
1464
1703
|
},
|
|
1465
|
-
children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((p) => /* @__PURE__ */
|
|
1704
|
+
children: ["0 Mo", "1 Mo", "2 Mo", "3 Mo", "4 Mo", "5 Mo", "6 Mo"].map((p) => /* @__PURE__ */ s(
|
|
1466
1705
|
_,
|
|
1467
1706
|
{
|
|
1468
1707
|
sx: {
|
|
@@ -1471,7 +1710,7 @@ const zo = ({ total: t }) => {
|
|
|
1471
1710
|
},
|
|
1472
1711
|
children: [
|
|
1473
1712
|
/* @__PURE__ */ e(
|
|
1474
|
-
|
|
1713
|
+
ae,
|
|
1475
1714
|
{
|
|
1476
1715
|
orientation: "vertical",
|
|
1477
1716
|
sx: {
|
|
@@ -1480,7 +1719,7 @@ const zo = ({ total: t }) => {
|
|
|
1480
1719
|
}
|
|
1481
1720
|
}
|
|
1482
1721
|
),
|
|
1483
|
-
/* @__PURE__ */ e(
|
|
1722
|
+
/* @__PURE__ */ e(D, { variant: "caption", children: p })
|
|
1484
1723
|
]
|
|
1485
1724
|
},
|
|
1486
1725
|
p
|
|
@@ -1494,15 +1733,15 @@ const zo = ({ total: t }) => {
|
|
|
1494
1733
|
percentage: `${c}%`
|
|
1495
1734
|
}
|
|
1496
1735
|
],
|
|
1497
|
-
value:
|
|
1736
|
+
value: z(t.key_indicators_save.drawer_progress_bar_value, a, l)
|
|
1498
1737
|
}
|
|
1499
1738
|
);
|
|
1500
|
-
},
|
|
1501
|
-
const { healthScore: t } =
|
|
1739
|
+
}, xr = w(br), Cr = () => {
|
|
1740
|
+
const { healthScore: t } = L(), { finstrong: n } = S(), o = Ee(t.debt_to_income_ratio), r = Et(o);
|
|
1502
1741
|
return /* @__PURE__ */ e(
|
|
1503
|
-
|
|
1742
|
+
Ne,
|
|
1504
1743
|
{
|
|
1505
|
-
bottomComponent: /* @__PURE__ */
|
|
1744
|
+
bottomComponent: /* @__PURE__ */ s(
|
|
1506
1745
|
_,
|
|
1507
1746
|
{
|
|
1508
1747
|
sx: {
|
|
@@ -1522,7 +1761,7 @@ const zo = ({ total: t }) => {
|
|
|
1522
1761
|
position: "absolute",
|
|
1523
1762
|
transform: "translateX(-50%)"
|
|
1524
1763
|
},
|
|
1525
|
-
children: /* @__PURE__ */
|
|
1764
|
+
children: /* @__PURE__ */ s(
|
|
1526
1765
|
_,
|
|
1527
1766
|
{
|
|
1528
1767
|
sx: {
|
|
@@ -1533,7 +1772,7 @@ const zo = ({ total: t }) => {
|
|
|
1533
1772
|
},
|
|
1534
1773
|
children: [
|
|
1535
1774
|
/* @__PURE__ */ e(
|
|
1536
|
-
|
|
1775
|
+
ae,
|
|
1537
1776
|
{
|
|
1538
1777
|
orientation: "vertical",
|
|
1539
1778
|
sx: {
|
|
@@ -1542,7 +1781,7 @@ const zo = ({ total: t }) => {
|
|
|
1542
1781
|
}
|
|
1543
1782
|
}
|
|
1544
1783
|
),
|
|
1545
|
-
/* @__PURE__ */ e(
|
|
1784
|
+
/* @__PURE__ */ e(D, { sx: { color: "text.primary" }, variant: "caption", children: "30%" })
|
|
1546
1785
|
]
|
|
1547
1786
|
}
|
|
1548
1787
|
)
|
|
@@ -1558,41 +1797,41 @@ const zo = ({ total: t }) => {
|
|
|
1558
1797
|
justifyContent: "center",
|
|
1559
1798
|
marginLeft: "auto"
|
|
1560
1799
|
},
|
|
1561
|
-
children: /* @__PURE__ */ e(
|
|
1562
|
-
|
|
1563
|
-
|
|
1800
|
+
children: /* @__PURE__ */ e(D, { variant: "body2", children: t.debt_to_income_ratio ? z(
|
|
1801
|
+
n.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_description,
|
|
1802
|
+
o
|
|
1564
1803
|
) : "-" })
|
|
1565
1804
|
}
|
|
1566
1805
|
)
|
|
1567
1806
|
]
|
|
1568
1807
|
}
|
|
1569
1808
|
),
|
|
1570
|
-
label:
|
|
1809
|
+
label: n.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_sticky_title,
|
|
1571
1810
|
status: r,
|
|
1572
1811
|
statusBarData: [
|
|
1573
1812
|
{
|
|
1574
|
-
percentage: `${
|
|
1813
|
+
percentage: `${o}%`
|
|
1575
1814
|
}
|
|
1576
1815
|
],
|
|
1577
|
-
value:
|
|
1816
|
+
value: B(t.ninety_day_debt_spend, "0,0.00")
|
|
1578
1817
|
}
|
|
1579
1818
|
);
|
|
1580
|
-
},
|
|
1581
|
-
const { healthScore: t, allTransactions:
|
|
1582
|
-
return /* @__PURE__ */
|
|
1819
|
+
}, Sr = w(Cr), vr = () => {
|
|
1820
|
+
const { healthScore: t, allTransactions: n } = L(), { connect: o, finstrong: r } = S(), [i, a] = m.useState(!1);
|
|
1821
|
+
return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1583
1822
|
/* @__PURE__ */ e(
|
|
1584
|
-
|
|
1823
|
+
Me,
|
|
1585
1824
|
{
|
|
1586
1825
|
balance: t.ninety_day_income,
|
|
1587
1826
|
sx: { flexDirection: "column-reverse" },
|
|
1588
1827
|
title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_income
|
|
1589
1828
|
}
|
|
1590
1829
|
),
|
|
1591
|
-
|
|
1830
|
+
n.income.length ? (
|
|
1592
1831
|
// TODO: Need to add More Transactions functionality
|
|
1593
|
-
/* @__PURE__ */ e(
|
|
1832
|
+
/* @__PURE__ */ e(ze, { transactions: n.income.map((l) => l.transaction) })
|
|
1594
1833
|
) : /* @__PURE__ */ e(
|
|
1595
|
-
|
|
1834
|
+
E,
|
|
1596
1835
|
{
|
|
1597
1836
|
onClick: () => {
|
|
1598
1837
|
a(!0);
|
|
@@ -1602,21 +1841,21 @@ const zo = ({ total: t }) => {
|
|
|
1602
1841
|
}
|
|
1603
1842
|
),
|
|
1604
1843
|
/* @__PURE__ */ e(
|
|
1605
|
-
|
|
1844
|
+
se,
|
|
1606
1845
|
{
|
|
1607
1846
|
onClose: () => a(!1),
|
|
1608
|
-
showConnectWidget:
|
|
1609
|
-
title:
|
|
1847
|
+
showConnectWidget: i,
|
|
1848
|
+
title: o.mini_title
|
|
1610
1849
|
}
|
|
1611
1850
|
)
|
|
1612
1851
|
] });
|
|
1613
|
-
},
|
|
1614
|
-
const { allTransactions: t, healthScore:
|
|
1615
|
-
return /* @__PURE__ */
|
|
1852
|
+
}, wr = w(vr), kr = () => {
|
|
1853
|
+
const { allTransactions: t, healthScore: n } = L(), { connect: o, finstrong: r } = S(), [i, a] = m.useState(!1);
|
|
1854
|
+
return /* @__PURE__ */ s(_, { gap: 16, sx: { p: 16 }, children: [
|
|
1616
1855
|
/* @__PURE__ */ e(
|
|
1617
|
-
|
|
1856
|
+
Me,
|
|
1618
1857
|
{
|
|
1619
|
-
balance:
|
|
1858
|
+
balance: n.ninety_day_debt_spend,
|
|
1620
1859
|
sx: { flexDirection: "column-reverse" },
|
|
1621
1860
|
title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_payments
|
|
1622
1861
|
}
|
|
@@ -1624,14 +1863,14 @@ const zo = ({ total: t }) => {
|
|
|
1624
1863
|
t.debtSpend.length ? (
|
|
1625
1864
|
//TODO: Need to add More Transactions functionality
|
|
1626
1865
|
/* @__PURE__ */ e(
|
|
1627
|
-
|
|
1866
|
+
ze,
|
|
1628
1867
|
{
|
|
1629
1868
|
amountColor: "text.primary",
|
|
1630
1869
|
transactions: t.debtSpend.map((l) => l.transaction)
|
|
1631
1870
|
}
|
|
1632
1871
|
)
|
|
1633
1872
|
) : /* @__PURE__ */ e(
|
|
1634
|
-
|
|
1873
|
+
E,
|
|
1635
1874
|
{
|
|
1636
1875
|
onClick: () => {
|
|
1637
1876
|
a(!0);
|
|
@@ -1641,43 +1880,43 @@ const zo = ({ total: t }) => {
|
|
|
1641
1880
|
}
|
|
1642
1881
|
),
|
|
1643
1882
|
/* @__PURE__ */ e(
|
|
1644
|
-
|
|
1883
|
+
se,
|
|
1645
1884
|
{
|
|
1646
1885
|
onClose: () => a(!1),
|
|
1647
|
-
showConnectWidget:
|
|
1648
|
-
title:
|
|
1886
|
+
showConnectWidget: i,
|
|
1887
|
+
title: o.mini_title
|
|
1649
1888
|
}
|
|
1650
1889
|
)
|
|
1651
1890
|
] });
|
|
1652
|
-
},
|
|
1891
|
+
}, Mr = w(kr), Dr = ({
|
|
1653
1892
|
color: t,
|
|
1654
|
-
data:
|
|
1655
|
-
series:
|
|
1893
|
+
data: n,
|
|
1894
|
+
series: o,
|
|
1656
1895
|
style: r,
|
|
1657
|
-
...
|
|
1896
|
+
...i
|
|
1658
1897
|
}) => {
|
|
1659
|
-
const a =
|
|
1660
|
-
|
|
1898
|
+
const a = W(), l = m.useRef(null), c = m.useRef(null), [d, p] = m.useState(r.width || 0);
|
|
1899
|
+
m.useLayoutEffect(() => {
|
|
1661
1900
|
p(r.width || 0);
|
|
1662
|
-
}, [r.width]),
|
|
1663
|
-
const
|
|
1901
|
+
}, [r.width]), m.useLayoutEffect(() => {
|
|
1902
|
+
const C = new ResizeObserver(() => {
|
|
1664
1903
|
window.requestAnimationFrame(() => {
|
|
1665
1904
|
if (l.current) {
|
|
1666
|
-
const { width:
|
|
1905
|
+
const { width: b } = l.current.getBoundingClientRect(), k = b / 2, g = l.current.querySelector("text");
|
|
1667
1906
|
g && g.setAttribute("transform", `translate(${k}, -8)`);
|
|
1668
1907
|
}
|
|
1669
1908
|
});
|
|
1670
1909
|
});
|
|
1671
|
-
return l.current &&
|
|
1672
|
-
l.current &&
|
|
1910
|
+
return l.current && C.observe(l.current), () => {
|
|
1911
|
+
l.current && C.unobserve(l.current);
|
|
1673
1912
|
};
|
|
1674
1913
|
}, []);
|
|
1675
|
-
const { formattedComparison: u, formattedMain:
|
|
1914
|
+
const { formattedComparison: u, formattedMain: h } = n[o.index], f = o.type === 0 ? h : u, v = {
|
|
1676
1915
|
...r,
|
|
1677
1916
|
transition: "all 0.3s ease-in-out"
|
|
1678
1917
|
}, x = `translate(${d / 2}, -5)`;
|
|
1679
|
-
return /* @__PURE__ */
|
|
1680
|
-
/* @__PURE__ */ e("rect", { ...
|
|
1918
|
+
return /* @__PURE__ */ s("g", { children: [
|
|
1919
|
+
/* @__PURE__ */ e("rect", { ...i, fill: t, ref: l, rx: 2, style: v }),
|
|
1681
1920
|
/* @__PURE__ */ e(
|
|
1682
1921
|
"text",
|
|
1683
1922
|
{
|
|
@@ -1690,59 +1929,59 @@ const zo = ({ total: t }) => {
|
|
|
1690
1929
|
transform: x,
|
|
1691
1930
|
x: r.x,
|
|
1692
1931
|
y: r.y,
|
|
1693
|
-
children:
|
|
1932
|
+
children: f
|
|
1694
1933
|
}
|
|
1695
1934
|
)
|
|
1696
1935
|
] });
|
|
1697
|
-
},
|
|
1698
|
-
const
|
|
1699
|
-
return
|
|
1700
|
-
},
|
|
1936
|
+
}, Fe = (t, n = 1e3) => {
|
|
1937
|
+
const o = Math.abs(t) >= n ? "0.[0]a" : "0";
|
|
1938
|
+
return B(t, o);
|
|
1939
|
+
}, Yt = ({
|
|
1701
1940
|
chartFor: t,
|
|
1702
|
-
data:
|
|
1703
|
-
title:
|
|
1941
|
+
data: n,
|
|
1942
|
+
title: o,
|
|
1704
1943
|
buttonLabel: r,
|
|
1705
|
-
onClick:
|
|
1944
|
+
onClick: i,
|
|
1706
1945
|
legendLabelMain: a,
|
|
1707
1946
|
legendLabelComparison: l,
|
|
1708
1947
|
totalComparison: c,
|
|
1709
1948
|
totalMain: d
|
|
1710
1949
|
}) => {
|
|
1711
|
-
const p =
|
|
1712
|
-
() =>
|
|
1713
|
-
const
|
|
1950
|
+
const p = W(), u = Xn(p.breakpoints.down("xs")), h = m.useMemo(
|
|
1951
|
+
() => n.sort((g, y) => g.year !== y.year ? g.year - y.year : g.month - y.month).map((g) => {
|
|
1952
|
+
const y = Fo(g.month), I = {
|
|
1714
1953
|
spending_vs_income: {
|
|
1715
1954
|
main: g.standard_spend,
|
|
1716
1955
|
comparison: g.income,
|
|
1717
|
-
formattedMain:
|
|
1718
|
-
formattedComparison:
|
|
1956
|
+
formattedMain: Fe(g.standard_spend),
|
|
1957
|
+
formattedComparison: Fe(g.income)
|
|
1719
1958
|
},
|
|
1720
1959
|
debt_payment_vs_income: {
|
|
1721
1960
|
main: g.income,
|
|
1722
1961
|
comparison: g.debt_spend,
|
|
1723
|
-
formattedMain:
|
|
1724
|
-
formattedComparison:
|
|
1962
|
+
formattedMain: Fe(g.income),
|
|
1963
|
+
formattedComparison: Fe(g.debt_spend)
|
|
1725
1964
|
}
|
|
1726
1965
|
};
|
|
1727
1966
|
return {
|
|
1728
|
-
label:
|
|
1729
|
-
...
|
|
1967
|
+
label: y,
|
|
1968
|
+
...I[t]
|
|
1730
1969
|
};
|
|
1731
1970
|
}),
|
|
1732
|
-
[
|
|
1733
|
-
),
|
|
1971
|
+
[n, t]
|
|
1972
|
+
), f = {
|
|
1734
1973
|
dataKey: "label",
|
|
1735
1974
|
scaleType: "band"
|
|
1736
|
-
},
|
|
1975
|
+
}, v = Math.max(...h.map((g) => Math.max(g.main, g.comparison))), C = Math.min(...h.map((g) => Math.min(g.main, g.comparison))) === 0 && v === 0 ? 100 : Math.ceil(v * 1.2 / 1e3) * 1e3, b = C / 3, k = {
|
|
1737
1976
|
scaleType: "linear",
|
|
1738
1977
|
min: 0,
|
|
1739
|
-
max:
|
|
1978
|
+
max: C,
|
|
1740
1979
|
tickNumber: 4,
|
|
1741
|
-
tickMinStep:
|
|
1742
|
-
valueFormatter: (g) => g === 0 ? "$0" :
|
|
1980
|
+
tickMinStep: b,
|
|
1981
|
+
valueFormatter: (g) => g === 0 ? "$0" : B(g, "0.[0]a")
|
|
1743
1982
|
};
|
|
1744
|
-
return /* @__PURE__ */
|
|
1745
|
-
/* @__PURE__ */
|
|
1983
|
+
return /* @__PURE__ */ s(Y, { children: [
|
|
1984
|
+
/* @__PURE__ */ s(
|
|
1746
1985
|
_,
|
|
1747
1986
|
{
|
|
1748
1987
|
sx: {
|
|
@@ -1755,12 +1994,12 @@ const zo = ({ total: t }) => {
|
|
|
1755
1994
|
px: 16
|
|
1756
1995
|
},
|
|
1757
1996
|
children: [
|
|
1758
|
-
/* @__PURE__ */ e(
|
|
1997
|
+
/* @__PURE__ */ e(j, { children: o }),
|
|
1759
1998
|
r && /* @__PURE__ */ e(
|
|
1760
|
-
|
|
1999
|
+
E,
|
|
1761
2000
|
{
|
|
1762
|
-
endIcon: /* @__PURE__ */ e(
|
|
1763
|
-
onClick:
|
|
2001
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
2002
|
+
onClick: i,
|
|
1764
2003
|
size: "small",
|
|
1765
2004
|
sx: {
|
|
1766
2005
|
pl: 8,
|
|
@@ -1773,9 +2012,9 @@ const zo = ({ total: t }) => {
|
|
|
1773
2012
|
]
|
|
1774
2013
|
}
|
|
1775
2014
|
),
|
|
1776
|
-
/* @__PURE__ */
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
/* @__PURE__ */
|
|
2015
|
+
/* @__PURE__ */ s(_, { sx: { pb: 24, pl: 16, pr: 24 }, children: [
|
|
2016
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row", gap: 24, py: 4 }, children: [
|
|
2017
|
+
/* @__PURE__ */ s(_, { sx: { gap: 8, alignItems: "center", flexDirection: "row" }, children: [
|
|
1779
2018
|
/* @__PURE__ */ e(
|
|
1780
2019
|
M,
|
|
1781
2020
|
{
|
|
@@ -1787,15 +2026,15 @@ const zo = ({ total: t }) => {
|
|
|
1787
2026
|
}
|
|
1788
2027
|
}
|
|
1789
2028
|
),
|
|
1790
|
-
/* @__PURE__ */
|
|
1791
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
2030
|
+
/* @__PURE__ */ s(D, { variant: "subtitle2", children: [
|
|
1792
2031
|
a,
|
|
1793
2032
|
" "
|
|
1794
2033
|
] }),
|
|
1795
|
-
!u && d && /* @__PURE__ */ e(
|
|
2034
|
+
!u && d && /* @__PURE__ */ e(D, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
|
|
1796
2035
|
] })
|
|
1797
2036
|
] }),
|
|
1798
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ s(_, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
1799
2038
|
/* @__PURE__ */ e(
|
|
1800
2039
|
M,
|
|
1801
2040
|
{
|
|
@@ -1807,30 +2046,30 @@ const zo = ({ total: t }) => {
|
|
|
1807
2046
|
}
|
|
1808
2047
|
}
|
|
1809
2048
|
),
|
|
1810
|
-
/* @__PURE__ */
|
|
1811
|
-
/* @__PURE__ */
|
|
2049
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
2050
|
+
/* @__PURE__ */ s(D, { variant: "subtitle2", children: [
|
|
1812
2051
|
l,
|
|
1813
2052
|
" "
|
|
1814
2053
|
] }),
|
|
1815
|
-
!u && c && /* @__PURE__ */ e(
|
|
2054
|
+
!u && c && /* @__PURE__ */ e(D, { sx: { fontWeight: 700 }, variant: "subtitle2", children: c })
|
|
1816
2055
|
] })
|
|
1817
2056
|
] })
|
|
1818
2057
|
] }),
|
|
1819
|
-
/* @__PURE__ */
|
|
1820
|
-
|
|
2058
|
+
/* @__PURE__ */ s(
|
|
2059
|
+
qn,
|
|
1821
2060
|
{
|
|
1822
2061
|
colors: [
|
|
1823
2062
|
`${p.palette.chartMono.chartMono3}`,
|
|
1824
2063
|
`${p.palette.chartMono.chartMono5}`
|
|
1825
2064
|
],
|
|
1826
|
-
dataset:
|
|
2065
|
+
dataset: h,
|
|
1827
2066
|
height: 240,
|
|
1828
2067
|
margin: { top: 14, bottom: 10, right: 2, left: -2 },
|
|
1829
2068
|
series: [
|
|
1830
2069
|
{ dataKey: "main", type: "bar" },
|
|
1831
2070
|
{ dataKey: "comparison", type: "bar" }
|
|
1832
2071
|
],
|
|
1833
|
-
xAxis: [
|
|
2072
|
+
xAxis: [f],
|
|
1834
2073
|
yAxis: [k],
|
|
1835
2074
|
children: [
|
|
1836
2075
|
/* @__PURE__ */ e(
|
|
@@ -1838,16 +2077,16 @@ const zo = ({ total: t }) => {
|
|
|
1838
2077
|
{
|
|
1839
2078
|
slots: {
|
|
1840
2079
|
bar: (g) => {
|
|
1841
|
-
const { ownerState:
|
|
2080
|
+
const { ownerState: y, ...I } = g;
|
|
1842
2081
|
return /* @__PURE__ */ e(
|
|
1843
|
-
|
|
2082
|
+
Dr,
|
|
1844
2083
|
{
|
|
1845
|
-
...
|
|
1846
|
-
color:
|
|
1847
|
-
data:
|
|
2084
|
+
...I,
|
|
2085
|
+
color: y.color,
|
|
2086
|
+
data: h,
|
|
1848
2087
|
series: {
|
|
1849
|
-
index:
|
|
1850
|
-
type: Number(
|
|
2088
|
+
index: y.dataIndex,
|
|
2089
|
+
type: Number(y.id.toString().split("-").pop())
|
|
1851
2090
|
},
|
|
1852
2091
|
style: {
|
|
1853
2092
|
x: g.x,
|
|
@@ -1861,7 +2100,7 @@ const zo = ({ total: t }) => {
|
|
|
1861
2100
|
}
|
|
1862
2101
|
),
|
|
1863
2102
|
/* @__PURE__ */ e(
|
|
1864
|
-
|
|
2103
|
+
Qn,
|
|
1865
2104
|
{
|
|
1866
2105
|
sx: () => ({
|
|
1867
2106
|
".MuiChartsAxis-line": {
|
|
@@ -1881,7 +2120,7 @@ const zo = ({ total: t }) => {
|
|
|
1881
2120
|
}
|
|
1882
2121
|
),
|
|
1883
2122
|
/* @__PURE__ */ e(
|
|
1884
|
-
|
|
2123
|
+
Zn,
|
|
1885
2124
|
{
|
|
1886
2125
|
sx: () => ({
|
|
1887
2126
|
".MuiChartsAxis-line": {
|
|
@@ -1905,29 +2144,29 @@ const zo = ({ total: t }) => {
|
|
|
1905
2144
|
)
|
|
1906
2145
|
] })
|
|
1907
2146
|
] });
|
|
1908
|
-
},
|
|
1909
|
-
const { isIncomeInitialized: t, loadDebtSpend:
|
|
1910
|
-
if (
|
|
1911
|
-
t || (
|
|
1912
|
-
}, [t]), !t) return /* @__PURE__ */ e(
|
|
2147
|
+
}, Ir = () => {
|
|
2148
|
+
const { isIncomeInitialized: t, loadDebtSpend: n, loadIncome: o, monthlySummaries: r } = L(), [i, a] = m.useState(0), { finstrong: l } = S();
|
|
2149
|
+
if (m.useEffect(() => {
|
|
2150
|
+
t || (n().finally(), o().finally());
|
|
2151
|
+
}, [t]), !t) return /* @__PURE__ */ e(ee, {});
|
|
1913
2152
|
const c = r.some(
|
|
1914
2153
|
(d) => d.debt_spend !== 0 || d.income !== 0
|
|
1915
2154
|
);
|
|
1916
|
-
return /* @__PURE__ */
|
|
1917
|
-
/* @__PURE__ */
|
|
1918
|
-
/* @__PURE__ */
|
|
1919
|
-
|
|
2155
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
2156
|
+
/* @__PURE__ */ s(Y, { children: [
|
|
2157
|
+
/* @__PURE__ */ s(
|
|
2158
|
+
et,
|
|
1920
2159
|
{
|
|
1921
2160
|
"aria-label": l.key_indicators_save.drawer_title,
|
|
1922
2161
|
centered: !0,
|
|
1923
2162
|
onChange: (d, p) => a(p),
|
|
1924
2163
|
selectionFollowsFocus: !0,
|
|
1925
2164
|
sx: { mb: 0 },
|
|
1926
|
-
value:
|
|
2165
|
+
value: i,
|
|
1927
2166
|
variant: "fullWidth",
|
|
1928
2167
|
children: [
|
|
1929
2168
|
/* @__PURE__ */ e(
|
|
1930
|
-
|
|
2169
|
+
he,
|
|
1931
2170
|
{
|
|
1932
2171
|
"aria-controls": "income-details-tabpanel-0",
|
|
1933
2172
|
id: "income-details-tab-0",
|
|
@@ -1936,7 +2175,7 @@ const zo = ({ total: t }) => {
|
|
|
1936
2175
|
}
|
|
1937
2176
|
),
|
|
1938
2177
|
/* @__PURE__ */ e(
|
|
1939
|
-
|
|
2178
|
+
he,
|
|
1940
2179
|
{
|
|
1941
2180
|
"aria-controls": "debt-payment-details-tabpanel-1",
|
|
1942
2181
|
id: "debt-payment-details-tab-1",
|
|
@@ -1948,28 +2187,28 @@ const zo = ({ total: t }) => {
|
|
|
1948
2187
|
}
|
|
1949
2188
|
),
|
|
1950
2189
|
/* @__PURE__ */ e(
|
|
1951
|
-
|
|
2190
|
+
ge,
|
|
1952
2191
|
{
|
|
1953
2192
|
"aria-labelledby": "income-details-tab-0",
|
|
1954
2193
|
index: 0,
|
|
1955
2194
|
name: "income-details",
|
|
1956
|
-
value:
|
|
1957
|
-
children: /* @__PURE__ */ e(
|
|
2195
|
+
value: i,
|
|
2196
|
+
children: /* @__PURE__ */ e(wr, {})
|
|
1958
2197
|
}
|
|
1959
2198
|
),
|
|
1960
2199
|
/* @__PURE__ */ e(
|
|
1961
|
-
|
|
2200
|
+
ge,
|
|
1962
2201
|
{
|
|
1963
2202
|
"aria-labelledby": "debt-payment-details-tab-1",
|
|
1964
2203
|
index: 1,
|
|
1965
2204
|
name: "debt-payment-details",
|
|
1966
|
-
value:
|
|
1967
|
-
children: /* @__PURE__ */ e(
|
|
2205
|
+
value: i,
|
|
2206
|
+
children: /* @__PURE__ */ e(Mr, {})
|
|
1968
2207
|
}
|
|
1969
2208
|
)
|
|
1970
2209
|
] }),
|
|
1971
|
-
c ? /* @__PURE__ */ e(
|
|
1972
|
-
|
|
2210
|
+
c ? /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
|
|
2211
|
+
Yt,
|
|
1973
2212
|
{
|
|
1974
2213
|
chartFor: "debt_payment_vs_income",
|
|
1975
2214
|
data: r,
|
|
@@ -1978,7 +2217,7 @@ const zo = ({ total: t }) => {
|
|
|
1978
2217
|
title: l.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
|
|
1979
2218
|
}
|
|
1980
2219
|
) }) : /* @__PURE__ */ e(
|
|
1981
|
-
|
|
2220
|
+
Be,
|
|
1982
2221
|
{
|
|
1983
2222
|
header: l.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_double_bar_chart_empty_state_header,
|
|
1984
2223
|
icon: "multiline_chart",
|
|
@@ -1994,23 +2233,22 @@ const zo = ({ total: t }) => {
|
|
|
1994
2233
|
lineHeight: "24px",
|
|
1995
2234
|
mt: 8
|
|
1996
2235
|
}
|
|
1997
|
-
}
|
|
1998
|
-
variant: "no-buttons"
|
|
2236
|
+
}
|
|
1999
2237
|
}
|
|
2000
2238
|
),
|
|
2001
|
-
/* @__PURE__ */ e(
|
|
2239
|
+
/* @__PURE__ */ e(ot, { chartFor: "debtOverTime" })
|
|
2002
2240
|
] });
|
|
2003
|
-
},
|
|
2004
|
-
const { healthScore: t } =
|
|
2241
|
+
}, Ar = w(Ir), Tr = () => {
|
|
2242
|
+
const { healthScore: t } = L(), { finstrong: n } = S(), o = Ee(t.spend_to_income_ratio), r = o ?? 0, i = Object.keys(t).length === 0, a = Bt(o), l = {
|
|
2005
2243
|
GOOD: [{ percentage: `${r}%` }],
|
|
2006
2244
|
FAIR: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
|
|
2007
2245
|
OFF_TRACK: [{ percentage: "100%" }, { percentage: `${r - 100}%` }],
|
|
2008
2246
|
MISSING: [{ percentage: "0%" }]
|
|
2009
2247
|
}[a];
|
|
2010
2248
|
return /* @__PURE__ */ e(
|
|
2011
|
-
|
|
2249
|
+
Ne,
|
|
2012
2250
|
{
|
|
2013
|
-
bottomComponent: /* @__PURE__ */
|
|
2251
|
+
bottomComponent: /* @__PURE__ */ s(
|
|
2014
2252
|
_,
|
|
2015
2253
|
{
|
|
2016
2254
|
sx: {
|
|
@@ -2020,64 +2258,64 @@ const zo = ({ total: t }) => {
|
|
|
2020
2258
|
mt: 8
|
|
2021
2259
|
},
|
|
2022
2260
|
children: [
|
|
2023
|
-
/* @__PURE__ */
|
|
2024
|
-
t.ninety_day_income <= 0 ? "-" :
|
|
2261
|
+
/* @__PURE__ */ s(D, { variant: "body2", children: [
|
|
2262
|
+
t.ninety_day_income <= 0 ? "-" : B(t.ninety_day_income, "0,0.00"),
|
|
2025
2263
|
" ",
|
|
2026
|
-
|
|
2264
|
+
n?.key_indicators_spend.spend_less_than_you_make_drawer.income
|
|
2027
2265
|
] }),
|
|
2028
|
-
/* @__PURE__ */
|
|
2266
|
+
/* @__PURE__ */ s(D, { variant: "body2", children: [
|
|
2029
2267
|
r <= 0 ? "-%" : `${r}%`,
|
|
2030
2268
|
" ",
|
|
2031
|
-
|
|
2269
|
+
n?.key_indicators_spend.spend_less_than_you_make_drawer.spent
|
|
2032
2270
|
] })
|
|
2033
2271
|
]
|
|
2034
2272
|
}
|
|
2035
2273
|
),
|
|
2036
|
-
label:
|
|
2274
|
+
label: n?.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_sticky_description,
|
|
2037
2275
|
status: a,
|
|
2038
2276
|
statusBarData: l,
|
|
2039
|
-
value:
|
|
2277
|
+
value: i ? "$0" : B(t.ninety_day_spend, "0,0.00")
|
|
2040
2278
|
}
|
|
2041
2279
|
);
|
|
2042
|
-
},
|
|
2043
|
-
const { accounts: t } =
|
|
2044
|
-
|
|
2280
|
+
}, Or = w(Tr), Rr = () => {
|
|
2281
|
+
const { accounts: t } = ke(), { categories: n, dateRangeCategoryTotals: o, loadDateRangeCategoryTotals: r } = Qe(), { monthlySummaries: i, handleFinstrongWidgetPrimaryCtaClick: a } = L(), { appDataStore: l } = Bn(), { finstrong: c, goals: d, spending: p } = S(), u = W(), [h, f] = m.useState("");
|
|
2282
|
+
m.useEffect(() => {
|
|
2045
2283
|
r(
|
|
2046
2284
|
t,
|
|
2047
|
-
|
|
2048
|
-
|
|
2285
|
+
It(/* @__PURE__ */ new Date()),
|
|
2286
|
+
At(/* @__PURE__ */ new Date())
|
|
2049
2287
|
).finally();
|
|
2050
2288
|
}, [t]);
|
|
2051
|
-
const
|
|
2052
|
-
() =>
|
|
2053
|
-
[
|
|
2289
|
+
const v = m.useMemo(
|
|
2290
|
+
() => Jn(n, d, u, o),
|
|
2291
|
+
[n, o]
|
|
2054
2292
|
), x = (k) => {
|
|
2055
|
-
|
|
2056
|
-
}, { totalSpending:
|
|
2057
|
-
(k, { standard_spend: g = 0, income:
|
|
2293
|
+
f(h === k ? "" : k);
|
|
2294
|
+
}, { totalSpending: C, totalIncome: b } = m.useMemo(() => i?.reduce(
|
|
2295
|
+
(k, { standard_spend: g = 0, income: y = 0 }) => ({
|
|
2058
2296
|
totalSpending: k.totalSpending + g,
|
|
2059
|
-
totalIncome: k.totalIncome +
|
|
2297
|
+
totalIncome: k.totalIncome + y
|
|
2060
2298
|
}),
|
|
2061
2299
|
{ totalSpending: 0, totalIncome: 0 }
|
|
2062
|
-
), [
|
|
2063
|
-
return /* @__PURE__ */
|
|
2064
|
-
|
|
2065
|
-
|
|
2300
|
+
), [i]);
|
|
2301
|
+
return /* @__PURE__ */ s(_, { sx: { gap: 24 }, children: [
|
|
2302
|
+
b > 0 || C > 0 ? /* @__PURE__ */ e(
|
|
2303
|
+
Yt,
|
|
2066
2304
|
{
|
|
2067
2305
|
...l.appData.client_profile?.allow_trends_widget && {
|
|
2068
2306
|
buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
2069
2307
|
},
|
|
2070
2308
|
chartFor: "spending_vs_income",
|
|
2071
|
-
data:
|
|
2309
|
+
data: i,
|
|
2072
2310
|
legendLabelComparison: c.key_indicators_spend.spend_less_than_you_make_drawer.income,
|
|
2073
2311
|
legendLabelMain: c.key_indicators_spend.spend_less_than_you_make_drawer.spending,
|
|
2074
2312
|
onClick: () => a("trends")(),
|
|
2075
2313
|
title: c.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2076
|
-
totalComparison:
|
|
2077
|
-
totalMain:
|
|
2314
|
+
totalComparison: B(b, "0,0.00"),
|
|
2315
|
+
totalMain: B(C, "0,0.00")
|
|
2078
2316
|
}
|
|
2079
2317
|
) : /* @__PURE__ */ e(
|
|
2080
|
-
|
|
2318
|
+
Be,
|
|
2081
2319
|
{
|
|
2082
2320
|
header: c.key_indicators_spend.spend_less_than_you_make_drawer.trends_zero_state_title,
|
|
2083
2321
|
icon: "multiline_chart",
|
|
@@ -2093,19 +2331,18 @@ const zo = ({ total: t }) => {
|
|
|
2093
2331
|
lineHeight: "24px",
|
|
2094
2332
|
mt: 8
|
|
2095
2333
|
}
|
|
2096
|
-
}
|
|
2097
|
-
variant: "no-buttons"
|
|
2334
|
+
}
|
|
2098
2335
|
}
|
|
2099
2336
|
),
|
|
2100
|
-
|
|
2101
|
-
|
|
2337
|
+
v.donutData.length > 0 ? /* @__PURE__ */ s(
|
|
2338
|
+
Y,
|
|
2102
2339
|
{
|
|
2103
2340
|
sx: {
|
|
2104
2341
|
px: 16,
|
|
2105
2342
|
py: 24
|
|
2106
2343
|
},
|
|
2107
2344
|
children: [
|
|
2108
|
-
/* @__PURE__ */
|
|
2345
|
+
/* @__PURE__ */ s(
|
|
2109
2346
|
_,
|
|
2110
2347
|
{
|
|
2111
2348
|
sx: {
|
|
@@ -2118,11 +2355,11 @@ const zo = ({ total: t }) => {
|
|
|
2118
2355
|
px: 16
|
|
2119
2356
|
},
|
|
2120
2357
|
children: [
|
|
2121
|
-
/* @__PURE__ */ e(
|
|
2358
|
+
/* @__PURE__ */ e(j, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2122
2359
|
l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2123
|
-
|
|
2360
|
+
E,
|
|
2124
2361
|
{
|
|
2125
|
-
endIcon: /* @__PURE__ */ e(
|
|
2362
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
2126
2363
|
onClick: () => a("spending")(),
|
|
2127
2364
|
size: "small",
|
|
2128
2365
|
sx: {
|
|
@@ -2136,26 +2373,26 @@ const zo = ({ total: t }) => {
|
|
|
2136
2373
|
]
|
|
2137
2374
|
}
|
|
2138
2375
|
),
|
|
2139
|
-
/* @__PURE__ */
|
|
2376
|
+
/* @__PURE__ */ s(
|
|
2140
2377
|
_,
|
|
2141
2378
|
{
|
|
2142
2379
|
sx: { flexDirection: "row", gap: 12, justifyContent: "center", pb: 32, pt: 16, px: 24 },
|
|
2143
2380
|
children: [
|
|
2144
2381
|
/* @__PURE__ */ e(
|
|
2145
|
-
|
|
2382
|
+
eo,
|
|
2146
2383
|
{
|
|
2147
|
-
data:
|
|
2384
|
+
data: v,
|
|
2148
2385
|
onSelected: x,
|
|
2149
|
-
selectedId:
|
|
2386
|
+
selectedId: h,
|
|
2150
2387
|
totalLabel: p.total_spending
|
|
2151
2388
|
}
|
|
2152
2389
|
),
|
|
2153
2390
|
/* @__PURE__ */ e(
|
|
2154
|
-
|
|
2391
|
+
to,
|
|
2155
2392
|
{
|
|
2156
|
-
data:
|
|
2393
|
+
data: v,
|
|
2157
2394
|
onSelected: x,
|
|
2158
|
-
selectedId:
|
|
2395
|
+
selectedId: h
|
|
2159
2396
|
}
|
|
2160
2397
|
)
|
|
2161
2398
|
]
|
|
@@ -2164,7 +2401,7 @@ const zo = ({ total: t }) => {
|
|
|
2164
2401
|
]
|
|
2165
2402
|
}
|
|
2166
2403
|
) : /* @__PURE__ */ e(
|
|
2167
|
-
|
|
2404
|
+
Be,
|
|
2168
2405
|
{
|
|
2169
2406
|
header: c.key_indicators_spend.spend_less_than_you_make_drawer.spending_zero_state_title,
|
|
2170
2407
|
icon: "donut_small",
|
|
@@ -2180,22 +2417,21 @@ const zo = ({ total: t }) => {
|
|
|
2180
2417
|
lineHeight: "24px",
|
|
2181
2418
|
mt: 8
|
|
2182
2419
|
}
|
|
2183
|
-
}
|
|
2184
|
-
variant: "no-buttons"
|
|
2420
|
+
}
|
|
2185
2421
|
}
|
|
2186
2422
|
)
|
|
2187
2423
|
] });
|
|
2188
|
-
},
|
|
2424
|
+
}, Fr = w(Rr), Lr = ({
|
|
2189
2425
|
drawerFor: t,
|
|
2190
|
-
isOpen:
|
|
2191
|
-
onClose:
|
|
2426
|
+
isOpen: n,
|
|
2427
|
+
onClose: o
|
|
2192
2428
|
}) => {
|
|
2193
|
-
const { finstrong: r } =
|
|
2429
|
+
const { finstrong: r } = S(), a = {
|
|
2194
2430
|
spendLessThanYouMake: {
|
|
2195
2431
|
title: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2196
2432
|
description: r.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
2197
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2198
|
-
content: /* @__PURE__ */ e(
|
|
2433
|
+
stickyComponent: /* @__PURE__ */ e(Or, {}),
|
|
2434
|
+
content: /* @__PURE__ */ e(Fr, {}),
|
|
2199
2435
|
drawerType: "connectDrawer",
|
|
2200
2436
|
connectTitle: r.connect_your_accounts,
|
|
2201
2437
|
connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
@@ -2203,16 +2439,16 @@ const zo = ({ total: t }) => {
|
|
|
2203
2439
|
payBillsOnTime: {
|
|
2204
2440
|
title: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_title,
|
|
2205
2441
|
description: r.key_indicators_spend.pay_bills_on_time_drawer.pay_bills_on_time_description,
|
|
2206
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2207
|
-
content: /* @__PURE__ */ e(
|
|
2442
|
+
stickyComponent: /* @__PURE__ */ e(ur, {}),
|
|
2443
|
+
content: /* @__PURE__ */ e(dr, {}),
|
|
2208
2444
|
drawerType: "connectDrawer",
|
|
2209
2445
|
connectTitle: r.connect_your_accounts,
|
|
2210
2446
|
connectDescription: r.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
2211
2447
|
},
|
|
2212
2448
|
maintainEmergencySavings: {
|
|
2213
|
-
content: /* @__PURE__ */ e(
|
|
2449
|
+
content: /* @__PURE__ */ e(rr, {}),
|
|
2214
2450
|
description: r.maintain_emergency_savings_description,
|
|
2215
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2451
|
+
stickyComponent: /* @__PURE__ */ e(cr, {}),
|
|
2216
2452
|
title: r.maintain_emergency_savings_title,
|
|
2217
2453
|
drawerType: "connectDrawer",
|
|
2218
2454
|
connectTitle: r.connect_your_accounts,
|
|
@@ -2221,58 +2457,58 @@ const zo = ({ total: t }) => {
|
|
|
2221
2457
|
haveManageableDebt: {
|
|
2222
2458
|
title: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_title,
|
|
2223
2459
|
description: r.key_indicators_borrow.have_manageable_debt_drawer.have_manageable_debt_description,
|
|
2224
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2225
|
-
content: /* @__PURE__ */ e(
|
|
2460
|
+
stickyComponent: /* @__PURE__ */ e(Sr, {}),
|
|
2461
|
+
content: /* @__PURE__ */ e(Ar, {}),
|
|
2226
2462
|
drawerType: "connectDrawer",
|
|
2227
2463
|
connectTitle: r.dont_see_all_your_accounts,
|
|
2228
2464
|
connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
2229
2465
|
},
|
|
2230
2466
|
haveAGoodCreditScore: {
|
|
2231
|
-
title: /* @__PURE__ */ e(
|
|
2467
|
+
title: /* @__PURE__ */ e(Qo, {}),
|
|
2232
2468
|
description: r.credit_score_description,
|
|
2233
2469
|
stickyComponent: null,
|
|
2234
|
-
content: /* @__PURE__ */ e(
|
|
2470
|
+
content: /* @__PURE__ */ e(Uo, {})
|
|
2235
2471
|
},
|
|
2236
2472
|
saveEnoughToLiveOn: {
|
|
2237
2473
|
title: r.key_indicators_save.drawer_title,
|
|
2238
2474
|
description: r.key_indicators_save.drawer_description,
|
|
2239
|
-
stickyComponent: /* @__PURE__ */ e(
|
|
2240
|
-
content: /* @__PURE__ */ e(
|
|
2475
|
+
stickyComponent: /* @__PURE__ */ e(xr, {}),
|
|
2476
|
+
content: /* @__PURE__ */ e(fr, {}),
|
|
2241
2477
|
drawerType: "connectDrawer",
|
|
2242
2478
|
connectTitle: r.dont_see_all_your_accounts,
|
|
2243
2479
|
connectDescription: r.connect_more_accounts_to_view_more_accurate_financial_picture
|
|
2244
2480
|
}
|
|
2245
2481
|
}[t];
|
|
2246
2482
|
return /* @__PURE__ */ e(
|
|
2247
|
-
|
|
2483
|
+
Kt,
|
|
2248
2484
|
{
|
|
2249
2485
|
connectDescription: a?.connectDescription,
|
|
2250
2486
|
connectTitle: a?.connectTitle,
|
|
2251
2487
|
description: a?.description,
|
|
2252
2488
|
drawerTitle: r.key_indicators,
|
|
2253
2489
|
drawerType: a.drawerType,
|
|
2254
|
-
isOpen:
|
|
2490
|
+
isOpen: n,
|
|
2255
2491
|
loadConnectAccountsCard: !0,
|
|
2256
|
-
onClose:
|
|
2492
|
+
onClose: o,
|
|
2257
2493
|
stickyComponent: a.stickyComponent,
|
|
2258
2494
|
title: a.title,
|
|
2259
2495
|
children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: a.content })
|
|
2260
2496
|
}
|
|
2261
2497
|
);
|
|
2262
|
-
},
|
|
2498
|
+
}, Pr = w(Lr), we = ({
|
|
2263
2499
|
drawerFor: t,
|
|
2264
|
-
title:
|
|
2265
|
-
description:
|
|
2500
|
+
title: n,
|
|
2501
|
+
description: o,
|
|
2266
2502
|
cardState: r = "MISSING"
|
|
2267
2503
|
}) => {
|
|
2268
|
-
const { finstrong:
|
|
2504
|
+
const { finstrong: i } = S(), [a, l] = m.useState(!1), c = (d) => {
|
|
2269
2505
|
(d.key === "Enter" || d.key === " ") && (d.preventDefault(), l(!0));
|
|
2270
2506
|
};
|
|
2271
|
-
return /* @__PURE__ */
|
|
2272
|
-
/* @__PURE__ */
|
|
2507
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
2508
|
+
/* @__PURE__ */ s(
|
|
2273
2509
|
_,
|
|
2274
2510
|
{
|
|
2275
|
-
"aria-label": `${
|
|
2511
|
+
"aria-label": `${i.key_indicators_open} ${n}`,
|
|
2276
2512
|
onClick: () => l(!0),
|
|
2277
2513
|
onKeyDown: c,
|
|
2278
2514
|
role: "button",
|
|
@@ -2289,19 +2525,19 @@ const zo = ({ total: t }) => {
|
|
|
2289
2525
|
},
|
|
2290
2526
|
tabIndex: 0,
|
|
2291
2527
|
children: [
|
|
2292
|
-
/* @__PURE__ */
|
|
2293
|
-
/* @__PURE__ */
|
|
2294
|
-
/* @__PURE__ */ e(
|
|
2295
|
-
/* @__PURE__ */ e(
|
|
2528
|
+
/* @__PURE__ */ s(_, { sx: { gap: 8, minWidth: 0 }, children: [
|
|
2529
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
2530
|
+
/* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "body1", children: n }),
|
|
2531
|
+
/* @__PURE__ */ e($e, { status: r })
|
|
2296
2532
|
] }),
|
|
2297
|
-
/* @__PURE__ */ e(
|
|
2533
|
+
/* @__PURE__ */ e(A, { color: "secondary", variant: "subtitle2", children: o })
|
|
2298
2534
|
] }),
|
|
2299
|
-
/* @__PURE__ */ e(
|
|
2535
|
+
/* @__PURE__ */ e(J, { color: "secondary", size: 24 })
|
|
2300
2536
|
]
|
|
2301
2537
|
}
|
|
2302
2538
|
),
|
|
2303
2539
|
/* @__PURE__ */ e(
|
|
2304
|
-
|
|
2540
|
+
Pr,
|
|
2305
2541
|
{
|
|
2306
2542
|
drawerFor: t,
|
|
2307
2543
|
isOpen: a,
|
|
@@ -2309,170 +2545,170 @@ const zo = ({ total: t }) => {
|
|
|
2309
2545
|
}
|
|
2310
2546
|
)
|
|
2311
2547
|
] });
|
|
2312
|
-
},
|
|
2313
|
-
const { finstrong: t } =
|
|
2314
|
-
const c =
|
|
2315
|
-
GOOD:
|
|
2316
|
-
FAIR:
|
|
2317
|
-
OFF_TRACK:
|
|
2318
|
-
MISSING:
|
|
2319
|
-
}, p = c === "MISSING" ? d[c] :
|
|
2548
|
+
}, Br = () => {
|
|
2549
|
+
const { finstrong: t } = S(), { key_indicators_spend: n } = t, { healthScore: o } = L(), r = (l) => {
|
|
2550
|
+
const c = Bt(l), d = {
|
|
2551
|
+
GOOD: n.ratio_good_description,
|
|
2552
|
+
FAIR: n.ratio_fair_description,
|
|
2553
|
+
OFF_TRACK: n.ratio_off_track_description,
|
|
2554
|
+
MISSING: n.ratio_missing_description
|
|
2555
|
+
}, p = c === "MISSING" ? d[c] : z(d[c], l);
|
|
2320
2556
|
return {
|
|
2321
2557
|
cardState: c,
|
|
2322
2558
|
description: p,
|
|
2323
|
-
title:
|
|
2559
|
+
title: n.ratio_card_title
|
|
2324
2560
|
};
|
|
2325
|
-
}, { spendToIncomeRatio:
|
|
2326
|
-
const l =
|
|
2327
|
-
|
|
2328
|
-
|
|
2561
|
+
}, { spendToIncomeRatio: i, spendFeeCount: a } = m.useMemo(() => {
|
|
2562
|
+
const l = o.spend_to_income_ratio !== null ? Math.round(o.spend_to_income_ratio * 100) : null, c = r(l), d = Lo(
|
|
2563
|
+
o.spending_fee_transaction_count,
|
|
2564
|
+
n
|
|
2329
2565
|
);
|
|
2330
2566
|
return { spendToIncomeRatio: c, spendFeeCount: d };
|
|
2331
2567
|
}, [
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2568
|
+
o.spend_to_income_ratio,
|
|
2569
|
+
o.spending_fee_transaction_count,
|
|
2570
|
+
n,
|
|
2335
2571
|
t
|
|
2336
2572
|
]);
|
|
2337
|
-
return /* @__PURE__ */
|
|
2573
|
+
return /* @__PURE__ */ s(_, { sx: { gap: 24, p: 8, pt: 24 }, children: [
|
|
2338
2574
|
/* @__PURE__ */ e(
|
|
2339
|
-
|
|
2575
|
+
we,
|
|
2340
2576
|
{
|
|
2341
|
-
cardState:
|
|
2342
|
-
description:
|
|
2343
|
-
drawerFor:
|
|
2344
|
-
title:
|
|
2577
|
+
cardState: i.cardState,
|
|
2578
|
+
description: i.description,
|
|
2579
|
+
drawerFor: ye.SpendLessThanYouMake,
|
|
2580
|
+
title: i.title
|
|
2345
2581
|
}
|
|
2346
2582
|
),
|
|
2347
2583
|
/* @__PURE__ */ e(
|
|
2348
|
-
|
|
2584
|
+
we,
|
|
2349
2585
|
{
|
|
2350
2586
|
cardState: a.cardState,
|
|
2351
2587
|
description: a.description,
|
|
2352
|
-
drawerFor:
|
|
2588
|
+
drawerFor: ye.PayBillsOnTime,
|
|
2353
2589
|
title: a.title
|
|
2354
2590
|
}
|
|
2355
2591
|
)
|
|
2356
2592
|
] });
|
|
2357
|
-
},
|
|
2358
|
-
const { healthScore: t } =
|
|
2359
|
-
const d =
|
|
2360
|
-
GOOD:
|
|
2361
|
-
FAIR:
|
|
2362
|
-
OFF_TRACK:
|
|
2363
|
-
MISSING:
|
|
2364
|
-
}, u = d === "MISSING" ? p[d] :
|
|
2593
|
+
}, Er = w(Br), Gr = () => {
|
|
2594
|
+
const { healthScore: t } = L(), { finstrong: n } = S(), { key_indicators_save: o } = n, r = (c) => {
|
|
2595
|
+
const d = Lt(c), p = {
|
|
2596
|
+
GOOD: o.days_of_cash_good_description,
|
|
2597
|
+
FAIR: o.days_of_cash_fair_description,
|
|
2598
|
+
OFF_TRACK: o.days_of_cash_off_track_description,
|
|
2599
|
+
MISSING: o.days_of_cash_missing_description
|
|
2600
|
+
}, u = d === "MISSING" ? p[d] : z(p[d], c);
|
|
2365
2601
|
return {
|
|
2366
2602
|
cardState: d,
|
|
2367
2603
|
description: u,
|
|
2368
|
-
title:
|
|
2604
|
+
title: o.days_of_cash_title
|
|
2369
2605
|
};
|
|
2370
|
-
},
|
|
2371
|
-
const d =
|
|
2372
|
-
GOOD:
|
|
2373
|
-
FAIR:
|
|
2374
|
-
OFF_TRACK:
|
|
2375
|
-
MISSING:
|
|
2606
|
+
}, i = (c) => {
|
|
2607
|
+
const d = Pt(c), p = {
|
|
2608
|
+
GOOD: o.emergency_savings_good_description,
|
|
2609
|
+
FAIR: o.emergency_savings_fair_description,
|
|
2610
|
+
OFF_TRACK: o.emergency_savings_off_track_description,
|
|
2611
|
+
MISSING: o.emergency_savings_missing_description
|
|
2376
2612
|
};
|
|
2377
2613
|
let u;
|
|
2378
|
-
return d === "FAIR" && c !== null ? u =
|
|
2614
|
+
return d === "FAIR" && c !== null ? u = z(
|
|
2379
2615
|
p[d],
|
|
2380
|
-
|
|
2616
|
+
B(c, "0,0.00")
|
|
2381
2617
|
) : u = p[d], {
|
|
2382
2618
|
cardState: d,
|
|
2383
2619
|
description: u,
|
|
2384
|
-
title:
|
|
2620
|
+
title: o.emergency_savings_title
|
|
2385
2621
|
};
|
|
2386
|
-
}, { daysOfCashOnHand: a, emergencySavings: l } =
|
|
2387
|
-
const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, d = r(c), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u =
|
|
2622
|
+
}, { daysOfCashOnHand: a, emergencySavings: l } = m.useMemo(() => {
|
|
2623
|
+
const c = t.months_of_cash_on_hand !== null ? Math.round(t.months_of_cash_on_hand * 30) : null, d = r(c), p = t.emergency_savings_on_hand !== null ? Math.round(t.emergency_savings_on_hand) : null, u = i(p);
|
|
2388
2624
|
return { daysOfCashOnHand: d, emergencySavings: u };
|
|
2389
2625
|
}, [
|
|
2390
2626
|
t.months_of_cash_on_hand,
|
|
2391
2627
|
t.emergency_savings_on_hand,
|
|
2392
|
-
|
|
2393
|
-
|
|
2628
|
+
o,
|
|
2629
|
+
n
|
|
2394
2630
|
]);
|
|
2395
|
-
return /* @__PURE__ */
|
|
2631
|
+
return /* @__PURE__ */ s(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
2396
2632
|
/* @__PURE__ */ e(
|
|
2397
|
-
|
|
2633
|
+
we,
|
|
2398
2634
|
{
|
|
2399
2635
|
cardState: a.cardState,
|
|
2400
2636
|
description: a.description,
|
|
2401
|
-
drawerFor:
|
|
2637
|
+
drawerFor: ye.SaveEnoughToLiveOn,
|
|
2402
2638
|
title: a.title
|
|
2403
2639
|
}
|
|
2404
2640
|
),
|
|
2405
2641
|
/* @__PURE__ */ e(
|
|
2406
|
-
|
|
2642
|
+
we,
|
|
2407
2643
|
{
|
|
2408
2644
|
cardState: l.cardState,
|
|
2409
2645
|
description: l.description,
|
|
2410
|
-
drawerFor:
|
|
2646
|
+
drawerFor: ye.MaintainEmergencySavings,
|
|
2411
2647
|
title: l.title
|
|
2412
2648
|
}
|
|
2413
2649
|
)
|
|
2414
2650
|
] });
|
|
2415
|
-
},
|
|
2416
|
-
const { healthScore: t } =
|
|
2417
|
-
const p =
|
|
2418
|
-
GOOD:
|
|
2419
|
-
FAIR:
|
|
2420
|
-
OFF_TRACK:
|
|
2421
|
-
MISSING:
|
|
2422
|
-
},
|
|
2651
|
+
}, Wr = w(Gr), $r = () => {
|
|
2652
|
+
const { healthScore: t } = L(), { finstrong: n } = S(), { key_indicators_borrow: o } = n, { user: r } = oe(), i = (d) => {
|
|
2653
|
+
const p = Et(d), u = {
|
|
2654
|
+
GOOD: o.manage_debit_good_description,
|
|
2655
|
+
FAIR: o.manage_debit_fair_description,
|
|
2656
|
+
OFF_TRACK: o.manage_debit_off_track_description,
|
|
2657
|
+
MISSING: o.manage_debit_missing_description
|
|
2658
|
+
}, h = p === "FAIR" || p === "OFF_TRACK" ? z(u[p], d) : u[p];
|
|
2423
2659
|
return {
|
|
2424
2660
|
cardState: p,
|
|
2425
|
-
description:
|
|
2426
|
-
title:
|
|
2661
|
+
description: h,
|
|
2662
|
+
title: o.manage_debit_title
|
|
2427
2663
|
};
|
|
2428
2664
|
}, a = (d) => {
|
|
2429
|
-
const p =
|
|
2430
|
-
GOOD:
|
|
2431
|
-
FAIR:
|
|
2432
|
-
OFF_TRACK:
|
|
2433
|
-
MISSING:
|
|
2434
|
-
},
|
|
2665
|
+
const p = Gt(d), u = {
|
|
2666
|
+
GOOD: o.credit_score_good_description,
|
|
2667
|
+
FAIR: o.credit_score_fair_description,
|
|
2668
|
+
OFF_TRACK: o.credit_score_off_track_description,
|
|
2669
|
+
MISSING: o.credit_score_missing_description
|
|
2670
|
+
}, h = p === "MISSING" ? u[p] : z(u[p], d);
|
|
2435
2671
|
return {
|
|
2436
2672
|
cardState: p,
|
|
2437
|
-
description:
|
|
2438
|
-
title:
|
|
2673
|
+
description: h,
|
|
2674
|
+
title: o.credit_score_title
|
|
2439
2675
|
};
|
|
2440
|
-
}, { manageDebtStatus: l, creditScoreStatus: c } =
|
|
2441
|
-
const d = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p =
|
|
2676
|
+
}, { manageDebtStatus: l, creditScoreStatus: c } = m.useMemo(() => {
|
|
2677
|
+
const d = t.debt_to_income_ratio !== null ? Math.round(t.debt_to_income_ratio * 100) : null, p = i(d), u = a(r.credit_score || null);
|
|
2442
2678
|
return {
|
|
2443
2679
|
manageDebtStatus: p,
|
|
2444
2680
|
creditScoreStatus: u
|
|
2445
2681
|
};
|
|
2446
|
-
}, [t.debt_to_income_ratio, r.credit_score,
|
|
2447
|
-
return /* @__PURE__ */
|
|
2682
|
+
}, [t.debt_to_income_ratio, r.credit_score, o, n]);
|
|
2683
|
+
return /* @__PURE__ */ s(_, { direction: "column", gap: 24, sx: { p: 8, pt: 24 }, children: [
|
|
2448
2684
|
/* @__PURE__ */ e(
|
|
2449
|
-
|
|
2685
|
+
we,
|
|
2450
2686
|
{
|
|
2451
2687
|
cardState: l.cardState,
|
|
2452
2688
|
description: l.description,
|
|
2453
|
-
drawerFor:
|
|
2689
|
+
drawerFor: ye.HaveManageableDebt,
|
|
2454
2690
|
title: l.title
|
|
2455
2691
|
}
|
|
2456
2692
|
),
|
|
2457
2693
|
/* @__PURE__ */ e(
|
|
2458
|
-
|
|
2694
|
+
we,
|
|
2459
2695
|
{
|
|
2460
2696
|
cardState: c.cardState,
|
|
2461
2697
|
description: c.description,
|
|
2462
|
-
drawerFor:
|
|
2698
|
+
drawerFor: ye.HaveAGoodCreditScore,
|
|
2463
2699
|
title: c.title
|
|
2464
2700
|
}
|
|
2465
2701
|
)
|
|
2466
2702
|
] });
|
|
2467
|
-
},
|
|
2468
|
-
const [t,
|
|
2469
|
-
return /* @__PURE__ */
|
|
2470
|
-
/* @__PURE__ */
|
|
2471
|
-
|
|
2703
|
+
}, Nr = w($r), zr = () => {
|
|
2704
|
+
const [t, n] = m.useState(0), { finstrong: o } = S();
|
|
2705
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
2706
|
+
/* @__PURE__ */ s(
|
|
2707
|
+
et,
|
|
2472
2708
|
{
|
|
2473
2709
|
"aria-label": "Key Indicators",
|
|
2474
2710
|
centered: !0,
|
|
2475
|
-
onChange: (r,
|
|
2711
|
+
onChange: (r, i) => n(i),
|
|
2476
2712
|
selectionFollowsFocus: !0,
|
|
2477
2713
|
sx: {
|
|
2478
2714
|
mb: 0,
|
|
@@ -2485,57 +2721,57 @@ const zo = ({ total: t }) => {
|
|
|
2485
2721
|
variant: "fullWidth",
|
|
2486
2722
|
children: [
|
|
2487
2723
|
/* @__PURE__ */ e(
|
|
2488
|
-
|
|
2724
|
+
he,
|
|
2489
2725
|
{
|
|
2490
2726
|
"aria-controls": "spend-details-tabpanel-0",
|
|
2491
|
-
icon: /* @__PURE__ */ e(
|
|
2727
|
+
icon: /* @__PURE__ */ e(bt, { sx: { mr: 8 } }),
|
|
2492
2728
|
iconPosition: "start",
|
|
2493
2729
|
id: "spend-details-tab-0",
|
|
2494
|
-
label:
|
|
2730
|
+
label: o.key_indicators_spend.title,
|
|
2495
2731
|
sx: { minHeight: 44 }
|
|
2496
2732
|
}
|
|
2497
2733
|
),
|
|
2498
2734
|
/* @__PURE__ */ e(
|
|
2499
|
-
|
|
2735
|
+
he,
|
|
2500
2736
|
{
|
|
2501
2737
|
"aria-controls": "save-details-tabpanel-1",
|
|
2502
|
-
icon: /* @__PURE__ */ e(
|
|
2738
|
+
icon: /* @__PURE__ */ e(xn, { sx: { mr: 8 } }),
|
|
2503
2739
|
iconPosition: "start",
|
|
2504
2740
|
id: "save-details-tab-1",
|
|
2505
|
-
label:
|
|
2741
|
+
label: o.key_indicators_save.title,
|
|
2506
2742
|
sx: { minHeight: 44 }
|
|
2507
2743
|
}
|
|
2508
2744
|
),
|
|
2509
2745
|
/* @__PURE__ */ e(
|
|
2510
|
-
|
|
2746
|
+
he,
|
|
2511
2747
|
{
|
|
2512
2748
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
2513
|
-
icon: /* @__PURE__ */ e(
|
|
2749
|
+
icon: /* @__PURE__ */ e(Cn, { sx: { mr: 8 } }),
|
|
2514
2750
|
iconPosition: "start",
|
|
2515
2751
|
id: "borrow-details-tab-2",
|
|
2516
|
-
label:
|
|
2752
|
+
label: o.key_indicators_borrow.title,
|
|
2517
2753
|
sx: { minHeight: 44 }
|
|
2518
2754
|
}
|
|
2519
2755
|
)
|
|
2520
2756
|
]
|
|
2521
2757
|
}
|
|
2522
2758
|
),
|
|
2523
|
-
/* @__PURE__ */ e(
|
|
2524
|
-
/* @__PURE__ */ e(
|
|
2525
|
-
/* @__PURE__ */ e(
|
|
2759
|
+
/* @__PURE__ */ e(ge, { index: 0, name: "spend-details", value: t, children: /* @__PURE__ */ e(Er, {}) }),
|
|
2760
|
+
/* @__PURE__ */ e(ge, { index: 1, name: "save-details", value: t, children: /* @__PURE__ */ e(Wr, {}) }),
|
|
2761
|
+
/* @__PURE__ */ e(ge, { index: 2, name: "borrow-details", value: t, children: /* @__PURE__ */ e(Nr, {}) })
|
|
2526
2762
|
] });
|
|
2527
|
-
},
|
|
2528
|
-
const { finstrong:
|
|
2529
|
-
return
|
|
2530
|
-
/* @__PURE__ */ e(
|
|
2531
|
-
/* @__PURE__ */
|
|
2532
|
-
/* @__PURE__ */ e(
|
|
2533
|
-
/* @__PURE__ */ e(
|
|
2763
|
+
}, Hr = w(zr), Kr = ({ onClick: t }) => {
|
|
2764
|
+
const { finstrong: n } = S(), { isCopyLoaded: o } = ne();
|
|
2765
|
+
return o ? /* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
2766
|
+
/* @__PURE__ */ e(Sn, { size: 48 }),
|
|
2767
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
2768
|
+
/* @__PURE__ */ e(j, { children: n.missing_data_title }),
|
|
2769
|
+
/* @__PURE__ */ e(A, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: n.missing_data_description })
|
|
2534
2770
|
] }),
|
|
2535
2771
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
2536
|
-
|
|
2772
|
+
E,
|
|
2537
2773
|
{
|
|
2538
|
-
endIcon: /* @__PURE__ */ e(
|
|
2774
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
2539
2775
|
onClick: t,
|
|
2540
2776
|
size: "small",
|
|
2541
2777
|
sx: {
|
|
@@ -2545,79 +2781,79 @@ const zo = ({ total: t }) => {
|
|
|
2545
2781
|
}
|
|
2546
2782
|
},
|
|
2547
2783
|
variant: "text",
|
|
2548
|
-
children:
|
|
2784
|
+
children: n.connect_more_accounts_button
|
|
2549
2785
|
}
|
|
2550
2786
|
) })
|
|
2551
|
-
] }) : /* @__PURE__ */ e(
|
|
2552
|
-
},
|
|
2787
|
+
] }) : /* @__PURE__ */ e(ee, {});
|
|
2788
|
+
}, Vr = w(Kr), jr = ({
|
|
2553
2789
|
firstDay: t,
|
|
2554
|
-
frequency:
|
|
2555
|
-
secondDay:
|
|
2790
|
+
frequency: n,
|
|
2791
|
+
secondDay: o,
|
|
2556
2792
|
incomeTransactions: r,
|
|
2557
|
-
setCurrentStep:
|
|
2793
|
+
setCurrentStep: i,
|
|
2558
2794
|
setFirstDay: a,
|
|
2559
2795
|
setFrequency: l,
|
|
2560
2796
|
setSecondDay: c,
|
|
2561
2797
|
transaction: d
|
|
2562
2798
|
}) => {
|
|
2563
|
-
const { finstrong: p } =
|
|
2564
|
-
return /* @__PURE__ */
|
|
2565
|
-
/* @__PURE__ */
|
|
2566
|
-
!!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((u,
|
|
2567
|
-
if (
|
|
2568
|
-
const
|
|
2799
|
+
const { finstrong: p } = S();
|
|
2800
|
+
return /* @__PURE__ */ s(m.Fragment, { children: [
|
|
2801
|
+
/* @__PURE__ */ s(_, { children: [
|
|
2802
|
+
!!r.length && /* @__PURE__ */ e(M, { sx: { pb: 24 }, children: r.reduce((u, h, f) => {
|
|
2803
|
+
if (h.guid === d.guid) return u;
|
|
2804
|
+
const v = Kn(f, r), x = Vn(f, r);
|
|
2569
2805
|
return u.push(
|
|
2570
|
-
/* @__PURE__ */
|
|
2571
|
-
|
|
2572
|
-
/* @__PURE__ */ e(Yn, { transaction:
|
|
2573
|
-
/* @__PURE__ */ e(
|
|
2574
|
-
] },
|
|
2806
|
+
/* @__PURE__ */ s(m.Fragment, { children: [
|
|
2807
|
+
v && /* @__PURE__ */ e(jn, { children: Dt(h.date) }),
|
|
2808
|
+
/* @__PURE__ */ e(Yn, { transaction: h }),
|
|
2809
|
+
/* @__PURE__ */ e(ae, { sx: { ml: x ? 44 : 0 } })
|
|
2810
|
+
] }, h.guid)
|
|
2575
2811
|
), u;
|
|
2576
2812
|
}, []) }),
|
|
2577
2813
|
/* @__PURE__ */ e(
|
|
2578
|
-
|
|
2814
|
+
ao,
|
|
2579
2815
|
{
|
|
2580
2816
|
firstDay: t,
|
|
2581
|
-
frequency:
|
|
2817
|
+
frequency: n,
|
|
2582
2818
|
onFirstDayChange: a,
|
|
2583
2819
|
onFrequencyChange: l,
|
|
2584
2820
|
onSecondDayChange: c,
|
|
2585
|
-
secondDay:
|
|
2821
|
+
secondDay: o,
|
|
2586
2822
|
transaction: d
|
|
2587
2823
|
}
|
|
2588
2824
|
)
|
|
2589
2825
|
] }),
|
|
2590
2826
|
/* @__PURE__ */ e(M, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
2591
|
-
|
|
2827
|
+
E,
|
|
2592
2828
|
{
|
|
2593
2829
|
fullWidth: !0,
|
|
2594
|
-
onClick: () =>
|
|
2595
|
-
startIcon: /* @__PURE__ */ e(
|
|
2830
|
+
onClick: () => i({ step: R.MonthlyIncome, type: "main" }),
|
|
2831
|
+
startIcon: /* @__PURE__ */ e(xt, {}),
|
|
2596
2832
|
children: p.onboarding_add_more_income
|
|
2597
2833
|
}
|
|
2598
2834
|
) })
|
|
2599
2835
|
] });
|
|
2600
|
-
},
|
|
2601
|
-
const { finstrong:
|
|
2602
|
-
|
|
2836
|
+
}, Yr = w(jr), Xr = ({ selectedDate: t, setSelectedDate: n }) => {
|
|
2837
|
+
const { finstrong: o } = S(), r = W(), i = (a) => {
|
|
2838
|
+
n(Math.floor(new Date(a).getTime() / 1e3));
|
|
2603
2839
|
};
|
|
2604
|
-
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(lo, { dateAdapter:
|
|
2840
|
+
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(lo, { dateAdapter: Rt, children: /* @__PURE__ */ e(
|
|
2605
2841
|
po,
|
|
2606
2842
|
{
|
|
2607
2843
|
disableFuture: !0,
|
|
2608
|
-
label:
|
|
2609
|
-
onChange:
|
|
2844
|
+
label: o.onboarding_select_date,
|
|
2845
|
+
onChange: i,
|
|
2610
2846
|
slotProps: {
|
|
2611
2847
|
nextIconButton: {
|
|
2612
2848
|
sx: {
|
|
2613
2849
|
color: "primary.main",
|
|
2614
|
-
"&:hover": { bgcolor:
|
|
2850
|
+
"&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
|
|
2615
2851
|
}
|
|
2616
2852
|
},
|
|
2617
2853
|
previousIconButton: {
|
|
2618
2854
|
sx: {
|
|
2619
2855
|
color: "primary.main",
|
|
2620
|
-
"&:hover": { bgcolor:
|
|
2856
|
+
"&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
|
|
2621
2857
|
}
|
|
2622
2858
|
}
|
|
2623
2859
|
},
|
|
@@ -2625,31 +2861,33 @@ const zo = ({ total: t }) => {
|
|
|
2625
2861
|
width: "100%",
|
|
2626
2862
|
"& .MuiIconButton-edgeEnd": {
|
|
2627
2863
|
color: "primary.main",
|
|
2628
|
-
"&:hover": { bgcolor:
|
|
2864
|
+
"&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
|
|
2629
2865
|
}
|
|
2630
2866
|
},
|
|
2631
2867
|
value: t ? new Date(t * 1e3) : null
|
|
2632
2868
|
}
|
|
2633
2869
|
) }) });
|
|
2634
|
-
},
|
|
2635
|
-
const { finstrong:
|
|
2870
|
+
}, Ur = w(Xr), qr = ({ creditScore: t, setCreditScore: n }) => {
|
|
2871
|
+
const { finstrong: o } = S(), r = !isNaN(t);
|
|
2636
2872
|
return /* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
2637
|
-
|
|
2873
|
+
Pe,
|
|
2638
2874
|
{
|
|
2639
2875
|
error: !r,
|
|
2640
2876
|
fullWidth: !0,
|
|
2641
2877
|
inputMode: "numeric",
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2878
|
+
label: o.credit_score,
|
|
2879
|
+
onChange: (i) => n(Number(i.target.value)),
|
|
2880
|
+
slotProps: {
|
|
2881
|
+
htmlInput: {
|
|
2882
|
+
noValidate: !0,
|
|
2883
|
+
pattern: "[0-9]*"
|
|
2884
|
+
}
|
|
2645
2885
|
},
|
|
2646
|
-
label: n.credit_score,
|
|
2647
|
-
onChange: (s) => o(Number(s.target.value)),
|
|
2648
2886
|
value: r ? t : ""
|
|
2649
2887
|
}
|
|
2650
2888
|
) });
|
|
2651
|
-
},
|
|
2652
|
-
/* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((
|
|
2889
|
+
}, Qr = w(qr), Xt = ({ value: t, completeCopy: n }) => /* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
|
|
2890
|
+
/* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((o, r) => /* @__PURE__ */ e(
|
|
2653
2891
|
M,
|
|
2654
2892
|
{
|
|
2655
2893
|
sx: {
|
|
@@ -2661,244 +2899,244 @@ const zo = ({ total: t }) => {
|
|
|
2661
2899
|
},
|
|
2662
2900
|
r
|
|
2663
2901
|
)) }),
|
|
2664
|
-
/* @__PURE__ */
|
|
2902
|
+
/* @__PURE__ */ s(D, { sx: { color: "text.secondary" }, variant: "body2", children: [
|
|
2665
2903
|
t / 4 * 100,
|
|
2666
2904
|
"% ",
|
|
2667
|
-
|
|
2905
|
+
n
|
|
2668
2906
|
] })
|
|
2669
|
-
] }),
|
|
2907
|
+
] }), Zr = ({
|
|
2670
2908
|
completeCopy: t,
|
|
2671
|
-
primaryText:
|
|
2672
|
-
secondaryText:
|
|
2909
|
+
primaryText: n,
|
|
2910
|
+
secondaryText: o,
|
|
2673
2911
|
value: r
|
|
2674
|
-
}) => /* @__PURE__ */
|
|
2675
|
-
/* @__PURE__ */
|
|
2676
|
-
/* @__PURE__ */ e(
|
|
2677
|
-
/* @__PURE__ */ e(
|
|
2912
|
+
}) => /* @__PURE__ */ s(_, { sx: { gap: 20, p: 24 }, children: [
|
|
2913
|
+
/* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
|
|
2914
|
+
/* @__PURE__ */ e(j, { children: n }),
|
|
2915
|
+
/* @__PURE__ */ e(A, { variant: "subtitle1", children: o })
|
|
2678
2916
|
] }),
|
|
2679
|
-
/* @__PURE__ */ e(
|
|
2680
|
-
] }),
|
|
2917
|
+
/* @__PURE__ */ e(Xt, { completeCopy: t, value: r })
|
|
2918
|
+
] }), ht = {
|
|
2681
2919
|
step: R.ConnectAccounts,
|
|
2682
2920
|
type: "main"
|
|
2683
|
-
},
|
|
2684
|
-
const { visibleAccounts:
|
|
2685
|
-
|
|
2686
|
-
), [g,
|
|
2687
|
-
|
|
2688
|
-
l({ start:
|
|
2689
|
-
}, []),
|
|
2921
|
+
}, Jr = ({ isOpen: t, onClose: n }) => {
|
|
2922
|
+
const { visibleAccounts: o } = ke(), { calculateHealthScore: r } = L(), { finstrong: i } = S(), { addRepeatingTransaction: a, setDateRange: l } = Ze(), { filter: c, setFilter: d, transactions: p } = En(), { user: u, userProfile: h, updateUser: f, updateUserProfile: v } = oe(), [x, C] = m.useState(u.credit_score || 0), [b, k] = m.useState(
|
|
2923
|
+
ht
|
|
2924
|
+
), [g, y] = m.useState(1), [I, G] = m.useState(Tt.EveryMonth), [O, $] = m.useState([]), [F, K] = m.useState(!1), [fe, be] = m.useState(!1), [X, re] = m.useState(u.birthday), [ce, U] = m.useState(15), [V, le] = m.useState("");
|
|
2925
|
+
m.useEffect(() => {
|
|
2926
|
+
l({ start: It(Ve()), end: At(Ve()) });
|
|
2927
|
+
}, []), m.useEffect(() => {
|
|
2690
2928
|
d({
|
|
2691
|
-
accounts:
|
|
2929
|
+
accounts: o.map((T) => T.guid),
|
|
2692
2930
|
dateRange: {
|
|
2693
|
-
start:
|
|
2931
|
+
start: ro(/* @__PURE__ */ new Date(), 90),
|
|
2694
2932
|
end: /* @__PURE__ */ new Date()
|
|
2695
2933
|
},
|
|
2696
|
-
custom:
|
|
2934
|
+
custom: pt
|
|
2697
2935
|
});
|
|
2698
|
-
}, [
|
|
2699
|
-
const
|
|
2700
|
-
() => p.find((
|
|
2701
|
-
[
|
|
2702
|
-
),
|
|
2936
|
+
}, [o]);
|
|
2937
|
+
const de = m.useMemo(
|
|
2938
|
+
() => p.find((T) => T.guid === V),
|
|
2939
|
+
[V, p]
|
|
2940
|
+
), xe = m.useMemo(() => ({
|
|
2703
2941
|
[R.ConnectAccounts]: !0,
|
|
2704
|
-
[R.MonthlyIncome]: !!
|
|
2942
|
+
[R.MonthlyIncome]: !!V,
|
|
2705
2943
|
[R.Birthday]: !!u.birthday || !!X,
|
|
2706
2944
|
[R.CreditScore]: !!u.credit_score || !!x
|
|
2707
|
-
})[
|
|
2708
|
-
const { step:
|
|
2709
|
-
let
|
|
2710
|
-
return
|
|
2711
|
-
}, [
|
|
2945
|
+
})[b.step], [x, b, X, V, u]), N = o.length > 0, Ce = m.useMemo(() => {
|
|
2946
|
+
const { step: T } = b;
|
|
2947
|
+
let P = 0;
|
|
2948
|
+
return T >= R.MonthlyIncome && N && P++, T >= R.Birthday && O.length && P++, T >= R.CreditScore && (u.birthday || u.credit_score) && P++, P;
|
|
2949
|
+
}, [b.step, N, O.length, u.birthday, u.credit_score]), He = (T) => {
|
|
2712
2950
|
d({
|
|
2713
2951
|
...c,
|
|
2714
|
-
custom: (
|
|
2952
|
+
custom: (P) => T ? so(P, T) : pt(P)
|
|
2715
2953
|
});
|
|
2716
|
-
},
|
|
2954
|
+
}, Ke = {
|
|
2717
2955
|
[R.ConnectAccounts]: {
|
|
2718
|
-
main:
|
|
2719
|
-
mainActionContent:
|
|
2720
|
-
primaryText:
|
|
2721
|
-
secondaryText:
|
|
2956
|
+
main: N ? /* @__PURE__ */ e(Vt, { shouldShowBalance: !1 }) : null,
|
|
2957
|
+
mainActionContent: N ? i.onboarding_next : i.onboarding_add_accounts,
|
|
2958
|
+
primaryText: i.connect_your_accounts,
|
|
2959
|
+
secondaryText: i.onboarding_connect_your_accounts_secondary
|
|
2722
2960
|
},
|
|
2723
2961
|
[R.MonthlyIncome]: {
|
|
2724
2962
|
detail: /* @__PURE__ */ e(
|
|
2725
|
-
|
|
2963
|
+
Yr,
|
|
2726
2964
|
{
|
|
2727
2965
|
firstDay: g,
|
|
2728
|
-
frequency:
|
|
2729
|
-
incomeTransactions:
|
|
2730
|
-
secondDay:
|
|
2731
|
-
setCurrentStep: (
|
|
2732
|
-
k(
|
|
2733
|
-
if (
|
|
2734
|
-
const
|
|
2735
|
-
return
|
|
2966
|
+
frequency: I,
|
|
2967
|
+
incomeTransactions: O,
|
|
2968
|
+
secondDay: ce,
|
|
2969
|
+
setCurrentStep: (T) => {
|
|
2970
|
+
k(T), $((P) => {
|
|
2971
|
+
if (P.some((pe) => pe.guid === V)) return P.filter((pe) => pe.guid !== V);
|
|
2972
|
+
const Re = p.find((pe) => pe.guid === V);
|
|
2973
|
+
return Re ? [...P, { ...Re, firstDay: g, frequency: I, secondDay: ce }] : P;
|
|
2736
2974
|
});
|
|
2737
2975
|
},
|
|
2738
|
-
setFirstDay:
|
|
2739
|
-
setFrequency:
|
|
2740
|
-
setSecondDay:
|
|
2741
|
-
transaction:
|
|
2976
|
+
setFirstDay: y,
|
|
2977
|
+
setFrequency: G,
|
|
2978
|
+
setSecondDay: U,
|
|
2979
|
+
transaction: de
|
|
2742
2980
|
}
|
|
2743
2981
|
),
|
|
2744
|
-
detailActionContent:
|
|
2982
|
+
detailActionContent: i.onboarding_confirm_income,
|
|
2745
2983
|
main: /* @__PURE__ */ e(
|
|
2746
|
-
|
|
2984
|
+
io,
|
|
2747
2985
|
{
|
|
2748
|
-
onSearch:
|
|
2749
|
-
onSelected: (
|
|
2750
|
-
k({ step: R.MonthlyIncome, type: "detail" }),
|
|
2986
|
+
onSearch: He,
|
|
2987
|
+
onSelected: (T) => {
|
|
2988
|
+
k({ step: R.MonthlyIncome, type: "detail" }), le(T);
|
|
2751
2989
|
}
|
|
2752
2990
|
}
|
|
2753
2991
|
),
|
|
2754
|
-
mainActionContent:
|
|
2755
|
-
primaryText:
|
|
2756
|
-
secondaryText:
|
|
2992
|
+
mainActionContent: i.onboarding_confirm_income,
|
|
2993
|
+
primaryText: i.onboarding_add_income_primary,
|
|
2994
|
+
secondaryText: i.onboarding_add_income_secondary
|
|
2757
2995
|
},
|
|
2758
2996
|
[R.Birthday]: {
|
|
2759
|
-
main: /* @__PURE__ */ e(
|
|
2760
|
-
mainActionContent:
|
|
2761
|
-
primaryText:
|
|
2762
|
-
secondaryText:
|
|
2997
|
+
main: /* @__PURE__ */ e(Ur, { selectedDate: X, setSelectedDate: re }),
|
|
2998
|
+
mainActionContent: i.onboarding_next,
|
|
2999
|
+
primaryText: i.onboarding_birthday_primary,
|
|
3000
|
+
secondaryText: i.onboarding_birthday_secondary
|
|
2763
3001
|
},
|
|
2764
3002
|
[R.CreditScore]: {
|
|
2765
|
-
main: /* @__PURE__ */ e(
|
|
2766
|
-
mainActionContent:
|
|
2767
|
-
primaryText:
|
|
2768
|
-
secondaryText:
|
|
3003
|
+
main: /* @__PURE__ */ e(Qr, { creditScore: x, setCreditScore: C }),
|
|
3004
|
+
mainActionContent: i.onboarding_next,
|
|
3005
|
+
primaryText: i.onboarding_credit_score_primary,
|
|
3006
|
+
secondaryText: i.onboarding_credit_score_secondary
|
|
2769
3007
|
}
|
|
2770
|
-
},
|
|
2771
|
-
k(
|
|
2772
|
-
},
|
|
2773
|
-
|
|
2774
|
-
},
|
|
2775
|
-
if (
|
|
2776
|
-
|
|
3008
|
+
}, Te = () => {
|
|
3009
|
+
k(ht), K(!1), le(""), n();
|
|
3010
|
+
}, rt = async () => {
|
|
3011
|
+
K(!0), await Zt(O), await r(), await v({ ...h, has_completed_finstrong_onboarding: !0 }), Te();
|
|
3012
|
+
}, Ut = () => {
|
|
3013
|
+
if (b.step === R.CreditScore) {
|
|
3014
|
+
rt();
|
|
2777
3015
|
return;
|
|
2778
3016
|
}
|
|
2779
|
-
k({ step:
|
|
2780
|
-
},
|
|
2781
|
-
const { step:
|
|
2782
|
-
switch (
|
|
3017
|
+
k({ step: b.step + 1, type: "main" });
|
|
3018
|
+
}, qt = () => {
|
|
3019
|
+
const { step: T } = b, P = T + 1;
|
|
3020
|
+
switch (T) {
|
|
2783
3021
|
case R.Birthday:
|
|
2784
|
-
X && X !== u.birthday &&
|
|
3022
|
+
X && X !== u.birthday && f({ ...u, birthday: X });
|
|
2785
3023
|
break;
|
|
2786
3024
|
case R.CreditScore:
|
|
2787
|
-
x && x !== u.credit_score &&
|
|
3025
|
+
x && x !== u.credit_score && f({ ...u, credit_score: x }), rt();
|
|
2788
3026
|
return;
|
|
2789
3027
|
case R.MonthlyIncome:
|
|
2790
|
-
|
|
2791
|
-
...
|
|
2792
|
-
{ ...
|
|
3028
|
+
V && O.findIndex(({ guid: ve }) => ve === V) === -1 && $((ve) => [
|
|
3029
|
+
...ve,
|
|
3030
|
+
{ ...de, firstDay: g, frequency: I, secondDay: ce }
|
|
2793
3031
|
]);
|
|
2794
3032
|
break;
|
|
2795
3033
|
case R.ConnectAccounts:
|
|
2796
|
-
if (!
|
|
2797
|
-
|
|
3034
|
+
if (!N) {
|
|
3035
|
+
be(!0);
|
|
2798
3036
|
return;
|
|
2799
3037
|
}
|
|
2800
3038
|
break;
|
|
2801
3039
|
}
|
|
2802
|
-
|
|
2803
|
-
},
|
|
2804
|
-
const { step:
|
|
2805
|
-
if (
|
|
2806
|
-
k({ step:
|
|
3040
|
+
P in R && k({ step: P, type: "main" });
|
|
3041
|
+
}, Qt = () => {
|
|
3042
|
+
const { step: T, type: P } = b;
|
|
3043
|
+
if (P === "detail") {
|
|
3044
|
+
k({ step: T, type: "main" });
|
|
2807
3045
|
return;
|
|
2808
3046
|
}
|
|
2809
|
-
if (
|
|
2810
|
-
k({ step:
|
|
3047
|
+
if (T === R.Birthday && O.length) {
|
|
3048
|
+
k({ step: T - 1, type: "detail" });
|
|
2811
3049
|
return;
|
|
2812
3050
|
}
|
|
2813
|
-
|
|
2814
|
-
},
|
|
2815
|
-
for (const
|
|
3051
|
+
T > R.ConnectAccounts && k({ step: T - 1, type: "main" });
|
|
3052
|
+
}, Zt = async (T) => {
|
|
3053
|
+
for (const P of T) {
|
|
2816
3054
|
const {
|
|
2817
|
-
account_guid:
|
|
2818
|
-
amount:
|
|
2819
|
-
date:
|
|
2820
|
-
description:
|
|
2821
|
-
feed_description:
|
|
2822
|
-
firstDay:
|
|
2823
|
-
frequency:
|
|
2824
|
-
secondDay:
|
|
2825
|
-
merchant_guid:
|
|
2826
|
-
payee:
|
|
2827
|
-
transaction_type:
|
|
2828
|
-
} =
|
|
2829
|
-
account_guid:
|
|
2830
|
-
amount:
|
|
3055
|
+
account_guid: ve,
|
|
3056
|
+
amount: Re,
|
|
3057
|
+
date: pe,
|
|
3058
|
+
description: tn,
|
|
3059
|
+
feed_description: nn,
|
|
3060
|
+
firstDay: on,
|
|
3061
|
+
frequency: at,
|
|
3062
|
+
secondDay: rn,
|
|
3063
|
+
merchant_guid: an,
|
|
3064
|
+
payee: sn,
|
|
3065
|
+
transaction_type: cn
|
|
3066
|
+
} = P, ln = co(at, oo(pe)), dn = {
|
|
3067
|
+
account_guid: ve,
|
|
3068
|
+
amount: Re,
|
|
2831
3069
|
created_by: 0,
|
|
2832
|
-
description:
|
|
2833
|
-
merchant_guid:
|
|
2834
|
-
predicted_occurs_on:
|
|
2835
|
-
recurrence_day:
|
|
2836
|
-
recurrence_type:
|
|
2837
|
-
repeating_transaction_type:
|
|
2838
|
-
second_recurrence_day:
|
|
2839
|
-
transaction_type:
|
|
3070
|
+
description: sn || tn || nn,
|
|
3071
|
+
merchant_guid: an,
|
|
3072
|
+
predicted_occurs_on: no(ln, { representation: "date" }),
|
|
3073
|
+
recurrence_day: on,
|
|
3074
|
+
recurrence_type: at,
|
|
3075
|
+
repeating_transaction_type: Ot.Income,
|
|
3076
|
+
second_recurrence_day: rn,
|
|
3077
|
+
transaction_type: cn,
|
|
2840
3078
|
user_guid: u.guid
|
|
2841
3079
|
};
|
|
2842
|
-
await a(
|
|
3080
|
+
await a(dn, P);
|
|
2843
3081
|
}
|
|
2844
|
-
},
|
|
3082
|
+
}, Se = Ke[b.step], Oe = b.step === R.ConnectAccounts, Jt = {
|
|
2845
3083
|
fullWidth: !0,
|
|
2846
|
-
...
|
|
2847
|
-
},
|
|
2848
|
-
return /* @__PURE__ */
|
|
3084
|
+
...Oe && !N && { startIcon: /* @__PURE__ */ e(xt, {}) }
|
|
3085
|
+
}, en = !Oe || Oe && !N;
|
|
3086
|
+
return /* @__PURE__ */ s(m.Fragment, { children: [
|
|
2849
3087
|
/* @__PURE__ */ e(
|
|
2850
|
-
|
|
3088
|
+
ie,
|
|
2851
3089
|
{
|
|
2852
3090
|
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2853
|
-
hasSecondaryAction: !
|
|
3091
|
+
hasSecondaryAction: !Oe,
|
|
2854
3092
|
isOpen: t,
|
|
2855
|
-
isPrimaryDisabled: !
|
|
2856
|
-
onClose:
|
|
2857
|
-
onSecondaryAction:
|
|
2858
|
-
primaryButtonProps:
|
|
2859
|
-
primaryText:
|
|
3093
|
+
isPrimaryDisabled: !xe,
|
|
3094
|
+
onClose: Te,
|
|
3095
|
+
onSecondaryAction: Qt,
|
|
3096
|
+
primaryButtonProps: Jt,
|
|
3097
|
+
primaryText: Se?.mainActionContent,
|
|
2860
3098
|
secondaryColor: "primary",
|
|
2861
|
-
secondaryText:
|
|
2862
|
-
title:
|
|
2863
|
-
...!
|
|
2864
|
-
children: /* @__PURE__ */
|
|
2865
|
-
|
|
2866
|
-
/* @__PURE__ */ e("img", { alt: "", src:
|
|
2867
|
-
/* @__PURE__ */ e(
|
|
2868
|
-
/* @__PURE__ */ e(
|
|
3099
|
+
secondaryText: i.onboarding_back,
|
|
3100
|
+
title: i.title,
|
|
3101
|
+
...!F && { onPrimaryAction: qt },
|
|
3102
|
+
children: /* @__PURE__ */ s(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
3103
|
+
F && /* @__PURE__ */ s(_, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
3104
|
+
/* @__PURE__ */ e("img", { alt: "", src: Vo, style: { minHeight: 100, width: 211 } }),
|
|
3105
|
+
/* @__PURE__ */ e(Ge, { children: i.onboarding_calculate_primary }),
|
|
3106
|
+
/* @__PURE__ */ e(A, { sx: { textAlign: "center" }, variant: "subtitle1", children: i.onboarding_calculate_secondary })
|
|
2869
3107
|
] }),
|
|
2870
|
-
|
|
3108
|
+
Se && !F && /* @__PURE__ */ s(m.Fragment, { children: [
|
|
2871
3109
|
/* @__PURE__ */ e(
|
|
2872
|
-
|
|
3110
|
+
Zr,
|
|
2873
3111
|
{
|
|
2874
|
-
completeCopy:
|
|
2875
|
-
primaryText:
|
|
2876
|
-
secondaryText:
|
|
2877
|
-
value:
|
|
3112
|
+
completeCopy: i.complete,
|
|
3113
|
+
primaryText: Se.primaryText,
|
|
3114
|
+
secondaryText: Se.secondaryText,
|
|
3115
|
+
value: Ce
|
|
2878
3116
|
}
|
|
2879
3117
|
),
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
3118
|
+
b.type === "main" && /* @__PURE__ */ s(M, { sx: { bgcolor: "background.default" }, children: [
|
|
3119
|
+
Se.main,
|
|
3120
|
+
en && /* @__PURE__ */ e(_, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(E, { fullWidth: !0, onClick: Ut, children: i.onboarding_do_it_later }) })
|
|
2883
3121
|
] }),
|
|
2884
|
-
|
|
3122
|
+
b.type === "detail" && Se.detail
|
|
2885
3123
|
] })
|
|
2886
3124
|
] })
|
|
2887
3125
|
}
|
|
2888
3126
|
),
|
|
2889
3127
|
/* @__PURE__ */ e(
|
|
2890
|
-
|
|
3128
|
+
se,
|
|
2891
3129
|
{
|
|
2892
|
-
onClose: () =>
|
|
2893
|
-
showConnectWidget:
|
|
2894
|
-
title:
|
|
3130
|
+
onClose: () => be(!1),
|
|
3131
|
+
showConnectWidget: fe,
|
|
3132
|
+
title: i.connect_more_accounts_button
|
|
2895
3133
|
}
|
|
2896
3134
|
)
|
|
2897
3135
|
] });
|
|
2898
|
-
},
|
|
2899
|
-
const { finstrong: t } =
|
|
2900
|
-
return /* @__PURE__ */
|
|
2901
|
-
/* @__PURE__ */
|
|
3136
|
+
}, ea = w(Jr), ta = () => {
|
|
3137
|
+
const { finstrong: t } = S(), [n, o] = m.useState(!1);
|
|
3138
|
+
return /* @__PURE__ */ s(m.Fragment, { children: [
|
|
3139
|
+
/* @__PURE__ */ s(
|
|
2902
3140
|
_,
|
|
2903
3141
|
{
|
|
2904
3142
|
sx: {
|
|
@@ -2911,56 +3149,58 @@ const zo = ({ total: t }) => {
|
|
|
2911
3149
|
px: 16
|
|
2912
3150
|
},
|
|
2913
3151
|
children: [
|
|
2914
|
-
/* @__PURE__ */
|
|
2915
|
-
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(
|
|
2916
|
-
/* @__PURE__ */
|
|
2917
|
-
/* @__PURE__ */ e(
|
|
2918
|
-
/* @__PURE__ */ e(
|
|
3152
|
+
/* @__PURE__ */ s(_, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
|
|
3153
|
+
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(vn, { size: 72 }) }),
|
|
3154
|
+
/* @__PURE__ */ s(_, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
3155
|
+
/* @__PURE__ */ e(Ge, { children: t.onboarding_title }),
|
|
3156
|
+
/* @__PURE__ */ e(A, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
|
|
2919
3157
|
] })
|
|
2920
3158
|
] }),
|
|
2921
|
-
/* @__PURE__ */ e(
|
|
3159
|
+
/* @__PURE__ */ e(E, { onClick: () => o(!0), variant: "contained", children: t.onboarding_get_started })
|
|
2922
3160
|
]
|
|
2923
3161
|
}
|
|
2924
3162
|
),
|
|
2925
|
-
/* @__PURE__ */ e(
|
|
3163
|
+
/* @__PURE__ */ e(ea, { isOpen: n, onClose: () => o(!1) })
|
|
2926
3164
|
] });
|
|
2927
|
-
},
|
|
2928
|
-
const { finstrong:
|
|
2929
|
-
|
|
3165
|
+
}, na = ({ isOpen: t, onClose: n }) => {
|
|
3166
|
+
const { finstrong: o } = S(), r = W(), { updateUser: i, user: a } = oe(), { loadPeerScore: l } = L(), [c, d] = m.useState(a.birthday), p = (h) => {
|
|
3167
|
+
d(Math.floor(new Date(h).getTime() / 1e3));
|
|
2930
3168
|
};
|
|
2931
3169
|
return /* @__PURE__ */ e(
|
|
2932
|
-
|
|
3170
|
+
ie,
|
|
2933
3171
|
{
|
|
2934
3172
|
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2935
3173
|
isOpen: t,
|
|
2936
|
-
onClose:
|
|
3174
|
+
onClose: n,
|
|
2937
3175
|
onPrimaryAction: () => {
|
|
2938
|
-
!
|
|
3176
|
+
!c || c === a.birthday || (i({ ...a, birthday: c }).finally(() => {
|
|
3177
|
+
l();
|
|
3178
|
+
}), n());
|
|
2939
3179
|
},
|
|
2940
|
-
onSecondaryAction:
|
|
2941
|
-
title:
|
|
2942
|
-
children: /* @__PURE__ */ e(_, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(
|
|
2943
|
-
|
|
3180
|
+
onSecondaryAction: n,
|
|
3181
|
+
title: o.date_of_birth,
|
|
3182
|
+
children: /* @__PURE__ */ e(_, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(mo, { dateAdapter: Rt, children: /* @__PURE__ */ e(
|
|
3183
|
+
uo,
|
|
2944
3184
|
{
|
|
2945
3185
|
disableFuture: !0,
|
|
2946
|
-
onChange:
|
|
3186
|
+
onChange: p,
|
|
2947
3187
|
slotProps: {
|
|
2948
3188
|
nextIconButton: {
|
|
2949
3189
|
sx: {
|
|
2950
3190
|
color: "primary.main",
|
|
2951
|
-
"&:hover": { bgcolor:
|
|
3191
|
+
"&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
|
|
2952
3192
|
}
|
|
2953
3193
|
},
|
|
2954
3194
|
previousIconButton: {
|
|
2955
3195
|
sx: {
|
|
2956
3196
|
color: "primary.main",
|
|
2957
|
-
"&:hover": { bgcolor:
|
|
3197
|
+
"&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
|
|
2958
3198
|
}
|
|
2959
3199
|
},
|
|
2960
3200
|
switchViewButton: {
|
|
2961
3201
|
sx: {
|
|
2962
3202
|
color: "primary.main",
|
|
2963
|
-
"&:hover": { bgcolor:
|
|
3203
|
+
"&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
|
|
2964
3204
|
}
|
|
2965
3205
|
}
|
|
2966
3206
|
},
|
|
@@ -2972,115 +3212,115 @@ const zo = ({ total: t }) => {
|
|
|
2972
3212
|
width: "100%",
|
|
2973
3213
|
"& .MuiIconButton-edgeEnd": {
|
|
2974
3214
|
color: "primary.main",
|
|
2975
|
-
"&:hover": { bgcolor:
|
|
3215
|
+
"&:hover": { bgcolor: ue(r.palette.primary.light, 0.1) }
|
|
2976
3216
|
}
|
|
2977
3217
|
},
|
|
2978
|
-
value:
|
|
3218
|
+
value: c ? new Date(c * 1e3) : /* @__PURE__ */ new Date()
|
|
2979
3219
|
}
|
|
2980
3220
|
) }) })
|
|
2981
3221
|
}
|
|
2982
3222
|
);
|
|
2983
|
-
},
|
|
2984
|
-
const { visibleFinstrongAccounts:
|
|
3223
|
+
}, oa = w(na), ra = ({ isOpen: t, onClose: n }) => {
|
|
3224
|
+
const { visibleFinstrongAccounts: o } = ke(), {
|
|
2985
3225
|
accounts: r,
|
|
2986
|
-
common:
|
|
3226
|
+
common: i,
|
|
2987
3227
|
finstrong: a,
|
|
2988
3228
|
recurring: l
|
|
2989
|
-
} =
|
|
2990
|
-
const { repeating_transaction_type:
|
|
2991
|
-
return
|
|
2992
|
-
}, 0), [u,
|
|
3229
|
+
} = S(), { repeatingTransactions: c } = Ze(), { user: d } = oe(), p = c.reduce((x, C) => {
|
|
3230
|
+
const { repeating_transaction_type: b, transactions: k, recurrence_type: g, amount: y } = C;
|
|
3231
|
+
return b === Ot.Income && (k && k.length > 0 || g === Tt.EveryYear) ? x + y : x;
|
|
3232
|
+
}, 0), [u, h] = m.useState(null), v = [
|
|
2993
3233
|
{
|
|
2994
3234
|
dynamicCopy: a.add_profile_item,
|
|
2995
3235
|
fallbackLabel: a.monthly_income,
|
|
2996
|
-
icon: /* @__PURE__ */ e(
|
|
2997
|
-
key:
|
|
3236
|
+
icon: /* @__PURE__ */ e(wn, {}),
|
|
3237
|
+
key: q.MonthlyIncome,
|
|
2998
3238
|
label: a.monthly_income,
|
|
2999
3239
|
value: p
|
|
3000
3240
|
},
|
|
3001
3241
|
{
|
|
3002
3242
|
dynamicCopy: a.add_profile_item,
|
|
3003
3243
|
fallbackLabel: a.date_of_birth,
|
|
3004
|
-
icon: /* @__PURE__ */ e(
|
|
3005
|
-
key:
|
|
3244
|
+
icon: /* @__PURE__ */ e(kn, {}),
|
|
3245
|
+
key: q.DateOfBirth,
|
|
3006
3246
|
label: a.date_of_birth,
|
|
3007
3247
|
value: d.birthday
|
|
3008
3248
|
},
|
|
3009
3249
|
{
|
|
3010
3250
|
dynamicCopy: a.add_profile_item,
|
|
3011
3251
|
fallbackLabel: a.credit_score,
|
|
3012
|
-
icon: /* @__PURE__ */ e(
|
|
3013
|
-
key:
|
|
3252
|
+
icon: /* @__PURE__ */ e(bt, {}),
|
|
3253
|
+
key: q.CreditScore,
|
|
3014
3254
|
label: a.credit_score,
|
|
3015
3255
|
value: d.credit_score
|
|
3016
3256
|
},
|
|
3017
3257
|
{
|
|
3018
3258
|
fallbackLabel: a.connect_your_accounts,
|
|
3019
|
-
icon: /* @__PURE__ */ e(
|
|
3020
|
-
key:
|
|
3259
|
+
icon: /* @__PURE__ */ e(ft, {}),
|
|
3260
|
+
key: q.Connections,
|
|
3021
3261
|
label: a.connections,
|
|
3022
|
-
value:
|
|
3262
|
+
value: o.length > 0 ? z(
|
|
3023
3263
|
a.connected_account,
|
|
3024
|
-
String(
|
|
3025
|
-
|
|
3264
|
+
String(o.length),
|
|
3265
|
+
o.length > 1 ? a.accounts : a.account
|
|
3026
3266
|
) : void 0
|
|
3027
3267
|
}
|
|
3028
|
-
].map((x) =>
|
|
3029
|
-
return /* @__PURE__ */
|
|
3030
|
-
/* @__PURE__ */
|
|
3031
|
-
/* @__PURE__ */
|
|
3032
|
-
/* @__PURE__ */
|
|
3033
|
-
/* @__PURE__ */ e(
|
|
3034
|
-
/* @__PURE__ */ e(
|
|
3268
|
+
].map((x) => Oo(x));
|
|
3269
|
+
return /* @__PURE__ */ s(ie, { isOpen: t, onClose: n, title: a.financial_profile, children: [
|
|
3270
|
+
/* @__PURE__ */ s(_, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
3271
|
+
/* @__PURE__ */ s(_, { sx: { gap: 20, p: 24 }, children: [
|
|
3272
|
+
/* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
|
|
3273
|
+
/* @__PURE__ */ e(j, { children: a.your_financial_profile }),
|
|
3274
|
+
/* @__PURE__ */ e(A, { children: a.financial_profile_description })
|
|
3035
3275
|
] }),
|
|
3036
3276
|
/* @__PURE__ */ e(
|
|
3037
|
-
|
|
3277
|
+
Xt,
|
|
3038
3278
|
{
|
|
3039
3279
|
completeCopy: a.complete,
|
|
3040
|
-
value:
|
|
3280
|
+
value: v.reduce((x, C) => x + (C.isComplete ? 1 : 0), 0)
|
|
3041
3281
|
}
|
|
3042
3282
|
)
|
|
3043
3283
|
] }),
|
|
3044
|
-
/* @__PURE__ */ e(
|
|
3284
|
+
/* @__PURE__ */ e(Do, { list: v, onClickItem: h }),
|
|
3045
3285
|
/* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
3046
|
-
|
|
3286
|
+
We,
|
|
3047
3287
|
{
|
|
3048
3288
|
description: a.connect_more_accounts_to_view_more_accurate_financial_picture,
|
|
3049
3289
|
drawerType: "connectDrawer",
|
|
3050
3290
|
isDashboard: !0,
|
|
3051
3291
|
title: a.dont_see_all_your_accounts,
|
|
3052
|
-
titleDrawer:
|
|
3292
|
+
titleDrawer: i.add_accounts
|
|
3053
3293
|
}
|
|
3054
3294
|
) })
|
|
3055
3295
|
] }),
|
|
3056
3296
|
/* @__PURE__ */ e(
|
|
3057
|
-
|
|
3297
|
+
ie,
|
|
3058
3298
|
{
|
|
3059
|
-
isOpen: u ===
|
|
3060
|
-
onClose: () =>
|
|
3299
|
+
isOpen: u === q.MonthlyIncome,
|
|
3300
|
+
onClose: () => h(null),
|
|
3061
3301
|
shouldShowHeaderBorders: !1,
|
|
3062
3302
|
title: l.action_title,
|
|
3063
|
-
children: /* @__PURE__ */ e(
|
|
3303
|
+
children: /* @__PURE__ */ e(_o, {})
|
|
3064
3304
|
}
|
|
3065
3305
|
),
|
|
3066
|
-
/* @__PURE__ */ e(
|
|
3067
|
-
/* @__PURE__ */ e(
|
|
3306
|
+
/* @__PURE__ */ e(oa, { isOpen: u === q.DateOfBirth, onClose: () => h(null) }),
|
|
3307
|
+
/* @__PURE__ */ e(Ht, { isOpen: u === q.CreditScore, onClose: () => h(null) }),
|
|
3068
3308
|
/* @__PURE__ */ e(
|
|
3069
|
-
|
|
3309
|
+
vt,
|
|
3070
3310
|
{
|
|
3071
|
-
onClose: () =>
|
|
3072
|
-
showConnectionsWidget: u ===
|
|
3311
|
+
onClose: () => h(null),
|
|
3312
|
+
showConnectionsWidget: u === q.Connections,
|
|
3073
3313
|
title: r.manage_connections
|
|
3074
3314
|
}
|
|
3075
3315
|
)
|
|
3076
3316
|
] });
|
|
3077
|
-
},
|
|
3317
|
+
}, aa = w(ra), gt = ({
|
|
3078
3318
|
content: t,
|
|
3079
|
-
islast:
|
|
3080
|
-
}) => /* @__PURE__ */
|
|
3081
|
-
/* @__PURE__ */
|
|
3082
|
-
/* @__PURE__ */ e(
|
|
3083
|
-
!
|
|
3319
|
+
islast: n = !1
|
|
3320
|
+
}) => /* @__PURE__ */ s(go, { sx: { minHeight: 0 }, children: [
|
|
3321
|
+
/* @__PURE__ */ s(Co, { children: [
|
|
3322
|
+
/* @__PURE__ */ e(xo, { sx: { bgcolor: "divider", boxShadow: "none", p: 2 } }),
|
|
3323
|
+
!n && /* @__PURE__ */ e(
|
|
3084
3324
|
fo,
|
|
3085
3325
|
{
|
|
3086
3326
|
sx: {
|
|
@@ -3093,33 +3333,33 @@ const zo = ({ total: t }) => {
|
|
|
3093
3333
|
}
|
|
3094
3334
|
)
|
|
3095
3335
|
] }),
|
|
3096
|
-
/* @__PURE__ */ e(
|
|
3097
|
-
] }),
|
|
3098
|
-
const { finstrong:
|
|
3336
|
+
/* @__PURE__ */ e(bo, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(A, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: t }) })
|
|
3337
|
+
] }), ia = ({ report: t }) => {
|
|
3338
|
+
const { finstrong: n } = S(), { score_history_drawer_timeline: o } = n, {
|
|
3099
3339
|
health_score_point_difference: r,
|
|
3100
|
-
newer_credit_score:
|
|
3340
|
+
newer_credit_score: i,
|
|
3101
3341
|
older_credit_score: a,
|
|
3102
3342
|
older_spend_to_income_ratio: l,
|
|
3103
3343
|
newer_spend_to_income_ratio: c,
|
|
3104
3344
|
older_health_score: d,
|
|
3105
3345
|
newer_health_score: p,
|
|
3106
3346
|
newer_score_calculated_at: u
|
|
3107
|
-
} = t,
|
|
3347
|
+
} = t, h = Ct(new Date(u), "MMM d"), f = () => r === 0 ? "info.lighter" : r > 0 ? "success.lighter" : "error.lighter", v = () => r === 0 ? z(o.stayed_at, d) : r > 0 ? o.less_spending : o.more_spending, x = () => {
|
|
3108
3348
|
if (r === 0) return null;
|
|
3109
|
-
const
|
|
3110
|
-
return /* @__PURE__ */
|
|
3349
|
+
const C = r > 0 ? o.up_from : o.down_from, b = z(C, d, p);
|
|
3350
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
3111
3351
|
/* @__PURE__ */ e(
|
|
3112
|
-
|
|
3352
|
+
_n,
|
|
3113
3353
|
{
|
|
3114
3354
|
fill: !0,
|
|
3115
3355
|
name: "circle",
|
|
3116
3356
|
sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
|
|
3117
3357
|
}
|
|
3118
3358
|
),
|
|
3119
|
-
|
|
3359
|
+
b
|
|
3120
3360
|
] });
|
|
3121
3361
|
};
|
|
3122
|
-
return /* @__PURE__ */
|
|
3362
|
+
return /* @__PURE__ */ s(Y, { children: [
|
|
3123
3363
|
/* @__PURE__ */ e(
|
|
3124
3364
|
M,
|
|
3125
3365
|
{
|
|
@@ -3129,7 +3369,7 @@ const zo = ({ total: t }) => {
|
|
|
3129
3369
|
borderBottomWidth: r !== 0 ? 1 : 0,
|
|
3130
3370
|
p: 16
|
|
3131
3371
|
},
|
|
3132
|
-
children: /* @__PURE__ */
|
|
3372
|
+
children: /* @__PURE__ */ s(
|
|
3133
3373
|
_,
|
|
3134
3374
|
{
|
|
3135
3375
|
flexDirection: "row",
|
|
@@ -3140,19 +3380,19 @@ const zo = ({ total: t }) => {
|
|
|
3140
3380
|
{
|
|
3141
3381
|
sx: {
|
|
3142
3382
|
alignItems: "center",
|
|
3143
|
-
backgroundColor:
|
|
3383
|
+
backgroundColor: f(),
|
|
3144
3384
|
borderRadius: 999,
|
|
3145
3385
|
height: 48,
|
|
3146
3386
|
justifyContent: "center",
|
|
3147
3387
|
width: 48
|
|
3148
3388
|
},
|
|
3149
|
-
children: /* @__PURE__ */ e(
|
|
3389
|
+
children: /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: "body1", children: r > 0 ? `+${r}` : r })
|
|
3150
3390
|
}
|
|
3151
3391
|
),
|
|
3152
|
-
/* @__PURE__ */
|
|
3153
|
-
/* @__PURE__ */ e(
|
|
3154
|
-
/* @__PURE__ */
|
|
3155
|
-
|
|
3392
|
+
/* @__PURE__ */ s(_, { sx: { gap: 2, width: "80%" }, children: [
|
|
3393
|
+
/* @__PURE__ */ e(D, { fontWeight: 600, variant: "body1", children: v() }),
|
|
3394
|
+
/* @__PURE__ */ s(D, { sx: { color: "text.secondary" }, variant: "subtitle2", children: [
|
|
3395
|
+
h,
|
|
3156
3396
|
" ",
|
|
3157
3397
|
x()
|
|
3158
3398
|
] })
|
|
@@ -3162,11 +3402,11 @@ const zo = ({ total: t }) => {
|
|
|
3162
3402
|
)
|
|
3163
3403
|
}
|
|
3164
3404
|
),
|
|
3165
|
-
r !== 0 && /* @__PURE__ */ e(M, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */
|
|
3166
|
-
|
|
3405
|
+
r !== 0 && /* @__PURE__ */ e(M, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ s(
|
|
3406
|
+
ho,
|
|
3167
3407
|
{
|
|
3168
3408
|
sx: {
|
|
3169
|
-
[`& .${
|
|
3409
|
+
[`& .${yo.root}:before`]: {
|
|
3170
3410
|
flex: 0,
|
|
3171
3411
|
padding: 0
|
|
3172
3412
|
},
|
|
@@ -3175,22 +3415,22 @@ const zo = ({ total: t }) => {
|
|
|
3175
3415
|
},
|
|
3176
3416
|
children: [
|
|
3177
3417
|
/* @__PURE__ */ e(
|
|
3178
|
-
|
|
3418
|
+
gt,
|
|
3179
3419
|
{
|
|
3180
|
-
content:
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3420
|
+
content: z(
|
|
3421
|
+
o.spend_to_income_description,
|
|
3422
|
+
Ee(l),
|
|
3423
|
+
Ee(c)
|
|
3184
3424
|
)
|
|
3185
3425
|
}
|
|
3186
3426
|
),
|
|
3187
3427
|
/* @__PURE__ */ e(
|
|
3188
|
-
|
|
3428
|
+
gt,
|
|
3189
3429
|
{
|
|
3190
|
-
content:
|
|
3191
|
-
|
|
3430
|
+
content: z(
|
|
3431
|
+
o.credit_score_description,
|
|
3192
3432
|
a,
|
|
3193
|
-
|
|
3433
|
+
i
|
|
3194
3434
|
),
|
|
3195
3435
|
islast: !0
|
|
3196
3436
|
}
|
|
@@ -3199,12 +3439,12 @@ const zo = ({ total: t }) => {
|
|
|
3199
3439
|
}
|
|
3200
3440
|
) })
|
|
3201
3441
|
] });
|
|
3202
|
-
},
|
|
3203
|
-
const
|
|
3204
|
-
if (!
|
|
3205
|
-
const u =
|
|
3442
|
+
}, sa = w(ia), ca = ({ isOpen: t, onClose: n }) => {
|
|
3443
|
+
const o = W(), { finstrong: r } = S(), { isCopyLoaded: i, isInitialized: a } = ne(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: p } = L();
|
|
3444
|
+
if (!i || !a) return /* @__PURE__ */ e(ee, {});
|
|
3445
|
+
const u = nt(c.health_score || 0, r), h = d.slice().reverse();
|
|
3206
3446
|
return /* @__PURE__ */ e(
|
|
3207
|
-
|
|
3447
|
+
Kt,
|
|
3208
3448
|
{
|
|
3209
3449
|
additionalContent: /* @__PURE__ */ e(
|
|
3210
3450
|
_,
|
|
@@ -3215,11 +3455,11 @@ const zo = ({ total: t }) => {
|
|
|
3215
3455
|
borderColor: "divider"
|
|
3216
3456
|
},
|
|
3217
3457
|
children: /* @__PURE__ */ e(
|
|
3218
|
-
|
|
3458
|
+
Je,
|
|
3219
3459
|
{
|
|
3220
|
-
axisColor:
|
|
3460
|
+
axisColor: o.palette.divider,
|
|
3221
3461
|
baseline: "min",
|
|
3222
|
-
colors: [
|
|
3462
|
+
colors: [o.palette.primary.main],
|
|
3223
3463
|
curveType: "natural",
|
|
3224
3464
|
datasets: [l],
|
|
3225
3465
|
height: 160,
|
|
@@ -3238,7 +3478,7 @@ const zo = ({ total: t }) => {
|
|
|
3238
3478
|
drawerTitle: r.score_history,
|
|
3239
3479
|
isOpen: t,
|
|
3240
3480
|
loadConnectAccountsCard: !1,
|
|
3241
|
-
onClose:
|
|
3481
|
+
onClose: n,
|
|
3242
3482
|
stickyComponent: /* @__PURE__ */ e(
|
|
3243
3483
|
_,
|
|
3244
3484
|
{
|
|
@@ -3248,9 +3488,9 @@ const zo = ({ total: t }) => {
|
|
|
3248
3488
|
pt: 8,
|
|
3249
3489
|
px: 24
|
|
3250
3490
|
},
|
|
3251
|
-
children: /* @__PURE__ */
|
|
3491
|
+
children: /* @__PURE__ */ s(_, { sx: { alignItems: "center", flexDirection: "row", gap: 16 }, children: [
|
|
3252
3492
|
/* @__PURE__ */ e(
|
|
3253
|
-
|
|
3493
|
+
zt,
|
|
3254
3494
|
{
|
|
3255
3495
|
arcRadius: 24,
|
|
3256
3496
|
healthScore: c?.health_score,
|
|
@@ -3258,52 +3498,52 @@ const zo = ({ total: t }) => {
|
|
|
3258
3498
|
size: "SM"
|
|
3259
3499
|
}
|
|
3260
3500
|
),
|
|
3261
|
-
/* @__PURE__ */
|
|
3262
|
-
/* @__PURE__ */ e(
|
|
3263
|
-
/* @__PURE__ */ e(
|
|
3501
|
+
/* @__PURE__ */ s(_, { sx: { gap: 4 }, children: [
|
|
3502
|
+
/* @__PURE__ */ e(A, { variant: "h3", children: u.status }),
|
|
3503
|
+
/* @__PURE__ */ e(A, { variant: "caption", children: u.description })
|
|
3264
3504
|
] })
|
|
3265
3505
|
] })
|
|
3266
3506
|
}
|
|
3267
3507
|
),
|
|
3268
|
-
children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children:
|
|
3508
|
+
children: /* @__PURE__ */ e(_, { sx: { gap: 16 }, children: h.map((f, v) => /* @__PURE__ */ e(sa, { report: f }, v)) })
|
|
3269
3509
|
}
|
|
3270
3510
|
);
|
|
3271
|
-
},
|
|
3272
|
-
const
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3511
|
+
}, la = w(ca), da = ({ copy: t }) => {
|
|
3512
|
+
const n = W(), o = [
|
|
3513
|
+
n.palette.chartMono.chartMono5,
|
|
3514
|
+
n.palette.chartMono.chartMono4,
|
|
3515
|
+
n.palette.chartMono.chartMono3,
|
|
3516
|
+
n.palette.chartMono.chartMono2
|
|
3277
3517
|
];
|
|
3278
|
-
return /* @__PURE__ */
|
|
3518
|
+
return /* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
|
|
3279
3519
|
/* @__PURE__ */ e(_, { sx: { flexDirection: "row", gap: 8, px: 2 }, children: [
|
|
3280
3520
|
{ color: "chartMono.chartMono2", text: t.vulnerable, value: "0-25" },
|
|
3281
3521
|
{ color: "chartMono.chartMono3", text: t.building, value: "26-50" },
|
|
3282
3522
|
{ color: "chartMono.chartMono4", text: t.stable, value: "51-75" },
|
|
3283
3523
|
{ color: "chartMono.chartMono5", text: t.strong, value: "76-100" }
|
|
3284
|
-
].map(({ color: r, text:
|
|
3285
|
-
/* @__PURE__ */
|
|
3286
|
-
/* @__PURE__ */ e(
|
|
3287
|
-
/* @__PURE__ */
|
|
3524
|
+
].map(({ color: r, text: i, value: a }) => /* @__PURE__ */ s(_, { sx: { gap: 4, textAlign: "center", width: "100%" }, children: [
|
|
3525
|
+
/* @__PURE__ */ s(M, { children: [
|
|
3526
|
+
/* @__PURE__ */ e(A, { sx: { fontWeight: 700, textTransform: "uppercase" }, variant: "caption", children: i }),
|
|
3527
|
+
/* @__PURE__ */ s(D, { sx: { color: "text.secondary" }, variant: "caption", children: [
|
|
3288
3528
|
"(",
|
|
3289
3529
|
a,
|
|
3290
3530
|
")"
|
|
3291
3531
|
] })
|
|
3292
3532
|
] }),
|
|
3293
3533
|
/* @__PURE__ */ e(M, { sx: { border: "2px solid", borderColor: r, borderRadius: "3px" } })
|
|
3294
|
-
] },
|
|
3295
|
-
/* @__PURE__ */
|
|
3534
|
+
] }, i)) }),
|
|
3535
|
+
/* @__PURE__ */ s(M, { children: [
|
|
3296
3536
|
/* @__PURE__ */ e(
|
|
3297
3537
|
M,
|
|
3298
3538
|
{
|
|
3299
3539
|
sx: {
|
|
3300
|
-
background: `linear-gradient(to left, ${
|
|
3540
|
+
background: `linear-gradient(to left, ${o.join(", ")})`,
|
|
3301
3541
|
borderRadius: "4px",
|
|
3302
3542
|
height: 16
|
|
3303
3543
|
}
|
|
3304
3544
|
}
|
|
3305
3545
|
),
|
|
3306
|
-
/* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((r) => /* @__PURE__ */
|
|
3546
|
+
/* @__PURE__ */ e(_, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100].map((r) => /* @__PURE__ */ s(
|
|
3307
3547
|
_,
|
|
3308
3548
|
{
|
|
3309
3549
|
sx: { alignItems: "center", height: 20, justifyContent: "space-between", width: 24 },
|
|
@@ -3321,27 +3561,27 @@ const zo = ({ total: t }) => {
|
|
|
3321
3561
|
}
|
|
3322
3562
|
}
|
|
3323
3563
|
),
|
|
3324
|
-
/* @__PURE__ */ e(
|
|
3564
|
+
/* @__PURE__ */ e(D, { sx: { color: "text.secondary" }, variant: "tiny", children: r })
|
|
3325
3565
|
]
|
|
3326
3566
|
},
|
|
3327
3567
|
r
|
|
3328
3568
|
)) })
|
|
3329
3569
|
] })
|
|
3330
3570
|
] });
|
|
3331
|
-
},
|
|
3332
|
-
const { finstrong:
|
|
3333
|
-
return r ? /* @__PURE__ */ e(
|
|
3334
|
-
/* @__PURE__ */
|
|
3335
|
-
/* @__PURE__ */
|
|
3336
|
-
/* @__PURE__ */ e(
|
|
3337
|
-
/* @__PURE__ */ e(
|
|
3571
|
+
}, pa = ({ isOpen: t, onClose: n }) => {
|
|
3572
|
+
const { finstrong: o } = S(), { isCopyLoaded: r } = ne();
|
|
3573
|
+
return r ? /* @__PURE__ */ e(ie, { isOpen: t, onClose: n, title: o.score_rubric, children: /* @__PURE__ */ s(_, { sx: { bgcolor: "background.default", gap: 36, height: "100%", p: 24 }, children: [
|
|
3574
|
+
/* @__PURE__ */ s(_, { sx: { gap: 20 }, children: [
|
|
3575
|
+
/* @__PURE__ */ s(_, { sx: { gap: 8 }, children: [
|
|
3576
|
+
/* @__PURE__ */ e(j, { children: o.your_path_to_financial_freedom }),
|
|
3577
|
+
/* @__PURE__ */ e(A, { variant: "subtitle1", children: o.finstrong_freedom_description })
|
|
3338
3578
|
] }),
|
|
3339
|
-
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
3579
|
+
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(da, { copy: o }) })
|
|
3340
3580
|
] }),
|
|
3341
|
-
/* @__PURE__ */
|
|
3342
|
-
/* @__PURE__ */ e(
|
|
3343
|
-
/* @__PURE__ */
|
|
3344
|
-
|
|
3581
|
+
/* @__PURE__ */ s(_, { sx: { gap: 12 }, children: [
|
|
3582
|
+
/* @__PURE__ */ e(D, { sx: { fontWeight: 600 }, variant: "body1", children: o.how_do_we_do_this }),
|
|
3583
|
+
/* @__PURE__ */ s(
|
|
3584
|
+
Le,
|
|
3345
3585
|
{
|
|
3346
3586
|
component: "ol",
|
|
3347
3587
|
sx: {
|
|
@@ -3360,28 +3600,28 @@ const zo = ({ total: t }) => {
|
|
|
3360
3600
|
}
|
|
3361
3601
|
},
|
|
3362
3602
|
children: [
|
|
3363
|
-
/* @__PURE__ */ e(
|
|
3364
|
-
|
|
3603
|
+
/* @__PURE__ */ e(_e, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(
|
|
3604
|
+
me,
|
|
3365
3605
|
{
|
|
3366
|
-
primary:
|
|
3367
|
-
secondary:
|
|
3606
|
+
primary: o.understand_your_habits,
|
|
3607
|
+
secondary: o.understand_your_habits_description
|
|
3368
3608
|
}
|
|
3369
3609
|
) }),
|
|
3370
|
-
/* @__PURE__ */ e(
|
|
3371
|
-
|
|
3610
|
+
/* @__PURE__ */ e(_e, { sx: { display: "list-item", pt: 16 }, children: /* @__PURE__ */ e(
|
|
3611
|
+
me,
|
|
3372
3612
|
{
|
|
3373
|
-
primary:
|
|
3374
|
-
secondary:
|
|
3613
|
+
primary: o.see_whats_possible,
|
|
3614
|
+
secondary: o.see_whats_possible_description
|
|
3375
3615
|
}
|
|
3376
3616
|
) })
|
|
3377
3617
|
]
|
|
3378
3618
|
}
|
|
3379
3619
|
)
|
|
3380
3620
|
] }),
|
|
3381
|
-
/* @__PURE__ */
|
|
3382
|
-
/* @__PURE__ */ e(
|
|
3383
|
-
/* @__PURE__ */
|
|
3384
|
-
|
|
3621
|
+
/* @__PURE__ */ s(_, { sx: { gap: 4 }, children: [
|
|
3622
|
+
/* @__PURE__ */ e(D, { sx: { fontWeight: 600, pb: 4 }, variant: "body1", children: o.we_ask_questions }),
|
|
3623
|
+
/* @__PURE__ */ s(
|
|
3624
|
+
Le,
|
|
3385
3625
|
{
|
|
3386
3626
|
component: "ol",
|
|
3387
3627
|
sx: {
|
|
@@ -3401,23 +3641,23 @@ const zo = ({ total: t }) => {
|
|
|
3401
3641
|
}
|
|
3402
3642
|
},
|
|
3403
3643
|
children: [
|
|
3404
|
-
/* @__PURE__ */ e(
|
|
3405
|
-
/* @__PURE__ */ e(
|
|
3644
|
+
/* @__PURE__ */ e(_e, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(me, { secondary: o.we_ask_questions_description_1 }) }),
|
|
3645
|
+
/* @__PURE__ */ e(_e, { sx: { display: "list-item" }, children: /* @__PURE__ */ e(me, { secondary: o.we_ask_questions_description_2 }) })
|
|
3406
3646
|
]
|
|
3407
3647
|
}
|
|
3408
3648
|
)
|
|
3409
3649
|
] })
|
|
3410
|
-
] }) }) : /* @__PURE__ */ e(
|
|
3411
|
-
},
|
|
3412
|
-
const [t,
|
|
3413
|
-
return !l || !c ? /* @__PURE__ */ e(
|
|
3414
|
-
/* @__PURE__ */
|
|
3415
|
-
/* @__PURE__ */ e(
|
|
3650
|
+
] }) }) : /* @__PURE__ */ e(ee, {});
|
|
3651
|
+
}, ua = w(pa), _a = w(() => {
|
|
3652
|
+
const [t, n] = m.useState(!1), o = W(), [r, { width: i }] = wt(), { finstrong: a } = S(), { isCopyLoaded: l, isInitialized: c } = ne(), { healthScore: d, healthScoreChange: p } = L(), u = o.palette.mode === "dark", h = nt(d?.health_score, a);
|
|
3653
|
+
return !l || !c ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ s(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
3654
|
+
/* @__PURE__ */ s(_, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3655
|
+
/* @__PURE__ */ e(j, { children: a.financial_strength_header }),
|
|
3416
3656
|
/* @__PURE__ */ e(
|
|
3417
|
-
|
|
3657
|
+
E,
|
|
3418
3658
|
{
|
|
3419
|
-
endIcon: /* @__PURE__ */ e(
|
|
3420
|
-
onClick: () =>
|
|
3659
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
3660
|
+
onClick: () => n(!0),
|
|
3421
3661
|
size: "small",
|
|
3422
3662
|
sx: {
|
|
3423
3663
|
"&.MuiButtonBase-root": {
|
|
@@ -3427,7 +3667,7 @@ const zo = ({ total: t }) => {
|
|
|
3427
3667
|
},
|
|
3428
3668
|
variant: "text",
|
|
3429
3669
|
children: /* @__PURE__ */ e(
|
|
3430
|
-
|
|
3670
|
+
D,
|
|
3431
3671
|
{
|
|
3432
3672
|
bold: !0,
|
|
3433
3673
|
sx: {
|
|
@@ -3441,16 +3681,16 @@ const zo = ({ total: t }) => {
|
|
|
3441
3681
|
)
|
|
3442
3682
|
] }),
|
|
3443
3683
|
/* @__PURE__ */ e(_, { sx: { justifyContent: "center", alignItems: "center", pb: 4, pt: 20, px: 16 }, children: /* @__PURE__ */ e(
|
|
3444
|
-
|
|
3684
|
+
zt,
|
|
3445
3685
|
{
|
|
3446
|
-
arcRadius:
|
|
3686
|
+
arcRadius: i <= 323 ? 72.5 : 154,
|
|
3447
3687
|
footerCenterContent: p,
|
|
3448
3688
|
healthScore: d?.health_score || 0,
|
|
3449
|
-
size:
|
|
3689
|
+
size: i <= 323 ? "M" : "L"
|
|
3450
3690
|
}
|
|
3451
3691
|
) }),
|
|
3452
|
-
d?.health_score ? /* @__PURE__ */
|
|
3453
|
-
|
|
3692
|
+
d?.health_score ? /* @__PURE__ */ s(
|
|
3693
|
+
So,
|
|
3454
3694
|
{
|
|
3455
3695
|
sx: {
|
|
3456
3696
|
px: 16,
|
|
@@ -3465,9 +3705,9 @@ const zo = ({ total: t }) => {
|
|
|
3465
3705
|
},
|
|
3466
3706
|
children: [
|
|
3467
3707
|
/* @__PURE__ */ e(
|
|
3468
|
-
|
|
3708
|
+
wo,
|
|
3469
3709
|
{
|
|
3470
|
-
expandIcon: /* @__PURE__ */ e(
|
|
3710
|
+
expandIcon: /* @__PURE__ */ e(Mn, { size: 20 }),
|
|
3471
3711
|
sx: {
|
|
3472
3712
|
"&.MuiAccordionSummary-root": {
|
|
3473
3713
|
minHeight: 0
|
|
@@ -3478,14 +3718,14 @@ const zo = ({ total: t }) => {
|
|
|
3478
3718
|
minHeight: 0
|
|
3479
3719
|
}
|
|
3480
3720
|
},
|
|
3481
|
-
children: /* @__PURE__ */ e(
|
|
3721
|
+
children: /* @__PURE__ */ e(A, { sx: { fontWeight: 600 }, variant: "body1", children: a.accordion_title_text })
|
|
3482
3722
|
}
|
|
3483
3723
|
),
|
|
3484
|
-
/* @__PURE__ */ e(
|
|
3724
|
+
/* @__PURE__ */ e(vo, { sx: { "&.MuiAccordionDetails-root": { padding: 0, pb: 16 } }, children: /* @__PURE__ */ e(A, { variant: "subtitle1", children: h.scoreContent }) })
|
|
3485
3725
|
]
|
|
3486
3726
|
}
|
|
3487
3727
|
) : /* @__PURE__ */ e(
|
|
3488
|
-
|
|
3728
|
+
We,
|
|
3489
3729
|
{
|
|
3490
3730
|
buttonText: a.connect_more_accounts_title,
|
|
3491
3731
|
description: a.health_score_zero_description,
|
|
@@ -3506,63 +3746,62 @@ const zo = ({ total: t }) => {
|
|
|
3506
3746
|
}
|
|
3507
3747
|
),
|
|
3508
3748
|
/* @__PURE__ */ e(
|
|
3509
|
-
|
|
3749
|
+
ua,
|
|
3510
3750
|
{
|
|
3511
3751
|
isOpen: t,
|
|
3512
|
-
onClose: () =>
|
|
3752
|
+
onClose: () => n(!1)
|
|
3513
3753
|
}
|
|
3514
3754
|
)
|
|
3515
3755
|
] });
|
|
3516
|
-
}),
|
|
3517
|
-
const { visibleAccounts:
|
|
3518
|
-
augmentedChartData:
|
|
3519
|
-
calculateHealthScore:
|
|
3520
|
-
loadAugmentedChartData:
|
|
3521
|
-
loadMonthlySummaries:
|
|
3522
|
-
loadPeerScore:
|
|
3523
|
-
peerScore:
|
|
3524
|
-
|
|
3525
|
-
|
|
3756
|
+
}), ma = ({ onBackClick: t, onMenuClick: n, sx: o, onPrimaryCtaClick: r }) => {
|
|
3757
|
+
const { visibleAccounts: i } = ke(), { dateRange: a, isDataLoaded: l, loadBudgetData: c, setTheme: d } = Gn(), { reloadCategoryTotals: p } = Qe(), u = L(), {
|
|
3758
|
+
augmentedChartData: h,
|
|
3759
|
+
calculateHealthScore: f,
|
|
3760
|
+
loadAugmentedChartData: v,
|
|
3761
|
+
loadMonthlySummaries: x,
|
|
3762
|
+
loadPeerScore: C,
|
|
3763
|
+
peerScore: b,
|
|
3764
|
+
healthScore: k
|
|
3765
|
+
} = u, { finstrong: g, connect: y } = S(), { isInitialized: I } = ne(), { loadRepeatingTransactionData: G, isDataLoaded: O } = Ze(), { isSmallMobile: $ } = tt(), F = W(), { userProfile: K } = oe(), [fe, be] = m.useState(!1), [X, re] = m.useState(!1), [ce, U] = m.useState(!1), [V, le] = m.useState(!1), [de, xe] = m.useState(!1);
|
|
3766
|
+
ko({
|
|
3526
3767
|
widgetName: "FinstrongWidget",
|
|
3527
|
-
isLoaded:
|
|
3528
|
-
}),
|
|
3529
|
-
|
|
3530
|
-
}, []),
|
|
3531
|
-
|
|
3532
|
-
}, [
|
|
3533
|
-
|
|
3534
|
-
}, [
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
}),
|
|
3538
|
-
}, [
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3768
|
+
isLoaded: fe
|
|
3769
|
+
}), m.useEffect(() => {
|
|
3770
|
+
d(F);
|
|
3771
|
+
}, []), m.useEffect(() => {
|
|
3772
|
+
r && (u.handleFinstrongWidgetPrimaryCtaClick = r);
|
|
3773
|
+
}, [r, u]), m.useEffect(() => {
|
|
3774
|
+
I && (x().finally(), C().finally(), f().finally());
|
|
3775
|
+
}, [I]), m.useEffect(() => {
|
|
3776
|
+
I && (p(i, a.start, a.end).finally(() => {
|
|
3777
|
+
be(!0);
|
|
3778
|
+
}), l || (c(), G().finally()));
|
|
3779
|
+
}, [a, l, I, i]), m.useEffect(() => {
|
|
3780
|
+
k?.health_score && v().finally();
|
|
3781
|
+
}, [k.health_score]);
|
|
3782
|
+
const N = () => U(!0), Ce = Math.round(b?.average_health_score?.average_health_score || 0), He = h.some((Te) => Te.y !== 0), Ke = () => {
|
|
3783
|
+
re(!0), f(!1).finally(() => {
|
|
3784
|
+
re(!1);
|
|
3785
|
+
}), U(!1);
|
|
3786
|
+
};
|
|
3787
|
+
return !I || !fe || !O || X ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ s(
|
|
3788
|
+
Mo,
|
|
3542
3789
|
{
|
|
3543
3790
|
actions: [
|
|
3544
3791
|
{
|
|
3545
3792
|
iconName: "person",
|
|
3546
|
-
label:
|
|
3793
|
+
label: g.profile,
|
|
3547
3794
|
onClick: N
|
|
3548
3795
|
}
|
|
3549
3796
|
],
|
|
3550
3797
|
hasDivider: !0,
|
|
3551
3798
|
onBackClick: t,
|
|
3799
|
+
onMenuClick: n,
|
|
3552
3800
|
showAccountFilter: !1,
|
|
3553
|
-
sx:
|
|
3554
|
-
|
|
3555
|
-
px: L ? 16 : 48,
|
|
3556
|
-
pt: L ? 12 : 48
|
|
3557
|
-
},
|
|
3558
|
-
"& .MuiDivider-root": {
|
|
3559
|
-
mt: L ? 12 : 24
|
|
3560
|
-
},
|
|
3561
|
-
...o
|
|
3562
|
-
},
|
|
3563
|
-
title: y.title,
|
|
3801
|
+
sx: o,
|
|
3802
|
+
title: g.title,
|
|
3564
3803
|
children: [
|
|
3565
|
-
|
|
3804
|
+
K.has_completed_finstrong_onboarding ? /* @__PURE__ */ s(
|
|
3566
3805
|
_,
|
|
3567
3806
|
{
|
|
3568
3807
|
sx: {
|
|
@@ -3570,34 +3809,34 @@ const zo = ({ total: t }) => {
|
|
|
3570
3809
|
flexDirection: { md: "row" },
|
|
3571
3810
|
gap: 24,
|
|
3572
3811
|
justifyContent: "center",
|
|
3573
|
-
pt:
|
|
3574
|
-
px:
|
|
3812
|
+
pt: $ ? 16 : 24,
|
|
3813
|
+
px: $ ? 16 : 48
|
|
3575
3814
|
},
|
|
3576
3815
|
children: [
|
|
3577
|
-
/* @__PURE__ */
|
|
3578
|
-
/* @__PURE__ */ e(
|
|
3816
|
+
/* @__PURE__ */ s(_, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
|
|
3817
|
+
/* @__PURE__ */ e(_a, {}),
|
|
3579
3818
|
/* @__PURE__ */ e(
|
|
3580
|
-
|
|
3819
|
+
We,
|
|
3581
3820
|
{
|
|
3582
|
-
description:
|
|
3821
|
+
description: g.connect_more_accounts_description,
|
|
3583
3822
|
drawerType: "connectDrawer",
|
|
3584
|
-
title:
|
|
3823
|
+
title: g.connect_more_accounts_title
|
|
3585
3824
|
}
|
|
3586
3825
|
)
|
|
3587
3826
|
] }),
|
|
3588
|
-
/* @__PURE__ */ e(_, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */
|
|
3589
|
-
/* @__PURE__ */
|
|
3827
|
+
/* @__PURE__ */ e(_, { sx: { maxWidth: 848, width: { md: 720 } }, children: /* @__PURE__ */ s(Y, { sx: { height: "100%", p: 16 }, children: [
|
|
3828
|
+
/* @__PURE__ */ s(
|
|
3590
3829
|
_,
|
|
3591
3830
|
{
|
|
3592
3831
|
direction: "row",
|
|
3593
3832
|
sx: { alignItems: "center", gap: 12, justifyContent: "space-between" },
|
|
3594
3833
|
children: [
|
|
3595
|
-
/* @__PURE__ */ e(
|
|
3834
|
+
/* @__PURE__ */ e(j, { children: g.key_indicators }),
|
|
3596
3835
|
/* @__PURE__ */ e(
|
|
3597
|
-
|
|
3836
|
+
E,
|
|
3598
3837
|
{
|
|
3599
|
-
endIcon: /* @__PURE__ */ e(
|
|
3600
|
-
onClick: () =>
|
|
3838
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
3839
|
+
onClick: () => le(!0),
|
|
3601
3840
|
size: "small",
|
|
3602
3841
|
sx: {
|
|
3603
3842
|
"&.MuiButtonBase-root": {
|
|
@@ -3606,70 +3845,69 @@ const zo = ({ total: t }) => {
|
|
|
3606
3845
|
}
|
|
3607
3846
|
},
|
|
3608
3847
|
variant: "text",
|
|
3609
|
-
children: /* @__PURE__ */ e(
|
|
3848
|
+
children: /* @__PURE__ */ e(D, { bold: !0, variant: "body2", children: g.whats_changed })
|
|
3610
3849
|
}
|
|
3611
3850
|
)
|
|
3612
3851
|
]
|
|
3613
3852
|
}
|
|
3614
3853
|
),
|
|
3615
|
-
|
|
3616
|
-
|
|
3854
|
+
He ? /* @__PURE__ */ e(
|
|
3855
|
+
Je,
|
|
3617
3856
|
{
|
|
3618
|
-
axisColor:
|
|
3857
|
+
axisColor: F.palette.divider,
|
|
3619
3858
|
baseline: "min",
|
|
3620
|
-
colors: [
|
|
3859
|
+
colors: [F.palette.primary.main],
|
|
3621
3860
|
curveType: "natural",
|
|
3622
3861
|
customLegendBoxSx: { borderRadius: "2px" },
|
|
3623
3862
|
customLegendSx: { left: 0 },
|
|
3624
|
-
customLegendVariant: "
|
|
3625
|
-
datasets: [
|
|
3863
|
+
customLegendVariant: "caption",
|
|
3864
|
+
datasets: [h],
|
|
3626
3865
|
height: 300,
|
|
3866
|
+
isCurrency: !1,
|
|
3627
3867
|
isGraphClippingXAxis: !0,
|
|
3628
|
-
labelBackgroundColor:
|
|
3629
|
-
labelFontColor:
|
|
3630
|
-
labelFontSize: typeof
|
|
3631
|
-
labels: [
|
|
3868
|
+
labelBackgroundColor: F.palette.neutral.dark,
|
|
3869
|
+
labelFontColor: F.palette.common.white,
|
|
3870
|
+
labelFontSize: typeof F.typography.caption?.fontSize == "string" ? parseFloat(F.typography.caption.fontSize) : F.typography.caption?.fontSize,
|
|
3871
|
+
labels: [g.key_indicators_label],
|
|
3632
3872
|
margin: { right: 12, left: -37 },
|
|
3633
|
-
peerAverage:
|
|
3873
|
+
peerAverage: Ce,
|
|
3634
3874
|
showArea: !0,
|
|
3635
3875
|
showAverage: !0,
|
|
3636
3876
|
showLegend: !0,
|
|
3637
3877
|
showMarkLabel: !0,
|
|
3638
3878
|
showTooltip: !0,
|
|
3639
3879
|
showXAxis: !0,
|
|
3640
|
-
title:
|
|
3880
|
+
title: g.peer_average
|
|
3641
3881
|
}
|
|
3642
|
-
) : /* @__PURE__ */ e(
|
|
3643
|
-
/* @__PURE__ */ e(
|
|
3882
|
+
) : /* @__PURE__ */ e(Vr, { onClick: () => xe(!0) }),
|
|
3883
|
+
/* @__PURE__ */ e(Hr, {})
|
|
3644
3884
|
] }) })
|
|
3645
3885
|
]
|
|
3646
3886
|
}
|
|
3647
|
-
) : /* @__PURE__ */ e(
|
|
3648
|
-
/* @__PURE__ */ e(
|
|
3887
|
+
) : /* @__PURE__ */ e(ta, {}),
|
|
3888
|
+
/* @__PURE__ */ e(aa, { isOpen: ce, onClose: Ke }),
|
|
3649
3889
|
/* @__PURE__ */ e(
|
|
3650
|
-
|
|
3890
|
+
se,
|
|
3651
3891
|
{
|
|
3652
|
-
onClose: () =>
|
|
3653
|
-
showConnectWidget:
|
|
3654
|
-
title:
|
|
3892
|
+
onClose: () => xe(!1),
|
|
3893
|
+
showConnectWidget: de,
|
|
3894
|
+
title: y.mini_title
|
|
3655
3895
|
}
|
|
3656
3896
|
),
|
|
3657
3897
|
/* @__PURE__ */ e(
|
|
3658
|
-
|
|
3898
|
+
la,
|
|
3659
3899
|
{
|
|
3660
|
-
isOpen:
|
|
3661
|
-
onClose: () =>
|
|
3900
|
+
isOpen: V,
|
|
3901
|
+
onClose: () => le(!1)
|
|
3662
3902
|
}
|
|
3663
3903
|
)
|
|
3664
3904
|
]
|
|
3665
3905
|
}
|
|
3666
3906
|
);
|
|
3667
|
-
},
|
|
3907
|
+
}, Ni = w(ma);
|
|
3668
3908
|
export {
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
vi as FinstrongStore,
|
|
3674
|
-
bi as FinstrongWidget
|
|
3909
|
+
Ko as CreditScoreGraph,
|
|
3910
|
+
Nt as DialScoreCard,
|
|
3911
|
+
zt as FinancialStrengthGraph,
|
|
3912
|
+
Ni as FinstrongWidget
|
|
3675
3913
|
};
|