@mx-cartographer/experiences 6.3.4-alpha.sms4 → 6.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.d.ts +1 -21
- package/dist/index.es.js +393 -394
- package/dist/index.es.js.map +1 -1
- package/dist/src/common/components/__test__/EmptyState.test.d.ts +0 -0
- package/dist/src/index.d.ts +21 -0
- package/package.json +1 -1
- /package/dist/{accounts → src/accounts}/AccountsMiniWidget.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/AccountsWidget.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/ConnectMiniWidget.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/api/AccountApi.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/AccountListItem.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/AccountsList.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/ConnectImage.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/ConnectMiniWidgetCard.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/ConnectStatus.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/ConnectionStatusIcons.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/ConnectionsDrawer.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountActions.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountConnection.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountDetailEdit.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountDetails.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountDetailsContent.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/AccountDetailsTab.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Accounts/ConnectionErrorMessage.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/components/detailsdrawer/Transactions/TransactionsTab.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/constants/Accounts.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/hooks/useGetMergeableAccounts.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/hooks/useUiStore.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/index.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/stores/AccountStore.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/stores/UiStore.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/utils/AccountFields.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/utils/Accounts.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/utils/getConnectionMessages.d.ts +0 -0
- /package/dist/{accounts → src/accounts}/utils/index.d.ts +0 -0
- /package/dist/{analytics → src/analytics}/SurveyMiniWidget.d.ts +0 -0
- /package/dist/{analytics → src/analytics}/components/OpenTextField.d.ts +0 -0
- /package/dist/{analytics → src/analytics}/components/RatingScale.d.ts +0 -0
- /package/dist/{analytics → src/analytics}/index.d.ts +0 -0
- /package/dist/{analytics → src/analytics}/stores/AnalyticsStore.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/BubbleBudgetsMiniWidget.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/BubbleBudgetsWidget.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/api/BudgetsApi.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/AddBudgets.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/BubbleBudgets.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/BubbleChart.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/BudgetDetailsDrawer.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/BudgetList.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/BudgetsEmptyState.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/Overview.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/ZeroState.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/addbudget/Header.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/addbudget/RecalculateBudgetRow.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/addbudget/RecalculateBudgets.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/addbudget/UnbudgetedRow.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/bubblechart/Bubble.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/bubblechart/Mercury.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/budgetdetails/AddSubBudget.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/budgetdetails/BudgetDetails.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/budgetdetails/Header.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/budgetdetails/SubBudgetList.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/budgetlist/BudgetRow.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/budgetlist/SubBudgetRow.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/budgetlist/SubBudgetZeroState.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/components/shared/BudgetAmount.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/index.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/store/BudgetsStore.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/utils/BubblesSVG.d.ts +0 -0
- /package/dist/{budgets → src/budgets}/utils/BudgetUtil.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/CashflowMiniWidget.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/CashflowOnboarding.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/CashflowWidget.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/api/CashflowApi.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/CashflowAmountHeading.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/CashflowContent.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/CashflowHeading.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/CashflowWidgetContent.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/DetailsExpenseHeader.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/DetailsExpenseRow.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/DetailsFooter.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/DetailsTab.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/RemainingCash.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/SummaryTab.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/onboarding/StepOne.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/components/onboarding/StepTwo.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/constants/CashflowImages.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/context/hooks.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/index.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/stores/CashflowStore.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/stores/UiStore.d.ts +0 -0
- /package/dist/{cashflow → src/cashflow}/util/Filters.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CategoryList.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CategoryRow.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CategorySelector.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CategorySelectorDrawer.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CustomCategories/AddSubcategory.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CustomCategories/CustomCategoryModal.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CustomCategories/DeleteSubcategory.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CustomCategories/RenameSubcategory.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/CustomCategories/index.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/SubcategoryList.d.ts +0 -0
- /package/dist/{categories → src/categories}/components/SubcategoryRow.d.ts +0 -0
- /package/dist/{categories → src/categories}/constants/Analytics.d.ts +0 -0
- /package/dist/{categories → src/categories}/constants/OnClickEvents.d.ts +0 -0
- /package/dist/{categories → src/categories}/context/hooks.d.ts +0 -0
- /package/dist/{categories → src/categories}/index.d.ts +0 -0
- /package/dist/{categories → src/categories}/stores/CategoryStore.d.ts +0 -0
- /package/dist/{categories → src/categories}/stores/UiStore.d.ts +0 -0
- /package/dist/{categories → src/categories}/util/CategoryUtil.d.ts +0 -0
- /package/dist/{common → src/common}/api/AnalyticsApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/AppDataApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/BannerApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/BeatApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/CategoryApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/GlobalCopyApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/LocalizedCopyApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/NotificationApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/ScheduledPaymentsApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/UserApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/WidgetApi.d.ts +0 -0
- /package/dist/{common → src/common}/api/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/Banner.d.ts +0 -0
- /package/dist/{common → src/common}/components/ConnectCard.d.ts +0 -0
- /package/dist/{common → src/common}/components/ConnectDrawer.d.ts +0 -0
- /package/dist/{common → src/common}/components/CurrencyInput.d.ts +0 -0
- /package/dist/{common → src/common}/components/CurrencyText.d.ts +0 -0
- /package/dist/{common → src/common}/components/DataRow.d.ts +0 -0
- /package/dist/{common → src/common}/components/EmptyState.d.ts +0 -0
- /package/dist/{common → src/common}/components/ErrorBoundary.d.ts +0 -0
- /package/dist/{common → src/common}/components/IconBacking.d.ts +0 -0
- /package/dist/{common → src/common}/components/InformationTooltip.d.ts +0 -0
- /package/dist/{common → src/common}/components/ListItemAction.d.ts +0 -0
- /package/dist/{common → src/common}/components/ListItemWrapper.d.ts +0 -0
- /package/dist/{common → src/common}/components/Loader.d.ts +0 -0
- /package/dist/{common → src/common}/components/MiniWidgetContainer.d.ts +0 -0
- /package/dist/{common → src/common}/components/ResponsiveButton.d.ts +0 -0
- /package/dist/{common → src/common}/components/SearchBox.d.ts +0 -0
- /package/dist/{common → src/common}/components/SelectionBox.d.ts +0 -0
- /package/dist/{common → src/common}/components/SubheaderRow.d.ts +0 -0
- /package/dist/{common → src/common}/components/TabContentContainer.d.ts +0 -0
- /package/dist/{common → src/common}/components/WidgetContainer.d.ts +0 -0
- /package/dist/{common/components/__test__/EmptyState.test.d.ts → src/common/components/__test__/AddAccounts.test.d.ts} +0 -0
- /package/dist/{common → src/common}/components/accountfilter/AccountFilter.d.ts +0 -0
- /package/dist/{common → src/common}/components/accountfilter/AccountFilterOptions.d.ts +0 -0
- /package/dist/{common → src/common}/components/accountfilter/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/addaccounts/AddAccounts.d.ts +0 -0
- /package/dist/{common → src/common}/components/barchart/Bar.d.ts +0 -0
- /package/dist/{common → src/common}/components/barchart/BarChart.d.ts +0 -0
- /package/dist/{common → src/common}/components/barchart/BarColumn.d.ts +0 -0
- /package/dist/{common → src/common}/components/barchart/Legend.d.ts +0 -0
- /package/dist/{common → src/common}/components/barchart/Util.d.ts +0 -0
- /package/dist/{common → src/common}/components/barchart/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/calendar/Calendar.d.ts +0 -0
- /package/dist/{common → src/common}/components/calendar/Day.d.ts +0 -0
- /package/dist/{common → src/common}/components/calendar/Header.d.ts +0 -0
- /package/dist/{common → src/common}/components/calendar/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/Donut.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/LineChart.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/StackedLineChart.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/StatusBar.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/linechart/CustomLegend.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/linechart/CustomLine.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/linechart/CustomMark.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/stackedlinechart/CategoryIconLabel.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/stackedlinechart/CustomLegend.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/stackedlinechart/CustomPointTooltip.d.ts +0 -0
- /package/dist/{common → src/common}/components/charts/stackedlinechart/utils.d.ts +0 -0
- /package/dist/{common → src/common}/components/daterangeselector/DateRangeSelector.d.ts +0 -0
- /package/dist/{common → src/common}/components/daterangeselector/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/dialog/Dialog.d.ts +0 -0
- /package/dist/{common → src/common}/components/dialog/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/donuts/MultiSegmentDonut.d.ts +0 -0
- /package/dist/{common → src/common}/components/donuts/SingleSegmentDonut.d.ts +0 -0
- /package/dist/{common → src/common}/components/donuts/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/drawer/Drawer.d.ts +0 -0
- /package/dist/{common → src/common}/components/drawer/Header.d.ts +0 -0
- /package/dist/{common → src/common}/components/drawer/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/index.d.ts +0 -0
- /package/dist/{common → src/common}/components/listitems/ToggleButtonListItem.d.ts +0 -0
- /package/dist/{common → src/common}/components/listitems/ToggleListItem.d.ts +0 -0
- /package/dist/{common → src/common}/constants/Account.d.ts +0 -0
- /package/dist/{common → src/common}/constants/Analytics.d.ts +0 -0
- /package/dist/{common → src/common}/constants/ApiEndpoints.d.ts +0 -0
- /package/dist/{common → src/common}/constants/Category.d.ts +0 -0
- /package/dist/{common → src/common}/constants/Connect.d.ts +0 -0
- /package/dist/{common → src/common}/constants/DateFormats.d.ts +0 -0
- /package/dist/{common → src/common}/constants/DefaultConfig.d.ts +0 -0
- /package/dist/{common → src/common}/constants/Donut.d.ts +0 -0
- /package/dist/{common → src/common}/constants/Numbers.d.ts +0 -0
- /package/dist/{common → src/common}/constants/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → src/common}/constants/Sizes.d.ts +0 -0
- /package/dist/{common → src/common}/constants/SpendingPlan.d.ts +0 -0
- /package/dist/{common → src/common}/constants/Table.d.ts +0 -0
- /package/dist/{common → src/common}/constants/index.d.ts +0 -0
- /package/dist/{common → src/common}/context/GlobalDataProvider.d.ts +0 -0
- /package/dist/{common → src/common}/context/WidgetContainerProvider.d.ts +0 -0
- /package/dist/{common → src/common}/context/hooks.d.ts +0 -0
- /package/dist/{common → src/common}/context/index.d.ts +0 -0
- /package/dist/{common → src/common}/hooks/index.d.ts +0 -0
- /package/dist/{common → src/common}/hooks/useCombineEvents.d.ts +0 -0
- /package/dist/{common → src/common}/hooks/useDimensions.d.ts +0 -0
- /package/dist/{common → src/common}/hooks/usePrevious.d.ts +0 -0
- /package/dist/{common → src/common}/hooks/useScreenSize.d.ts +0 -0
- /package/dist/{common → src/common}/index.d.ts +0 -0
- /package/dist/{common → src/common}/stores/AppDataStore.d.ts +0 -0
- /package/dist/{common → src/common}/stores/ConnectStore.d.ts +0 -0
- /package/dist/{common → src/common}/stores/GlobalCopyStore.d.ts +0 -0
- /package/dist/{common → src/common}/stores/GlobalStore.d.ts +0 -0
- /package/dist/{common → src/common}/stores/GlobalUiStore.d.ts +0 -0
- /package/dist/{common → src/common}/stores/UserStore.d.ts +0 -0
- /package/dist/{common → src/common}/stores/index.d.ts +0 -0
- /package/dist/{common → src/common}/types/Account.d.ts +0 -0
- /package/dist/{common → src/common}/types/Activity.d.ts +0 -0
- /package/dist/{common → src/common}/types/Analytics.d.ts +0 -0
- /package/dist/{common → src/common}/types/AppData.d.ts +0 -0
- /package/dist/{common → src/common}/types/Beat.d.ts +0 -0
- /package/dist/{common → src/common}/types/Budget.d.ts +0 -0
- /package/dist/{common → src/common}/types/Cashflow.d.ts +0 -0
- /package/dist/{common → src/common}/types/Category.d.ts +0 -0
- /package/dist/{common → src/common}/types/Client.d.ts +0 -0
- /package/dist/{common → src/common}/types/Date.d.ts +0 -0
- /package/dist/{common → src/common}/types/Debt.d.ts +0 -0
- /package/dist/{common → src/common}/types/Expense.d.ts +0 -0
- /package/dist/{common → src/common}/types/Global.d.ts +0 -0
- /package/dist/{common → src/common}/types/GlobalCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/Goal.d.ts +0 -0
- /package/dist/{common → src/common}/types/Help.d.ts +0 -0
- /package/dist/{common → src/common}/types/Holding.d.ts +0 -0
- /package/dist/{common → src/common}/types/Institution.d.ts +0 -0
- /package/dist/{common → src/common}/types/LocalizedContent.d.ts +0 -0
- /package/dist/{common → src/common}/types/Merchant.d.ts +0 -0
- /package/dist/{common → src/common}/types/Notification.d.ts +0 -0
- /package/dist/{common → src/common}/types/RepeatingTransaction.d.ts +0 -0
- /package/dist/{common → src/common}/types/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → src/common}/types/ScreenSize.d.ts +0 -0
- /package/dist/{common → src/common}/types/SpendingPlan.d.ts +0 -0
- /package/dist/{common → src/common}/types/Transaction.d.ts +0 -0
- /package/dist/{common → src/common}/types/User.d.ts +0 -0
- /package/dist/{common → src/common}/types/Widgets.d.ts +0 -0
- /package/dist/{common → src/common}/types/index.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/AccountFilterCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/AccountTypeCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/AccountsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/AnalyticsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/BudgetsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/CashflowCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/CategoryCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/CommonCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/ConnectCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/CurrencyInputCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/DateRangePickerCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/DebtsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/GoalsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/InsightsFeedCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/InvestmentsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/MicroInsightsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/NetWorthCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/NotificationsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/RecurringCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/SettingsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/SpendingCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/TransactionsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/TrendsCopy.d.ts +0 -0
- /package/dist/{common → src/common}/types/localization/index.d.ts +0 -0
- /package/dist/{common → src/common}/utils/AccountFilter.d.ts +0 -0
- /package/dist/{common → src/common}/utils/Analytics.d.ts +0 -0
- /package/dist/{common → src/common}/utils/Categories.d.ts +0 -0
- /package/dist/{common → src/common}/utils/DateUtil.d.ts +0 -0
- /package/dist/{common → src/common}/utils/Fetch.d.ts +0 -0
- /package/dist/{common → src/common}/utils/Localization.d.ts +0 -0
- /package/dist/{common → src/common}/utils/NumberFormatting.d.ts +0 -0
- /package/dist/{common → src/common}/utils/Theme.d.ts +0 -0
- /package/dist/{common → src/common}/utils/index.d.ts +0 -0
- /package/dist/{dashboard → src/dashboard}/Dashboard.d.ts +0 -0
- /package/dist/{dashboard → src/dashboard}/Greeting.d.ts +0 -0
- /package/dist/{dashboard → src/dashboard}/constants/Dashboard.d.ts +0 -0
- /package/dist/{dashboard → src/dashboard}/index.d.ts +0 -0
- /package/dist/{dashboard → src/dashboard}/types/DashboardTypes.d.ts +0 -0
- /package/dist/{debts → src/debts}/DebtsWidget.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/DebtDrawer.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/DebtsChart.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/DebtsTable.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/PaydownDrawer.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/SnowballCard.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/SnowballDrawer.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/actions/DebtsPriorityAction.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/actions/ExtraPaymentAction.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/actions/InterestRateAction.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/actions/MonthlyPaymentAction.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/actions/OriginalBalanceAction.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtsdrawer/DebtDetailsChart.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtsdrawer/DebtDetailsContent.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtsdrawer/DebtDetailsTab.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtsdrawer/DebtScheduleTab.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtsdrawer/DebtStatusCard.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtspaydown/PaydownButton.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtspaydown/PaydownContent.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtspriority/DebtsPriorityButton.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtspriority/DebtsPrioriyPopover.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtstable/AccountCell.d.ts +0 -0
- /package/dist/{debts → src/debts}/components/debtstable/PriorityCell.d.ts +0 -0
- /package/dist/{debts → src/debts}/constants/index.d.ts +0 -0
- /package/dist/{debts → src/debts}/hooks/useDebtsUiStore.d.ts +0 -0
- /package/dist/{debts → src/debts}/index.d.ts +0 -0
- /package/dist/{debts → src/debts}/store/DebtsStore.d.ts +0 -0
- /package/dist/{debts → src/debts}/store/DebtsUiStore.d.ts +0 -0
- /package/dist/{debts → src/debts}/utils/DebtStore.d.ts +0 -0
- /package/dist/{debts → src/debts}/utils/DebtsChart.d.ts +0 -0
- /package/dist/{debts → src/debts}/utils/DebtsTable.d.ts +0 -0
- /package/dist/{debts → src/debts}/utils/DebtsWidget.d.ts +0 -0
- /package/dist/{debts → src/debts}/utils/SnowballCard.d.ts +0 -0
- /package/dist/{debts → src/debts}/utils/shared.d.ts +0 -0
- /package/dist/{goals → src/goals}/GoalsWidget.d.ts +0 -0
- /package/dist/{goals → src/goals}/api/GoalApi.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/AccountSelectionDrawer.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/AddGoal.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/GoalDetails.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/GoalDetailsDrawer.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/GoalList.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/GoalStatusCard.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/ManageGoals.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/TabTitle.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/AccountAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/AddRetirementAccountAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/AmountToSaveAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/BirthdayAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/ChangeAccountAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/ContributionAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/GoalNameAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/InterestRateAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/MonthlyPaymentAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/OriginalBalanceAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/actions/RetirementAgeAction.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/addgoal/AddGoalListItem.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/managegoals/CompleteListItem.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/managegoals/OngoingListItem.d.ts +0 -0
- /package/dist/{goals → src/goals}/components/managegoals/ReorderGoals.d.ts +0 -0
- /package/dist/{goals → src/goals}/index.d.ts +0 -0
- /package/dist/{goals → src/goals}/stores/GoalStore.d.ts +0 -0
- /package/dist/{goals → src/goals}/util/GoalsUtil.d.ts +0 -0
- /package/dist/{help → src/help}/HelpContent.d.ts +0 -0
- /package/dist/{help → src/help}/HelpList.d.ts +0 -0
- /package/dist/{help → src/help}/HelpWidget.d.ts +0 -0
- /package/dist/{help → src/help}/api/HelpApi.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/BottomImageContent.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/ContentItem.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/Header.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/LeftImageContent.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/NoImageContent.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/RightImageContent.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/TopImageContent.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/index.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Accounts.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Budgets.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/CashFlow.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Debts.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/General.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Goals.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Insights.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Investments.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Mobile.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/NetWorth.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Notifications.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/RecurringTransactions.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Spending.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Transactions.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/Trends.d.ts +0 -0
- /package/dist/{help → src/help}/components/content/section/index.d.ts +0 -0
- /package/dist/{help → src/help}/constants/HelpImages.d.ts +0 -0
- /package/dist/{help → src/help}/constants/index.d.ts +0 -0
- /package/dist/{help → src/help}/index.d.ts +0 -0
- /package/dist/{help → src/help}/store/HelpStore.d.ts +0 -0
- /package/dist/{help → src/help}/utils/index.d.ts +0 -0
- /package/dist/{insights → src/insights}/store/BeatStore.d.ts +0 -0
- /package/dist/{investments → src/investments}/InvestmentsWidget.d.ts +0 -0
- /package/dist/{investments → src/investments}/api/HoldingApi.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/Allocation.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/Analysis.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/AnalysisDetails.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/HeaderCell.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/HoldingDrawer.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/InfoToolTip.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/Overview.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/TabTitle.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/allocation/InvestementAllocationList.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/allocation/InvestmentsAllocationChart.d.ts +0 -0
- /package/dist/{investments → src/investments}/components/allocation/util/createInvestementsAllocationData.d.ts +0 -0
- /package/dist/{investments → src/investments}/constants/index.d.ts +0 -0
- /package/dist/{investments → src/investments}/index.d.ts +0 -0
- /package/dist/{investments → src/investments}/stores/HoldingStore.d.ts +0 -0
- /package/dist/{investments → src/investments}/util/InvestmentUtil.d.ts +0 -0
- /package/dist/{merchants → src/merchants}/api/MerchantApi.d.ts +0 -0
- /package/dist/{merchants → src/merchants}/components/MerchantLookup.d.ts +0 -0
- /package/dist/{merchants → src/merchants}/index.d.ts +0 -0
- /package/dist/{merchants → src/merchants}/stores/MerchantStore.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/analytics.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/MicroWidgetContainer.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/beatCard/BeatCard.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/beaticons/BeatCategoryIcon.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/beaticons/BeatIcon.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/beaticons/BeatMerchantLogo.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/beaticons/ChartFilledIcon.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/beaticons/MonthlySpendComparisonIcon.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/beaticons/ZeroStateIcon.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/beaticons/index.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/carouselheader/CarouselHeader.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/insightsmicrowidget/InsightsMicroWidget.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/microBeatCarousel/CarouselControls.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/microBeatCarousel/MicroBeatCarousel.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/microInsightCard/MicroInsightCard.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/noRelevantInsightsCard/NoRelevantInsightsCard.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/spinner/Spinner.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/viewMoreMicroCard/ViewMoreMicroCard.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/components/zeroStateCard/ZeroStateCard.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/constants/Analytics.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/constants/App.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/context/InsightsMicroWidgetDataProvider.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/context/hooks.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/index.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/interfaces.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/stores/AppStore.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/stores/CopyStore.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/stores/InsightsMicroWidgetStore.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/utils/DataSeries.d.ts +0 -0
- /package/dist/{microinsights → src/microinsights}/utils/beatUtils.d.ts +0 -0
- /package/dist/{networth → src/networth}/NetWorthWidget.d.ts +0 -0
- /package/dist/{networth → src/networth}/components/AssetsLiabilitiesDetail.d.ts +0 -0
- /package/dist/{networth → src/networth}/components/GainsLossesDetail.d.ts +0 -0
- /package/dist/{networth → src/networth}/components/NetWorthChange.d.ts +0 -0
- /package/dist/{networth → src/networth}/components/NetWorthChart.d.ts +0 -0
- /package/dist/{networth → src/networth}/components/NetWorthList.d.ts +0 -0
- /package/dist/{networth → src/networth}/components/NetWorthListItem.d.ts +0 -0
- /package/dist/{networth → src/networth}/components/NetWorthSummary.d.ts +0 -0
- /package/dist/{networth → src/networth}/index.d.ts +0 -0
- /package/dist/{networth → src/networth}/stores/NetWorthStore.d.ts +0 -0
- /package/dist/{networth → src/networth}/types/NetWorth.d.ts +0 -0
- /package/dist/{networth → src/networth}/utils/NetWorthUtils.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/components/DateRow.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/components/NotificationBadge.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/components/NotificationCard.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/components/NotificationDrawer.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/components/NotificationList.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/components/NotificationsEmptyState.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/constants/NotificationConstants.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/index.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/stores/NotificationStore.d.ts +0 -0
- /package/dist/{notifications → src/notifications}/utils/NotificationUtils.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/RecurringActivityMiniWidget.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/RecurringActivityWidget.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/ActivityBadges.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/ActivityDetails.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/ActivityList.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/ActivityRow.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/ActivityStatus.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/MiniWidgetContent.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/RecurringActivity.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/actions/FrequencyAction.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/actions/PaymentDateAction.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/activitycalendar/ActivityCalendar.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/activitycalendar/ActivityDay.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/activitycalendar/Legend.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/shared/ActivitySettings.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/shared/activitysettings/AddActivity.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/shared/activitysettings/AddActivityDetails.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/shared/activitysettings/ManageExpenses.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/shared/activitysettings/ManageIncome.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/components/shared/activitysettings/SelectTransaction.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/index.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/stores/RecurringActivityStore.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/util/RecurringActivityUtils.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/util/buildActivities.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/util/buildNewActivity.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/util/getRecurrence.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/util/getStatus.d.ts +0 -0
- /package/dist/{recurringactivity → src/recurringactivity}/util/updateActivity.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/RecurringTransactionsMiniWidget.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/RecurringTransactionsWidget.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/api/RepeatingTransactionsApi.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/MiniWidgetContent.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/RecurrenceBadges.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/RecurrenceList.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/RecurrenceRow.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/RecurringStatus.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/RecurringTransactionDetails.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/RecurringTransactions.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/actions/FrequencyAction.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/actions/PaymentDateAction.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/recurrencecalendar/Legend.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/recurrencecalendar/RecurrenceCalendar.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/recurrencecalendar/RecurrenceDay.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/shared/RecurringSettings.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/shared/recurringsettings/AddRecurringTransaction.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/shared/recurringsettings/ManageExpenses.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/shared/recurringsettings/ManageIncome.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/shared/recurringsettings/RecurringRow.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/components/shared/recurringsettings/SelectTransaction.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/index.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/stores/RecurringTransactionsStore.d.ts +0 -0
- /package/dist/{recurringtransactions → src/recurringtransactions}/util/RecurringTransactions.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/ContactSupport.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/HelpByCategoryList.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/MissingInstitution.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/PopularTopicsDrawer.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/PopularTopicsList.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/PopularTopicsRow.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/RequestSupport.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/RequestSupportFooter.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/RequestSupportHeader.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/RequestSupportInstitution.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/SupportSuccessMessage.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/constants/index.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/index.d.ts +0 -0
- /package/dist/{requestsupport → src/requestsupport}/util/getInstitutionsBasedOnGuid.d.ts +0 -0
- /package/dist/{settings → src/settings}/SettingsWidget.d.ts +0 -0
- /package/dist/{settings → src/settings}/api/SettingsApi.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/devices/DeviceDialog.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/devices/DeviceList.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/devices/DeviceTab.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/devices/DeviceTable.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/notifications/AccountProfileListItem.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/notifications/DeliveryMethods.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/notifications/NotificationProfileDetails.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/notifications/NotificationSettings.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/profile/ProfileTab.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/profile/actions/VerifyEmailAction.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/profile/actions/VerifyPhoneAction.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/profile/actions/VerifyTokenAction.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/transactionrules/TransactionRulesTab.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/transactionrules/actions/DeleteRuleAction.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/transactionrules/actions/EditCategoryAction.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/transactionrules/actions/EditPayeeAction.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/transactionrules/actions/EditRuleAction.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/transactionrules/components/EditRuleDetails.d.ts +0 -0
- /package/dist/{settings → src/settings}/components/transactionrules/components/RuleListItem.d.ts +0 -0
- /package/dist/{settings → src/settings}/constants/Settings.d.ts +0 -0
- /package/dist/{settings → src/settings}/index.d.ts +0 -0
- /package/dist/{settings → src/settings}/stores/SettingsStore.d.ts +0 -0
- /package/dist/{settings → src/settings}/util/Notifications.d.ts +0 -0
- /package/dist/{spending → src/spending}/SpendingMiniWidget.d.ts +0 -0
- /package/dist/{spending → src/spending}/SpendingWidget.d.ts +0 -0
- /package/dist/{spending → src/spending}/components/MiniSpendingChart.d.ts +0 -0
- /package/dist/{spending → src/spending}/components/Spending.d.ts +0 -0
- /package/dist/{spending → src/spending}/components/SpendingChart.d.ts +0 -0
- /package/dist/{spending → src/spending}/components/SpendingDonut.d.ts +0 -0
- /package/dist/{spending → src/spending}/components/SpendingLegend.d.ts +0 -0
- /package/dist/{spending → src/spending}/components/SpendingList.d.ts +0 -0
- /package/dist/{spending → src/spending}/components/SpendingTabLabel.d.ts +0 -0
- /package/dist/{spending → src/spending}/index.d.ts +0 -0
- /package/dist/{spending → src/spending}/utils/SpendingData.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/TransactionWidget.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/analytics.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/api/TransactionApi.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/TransactionDetails.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/TransactionList.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/TransactionTable.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/Description.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/FlagTransaction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/ManualTransactionDetails.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/TransactionAmountHeader.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/CategoryAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/DateAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/DeleteAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/HideAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/MemoAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/SplitAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/TagsAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiondetails/actions/index.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactionlist/DateRow.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactionlist/TransactionRow.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactionlist/ZeroState.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiontable/cells/AccountCell.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiontable/cells/AmountCell.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiontable/cells/CategoryCell.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiontable/cells/DateCell.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiontable/cells/FlagCell.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiontable/cells/HeaderCell.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiontable/cells/PayeeCell.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/shared/transactiontable/cells/index.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/splitmanager/SplitManager.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/splitmanager/SplitRow.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/splitmanager/index.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/tagmanager/Header.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/tagmanager/SearchBox.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/tagmanager/TagManager.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/tagmanager/TagRow.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/tagmanager/index.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/transactionwidget/AddAccountModal.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/transactionwidget/actions/AddTransactionAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/transactionwidget/actions/EditCategoryAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/components/transactionwidget/actions/ExportCsvAction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/constants/Actions.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/constants/Analytics.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/constants/OnClickEvents.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/constants/Transaction.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/constants/TransactionsTable.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/context/hooks.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/index.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/stores/TransactionStore.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/stores/UiStore.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/utils/Filters.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/utils/Transactions.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/utils/buildDetailedTransactions.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/utils/exportTransactionsToCSV.d.ts +0 -0
- /package/dist/{transactions → src/transactions}/utils/sortAndFilterTransactions.d.ts +0 -0
- /package/dist/{trends → src/trends}/TrendsFullWidget.d.ts +0 -0
- /package/dist/{trends → src/trends}/TrendsMiniWidget.d.ts +0 -0
- /package/dist/{trends → src/trends}/components/SpendingChart.d.ts +0 -0
- /package/dist/{trends → src/trends}/components/TrendsChart.d.ts +0 -0
- /package/dist/{trends → src/trends}/components/TrendsDrawer.d.ts +0 -0
- /package/dist/{trends → src/trends}/components/TrendsTable.d.ts +0 -0
- /package/dist/{trends → src/trends}/components/trendstable/AmountCell.d.ts +0 -0
- /package/dist/{trends → src/trends}/components/trendstable/CategoryCell.d.ts +0 -0
- /package/dist/{trends → src/trends}/components/trendstable/HeaderCell.d.ts +0 -0
- /package/dist/{trends → src/trends}/index.d.ts +0 -0
- /package/dist/{trends → src/trends}/mocks.d.ts +0 -0
- /package/dist/{trends → src/trends}/utils/SpendingData.d.ts +0 -0
- /package/dist/{trends → src/trends}/utils/TrendsData.d.ts +0 -0
- /package/dist/{trends → src/trends}/utils/shared.d.ts +0 -0
package/dist/index.es.js
CHANGED
@@ -26,7 +26,7 @@ import ee from "@mui/material/Button";
|
|
26
26
|
import Wn from "@mui/material/Tooltip";
|
27
27
|
import Fe from "@mui/material/IconButton";
|
28
28
|
import no from "@mui/material/FormControlLabel";
|
29
|
-
import
|
29
|
+
import j from "@mui/material/ListItem";
|
30
30
|
import ue from "@mui/material/ListItemButton";
|
31
31
|
import se from "@mui/material/ListItemText";
|
32
32
|
import Ns from "@mui/material/Popover";
|
@@ -81,7 +81,7 @@ import nn from "@mui/material/Avatar";
|
|
81
81
|
import Pe from "@mui/material/ListItemAvatar";
|
82
82
|
import ft from "@mui/material/ListItemIcon";
|
83
83
|
import ma from "@mui/material/Switch";
|
84
|
-
import { makeAutoObservable as He, runInAction as
|
84
|
+
import { makeAutoObservable as He, runInAction as Y, reaction as Sd, observable as Td } from "mobx";
|
85
85
|
import Ad, { SurveyQuestionType as or } from "posthog-js";
|
86
86
|
import { differenceInDays as xd } from "date-fns/differenceInDays";
|
87
87
|
import pa from "@mui/icons-material/ChevronRight";
|
@@ -1267,7 +1267,7 @@ const Va = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1267
1267
|
}
|
1268
1268
|
},
|
1269
1269
|
children: [
|
1270
|
-
/* @__PURE__ */ t(
|
1270
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
1271
1271
|
no,
|
1272
1272
|
{
|
1273
1273
|
control: /* @__PURE__ */ t(
|
@@ -1298,7 +1298,7 @@ const Va = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1298
1298
|
const S = m[y], w = S.every(
|
1299
1299
|
(v) => d[v.guid]
|
1300
1300
|
);
|
1301
|
-
return /* @__PURE__ */ t(
|
1301
|
+
return /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
1302
1302
|
ne,
|
1303
1303
|
{
|
1304
1304
|
"aria-label": T(i.accountTypeAccounts, y),
|
@@ -1333,7 +1333,7 @@ const Va = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1333
1333
|
children: S.map((v) => {
|
1334
1334
|
const I = d[v.guid], R = `${v.name}${h && v.accountNumber ? ` *${v.accountNumber.slice(-4)}` : ""}`;
|
1335
1335
|
return /* @__PURE__ */ t(
|
1336
|
-
|
1336
|
+
j,
|
1337
1337
|
{
|
1338
1338
|
className: "mx-cmn-account-options-container",
|
1339
1339
|
disableGutters: !0,
|
@@ -2258,7 +2258,7 @@ const Bu = ({
|
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
2260
2260
|
return n;
|
2261
|
-
}, ve = () => qe("useAccountStore").globalStore.accountStore, Fi = () => qe("useAppConfig").globalStore.appDataStore.appConfig, Io = () => qe("useAnalyticsStore").globalStore.analyticsStore, ut = () => qe("useBudgetsStore").globalStore.budgetsStore, vo = () => qe("useCashflowStore").globalStore.cashflowStore, Ke = () => qe("useCategoryStore").globalStore.categoryStore, rc = () => qe("useConnectStore").globalStore.connectStore, Aa = () => qe("useDebtsStore").globalStore.debtsStore, xa = () => qe("useGlobalStore").globalStore, _e = () => qe("useGlobalUiStore").globalStore.globalUiStore, x = () => qe("globalCopyStore").globalStore.copyStore.copy, rt = () => qe("useGoalStore").globalStore.goalStore, wo = () => qe("useHelpStore").globalStore.helpStore, wi = () => qe("useHoldingStore").globalStore.holdingStore, zu = () => qe("useMerchantStore").globalStore.merchantStore, Yu = () => qe("useNetWorthStore").globalStore.netWorthStore, sc = () => qe("useNotificationStore").globalStore.notificationStore, nt = () => qe("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => qe("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => qe("useSettingsStore").globalStore.settingsStore, Te = () => qe("useTransactionStore").globalStore.transactionStore, an = () => qe("useUserStore").globalStore.userStore,
|
2261
|
+
}, ve = () => qe("useAccountStore").globalStore.accountStore, Fi = () => qe("useAppConfig").globalStore.appDataStore.appConfig, Io = () => qe("useAnalyticsStore").globalStore.analyticsStore, ut = () => qe("useBudgetsStore").globalStore.budgetsStore, vo = () => qe("useCashflowStore").globalStore.cashflowStore, Ke = () => qe("useCategoryStore").globalStore.categoryStore, rc = () => qe("useConnectStore").globalStore.connectStore, Aa = () => qe("useDebtsStore").globalStore.debtsStore, xa = () => qe("useGlobalStore").globalStore, _e = () => qe("useGlobalUiStore").globalStore.globalUiStore, x = () => qe("globalCopyStore").globalStore.copyStore.copy, rt = () => qe("useGoalStore").globalStore.goalStore, wo = () => qe("useHelpStore").globalStore.helpStore, wi = () => qe("useHoldingStore").globalStore.holdingStore, zu = () => qe("useMerchantStore").globalStore.merchantStore, Yu = () => qe("useNetWorthStore").globalStore.netWorthStore, sc = () => qe("useNotificationStore").globalStore.notificationStore, nt = () => qe("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => qe("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => qe("useSettingsStore").globalStore.settingsStore, Te = () => qe("useTransactionStore").globalStore.transactionStore, an = () => qe("useUserStore").globalStore.userStore, z = () => ({ onEvent: qe().onEvent }), X2 = () => ({ onPageView: qe().onPageView }), ju = (e = "useWidgetContainerContext") => {
|
2262
2262
|
const n = g.useContext(ac);
|
2263
2263
|
if (!n)
|
2264
2264
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -2418,9 +2418,9 @@ const Bu = ({
|
|
2418
2418
|
cursorPos: { x: 0, y: 0 }
|
2419
2419
|
}), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: S, cursorPos: w } = C, v = S && E && y, I = !v, R = [...o, ...r], D = R[0]?.dataset.length ?? 0, H = R.flatMap((V) => V.dataset.map((pe) => pe.x)), O = R.flatMap((V) => V.dataset.map((pe) => pe.y)), M = o[0]?.dataset?.map(
|
2420
2420
|
(V, pe) => o.reduce((Me, Wt) => Me + Wt.dataset[pe]?.y || 0, 0)
|
2421
|
-
) ?? [0], Q = Math.max(...M),
|
2421
|
+
) ?? [0], Q = Math.max(...M), U = Math.max(
|
2422
2422
|
...r.flatMap((V) => V.dataset.map((pe) => pe.y))
|
2423
|
-
),
|
2423
|
+
), X = Math.floor(Math.min(...O) / 100) * 100, fe = Math.ceil(Math.max(Q, U) / 100) * 100, $ = o.map((V, pe) => ({
|
2424
2424
|
id: `stacked-${pe}`,
|
2425
2425
|
guid: V.category_guid,
|
2426
2426
|
top_level_guid: V.top_level_category_guid,
|
@@ -2570,7 +2570,7 @@ const Bu = ({
|
|
2570
2570
|
],
|
2571
2571
|
yAxis: [
|
2572
2572
|
{
|
2573
|
-
min:
|
2573
|
+
min: X,
|
2574
2574
|
max: fe || 100
|
2575
2575
|
}
|
2576
2576
|
]
|
@@ -2816,25 +2816,25 @@ const Bu = ({
|
|
2816
2816
|
(s === "timeframebuttons" || s === "timeframetabs") && e.onRangeChanged(H());
|
2817
2817
|
}, [I]);
|
2818
2818
|
const H = () => {
|
2819
|
-
const
|
2820
|
-
return [je(qt(
|
2821
|
-
}, O = (
|
2822
|
-
const
|
2819
|
+
const U = je(hn());
|
2820
|
+
return [je(qt(U, I)), U];
|
2821
|
+
}, O = (U) => {
|
2822
|
+
const X = [...u], fe = u[0], $ = u[1], ce = U === "previous";
|
2823
2823
|
if (m === i.dateRangePickerCopy.dateRangeThisMonth)
|
2824
|
-
|
2824
|
+
X[0] = ce ? qt(fe, 1) : mt(fe, 1), X[1] = je(ce ? qt($, 1) : mt($, 1));
|
2825
2825
|
else if (m === i.dateRangePickerCopy.dateRangeYTD || m === i.dateRangePickerCopy.dateRangeLastYear)
|
2826
|
-
|
2826
|
+
X[0] = ce ? io(ar(fe), 1) : ni(ar(fe), 1), X[1] = ce ? io(ir(fe), 1) : ni(ir(fe), 1);
|
2827
2827
|
else {
|
2828
2828
|
const Re = nd($, fe);
|
2829
|
-
|
2829
|
+
X[0] = U === "previous" ? dt(fe, Re) : Mt(fe, Re), X[1] = U === "previous" ? dt($, Re) : Mt($, Re);
|
2830
2830
|
}
|
2831
|
-
h(
|
2831
|
+
h(X), e.onRangeChanged(X);
|
2832
2832
|
}, M = () => {
|
2833
2833
|
h(f), v(
|
2834
2834
|
m === i.dateRangePickerCopy.dateRangeThisMonth || m === i.dateRangePickerCopy.dateRangeLastMonth
|
2835
2835
|
), e.onRangeChanged(f);
|
2836
|
-
}, Q = (
|
2837
|
-
R(
|
2836
|
+
}, Q = (U) => {
|
2837
|
+
R(U);
|
2838
2838
|
};
|
2839
2839
|
return /* @__PURE__ */ l(L, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
2840
2840
|
/* @__PURE__ */ t(
|
@@ -2935,10 +2935,10 @@ const Bu = ({
|
|
2935
2935
|
exclusive: !0,
|
2936
2936
|
orientation: "horizontal",
|
2937
2937
|
value: I,
|
2938
|
-
children: D.buttons.map((
|
2938
|
+
children: D.buttons.map((U) => /* @__PURE__ */ t(
|
2939
2939
|
ci,
|
2940
2940
|
{
|
2941
|
-
onClick: () => Q(
|
2941
|
+
onClick: () => Q(U.value),
|
2942
2942
|
sx: {
|
2943
2943
|
fontSize: 15,
|
2944
2944
|
fontWeight: 600,
|
@@ -2962,10 +2962,10 @@ const Bu = ({
|
|
2962
2962
|
color: c.palette.grey[500]
|
2963
2963
|
}
|
2964
2964
|
},
|
2965
|
-
value:
|
2966
|
-
children:
|
2965
|
+
value: U.value,
|
2966
|
+
children: U.label
|
2967
2967
|
},
|
2968
|
-
|
2968
|
+
U.label
|
2969
2969
|
))
|
2970
2970
|
}
|
2971
2971
|
),
|
@@ -2973,18 +2973,18 @@ const Bu = ({
|
|
2973
2973
|
Lt,
|
2974
2974
|
{
|
2975
2975
|
indicatorColor: "primary",
|
2976
|
-
onChange: (
|
2976
|
+
onChange: (U, X) => Q(X),
|
2977
2977
|
textColor: "primary",
|
2978
2978
|
value: I,
|
2979
2979
|
variant: "fullWidth",
|
2980
|
-
children: D.tabs.map((
|
2980
|
+
children: D.tabs.map((U) => /* @__PURE__ */ t(
|
2981
2981
|
Ve,
|
2982
2982
|
{
|
2983
|
-
label: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children:
|
2983
|
+
label: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: U.label }),
|
2984
2984
|
sx: { minWidth: 80 },
|
2985
|
-
value:
|
2985
|
+
value: U.value
|
2986
2986
|
},
|
2987
|
-
|
2987
|
+
U.label
|
2988
2988
|
))
|
2989
2989
|
}
|
2990
2990
|
)
|
@@ -3007,8 +3007,8 @@ const Bu = ({
|
|
3007
3007
|
{
|
3008
3008
|
copy: i.dateRangePickerCopy,
|
3009
3009
|
dateRange: f,
|
3010
|
-
onRangeChanged: (
|
3011
|
-
E(
|
3010
|
+
onRangeChanged: (U, X) => {
|
3011
|
+
E(U), C(X);
|
3012
3012
|
},
|
3013
3013
|
selectedShortcut: m,
|
3014
3014
|
sx: { p: 16 }
|
@@ -3034,8 +3034,8 @@ const Bu = ({
|
|
3034
3034
|
{
|
3035
3035
|
copy: i.dateRangePickerCopy,
|
3036
3036
|
dateRange: f,
|
3037
|
-
onRangeChanged: (
|
3038
|
-
E(
|
3037
|
+
onRangeChanged: (U, X) => {
|
3038
|
+
E(U), C(X);
|
3039
3039
|
},
|
3040
3040
|
selectedShortcut: m,
|
3041
3041
|
sx: {
|
@@ -3245,12 +3245,12 @@ const Dn = ({
|
|
3245
3245
|
sx: h = {},
|
3246
3246
|
title: m = ""
|
3247
3247
|
}) => {
|
3248
|
-
const [C, { height: f, width: E }] = dc(), { onEvent: y } =
|
3248
|
+
const [C, { height: f, width: E }] = dc(), { onEvent: y } = z(), { isDesktop: S, isLargeDesktop: w, isMobile: v, isTablet: I } = Ee(), { displayedDateRange: R, isCopyLoaded: D, selectedAccountGuids: H, setSelectedAccountGuids: O } = _e(), { common: M } = x(), Q = () => {
|
3249
3249
|
d && (d(), y(W.WIDGET_BACK_CLICK));
|
3250
3250
|
};
|
3251
3251
|
if (!D)
|
3252
3252
|
return /* @__PURE__ */ t(he, {});
|
3253
|
-
const
|
3253
|
+
const U = {
|
3254
3254
|
accountFilterOptionsCopy: {
|
3255
3255
|
accountTypeAccounts: M.account_filter.account_type_accounts,
|
3256
3256
|
cancelButton: M.cancel_button,
|
@@ -3264,7 +3264,7 @@ const Dn = ({
|
|
3264
3264
|
zeroStateTitle: M.account_filter.zero_state_title
|
3265
3265
|
},
|
3266
3266
|
title: M.account_filter.title
|
3267
|
-
},
|
3267
|
+
}, X = {
|
3268
3268
|
dateRangePickerCopy: {
|
3269
3269
|
dateRangeFrom: M.date_range_picker.from,
|
3270
3270
|
dateRangeTo: M.date_range_picker.to,
|
@@ -3308,7 +3308,7 @@ const Dn = ({
|
|
3308
3308
|
Sr,
|
3309
3309
|
{
|
3310
3310
|
calendarActions: i,
|
3311
|
-
copy:
|
3311
|
+
copy: X,
|
3312
3312
|
range: [fe, $],
|
3313
3313
|
shouldShrinkToIcon: !1,
|
3314
3314
|
variant: r
|
@@ -3318,7 +3318,7 @@ const Dn = ({
|
|
3318
3318
|
tc,
|
3319
3319
|
{
|
3320
3320
|
accounts: e,
|
3321
|
-
copy:
|
3321
|
+
copy: U,
|
3322
3322
|
onFilterClick: (Re) => {
|
3323
3323
|
O(Re), _?.();
|
3324
3324
|
},
|
@@ -3383,7 +3383,7 @@ const Dn = ({
|
|
3383
3383
|
Sr,
|
3384
3384
|
{
|
3385
3385
|
calendarActions: i,
|
3386
|
-
copy:
|
3386
|
+
copy: X,
|
3387
3387
|
range: [fe, $],
|
3388
3388
|
shouldShrinkToIcon: !1,
|
3389
3389
|
variant: r
|
@@ -3702,10 +3702,10 @@ const Tr = "connect_widget", Ar = "connections_widget", o_ = ({
|
|
3702
3702
|
}
|
3703
3703
|
)
|
3704
3704
|
] });
|
3705
|
-
return i ? /* @__PURE__ */ t(
|
3705
|
+
return i ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: i, children: [
|
3706
3706
|
o,
|
3707
3707
|
/* @__PURE__ */ t(ft, { children: /* @__PURE__ */ t(P, { name: "chevron_right", size: 24 }) })
|
3708
|
-
] }) }) : /* @__PURE__ */ t(
|
3708
|
+
] }) }) : /* @__PURE__ */ t(j, { disableGutters: !1, disablePadding: !1, children: o });
|
3709
3709
|
}, ca = ({
|
3710
3710
|
body: e,
|
3711
3711
|
iconName: n = "info",
|
@@ -3842,7 +3842,7 @@ const Tr = "connect_widget", Ar = "connections_widget", o_ = ({
|
|
3842
3842
|
}, C = () => {
|
3843
3843
|
h(!1), r();
|
3844
3844
|
};
|
3845
|
-
return /* @__PURE__ */ l(
|
3845
|
+
return /* @__PURE__ */ l(j, { children: [
|
3846
3846
|
/* @__PURE__ */ l(ue, { onClick: () => h(!n), children: [
|
3847
3847
|
/* @__PURE__ */ t(
|
3848
3848
|
se,
|
@@ -3885,8 +3885,8 @@ const Tr = "connect_widget", Ar = "connections_widget", o_ = ({
|
|
3885
3885
|
onClick: i,
|
3886
3886
|
sx: a = {}
|
3887
3887
|
}) => {
|
3888
|
-
const { onEvent: o } =
|
3889
|
-
return i ? /* @__PURE__ */ t(
|
3888
|
+
const { onEvent: o } = z();
|
3889
|
+
return i ? /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
|
3890
3890
|
ue,
|
3891
3891
|
{
|
3892
3892
|
onClick: () => {
|
@@ -3895,7 +3895,7 @@ const Tr = "connect_widget", Ar = "connections_widget", o_ = ({
|
|
3895
3895
|
children: e
|
3896
3896
|
}
|
3897
3897
|
) }) : /* @__PURE__ */ t(
|
3898
|
-
|
3898
|
+
j,
|
3899
3899
|
{
|
3900
3900
|
disableGutters: !1,
|
3901
3901
|
disablePadding: !1,
|
@@ -3913,7 +3913,7 @@ const Tr = "connect_widget", Ar = "connections_widget", o_ = ({
|
|
3913
3913
|
}) => {
|
3914
3914
|
const { isMobile: s } = Ee();
|
3915
3915
|
return /* @__PURE__ */ t(
|
3916
|
-
|
3916
|
+
j,
|
3917
3917
|
{
|
3918
3918
|
secondaryAction: /* @__PURE__ */ t(ma, { checked: e, onChange: a }),
|
3919
3919
|
sx: {
|
@@ -3950,7 +3950,7 @@ const Tr = "connect_widget", Ar = "connections_widget", o_ = ({
|
|
3950
3950
|
primaryText: a,
|
3951
3951
|
secondaryText: o = void 0
|
3952
3952
|
}) => /* @__PURE__ */ t(
|
3953
|
-
|
3953
|
+
j,
|
3954
3954
|
{
|
3955
3955
|
secondaryAction: /* @__PURE__ */ t(ma, { checked: e, disabled: n, onChange: i, sx: { mr: 24 } }),
|
3956
3956
|
children: /* @__PURE__ */ t(
|
@@ -3984,14 +3984,14 @@ class l_ {
|
|
3984
3984
|
this.api = new Ei(n, i), await this.loadCopy();
|
3985
3985
|
};
|
3986
3986
|
loadCopy = async () => {
|
3987
|
-
await this.getCopy(this.featureNamespace),
|
3987
|
+
await this.getCopy(this.featureNamespace), Y(() => {
|
3988
3988
|
this.isInitialized = !0;
|
3989
3989
|
});
|
3990
3990
|
};
|
3991
3991
|
getCopy = async (n, i = "") => {
|
3992
3992
|
try {
|
3993
3993
|
const a = await this.api.getGlobalCopy(n, i);
|
3994
|
-
|
3994
|
+
Y(() => {
|
3995
3995
|
this.copy = a[n];
|
3996
3996
|
});
|
3997
3997
|
} catch (a) {
|
@@ -4030,7 +4030,7 @@ class d_ {
|
|
4030
4030
|
}
|
4031
4031
|
loadSurvey = (n = !1) => {
|
4032
4032
|
Ad.getActiveMatchingSurveys((i) => {
|
4033
|
-
|
4033
|
+
Y(() => {
|
4034
4034
|
if (i.length > 0) {
|
4035
4035
|
const a = i.find((o) => o.id === this.surveyId);
|
4036
4036
|
a && (this.survey = a, this.currentQuestionIndex = 0, this.question = a.questions[0], this.response = null, this.responses = {});
|
@@ -4104,7 +4104,7 @@ class h_ {
|
|
4104
4104
|
}
|
4105
4105
|
loadBeats = async () => {
|
4106
4106
|
const n = await this.api.getBeats(), a = (await this.api.getOffers()).map((o) => __(o));
|
4107
|
-
|
4107
|
+
Y(() => {
|
4108
4108
|
this.beats = u_(n, a, "active_at", "desc");
|
4109
4109
|
});
|
4110
4110
|
};
|
@@ -4239,7 +4239,7 @@ class C_ {
|
|
4239
4239
|
addBudget = async (n, i, a = null) => {
|
4240
4240
|
try {
|
4241
4241
|
const o = await this.api.addBudget(n, i, a);
|
4242
|
-
|
4242
|
+
Y(() => {
|
4243
4243
|
this.budgets.push(o);
|
4244
4244
|
});
|
4245
4245
|
} catch (o) {
|
@@ -4248,7 +4248,7 @@ class C_ {
|
|
4248
4248
|
};
|
4249
4249
|
deleteBudget = async (n) => {
|
4250
4250
|
try {
|
4251
|
-
await this.api.deleteBudget(n),
|
4251
|
+
await this.api.deleteBudget(n), Y(() => {
|
4252
4252
|
const i = this.budgets.findIndex((a) => a.guid === n);
|
4253
4253
|
i >= 0 && this.budgets.splice(i, 1);
|
4254
4254
|
});
|
@@ -4259,7 +4259,7 @@ class C_ {
|
|
4259
4259
|
loadBudgets = async () => {
|
4260
4260
|
try {
|
4261
4261
|
const n = await this.api.getBudgets();
|
4262
|
-
|
4262
|
+
Y(() => {
|
4263
4263
|
this.budgets = n, this.isDataLoaded = !0;
|
4264
4264
|
});
|
4265
4265
|
} catch (n) {
|
@@ -4297,7 +4297,7 @@ class C_ {
|
|
4297
4297
|
updateBudget = async (n) => {
|
4298
4298
|
try {
|
4299
4299
|
const i = await this.api.updateBudget(n);
|
4300
|
-
|
4300
|
+
Y(() => {
|
4301
4301
|
const a = this.budgets.findIndex((o) => o.guid === n.guid);
|
4302
4302
|
a >= 0 && (this.budgets[a] = i);
|
4303
4303
|
});
|
@@ -4937,7 +4937,7 @@ const S_ = [
|
|
4937
4937
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
4938
4938
|
return i.every((o) => a.indexOf(o) > -1);
|
4939
4939
|
};
|
4940
|
-
var Ze = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ze || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), D_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(D_ || {}), R_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(R_ || {}), O_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(O_ || {}),
|
4940
|
+
var Ze = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ze || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), D_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(D_ || {}), R_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(R_ || {}), O_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(O_ || {}), K = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(K || {}), lo = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(lo || {}), vt = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(vt || {}), Ue = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(Ue || {}), St = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(St || {}), Do = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Do || {}), L_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(L_ || {}), Ne = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Ne || {}), at = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(at || {}), Xt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xt || {}), ln = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(ln || {});
|
4941
4941
|
const hc = {
|
4942
4942
|
account_guid: "",
|
4943
4943
|
amount: 0,
|
@@ -5032,7 +5032,7 @@ class k_ {
|
|
5032
5032
|
this.loadTransactionRules(),
|
5033
5033
|
// By default loads 90 days of transactions
|
5034
5034
|
this.loadTransactions()
|
5035
|
-
]),
|
5035
|
+
]), Y(() => {
|
5036
5036
|
this.uiStore.setIsInitialized(!0);
|
5037
5037
|
});
|
5038
5038
|
};
|
@@ -5071,7 +5071,7 @@ class k_ {
|
|
5071
5071
|
};
|
5072
5072
|
addTransaction = async (n) => {
|
5073
5073
|
const i = await this.api.addTransaction(n);
|
5074
|
-
i &&
|
5074
|
+
i && Y(
|
5075
5075
|
() => this.transactions = this.augmentTransactions([i, ...this.transactions])
|
5076
5076
|
);
|
5077
5077
|
};
|
@@ -5083,19 +5083,19 @@ class k_ {
|
|
5083
5083
|
);
|
5084
5084
|
loadAssociatedBeats = async (n) => {
|
5085
5085
|
const i = n ? li(n, { representation: "date" }) : void 0, a = await this.beatApi.getBeatsWithAssociatedTransaction(i);
|
5086
|
-
|
5086
|
+
Y(() => this.associatedBeats = a);
|
5087
5087
|
};
|
5088
5088
|
loadTags = async () => {
|
5089
5089
|
const n = await this.api.getTags();
|
5090
|
-
|
5090
|
+
Y(() => this.tags = n);
|
5091
5091
|
};
|
5092
5092
|
loadTaggings = async () => {
|
5093
5093
|
const n = await this.api.getTaggings();
|
5094
|
-
|
5094
|
+
Y(() => this.taggings = n);
|
5095
5095
|
};
|
5096
5096
|
loadTransactionRules = async () => {
|
5097
5097
|
const n = await this.api.getTransactionRules();
|
5098
|
-
|
5098
|
+
Y(() => this.transactionRules = n);
|
5099
5099
|
};
|
5100
5100
|
loadTransactions = async (n = this.cachedStartDate, i = hn()) => {
|
5101
5101
|
this.setIsLoading(!0), this.transactions = [];
|
@@ -5104,7 +5104,7 @@ class k_ {
|
|
5104
5104
|
ke(n),
|
5105
5105
|
ke(i)
|
5106
5106
|
);
|
5107
|
-
|
5107
|
+
Y(() => {
|
5108
5108
|
this.transactions = this.augmentTransactions(a);
|
5109
5109
|
});
|
5110
5110
|
} catch (a) {
|
@@ -5135,7 +5135,7 @@ class k_ {
|
|
5135
5135
|
const i = this.transactions.findIndex((a) => a.guid === n);
|
5136
5136
|
if (i >= 0) {
|
5137
5137
|
const a = [...this.transactions];
|
5138
|
-
a.splice(i, 1),
|
5138
|
+
a.splice(i, 1), Y(() => this.transactions = a);
|
5139
5139
|
}
|
5140
5140
|
};
|
5141
5141
|
setFilter = (n) => {
|
@@ -5154,7 +5154,7 @@ class k_ {
|
|
5154
5154
|
o.push(c);
|
5155
5155
|
}
|
5156
5156
|
const r = this.transactions.findIndex((s) => s.guid === n.guid);
|
5157
|
-
r >= 0 &&
|
5157
|
+
r >= 0 && Y(
|
5158
5158
|
() => this.transactions = this.augmentTransactions([
|
5159
5159
|
...this.transactions.slice(0, r),
|
5160
5160
|
a,
|
@@ -5172,7 +5172,7 @@ class k_ {
|
|
5172
5172
|
c >= 0 && a.splice(c, 1);
|
5173
5173
|
});
|
5174
5174
|
const o = a.findIndex((s) => s.guid === n), r = a[o];
|
5175
|
-
r.has_been_split = !1, o >= 0 &&
|
5175
|
+
r.has_been_split = !1, o >= 0 && Y(
|
5176
5176
|
() => this.transactions = [
|
5177
5177
|
...a.slice(0, o),
|
5178
5178
|
r,
|
@@ -5196,7 +5196,7 @@ class k_ {
|
|
5196
5196
|
};
|
5197
5197
|
updateTransaction = async (n) => {
|
5198
5198
|
const i = await this.api.updateTransaction(n), a = this.transactions.findIndex((o) => o.guid === n.guid);
|
5199
|
-
a >= 0 &&
|
5199
|
+
a >= 0 && Y(
|
5200
5200
|
() => this.transactions = this.augmentTransactions([
|
5201
5201
|
...this.transactions.slice(0, a),
|
5202
5202
|
i,
|
@@ -5310,7 +5310,7 @@ const xt = () => {
|
|
5310
5310
|
width: c = "100%",
|
5311
5311
|
zeroState: d = /* @__PURE__ */ t(W_, {})
|
5312
5312
|
}) => {
|
5313
|
-
const { isLoading: _, sortedTransactions: u } = Te(), h = g.useMemo(() => s ? u : u.filter((w) => !w.is_hidden), [u, s]), { setShowInsights: m, toggleSplit: C } = xt(), { onEvent: f } =
|
5313
|
+
const { isLoading: _, sortedTransactions: u } = Te(), h = g.useMemo(() => s ? u : u.filter((w) => !w.is_hidden), [u, s]), { setShowInsights: m, toggleSplit: C } = xt(), { onEvent: f } = z(), E = (w) => {
|
5314
5314
|
const v = h.find((I) => I.guid === w);
|
5315
5315
|
if (v?.has_been_split) {
|
5316
5316
|
C(v.guid);
|
@@ -5584,14 +5584,14 @@ const th = ({
|
|
5584
5584
|
}
|
5585
5585
|
);
|
5586
5586
|
}, Ro = A(th), nh = ({ parentCategory: e }) => {
|
5587
|
-
const [n, i] = g.useState(!1), { addCategory: a } = Ke(), { categories: o } = x(), { onEvent: r } =
|
5587
|
+
const [n, i] = g.useState(!1), { addCategory: a } = Ke(), { categories: o } = x(), { onEvent: r } = z(), { setShouldDisableDrawerScroll: s } = pn(), c = async (u) => {
|
5588
5588
|
await a(u.trim(), e.guid), r(Qt.ON_SUBCATEGORY_ADDED), i(!1);
|
5589
5589
|
}, d = async () => {
|
5590
5590
|
r(Qt.ON_SUBCATEGORY_ADD_CLICK), s(!0), i(!0);
|
5591
5591
|
}, _ = () => {
|
5592
5592
|
i(!1), r(Qt.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
|
5593
5593
|
};
|
5594
|
-
return /* @__PURE__ */ l(
|
5594
|
+
return /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
|
5595
5595
|
/* @__PURE__ */ t(ue, { onClick: d, sx: { ml: 60 }, children: /* @__PURE__ */ t(
|
5596
5596
|
se,
|
5597
5597
|
{
|
@@ -5614,7 +5614,7 @@ const th = ({
|
|
5614
5614
|
subCategory: n,
|
5615
5615
|
showRename: i
|
5616
5616
|
}) => {
|
5617
|
-
const { updateCategory: a } = Ke(), { onEvent: o } =
|
5617
|
+
const { updateCategory: a } = Ke(), { onEvent: o } = z(), r = async (c) => {
|
5618
5618
|
await a({ ...n, name: c }), o(Qt.ON_SUBCATEGORY_SAVED), e(!1);
|
5619
5619
|
}, s = () => {
|
5620
5620
|
e(!1), o(Qt.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
|
@@ -5635,7 +5635,7 @@ const th = ({
|
|
5635
5635
|
setShowDelete: i,
|
5636
5636
|
subCategory: a
|
5637
5637
|
}) => {
|
5638
|
-
const { onEvent: o } =
|
5638
|
+
const { onEvent: o } = z(), { removeCategory: r } = Ke(), s = () => {
|
5639
5639
|
i(!1), o(Qt.ON_SUBCATEGORY_DELETE_CLICK);
|
5640
5640
|
}, c = async () => {
|
5641
5641
|
o(Qt.ON_SUBCATEGORY_DELETED), await r(a.guid), i(!1);
|
@@ -5659,9 +5659,9 @@ const th = ({
|
|
5659
5659
|
showSelected: s,
|
5660
5660
|
unselectable: c,
|
5661
5661
|
unselectableText: d
|
5662
|
-
} = pn(), { categories: _ } = x(), { onEvent: u } =
|
5662
|
+
} = pn(), { categories: _ } = x(), { onEvent: u } = z(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), E = !!n.revision, y = n.guid === a, S = !c.some((v) => v === n.guid);
|
5663
5663
|
return /* @__PURE__ */ l(
|
5664
|
-
|
5664
|
+
j,
|
5665
5665
|
{
|
5666
5666
|
className: "mx-cat-subcategory-row",
|
5667
5667
|
disableGutters: !0,
|
@@ -5760,12 +5760,12 @@ const th = ({
|
|
5760
5760
|
}
|
5761
5761
|
);
|
5762
5762
|
}, uh = A(dh), _h = ({ category: e, subCategories: n }) => {
|
5763
|
-
const { expandedGuid: i, searchValue: a, setExpandedGuid: o } = pn(), { onEvent: r } =
|
5763
|
+
const { expandedGuid: i, searchValue: a, setExpandedGuid: o } = pn(), { onEvent: r } = z(), s = e.guid === i, c = () => {
|
5764
5764
|
const d = e.guid !== i ? e.guid : null;
|
5765
5765
|
o(d), r(d ? Qt.ON_CATEGORY_EXPANDED : Qt.ON_CATEGORY_COLLAPSED);
|
5766
5766
|
};
|
5767
5767
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
5768
|
-
/* @__PURE__ */ t(
|
5768
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
5769
5769
|
ue,
|
5770
5770
|
{
|
5771
5771
|
"aria-controls": `subcategories-${e.guid}`,
|
@@ -5991,7 +5991,7 @@ class Eh {
|
|
5991
5991
|
loadCategories = async () => {
|
5992
5992
|
try {
|
5993
5993
|
const n = await this.api.getCategories(), { default_categories: i } = this.globalStore.copyStore.copy.categories;
|
5994
|
-
|
5994
|
+
Y(() => {
|
5995
5995
|
this.categories = n.map((a) => ({
|
5996
5996
|
...a,
|
5997
5997
|
name: i[a.guid] ? i[a.guid].replace(/&/g, "&") : a.name
|
@@ -6009,7 +6009,7 @@ class Eh {
|
|
6009
6009
|
ke(a),
|
6010
6010
|
n
|
6011
6011
|
);
|
6012
|
-
|
6012
|
+
Y(() => {
|
6013
6013
|
this.dateRangeCategoryTotals = o, this.setIsLoadingCategoryTotals(!1), this.dataRangeTotalsLoaded = !0;
|
6014
6014
|
});
|
6015
6015
|
} catch (o) {
|
@@ -6020,7 +6020,7 @@ class Eh {
|
|
6020
6020
|
const o = ke(We(i ?? qt(/* @__PURE__ */ new Date(), 11))), r = ke(je(a ?? /* @__PURE__ */ new Date()));
|
6021
6021
|
try {
|
6022
6022
|
const s = await this.api.getMonthlyCategoryTotals(o, r, n);
|
6023
|
-
|
6023
|
+
Y(() => {
|
6024
6024
|
this.monthlyCategoryTotals = s, this.monthlyTotalsLoaded = !0;
|
6025
6025
|
});
|
6026
6026
|
} catch (s) {
|
@@ -6039,7 +6039,7 @@ class Eh {
|
|
6039
6039
|
ke(je(a)),
|
6040
6040
|
n
|
6041
6041
|
);
|
6042
|
-
|
6042
|
+
Y(() => {
|
6043
6043
|
this.dateRangeCategoryTotals = o, this.monthlyCategoryTotals = r, this.dataRangeTotalsLoaded = !0, this.monthlyTotalsLoaded = !0, this.setIsLoadingCategoryTotals(!1);
|
6044
6044
|
});
|
6045
6045
|
} catch (o) {
|
@@ -6067,7 +6067,7 @@ class Eh {
|
|
6067
6067
|
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? Sa[n];
|
6068
6068
|
}
|
6069
6069
|
const Cc = ({ transaction: e }) => {
|
6070
|
-
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Te(), { categories: a } = Ke(), { onEvent: o } =
|
6070
|
+
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Te(), { categories: a } = Ke(), { onEvent: o } = z(), { setShouldDisableDrawerScroll: r, updateManualTransaction: s } = xt(), { transactions: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (y) => {
|
6071
6071
|
await i({ ...e, category_guid: u }), y && await n(u, e), h(""), o(W.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
6072
6072
|
transaction_guid: e.guid
|
6073
6073
|
});
|
@@ -6090,7 +6090,7 @@ const Cc = ({ transaction: e }) => {
|
|
6090
6090
|
[u]
|
6091
6091
|
);
|
6092
6092
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
6093
|
-
/* @__PURE__ */ t(
|
6093
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6094
6094
|
ue,
|
6095
6095
|
{
|
6096
6096
|
onClick: () => {
|
@@ -6152,7 +6152,7 @@ const Cc = ({ transaction: e }) => {
|
|
6152
6152
|
)
|
6153
6153
|
] });
|
6154
6154
|
}, fc = ({ transaction: e }) => {
|
6155
|
-
const n = bt(), { onEvent: i } =
|
6155
|
+
const n = bt(), { onEvent: i } = z(), { updateTransaction: a } = Te(), { updateManualTransaction: o } = xt(), { common: r, transactions: s } = x(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (C) => {
|
6156
6156
|
u(ke(C));
|
6157
6157
|
}, m = async () => {
|
6158
6158
|
if (e.is_manual && !e.guid) {
|
@@ -6162,7 +6162,7 @@ const Cc = ({ transaction: e }) => {
|
|
6162
6162
|
await a({ ...e, date: _ }), i(W.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), d(!1);
|
6163
6163
|
};
|
6164
6164
|
return /* @__PURE__ */ l(L, { className: "mx-txn-date-action", children: [
|
6165
|
-
/* @__PURE__ */ t(
|
6165
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6166
6166
|
ue,
|
6167
6167
|
{
|
6168
6168
|
onClick: () => {
|
@@ -6209,11 +6209,11 @@ const Cc = ({ transaction: e }) => {
|
|
6209
6209
|
)
|
6210
6210
|
] });
|
6211
6211
|
}, Sh = ({ transaction: e }) => {
|
6212
|
-
const { onEvent: n } =
|
6212
|
+
const { onEvent: n } = z(), { removeTransaction: i } = Te(), { setShouldDisableDrawerScroll: a } = xt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
6213
6213
|
await i(e.guid), n(q.ON_TRANSACTION_DELETE_DELETED);
|
6214
6214
|
};
|
6215
6215
|
return /* @__PURE__ */ l(L, { className: "mx-txn-delete", children: [
|
6216
|
-
e && /* @__PURE__ */ t(
|
6216
|
+
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6217
6217
|
ue,
|
6218
6218
|
{
|
6219
6219
|
onClick: () => {
|
@@ -6249,13 +6249,13 @@ const Cc = ({ transaction: e }) => {
|
|
6249
6249
|
)
|
6250
6250
|
] });
|
6251
6251
|
}, Th = A(Sh), Ah = ({ transaction: e }) => {
|
6252
|
-
const { onEvent: n } =
|
6252
|
+
const { onEvent: n } = z(), { updateTransaction: i } = Te(), { setShouldDisableDrawerScroll: a } = xt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
6253
6253
|
await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
6254
6254
|
transaction_guid: e.guid
|
6255
6255
|
});
|
6256
6256
|
};
|
6257
6257
|
return /* @__PURE__ */ l(L, { className: "mx-txn-delete-logo", children: [
|
6258
|
-
e && /* @__PURE__ */ t(
|
6258
|
+
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6259
6259
|
ue,
|
6260
6260
|
{
|
6261
6261
|
onClick: () => {
|
@@ -6289,13 +6289,13 @@ const Cc = ({ transaction: e }) => {
|
|
6289
6289
|
)
|
6290
6290
|
] });
|
6291
6291
|
}, xh = A(Ah), Ih = ({ transaction: e }) => {
|
6292
|
-
const { onEvent: n } =
|
6292
|
+
const { onEvent: n } = z(), { updateTransaction: i } = Te(), { setShouldDisableDrawerScroll: a } = xt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = e.is_hidden, _ = async () => {
|
6293
6293
|
await i({ ...e, is_hidden: !e.is_hidden }), n(
|
6294
6294
|
d ? q.ON_TRANSACTION_UNHIDDEN : q.ON_TRANSACTION_HIDDEN
|
6295
6295
|
);
|
6296
6296
|
};
|
6297
6297
|
return /* @__PURE__ */ l(L, { className: "mx-txn-hide-transaction", children: [
|
6298
|
-
e && /* @__PURE__ */ t(
|
6298
|
+
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6299
6299
|
ue,
|
6300
6300
|
{
|
6301
6301
|
"aria-checked": d,
|
@@ -6378,7 +6378,7 @@ const Cc = ({ transaction: e }) => {
|
|
6378
6378
|
] })
|
6379
6379
|
] });
|
6380
6380
|
}, wh = ({ transaction: e }) => {
|
6381
|
-
const { onEvent: n } =
|
6381
|
+
const { onEvent: n } = z(), { updateTransaction: i } = Te(), { updateManualTransaction: a } = xt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), [d, _] = g.useState("");
|
6382
6382
|
g.useEffect(() => {
|
6383
6383
|
s && _(e.memo ? e.memo : "");
|
6384
6384
|
}, [s]);
|
@@ -6390,7 +6390,7 @@ const Cc = ({ transaction: e }) => {
|
|
6390
6390
|
await i({ ...e, memo: d }), n(W.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: e.guid }), c(!1);
|
6391
6391
|
};
|
6392
6392
|
return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
|
6393
|
-
/* @__PURE__ */ t(
|
6393
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6394
6394
|
ue,
|
6395
6395
|
{
|
6396
6396
|
onClick: () => {
|
@@ -6454,7 +6454,7 @@ const Cc = ({ transaction: e }) => {
|
|
6454
6454
|
onUpdateAmount: a,
|
6455
6455
|
split: o
|
6456
6456
|
}) => {
|
6457
|
-
const r = bt(), { onEvent: s } =
|
6457
|
+
const r = bt(), { onEvent: s } = z(), { transactions: c } = x(), [d, _] = g.useState(`${o.amount}`), [u, h] = g.useState(!1), m = e === 0, C = (f) => {
|
6458
6458
|
isNaN(Number(f)) || (_(f), a(e, Number(f)));
|
6459
6459
|
};
|
6460
6460
|
return /* @__PURE__ */ l(
|
@@ -6556,7 +6556,7 @@ const Cc = ({ transaction: e }) => {
|
|
6556
6556
|
splits: o,
|
6557
6557
|
transaction: r
|
6558
6558
|
}) => {
|
6559
|
-
const s = bt(), { transactions: c } = x(), { onEvent: d } =
|
6559
|
+
const s = bt(), { transactions: c } = x(), { onEvent: d } = z(), [_, u] = g.useState("");
|
6560
6560
|
return g.useEffect(() => {
|
6561
6561
|
u(o.length <= 1 ? c.split_transaction_errors_min_splits : ""), u(
|
6562
6562
|
o[0].amount < 0 ? T(
|
@@ -6601,7 +6601,7 @@ const Cc = ({ transaction: e }) => {
|
|
6601
6601
|
) })
|
6602
6602
|
] });
|
6603
6603
|
}, Oh = A(Rh), Lh = ({ transaction: e }) => {
|
6604
|
-
const { onEvent: n } =
|
6604
|
+
const { onEvent: n } = z(), { splitTransaction: i, unSplitTransaction: a } = Te(), { common: o, transactions: r } = x(), { setShouldDisableDrawerScroll: s } = xt(), { categories: c } = Ke(), d = {
|
6605
6605
|
...e,
|
6606
6606
|
amount: e.amount - 1,
|
6607
6607
|
guid: "",
|
@@ -6621,23 +6621,23 @@ const Cc = ({ transaction: e }) => {
|
|
6621
6621
|
M.push({ ..._ }), M[0].amount -= 1, E(M);
|
6622
6622
|
}, S = (M) => {
|
6623
6623
|
if (M > 0) {
|
6624
|
-
const Q = f[M],
|
6625
|
-
|
6624
|
+
const Q = f[M], U = [...f];
|
6625
|
+
U.splice(M, 1), U[0].amount += Q.amount, E(U);
|
6626
6626
|
}
|
6627
6627
|
}, w = (M, Q) => {
|
6628
|
-
const
|
6629
|
-
|
6630
|
-
(
|
6628
|
+
const U = [...f];
|
6629
|
+
U[M].amount = Q, U[0].amount = e.amount - U.reduce(
|
6630
|
+
(X, fe, $) => X + ($ !== 0 ? fe.amount : 0),
|
6631
6631
|
0
|
6632
|
-
), E(
|
6632
|
+
), E(U);
|
6633
6633
|
}, v = (M, Q) => {
|
6634
|
-
const
|
6635
|
-
|
6636
|
-
...
|
6634
|
+
const U = [...f], X = c.find((fe) => fe.guid === Q);
|
6635
|
+
X && (U[M] = {
|
6636
|
+
...U[M],
|
6637
6637
|
category_guid: Q,
|
6638
|
-
category:
|
6639
|
-
top_level_category_guid:
|
6640
|
-
}, E(
|
6638
|
+
category: X.name,
|
6639
|
+
top_level_category_guid: X.parent_guid || Q
|
6640
|
+
}, E(U));
|
6641
6641
|
}, I = () => {
|
6642
6642
|
if (e.parent_guid || e.has_been_split) {
|
6643
6643
|
C(!0);
|
@@ -6657,11 +6657,11 @@ const Cc = ({ transaction: e }) => {
|
|
6657
6657
|
const M = e.parent_guid ?? e.guid;
|
6658
6658
|
await a(M);
|
6659
6659
|
}, O = g.useMemo(() => {
|
6660
|
-
const M = f.some((
|
6660
|
+
const M = f.some((U) => !U.category_guid), Q = f.some((U) => U.amount <= 0);
|
6661
6661
|
return M || Q;
|
6662
6662
|
}, [f]);
|
6663
6663
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
6664
|
-
e && /* @__PURE__ */ t(
|
6664
|
+
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: I, children: [
|
6665
6665
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(nn, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(P, { name: "call_split", sx: { color: "text.primary" }, weight: yt.Dark }) }) }),
|
6666
6666
|
/* @__PURE__ */ t(
|
6667
6667
|
se,
|
@@ -6721,7 +6721,7 @@ const Cc = ({ transaction: e }) => {
|
|
6721
6721
|
)
|
6722
6722
|
] });
|
6723
6723
|
}, Mh = A(Lh), kh = () => {
|
6724
|
-
const e = ge(), { onEvent: n } =
|
6724
|
+
const e = ge(), { onEvent: n } = z(), { addTag: i } = Te(), { transactions: a } = x(), [o, r] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
|
6725
6725
|
g.useEffect(() => {
|
6726
6726
|
o && u?.current?.focus();
|
6727
6727
|
}, [o]);
|
@@ -6808,7 +6808,7 @@ const Cc = ({ transaction: e }) => {
|
|
6808
6808
|
}
|
6809
6809
|
) });
|
6810
6810
|
}, Ph = A(Bh), Hh = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
|
6811
|
-
const { onEvent: a } =
|
6811
|
+
const { onEvent: a } = z(), { removeTag: o, updateTag: r } = Te(), { common: s, transactions: c } = x(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), [m, C] = g.useState(""), [f, E] = g.useState(""), y = async () => {
|
6812
6812
|
a(q.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), _(!1);
|
6813
6813
|
}, S = async () => {
|
6814
6814
|
a(q.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
|
@@ -6822,7 +6822,7 @@ const Cc = ({ transaction: e }) => {
|
|
6822
6822
|
a(q.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), h(!0);
|
6823
6823
|
};
|
6824
6824
|
return /* @__PURE__ */ l(
|
6825
|
-
|
6825
|
+
j,
|
6826
6826
|
{
|
6827
6827
|
className: "mx-txn-transaction-manager-row",
|
6828
6828
|
disableGutters: !0,
|
@@ -6920,7 +6920,7 @@ const Cc = ({ transaction: e }) => {
|
|
6920
6920
|
] }, s.guid)) }) })
|
6921
6921
|
] });
|
6922
6922
|
}, Wh = A(Fh), Uh = ({ transaction: e }) => {
|
6923
|
-
const { onEvent: n } =
|
6923
|
+
const { onEvent: n } = z(), { tags: i, updateTaggings: a, updateTransaction: o } = Te(), { common: r, transactions: s } = x(), { updateManualTransaction: c } = xt(), [d, _] = g.useState(!1), [u, h] = g.useState(e.tags);
|
6924
6924
|
g.useEffect(() => {
|
6925
6925
|
h(e.tags);
|
6926
6926
|
}, [d, e]);
|
@@ -6940,7 +6940,7 @@ const Cc = ({ transaction: e }) => {
|
|
6940
6940
|
[i, e]
|
6941
6941
|
);
|
6942
6942
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
6943
|
-
/* @__PURE__ */ t(
|
6943
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6944
6944
|
ue,
|
6945
6945
|
{
|
6946
6946
|
onClick: () => {
|
@@ -6975,7 +6975,7 @@ const Cc = ({ transaction: e }) => {
|
|
6975
6975
|
)
|
6976
6976
|
] });
|
6977
6977
|
}, Ec = A(Uh), Vh = ({ transaction: e }) => {
|
6978
|
-
const { updateTransaction: n } = Te(), { common: i, transactions: a } = x(), { onEvent: o } =
|
6978
|
+
const { updateTransaction: n } = Te(), { common: i, transactions: a } = x(), { onEvent: o } = z(), [r, s] = g.useState(!1), [c, d] = g.useState(""), _ = g.useRef(null);
|
6979
6979
|
g.useEffect(() => {
|
6980
6980
|
r && (d(e.description), _?.current?.focus());
|
6981
6981
|
}, [r]);
|
@@ -7026,7 +7026,7 @@ const Cc = ({ transaction: e }) => {
|
|
7026
7026
|
)
|
7027
7027
|
] }) });
|
7028
7028
|
}, Kh = A(Vh), zh = ({ transaction: e }) => {
|
7029
|
-
const { updateTransaction: n } = Te(), { transactions: i } = x(), { onEvent: a } =
|
7029
|
+
const { updateTransaction: n } = Te(), { transactions: i } = x(), { onEvent: a } = z(), o = ge(), r = async () => {
|
7030
7030
|
a(W.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
|
7031
7031
|
};
|
7032
7032
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
@@ -7062,7 +7062,7 @@ const Cc = ({ transaction: e }) => {
|
|
7062
7062
|
topActions: n = S_,
|
7063
7063
|
transaction: i
|
7064
7064
|
}) => {
|
7065
|
-
const { isCopyLoaded: a } = _e(), o = i?.number && i.number.length > 4, { onEvent: r } =
|
7065
|
+
const { isCopyLoaded: a } = _e(), o = i?.number && i.number.length > 4, { onEvent: r } = z();
|
7066
7066
|
return g.useEffect(
|
7067
7067
|
() => r(W.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
|
7068
7068
|
[]
|
@@ -7287,11 +7287,11 @@ const Cc = ({ transaction: e }) => {
|
|
7287
7287
|
tags: w,
|
7288
7288
|
transactions: v,
|
7289
7289
|
updateTransaction: I
|
7290
|
-
} = Te(), { common: R, transactions: D } = x(), { userProfile: H } = an(), { onEvent: O } =
|
7290
|
+
} = Te(), { common: R, transactions: D } = x(), { userProfile: H } = an(), { onEvent: O } = z(), {
|
7291
7291
|
displayedDateRange: M,
|
7292
7292
|
isCopyLoaded: Q,
|
7293
|
-
isInitialized:
|
7294
|
-
selectedAccountGuids:
|
7293
|
+
isInitialized: U,
|
7294
|
+
selectedAccountGuids: X,
|
7295
7295
|
selectedAccounts: fe,
|
7296
7296
|
setDisplayedDate: $,
|
7297
7297
|
setSelectedAccounts: ce
|
@@ -7309,9 +7309,9 @@ const Cc = ({ transaction: e }) => {
|
|
7309
7309
|
Ft && (S({
|
7310
7310
|
...E,
|
7311
7311
|
dateRange: { start: M.start, end: M.end },
|
7312
|
-
accounts:
|
7312
|
+
accounts: X
|
7313
7313
|
}), y(M.start).finally());
|
7314
|
-
}, [M,
|
7314
|
+
}, [M, X]), g.useEffect(() => {
|
7315
7315
|
m(i);
|
7316
7316
|
}, [i]);
|
7317
7317
|
const pe = g.useMemo(
|
@@ -7344,7 +7344,7 @@ const Cc = ({ transaction: e }) => {
|
|
7344
7344
|
}, Tl = async () => {
|
7345
7345
|
Me && !Me.has_been_viewed && await I({ ...Me, has_been_viewed: !0 }), oe("");
|
7346
7346
|
};
|
7347
|
-
return !Q || !
|
7347
|
+
return !Q || !U || !Ft ? /* @__PURE__ */ t(he, {}) : /* @__PURE__ */ l(
|
7348
7348
|
Ot,
|
7349
7349
|
{
|
7350
7350
|
accountOptions: o,
|
@@ -7511,7 +7511,7 @@ const Cc = ({ transaction: e }) => {
|
|
7511
7511
|
occurs_on: li(e.expectedDate, { representation: "date" }),
|
7512
7512
|
recurrence_type: e.recurrenceType
|
7513
7513
|
}), ng = ({ activity: e }) => {
|
7514
|
-
const { recurring: n } = x(), { cashflowSequences: i, scheduledPayments: a, updateCashflowSequence: o, updateScheduledPayment: r } = nt(), { onEvent: s } =
|
7514
|
+
const { recurring: n } = x(), { cashflowSequences: i, scheduledPayments: a, updateCashflowSequence: o, updateScheduledPayment: r } = nt(), { onEvent: s } = z(), [c, d] = g.useState(!1), _ = e.activityType === Ze.Income, u = [
|
7515
7515
|
{ id: J.EveryWeek, label: n.frequency_every_week },
|
7516
7516
|
{ id: J.EveryOtherWeek, label: n.frequency_every_other_week },
|
7517
7517
|
{ id: J.EveryMonth, label: n.frequency_every_month },
|
@@ -7561,7 +7561,7 @@ const Cc = ({ transaction: e }) => {
|
|
7561
7561
|
e.activityType === Ze.Expense || f.id !== J.EveryOtherMonth && f.id !== J.EveryOtherQuarter
|
7562
7562
|
)
|
7563
7563
|
).map((f) => /* @__PURE__ */ l(g.Fragment, { children: [
|
7564
|
-
/* @__PURE__ */ t(
|
7564
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: () => h(f.id), children: [
|
7565
7565
|
/* @__PURE__ */ t(
|
7566
7566
|
se,
|
7567
7567
|
{
|
@@ -7577,7 +7577,7 @@ const Cc = ({ transaction: e }) => {
|
|
7577
7577
|
)
|
7578
7578
|
] });
|
7579
7579
|
}, ig = A(ng), ag = ({ activity: e }) => {
|
7580
|
-
const { recurring: n } = x(), { cashflowSequences: i, scheduledPayments: a, updateCashflowSequence: o, updateScheduledPayment: r } = nt(), { onEvent: s } =
|
7580
|
+
const { recurring: n } = x(), { cashflowSequences: i, scheduledPayments: a, updateCashflowSequence: o, updateScheduledPayment: r } = nt(), { onEvent: s } = z(), [c, d] = g.useState(!1), [_, u] = g.useState(e.expectedDate), h = e.activityType === Ze.Income, m = () => {
|
7581
7581
|
u(e.expectedDate), d(!0), s(
|
7582
7582
|
h ? "recurring_transactions_widget_income_details_click_next_payment_due" : "recurring_transactions_widget_expense_details_click_next_payment_due",
|
7583
7583
|
{
|
@@ -7636,7 +7636,7 @@ const Cc = ({ transaction: e }) => {
|
|
7636
7636
|
)
|
7637
7637
|
] });
|
7638
7638
|
}, og = A(ag), rg = ({ activity: e, onDeleted: n }) => {
|
7639
|
-
const { recurring: i } = x(), { categories: a } = Ke(), { deleteCashflowSequence: o, deleteScheduledPayment: r, paidActivities: s } = nt(), { filter: c, setFilter: d, transactions: _ } = Te(), { selectedAccountGuids: u } = _e(), { onEvent: h } =
|
7639
|
+
const { recurring: i } = x(), { categories: a } = Ke(), { deleteCashflowSequence: o, deleteScheduledPayment: r, paidActivities: s } = nt(), { filter: c, setFilter: d, transactions: _ } = Te(), { selectedAccountGuids: u } = _e(), { onEvent: h } = z(), [m, C] = g.useState(!1), [f, E] = g.useState(""), y = a.find((R) => R.guid === e.categoryGuid), S = e.activityType === Ze.Income, w = g.useMemo(
|
7640
7640
|
() => _.find((R) => R.guid === f),
|
7641
7641
|
[f]
|
7642
7642
|
);
|
@@ -7819,7 +7819,7 @@ const Cc = ({ transaction: e }) => {
|
|
7819
7819
|
copy: o,
|
7820
7820
|
date: e.expectedDate,
|
7821
7821
|
type: e.recurrenceType
|
7822
|
-
} : { copy: o, date: null, type: e.recurrenceType })), /* @__PURE__ */ l(
|
7822
|
+
} : { copy: o, date: null, type: e.recurrenceType })), /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
|
7823
7823
|
/* @__PURE__ */ l(ue, { onClick: () => {
|
7824
7824
|
s(e.sequenceGuid || e.scheduledPaymentGuid || ""), i(e);
|
7825
7825
|
}, children: [
|
@@ -8110,7 +8110,7 @@ const Cc = ({ transaction: e }) => {
|
|
8110
8110
|
C(""), h(!1);
|
8111
8111
|
};
|
8112
8112
|
return /* @__PURE__ */ l(L, { children: [
|
8113
|
-
/* @__PURE__ */ t(
|
8113
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(ue, { onClick: v, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
8114
8114
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
8115
8115
|
/* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
8116
8116
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
|
@@ -8179,7 +8179,7 @@ const Cc = ({ transaction: e }) => {
|
|
8179
8179
|
scheduledPaymentGuid: a.guid
|
8180
8180
|
};
|
8181
8181
|
}), pg = () => {
|
8182
|
-
const { recurring: e } = x(), { scheduledPayments: n } = nt(), { transactions: i } = Te(), { selectedAccounts: a } = _e(), { onEvent: o } =
|
8182
|
+
const { recurring: e } = x(), { scheduledPayments: n } = nt(), { transactions: i } = Te(), { selectedAccounts: a } = _e(), { onEvent: o } = z(), r = mg(a, n, i), s = (d) => {
|
8183
8183
|
o(W.RECURRING_ACTIVITY_CLICK_EXPENSE, {
|
8184
8184
|
transaction_guid: d.transactionGuid
|
8185
8185
|
});
|
@@ -8374,7 +8374,7 @@ const Cc = ({ transaction: e }) => {
|
|
8374
8374
|
sequenceGuid: r.guid
|
8375
8375
|
};
|
8376
8376
|
}), Eg = () => {
|
8377
|
-
const { recurring: e } = x(), { selectedAccounts: n } = _e(), { cashflowEvents: i, cashflowSequences: a, projectedEvents: o } = nt(), { transactions: r } = Te(), { onEvent: s } =
|
8377
|
+
const { recurring: e } = x(), { selectedAccounts: n } = _e(), { cashflowEvents: i, cashflowSequences: a, projectedEvents: o } = nt(), { transactions: r } = Te(), { onEvent: s } = z(), c = yg(
|
8378
8378
|
n,
|
8379
8379
|
i,
|
8380
8380
|
o,
|
@@ -8395,7 +8395,7 @@ const Cc = ({ transaction: e }) => {
|
|
8395
8395
|
/* @__PURE__ */ t(Nc, { isIncome: !0, label: e.add_income, onAddActivity: _ })
|
8396
8396
|
] });
|
8397
8397
|
}, Bo = A(Eg), Sg = () => {
|
8398
|
-
const [e, n] = g.useState(0), { onEvent: i } =
|
8398
|
+
const [e, n] = g.useState(0), { onEvent: i } = z(), { recurring: a } = x();
|
8399
8399
|
return /* @__PURE__ */ l(L, { bgcolor: "background.default", height: "100%", children: [
|
8400
8400
|
/* @__PURE__ */ l(
|
8401
8401
|
Lt,
|
@@ -8517,7 +8517,7 @@ const Cc = ({ transaction: e }) => {
|
|
8517
8517
|
}
|
8518
8518
|
);
|
8519
8519
|
}, Ig = A(xg), Pr = 58, vg = () => {
|
8520
|
-
const e = tt(), { onEvent: n } =
|
8520
|
+
const e = tt(), { onEvent: n } = z(), { selectedDay: i } = nt(), [a, o] = g.useState(
|
8521
8521
|
aa(/* @__PURE__ */ new Date()) * _n + Pr
|
8522
8522
|
), r = (c) => {
|
8523
8523
|
o(aa(c) * _n + Pr), n(W.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
@@ -8616,7 +8616,7 @@ const Cc = ({ transaction: e }) => {
|
|
8616
8616
|
),
|
8617
8617
|
/* @__PURE__ */ t(k, { sx: { mx: 24 } })
|
8618
8618
|
] }, `activity-${_}`)) : c.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8619
|
-
/* @__PURE__ */ t(
|
8619
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
8620
8620
|
ne,
|
8621
8621
|
{
|
8622
8622
|
subheader: /* @__PURE__ */ t(Rt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: re(
|
@@ -8683,8 +8683,8 @@ const Cc = ({ transaction: e }) => {
|
|
8683
8683
|
selectedDayActivities: c,
|
8684
8684
|
setSelectedDay: d,
|
8685
8685
|
upcomingActivities: _
|
8686
|
-
} = nt(), [u, h] = g.useState(0), { onEvent: m } =
|
8687
|
-
h(
|
8686
|
+
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(za), f = r.filter(za), E = o.filter(za), y = C.filter(Yi).reduce(mi, 0), S = f.filter(Yi).reduce(mi, 0), w = E.filter(Yi).reduce(mi, 0), v = C.filter(Yi).length, I = C.filter(Ka).reduce(mi, 0), R = f.filter(Ka).reduce(mi, 0), D = C.filter(Ka).length, H = (Q, U) => {
|
8687
|
+
h(U);
|
8688
8688
|
}, O = (Q) => {
|
8689
8689
|
m(W.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
8690
8690
|
transaction_guid: Q.transactionGuid
|
@@ -8765,7 +8765,7 @@ const Cc = ({ transaction: e }) => {
|
|
8765
8765
|
] }) })
|
8766
8766
|
] });
|
8767
8767
|
}, Og = A(Rg), Lg = ({ onBackClick: e, sx: n = {} }) => {
|
8768
|
-
const { visibleAccounts: i } = ve(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = _e(), { setFilter: d } = Te(), { isDataLoaded: _, loadActivity: u } = nt(), { onEvent: h } =
|
8768
|
+
const { visibleAccounts: i } = ve(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = _e(), { setFilter: d } = Te(), { isDataLoaded: _, loadActivity: u } = nt(), { onEvent: h } = z();
|
8769
8769
|
g.useEffect(() => {
|
8770
8770
|
u();
|
8771
8771
|
}, []), g.useEffect(() => {
|
@@ -8919,7 +8919,7 @@ class Bg {
|
|
8919
8919
|
addCashflowEvent = async (n) => {
|
8920
8920
|
try {
|
8921
8921
|
const i = await this.cashflowApi.addCashflowEvent(n);
|
8922
|
-
|
8922
|
+
Y(() => {
|
8923
8923
|
this.cashflowEvents = [...this.cashflowEvents, i];
|
8924
8924
|
});
|
8925
8925
|
} catch (i) {
|
@@ -8940,7 +8940,7 @@ class Bg {
|
|
8940
8940
|
await this.globalStore.transactionStore.updateTransaction({
|
8941
8941
|
...i,
|
8942
8942
|
scheduled_payment_guid: a.guid
|
8943
|
-
}),
|
8943
|
+
}), Y(() => {
|
8944
8944
|
this.scheduledPayments = [...this.scheduledPayments, a];
|
8945
8945
|
});
|
8946
8946
|
} catch (a) {
|
@@ -8956,7 +8956,7 @@ class Bg {
|
|
8956
8956
|
};
|
8957
8957
|
deleteScheduledPayment = async (n) => {
|
8958
8958
|
try {
|
8959
|
-
await this.api.deleteScheduledPayment(n),
|
8959
|
+
await this.api.deleteScheduledPayment(n), Y(() => {
|
8960
8960
|
const i = this.scheduledPayments.findIndex((a) => a.guid === n);
|
8961
8961
|
i >= 0 && this.scheduledPayments.splice(i, 1);
|
8962
8962
|
});
|
@@ -8966,7 +8966,7 @@ class Bg {
|
|
8966
8966
|
};
|
8967
8967
|
loadActivity = () => {
|
8968
8968
|
Promise.all([this.loadExpenseActivity(), this.loadIncomeActivity()]).finally(
|
8969
|
-
() =>
|
8969
|
+
() => Y(() => {
|
8970
8970
|
this.isDataLoaded = !0;
|
8971
8971
|
})
|
8972
8972
|
);
|
@@ -8979,7 +8979,7 @@ class Bg {
|
|
8979
8979
|
};
|
8980
8980
|
loadCashflowSequences = async () => {
|
8981
8981
|
const n = await this.cashflowApi.getCashflowSequences();
|
8982
|
-
|
8982
|
+
Y(() => {
|
8983
8983
|
this.cashflowSequences = n.filter(
|
8984
8984
|
(i) => i.transaction_type === St.CREDIT
|
8985
8985
|
);
|
@@ -8991,7 +8991,7 @@ class Bg {
|
|
8991
8991
|
We(de()),
|
8992
8992
|
Mt(de(), 30)
|
8993
8993
|
);
|
8994
|
-
|
8994
|
+
Y(() => {
|
8995
8995
|
this.projectedEvents = n.filter(
|
8996
8996
|
(i) => i.transaction_type === St.CREDIT
|
8997
8997
|
);
|
@@ -9006,7 +9006,7 @@ class Bg {
|
|
9006
9006
|
dt(de(), 90),
|
9007
9007
|
je(de())
|
9008
9008
|
);
|
9009
|
-
|
9009
|
+
Y(() => {
|
9010
9010
|
this.cashflowEvents = n.filter(
|
9011
9011
|
(i) => i.transaction_type === St.CREDIT
|
9012
9012
|
);
|
@@ -9018,7 +9018,7 @@ class Bg {
|
|
9018
9018
|
loadScheduledPayments = async () => {
|
9019
9019
|
try {
|
9020
9020
|
const n = await this.api.getScheduledPayments();
|
9021
|
-
|
9021
|
+
Y(() => {
|
9022
9022
|
this.scheduledPayments = n;
|
9023
9023
|
});
|
9024
9024
|
} catch (n) {
|
@@ -9052,7 +9052,7 @@ class Bg {
|
|
9052
9052
|
try {
|
9053
9053
|
const i = await this.api.updateScheduledPayment(n), a = this.scheduledPayments.findIndex((o) => o.guid === n.guid);
|
9054
9054
|
if (a < 0) return;
|
9055
|
-
|
9055
|
+
Y(() => {
|
9056
9056
|
this.scheduledPayments = [
|
9057
9057
|
...this.scheduledPayments.slice(0, a),
|
9058
9058
|
i,
|
@@ -9249,7 +9249,7 @@ const Pg = {
|
|
9249
9249
|
)
|
9250
9250
|
] });
|
9251
9251
|
return /* @__PURE__ */ t(
|
9252
|
-
|
9252
|
+
j,
|
9253
9253
|
{
|
9254
9254
|
sx: { backgroundColor: "background.paper", color: e.is_closed ? "grey.700" : "" },
|
9255
9255
|
...i,
|
@@ -9257,7 +9257,7 @@ const Pg = {
|
|
9257
9257
|
}
|
9258
9258
|
);
|
9259
9259
|
}, Di = A(Kg), zg = ({ remaining: e }) => /* @__PURE__ */ t(
|
9260
|
-
|
9260
|
+
j,
|
9261
9261
|
{
|
9262
9262
|
sx: {
|
9263
9263
|
alignItems: "center",
|
@@ -9274,7 +9274,7 @@ const Pg = {
|
|
9274
9274
|
);
|
9275
9275
|
var Ri = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(Ri || {});
|
9276
9276
|
const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
9277
|
-
/* @__PURE__ */ l(
|
9277
|
+
/* @__PURE__ */ l(j, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
9278
9278
|
/* @__PURE__ */ l(b, { alignItems: "center", height: 32, width: 32, children: [
|
9279
9279
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: re(e.expectedDate, ie.MONTH) }),
|
9280
9280
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: re(e.expectedDate, ie.DAY) })
|
@@ -9360,7 +9360,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9360
9360
|
}
|
9361
9361
|
),
|
9362
9362
|
/* @__PURE__ */ t(k, {}),
|
9363
|
-
c.length > 0 && /* @__PURE__ */ t(
|
9363
|
+
c.length > 0 && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
9364
9364
|
ne,
|
9365
9365
|
{
|
9366
9366
|
subheader: /* @__PURE__ */ t(Fr, { total: _, type: Ri.INCOME }),
|
@@ -9368,7 +9368,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9368
9368
|
children: c.map((h) => /* @__PURE__ */ t($r, { activity: h }, h.sequenceGuid))
|
9369
9369
|
}
|
9370
9370
|
) }),
|
9371
|
-
d.length > 0 && /* @__PURE__ */ t(
|
9371
|
+
d.length > 0 && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
9372
9372
|
ne,
|
9373
9373
|
{
|
9374
9374
|
subheader: /* @__PURE__ */ t(Fr, { total: u, type: Ri.EXPENSE }),
|
@@ -9539,7 +9539,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9539
9539
|
borderRadius: 1,
|
9540
9540
|
marginBottom: 24
|
9541
9541
|
},
|
9542
|
-
children: /* @__PURE__ */ t(
|
9542
|
+
children: /* @__PURE__ */ t(j, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ l(b, { width: "100%", children: [
|
9543
9543
|
/* @__PURE__ */ l(
|
9544
9544
|
b,
|
9545
9545
|
{
|
@@ -9618,7 +9618,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9618
9618
|
}
|
9619
9619
|
);
|
9620
9620
|
}, Qg = A(Zg), Jg = () => {
|
9621
|
-
const { cashflow: e } = x(), { isDesktop: n } = Ee(), { onEvent: i } =
|
9621
|
+
const { cashflow: e } = x(), { isDesktop: n } = Ee(), { onEvent: i } = z(), [a, o] = g.useState(0), r = (s, c) => {
|
9622
9622
|
o(c);
|
9623
9623
|
};
|
9624
9624
|
return g.useEffect(() => {
|
@@ -9886,7 +9886,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9886
9886
|
transform: rotate(360deg);
|
9887
9887
|
}
|
9888
9888
|
`, cm = () => {
|
9889
|
-
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = nt(), { cashflow: a, common: o } = x(), { completeOnboarding: r } = vo(), { isDirty: s } = _i(), { isMobile: c } = Ee(), { isCopyLoaded: d, setDisplayedDate: _ } = _e(), { filter: u, setFilter: h, transactions: m } = Te(), C = ge(), [f, E] = Et(!0), [y, S] = g.useState(J.EveryMonth), [w, v] = Et(!1), [I, R] = g.useState(null), [D, H] = Et(1), [O, M] = Et([]), [Q,
|
9889
|
+
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = nt(), { cashflow: a, common: o } = x(), { completeOnboarding: r } = vo(), { isDirty: s } = _i(), { isMobile: c } = Ee(), { isCopyLoaded: d, setDisplayedDate: _ } = _e(), { filter: u, setFilter: h, transactions: m } = Te(), C = ge(), [f, E] = Et(!0), [y, S] = g.useState(J.EveryMonth), [w, v] = Et(!1), [I, R] = g.useState(null), [D, H] = Et(1), [O, M] = Et([]), [Q, U] = Et(""), X = g.useMemo(
|
9890
9890
|
() => m.find((oe) => oe.guid === Q),
|
9891
9891
|
[Q]
|
9892
9892
|
), fe = !!i.length, $ = async () => {
|
@@ -9911,7 +9911,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9911
9911
|
}
|
9912
9912
|
await r();
|
9913
9913
|
}
|
9914
|
-
}, Re = !
|
9914
|
+
}, Re = !X && f || !X && O.length < 1;
|
9915
9915
|
return d ? /* @__PURE__ */ l(
|
9916
9916
|
L,
|
9917
9917
|
{
|
@@ -9953,7 +9953,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9953
9953
|
children: [
|
9954
9954
|
/* @__PURE__ */ t(en, { pb: 12, children: a.add_income_title }),
|
9955
9955
|
/* @__PURE__ */ t(Oe, { mb: 24, children: a.add_income_description }),
|
9956
|
-
O.length > 0 && !
|
9956
|
+
O.length > 0 && !X && /* @__PURE__ */ l(Z, { children: [
|
9957
9957
|
/* @__PURE__ */ t(ne, { children: O.map((oe, me) => /* @__PURE__ */ l(g.Fragment, { children: [
|
9958
9958
|
/* @__PURE__ */ t(va, { bgcolor: "background.paper", children: Hi(
|
9959
9959
|
ke(oe.nextDate || oe.date)
|
@@ -9982,12 +9982,12 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9982
9982
|
custom: (me) => oe ? Go(me, oe) : Yn(me)
|
9983
9983
|
}),
|
9984
9984
|
onSelected: (oe) => {
|
9985
|
-
|
9985
|
+
U(oe), E(!1);
|
9986
9986
|
}
|
9987
9987
|
}
|
9988
9988
|
),
|
9989
9989
|
!fe && s && /* @__PURE__ */ t(Oe, { color: "error", mt: 16, children: a.confirm_error }),
|
9990
|
-
|
9990
|
+
X && /* @__PURE__ */ l(Z, { children: [
|
9991
9991
|
/* @__PURE__ */ t(
|
9992
9992
|
vc,
|
9993
9993
|
{
|
@@ -9997,17 +9997,17 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9997
9997
|
nextDate: I,
|
9998
9998
|
onFrequencyChange: S,
|
9999
9999
|
onNextDateChange: R,
|
10000
|
-
transaction:
|
10000
|
+
transaction: X
|
10001
10001
|
}
|
10002
10002
|
),
|
10003
10003
|
/* @__PURE__ */ l(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
10004
10004
|
/* @__PURE__ */ t(
|
10005
10005
|
ee,
|
10006
10006
|
{
|
10007
|
-
"aria-disabled": !
|
10007
|
+
"aria-disabled": !X || !I,
|
10008
10008
|
onClick: () => {
|
10009
10009
|
const oe = [...O];
|
10010
|
-
oe.push({ ...
|
10010
|
+
oe.push({ ...X, nextDate: I, frequency: y }), M(oe), U("");
|
10011
10011
|
},
|
10012
10012
|
variant: "contained",
|
10013
10013
|
children: o.confirm_button
|
@@ -10017,7 +10017,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10017
10017
|
ee,
|
10018
10018
|
{
|
10019
10019
|
onClick: () => {
|
10020
|
-
|
10020
|
+
U(""), E(!0), $();
|
10021
10021
|
},
|
10022
10022
|
variant: "outlined",
|
10023
10023
|
children: o.cancel_button
|
@@ -10025,7 +10025,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10025
10025
|
)
|
10026
10026
|
] })
|
10027
10027
|
] }),
|
10028
|
-
O.length > 0 && !
|
10028
|
+
O.length > 0 && !X && /* @__PURE__ */ l(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
10029
10029
|
/* @__PURE__ */ t(
|
10030
10030
|
ee,
|
10031
10031
|
{
|
@@ -10059,7 +10059,7 @@ const Yg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10059
10059
|
setSelectedAccounts: o,
|
10060
10060
|
shouldDisableNextDate: r,
|
10061
10061
|
shouldDisablePrevDate: s
|
10062
|
-
} = _e(), { onEvent: c } =
|
10062
|
+
} = _e(), { onEvent: c } = z(), { visibleCashAccounts: d } = ve(), { setFilter: _ } = Te(), { userProfile: u } = an(), { dateRange: h, setSelectedCashAccounts: m } = _i(), { loadActivity: C } = nt(), { cashflow: f } = x(), { isCopyLoaded: E, isInitialized: y } = _e(), [S, w] = g.useState(!1);
|
10063
10063
|
return g.useEffect(() => {
|
10064
10064
|
y && C();
|
10065
10065
|
}, [y]), g.useEffect(() => {
|
@@ -10796,7 +10796,7 @@ const Bc = ({
|
|
10796
10796
|
onClickArea: r,
|
10797
10797
|
onHoverArea: s
|
10798
10798
|
}) => {
|
10799
|
-
const c = tt(), { onEvent: d } =
|
10799
|
+
const c = tt(), { onEvent: d } = z(), _ = a.filter((I) => !I.is_impossible), u = [
|
10800
10800
|
...new Set(
|
10801
10801
|
_.flatMap((I) => I.dataset.map((R) => new Date(R.x).getTime()))
|
10802
10802
|
)
|
@@ -10938,7 +10938,7 @@ const Bc = ({
|
|
10938
10938
|
)
|
10939
10939
|
] });
|
10940
10940
|
}, km = A(Mm), Gm = () => {
|
10941
|
-
const e = vn(), { onEvent: n } =
|
10941
|
+
const e = vn(), { onEvent: n } = z(), { debts: i } = x(), { selectedDebtChartData: a, showCompleted: o, showError: r } = Cn();
|
10942
10942
|
return g.useEffect(() => n(W.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ t(ne, { children: r || o ? /* @__PURE__ */ t(
|
10943
10943
|
p,
|
10944
10944
|
{
|
@@ -11103,7 +11103,7 @@ const Bc = ({
|
|
11103
11103
|
}
|
11104
11104
|
);
|
11105
11105
|
}), Pm = A(({ debt: e }) => {
|
11106
|
-
const { debts: n } = x(), { updateAccount: i } = ve(), { onEvent: a } =
|
11106
|
+
const { debts: n } = x(), { updateAccount: i } = ve(), { onEvent: a } = z(), [o, r] = g.useState(e.interest_rate ?? 0), s = o < 0, c = async () => {
|
11107
11107
|
await i({ ...e.account, interest_rate: o }), e.interest_rate = o, a(W.DEBTS_SAVE_RATE_ACTION, { account_guid: e.guid });
|
11108
11108
|
}, d = () => {
|
11109
11109
|
setTimeout(() => {
|
@@ -11133,7 +11133,7 @@ const Bc = ({
|
|
11133
11133
|
}
|
11134
11134
|
);
|
11135
11135
|
}), Hm = A(({ debt: e }) => {
|
11136
|
-
const { debts: n } = x(), { updateAccount: i } = ve(), { onEvent: a } =
|
11136
|
+
const { debts: n } = x(), { updateAccount: i } = ve(), { onEvent: a } = z(), [o, r] = g.useState(e.monthly_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
11137
11137
|
await i({ ...e.account, minimum_payment: o }), e.monthly_payment = o, a(W.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: e.guid });
|
11138
11138
|
}, d = () => {
|
11139
11139
|
setTimeout(() => {
|
@@ -11165,7 +11165,7 @@ const Bc = ({
|
|
11165
11165
|
}
|
11166
11166
|
);
|
11167
11167
|
}), $m = A(({ debt: e }) => {
|
11168
|
-
const { debts: n } = x(), { updateAccount: i } = ve(), { onEvent: a } =
|
11168
|
+
const { debts: n } = x(), { updateAccount: i } = ve(), { onEvent: a } = z(), [o, r] = g.useState(e.original_balance ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
11169
11169
|
await i({ ...e.account, original_balance: o }), e.original_balance = o, a(W.DEBTS_SAVE_BALANCE_ACTION, { account_guid: e.guid });
|
11170
11170
|
}, d = () => {
|
11171
11171
|
setTimeout(() => {
|
@@ -11197,7 +11197,7 @@ const Bc = ({
|
|
11197
11197
|
}
|
11198
11198
|
);
|
11199
11199
|
}), Fm = () => {
|
11200
|
-
const { onEvent: e } =
|
11200
|
+
const { onEvent: e } = z(), { selectedDebtChartData: n } = Cn();
|
11201
11201
|
return g.useEffect(() => e(W.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ l(b, { bgcolor: "background.paper", children: [
|
11202
11202
|
n?.goal && /* @__PURE__ */ l(Z, { children: [
|
11203
11203
|
/* @__PURE__ */ t(Hc, { goal: n.goal }),
|
@@ -11315,7 +11315,7 @@ const Bc = ({
|
|
11315
11315
|
}
|
11316
11316
|
);
|
11317
11317
|
}, jm = A(() => {
|
11318
|
-
const { debts: e } = x(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: i } = rt(), { onEvent: a } =
|
11318
|
+
const { debts: e } = x(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: i } = rt(), { onEvent: a } = z(), [o, r] = g.useState(n?.extra_payment ?? 0), s = o < 0 || o > 9999999999e-2, c = async () => {
|
11319
11319
|
n && (await i({ ...n, extra_payment: o }), n.extra_payment = o, a(W.DEBTS_SAVE_PAYDOWN_ACTION, {
|
11320
11320
|
user_guid: n?.user_guid
|
11321
11321
|
}));
|
@@ -11440,7 +11440,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11440
11440
|
onHoverRow: a,
|
11441
11441
|
onClickRow: o
|
11442
11442
|
}) => {
|
11443
|
-
const r = vn(), { onEvent: s } =
|
11443
|
+
const r = vn(), { onEvent: s } = z(), { isMobile: c } = Ee(), { debts: d } = x(), [_, u] = g.useState([
|
11444
11444
|
{ field: "priority", sort: "asc" }
|
11445
11445
|
]), h = [
|
11446
11446
|
{
|
@@ -11614,7 +11614,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11614
11614
|
}
|
11615
11615
|
);
|
11616
11616
|
}, op = A(({ buttonEl: e, onClose: n }) => {
|
11617
|
-
const { onEvent: i } =
|
11617
|
+
const { onEvent: i } = z(), { debts: a } = x(), { selectedDebtPriority: o, setSelectedDebtPriority: r } = Cn(), s = !!e, c = [
|
11618
11618
|
{
|
11619
11619
|
priority: sn.HIGHEST_INTEREST,
|
11620
11620
|
text: a.priority_sort_highest_interest
|
@@ -11646,7 +11646,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11646
11646
|
horizontal: "left"
|
11647
11647
|
},
|
11648
11648
|
children: /* @__PURE__ */ t(ne, { children: c.map(({ priority: _, text: u }) => /* @__PURE__ */ l(
|
11649
|
-
|
11649
|
+
j,
|
11650
11650
|
{
|
11651
11651
|
onClick: () => d(_),
|
11652
11652
|
sx: {
|
@@ -11673,7 +11673,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11673
11673
|
}
|
11674
11674
|
);
|
11675
11675
|
}), rp = A(() => {
|
11676
|
-
const { onEvent: e } =
|
11676
|
+
const { onEvent: e } = z(), { debts: n } = x(), { selectedDebtPriority: i } = Cn(), [a, o] = g.useState(null), r = (_) => {
|
11677
11677
|
o(_.currentTarget), e(W.DEBTS_CLICK_PRIORITIZE);
|
11678
11678
|
}, s = () => {
|
11679
11679
|
o(null);
|
@@ -11738,7 +11738,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11738
11738
|
}
|
11739
11739
|
);
|
11740
11740
|
}), lp = ({ onBackClick: e, sx: n }) => {
|
11741
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = Ee(), { debts: m } = x(), { onEvent: C } =
|
11741
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = Ee(), { debts: m } = x(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = _e(), { setSelectedAccount: S } = $t(), { selectedDebtPriority: w, setSelectedDebtChartData: v } = Cn(), { visibleDebtAccounts: I } = ve(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: H } = rt(), { debts: O } = Aa(), M = g.useMemo(() => {
|
11742
11742
|
const ce = H?.extra_payment ?? 0;
|
11743
11743
|
return sp(O, w, ce);
|
11744
11744
|
}, [O, w, H]);
|
@@ -11749,10 +11749,10 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11749
11749
|
}, [I]), g.useEffect(() => {
|
11750
11750
|
E && D().finally();
|
11751
11751
|
}, [E]);
|
11752
|
-
const Q = (ce) => _(ce),
|
11752
|
+
const Q = (ce) => _(ce), U = () => {
|
11753
11753
|
const ce = I.find((oe) => oe.guid === d), Re = M.find((oe) => oe.guid === d);
|
11754
11754
|
ce && S(ce), Re && v(Re), a(!0);
|
11755
|
-
},
|
11755
|
+
}, X = () => C(W.DEBTS_CLICK_FILTER), fe = () => {
|
11756
11756
|
c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
|
11757
11757
|
}, $ = () => {
|
11758
11758
|
r(!0), C(W.DEBTS_CLICK_PAYDOWN);
|
@@ -11765,7 +11765,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11765
11765
|
/* @__PURE__ */ t(rp, {}, "prioritize-debts"),
|
11766
11766
|
/* @__PURE__ */ t(cp, { onClick: $ }, "extra-paydown")
|
11767
11767
|
],
|
11768
|
-
onAccountsFilterClick:
|
11768
|
+
onAccountsFilterClick: X,
|
11769
11769
|
onBackClick: e,
|
11770
11770
|
sx: n,
|
11771
11771
|
title: m.title,
|
@@ -11786,7 +11786,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11786
11786
|
debts: M,
|
11787
11787
|
height: h ? 250 : void 0,
|
11788
11788
|
hoveredDebtGuid: d,
|
11789
|
-
onClickArea:
|
11789
|
+
onClickArea: U,
|
11790
11790
|
onHoverArea: Q,
|
11791
11791
|
sx: { mr: h ? "4px" : "-48px" }
|
11792
11792
|
}
|
@@ -11807,7 +11807,7 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11807
11807
|
{
|
11808
11808
|
debts: M,
|
11809
11809
|
hoveredDebtGuid: d,
|
11810
|
-
onClickRow:
|
11810
|
+
onClickRow: U,
|
11811
11811
|
onHoverRow: Q
|
11812
11812
|
}
|
11813
11813
|
) })
|
@@ -11904,11 +11904,11 @@ function Ya({ title: e, subtitle: n }) {
|
|
11904
11904
|
] });
|
11905
11905
|
}
|
11906
11906
|
function gp(e, n) {
|
11907
|
-
const i = n.track_type ===
|
11907
|
+
const i = n.track_type === K.DEBT_TRACK ? n.initial_amount : n.amount;
|
11908
11908
|
let a = n.current_amount / i;
|
11909
|
-
a > 1 && (a = 1), a = n.track_type ===
|
11909
|
+
a > 1 && (a = 1), a = n.track_type === K.DEBT_TRACK ? 1 - a : a, isNaN(a) && (a = 1);
|
11910
11910
|
let o = "chart.chart1", r = "common.black";
|
11911
|
-
n.track_type ===
|
11911
|
+
n.track_type === K.DEBT_TRACK ? (r = "common.white", o = "chart.chart5") : n.track_type === K.RETIREMENT_TRACK && (o = "chart.chart6");
|
11912
11912
|
const s = {
|
11913
11913
|
style: "percent",
|
11914
11914
|
minimumFractionDigits: 0,
|
@@ -11961,7 +11961,7 @@ function mp(e) {
|
|
11961
11961
|
},
|
11962
11962
|
{ icon: "payments", label: e.saving_goal_other, metaType: vt.OTHER }
|
11963
11963
|
],
|
11964
|
-
type:
|
11964
|
+
type: K.SAVINGS_TRACK
|
11965
11965
|
},
|
11966
11966
|
{
|
11967
11967
|
bgcolor: "chart.chart5",
|
@@ -11969,7 +11969,7 @@ function mp(e) {
|
|
11969
11969
|
label: e.debt_goal_label,
|
11970
11970
|
description: e.debt_goal_description,
|
11971
11971
|
subTypes: [],
|
11972
|
-
type:
|
11972
|
+
type: K.DEBT_TRACK
|
11973
11973
|
},
|
11974
11974
|
{
|
11975
11975
|
bgcolor: "chart.chart6",
|
@@ -11977,15 +11977,15 @@ function mp(e) {
|
|
11977
11977
|
label: e.retirement_goal_label,
|
11978
11978
|
description: e.retirement_goal_description,
|
11979
11979
|
subTypes: [],
|
11980
|
-
type:
|
11980
|
+
type: K.RETIREMENT_TRACK
|
11981
11981
|
}
|
11982
11982
|
];
|
11983
11983
|
}
|
11984
11984
|
const pp = (e, n) => {
|
11985
11985
|
switch (e) {
|
11986
|
-
case
|
11986
|
+
case K.DEBT_TRACK:
|
11987
11987
|
return T(n.zero_state_ongoing, "debt");
|
11988
|
-
case
|
11988
|
+
case K.SAVINGS_TRACK:
|
11989
11989
|
return T(n.zero_state_ongoing, "saving");
|
11990
11990
|
default:
|
11991
11991
|
return T(n.zero_state_ongoing, "retirement");
|
@@ -12001,14 +12001,14 @@ const pp = (e, n) => {
|
|
12001
12001
|
percentage: _,
|
12002
12002
|
percentageText: u,
|
12003
12003
|
projectedText: h
|
12004
|
-
} = gp(a, e), m = e.track_type ===
|
12004
|
+
} = gp(a, e), m = e.track_type === K.DEBT_TRACK ? e.initial_amount : e.amount, C = [
|
12005
12005
|
{
|
12006
12006
|
color: c,
|
12007
12007
|
percentage: `${_}`
|
12008
12008
|
}
|
12009
12009
|
];
|
12010
12010
|
let f = /* @__PURE__ */ t(sd, {});
|
12011
|
-
return e.track_type ===
|
12011
|
+
return e.track_type === K.DEBT_TRACK ? f = /* @__PURE__ */ t(cd, {}) : e.track_type === K.RETIREMENT_TRACK && (f = /* @__PURE__ */ t(ld, {})), /* @__PURE__ */ t(Gt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(Ps, { disabled: !i, onClick: i, children: [
|
12012
12012
|
/* @__PURE__ */ t(
|
12013
12013
|
wn,
|
12014
12014
|
{
|
@@ -12032,11 +12032,11 @@ const pp = (e, n) => {
|
|
12032
12032
|
), fp = A(({ trackType: e }) => {
|
12033
12033
|
const { goals: n } = x(), { setAlert: i, monthlyCashFlowProfile: a, updateMonthlyCashFlowProfile: o } = rt(), r = g.useMemo(() => {
|
12034
12034
|
let _ = 0;
|
12035
|
-
return e ===
|
12035
|
+
return e === K.SAVINGS_TRACK ? _ = a?.amount_allocated_for_savings_goals || 0 : e === K.DEBT_TRACK ? _ = a?.amount_allocated_for_debt_goals || 0 : e === K.RETIREMENT_TRACK && (_ = a?.amount_allocated_for_retirement_goals || 0), _;
|
12036
12036
|
}, [a]), [s, c] = g.useState(r), d = async () => {
|
12037
12037
|
if (a) {
|
12038
12038
|
const _ = { ...a };
|
12039
|
-
e ===
|
12039
|
+
e === K.SAVINGS_TRACK ? _.amount_allocated_for_savings_goals = s : e === K.DEBT_TRACK ? _.amount_allocated_for_debt_goals = s : e === K.RETIREMENT_TRACK && (_.amount_allocated_for_retirement_goals = s), await o(_), i(n.alert_contribution_updated);
|
12040
12040
|
}
|
12041
12041
|
};
|
12042
12042
|
return /* @__PURE__ */ t(b, { bgcolor: "background.paper", children: /* @__PURE__ */ t(
|
@@ -12111,7 +12111,7 @@ const pp = (e, n) => {
|
|
12111
12111
|
await a(c), o(n.alert_goals_reordered), s(!1);
|
12112
12112
|
};
|
12113
12113
|
return /* @__PURE__ */ l(b, { children: [
|
12114
|
-
/* @__PURE__ */ t(
|
12114
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(ue, { onClick: () => s(!0), children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(
|
12115
12115
|
b,
|
12116
12116
|
{
|
12117
12117
|
alignItems: "center",
|
@@ -12162,8 +12162,8 @@ const pp = (e, n) => {
|
|
12162
12162
|
] });
|
12163
12163
|
}, yp = ({ goal: e, index: n }) => {
|
12164
12164
|
const { goals: i } = x();
|
12165
|
-
return /* @__PURE__ */ t(
|
12166
|
-
e.track_type !==
|
12165
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { children: [
|
12166
|
+
e.track_type !== K.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
12167
12167
|
Pe,
|
12168
12168
|
{
|
12169
12169
|
sx: {
|
@@ -12191,7 +12191,7 @@ const pp = (e, n) => {
|
|
12191
12191
|
] }) });
|
12192
12192
|
}, Ep = ({ goal: e }) => {
|
12193
12193
|
const { goals: n } = x();
|
12194
|
-
return /* @__PURE__ */ t(
|
12194
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { children: [
|
12195
12195
|
/* @__PURE__ */ t(Pe, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(ga, { color: "success", filled: !0, size: 20 }) }),
|
12196
12196
|
/* @__PURE__ */ t(se, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12197
12197
|
/* @__PURE__ */ l(b, { children: [
|
@@ -12209,12 +12209,12 @@ const pp = (e, n) => {
|
|
12209
12209
|
] }) }, e.guid);
|
12210
12210
|
}, Sp = ({ trackType: e }) => {
|
12211
12211
|
const { goals: n, common: i } = x(), { orderedGoals: a } = rt(), o = a.filter((C) => C.track_type === e), r = o.filter(
|
12212
|
-
(C) => C.track_type ===
|
12212
|
+
(C) => C.track_type === K.SAVINGS_TRACK && !C.has_been_spent || C.track_type !== K.SAVINGS_TRACK && !C.is_complete
|
12213
12213
|
), s = o.filter(
|
12214
|
-
(C) => C.track_type ===
|
12214
|
+
(C) => C.track_type === K.SAVINGS_TRACK && C.has_been_spent || C.track_type !== K.SAVINGS_TRACK && C.is_complete
|
12215
12215
|
), [c, d] = g.useState(!1);
|
12216
12216
|
let _ = n.manage_saving_goals, u = n.manage_saving_drawer_title, h = n.manage_saving_title, m = n.manage_saving_description;
|
12217
|
-
return e ===
|
12217
|
+
return e === K.DEBT_TRACK ? (_ = n.manage_debt_goals, u = n.manage_debt_drawer_title, h = n.manage_debt_title, m = n.manage_debt_description) : e === K.RETIREMENT_TRACK && (_ = n.manage_retirement_goals, u = n.manage_retirement_drawer_title, h = n.manage_retirement_title, m = n.manage_retirement_description), /* @__PURE__ */ l(b, { children: [
|
12218
12218
|
/* @__PURE__ */ t(ee, { endIcon: /* @__PURE__ */ t(At, {}), onClick: () => d(!0), children: _ }),
|
12219
12219
|
/* @__PURE__ */ t(
|
12220
12220
|
ae,
|
@@ -12238,17 +12238,17 @@ const pp = (e, n) => {
|
|
12238
12238
|
/* @__PURE__ */ t(
|
12239
12239
|
k,
|
12240
12240
|
{
|
12241
|
-
variant: E && e ===
|
12241
|
+
variant: E && e === K.RETIREMENT_TRACK ? "fullWidth" : "inset"
|
12242
12242
|
}
|
12243
12243
|
)
|
12244
12244
|
] }, `ongoing-${C.guid}`);
|
12245
12245
|
}),
|
12246
|
-
e !==
|
12246
|
+
e !== K.RETIREMENT_TRACK && /* @__PURE__ */ l(b, { children: [
|
12247
12247
|
/* @__PURE__ */ t(bp, { goals: r }),
|
12248
12248
|
/* @__PURE__ */ t(k, {})
|
12249
12249
|
] })
|
12250
12250
|
] }),
|
12251
|
-
e !==
|
12251
|
+
e !== K.RETIREMENT_TRACK && s.length > 0 && /* @__PURE__ */ l(b, { children: [
|
12252
12252
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.complete_title }),
|
12253
12253
|
/* @__PURE__ */ t(ne, { sx: { bgcolor: "background.paper" }, children: s.map((C, f) => {
|
12254
12254
|
const E = f > r.length - 1;
|
@@ -12264,10 +12264,10 @@ const pp = (e, n) => {
|
|
12264
12264
|
] });
|
12265
12265
|
}, ja = A(({ trackType: e, onAddGoals: n }) => {
|
12266
12266
|
const { isMobile: i } = Ee(), { goals: a } = x(), { orderedGoals: o, setSelectedGoal: r } = rt(), s = o.filter((u) => u.track_type === e), c = s.filter(
|
12267
|
-
(u) => u.track_type ===
|
12267
|
+
(u) => u.track_type === K.SAVINGS_TRACK && !u.has_been_spent || u.track_type !== K.SAVINGS_TRACK && !u.is_complete
|
12268
12268
|
), d = s.filter(
|
12269
|
-
(u) => u.track_type ===
|
12270
|
-
), _ = e ===
|
12269
|
+
(u) => u.track_type === K.SAVINGS_TRACK && u.has_been_spent || u.track_type !== K.SAVINGS_TRACK && u.is_complete
|
12270
|
+
), _ = e === K.DEBT_TRACK ? a.zero_state_complete_debt : a.zero_state_complete_savings;
|
12271
12271
|
return /* @__PURE__ */ l(b, { mt: 16, mx: i ? 24 : 0, children: [
|
12272
12272
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
|
12273
12273
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: a.ongoing_title }),
|
@@ -12304,7 +12304,7 @@ const pp = (e, n) => {
|
|
12304
12304
|
]
|
12305
12305
|
}
|
12306
12306
|
),
|
12307
|
-
e !==
|
12307
|
+
e !== K.RETIREMENT_TRACK && /* @__PURE__ */ l(b, { gap: 16, mt: 48, children: [
|
12308
12308
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: a.complete_title }),
|
12309
12309
|
d.length === 0 && /* @__PURE__ */ t(b, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(
|
12310
12310
|
Oe,
|
@@ -12332,12 +12332,12 @@ const pp = (e, n) => {
|
|
12332
12332
|
}), Tp = ({ goalType: e, onClick: n }) => {
|
12333
12333
|
const { goals: i } = x(), { bgcolor: a, icon: o, label: r, description: s, subTypes: c, type: d } = e, [_, u] = g.useState(!1), h = c.length > 0;
|
12334
12334
|
return /* @__PURE__ */ t(b, { children: /* @__PURE__ */ l(ne, { sx: { bgcolor: "background.paper" }, children: [
|
12335
|
-
/* @__PURE__ */ t(
|
12335
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(
|
12336
12336
|
ue,
|
12337
12337
|
{
|
12338
12338
|
onClick: h ? () => u(!_) : () => n(
|
12339
|
-
d ===
|
12340
|
-
d ===
|
12339
|
+
d === K.RETIREMENT_TRACK ? i.retirement : "",
|
12340
|
+
d === K.RETIREMENT_TRACK ? vt.RETIREMENT : vt.OTHER,
|
12341
12341
|
d
|
12342
12342
|
),
|
12343
12343
|
children: [
|
@@ -12349,7 +12349,7 @@ const pp = (e, n) => {
|
|
12349
12349
|
}
|
12350
12350
|
) }),
|
12351
12351
|
/* @__PURE__ */ t(k, { variant: "inset" }),
|
12352
|
-
h && /* @__PURE__ */ t(Pi, { in: _, children: /* @__PURE__ */ t(ne, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(
|
12352
|
+
h && /* @__PURE__ */ t(Pi, { in: _, children: /* @__PURE__ */ t(ne, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(j, { sx: { pl: 48 }, children: /* @__PURE__ */ l(ue, { onClick: () => n(m.label, m.metaType, d), children: [
|
12353
12353
|
/* @__PURE__ */ t(ft, { sx: { mr: 8 }, children: /* @__PURE__ */ t(gt, { name: m.icon }) }),
|
12354
12354
|
/* @__PURE__ */ t(
|
12355
12355
|
se,
|
@@ -12385,7 +12385,7 @@ const pp = (e, n) => {
|
|
12385
12385
|
/* @__PURE__ */ l(ne, { sx: { bgcolor: "background.white" }, children: [
|
12386
12386
|
/* @__PURE__ */ t(k, { variant: "fullWidth" }),
|
12387
12387
|
e.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
12388
|
-
/* @__PURE__ */ t(
|
12388
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { onClick: () => _(u), children: [
|
12389
12389
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
12390
12390
|
Ct,
|
12391
12391
|
{
|
@@ -12418,7 +12418,7 @@ const pp = (e, n) => {
|
|
12418
12418
|
);
|
12419
12419
|
}, Ap = ({ onClose: e }) => {
|
12420
12420
|
const { goals: n } = x(), { addGoal: i, debtGoals: a, setAlert: o, setSelectedGoal: r } = rt(), { visibleDebtAccounts: s } = ve(), [c, d] = g.useState(!1), _ = mp(n), u = (m, C, f) => {
|
12421
|
-
f ===
|
12421
|
+
f === K.DEBT_TRACK ? d(!0) : r({
|
12422
12422
|
amount: 0,
|
12423
12423
|
current_amount: 0,
|
12424
12424
|
goal_type: lo.SAVE_AMOUNT,
|
@@ -12440,10 +12440,10 @@ const pp = (e, n) => {
|
|
12440
12440
|
meta_type: f,
|
12441
12441
|
monthly_payment: C.minimum_payment || 0,
|
12442
12442
|
name: C.name || C.feed_name || "",
|
12443
|
-
track_type:
|
12443
|
+
track_type: K.DEBT_TRACK
|
12444
12444
|
}), o(n.alert_goal_added);
|
12445
12445
|
}
|
12446
|
-
d(!1), e?.(
|
12446
|
+
d(!1), e?.(K.DEBT_TRACK);
|
12447
12447
|
};
|
12448
12448
|
return /* @__PURE__ */ l(b, { children: [
|
12449
12449
|
/* @__PURE__ */ t(ne, { sx: { bgcolor: "background.paper" }, children: _.map((m, C) => /* @__PURE__ */ t(Tp, { goalType: m, onClick: u }, C)) }),
|
@@ -12460,7 +12460,7 @@ const pp = (e, n) => {
|
|
12460
12460
|
] });
|
12461
12461
|
}, Uc = ({ account: e }) => {
|
12462
12462
|
const { accounts: n } = x(), { setSelectedAccount: i } = $t(), [a, o] = g.useState(!1);
|
12463
|
-
return /* @__PURE__ */ l(
|
12463
|
+
return /* @__PURE__ */ l(j, { sx: { bgcolor: "background.paper" }, children: [
|
12464
12464
|
/* @__PURE__ */ l(ue, { onClick: () => {
|
12465
12465
|
i(e), o(!0);
|
12466
12466
|
}, children: [
|
@@ -12486,7 +12486,7 @@ const pp = (e, n) => {
|
|
12486
12486
|
] }) })
|
12487
12487
|
] });
|
12488
12488
|
}, xp = A(({ goal: e }) => {
|
12489
|
-
const { goals: n } = x(), { setAlert: i, setSelectedGoal: a, updateGoal: o } = rt(), [r, s] = g.useState(e.amount), c = !e.guid, d = r < 0 || r > 9999999999e-2, _ = e.track_type ===
|
12489
|
+
const { goals: n } = x(), { setAlert: i, setSelectedGoal: a, updateGoal: o } = rt(), [r, s] = g.useState(e.amount), c = !e.guid, d = r < 0 || r > 9999999999e-2, _ = e.track_type === K.SAVINGS_TRACK && e.has_been_spent || e.track_type !== K.SAVINGS_TRACK && e.is_complete, u = async () => {
|
12490
12490
|
const m = { ...e, amount: r };
|
12491
12491
|
e.amount = r, c ? a(m) : (await o(m), i(n.alert_goal_updated_amount));
|
12492
12492
|
}, h = () => {
|
@@ -12525,7 +12525,7 @@ const pp = (e, n) => {
|
|
12525
12525
|
d ? s(C) : (await c(C), r(o.alert_account_changed)), u(!1);
|
12526
12526
|
};
|
12527
12527
|
return /* @__PURE__ */ l(b, { children: [
|
12528
|
-
d ? /* @__PURE__ */ t(
|
12528
|
+
d ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ue, { onClick: () => u(!0), children: [
|
12529
12529
|
/* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
12530
12530
|
/* @__PURE__ */ t(Os, { filled: !0 }),
|
12531
12531
|
o.details_add_account
|
@@ -12545,7 +12545,7 @@ const pp = (e, n) => {
|
|
12545
12545
|
] }),
|
12546
12546
|
/* @__PURE__ */ t(ae, { isOpen: _, onClose: () => u(!1), title: o.details_change_account, children: /* @__PURE__ */ l(b, { children: [
|
12547
12547
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[1] }),
|
12548
|
-
/* @__PURE__ */ t(ne, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(
|
12548
|
+
/* @__PURE__ */ t(ne, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { onClick: () => h(m.guid), children: [
|
12549
12549
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
12550
12550
|
Ct,
|
12551
12551
|
{
|
@@ -12563,7 +12563,7 @@ const pp = (e, n) => {
|
|
12563
12563
|
/* @__PURE__ */ t(At, {})
|
12564
12564
|
] }) }, m.guid)) }),
|
12565
12565
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
12566
|
-
/* @__PURE__ */ t(ne, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(
|
12566
|
+
/* @__PURE__ */ t(ne, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { onClick: () => h(m.guid), children: [
|
12567
12567
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
12568
12568
|
Ct,
|
12569
12569
|
{
|
@@ -12591,7 +12591,7 @@ const pp = (e, n) => {
|
|
12591
12591
|
] }) })
|
12592
12592
|
] });
|
12593
12593
|
}, vp = A(({ goal: e }) => {
|
12594
|
-
const { goals: n } = x(), { setAlert: i, setSelectedGoal: a, updateGoal: o } = rt(), [r, s] = g.useState(e.name), c = !e.guid, d = e.track_type ===
|
12594
|
+
const { goals: n } = x(), { setAlert: i, setSelectedGoal: a, updateGoal: o } = rt(), [r, s] = g.useState(e.name), c = !e.guid, d = e.track_type === K.SAVINGS_TRACK && e.has_been_spent || e.track_type !== K.SAVINGS_TRACK && e.is_complete, _ = async () => {
|
12595
12595
|
const h = { ...e, name: r };
|
12596
12596
|
e.name = r, c ? a(h) : (await o(h), i(n.alert_goal_updated_name));
|
12597
12597
|
}, u = () => {
|
@@ -12709,7 +12709,7 @@ const pp = (e, n) => {
|
|
12709
12709
|
/* @__PURE__ */ t(Uc, { account: f }),
|
12710
12710
|
/* @__PURE__ */ t(k, {})
|
12711
12711
|
] }, f.guid)),
|
12712
|
-
/* @__PURE__ */ t(
|
12712
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(ue, { onClick: () => _(!0), children: [
|
12713
12713
|
/* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
12714
12714
|
/* @__PURE__ */ t(Os, { filled: !0 }),
|
12715
12715
|
n.details_add_account
|
@@ -12733,7 +12733,7 @@ const pp = (e, n) => {
|
|
12733
12733
|
[i, e]
|
12734
12734
|
), o = e.track_type;
|
12735
12735
|
let r = n.details_save_title;
|
12736
|
-
return e.track_type ===
|
12736
|
+
return e.track_type === K.DEBT_TRACK ? r = n.details_debt_title : e.track_type === K.RETIREMENT_TRACK && (r = n.details_retirement_title), /* @__PURE__ */ l(b, { children: [
|
12737
12737
|
/* @__PURE__ */ l(b, { mx: 24, children: [
|
12738
12738
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: r }),
|
12739
12739
|
/* @__PURE__ */ t(Fc, { goal: e, isInDrawer: !0 }),
|
@@ -12742,11 +12742,11 @@ const pp = (e, n) => {
|
|
12742
12742
|
/* @__PURE__ */ l(ne, { sx: { bgcolor: "background.paper" }, children: [
|
12743
12743
|
/* @__PURE__ */ t(vp, { goal: e }),
|
12744
12744
|
/* @__PURE__ */ t(k, { sx: { ml: 24 } }),
|
12745
|
-
(o ===
|
12745
|
+
(o === K.SAVINGS_TRACK || o === K.RETIREMENT_TRACK) && /* @__PURE__ */ l(Z, { children: [
|
12746
12746
|
/* @__PURE__ */ t(xp, { goal: e }),
|
12747
|
-
/* @__PURE__ */ t(k, { sx: { ml: o ===
|
12747
|
+
/* @__PURE__ */ t(k, { sx: { ml: o === K.RETIREMENT_TRACK ? 24 : 0 } })
|
12748
12748
|
] }),
|
12749
|
-
e.track_type ===
|
12749
|
+
e.track_type === K.DEBT_TRACK && /* @__PURE__ */ l(Z, { children: [
|
12750
12750
|
/* @__PURE__ */ t(Hc, { goal: e }),
|
12751
12751
|
/* @__PURE__ */ t(k, { sx: { ml: 24 } }),
|
12752
12752
|
/* @__PURE__ */ t(Pc, { goal: e }),
|
@@ -12754,23 +12754,23 @@ const pp = (e, n) => {
|
|
12754
12754
|
/* @__PURE__ */ t($c, { goal: e }),
|
12755
12755
|
/* @__PURE__ */ t(k, { variant: "fullWidth" })
|
12756
12756
|
] }),
|
12757
|
-
e.track_type ===
|
12757
|
+
e.track_type === K.RETIREMENT_TRACK && /* @__PURE__ */ l(Z, { children: [
|
12758
12758
|
/* @__PURE__ */ t(wp, { goal: e }),
|
12759
12759
|
/* @__PURE__ */ t(k, { sx: { ml: 24 } }),
|
12760
12760
|
/* @__PURE__ */ t(Np, { goal: e }),
|
12761
12761
|
/* @__PURE__ */ t(k, { variant: "fullWidth" })
|
12762
12762
|
] })
|
12763
12763
|
] }),
|
12764
|
-
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: e.track_type ===
|
12765
|
-
e.track_type !==
|
12764
|
+
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: e.track_type === K.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
|
12765
|
+
e.track_type !== K.RETIREMENT_TRACK && a && /* @__PURE__ */ l(Z, { children: [
|
12766
12766
|
/* @__PURE__ */ t(Uc, { account: a }),
|
12767
12767
|
/* @__PURE__ */ t(k, {})
|
12768
12768
|
] }),
|
12769
|
-
e.track_type ===
|
12769
|
+
e.track_type === K.RETIREMENT_TRACK && /* @__PURE__ */ l(Z, { children: [
|
12770
12770
|
/* @__PURE__ */ t(Dp, { goal: e }),
|
12771
12771
|
/* @__PURE__ */ t(k, {})
|
12772
12772
|
] }),
|
12773
|
-
e.track_type ===
|
12773
|
+
e.track_type === K.SAVINGS_TRACK && !e.is_complete && /* @__PURE__ */ t(Ip, { goal: e })
|
12774
12774
|
] });
|
12775
12775
|
}), Op = A(({ onClose: e }) => {
|
12776
12776
|
const { goals: n, common: i } = x(), {
|
@@ -12782,16 +12782,16 @@ const pp = (e, n) => {
|
|
12782
12782
|
setAlert: d,
|
12783
12783
|
setSelectedGoal: _,
|
12784
12784
|
updateGoal: u
|
12785
|
-
} = rt(), { user: h } = an(), [m, C] = g.useState(!1), f = !c?.guid, E = c?.track_type ===
|
12785
|
+
} = rt(), { user: h } = an(), [m, C] = g.useState(!1), f = !c?.guid, E = c?.track_type === K.SAVINGS_TRACK && c.is_complete && !c.has_been_spent, y = g.useMemo(() => c ? c.track_type === K.SAVINGS_TRACK ? !!c.name && !!c.amount : c.track_type === K.DEBT_TRACK ? !0 : c.track_type === K.RETIREMENT_TRACK ? !!c.name && !!c.amount && !!c.retirement_age && !!h.birthday : !0 : !1, [c]);
|
12786
12786
|
let S = i.delete_button, w = () => C(!0);
|
12787
12787
|
f ? (w = () => v(), S = i.save_button) : E && (w = () => R(), S = n.mark_as_complete_button);
|
12788
12788
|
const v = async () => {
|
12789
12789
|
if (c) {
|
12790
12790
|
const D = c.track_type;
|
12791
|
-
D !==
|
12791
|
+
D !== K.RETIREMENT_TRACK ? await a(c) : D === K.RETIREMENT_TRACK && await o({ ...c, target_amount: c.amount }), d(n.alert_goal_added), _(void 0), D && e?.(D);
|
12792
12792
|
}
|
12793
12793
|
}, I = async () => {
|
12794
|
-
c && (c.track_type !==
|
12794
|
+
c && (c.track_type !== K.RETIREMENT_TRACK ? await r(c.guid) : c.track_type === K.RETIREMENT_TRACK && await s(c), d(n.alert_goal_deleted), _(void 0));
|
12795
12795
|
}, R = async () => {
|
12796
12796
|
const D = {
|
12797
12797
|
...c,
|
@@ -12831,7 +12831,7 @@ const pp = (e, n) => {
|
|
12831
12831
|
)
|
12832
12832
|
] });
|
12833
12833
|
}), s4 = A(({ onBackClick: e, sx: n }) => {
|
12834
|
-
const { onEvent: i } =
|
12834
|
+
const { onEvent: i } = z(), { isMobile: a } = Ee(), { visibleAccounts: o } = ve(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = _e(), { goals: d, common: _ } = x(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = rt(), [S, w] = g.useState(0), [v, I] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0, H = f?.amount_allocated_for_retirement_goals || 0, O = r ? T(
|
12835
12835
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
12836
12836
|
B(R, "0,0")
|
12837
12837
|
) : "", M = r ? T(
|
@@ -12846,12 +12846,12 @@ const pp = (e, n) => {
|
|
12846
12846
|
}, []), g.useEffect(() => {
|
12847
12847
|
s && C().finally();
|
12848
12848
|
}, [s, R, D, H]);
|
12849
|
-
const
|
12849
|
+
const U = () => {
|
12850
12850
|
i(W.GOALS_CLICK_FILTER);
|
12851
|
-
},
|
12851
|
+
}, X = () => {
|
12852
12852
|
I(!0), i(W.GOALS_CLICK_ADD);
|
12853
12853
|
}, fe = (ce) => {
|
12854
|
-
I(!1), ce ===
|
12854
|
+
I(!1), ce === K.SAVINGS_TRACK ? w(0) : ce === K.DEBT_TRACK ? w(1) : ce === K.RETIREMENT_TRACK && w(2);
|
12855
12855
|
}, $ = g.useMemo(
|
12856
12856
|
() => m && (h.length === 0 || h.every(({ track_type: ce }) => !ce) && y.length === 0),
|
12857
12857
|
[h, m, y]
|
@@ -12864,10 +12864,10 @@ const pp = (e, n) => {
|
|
12864
12864
|
{
|
12865
12865
|
iconName: "add",
|
12866
12866
|
label: d.add_title,
|
12867
|
-
onClick:
|
12867
|
+
onClick: X
|
12868
12868
|
}
|
12869
12869
|
],
|
12870
|
-
onAccountsFilterClick:
|
12870
|
+
onAccountsFilterClick: U,
|
12871
12871
|
onBackClick: e,
|
12872
12872
|
sx: n,
|
12873
12873
|
title: d.title,
|
@@ -12913,7 +12913,7 @@ const pp = (e, n) => {
|
|
12913
12913
|
{
|
12914
12914
|
header: d.create_goals_header,
|
12915
12915
|
icon: "trophy",
|
12916
|
-
onClick:
|
12916
|
+
onClick: X,
|
12917
12917
|
primaryButton: d.add_goals_button,
|
12918
12918
|
subText: d.empty_state_subheader,
|
12919
12919
|
sx: {
|
@@ -12924,9 +12924,9 @@ const pp = (e, n) => {
|
|
12924
12924
|
}
|
12925
12925
|
}
|
12926
12926
|
) : /* @__PURE__ */ l(Z, { children: [
|
12927
|
-
S === 0 && /* @__PURE__ */ t(ja, { onAddGoals:
|
12928
|
-
S === 1 && /* @__PURE__ */ t(ja, { onAddGoals:
|
12929
|
-
S === 2 && /* @__PURE__ */ t(ja, { onAddGoals:
|
12927
|
+
S === 0 && /* @__PURE__ */ t(ja, { onAddGoals: X, trackType: K.SAVINGS_TRACK }),
|
12928
|
+
S === 1 && /* @__PURE__ */ t(ja, { onAddGoals: X, trackType: K.DEBT_TRACK }),
|
12929
|
+
S === 2 && /* @__PURE__ */ t(ja, { onAddGoals: X, trackType: K.RETIREMENT_TRACK })
|
12930
12930
|
] })
|
12931
12931
|
] }),
|
12932
12932
|
/* @__PURE__ */ t(Op, { onClose: fe }),
|
@@ -12971,18 +12971,18 @@ class Lp {
|
|
12971
12971
|
return this.goals.slice().sort((n, i) => n.position - i.position);
|
12972
12972
|
}
|
12973
12973
|
get debtGoals() {
|
12974
|
-
return this.orderedGoals.filter((n) => n.track_type ===
|
12974
|
+
return this.orderedGoals.filter((n) => n.track_type === K.DEBT_TRACK);
|
12975
12975
|
}
|
12976
12976
|
get retirmentGoals() {
|
12977
|
-
return this.orderedGoals.filter((n) => n.track_type ===
|
12977
|
+
return this.orderedGoals.filter((n) => n.track_type === K.RETIREMENT_TRACK);
|
12978
12978
|
}
|
12979
12979
|
get savingGoals() {
|
12980
|
-
return this.orderedGoals.filter((n) => n.track_type ===
|
12980
|
+
return this.orderedGoals.filter((n) => n.track_type === K.SAVINGS_TRACK);
|
12981
12981
|
}
|
12982
12982
|
addGoal = async (n) => {
|
12983
12983
|
try {
|
12984
12984
|
const i = await this.api.addGoal(n);
|
12985
|
-
|
12985
|
+
Y(() => {
|
12986
12986
|
this.goals = [...this.goals, i];
|
12987
12987
|
});
|
12988
12988
|
} catch (i) {
|
@@ -13000,14 +13000,14 @@ class Lp {
|
|
13000
13000
|
});
|
13001
13001
|
o.push(s);
|
13002
13002
|
}
|
13003
|
-
this.setNewRetirementGoalAccounts([]),
|
13003
|
+
this.setNewRetirementGoalAccounts([]), Y(() => {
|
13004
13004
|
this.goals = [
|
13005
13005
|
...this.goals,
|
13006
13006
|
{
|
13007
13007
|
...a,
|
13008
13008
|
amount: a.target_amount,
|
13009
13009
|
name: i.retirement,
|
13010
|
-
track_type:
|
13010
|
+
track_type: K.RETIREMENT_TRACK
|
13011
13011
|
}
|
13012
13012
|
], this.retirementGoalAccounts = [...this.retirementGoalAccounts, ...o];
|
13013
13013
|
});
|
@@ -13018,7 +13018,7 @@ class Lp {
|
|
13018
13018
|
addRetirementGoalAccount = async (n) => {
|
13019
13019
|
try {
|
13020
13020
|
const i = await this.api.addRetirementGoalAccount(n);
|
13021
|
-
|
13021
|
+
Y(() => {
|
13022
13022
|
this.retirementGoalAccounts = [...this.retirementGoalAccounts, i];
|
13023
13023
|
});
|
13024
13024
|
} catch (i) {
|
@@ -13034,10 +13034,10 @@ class Lp {
|
|
13034
13034
|
...c,
|
13035
13035
|
amount: c.target_amount,
|
13036
13036
|
name: n.retirement,
|
13037
|
-
track_type:
|
13037
|
+
track_type: K.RETIREMENT_TRACK
|
13038
13038
|
}))
|
13039
13039
|
];
|
13040
|
-
|
13040
|
+
Y(() => {
|
13041
13041
|
this.goals = s, this.retirementGoalAccounts = o, this.monthlyCashFlowProfile = r, this.goalsLoaded = !0;
|
13042
13042
|
});
|
13043
13043
|
} catch (i) {
|
@@ -13046,7 +13046,7 @@ class Lp {
|
|
13046
13046
|
};
|
13047
13047
|
deleteGoal = async (n) => {
|
13048
13048
|
try {
|
13049
|
-
await this.api.removeGoal(n),
|
13049
|
+
await this.api.removeGoal(n), Y(() => {
|
13050
13050
|
const i = this.goals.findIndex((a) => a.guid === n);
|
13051
13051
|
i >= 0 && this.goals.splice(i, 1);
|
13052
13052
|
});
|
@@ -13061,7 +13061,7 @@ class Lp {
|
|
13061
13061
|
);
|
13062
13062
|
for (const a of i)
|
13063
13063
|
await this.deleteRetirementGoalAccount(a.guid);
|
13064
|
-
await this.api.removeRetirementGoal(n.guid),
|
13064
|
+
await this.api.removeRetirementGoal(n.guid), Y(() => {
|
13065
13065
|
const a = this.goals.findIndex((o) => o.guid === n.guid);
|
13066
13066
|
a >= 0 && this.goals.splice(a, 1);
|
13067
13067
|
});
|
@@ -13071,7 +13071,7 @@ class Lp {
|
|
13071
13071
|
};
|
13072
13072
|
deleteRetirementGoalAccount = async (n) => {
|
13073
13073
|
try {
|
13074
|
-
await this.api.removeRetirementGoalAccount(n),
|
13074
|
+
await this.api.removeRetirementGoalAccount(n), Y(() => {
|
13075
13075
|
const i = this.retirementGoalAccounts.findIndex((a) => a.guid === n);
|
13076
13076
|
i >= 0 && this.retirementGoalAccounts.splice(i, 1);
|
13077
13077
|
});
|
@@ -13082,7 +13082,7 @@ class Lp {
|
|
13082
13082
|
reorderGoals = async (n) => {
|
13083
13083
|
try {
|
13084
13084
|
const i = await this.api.reorderGoals(n);
|
13085
|
-
|
13085
|
+
Y(() => {
|
13086
13086
|
for (const a of i) {
|
13087
13087
|
const o = this.goals.findIndex((r) => r.guid === a.guid);
|
13088
13088
|
o >= 0 && (this.goals[o].position = a.position);
|
@@ -13100,7 +13100,7 @@ class Lp {
|
|
13100
13100
|
updateGoal = async (n) => {
|
13101
13101
|
try {
|
13102
13102
|
const i = await this.api.updateGoal(n);
|
13103
|
-
|
13103
|
+
Y(() => {
|
13104
13104
|
const a = this.goals.findIndex((o) => o.guid === n.guid);
|
13105
13105
|
a >= 0 && (this.goals[a] = i), this.selectedGoal?.guid === n.guid && this.setSelectedGoal(i);
|
13106
13106
|
});
|
@@ -13111,7 +13111,7 @@ class Lp {
|
|
13111
13111
|
updateMonthlyCashFlowProfile = async (n) => {
|
13112
13112
|
try {
|
13113
13113
|
const i = await this.api.updateMonthlyCashFlowProfile(n);
|
13114
|
-
|
13114
|
+
Y(() => {
|
13115
13115
|
this.monthlyCashFlowProfile = i;
|
13116
13116
|
});
|
13117
13117
|
} catch (i) {
|
@@ -13531,7 +13531,7 @@ class Kp {
|
|
13531
13531
|
loadHoldings = async () => {
|
13532
13532
|
try {
|
13533
13533
|
const n = await this.api.getHoldings();
|
13534
|
-
|
13534
|
+
Y(() => {
|
13535
13535
|
this.holdings = [...n], this.analysisChartData = Jr(
|
13536
13536
|
qr(n),
|
13537
13537
|
this.analysisType
|
@@ -13553,7 +13553,7 @@ class Kp {
|
|
13553
13553
|
const i = await this.api.updateHoldings(n), a = this.holdings.findIndex(({ guid: o }) => o === n.guid);
|
13554
13554
|
if (a >= 0) {
|
13555
13555
|
const o = [...this.holdings];
|
13556
|
-
o[a] = i,
|
13556
|
+
o[a] = i, Y(() => {
|
13557
13557
|
this.holdings = o, this.holdingsLoaded = !0;
|
13558
13558
|
});
|
13559
13559
|
}
|
@@ -13604,7 +13604,7 @@ const zp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Yp = 50, es = 65, jp = ({
|
|
13604
13604
|
sx: { transform: `translateY(${C.start}px)` },
|
13605
13605
|
width: "100%",
|
13606
13606
|
children: [
|
13607
|
-
/* @__PURE__ */ t(
|
13607
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: () => _(f.guid), children: [
|
13608
13608
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(un, { categoryGuid: "", merchantGuid: f.guid }) }),
|
13609
13609
|
/* @__PURE__ */ t(se, { primary: f.name })
|
13610
13610
|
] }) }),
|
@@ -13642,13 +13642,13 @@ class Xp {
|
|
13642
13642
|
loadMerchants = async (n = "") => {
|
13643
13643
|
this.isLoading = !0;
|
13644
13644
|
const i = await this.api.getMerchants([n]);
|
13645
|
-
|
13645
|
+
Y(() => {
|
13646
13646
|
this.merchants = i, this.isLoading = !1;
|
13647
13647
|
});
|
13648
13648
|
};
|
13649
13649
|
loadMerchantByGuid = async (n) => {
|
13650
13650
|
const i = await this.api.getMerchantByGuid(n);
|
13651
|
-
|
13651
|
+
Y(() => this.merchant = i);
|
13652
13652
|
};
|
13653
13653
|
}
|
13654
13654
|
const Zc = 13, qp = (e, n) => e.filter((i) => {
|
@@ -13744,7 +13744,7 @@ class i1 {
|
|
13744
13744
|
const i = this.globalStore.accountStore.members, a = qp(n, i), r = await (await Promise.all(
|
13745
13745
|
a.map((s) => this.globalStore.accountStore.api.getMonthlyAccountBalances(s.guid))
|
13746
13746
|
)).reduce(Zp, []).sort(Qp);
|
13747
|
-
|
13747
|
+
Y(() => {
|
13748
13748
|
this.netWorthData = {
|
13749
13749
|
accounts: a,
|
13750
13750
|
monthlyAccountBalances: r
|
@@ -13757,7 +13757,7 @@ class i1 {
|
|
13757
13757
|
loadChartData = async (n) => {
|
13758
13758
|
try {
|
13759
13759
|
const { accounts: i, monthlyAccountBalances: a } = this.netWorthData, o = await e1(i, a, n), r = ns(o);
|
13760
|
-
|
13760
|
+
Y(() => {
|
13761
13761
|
this.netWorthChartData = o, this.selectedData = r;
|
13762
13762
|
});
|
13763
13763
|
} catch (i) {
|
@@ -13780,12 +13780,12 @@ class i1 {
|
|
13780
13780
|
};
|
13781
13781
|
}
|
13782
13782
|
setSelectedData = (n) => {
|
13783
|
-
|
13783
|
+
Y(() => {
|
13784
13784
|
this.selectedData = this.netWorthChartData[n];
|
13785
13785
|
});
|
13786
13786
|
};
|
13787
13787
|
setHoveredData = (n) => {
|
13788
|
-
|
13788
|
+
Y(() => {
|
13789
13789
|
this.hoveredData = n !== null ? this.netWorthChartData[n] : void 0;
|
13790
13790
|
});
|
13791
13791
|
};
|
@@ -13839,7 +13839,7 @@ const a1 = ({
|
|
13839
13839
|
d(n(e));
|
13840
13840
|
}, [i, a]), /* @__PURE__ */ l(g.Fragment, { children: [
|
13841
13841
|
/* @__PURE__ */ t(
|
13842
|
-
|
13842
|
+
j,
|
13843
13843
|
{
|
13844
13844
|
sx: {
|
13845
13845
|
...c,
|
@@ -13985,7 +13985,7 @@ const a1 = ({
|
|
13985
13985
|
}, La = A(h1), g1 = ({ accounts: e, name: n, icon: i }) => {
|
13986
13986
|
const [a, o] = g.useState(!1);
|
13987
13987
|
return /* @__PURE__ */ l(Z, { children: [
|
13988
|
-
/* @__PURE__ */ t(
|
13988
|
+
/* @__PURE__ */ t(j, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ l(ue, { onClick: () => o(!a), children: [
|
13989
13989
|
i && /* @__PURE__ */ t(ft, { children: /* @__PURE__ */ t(P, { name: i, size: 24, sx: { mr: 12 } }) }),
|
13990
13990
|
/* @__PURE__ */ t(
|
13991
13991
|
se,
|
@@ -13997,7 +13997,7 @@ const a1 = ({
|
|
13997
13997
|
] }) }),
|
13998
13998
|
/* @__PURE__ */ t(k, {}),
|
13999
13999
|
/* @__PURE__ */ t(Pi, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((r, s) => /* @__PURE__ */ l(ne, { children: [
|
14000
|
-
/* @__PURE__ */ t(
|
14000
|
+
/* @__PURE__ */ t(j, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
14001
14001
|
se,
|
14002
14002
|
{
|
14003
14003
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
@@ -14093,7 +14093,7 @@ const a1 = ({
|
|
14093
14093
|
}
|
14094
14094
|
) }),
|
14095
14095
|
n?.map((c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
14096
|
-
/* @__PURE__ */ t(
|
14096
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: s.palette.background.paper, py: 14 }, children: /* @__PURE__ */ t(
|
14097
14097
|
se,
|
14098
14098
|
{
|
14099
14099
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
@@ -14123,7 +14123,7 @@ const a1 = ({
|
|
14123
14123
|
) }),
|
14124
14124
|
i?.map((c) => /* @__PURE__ */ l(Z, { children: [
|
14125
14125
|
/* @__PURE__ */ t(
|
14126
|
-
|
14126
|
+
j,
|
14127
14127
|
{
|
14128
14128
|
sx: { backgroundColor: s.palette.background.paper, py: 14 },
|
14129
14129
|
children: /* @__PURE__ */ t(
|
@@ -14154,7 +14154,7 @@ const a1 = ({
|
|
14154
14154
|
selectedData: f,
|
14155
14155
|
setHoveredData: E,
|
14156
14156
|
setSelectedData: y
|
14157
|
-
} = Yu(), { isMobile: S } = Ee(), { onEvent: w } =
|
14157
|
+
} = Yu(), { isMobile: S } = Ee(), { onEvent: w } = z(), [v, I] = g.useState(!1), [R, D] = g.useState(6), [H, O] = g.useState(!1), [M, Q] = g.useState(!1), [U, X] = g.useState(!1), fe = async () => {
|
14158
14158
|
await m(a), await h(R), I(!0);
|
14159
14159
|
};
|
14160
14160
|
g.useEffect(() => {
|
@@ -14186,7 +14186,7 @@ const a1 = ({
|
|
14186
14186
|
onMouseLeave: Re,
|
14187
14187
|
selectedData: f
|
14188
14188
|
}, $e = () => {
|
14189
|
-
|
14189
|
+
X(!0), w(W.ACCOUNTS_CLICK_CONNECT);
|
14190
14190
|
};
|
14191
14191
|
return n ? /* @__PURE__ */ t(
|
14192
14192
|
Ot,
|
@@ -14247,8 +14247,8 @@ const a1 = ({
|
|
14247
14247
|
/* @__PURE__ */ t(
|
14248
14248
|
La,
|
14249
14249
|
{
|
14250
|
-
onClose: () =>
|
14251
|
-
showConnectionsWidget:
|
14250
|
+
onClose: () => X(!1),
|
14251
|
+
showConnectionsWidget: U,
|
14252
14252
|
title: r.manage_connections
|
14253
14253
|
}
|
14254
14254
|
),
|
@@ -14320,7 +14320,7 @@ class y1 {
|
|
14320
14320
|
try {
|
14321
14321
|
this.isLoading = !0;
|
14322
14322
|
const n = await this.api.getNotifications();
|
14323
|
-
|
14323
|
+
Y(() => {
|
14324
14324
|
this.notifications = n, this.recentNotifications = b1(n), this.isLoading = !1;
|
14325
14325
|
});
|
14326
14326
|
} catch (n) {
|
@@ -14542,7 +14542,7 @@ class R1 {
|
|
14542
14542
|
try {
|
14543
14543
|
await this.api.deleteDevice(n);
|
14544
14544
|
const i = this.devices.findIndex((a) => a.guid === n);
|
14545
|
-
return i >= 0 &&
|
14545
|
+
return i >= 0 && Y(() => {
|
14546
14546
|
this.devices.splice(i, 1);
|
14547
14547
|
}), { success: !0 };
|
14548
14548
|
} catch {
|
@@ -14566,7 +14566,7 @@ class R1 {
|
|
14566
14566
|
loadDevices = async () => {
|
14567
14567
|
try {
|
14568
14568
|
const n = await this.api.getDevices();
|
14569
|
-
|
14569
|
+
Y(() => {
|
14570
14570
|
this.devices = n;
|
14571
14571
|
});
|
14572
14572
|
} catch (n) {
|
@@ -14576,7 +14576,7 @@ class R1 {
|
|
14576
14576
|
loadNotificationProfiles = async () => {
|
14577
14577
|
try {
|
14578
14578
|
const n = await this.api.getNotificationProfiles();
|
14579
|
-
|
14579
|
+
Y(() => {
|
14580
14580
|
this.notificationProfiles = n;
|
14581
14581
|
});
|
14582
14582
|
} catch (n) {
|
@@ -14586,7 +14586,7 @@ class R1 {
|
|
14586
14586
|
loadTransactionRules = async () => {
|
14587
14587
|
try {
|
14588
14588
|
const n = await this.transactionApi.getTransactionRules();
|
14589
|
-
|
14589
|
+
Y(() => {
|
14590
14590
|
this.transactionRules = n;
|
14591
14591
|
});
|
14592
14592
|
} catch (n) {
|
@@ -14607,14 +14607,14 @@ class R1 {
|
|
14607
14607
|
console.error(`Error sending phone verification: ${n}`), this.setAlert(this.copy.verification_sent_error, "error");
|
14608
14608
|
}
|
14609
14609
|
};
|
14610
|
-
setAlert = (n, i = void 0) =>
|
14610
|
+
setAlert = (n, i = void 0) => this.alert = { message: n, severity: i };
|
14611
14611
|
setSelectedRule = (n) => {
|
14612
14612
|
this.selectedRule = n;
|
14613
14613
|
};
|
14614
14614
|
updateDevice = async (n) => {
|
14615
14615
|
try {
|
14616
14616
|
const i = await this.api.updateDevice(n), a = this.devices.findIndex((o) => o.guid === n.guid);
|
14617
|
-
return a >= 0 &&
|
14617
|
+
return a >= 0 && Y(() => {
|
14618
14618
|
this.devices[a] = i;
|
14619
14619
|
}), { success: !0 };
|
14620
14620
|
} catch (i) {
|
@@ -14624,7 +14624,7 @@ class R1 {
|
|
14624
14624
|
updateNotificationProfile = async (n) => {
|
14625
14625
|
try {
|
14626
14626
|
const i = await this.api.updateNotificationProfile(n), a = this.notificationProfiles.findIndex((o) => o.guid === n.guid);
|
14627
|
-
a >= 0 &&
|
14627
|
+
a >= 0 && Y(() => {
|
14628
14628
|
this.notificationProfiles[a] = i;
|
14629
14629
|
});
|
14630
14630
|
} catch (i) {
|
@@ -14645,7 +14645,7 @@ class R1 {
|
|
14645
14645
|
};
|
14646
14646
|
updateUser = async (n) => {
|
14647
14647
|
this.globalStore.userStore.updateUser(n).then(() => {
|
14648
|
-
|
14648
|
+
this.setAlert(this.copy.information_updated_success, "success");
|
14649
14649
|
}).catch(() => {
|
14650
14650
|
this.setAlert(this.copy.information_updated_error, "error");
|
14651
14651
|
});
|
@@ -17553,7 +17553,7 @@ const M1 = ({
|
|
17553
17553
|
subtitle: i,
|
17554
17554
|
guid: a,
|
17555
17555
|
sx: o
|
17556
|
-
}) => /* @__PURE__ */ t(
|
17556
|
+
}) => /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { "aria-label": e, onClick: n, children: [
|
17557
17557
|
a && /* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ct, { alt: e, institutionGuid: a || "", size: 32 }) }),
|
17558
17558
|
/* @__PURE__ */ t(
|
17559
17559
|
se,
|
@@ -18054,8 +18054,8 @@ const M1 = ({
|
|
18054
18054
|
const e = tt(), { common: n, settings: i } = x(), { isDesktop: a, isMobile: o, isSmallMobile: r, isTablet: s } = Ee(), { config: c } = Fi(), { updateUser: d } = Ht(), { user: _ } = an(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, S] = g.useState(_.phone), [w, v] = g.useState(_.postal_code), [I, R] = g.useState(_.credit_score), [D, H] = g.useState(null), O = f && !_.email_is_verified, M = y && !_.phone_is_verified;
|
18055
18055
|
g.useEffect(() => {
|
18056
18056
|
if (_.birthday) {
|
18057
|
-
const U = new Date(_.birthday * 1e3),
|
18058
|
-
H(new Date(fe,
|
18057
|
+
const U = new Date(_.birthday * 1e3), X = U.getUTCFullYear(), fe = U.getUTCMonth(), $ = U.getUTCDate();
|
18058
|
+
H(new Date(X, fe, $));
|
18059
18059
|
}
|
18060
18060
|
}, [_]);
|
18061
18061
|
const Q = async () => {
|
@@ -18069,18 +18069,18 @@ const M1 = ({
|
|
18069
18069
|
postal_code: w,
|
18070
18070
|
credit_score: I
|
18071
18071
|
};
|
18072
|
-
|
18073
|
-
}
|
18072
|
+
await d(U);
|
18073
|
+
};
|
18074
18074
|
return /* @__PURE__ */ l(
|
18075
18075
|
L,
|
18076
18076
|
{
|
18077
18077
|
component: "form",
|
18078
18078
|
sx: {
|
18079
18079
|
backgroundColor: "background.paper",
|
18080
|
-
padding:
|
18081
|
-
width: r ? 320 :
|
18080
|
+
padding: o ? "24px 24px 48px 24px" : "24px 0px 48px 0px",
|
18081
|
+
width: r ? 320 : s ? 680 : a ? 990 : 400,
|
18082
18082
|
"& .MuiTextField-root": {
|
18083
|
-
width: r ? 272 :
|
18083
|
+
width: r ? 272 : s ? 328 : a ? 483 : 352
|
18084
18084
|
}
|
18085
18085
|
},
|
18086
18086
|
children: [
|
@@ -18089,8 +18089,8 @@ const M1 = ({
|
|
18089
18089
|
/* @__PURE__ */ l(
|
18090
18090
|
b,
|
18091
18091
|
{
|
18092
|
-
direction:
|
18093
|
-
spacing:
|
18092
|
+
direction: o ? "column" : "row",
|
18093
|
+
spacing: o ? 44 : 24,
|
18094
18094
|
sx: { mb: 44, pt: 32 },
|
18095
18095
|
children: [
|
18096
18096
|
/* @__PURE__ */ t(
|
@@ -18112,8 +18112,8 @@ const M1 = ({
|
|
18112
18112
|
]
|
18113
18113
|
}
|
18114
18114
|
),
|
18115
|
-
/* @__PURE__ */ l(b, { direction:
|
18116
|
-
c.display_email_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb: O ? 20 : 44, mr:
|
18115
|
+
/* @__PURE__ */ l(b, { direction: o ? "column" : "row", children: [
|
18116
|
+
c.display_email_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb: O ? 20 : 44, mr: o ? 0 : 24 }, children: [
|
18117
18117
|
/* @__PURE__ */ t(
|
18118
18118
|
it,
|
18119
18119
|
{
|
@@ -18137,7 +18137,7 @@ const M1 = ({
|
|
18137
18137
|
M && /* @__PURE__ */ t(CC, {})
|
18138
18138
|
] })
|
18139
18139
|
] }),
|
18140
|
-
/* @__PURE__ */ l(b, { direction:
|
18140
|
+
/* @__PURE__ */ l(b, { direction: o ? "column" : "row", spacing: o ? 44 : 24, sx: { mb: 44 }, children: [
|
18141
18141
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
18142
18142
|
fa,
|
18143
18143
|
{
|
@@ -18585,7 +18585,7 @@ const yC = ({
|
|
18585
18585
|
}), Ko = A(
|
18586
18586
|
({ onClick: e, primaryText: n, secondaryText: i, sx: a }) => {
|
18587
18587
|
const o = ge();
|
18588
|
-
return /* @__PURE__ */ t(
|
18588
|
+
return /* @__PURE__ */ t(j, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ l(ue, { alignItems: "flex-start", onClick: e, sx: a, children: [
|
18589
18589
|
/* @__PURE__ */ t(se, { primary: n, secondary: i }),
|
18590
18590
|
/* @__PURE__ */ t(ft, { children: /* @__PURE__ */ t(Dl, {}) })
|
18591
18591
|
] }) });
|
@@ -19475,7 +19475,7 @@ class KC {
|
|
19475
19475
|
loadRepeatingTransactions = async () => {
|
19476
19476
|
try {
|
19477
19477
|
const n = await this.api.getRepeatingTransactions();
|
19478
|
-
|
19478
|
+
Y(() => {
|
19479
19479
|
this.repeatingTransactions = qa(
|
19480
19480
|
this.globalStore.accountStore.visibleAccounts,
|
19481
19481
|
n,
|
@@ -19492,7 +19492,7 @@ class KC {
|
|
19492
19492
|
await this.globalStore.transactionStore.updateTransaction({
|
19493
19493
|
...i,
|
19494
19494
|
repeating_transaction_guid: a.guid
|
19495
|
-
}),
|
19495
|
+
}), Y(() => {
|
19496
19496
|
this.repeatingTransactions = [
|
19497
19497
|
...this.repeatingTransactions,
|
19498
19498
|
...qa(
|
@@ -19508,7 +19508,7 @@ class KC {
|
|
19508
19508
|
};
|
19509
19509
|
deleteRepeatingTransaction = async (n) => {
|
19510
19510
|
try {
|
19511
|
-
await this.api.deleteRepeatingTransaction(n),
|
19511
|
+
await this.api.deleteRepeatingTransaction(n), Y(() => {
|
19512
19512
|
this.repeatingTransactions = [
|
19513
19513
|
...this.repeatingTransactions.filter((i) => i.guid !== n)
|
19514
19514
|
];
|
@@ -19523,7 +19523,7 @@ class KC {
|
|
19523
19523
|
(o) => o.guid === i.guid
|
19524
19524
|
);
|
19525
19525
|
if (a < 0) return;
|
19526
|
-
|
19526
|
+
Y(() => {
|
19527
19527
|
this.repeatingTransactions = [
|
19528
19528
|
...this.repeatingTransactions.slice(0, a),
|
19529
19529
|
...qa(
|
@@ -19573,7 +19573,7 @@ class zC {
|
|
19573
19573
|
loadAppData = async () => {
|
19574
19574
|
try {
|
19575
19575
|
const n = await this.api.getAppData();
|
19576
|
-
|
19576
|
+
Y(() => {
|
19577
19577
|
this.appData = n, this.bannerApi = new gr(n.address?.bullseye || "/");
|
19578
19578
|
});
|
19579
19579
|
} catch (n) {
|
@@ -19583,7 +19583,7 @@ class zC {
|
|
19583
19583
|
loadBanner = async () => {
|
19584
19584
|
try {
|
19585
19585
|
const n = this.user?.guid ?? null, i = n ? await this.bannerApi.getBanner(n) : {};
|
19586
|
-
|
19586
|
+
Y(() => {
|
19587
19587
|
this.banner = i;
|
19588
19588
|
});
|
19589
19589
|
} catch (n) {
|
@@ -19671,7 +19671,7 @@ class XC {
|
|
19671
19671
|
loadUserFeatures = async () => {
|
19672
19672
|
try {
|
19673
19673
|
const n = await this.api.getUserFeatures();
|
19674
|
-
|
19674
|
+
Y(() => {
|
19675
19675
|
this.userFeatures = n;
|
19676
19676
|
});
|
19677
19677
|
} catch (n) {
|
@@ -19750,7 +19750,7 @@ const Za = ({
|
|
19750
19750
|
primaryText: a,
|
19751
19751
|
secondaryText: o
|
19752
19752
|
}) => /* @__PURE__ */ l(Z, { children: [
|
19753
|
-
/* @__PURE__ */ t(
|
19753
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ue, { onClick: i, children: [
|
19754
19754
|
/* @__PURE__ */ t(se, { primary: a, secondary: o }),
|
19755
19755
|
e
|
19756
19756
|
] }) }),
|
@@ -19761,7 +19761,7 @@ const Za = ({
|
|
19761
19761
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
19762
19762
|
);
|
19763
19763
|
}, ZC = () => {
|
19764
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = $t(), { mergeAccounts: _, updateAccount: u } = ve(), { accounts: h } = x(), m = qC(), { onEvent: C } =
|
19764
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = $t(), { mergeAccounts: _, updateAccount: u } = ve(), { accounts: h } = x(), m = qC(), { onEvent: C } = z(), { modifyTransactionByAccountGuid: f } = Te(), E = async (S) => {
|
19765
19765
|
await u({
|
19766
19766
|
...d,
|
19767
19767
|
...S
|
@@ -20049,7 +20049,7 @@ const Za = ({
|
|
20049
20049
|
};
|
20050
20050
|
return /* @__PURE__ */ l(Z, { children: [
|
20051
20051
|
/* @__PURE__ */ t(Rt, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: o.connection_status }) }),
|
20052
|
-
/* @__PURE__ */ t(
|
20052
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
20053
20053
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Zt, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
20054
20054
|
/* @__PURE__ */ t(se, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
20055
20055
|
] }) : /* @__PURE__ */ l(ue, { onClick: () => n(!0), children: [
|
@@ -20069,7 +20069,7 @@ const Za = ({
|
|
20069
20069
|
] }) }),
|
20070
20070
|
/* @__PURE__ */ t(k, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
20071
20071
|
!a.is_manual && a.institution_url && /* @__PURE__ */ l(Z, { children: [
|
20072
|
-
/* @__PURE__ */ t(
|
20072
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(ue, { component: "a", href: a.institution_url, target: "_blank", children: [
|
20073
20073
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
20074
20074
|
Zt,
|
20075
20075
|
{
|
@@ -20202,7 +20202,7 @@ const Za = ({
|
|
20202
20202
|
}
|
20203
20203
|
);
|
20204
20204
|
}, nf = A(tf), af = () => {
|
20205
|
-
const e = window.app?.config, { onEvent: n } =
|
20205
|
+
const e = window.app?.config, { onEvent: n } = z(), { selectedAccount: i } = $t(), { accounts: a } = x(), o = Vg(i, a), r = i.member_is_managed_by_user || !i.member_is_managed_by_user && e.enable_renaming_home_accounts, [s, c] = g.useState(!1), [d, _] = g.useState(o[0]), u = o.filter(
|
20206
20206
|
(h) => r || i[h.name] || i[h.name] === 0
|
20207
20207
|
);
|
20208
20208
|
return /* @__PURE__ */ l(Z, { children: [
|
@@ -20216,7 +20216,7 @@ const Za = ({
|
|
20216
20216
|
}
|
20217
20217
|
);
|
20218
20218
|
return /* @__PURE__ */ t(g.Fragment, { children: r ? /* @__PURE__ */ l(Z, { children: [
|
20219
|
-
/* @__PURE__ */ t(
|
20219
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ l(
|
20220
20220
|
ue,
|
20221
20221
|
{
|
20222
20222
|
onClick: () => {
|
@@ -20230,7 +20230,7 @@ const Za = ({
|
|
20230
20230
|
) }),
|
20231
20231
|
/* @__PURE__ */ t(k, { sx: { ml: C ? 0 : 24 } })
|
20232
20232
|
] }) : m && /* @__PURE__ */ l(Z, { children: [
|
20233
|
-
/* @__PURE__ */ t(
|
20233
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 24 }, children: f }),
|
20234
20234
|
/* @__PURE__ */ t(k, { sx: { ml: C ? 0 : 24 } })
|
20235
20235
|
] }) }, h.name);
|
20236
20236
|
}),
|
@@ -20244,7 +20244,7 @@ const Za = ({
|
|
20244
20244
|
)
|
20245
20245
|
] });
|
20246
20246
|
}, of = A(af), rf = () => {
|
20247
|
-
const { onEvent: e } =
|
20247
|
+
const { onEvent: e } = z();
|
20248
20248
|
return g.useEffect(() => e(W.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(ne, { children: [
|
20249
20249
|
/* @__PURE__ */ t(of, {}),
|
20250
20250
|
/* @__PURE__ */ t(ef, {}),
|
@@ -20307,7 +20307,7 @@ const Za = ({
|
|
20307
20307
|
)
|
20308
20308
|
] });
|
20309
20309
|
}, lf = A(cf), df = () => {
|
20310
|
-
const [e, n] = g.useState(""), { onEvent: i } =
|
20310
|
+
const [e, n] = g.useState(""), { onEvent: i } = z(), { selectedAccount: a } = $t(), { accounts: o } = x(), { setFilter: r, sortedTransactions: s } = Te(), c = g.useMemo(() => s.find((d) => d.guid === e), [e]);
|
20311
20311
|
return g.useEffect(() => {
|
20312
20312
|
r({
|
20313
20313
|
dateRange: { start: Dd(Rd(), 90), end: Od() },
|
@@ -20364,7 +20364,7 @@ const Za = ({
|
|
20364
20364
|
/* @__PURE__ */ t(si, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(sf, {}) })
|
20365
20365
|
] });
|
20366
20366
|
}, nl = A(_f), hf = () => {
|
20367
|
-
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = _e(), { setSelectedAccount: o, setSelectedMember: r } = $t(), { members: s } = ve(), { onEvent: c } =
|
20367
|
+
const [e, n] = g.useState(""), { accounts: i } = x(), { selectedAccounts: a } = _e(), { setSelectedAccount: o, setSelectedMember: r } = $t(), { members: s } = ve(), { onEvent: c } = z(), d = [...new Set(a.map((y) => y.account_type))], _ = a.find((y) => e === y.guid), u = g.useMemo(
|
20368
20368
|
() => a.filter((y) => y.is_hidden),
|
20369
20369
|
[a]
|
20370
20370
|
), h = g.useMemo(
|
@@ -20507,7 +20507,7 @@ const Za = ({
|
|
20507
20507
|
)
|
20508
20508
|
] });
|
20509
20509
|
}, gf = A(hf), mf = ({ onBackClick: e, sx: n = {} }) => {
|
20510
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Fi(), { accounts: c, refreshMembers: d } = ve(), { accounts: _ } = x(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = _e(), { isDesktop: f } = Ee(), { onEvent: E } =
|
20510
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), { config: s } = Fi(), { accounts: c, refreshMembers: d } = ve(), { accounts: _ } = x(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = _e(), { isDesktop: f } = Ee(), { onEvent: E } = z();
|
20511
20511
|
g.useEffect(() => {
|
20512
20512
|
m(c);
|
20513
20513
|
}, [c]);
|
@@ -20567,7 +20567,7 @@ const Za = ({
|
|
20567
20567
|
sx: n,
|
20568
20568
|
title: a.mini_title,
|
20569
20569
|
children: r ? /* @__PURE__ */ l(ne, { children: [
|
20570
|
-
s.length === 0 && /* @__PURE__ */ t(
|
20570
|
+
s.length === 0 && /* @__PURE__ */ t(j, { sx: { justifyContent: "center" }, children: a.no_accounts }),
|
20571
20571
|
s.map((d, _) => {
|
20572
20572
|
const u = s.indexOf(d) === s.length - 1;
|
20573
20573
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -21158,7 +21158,7 @@ class Sf {
|
|
21158
21158
|
addAccount = async (n) => {
|
21159
21159
|
try {
|
21160
21160
|
const i = await this.api.createAccount(n);
|
21161
|
-
|
21161
|
+
Y(() => {
|
21162
21162
|
this.accounts = [...this.accounts, i];
|
21163
21163
|
});
|
21164
21164
|
} catch (i) {
|
@@ -21189,7 +21189,7 @@ class Sf {
|
|
21189
21189
|
await this.loadMembers();
|
21190
21190
|
try {
|
21191
21191
|
const n = await this.api.getAccounts();
|
21192
|
-
|
21192
|
+
Y(() => {
|
21193
21193
|
this.accounts = this.sortAccounts(this.augmentAccounts(n));
|
21194
21194
|
});
|
21195
21195
|
} catch (n) {
|
@@ -21199,7 +21199,7 @@ class Sf {
|
|
21199
21199
|
loadInstitutions = async () => {
|
21200
21200
|
try {
|
21201
21201
|
const n = await this.api.getInstitutions();
|
21202
|
-
|
21202
|
+
Y(() => {
|
21203
21203
|
this.institutions = n;
|
21204
21204
|
});
|
21205
21205
|
} catch (n) {
|
@@ -21209,7 +21209,7 @@ class Sf {
|
|
21209
21209
|
loadMembers = async () => {
|
21210
21210
|
try {
|
21211
21211
|
const n = await this.api.getMembers();
|
21212
|
-
|
21212
|
+
Y(() => {
|
21213
21213
|
this.members = n;
|
21214
21214
|
});
|
21215
21215
|
} catch (n) {
|
@@ -21219,7 +21219,7 @@ class Sf {
|
|
21219
21219
|
mergeAccounts = async (n) => {
|
21220
21220
|
try {
|
21221
21221
|
const i = await this.api.mergeAccounts(n), a = i[Object.keys(i)[0]];
|
21222
|
-
|
21222
|
+
Y(() => {
|
21223
21223
|
const o = this.accounts.findIndex((s) => s.guid === n[1]);
|
21224
21224
|
this.accounts.splice(o, 1);
|
21225
21225
|
const r = this.accounts.findIndex((s) => s.guid === n[0]);
|
@@ -21242,7 +21242,7 @@ class Sf {
|
|
21242
21242
|
};
|
21243
21243
|
removeAccount = async (n) => {
|
21244
21244
|
try {
|
21245
|
-
await this.api.deleteAccount(n),
|
21245
|
+
await this.api.deleteAccount(n), Y(() => {
|
21246
21246
|
const i = this.accounts.findIndex((a) => a.guid === n);
|
21247
21247
|
this.accounts.splice(i, 1);
|
21248
21248
|
});
|
@@ -21253,7 +21253,7 @@ class Sf {
|
|
21253
21253
|
updateAccount = async (n) => {
|
21254
21254
|
try {
|
21255
21255
|
const i = await this.api.updateAccount(n);
|
21256
|
-
|
21256
|
+
Y(() => {
|
21257
21257
|
const a = this.accounts.findIndex(
|
21258
21258
|
(o) => o.guid === i.guid
|
21259
21259
|
);
|
@@ -21348,7 +21348,7 @@ const Tf = () => {
|
|
21348
21348
|
}
|
21349
21349
|
);
|
21350
21350
|
}, If = A(xf), vf = () => {
|
21351
|
-
const { onEvent: e } =
|
21351
|
+
const { onEvent: e } = z(), n = ge(), {
|
21352
21352
|
surveyId: i,
|
21353
21353
|
question: a,
|
21354
21354
|
isLastQuestion: o,
|
@@ -21693,7 +21693,7 @@ const Hf = ({
|
|
21693
21693
|
shouldShowZeroState: o,
|
21694
21694
|
unavailableWidth: r = 24
|
21695
21695
|
}) => {
|
21696
|
-
const { onEvent: s } =
|
21696
|
+
const { onEvent: s } = z(), { setSelectedBudget: c } = ut(), { isLoadingCategoryTotals: d } = Ke(), { isInitialized: _ } = _e(), { accounts: u } = x(), { availableWidth: h } = Un(), { isMobile: m } = Ee(), [C, f] = g.useState(!1), E = g.useMemo(() => h - r, [h]), y = (w) => {
|
21697
21697
|
c(w), s(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
21698
21698
|
budget_category: w.category.name,
|
21699
21699
|
click_type: "bubble"
|
@@ -21783,7 +21783,7 @@ const Hf = ({
|
|
21783
21783
|
return `${r} - ${s}`;
|
21784
21784
|
}, [n, i]);
|
21785
21785
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21786
|
-
/* @__PURE__ */ t(
|
21786
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { children: [
|
21787
21787
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(kt, { categoryGuid: e.guid, variant: "filled" }) }),
|
21788
21788
|
/* @__PURE__ */ t(se, { primary: e.name, secondary: a })
|
21789
21789
|
] }) }),
|
@@ -21846,7 +21846,7 @@ const Hf = ({
|
|
21846
21846
|
`${e.totalAmount === 0 ? "" : e.totalAmount}`
|
21847
21847
|
);
|
21848
21848
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21849
|
-
/* @__PURE__ */ t(
|
21849
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { onClick: () => r(!0), children: [
|
21850
21850
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(kt, { categoryGuid: e.guid }) }),
|
21851
21851
|
/* @__PURE__ */ t(
|
21852
21852
|
se,
|
@@ -21921,7 +21921,7 @@ const Hf = ({
|
|
21921
21921
|
percentage: o,
|
21922
21922
|
transaction_total: r
|
21923
21923
|
} = e, { setSelectedSubBudget: s } = ut();
|
21924
|
-
return /* @__PURE__ */ t(
|
21924
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { onClick: () => s(e), children: [
|
21925
21925
|
/* @__PURE__ */ t(Pe, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(lc, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(kt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
21926
21926
|
/* @__PURE__ */ t(
|
21927
21927
|
se,
|
@@ -21948,7 +21948,7 @@ const Hf = ({
|
|
21948
21948
|
C && Number(h) > 0 && (await s(C, Number(h), n.guid), u(!1), d(!1), f(void 0));
|
21949
21949
|
};
|
21950
21950
|
return /* @__PURE__ */ l(L, { children: [
|
21951
|
-
/* @__PURE__ */ t(
|
21951
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ue, { onClick: E, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
21952
21952
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
21953
21953
|
/* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
21954
21954
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
|
@@ -22219,7 +22219,7 @@ const Hf = ({
|
|
22219
22219
|
subBudgets: d,
|
22220
22220
|
transaction_total: _
|
22221
22221
|
} = e;
|
22222
|
-
return /* @__PURE__ */ t(
|
22222
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ue, { onClick: () => n?.(e), children: [
|
22223
22223
|
/* @__PURE__ */ t(Pe, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(lc, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(kt, { categoryGuid: r, variant: "basic" }) }) }),
|
22224
22224
|
/* @__PURE__ */ t(
|
22225
22225
|
se,
|
@@ -22239,7 +22239,7 @@ const Hf = ({
|
|
22239
22239
|
)
|
22240
22240
|
] }) });
|
22241
22241
|
}, t0 = A(() => {
|
22242
|
-
const { onEvent: e } =
|
22242
|
+
const { onEvent: e } = z(), { budgets: n } = x(), { detailedBudgets: i, setSelectedBudget: a } = ut(), o = (r) => {
|
22243
22243
|
a(r), e(W.BUDGETS_CLICK_BUDGET_CATEGORY, {
|
22244
22244
|
budget_category: r.category.name,
|
22245
22245
|
click_type: "list"
|
@@ -22253,7 +22253,7 @@ const Hf = ({
|
|
22253
22253
|
] }, r.guid)) }) })
|
22254
22254
|
] });
|
22255
22255
|
}), n0 = A(() => {
|
22256
|
-
const e = ge(), { onEvent: n } =
|
22256
|
+
const e = ge(), { onEvent: n } = z(), { visibleAccounts: i } = ve(), { budgets: a, common: o, recurring: r } = x(), { incomeCategories: s, spendCategories: c } = Ke(), { detailedBudgets: d, totalBudgeted: _ } = ut(), { projectedIncome: u } = nt(), { setFilter: h } = Te(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
|
22257
22257
|
const v = c.reduce((H, O) => H + O.totalAmount, 0);
|
22258
22258
|
let I = v / _;
|
22259
22259
|
I > 1 && (I = 1);
|
@@ -22336,7 +22336,7 @@ const Hf = ({
|
|
22336
22336
|
)
|
22337
22337
|
] });
|
22338
22338
|
}), ms = 480, b4 = A(({ onBackClick: e, sx: n }) => {
|
22339
|
-
const i = ge(), { onEvent: a } =
|
22339
|
+
const i = ge(), { onEvent: a } = z(), { visibleAccounts: o } = ve(), { budgets: r, common: s } = x(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = _e(), {
|
22340
22340
|
alert: m,
|
22341
22341
|
dateRange: C,
|
22342
22342
|
isDataLoaded: f,
|
@@ -22355,9 +22355,9 @@ const Hf = ({
|
|
22355
22355
|
}, [d, _, C]);
|
22356
22356
|
const Q = (ce) => {
|
22357
22357
|
y({ start: ce[0] || /* @__PURE__ */ new Date(), end: ce[1] || /* @__PURE__ */ new Date() });
|
22358
|
-
}, K = () => {
|
22359
|
-
a(W.BUDGETS_CLICK_FILTER);
|
22360
22358
|
}, U = () => {
|
22359
|
+
a(W.BUDGETS_CLICK_FILTER);
|
22360
|
+
}, X = () => {
|
22361
22361
|
M(!0), a(W.BUDGETS_CLICK_ADD);
|
22362
22362
|
}, fe = () => {
|
22363
22363
|
M(!1);
|
@@ -22370,11 +22370,11 @@ const Hf = ({
|
|
22370
22370
|
{
|
22371
22371
|
iconName: "add",
|
22372
22372
|
label: r.add_title,
|
22373
|
-
onClick:
|
22373
|
+
onClick: X
|
22374
22374
|
}
|
22375
22375
|
],
|
22376
22376
|
calendarActions: { onRangeChanged: Q, shouldDisableNext: $ },
|
22377
|
-
onAccountsFilterClick:
|
22377
|
+
onAccountsFilterClick: U,
|
22378
22378
|
onBackClick: e,
|
22379
22379
|
sx: n,
|
22380
22380
|
title: r.budgets_title,
|
@@ -22391,7 +22391,7 @@ const Hf = ({
|
|
22391
22391
|
/* @__PURE__ */ t(b, { height: R || D ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ t(
|
22392
22392
|
il,
|
22393
22393
|
{
|
22394
|
-
createBudgetOnClick:
|
22394
|
+
createBudgetOnClick: X,
|
22395
22395
|
height: R || D ? 800 : 450,
|
22396
22396
|
isDraggable: !0,
|
22397
22397
|
shouldShowZeroState: v.length === 0,
|
@@ -22515,7 +22515,6 @@ const Hf = ({
|
|
22515
22515
|
startIcon: /* @__PURE__ */ t(P, { name: "add", size: 24 }),
|
22516
22516
|
sx: {
|
22517
22517
|
p: 12,
|
22518
|
-
pr: 0,
|
22519
22518
|
whiteSpace: "nowrap",
|
22520
22519
|
minWidth: "max-content"
|
22521
22520
|
},
|
@@ -22789,7 +22788,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
22789
22788
|
),
|
22790
22789
|
/* @__PURE__ */ t(ne, { sx: { px: 12 }, children: e.investmentsData.map((E) => /* @__PURE__ */ l(g.Fragment, { children: [
|
22791
22790
|
/* @__PURE__ */ t(
|
22792
|
-
|
22791
|
+
j,
|
22793
22792
|
{
|
22794
22793
|
disableGutters: !0,
|
22795
22794
|
disablePadding: !0,
|
@@ -22834,7 +22833,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
22834
22833
|
/* @__PURE__ */ t(k, {}),
|
22835
22834
|
E.holdings && E.holdings.length > 0 && /* @__PURE__ */ t(Pi, { in: i === E.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ne, { children: [
|
22836
22835
|
E?.holdings?.map((y) => /* @__PURE__ */ t(
|
22837
|
-
|
22836
|
+
j,
|
22838
22837
|
{
|
22839
22838
|
sx: {
|
22840
22839
|
pl: 24,
|
@@ -23023,7 +23022,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23023
23022
|
"& .MuiListItem-divider": { borderColor: "border.light" },
|
23024
23023
|
"& .MuiListItem-root": { minHeight: 44, px: 12 }
|
23025
23024
|
},
|
23026
|
-
children: s.map(({ value: d, formattedKey: _ }) => /* @__PURE__ */ t(
|
23025
|
+
children: s.map(({ value: d, formattedKey: _ }) => /* @__PURE__ */ t(j, { divider: !0, secondaryAction: /* @__PURE__ */ t(p, { children: d }), children: /* @__PURE__ */ t(
|
23027
23026
|
se,
|
23028
23027
|
{
|
23029
23028
|
primary: _,
|
@@ -23429,7 +23428,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23429
23428
|
}
|
23430
23429
|
);
|
23431
23430
|
}, A0 = () => {
|
23432
|
-
const { isMobile: e } = Ee(), { onEvent: n } =
|
23431
|
+
const { isMobile: e } = Ee(), { onEvent: n } = z(), [i, a] = Et({}), [o, r] = Et(!1), { holdings: s, updateHoldings: c, holdingsLoaded: d } = wi(), [_, u] = g.useState(!1), [h, m] = Et({
|
23433
23432
|
accounts: [],
|
23434
23433
|
holdings: []
|
23435
23434
|
}), { accounts: C, investments: f } = x(), y = ge().palette.mode === "dark", S = y ? "#0AC295" : "#09A57F", w = y ? "grey.300" : "grey.700", v = ($, ce = "lesserThan") => ce === "greaterThan" ? $ >= 0 ? S : w : $ <= 0 ? w : S, I = ({ data: $ }) => {
|
@@ -23605,7 +23604,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23605
23604
|
...oe,
|
23606
23605
|
[$]: Re
|
23607
23606
|
}));
|
23608
|
-
}, { holdings: H } = wi(), { visibleInvestmentAccounts: O } = ve(), M = O.reduce(($, ce) => $ + (ce.balance || 0), 0), Q = O.map(({ guid: $ }) => $),
|
23607
|
+
}, { holdings: H } = wi(), { visibleInvestmentAccounts: O } = ve(), M = O.reduce(($, ce) => $ + (ce.balance || 0), 0), Q = O.map(({ guid: $ }) => $), X = H.filter(
|
23609
23608
|
({ account_guid: $ }) => Q.includes($)
|
23610
23609
|
).reduce(($, ce) => {
|
23611
23610
|
const Re = ce.market_value ? ce.market_value - (ce.cost_basis || 0) : 0;
|
@@ -23626,17 +23625,17 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23626
23625
|
/* @__PURE__ */ t(
|
23627
23626
|
gt,
|
23628
23627
|
{
|
23629
|
-
name:
|
23628
|
+
name: X >= 0 ? "trending_up" : "trending_down",
|
23630
23629
|
size: 20,
|
23631
|
-
sx: { color: v(
|
23630
|
+
sx: { color: v(X, "greaterThan") }
|
23632
23631
|
}
|
23633
23632
|
),
|
23634
23633
|
/* @__PURE__ */ t(
|
23635
23634
|
p,
|
23636
23635
|
{
|
23637
|
-
sx: { color: v(
|
23636
|
+
sx: { color: v(X, "greaterThan"), fontWeight: 700 },
|
23638
23637
|
variant: "Small",
|
23639
|
-
children:
|
23638
|
+
children: X.toLocaleString("en-US", {
|
23640
23639
|
currency: "USD",
|
23641
23640
|
maximumFractionDigits: 2,
|
23642
23641
|
minimumFractionDigits: 2,
|
@@ -23985,7 +23984,7 @@ const c0 = ({ widgets: e, isLoading: n }) => {
|
|
23985
23984
|
)
|
23986
23985
|
] });
|
23987
23986
|
}, x0 = A(A0), Ja = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), E4 = A(({ onBackClick: e, sx: n }) => {
|
23988
|
-
const { onEvent: i } =
|
23987
|
+
const { onEvent: i } = z(), { isMobile: a } = Ee(), { visibleInvestmentAccounts: o } = ve(), { investments: r } = x(), { isCopyLoaded: s, isInitialized: c } = _e(), [d, _] = g.useState(0), { loadHoldings: u } = wi();
|
23989
23988
|
g.useEffect(() => {
|
23990
23989
|
c && u().finally();
|
23991
23990
|
}, [c]);
|
@@ -24053,7 +24052,7 @@ class I0 {
|
|
24053
24052
|
};
|
24054
24053
|
loadCopy = async () => {
|
24055
24054
|
const n = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
|
24056
|
-
|
24055
|
+
Y(() => {
|
24057
24056
|
this.copyObject = n[this.translationKey];
|
24058
24057
|
});
|
24059
24058
|
};
|
@@ -24254,7 +24253,7 @@ class R0 {
|
|
24254
24253
|
initialize = async (n, i, a) => {
|
24255
24254
|
await this.copyStore.initialize(n, i), await this.insightsMicroWidgetStore.initialize(n, i, a);
|
24256
24255
|
const o = await au(n, i, "1.0.0", "Micro Insights Carousel");
|
24257
|
-
|
24256
|
+
Y(() => {
|
24258
24257
|
this.session = o, this.isInitialized = !0;
|
24259
24258
|
});
|
24260
24259
|
};
|
@@ -25471,7 +25470,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25471
25470
|
y($.targetTouches[0].clientX);
|
25472
25471
|
}, Q = ($) => {
|
25473
25472
|
y(null), w($.targetTouches[0].clientX);
|
25474
|
-
},
|
25473
|
+
}, U = {
|
25475
25474
|
clientColorScheme: n,
|
25476
25475
|
showCTAColocatedWithText: i,
|
25477
25476
|
heightOverrides: a,
|
@@ -25479,7 +25478,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25479
25478
|
showIcon: c,
|
25480
25479
|
variant: _,
|
25481
25480
|
widthOverrides: u
|
25482
|
-
},
|
25481
|
+
}, X = m.current && m.current.offsetWidth ? Math.round(C / m.current.offsetWidth) : 0, fe = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
|
25483
25482
|
return /* @__PURE__ */ l(
|
25484
25483
|
"div",
|
25485
25484
|
{
|
@@ -25510,9 +25509,9 @@ const Vi = g.createContext(null), O0 = ({
|
|
25510
25509
|
ariaLabel: `${me}: ${Je}, ${Le}`,
|
25511
25510
|
beat: $,
|
25512
25511
|
index: ce,
|
25513
|
-
isActiveCard: ce ===
|
25512
|
+
isActiveCard: ce === X,
|
25514
25513
|
onCardClick: o,
|
25515
|
-
...
|
25514
|
+
...U
|
25516
25515
|
},
|
25517
25516
|
`${$.guid} ${ce}`
|
25518
25517
|
);
|
@@ -25520,9 +25519,9 @@ const Vi = g.createContext(null), O0 = ({
|
|
25520
25519
|
/* @__PURE__ */ t(
|
25521
25520
|
tb,
|
25522
25521
|
{
|
25523
|
-
isActiveCard:
|
25522
|
+
isActiveCard: X === e.length,
|
25524
25523
|
onCardClick: o,
|
25525
|
-
...
|
25524
|
+
...U
|
25526
25525
|
}
|
25527
25526
|
)
|
25528
25527
|
]
|
@@ -25532,7 +25531,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25532
25531
|
V0,
|
25533
25532
|
{
|
25534
25533
|
clientColorScheme: n,
|
25535
|
-
currentBeatIndex:
|
25534
|
+
currentBeatIndex: X,
|
25536
25535
|
numBeats: e.length + 1,
|
25537
25536
|
onNextClick: R,
|
25538
25537
|
onPreviousClick: D,
|
@@ -25794,7 +25793,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25794
25793
|
variant: v,
|
25795
25794
|
widthOverrides: I
|
25796
25795
|
}) => {
|
25797
|
-
const R = tt(), [D, H] = Et("STANDARD"), [O, M] = Et(!1), Q = Eu([d], fn),
|
25796
|
+
const R = tt(), [D, H] = Et("STANDARD"), [O, M] = Et(!1), Q = Eu([d], fn), U = Su([_], fn);
|
25798
25797
|
g.useEffect(() => {
|
25799
25798
|
fn.isInitialized || fn.initialize(o, y, s);
|
25800
25799
|
}, [o, y, s, fn.isInitialized]), g.useEffect(() => {
|
@@ -25803,7 +25802,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25803
25802
|
}, [window.innerHeight]), g.useEffect(() => {
|
25804
25803
|
M(!e && fn.isInitialized);
|
25805
25804
|
}, [e, fn.isInitialized]);
|
25806
|
-
const
|
25805
|
+
const X = {
|
25807
25806
|
showCTAColocatedWithText: a,
|
25808
25807
|
heightOverrides: r,
|
25809
25808
|
onCardClick: c,
|
@@ -25815,13 +25814,13 @@ const Vi = g.createContext(null), O0 = ({
|
|
25815
25814
|
}, fe = {
|
25816
25815
|
carouselSize: D,
|
25817
25816
|
variant: v,
|
25818
|
-
...
|
25817
|
+
...X
|
25819
25818
|
};
|
25820
25819
|
return (
|
25821
25820
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
25822
25821
|
/* @__PURE__ */ l(zl, { theme: R, children: [
|
25823
25822
|
/* @__PURE__ */ t(nu, {}),
|
25824
|
-
/* @__PURE__ */ t(O0, { onEvent: Q, onPageview:
|
25823
|
+
/* @__PURE__ */ t(O0, { onEvent: Q, onPageview: U, store: fn, children: /* @__PURE__ */ l(Z0, { heightOverrides: r, widthOverrides: I, children: [
|
25825
25824
|
(e || !fn.isInitialized) && /* @__PURE__ */ t(Q0, {}),
|
25826
25825
|
O && C && /* @__PURE__ */ t(
|
25827
25826
|
q0,
|
@@ -25839,7 +25838,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25839
25838
|
clientColorScheme: i,
|
25840
25839
|
showCarouselControls: m,
|
25841
25840
|
variant: h ? v : void 0,
|
25842
|
-
...
|
25841
|
+
...X
|
25843
25842
|
}
|
25844
25843
|
),
|
25845
25844
|
O && !n.length && w && /* @__PURE__ */ t(hl, { clientColorScheme: i, ...fe }),
|
@@ -25891,7 +25890,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25891
25890
|
}
|
25892
25891
|
);
|
25893
25892
|
}, tb = A(eb), nb = A(({ repeatingTransaction: e }) => {
|
25894
|
-
const { recurring: n } = x(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } =
|
25893
|
+
const { recurring: n } = x(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), [o, r] = g.useState(!1), s = e.repeating_transaction_type === ln.Income, c = [
|
25895
25894
|
{ id: Ne.EveryWeek, label: n.frequency_every_week },
|
25896
25895
|
{ id: Ne.EveryOtherWeek, label: n.frequency_every_other_week },
|
25897
25896
|
{ id: Ne.EveryMonth, label: n.frequency_every_month },
|
@@ -25930,7 +25929,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25930
25929
|
onClose: () => r(!1),
|
25931
25930
|
title: n.frequency_title,
|
25932
25931
|
children: /* @__PURE__ */ t(ne, { children: c.map((h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
25933
|
-
/* @__PURE__ */ t(
|
25932
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ue, { onClick: () => d(h.id), children: [
|
25934
25933
|
/* @__PURE__ */ t(
|
25935
25934
|
se,
|
25936
25935
|
{
|
@@ -25946,7 +25945,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25946
25945
|
)
|
25947
25946
|
] });
|
25948
25947
|
}), ib = A(({ repeatingTransaction: e }) => {
|
25949
|
-
const { recurring: n } = x(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } =
|
25948
|
+
const { recurring: n } = x(), { updateRepeatingTransaction: i } = Pt(), { onEvent: a } = z(), o = Mi(e.predicted_occurs_on), [r, s] = g.useState(!1), [c, d] = g.useState(o), _ = e.repeating_transaction_type === ln.Income, u = () => {
|
25950
25949
|
d(o), s(!0), a(
|
25951
25950
|
_ ? "recurring_transactions_widget_income_details_click_next_payment_due" : "recurring_transactions_widget_expense_details_click_next_payment_due",
|
25952
25951
|
{
|
@@ -25990,7 +25989,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
25990
25989
|
] });
|
25991
25990
|
}), ml = A(
|
25992
25991
|
({ onDeleted: e, recurringTransaction: n }) => {
|
25993
|
-
const { recurring: i } = x(), { selectedAccountGuids: a } = _e(), { onEvent: o } =
|
25992
|
+
const { recurring: i } = x(), { selectedAccountGuids: a } = _e(), { onEvent: o } = z(), { deleteRepeatingTransaction: r } = Pt(), { setFilter: s } = Te(), { amount: c, description: d, merchant_guid: _ } = n, [u, h] = g.useState(!1), [m, C] = g.useState("");
|
25994
25993
|
g.useEffect(() => {
|
25995
25994
|
s({
|
25996
25995
|
accounts: a,
|
@@ -26104,7 +26103,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26104
26103
|
Mi(n.predicted_occurs_on),
|
26105
26104
|
n.recurrence_type
|
26106
26105
|
);
|
26107
|
-
return /* @__PURE__ */ l(
|
26106
|
+
return /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
|
26108
26107
|
/* @__PURE__ */ l(ue, { onClick: () => {
|
26109
26108
|
e(n), o(!0);
|
26110
26109
|
}, children: [
|
@@ -26329,7 +26328,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26329
26328
|
h(""), _(!1);
|
26330
26329
|
};
|
26331
26330
|
return /* @__PURE__ */ l(L, { children: [
|
26332
|
-
/* @__PURE__ */ t(
|
26331
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(ue, { onClick: S, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
26333
26332
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
26334
26333
|
/* @__PURE__ */ t(P, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
26335
26334
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
|
@@ -26383,7 +26382,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26383
26382
|
] });
|
26384
26383
|
}
|
26385
26384
|
), rb = A(() => {
|
26386
|
-
const { recurring: e } = x(), { repeatingTransactions: n } = Pt(), { onEvent: i } =
|
26385
|
+
const { recurring: e } = x(), { repeatingTransactions: n } = Pt(), { onEvent: i } = z(), a = (r) => {
|
26387
26386
|
i(W.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
26388
26387
|
repeating_transaction_guid: r.guid
|
26389
26388
|
});
|
@@ -26398,7 +26397,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26398
26397
|
/* @__PURE__ */ t(Cl, { label: e.add_expense, onAddRecurringTransaction: o })
|
26399
26398
|
] });
|
26400
26399
|
}), sb = A(() => {
|
26401
|
-
const { recurring: e } = x(), { repeatingTransactions: n } = Pt(), { onEvent: i } =
|
26400
|
+
const { recurring: e } = x(), { repeatingTransactions: n } = Pt(), { onEvent: i } = z(), a = (r) => {
|
26402
26401
|
i(W.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
26403
26402
|
repeating_transaction_guid: r.guid
|
26404
26403
|
});
|
@@ -26420,7 +26419,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26420
26419
|
)
|
26421
26420
|
] });
|
26422
26421
|
}), cb = A(() => {
|
26423
|
-
const [e, n] = g.useState(0), { onEvent: i } =
|
26422
|
+
const [e, n] = g.useState(0), { onEvent: i } = z(), { recurring: a } = x();
|
26424
26423
|
return /* @__PURE__ */ l(L, { bgcolor: "background.default", height: "100%", children: [
|
26425
26424
|
/* @__PURE__ */ l(
|
26426
26425
|
Lt,
|
@@ -26530,7 +26529,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26530
26529
|
}
|
26531
26530
|
);
|
26532
26531
|
}), Ss = 58, fl = A(() => {
|
26533
|
-
const e = ge(), { onEvent: n } =
|
26532
|
+
const e = ge(), { onEvent: n } = z(), { selectedDay: i } = Pt(), [a, o] = g.useState(
|
26534
26533
|
aa(/* @__PURE__ */ new Date()) * _n + Ss
|
26535
26534
|
), r = (c) => {
|
26536
26535
|
o(aa(c) * _n + Ss), n(W.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
@@ -26631,7 +26630,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26631
26630
|
[e]
|
26632
26631
|
), _ = e.type === Xt.Income, u = e.status === at.Paid, h = e.status === at.Missed, m = e.status === at.Upcoming;
|
26633
26632
|
let C = o.paid?.toLowerCase();
|
26634
|
-
return h ? C = o.missed?.toLowerCase() : m && (C = a ? go(o, e.expectedDate, e.frequency) : go(o, null, e.frequency)), /* @__PURE__ */ l(
|
26633
|
+
return h ? C = o.missed?.toLowerCase() : m && (C = a ? go(o, e.expectedDate, e.frequency) : go(o, null, e.frequency)), /* @__PURE__ */ l(j, { disableGutters: !0, disablePadding: !0, children: [
|
26635
26634
|
/* @__PURE__ */ l(ue, { onClick: () => {
|
26636
26635
|
c(!0), i(e);
|
26637
26636
|
}, children: [
|
@@ -26743,7 +26742,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26743
26742
|
),
|
26744
26743
|
/* @__PURE__ */ t(k, { sx: { mx: 24 } })
|
26745
26744
|
] }, `recurrence-${_}`)) : c.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
26746
|
-
/* @__PURE__ */ t(
|
26745
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
26747
26746
|
ne,
|
26748
26747
|
{
|
26749
26748
|
subheader: /* @__PURE__ */ t(Rt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: re(d.date, ie.DAY_OF_WEEK_MONTH_DAY) }) }),
|
@@ -26791,7 +26790,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26791
26790
|
] });
|
26792
26791
|
}
|
26793
26792
|
), hb = A(() => {
|
26794
|
-
const { recurring: e } = x(), { isMobile: n, isSmallTablet: i } = Ee(), { onEvent: a } =
|
26793
|
+
const { recurring: e } = x(), { isMobile: n, isSmallTablet: i } = Ee(), { onEvent: a } = z(), {
|
26795
26794
|
expenses: o,
|
26796
26795
|
expenseTotal: r,
|
26797
26796
|
income: s,
|
@@ -26890,7 +26889,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
26890
26889
|
] }) })
|
26891
26890
|
] });
|
26892
26891
|
}), x4 = A(({ onBackClick: e, sx: n = {} }) => {
|
26893
|
-
const { accounts: i } = ve(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = _e(), { isDataLoaded: d, loadRepeatingTransactions: _ } = Pt(), { setFilter: u } = Te(), { onEvent: h } =
|
26892
|
+
const { accounts: i } = ve(), { recurring: a } = x(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = _e(), { isDataLoaded: d, loadRepeatingTransactions: _ } = Pt(), { setFilter: u } = Te(), { onEvent: h } = z(), [m, C] = g.useState(!1);
|
26894
26893
|
return g.useEffect(() => {
|
26895
26894
|
c(i);
|
26896
26895
|
}, [i]), g.useEffect(() => {
|
@@ -27253,7 +27252,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
27253
27252
|
/* @__PURE__ */ t(k, { "aria-hidden": "true" }),
|
27254
27253
|
/* @__PURE__ */ t(ne, { children: e.categoryData.map((s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
27255
27254
|
/* @__PURE__ */ t(
|
27256
|
-
|
27255
|
+
j,
|
27257
27256
|
{
|
27258
27257
|
disableGutters: !0,
|
27259
27258
|
disablePadding: !0,
|
@@ -27298,7 +27297,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
27298
27297
|
/* @__PURE__ */ t(k, {}),
|
27299
27298
|
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(Pi, { in: r?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ne, { children: [
|
27300
27299
|
r?.categoryTotals?.map((c) => /* @__PURE__ */ t(
|
27301
|
-
|
27300
|
+
j,
|
27302
27301
|
{
|
27303
27302
|
sx: {
|
27304
27303
|
pl: 24,
|
@@ -27406,10 +27405,10 @@ const Vi = g.createContext(null), O0 = ({
|
|
27406
27405
|
};
|
27407
27406
|
if (m === 0)
|
27408
27407
|
if (O === "other") {
|
27409
|
-
const Q = w.categoryData.find((
|
27408
|
+
const Q = w.categoryData.find((U) => U.guid === "other");
|
27410
27409
|
d({
|
27411
27410
|
...M,
|
27412
|
-
custom: (
|
27411
|
+
custom: (U) => !!Q?.categoryTotals?.find((X) => X.guid === U.top_level_category_guid)
|
27413
27412
|
});
|
27414
27413
|
} else
|
27415
27414
|
d({
|
@@ -27494,7 +27493,7 @@ const Vi = g.createContext(null), O0 = ({
|
|
27494
27493
|
)
|
27495
27494
|
] });
|
27496
27495
|
}, xb = A(Ab), Ib = ({ onBackClick: e, sx: n = {} }) => {
|
27497
|
-
const { visibleAccounts: i } = ve(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = _e(), { onEvent: d } =
|
27496
|
+
const { visibleAccounts: i } = ve(), { spending: a } = x(), { isCopyLoaded: o, isInitialized: r, setDisplayedDate: s, setSelectedAccounts: c } = _e(), { onEvent: d } = z(), [_, u] = g.useState(!1);
|
27498
27497
|
g.useEffect(() => {
|
27499
27498
|
c(i);
|
27500
27499
|
}, [i]), g.useEffect(() => {
|
@@ -27587,7 +27586,7 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27587
27586
|
height: o = "100dvh",
|
27588
27587
|
sx: r = {}
|
27589
27588
|
}) => {
|
27590
|
-
const { onEvent: s } =
|
27589
|
+
const { onEvent: s } = z(), c = re(/* @__PURE__ */ new Date(), ie.MONTH_SHORT), [d, _] = g.useState([
|
27591
27590
|
{ field: c, sort: "desc" }
|
27592
27591
|
]), u = g.useMemo(() => Gb(n.start, n.end), [n]), h = [
|
27593
27592
|
{
|
@@ -27661,7 +27660,7 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27661
27660
|
isOpen: i,
|
27662
27661
|
onClose: a
|
27663
27662
|
}) => {
|
27664
|
-
const { onEvent: o } =
|
27663
|
+
const { onEvent: o } = z(), { selectedAccountGuids: r } = _e(), { common: s } = x(), { setFilter: c, sortedTransactions: d } = Te(), [_, u] = g.useState(""), h = g.useMemo(() => d.find((C) => C.guid === _), [_]);
|
27665
27664
|
g.useEffect(() => {
|
27666
27665
|
c({
|
27667
27666
|
accounts: r,
|
@@ -27688,7 +27687,7 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27688
27687
|
}, $b = A(Hb), Fb = {
|
27689
27688
|
view_transactions: "View Transactions"
|
27690
27689
|
}, Wb = ({ onBackClick: e, sx: n }) => {
|
27691
|
-
const i = tt(), { onEvent: a } =
|
27690
|
+
const i = tt(), { onEvent: a } = z(), { isDesktop: o, isTablet: r, isMobile: s } = Ee(), { visibleAccounts: c } = ve(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Te(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = _e(), { trends: y } = x(), S = i.palette.mode === "dark", [w, v] = g.useState(!1), [I, R] = g.useState(!1), [D, H] = g.useState("Chart"), [O, M] = g.useState(""), [Q, U] = g.useState({
|
27692
27691
|
start: dr(je(qt(/* @__PURE__ */ new Date(), 6)), 1),
|
27693
27692
|
end: je(/* @__PURE__ */ new Date())
|
27694
27693
|
});
|
@@ -27703,7 +27702,7 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27703
27702
|
v(!0);
|
27704
27703
|
});
|
27705
27704
|
}, [C, f, Q]);
|
27706
|
-
const
|
27705
|
+
const X = g.useMemo(() => {
|
27707
27706
|
if (!w) return { stackedDatasets: [], unstackedDatasets: [] };
|
27708
27707
|
const Le = Rb(
|
27709
27708
|
_,
|
@@ -27729,7 +27728,7 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27729
27728
|
H(ct ?? D), a(W.TRENDS_CLICK_TOGGLE);
|
27730
27729
|
}, ce = (Le) => {
|
27731
27730
|
const ct = dr(Le?.[0], 1), Ft = Le?.[1], V = iu(Ft, ct);
|
27732
|
-
|
27731
|
+
U({ start: ct, end: Ft }), a(W.TRENDS_CLICK_DATE, {
|
27733
27732
|
time_period: V + "M"
|
27734
27733
|
});
|
27735
27734
|
}, Re = () => {
|
@@ -27846,8 +27845,8 @@ const Db = (e) => e.reduce((i, a) => {
|
|
27846
27845
|
onHoverArea: $e,
|
27847
27846
|
onHoverLegend: Ye,
|
27848
27847
|
onHoverPoint: Je,
|
27849
|
-
stackedDatasets:
|
27850
|
-
unstackedDatasets:
|
27848
|
+
stackedDatasets: X.stackedDatasets,
|
27849
|
+
unstackedDatasets: X.unstackedDatasets
|
27851
27850
|
}
|
27852
27851
|
),
|
27853
27852
|
D === "Table" && /* @__PURE__ */ t(
|
@@ -28075,7 +28074,7 @@ export {
|
|
28075
28074
|
ro as ToggleButtonListItem,
|
28076
28075
|
ti as ToggleListItem,
|
28077
28076
|
Ci as TopActions,
|
28078
|
-
|
28077
|
+
K as TrackType,
|
28079
28078
|
la as TransactionApi,
|
28080
28079
|
qn as TransactionDetails,
|
28081
28080
|
mn as TransactionList,
|
@@ -28129,7 +28128,7 @@ export {
|
|
28129
28128
|
Eu as useCombineEvents,
|
28130
28129
|
Su as useCombinePageviews,
|
28131
28130
|
Aa as useDebtStore,
|
28132
|
-
|
28131
|
+
z as useEvent,
|
28133
28132
|
qC as useGetMergeableAccounts,
|
28134
28133
|
x as useGlobalCopyStore,
|
28135
28134
|
xa as useGlobalStore,
|