@mx-cartographer/experiences 8.0.0-alpha.test2 → 8.0.0-alpha.v2
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 +335 -0
- package/README.md +5 -3
- package/dist/{Account-CMjOp7S2.mjs → Account-BiB1F8lL.mjs} +2 -2
- package/dist/{Account-BIKn4XEZ.mjs → Account-DuOz1a27.mjs} +1 -1
- package/dist/{AccountApi-DgZ8ILj1.mjs → AccountApi-ChQr5PAZ.mjs} +1 -1
- package/dist/AccountDetailsHeader-D9gbTbUt.mjs +95 -0
- package/dist/{AccountFields-DuFtmuud.mjs → AccountFields-CxqONzjY.mjs} +12 -12
- package/dist/AccountListItem-D9WJDbZ1.mjs +94 -0
- package/dist/{AccountStore-Cq_w2Hfb.mjs → AccountStore-DpYvNnql.mjs} +15 -9
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Accounts-o7ohkngR.mjs +27 -0
- package/dist/{Analytics-i5h6BxR1.mjs → Analytics-BYItVAe-.mjs} +10 -0
- package/dist/{BeatApi-De2IaqH2.mjs → BeatApi-EFHXULDx.mjs} +1 -1
- package/dist/{BeatStore-D_NYuBSz.mjs → BeatStore-C6CAT-ce.mjs} +1 -1
- package/dist/BudgetUtil-CLhRnCoX.mjs +479 -0
- package/dist/CashflowStore-CeAzChyD.mjs +91 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-CzRxYpiP.mjs → CategorySelectorDrawer-Dc9Widy9.mjs} +118 -110
- package/dist/{CategoryStore-V-0d9oje.mjs → CategoryStore-FTxUbn0f.mjs} +3 -3
- package/dist/{CategoryUtil-DB-9JMbi.mjs → CategoryUtil-BVixr0d5.mjs} +4 -4
- package/dist/Connect-eYIWqCEr.mjs +39 -0
- package/dist/ConnectDrawer-C0wjwcJt.mjs +58 -0
- package/dist/{ConnectionsDrawer-DMBBzlIJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +10 -9
- package/dist/CurrencyInput-DuMktPu3.mjs +85 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CA-E5N_y.mjs} +1 -1
- package/dist/{DateFormats-Cs-NbEZ7.mjs → DateFormats-BMpMrZpW.mjs} +1 -1
- package/dist/{DateUtil-CVXVMbjf.mjs → DateUtil-wcYTmDRD.mjs} +1 -1
- package/dist/{DebtsStore-Dv_T7Dts.mjs → DebtsStore-BZqNLaqd.mjs} +3 -3
- package/dist/Dialog-Ck34yr-d.mjs +63 -0
- package/dist/{Donut-DKY8mL3P.mjs → Donut-CpxJlVvJ.mjs} +29 -27
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-Bbe4AMB1.mjs} +14 -14
- package/dist/{ExportCsvAction-Cc14QGA9.mjs → ExportCsvAction-ErKh7wJ2.mjs} +4 -4
- package/dist/{Fetch-DecPFeGU.mjs → Fetch-B6tMJC1r.mjs} +2 -1
- package/dist/{FinstrongStore-DW7-LvAh.mjs → FinstrongStore-BQxXxxYD.mjs} +129 -129
- package/dist/GlobalAccountFilter-B73Pw1hJ.mjs +237 -0
- package/dist/Goal-0loDagc5.mjs +6 -0
- package/dist/GoalStore-fgXt--2Y.mjs +418 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CgpJK03Q.mjs → Help-B8mD4aLJ.mjs} +6 -6
- package/dist/{Help-DOPJteew.mjs → Help-D-laTbKu.mjs} +544 -493
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-EAr5ox5U.mjs +612 -0
- package/dist/{ListItemAction-engf-T9W.mjs → ListItemAction-4KB7P75M.mjs} +2 -2
- package/dist/Loader-D3rjKx72.mjs +21 -0
- package/dist/Localization-CPkpIwIx.mjs +37 -0
- package/dist/{ManageIncome-BVqHHIO7.mjs → ManageIncome-Cc-wba0I.mjs} +118 -113
- package/dist/{MerchantStore-WvZ4gnQe.mjs → MerchantStore-BzGi4JAZ.mjs} +1 -1
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +45 -0
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +66 -0
- package/dist/{NetWorthStore-B6ziBtaH.mjs → NetWorthStore-BqZ44-4M.mjs} +5 -5
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-CEzQSKfg.mjs → NotificationSettings-D7VqsrZy.mjs} +160 -159
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-D_e8zo5M.mjs} +28 -21
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting-QCaNwbjv.mjs} +1 -1
- package/dist/{Transaction-C8QRYhYc.mjs → OnClickEvents-CseHDZ94.mjs} +32 -25
- package/dist/{OriginalBalanceAction-CYqr8z8w.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +10 -10
- package/dist/{RecurringSettings-rEotGPcM.mjs → RecurringSettings-BN9H5ALr.mjs} +4 -4
- package/dist/RecurringTransactions-BCJp-Nap.mjs +297 -0
- package/dist/{RecurringTransactionsStore-DpzLX8E8.mjs → RecurringTransactionsStore-CkMA7gY3.mjs} +11 -10
- package/dist/RepeatingTransaction-DF4vJn_v.mjs +7 -0
- package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-DZFp78fJ.mjs} +12 -12
- package/dist/SearchBox-CwDgvWVJ.mjs +48 -0
- package/dist/{SettingsStore-ImYpLCSK.mjs → SettingsStore-BoIoiRLj.mjs} +3 -3
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +5 -5
- package/dist/{SpendingData-CI_C9xln.mjs → SpendingData-Bz1bCWAs.mjs} +4 -4
- package/dist/SpendingLegend-BgjazduU.mjs +193 -0
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/StatusIndicator-4tWnjeKS.mjs +264 -0
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/ToggleListItem-BLu_fWA2.mjs +90 -0
- package/dist/Transaction-Cn5_iFm0.mjs +5 -0
- package/dist/{TransactionApi-CjBoLleL.mjs → TransactionApi-Ck5Ua-7F.mjs} +1 -1
- package/dist/TransactionDetails-D1I1XEsT.mjs +1469 -0
- package/dist/{TransactionStore-CEehNrKo.mjs → TransactionStore-Bx9euVrY.mjs} +195 -177
- package/dist/{TrendsStore-ncmbS9eE.mjs → TrendsStore-CYdTo7cN.mjs} +10 -10
- package/dist/ViewMoreMicroCard-D24H9kDm.mjs +1291 -0
- package/dist/{WidgetContainer-DFwVgavi.mjs → WidgetContainer-B7xDq2bM.mjs} +47 -46
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/api/AccountApi.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/index.es.js +459 -368
- package/dist/accounts/stores/AccountStore.d.ts +2 -1
- package/dist/accounts/stores/UiStore.d.ts +1 -1
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +1 -1
- package/dist/accounts/utils/Accounts.d.ts +2 -2
- 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/api/BudgetsApi.d.ts +5 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +4 -1
- 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.es.js +851 -865
- package/dist/budgets/store/BudgetsStore.d.ts +15 -1
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/budgets/utils/BudgetUtil.d.ts +6 -1
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/api/CashflowApi.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/index.es.js +290 -288
- package/dist/cashflow/stores/UiStore.d.ts +1 -1
- 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/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -1
- package/dist/categories/util/CategoryUtil.d.ts +1 -1
- package/dist/common/api/AnalyticsApi.d.ts +1 -1
- package/dist/common/api/AppDataApi.d.ts +1 -1
- package/dist/common/api/BeatApi.d.ts +1 -1
- package/dist/common/api/CategoryApi.d.ts +1 -1
- package/dist/common/api/GlobalCopyApi.d.ts +1 -1
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -1
- package/dist/common/api/NotificationApi.d.ts +1 -1
- package/dist/common/api/ScheduledPaymentsApi.d.ts +1 -1
- package/dist/common/api/UserApi.d.ts +1 -1
- package/dist/common/components/CurrencyDialog.d.ts +1 -1
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- 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/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +10 -0
- package/dist/common/constants/ApiEndpoints.d.ts +1 -0
- package/dist/common/constants/DefaultConfig.d.ts +1 -1
- 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 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +4 -4
- package/dist/common/hooks/index.d.ts +1 -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/index.d.ts +0 -1
- package/dist/common/index.es.js +625 -860
- package/dist/common/stores/AppDataStore.d.ts +3 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +4 -2
- package/dist/common/stores/GlobalUiStore.d.ts +3 -3
- package/dist/common/stores/UserStore.d.ts +1 -1
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +1 -1
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/Categories.d.ts +1 -1
- package/dist/common/utils/Fetch.d.ts +1 -1
- package/dist/common/utils/Localization.d.ts +9 -1
- package/dist/common/utils/Theme.d.ts +3 -3
- package/dist/common/utils/User.d.ts +1 -1
- package/dist/common/utils/index.d.ts +1 -1
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.es.js +41 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +1 -0
- 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/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/{common → core}/types/index.d.ts +1 -2
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -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/dashboard/index.es.js +46 -45
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +5 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
- package/dist/debts/index.es.js +705 -646
- package/dist/debts/store/DebtsStore.d.ts +2 -1
- package/dist/debts/utils/DebtStore.d.ts +1 -1
- package/dist/debts/utils/DebtsWidget.d.ts +7 -1
- package/dist/debts/utils/shared.d.ts +1 -1
- package/dist/{exportTransactionsToCSV-CGnrndmA.mjs → exportTransactionsToCSV-MCYH_zzN.mjs} +5 -5
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -1
- 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.es.js +161 -159
- package/dist/finstrong/stores/FinstrongStore.d.ts +3 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -3
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/api/GoalApi.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 +1 -1
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.es.js +445 -419
- package/dist/goals/stores/GoalStore.d.ts +2 -1
- package/dist/goals/util/GoalsUtil.d.ts +1 -1
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/api/HelpApi.d.ts +1 -1
- 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 +8 -8
- package/dist/help/store/HelpStore.d.ts +5 -4
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +2 -2
- package/dist/{hooks-CBl85iRr.mjs → hooks-BxkfR-Ff.mjs} +12 -12
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +4 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +1 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +1 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +2 -1
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +3 -1
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +2 -1
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +17 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +1 -1
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/index.es.js +1361 -1081
- package/dist/insights/store/BeatStore.d.ts +1 -1
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/api/HoldingApi.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +258 -258
- package/dist/investments/stores/HoldingStore.d.ts +2 -1
- package/dist/investments/util/InvestmentUtil.d.ts +1 -1
- package/dist/merchants/api/MerchantApi.d.ts +1 -1
- package/dist/merchants/index.es.js +16 -16
- package/dist/merchants/stores/MerchantStore.d.ts +2 -1
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -1
- 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 +1 -1
- package/dist/microinsights/carousel/BeatList.d.ts +1 -1
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -1
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +1 -1
- 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.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +1 -1
- package/dist/microinsights/stores/CopyStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
- 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/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.es.js +181 -174
- package/dist/networth/stores/NetWorthStore.d.ts +2 -1
- package/dist/networth/types/NetWorth.d.ts +1 -1
- package/dist/networth/utils/NetWorthUtils.d.ts +1 -1
- 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.es.js +104 -92
- package/dist/notifications/stores/NotificationStore.d.ts +2 -1
- package/dist/notifications/utils/NotificationUtils.d.ts +2 -1
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -1
- 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.es.js +477 -451
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -1
- package/dist/recurringtransactions/util/RecurringTransactions.d.ts +1 -1
- package/dist/repeatingTransactions-DHIG94pi.mjs +4 -0
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +1 -1
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/api/SettingsApi.d.ts +1 -2
- 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.es.js +314 -323
- package/dist/settings/stores/SettingsStore.d.ts +3 -2
- package/dist/settings/util/Notifications.d.ts +1 -1
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +167 -166
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/api/TransactionApi.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -1
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +1 -1
- 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/HideAction.d.ts +1 -1
- 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 +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -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/constants/Transaction.d.ts +1 -1
- package/dist/transactions/index.es.js +195 -187
- package/dist/transactions/stores/TransactionStore.d.ts +2 -1
- package/dist/transactions/stores/UiStore.d.ts +1 -1
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +1 -1
- package/dist/transactions/utils/buildDetailedTransactions.d.ts +2 -2
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +1 -1
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +1 -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/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +1 -1
- package/dist/trends/index.es.js +817 -764
- package/dist/trends/stores/TrendsStore.d.ts +2 -1
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +1 -1
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +1 -1
- package/dist/{useAccountDisplayName-b2xxcD0C.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
- package/dist/{useCombineEvents-ARuNN9Xh.mjs → useCombineEvents-Bqojlv8q.mjs} +3 -3
- package/dist/{useInsightsEnabled-Dd-AfsqC.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DmNCCLa-.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
- package/package.json +17 -10
- package/dist/AccountDetailsHeader-Bn2E0Qjk.mjs +0 -95
- package/dist/AccountListItem-k63LpVBs.mjs +0 -90
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BudgetUtil-BZiGckNY.mjs +0 -238
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CurrencyInput-BEB3FS70.mjs +0 -85
- package/dist/Dialog-jmgGw5WA.mjs +0 -58
- package/dist/GlobalAccountFilter-CIF-aT3F.mjs +0 -316
- package/dist/GoalStore-BjHKNAVm.mjs +0 -421
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-CnscUFUG.mjs +0 -580
- package/dist/Loader-icSc5MlE.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/MicroWidgetContainer-CBRk9KG-.mjs +0 -45
- package/dist/MiniWidgetContainer-CXQcSWSl.mjs +0 -56
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/RecurringTransactions-DlKYwpfK.mjs +0 -296
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SpendingLegend-Bld71d7q.mjs +0 -193
- package/dist/StatusIndicator-CNMQeYyJ.mjs +0 -55
- package/dist/TransactionDetails-Lvt9GCU5.mjs +0 -1194
- package/dist/TransactionList-BDffKJMO.mjs +0 -204
- package/dist/User-DS18cMaz.mjs +0 -237
- package/dist/ViewMoreMicroCard-YHRLl08A.mjs +0 -1152
- 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/types/SpendingPlan.d.ts +0 -44
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- /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/Client.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/Widgets.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/GoalsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InsightsFeedCopy.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/TransactionsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/TrendsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
package/dist/goals/index.es.js
CHANGED
|
@@ -1,88 +1,89 @@
|
|
|
1
|
-
import { g as de,
|
|
2
|
-
import {
|
|
1
|
+
import { g as de, a as Ve, C as Ae, b as ze } from "../GoalStore-fgXt--2Y.mjs";
|
|
2
|
+
import { G as Yn, c as Zn } from "../GoalStore-fgXt--2Y.mjs";
|
|
3
3
|
import { jsxs as c, jsx as e, Fragment as $ } from "react/jsx-runtime";
|
|
4
4
|
import T from "react";
|
|
5
5
|
import { observer as D } from "mobx-react-lite";
|
|
6
|
-
import
|
|
6
|
+
import Pe from "@mui/material/Alert";
|
|
7
7
|
import je from "@mui/material/Snackbar";
|
|
8
8
|
import y from "@mui/material/Stack";
|
|
9
|
-
import
|
|
9
|
+
import ie from "@mui/material/Tab";
|
|
10
10
|
import Fe from "@mui/material/Tabs";
|
|
11
|
-
import { Text as C,
|
|
12
|
-
import
|
|
11
|
+
import { Text as C, H3 as ce, P as q, Icon as $e, InstitutionLogo as te, H2 as Te } from "@mxenabled/mxui";
|
|
12
|
+
import me from "@mui/material/Button";
|
|
13
13
|
import Ce from "@mui/material/Card";
|
|
14
|
-
import
|
|
14
|
+
import xe from "@mui/material/CardActionArea";
|
|
15
15
|
import Re from "@mui/material/CardContent";
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { Payments as
|
|
20
|
-
import {
|
|
21
|
-
import { u as
|
|
22
|
-
import {
|
|
23
|
-
import { f as I } from "../NumberFormatting-
|
|
16
|
+
import fe from "@mui/material/Unstable_Grid2";
|
|
17
|
+
import oe from "@mui/material/Avatar";
|
|
18
|
+
import He from "@mui/material/CardHeader";
|
|
19
|
+
import { Payments as Se, NoteStack as Ee, Person as ve, ArrowUpwardAlt as Ue, CheckCircle as Ye, ChevronRight as V, Icon as ye, ExpandLess as Ze, ExpandMore as qe, AddBox as Ie, Trophy as Je } from "@mxenabled/mx-icons";
|
|
20
|
+
import { u as x, k as G, b as ue, a as _e, d as P, o as Ge, g as Ne } from "../hooks-BxkfR-Ff.mjs";
|
|
21
|
+
import { u as pe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
22
|
+
import { T as r, G as le, M as Z } from "../Goal-0loDagc5.mjs";
|
|
23
|
+
import { f as I } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
24
|
+
import { S as Qe } from "../StatusBar-BK_uYHAB.mjs";
|
|
24
25
|
import v from "@mui/material/Divider";
|
|
25
26
|
import L from "@mui/material/List";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
27
|
+
import { L as J } from "../ListItemAction-4KB7P75M.mjs";
|
|
28
|
+
import { C as ke } from "../CurrencyInput-DuMktPu3.mjs";
|
|
28
29
|
import { fromUnixTime as ne } from "date-fns/fromUnixTime";
|
|
29
|
-
import
|
|
30
|
+
import Xe from "@mui/material/IconButton";
|
|
30
31
|
import k from "@mui/material/ListItem";
|
|
31
|
-
import
|
|
32
|
+
import z from "@mui/material/ListItemAvatar";
|
|
32
33
|
import M from "@mui/material/ListItemButton";
|
|
33
34
|
import w from "@mui/material/ListItemText";
|
|
34
|
-
import { b as
|
|
35
|
-
import { f as
|
|
36
|
-
import { D as
|
|
35
|
+
import { b as W } from "../Localization-CPkpIwIx.mjs";
|
|
36
|
+
import { f as he, D as be } from "../DateFormats-BMpMrZpW.mjs";
|
|
37
|
+
import { D as Q } from "../Drawer-Bbe4AMB1.mjs";
|
|
37
38
|
import { g as we } from "../AccountDisplayName-CO7z3v99.mjs";
|
|
38
39
|
import et from "@mui/material/Collapse";
|
|
39
40
|
import tt from "@mui/material/ListItemIcon";
|
|
40
41
|
import nt from "@mui/material/Checkbox";
|
|
41
|
-
import { A as
|
|
42
|
-
import { u as
|
|
42
|
+
import { A as ge } from "../Account-BiB1F8lL.mjs";
|
|
43
|
+
import { u as ot } from "../useAccountDisplayName-DKwT1mWv.mjs";
|
|
43
44
|
import De from "@mui/material/TextField";
|
|
44
|
-
import { M as
|
|
45
|
+
import { M as at, I as it, O as rt } from "../OriginalBalanceAction-DjpvVVFz.mjs";
|
|
45
46
|
import { getUnixTime as st } from "date-fns/getUnixTime";
|
|
46
47
|
import { isValid as ct } from "date-fns/isValid";
|
|
47
48
|
import { AdapterDateFns as lt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
48
49
|
import { DatePicker as dt } from "@mui/x-date-pickers";
|
|
49
50
|
import { LocalizationProvider as mt } from "@mui/x-date-pickers/LocalizationProvider";
|
|
50
|
-
import { D as
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import { W as
|
|
51
|
+
import { D as ut } from "../Dialog-Ck34yr-d.mjs";
|
|
52
|
+
import { u as Ke } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
53
|
+
import { A as H } from "../Analytics-BYItVAe-.mjs";
|
|
54
|
+
import { L as Me } from "../Loader-D3rjKx72.mjs";
|
|
55
|
+
import { W as _t } from "../WidgetContainer-B7xDq2bM.mjs";
|
|
55
56
|
import { E as pt } from "../EmptyState-DHAkGsjk.mjs";
|
|
56
57
|
import ht from "@mui/material/Stack/Stack";
|
|
57
58
|
import bt from "@mui/material/Box";
|
|
58
|
-
import
|
|
59
|
-
import { S as yt } from "../SingleSegmentDonut-
|
|
60
|
-
import { M as
|
|
61
|
-
function
|
|
59
|
+
import ft from "@mui/material/styles/useTheme";
|
|
60
|
+
import { S as yt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
61
|
+
import { M as gt } from "../MicroWidgetContainer-B_EnfvCq.mjs";
|
|
62
|
+
function re({ title: t, subtitle: n }) {
|
|
62
63
|
return /* @__PURE__ */ c(y, { children: [
|
|
63
|
-
/* @__PURE__ */ e(C, { bold: !0, variant: "
|
|
64
|
-
/* @__PURE__ */ e(C, { sx: { fontWeight: 400 }, variant: "
|
|
64
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t }),
|
|
65
|
+
/* @__PURE__ */ e(C, { sx: { fontWeight: 400 }, variant: "body1", children: n })
|
|
65
66
|
] });
|
|
66
67
|
}
|
|
67
68
|
const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
68
69
|
/(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
|
|
69
70
|
"$1$2$3"
|
|
70
71
|
) : I(t, "0,0.00"), Le = D(
|
|
71
|
-
({ goal: t, isInDrawer: n = !1, onClick:
|
|
72
|
-
const { goals: l } =
|
|
72
|
+
({ goal: t, isInDrawer: n = !1, onClick: u }) => {
|
|
73
|
+
const { goals: l } = x(), { isMobile: _, isTablet: i } = pe(), d = _ || i, {
|
|
73
74
|
backgroundColor: s,
|
|
74
75
|
color: p,
|
|
75
76
|
percentage: h,
|
|
76
|
-
percentageText:
|
|
77
|
-
projectedText:
|
|
78
|
-
} = de(l, t), b = t.track_type ===
|
|
77
|
+
percentageText: a,
|
|
78
|
+
projectedText: o
|
|
79
|
+
} = de(l, t), b = t.track_type === r.DEBT_TRACK ? t.initial_amount : t.amount, m = [
|
|
79
80
|
{
|
|
80
81
|
color: s,
|
|
81
82
|
percentage: `${h}`
|
|
82
83
|
}
|
|
83
84
|
];
|
|
84
|
-
let
|
|
85
|
-
return t.track_type ===
|
|
85
|
+
let g = /* @__PURE__ */ e(Se, {});
|
|
86
|
+
return t.track_type === r.DEBT_TRACK ? g = /* @__PURE__ */ e(Ee, {}) : t.track_type === r.RETIREMENT_TRACK && (g = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
|
|
86
87
|
Ce,
|
|
87
88
|
{
|
|
88
89
|
elevation: 2,
|
|
@@ -92,23 +93,48 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
92
93
|
outlineColor: "primary.main"
|
|
93
94
|
}
|
|
94
95
|
},
|
|
95
|
-
children: /* @__PURE__ */ c(
|
|
96
|
+
children: /* @__PURE__ */ c(xe, { disabled: !u, onClick: u, children: [
|
|
96
97
|
/* @__PURE__ */ e(
|
|
97
|
-
|
|
98
|
+
He,
|
|
98
99
|
{
|
|
99
|
-
avatar: /* @__PURE__ */ e(
|
|
100
|
-
subheader: /* @__PURE__ */ e(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
100
|
+
avatar: /* @__PURE__ */ e(oe, { sx: { bgcolor: s, color: p, height: 48, width: 48 }, variant: "rounded", children: g }),
|
|
101
|
+
subheader: /* @__PURE__ */ e(
|
|
102
|
+
C,
|
|
103
|
+
{
|
|
104
|
+
sx: {
|
|
105
|
+
fontWeight: 700,
|
|
106
|
+
fontSize: n || d ? "18px" : "23px",
|
|
107
|
+
lineHeight: n || d ? "24px" : "32px"
|
|
108
|
+
},
|
|
109
|
+
children: `${I(t.current_amount, d ? "0,0" : "0,0.00")} / ${At(
|
|
110
|
+
b,
|
|
111
|
+
d
|
|
112
|
+
)}`
|
|
113
|
+
}
|
|
114
|
+
),
|
|
115
|
+
sx: { alignItems: "flex-start", "& .MuiCardHeader-content": { minWidth: 0 } },
|
|
116
|
+
title: /* @__PURE__ */ e(
|
|
117
|
+
C,
|
|
118
|
+
{
|
|
119
|
+
color: "text.secondary",
|
|
120
|
+
fontWeight: 400,
|
|
121
|
+
sx: {
|
|
122
|
+
fontSize: "15px",
|
|
123
|
+
lineHeight: "20px",
|
|
124
|
+
whiteSpace: "normal",
|
|
125
|
+
overflowWrap: "break-word"
|
|
126
|
+
},
|
|
127
|
+
variant: "h4",
|
|
128
|
+
children: t.name
|
|
129
|
+
}
|
|
130
|
+
)
|
|
105
131
|
}
|
|
106
132
|
),
|
|
107
133
|
/* @__PURE__ */ e(Re, { sx: { pt: 0 }, children: /* @__PURE__ */ c(y, { gap: 6, children: [
|
|
108
|
-
/* @__PURE__ */ e(
|
|
134
|
+
/* @__PURE__ */ e(Qe, { data: m, height: 24 }),
|
|
109
135
|
/* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
110
|
-
/* @__PURE__ */ e(C, { color: "text.secondary", variant: "
|
|
111
|
-
t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "
|
|
136
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: a }),
|
|
137
|
+
t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: o })
|
|
112
138
|
] })
|
|
113
139
|
] }) })
|
|
114
140
|
] })
|
|
@@ -116,28 +142,28 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
116
142
|
);
|
|
117
143
|
}
|
|
118
144
|
), Tt = D(({ trackType: t }) => {
|
|
119
|
-
const { goals: n } =
|
|
120
|
-
let
|
|
121
|
-
return t ===
|
|
145
|
+
const { goals: n } = x(), { setAlert: u, monthlyCashFlowProfile: l, updateMonthlyCashFlowProfile: _ } = G(), i = T.useMemo(() => {
|
|
146
|
+
let a = 0;
|
|
147
|
+
return t === r.SAVINGS_TRACK ? a = l?.amount_allocated_for_savings_goals || 0 : t === r.DEBT_TRACK ? a = l?.amount_allocated_for_debt_goals || 0 : t === r.RETIREMENT_TRACK && (a = l?.amount_allocated_for_retirement_goals || 0), a;
|
|
122
148
|
}, [l]);
|
|
123
149
|
T.useEffect(() => {
|
|
124
|
-
s(
|
|
125
|
-
}, [
|
|
126
|
-
const [d, s] = T.useState(
|
|
150
|
+
s(i);
|
|
151
|
+
}, [i]);
|
|
152
|
+
const [d, s] = T.useState(i), p = d < 0 || d > 99999999, h = async () => {
|
|
127
153
|
if (l) {
|
|
128
|
-
const
|
|
129
|
-
t ===
|
|
154
|
+
const a = { ...l };
|
|
155
|
+
t === r.SAVINGS_TRACK ? a.amount_allocated_for_savings_goals = d : t === r.DEBT_TRACK ? a.amount_allocated_for_debt_goals = d : t === r.RETIREMENT_TRACK && (a.amount_allocated_for_retirement_goals = d), await _(a), u(n.alert_contribution_updated);
|
|
130
156
|
}
|
|
131
157
|
};
|
|
132
158
|
return /* @__PURE__ */ e(y, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
|
|
133
|
-
|
|
159
|
+
J,
|
|
134
160
|
{
|
|
135
161
|
isSaveDisabled: !d || isNaN(d),
|
|
136
162
|
label: n.contribution_label,
|
|
137
|
-
onCancel: () => s(
|
|
163
|
+
onCancel: () => s(i),
|
|
138
164
|
onSave: h,
|
|
139
165
|
primaryText: n.contribution_label,
|
|
140
|
-
secondaryText: I(
|
|
166
|
+
secondaryText: I(i, "0,0.00"),
|
|
141
167
|
children: /* @__PURE__ */ e(
|
|
142
168
|
ke,
|
|
143
169
|
{
|
|
@@ -146,22 +172,22 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
146
172
|
error: p,
|
|
147
173
|
fullWidth: !0,
|
|
148
174
|
minAmount: 0,
|
|
149
|
-
setAmount: (
|
|
150
|
-
sx: { ".MuiTypography-
|
|
175
|
+
setAmount: (a) => s(isNaN(Number(a)) ? d : Number(a)),
|
|
176
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
151
177
|
}
|
|
152
178
|
)
|
|
153
179
|
}
|
|
154
180
|
) });
|
|
155
|
-
}), Ct = ({ goal: t, index: n, onUpClick:
|
|
156
|
-
const { goals: l } =
|
|
181
|
+
}), Ct = ({ goal: t, index: n, onUpClick: u }) => {
|
|
182
|
+
const { goals: l } = x(), { percentage: _ } = de(l, t), i = t.goal_type === le.KEEP_BALANCE_BELOW || t.has_been_spent ? l.goal_completed : W(l.goal_percentage_reached, `${_ * 100}`);
|
|
157
183
|
return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
|
|
158
184
|
M,
|
|
159
185
|
{
|
|
160
186
|
disableRipple: !0,
|
|
161
187
|
sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
|
|
162
188
|
children: [
|
|
163
|
-
t.track_type !==
|
|
164
|
-
|
|
189
|
+
t.track_type !== r.RETIREMENT_TRACK && /* @__PURE__ */ e(
|
|
190
|
+
z,
|
|
165
191
|
{
|
|
166
192
|
sx: {
|
|
167
193
|
alignItems: "center",
|
|
@@ -169,97 +195,97 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
169
195
|
justifyContent: "center",
|
|
170
196
|
".MuiAvatar-root": { height: "16px", width: "16px" }
|
|
171
197
|
},
|
|
172
|
-
children: t.track_type ===
|
|
198
|
+
children: t.track_type === r.SAVINGS_TRACK ? /* @__PURE__ */ e(Xe, { onClick: () => u?.(t), children: /* @__PURE__ */ e(Ue, { color: "primary", size: 24 }) }) : /* @__PURE__ */ e(oe, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(C, { bold: !0, variant: "caption", children: n + 1 }) })
|
|
173
199
|
}
|
|
174
200
|
),
|
|
175
|
-
/* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "
|
|
201
|
+
/* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "body1" }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
176
202
|
/* @__PURE__ */ c(y, { sx: { maxWidth: "70%" }, children: [
|
|
177
|
-
/* @__PURE__ */ e(C, { bold: !0, variant: "
|
|
178
|
-
/* @__PURE__ */ e(C, { variant: "
|
|
203
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.name }),
|
|
204
|
+
/* @__PURE__ */ e(C, { variant: "caption", children: t.is_complete ? i : W(
|
|
179
205
|
l.goal_projection,
|
|
180
|
-
|
|
206
|
+
he(
|
|
181
207
|
ne(t.projected_to_complete_at || 0),
|
|
182
|
-
|
|
208
|
+
be.MONTH_SHORT_YEAR
|
|
183
209
|
)
|
|
184
210
|
) })
|
|
185
211
|
] }),
|
|
186
|
-
/* @__PURE__ */ e(C, { bold: !0, variant: "
|
|
212
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(t.amount, "0,0.00") })
|
|
187
213
|
] }) })
|
|
188
214
|
]
|
|
189
215
|
}
|
|
190
216
|
) });
|
|
191
|
-
},
|
|
192
|
-
const { goals: n } =
|
|
217
|
+
}, xt = ({ goal: t }) => {
|
|
218
|
+
const { goals: n } = x();
|
|
193
219
|
return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
|
|
194
220
|
M,
|
|
195
221
|
{
|
|
196
222
|
disableRipple: !0,
|
|
197
223
|
sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
|
|
198
224
|
children: [
|
|
199
|
-
/* @__PURE__ */ e(
|
|
200
|
-
/* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "
|
|
225
|
+
/* @__PURE__ */ e(z, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ye, { color: "success", filled: !0, size: 20 }) }),
|
|
226
|
+
/* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "body1" }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
201
227
|
/* @__PURE__ */ c(y, { children: [
|
|
202
|
-
/* @__PURE__ */ e(C, { bold: !0, variant: "
|
|
203
|
-
/* @__PURE__ */ e(C, { variant: "
|
|
228
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: t.name }),
|
|
229
|
+
/* @__PURE__ */ e(C, { variant: "caption", children: W(
|
|
204
230
|
n.completed_label,
|
|
205
|
-
|
|
231
|
+
he(
|
|
206
232
|
ne(t.completed_at || 0),
|
|
207
|
-
|
|
233
|
+
be.MONTH_SHORT_YEAR
|
|
208
234
|
)
|
|
209
235
|
) })
|
|
210
236
|
] }),
|
|
211
|
-
/* @__PURE__ */ e(C, { bold: !0, variant: "
|
|
237
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(t.amount, "0,0.00") })
|
|
212
238
|
] }) })
|
|
213
239
|
]
|
|
214
240
|
}
|
|
215
241
|
) }, t.guid);
|
|
216
242
|
}, Rt = ({ trackType: t }) => {
|
|
217
|
-
const { goals: n, common:
|
|
218
|
-
(
|
|
243
|
+
const { goals: n, common: u } = x(), { loadGoals: l, orderedGoals: _, reorderGoals: i } = G(), d = _.filter((f) => f.track_type === t), s = d.filter(
|
|
244
|
+
(f) => f.track_type === r.SAVINGS_TRACK && !f.has_been_spent || f.track_type !== r.SAVINGS_TRACK && !f.is_complete
|
|
219
245
|
), p = d.filter(
|
|
220
|
-
(
|
|
221
|
-
), [h,
|
|
222
|
-
let
|
|
223
|
-
t ===
|
|
224
|
-
const R = async (
|
|
225
|
-
const A = [...s],
|
|
226
|
-
let N =
|
|
227
|
-
N < 0 && (N = A.length - 1), A.splice(N, 0, A.splice(
|
|
246
|
+
(f) => f.track_type === r.SAVINGS_TRACK && f.has_been_spent || f.track_type !== r.SAVINGS_TRACK && f.is_complete
|
|
247
|
+
), [h, a] = T.useState(!1);
|
|
248
|
+
let o = n.manage_saving_goals, b = n.manage_saving_drawer_title, m = n.manage_saving_title, g = n.manage_saving_description;
|
|
249
|
+
t === r.DEBT_TRACK ? (o = n.manage_debt_goals, b = n.manage_debt_drawer_title, m = n.manage_debt_title, g = n.manage_debt_description) : t === r.RETIREMENT_TRACK && (o = n.manage_retirement_goals, b = n.manage_retirement_drawer_title, m = n.manage_retirement_title, g = n.manage_retirement_description);
|
|
250
|
+
const R = async (f) => {
|
|
251
|
+
const A = [...s], S = A.findIndex((K) => K.guid === f.guid);
|
|
252
|
+
let N = S - 1;
|
|
253
|
+
N < 0 && (N = A.length - 1), A.splice(N, 0, A.splice(S, 1)[0]);
|
|
228
254
|
for (let K = 0; K < A.length; K++)
|
|
229
255
|
A[K].position = K + 1;
|
|
230
|
-
await
|
|
256
|
+
await i(A), await l();
|
|
231
257
|
};
|
|
232
258
|
return /* @__PURE__ */ c(y, { children: [
|
|
233
|
-
/* @__PURE__ */ e(
|
|
259
|
+
/* @__PURE__ */ e(me, { endIcon: /* @__PURE__ */ e(V, {}), onClick: () => a(!0), children: o }),
|
|
234
260
|
/* @__PURE__ */ e(
|
|
235
|
-
|
|
261
|
+
Q,
|
|
236
262
|
{
|
|
237
|
-
ariaLabelClose:
|
|
263
|
+
ariaLabelClose: u.close_aria,
|
|
238
264
|
isOpen: h,
|
|
239
|
-
onClose: () =>
|
|
265
|
+
onClose: () => a(!1),
|
|
240
266
|
title: b,
|
|
241
267
|
children: /* @__PURE__ */ c(y, { children: [
|
|
242
268
|
/* @__PURE__ */ c(y, { m: 24, children: [
|
|
243
|
-
/* @__PURE__ */ e(
|
|
244
|
-
/* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ e(ce, { children: m }),
|
|
270
|
+
/* @__PURE__ */ e(q, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "subtitle2", children: g })
|
|
245
271
|
] }),
|
|
246
272
|
/* @__PURE__ */ e(Tt, { trackType: t }),
|
|
247
|
-
/* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "
|
|
248
|
-
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: s.map((
|
|
249
|
-
const
|
|
273
|
+
/* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.goal_priority }),
|
|
274
|
+
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: s.map((f, A) => {
|
|
275
|
+
const S = A >= s.length - 1;
|
|
250
276
|
return /* @__PURE__ */ c(y, { children: [
|
|
251
|
-
/* @__PURE__ */ e(Ct, { goal:
|
|
252
|
-
/* @__PURE__ */ e(v, { variant:
|
|
253
|
-
] }, `ongoing-${
|
|
277
|
+
/* @__PURE__ */ e(Ct, { goal: f, index: A, onUpClick: R }),
|
|
278
|
+
/* @__PURE__ */ e(v, { variant: S ? "fullWidth" : "inset" })
|
|
279
|
+
] }, `ongoing-${f.guid}`);
|
|
254
280
|
}) }),
|
|
255
|
-
t !==
|
|
256
|
-
/* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "
|
|
257
|
-
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: p.map((
|
|
258
|
-
const
|
|
281
|
+
t !== r.RETIREMENT_TRACK && p.length > 0 && /* @__PURE__ */ c(y, { children: [
|
|
282
|
+
/* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "caption", children: n.complete_title }),
|
|
283
|
+
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: p.map((f, A) => {
|
|
284
|
+
const S = A > s.length - 1;
|
|
259
285
|
return /* @__PURE__ */ c(y, { children: [
|
|
260
|
-
/* @__PURE__ */ e(
|
|
261
|
-
/* @__PURE__ */ e(v, { variant:
|
|
262
|
-
] }, `complete-${
|
|
286
|
+
/* @__PURE__ */ e(xt, { goal: f }),
|
|
287
|
+
/* @__PURE__ */ e(v, { variant: S ? "fullWidth" : "inset" })
|
|
288
|
+
] }, `complete-${f.guid}`);
|
|
263
289
|
}) })
|
|
264
290
|
] })
|
|
265
291
|
] })
|
|
@@ -267,21 +293,21 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
267
293
|
)
|
|
268
294
|
] });
|
|
269
295
|
}, se = D(({ trackType: t, onAddGoals: n }) => {
|
|
270
|
-
const { isMobile:
|
|
271
|
-
(
|
|
296
|
+
const { isMobile: u } = pe(), { goals: l } = x(), { selectedAccountGuids: _ } = ue(), { orderedGoals: i, setSelectedGoal: d } = G(), s = i.filter(
|
|
297
|
+
(o) => o.track_type === t && (o.track_type !== r.RETIREMENT_TRACK && _.includes(o.account_guid) || o.track_type === r.RETIREMENT_TRACK)
|
|
272
298
|
), p = s.filter(
|
|
273
|
-
(
|
|
299
|
+
(o) => o.track_type === r.SAVINGS_TRACK && !o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && !o.is_complete
|
|
274
300
|
), h = s.filter(
|
|
275
|
-
(
|
|
276
|
-
),
|
|
277
|
-
return /* @__PURE__ */ c(y, { mt: 16, mx:
|
|
301
|
+
(o) => o.track_type === r.SAVINGS_TRACK && o.has_been_spent || o.track_type !== r.SAVINGS_TRACK && o.is_complete
|
|
302
|
+
), a = t === r.DEBT_TRACK ? l.zero_state_complete_debt : l.zero_state_complete_savings;
|
|
303
|
+
return /* @__PURE__ */ c(y, { mt: 16, mx: u ? 24 : 0, children: [
|
|
278
304
|
/* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
|
|
279
|
-
/* @__PURE__ */ e(
|
|
305
|
+
/* @__PURE__ */ e(ce, { color: "text.secondary", variant: "body2", children: l.ongoing_title }),
|
|
280
306
|
/* @__PURE__ */ e(Rt, { trackType: t })
|
|
281
307
|
] }),
|
|
282
|
-
p.length > 0 ? /* @__PURE__ */ e(
|
|
308
|
+
p.length > 0 ? /* @__PURE__ */ e(fe, { container: !0, spacing: 24, children: p.map((o, b, m) => (
|
|
283
309
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
|
284
|
-
/* @__PURE__ */ e(
|
|
310
|
+
/* @__PURE__ */ e(fe, { xs: u || b === 0 && m.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Le, { goal: o, onClick: () => d(o) }, o.guid) }, b)
|
|
285
311
|
)) }) : /* @__PURE__ */ c(
|
|
286
312
|
y,
|
|
287
313
|
{
|
|
@@ -293,173 +319,173 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
293
319
|
py: 18,
|
|
294
320
|
children: [
|
|
295
321
|
/* @__PURE__ */ e(
|
|
296
|
-
|
|
322
|
+
q,
|
|
297
323
|
{
|
|
298
|
-
sx: (
|
|
324
|
+
sx: (o) => ({
|
|
299
325
|
color: "text.secondary",
|
|
300
|
-
[
|
|
326
|
+
[o.breakpoints.down("sm")]: {
|
|
301
327
|
px: 10
|
|
302
328
|
},
|
|
303
329
|
width: { sm: 381 }
|
|
304
330
|
}),
|
|
305
|
-
variant: "
|
|
331
|
+
variant: "body2",
|
|
306
332
|
children: Ve(t, l)
|
|
307
333
|
}
|
|
308
334
|
),
|
|
309
|
-
/* @__PURE__ */ e(
|
|
335
|
+
/* @__PURE__ */ e(me, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: l.add_goals_button })
|
|
310
336
|
]
|
|
311
337
|
}
|
|
312
338
|
),
|
|
313
|
-
t !==
|
|
314
|
-
/* @__PURE__ */ e(
|
|
339
|
+
t !== r.RETIREMENT_TRACK && /* @__PURE__ */ c(y, { gap: 16, mt: 48, children: [
|
|
340
|
+
/* @__PURE__ */ e(ce, { color: "text.secondary", variant: "body2", children: l.complete_title }),
|
|
315
341
|
h.length === 0 && /* @__PURE__ */ e(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
|
|
316
|
-
|
|
342
|
+
q,
|
|
317
343
|
{
|
|
318
|
-
sx: (
|
|
344
|
+
sx: (o) => ({
|
|
319
345
|
color: "text.secondary",
|
|
320
346
|
width: { sm: 393 },
|
|
321
|
-
[
|
|
347
|
+
[o.breakpoints.down("sm")]: {
|
|
322
348
|
px: 10
|
|
323
349
|
}
|
|
324
350
|
}),
|
|
325
|
-
variant: "
|
|
326
|
-
children:
|
|
351
|
+
variant: "body2",
|
|
352
|
+
children: a
|
|
327
353
|
}
|
|
328
354
|
) }),
|
|
329
|
-
h.map((
|
|
355
|
+
h.map((o) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(xe, { onClick: () => d(o), children: /* @__PURE__ */ e(Re, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
330
356
|
/* @__PURE__ */ c(y, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
331
357
|
/* @__PURE__ */ e($e, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
332
|
-
/* @__PURE__ */ e(C, { color: "text.secondary", variant: "
|
|
358
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", variant: "body1", children: o.name })
|
|
333
359
|
] }),
|
|
334
|
-
/* @__PURE__ */ e(C, { bold: !0, variant: "
|
|
335
|
-
] }) }) }) },
|
|
360
|
+
/* @__PURE__ */ e(C, { bold: !0, variant: "body1", children: I(o.amount, "0,0.00") })
|
|
361
|
+
] }) }) }) }, o.guid))
|
|
336
362
|
] })
|
|
337
363
|
] });
|
|
338
|
-
}),
|
|
339
|
-
const { goals:
|
|
364
|
+
}), St = ({ goalType: t, onClick: n }) => {
|
|
365
|
+
const { goals: u } = x(), { bgcolor: l, icon: _, label: i, description: d, subTypes: s, type: p } = t, [h, a] = T.useState(!1), o = s.length > 0;
|
|
340
366
|
return /* @__PURE__ */ e(y, { children: /* @__PURE__ */ c(L, { sx: { bgcolor: "background.paper" }, children: [
|
|
341
367
|
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
|
|
342
368
|
M,
|
|
343
369
|
{
|
|
344
|
-
onClick:
|
|
345
|
-
p ===
|
|
346
|
-
p ===
|
|
370
|
+
onClick: o ? () => a(!h) : () => n(
|
|
371
|
+
p === r.RETIREMENT_TRACK ? u.retirement : "",
|
|
372
|
+
p === r.RETIREMENT_TRACK ? Z.RETIREMENT : Z.OTHER,
|
|
347
373
|
p
|
|
348
374
|
),
|
|
349
375
|
children: [
|
|
350
|
-
/* @__PURE__ */ e(
|
|
351
|
-
/* @__PURE__ */ e(w, { primary:
|
|
352
|
-
!
|
|
353
|
-
|
|
376
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(oe, { sx: { bgcolor: l }, variant: "rounded", children: /* @__PURE__ */ e(ye, { name: _, sx: { color: "grey.900" } }) }) }),
|
|
377
|
+
/* @__PURE__ */ e(w, { primary: i, secondary: d, sx: { mr: 24 } }),
|
|
378
|
+
!o && /* @__PURE__ */ e(V, {}),
|
|
379
|
+
o && (h ? /* @__PURE__ */ e(Ze, {}) : /* @__PURE__ */ e(qe, {}))
|
|
354
380
|
]
|
|
355
381
|
}
|
|
356
382
|
) }),
|
|
357
383
|
/* @__PURE__ */ e(v, { variant: "inset" }),
|
|
358
|
-
|
|
359
|
-
/* @__PURE__ */ e(tt, { sx: { mr: 8 }, children: /* @__PURE__ */ e(
|
|
384
|
+
o && /* @__PURE__ */ e(et, { in: h, children: /* @__PURE__ */ e(L, { sx: { bgcolor: "background.default" }, children: s.map((b, m) => /* @__PURE__ */ e(k, { sx: { pl: 48 }, children: /* @__PURE__ */ c(M, { onClick: () => n(b.label, b.metaType, p), children: [
|
|
385
|
+
/* @__PURE__ */ e(tt, { sx: { mr: 8 }, children: /* @__PURE__ */ e(ye, { name: b.icon }) }),
|
|
360
386
|
/* @__PURE__ */ e(
|
|
361
387
|
w,
|
|
362
388
|
{
|
|
363
389
|
primary: b.label,
|
|
364
|
-
primaryTypographyProps: { variant: "
|
|
390
|
+
primaryTypographyProps: { variant: "body1" }
|
|
365
391
|
}
|
|
366
392
|
),
|
|
367
393
|
/* @__PURE__ */ e(V, {})
|
|
368
394
|
] }) }, m)) }) })
|
|
369
395
|
] }) });
|
|
370
|
-
},
|
|
396
|
+
}, Oe = ({
|
|
371
397
|
accounts: t,
|
|
372
398
|
isOpen: n,
|
|
373
|
-
onClose:
|
|
399
|
+
onClose: u,
|
|
374
400
|
onSave: l,
|
|
375
|
-
title:
|
|
401
|
+
title: _
|
|
376
402
|
}) => {
|
|
377
|
-
const { goals:
|
|
378
|
-
const b = p.findIndex((
|
|
379
|
-
b >= 0 ? m.splice(b, 1) : m.push(
|
|
403
|
+
const { goals: i, common: d } = x(), { config: s } = _e(), [p, h] = T.useState([]), a = (o) => {
|
|
404
|
+
const b = p.findIndex((g) => g.guid === o.guid), m = [...p];
|
|
405
|
+
b >= 0 ? m.splice(b, 1) : m.push(o), h(m);
|
|
380
406
|
};
|
|
381
407
|
return /* @__PURE__ */ c(
|
|
382
|
-
|
|
408
|
+
Q,
|
|
383
409
|
{
|
|
384
410
|
ariaLabelClose: d.close_aria,
|
|
385
411
|
isOpen: n,
|
|
386
|
-
onClose:
|
|
412
|
+
onClose: u,
|
|
387
413
|
onPrimaryAction: () => l(p),
|
|
388
|
-
title:
|
|
414
|
+
title: _,
|
|
389
415
|
children: [
|
|
390
416
|
/* @__PURE__ */ c(L, { sx: { bgcolor: "background.white" }, children: [
|
|
391
417
|
/* @__PURE__ */ e(v, { variant: "fullWidth" }),
|
|
392
|
-
t.map((
|
|
393
|
-
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => o
|
|
394
|
-
/* @__PURE__ */ e(
|
|
418
|
+
t.map((o, b) => /* @__PURE__ */ c(T.Fragment, { children: [
|
|
419
|
+
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => a(o), children: [
|
|
420
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
395
421
|
te,
|
|
396
422
|
{
|
|
397
|
-
alt:
|
|
398
|
-
institutionGuid:
|
|
423
|
+
alt: o?.name || "",
|
|
424
|
+
institutionGuid: o?.institution_guid || ""
|
|
399
425
|
}
|
|
400
426
|
) }),
|
|
401
427
|
/* @__PURE__ */ e(
|
|
402
428
|
w,
|
|
403
429
|
{
|
|
404
|
-
primary: we(
|
|
430
|
+
primary: we(o, {
|
|
405
431
|
allowNickname: s?.show_account_nicknames_in_master
|
|
406
432
|
}),
|
|
407
|
-
secondary: I(
|
|
433
|
+
secondary: I(o.balance || 0, "0,0.00")
|
|
408
434
|
}
|
|
409
435
|
),
|
|
410
|
-
/* @__PURE__ */ e(nt, { checked: p.some((m) => m.guid ===
|
|
436
|
+
/* @__PURE__ */ e(nt, { checked: p.some((m) => m.guid === o.guid) })
|
|
411
437
|
] }) }),
|
|
412
438
|
/* @__PURE__ */ e(v, { variant: b < t.length - 1 ? "inset" : "fullWidth" })
|
|
413
|
-
] },
|
|
439
|
+
] }, o.guid))
|
|
414
440
|
] }),
|
|
415
441
|
s.show_connections_widget_in_master && /* @__PURE__ */ e(
|
|
416
|
-
|
|
442
|
+
Ae,
|
|
417
443
|
{
|
|
418
|
-
description:
|
|
419
|
-
label:
|
|
420
|
-
title:
|
|
444
|
+
description: i.connect_description,
|
|
445
|
+
label: i.connect_button,
|
|
446
|
+
title: i.connect_title
|
|
421
447
|
}
|
|
422
448
|
)
|
|
423
449
|
]
|
|
424
450
|
}
|
|
425
451
|
);
|
|
426
|
-
},
|
|
427
|
-
const { goals: n } =
|
|
428
|
-
R ===
|
|
452
|
+
}, Et = ({ onClose: t }) => {
|
|
453
|
+
const { goals: n } = x(), { addGoal: u, debtGoals: l, setAlert: _, setSelectedGoal: i } = G(), { config: d } = _e(), { visibleDebtAccounts: s } = P(), [p, h] = T.useState(!1), a = ze(n), o = (m, g, R) => {
|
|
454
|
+
R === r.DEBT_TRACK ? h(!0) : i({
|
|
429
455
|
amount: 0,
|
|
430
456
|
current_amount: 0,
|
|
431
|
-
goal_type:
|
|
457
|
+
goal_type: le.SAVE_AMOUNT,
|
|
432
458
|
initial_amount: 0,
|
|
433
|
-
meta_type:
|
|
459
|
+
meta_type: g,
|
|
434
460
|
name: m,
|
|
435
461
|
track_type: R
|
|
436
462
|
});
|
|
437
463
|
}, b = async (m) => {
|
|
438
|
-
for (const
|
|
439
|
-
let R =
|
|
440
|
-
|
|
441
|
-
account_guid:
|
|
464
|
+
for (const g of m) {
|
|
465
|
+
let R = Z.CREDIT_CARD;
|
|
466
|
+
g.account_type === ge.LOAN ? R = Z.LOANS : g.account_type === ge.LINE_OF_CREDIT && (R = Z.LINE_OF_CREDIT), await u({
|
|
467
|
+
account_guid: g.guid,
|
|
442
468
|
amount: 0,
|
|
443
469
|
current_amount: 0,
|
|
444
|
-
goal_type:
|
|
445
|
-
initial_amount:
|
|
446
|
-
interest_rate:
|
|
470
|
+
goal_type: le.KEEP_BALANCE_BELOW,
|
|
471
|
+
initial_amount: g.balance || 0,
|
|
472
|
+
interest_rate: g.interest_rate || 0,
|
|
447
473
|
meta_type: R,
|
|
448
|
-
monthly_payment:
|
|
449
|
-
name: we(
|
|
474
|
+
monthly_payment: g.minimum_payment || 0,
|
|
475
|
+
name: we(g, {
|
|
450
476
|
allowNickname: d?.show_account_nicknames_in_master
|
|
451
477
|
}),
|
|
452
|
-
track_type:
|
|
453
|
-
}),
|
|
478
|
+
track_type: r.DEBT_TRACK
|
|
479
|
+
}), _(n.alert_goal_added);
|
|
454
480
|
}
|
|
455
|
-
h(!1), t?.(
|
|
481
|
+
h(!1), t?.(r.DEBT_TRACK);
|
|
456
482
|
};
|
|
457
483
|
return /* @__PURE__ */ c(y, { children: [
|
|
458
|
-
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children:
|
|
484
|
+
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: a.map((m, g) => /* @__PURE__ */ e(St, { goalType: m, onClick: o }, g)) }),
|
|
459
485
|
/* @__PURE__ */ e(
|
|
460
|
-
|
|
486
|
+
Oe,
|
|
461
487
|
{
|
|
462
|
-
accounts: s.filter((m) => !l.find((
|
|
488
|
+
accounts: s.filter((m) => !l.find((g) => g.account_guid === m.guid)),
|
|
463
489
|
isOpen: p,
|
|
464
490
|
onClose: () => h(!1),
|
|
465
491
|
onSave: b,
|
|
@@ -467,10 +493,10 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
467
493
|
}
|
|
468
494
|
)
|
|
469
495
|
] });
|
|
470
|
-
},
|
|
471
|
-
const n =
|
|
496
|
+
}, We = ({ account: t }) => {
|
|
497
|
+
const n = ot(t);
|
|
472
498
|
return /* @__PURE__ */ c(k, { sx: { bgcolor: "background.paper", p: 24 }, children: [
|
|
473
|
-
/* @__PURE__ */ e(
|
|
499
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
474
500
|
te,
|
|
475
501
|
{
|
|
476
502
|
alt: t.name || "",
|
|
@@ -486,22 +512,22 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
486
512
|
)
|
|
487
513
|
] });
|
|
488
514
|
}, vt = D(({ goal: t }) => {
|
|
489
|
-
const { goals: n } =
|
|
515
|
+
const { goals: n } = x(), { setAlert: u, setSelectedGoal: l, updateGoal: _, updateRetirementGoal: i } = G(), [d, s] = T.useState(t.amount), p = !t.guid, h = d < 0 || d > 9999999999e-2, a = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, o = async () => {
|
|
490
516
|
const m = { ...t, amount: d };
|
|
491
|
-
t.amount = d, p ? l(m) : (t.track_type !==
|
|
517
|
+
t.amount = d, p ? l(m) : (t.track_type !== r.RETIREMENT_TRACK ? await _(m) : await i(m), u(n.alert_goal_updated_amount));
|
|
492
518
|
}, b = () => {
|
|
493
519
|
setTimeout(() => {
|
|
494
520
|
s(t.amount);
|
|
495
521
|
}, 250);
|
|
496
522
|
};
|
|
497
523
|
return /* @__PURE__ */ e(
|
|
498
|
-
|
|
524
|
+
J,
|
|
499
525
|
{
|
|
500
|
-
isDisabled:
|
|
526
|
+
isDisabled: a,
|
|
501
527
|
isSaveDisabled: h,
|
|
502
528
|
label: n.details_amount_to_save,
|
|
503
529
|
onCancel: b,
|
|
504
|
-
onSave:
|
|
530
|
+
onSave: o,
|
|
505
531
|
primaryText: n.details_amount_to_save,
|
|
506
532
|
secondaryText: I(t.amount, "0,0"),
|
|
507
533
|
zeroStateText: p && t.amount === 0 ? n.add_amount : void 0,
|
|
@@ -514,39 +540,39 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
514
540
|
fullWidth: !0,
|
|
515
541
|
minAmount: 0,
|
|
516
542
|
setAmount: (m) => s(isNaN(Number(m)) ? d : Number(m)),
|
|
517
|
-
sx: { ".MuiTypography-
|
|
543
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
518
544
|
}
|
|
519
545
|
)
|
|
520
546
|
}
|
|
521
547
|
);
|
|
522
548
|
}), It = ({ goal: t }) => {
|
|
523
|
-
const { visibleCheckingAccounts: n, visibleSavingsAccounts:
|
|
524
|
-
const R = { ...t, account_guid:
|
|
525
|
-
h ? s(R) : (await p(R), d(
|
|
549
|
+
const { visibleCheckingAccounts: n, visibleSavingsAccounts: u } = P(), { accounts: l, goals: _ } = x(), { config: i } = _e(), { setAlert: d, setSelectedGoal: s, updateGoal: p } = G(), h = !t.guid, [a, o] = T.useState(!1), b = async ({ balance: m, guid: g }) => {
|
|
550
|
+
const R = { ...t, account_guid: g, current_amount: m || 0 };
|
|
551
|
+
h ? s(R) : (await p(R), d(_.alert_account_changed)), o(!1);
|
|
526
552
|
};
|
|
527
553
|
return /* @__PURE__ */ c(y, { children: [
|
|
528
|
-
h && !t.account_guid ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () =>
|
|
554
|
+
h && !t.account_guid ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () => o(!0), children: [
|
|
529
555
|
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(y, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
530
556
|
/* @__PURE__ */ e(Ie, { filled: !0 }),
|
|
531
|
-
|
|
557
|
+
_.details_add_account
|
|
532
558
|
] }) }),
|
|
533
559
|
/* @__PURE__ */ e(V, { color: "primary" })
|
|
534
560
|
] }) }) : /* @__PURE__ */ c(y, { sx: { gap: 8, my: 24, mx: 24 }, children: [
|
|
535
|
-
/* @__PURE__ */ e(
|
|
561
|
+
/* @__PURE__ */ e(me, { onClick: () => o(!0), variant: "text", children: _.details_change_account }),
|
|
536
562
|
/* @__PURE__ */ e(
|
|
537
563
|
C,
|
|
538
564
|
{
|
|
539
565
|
color: "text.secondary",
|
|
540
566
|
sx: { textAlign: "center", whiteSpace: "wrap" },
|
|
541
|
-
variant: "
|
|
542
|
-
children:
|
|
567
|
+
variant: "subtitle1",
|
|
568
|
+
children: W(_.details_change_account_description, t.name)
|
|
543
569
|
}
|
|
544
570
|
)
|
|
545
571
|
] }),
|
|
546
|
-
/* @__PURE__ */ e(
|
|
547
|
-
n.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "
|
|
572
|
+
/* @__PURE__ */ e(Q, { isOpen: a, onClose: () => o(!1), title: _.details_change_account, children: /* @__PURE__ */ c(y, { children: [
|
|
573
|
+
n.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: l.account_types[1] }),
|
|
548
574
|
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => b(m), children: [
|
|
549
|
-
/* @__PURE__ */ e(
|
|
575
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
550
576
|
te,
|
|
551
577
|
{
|
|
552
578
|
alt: m?.name || "",
|
|
@@ -562,9 +588,9 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
562
588
|
),
|
|
563
589
|
/* @__PURE__ */ e(V, {})
|
|
564
590
|
] }) }, m.guid)) }),
|
|
565
|
-
|
|
566
|
-
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children:
|
|
567
|
-
/* @__PURE__ */ e(
|
|
591
|
+
u.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "caption", children: l.account_types[2] }),
|
|
592
|
+
/* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: u.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => b(m), children: [
|
|
593
|
+
/* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(
|
|
568
594
|
te,
|
|
569
595
|
{
|
|
570
596
|
alt: m?.name || "",
|
|
@@ -580,63 +606,63 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
580
606
|
),
|
|
581
607
|
/* @__PURE__ */ e(V, {})
|
|
582
608
|
] }) }, m.guid)) }),
|
|
583
|
-
|
|
584
|
-
|
|
609
|
+
i.show_connections_widget_in_master && /* @__PURE__ */ e(
|
|
610
|
+
Ae,
|
|
585
611
|
{
|
|
586
|
-
description:
|
|
587
|
-
label:
|
|
588
|
-
title:
|
|
612
|
+
description: _.connect_description,
|
|
613
|
+
label: _.connect_button,
|
|
614
|
+
title: _.connect_title
|
|
589
615
|
}
|
|
590
616
|
)
|
|
591
617
|
] }) })
|
|
592
618
|
] });
|
|
593
619
|
}, Gt = D(({ goal: t }) => {
|
|
594
|
-
const { goals: n } =
|
|
595
|
-
const
|
|
596
|
-
t.name =
|
|
597
|
-
},
|
|
620
|
+
const { goals: n } = x(), { setAlert: u, setSelectedGoal: l, updateGoal: _ } = G(), [i, d] = T.useState(t.name), s = !t.guid, p = t.track_type === r.SAVINGS_TRACK && t.has_been_spent || t.track_type !== r.SAVINGS_TRACK && t.is_complete, h = async () => {
|
|
621
|
+
const o = { ...t, name: i };
|
|
622
|
+
t.name = i, s ? l(o) : (await _(o), u(n.alert_goal_updated_name));
|
|
623
|
+
}, a = () => {
|
|
598
624
|
setTimeout(() => {
|
|
599
625
|
d(t.name);
|
|
600
626
|
}, 250);
|
|
601
627
|
};
|
|
602
628
|
return /* @__PURE__ */ e(
|
|
603
|
-
|
|
629
|
+
J,
|
|
604
630
|
{
|
|
605
631
|
isDisabled: p,
|
|
606
|
-
isSaveDisabled: !
|
|
632
|
+
isSaveDisabled: !i,
|
|
607
633
|
label: n.details_goal_name,
|
|
608
|
-
onCancel:
|
|
634
|
+
onCancel: a,
|
|
609
635
|
onSave: h,
|
|
610
636
|
primaryText: n.details_goal_name,
|
|
611
637
|
secondaryText: t.name,
|
|
612
638
|
children: /* @__PURE__ */ e(
|
|
613
639
|
De,
|
|
614
640
|
{
|
|
615
|
-
error: !
|
|
641
|
+
error: !i,
|
|
616
642
|
fullWidth: !0,
|
|
617
643
|
label: n.details_goal_name,
|
|
618
|
-
onChange: (
|
|
619
|
-
value:
|
|
644
|
+
onChange: (o) => d(o.target.value),
|
|
645
|
+
value: i
|
|
620
646
|
}
|
|
621
647
|
)
|
|
622
648
|
}
|
|
623
649
|
);
|
|
624
650
|
}), Nt = ({ goal: t }) => {
|
|
625
|
-
const { goals: n } =
|
|
626
|
-
if (!isNaN(
|
|
627
|
-
const
|
|
628
|
-
t.retirement_age =
|
|
651
|
+
const { goals: n } = x(), { setAlert: u, setSelectedGoal: l, updateRetirementGoal: _ } = G(), [i, d] = T.useState(t.retirement_age || 65), s = !t.guid, p = async () => {
|
|
652
|
+
if (!isNaN(i)) {
|
|
653
|
+
const o = { ...t, retirement_age: i };
|
|
654
|
+
t.retirement_age = i, s ? l(o) : (await _(o), u(n.alert_goal_updated_retirement_age));
|
|
629
655
|
}
|
|
630
656
|
}, h = () => {
|
|
631
657
|
setTimeout(() => {
|
|
632
658
|
d(t.retirement_age || 65);
|
|
633
659
|
}, 250);
|
|
634
|
-
},
|
|
660
|
+
}, a = !i || isNaN(i) || i < 20 || i >= 100;
|
|
635
661
|
return /* @__PURE__ */ e(
|
|
636
|
-
|
|
662
|
+
J,
|
|
637
663
|
{
|
|
638
664
|
isDisabled: t.is_complete,
|
|
639
|
-
isSaveDisabled:
|
|
665
|
+
isSaveDisabled: a,
|
|
640
666
|
label: n.details_retirement_age,
|
|
641
667
|
onCancel: h,
|
|
642
668
|
onSave: p,
|
|
@@ -646,75 +672,75 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
646
672
|
children: /* @__PURE__ */ e(
|
|
647
673
|
De,
|
|
648
674
|
{
|
|
649
|
-
error:
|
|
675
|
+
error: a,
|
|
650
676
|
fullWidth: !0,
|
|
651
677
|
label: n.details_retirement_age,
|
|
652
|
-
onChange: (
|
|
653
|
-
value: isNaN(
|
|
678
|
+
onChange: (o) => d(Number(o.target.value)),
|
|
679
|
+
value: isNaN(i) ? "" : i
|
|
654
680
|
}
|
|
655
681
|
)
|
|
656
682
|
}
|
|
657
683
|
);
|
|
658
684
|
}, kt = D(({ goal: t }) => {
|
|
659
|
-
const { goals: n } =
|
|
660
|
-
|
|
685
|
+
const { goals: n } = x(), { user: u, updateUser: l } = Ge(), { setAlert: _ } = G(), [i, d] = T.useState(ne(u.birthday ?? 0)), [s, p] = T.useState(null), h = t.is_complete, a = async () => {
|
|
686
|
+
i && ct(i) && (await l({ ...u, birthday: st(i) }), _(n.alert_goal_updated_birthday));
|
|
661
687
|
};
|
|
662
688
|
return /* @__PURE__ */ e(
|
|
663
|
-
|
|
689
|
+
J,
|
|
664
690
|
{
|
|
665
691
|
isDisabled: h,
|
|
666
692
|
isSaveDisabled: !!s,
|
|
667
693
|
label: n.details_birthday,
|
|
668
|
-
onSave:
|
|
694
|
+
onSave: a,
|
|
669
695
|
primaryText: n.details_birthday,
|
|
670
|
-
secondaryText: `${
|
|
671
|
-
zeroStateText: !t.guid && !
|
|
696
|
+
secondaryText: `${he(ne(u.birthday ?? 0), be.MONTH_DAY_YEAR)}`,
|
|
697
|
+
zeroStateText: !t.guid && !u.birthday ? n.add_birthday : void 0,
|
|
672
698
|
children: /* @__PURE__ */ e(mt, { dateAdapter: lt, children: /* @__PURE__ */ e(
|
|
673
699
|
dt,
|
|
674
700
|
{
|
|
675
701
|
label: n.details_birthday,
|
|
676
702
|
onChange: d,
|
|
677
|
-
onError: (
|
|
703
|
+
onError: (o) => p(o),
|
|
678
704
|
sx: { width: "100%" },
|
|
679
|
-
value:
|
|
705
|
+
value: i
|
|
680
706
|
}
|
|
681
707
|
) })
|
|
682
708
|
}
|
|
683
709
|
);
|
|
684
710
|
}), wt = ({ goal: t }) => {
|
|
685
|
-
const { goals: n } =
|
|
711
|
+
const { goals: n } = x(), { visibleRetirementAccounts: u } = P(), {
|
|
686
712
|
addRetirementGoalAccount: l,
|
|
687
|
-
newRetirementGoalAccounts:
|
|
688
|
-
retirementGoalAccounts:
|
|
713
|
+
newRetirementGoalAccounts: _,
|
|
714
|
+
retirementGoalAccounts: i,
|
|
689
715
|
selectedGoal: d,
|
|
690
716
|
setAlert: s,
|
|
691
717
|
setNewRetirementGoalAccounts: p,
|
|
692
718
|
setSelectedGoal: h
|
|
693
|
-
} = G(), [
|
|
694
|
-
(
|
|
695
|
-
),
|
|
696
|
-
(
|
|
697
|
-
), R = async (
|
|
698
|
-
const A =
|
|
699
|
-
account_guid:
|
|
719
|
+
} = G(), [a, o] = T.useState(!1), b = !t.guid, m = u.filter(
|
|
720
|
+
(f) => b ? _.find((A) => A.account_guid === f.guid) : i.find((A) => A.account_guid === f.guid)
|
|
721
|
+
), g = u.filter(
|
|
722
|
+
(f) => !i.find((A) => A.account_guid === f.guid)
|
|
723
|
+
), R = async (f) => {
|
|
724
|
+
const A = f.map((S) => ({
|
|
725
|
+
account_guid: S.guid,
|
|
700
726
|
retirement_goal_guid: t.guid
|
|
701
727
|
}));
|
|
702
728
|
if (b)
|
|
703
729
|
p(A);
|
|
704
730
|
else
|
|
705
|
-
for (const
|
|
706
|
-
await l(
|
|
731
|
+
for (const S of A)
|
|
732
|
+
await l(S), s(n.alert_account_added);
|
|
707
733
|
h({
|
|
708
734
|
...d,
|
|
709
|
-
current_amount:
|
|
710
|
-
}),
|
|
735
|
+
current_amount: f.reduce((S, N) => S + (N.balance || 0), 0)
|
|
736
|
+
}), o(!1);
|
|
711
737
|
};
|
|
712
738
|
return /* @__PURE__ */ c(y, { children: [
|
|
713
|
-
m.map((
|
|
714
|
-
/* @__PURE__ */ e(
|
|
739
|
+
m.map((f) => /* @__PURE__ */ c(y, { children: [
|
|
740
|
+
/* @__PURE__ */ e(We, { account: f }),
|
|
715
741
|
/* @__PURE__ */ e(v, {})
|
|
716
|
-
] },
|
|
717
|
-
/* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () =>
|
|
742
|
+
] }, f.guid)),
|
|
743
|
+
/* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () => o(!0), children: [
|
|
718
744
|
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(y, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
719
745
|
/* @__PURE__ */ e(Ie, { filled: !0 }),
|
|
720
746
|
n.details_add_account
|
|
@@ -722,30 +748,30 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
722
748
|
/* @__PURE__ */ e(V, { color: "primary" })
|
|
723
749
|
] }) }),
|
|
724
750
|
/* @__PURE__ */ e(
|
|
725
|
-
|
|
751
|
+
Oe,
|
|
726
752
|
{
|
|
727
|
-
accounts:
|
|
728
|
-
isOpen:
|
|
729
|
-
onClose: () =>
|
|
753
|
+
accounts: g,
|
|
754
|
+
isOpen: a,
|
|
755
|
+
onClose: () => o(!1),
|
|
730
756
|
onSave: R,
|
|
731
757
|
title: n.add_select_accounts
|
|
732
758
|
}
|
|
733
759
|
)
|
|
734
760
|
] });
|
|
735
761
|
}, Dt = D(({ goal: t }) => {
|
|
736
|
-
const { goals: n } =
|
|
737
|
-
() =>
|
|
738
|
-
[
|
|
739
|
-
),
|
|
740
|
-
let
|
|
741
|
-
return t.track_type ===
|
|
762
|
+
const { goals: n } = x(), { visibleAccounts: u } = P(), l = T.useMemo(
|
|
763
|
+
() => u.find((d) => d.guid === t.account_guid),
|
|
764
|
+
[u, t]
|
|
765
|
+
), _ = t.track_type;
|
|
766
|
+
let i = n.details_save_title;
|
|
767
|
+
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(y, { children: [
|
|
742
768
|
/* @__PURE__ */ c(y, { mx: 24, children: [
|
|
743
|
-
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "
|
|
769
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "caption", children: i }),
|
|
744
770
|
/* @__PURE__ */ e(Le, { goal: t, isInDrawer: !0 }),
|
|
745
|
-
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "
|
|
771
|
+
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "caption", children: n.details_title })
|
|
746
772
|
] }),
|
|
747
773
|
/* @__PURE__ */ c(L, { sx: { bgcolor: "background.paper" }, children: [
|
|
748
|
-
|
|
774
|
+
_ !== r.RETIREMENT_TRACK ? /* @__PURE__ */ e(Gt, { goal: t }) : /* @__PURE__ */ e(k, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
749
775
|
w,
|
|
750
776
|
{
|
|
751
777
|
primary: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
@@ -756,155 +782,155 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
756
782
|
}
|
|
757
783
|
) }),
|
|
758
784
|
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
759
|
-
(
|
|
785
|
+
(_ === r.SAVINGS_TRACK || _ === r.RETIREMENT_TRACK) && /* @__PURE__ */ c($, { children: [
|
|
760
786
|
/* @__PURE__ */ e(vt, { goal: t }),
|
|
761
|
-
/* @__PURE__ */ e(v, { sx: { ml:
|
|
787
|
+
/* @__PURE__ */ e(v, { sx: { ml: _ === r.RETIREMENT_TRACK ? 24 : 0 } })
|
|
762
788
|
] }),
|
|
763
|
-
t.track_type ===
|
|
764
|
-
/* @__PURE__ */ e(
|
|
765
|
-
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
766
|
-
/* @__PURE__ */ e(rt, { goal: t }),
|
|
789
|
+
t.track_type === r.DEBT_TRACK && /* @__PURE__ */ c($, { children: [
|
|
790
|
+
/* @__PURE__ */ e(at, { goal: t }),
|
|
767
791
|
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
768
792
|
/* @__PURE__ */ e(it, { goal: t }),
|
|
793
|
+
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
794
|
+
/* @__PURE__ */ e(rt, { goal: t }),
|
|
769
795
|
/* @__PURE__ */ e(v, { variant: "fullWidth" })
|
|
770
796
|
] }),
|
|
771
|
-
t.track_type ===
|
|
797
|
+
t.track_type === r.RETIREMENT_TRACK && /* @__PURE__ */ c($, { children: [
|
|
772
798
|
/* @__PURE__ */ e(Nt, { goal: t }),
|
|
773
799
|
/* @__PURE__ */ e(v, { sx: { ml: 24 } }),
|
|
774
800
|
/* @__PURE__ */ e(kt, { goal: t }),
|
|
775
801
|
/* @__PURE__ */ e(v, { variant: "fullWidth" })
|
|
776
802
|
] })
|
|
777
803
|
] }),
|
|
778
|
-
/* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "
|
|
779
|
-
t.track_type !==
|
|
780
|
-
/* @__PURE__ */ e(
|
|
804
|
+
/* @__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 }),
|
|
805
|
+
t.track_type !== r.RETIREMENT_TRACK && l && /* @__PURE__ */ c($, { children: [
|
|
806
|
+
/* @__PURE__ */ e(We, { account: l }),
|
|
781
807
|
/* @__PURE__ */ e(v, {})
|
|
782
808
|
] }),
|
|
783
|
-
t.track_type ===
|
|
809
|
+
t.track_type === r.RETIREMENT_TRACK && /* @__PURE__ */ c($, { children: [
|
|
784
810
|
/* @__PURE__ */ e(wt, { goal: t }),
|
|
785
811
|
/* @__PURE__ */ e(v, {})
|
|
786
812
|
] }),
|
|
787
|
-
t.track_type ===
|
|
813
|
+
t.track_type === r.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(It, { goal: t })
|
|
788
814
|
] });
|
|
789
815
|
}), Kt = D(({ onClose: t }) => {
|
|
790
|
-
const { visibleRetirementAccounts: n } =
|
|
791
|
-
addGoal:
|
|
792
|
-
addRetirementGoal:
|
|
816
|
+
const { visibleRetirementAccounts: n } = P(), { goals: u, common: l } = x(), {
|
|
817
|
+
addGoal: _,
|
|
818
|
+
addRetirementGoal: i,
|
|
793
819
|
deleteGoal: d,
|
|
794
820
|
deleteRetirementGoal: s,
|
|
795
821
|
newRetirementGoalAccounts: p,
|
|
796
822
|
retirementGoalAccounts: h,
|
|
797
|
-
selectedGoal:
|
|
798
|
-
setAlert:
|
|
823
|
+
selectedGoal: a,
|
|
824
|
+
setAlert: o,
|
|
799
825
|
setSelectedGoal: b,
|
|
800
826
|
updateGoal: m
|
|
801
|
-
} = G(), { user:
|
|
802
|
-
const
|
|
803
|
-
return n.filter((j) =>
|
|
827
|
+
} = G(), { user: g } = Ge(), [R, f] = T.useState(!1), A = !a?.guid, S = a?.track_type === r.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, N = T.useMemo(() => {
|
|
828
|
+
const E = A ? p : h;
|
|
829
|
+
return n.filter((j) => E.some((F) => F.account_guid === j.guid));
|
|
804
830
|
}, [A, n, p, h]), K = T.useMemo(() => {
|
|
805
|
-
if (!
|
|
806
|
-
if (!A && !
|
|
807
|
-
const { account_guid:
|
|
808
|
-
return j ===
|
|
809
|
-
}, [
|
|
810
|
-
let
|
|
811
|
-
A ? (
|
|
812
|
-
const
|
|
813
|
-
if (
|
|
814
|
-
const
|
|
815
|
-
|
|
831
|
+
if (!a) return !1;
|
|
832
|
+
if (!A && !S) return !0;
|
|
833
|
+
const { account_guid: E, track_type: j, name: F, amount: ee, retirement_age: O } = a;
|
|
834
|
+
return j === r.SAVINGS_TRACK ? E ? !!F && !!ee : !1 : j === r.RETIREMENT_TRACK ? N.length ? !!F && !!ee && !!O && !!g.birthday : !1 : !0;
|
|
835
|
+
}, [a, N, g.birthday]);
|
|
836
|
+
let U = l.delete_button, Y = () => f(!0);
|
|
837
|
+
A ? (Y = () => ae(), U = l.save_button) : S && (Y = () => X(), U = u.mark_as_complete_button);
|
|
838
|
+
const ae = async () => {
|
|
839
|
+
if (a) {
|
|
840
|
+
const E = a.track_type;
|
|
841
|
+
E !== r.RETIREMENT_TRACK ? await _(a) : E === r.RETIREMENT_TRACK && await i({ ...a, target_amount: a.amount }), o(u.alert_goal_added), b(void 0), E && t?.(E);
|
|
816
842
|
}
|
|
817
|
-
},
|
|
818
|
-
|
|
819
|
-
},
|
|
820
|
-
const
|
|
821
|
-
...
|
|
843
|
+
}, B = async () => {
|
|
844
|
+
a && (a.track_type !== r.RETIREMENT_TRACK ? await d(a.guid) : a.track_type === r.RETIREMENT_TRACK && await s(a), o(u.alert_goal_deleted), b(void 0));
|
|
845
|
+
}, X = async () => {
|
|
846
|
+
const E = {
|
|
847
|
+
...a,
|
|
822
848
|
has_been_spent: !0
|
|
823
849
|
};
|
|
824
|
-
await m(
|
|
850
|
+
await m(E), o(u.alert_goal_completed), b(void 0);
|
|
825
851
|
};
|
|
826
852
|
return /* @__PURE__ */ c(y, { children: [
|
|
827
853
|
/* @__PURE__ */ e(
|
|
828
|
-
|
|
854
|
+
Q,
|
|
829
855
|
{
|
|
830
856
|
ariaLabelClose: l.close_aria,
|
|
831
857
|
hasSecondaryAction: A,
|
|
832
|
-
isOpen: !!
|
|
858
|
+
isOpen: !!a,
|
|
833
859
|
isPrimaryDisabled: !K,
|
|
834
860
|
onClose: () => b(void 0),
|
|
835
|
-
onPrimaryAction:
|
|
836
|
-
primaryColor: A ||
|
|
837
|
-
primaryText:
|
|
861
|
+
onPrimaryAction: Y,
|
|
862
|
+
primaryColor: A || S ? "primary" : "error",
|
|
863
|
+
primaryText: U,
|
|
838
864
|
secondaryColor: "primary",
|
|
839
|
-
title:
|
|
840
|
-
children:
|
|
865
|
+
title: u.goal_details,
|
|
866
|
+
children: a && /* @__PURE__ */ e(Dt, { goal: a })
|
|
841
867
|
}
|
|
842
868
|
),
|
|
843
869
|
/* @__PURE__ */ e(
|
|
844
|
-
|
|
870
|
+
ut,
|
|
845
871
|
{
|
|
846
|
-
copy: { close_aria: l.close_aria, title:
|
|
872
|
+
copy: { close_aria: l.close_aria, title: u.delete_goal },
|
|
847
873
|
isOpen: R,
|
|
848
874
|
maxWidth: "xs",
|
|
849
|
-
onClose: () =>
|
|
850
|
-
onPrimaryAction:
|
|
875
|
+
onClose: () => f(!1),
|
|
876
|
+
onPrimaryAction: B,
|
|
851
877
|
primaryColor: "error",
|
|
852
878
|
primaryText: l.delete_button,
|
|
853
|
-
children: /* @__PURE__ */ e(C, { sx: { textWrap: "wrap" }, variant: "
|
|
879
|
+
children: /* @__PURE__ */ e(C, { sx: { textWrap: "wrap" }, variant: "subtitle1", children: W(u.delete_description, a?.name || "") })
|
|
854
880
|
}
|
|
855
881
|
)
|
|
856
882
|
] });
|
|
857
|
-
}),
|
|
858
|
-
const { onEvent:
|
|
883
|
+
}), Fn = D(({ onBackClick: t, sx: n }) => {
|
|
884
|
+
const { onEvent: u } = Ne(), { isMobile: l } = pe(), { isAccountDataLoaded: _, loadAccountData: i } = P(), { isInitialized: d } = ue(), { goals: s, common: p } = x(), {
|
|
859
885
|
alert: h,
|
|
860
|
-
goals:
|
|
861
|
-
isAllGoalDataLoaded:
|
|
886
|
+
goals: a,
|
|
887
|
+
isAllGoalDataLoaded: o,
|
|
862
888
|
loadGoalData: b,
|
|
863
889
|
monthlyCashFlowProfile: m,
|
|
864
|
-
setAlert:
|
|
890
|
+
setAlert: g,
|
|
865
891
|
retirmentGoals: R
|
|
866
|
-
} = G(), [
|
|
867
|
-
|
|
892
|
+
} = G(), [f, A] = T.useState(0), [S, N] = T.useState(!1), K = m?.amount_allocated_for_savings_goals || 0, U = m?.amount_allocated_for_debt_goals || 0, Y = m?.amount_allocated_for_retirement_goals || 0;
|
|
893
|
+
Ke({
|
|
868
894
|
widgetName: "GoalsWidget",
|
|
869
|
-
isLoaded:
|
|
895
|
+
isLoaded: o
|
|
870
896
|
}), T.useEffect(() => {
|
|
871
|
-
|
|
897
|
+
_ || i().finally(), u(H.GOALS_VIEW);
|
|
872
898
|
}, []), T.useEffect(() => {
|
|
873
899
|
d && b().finally();
|
|
874
900
|
}, [d]);
|
|
875
|
-
const
|
|
876
|
-
|
|
877
|
-
},
|
|
878
|
-
N(!0),
|
|
879
|
-
},
|
|
880
|
-
N(!1),
|
|
881
|
-
},
|
|
882
|
-
() =>
|
|
883
|
-
[
|
|
901
|
+
const ae = () => {
|
|
902
|
+
u(H.GOALS_CLICK_FILTER);
|
|
903
|
+
}, B = () => {
|
|
904
|
+
N(!0), u(H.GOALS_CLICK_ADD);
|
|
905
|
+
}, X = (O) => {
|
|
906
|
+
N(!1), O === r.SAVINGS_TRACK ? A(0) : O === r.DEBT_TRACK ? A(1) : O === r.RETIREMENT_TRACK && A(2);
|
|
907
|
+
}, E = T.useMemo(
|
|
908
|
+
() => o && (a.length === 0 || a.every(({ track_type: O }) => !O) && R.length === 0),
|
|
909
|
+
[a, o, R]
|
|
884
910
|
);
|
|
885
|
-
if (!d || !
|
|
886
|
-
return /* @__PURE__ */ e(
|
|
887
|
-
const j =
|
|
911
|
+
if (!d || !o)
|
|
912
|
+
return /* @__PURE__ */ e(Me, {});
|
|
913
|
+
const j = W(
|
|
888
914
|
l ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
889
915
|
I(K, "0,0")
|
|
890
|
-
), F =
|
|
891
|
-
l ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
892
|
-
I(H, "0,0")
|
|
893
|
-
), ee = O(
|
|
916
|
+
), F = W(
|
|
894
917
|
l ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
895
918
|
I(U, "0,0")
|
|
919
|
+
), ee = W(
|
|
920
|
+
l ? s.tab_subtitle_mobile : s.tab_subtitle,
|
|
921
|
+
I(Y, "0,0")
|
|
896
922
|
);
|
|
897
923
|
return /* @__PURE__ */ c(
|
|
898
|
-
|
|
924
|
+
_t,
|
|
899
925
|
{
|
|
900
926
|
actions: [
|
|
901
927
|
{
|
|
902
928
|
iconName: "add",
|
|
903
929
|
label: s.add_title,
|
|
904
|
-
onClick:
|
|
930
|
+
onClick: B
|
|
905
931
|
}
|
|
906
932
|
],
|
|
907
|
-
onAccountsFilterClick:
|
|
933
|
+
onAccountsFilterClick: ae,
|
|
908
934
|
onBackClick: t,
|
|
909
935
|
sx: n,
|
|
910
936
|
title: s.title,
|
|
@@ -913,42 +939,42 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
913
939
|
/* @__PURE__ */ c(
|
|
914
940
|
Fe,
|
|
915
941
|
{
|
|
916
|
-
onChange: (
|
|
942
|
+
onChange: (O, Be) => A(Be),
|
|
917
943
|
sx: { bgcolor: "background.paper" },
|
|
918
944
|
textColor: "primary",
|
|
919
|
-
value:
|
|
945
|
+
value: E ? !1 : f,
|
|
920
946
|
variant: "fullWidth",
|
|
921
947
|
children: [
|
|
922
948
|
/* @__PURE__ */ e(
|
|
923
|
-
|
|
949
|
+
ie,
|
|
924
950
|
{
|
|
925
|
-
disabled:
|
|
926
|
-
label: /* @__PURE__ */ e(
|
|
951
|
+
disabled: E,
|
|
952
|
+
label: /* @__PURE__ */ e(re, { subtitle: j, title: s.tab_saving_title })
|
|
927
953
|
}
|
|
928
954
|
),
|
|
929
955
|
/* @__PURE__ */ e(
|
|
930
|
-
|
|
956
|
+
ie,
|
|
931
957
|
{
|
|
932
|
-
disabled:
|
|
933
|
-
label: /* @__PURE__ */ e(
|
|
958
|
+
disabled: E,
|
|
959
|
+
label: /* @__PURE__ */ e(re, { subtitle: F, title: s.tab_debt_title })
|
|
934
960
|
}
|
|
935
961
|
),
|
|
936
962
|
/* @__PURE__ */ e(
|
|
937
|
-
|
|
963
|
+
ie,
|
|
938
964
|
{
|
|
939
|
-
disabled:
|
|
940
|
-
label: /* @__PURE__ */ e(
|
|
965
|
+
disabled: E,
|
|
966
|
+
label: /* @__PURE__ */ e(re, { subtitle: ee, title: s.tab_retirement_title })
|
|
941
967
|
}
|
|
942
968
|
)
|
|
943
969
|
]
|
|
944
970
|
}
|
|
945
971
|
),
|
|
946
|
-
|
|
972
|
+
E ? /* @__PURE__ */ e(
|
|
947
973
|
pt,
|
|
948
974
|
{
|
|
949
975
|
header: s.create_goals_header,
|
|
950
976
|
icon: "trophy",
|
|
951
|
-
onClick:
|
|
977
|
+
onClick: B,
|
|
952
978
|
primaryButton: s.add_goals_button,
|
|
953
979
|
subText: s.empty_state_subheader,
|
|
954
980
|
sx: {
|
|
@@ -959,66 +985,66 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
959
985
|
}
|
|
960
986
|
}
|
|
961
987
|
) : /* @__PURE__ */ c($, { children: [
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
988
|
+
f === 0 && /* @__PURE__ */ e(se, { onAddGoals: B, trackType: r.SAVINGS_TRACK }),
|
|
989
|
+
f === 1 && /* @__PURE__ */ e(se, { onAddGoals: B, trackType: r.DEBT_TRACK }),
|
|
990
|
+
f === 2 && /* @__PURE__ */ e(se, { onAddGoals: B, trackType: r.RETIREMENT_TRACK })
|
|
965
991
|
] })
|
|
966
992
|
] }),
|
|
967
|
-
/* @__PURE__ */ e(Kt, { onClose:
|
|
993
|
+
/* @__PURE__ */ e(Kt, { onClose: X }),
|
|
968
994
|
/* @__PURE__ */ e(
|
|
969
|
-
|
|
995
|
+
Q,
|
|
970
996
|
{
|
|
971
997
|
ariaLabelClose: p.close_aria,
|
|
972
|
-
isOpen:
|
|
998
|
+
isOpen: S,
|
|
973
999
|
onClose: () => N(!1),
|
|
974
1000
|
title: s.add_goal_title,
|
|
975
|
-
children: /* @__PURE__ */ e(
|
|
1001
|
+
children: /* @__PURE__ */ e(Et, { onClose: X })
|
|
976
1002
|
}
|
|
977
1003
|
),
|
|
978
|
-
/* @__PURE__ */ e(je, { onClose: () =>
|
|
1004
|
+
/* @__PURE__ */ e(je, { onClose: () => g(""), open: !!h, children: /* @__PURE__ */ e(Pe, { onClose: () => g(""), severity: "success", variant: "filled", children: h }) })
|
|
979
1005
|
]
|
|
980
1006
|
}
|
|
981
1007
|
);
|
|
982
1008
|
}), Mt = D(({ goal: t }) => {
|
|
983
|
-
const { goals: n } =
|
|
1009
|
+
const { goals: n } = x(), u = ft(), {
|
|
984
1010
|
backgroundColor: l,
|
|
985
|
-
color:
|
|
986
|
-
percentage:
|
|
1011
|
+
color: _,
|
|
1012
|
+
percentage: i,
|
|
987
1013
|
projectedText: d
|
|
988
|
-
} = de(n, t), s = Math.round(
|
|
989
|
-
let p = /* @__PURE__ */ e(
|
|
990
|
-
return t.track_type ===
|
|
991
|
-
/* @__PURE__ */ e(
|
|
1014
|
+
} = de(n, t), s = Math.round(i * 100);
|
|
1015
|
+
let p = /* @__PURE__ */ e(Se, {});
|
|
1016
|
+
return t.track_type === r.DEBT_TRACK ? p = /* @__PURE__ */ e(Ee, {}) : t.track_type === r.RETIREMENT_TRACK && (p = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
|
|
1017
|
+
/* @__PURE__ */ e(oe, { sx: { bgcolor: l, color: _, height: 32, width: 32 }, variant: "rounded", children: p }),
|
|
992
1018
|
/* @__PURE__ */ c(bt, { sx: { width: "100%" }, children: [
|
|
993
|
-
/* @__PURE__ */ e(
|
|
994
|
-
t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "
|
|
1019
|
+
/* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
|
|
1020
|
+
t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "caption", children: d })
|
|
995
1021
|
] }),
|
|
996
1022
|
/* @__PURE__ */ e(
|
|
997
1023
|
yt,
|
|
998
1024
|
{
|
|
999
|
-
backgroundStrokeColor:
|
|
1000
|
-
color:
|
|
1025
|
+
backgroundStrokeColor: u.palette.neutral.light,
|
|
1026
|
+
color: u.palette.primary.main,
|
|
1001
1027
|
percent: s,
|
|
1002
1028
|
size: 40,
|
|
1003
1029
|
strokeWidth: 3,
|
|
1004
|
-
children: /* @__PURE__ */ e(
|
|
1030
|
+
children: /* @__PURE__ */ e(q, { fontWeight: 700, variant: "caption", children: `${s}%` })
|
|
1005
1031
|
}
|
|
1006
1032
|
)
|
|
1007
1033
|
] });
|
|
1008
|
-
}), Lt = ({ header: t, subText: n, sx:
|
|
1034
|
+
}), Lt = ({ header: t, subText: n, sx: u }) => /* @__PURE__ */ c(
|
|
1009
1035
|
y,
|
|
1010
1036
|
{
|
|
1011
1037
|
sx: {
|
|
1012
1038
|
alignItems: "center",
|
|
1013
1039
|
alignSelf: "center",
|
|
1014
1040
|
px: 24,
|
|
1015
|
-
...
|
|
1041
|
+
...u
|
|
1016
1042
|
},
|
|
1017
1043
|
children: [
|
|
1018
|
-
/* @__PURE__ */ e(
|
|
1019
|
-
/* @__PURE__ */ e(
|
|
1044
|
+
/* @__PURE__ */ e(Je, { size: 32 }),
|
|
1045
|
+
/* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, children: t }),
|
|
1020
1046
|
/* @__PURE__ */ e(
|
|
1021
|
-
|
|
1047
|
+
q,
|
|
1022
1048
|
{
|
|
1023
1049
|
color: "text.secondary",
|
|
1024
1050
|
sx: { fontWeight: 400, maxWidth: { sm: 424 }, textAlign: "center" },
|
|
@@ -1028,38 +1054,38 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
1028
1054
|
)
|
|
1029
1055
|
]
|
|
1030
1056
|
}
|
|
1031
|
-
),
|
|
1032
|
-
const { isAccountDataLoaded: n, loadAccountData:
|
|
1033
|
-
|
|
1057
|
+
), $n = D(({ onCTAClick: t }) => {
|
|
1058
|
+
const { isAccountDataLoaded: n, loadAccountData: u, visibleAccounts: l } = P(), { onEvent: _ } = Ne(), { goals: i } = x(), { isInitialized: d } = ue(), { ongoingGoalsForMicroWidget: s, isAllGoalDataLoaded: p, loadGoalData: h } = G();
|
|
1059
|
+
Ke({
|
|
1034
1060
|
widgetName: "GoalsMicroWidget",
|
|
1035
1061
|
isLoaded: p
|
|
1036
1062
|
}), T.useEffect(() => {
|
|
1037
|
-
n ||
|
|
1063
|
+
n || u().finally();
|
|
1038
1064
|
}, []), T.useEffect(() => {
|
|
1039
|
-
d && (h().finally(),
|
|
1065
|
+
d && (h().finally(), _(H.GOALS_LOAD_WIDGET, {
|
|
1040
1066
|
state: l?.length ? "default" : "zeroState"
|
|
1041
1067
|
}));
|
|
1042
1068
|
}, [d]);
|
|
1043
|
-
const
|
|
1069
|
+
const a = T.useMemo(
|
|
1044
1070
|
() => p && s.length === 0,
|
|
1045
1071
|
[s, p]
|
|
1046
|
-
),
|
|
1047
|
-
|
|
1048
|
-
|
|
1072
|
+
), o = () => {
|
|
1073
|
+
_(
|
|
1074
|
+
a ? H.GOALS_CLICK_GET_STARTED : H.GOALS_CLICK_VIEW_DETAILS
|
|
1049
1075
|
), t();
|
|
1050
1076
|
};
|
|
1051
|
-
return !d || !p ? /* @__PURE__ */ e(
|
|
1052
|
-
|
|
1077
|
+
return !d || !p ? /* @__PURE__ */ e(Me, {}) : /* @__PURE__ */ e(
|
|
1078
|
+
gt,
|
|
1053
1079
|
{
|
|
1054
1080
|
className: "mx-goals-microwidget",
|
|
1055
|
-
ctaLabel:
|
|
1056
|
-
onCTAClick:
|
|
1057
|
-
title:
|
|
1058
|
-
children:
|
|
1081
|
+
ctaLabel: a ? i.get_started : i.view_details,
|
|
1082
|
+
onCTAClick: o,
|
|
1083
|
+
title: i.title,
|
|
1084
|
+
children: a ? /* @__PURE__ */ e(
|
|
1059
1085
|
Lt,
|
|
1060
1086
|
{
|
|
1061
|
-
header:
|
|
1062
|
-
subText:
|
|
1087
|
+
header: i.create_goals_header,
|
|
1088
|
+
subText: i.micro_zero_state_description
|
|
1063
1089
|
}
|
|
1064
1090
|
) : /* @__PURE__ */ e(ht, { sx: { justifyContent: "space-between" }, children: s.map((b, m) => /* @__PURE__ */ c(T.Fragment, { children: [
|
|
1065
1091
|
/* @__PURE__ */ e(Mt, { goal: b }),
|
|
@@ -1069,8 +1095,8 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
1069
1095
|
);
|
|
1070
1096
|
});
|
|
1071
1097
|
export {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1098
|
+
Yn as GoalApi,
|
|
1099
|
+
Zn as GoalStore,
|
|
1100
|
+
$n as GoalsMicroWidget,
|
|
1101
|
+
Fn as GoalsWidget
|
|
1076
1102
|
};
|