@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/goals/index.es.js
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { jsxs as i, jsx as e, Fragment as H } from "react/jsx-runtime";
|
|
4
|
-
import A from "react";
|
|
1
|
+
import { jsxs as c, jsx as e, Fragment as F } from "react/jsx-runtime";
|
|
2
|
+
import T from "react";
|
|
5
3
|
import { observer as D } from "mobx-react-lite";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import Te from "@
|
|
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
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import { f as
|
|
37
|
-
import
|
|
38
|
-
import { g as
|
|
4
|
+
import Pe from "@mui/material/Alert";
|
|
5
|
+
import je from "@mui/material/Snackbar";
|
|
6
|
+
import f from "@mui/material/Stack";
|
|
7
|
+
import re from "@mui/material/Tab";
|
|
8
|
+
import Fe from "@mui/material/Tabs";
|
|
9
|
+
import { b as B } from "../Localization-DnoVyBNK.mjs";
|
|
10
|
+
import { f as I } from "../NumberFormatting--XMeeBfr.mjs";
|
|
11
|
+
import { Text as C, H3 as le, P as Y, Icon as $e, InstitutionLogo as X, H2 as Te } from "@mxenabled/mxui";
|
|
12
|
+
import me from "@mui/material/Button";
|
|
13
|
+
import Ce from "@mui/material/Card";
|
|
14
|
+
import Re from "@mui/material/CardActionArea";
|
|
15
|
+
import xe from "@mui/material/CardContent";
|
|
16
|
+
import ge from "@mui/material/Grid";
|
|
17
|
+
import te from "@mui/material/Avatar";
|
|
18
|
+
import He from "@mui/material/CardHeader";
|
|
19
|
+
import { Payments as Ee, NoteStack as Se, Person as ve, ArrowUpwardAlt as Ue, CheckCircle as Ye, ChevronRight as z, Icon as ye, ExpandLess as Ze, ExpandMore as qe, AddBox as Ie, Trophy as Je } from "@mxenabled/mx-icons";
|
|
20
|
+
import { g as ue, T as r, G as de, a as Qe, M as U, b as Xe } from "../GoalsUtil-C9EnLWvC.mjs";
|
|
21
|
+
import { u as x, k as N, b as _e, a as pe, d as j, C as Ge, g as Ne } from "../hooks-BaO_gOI6.mjs";
|
|
22
|
+
import { u as he } from "../useScreenSize-mWpmnh5w.mjs";
|
|
23
|
+
import { S as et } from "../StatusBar-CPfSXe80.mjs";
|
|
24
|
+
import v from "@mui/material/Divider";
|
|
25
|
+
import O from "@mui/material/List";
|
|
26
|
+
import { L as Z } from "../ListItemAction-CwspSmQi.mjs";
|
|
27
|
+
import { C as ke } from "../CurrencyInput-adTIRtL3.mjs";
|
|
28
|
+
import { fromUnixTime as ee } from "date-fns/fromUnixTime";
|
|
29
|
+
import tt from "@mui/material/IconButton";
|
|
30
|
+
import k from "@mui/material/ListItem";
|
|
31
|
+
import P from "@mui/material/ListItemAvatar";
|
|
32
|
+
import L from "@mui/material/ListItemButton";
|
|
33
|
+
import w from "@mui/material/ListItemText";
|
|
34
|
+
import { f as be, D as fe } from "../DateFormats-HudZ3Bjs.mjs";
|
|
35
|
+
import { D as q } from "../Drawer-BXqqBMxg.mjs";
|
|
36
|
+
import { g as we } from "../AccountDisplayName-CO7z3v99.mjs";
|
|
39
37
|
import nt from "@mui/material/Collapse";
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import {
|
|
38
|
+
import ot from "@mui/material/ListItemIcon";
|
|
39
|
+
import at from "@mui/material/Checkbox";
|
|
40
|
+
import { C as De } from "../ConnectCard-CCep7Zqe.mjs";
|
|
41
|
+
import { A as Ae } from "../Account-BaJmiJAG.mjs";
|
|
42
|
+
import { u as it } from "../useAccountDisplayName-CFa_MrS6.mjs";
|
|
43
|
+
import Ke from "@mui/material/TextField";
|
|
44
|
+
import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-CkJPnp2c.mjs";
|
|
45
|
+
import { getUnixTime as lt } from "date-fns/getUnixTime";
|
|
47
46
|
import { isValid as dt } from "date-fns/isValid";
|
|
48
47
|
import { AdapterDateFns as mt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
49
|
-
import { DatePicker as
|
|
50
|
-
import { LocalizationProvider as
|
|
51
|
-
import {
|
|
52
|
-
import { u as Me } from "../useWidgetLoadTimer-
|
|
53
|
-
import { A as
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
/* @__PURE__ */ e(
|
|
48
|
+
import { DatePicker as ut } from "@mui/x-date-pickers";
|
|
49
|
+
import { LocalizationProvider as _t } from "@mui/x-date-pickers/LocalizationProvider";
|
|
50
|
+
import { D as pt } from "../Dialog-CwWc0AbH.mjs";
|
|
51
|
+
import { u as Me } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
52
|
+
import { A as $ } from "../Analytics-CzGzz_sE.mjs";
|
|
53
|
+
import { L as Le } from "../Loader-CxeBwuPG.mjs";
|
|
54
|
+
import { W as ht } from "../WidgetContainer-DNuz_s7W.mjs";
|
|
55
|
+
import { E as bt } from "../EmptyState-CJUDc3kD.mjs";
|
|
56
|
+
import ft from "@mui/material/Box";
|
|
57
|
+
import { useTheme as gt } from "@mui/material/styles";
|
|
58
|
+
import { S as yt } from "../SingleSegmentDonut-7Uy6VEld.mjs";
|
|
59
|
+
import { M as At } from "../MicroWidgetContainer-CfKdQfhi.mjs";
|
|
60
|
+
function se({ title: t, subtitle: n }) {
|
|
61
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
62
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t }),
|
|
63
|
+
/* @__PURE__ */ e(C, { sx: { fontWeight: 400 }, variant: "body1", children: n })
|
|
64
64
|
] });
|
|
65
65
|
}
|
|
66
|
-
const Tt = (t, n) => n ?
|
|
66
|
+
const Tt = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
67
67
|
/(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
|
|
68
68
|
"$1$2$3"
|
|
69
|
-
) :
|
|
70
|
-
({ goal: t, isInDrawer: n = !1, onClick:
|
|
71
|
-
const { goals:
|
|
72
|
-
backgroundColor:
|
|
73
|
-
color:
|
|
74
|
-
percentage:
|
|
75
|
-
percentageText:
|
|
76
|
-
projectedText:
|
|
77
|
-
} =
|
|
69
|
+
) : I(t, "0,0.00"), Oe = D(
|
|
70
|
+
({ goal: t, isInDrawer: n = !1, onClick: u }) => {
|
|
71
|
+
const { goals: d } = x(), { isMobile: _, isTablet: i } = he(), m = _ || i, {
|
|
72
|
+
backgroundColor: p,
|
|
73
|
+
color: s,
|
|
74
|
+
percentage: h,
|
|
75
|
+
percentageText: a,
|
|
76
|
+
projectedText: o
|
|
77
|
+
} = ue(d, t), b = t.track_type === r.DEBT_TRACK ? t.initial_amount : t.amount, l = [
|
|
78
78
|
{
|
|
79
|
-
color:
|
|
80
|
-
percentage: `${
|
|
79
|
+
color: p,
|
|
80
|
+
percentage: `${h}`
|
|
81
81
|
}
|
|
82
82
|
];
|
|
83
|
-
let y = /* @__PURE__ */ e(
|
|
84
|
-
return t.track_type ===
|
|
85
|
-
|
|
83
|
+
let y = /* @__PURE__ */ e(Ee, {});
|
|
84
|
+
return t.track_type === r.DEBT_TRACK ? y = /* @__PURE__ */ e(Se, {}) : t.track_type === r.RETIREMENT_TRACK && (y = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
|
|
85
|
+
Ce,
|
|
86
86
|
{
|
|
87
87
|
elevation: 2,
|
|
88
88
|
sx: {
|
|
@@ -91,23 +91,46 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
91
91
|
outlineColor: "primary.main"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
-
children: /* @__PURE__ */
|
|
94
|
+
children: /* @__PURE__ */ c(Re, { disabled: !u, onClick: u, children: [
|
|
95
95
|
/* @__PURE__ */ e(
|
|
96
|
-
|
|
96
|
+
He,
|
|
97
97
|
{
|
|
98
|
-
avatar: /* @__PURE__ */ e(
|
|
99
|
-
subheader: /* @__PURE__ */ e(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
98
|
+
avatar: /* @__PURE__ */ e(te, { sx: { bgcolor: p, color: s, height: 48, width: 48 }, variant: "rounded", children: y }),
|
|
99
|
+
subheader: /* @__PURE__ */ e(
|
|
100
|
+
C,
|
|
101
|
+
{
|
|
102
|
+
sx: {
|
|
103
|
+
fontWeight: 700,
|
|
104
|
+
fontSize: n || m ? "18px" : "23px",
|
|
105
|
+
lineHeight: n || m ? "24px" : "32px"
|
|
106
|
+
},
|
|
107
|
+
children: `${I(t.current_amount, m ? "0,0" : "0,0.00")} / ${Tt(
|
|
108
|
+
b,
|
|
109
|
+
m
|
|
110
|
+
)}`
|
|
111
|
+
}
|
|
112
|
+
),
|
|
113
|
+
sx: { alignItems: "flex-start", "& .MuiCardHeader-content": { minWidth: 0 } },
|
|
114
|
+
title: /* @__PURE__ */ e(
|
|
115
|
+
C,
|
|
116
|
+
{
|
|
117
|
+
color: "text.secondary",
|
|
118
|
+
fontWeight: 400,
|
|
119
|
+
sx: {
|
|
120
|
+
fontSize: "15px",
|
|
121
|
+
lineHeight: "20px"
|
|
122
|
+
},
|
|
123
|
+
variant: "h4",
|
|
124
|
+
children: t.name
|
|
125
|
+
}
|
|
126
|
+
)
|
|
104
127
|
}
|
|
105
128
|
),
|
|
106
|
-
/* @__PURE__ */ e(
|
|
107
|
-
/* @__PURE__ */ e(
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */ e(
|
|
110
|
-
t.projected_to_complete_at && /* @__PURE__ */ e(
|
|
129
|
+
/* @__PURE__ */ e(xe, { sx: { pt: 0 }, children: /* @__PURE__ */ c(f, { gap: 6, children: [
|
|
130
|
+
/* @__PURE__ */ e(et, { data: l, height: 24 }),
|
|
131
|
+
/* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
132
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: a }),
|
|
133
|
+
t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: o })
|
|
111
134
|
] })
|
|
112
135
|
] }) })
|
|
113
136
|
] })
|
|
@@ -115,244 +138,150 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
115
138
|
);
|
|
116
139
|
}
|
|
117
140
|
), Ct = D(({ trackType: t }) => {
|
|
118
|
-
const { goals: n } =
|
|
119
|
-
let
|
|
120
|
-
return t ===
|
|
121
|
-
}, [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}, [
|
|
125
|
-
const [
|
|
126
|
-
if (
|
|
127
|
-
const
|
|
128
|
-
t ===
|
|
141
|
+
const { goals: n } = x(), { setAlert: u, monthlyCashFlowProfile: d, updateMonthlyCashFlowProfile: _ } = N(), i = T.useMemo(() => {
|
|
142
|
+
let a = 0;
|
|
143
|
+
return t === r.SAVINGS_TRACK ? a = d?.amount_allocated_for_savings_goals || 0 : t === r.DEBT_TRACK ? a = d?.amount_allocated_for_debt_goals || 0 : t === r.RETIREMENT_TRACK && (a = d?.amount_allocated_for_retirement_goals || 0), a;
|
|
144
|
+
}, [d]);
|
|
145
|
+
T.useEffect(() => {
|
|
146
|
+
p(i);
|
|
147
|
+
}, [i]);
|
|
148
|
+
const [m, p] = T.useState(i), s = m < 0 || m > 99999999, h = async () => {
|
|
149
|
+
if (d) {
|
|
150
|
+
const a = { ...d };
|
|
151
|
+
t === r.SAVINGS_TRACK ? a.amount_allocated_for_savings_goals = m : t === r.DEBT_TRACK ? a.amount_allocated_for_debt_goals = m : t === r.RETIREMENT_TRACK && (a.amount_allocated_for_retirement_goals = m), await _(a), u(n.alert_contribution_updated);
|
|
129
152
|
}
|
|
130
153
|
};
|
|
131
|
-
return /* @__PURE__ */ e(
|
|
132
|
-
|
|
154
|
+
return /* @__PURE__ */ e(f, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
|
|
155
|
+
Z,
|
|
133
156
|
{
|
|
134
|
-
isSaveDisabled: !
|
|
157
|
+
isSaveDisabled: !m || isNaN(m),
|
|
135
158
|
label: n.contribution_label,
|
|
136
|
-
onCancel: () =>
|
|
137
|
-
onSave:
|
|
159
|
+
onCancel: () => p(i),
|
|
160
|
+
onSave: h,
|
|
138
161
|
primaryText: n.contribution_label,
|
|
139
|
-
secondaryText:
|
|
162
|
+
secondaryText: I(i, "0,0.00"),
|
|
140
163
|
children: /* @__PURE__ */ e(
|
|
141
|
-
|
|
164
|
+
ke,
|
|
142
165
|
{
|
|
143
|
-
amount:
|
|
166
|
+
amount: m,
|
|
144
167
|
autoFocus: !0,
|
|
145
|
-
error:
|
|
168
|
+
error: s,
|
|
146
169
|
fullWidth: !0,
|
|
147
170
|
minAmount: 0,
|
|
148
|
-
setAmount: (
|
|
149
|
-
sx: { ".MuiTypography-
|
|
171
|
+
setAmount: (a) => p(isNaN(Number(a)) ? m : Number(a)),
|
|
172
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
150
173
|
}
|
|
151
174
|
)
|
|
152
175
|
}
|
|
153
176
|
) });
|
|
154
|
-
}),
|
|
155
|
-
const { goals:
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}, [l]);
|
|
159
|
-
const a = [
|
|
177
|
+
}), Rt = ({ goal: t, index: n, onUpClick: u }) => {
|
|
178
|
+
const { goals: d } = x(), { percentage: _ } = ue(d, t), i = t.goal_type === de.KEEP_BALANCE_BELOW || t.has_been_spent ? d.goal_completed : B(d.goal_percentage_reached, `${_ * 100}`);
|
|
179
|
+
return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
|
|
180
|
+
L,
|
|
160
181
|
{
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
182
|
+
disableRipple: !0,
|
|
183
|
+
sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
|
|
184
|
+
children: [
|
|
185
|
+
t.track_type !== r.RETIREMENT_TRACK && /* @__PURE__ */ e(
|
|
186
|
+
P,
|
|
187
|
+
{
|
|
188
|
+
sx: {
|
|
189
|
+
alignItems: "center",
|
|
190
|
+
display: "flex",
|
|
191
|
+
justifyContent: "center",
|
|
192
|
+
".MuiAvatar-root": { height: "16px", width: "16px" }
|
|
193
|
+
},
|
|
194
|
+
children: t.track_type === r.SAVINGS_TRACK ? /* @__PURE__ */ e(tt, { onClick: () => u?.(t), children: /* @__PURE__ */ e(Ue, { color: "primary", size: 24 }) }) : /* @__PURE__ */ e(te, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(C, { bold: !0, variant: "caption", children: n + 1 }) })
|
|
195
|
+
}
|
|
196
|
+
),
|
|
197
|
+
/* @__PURE__ */ e(w, { slotProps: { primary: { variant: "body1" } }, children: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
198
|
+
/* @__PURE__ */ c(f, { sx: { maxWidth: "70%" }, children: [
|
|
199
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.name }),
|
|
200
|
+
/* @__PURE__ */ e(C, { variant: "caption", children: t.is_complete ? i : B(
|
|
201
|
+
d.goal_projection,
|
|
202
|
+
be(
|
|
203
|
+
ee(t.projected_to_complete_at || 0),
|
|
204
|
+
fe.MONTH_SHORT_YEAR
|
|
205
|
+
)
|
|
206
|
+
) })
|
|
207
|
+
] }),
|
|
208
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(t.amount, "0,0.00") })
|
|
209
|
+
] }) })
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
) });
|
|
213
|
+
}, xt = ({ goal: t }) => {
|
|
214
|
+
const { goals: n } = x();
|
|
215
|
+
return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
|
|
216
|
+
L,
|
|
178
217
|
{
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
218
|
+
disableRipple: !0,
|
|
219
|
+
sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ye, { color: "success", filled: !0, size: 20 }) }),
|
|
222
|
+
/* @__PURE__ */ e(w, { slotProps: { primary: { variant: "body1" } }, children: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
223
|
+
/* @__PURE__ */ c(f, { children: [
|
|
224
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.name }),
|
|
225
|
+
/* @__PURE__ */ e(C, { variant: "caption", children: B(
|
|
226
|
+
n.completed_label,
|
|
227
|
+
be(
|
|
228
|
+
ee(t.completed_at || 0),
|
|
229
|
+
fe.MONTH_SHORT_YEAR
|
|
230
|
+
)
|
|
231
|
+
) })
|
|
232
|
+
] }),
|
|
233
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(t.amount, "0,0.00") })
|
|
234
|
+
] }) })
|
|
235
|
+
]
|
|
187
236
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
)
|
|
205
|
-
);
|
|
206
|
-
}, y = async () => {
|
|
207
|
-
await m(b), h(n.alert_goals_reordered), p(!1);
|
|
237
|
+
) }, t.guid);
|
|
238
|
+
}, Et = ({ trackType: t }) => {
|
|
239
|
+
const { goals: n, common: u } = x(), { loadGoals: d, orderedGoals: _, reorderGoals: i } = N(), m = _.filter((g) => g.track_type === t), p = m.filter(
|
|
240
|
+
(g) => g.track_type === r.SAVINGS_TRACK && !g.has_been_spent || g.track_type !== r.SAVINGS_TRACK && !g.is_complete
|
|
241
|
+
), s = m.filter(
|
|
242
|
+
(g) => g.track_type === r.SAVINGS_TRACK && g.has_been_spent || g.track_type !== r.SAVINGS_TRACK && g.is_complete
|
|
243
|
+
), [h, a] = T.useState(!1);
|
|
244
|
+
let o = n.manage_saving_goals, b = n.manage_saving_drawer_title, l = n.manage_saving_title, y = n.manage_saving_description;
|
|
245
|
+
t === r.DEBT_TRACK ? (o = n.manage_debt_goals, b = n.manage_debt_drawer_title, l = n.manage_debt_title, y = n.manage_debt_description) : t === r.RETIREMENT_TRACK && (o = n.manage_retirement_goals, b = n.manage_retirement_drawer_title, l = n.manage_retirement_title, y = n.manage_retirement_description);
|
|
246
|
+
const E = async (g) => {
|
|
247
|
+
const A = [...p], R = A.findIndex((K) => K.guid === g.guid);
|
|
248
|
+
let G = R - 1;
|
|
249
|
+
G < 0 && (G = A.length - 1), A.splice(G, 0, A.splice(R, 1)[0]);
|
|
250
|
+
for (let K = 0; K < A.length; K++)
|
|
251
|
+
A[K].position = K + 1;
|
|
252
|
+
await i(A), await d();
|
|
208
253
|
};
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */ e(
|
|
211
|
-
g,
|
|
212
|
-
{
|
|
213
|
-
alignItems: "center",
|
|
214
|
-
color: "action.active",
|
|
215
|
-
direction: "row",
|
|
216
|
-
justifyContent: "space-between",
|
|
217
|
-
children: [
|
|
218
|
-
/* @__PURE__ */ e(T, { color: "primary.light", variant: "Body", children: n.reorder_goals_title }),
|
|
219
|
-
/* @__PURE__ */ e(O, { color: "primary" })
|
|
220
|
-
]
|
|
221
|
-
}
|
|
222
|
-
) }) }) }),
|
|
223
|
-
/* @__PURE__ */ e(
|
|
224
|
-
X,
|
|
225
|
-
{
|
|
226
|
-
ariaLabelClose: c.close_aria,
|
|
227
|
-
isOpen: l,
|
|
228
|
-
onClose: () => p(!1),
|
|
229
|
-
onPrimaryAction: y,
|
|
230
|
-
title: n.reorder_goals_title,
|
|
231
|
-
children: /* @__PURE__ */ i(g, { children: [
|
|
232
|
-
d,
|
|
233
|
-
/* @__PURE__ */ e(P, { id: "reorder-instructions", sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
|
|
234
|
-
/* @__PURE__ */ e(
|
|
235
|
-
Qe,
|
|
236
|
-
{
|
|
237
|
-
"aria-describedby": "reorder-instructions",
|
|
238
|
-
columnHeaderHeight: 0,
|
|
239
|
-
columns: a,
|
|
240
|
-
disableColumnFilter: !0,
|
|
241
|
-
disableColumnMenu: !0,
|
|
242
|
-
hideFooter: !0,
|
|
243
|
-
onRowOrderChange: _,
|
|
244
|
-
rowReordering: !0,
|
|
245
|
-
rows: u,
|
|
246
|
-
slots: {
|
|
247
|
-
rowReorderIcon: () => /* @__PURE__ */ e(Xe, { "aria-label": n.reorder_goals_drag_aria_label, sx: { ml: 12 } })
|
|
248
|
-
},
|
|
249
|
-
sx: {
|
|
250
|
-
"& .MuiDataGrid-columnHeaders": {
|
|
251
|
-
borderBottomWidth: 0
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
)
|
|
256
|
-
] })
|
|
257
|
-
}
|
|
258
|
-
)
|
|
259
|
-
] });
|
|
260
|
-
}, Rt = ({ goal: t, index: n }) => {
|
|
261
|
-
const { goals: c } = R(), { percentage: m } = _e(c, t), h = t.goal_type === de.KEEP_BALANCE_BELOW || t.has_been_spent ? c.goal_completed : M(c.goal_percentage_reached, `${m * 100}`);
|
|
262
|
-
return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(K, { children: [
|
|
263
|
-
t.track_type !== s.RETIREMENT_TRACK && /* @__PURE__ */ e(
|
|
264
|
-
V,
|
|
265
|
-
{
|
|
266
|
-
sx: {
|
|
267
|
-
alignItems: "center",
|
|
268
|
-
display: "flex",
|
|
269
|
-
justifyContent: "center",
|
|
270
|
-
".MuiAvatar-root": { height: "16px", width: "16px" }
|
|
271
|
-
},
|
|
272
|
-
children: /* @__PURE__ */ e(ne, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(T, { bold: !0, variant: "XSmall", children: n + 1 }) })
|
|
273
|
-
}
|
|
274
|
-
),
|
|
275
|
-
/* @__PURE__ */ e(k, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
276
|
-
/* @__PURE__ */ i(g, { children: [
|
|
277
|
-
/* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.name }),
|
|
278
|
-
/* @__PURE__ */ e(T, { variant: "XSmall", children: t.is_complete ? h : M(
|
|
279
|
-
c.goal_projection,
|
|
280
|
-
ae(
|
|
281
|
-
q(t.projected_to_complete_at || 0),
|
|
282
|
-
oe.MONTH_SHORT_YEAR
|
|
283
|
-
)
|
|
284
|
-
) })
|
|
285
|
-
] }),
|
|
286
|
-
/* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: v(t.amount, "0,0.00") })
|
|
287
|
-
] }) })
|
|
288
|
-
] }) });
|
|
289
|
-
}, Et = ({ goal: t }) => {
|
|
290
|
-
const { goals: n } = R();
|
|
291
|
-
return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ i(K, { children: [
|
|
292
|
-
/* @__PURE__ */ e(V, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ue, { color: "success", filled: !0, size: 20 }) }),
|
|
293
|
-
/* @__PURE__ */ e(k, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ i(g, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
294
|
-
/* @__PURE__ */ i(g, { children: [
|
|
295
|
-
/* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.name }),
|
|
296
|
-
/* @__PURE__ */ e(T, { variant: "XSmall", children: M(
|
|
297
|
-
n.completed_label,
|
|
298
|
-
ae(
|
|
299
|
-
q(t.completed_at || 0),
|
|
300
|
-
oe.MONTH_SHORT_YEAR
|
|
301
|
-
)
|
|
302
|
-
) })
|
|
303
|
-
] }),
|
|
304
|
-
/* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: v(t.amount, "0,0.00") })
|
|
305
|
-
] }) })
|
|
306
|
-
] }) }, t.guid);
|
|
307
|
-
}, xt = ({ trackType: t }) => {
|
|
308
|
-
const { goals: n, common: c } = R(), { orderedGoals: m } = G(), h = m.filter((_) => _.track_type === t), r = h.filter(
|
|
309
|
-
(_) => _.track_type === s.SAVINGS_TRACK && !_.has_been_spent || _.track_type !== s.SAVINGS_TRACK && !_.is_complete
|
|
310
|
-
), d = h.filter(
|
|
311
|
-
(_) => _.track_type === s.SAVINGS_TRACK && _.has_been_spent || _.track_type !== s.SAVINGS_TRACK && _.is_complete
|
|
312
|
-
), [l, p] = A.useState(!1);
|
|
313
|
-
let b = n.manage_saving_goals, o = n.manage_saving_drawer_title, a = n.manage_saving_title, u = n.manage_saving_description;
|
|
314
|
-
return t === s.DEBT_TRACK ? (b = n.manage_debt_goals, o = n.manage_debt_drawer_title, a = n.manage_debt_title, u = n.manage_debt_description) : t === s.RETIREMENT_TRACK && (b = n.manage_retirement_goals, o = n.manage_retirement_drawer_title, a = n.manage_retirement_title, u = n.manage_retirement_description), /* @__PURE__ */ i(g, { children: [
|
|
315
|
-
/* @__PURE__ */ e(pe, { endIcon: /* @__PURE__ */ e(O, {}), onClick: () => p(!0), children: b }),
|
|
254
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
255
|
+
/* @__PURE__ */ e(me, { endIcon: /* @__PURE__ */ e(z, {}), onClick: () => a(!0), children: o }),
|
|
316
256
|
/* @__PURE__ */ e(
|
|
317
|
-
|
|
257
|
+
q,
|
|
318
258
|
{
|
|
319
|
-
ariaLabelClose:
|
|
320
|
-
isOpen:
|
|
321
|
-
onClose: () =>
|
|
322
|
-
title:
|
|
323
|
-
children: /* @__PURE__ */
|
|
324
|
-
/* @__PURE__ */
|
|
325
|
-
/* @__PURE__ */ e(
|
|
326
|
-
/* @__PURE__ */ e(
|
|
259
|
+
ariaLabelClose: u.close_aria,
|
|
260
|
+
isOpen: h,
|
|
261
|
+
onClose: () => a(!1),
|
|
262
|
+
title: b,
|
|
263
|
+
children: /* @__PURE__ */ c(f, { children: [
|
|
264
|
+
/* @__PURE__ */ c(f, { m: 24, children: [
|
|
265
|
+
/* @__PURE__ */ e(le, { children: l }),
|
|
266
|
+
/* @__PURE__ */ e(Y, { color: "text.secondary", variant: "subtitle2", children: y })
|
|
327
267
|
] }),
|
|
328
268
|
/* @__PURE__ */ e(Ct, { trackType: t }),
|
|
329
|
-
/* @__PURE__ */ e(
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
/* @__PURE__ */ e(E, {})
|
|
346
|
-
] })
|
|
347
|
-
] }),
|
|
348
|
-
t !== s.RETIREMENT_TRACK && d.length > 0 && /* @__PURE__ */ i(g, { children: [
|
|
349
|
-
/* @__PURE__ */ e(T, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.complete_title }),
|
|
350
|
-
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: d.map((_, y) => {
|
|
351
|
-
const f = y > r.length - 1;
|
|
352
|
-
return /* @__PURE__ */ i(g, { children: [
|
|
353
|
-
/* @__PURE__ */ e(Et, { goal: _ }),
|
|
354
|
-
/* @__PURE__ */ e(E, { variant: f ? "fullWidth" : "inset" })
|
|
355
|
-
] }, `complete-${_.guid}`);
|
|
269
|
+
/* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.goal_priority }),
|
|
270
|
+
/* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: p.map((g, A) => {
|
|
271
|
+
const R = A >= p.length - 1;
|
|
272
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
273
|
+
/* @__PURE__ */ e(Rt, { goal: g, index: A, onUpClick: E }),
|
|
274
|
+
/* @__PURE__ */ e(v, { variant: R ? "fullWidth" : "inset" })
|
|
275
|
+
] }, `ongoing-${g.guid}`);
|
|
276
|
+
}) }),
|
|
277
|
+
t !== r.RETIREMENT_TRACK && s.length > 0 && /* @__PURE__ */ c(f, { children: [
|
|
278
|
+
/* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.complete_title }),
|
|
279
|
+
/* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: s.map((g, A) => {
|
|
280
|
+
const R = A > p.length - 1;
|
|
281
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
282
|
+
/* @__PURE__ */ e(xt, { goal: g }),
|
|
283
|
+
/* @__PURE__ */ e(v, { variant: R ? "fullWidth" : "inset" })
|
|
284
|
+
] }, `complete-${g.guid}`);
|
|
356
285
|
}) })
|
|
357
286
|
] })
|
|
358
287
|
] })
|
|
@@ -360,23 +289,23 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
360
289
|
)
|
|
361
290
|
] });
|
|
362
291
|
}, ce = D(({ trackType: t, onAddGoals: n }) => {
|
|
363
|
-
const { isMobile:
|
|
364
|
-
(
|
|
365
|
-
),
|
|
366
|
-
(
|
|
367
|
-
),
|
|
368
|
-
(
|
|
369
|
-
),
|
|
370
|
-
return /* @__PURE__ */
|
|
371
|
-
/* @__PURE__ */
|
|
372
|
-
/* @__PURE__ */ e(
|
|
373
|
-
/* @__PURE__ */ e(
|
|
292
|
+
const { isMobile: u } = he(), { goals: d } = x(), { selectedAccountGuids: _ } = _e(), { orderedGoals: i, setSelectedGoal: m } = N(), p = i.filter(
|
|
293
|
+
(o) => o.track_type === t && (o.track_type !== r.RETIREMENT_TRACK && _.includes(o.account_guid) || o.track_type === r.RETIREMENT_TRACK)
|
|
294
|
+
), s = p.filter(
|
|
295
|
+
(o) => o.track_type === r.SAVINGS_TRACK && !o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && !o.is_complete
|
|
296
|
+
), h = p.filter(
|
|
297
|
+
(o) => o.track_type === r.SAVINGS_TRACK && o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && o.is_complete
|
|
298
|
+
), a = t === r.DEBT_TRACK ? d.zero_state_complete_debt : d.zero_state_complete_savings;
|
|
299
|
+
return /* @__PURE__ */ c(f, { mt: 16, mx: u ? 24 : 0, children: [
|
|
300
|
+
/* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
|
|
301
|
+
/* @__PURE__ */ e(le, { color: "text.secondary", variant: "body2", children: d.ongoing_title }),
|
|
302
|
+
/* @__PURE__ */ e(Et, { trackType: t })
|
|
374
303
|
] }),
|
|
375
|
-
|
|
304
|
+
s.length > 0 ? /* @__PURE__ */ e(ge, { container: !0, spacing: 24, children: s.map((o, b, l) => (
|
|
376
305
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
|
377
|
-
/* @__PURE__ */ e(ge, {
|
|
378
|
-
)) }) : /* @__PURE__ */
|
|
379
|
-
|
|
306
|
+
/* @__PURE__ */ e(ge, { size: u || b === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Oe, { goal: o, onClick: () => m(o) }, o.guid) }, b)
|
|
307
|
+
)) }) : /* @__PURE__ */ c(
|
|
308
|
+
f,
|
|
380
309
|
{
|
|
381
310
|
alignItems: "center",
|
|
382
311
|
bgcolor: "background.default",
|
|
@@ -386,665 +315,658 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
386
315
|
py: 18,
|
|
387
316
|
children: [
|
|
388
317
|
/* @__PURE__ */ e(
|
|
389
|
-
|
|
318
|
+
Y,
|
|
390
319
|
{
|
|
391
|
-
sx: (
|
|
320
|
+
sx: (o) => ({
|
|
392
321
|
color: "text.secondary",
|
|
393
|
-
[
|
|
322
|
+
[o.breakpoints.down("sm")]: {
|
|
394
323
|
px: 10
|
|
395
324
|
},
|
|
396
325
|
width: { sm: 381 }
|
|
397
326
|
}),
|
|
398
|
-
variant: "
|
|
399
|
-
children:
|
|
327
|
+
variant: "body2",
|
|
328
|
+
children: Qe(t, d)
|
|
400
329
|
}
|
|
401
330
|
),
|
|
402
|
-
/* @__PURE__ */ e(
|
|
331
|
+
/* @__PURE__ */ e(me, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: d.add_goals_button })
|
|
403
332
|
]
|
|
404
333
|
}
|
|
405
334
|
),
|
|
406
|
-
t !==
|
|
407
|
-
/* @__PURE__ */ e(
|
|
408
|
-
|
|
409
|
-
|
|
335
|
+
t !== r.RETIREMENT_TRACK && /* @__PURE__ */ c(f, { gap: 16, mt: 48, children: [
|
|
336
|
+
/* @__PURE__ */ e(le, { color: "text.secondary", variant: "body2", children: d.complete_title }),
|
|
337
|
+
h.length === 0 && /* @__PURE__ */ e(f, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
|
|
338
|
+
Y,
|
|
410
339
|
{
|
|
411
|
-
sx: (
|
|
340
|
+
sx: (o) => ({
|
|
412
341
|
color: "text.secondary",
|
|
413
342
|
width: { sm: 393 },
|
|
414
|
-
[
|
|
343
|
+
[o.breakpoints.down("sm")]: {
|
|
415
344
|
px: 10
|
|
416
345
|
}
|
|
417
346
|
}),
|
|
418
|
-
variant: "
|
|
419
|
-
children:
|
|
347
|
+
variant: "body2",
|
|
348
|
+
children: a
|
|
420
349
|
}
|
|
421
350
|
) }),
|
|
422
|
-
|
|
423
|
-
/* @__PURE__ */
|
|
424
|
-
/* @__PURE__ */ e(
|
|
425
|
-
/* @__PURE__ */ e(
|
|
351
|
+
h.map((o) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(Re, { onClick: () => m(o), children: /* @__PURE__ */ e(xe, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
352
|
+
/* @__PURE__ */ c(f, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
353
|
+
/* @__PURE__ */ e($e, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
354
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", variant: "body1", children: o.name })
|
|
426
355
|
] }),
|
|
427
|
-
/* @__PURE__ */ e(
|
|
428
|
-
] }) }) }) },
|
|
356
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(o.amount, "0,0.00") })
|
|
357
|
+
] }) }) }) }, o.guid))
|
|
429
358
|
] })
|
|
430
359
|
] });
|
|
431
|
-
}),
|
|
432
|
-
const { goals:
|
|
433
|
-
return /* @__PURE__ */ e(
|
|
434
|
-
/* @__PURE__ */ e(
|
|
435
|
-
|
|
360
|
+
}), St = ({ goalType: t, onClick: n }) => {
|
|
361
|
+
const { goals: u } = x(), { bgcolor: d, icon: _, label: i, description: m, subTypes: p, type: s } = t, [h, a] = T.useState(!1), o = p.length > 0;
|
|
362
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ c(O, { sx: { bgcolor: "background.paper" }, children: [
|
|
363
|
+
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
|
|
364
|
+
L,
|
|
436
365
|
{
|
|
437
|
-
onClick:
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
366
|
+
onClick: o ? () => a(!h) : () => n(
|
|
367
|
+
s === r.RETIREMENT_TRACK ? u.retirement : "",
|
|
368
|
+
s === r.RETIREMENT_TRACK ? U.RETIREMENT : U.OTHER,
|
|
369
|
+
s
|
|
441
370
|
),
|
|
442
371
|
children: [
|
|
443
|
-
/* @__PURE__ */ e(
|
|
444
|
-
/* @__PURE__ */ e(
|
|
445
|
-
!
|
|
446
|
-
|
|
372
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(te, { sx: { bgcolor: d }, variant: "rounded", children: /* @__PURE__ */ e(ye, { name: _, sx: { color: "grey.900" } }) }) }),
|
|
373
|
+
/* @__PURE__ */ e(w, { primary: i, secondary: m, sx: { mr: 24 } }),
|
|
374
|
+
!o && /* @__PURE__ */ e(z, {}),
|
|
375
|
+
o && (h ? /* @__PURE__ */ e(Ze, {}) : /* @__PURE__ */ e(qe, {}))
|
|
447
376
|
]
|
|
448
377
|
}
|
|
449
378
|
) }),
|
|
450
|
-
/* @__PURE__ */ e(
|
|
451
|
-
|
|
452
|
-
/* @__PURE__ */ e(
|
|
379
|
+
/* @__PURE__ */ e(v, { variant: "inset" }),
|
|
380
|
+
o && /* @__PURE__ */ e(nt, { in: h, children: /* @__PURE__ */ e(O, { sx: { bgcolor: "background.default" }, children: p.map((b, l) => /* @__PURE__ */ e(k, { sx: { pl: 48 }, children: /* @__PURE__ */ c(L, { onClick: () => n(b.label, b.metaType, s), children: [
|
|
381
|
+
/* @__PURE__ */ e(ot, { sx: { mr: 8 }, children: /* @__PURE__ */ e(ye, { name: b.icon }) }),
|
|
453
382
|
/* @__PURE__ */ e(
|
|
454
|
-
|
|
383
|
+
w,
|
|
455
384
|
{
|
|
456
|
-
primary:
|
|
457
|
-
|
|
385
|
+
primary: b.label,
|
|
386
|
+
slotProps: { primary: { variant: "body1" } }
|
|
458
387
|
}
|
|
459
388
|
),
|
|
460
|
-
/* @__PURE__ */ e(
|
|
461
|
-
] }) },
|
|
389
|
+
/* @__PURE__ */ e(z, {})
|
|
390
|
+
] }) }, l)) }) })
|
|
462
391
|
] }) });
|
|
463
392
|
}, Be = ({
|
|
464
393
|
accounts: t,
|
|
465
394
|
isOpen: n,
|
|
466
|
-
onClose:
|
|
467
|
-
onSave:
|
|
468
|
-
title:
|
|
395
|
+
onClose: u,
|
|
396
|
+
onSave: d,
|
|
397
|
+
title: _
|
|
469
398
|
}) => {
|
|
470
|
-
const { goals:
|
|
471
|
-
const
|
|
472
|
-
|
|
399
|
+
const { goals: i, common: m } = x(), { config: p } = pe(), [s, h] = T.useState([]), a = (o) => {
|
|
400
|
+
const b = s.findIndex((y) => y.guid === o.guid), l = [...s];
|
|
401
|
+
b >= 0 ? l.splice(b, 1) : l.push(o), h(l);
|
|
473
402
|
};
|
|
474
|
-
return /* @__PURE__ */
|
|
475
|
-
|
|
403
|
+
return /* @__PURE__ */ c(
|
|
404
|
+
q,
|
|
476
405
|
{
|
|
477
|
-
ariaLabelClose:
|
|
406
|
+
ariaLabelClose: m.close_aria,
|
|
478
407
|
isOpen: n,
|
|
479
|
-
onClose:
|
|
480
|
-
onPrimaryAction: () =>
|
|
481
|
-
title:
|
|
408
|
+
onClose: u,
|
|
409
|
+
onPrimaryAction: () => d(s),
|
|
410
|
+
title: _,
|
|
482
411
|
children: [
|
|
483
|
-
/* @__PURE__ */
|
|
484
|
-
|
|
485
|
-
/* @__PURE__ */
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
te,
|
|
412
|
+
/* @__PURE__ */ c(O, { sx: { bgcolor: "background.white" }, children: [
|
|
413
|
+
/* @__PURE__ */ e(v, { variant: "fullWidth" }),
|
|
414
|
+
t.map((o, b) => /* @__PURE__ */ c(T.Fragment, { children: [
|
|
415
|
+
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(L, { onClick: () => a(o), children: [
|
|
416
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
|
|
417
|
+
X,
|
|
490
418
|
{
|
|
491
|
-
alt:
|
|
492
|
-
institutionGuid:
|
|
419
|
+
alt: o?.name || "",
|
|
420
|
+
institutionGuid: o?.institution_guid || ""
|
|
493
421
|
}
|
|
494
422
|
) }),
|
|
495
423
|
/* @__PURE__ */ e(
|
|
496
|
-
|
|
424
|
+
w,
|
|
497
425
|
{
|
|
498
|
-
primary:
|
|
499
|
-
allowNickname:
|
|
426
|
+
primary: we(o, {
|
|
427
|
+
allowNickname: p?.show_account_nicknames_in_master
|
|
500
428
|
}),
|
|
501
|
-
secondary:
|
|
429
|
+
secondary: I(o.balance || 0, "0,0.00")
|
|
502
430
|
}
|
|
503
431
|
),
|
|
504
|
-
/* @__PURE__ */ e(
|
|
432
|
+
/* @__PURE__ */ e(at, { checked: s.some((l) => l.guid === o.guid) })
|
|
505
433
|
] }) }),
|
|
506
|
-
/* @__PURE__ */ e(
|
|
507
|
-
] },
|
|
434
|
+
/* @__PURE__ */ e(v, { variant: b < t.length - 1 ? "inset" : "fullWidth" })
|
|
435
|
+
] }, o.guid))
|
|
508
436
|
] }),
|
|
509
|
-
/* @__PURE__ */ e(
|
|
510
|
-
|
|
437
|
+
p.show_connections_widget_in_master && /* @__PURE__ */ e(
|
|
438
|
+
De,
|
|
511
439
|
{
|
|
512
|
-
description:
|
|
513
|
-
label:
|
|
514
|
-
title:
|
|
440
|
+
description: i.connect_description,
|
|
441
|
+
label: i.connect_button,
|
|
442
|
+
title: i.connect_title
|
|
515
443
|
}
|
|
516
444
|
)
|
|
517
445
|
]
|
|
518
446
|
}
|
|
519
447
|
);
|
|
520
|
-
},
|
|
521
|
-
const { goals: n } =
|
|
522
|
-
|
|
448
|
+
}, vt = ({ onClose: t }) => {
|
|
449
|
+
const { goals: n } = x(), { addGoal: u, debtGoals: d, setAlert: _, setSelectedGoal: i } = N(), { config: m } = pe(), { visibleDebtAccounts: p } = j(), [s, h] = T.useState(!1), a = Xe(n), o = (l, y, E) => {
|
|
450
|
+
E === r.DEBT_TRACK ? h(!0) : i({
|
|
523
451
|
amount: 0,
|
|
524
452
|
current_amount: 0,
|
|
525
453
|
goal_type: de.SAVE_AMOUNT,
|
|
526
454
|
initial_amount: 0,
|
|
527
455
|
meta_type: y,
|
|
528
|
-
name:
|
|
529
|
-
track_type:
|
|
456
|
+
name: l,
|
|
457
|
+
track_type: E
|
|
530
458
|
});
|
|
531
|
-
},
|
|
532
|
-
for (const y of
|
|
533
|
-
let
|
|
534
|
-
y.account_type ===
|
|
459
|
+
}, b = async (l) => {
|
|
460
|
+
for (const y of l) {
|
|
461
|
+
let E = U.CREDIT_CARD;
|
|
462
|
+
y.account_type === Ae.LOAN ? E = U.LOANS : y.account_type === Ae.LINE_OF_CREDIT && (E = U.LINE_OF_CREDIT), await u({
|
|
535
463
|
account_guid: y.guid,
|
|
536
464
|
amount: 0,
|
|
537
465
|
current_amount: 0,
|
|
538
466
|
goal_type: de.KEEP_BALANCE_BELOW,
|
|
539
467
|
initial_amount: y.balance || 0,
|
|
540
468
|
interest_rate: y.interest_rate || 0,
|
|
541
|
-
meta_type:
|
|
469
|
+
meta_type: E,
|
|
542
470
|
monthly_payment: y.minimum_payment || 0,
|
|
543
|
-
name:
|
|
544
|
-
allowNickname:
|
|
471
|
+
name: we(y, {
|
|
472
|
+
allowNickname: m?.show_account_nicknames_in_master
|
|
545
473
|
}),
|
|
546
|
-
track_type:
|
|
547
|
-
}),
|
|
474
|
+
track_type: r.DEBT_TRACK
|
|
475
|
+
}), _(n.alert_goal_added);
|
|
548
476
|
}
|
|
549
|
-
|
|
477
|
+
h(!1), t?.(r.DEBT_TRACK);
|
|
550
478
|
};
|
|
551
|
-
return /* @__PURE__ */
|
|
552
|
-
/* @__PURE__ */ e(
|
|
479
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
480
|
+
/* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: a.map((l, y) => /* @__PURE__ */ e(St, { goalType: l, onClick: o }, y)) }),
|
|
553
481
|
/* @__PURE__ */ e(
|
|
554
482
|
Be,
|
|
555
483
|
{
|
|
556
|
-
accounts:
|
|
557
|
-
isOpen:
|
|
558
|
-
onClose: () =>
|
|
559
|
-
onSave:
|
|
484
|
+
accounts: p.filter((l) => !d.find((y) => y.account_guid === l.guid)),
|
|
485
|
+
isOpen: s,
|
|
486
|
+
onClose: () => h(!1),
|
|
487
|
+
onSave: b,
|
|
560
488
|
title: n.select_debt_accounts_title
|
|
561
489
|
}
|
|
562
490
|
)
|
|
563
491
|
] });
|
|
564
|
-
},
|
|
565
|
-
const n =
|
|
566
|
-
return /* @__PURE__ */
|
|
567
|
-
/* @__PURE__ */ e(
|
|
568
|
-
|
|
492
|
+
}, We = ({ account: t }) => {
|
|
493
|
+
const n = it(t);
|
|
494
|
+
return /* @__PURE__ */ c(k, { sx: { bgcolor: "background.paper", p: 24 }, children: [
|
|
495
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
|
|
496
|
+
X,
|
|
569
497
|
{
|
|
570
498
|
alt: t.name || "",
|
|
571
499
|
institutionGuid: t.institution_guid || ""
|
|
572
500
|
}
|
|
573
501
|
) }),
|
|
574
502
|
/* @__PURE__ */ e(
|
|
575
|
-
|
|
503
|
+
w,
|
|
576
504
|
{
|
|
577
505
|
primary: n,
|
|
578
|
-
secondary:
|
|
506
|
+
secondary: I(t.balance || 0, "0,0.00")
|
|
579
507
|
}
|
|
580
508
|
)
|
|
581
509
|
] });
|
|
582
510
|
}, It = D(({ goal: t }) => {
|
|
583
|
-
const { goals: n } =
|
|
584
|
-
const
|
|
585
|
-
t.amount =
|
|
586
|
-
},
|
|
511
|
+
const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateGoal: _, updateRetirementGoal: i } = N(), [m, p] = T.useState(t.amount), s = !t.guid, h = m < 0 || m > 9999999999e-2, a = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, o = async () => {
|
|
512
|
+
const l = { ...t, amount: m };
|
|
513
|
+
t.amount = m, s ? d(l) : (t.track_type !== r.RETIREMENT_TRACK ? await _(l) : await i(l), u(n.alert_goal_updated_amount));
|
|
514
|
+
}, b = () => {
|
|
587
515
|
setTimeout(() => {
|
|
588
|
-
|
|
516
|
+
p(t.amount);
|
|
589
517
|
}, 250);
|
|
590
518
|
};
|
|
591
519
|
return /* @__PURE__ */ e(
|
|
592
|
-
|
|
520
|
+
Z,
|
|
593
521
|
{
|
|
594
|
-
isDisabled:
|
|
595
|
-
isSaveDisabled:
|
|
522
|
+
isDisabled: a,
|
|
523
|
+
isSaveDisabled: h,
|
|
596
524
|
label: n.details_amount_to_save,
|
|
597
|
-
onCancel:
|
|
598
|
-
onSave:
|
|
525
|
+
onCancel: b,
|
|
526
|
+
onSave: o,
|
|
599
527
|
primaryText: n.details_amount_to_save,
|
|
600
|
-
secondaryText:
|
|
601
|
-
zeroStateText:
|
|
528
|
+
secondaryText: I(t.amount, "0,0"),
|
|
529
|
+
zeroStateText: s && t.amount === 0 ? n.add_amount : void 0,
|
|
602
530
|
children: /* @__PURE__ */ e(
|
|
603
|
-
|
|
531
|
+
ke,
|
|
604
532
|
{
|
|
605
|
-
amount:
|
|
533
|
+
amount: m,
|
|
606
534
|
autoFocus: !0,
|
|
607
|
-
error:
|
|
535
|
+
error: h,
|
|
608
536
|
fullWidth: !0,
|
|
609
537
|
minAmount: 0,
|
|
610
|
-
setAmount: (
|
|
611
|
-
sx: { ".MuiTypography-
|
|
538
|
+
setAmount: (l) => p(isNaN(Number(l)) ? m : Number(l)),
|
|
539
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
612
540
|
}
|
|
613
541
|
)
|
|
614
542
|
}
|
|
615
543
|
);
|
|
616
|
-
}),
|
|
617
|
-
const { visibleCheckingAccounts: n, visibleSavingsAccounts:
|
|
618
|
-
const
|
|
619
|
-
|
|
544
|
+
}), Gt = ({ goal: t }) => {
|
|
545
|
+
const { visibleCheckingAccounts: n, visibleSavingsAccounts: u } = j(), { accounts: d, goals: _ } = x(), { config: i } = pe(), { setAlert: m, setSelectedGoal: p, updateGoal: s } = N(), h = !t.guid, [a, o] = T.useState(!1), b = async ({ balance: l, guid: y }) => {
|
|
546
|
+
const E = { ...t, account_guid: y, current_amount: l || 0 };
|
|
547
|
+
h ? p(E) : (await s(E), m(_.alert_account_changed)), o(!1);
|
|
620
548
|
};
|
|
621
|
-
return /* @__PURE__ */
|
|
622
|
-
|
|
623
|
-
/* @__PURE__ */ e(
|
|
624
|
-
/* @__PURE__ */ e(
|
|
625
|
-
|
|
549
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
550
|
+
h && !t.account_guid ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(L, { onClick: () => o(!0), children: [
|
|
551
|
+
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
552
|
+
/* @__PURE__ */ e(Ie, { filled: !0 }),
|
|
553
|
+
_.details_add_account
|
|
626
554
|
] }) }),
|
|
627
|
-
/* @__PURE__ */ e(
|
|
628
|
-
] }) }) : /* @__PURE__ */
|
|
629
|
-
/* @__PURE__ */ e(
|
|
630
|
-
/* @__PURE__ */ e(
|
|
631
|
-
T,
|
|
632
|
-
{
|
|
633
|
-
color: "text.secondary",
|
|
634
|
-
sx: { textAlign: "center", whiteSpace: "wrap" },
|
|
635
|
-
variant: "Paragraph",
|
|
636
|
-
children: M(h.details_change_account_description, t.name)
|
|
637
|
-
}
|
|
638
|
-
)
|
|
555
|
+
/* @__PURE__ */ e(z, { color: "primary" })
|
|
556
|
+
] }) }) : /* @__PURE__ */ c(f, { sx: { gap: 8, my: 24, mx: 24 }, children: [
|
|
557
|
+
/* @__PURE__ */ e(me, { onClick: () => o(!0), variant: "text", children: _.details_change_account }),
|
|
558
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { textAlign: "center" }, variant: "subtitle1", children: B(_.details_change_account_description, t.name) })
|
|
639
559
|
] }),
|
|
640
|
-
/* @__PURE__ */ e(
|
|
641
|
-
n.length > 0 && /* @__PURE__ */ e(
|
|
642
|
-
/* @__PURE__ */ e(
|
|
643
|
-
/* @__PURE__ */ e(
|
|
644
|
-
|
|
560
|
+
/* @__PURE__ */ e(q, { isOpen: a, onClose: () => o(!1), title: _.details_change_account, children: /* @__PURE__ */ c(f, { children: [
|
|
561
|
+
n.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: d.account_types[1] }),
|
|
562
|
+
/* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: n.map((l) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(L, { onClick: () => b(l), children: [
|
|
563
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
|
|
564
|
+
X,
|
|
645
565
|
{
|
|
646
|
-
alt:
|
|
647
|
-
institutionGuid:
|
|
566
|
+
alt: l?.name || "",
|
|
567
|
+
institutionGuid: l?.institution_guid || ""
|
|
648
568
|
}
|
|
649
569
|
) }),
|
|
650
570
|
/* @__PURE__ */ e(
|
|
651
|
-
|
|
571
|
+
w,
|
|
652
572
|
{
|
|
653
|
-
primary:
|
|
654
|
-
secondary:
|
|
573
|
+
primary: l?.name || l?.feed_name,
|
|
574
|
+
secondary: I(l?.balance || 0, "0,0.00")
|
|
655
575
|
}
|
|
656
576
|
),
|
|
657
|
-
/* @__PURE__ */ e(
|
|
658
|
-
] }) },
|
|
659
|
-
|
|
660
|
-
/* @__PURE__ */ e(
|
|
661
|
-
/* @__PURE__ */ e(
|
|
662
|
-
|
|
577
|
+
/* @__PURE__ */ e(z, {})
|
|
578
|
+
] }) }, l.guid)) }),
|
|
579
|
+
u.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: d.account_types[2] }),
|
|
580
|
+
/* @__PURE__ */ e(O, { sx: { bgcolor: "background.paper" }, children: u.map((l) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(L, { onClick: () => b(l), children: [
|
|
581
|
+
/* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
|
|
582
|
+
X,
|
|
663
583
|
{
|
|
664
|
-
alt:
|
|
665
|
-
institutionGuid:
|
|
584
|
+
alt: l?.name || "",
|
|
585
|
+
institutionGuid: l?.institution_guid || ""
|
|
666
586
|
}
|
|
667
587
|
) }),
|
|
668
588
|
/* @__PURE__ */ e(
|
|
669
|
-
|
|
589
|
+
w,
|
|
670
590
|
{
|
|
671
|
-
primary:
|
|
672
|
-
secondary:
|
|
591
|
+
primary: l?.name || l?.feed_name,
|
|
592
|
+
secondary: I(l?.balance || 0, "0,0.00")
|
|
673
593
|
}
|
|
674
594
|
),
|
|
675
|
-
/* @__PURE__ */ e(
|
|
676
|
-
] }) },
|
|
677
|
-
/* @__PURE__ */ e(
|
|
678
|
-
|
|
595
|
+
/* @__PURE__ */ e(z, {})
|
|
596
|
+
] }) }, l.guid)) }),
|
|
597
|
+
i.show_connections_widget_in_master && /* @__PURE__ */ e(
|
|
598
|
+
De,
|
|
679
599
|
{
|
|
680
|
-
description:
|
|
681
|
-
label:
|
|
682
|
-
title:
|
|
600
|
+
description: _.connect_description,
|
|
601
|
+
label: _.connect_button,
|
|
602
|
+
title: _.connect_title
|
|
683
603
|
}
|
|
684
604
|
)
|
|
685
605
|
] }) })
|
|
686
606
|
] });
|
|
687
|
-
},
|
|
688
|
-
const { goals: n } =
|
|
689
|
-
const
|
|
690
|
-
t.name =
|
|
691
|
-
},
|
|
607
|
+
}, Nt = D(({ goal: t }) => {
|
|
608
|
+
const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateGoal: _ } = N(), [i, m] = T.useState(t.name), p = !t.guid, s = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, h = async () => {
|
|
609
|
+
const o = { ...t, name: i };
|
|
610
|
+
t.name = i, p ? d(o) : (await _(o), u(n.alert_goal_updated_name));
|
|
611
|
+
}, a = () => {
|
|
692
612
|
setTimeout(() => {
|
|
693
|
-
|
|
613
|
+
m(t.name);
|
|
694
614
|
}, 250);
|
|
695
615
|
};
|
|
696
616
|
return /* @__PURE__ */ e(
|
|
697
|
-
|
|
617
|
+
Z,
|
|
698
618
|
{
|
|
699
|
-
isDisabled:
|
|
700
|
-
isSaveDisabled: !
|
|
619
|
+
isDisabled: s,
|
|
620
|
+
isSaveDisabled: !i,
|
|
701
621
|
label: n.details_goal_name,
|
|
702
|
-
onCancel:
|
|
703
|
-
onSave:
|
|
622
|
+
onCancel: a,
|
|
623
|
+
onSave: h,
|
|
704
624
|
primaryText: n.details_goal_name,
|
|
705
625
|
secondaryText: t.name,
|
|
706
626
|
children: /* @__PURE__ */ e(
|
|
707
|
-
|
|
627
|
+
Ke,
|
|
708
628
|
{
|
|
709
|
-
error: !
|
|
629
|
+
error: !i,
|
|
710
630
|
fullWidth: !0,
|
|
711
631
|
label: n.details_goal_name,
|
|
712
|
-
onChange: (
|
|
713
|
-
value:
|
|
632
|
+
onChange: (o) => m(o.target.value),
|
|
633
|
+
value: i
|
|
714
634
|
}
|
|
715
635
|
)
|
|
716
636
|
}
|
|
717
637
|
);
|
|
718
638
|
}), kt = ({ goal: t }) => {
|
|
719
|
-
const { goals: n } =
|
|
720
|
-
if (!isNaN(
|
|
721
|
-
const
|
|
722
|
-
t.retirement_age =
|
|
639
|
+
const { goals: n } = x(), { setAlert: u, setSelectedGoal: d, updateRetirementGoal: _ } = N(), [i, m] = T.useState(t.retirement_age || 65), p = !t.guid, s = async () => {
|
|
640
|
+
if (!isNaN(i)) {
|
|
641
|
+
const o = { ...t, retirement_age: i };
|
|
642
|
+
t.retirement_age = i, p ? d(o) : (await _(o), u(n.alert_goal_updated_retirement_age));
|
|
723
643
|
}
|
|
724
|
-
},
|
|
644
|
+
}, h = () => {
|
|
725
645
|
setTimeout(() => {
|
|
726
|
-
|
|
646
|
+
m(t.retirement_age || 65);
|
|
727
647
|
}, 250);
|
|
728
|
-
},
|
|
648
|
+
}, a = !i || isNaN(i) || i < 20 || i >= 100;
|
|
729
649
|
return /* @__PURE__ */ e(
|
|
730
|
-
|
|
650
|
+
Z,
|
|
731
651
|
{
|
|
732
652
|
isDisabled: t.is_complete,
|
|
733
|
-
isSaveDisabled:
|
|
653
|
+
isSaveDisabled: a,
|
|
734
654
|
label: n.details_retirement_age,
|
|
735
|
-
onCancel:
|
|
736
|
-
onSave:
|
|
655
|
+
onCancel: h,
|
|
656
|
+
onSave: s,
|
|
737
657
|
primaryText: n.details_retirement_age,
|
|
738
658
|
secondaryText: `${t.retirement_age}`,
|
|
739
|
-
zeroStateText:
|
|
659
|
+
zeroStateText: p && !t.retirement_age ? n.add_age : void 0,
|
|
740
660
|
children: /* @__PURE__ */ e(
|
|
741
|
-
|
|
661
|
+
Ke,
|
|
742
662
|
{
|
|
743
|
-
error:
|
|
663
|
+
error: a,
|
|
744
664
|
fullWidth: !0,
|
|
745
665
|
label: n.details_retirement_age,
|
|
746
|
-
onChange: (
|
|
747
|
-
value: isNaN(
|
|
666
|
+
onChange: (o) => m(Number(o.target.value)),
|
|
667
|
+
value: isNaN(i) ? "" : i
|
|
748
668
|
}
|
|
749
669
|
)
|
|
750
670
|
}
|
|
751
671
|
);
|
|
752
|
-
},
|
|
753
|
-
const { goals: n } =
|
|
754
|
-
|
|
672
|
+
}, wt = D(({ goal: t }) => {
|
|
673
|
+
const { goals: n } = x(), { user: u, updateUser: d } = Ge(), { setAlert: _ } = N(), [i, m] = T.useState(ee(u.birthday ?? 0)), [p, s] = T.useState(null), h = t.is_complete, a = async () => {
|
|
674
|
+
i && dt(i) && (await d({ ...u, birthday: lt(i) }), _(n.alert_goal_updated_birthday));
|
|
755
675
|
};
|
|
756
676
|
return /* @__PURE__ */ e(
|
|
757
|
-
|
|
677
|
+
Z,
|
|
758
678
|
{
|
|
759
|
-
isDisabled:
|
|
760
|
-
isSaveDisabled: !!
|
|
679
|
+
isDisabled: h,
|
|
680
|
+
isSaveDisabled: !!p,
|
|
761
681
|
label: n.details_birthday,
|
|
762
|
-
onSave:
|
|
682
|
+
onSave: a,
|
|
763
683
|
primaryText: n.details_birthday,
|
|
764
|
-
secondaryText: `${
|
|
765
|
-
zeroStateText: !t.guid && !
|
|
766
|
-
children: /* @__PURE__ */ e(
|
|
767
|
-
|
|
684
|
+
secondaryText: `${be(ee(u.birthday ?? 0), fe.MONTH_DAY_YEAR)}`,
|
|
685
|
+
zeroStateText: !t.guid && !u.birthday ? n.add_birthday : void 0,
|
|
686
|
+
children: /* @__PURE__ */ e(_t, { dateAdapter: mt, children: /* @__PURE__ */ e(
|
|
687
|
+
ut,
|
|
768
688
|
{
|
|
769
689
|
label: n.details_birthday,
|
|
770
|
-
onChange:
|
|
771
|
-
onError: (
|
|
690
|
+
onChange: m,
|
|
691
|
+
onError: (o) => s(o),
|
|
772
692
|
sx: { width: "100%" },
|
|
773
|
-
value:
|
|
693
|
+
value: i
|
|
774
694
|
}
|
|
775
695
|
) })
|
|
776
696
|
}
|
|
777
697
|
);
|
|
778
|
-
}),
|
|
779
|
-
const { goals: n } =
|
|
780
|
-
addRetirementGoalAccount:
|
|
781
|
-
newRetirementGoalAccounts:
|
|
782
|
-
retirementGoalAccounts:
|
|
783
|
-
selectedGoal:
|
|
784
|
-
setAlert:
|
|
785
|
-
setNewRetirementGoalAccounts:
|
|
786
|
-
setSelectedGoal:
|
|
787
|
-
} =
|
|
788
|
-
(
|
|
789
|
-
), y =
|
|
790
|
-
(
|
|
791
|
-
),
|
|
792
|
-
const
|
|
793
|
-
account_guid:
|
|
698
|
+
}), Dt = ({ goal: t }) => {
|
|
699
|
+
const { goals: n } = x(), { visibleRetirementAccounts: u } = j(), {
|
|
700
|
+
addRetirementGoalAccount: d,
|
|
701
|
+
newRetirementGoalAccounts: _,
|
|
702
|
+
retirementGoalAccounts: i,
|
|
703
|
+
selectedGoal: m,
|
|
704
|
+
setAlert: p,
|
|
705
|
+
setNewRetirementGoalAccounts: s,
|
|
706
|
+
setSelectedGoal: h
|
|
707
|
+
} = N(), [a, o] = T.useState(!1), b = !t.guid, l = u.filter(
|
|
708
|
+
(g) => b ? _.find((A) => A.account_guid === g.guid) : i.find((A) => A.account_guid === g.guid)
|
|
709
|
+
), y = u.filter(
|
|
710
|
+
(g) => !i.find((A) => A.account_guid === g.guid)
|
|
711
|
+
), E = async (g) => {
|
|
712
|
+
const A = g.map((R) => ({
|
|
713
|
+
account_guid: R.guid,
|
|
794
714
|
retirement_goal_guid: t.guid
|
|
795
715
|
}));
|
|
796
|
-
if (
|
|
797
|
-
|
|
716
|
+
if (b)
|
|
717
|
+
s(A);
|
|
798
718
|
else
|
|
799
|
-
for (const
|
|
800
|
-
await
|
|
801
|
-
|
|
802
|
-
...
|
|
803
|
-
current_amount:
|
|
804
|
-
}),
|
|
719
|
+
for (const R of A)
|
|
720
|
+
await d(R), p(n.alert_account_added);
|
|
721
|
+
h({
|
|
722
|
+
...m,
|
|
723
|
+
current_amount: g.reduce((R, G) => R + (G.balance || 0), 0)
|
|
724
|
+
}), o(!1);
|
|
805
725
|
};
|
|
806
|
-
return /* @__PURE__ */
|
|
807
|
-
|
|
808
|
-
/* @__PURE__ */ e(
|
|
809
|
-
/* @__PURE__ */ e(
|
|
810
|
-
] },
|
|
811
|
-
/* @__PURE__ */ e(
|
|
812
|
-
/* @__PURE__ */ e(
|
|
813
|
-
/* @__PURE__ */ e(
|
|
726
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
727
|
+
l.map((g) => /* @__PURE__ */ c(f, { children: [
|
|
728
|
+
/* @__PURE__ */ e(We, { account: g }),
|
|
729
|
+
/* @__PURE__ */ e(v, {})
|
|
730
|
+
] }, g.guid)),
|
|
731
|
+
/* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(L, { onClick: () => o(!0), children: [
|
|
732
|
+
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
733
|
+
/* @__PURE__ */ e(Ie, { filled: !0 }),
|
|
814
734
|
n.details_add_account
|
|
815
735
|
] }) }),
|
|
816
|
-
/* @__PURE__ */ e(
|
|
736
|
+
/* @__PURE__ */ e(z, { color: "primary" })
|
|
817
737
|
] }) }),
|
|
818
738
|
/* @__PURE__ */ e(
|
|
819
739
|
Be,
|
|
820
740
|
{
|
|
821
741
|
accounts: y,
|
|
822
|
-
isOpen:
|
|
823
|
-
onClose: () =>
|
|
824
|
-
onSave:
|
|
742
|
+
isOpen: a,
|
|
743
|
+
onClose: () => o(!1),
|
|
744
|
+
onSave: E,
|
|
825
745
|
title: n.add_select_accounts
|
|
826
746
|
}
|
|
827
747
|
)
|
|
828
748
|
] });
|
|
829
|
-
},
|
|
830
|
-
const { goals: n } =
|
|
831
|
-
() =>
|
|
832
|
-
[
|
|
833
|
-
),
|
|
834
|
-
let
|
|
835
|
-
return t.track_type ===
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
/* @__PURE__ */ e(
|
|
838
|
-
/* @__PURE__ */ e(
|
|
839
|
-
/* @__PURE__ */ e(
|
|
749
|
+
}, Kt = D(({ goal: t }) => {
|
|
750
|
+
const { goals: n } = x(), { visibleAccounts: u } = j(), d = T.useMemo(
|
|
751
|
+
() => u.find((m) => m.guid === t.account_guid),
|
|
752
|
+
[u, t]
|
|
753
|
+
), _ = t.track_type;
|
|
754
|
+
let i = n.details_save_title;
|
|
755
|
+
return t.track_type === r.DEBT_TRACK ? i = n.details_debt_title : t.track_type === r.RETIREMENT_TRACK && (i = n.details_retirement_title), /* @__PURE__ */ c(f, { children: [
|
|
756
|
+
/* @__PURE__ */ c(f, { mx: 24, children: [
|
|
757
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "caption", children: i }),
|
|
758
|
+
/* @__PURE__ */ e(Oe, { goal: t, isInDrawer: !0 }),
|
|
759
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "caption", children: n.details_title })
|
|
840
760
|
] }),
|
|
841
|
-
/* @__PURE__ */
|
|
842
|
-
|
|
843
|
-
|
|
761
|
+
/* @__PURE__ */ c(O, { sx: { bgcolor: "background.paper" }, children: [
|
|
762
|
+
_ !== r.RETIREMENT_TRACK ? /* @__PURE__ */ e(Nt, { goal: t }) : /* @__PURE__ */ e(k, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
763
|
+
w,
|
|
844
764
|
{
|
|
845
|
-
primary: /* @__PURE__ */
|
|
846
|
-
/* @__PURE__ */ e(
|
|
847
|
-
/* @__PURE__ */ e(
|
|
765
|
+
primary: /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
766
|
+
/* @__PURE__ */ e(C, { variant: "body1", children: n.details_goal_name }),
|
|
767
|
+
/* @__PURE__ */ e(C, { bold: !0, color: "text.primary", sx: { mr: 4 }, variant: "body1", children: n.retirement })
|
|
848
768
|
] }),
|
|
849
|
-
|
|
769
|
+
slotProps: { primary: { variant: "body1" } }
|
|
850
770
|
}
|
|
851
771
|
) }),
|
|
852
|
-
/* @__PURE__ */ e(
|
|
853
|
-
(
|
|
772
|
+
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
773
|
+
(_ === r.SAVINGS_TRACK || _ === r.RETIREMENT_TRACK) && /* @__PURE__ */ c(F, { children: [
|
|
854
774
|
/* @__PURE__ */ e(It, { goal: t }),
|
|
855
|
-
/* @__PURE__ */ e(
|
|
775
|
+
/* @__PURE__ */ e(v, { sx: { ml: _ === r.RETIREMENT_TRACK ? 24 : 0 } })
|
|
856
776
|
] }),
|
|
857
|
-
t.track_type ===
|
|
858
|
-
/* @__PURE__ */ e(
|
|
859
|
-
/* @__PURE__ */ e(
|
|
777
|
+
t.track_type === r.DEBT_TRACK && /* @__PURE__ */ c(F, { children: [
|
|
778
|
+
/* @__PURE__ */ e(rt, { goal: t }),
|
|
779
|
+
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
860
780
|
/* @__PURE__ */ e(st, { goal: t }),
|
|
861
|
-
/* @__PURE__ */ e(
|
|
862
|
-
/* @__PURE__ */ e(
|
|
863
|
-
/* @__PURE__ */ e(
|
|
781
|
+
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
782
|
+
/* @__PURE__ */ e(ct, { goal: t }),
|
|
783
|
+
/* @__PURE__ */ e(v, { variant: "fullWidth" })
|
|
864
784
|
] }),
|
|
865
|
-
t.track_type ===
|
|
785
|
+
t.track_type === r.RETIREMENT_TRACK && /* @__PURE__ */ c(F, { children: [
|
|
866
786
|
/* @__PURE__ */ e(kt, { goal: t }),
|
|
867
|
-
/* @__PURE__ */ e(
|
|
868
|
-
/* @__PURE__ */ e(
|
|
869
|
-
/* @__PURE__ */ e(
|
|
787
|
+
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
788
|
+
/* @__PURE__ */ e(wt, { goal: t }),
|
|
789
|
+
/* @__PURE__ */ e(v, { variant: "fullWidth" })
|
|
870
790
|
] })
|
|
871
791
|
] }),
|
|
872
|
-
/* @__PURE__ */ e(
|
|
873
|
-
t.track_type !==
|
|
874
|
-
/* @__PURE__ */ e(
|
|
875
|
-
/* @__PURE__ */ e(
|
|
792
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: t.track_type === r.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
|
|
793
|
+
t.track_type !== r.RETIREMENT_TRACK && d && /* @__PURE__ */ c(F, { children: [
|
|
794
|
+
/* @__PURE__ */ e(We, { account: d }),
|
|
795
|
+
/* @__PURE__ */ e(v, {})
|
|
876
796
|
] }),
|
|
877
|
-
t.track_type ===
|
|
878
|
-
/* @__PURE__ */ e(
|
|
879
|
-
/* @__PURE__ */ e(
|
|
797
|
+
t.track_type === r.RETIREMENT_TRACK && /* @__PURE__ */ c(F, { children: [
|
|
798
|
+
/* @__PURE__ */ e(Dt, { goal: t }),
|
|
799
|
+
/* @__PURE__ */ e(v, {})
|
|
880
800
|
] }),
|
|
881
|
-
t.track_type ===
|
|
801
|
+
t.track_type === r.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(Gt, { goal: t })
|
|
882
802
|
] });
|
|
883
|
-
}),
|
|
884
|
-
const { visibleRetirementAccounts: n } = j(), { goals:
|
|
885
|
-
addGoal:
|
|
886
|
-
addRetirementGoal:
|
|
887
|
-
deleteGoal:
|
|
888
|
-
deleteRetirementGoal:
|
|
889
|
-
newRetirementGoalAccounts:
|
|
890
|
-
retirementGoalAccounts:
|
|
891
|
-
selectedGoal:
|
|
892
|
-
setAlert:
|
|
893
|
-
setSelectedGoal:
|
|
894
|
-
updateGoal:
|
|
895
|
-
} =
|
|
896
|
-
const
|
|
897
|
-
return n.filter((
|
|
898
|
-
}, [
|
|
899
|
-
if (!
|
|
900
|
-
if (!
|
|
901
|
-
const { account_guid:
|
|
902
|
-
return
|
|
903
|
-
}, [
|
|
904
|
-
let
|
|
905
|
-
|
|
906
|
-
const
|
|
907
|
-
if (
|
|
908
|
-
const
|
|
909
|
-
|
|
803
|
+
}), Mt = D(({ onClose: t }) => {
|
|
804
|
+
const { visibleRetirementAccounts: n } = j(), { goals: u, common: d } = x(), {
|
|
805
|
+
addGoal: _,
|
|
806
|
+
addRetirementGoal: i,
|
|
807
|
+
deleteGoal: m,
|
|
808
|
+
deleteRetirementGoal: p,
|
|
809
|
+
newRetirementGoalAccounts: s,
|
|
810
|
+
retirementGoalAccounts: h,
|
|
811
|
+
selectedGoal: a,
|
|
812
|
+
setAlert: o,
|
|
813
|
+
setSelectedGoal: b,
|
|
814
|
+
updateGoal: l
|
|
815
|
+
} = N(), { user: y } = Ge(), [E, g] = T.useState(!1), A = !a?.guid, R = a?.track_type === r.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, G = T.useMemo(() => {
|
|
816
|
+
const S = A ? s : h;
|
|
817
|
+
return n.filter((V) => S.some((M) => M.account_guid === V.guid));
|
|
818
|
+
}, [A, n, s, h]), K = T.useMemo(() => {
|
|
819
|
+
if (!a) return !1;
|
|
820
|
+
if (!A && !R) return !0;
|
|
821
|
+
const { account_guid: S, track_type: V, name: M, amount: J, retirement_age: ie } = a;
|
|
822
|
+
return V === r.SAVINGS_TRACK ? S ? !!M && !!J : !1 : V === r.RETIREMENT_TRACK ? G.length ? !!M && !!J && !!ie && !!y.birthday : !1 : !0;
|
|
823
|
+
}, [a, G, y.birthday]);
|
|
824
|
+
let W = d.delete_button, H = () => g(!0);
|
|
825
|
+
A ? (H = () => ne(), W = d.save_button) : R && (H = () => ae(), W = u.mark_as_complete_button);
|
|
826
|
+
const ne = async () => {
|
|
827
|
+
if (a) {
|
|
828
|
+
const S = a.track_type;
|
|
829
|
+
S !== r.RETIREMENT_TRACK ? await _(a) : S === r.RETIREMENT_TRACK && await i({ ...a, target_amount: a.amount }), o(u.alert_goal_added), b(void 0), S && t?.(S);
|
|
910
830
|
}
|
|
911
|
-
},
|
|
912
|
-
|
|
913
|
-
},
|
|
914
|
-
const
|
|
915
|
-
...
|
|
831
|
+
}, oe = async () => {
|
|
832
|
+
a && (a.track_type !== r.RETIREMENT_TRACK ? await m(a.guid) : a.track_type === r.RETIREMENT_TRACK && await p(a), o(u.alert_goal_deleted), b(void 0));
|
|
833
|
+
}, ae = async () => {
|
|
834
|
+
const S = {
|
|
835
|
+
...a,
|
|
916
836
|
has_been_spent: !0
|
|
917
837
|
};
|
|
918
|
-
await
|
|
838
|
+
await l(S), o(u.alert_goal_completed), b(void 0);
|
|
919
839
|
};
|
|
920
|
-
return /* @__PURE__ */
|
|
840
|
+
return /* @__PURE__ */ c(f, { children: [
|
|
921
841
|
/* @__PURE__ */ e(
|
|
922
|
-
|
|
842
|
+
q,
|
|
923
843
|
{
|
|
924
|
-
ariaLabelClose:
|
|
925
|
-
hasSecondaryAction:
|
|
926
|
-
isOpen: !!
|
|
927
|
-
isPrimaryDisabled: !
|
|
928
|
-
onClose: () =>
|
|
929
|
-
onPrimaryAction:
|
|
930
|
-
primaryColor:
|
|
931
|
-
primaryText:
|
|
844
|
+
ariaLabelClose: d.close_aria,
|
|
845
|
+
hasSecondaryAction: A,
|
|
846
|
+
isOpen: !!a,
|
|
847
|
+
isPrimaryDisabled: !K,
|
|
848
|
+
onClose: () => b(void 0),
|
|
849
|
+
onPrimaryAction: H,
|
|
850
|
+
primaryColor: A || R ? "primary" : "error",
|
|
851
|
+
primaryText: W,
|
|
932
852
|
secondaryColor: "primary",
|
|
933
|
-
title:
|
|
934
|
-
children:
|
|
853
|
+
title: u.goal_details,
|
|
854
|
+
children: a && /* @__PURE__ */ e(Kt, { goal: a })
|
|
935
855
|
}
|
|
936
856
|
),
|
|
937
857
|
/* @__PURE__ */ e(
|
|
938
|
-
|
|
858
|
+
pt,
|
|
939
859
|
{
|
|
940
|
-
copy: { close_aria:
|
|
941
|
-
isOpen:
|
|
860
|
+
copy: { close_aria: d.close_aria, title: u.delete_goal },
|
|
861
|
+
isOpen: E,
|
|
942
862
|
maxWidth: "xs",
|
|
943
|
-
onClose: () =>
|
|
944
|
-
onPrimaryAction:
|
|
863
|
+
onClose: () => g(!1),
|
|
864
|
+
onPrimaryAction: oe,
|
|
945
865
|
primaryColor: "error",
|
|
946
|
-
primaryText:
|
|
947
|
-
children: /* @__PURE__ */ e(
|
|
866
|
+
primaryText: d.delete_button,
|
|
867
|
+
children: /* @__PURE__ */ e(C, { variant: "subtitle1", children: B(u.delete_description, a?.name || "") })
|
|
948
868
|
}
|
|
949
869
|
)
|
|
950
870
|
] });
|
|
951
|
-
}),
|
|
952
|
-
const { onEvent:
|
|
953
|
-
alert:
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
871
|
+
}), Fn = D(({ onBackClick: t, onMenuClick: n, sx: u }) => {
|
|
872
|
+
const { onEvent: d } = Ne(), { isMobile: _ } = he(), { isAccountDataLoaded: i, loadAccountData: m } = j(), { isInitialized: p } = _e(), { goals: s, common: h } = x(), {
|
|
873
|
+
alert: a,
|
|
874
|
+
allGoals: o,
|
|
875
|
+
goals: b,
|
|
876
|
+
isAllGoalDataLoaded: l,
|
|
877
|
+
loadGoalData: y,
|
|
878
|
+
monthlyCashFlowProfile: E,
|
|
879
|
+
setAlert: g,
|
|
880
|
+
retirmentGoals: A
|
|
881
|
+
} = N(), [R, G] = T.useState(0), [K, W] = T.useState(!1), H = E?.amount_allocated_for_savings_goals || 0, ne = E?.amount_allocated_for_debt_goals || 0, oe = E?.amount_allocated_for_retirement_goals || 0;
|
|
961
882
|
Me({
|
|
962
883
|
widgetName: "GoalsWidget",
|
|
963
|
-
isLoaded:
|
|
964
|
-
}),
|
|
965
|
-
|
|
966
|
-
}, []),
|
|
967
|
-
|
|
968
|
-
}, [
|
|
969
|
-
const
|
|
970
|
-
|
|
971
|
-
},
|
|
972
|
-
|
|
973
|
-
},
|
|
974
|
-
|
|
975
|
-
},
|
|
976
|
-
() =>
|
|
977
|
-
[
|
|
884
|
+
isLoaded: l
|
|
885
|
+
}), T.useEffect(() => {
|
|
886
|
+
i || m().finally(), d($.GOALS_VIEW);
|
|
887
|
+
}, []), T.useEffect(() => {
|
|
888
|
+
p && y().finally();
|
|
889
|
+
}, [p]);
|
|
890
|
+
const ae = () => {
|
|
891
|
+
d($.GOALS_CLICK_FILTER);
|
|
892
|
+
}, S = () => {
|
|
893
|
+
W(!0), d($.GOALS_CLICK_ADD);
|
|
894
|
+
}, V = (Q) => {
|
|
895
|
+
W(!1), Q === r.SAVINGS_TRACK ? G(0) : Q === r.DEBT_TRACK ? G(1) : Q === r.RETIREMENT_TRACK && G(2);
|
|
896
|
+
}, M = T.useMemo(
|
|
897
|
+
() => l && o.length === 0,
|
|
898
|
+
[b, l, A]
|
|
978
899
|
);
|
|
979
|
-
if (!
|
|
980
|
-
return /* @__PURE__ */ e(
|
|
981
|
-
const
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
),
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
),
|
|
988
|
-
|
|
989
|
-
|
|
900
|
+
if (!p || !l)
|
|
901
|
+
return /* @__PURE__ */ e(Le, {});
|
|
902
|
+
const J = B(
|
|
903
|
+
_ ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
904
|
+
I(H, "0,0")
|
|
905
|
+
), ie = B(
|
|
906
|
+
_ ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
907
|
+
I(ne, "0,0")
|
|
908
|
+
), Ve = B(
|
|
909
|
+
_ ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
910
|
+
I(oe, "0,0")
|
|
990
911
|
);
|
|
991
|
-
return /* @__PURE__ */
|
|
992
|
-
|
|
912
|
+
return /* @__PURE__ */ c(
|
|
913
|
+
ht,
|
|
993
914
|
{
|
|
994
915
|
actions: [
|
|
995
916
|
{
|
|
996
917
|
iconName: "add",
|
|
997
|
-
label:
|
|
998
|
-
onClick:
|
|
918
|
+
label: s.add_title,
|
|
919
|
+
onClick: S
|
|
999
920
|
}
|
|
1000
921
|
],
|
|
1001
|
-
onAccountsFilterClick:
|
|
922
|
+
onAccountsFilterClick: ae,
|
|
1002
923
|
onBackClick: t,
|
|
1003
|
-
|
|
1004
|
-
|
|
924
|
+
onMenuClick: n,
|
|
925
|
+
sx: u,
|
|
926
|
+
title: s.title,
|
|
1005
927
|
children: [
|
|
1006
|
-
/* @__PURE__ */
|
|
1007
|
-
/* @__PURE__ */
|
|
1008
|
-
|
|
928
|
+
/* @__PURE__ */ c(f, { mx: _ ? 0 : 48, my: 24, children: [
|
|
929
|
+
/* @__PURE__ */ c(
|
|
930
|
+
Fe,
|
|
1009
931
|
{
|
|
1010
|
-
onChange: (
|
|
932
|
+
onChange: (Q, ze) => G(ze),
|
|
1011
933
|
sx: { bgcolor: "background.paper" },
|
|
1012
934
|
textColor: "primary",
|
|
1013
|
-
value:
|
|
935
|
+
value: M ? !1 : R,
|
|
1014
936
|
variant: "fullWidth",
|
|
1015
937
|
children: [
|
|
1016
938
|
/* @__PURE__ */ e(
|
|
1017
|
-
|
|
939
|
+
re,
|
|
1018
940
|
{
|
|
1019
|
-
disabled:
|
|
1020
|
-
label: /* @__PURE__ */ e(
|
|
941
|
+
disabled: M,
|
|
942
|
+
label: /* @__PURE__ */ e(se, { subtitle: J, title: s.tab_saving_title })
|
|
1021
943
|
}
|
|
1022
944
|
),
|
|
1023
945
|
/* @__PURE__ */ e(
|
|
1024
|
-
|
|
946
|
+
re,
|
|
1025
947
|
{
|
|
1026
|
-
disabled:
|
|
1027
|
-
label: /* @__PURE__ */ e(
|
|
948
|
+
disabled: M,
|
|
949
|
+
label: /* @__PURE__ */ e(se, { subtitle: ie, title: s.tab_debt_title })
|
|
1028
950
|
}
|
|
1029
951
|
),
|
|
1030
952
|
/* @__PURE__ */ e(
|
|
1031
|
-
|
|
953
|
+
re,
|
|
1032
954
|
{
|
|
1033
|
-
disabled:
|
|
1034
|
-
label: /* @__PURE__ */ e(
|
|
955
|
+
disabled: M,
|
|
956
|
+
label: /* @__PURE__ */ e(se, { subtitle: Ve, title: s.tab_retirement_title })
|
|
1035
957
|
}
|
|
1036
958
|
)
|
|
1037
959
|
]
|
|
1038
960
|
}
|
|
1039
961
|
),
|
|
1040
|
-
|
|
1041
|
-
|
|
962
|
+
M ? /* @__PURE__ */ e(
|
|
963
|
+
bt,
|
|
1042
964
|
{
|
|
1043
|
-
header:
|
|
965
|
+
header: s.create_goals_header,
|
|
1044
966
|
icon: "trophy",
|
|
1045
|
-
onClick:
|
|
1046
|
-
primaryButton:
|
|
1047
|
-
subText:
|
|
967
|
+
onClick: S,
|
|
968
|
+
primaryButton: s.add_goals_button,
|
|
969
|
+
subText: s.empty_state_subheader,
|
|
1048
970
|
sx: {
|
|
1049
971
|
width: { sm: 432 },
|
|
1050
972
|
".buttons-footer": {
|
|
@@ -1052,67 +974,67 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
1052
974
|
}
|
|
1053
975
|
}
|
|
1054
976
|
}
|
|
1055
|
-
) : /* @__PURE__ */
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
977
|
+
) : /* @__PURE__ */ c(F, { children: [
|
|
978
|
+
R === 0 && /* @__PURE__ */ e(ce, { onAddGoals: S, trackType: r.SAVINGS_TRACK }),
|
|
979
|
+
R === 1 && /* @__PURE__ */ e(ce, { onAddGoals: S, trackType: r.DEBT_TRACK }),
|
|
980
|
+
R === 2 && /* @__PURE__ */ e(ce, { onAddGoals: S, trackType: r.RETIREMENT_TRACK })
|
|
1059
981
|
] })
|
|
1060
982
|
] }),
|
|
1061
|
-
/* @__PURE__ */ e(
|
|
983
|
+
/* @__PURE__ */ e(Mt, { onClose: V }),
|
|
1062
984
|
/* @__PURE__ */ e(
|
|
1063
|
-
|
|
985
|
+
q,
|
|
1064
986
|
{
|
|
1065
|
-
ariaLabelClose:
|
|
1066
|
-
isOpen:
|
|
1067
|
-
onClose: () =>
|
|
1068
|
-
title:
|
|
1069
|
-
children: /* @__PURE__ */ e(
|
|
987
|
+
ariaLabelClose: h.close_aria,
|
|
988
|
+
isOpen: K,
|
|
989
|
+
onClose: () => W(!1),
|
|
990
|
+
title: s.add_goal_title,
|
|
991
|
+
children: /* @__PURE__ */ e(vt, { onClose: V })
|
|
1070
992
|
}
|
|
1071
993
|
),
|
|
1072
|
-
/* @__PURE__ */ e(
|
|
994
|
+
/* @__PURE__ */ e(je, { onClose: () => g(""), open: !!a, children: /* @__PURE__ */ e(Pe, { onClose: () => g(""), severity: "success", variant: "filled", children: a }) })
|
|
1073
995
|
]
|
|
1074
996
|
}
|
|
1075
997
|
);
|
|
1076
|
-
}),
|
|
1077
|
-
const { goals: n } =
|
|
1078
|
-
backgroundColor:
|
|
1079
|
-
color:
|
|
1080
|
-
percentage:
|
|
1081
|
-
projectedText:
|
|
1082
|
-
} =
|
|
1083
|
-
let
|
|
1084
|
-
return t.track_type ===
|
|
1085
|
-
/* @__PURE__ */ e(
|
|
1086
|
-
/* @__PURE__ */
|
|
1087
|
-
/* @__PURE__ */ e(
|
|
1088
|
-
t.projected_to_complete_at && /* @__PURE__ */ e(
|
|
998
|
+
}), Lt = D(({ goal: t }) => {
|
|
999
|
+
const { goals: n } = x(), u = gt(), {
|
|
1000
|
+
backgroundColor: d,
|
|
1001
|
+
color: _,
|
|
1002
|
+
percentage: i,
|
|
1003
|
+
projectedText: m
|
|
1004
|
+
} = ue(n, t), p = Math.round(i * 100);
|
|
1005
|
+
let s = /* @__PURE__ */ e(Ee, {});
|
|
1006
|
+
return t.track_type === r.DEBT_TRACK ? s = /* @__PURE__ */ e(Se, {}) : t.track_type === r.RETIREMENT_TRACK && (s = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ c(f, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
|
|
1007
|
+
/* @__PURE__ */ e(te, { sx: { bgcolor: d, color: _, height: 32, width: 32 }, variant: "rounded", children: s }),
|
|
1008
|
+
/* @__PURE__ */ c(ft, { sx: { width: "100%" }, children: [
|
|
1009
|
+
/* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
|
|
1010
|
+
t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: m })
|
|
1089
1011
|
] }),
|
|
1090
1012
|
/* @__PURE__ */ e(
|
|
1091
|
-
|
|
1013
|
+
yt,
|
|
1092
1014
|
{
|
|
1093
|
-
backgroundStrokeColor:
|
|
1094
|
-
color:
|
|
1095
|
-
percent:
|
|
1015
|
+
backgroundStrokeColor: u.palette.neutral.light,
|
|
1016
|
+
color: u.palette.primary.main,
|
|
1017
|
+
percent: p,
|
|
1096
1018
|
size: 40,
|
|
1097
1019
|
strokeWidth: 3,
|
|
1098
|
-
children: /* @__PURE__ */ e(
|
|
1020
|
+
children: /* @__PURE__ */ e(Y, { fontWeight: 700, variant: "caption", children: `${p}%` })
|
|
1099
1021
|
}
|
|
1100
1022
|
)
|
|
1101
1023
|
] });
|
|
1102
|
-
}), Ot = ({ header: t, subText: n, sx:
|
|
1103
|
-
|
|
1024
|
+
}), Ot = ({ header: t, subText: n, sx: u }) => /* @__PURE__ */ c(
|
|
1025
|
+
f,
|
|
1104
1026
|
{
|
|
1105
1027
|
sx: {
|
|
1106
1028
|
alignItems: "center",
|
|
1107
1029
|
alignSelf: "center",
|
|
1108
1030
|
px: 24,
|
|
1109
|
-
...
|
|
1031
|
+
...u
|
|
1110
1032
|
},
|
|
1111
1033
|
children: [
|
|
1112
|
-
/* @__PURE__ */ e(
|
|
1113
|
-
/* @__PURE__ */ e(
|
|
1034
|
+
/* @__PURE__ */ e(Je, { size: 32 }),
|
|
1035
|
+
/* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, children: t }),
|
|
1114
1036
|
/* @__PURE__ */ e(
|
|
1115
|
-
|
|
1037
|
+
Y,
|
|
1116
1038
|
{
|
|
1117
1039
|
color: "text.secondary",
|
|
1118
1040
|
sx: { fontWeight: 400, maxWidth: { sm: 424 }, textAlign: "center" },
|
|
@@ -1122,49 +1044,47 @@ const Tt = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
1122
1044
|
)
|
|
1123
1045
|
]
|
|
1124
1046
|
}
|
|
1125
|
-
),
|
|
1126
|
-
const { isAccountDataLoaded: n, loadAccountData:
|
|
1047
|
+
), $n = D(({ onCTAClick: t }) => {
|
|
1048
|
+
const { isAccountDataLoaded: n, loadAccountData: u, visibleAccounts: d } = j(), { onEvent: _ } = Ne(), { goals: i } = x(), { isInitialized: m } = _e(), { ongoingGoalsForMicroWidget: p, isAllGoalDataLoaded: s, loadGoalData: h } = N();
|
|
1127
1049
|
Me({
|
|
1128
1050
|
widgetName: "GoalsMicroWidget",
|
|
1129
|
-
isLoaded:
|
|
1130
|
-
}),
|
|
1131
|
-
n ||
|
|
1132
|
-
}, []),
|
|
1133
|
-
|
|
1134
|
-
state:
|
|
1051
|
+
isLoaded: s
|
|
1052
|
+
}), T.useEffect(() => {
|
|
1053
|
+
n || u().finally();
|
|
1054
|
+
}, []), T.useEffect(() => {
|
|
1055
|
+
m && (h().finally(), _($.GOALS_LOAD_WIDGET, {
|
|
1056
|
+
state: d?.length ? "default" : "zeroState"
|
|
1135
1057
|
}));
|
|
1136
|
-
}, [
|
|
1137
|
-
const
|
|
1138
|
-
() =>
|
|
1139
|
-
[
|
|
1140
|
-
),
|
|
1141
|
-
|
|
1142
|
-
|
|
1058
|
+
}, [m]);
|
|
1059
|
+
const a = T.useMemo(
|
|
1060
|
+
() => s && p.length === 0,
|
|
1061
|
+
[p, s]
|
|
1062
|
+
), o = () => {
|
|
1063
|
+
_(
|
|
1064
|
+
a ? $.GOALS_CLICK_GET_STARTED : $.GOALS_CLICK_VIEW_DETAILS
|
|
1143
1065
|
), t();
|
|
1144
1066
|
};
|
|
1145
|
-
return !
|
|
1067
|
+
return !m || !s ? /* @__PURE__ */ e(Le, {}) : /* @__PURE__ */ e(
|
|
1146
1068
|
At,
|
|
1147
1069
|
{
|
|
1148
1070
|
className: "mx-goals-microwidget",
|
|
1149
|
-
ctaLabel:
|
|
1150
|
-
onCTAClick:
|
|
1151
|
-
title:
|
|
1152
|
-
children:
|
|
1071
|
+
ctaLabel: a ? i.get_started : i.view_details,
|
|
1072
|
+
onCTAClick: o,
|
|
1073
|
+
title: i.title,
|
|
1074
|
+
children: a ? /* @__PURE__ */ e(
|
|
1153
1075
|
Ot,
|
|
1154
1076
|
{
|
|
1155
|
-
header:
|
|
1156
|
-
subText:
|
|
1077
|
+
header: i.create_goals_header,
|
|
1078
|
+
subText: i.micro_zero_state_description
|
|
1157
1079
|
}
|
|
1158
|
-
) : /* @__PURE__ */ e(
|
|
1159
|
-
/* @__PURE__ */ e(
|
|
1160
|
-
|
|
1161
|
-
] },
|
|
1080
|
+
) : /* @__PURE__ */ e(f, { sx: { justifyContent: "space-between" }, children: p.map((b, l) => /* @__PURE__ */ c(T.Fragment, { children: [
|
|
1081
|
+
/* @__PURE__ */ e(Lt, { goal: b }),
|
|
1082
|
+
l !== p.length - 1 && /* @__PURE__ */ e(v, {})
|
|
1083
|
+
] }, b.guid)) })
|
|
1162
1084
|
}
|
|
1163
1085
|
);
|
|
1164
1086
|
});
|
|
1165
1087
|
export {
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
Hn as GoalsMicroWidget,
|
|
1169
|
-
zn as GoalsWidget
|
|
1088
|
+
$n as GoalsMicroWidget,
|
|
1089
|
+
Fn as GoalsWidget
|
|
1170
1090
|
};
|