@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0
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-PKlh8caU.mjs} +6 -6
- 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 +987 -874
- 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
package/dist/debts/index.es.js
CHANGED
|
@@ -1,272 +1,195 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import
|
|
5
|
-
import { useTheme as
|
|
6
|
-
import { Text as
|
|
7
|
-
import { intervalToDuration as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { M as ze, I as Xe, O as Ve } from "../OriginalBalanceAction-DFoG79Ba.mjs";
|
|
32
|
-
import Ye from "@mui/material/TextField";
|
|
33
|
-
import { L as Q } from "../ListItemAction-Cbr3417C.mjs";
|
|
34
|
-
import { C as oe } from "../CurrencyInput-DDQ4DBrE.mjs";
|
|
1
|
+
import { jsx as e, jsxs as l, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import { observer as C } from "mobx-react-lite";
|
|
4
|
+
import y from "@mui/material/Stack";
|
|
5
|
+
import { useTheme as j, Card as ge, Stack as u, Box as W } from "@mui/material";
|
|
6
|
+
import { Text as i, P as xe, H3 as Be, InstitutionLogo as Pe, Icon as ne } from "@mxenabled/mxui";
|
|
7
|
+
import { intervalToDuration as Re, formatDuration as Le } from "date-fns";
|
|
8
|
+
import { s as Fe, D as F, t as $e, b as Oe } from "../DebtUtils-DD3186U-.mjs";
|
|
9
|
+
import { f as I, a as We } from "../NumberFormatting--XMeeBfr.mjs";
|
|
10
|
+
import { f as J, D as Q } from "../DateFormats-HudZ3Bjs.mjs";
|
|
11
|
+
import { G as Ge, q as ee, u as w, k as V, g as k, d as te, a as He, b as ze } from "../hooks-BaO_gOI6.mjs";
|
|
12
|
+
import { u as ae } from "../useScreenSize-mWpmnh5w.mjs";
|
|
13
|
+
import { b as T } from "../Localization-DnoVyBNK.mjs";
|
|
14
|
+
import { D as ie } from "../Drawer-BXqqBMxg.mjs";
|
|
15
|
+
import { A as je, u as Ve } from "../AccountDetailsHeader-DIysk_4w.mjs";
|
|
16
|
+
import Ye from "@mui/material/Card";
|
|
17
|
+
import Ke from "@mui/material/CardContent";
|
|
18
|
+
import Ue from "@mui/material/CardHeader";
|
|
19
|
+
import le from "@mui/material/Box";
|
|
20
|
+
import { useTheme as qe } from "@mui/material/styles";
|
|
21
|
+
import { LineChart as Xe } from "@mui/x-charts/LineChart";
|
|
22
|
+
import { A as S } from "../Analytics-CzGzz_sE.mjs";
|
|
23
|
+
import be from "@mui/material/Tab";
|
|
24
|
+
import Ze from "@mui/material/Tabs";
|
|
25
|
+
import we from "@mui/material/List";
|
|
26
|
+
import G from "@mui/material/Divider";
|
|
27
|
+
import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-CkJPnp2c.mjs";
|
|
28
|
+
import tt from "@mui/material/TextField";
|
|
29
|
+
import { L as re } from "../ListItemAction-CwspSmQi.mjs";
|
|
30
|
+
import { C as se } from "../CurrencyInput-adTIRtL3.mjs";
|
|
35
31
|
import me from "@mui/material/Alert";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import { Error as
|
|
39
|
-
import { T as
|
|
40
|
-
import { DataGridPro as
|
|
41
|
-
import { H
|
|
42
|
-
import {
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
);
|
|
55
|
-
}, at = (a, o, r, t, n) => {
|
|
56
|
-
const i = [];
|
|
57
|
-
if (r === 0) {
|
|
58
|
-
for (let c = 0; c < a; c++) {
|
|
59
|
-
const p = o - t * (c + 1), m = o - t * c, b = p >= 0 ? t : m;
|
|
60
|
-
i.push({
|
|
61
|
-
balance: p >= 0 ? p : 0,
|
|
62
|
-
interest: r,
|
|
63
|
-
payment: b,
|
|
64
|
-
principal: b,
|
|
65
|
-
timestamp: de(
|
|
66
|
-
se(
|
|
67
|
-
ce(n),
|
|
68
|
-
// convert seconds → Date
|
|
69
|
-
c + 1
|
|
70
|
-
// add (index + 1) months
|
|
71
|
-
)
|
|
72
|
-
)
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
return i;
|
|
76
|
-
}
|
|
77
|
-
const d = r / 1200;
|
|
78
|
-
for (let c = 0; c < a; c++) {
|
|
79
|
-
const p = de(se(ce(n), c + 1)), m = Math.pow(1 + d, c), b = o * m - t * ((m - 1) / d), w = Math.pow(1 + d, c + 1), h = o * w - t * ((w - 1) / d), A = t + Math.min(h, 0), B = b * d;
|
|
80
|
-
i.push({
|
|
81
|
-
balance: Math.max(0, h),
|
|
82
|
-
interest: B,
|
|
83
|
-
payment: A,
|
|
84
|
-
principal: A - B,
|
|
85
|
-
timestamp: p
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
return i;
|
|
89
|
-
}, ot = (a) => (a[a.length - 1] || {}).timestamp, nt = (a) => {
|
|
90
|
-
const { monthly_payment: o, interest_rate: r, balance: t, payment_due_date: n } = a, i = rt(t, r ?? 0, o ?? 0), d = at(
|
|
91
|
-
i,
|
|
92
|
-
t,
|
|
93
|
-
r ?? 0,
|
|
94
|
-
o ?? 0,
|
|
95
|
-
n
|
|
96
|
-
), c = ot(d);
|
|
97
|
-
return {
|
|
98
|
-
...a,
|
|
99
|
-
minimumFinalPayment: c,
|
|
100
|
-
minimumPayments: d
|
|
101
|
-
};
|
|
102
|
-
}, we = (a, o) => {
|
|
103
|
-
const [r, t] = a.reduce(
|
|
104
|
-
([n, i], d) => (d.is_paid_off || d.is_impossible ? i.push({ ...d, minimumPayments: [] }) : n.push(nt(d)), [n, i]),
|
|
105
|
-
[[], []]
|
|
106
|
-
);
|
|
107
|
-
switch (o) {
|
|
108
|
-
case k.FASTEST_PAYOFF_FIRST:
|
|
109
|
-
r.sort((n, i) => (n.minimumFinalPayment ?? 0) - (i.minimumFinalPayment ?? 0));
|
|
110
|
-
break;
|
|
111
|
-
case k.HIGHEST_INTEREST:
|
|
112
|
-
r.sort((n, i) => (i.interest_rate ?? 0) - (n.interest_rate ?? 0));
|
|
113
|
-
break;
|
|
114
|
-
case k.LOWEST_BALANCE:
|
|
115
|
-
r.sort((n, i) => n.balance - i.balance);
|
|
116
|
-
break;
|
|
117
|
-
case k.HIGHEST_BALANCE:
|
|
118
|
-
r.sort((n, i) => i.balance - n.balance);
|
|
119
|
-
break;
|
|
120
|
-
default:
|
|
121
|
-
r.sort((n, i) => n.balance - i.balance);
|
|
122
|
-
}
|
|
123
|
-
a.splice(0, a.length, ...r, ...t);
|
|
124
|
-
};
|
|
125
|
-
function it(a, o, r = 0) {
|
|
126
|
-
const t = a.map((b) => ({ ...b })).filter(
|
|
32
|
+
import _e from "@mui/material/AlertTitle";
|
|
33
|
+
import ye from "@mui/material/Paper";
|
|
34
|
+
import { Error as rt, CheckCircle as Ce } from "@mxenabled/mx-icons";
|
|
35
|
+
import { T as fe } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
36
|
+
import { DataGridPro as ot } from "@mui/x-data-grid-pro";
|
|
37
|
+
import { H } from "../HeaderCell-P8w6CmfO.mjs";
|
|
38
|
+
import { c as nt, A as z } from "../Account-BaJmiJAG.mjs";
|
|
39
|
+
import ve from "@mui/material/Button";
|
|
40
|
+
import at from "@mui/material/IconButton";
|
|
41
|
+
import it from "@mui/material/ListItem";
|
|
42
|
+
import lt from "@mui/material/Popover";
|
|
43
|
+
import { u as st } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
44
|
+
import { L as ct } from "../Loader-CxeBwuPG.mjs";
|
|
45
|
+
import { W as dt } from "../WidgetContainer-DNuz_s7W.mjs";
|
|
46
|
+
import { E as pt } from "../EmptyState-CJUDc3kD.mjs";
|
|
47
|
+
import { C as ut } from "../ConnectDrawer-Cnjr3Ddg.mjs";
|
|
48
|
+
function ht(r, n, o = 0) {
|
|
49
|
+
const t = r.map((b) => ({ ...b })).filter(
|
|
127
50
|
(b) => b.interest_rate !== void 0 && b.monthly_payment !== void 0 && !b.is_paid_off
|
|
128
51
|
);
|
|
129
|
-
|
|
130
|
-
let
|
|
52
|
+
Fe(t, n);
|
|
53
|
+
let a = 0, s = 0;
|
|
131
54
|
const d = /* @__PURE__ */ new Date(), c = /* @__PURE__ */ new Date();
|
|
132
55
|
for (; t.some((b) => b.balance >= 0.01 && !b.is_impossible); ) {
|
|
133
56
|
let b = !1;
|
|
134
|
-
for (const [
|
|
135
|
-
if (
|
|
136
|
-
const
|
|
137
|
-
let
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
|
|
57
|
+
for (const [v, x] of t.entries()) {
|
|
58
|
+
if (x.balance <= 0.01 || x.is_impossible) continue;
|
|
59
|
+
const L = (x.interest_rate ?? 0) / 100 / 12, N = x.balance * L;
|
|
60
|
+
let A = x.monthly_payment ?? 0;
|
|
61
|
+
v === 0 && o && (A += o), x.balance += N;
|
|
62
|
+
const E = Math.min(x.balance, A + s);
|
|
63
|
+
if (E <= N) {
|
|
64
|
+
x.is_impossible = !0;
|
|
142
65
|
continue;
|
|
143
66
|
}
|
|
144
|
-
|
|
67
|
+
x.balance -= E, x.balance = x.balance < 0.01 ? 0 : x.balance, a += N, x.balance <= 0 && (s += A), E > 0 && (b = !0);
|
|
145
68
|
}
|
|
146
69
|
b && c.setMonth(c.getMonth() + 1);
|
|
147
70
|
}
|
|
148
|
-
const
|
|
71
|
+
const m = t.some((b) => b.is_impossible && b.balance > 0), h = Re({ start: d, end: c });
|
|
149
72
|
return {
|
|
150
|
-
payoffSavings:
|
|
151
|
-
payoffDate:
|
|
152
|
-
payoffDuration:
|
|
73
|
+
payoffSavings: m ? "N/A" : I(a, "0,0.00"),
|
|
74
|
+
payoffDate: m ? "Never" : J(c, Q.MONTH_YEAR),
|
|
75
|
+
payoffDuration: m ? "Stagnant" : Le(h, { format: ["years", "months"] }) || "0 months"
|
|
153
76
|
};
|
|
154
77
|
}
|
|
155
|
-
const
|
|
156
|
-
if (!
|
|
78
|
+
const P = () => {
|
|
79
|
+
if (!f.useContext(Ge))
|
|
157
80
|
throw new Error("useCateUiStore() must be used within the GlobalDataContext");
|
|
158
|
-
return
|
|
159
|
-
},
|
|
160
|
-
const t =
|
|
161
|
-
const
|
|
162
|
-
return
|
|
163
|
-
}, [
|
|
81
|
+
return ee().uiStore;
|
|
82
|
+
}, bt = ({ debts: r, onClickCta: n, sx: o }) => {
|
|
83
|
+
const t = j(), { isMobile: a } = ae(), { debts: s } = w(), { selectedDebtPriority: d } = P(), { monthlyCashFlowProfile: c } = V(), { payoffDate: m, payoffSavings: h, payoffDuration: b } = f.useMemo(() => {
|
|
84
|
+
const v = c?.extra_payment ?? 0;
|
|
85
|
+
return ht(r, d, v);
|
|
86
|
+
}, [r, d, c]);
|
|
164
87
|
return /* @__PURE__ */ e(
|
|
165
|
-
|
|
88
|
+
ge,
|
|
166
89
|
{
|
|
167
90
|
sx: {
|
|
168
91
|
boxShadow: t.shadows[2],
|
|
169
|
-
width:
|
|
92
|
+
width: a ? "100%" : "186px",
|
|
170
93
|
minWidth: "186px",
|
|
171
|
-
...
|
|
94
|
+
...o
|
|
172
95
|
},
|
|
173
|
-
children: /* @__PURE__ */
|
|
174
|
-
/* @__PURE__ */
|
|
175
|
-
|
|
96
|
+
children: /* @__PURE__ */ l(u, { sx: { gap: "12px", p: "16px" }, children: [
|
|
97
|
+
/* @__PURE__ */ l(
|
|
98
|
+
u,
|
|
176
99
|
{
|
|
177
|
-
gap:
|
|
100
|
+
gap: a ? "4px" : "0",
|
|
178
101
|
sx: {
|
|
179
102
|
borderBottom: "1px solid",
|
|
180
103
|
borderBottomColor: t.palette.grey[300],
|
|
181
104
|
pb: "8px"
|
|
182
105
|
},
|
|
183
106
|
children: [
|
|
184
|
-
/* @__PURE__ */ e(
|
|
185
|
-
/* @__PURE__ */ e(
|
|
107
|
+
/* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_date_description }),
|
|
108
|
+
/* @__PURE__ */ e(i, { bold: !0, color: t.palette.primary.main, variant: "body2", children: m })
|
|
186
109
|
]
|
|
187
110
|
}
|
|
188
111
|
),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
/* @__PURE__ */ e(
|
|
191
|
-
/* @__PURE__ */ e(
|
|
112
|
+
/* @__PURE__ */ l(u, { gap: a ? "4px" : "0", children: [
|
|
113
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: h }),
|
|
114
|
+
/* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_amount_description })
|
|
192
115
|
] }),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
/* @__PURE__ */ e(
|
|
195
|
-
/* @__PURE__ */ e(
|
|
116
|
+
/* @__PURE__ */ l(u, { gap: a ? "4px" : "0", children: [
|
|
117
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body2", children: b }),
|
|
118
|
+
/* @__PURE__ */ e(i, { variant: "caption", children: s.snowball_card_duration_description })
|
|
196
119
|
] }),
|
|
197
120
|
/* @__PURE__ */ e(
|
|
198
|
-
|
|
121
|
+
i,
|
|
199
122
|
{
|
|
200
123
|
bold: !0,
|
|
201
124
|
color: t.palette.primary.main,
|
|
202
|
-
onClick:
|
|
125
|
+
onClick: n,
|
|
203
126
|
sx: { cursor: "pointer" },
|
|
204
|
-
variant: "
|
|
205
|
-
children:
|
|
127
|
+
variant: "body2",
|
|
128
|
+
children: s.snowball_card_cta
|
|
206
129
|
}
|
|
207
130
|
)
|
|
208
131
|
] })
|
|
209
132
|
}
|
|
210
133
|
);
|
|
211
|
-
},
|
|
212
|
-
const
|
|
134
|
+
}, mt = C(bt), _t = ({ isOpen: r, onClose: n }) => {
|
|
135
|
+
const o = j(), { debts: t } = w(), [a, s] = f.useState(!1);
|
|
213
136
|
return /* @__PURE__ */ e(
|
|
214
|
-
|
|
137
|
+
ie,
|
|
215
138
|
{
|
|
216
139
|
ariaLabelClose: "",
|
|
217
|
-
isOpen:
|
|
218
|
-
onClose:
|
|
140
|
+
isOpen: r,
|
|
141
|
+
onClose: n,
|
|
219
142
|
title: t.snowball_drawer_title,
|
|
220
|
-
children: /* @__PURE__ */
|
|
221
|
-
/* @__PURE__ */
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
/* @__PURE__ */ e(
|
|
224
|
-
/* @__PURE__ */ e(
|
|
225
|
-
/* @__PURE__ */ e(
|
|
226
|
-
/* @__PURE__ */ e(
|
|
143
|
+
children: /* @__PURE__ */ l(u, { bgcolor: o.palette.background.default, height: "100%", children: [
|
|
144
|
+
/* @__PURE__ */ l(u, { alignItems: "center", px: 24, py: 24, children: [
|
|
145
|
+
/* @__PURE__ */ l(u, { alignItems: "center", pb: 24, children: [
|
|
146
|
+
/* @__PURE__ */ e(i, { mb: 12, truncate: !0, variant: "h3", children: t.snowball_drawer_subtitle }),
|
|
147
|
+
/* @__PURE__ */ e(i, { color: o.palette.secondary.main, variant: "body2", children: t.snowball_drawer_amount_description }),
|
|
148
|
+
/* @__PURE__ */ e(xe, { variant: "h1", children: t.snowball_drawer_savings }),
|
|
149
|
+
/* @__PURE__ */ e(i, { color: o.palette.secondary.main, variant: "body2", children: t.snowball_drawer_duration_description })
|
|
227
150
|
] }),
|
|
228
|
-
/* @__PURE__ */
|
|
229
|
-
/* @__PURE__ */ e(
|
|
151
|
+
/* @__PURE__ */ l(ge, { sx: { display: "grid", py: 16, px: 24 }, children: [
|
|
152
|
+
/* @__PURE__ */ e(i, { mb: 4, truncate: !0, variant: "h3", children: t.snowball_drawer_question }),
|
|
230
153
|
/* @__PURE__ */ e(
|
|
231
|
-
|
|
154
|
+
i,
|
|
232
155
|
{
|
|
233
|
-
color:
|
|
156
|
+
color: o.palette.secondary.main,
|
|
234
157
|
mb: 8,
|
|
235
|
-
|
|
236
|
-
variant: "
|
|
158
|
+
truncate: !a,
|
|
159
|
+
variant: "subtitle2",
|
|
237
160
|
children: t.snowball_drawer_answer
|
|
238
161
|
}
|
|
239
162
|
),
|
|
240
163
|
/* @__PURE__ */ e(
|
|
241
|
-
|
|
164
|
+
i,
|
|
242
165
|
{
|
|
243
166
|
bold: !0,
|
|
244
|
-
color:
|
|
245
|
-
onClick: () =>
|
|
167
|
+
color: o.palette.primary.main,
|
|
168
|
+
onClick: () => s(!a),
|
|
246
169
|
sx: { cursor: "pointer" },
|
|
247
|
-
variant: "
|
|
248
|
-
children:
|
|
170
|
+
variant: "body2",
|
|
171
|
+
children: a ? t.snowball_drawer_less : t.snowball_drawer_more
|
|
249
172
|
}
|
|
250
173
|
)
|
|
251
174
|
] })
|
|
252
175
|
] }),
|
|
253
|
-
/* @__PURE__ */
|
|
176
|
+
/* @__PURE__ */ l(u, { children: [
|
|
254
177
|
/* @__PURE__ */ e(
|
|
255
|
-
|
|
178
|
+
i,
|
|
256
179
|
{
|
|
257
|
-
color:
|
|
180
|
+
color: o.palette.secondary.main,
|
|
258
181
|
px: 24,
|
|
259
|
-
sx: { textAlign: "center"
|
|
260
|
-
variant: "
|
|
182
|
+
sx: { textAlign: "center" },
|
|
183
|
+
variant: "body2",
|
|
261
184
|
children: t.snowball_drawer_disclaimer
|
|
262
185
|
}
|
|
263
186
|
),
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
/* @__PURE__ */ e(
|
|
266
|
-
/* @__PURE__ */ e(
|
|
187
|
+
/* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
188
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 1) }),
|
|
189
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
|
|
267
190
|
] }),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
191
|
+
/* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
|
|
192
|
+
/* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
270
193
|
/* @__PURE__ */ e(
|
|
271
194
|
W,
|
|
272
195
|
{
|
|
@@ -277,43 +200,43 @@ const L = () => {
|
|
|
277
200
|
width: 20,
|
|
278
201
|
height: 20,
|
|
279
202
|
borderRadius: "50%",
|
|
280
|
-
backgroundColor:
|
|
203
|
+
backgroundColor: o.palette.success.main,
|
|
281
204
|
marginRight: 12
|
|
282
205
|
},
|
|
283
|
-
children: /* @__PURE__ */ e(
|
|
206
|
+
children: /* @__PURE__ */ e(i, { color: "white", fontWeight: 700, variant: "body2", children: "✓" })
|
|
284
207
|
}
|
|
285
208
|
),
|
|
286
|
-
/* @__PURE__ */
|
|
287
|
-
|
|
209
|
+
/* @__PURE__ */ l(
|
|
210
|
+
u,
|
|
288
211
|
{
|
|
289
212
|
sx: {
|
|
290
|
-
borderBottom: `1px solid ${
|
|
213
|
+
borderBottom: `1px solid ${o.palette.neutral.light}`,
|
|
291
214
|
flexDirection: "row",
|
|
292
215
|
flexGrow: 1,
|
|
293
216
|
py: 14,
|
|
294
217
|
pr: 24
|
|
295
218
|
},
|
|
296
219
|
children: [
|
|
297
|
-
/* @__PURE__ */
|
|
298
|
-
/* @__PURE__ */ e(
|
|
299
|
-
/* @__PURE__ */
|
|
300
|
-
|
|
220
|
+
/* @__PURE__ */ l(u, { flexGrow: 1, children: [
|
|
221
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "A") }),
|
|
222
|
+
/* @__PURE__ */ l(i, { color: o.palette.secondary.main, variant: "caption", children: [
|
|
223
|
+
T(
|
|
301
224
|
t.snowball_drawer_rollover_explainer_pt1,
|
|
302
225
|
"$100"
|
|
303
226
|
),
|
|
304
|
-
/* @__PURE__ */ e("strong", { children:
|
|
227
|
+
/* @__PURE__ */ e("strong", { children: T(t.snowball_drawer_debt_label, "B") }),
|
|
305
228
|
t.snowball_drawer_rollover_explainer_pt2
|
|
306
229
|
] })
|
|
307
230
|
] }),
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
-
/* @__PURE__ */ e(
|
|
231
|
+
/* @__PURE__ */ l(u, { children: [
|
|
232
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: "$100.00" }),
|
|
310
233
|
/* @__PURE__ */ e(
|
|
311
|
-
|
|
234
|
+
i,
|
|
312
235
|
{
|
|
313
236
|
bold: !0,
|
|
314
|
-
color:
|
|
237
|
+
color: o.palette.success.main,
|
|
315
238
|
textAlign: "end",
|
|
316
|
-
variant: "
|
|
239
|
+
variant: "tiny",
|
|
317
240
|
children: t.snowball_drawer_paid_label
|
|
318
241
|
}
|
|
319
242
|
)
|
|
@@ -322,7 +245,7 @@ const L = () => {
|
|
|
322
245
|
}
|
|
323
246
|
)
|
|
324
247
|
] }),
|
|
325
|
-
/* @__PURE__ */
|
|
248
|
+
/* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
326
249
|
/* @__PURE__ */ e(
|
|
327
250
|
W,
|
|
328
251
|
{
|
|
@@ -331,28 +254,28 @@ const L = () => {
|
|
|
331
254
|
height: 20,
|
|
332
255
|
marginRight: 12,
|
|
333
256
|
borderRadius: "50%",
|
|
334
|
-
border: `3px solid ${
|
|
257
|
+
border: `3px solid ${o.palette.neutral.main}`
|
|
335
258
|
}
|
|
336
259
|
}
|
|
337
260
|
),
|
|
338
|
-
/* @__PURE__ */
|
|
339
|
-
|
|
261
|
+
/* @__PURE__ */ l(
|
|
262
|
+
u,
|
|
340
263
|
{
|
|
341
264
|
sx: {
|
|
342
|
-
borderBottom: `1px solid ${
|
|
265
|
+
borderBottom: `1px solid ${o.palette.neutral.light}`,
|
|
343
266
|
flexDirection: "row",
|
|
344
267
|
flexGrow: 1,
|
|
345
268
|
py: 14,
|
|
346
269
|
pr: 24
|
|
347
270
|
},
|
|
348
271
|
children: [
|
|
349
|
-
/* @__PURE__ */ e(
|
|
350
|
-
/* @__PURE__ */ e(
|
|
272
|
+
/* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: T(t.snowball_drawer_debt_label, "B") }),
|
|
273
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: "$400.00" })
|
|
351
274
|
]
|
|
352
275
|
}
|
|
353
276
|
)
|
|
354
277
|
] }),
|
|
355
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
|
|
356
279
|
/* @__PURE__ */ e(
|
|
357
280
|
W,
|
|
358
281
|
{
|
|
@@ -361,39 +284,39 @@ const L = () => {
|
|
|
361
284
|
height: 20,
|
|
362
285
|
marginRight: 12,
|
|
363
286
|
borderRadius: "50%",
|
|
364
|
-
border: `3px solid ${
|
|
287
|
+
border: `3px solid ${o.palette.neutral.main}`
|
|
365
288
|
}
|
|
366
289
|
}
|
|
367
290
|
),
|
|
368
|
-
/* @__PURE__ */
|
|
369
|
-
/* @__PURE__ */ e(
|
|
370
|
-
/* @__PURE__ */ e(
|
|
291
|
+
/* @__PURE__ */ l(u, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
|
|
292
|
+
/* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }),
|
|
293
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: "$1,000.00" })
|
|
371
294
|
] })
|
|
372
295
|
] }),
|
|
373
|
-
/* @__PURE__ */
|
|
374
|
-
|
|
296
|
+
/* @__PURE__ */ l(
|
|
297
|
+
u,
|
|
375
298
|
{
|
|
376
299
|
sx: {
|
|
377
300
|
py: 8,
|
|
378
301
|
px: 24,
|
|
379
302
|
flexDirection: "row",
|
|
380
303
|
justifyContent: "space-between",
|
|
381
|
-
borderTop: `1px solid ${
|
|
382
|
-
borderBottom: `1px solid ${
|
|
304
|
+
borderTop: `1px solid ${o.palette.neutral.light}`,
|
|
305
|
+
borderBottom: `1px solid ${o.palette.neutral.light}`
|
|
383
306
|
},
|
|
384
307
|
children: [
|
|
385
|
-
/* @__PURE__ */ e(
|
|
386
|
-
/* @__PURE__ */ e(
|
|
308
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: t.snowball_drawer_total_label }),
|
|
309
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: "$1,500.00" })
|
|
387
310
|
]
|
|
388
311
|
}
|
|
389
312
|
)
|
|
390
313
|
] }),
|
|
391
|
-
/* @__PURE__ */
|
|
392
|
-
/* @__PURE__ */ e(
|
|
393
|
-
/* @__PURE__ */ e(
|
|
314
|
+
/* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
315
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 2) }),
|
|
316
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
|
|
394
317
|
] }),
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */
|
|
318
|
+
/* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
|
|
319
|
+
/* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
397
320
|
/* @__PURE__ */ e(
|
|
398
321
|
W,
|
|
399
322
|
{
|
|
@@ -404,43 +327,43 @@ const L = () => {
|
|
|
404
327
|
width: 20,
|
|
405
328
|
height: 20,
|
|
406
329
|
borderRadius: "50%",
|
|
407
|
-
backgroundColor:
|
|
330
|
+
backgroundColor: o.palette.success.main,
|
|
408
331
|
marginRight: 12
|
|
409
332
|
},
|
|
410
|
-
children: /* @__PURE__ */ e(
|
|
333
|
+
children: /* @__PURE__ */ e(i, { color: "white", fontWeight: 700, variant: "body2", children: "✓" })
|
|
411
334
|
}
|
|
412
335
|
),
|
|
413
|
-
/* @__PURE__ */
|
|
414
|
-
|
|
336
|
+
/* @__PURE__ */ l(
|
|
337
|
+
u,
|
|
415
338
|
{
|
|
416
339
|
sx: {
|
|
417
|
-
borderBottom: `1px solid ${
|
|
340
|
+
borderBottom: `1px solid ${o.palette.neutral.light}`,
|
|
418
341
|
flexDirection: "row",
|
|
419
342
|
flexGrow: 1,
|
|
420
343
|
py: 14,
|
|
421
344
|
pr: 24
|
|
422
345
|
},
|
|
423
346
|
children: [
|
|
424
|
-
/* @__PURE__ */
|
|
425
|
-
/* @__PURE__ */ e(
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
|
|
347
|
+
/* @__PURE__ */ l(u, { flexGrow: 1, children: [
|
|
348
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "B") }),
|
|
349
|
+
/* @__PURE__ */ l(i, { color: o.palette.secondary.main, variant: "caption", children: [
|
|
350
|
+
T(
|
|
428
351
|
t.snowball_drawer_rollover_explainer_pt1,
|
|
429
352
|
"$500"
|
|
430
353
|
),
|
|
431
|
-
/* @__PURE__ */ e("strong", { children:
|
|
354
|
+
/* @__PURE__ */ e("strong", { children: T(t.snowball_drawer_debt_label, "C") }),
|
|
432
355
|
t.snowball_drawer_rollover_explainer_pt2
|
|
433
356
|
] })
|
|
434
357
|
] }),
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */ e(
|
|
358
|
+
/* @__PURE__ */ l(u, { children: [
|
|
359
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: "$500.00" }),
|
|
437
360
|
/* @__PURE__ */ e(
|
|
438
|
-
|
|
361
|
+
i,
|
|
439
362
|
{
|
|
440
363
|
bold: !0,
|
|
441
|
-
color:
|
|
364
|
+
color: o.palette.success.main,
|
|
442
365
|
textAlign: "end",
|
|
443
|
-
variant: "
|
|
366
|
+
variant: "tiny",
|
|
444
367
|
children: t.snowball_drawer_paid_label
|
|
445
368
|
}
|
|
446
369
|
)
|
|
@@ -449,7 +372,7 @@ const L = () => {
|
|
|
449
372
|
}
|
|
450
373
|
)
|
|
451
374
|
] }),
|
|
452
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
453
376
|
/* @__PURE__ */ e(
|
|
454
377
|
W,
|
|
455
378
|
{
|
|
@@ -458,12 +381,12 @@ const L = () => {
|
|
|
458
381
|
height: 20,
|
|
459
382
|
marginRight: 12,
|
|
460
383
|
borderRadius: "50%",
|
|
461
|
-
border: `3px solid ${
|
|
384
|
+
border: `3px solid ${o.palette.neutral.main}`
|
|
462
385
|
}
|
|
463
386
|
}
|
|
464
387
|
),
|
|
465
|
-
/* @__PURE__ */
|
|
466
|
-
|
|
388
|
+
/* @__PURE__ */ l(
|
|
389
|
+
u,
|
|
467
390
|
{
|
|
468
391
|
sx: {
|
|
469
392
|
flexDirection: "row",
|
|
@@ -472,36 +395,36 @@ const L = () => {
|
|
|
472
395
|
pr: 24
|
|
473
396
|
},
|
|
474
397
|
children: [
|
|
475
|
-
/* @__PURE__ */ e(
|
|
476
|
-
/* @__PURE__ */ e(
|
|
398
|
+
/* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }),
|
|
399
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: "$1,000.00" })
|
|
477
400
|
]
|
|
478
401
|
}
|
|
479
402
|
)
|
|
480
403
|
] }),
|
|
481
|
-
/* @__PURE__ */
|
|
482
|
-
|
|
404
|
+
/* @__PURE__ */ l(
|
|
405
|
+
u,
|
|
483
406
|
{
|
|
484
407
|
sx: {
|
|
485
408
|
py: 8,
|
|
486
409
|
px: 24,
|
|
487
410
|
flexDirection: "row",
|
|
488
411
|
justifyContent: "space-between",
|
|
489
|
-
borderTop: `1px solid ${
|
|
490
|
-
borderBottom: `1px solid ${
|
|
412
|
+
borderTop: `1px solid ${o.palette.neutral.light}`,
|
|
413
|
+
borderBottom: `1px solid ${o.palette.neutral.light}`
|
|
491
414
|
},
|
|
492
415
|
children: [
|
|
493
|
-
/* @__PURE__ */ e(
|
|
494
|
-
/* @__PURE__ */ e(
|
|
416
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: t.snowball_drawer_total_label }),
|
|
417
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: "$1,500.00" })
|
|
495
418
|
]
|
|
496
419
|
}
|
|
497
420
|
)
|
|
498
421
|
] }),
|
|
499
|
-
/* @__PURE__ */
|
|
500
|
-
/* @__PURE__ */ e(
|
|
501
|
-
/* @__PURE__ */ e(
|
|
422
|
+
/* @__PURE__ */ l(u, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
423
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: T(t.snowball_drawer_month_header, 3) }),
|
|
424
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: t.snowball_drawer_payment_header })
|
|
502
425
|
] }),
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
426
|
+
/* @__PURE__ */ l(u, { bgcolor: o.palette.background.paper, mb: 24, children: [
|
|
427
|
+
/* @__PURE__ */ l(u, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
505
428
|
/* @__PURE__ */ e(
|
|
506
429
|
W,
|
|
507
430
|
{
|
|
@@ -512,14 +435,14 @@ const L = () => {
|
|
|
512
435
|
width: 20,
|
|
513
436
|
height: 20,
|
|
514
437
|
borderRadius: "50%",
|
|
515
|
-
backgroundColor:
|
|
438
|
+
backgroundColor: o.palette.success.main,
|
|
516
439
|
marginRight: 12
|
|
517
440
|
},
|
|
518
|
-
children: /* @__PURE__ */ e(
|
|
441
|
+
children: /* @__PURE__ */ e(i, { color: "white", fontWeight: 700, variant: "body2", children: "✓" })
|
|
519
442
|
}
|
|
520
443
|
),
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
|
|
444
|
+
/* @__PURE__ */ l(
|
|
445
|
+
u,
|
|
523
446
|
{
|
|
524
447
|
sx: {
|
|
525
448
|
alignItems: "center",
|
|
@@ -529,16 +452,16 @@ const L = () => {
|
|
|
529
452
|
pr: 24
|
|
530
453
|
},
|
|
531
454
|
children: [
|
|
532
|
-
/* @__PURE__ */ e(
|
|
533
|
-
/* @__PURE__ */
|
|
534
|
-
/* @__PURE__ */ e(
|
|
455
|
+
/* @__PURE__ */ e(u, { flexGrow: 1, children: /* @__PURE__ */ e(i, { variant: "body1", children: T(t.snowball_drawer_debt_label, "C") }) }),
|
|
456
|
+
/* @__PURE__ */ l(u, { children: [
|
|
457
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: "$1,500.00" }),
|
|
535
458
|
/* @__PURE__ */ e(
|
|
536
|
-
|
|
459
|
+
i,
|
|
537
460
|
{
|
|
538
461
|
bold: !0,
|
|
539
|
-
color:
|
|
462
|
+
color: o.palette.success.main,
|
|
540
463
|
textAlign: "end",
|
|
541
|
-
variant: "
|
|
464
|
+
variant: "tiny",
|
|
542
465
|
children: t.snowball_drawer_paid_label
|
|
543
466
|
}
|
|
544
467
|
)
|
|
@@ -547,20 +470,20 @@ const L = () => {
|
|
|
547
470
|
}
|
|
548
471
|
)
|
|
549
472
|
] }),
|
|
550
|
-
/* @__PURE__ */
|
|
551
|
-
|
|
473
|
+
/* @__PURE__ */ l(
|
|
474
|
+
u,
|
|
552
475
|
{
|
|
553
476
|
sx: {
|
|
554
477
|
py: 8,
|
|
555
478
|
px: 24,
|
|
556
479
|
flexDirection: "row",
|
|
557
480
|
justifyContent: "space-between",
|
|
558
|
-
borderTop: `1px solid ${
|
|
559
|
-
borderBottom: `1px solid ${
|
|
481
|
+
borderTop: `1px solid ${o.palette.neutral.light}`,
|
|
482
|
+
borderBottom: `1px solid ${o.palette.neutral.light}`
|
|
560
483
|
},
|
|
561
484
|
children: [
|
|
562
|
-
/* @__PURE__ */ e(
|
|
563
|
-
/* @__PURE__ */ e(
|
|
485
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: t.snowball_drawer_total_label }),
|
|
486
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: "$1,500.00" })
|
|
564
487
|
]
|
|
565
488
|
}
|
|
566
489
|
)
|
|
@@ -569,50 +492,50 @@ const L = () => {
|
|
|
569
492
|
] })
|
|
570
493
|
}
|
|
571
494
|
);
|
|
572
|
-
},
|
|
573
|
-
function
|
|
574
|
-
const [
|
|
575
|
-
Math.max(0, Math.min(255, Math.round(
|
|
576
|
-
Math.max(0, Math.min(255, Math.round(t *
|
|
577
|
-
Math.max(0, Math.min(255, Math.round(
|
|
495
|
+
}, yt = C(_t), ft = "#FF7B08";
|
|
496
|
+
function gt(r, n) {
|
|
497
|
+
const [o, t, a] = r.replace(/^#/, "").match(/.{1,2}/g).map((d) => parseInt(d, 16)), s = [
|
|
498
|
+
Math.max(0, Math.min(255, Math.round(o * n))),
|
|
499
|
+
Math.max(0, Math.min(255, Math.round(t * n))),
|
|
500
|
+
Math.max(0, Math.min(255, Math.round(a * n)))
|
|
578
501
|
];
|
|
579
|
-
return `rgb(${
|
|
502
|
+
return `rgb(${s[0]}, ${s[1]}, ${s[2]})`;
|
|
580
503
|
}
|
|
581
|
-
const
|
|
582
|
-
sx:
|
|
583
|
-
height:
|
|
584
|
-
width:
|
|
504
|
+
const De = ({
|
|
505
|
+
sx: r,
|
|
506
|
+
height: n = 500,
|
|
507
|
+
width: o,
|
|
585
508
|
debts: t,
|
|
586
|
-
hoveredDebtGuid:
|
|
587
|
-
onClickArea:
|
|
509
|
+
hoveredDebtGuid: a,
|
|
510
|
+
onClickArea: s,
|
|
588
511
|
onHoverArea: d
|
|
589
512
|
}) => {
|
|
590
|
-
const c =
|
|
513
|
+
const c = qe(), { onEvent: m } = k(), h = t.filter((p) => !p.is_impossible), b = [
|
|
591
514
|
...new Set(
|
|
592
|
-
|
|
515
|
+
h.flatMap((p) => p.dataset.map((g) => new Date(g.x).getTime()))
|
|
593
516
|
)
|
|
594
|
-
].sort((
|
|
595
|
-
const
|
|
596
|
-
let D =
|
|
597
|
-
const
|
|
598
|
-
const
|
|
599
|
-
return D =
|
|
517
|
+
].sort((p, g) => p - g).map((p) => new Date(p)), v = h.map((p) => {
|
|
518
|
+
const g = new Map(p.dataset.map((B) => [new Date(B.x).getTime(), B.y]));
|
|
519
|
+
let D = g.get(b[0].getTime()) ?? 0;
|
|
520
|
+
const M = b.map((B) => {
|
|
521
|
+
const K = g.get(B.getTime()) ?? D;
|
|
522
|
+
return D = K, { x: B, y: K };
|
|
600
523
|
});
|
|
601
|
-
return { ...
|
|
602
|
-
}),
|
|
603
|
-
(
|
|
524
|
+
return { ...p, dataset: M };
|
|
525
|
+
}), x = v.reduce(
|
|
526
|
+
(p, g) => p + (g.dataset[0]?.y ?? 0),
|
|
604
527
|
0
|
|
605
|
-
),
|
|
606
|
-
const D =
|
|
607
|
-
return { x:
|
|
608
|
-
}),
|
|
609
|
-
const D = 1 -
|
|
528
|
+
), $ = b.map((p, g) => {
|
|
529
|
+
const D = g / (b.length - 1), M = x * (1 - D);
|
|
530
|
+
return { x: p, y: M };
|
|
531
|
+
}), L = Math.ceil(x / 100) * 100, N = b, A = v.map((p, g) => {
|
|
532
|
+
const D = 1 - g / v.length * 0.5, M = gt(ft, D);
|
|
610
533
|
return {
|
|
611
|
-
id: `debt-${
|
|
612
|
-
guid:
|
|
613
|
-
label:
|
|
614
|
-
data:
|
|
615
|
-
color:
|
|
534
|
+
id: `debt-${g}`,
|
|
535
|
+
guid: p.guid,
|
|
536
|
+
label: p.name,
|
|
537
|
+
data: p.dataset.map((B) => B.y),
|
|
538
|
+
color: M,
|
|
616
539
|
curve: "linear",
|
|
617
540
|
type: "line",
|
|
618
541
|
area: !0,
|
|
@@ -620,10 +543,10 @@ const Ce = ({
|
|
|
620
543
|
showMark: !1
|
|
621
544
|
};
|
|
622
545
|
});
|
|
623
|
-
|
|
546
|
+
A.push({
|
|
624
547
|
id: "payoff-line",
|
|
625
548
|
label: "Payoff Line",
|
|
626
|
-
data:
|
|
549
|
+
data: $.map((p) => p.y),
|
|
627
550
|
color: c.palette.grey[700],
|
|
628
551
|
curve: "linear",
|
|
629
552
|
type: "line",
|
|
@@ -631,9 +554,9 @@ const Ce = ({
|
|
|
631
554
|
showMark: !1,
|
|
632
555
|
disableHighlight: !0
|
|
633
556
|
});
|
|
634
|
-
const
|
|
557
|
+
const E = (p) => A.findIndex((g) => g?.guid === p);
|
|
635
558
|
return /* @__PURE__ */ e(
|
|
636
|
-
|
|
559
|
+
le,
|
|
637
560
|
{
|
|
638
561
|
sx: {
|
|
639
562
|
width: "100%",
|
|
@@ -648,23 +571,23 @@ const Ce = ({
|
|
|
648
571
|
}
|
|
649
572
|
},
|
|
650
573
|
children: /* @__PURE__ */ e(
|
|
651
|
-
|
|
574
|
+
Xe,
|
|
652
575
|
{
|
|
653
576
|
axisHighlight: { x: "none" },
|
|
654
577
|
disableLineItemHighlight: !0,
|
|
655
|
-
height:
|
|
578
|
+
height: n,
|
|
656
579
|
hideLegend: !0,
|
|
657
580
|
margin: { bottom: 24, left: 32, right: 72, top: 48 },
|
|
658
|
-
onAreaClick: (
|
|
659
|
-
|
|
660
|
-
const D =
|
|
661
|
-
|
|
581
|
+
onAreaClick: (p, g) => {
|
|
582
|
+
s?.();
|
|
583
|
+
const D = A.find((M) => M.id === g.seriesId);
|
|
584
|
+
m(S.DEBTS_CLICK_CHART_AREA, { account_guid: D?.guid });
|
|
662
585
|
},
|
|
663
|
-
onHighlightChange: (
|
|
664
|
-
const
|
|
665
|
-
d?.(
|
|
586
|
+
onHighlightChange: (p) => {
|
|
587
|
+
const g = A.find((D) => D.id === p?.seriesId)?.guid;
|
|
588
|
+
d?.(g ?? "");
|
|
666
589
|
},
|
|
667
|
-
series:
|
|
590
|
+
series: A,
|
|
668
591
|
skipAnimation: !0,
|
|
669
592
|
slotProps: { tooltip: { trigger: "none" } },
|
|
670
593
|
sx: {
|
|
@@ -684,45 +607,45 @@ const Ce = ({
|
|
|
684
607
|
strokeDasharray: "10 5",
|
|
685
608
|
strokeWidth: 1
|
|
686
609
|
},
|
|
687
|
-
[`& .MuiLineElement-series-debt-${
|
|
610
|
+
[`& .MuiLineElement-series-debt-${E(a ?? "0")}`]: {
|
|
688
611
|
opacity: 1
|
|
689
612
|
},
|
|
690
|
-
[`& .MuiAreaElement-series-debt-${
|
|
613
|
+
[`& .MuiAreaElement-series-debt-${E(a ?? "0")}`]: {
|
|
691
614
|
opacity: 1
|
|
692
615
|
},
|
|
693
616
|
"& .MuiChartsAxis-tickLabel > tspan": {
|
|
694
|
-
fontFamily: c.typography.
|
|
617
|
+
fontFamily: c.typography.body2.fontFamily
|
|
695
618
|
},
|
|
696
|
-
...
|
|
619
|
+
...r
|
|
697
620
|
},
|
|
698
|
-
width:
|
|
621
|
+
width: o,
|
|
699
622
|
xAxis: [
|
|
700
623
|
{
|
|
701
|
-
data:
|
|
624
|
+
data: N,
|
|
702
625
|
disableTicks: !0,
|
|
703
626
|
min: b[0],
|
|
704
627
|
scaleType: "time",
|
|
705
628
|
tickLabelMinGap: 24,
|
|
706
|
-
valueFormatter: (
|
|
629
|
+
valueFormatter: (p) => J(p, Q.MONTH_SHORT_YEAR)
|
|
707
630
|
}
|
|
708
631
|
],
|
|
709
632
|
yAxis: [
|
|
710
633
|
{
|
|
711
634
|
min: 0,
|
|
712
|
-
max:
|
|
635
|
+
max: L,
|
|
713
636
|
disableTicks: !0,
|
|
714
|
-
valueFormatter: (
|
|
637
|
+
valueFormatter: (p) => I(p, "0a")
|
|
715
638
|
}
|
|
716
639
|
]
|
|
717
640
|
}
|
|
718
641
|
)
|
|
719
642
|
}
|
|
720
643
|
);
|
|
721
|
-
},
|
|
722
|
-
const
|
|
723
|
-
return /* @__PURE__ */
|
|
724
|
-
/* @__PURE__ */
|
|
725
|
-
|
|
644
|
+
}, xt = () => {
|
|
645
|
+
const r = j(), { debts: n } = w(), { selectedDebtChartData: o } = P();
|
|
646
|
+
return /* @__PURE__ */ l(R, { children: [
|
|
647
|
+
/* @__PURE__ */ l(
|
|
648
|
+
Ye,
|
|
726
649
|
{
|
|
727
650
|
sx: {
|
|
728
651
|
"& .MuiCardContent-root:last-child": {
|
|
@@ -730,70 +653,70 @@ const Ce = ({
|
|
|
730
653
|
}
|
|
731
654
|
},
|
|
732
655
|
children: [
|
|
733
|
-
/* @__PURE__ */ e(
|
|
734
|
-
/* @__PURE__ */ e(
|
|
656
|
+
/* @__PURE__ */ e(Ue, { sx: { pb: 0 }, title: /* @__PURE__ */ e(Be, { sx: { pb: 4 }, children: n.details_chart_title }) }),
|
|
657
|
+
/* @__PURE__ */ e(Ke, { sx: { p: 0 }, children: /* @__PURE__ */ e(De, { debts: [o], height: 250 }) })
|
|
735
658
|
]
|
|
736
659
|
}
|
|
737
660
|
),
|
|
738
661
|
/* @__PURE__ */ e(
|
|
739
|
-
|
|
662
|
+
i,
|
|
740
663
|
{
|
|
741
|
-
color:
|
|
742
|
-
sx: {
|
|
743
|
-
variant: "
|
|
744
|
-
children:
|
|
664
|
+
color: r.palette.text.secondary,
|
|
665
|
+
sx: { textAlign: "center", px: 8, py: 12 },
|
|
666
|
+
variant: "body2",
|
|
667
|
+
children: n.details_chart_description
|
|
745
668
|
}
|
|
746
669
|
)
|
|
747
670
|
] });
|
|
748
|
-
},
|
|
749
|
-
const
|
|
750
|
-
return
|
|
751
|
-
|
|
671
|
+
}, wt = C(xt), Ct = () => {
|
|
672
|
+
const r = j(), { onEvent: n } = k(), { debts: o } = w(), { selectedDebtChartData: t, showCompleted: a, showError: s } = P();
|
|
673
|
+
return f.useEffect(() => n(S.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ e(we, { children: s || a ? /* @__PURE__ */ e(
|
|
674
|
+
i,
|
|
752
675
|
{
|
|
753
|
-
color:
|
|
676
|
+
color: r.palette.secondary.main,
|
|
754
677
|
component: "div",
|
|
755
|
-
sx: { p: 32, textAlign: "center"
|
|
756
|
-
variant: "
|
|
757
|
-
children:
|
|
678
|
+
sx: { p: 32, textAlign: "center" },
|
|
679
|
+
variant: "body2",
|
|
680
|
+
children: s ? o.schedule_error_message : o.schedule_complete_message
|
|
758
681
|
}
|
|
759
|
-
) : /* @__PURE__ */
|
|
760
|
-
/* @__PURE__ */
|
|
761
|
-
/* @__PURE__ */ e(
|
|
762
|
-
/* @__PURE__ */ e(
|
|
682
|
+
) : /* @__PURE__ */ l(R, { children: [
|
|
683
|
+
/* @__PURE__ */ l(y, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
684
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: o.schedule_month_heading }),
|
|
685
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "caption", children: o.schedule_amount_heading })
|
|
763
686
|
] }),
|
|
764
|
-
t.dataset.slice(1).map(({ x: d, y: c, payment:
|
|
765
|
-
|
|
687
|
+
t.dataset.slice(1).map(({ x: d, y: c, payment: m }) => /* @__PURE__ */ e(y, { bgcolor: r.palette.background.paper, children: /* @__PURE__ */ e(y, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ l(
|
|
688
|
+
y,
|
|
766
689
|
{
|
|
767
690
|
sx: {
|
|
768
|
-
borderBottom: `1px solid ${
|
|
691
|
+
borderBottom: `1px solid ${r.palette.divider}`,
|
|
769
692
|
flexDirection: "row",
|
|
770
693
|
flexGrow: 1,
|
|
771
694
|
py: 14,
|
|
772
695
|
pr: 24
|
|
773
696
|
},
|
|
774
697
|
children: [
|
|
775
|
-
/* @__PURE__ */
|
|
776
|
-
/* @__PURE__ */ e(
|
|
777
|
-
/* @__PURE__ */ e(
|
|
698
|
+
/* @__PURE__ */ l(y, { flexGrow: 1, children: [
|
|
699
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: J(d, Q.MONTH_YEAR) }),
|
|
700
|
+
/* @__PURE__ */ e(i, { color: r.palette.secondary.main, variant: "caption", children: o.schedule_month_label })
|
|
778
701
|
] }),
|
|
779
|
-
/* @__PURE__ */
|
|
780
|
-
/* @__PURE__ */ e(
|
|
702
|
+
/* @__PURE__ */ l(y, { children: [
|
|
703
|
+
/* @__PURE__ */ e(i, { bold: !0, variant: "body1", children: I(c, "0,0.00") }),
|
|
781
704
|
/* @__PURE__ */ e(
|
|
782
|
-
|
|
705
|
+
i,
|
|
783
706
|
{
|
|
784
707
|
bold: !0,
|
|
785
|
-
color:
|
|
708
|
+
color: r.palette.success.main,
|
|
786
709
|
textAlign: "end",
|
|
787
|
-
variant: "
|
|
788
|
-
children: `+${
|
|
710
|
+
variant: "tiny",
|
|
711
|
+
children: `+${I(m, "0,0")}`
|
|
789
712
|
}
|
|
790
713
|
)
|
|
791
714
|
] })
|
|
792
715
|
]
|
|
793
716
|
}
|
|
794
717
|
) }) }, String(d))),
|
|
795
|
-
/* @__PURE__ */ e(
|
|
796
|
-
|
|
718
|
+
/* @__PURE__ */ e(y, { bgcolor: "background.paper", children: /* @__PURE__ */ l(
|
|
719
|
+
y,
|
|
797
720
|
{
|
|
798
721
|
sx: {
|
|
799
722
|
alignItems: "center",
|
|
@@ -803,135 +726,135 @@ const Ce = ({
|
|
|
803
726
|
px: 24
|
|
804
727
|
},
|
|
805
728
|
children: [
|
|
806
|
-
/* @__PURE__ */ e(
|
|
807
|
-
/* @__PURE__ */ e(
|
|
729
|
+
/* @__PURE__ */ e(i, { flexGrow: 1, variant: "body1", children: o.schedule_payoff_label }),
|
|
730
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: "-" })
|
|
808
731
|
]
|
|
809
732
|
}
|
|
810
733
|
) })
|
|
811
734
|
] }) });
|
|
812
|
-
},
|
|
813
|
-
const { debts:
|
|
814
|
-
await
|
|
815
|
-
},
|
|
735
|
+
}, vt = C(Ct), Dt = C(({ debt: r }) => {
|
|
736
|
+
const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.interest_rate ?? 0), d = a < 0, c = async () => {
|
|
737
|
+
await o({ ...r.account, interest_rate: a }), r.interest_rate = a, t(S.DEBTS_SAVE_RATE_ACTION, { account_guid: r.guid });
|
|
738
|
+
}, m = () => {
|
|
816
739
|
setTimeout(() => {
|
|
817
|
-
|
|
740
|
+
s(r.interest_rate ?? 0);
|
|
818
741
|
}, 250);
|
|
819
742
|
};
|
|
820
743
|
return /* @__PURE__ */ e(
|
|
821
|
-
|
|
744
|
+
re,
|
|
822
745
|
{
|
|
823
746
|
isSaveDisabled: d,
|
|
824
|
-
label: `${
|
|
825
|
-
onCancel:
|
|
747
|
+
label: `${n.details_interest_rate} (%)`,
|
|
748
|
+
onCancel: m,
|
|
826
749
|
onSave: c,
|
|
827
|
-
primaryText:
|
|
828
|
-
secondaryText:
|
|
829
|
-
zeroStateText:
|
|
750
|
+
primaryText: n.details_interest_rate,
|
|
751
|
+
secondaryText: We(Number(r.interest_rate) / 100),
|
|
752
|
+
zeroStateText: r.interest_rate ? void 0 : n.add_interest_rate,
|
|
830
753
|
children: /* @__PURE__ */ e(
|
|
831
|
-
|
|
754
|
+
tt,
|
|
832
755
|
{
|
|
833
756
|
error: d,
|
|
834
757
|
fullWidth: !0,
|
|
835
|
-
onChange: (
|
|
758
|
+
onChange: (h) => s(isNaN(parseFloat(h.target.value)) ? 0 : parseFloat(h.target.value)),
|
|
836
759
|
type: "number",
|
|
837
|
-
value:
|
|
760
|
+
value: a
|
|
838
761
|
}
|
|
839
762
|
)
|
|
840
763
|
}
|
|
841
764
|
);
|
|
842
|
-
}),
|
|
843
|
-
const { debts:
|
|
844
|
-
await
|
|
845
|
-
},
|
|
765
|
+
}), St = C(({ debt: r }) => {
|
|
766
|
+
const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.monthly_payment ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
|
|
767
|
+
await o({ ...r.account, minimum_payment: a }), r.monthly_payment = a, t(S.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: r.guid });
|
|
768
|
+
}, m = () => {
|
|
846
769
|
setTimeout(() => {
|
|
847
|
-
|
|
770
|
+
s(r.monthly_payment ?? 0);
|
|
848
771
|
}, 250);
|
|
849
772
|
};
|
|
850
773
|
return /* @__PURE__ */ e(
|
|
851
|
-
|
|
774
|
+
re,
|
|
852
775
|
{
|
|
853
776
|
isSaveDisabled: d,
|
|
854
|
-
label:
|
|
855
|
-
onCancel:
|
|
777
|
+
label: n.details_monthly_payment,
|
|
778
|
+
onCancel: m,
|
|
856
779
|
onSave: c,
|
|
857
|
-
primaryText:
|
|
858
|
-
secondaryText:
|
|
859
|
-
zeroStateText:
|
|
780
|
+
primaryText: n.details_monthly_payment,
|
|
781
|
+
secondaryText: I(r.monthly_payment, "0,0"),
|
|
782
|
+
zeroStateText: r.monthly_payment ? void 0 : n.add_monthly_payment,
|
|
860
783
|
children: /* @__PURE__ */ e(
|
|
861
|
-
|
|
784
|
+
se,
|
|
862
785
|
{
|
|
863
|
-
amount:
|
|
786
|
+
amount: a,
|
|
864
787
|
autoFocus: !0,
|
|
865
788
|
error: d,
|
|
866
789
|
fullWidth: !0,
|
|
867
790
|
minAmount: 0,
|
|
868
|
-
setAmount: (
|
|
869
|
-
sx: { ".MuiTypography-
|
|
791
|
+
setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
|
|
792
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
870
793
|
}
|
|
871
794
|
)
|
|
872
795
|
}
|
|
873
796
|
);
|
|
874
|
-
}),
|
|
875
|
-
const { debts:
|
|
876
|
-
await
|
|
877
|
-
},
|
|
797
|
+
}), At = C(({ debt: r }) => {
|
|
798
|
+
const { debts: n } = w(), { updateAccount: o } = te(), { onEvent: t } = k(), [a, s] = f.useState(r.original_balance ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
|
|
799
|
+
await o({ ...r.account, original_balance: a }), r.original_balance = a, t(S.DEBTS_SAVE_BALANCE_ACTION, { account_guid: r.guid });
|
|
800
|
+
}, m = () => {
|
|
878
801
|
setTimeout(() => {
|
|
879
|
-
|
|
802
|
+
s(r.original_balance ?? 0);
|
|
880
803
|
}, 250);
|
|
881
804
|
};
|
|
882
805
|
return /* @__PURE__ */ e(
|
|
883
|
-
|
|
806
|
+
re,
|
|
884
807
|
{
|
|
885
808
|
isSaveDisabled: d,
|
|
886
|
-
label:
|
|
887
|
-
onCancel:
|
|
809
|
+
label: n.details_original_balance,
|
|
810
|
+
onCancel: m,
|
|
888
811
|
onSave: c,
|
|
889
|
-
primaryText:
|
|
890
|
-
secondaryText:
|
|
891
|
-
zeroStateText:
|
|
812
|
+
primaryText: n.details_original_balance,
|
|
813
|
+
secondaryText: I(r.original_balance, "0,0"),
|
|
814
|
+
zeroStateText: r.original_balance ? void 0 : n.add_original_balance,
|
|
892
815
|
children: /* @__PURE__ */ e(
|
|
893
|
-
|
|
816
|
+
se,
|
|
894
817
|
{
|
|
895
|
-
amount:
|
|
818
|
+
amount: a,
|
|
896
819
|
autoFocus: !0,
|
|
897
820
|
error: d,
|
|
898
821
|
fullWidth: !0,
|
|
899
822
|
minAmount: 0,
|
|
900
|
-
setAmount: (
|
|
901
|
-
sx: { ".MuiTypography-
|
|
823
|
+
setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
|
|
824
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
902
825
|
}
|
|
903
826
|
)
|
|
904
827
|
}
|
|
905
828
|
);
|
|
906
|
-
}),
|
|
907
|
-
const { onEvent:
|
|
908
|
-
return
|
|
909
|
-
|
|
910
|
-
/* @__PURE__ */ e(
|
|
911
|
-
/* @__PURE__ */ e(
|
|
912
|
-
/* @__PURE__ */ e(
|
|
913
|
-
/* @__PURE__ */ e(
|
|
914
|
-
/* @__PURE__ */ e(
|
|
915
|
-
/* @__PURE__ */ e(
|
|
829
|
+
}), Tt = () => {
|
|
830
|
+
const { onEvent: r } = k(), { selectedDebtChartData: n } = P();
|
|
831
|
+
return f.useEffect(() => r(S.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(y, { bgcolor: "background.paper", children: [
|
|
832
|
+
n?.goal && /* @__PURE__ */ l(R, { children: [
|
|
833
|
+
/* @__PURE__ */ e(Je, { goal: n.goal }),
|
|
834
|
+
/* @__PURE__ */ e(G, {}),
|
|
835
|
+
/* @__PURE__ */ e(Qe, { goal: n.goal }),
|
|
836
|
+
/* @__PURE__ */ e(G, {}),
|
|
837
|
+
/* @__PURE__ */ e(et, { goal: n.goal }),
|
|
838
|
+
/* @__PURE__ */ e(G, {})
|
|
916
839
|
] }),
|
|
917
|
-
!
|
|
918
|
-
/* @__PURE__ */ e(
|
|
919
|
-
/* @__PURE__ */ e(
|
|
920
|
-
/* @__PURE__ */ e(
|
|
921
|
-
/* @__PURE__ */ e(
|
|
922
|
-
/* @__PURE__ */ e(
|
|
923
|
-
/* @__PURE__ */ e(
|
|
840
|
+
!n?.goal && n?.account && /* @__PURE__ */ l(R, { children: [
|
|
841
|
+
/* @__PURE__ */ e(St, { debt: n }),
|
|
842
|
+
/* @__PURE__ */ e(G, {}),
|
|
843
|
+
/* @__PURE__ */ e(Dt, { debt: n }),
|
|
844
|
+
/* @__PURE__ */ e(G, {}),
|
|
845
|
+
/* @__PURE__ */ e(At, { debt: n }),
|
|
846
|
+
/* @__PURE__ */ e(G, {})
|
|
924
847
|
] })
|
|
925
848
|
] });
|
|
926
|
-
},
|
|
927
|
-
const { debts:
|
|
928
|
-
return
|
|
929
|
-
t &&
|
|
930
|
-
}, [t]), !t && !
|
|
931
|
-
/* @__PURE__ */ e(
|
|
849
|
+
}, Et = C(Tt), It = ({ setTabValue: r, sx: n }) => {
|
|
850
|
+
const { debts: o } = w(), { showError: t, showCompleted: a } = P();
|
|
851
|
+
return f.useEffect(() => {
|
|
852
|
+
t && r(1);
|
|
853
|
+
}, [t]), !t && !a ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ l(y, { gap: 16, children: [
|
|
854
|
+
/* @__PURE__ */ e(ye, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
|
932
855
|
me,
|
|
933
856
|
{
|
|
934
|
-
icon: t ? /* @__PURE__ */ e(
|
|
857
|
+
icon: t ? /* @__PURE__ */ e(rt, { filled: !0 }) : /* @__PURE__ */ e(Ce, { color: "success", filled: !0 }),
|
|
935
858
|
severity: "error",
|
|
936
859
|
sx: {
|
|
937
860
|
alignItems: "start",
|
|
@@ -944,15 +867,15 @@ const Ce = ({
|
|
|
944
867
|
}
|
|
945
868
|
},
|
|
946
869
|
children: [
|
|
947
|
-
/* @__PURE__ */ e(
|
|
948
|
-
/* @__PURE__ */ e(
|
|
870
|
+
/* @__PURE__ */ e(_e, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: t ? o.status_error_title : o.status_complete_title }),
|
|
871
|
+
/* @__PURE__ */ e(i, { component: "p", variant: "subtitle2", children: t ? o.status_error_description : o.status_complete_description })
|
|
949
872
|
]
|
|
950
873
|
}
|
|
951
874
|
) }),
|
|
952
|
-
t && /* @__PURE__ */ e(
|
|
875
|
+
t && /* @__PURE__ */ e(ye, { sx: { mb: 16, mt: 100, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
|
953
876
|
me,
|
|
954
877
|
{
|
|
955
|
-
icon: /* @__PURE__ */ e(
|
|
878
|
+
icon: /* @__PURE__ */ e(R, {}),
|
|
956
879
|
severity: "error",
|
|
957
880
|
sx: {
|
|
958
881
|
borderRadius: 2,
|
|
@@ -962,151 +885,151 @@ const Ce = ({
|
|
|
962
885
|
}
|
|
963
886
|
},
|
|
964
887
|
children: [
|
|
965
|
-
/* @__PURE__ */ e(
|
|
966
|
-
/* @__PURE__ */ e(
|
|
888
|
+
/* @__PURE__ */ e(_e, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: o.status_info_title }),
|
|
889
|
+
/* @__PURE__ */ e(i, { component: "p", variant: "subtitle2", children: o.status_info_description })
|
|
967
890
|
]
|
|
968
891
|
}
|
|
969
892
|
) })
|
|
970
893
|
] });
|
|
971
|
-
},
|
|
972
|
-
const { debts:
|
|
973
|
-
return /* @__PURE__ */
|
|
974
|
-
(
|
|
975
|
-
/* @__PURE__ */
|
|
976
|
-
|
|
894
|
+
}, Mt = C(It), kt = () => {
|
|
895
|
+
const { debts: r } = w(), { showError: n, showCompleted: o } = P(), [t, a] = f.useState(0);
|
|
896
|
+
return /* @__PURE__ */ l(R, { children: [
|
|
897
|
+
(n || o) && /* @__PURE__ */ e(Mt, { setTabValue: a, sx: { mt: -24 } }),
|
|
898
|
+
/* @__PURE__ */ l(
|
|
899
|
+
Ze,
|
|
977
900
|
{
|
|
978
|
-
"aria-label":
|
|
901
|
+
"aria-label": r.details_tabs_aria_label,
|
|
979
902
|
centered: !0,
|
|
980
|
-
onChange: (
|
|
903
|
+
onChange: (s, d) => a(d),
|
|
981
904
|
textColor: "primary",
|
|
982
905
|
value: t,
|
|
983
906
|
variant: "fullWidth",
|
|
984
907
|
children: [
|
|
985
908
|
/* @__PURE__ */ e(
|
|
986
|
-
|
|
909
|
+
be,
|
|
987
910
|
{
|
|
988
911
|
"aria-controls": "debt-schedule-tabpanel-0",
|
|
989
912
|
id: "debt-schedule-tab-0",
|
|
990
|
-
label:
|
|
913
|
+
label: r.schedule_tab_label
|
|
991
914
|
}
|
|
992
915
|
),
|
|
993
916
|
/* @__PURE__ */ e(
|
|
994
|
-
|
|
917
|
+
be,
|
|
995
918
|
{
|
|
996
919
|
"aria-controls": "debt-details-tabpanel-1",
|
|
997
920
|
id: "debt-details-tab-1",
|
|
998
|
-
label:
|
|
921
|
+
label: r.details_tab_label
|
|
999
922
|
}
|
|
1000
923
|
)
|
|
1001
924
|
]
|
|
1002
925
|
}
|
|
1003
926
|
),
|
|
1004
|
-
/* @__PURE__ */ e(
|
|
1005
|
-
/* @__PURE__ */ e(
|
|
927
|
+
/* @__PURE__ */ e(fe, { index: 0, name: "debt-schedule", value: t, children: /* @__PURE__ */ e(vt, {}) }),
|
|
928
|
+
/* @__PURE__ */ e(fe, { index: 1, name: "debt-details", value: t, children: /* @__PURE__ */ e(Et, {}) })
|
|
1006
929
|
] });
|
|
1007
|
-
},
|
|
1008
|
-
const { debts:
|
|
930
|
+
}, Nt = C(kt), Bt = ({ isOpen: r, onClose: n }) => {
|
|
931
|
+
const { debts: o } = w(), { showError: t, showCompleted: a } = P(), s = t || a ? /* @__PURE__ */ e(R, {}) : /* @__PURE__ */ e(wt, {});
|
|
1009
932
|
return /* @__PURE__ */ e(
|
|
1010
|
-
|
|
933
|
+
ie,
|
|
1011
934
|
{
|
|
1012
|
-
ariaLabelClose:
|
|
1013
|
-
isOpen:
|
|
1014
|
-
onClose:
|
|
1015
|
-
title:
|
|
1016
|
-
children: /* @__PURE__ */
|
|
1017
|
-
/* @__PURE__ */ e(
|
|
1018
|
-
/* @__PURE__ */ e(
|
|
935
|
+
ariaLabelClose: o.details_close_aria,
|
|
936
|
+
isOpen: r,
|
|
937
|
+
onClose: n,
|
|
938
|
+
title: o.details_title,
|
|
939
|
+
children: /* @__PURE__ */ l(y, { bgcolor: "background.default", children: [
|
|
940
|
+
/* @__PURE__ */ e(je, { customDetailsChart: s }),
|
|
941
|
+
/* @__PURE__ */ e(Nt, {})
|
|
1019
942
|
] })
|
|
1020
943
|
}
|
|
1021
944
|
);
|
|
1022
|
-
},
|
|
1023
|
-
const { debts:
|
|
1024
|
-
|
|
1025
|
-
user_guid:
|
|
945
|
+
}, Pt = C(() => {
|
|
946
|
+
const { debts: r } = w(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: o } = V(), { onEvent: t } = k(), [a, s] = f.useState(n?.extra_payment ?? 0), d = a < 0 || a > 9999999999e-2, c = async () => {
|
|
947
|
+
n && (await o({ ...n, extra_payment: a }), n.extra_payment = a, t(S.DEBTS_SAVE_PAYDOWN_ACTION, {
|
|
948
|
+
user_guid: n?.user_guid
|
|
1026
949
|
}));
|
|
1027
|
-
},
|
|
950
|
+
}, m = () => {
|
|
1028
951
|
setTimeout(() => {
|
|
1029
|
-
|
|
952
|
+
s(n?.extra_payment ?? 0);
|
|
1030
953
|
}, 250);
|
|
1031
954
|
};
|
|
1032
955
|
return /* @__PURE__ */ e(
|
|
1033
|
-
|
|
956
|
+
re,
|
|
1034
957
|
{
|
|
1035
958
|
isSaveDisabled: d,
|
|
1036
|
-
label:
|
|
1037
|
-
onCancel:
|
|
959
|
+
label: r.paydown_drawer_extra_payment,
|
|
960
|
+
onCancel: m,
|
|
1038
961
|
onSave: c,
|
|
1039
|
-
primaryText:
|
|
1040
|
-
secondaryText:
|
|
1041
|
-
zeroStateText:
|
|
962
|
+
primaryText: r.paydown_drawer_extra_payment,
|
|
963
|
+
secondaryText: I(n?.extra_payment, "0,0"),
|
|
964
|
+
zeroStateText: n?.extra_payment ? void 0 : r.add_extra_payment,
|
|
1042
965
|
children: /* @__PURE__ */ e(
|
|
1043
|
-
|
|
966
|
+
se,
|
|
1044
967
|
{
|
|
1045
|
-
amount:
|
|
968
|
+
amount: a,
|
|
1046
969
|
autoFocus: !0,
|
|
1047
970
|
error: d,
|
|
1048
971
|
fullWidth: !0,
|
|
1049
972
|
minAmount: 0,
|
|
1050
|
-
setAmount: (
|
|
1051
|
-
sx: { ".MuiTypography-
|
|
973
|
+
setAmount: (h) => s(isNaN(Number(h)) ? a : Number(h)),
|
|
974
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
1052
975
|
}
|
|
1053
976
|
)
|
|
1054
977
|
}
|
|
1055
978
|
);
|
|
1056
|
-
}),
|
|
1057
|
-
const { debts:
|
|
1058
|
-
return /* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
/* @__PURE__ */ e(
|
|
1062
|
-
/* @__PURE__ */ e(
|
|
1063
|
-
/* @__PURE__ */ e(
|
|
979
|
+
}), Rt = () => {
|
|
980
|
+
const { debts: r } = w(), { totalMonthlyPayments: n } = ee(), { monthlyCashFlowProfile: o } = V(), t = n + Number(o?.extra_payment);
|
|
981
|
+
return /* @__PURE__ */ l(y, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
|
|
982
|
+
/* @__PURE__ */ l(y, { p: 24, children: [
|
|
983
|
+
/* @__PURE__ */ l(y, { alignItems: "center", gap: 4, mb: 24, children: [
|
|
984
|
+
/* @__PURE__ */ e(i, { variant: "body1", children: r.paydown_drawer_mimimum_label }),
|
|
985
|
+
/* @__PURE__ */ e(xe, { bold: !0, variant: "h1", children: I(n, "0,0") }),
|
|
986
|
+
/* @__PURE__ */ e(i, { textAlign: "center", truncate: !1, variant: "body2", width: 208, children: r.paydown_drawer_minimum_info })
|
|
1064
987
|
] }),
|
|
1065
|
-
/* @__PURE__ */
|
|
1066
|
-
/* @__PURE__ */ e(
|
|
1067
|
-
/* @__PURE__ */ e(
|
|
988
|
+
/* @__PURE__ */ l(y, { children: [
|
|
989
|
+
/* @__PURE__ */ e(i, { variant: "h3", children: r.paydown_drawer_subtitle }),
|
|
990
|
+
/* @__PURE__ */ e(i, { truncate: !1, variant: "subtitle2", children: r.paydown_drawer_description })
|
|
1068
991
|
] })
|
|
1069
992
|
] }),
|
|
1070
|
-
/* @__PURE__ */ e(
|
|
1071
|
-
/* @__PURE__ */ e(
|
|
1072
|
-
/* @__PURE__ */ e(
|
|
1073
|
-
/* @__PURE__ */ e(
|
|
993
|
+
/* @__PURE__ */ e(y, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(Pt, {}) }),
|
|
994
|
+
/* @__PURE__ */ e(y, { flexDirection: "row-reverse", px: 24, py: 12, children: /* @__PURE__ */ l(y, { gap: 4, children: [
|
|
995
|
+
/* @__PURE__ */ e(i, { variant: "body2", children: r.paydown_drawer_total_payment }),
|
|
996
|
+
/* @__PURE__ */ e(i, { bold: !0, textAlign: "right", variant: "body1", children: I(t, "0,0") })
|
|
1074
997
|
] }) })
|
|
1075
998
|
] });
|
|
1076
|
-
},
|
|
1077
|
-
const { debts:
|
|
999
|
+
}, Lt = C(Rt), Ft = ({ isOpen: r, onClose: n }) => {
|
|
1000
|
+
const { debts: o } = w();
|
|
1078
1001
|
return /* @__PURE__ */ e(
|
|
1079
|
-
|
|
1002
|
+
ie,
|
|
1080
1003
|
{
|
|
1081
|
-
ariaLabelClose:
|
|
1082
|
-
isOpen:
|
|
1083
|
-
onClose:
|
|
1084
|
-
title:
|
|
1085
|
-
children: /* @__PURE__ */ e(
|
|
1004
|
+
ariaLabelClose: o.paydown_drawer_close_aria,
|
|
1005
|
+
isOpen: r,
|
|
1006
|
+
onClose: n,
|
|
1007
|
+
title: o.paydown_drawer_title,
|
|
1008
|
+
children: /* @__PURE__ */ e(Lt, {})
|
|
1086
1009
|
}
|
|
1087
1010
|
);
|
|
1088
1011
|
};
|
|
1089
|
-
function
|
|
1090
|
-
const
|
|
1012
|
+
function $t(r, n) {
|
|
1013
|
+
const o = (t) => {
|
|
1091
1014
|
if (typeof t == "number") return t;
|
|
1092
1015
|
if (t === "!" || t === "✓") return 1 / 0;
|
|
1093
1016
|
throw new Error("Unsupported value");
|
|
1094
1017
|
};
|
|
1095
|
-
return r
|
|
1018
|
+
return o(r) - o(n);
|
|
1096
1019
|
}
|
|
1097
|
-
function
|
|
1098
|
-
return
|
|
1020
|
+
function Ot(r) {
|
|
1021
|
+
return r.is_paid_off ? "✓" : r.priority === void 0 || r.is_impossible ? "!" : r.priority;
|
|
1099
1022
|
}
|
|
1100
|
-
const
|
|
1101
|
-
const
|
|
1023
|
+
const Wt = (r) => {
|
|
1024
|
+
const n = {
|
|
1102
1025
|
text: "#121417",
|
|
1103
1026
|
background: "#FFB252"
|
|
1104
1027
|
};
|
|
1105
|
-
return
|
|
1106
|
-
},
|
|
1107
|
-
const
|
|
1028
|
+
return r === "!" && (n.text = "#FFFFFF", n.background = "#DF320C"), r === "✓" && (n.text = "#FFFFFF", n.background = "#09A57F"), n;
|
|
1029
|
+
}, Gt = (r) => {
|
|
1030
|
+
const n = String(r.formattedValue), o = Wt(n);
|
|
1108
1031
|
return /* @__PURE__ */ e(
|
|
1109
|
-
|
|
1032
|
+
le,
|
|
1110
1033
|
{
|
|
1111
1034
|
sx: {
|
|
1112
1035
|
display: "flex",
|
|
@@ -1116,43 +1039,43 @@ const kt = (a) => {
|
|
|
1116
1039
|
// Adjust the size as needed
|
|
1117
1040
|
height: 20,
|
|
1118
1041
|
borderRadius: "50%",
|
|
1119
|
-
backgroundColor:
|
|
1042
|
+
backgroundColor: o.background,
|
|
1120
1043
|
marginLeft: "10px"
|
|
1121
1044
|
},
|
|
1122
|
-
children: /* @__PURE__ */ e(
|
|
1045
|
+
children: /* @__PURE__ */ e(i, { color: o.text, fontWeight: 700, variant: "body2", children: n })
|
|
1123
1046
|
}
|
|
1124
1047
|
);
|
|
1125
|
-
},
|
|
1126
|
-
const
|
|
1127
|
-
return /* @__PURE__ */
|
|
1048
|
+
}, Ht = (r) => {
|
|
1049
|
+
const n = r.row.account, o = nt[n.account_type];
|
|
1050
|
+
return /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
|
|
1128
1051
|
/* @__PURE__ */ e(
|
|
1129
|
-
|
|
1052
|
+
Pe,
|
|
1130
1053
|
{
|
|
1131
|
-
alt: `${
|
|
1132
|
-
institutionGuid:
|
|
1054
|
+
alt: `${n.institutionName}`,
|
|
1055
|
+
institutionGuid: n.institution_guid || ""
|
|
1133
1056
|
}
|
|
1134
1057
|
),
|
|
1135
|
-
/* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */ e(
|
|
1137
|
-
/* @__PURE__ */ e(
|
|
1058
|
+
/* @__PURE__ */ l(y, { ml: 12, children: [
|
|
1059
|
+
/* @__PURE__ */ e(i, { variant: "body2", children: n.name }),
|
|
1060
|
+
/* @__PURE__ */ e(i, { variant: "caption", children: o })
|
|
1138
1061
|
] })
|
|
1139
1062
|
] });
|
|
1140
|
-
},
|
|
1141
|
-
sx:
|
|
1142
|
-
debts:
|
|
1143
|
-
hoveredDebtGuid:
|
|
1063
|
+
}, zt = ({
|
|
1064
|
+
sx: r = {},
|
|
1065
|
+
debts: n,
|
|
1066
|
+
hoveredDebtGuid: o,
|
|
1144
1067
|
onHoverRow: t,
|
|
1145
|
-
onClickRow:
|
|
1068
|
+
onClickRow: a
|
|
1146
1069
|
}) => {
|
|
1147
|
-
const
|
|
1070
|
+
const s = j(), { onEvent: d } = k(), { isMobile: c } = ae(), { debts: m, common: h } = w(), [b, v] = f.useState([
|
|
1148
1071
|
{ field: "priority", sort: "asc" }
|
|
1149
|
-
]),
|
|
1072
|
+
]), x = [
|
|
1150
1073
|
{
|
|
1151
1074
|
field: "priority",
|
|
1152
|
-
headerName:
|
|
1153
|
-
renderHeader:
|
|
1154
|
-
renderCell:
|
|
1155
|
-
sortComparator:
|
|
1075
|
+
headerName: m.table_column_priority,
|
|
1076
|
+
renderHeader: H,
|
|
1077
|
+
renderCell: Gt,
|
|
1078
|
+
sortComparator: $t,
|
|
1156
1079
|
sortable: !0,
|
|
1157
1080
|
hideSortIcons: !0,
|
|
1158
1081
|
type: "custom",
|
|
@@ -1163,9 +1086,9 @@ const kt = (a) => {
|
|
|
1163
1086
|
},
|
|
1164
1087
|
{
|
|
1165
1088
|
field: "account",
|
|
1166
|
-
headerName:
|
|
1167
|
-
renderHeader:
|
|
1168
|
-
renderCell:
|
|
1089
|
+
headerName: m.table_column_account,
|
|
1090
|
+
renderHeader: H,
|
|
1091
|
+
renderCell: Ht,
|
|
1169
1092
|
sortable: !1,
|
|
1170
1093
|
type: "custom",
|
|
1171
1094
|
align: "left",
|
|
@@ -1175,22 +1098,22 @@ const kt = (a) => {
|
|
|
1175
1098
|
},
|
|
1176
1099
|
{
|
|
1177
1100
|
field: "balance",
|
|
1178
|
-
headerName:
|
|
1179
|
-
renderHeader:
|
|
1180
|
-
renderCell: (
|
|
1101
|
+
headerName: m.table_column_balance,
|
|
1102
|
+
renderHeader: H,
|
|
1103
|
+
renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: I(_.value, "0,0") }),
|
|
1181
1104
|
sortable: !0,
|
|
1182
1105
|
hideSortIcons: c,
|
|
1183
1106
|
type: "number",
|
|
1184
|
-
align:
|
|
1185
|
-
headerAlign:
|
|
1107
|
+
align: "left",
|
|
1108
|
+
headerAlign: "left",
|
|
1186
1109
|
minWidth: c ? 70 : 122,
|
|
1187
1110
|
flex: c ? 0.4 : 0.6
|
|
1188
1111
|
},
|
|
1189
1112
|
{
|
|
1190
1113
|
field: "interest_rate",
|
|
1191
|
-
headerName:
|
|
1192
|
-
renderHeader:
|
|
1193
|
-
renderCell: (
|
|
1114
|
+
headerName: m.table_column_interest_rate,
|
|
1115
|
+
renderHeader: H,
|
|
1116
|
+
renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: isNaN(_.value) ? "---" : `${Number(_.value).toFixed(2)}%` }),
|
|
1194
1117
|
sortable: !0,
|
|
1195
1118
|
hideSortIcons: c,
|
|
1196
1119
|
type: "number",
|
|
@@ -1201,9 +1124,9 @@ const kt = (a) => {
|
|
|
1201
1124
|
},
|
|
1202
1125
|
{
|
|
1203
1126
|
field: "projected_payoff_date",
|
|
1204
|
-
headerName:
|
|
1205
|
-
renderHeader:
|
|
1206
|
-
renderCell: (
|
|
1127
|
+
headerName: m.table_column_payoff_date,
|
|
1128
|
+
renderHeader: H,
|
|
1129
|
+
renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: _.value ? J(_.value, Q.MONTH_SHORT_YEAR) : "---" }),
|
|
1207
1130
|
sortable: !0,
|
|
1208
1131
|
hideSortIcons: c,
|
|
1209
1132
|
type: "number",
|
|
@@ -1214,9 +1137,9 @@ const kt = (a) => {
|
|
|
1214
1137
|
},
|
|
1215
1138
|
{
|
|
1216
1139
|
field: "monthly_payment",
|
|
1217
|
-
headerName:
|
|
1218
|
-
renderHeader:
|
|
1219
|
-
renderCell: (
|
|
1140
|
+
headerName: m.table_column_amount_due,
|
|
1141
|
+
renderHeader: H,
|
|
1142
|
+
renderCell: (_) => /* @__PURE__ */ e(i, { color: s.palette.text.primary, variant: "body2", children: typeof _.value == "number" ? I(_.value, "0,0") : "---" }),
|
|
1220
1143
|
sortable: !0,
|
|
1221
1144
|
hideSortIcons: c,
|
|
1222
1145
|
type: "number",
|
|
@@ -1225,72 +1148,74 @@ const kt = (a) => {
|
|
|
1225
1148
|
minWidth: 122,
|
|
1226
1149
|
flex: 0.6
|
|
1227
1150
|
}
|
|
1228
|
-
],
|
|
1229
|
-
...
|
|
1151
|
+
], $ = [
|
|
1152
|
+
...x.slice(0, 3),
|
|
1230
1153
|
{
|
|
1231
1154
|
field: "chevron",
|
|
1155
|
+
headerClassName: "chevron-header",
|
|
1232
1156
|
headerName: "",
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
sortable: !0,
|
|
1157
|
+
renderCell: () => /* @__PURE__ */ e(u, { "aria-label": h.see_details, role: "button", children: /* @__PURE__ */ e(ne, { name: "chevron_right" }) }),
|
|
1158
|
+
sortable: !1,
|
|
1236
1159
|
hideSortIcons: !0,
|
|
1237
1160
|
type: "custom",
|
|
1238
1161
|
align: "right",
|
|
1239
1162
|
headerAlign: "right",
|
|
1240
1163
|
width: 20
|
|
1241
1164
|
}
|
|
1242
|
-
],
|
|
1243
|
-
...
|
|
1244
|
-
id:
|
|
1245
|
-
priority:
|
|
1246
|
-
})), [
|
|
1247
|
-
const
|
|
1248
|
-
t?.(
|
|
1249
|
-
},
|
|
1250
|
-
c ||
|
|
1251
|
-
},
|
|
1252
|
-
c &&
|
|
1253
|
-
},
|
|
1165
|
+
], L = f.useMemo(() => n.map((_, p) => ({
|
|
1166
|
+
..._,
|
|
1167
|
+
id: p,
|
|
1168
|
+
priority: Ot(_)
|
|
1169
|
+
})), [n]), N = (_) => {
|
|
1170
|
+
const D = _.target.closest("[data-id]")?.getAttribute("data-id"), M = n[Number(D)];
|
|
1171
|
+
t?.(M?.guid ?? "");
|
|
1172
|
+
}, A = (_) => {
|
|
1173
|
+
c || N(_);
|
|
1174
|
+
}, E = (_) => {
|
|
1175
|
+
c && N(_);
|
|
1176
|
+
}, Y = (_) => L.find((p) => p.guid === _)?.id;
|
|
1254
1177
|
return /* @__PURE__ */ e(
|
|
1255
|
-
|
|
1178
|
+
le,
|
|
1256
1179
|
{
|
|
1257
1180
|
sx: {
|
|
1258
|
-
height: "
|
|
1181
|
+
height: "auto",
|
|
1259
1182
|
width: "100%",
|
|
1260
1183
|
mt: "15px",
|
|
1261
1184
|
overflowX: "auto",
|
|
1185
|
+
overflowY: "visible",
|
|
1262
1186
|
boxShadow: "none",
|
|
1263
|
-
...
|
|
1187
|
+
...r
|
|
1264
1188
|
},
|
|
1265
1189
|
children: /* @__PURE__ */ e(
|
|
1266
|
-
|
|
1190
|
+
ot,
|
|
1267
1191
|
{
|
|
1268
|
-
columns: c ?
|
|
1192
|
+
columns: c ? $ : x,
|
|
1269
1193
|
disableColumnFilter: !0,
|
|
1270
1194
|
disableColumnMenu: !0,
|
|
1271
1195
|
hideFooter: !0,
|
|
1272
|
-
initialState: { sorting: { sortModel:
|
|
1273
|
-
onRowClick: (
|
|
1274
|
-
|
|
1196
|
+
initialState: { sorting: { sortModel: b } },
|
|
1197
|
+
onRowClick: (_) => {
|
|
1198
|
+
a(), d(S.DEBTS_CLICK_TABLE_ROW, { account_guid: _.row.guid });
|
|
1275
1199
|
},
|
|
1276
|
-
onSortModelChange: (
|
|
1277
|
-
|
|
1200
|
+
onSortModelChange: (_) => {
|
|
1201
|
+
v(_), d(S.DEBTS_CLICK_TABLE_SORT);
|
|
1278
1202
|
},
|
|
1279
|
-
rows:
|
|
1203
|
+
rows: L,
|
|
1280
1204
|
slotProps: {
|
|
1281
1205
|
baseIconButton: { color: "secondary", sx: { ml: 8 } },
|
|
1282
1206
|
row: {
|
|
1283
|
-
onMouseEnter:
|
|
1207
|
+
onMouseEnter: A,
|
|
1284
1208
|
onMouseLeave: () => !c && t?.(""),
|
|
1285
|
-
onTouchStart:
|
|
1286
|
-
onClick: c ?
|
|
1209
|
+
onTouchStart: E,
|
|
1210
|
+
onClick: c ? E : void 0
|
|
1287
1211
|
}
|
|
1288
1212
|
},
|
|
1289
|
-
sortModel:
|
|
1213
|
+
sortModel: b,
|
|
1290
1214
|
sortingOrder: ["asc", "desc"],
|
|
1291
1215
|
sx: {
|
|
1292
|
-
|
|
1293
|
-
|
|
1216
|
+
"& .chevron-header": { display: "none" },
|
|
1217
|
+
[`& .MuiDataGrid-row[data-id="${Y(o)}"]`]: {
|
|
1218
|
+
backgroundColor: s.palette.mode === "light" ? "#f8f9fb" : "#1f2329",
|
|
1294
1219
|
filter: "brightness(98%)"
|
|
1295
1220
|
}
|
|
1296
1221
|
}
|
|
@@ -1298,74 +1223,82 @@ const kt = (a) => {
|
|
|
1298
1223
|
)
|
|
1299
1224
|
}
|
|
1300
1225
|
);
|
|
1301
|
-
},
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1226
|
+
}, jt = ({
|
|
1227
|
+
buttonText: r,
|
|
1228
|
+
disabled: n,
|
|
1229
|
+
isDesktop: o = !1,
|
|
1230
|
+
isOpen: t,
|
|
1231
|
+
onClick: a
|
|
1232
|
+
}) => {
|
|
1233
|
+
const s = t ? "unfold_less" : "unfold_more";
|
|
1234
|
+
return o ? /* @__PURE__ */ e(
|
|
1235
|
+
ve,
|
|
1305
1236
|
{
|
|
1306
1237
|
"aria-controls": "prioritize-debts",
|
|
1307
1238
|
"aria-describedby": "prioritize-debts",
|
|
1308
1239
|
"aria-haspopup": !0,
|
|
1309
1240
|
"aria-label": "prioritize-debts",
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1241
|
+
disabled: n,
|
|
1242
|
+
onClick: a,
|
|
1243
|
+
startIcon: /* @__PURE__ */ e(ne, { name: s }),
|
|
1244
|
+
sx: { justifyContent: "start" },
|
|
1245
|
+
children: r
|
|
1314
1246
|
}
|
|
1315
1247
|
) : /* @__PURE__ */ e(
|
|
1316
|
-
|
|
1248
|
+
at,
|
|
1317
1249
|
{
|
|
1318
1250
|
"aria-controls": "prioritize-debts",
|
|
1319
1251
|
"aria-describedby": "prioritize-debts",
|
|
1320
1252
|
"aria-haspopup": !0,
|
|
1321
1253
|
"aria-label": "prioritize-debts",
|
|
1322
|
-
|
|
1323
|
-
|
|
1254
|
+
disabled: n,
|
|
1255
|
+
onClick: a,
|
|
1256
|
+
children: /* @__PURE__ */ e(ne, { name: s })
|
|
1324
1257
|
}
|
|
1325
1258
|
);
|
|
1326
|
-
},
|
|
1327
|
-
const { onEvent:
|
|
1259
|
+
}, Vt = C(({ buttonEl: r, onClose: n }) => {
|
|
1260
|
+
const { onEvent: o } = k(), { debts: t } = w(), { selectedDebtPriority: a, setSelectedDebtPriority: s } = P(), d = !!r, c = [
|
|
1328
1261
|
{
|
|
1329
|
-
priority:
|
|
1262
|
+
priority: F.FASTEST_PAYOFF_FIRST,
|
|
1330
1263
|
text: t.priority_sort_fastest_payoff
|
|
1331
1264
|
},
|
|
1332
1265
|
{
|
|
1333
|
-
priority:
|
|
1266
|
+
priority: F.HIGHEST_INTEREST,
|
|
1334
1267
|
text: t.priority_sort_highest_interest
|
|
1335
1268
|
},
|
|
1336
1269
|
{
|
|
1337
|
-
priority:
|
|
1270
|
+
priority: F.LOWEST_BALANCE,
|
|
1338
1271
|
text: t.priority_sort_lowest_balance
|
|
1339
1272
|
},
|
|
1340
1273
|
{
|
|
1341
|
-
priority:
|
|
1274
|
+
priority: F.HIGHEST_BALANCE,
|
|
1342
1275
|
text: t.priority_sort_highest_balance
|
|
1343
1276
|
}
|
|
1344
|
-
],
|
|
1345
|
-
|
|
1277
|
+
], m = (h) => {
|
|
1278
|
+
s(h), o(S.DEBTS_CLICK_PRIORITY, { debts_priority: h });
|
|
1346
1279
|
};
|
|
1347
1280
|
return /* @__PURE__ */ e(
|
|
1348
|
-
|
|
1281
|
+
lt,
|
|
1349
1282
|
{
|
|
1350
|
-
anchorEl:
|
|
1283
|
+
anchorEl: r,
|
|
1351
1284
|
anchorOrigin: {
|
|
1352
1285
|
vertical: "bottom",
|
|
1353
1286
|
horizontal: "left"
|
|
1354
1287
|
},
|
|
1355
1288
|
id: "prioritize-debts",
|
|
1356
|
-
onClose:
|
|
1289
|
+
onClose: n,
|
|
1357
1290
|
open: d,
|
|
1358
1291
|
transformOrigin: {
|
|
1359
1292
|
vertical: "top",
|
|
1360
1293
|
horizontal: "left"
|
|
1361
1294
|
},
|
|
1362
|
-
children: /* @__PURE__ */ e(
|
|
1363
|
-
|
|
1295
|
+
children: /* @__PURE__ */ e(we, { children: c.map(({ priority: h, text: b }) => /* @__PURE__ */ l(
|
|
1296
|
+
it,
|
|
1364
1297
|
{
|
|
1365
|
-
onClick: () =>
|
|
1298
|
+
onClick: () => m(h),
|
|
1366
1299
|
sx: {
|
|
1367
|
-
bgcolor:
|
|
1368
|
-
color:
|
|
1300
|
+
bgcolor: a === h ? "primary.main" : void 0,
|
|
1301
|
+
color: a === h ? "#fff" : void 0,
|
|
1369
1302
|
justifyContent: "space-between",
|
|
1370
1303
|
minHeight: 44,
|
|
1371
1304
|
minWidth: 268,
|
|
@@ -1378,180 +1311,187 @@ const kt = (a) => {
|
|
|
1378
1311
|
}
|
|
1379
1312
|
},
|
|
1380
1313
|
children: [
|
|
1381
|
-
/* @__PURE__ */ e(
|
|
1382
|
-
|
|
1314
|
+
/* @__PURE__ */ e(i, { color: "inherit", variant: "body2", children: b }),
|
|
1315
|
+
a === h && /* @__PURE__ */ e(Ce, { color: "inherit", filled: !0, fontSize: "small" })
|
|
1383
1316
|
]
|
|
1384
1317
|
},
|
|
1385
|
-
|
|
1318
|
+
h
|
|
1386
1319
|
)) })
|
|
1387
1320
|
}
|
|
1388
1321
|
);
|
|
1389
|
-
}),
|
|
1390
|
-
const { onEvent:
|
|
1391
|
-
|
|
1392
|
-
},
|
|
1393
|
-
|
|
1394
|
-
},
|
|
1395
|
-
[
|
|
1396
|
-
[
|
|
1397
|
-
[
|
|
1398
|
-
[
|
|
1399
|
-
})[
|
|
1400
|
-
return /* @__PURE__ */
|
|
1401
|
-
/* @__PURE__ */ e(
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
for (const p of t)
|
|
1410
|
-
i.push({
|
|
1411
|
-
...p,
|
|
1412
|
-
// Start with the initial balance
|
|
1413
|
-
dataset: [{ x: new Date(n), y: p.balance }]
|
|
1414
|
-
});
|
|
1415
|
-
for (; t.some((p) => p.balance >= 0.01 && !p.is_impossible); ) {
|
|
1416
|
-
let p = !1, m = !1, b = !1;
|
|
1417
|
-
for (const [w, h] of t.entries()) {
|
|
1418
|
-
if (h.balance <= 0.01) continue;
|
|
1419
|
-
const A = i[w].dataset, M = (h.interest_rate ?? 0) / 100 / 12, C = h.balance * M, I = h.monthly_payment ?? 0;
|
|
1420
|
-
let y = I, R = 0;
|
|
1421
|
-
!b && r > 0 && (y += r, b = !0), !m && d > 0 && (R = d, m = !0), h.balance += C;
|
|
1422
|
-
const u = Math.min(h.balance, y + R);
|
|
1423
|
-
if (u <= C) {
|
|
1424
|
-
h.is_impossible = !0, i[w].is_impossible = !0, i[w].priority = void 0, A.push({ x: new Date(n), y: h.balance });
|
|
1425
|
-
continue;
|
|
1322
|
+
}), Yt = C(({ disabled: r, isDesktop: n }) => {
|
|
1323
|
+
const { onEvent: o } = k(), { debts: t } = w(), { selectedDebtPriority: a } = P(), [s, d] = f.useState(null), c = (v) => {
|
|
1324
|
+
d(v.currentTarget), o(S.DEBTS_CLICK_PRIORITIZE);
|
|
1325
|
+
}, m = () => {
|
|
1326
|
+
d(null);
|
|
1327
|
+
}, h = !!s, b = f.useMemo(() => ({
|
|
1328
|
+
[F.FASTEST_PAYOFF_FIRST]: t.priority_sort_fastest_payoff,
|
|
1329
|
+
[F.HIGHEST_INTEREST]: t.priority_sort_highest_interest,
|
|
1330
|
+
[F.HIGHEST_BALANCE]: t.priority_sort_highest_balance,
|
|
1331
|
+
[F.LOWEST_BALANCE]: t.priority_sort_lowest_balance
|
|
1332
|
+
})[a] ?? t.priority_sort_lowest_balance, [a]);
|
|
1333
|
+
return /* @__PURE__ */ l(u, { children: [
|
|
1334
|
+
/* @__PURE__ */ e(
|
|
1335
|
+
jt,
|
|
1336
|
+
{
|
|
1337
|
+
buttonText: b,
|
|
1338
|
+
disabled: r,
|
|
1339
|
+
isDesktop: n,
|
|
1340
|
+
isOpen: h,
|
|
1341
|
+
onClick: c
|
|
1426
1342
|
}
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
p && n.setMonth(n.getMonth() + 1);
|
|
1435
|
-
}
|
|
1436
|
-
return i.forEach((p) => {
|
|
1437
|
-
(p.interest_rate === void 0 || p.monthly_payment === void 0) && (p.projected_payoff_date = void 0);
|
|
1438
|
-
}), i.forEach((p) => {
|
|
1439
|
-
p.priority = !p.is_paid_off && !p.is_impossible ? c++ : void 0;
|
|
1440
|
-
}), i;
|
|
1441
|
-
}, Gt = v(({ onClick: a }) => {
|
|
1442
|
-
const { debts: o } = S(), { isDesktop: r } = K(), { totalMonthlyPayments: t } = Z(), { monthlyCashFlowProfile: n } = Y(), i = t + Number(n?.extra_payment), d = r ? o.paydown_button_long : o.paydown_button_short;
|
|
1443
|
-
return /* @__PURE__ */ e(
|
|
1444
|
-
xe,
|
|
1343
|
+
),
|
|
1344
|
+
/* @__PURE__ */ e(Vt, { buttonEl: s, onClose: m })
|
|
1345
|
+
] });
|
|
1346
|
+
}), Kt = C(({ disabled: r, onClick: n }) => {
|
|
1347
|
+
const { debts: o } = w(), { totalMonthlyPayments: t } = ee(), { monthlyCashFlowProfile: a } = V(), s = t + Number(a?.extra_payment), d = o.paydown_button_long;
|
|
1348
|
+
return /* @__PURE__ */ e(y, { alignItems: "center", sx: { flex: 1, flexShrink: 0 }, children: /* @__PURE__ */ e(
|
|
1349
|
+
ve,
|
|
1445
1350
|
{
|
|
1446
1351
|
"aria-controls": "extra-paydown",
|
|
1447
1352
|
"aria-describedby": "extra-paydown",
|
|
1448
1353
|
"aria-haspopup": !0,
|
|
1449
1354
|
"aria-label": "extra-paydown",
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1355
|
+
disabled: r,
|
|
1356
|
+
onClick: n,
|
|
1357
|
+
sx: { justifyContent: "start" },
|
|
1358
|
+
children: T(d, I(s, "0,0"))
|
|
1453
1359
|
}
|
|
1454
|
-
);
|
|
1455
|
-
}),
|
|
1456
|
-
const { isDesktop:
|
|
1457
|
-
|
|
1360
|
+
) });
|
|
1361
|
+
}), Ut = ({ onBackClick: r, onMenuClick: n, sx: o }) => {
|
|
1362
|
+
const { isDesktop: t, isMobile: a } = ae(), { connect: s, debts: d } = w(), { onEvent: c } = k(), {
|
|
1363
|
+
config: { show_connections_widget_in_master: m }
|
|
1364
|
+
} = He(), { isInitialized: h } = ze(), { setSelectedAccount: b } = Ve(), { selectedDebtPriority: v, setSelectedDebtChartData: x } = P(), {
|
|
1365
|
+
isAccountDataLoaded: $,
|
|
1366
|
+
loadAccountData: L,
|
|
1367
|
+
detailedAccounts: N,
|
|
1368
|
+
visibleDebtAccounts: A
|
|
1369
|
+
} = te(), { isAllGoalDataLoaded: E, loadGoalData: Y, monthlyCashFlowProfile: _ } = V(), { debts: p } = ee(), [g, D] = f.useState(!1), [M, B] = f.useState(!1), [K, ce] = f.useState(!1), [U, Se] = f.useState(""), [Ae, de] = f.useState(!1);
|
|
1370
|
+
st({
|
|
1458
1371
|
widgetName: "DebtsWidget",
|
|
1459
|
-
isLoaded:
|
|
1372
|
+
isLoaded: E
|
|
1460
1373
|
});
|
|
1461
|
-
const
|
|
1462
|
-
const
|
|
1463
|
-
return
|
|
1464
|
-
}, [
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
}, []),
|
|
1468
|
-
|
|
1469
|
-
}, [
|
|
1470
|
-
const
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1473
|
-
},
|
|
1474
|
-
|
|
1475
|
-
},
|
|
1476
|
-
|
|
1374
|
+
const q = f.useMemo(() => {
|
|
1375
|
+
const O = _?.extra_payment ?? 0;
|
|
1376
|
+
return $e(p, v, O);
|
|
1377
|
+
}, [p, v, _]);
|
|
1378
|
+
f.useEffect(() => {
|
|
1379
|
+
$ || L().finally(), c(S.DEBTS_VIEW);
|
|
1380
|
+
}, []), f.useEffect(() => {
|
|
1381
|
+
h && Y().finally();
|
|
1382
|
+
}, [h]);
|
|
1383
|
+
const pe = (O) => Se(O), ue = () => {
|
|
1384
|
+
const O = A.find((oe) => oe.guid === U), he = q.find((oe) => oe.guid === U);
|
|
1385
|
+
O && b(O), he && x(he), D(!0);
|
|
1386
|
+
}, Te = () => c(S.DEBTS_CLICK_FILTER), Ee = () => {
|
|
1387
|
+
ce(!0), c(S.DEBTS_CLICK_SNOWBALL_CTA);
|
|
1388
|
+
}, Ie = () => {
|
|
1389
|
+
B(!0), c(S.DEBTS_CLICK_PAYDOWN);
|
|
1477
1390
|
};
|
|
1478
|
-
|
|
1479
|
-
|
|
1391
|
+
if (!h || !E)
|
|
1392
|
+
return /* @__PURE__ */ e(ct, {});
|
|
1393
|
+
const Me = N.length === 0, ke = A.length === 0, Ne = p.length === 0, X = Me || ke || Ne, Z = Oe(
|
|
1394
|
+
d,
|
|
1395
|
+
m,
|
|
1396
|
+
() => de(!0)
|
|
1397
|
+
);
|
|
1398
|
+
return /* @__PURE__ */ l(
|
|
1399
|
+
dt,
|
|
1480
1400
|
{
|
|
1481
|
-
actions: [
|
|
1482
|
-
/* @__PURE__ */ e(Ot, {}, "prioritize-debts"),
|
|
1483
|
-
/* @__PURE__ */ e(Gt, { onClick: De }, "extra-paydown")
|
|
1484
|
-
],
|
|
1401
|
+
actions: [/* @__PURE__ */ e(Yt, { disabled: X }, "prioritize-debts")],
|
|
1485
1402
|
allowedAccountTypes: [
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1403
|
+
z.CREDIT_CARD,
|
|
1404
|
+
z.LOAN,
|
|
1405
|
+
z.MORTGAGE,
|
|
1406
|
+
z.LINE_OF_CREDIT,
|
|
1407
|
+
z.CHECKING_LINE_OF_CREDIT
|
|
1491
1408
|
],
|
|
1492
|
-
|
|
1493
|
-
|
|
1409
|
+
hasDivider: !0,
|
|
1410
|
+
onAccountsFilterClick: Te,
|
|
1411
|
+
onBackClick: r,
|
|
1412
|
+
onMenuClick: n,
|
|
1413
|
+
slotComponent: /* @__PURE__ */ e(Kt, { disabled: X, onClick: Ie }, "extra-paydown"),
|
|
1494
1414
|
sx: o,
|
|
1495
|
-
title:
|
|
1415
|
+
title: d.title,
|
|
1496
1416
|
children: [
|
|
1497
|
-
/* @__PURE__ */
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
|
|
1417
|
+
/* @__PURE__ */ l(y, { sx: { pt: 48, px: t ? "48px" : "24px" }, children: [
|
|
1418
|
+
X && /* @__PURE__ */ e(
|
|
1419
|
+
pt,
|
|
1500
1420
|
{
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
/* @__PURE__ */ e(
|
|
1508
|
-
Ce,
|
|
1509
|
-
{
|
|
1510
|
-
debts: H,
|
|
1511
|
-
height: t ? 250 : void 0,
|
|
1512
|
-
hoveredDebtGuid: P,
|
|
1513
|
-
onClickArea: ie,
|
|
1514
|
-
onHoverArea: ne,
|
|
1515
|
-
sx: { mr: t ? "4px" : "-48px" }
|
|
1516
|
-
}
|
|
1517
|
-
),
|
|
1518
|
-
/* @__PURE__ */ e(
|
|
1519
|
-
st,
|
|
1520
|
-
{
|
|
1521
|
-
debts: H,
|
|
1522
|
-
onClickCta: ve,
|
|
1523
|
-
sx: { mb: t ? "0px" : "64px" }
|
|
1524
|
-
}
|
|
1525
|
-
)
|
|
1526
|
-
]
|
|
1421
|
+
header: Z.header,
|
|
1422
|
+
icon: "note_stack",
|
|
1423
|
+
onClick: Z.onClickHandler,
|
|
1424
|
+
primaryButton: Z.primaryButton,
|
|
1425
|
+
subText: Z.description,
|
|
1426
|
+
sx: { maxWidth: 400 }
|
|
1527
1427
|
}
|
|
1528
1428
|
),
|
|
1529
|
-
/* @__PURE__ */
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1429
|
+
!X && /* @__PURE__ */ l(R, { children: [
|
|
1430
|
+
/* @__PURE__ */ l(
|
|
1431
|
+
y,
|
|
1432
|
+
{
|
|
1433
|
+
sx: {
|
|
1434
|
+
alignItems: a ? "flex-start" : "flex-end",
|
|
1435
|
+
flexDirection: a ? "column" : "row",
|
|
1436
|
+
mx: a ? "-12px" : 0
|
|
1437
|
+
},
|
|
1438
|
+
children: [
|
|
1439
|
+
/* @__PURE__ */ e(
|
|
1440
|
+
De,
|
|
1441
|
+
{
|
|
1442
|
+
debts: q,
|
|
1443
|
+
height: a ? 250 : void 0,
|
|
1444
|
+
hoveredDebtGuid: U,
|
|
1445
|
+
onClickArea: ue,
|
|
1446
|
+
onHoverArea: pe,
|
|
1447
|
+
sx: { mr: a ? "4px" : "-48px" }
|
|
1448
|
+
}
|
|
1449
|
+
),
|
|
1450
|
+
/* @__PURE__ */ e(
|
|
1451
|
+
mt,
|
|
1452
|
+
{
|
|
1453
|
+
debts: q,
|
|
1454
|
+
onClickCta: Ee,
|
|
1455
|
+
sx: { mb: a ? "0px" : "64px" }
|
|
1456
|
+
}
|
|
1457
|
+
)
|
|
1458
|
+
]
|
|
1459
|
+
}
|
|
1460
|
+
),
|
|
1461
|
+
/* @__PURE__ */ e(y, { sx: { mx: a ? "-24px" : 0 }, children: /* @__PURE__ */ e(
|
|
1462
|
+
zt,
|
|
1463
|
+
{
|
|
1464
|
+
debts: q,
|
|
1465
|
+
hoveredDebtGuid: U,
|
|
1466
|
+
onClickRow: ue,
|
|
1467
|
+
onHoverRow: pe
|
|
1468
|
+
}
|
|
1469
|
+
) })
|
|
1470
|
+
] })
|
|
1538
1471
|
] }),
|
|
1539
1472
|
/* @__PURE__ */ e(
|
|
1540
|
-
|
|
1473
|
+
yt,
|
|
1541
1474
|
{
|
|
1542
|
-
isOpen:
|
|
1543
|
-
onClose: () =>
|
|
1475
|
+
isOpen: K,
|
|
1476
|
+
onClose: () => ce(!1)
|
|
1544
1477
|
}
|
|
1545
1478
|
),
|
|
1546
|
-
/* @__PURE__ */ e(
|
|
1547
|
-
/* @__PURE__ */ e(
|
|
1479
|
+
/* @__PURE__ */ e(Bt, { isOpen: g, onClose: () => D(!1) }),
|
|
1480
|
+
/* @__PURE__ */ e(Ft, { isOpen: M, onClose: () => B(!1) }),
|
|
1481
|
+
/* @__PURE__ */ e(
|
|
1482
|
+
ut,
|
|
1483
|
+
{
|
|
1484
|
+
onClose: () => de(!1),
|
|
1485
|
+
showConnectWidget: Ae,
|
|
1486
|
+
title: s.mini_title
|
|
1487
|
+
}
|
|
1488
|
+
)
|
|
1548
1489
|
]
|
|
1549
1490
|
}
|
|
1550
1491
|
);
|
|
1551
|
-
},
|
|
1492
|
+
}, Hr = C(Ut);
|
|
1552
1493
|
export {
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
Fr as DebtsWidget
|
|
1494
|
+
De as DebtsChart,
|
|
1495
|
+
zt as DebtsTable,
|
|
1496
|
+
Hr as DebtsWidget
|
|
1557
1497
|
};
|