@mx-cartographer/experiences 9.2.4-alpha.al4 → 9.3.0-alph.bb2
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/dist/accounts/AccountsMiniWidget.es.js +56 -0
- package/dist/accounts/AccountsMiniWidget.es.js.map +1 -0
- package/dist/accounts/AccountsWidget.es.js +75 -0
- package/dist/accounts/AccountsWidget.es.js.map +1 -0
- package/dist/accounts/ConnectMiniWidget.es.js +35 -0
- package/dist/accounts/ConnectMiniWidget.es.js.map +1 -0
- package/dist/accounts/components/AccountListItem.es.js +91 -0
- package/dist/accounts/components/AccountListItem.es.js.map +1 -0
- package/dist/accounts/components/AccountsList.es.js +129 -0
- package/dist/accounts/components/AccountsList.es.js.map +1 -0
- package/dist/accounts/components/AccountsListCompact.es.js +86 -0
- package/dist/accounts/components/AccountsListCompact.es.js.map +1 -0
- package/dist/accounts/components/ConnectImage.es.js +388 -0
- package/dist/accounts/components/ConnectImage.es.js.map +1 -0
- package/dist/accounts/components/ConnectMiniWidgetCard.es.js +27 -0
- package/dist/accounts/components/ConnectMiniWidgetCard.es.js.map +1 -0
- package/dist/accounts/components/ConnectionStatusIcons.es.js +23 -0
- package/dist/accounts/components/ConnectionStatusIcons.es.js.map +1 -0
- package/dist/accounts/components/ConnectionsDrawer.es.js +52 -0
- package/dist/accounts/components/ConnectionsDrawer.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActions.es.js +134 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActions.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.es.js +32 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountConnection.es.js +158 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountConnection.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailEdit.es.js +119 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailEdit.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetails.es.js +75 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetails.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js +38 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsContent.es.js +50 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsContent.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.es.js +21 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js +81 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsTab.es.js +22 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsTab.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/ConnectionErrorMessage.es.js +75 -0
- package/dist/accounts/components/detailsdrawer/Accounts/ConnectionErrorMessage.es.js.map +1 -0
- package/dist/accounts/components/detailsdrawer/Transactions/TransactionsTab.es.js +37 -0
- package/dist/accounts/components/detailsdrawer/Transactions/TransactionsTab.es.js.map +1 -0
- package/dist/accounts/constants/Accounts.d.ts +1 -4
- package/dist/accounts/constants/Accounts.es.js +10 -0
- package/dist/accounts/constants/Accounts.es.js.map +1 -0
- package/dist/accounts/hooks/useGetMergeableAccounts.es.js +11 -0
- package/dist/accounts/hooks/useGetMergeableAccounts.es.js.map +1 -0
- package/dist/accounts/hooks/useUiStore.es.js +12 -0
- package/dist/accounts/hooks/useUiStore.es.js.map +1 -0
- package/dist/accounts/index.es.js +23 -784
- package/dist/accounts/utils/AccountDetails.es.js +28 -0
- package/dist/accounts/utils/AccountDetails.es.js.map +1 -0
- package/dist/accounts/utils/AccountFields.es.js +131 -0
- package/dist/accounts/utils/AccountFields.es.js.map +1 -0
- package/dist/accounts/utils/getConnectionMessages.es.js +131 -0
- package/dist/accounts/utils/getConnectionMessages.es.js.map +1 -0
- package/dist/analytics/SurveyMiniWidget.es.js +117 -0
- package/dist/analytics/SurveyMiniWidget.es.js.map +1 -0
- package/dist/analytics/components/OpenTextField.es.js +23 -0
- package/dist/analytics/components/OpenTextField.es.js.map +1 -0
- package/dist/analytics/components/RatingScale.es.js +56 -0
- package/dist/analytics/components/RatingScale.es.js.map +1 -0
- package/dist/analytics/index.es.js +2 -151
- package/dist/budgets/BubbleBudgetsMiniWidget.es.js +100 -0
- package/dist/budgets/BubbleBudgetsMiniWidget.es.js.map +1 -0
- package/dist/budgets/BubbleBudgetsWidget.es.js +143 -0
- package/dist/budgets/BubbleBudgetsWidget.es.js.map +1 -0
- package/dist/budgets/components/AddBudgets.es.js +31 -0
- package/dist/budgets/components/AddBudgets.es.js.map +1 -0
- package/dist/budgets/components/BubbleBudgets.es.js +47 -0
- package/dist/budgets/components/BubbleBudgets.es.js.map +1 -0
- package/dist/budgets/components/BubbleChart.es.js +59 -0
- package/dist/budgets/components/BubbleChart.es.js.map +1 -0
- package/dist/budgets/components/BudgetDetailsDrawer.es.js +106 -0
- package/dist/budgets/components/BudgetDetailsDrawer.es.js.map +1 -0
- package/dist/budgets/components/BudgetDetailsDrawerV2.es.js +126 -0
- package/dist/budgets/components/BudgetDetailsDrawerV2.es.js.map +1 -0
- package/dist/budgets/components/BudgetList.es.js +44 -0
- package/dist/budgets/components/BudgetList.es.js.map +1 -0
- package/dist/budgets/components/BudgetsEmptyState.es.js +109 -0
- package/dist/budgets/components/BudgetsEmptyState.es.js.map +1 -0
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.es.js +54 -0
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.es.js.map +1 -0
- package/dist/budgets/components/Overview.es.js +129 -0
- package/dist/budgets/components/Overview.es.js.map +1 -0
- package/dist/budgets/components/addbudget/Header.es.js +70 -0
- package/dist/budgets/components/addbudget/Header.es.js.map +1 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.es.js +30 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.es.js.map +1 -0
- package/dist/budgets/components/addbudget/RecalculateBudgets.es.js +62 -0
- package/dist/budgets/components/addbudget/RecalculateBudgets.es.js.map +1 -0
- package/dist/budgets/components/addbudget/UnbudgetedRow.es.js +50 -0
- package/dist/budgets/components/addbudget/UnbudgetedRow.es.js.map +1 -0
- package/dist/budgets/components/bubblechart/Bubble.es.js +128 -0
- package/dist/budgets/components/bubblechart/Bubble.es.js.map +1 -0
- package/dist/budgets/components/bubblechart/Mercury.es.js +29 -0
- package/dist/budgets/components/bubblechart/Mercury.es.js.map +1 -0
- package/dist/budgets/components/budgetdetails/AddSubBudget.es.js +98 -0
- package/dist/budgets/components/budgetdetails/AddSubBudget.es.js.map +1 -0
- package/dist/budgets/components/budgetdetails/BudgetDetails.es.js +66 -0
- package/dist/budgets/components/budgetdetails/BudgetDetails.es.js.map +1 -0
- package/dist/budgets/components/budgetdetails/Header.es.js +48 -0
- package/dist/budgets/components/budgetdetails/Header.es.js.map +1 -0
- package/dist/budgets/components/budgetdetails/SubBudgetList.es.js +98 -0
- package/dist/budgets/components/budgetdetails/SubBudgetList.es.js.map +1 -0
- package/dist/budgets/components/budgetlist/BudgetRow.es.js +71 -0
- package/dist/budgets/components/budgetlist/BudgetRow.es.js.map +1 -0
- package/dist/budgets/components/budgetlist/SubBudgetRow.es.js +62 -0
- package/dist/budgets/components/budgetlist/SubBudgetRow.es.js.map +1 -0
- package/dist/budgets/components/budgetlist/SubBudgetZeroState.es.js +38 -0
- package/dist/budgets/components/budgetlist/SubBudgetZeroState.es.js.map +1 -0
- package/dist/budgets/components/shared/BudgetAmount.es.js +27 -0
- package/dist/budgets/components/shared/BudgetAmount.es.js.map +1 -0
- package/dist/budgets/components/shared/BudgetDetailsTopSection.es.js +84 -0
- package/dist/budgets/components/shared/BudgetDetailsTopSection.es.js.map +1 -0
- package/dist/budgets/index.es.js +6 -1400
- package/dist/budgets/utils/BubblesSVG.es.js +73 -0
- package/dist/budgets/utils/BubblesSVG.es.js.map +1 -0
- package/dist/cashflow/CashflowMiniWidget.es.js +45 -0
- package/dist/cashflow/CashflowMiniWidget.es.js.map +1 -0
- package/dist/cashflow/CashflowOnboarding.es.js +224 -0
- package/dist/cashflow/CashflowOnboarding.es.js.map +1 -0
- package/dist/cashflow/CashflowWidget.es.js +101 -0
- package/dist/cashflow/CashflowWidget.es.js.map +1 -0
- package/dist/cashflow/components/CashflowAmountHeading.es.js +45 -0
- package/dist/cashflow/components/CashflowAmountHeading.es.js.map +1 -0
- package/dist/cashflow/components/CashflowContent.es.js +63 -0
- package/dist/cashflow/components/CashflowContent.es.js.map +1 -0
- package/dist/cashflow/components/CashflowHeading.es.js +101 -0
- package/dist/cashflow/components/CashflowHeading.es.js.map +1 -0
- package/dist/cashflow/components/CashflowWidgetContent.es.js +167 -0
- package/dist/cashflow/components/CashflowWidgetContent.es.js.map +1 -0
- package/dist/cashflow/components/DetailsExpenseHeader.es.js +37 -0
- package/dist/cashflow/components/DetailsExpenseHeader.es.js.map +1 -0
- package/dist/cashflow/components/DetailsExpenseRow.es.js +57 -0
- package/dist/cashflow/components/DetailsExpenseRow.es.js.map +1 -0
- package/dist/cashflow/components/DetailsFooter.es.js +21 -0
- package/dist/cashflow/components/DetailsFooter.es.js.map +1 -0
- package/dist/cashflow/components/DetailsTab.es.js +90 -0
- package/dist/cashflow/components/DetailsTab.es.js.map +1 -0
- package/dist/cashflow/components/RemainingCash.es.js +35 -0
- package/dist/cashflow/components/RemainingCash.es.js.map +1 -0
- package/dist/cashflow/components/SummaryTab.es.js +258 -0
- package/dist/cashflow/components/SummaryTab.es.js.map +1 -0
- package/dist/cashflow/components/onboarding/StepOne.es.js +128 -0
- package/dist/cashflow/components/onboarding/StepOne.es.js.map +1 -0
- package/dist/cashflow/components/onboarding/StepTwo.es.js +26 -0
- package/dist/cashflow/components/onboarding/StepTwo.es.js.map +1 -0
- package/dist/cashflow/constants/CashflowImages.es.js +9 -0
- package/dist/cashflow/constants/CashflowImages.es.js.map +1 -0
- package/dist/cashflow/context/hooks.d.ts +1 -1
- package/dist/cashflow/context/hooks.es.js +12 -0
- package/dist/cashflow/context/hooks.es.js.map +1 -0
- package/dist/cashflow/index.es.js +6 -1058
- package/dist/cashflow/util/Filters.es.js +9 -0
- package/dist/cashflow/util/Filters.es.js.map +1 -0
- package/dist/categories/components/CategoryList.es.js +38 -0
- package/dist/categories/components/CategoryList.es.js.map +1 -0
- package/dist/categories/components/CategoryRow.es.js +65 -0
- package/dist/categories/components/CategoryRow.es.js.map +1 -0
- package/dist/categories/components/CategorySelector.es.js +39 -0
- package/dist/categories/components/CategorySelector.es.js.map +1 -0
- package/dist/categories/components/CategorySelectorDrawer.es.js +24 -0
- package/dist/categories/components/CategorySelectorDrawer.es.js.map +1 -0
- package/dist/categories/components/CustomCategories/AddSubcategory.es.js +46 -0
- package/dist/categories/components/CustomCategories/AddSubcategory.es.js.map +1 -0
- package/dist/categories/components/CustomCategories/CustomCategoryModal.es.js +61 -0
- package/dist/categories/components/CustomCategories/CustomCategoryModal.es.js.map +1 -0
- package/dist/categories/components/CustomCategories/DeleteSubcategory.es.js +26 -0
- package/dist/categories/components/CustomCategories/DeleteSubcategory.es.js.map +1 -0
- package/dist/categories/components/CustomCategories/RenameSubcategory.es.js +29 -0
- package/dist/categories/components/CustomCategories/RenameSubcategory.es.js.map +1 -0
- package/dist/categories/components/SubcategoryList.es.js +41 -0
- package/dist/categories/components/SubcategoryList.es.js.map +1 -0
- package/dist/categories/components/SubcategoryRow.es.js +90 -0
- package/dist/categories/components/SubcategoryRow.es.js.map +1 -0
- package/dist/categories/constants/OnClickEvents.es.js +18 -0
- package/dist/categories/constants/OnClickEvents.es.js.map +1 -0
- package/dist/categories/context/hooks.es.js +12 -0
- package/dist/categories/context/hooks.es.js.map +1 -0
- package/dist/categories/index.es.js +8 -6
- package/dist/common/components/Banner.es.js +39 -0
- package/dist/common/components/Banner.es.js.map +1 -0
- package/dist/common/components/ConnectCard.es.js +58 -0
- package/dist/common/components/ConnectCard.es.js.map +1 -0
- package/dist/common/components/ConnectDrawer.es.js +53 -0
- package/dist/common/components/ConnectDrawer.es.js.map +1 -0
- package/dist/common/components/ConnectStatus.d.ts +6 -0
- package/dist/common/components/ConnectStatus.es.js +39 -0
- package/dist/common/components/ConnectStatus.es.js.map +1 -0
- package/dist/common/components/CurrencyDialog.es.js +119 -0
- package/dist/common/components/CurrencyDialog.es.js.map +1 -0
- package/dist/common/components/CurrencyInput.es.js +49 -0
- package/dist/common/components/CurrencyInput.es.js.map +1 -0
- package/dist/common/components/CurrencyText.es.js +17 -0
- package/dist/common/components/CurrencyText.es.js.map +1 -0
- package/dist/common/components/DataRow.es.js +53 -0
- package/dist/common/components/DataRow.es.js.map +1 -0
- package/dist/common/components/EmptyState.es.js +68 -0
- package/dist/common/components/EmptyState.es.js.map +1 -0
- package/dist/common/components/Error.es.js +86 -0
- package/dist/common/components/Error.es.js.map +1 -0
- package/dist/common/components/ErrorBoundary.es.js +26 -0
- package/dist/common/components/ErrorBoundary.es.js.map +1 -0
- package/dist/common/components/GlobalAccountFilter.es.js +97 -0
- package/dist/common/components/GlobalAccountFilter.es.js.map +1 -0
- package/dist/common/components/IconBacking.es.js +25 -0
- package/dist/common/components/IconBacking.es.js.map +1 -0
- package/dist/common/components/InformationTooltip.es.js +49 -0
- package/dist/common/components/InformationTooltip.es.js.map +1 -0
- package/dist/common/components/ListItemAction.es.js +55 -0
- package/dist/common/components/ListItemAction.es.js.map +1 -0
- package/dist/common/components/ListItemRow.es.js +65 -0
- package/dist/common/components/ListItemRow.es.js.map +1 -0
- package/dist/common/components/ListItemWrapper.es.js +37 -0
- package/dist/common/components/ListItemWrapper.es.js.map +1 -0
- package/dist/common/components/Loader.es.js +17 -0
- package/dist/common/components/Loader.es.js.map +1 -0
- package/dist/common/components/MicroWidgetContainer.es.js +60 -0
- package/dist/common/components/MicroWidgetContainer.es.js.map +1 -0
- package/dist/common/components/MiniWidgetContainer.es.js +77 -0
- package/dist/common/components/MiniWidgetContainer.es.js.map +1 -0
- package/dist/common/components/ResponsiveButton.es.js +37 -0
- package/dist/common/components/ResponsiveButton.es.js.map +1 -0
- package/dist/common/components/SearchBox.es.js +59 -0
- package/dist/common/components/SearchBox.es.js.map +1 -0
- package/dist/common/components/Select.d.ts +1 -1
- package/dist/common/components/Select.es.js +33 -0
- package/dist/common/components/Select.es.js.map +1 -0
- package/dist/common/components/SelectionBox.es.js +45 -0
- package/dist/common/components/SelectionBox.es.js.map +1 -0
- package/dist/common/components/SkeletonLoader.es.js +104 -0
- package/dist/common/components/SkeletonLoader.es.js.map +1 -0
- package/dist/common/components/SubheaderRow.es.js +23 -0
- package/dist/common/components/SubheaderRow.es.js.map +1 -0
- package/dist/common/components/TabContentContainer.es.js +14 -0
- package/dist/common/components/TabContentContainer.es.js.map +1 -0
- package/dist/common/components/TinyBarChart.d.ts +1 -1
- package/dist/common/components/TinyBarChart.es.js +81 -0
- package/dist/common/components/TinyBarChart.es.js.map +1 -0
- package/dist/common/components/WidgetContainer.es.js +146 -0
- package/dist/common/components/WidgetContainer.es.js.map +1 -0
- package/dist/common/components/WidgetDateRangeSelector.es.js +38 -0
- package/dist/common/components/WidgetDateRangeSelector.es.js.map +1 -0
- package/dist/common/components/addaccounts/AddAccounts.es.js +50 -0
- package/dist/common/components/addaccounts/AddAccounts.es.js.map +1 -0
- package/dist/common/components/calendar/Calendar.es.js +148 -0
- package/dist/common/components/calendar/Calendar.es.js.map +1 -0
- package/dist/common/components/calendar/Day.es.js +82 -0
- package/dist/common/components/calendar/Day.es.js.map +1 -0
- package/dist/common/components/calendar/Header.es.js +42 -0
- package/dist/common/components/calendar/Header.es.js.map +1 -0
- package/dist/common/components/charts/Donut.es.js +82 -0
- package/dist/common/components/charts/Donut.es.js.map +1 -0
- package/dist/common/components/charts/LineChart.es.js +195 -0
- package/dist/common/components/charts/LineChart.es.js.map +1 -0
- package/dist/common/components/charts/StackedLineChart.es.js +208 -0
- package/dist/common/components/charts/StackedLineChart.es.js.map +1 -0
- package/dist/common/components/charts/StatusBar.es.js +25 -0
- package/dist/common/components/charts/StatusBar.es.js.map +1 -0
- package/dist/common/components/charts/chartSlotProps.d.ts +16 -0
- package/dist/common/components/charts/chartSlotProps.es.js +16 -0
- package/dist/common/components/charts/chartSlotProps.es.js.map +1 -0
- package/dist/common/components/charts/linechart/CustomLegend.es.js +95 -0
- package/dist/common/components/charts/linechart/CustomLegend.es.js.map +1 -0
- package/dist/common/components/charts/linechart/CustomLine.es.js +27 -0
- package/dist/common/components/charts/linechart/CustomLine.es.js.map +1 -0
- package/dist/common/components/charts/linechart/CustomMark.es.js +56 -0
- package/dist/common/components/charts/linechart/CustomMark.es.js.map +1 -0
- package/dist/common/components/charts/linechart/CustomTooltip.es.js +138 -0
- package/dist/common/components/charts/linechart/CustomTooltip.es.js.map +1 -0
- package/dist/common/components/charts/linechart/utils/markerShapes.es.js +26 -0
- package/dist/common/components/charts/linechart/utils/markerShapes.es.js.map +1 -0
- package/dist/common/components/charts/stackedlinechart/CategoryIconLabel.es.js +31 -0
- package/dist/common/components/charts/stackedlinechart/CategoryIconLabel.es.js.map +1 -0
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.es.js +97 -0
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.es.js.map +1 -0
- package/dist/common/components/charts/stackedlinechart/CustomLegend.es.js +54 -0
- package/dist/common/components/charts/stackedlinechart/CustomLegend.es.js.map +1 -0
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.es.js +51 -0
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.es.js.map +1 -0
- package/dist/common/components/daterangeselector/DateRangeSelector.es.js +262 -0
- package/dist/common/components/daterangeselector/DateRangeSelector.es.js.map +1 -0
- package/dist/common/components/dialog/Dialog.es.js +58 -0
- package/dist/common/components/dialog/Dialog.es.js.map +1 -0
- package/dist/common/components/donuts/MultiSegmentDonut.es.js +53 -0
- package/dist/common/components/donuts/MultiSegmentDonut.es.js.map +1 -0
- package/dist/common/components/donuts/SingleSegmentDonut.es.js +50 -0
- package/dist/common/components/donuts/SingleSegmentDonut.es.js.map +1 -0
- package/dist/common/components/drawer/Drawer.es.js +57 -0
- package/dist/common/components/drawer/Drawer.es.js.map +1 -0
- package/dist/common/components/drawer/Footer.es.js +31 -0
- package/dist/common/components/drawer/Footer.es.js.map +1 -0
- package/dist/common/components/drawer/Header.es.js +52 -0
- package/dist/common/components/drawer/Header.es.js.map +1 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.es.js +133 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.es.js.map +1 -0
- package/dist/common/components/listitems/CollapseExpandListItem.es.js +41 -0
- package/dist/common/components/listitems/CollapseExpandListItem.es.js.map +1 -0
- package/dist/common/components/listitems/ToggleButtonListItem.es.js +54 -0
- package/dist/common/components/listitems/ToggleButtonListItem.es.js.map +1 -0
- package/dist/common/components/listitems/ToggleListItem.es.js +37 -0
- package/dist/common/components/listitems/ToggleListItem.es.js.map +1 -0
- package/dist/common/constants/Account.es.js +32 -0
- package/dist/common/constants/Account.es.js.map +1 -0
- package/dist/common/constants/Analytics.es.js +139 -0
- package/dist/common/constants/Analytics.es.js.map +1 -0
- package/dist/common/constants/Connect.d.ts +4 -0
- package/dist/common/constants/Connect.es.js +10 -0
- package/dist/common/constants/Connect.es.js.map +1 -0
- package/dist/common/constants/Donut.es.js +7 -0
- package/dist/common/constants/Donut.es.js.map +1 -0
- package/dist/common/constants/FinStrong.es.js +33 -0
- package/dist/common/constants/FinStrong.es.js.map +1 -0
- package/dist/common/constants/ScheduledPayment.es.js +40 -0
- package/dist/common/constants/ScheduledPayment.es.js.map +1 -0
- package/dist/common/constants/Sizes.es.js +9 -0
- package/dist/common/constants/Sizes.es.js.map +1 -0
- package/dist/common/constants/SpendingPlan.es.js +10 -0
- package/dist/common/constants/SpendingPlan.es.js.map +1 -0
- package/dist/common/constants/index.d.ts +1 -0
- package/dist/common/context/GlobalDataProvider.es.js +19 -0
- package/dist/common/context/GlobalDataProvider.es.js.map +1 -0
- package/dist/common/context/WidgetContainerProvider.es.js +16 -0
- package/dist/common/context/WidgetContainerProvider.es.js.map +1 -0
- package/dist/common/context/hooks.es.js +46 -0
- package/dist/common/context/hooks.es.js.map +1 -0
- package/dist/common/hooks/useAccountDisplayName.es.js +13 -0
- package/dist/common/hooks/useAccountDisplayName.es.js.map +1 -0
- package/dist/common/hooks/useAriaLive.es.js +34 -0
- package/dist/common/hooks/useAriaLive.es.js.map +1 -0
- package/dist/common/hooks/useCombineEvents.es.js +22 -0
- package/dist/common/hooks/useCombineEvents.es.js.map +1 -0
- package/dist/common/hooks/useDimensions.es.js +41 -0
- package/dist/common/hooks/useDimensions.es.js.map +1 -0
- package/dist/common/hooks/useInsightsEnabled.es.js +13 -0
- package/dist/common/hooks/useInsightsEnabled.es.js.map +1 -0
- package/dist/common/hooks/usePrevious.es.js +13 -0
- package/dist/common/hooks/usePrevious.es.js.map +1 -0
- package/dist/common/hooks/useScreenSize.es.js +26 -0
- package/dist/common/hooks/useScreenSize.es.js.map +1 -0
- package/dist/common/hooks/useWidgetHeaderStyles.es.js +46 -0
- package/dist/common/hooks/useWidgetHeaderStyles.es.js.map +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.es.js +24 -0
- package/dist/common/hooks/useWidgetLoadTimer.es.js.map +1 -0
- package/dist/common/index.es.js +154 -310
- package/dist/common/types/Charts.d.ts +10 -0
- package/dist/common/utils/AccountDisplayName.es.js +14 -0
- package/dist/common/utils/AccountDisplayName.es.js.map +1 -0
- package/dist/common/utils/AccountFilter.es.js +31 -0
- package/dist/common/utils/AccountFilter.es.js.map +1 -0
- package/dist/common/utils/Analytics.es.js +31 -0
- package/dist/common/utils/Analytics.es.js.map +1 -0
- package/dist/common/utils/PostMessage.es.js +29 -0
- package/dist/common/utils/PostMessage.es.js.map +1 -0
- package/dist/common/utils/Theme.es.js +96 -0
- package/dist/common/utils/Theme.es.js.map +1 -0
- package/dist/core/api/AccountApi.es.js +22 -0
- package/dist/core/api/AccountApi.es.js.map +1 -0
- package/dist/core/api/AnalyticsApi.es.js +34 -0
- package/dist/core/api/AnalyticsApi.es.js.map +1 -0
- package/dist/core/api/AppDataApi.es.js +14 -0
- package/dist/core/api/AppDataApi.es.js.map +1 -0
- package/dist/core/api/BannerApi.es.js +23 -0
- package/dist/core/api/BannerApi.es.js.map +1 -0
- package/dist/core/api/BeatApi.es.js +24 -0
- package/dist/core/api/BeatApi.es.js.map +1 -0
- package/dist/core/api/BudgetsApi.es.js +28 -0
- package/dist/core/api/BudgetsApi.es.js.map +1 -0
- package/dist/core/api/CategoryApi.es.js +29 -0
- package/dist/core/api/CategoryApi.es.js.map +1 -0
- package/dist/core/api/FinstrongApi.es.js +22 -0
- package/dist/core/api/FinstrongApi.es.js.map +1 -0
- package/dist/core/api/GlobalCopyApi.es.js +14 -0
- package/dist/core/api/GlobalCopyApi.es.js.map +1 -0
- package/dist/core/api/GoalApi.es.js +28 -0
- package/dist/core/api/GoalApi.es.js.map +1 -0
- package/dist/core/api/HelpApi.es.js +14 -0
- package/dist/core/api/HelpApi.es.js.map +1 -0
- package/dist/core/api/HoldingApi.es.js +15 -0
- package/dist/core/api/HoldingApi.es.js.map +1 -0
- package/dist/core/api/MerchantApi.es.js +18 -0
- package/dist/core/api/MerchantApi.es.js.map +1 -0
- package/dist/core/api/NotificationApi.es.js +19 -0
- package/dist/core/api/NotificationApi.es.js.map +1 -0
- package/dist/core/api/RepeatingTransactionsApi.es.js +17 -0
- package/dist/core/api/RepeatingTransactionsApi.es.js.map +1 -0
- package/dist/core/api/ScheduledPaymentsApi.es.js +22 -0
- package/dist/core/api/ScheduledPaymentsApi.es.js.map +1 -0
- package/dist/core/api/SettingsApi.es.js +24 -0
- package/dist/core/api/SettingsApi.es.js.map +1 -0
- package/dist/core/api/TransactionApi.es.js +55 -0
- package/dist/core/api/TransactionApi.es.js.map +1 -0
- package/dist/core/api/UserApi.es.js +16 -0
- package/dist/core/api/UserApi.es.js.map +1 -0
- package/dist/core/api/WidgetApi.es.js +14 -0
- package/dist/core/api/WidgetApi.es.js.map +1 -0
- package/dist/core/constants/ApiEndpoints.es.js +51 -0
- package/dist/core/constants/ApiEndpoints.es.js.map +1 -0
- package/dist/core/constants/Category.es.js +299 -0
- package/dist/core/constants/Category.es.js.map +1 -0
- package/dist/core/constants/DateFormats.es.js +55 -0
- package/dist/core/constants/DateFormats.es.js.map +1 -0
- package/dist/core/constants/Debts.es.js +8 -0
- package/dist/core/constants/Debts.es.js.map +1 -0
- package/dist/core/constants/DefaultConfig.es.js +109 -0
- package/dist/core/constants/DefaultConfig.es.js.map +1 -0
- package/dist/core/constants/Help.es.js +183 -0
- package/dist/core/constants/Help.es.js.map +1 -0
- package/dist/core/constants/Investments.es.js +56 -0
- package/dist/core/constants/Investments.es.js.map +1 -0
- package/dist/core/constants/Numbers.es.js +9 -0
- package/dist/core/constants/Numbers.es.js.map +1 -0
- package/dist/core/constants/Table.es.js +18 -0
- package/dist/core/constants/Table.es.js.map +1 -0
- package/dist/core/constants/Transaction.es.js +43 -0
- package/dist/core/constants/Transaction.es.js.map +1 -0
- package/dist/core/constants/repeatingTransactions.es.js +8 -0
- package/dist/core/constants/repeatingTransactions.es.js.map +1 -0
- package/dist/core/index.es.js +134 -107
- package/dist/core/stores/AccountStore.es.js +247 -0
- package/dist/core/stores/AccountStore.es.js.map +1 -0
- package/dist/core/stores/AnalyticsStore.es.js +55 -0
- package/dist/core/stores/AnalyticsStore.es.js.map +1 -0
- package/dist/core/stores/AppDataStore.d.ts +2 -2
- package/dist/core/stores/AppDataStore.es.js +61 -0
- package/dist/core/stores/AppDataStore.es.js.map +1 -0
- package/dist/core/stores/BeatStore.es.js +43 -0
- package/dist/core/stores/BeatStore.es.js.map +1 -0
- package/dist/core/stores/BudgetsStore.es.js +155 -0
- package/dist/core/stores/BudgetsStore.es.js.map +1 -0
- package/dist/core/stores/CashflowStore.es.js +62 -0
- package/dist/core/stores/CashflowStore.es.js.map +1 -0
- package/dist/core/stores/CategoryStore.es.js +147 -0
- package/dist/core/stores/CategoryStore.es.js.map +1 -0
- package/dist/core/stores/ConnectStore.es.js +19 -0
- package/dist/core/stores/ConnectStore.es.js.map +1 -0
- package/dist/core/stores/DebtsStore.es.js +40 -0
- package/dist/core/stores/DebtsStore.es.js.map +1 -0
- package/dist/core/stores/FinstrongStore.es.js +156 -0
- package/dist/core/stores/FinstrongStore.es.js.map +1 -0
- package/dist/core/stores/GlobalCopyStore.es.js +32 -0
- package/dist/core/stores/GlobalCopyStore.es.js.map +1 -0
- package/dist/core/stores/GlobalStore.es.js +87 -0
- package/dist/core/stores/GlobalStore.es.js.map +1 -0
- package/dist/core/stores/GlobalUiStore.d.ts +2 -2
- package/dist/core/stores/GlobalUiStore.es.js +68 -0
- package/dist/core/stores/GlobalUiStore.es.js.map +1 -0
- package/dist/core/stores/GoalStore.es.js +233 -0
- package/dist/core/stores/GoalStore.es.js.map +1 -0
- package/dist/core/stores/HelpStore.d.ts +1 -1
- package/dist/core/stores/HelpStore.es.js +45 -0
- package/dist/core/stores/HelpStore.es.js.map +1 -0
- package/dist/core/stores/HoldingStore.es.js +60 -0
- package/dist/core/stores/HoldingStore.es.js.map +1 -0
- package/dist/core/stores/MerchantStore.es.js +28 -0
- package/dist/core/stores/MerchantStore.es.js.map +1 -0
- package/dist/core/stores/NetWorthStore.es.js +73 -0
- package/dist/core/stores/NetWorthStore.es.js.map +1 -0
- package/dist/core/stores/NotificationStore.es.js +46 -0
- package/dist/core/stores/NotificationStore.es.js.map +1 -0
- package/dist/core/stores/RecurringTransactionsStore.es.js +198 -0
- package/dist/core/stores/RecurringTransactionsStore.es.js.map +1 -0
- package/dist/core/stores/SettingsStore.d.ts +1 -1
- package/dist/core/stores/SettingsStore.es.js +184 -0
- package/dist/core/stores/SettingsStore.es.js.map +1 -0
- package/dist/core/stores/TransactionStore.es.js +372 -0
- package/dist/core/stores/TransactionStore.es.js.map +1 -0
- package/dist/core/stores/TrendsStore.es.js +51 -0
- package/dist/core/stores/TrendsStore.es.js.map +1 -0
- package/dist/core/stores/UserStore.es.js +49 -0
- package/dist/core/stores/UserStore.es.js.map +1 -0
- package/dist/core/types/Account.es.js +118 -0
- package/dist/core/types/Account.es.js.map +1 -0
- package/dist/core/types/Beat.es.js +8 -0
- package/dist/core/types/Beat.es.js.map +1 -0
- package/dist/core/types/Expense.es.js +11 -0
- package/dist/core/types/Expense.es.js.map +1 -0
- package/dist/core/types/Finstrong.es.js +14 -0
- package/dist/core/types/Finstrong.es.js.map +1 -0
- package/dist/core/types/Goal.es.js +14 -0
- package/dist/core/types/Goal.es.js.map +1 -0
- package/dist/core/types/Notification.es.js +17 -0
- package/dist/core/types/Notification.es.js.map +1 -0
- package/dist/core/types/RepeatingTransaction.es.js +17 -0
- package/dist/core/types/RepeatingTransaction.es.js.map +1 -0
- package/dist/core/types/ScreenSize.es.js +8 -0
- package/dist/core/types/ScreenSize.es.js.map +1 -0
- package/dist/core/types/Transaction.es.js +11 -0
- package/dist/core/types/Transaction.es.js.map +1 -0
- package/dist/core/utils/AccountUtils.es.js +27 -0
- package/dist/core/utils/AccountUtils.es.js.map +1 -0
- package/dist/core/utils/BeatUtils.es.js +50 -0
- package/dist/core/utils/BeatUtils.es.js.map +1 -0
- package/dist/core/utils/BudgetUtil.es.js +71 -0
- package/dist/core/utils/BudgetUtil.es.js.map +1 -0
- package/dist/core/utils/CategoryUtil.es.js +60 -0
- package/dist/core/utils/CategoryUtil.es.js.map +1 -0
- package/dist/core/utils/DateUtil.es.js +70 -0
- package/dist/core/utils/DateUtil.es.js.map +1 -0
- package/dist/core/utils/DebtUtils.es.js +144 -0
- package/dist/core/utils/DebtUtils.es.js.map +1 -0
- package/dist/core/utils/Fetch.es.js +74 -0
- package/dist/core/utils/Fetch.es.js.map +1 -0
- package/dist/core/utils/FinstrongUtils.es.js +11 -0
- package/dist/core/utils/FinstrongUtils.es.js.map +1 -0
- package/dist/core/utils/GoalsUtil.es.js +113 -0
- package/dist/core/utils/GoalsUtil.es.js.map +1 -0
- package/dist/core/utils/HelpUtil.es.js +23 -0
- package/dist/core/utils/HelpUtil.es.js.map +1 -0
- package/dist/core/utils/InvestmentUtil.es.js +77 -0
- package/dist/core/utils/InvestmentUtil.es.js.map +1 -0
- package/dist/core/utils/Localization.es.js +34 -0
- package/dist/core/utils/Localization.es.js.map +1 -0
- package/dist/core/utils/NetWorthUtils.es.js +115 -0
- package/dist/core/utils/NetWorthUtils.es.js.map +1 -0
- package/dist/core/utils/NotificationUtils.es.js +17 -0
- package/dist/core/utils/NotificationUtils.es.js.map +1 -0
- package/dist/core/utils/NumberFormatting.es.js +31 -0
- package/dist/core/utils/NumberFormatting.es.js.map +1 -0
- package/dist/core/utils/RecurringTransactionsUtil.es.js +285 -0
- package/dist/core/utils/RecurringTransactionsUtil.es.js.map +1 -0
- package/dist/core/utils/SettingsUtil.es.js +56 -0
- package/dist/core/utils/SettingsUtil.es.js.map +1 -0
- package/dist/core/utils/TransactionUtils.es.js +113 -0
- package/dist/core/utils/TransactionUtils.es.js.map +1 -0
- package/dist/core/utils/TrendsUtil.es.js +72 -0
- package/dist/core/utils/TrendsUtil.es.js.map +1 -0
- package/dist/core/utils/UserUtils.es.js +6 -0
- package/dist/core/utils/UserUtils.es.js.map +1 -0
- package/dist/dashboard/Dashboard.es.js +99 -0
- package/dist/dashboard/Dashboard.es.js.map +1 -0
- package/dist/dashboard/Greeting.es.js +49 -0
- package/dist/dashboard/Greeting.es.js.map +1 -0
- package/dist/dashboard/constants/Dashboard.es.js +8 -0
- package/dist/dashboard/constants/Dashboard.es.js.map +1 -0
- package/dist/dashboard/index.es.js +4 -153
- package/dist/debts/DebtsWidget.es.js +138 -0
- package/dist/debts/DebtsWidget.es.js.map +1 -0
- package/dist/debts/components/DebtDrawer.es.js +26 -0
- package/dist/debts/components/DebtDrawer.es.js.map +1 -0
- package/dist/debts/components/DebtsChart.es.js +135 -0
- package/dist/debts/components/DebtsChart.es.js.map +1 -0
- package/dist/debts/components/DebtsTable.es.js +193 -0
- package/dist/debts/components/DebtsTable.es.js.map +1 -0
- package/dist/debts/components/PaydownDrawer.es.js +19 -0
- package/dist/debts/components/PaydownDrawer.es.js.map +1 -0
- package/dist/debts/components/SnowballCard.es.js +87 -0
- package/dist/debts/components/SnowballCard.es.js.map +1 -0
- package/dist/debts/components/SnowballDrawer.es.js +457 -0
- package/dist/debts/components/SnowballDrawer.es.js.map +1 -0
- package/dist/debts/components/actions/DebtsPriorityAction.es.js +37 -0
- package/dist/debts/components/actions/DebtsPriorityAction.es.js.map +1 -0
- package/dist/debts/components/actions/ExtraPaymentAction.es.js +43 -0
- package/dist/debts/components/actions/ExtraPaymentAction.es.js.map +1 -0
- package/dist/debts/components/actions/InterestRateAction.es.js +41 -0
- package/dist/debts/components/actions/InterestRateAction.es.js.map +1 -0
- package/dist/debts/components/actions/MonthlyPaymentAction.es.js +43 -0
- package/dist/debts/components/actions/MonthlyPaymentAction.es.js.map +1 -0
- package/dist/debts/components/actions/OriginalBalanceAction.es.js +43 -0
- package/dist/debts/components/actions/OriginalBalanceAction.es.js.map +1 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsChart.es.js +43 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsChart.es.js.map +1 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsContent.es.js +54 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsContent.es.js.map +1 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsTab.es.js +40 -0
- package/dist/debts/components/debtsdrawer/DebtDetailsTab.es.js.map +1 -0
- package/dist/debts/components/debtsdrawer/DebtScheduleTab.es.js +108 -0
- package/dist/debts/components/debtsdrawer/DebtScheduleTab.es.js.map +1 -0
- package/dist/debts/components/debtsdrawer/DebtStatusCard.es.js +86 -0
- package/dist/debts/components/debtsdrawer/DebtStatusCard.es.js.map +1 -0
- package/dist/debts/components/debtspaydown/PaydownButton.es.js +32 -0
- package/dist/debts/components/debtspaydown/PaydownButton.es.js.map +1 -0
- package/dist/debts/components/debtspaydown/PaydownContent.es.js +77 -0
- package/dist/debts/components/debtspaydown/PaydownContent.es.js.map +1 -0
- package/dist/debts/components/debtspriority/DebtsPriorityButton.es.js +32 -0
- package/dist/debts/components/debtspriority/DebtsPriorityButton.es.js.map +1 -0
- package/dist/debts/components/debtspriority/DebtsPrioriyPopover.es.js +78 -0
- package/dist/debts/components/debtspriority/DebtsPrioriyPopover.es.js.map +1 -0
- package/dist/debts/components/debtstable/AccountCell.es.js +30 -0
- package/dist/debts/components/debtstable/AccountCell.es.js.map +1 -0
- package/dist/debts/components/debtstable/PriorityCell.es.js +35 -0
- package/dist/debts/components/debtstable/PriorityCell.es.js.map +1 -0
- package/dist/debts/hooks/useDebtsUiStore.es.js +12 -0
- package/dist/debts/hooks/useDebtsUiStore.es.js.map +1 -0
- package/dist/debts/index.es.js +6 -1496
- package/dist/debts/utils/DebtsChart.es.js +15 -0
- package/dist/debts/utils/DebtsChart.es.js.map +1 -0
- package/dist/debts/utils/DebtsTable.es.js +17 -0
- package/dist/debts/utils/DebtsTable.es.js.map +1 -0
- package/dist/debts/utils/SnowballCard.es.js +40 -0
- package/dist/debts/utils/SnowballCard.es.js.map +1 -0
- package/dist/finstrong/FinancialStrengthCard.es.js +127 -0
- package/dist/finstrong/FinancialStrengthCard.es.js.map +1 -0
- package/dist/finstrong/FinstrongWidget.es.js +175 -0
- package/dist/finstrong/FinstrongWidget.es.js.map +1 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.es.js +80 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.es.js.map +1 -0
- package/dist/finstrong/components/CreditScore/CreditScoreContent.es.js +39 -0
- package/dist/finstrong/components/CreditScore/CreditScoreContent.es.js.map +1 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.es.js +22 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.es.js.map +1 -0
- package/dist/finstrong/components/CreditScoreGraph.es.js +61 -0
- package/dist/finstrong/components/CreditScoreGraph.es.js.map +1 -0
- package/dist/finstrong/components/FinancialStrengthGraph.es.js +44 -0
- package/dist/finstrong/components/FinancialStrengthGraph.es.js.map +1 -0
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.es.js +43 -0
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.es.js.map +1 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.es.js +88 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.es.js.map +1 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.es.js +73 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.es.js.map +1 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.es.js +40 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.es.js.map +1 -0
- package/dist/finstrong/components/HealthChart.es.js +117 -0
- package/dist/finstrong/components/HealthChart.es.js.map +1 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.es.js +71 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.es.js.map +1 -0
- package/dist/finstrong/components/KeyIndicatorsDrawer.es.js +92 -0
- package/dist/finstrong/components/KeyIndicatorsDrawer.es.js.map +1 -0
- package/dist/finstrong/components/KeyIndicatorsSaveTab.es.js +73 -0
- package/dist/finstrong/components/KeyIndicatorsSaveTab.es.js.map +1 -0
- package/dist/finstrong/components/KeyIndicatorsSpendTab.es.js +58 -0
- package/dist/finstrong/components/KeyIndicatorsSpendTab.es.js.map +1 -0
- package/dist/finstrong/components/KeyIndicatorsTabItem.es.js +65 -0
- package/dist/finstrong/components/KeyIndicatorsTabItem.es.js.map +1 -0
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.es.js +93 -0
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.es.js.map +1 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.es.js +78 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.es.js.map +1 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.es.js +170 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.es.js.map +1 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.es.js +51 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.es.js.map +1 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.es.js +53 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.es.js.map +1 -0
- package/dist/finstrong/components/ManageCreditScore.es.js +52 -0
- package/dist/finstrong/components/ManageCreditScore.es.js.map +1 -0
- package/dist/finstrong/components/ManageDOB.es.js +79 -0
- package/dist/finstrong/components/ManageDOB.es.js.map +1 -0
- package/dist/finstrong/components/MissingData.es.js +51 -0
- package/dist/finstrong/components/MissingData.es.js.map +1 -0
- package/dist/finstrong/components/ProfileDrawer.es.js +124 -0
- package/dist/finstrong/components/ProfileDrawer.es.js.map +1 -0
- package/dist/finstrong/components/ProfileList.es.js +65 -0
- package/dist/finstrong/components/ProfileList.es.js.map +1 -0
- package/dist/finstrong/components/ProfileProgressBar.es.js +32 -0
- package/dist/finstrong/components/ProfileProgressBar.es.js.map +1 -0
- package/dist/finstrong/components/ProgressBar.es.js +53 -0
- package/dist/finstrong/components/ProgressBar.es.js.map +1 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.es.js +27 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.es.js.map +1 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.es.js +51 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.es.js.map +1 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.es.js +56 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.es.js.map +1 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.es.js +34 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.es.js.map +1 -0
- package/dist/finstrong/components/ScoreHistoryDrawer.es.js +90 -0
- package/dist/finstrong/components/ScoreHistoryDrawer.es.js.map +1 -0
- package/dist/finstrong/components/ScoreRubricDrawer.es.js +118 -0
- package/dist/finstrong/components/ScoreRubricDrawer.es.js.map +1 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.es.js +130 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.es.js.map +1 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.es.js +50 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.es.js.map +1 -0
- package/dist/finstrong/components/StatusChip.es.js +37 -0
- package/dist/finstrong/components/StatusChip.es.js.map +1 -0
- package/dist/finstrong/components/onboarding/Onboarding.es.js +57 -0
- package/dist/finstrong/components/onboarding/Onboarding.es.js.map +1 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.es.js +57 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.es.js.map +1 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.es.js +46 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.es.js.map +1 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.es.js +28 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.es.js.map +1 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.es.js +313 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.es.js.map +1 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.es.js +25 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.es.js.map +1 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.es.js +69 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.es.js.map +1 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.es.js +38 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.es.js.map +1 -0
- package/dist/finstrong/components/shared/Accounts.es.js +102 -0
- package/dist/finstrong/components/shared/Accounts.es.js.map +1 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.es.js +49 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.es.js.map +1 -0
- package/dist/finstrong/components/shared/CustomPieArc.es.js +52 -0
- package/dist/finstrong/components/shared/CustomPieArc.es.js.map +1 -0
- package/dist/finstrong/components/shared/DialScoreCard.es.js +186 -0
- package/dist/finstrong/components/shared/DialScoreCard.es.js.map +1 -0
- package/dist/finstrong/components/shared/DoubleBarChart.es.js +196 -0
- package/dist/finstrong/components/shared/DoubleBarChart.es.js.map +1 -0
- package/dist/finstrong/components/shared/LineGraph.es.js +136 -0
- package/dist/finstrong/components/shared/LineGraph.es.js.map +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.es.js +107 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.es.js.map +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimelineItem.es.js +40 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimelineItem.es.js.map +1 -0
- package/dist/finstrong/components/shared/TotalCard.es.js +30 -0
- package/dist/finstrong/components/shared/TotalCard.es.js.map +1 -0
- package/dist/finstrong/components/shared/Transactions.es.js +129 -0
- package/dist/finstrong/components/shared/Transactions.es.js.map +1 -0
- package/dist/finstrong/constants/index.es.js +9 -0
- package/dist/finstrong/constants/index.es.js.map +1 -0
- package/dist/finstrong/index.es.js +8 -3912
- package/dist/finstrong/util/finstrongUtils.es.js +206 -0
- package/dist/finstrong/util/finstrongUtils.es.js.map +1 -0
- package/dist/goals/GoalsMicroWidget.es.js +44 -0
- package/dist/goals/GoalsMicroWidget.es.js.map +1 -0
- package/dist/goals/GoalsWidget.es.js +141 -0
- package/dist/goals/GoalsWidget.es.js.map +1 -0
- package/dist/goals/components/AccountSelectionDrawer.es.js +54 -0
- package/dist/goals/components/AccountSelectionDrawer.es.js.map +1 -0
- package/dist/goals/components/AddGoal.es.js +59 -0
- package/dist/goals/components/AddGoal.es.js.map +1 -0
- package/dist/goals/components/GoalDetails.es.js +115 -0
- package/dist/goals/components/GoalDetails.es.js.map +1 -0
- package/dist/goals/components/GoalDetailsDrawer.es.js +83 -0
- package/dist/goals/components/GoalDetailsDrawer.es.js.map +1 -0
- package/dist/goals/components/GoalList.es.js +135 -0
- package/dist/goals/components/GoalList.es.js.map +1 -0
- package/dist/goals/components/GoalStatusCard.es.js +95 -0
- package/dist/goals/components/GoalStatusCard.es.js.map +1 -0
- package/dist/goals/components/ManageGoals.es.js +89 -0
- package/dist/goals/components/ManageGoals.es.js.map +1 -0
- package/dist/goals/components/TabTitle.es.js +19 -0
- package/dist/goals/components/TabTitle.es.js.map +1 -0
- package/dist/goals/components/actions/AccountAction.es.js +28 -0
- package/dist/goals/components/actions/AccountAction.es.js.map +1 -0
- package/dist/goals/components/actions/AddRetirementAccountAction.es.js +56 -0
- package/dist/goals/components/actions/AddRetirementAccountAction.es.js.map +1 -0
- package/dist/goals/components/actions/AmountToSaveAction.es.js +45 -0
- package/dist/goals/components/actions/AmountToSaveAction.es.js.map +1 -0
- package/dist/goals/components/actions/BirthdayAction.es.js +44 -0
- package/dist/goals/components/actions/BirthdayAction.es.js.map +1 -0
- package/dist/goals/components/actions/ChangeAccountAction.es.js +127 -0
- package/dist/goals/components/actions/ChangeAccountAction.es.js.map +1 -0
- package/dist/goals/components/actions/ContributionAction.es.js +49 -0
- package/dist/goals/components/actions/ContributionAction.es.js.map +1 -0
- package/dist/goals/components/actions/GoalNameAction.es.js +41 -0
- package/dist/goals/components/actions/GoalNameAction.es.js.map +1 -0
- package/dist/goals/components/actions/InterestRateAction.es.js +42 -0
- package/dist/goals/components/actions/InterestRateAction.es.js.map +1 -0
- package/dist/goals/components/actions/MonthlyPaymentAction.es.js +47 -0
- package/dist/goals/components/actions/MonthlyPaymentAction.es.js.map +1 -0
- package/dist/goals/components/actions/OriginalBalanceAction.es.js +47 -0
- package/dist/goals/components/actions/OriginalBalanceAction.es.js.map +1 -0
- package/dist/goals/components/actions/RetirementAgeAction.es.js +42 -0
- package/dist/goals/components/actions/RetirementAgeAction.es.js.map +1 -0
- package/dist/goals/components/addgoal/AddGoalListItem.es.js +72 -0
- package/dist/goals/components/addgoal/AddGoalListItem.es.js.map +1 -0
- package/dist/goals/components/managegoals/CompleteListItem.es.js +59 -0
- package/dist/goals/components/managegoals/CompleteListItem.es.js.map +1 -0
- package/dist/goals/components/managegoals/OngoingListItem.es.js +83 -0
- package/dist/goals/components/managegoals/OngoingListItem.es.js.map +1 -0
- package/dist/goals/components/micro/GoalMicroStatusCard.es.js +64 -0
- package/dist/goals/components/micro/GoalMicroStatusCard.es.js.map +1 -0
- package/dist/goals/components/micro/GoalsMicroEmptyState.es.js +35 -0
- package/dist/goals/components/micro/GoalsMicroEmptyState.es.js.map +1 -0
- package/dist/goals/index.es.js +4 -1088
- package/dist/help/HelpWidget.es.js +25 -0
- package/dist/help/HelpWidget.es.js.map +1 -0
- package/dist/help/components/Help.es.js +48 -0
- package/dist/help/components/Help.es.js.map +1 -0
- package/dist/help/components/HelpContent.es.js +25 -0
- package/dist/help/components/HelpContent.es.js.map +1 -0
- package/dist/help/components/HelpList.es.js +142 -0
- package/dist/help/components/HelpList.es.js.map +1 -0
- package/dist/help/components/content/BottomImageContent.es.js +51 -0
- package/dist/help/components/content/BottomImageContent.es.js.map +1 -0
- package/dist/help/components/content/ContentItem.es.js +46 -0
- package/dist/help/components/content/ContentItem.es.js.map +1 -0
- package/dist/help/components/content/Header.es.js +83 -0
- package/dist/help/components/content/Header.es.js.map +1 -0
- package/dist/help/components/content/LeftImageContent.es.js +57 -0
- package/dist/help/components/content/LeftImageContent.es.js.map +1 -0
- package/dist/help/components/content/NoImageContent.es.js +15 -0
- package/dist/help/components/content/NoImageContent.es.js.map +1 -0
- package/dist/help/components/content/RightImageContent.es.js +55 -0
- package/dist/help/components/content/RightImageContent.es.js.map +1 -0
- package/dist/help/components/content/TopImageContent.es.js +51 -0
- package/dist/help/components/content/TopImageContent.es.js.map +1 -0
- package/dist/help/components/content/section/Accounts.es.js +159 -0
- package/dist/help/components/content/section/Accounts.es.js.map +1 -0
- package/dist/help/components/content/section/Budgets.es.js +66 -0
- package/dist/help/components/content/section/Budgets.es.js.map +1 -0
- package/dist/help/components/content/section/CashFlow.es.js +47 -0
- package/dist/help/components/content/section/CashFlow.es.js.map +1 -0
- package/dist/help/components/content/section/Debts.es.js +168 -0
- package/dist/help/components/content/section/Debts.es.js.map +1 -0
- package/dist/help/components/content/section/General.es.js +84 -0
- package/dist/help/components/content/section/General.es.js.map +1 -0
- package/dist/help/components/content/section/Goals.es.js +112 -0
- package/dist/help/components/content/section/Goals.es.js.map +1 -0
- package/dist/help/components/content/section/Insights.es.js +79 -0
- package/dist/help/components/content/section/Insights.es.js.map +1 -0
- package/dist/help/components/content/section/Investments.es.js +48 -0
- package/dist/help/components/content/section/Investments.es.js.map +1 -0
- package/dist/help/components/content/section/Mobile.es.js +48 -0
- package/dist/help/components/content/section/Mobile.es.js.map +1 -0
- package/dist/help/components/content/section/NetWorth.es.js +61 -0
- package/dist/help/components/content/section/NetWorth.es.js.map +1 -0
- package/dist/help/components/content/section/Notifications.es.js +53 -0
- package/dist/help/components/content/section/Notifications.es.js.map +1 -0
- package/dist/help/components/content/section/RecurringTransactions.es.js +72 -0
- package/dist/help/components/content/section/RecurringTransactions.es.js.map +1 -0
- package/dist/help/components/content/section/Spending.es.js +63 -0
- package/dist/help/components/content/section/Spending.es.js.map +1 -0
- package/dist/help/components/content/section/Transactions.es.js +209 -0
- package/dist/help/components/content/section/Transactions.es.js.map +1 -0
- package/dist/help/components/content/section/Trends.es.js +43 -0
- package/dist/help/components/content/section/Trends.es.js.map +1 -0
- package/dist/help/components/content/section/index.es.js +37 -0
- package/dist/help/components/content/section/index.es.js.map +1 -0
- package/dist/help/components/requestsupport/ContactSupport.es.js +90 -0
- package/dist/help/components/requestsupport/ContactSupport.es.js.map +1 -0
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js +99 -0
- package/dist/help/components/requestsupport/HelpByCategoryList.es.js.map +1 -0
- package/dist/help/components/requestsupport/MissingInstitution.es.js +103 -0
- package/dist/help/components/requestsupport/MissingInstitution.es.js.map +1 -0
- package/dist/help/components/requestsupport/PopularTopicsDrawer.es.js +52 -0
- package/dist/help/components/requestsupport/PopularTopicsDrawer.es.js.map +1 -0
- package/dist/help/components/requestsupport/PopularTopicsList.es.js +24 -0
- package/dist/help/components/requestsupport/PopularTopicsList.es.js.map +1 -0
- package/dist/help/components/requestsupport/PopularTopicsRow.es.js +40 -0
- package/dist/help/components/requestsupport/PopularTopicsRow.es.js.map +1 -0
- package/dist/help/components/requestsupport/RequestSupport.es.js +172 -0
- package/dist/help/components/requestsupport/RequestSupport.es.js.map +1 -0
- package/dist/help/components/requestsupport/RequestSupportFooter.es.js +46 -0
- package/dist/help/components/requestsupport/RequestSupportFooter.es.js.map +1 -0
- package/dist/help/components/requestsupport/RequestSupportHeader.es.js +47 -0
- package/dist/help/components/requestsupport/RequestSupportHeader.es.js.map +1 -0
- package/dist/help/components/requestsupport/RequestSupportInstitution.es.js +68 -0
- package/dist/help/components/requestsupport/RequestSupportInstitution.es.js.map +1 -0
- package/dist/help/components/requestsupport/SupportSuccessMessage.es.js +71 -0
- package/dist/help/components/requestsupport/SupportSuccessMessage.es.js.map +1 -0
- package/dist/help/constants/HelpImages.es.js +49 -0
- package/dist/help/constants/HelpImages.es.js.map +1 -0
- package/dist/help/index.es.js +4 -26
- package/dist/help/utils/getInstitutionsBasedOnGuid.es.js +16 -0
- package/dist/help/utils/getInstitutionsBasedOnGuid.es.js.map +1 -0
- package/dist/insights/components/feed/Header.es.js +75 -0
- package/dist/insights/components/feed/Header.es.js.map +1 -0
- package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.es.js +12 -0
- package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.es.js.map +1 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.es.js +22 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.es.js.map +1 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/images/AmericanUpcomingTaxDeadlineAlert.es.js +274 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/images/AmericanUpcomingTaxDeadlineAlert.es.js.map +1 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/images/UpcomingTaxDeadlineAlertCIBC.es.js +56 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/images/UpcomingTaxDeadlineAlertCIBC.es.js.map +1 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.es.js +35 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.es.js.map +1 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.es.js +41 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.es.js.map +1 -0
- package/dist/insights/components/insights/CashBack/CashBack.es.js +45 -0
- package/dist/insights/components/insights/CashBack/CashBack.es.js.map +1 -0
- package/dist/insights/components/insights/CashBack/images/CashBack.es.js +6 -0
- package/dist/insights/components/insights/CashBack/images/CashBack.es.js.map +1 -0
- package/dist/insights/components/insights/CategoryBudget/CategoryBudget.es.js +55 -0
- package/dist/insights/components/insights/CategoryBudget/CategoryBudget.es.js.map +1 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.es.js +46 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.es.js.map +1 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.es.js +48 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.es.js.map +1 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.es.js +66 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.es.js.map +1 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/images/CelebrateCreditCardPayoffDark.es.js +85 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/images/CelebrateCreditCardPayoffDark.es.js.map +1 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/images/CelebrateCreditCardPayoffLight.es.js +85 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/images/CelebrateCreditCardPayoffLight.es.js.map +1 -0
- package/dist/insights/components/insights/CustomTransaction/CustomTransaction.es.js +24 -0
- package/dist/insights/components/insights/CustomTransaction/CustomTransaction.es.js.map +1 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.es.js +120 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.es.js.map +1 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.es.js +143 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.es.js.map +1 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.es.js +20 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.es.js.map +1 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.es.js +29 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.es.js.map +1 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.es.js +20 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.es.js.map +1 -0
- package/dist/insights/components/insights/FederalBankHoliday/images/FederalBankHoliday.es.js +55 -0
- package/dist/insights/components/insights/FederalBankHoliday/images/FederalBankHoliday.es.js.map +1 -0
- package/dist/insights/components/insights/FederalBankHoliday/images/FederalBankHolidayMUI.es.js +494 -0
- package/dist/insights/components/insights/FederalBankHoliday/images/FederalBankHolidayMUI.es.js.map +1 -0
- package/dist/insights/components/insights/FederalBankHoliday/images/FederalHolidayCibc.es.js +88 -0
- package/dist/insights/components/insights/FederalBankHoliday/images/FederalHolidayCibc.es.js.map +1 -0
- package/dist/insights/components/insights/MarketingHub/Offer.es.js +44 -0
- package/dist/insights/components/insights/MarketingHub/Offer.es.js.map +1 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.es.js +33 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.es.js.map +1 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.es.js +29 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.es.js.map +1 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.es.js +42 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.es.js.map +1 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.es.js +27 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.es.js.map +1 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.es.js +28 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.es.js.map +1 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.es.js +33 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.es.js.map +1 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.es.js +37 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.es.js.map +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.es.js +35 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.es.js.map +1 -0
- package/dist/insights/components/insights/P2pCategorization/P2pCategorization.es.js +20 -0
- package/dist/insights/components/insights/P2pCategorization/P2pCategorization.es.js.map +1 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.es.js +83 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.es.js.map +1 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.es.js +42 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.es.js.map +1 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.es.js +40 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.es.js.map +1 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.es.js +19 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.es.js.map +1 -0
- package/dist/insights/components/insights/SharedDeposit/SharedDeposit.es.js +104 -0
- package/dist/insights/components/insights/SharedDeposit/SharedDeposit.es.js.map +1 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.es.js +37 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.es.js.map +1 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.es.js +25 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.es.js.map +1 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.es.js +36 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.es.js.map +1 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.es.js +38 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.es.js.map +1 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.es.js +86 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.es.js.map +1 -0
- package/dist/insights/components/insights/UserFeedback/StyledToggleButton.es.js +34 -0
- package/dist/insights/components/insights/UserFeedback/StyledToggleButton.es.js.map +1 -0
- package/dist/insights/components/insights/UserFeedback/UserFeedback.es.js +133 -0
- package/dist/insights/components/insights/UserFeedback/UserFeedback.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.es.js +59 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.es.js +23 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.es.js +51 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_0.es.js +6 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_0.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_1.es.js +6 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_1.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_2.es.js +6 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_2.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_3.es.js +6 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_3.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_4.es.js +6 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_4.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_5.es.js +6 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_5.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_6.es.js +6 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_6.es.js.map +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_7.es.js +6 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/images/no_spend_7.es.js.map +1 -0
- package/dist/insights/components/shared/BottomSheet.es.js +39 -0
- package/dist/insights/components/shared/BottomSheet.es.js.map +1 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.es.js +66 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.es.js.map +1 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.es.js +60 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.es.js.map +1 -0
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.es.js +76 -0
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChart.es.js +147 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChart.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChartV2.es.js +148 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChartV2.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegend.es.js +75 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegend.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.es.js +80 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.es.js +73 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +4 -1
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js +32 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.es.js +52 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.es.js +46 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.es.js +118 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.es.js +73 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.es.js +73 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.es.js +116 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.es.js.map +1 -0
- package/dist/insights/components/shared/Charts/EmptyBarChart.es.js +14 -0
- package/dist/insights/components/shared/Charts/EmptyBarChart.es.js.map +1 -0
- package/dist/insights/components/shared/Confetti.es.js +32 -0
- package/dist/insights/components/shared/Confetti.es.js.map +1 -0
- package/dist/insights/components/shared/ConnectionCard.es.js +90 -0
- package/dist/insights/components/shared/ConnectionCard.es.js.map +1 -0
- package/dist/insights/components/shared/Coupon.es.js +66 -0
- package/dist/insights/components/shared/Coupon.es.js.map +1 -0
- package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.es.js +34 -0
- package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.es.js.map +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.es.js +20 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.es.js.map +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.es.js +163 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.es.js.map +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.es.js +19 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.es.js.map +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.es.js +16 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.es.js.map +1 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDeposit.es.js +85 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDeposit.es.js.map +1 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.es.js +20 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.es.js.map +1 -0
- package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.es.js +33 -0
- package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.es.js.map +1 -0
- package/dist/insights/components/shared/DirectDeposit/LeftBox.es.js +29 -0
- package/dist/insights/components/shared/DirectDeposit/LeftBox.es.js.map +1 -0
- package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.es.js +29 -0
- package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.es.js.map +1 -0
- package/dist/insights/components/shared/DirectDeposit/RightBox.es.js +43 -0
- package/dist/insights/components/shared/DirectDeposit/RightBox.es.js.map +1 -0
- package/dist/insights/components/shared/DiscoveredAccountsConnect.es.js +82 -0
- package/dist/insights/components/shared/DiscoveredAccountsConnect.es.js.map +1 -0
- package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.es.js +58 -0
- package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.es.js.map +1 -0
- package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.es.js +264 -0
- package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.es.js.map +1 -0
- package/dist/insights/components/shared/ErrorCard/ErrorCard.es.js +76 -0
- package/dist/insights/components/shared/ErrorCard/ErrorCard.es.js.map +1 -0
- package/dist/insights/components/shared/ErrorCard/images/ErrorViewCibc.es.js +57 -0
- package/dist/insights/components/shared/ErrorCard/images/ErrorViewCibc.es.js.map +1 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.es.js +47 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.es.js.map +1 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.es.js +16 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.es.js.map +1 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.es.js +29 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.es.js.map +1 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.es.js +50 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.es.js.map +1 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackText.es.js +45 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackText.es.js.map +1 -0
- package/dist/insights/components/shared/GoalProgress.es.js +42 -0
- package/dist/insights/components/shared/GoalProgress.es.js.map +1 -0
- package/dist/insights/components/shared/GradientBox.es.js +33 -0
- package/dist/insights/components/shared/GradientBox.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/BeatCard.es.js +31 -0
- package/dist/insights/components/shared/InsightsCard/BeatCard.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.es.js +32 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/CardButtonSection.es.js +20 -0
- package/dist/insights/components/shared/InsightsCard/CardButtonSection.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/CardError.es.js +30 -0
- package/dist/insights/components/shared/InsightsCard/CardError.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/CardFooter.es.js +24 -0
- package/dist/insights/components/shared/InsightsCard/CardFooter.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/CardHeader.es.js +28 -0
- package/dist/insights/components/shared/InsightsCard/CardHeader.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.es.js +30 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/CardLoading.es.js +21 -0
- package/dist/insights/components/shared/InsightsCard/CardLoading.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.es.js +38 -0
- package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescription.es.js +43 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescription.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.es.js +43 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/Description.es.js +31 -0
- package/dist/insights/components/shared/InsightsCard/Description.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.es.js +30 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.es.js +69 -0
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/FeedbackCard.es.js +120 -0
- package/dist/insights/components/shared/InsightsCard/FeedbackCard.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/InsightButton.es.js +25 -0
- package/dist/insights/components/shared/InsightsCard/InsightButton.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescription.es.js +44 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescription.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.es.js +42 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.es.js.map +1 -0
- package/dist/insights/components/shared/InsightsCard/images/BeatErrorView.es.js +728 -0
- package/dist/insights/components/shared/InsightsCard/images/BeatErrorView.es.js.map +1 -0
- package/dist/insights/components/shared/MenuAction.es.js +68 -0
- package/dist/insights/components/shared/MenuAction.es.js.map +1 -0
- package/dist/insights/components/shared/MiniInsightCard.es.js +69 -0
- package/dist/insights/components/shared/MiniInsightCard.es.js.map +1 -0
- package/dist/insights/components/shared/P2P/P2PMultipleCategorization.es.js +107 -0
- package/dist/insights/components/shared/P2P/P2PMultipleCategorization.es.js.map +1 -0
- package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.es.js +75 -0
- package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.es.js.map +1 -0
- package/dist/insights/components/shared/ProgressBar.es.js +39 -0
- package/dist/insights/components/shared/ProgressBar.es.js.map +1 -0
- package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.es.js +55 -0
- package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.es.js.map +1 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.es.js +77 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.es.js.map +1 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.es.js +12 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.es.js.map +1 -0
- package/dist/insights/components/shared/StatusIndicator.es.js +69 -0
- package/dist/insights/components/shared/StatusIndicator.es.js.map +1 -0
- package/dist/insights/components/shared/ThemedSVGImage.es.js +49 -0
- package/dist/insights/components/shared/ThemedSVGImage.es.js.map +1 -0
- package/dist/insights/components/shared/TransactionCard.es.js +93 -0
- package/dist/insights/components/shared/TransactionCard.es.js.map +1 -0
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.es.js +23 -0
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.es.js.map +1 -0
- package/dist/insights/components/shared/images/BarChartEmptyState.es.js +101 -0
- package/dist/insights/components/shared/images/BarChartEmptyState.es.js.map +1 -0
- package/dist/insights/components/shared/images/CouponLeft.es.js +104 -0
- package/dist/insights/components/shared/images/CouponLeft.es.js.map +1 -0
- package/dist/insights/components/shared/images/CouponLeftDark.es.js +104 -0
- package/dist/insights/components/shared/images/CouponLeftDark.es.js.map +1 -0
- package/dist/insights/components/shared/images/CouponPerferation.es.js +38 -0
- package/dist/insights/components/shared/images/CouponPerferation.es.js.map +1 -0
- package/dist/insights/components/shared/images/EmptyBarChart.es.js +101 -0
- package/dist/insights/components/shared/images/EmptyBarChart.es.js.map +1 -0
- package/dist/insights/components/shared/images/LinedCardZeroState.es.js +91 -0
- package/dist/insights/components/shared/images/LinedCardZeroState.es.js.map +1 -0
- package/dist/insights/components/shared/images/SaveEnoughToLiveOnBottom.es.js +21 -0
- package/dist/insights/components/shared/images/SaveEnoughToLiveOnBottom.es.js.map +1 -0
- package/dist/insights/components/shared/images/SaveEnoughToLiveOnTop.es.js +815 -0
- package/dist/insights/components/shared/images/SaveEnoughToLiveOnTop.es.js.map +1 -0
- package/dist/insights/hooks/useContainerDimensions.es.js +26 -0
- package/dist/insights/hooks/useContainerDimensions.es.js.map +1 -0
- package/dist/insights/images/Loading.es.js +6 -0
- package/dist/insights/images/Loading.es.js.map +1 -0
- package/dist/insights/index.es.js +183 -4871
- package/dist/insights/types/Charts/BarChart.d.ts +2 -11
- package/dist/insights/types/CommonBeat.es.js +8 -0
- package/dist/insights/types/CommonBeat.es.js.map +1 -0
- package/dist/investments/InvestmentsWidget.es.js +98 -0
- package/dist/investments/InvestmentsWidget.es.js.map +1 -0
- package/dist/investments/components/Allocation.es.js +55 -0
- package/dist/investments/components/Allocation.es.js.map +1 -0
- package/dist/investments/components/Analysis.es.js +167 -0
- package/dist/investments/components/Analysis.es.js.map +1 -0
- package/dist/investments/components/AnalysisDetails.es.js +86 -0
- package/dist/investments/components/AnalysisDetails.es.js.map +1 -0
- package/dist/investments/components/EmptyStateFooterComponent.es.js +52 -0
- package/dist/investments/components/EmptyStateFooterComponent.es.js.map +1 -0
- package/dist/investments/components/HeaderCell.es.js +28 -0
- package/dist/investments/components/HeaderCell.es.js.map +1 -0
- package/dist/investments/components/HoldingDrawer.es.js +343 -0
- package/dist/investments/components/HoldingDrawer.es.js.map +1 -0
- package/dist/investments/components/HoldingTable.es.js +199 -0
- package/dist/investments/components/HoldingTable.es.js.map +1 -0
- package/dist/investments/components/InfoToolTip.es.js +45 -0
- package/dist/investments/components/InfoToolTip.es.js.map +1 -0
- package/dist/investments/components/Overview.es.js +456 -0
- package/dist/investments/components/Overview.es.js.map +1 -0
- package/dist/investments/components/TabTitle.es.js +12 -0
- package/dist/investments/components/TabTitle.es.js.map +1 -0
- package/dist/investments/components/allocation/InvestementAllocationList.es.js +136 -0
- package/dist/investments/components/allocation/InvestementAllocationList.es.js.map +1 -0
- package/dist/investments/components/allocation/InvestmentsAllocationChart.es.js +86 -0
- package/dist/investments/components/allocation/InvestmentsAllocationChart.es.js.map +1 -0
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.es.js +103 -0
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.es.js.map +1 -0
- package/dist/investments/index.es.js +2 -1675
- package/dist/merchants/components/MerchantLookup.es.js +91 -0
- package/dist/merchants/components/MerchantLookup.es.js.map +1 -0
- package/dist/merchants/index.es.js +2 -76
- package/dist/microinsights/InsightsMicroWidget.es.js +109 -0
- package/dist/microinsights/InsightsMicroWidget.es.js.map +1 -0
- package/dist/microinsights/MicroCardTemplate.es.js +159 -0
- package/dist/microinsights/MicroCardTemplate.es.js.map +1 -0
- package/dist/microinsights/MicroWidgetContainer.es.js +24 -0
- package/dist/microinsights/MicroWidgetContainer.es.js.map +1 -0
- package/dist/microinsights/Spinner.es.js +19 -0
- package/dist/microinsights/Spinner.es.js.map +1 -0
- package/dist/microinsights/analytics.es.js +12 -0
- package/dist/microinsights/analytics.es.js.map +1 -0
- package/dist/microinsights/beaticons/AreaChartIcon.es.js +18 -0
- package/dist/microinsights/beaticons/AreaChartIcon.es.js.map +1 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.es.js +23 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.es.js.map +1 -0
- package/dist/microinsights/beaticons/BeatCategoryIcon.es.js +16 -0
- package/dist/microinsights/beaticons/BeatCategoryIcon.es.js.map +1 -0
- package/dist/microinsights/beaticons/BeatIcon.es.js +162 -0
- package/dist/microinsights/beaticons/BeatIcon.es.js.map +1 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.es.js +25 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.es.js.map +1 -0
- package/dist/microinsights/beaticons/BeatMerchantLogo.es.js +20 -0
- package/dist/microinsights/beaticons/BeatMerchantLogo.es.js.map +1 -0
- package/dist/microinsights/beaticons/ChartFilledIcon.es.js +21 -0
- package/dist/microinsights/beaticons/ChartFilledIcon.es.js.map +1 -0
- package/dist/microinsights/beaticons/InstitutionLogoIcon.es.js +12 -0
- package/dist/microinsights/beaticons/InstitutionLogoIcon.es.js.map +1 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.es.js +17 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.es.js.map +1 -0
- package/dist/microinsights/beaticons/ZeroStateIcon.es.js +722 -0
- package/dist/microinsights/beaticons/ZeroStateIcon.es.js.map +1 -0
- package/dist/microinsights/cards/InsightCard.es.js +71 -0
- package/dist/microinsights/cards/InsightCard.es.js.map +1 -0
- package/dist/microinsights/cards/NoRelevantInsightsCard.es.js +38 -0
- package/dist/microinsights/cards/NoRelevantInsightsCard.es.js.map +1 -0
- package/dist/microinsights/cards/ViewMoreMicroCard.es.js +43 -0
- package/dist/microinsights/cards/ViewMoreMicroCard.es.js.map +1 -0
- package/dist/microinsights/cards/ZeroStateCard.es.js +32 -0
- package/dist/microinsights/cards/ZeroStateCard.es.js.map +1 -0
- package/dist/microinsights/carousel/BeatList.es.js +37 -0
- package/dist/microinsights/carousel/BeatList.es.js.map +1 -0
- package/dist/microinsights/carousel/CarouselControls.es.js +63 -0
- package/dist/microinsights/carousel/CarouselControls.es.js.map +1 -0
- package/dist/microinsights/carousel/CarouselHeader.es.js +39 -0
- package/dist/microinsights/carousel/CarouselHeader.es.js.map +1 -0
- package/dist/microinsights/carousel/MicroBeatCarousel.es.js +147 -0
- package/dist/microinsights/carousel/MicroBeatCarousel.es.js.map +1 -0
- package/dist/microinsights/constants/Analytics.es.js +148 -0
- package/dist/microinsights/constants/Analytics.es.js.map +1 -0
- package/dist/microinsights/constants/App.es.js +11 -0
- package/dist/microinsights/constants/App.es.js.map +1 -0
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.es.js +17 -0
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.es.js.map +1 -0
- package/dist/microinsights/context/hooks.es.js +27 -0
- package/dist/microinsights/context/hooks.es.js.map +1 -0
- package/dist/microinsights/index.es.js +28 -826
- package/dist/microinsights/stores/AppStore.es.js +27 -0
- package/dist/microinsights/stores/AppStore.es.js.map +1 -0
- package/dist/microinsights/stores/CopyStore.es.js +34 -0
- package/dist/microinsights/stores/CopyStore.es.js.map +1 -0
- package/dist/microinsights/stores/InsightsMicroWidgetStore.es.js +33 -0
- package/dist/microinsights/stores/InsightsMicroWidgetStore.es.js.map +1 -0
- package/dist/microinsights/utils/DataSeries.es.js +11 -0
- package/dist/microinsights/utils/DataSeries.es.js.map +1 -0
- package/dist/microinsights/utils/colorType.es.js +13 -0
- package/dist/microinsights/utils/colorType.es.js.map +1 -0
- package/dist/networth/NetWorthMicroWidget.es.js +40 -0
- package/dist/networth/NetWorthMicroWidget.es.js.map +1 -0
- package/dist/networth/NetWorthWidget.es.js +78 -0
- package/dist/networth/NetWorthWidget.es.js.map +1 -0
- package/dist/networth/components/AssetsLiabilitiesDetail.es.js +158 -0
- package/dist/networth/components/AssetsLiabilitiesDetail.es.js.map +1 -0
- package/dist/networth/components/GainsLossesDetail.es.js +137 -0
- package/dist/networth/components/GainsLossesDetail.es.js.map +1 -0
- package/dist/networth/components/NetWorthChange.es.js +34 -0
- package/dist/networth/components/NetWorthChange.es.js.map +1 -0
- package/dist/networth/components/NetWorthChart.es.js +58 -0
- package/dist/networth/components/NetWorthChart.es.js.map +1 -0
- package/dist/networth/components/NetWorthList.es.js +99 -0
- package/dist/networth/components/NetWorthList.es.js.map +1 -0
- package/dist/networth/components/NetWorthListItem.es.js +50 -0
- package/dist/networth/components/NetWorthListItem.es.js.map +1 -0
- package/dist/networth/components/NetWorthSummary.es.js +38 -0
- package/dist/networth/components/NetWorthSummary.es.js.map +1 -0
- package/dist/networth/components/micro/NetworthData.es.js +49 -0
- package/dist/networth/components/micro/NetworthData.es.js.map +1 -0
- package/dist/networth/components/micro/ZeroState.es.js +31 -0
- package/dist/networth/components/micro/ZeroState.es.js.map +1 -0
- package/dist/networth/index.es.js +4 -565
- package/dist/notifications/components/DateRow.es.js +23 -0
- package/dist/notifications/components/DateRow.es.js.map +1 -0
- package/dist/notifications/components/NotificationBadge.es.js +33 -0
- package/dist/notifications/components/NotificationBadge.es.js.map +1 -0
- package/dist/notifications/components/NotificationCard.es.js +56 -0
- package/dist/notifications/components/NotificationCard.es.js.map +1 -0
- package/dist/notifications/components/NotificationDrawer.es.js +47 -0
- package/dist/notifications/components/NotificationDrawer.es.js.map +1 -0
- package/dist/notifications/components/NotificationList.es.js +42 -0
- package/dist/notifications/components/NotificationList.es.js.map +1 -0
- package/dist/notifications/components/NotificationsEmptyState.es.js +49 -0
- package/dist/notifications/components/NotificationsEmptyState.es.js.map +1 -0
- package/dist/notifications/constants/NotificationConstants.es.js +24 -0
- package/dist/notifications/constants/NotificationConstants.es.js.map +1 -0
- package/dist/notifications/index.es.js +6 -198
- package/dist/recurringtransactions/RecurringTransactionsMicroWidget.es.js +54 -0
- package/dist/recurringtransactions/RecurringTransactionsMicroWidget.es.js.map +1 -0
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.es.js +47 -0
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.es.js.map +1 -0
- package/dist/recurringtransactions/RecurringTransactionsWidget.es.js +89 -0
- package/dist/recurringtransactions/RecurringTransactionsWidget.es.js.map +1 -0
- package/dist/recurringtransactions/ZeroStateMicroWidget.es.js +30 -0
- package/dist/recurringtransactions/ZeroStateMicroWidget.es.js.map +1 -0
- package/dist/recurringtransactions/components/MicroWidgetContent.es.js +103 -0
- package/dist/recurringtransactions/components/MicroWidgetContent.es.js.map +1 -0
- package/dist/recurringtransactions/components/MiniWidgetContent.es.js +45 -0
- package/dist/recurringtransactions/components/MiniWidgetContent.es.js.map +1 -0
- package/dist/recurringtransactions/components/PaymentSchedule.es.js +133 -0
- package/dist/recurringtransactions/components/PaymentSchedule.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurrenceBadges.es.js +64 -0
- package/dist/recurringtransactions/components/RecurrenceBadges.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurrenceList.es.js +87 -0
- package/dist/recurringtransactions/components/RecurrenceList.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurrenceRow.es.js +133 -0
- package/dist/recurringtransactions/components/RecurrenceRow.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurringSettingsDrawer.es.js +20 -0
- package/dist/recurringtransactions/components/RecurringSettingsDrawer.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurringStatus.es.js +114 -0
- package/dist/recurringtransactions/components/RecurringStatus.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurringTransactionDetails.es.js +181 -0
- package/dist/recurringtransactions/components/RecurringTransactionDetails.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.es.js +27 -0
- package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurringTransactionList.es.js +181 -0
- package/dist/recurringtransactions/components/RecurringTransactionList.es.js.map +1 -0
- package/dist/recurringtransactions/components/RecurringTransactions.es.js +155 -0
- package/dist/recurringtransactions/components/RecurringTransactions.es.js.map +1 -0
- package/dist/recurringtransactions/components/UpcomingRecurrenceCard.es.js +63 -0
- package/dist/recurringtransactions/components/UpcomingRecurrenceCard.es.js.map +1 -0
- package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.es.js +46 -0
- package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.es.js.map +1 -0
- package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.es.js +28 -0
- package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.es.js.map +1 -0
- package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.es.js +28 -0
- package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.es.js.map +1 -0
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.es.js +47 -0
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.es.js.map +1 -0
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.es.js +19 -0
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.es.js.map +1 -0
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.es.js +33 -0
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.es.js.map +1 -0
- package/dist/recurringtransactions/components/micro/RecurrenceLegend.es.js +37 -0
- package/dist/recurringtransactions/components/micro/RecurrenceLegend.es.js.map +1 -0
- package/dist/recurringtransactions/components/recurrencecalendar/Legend.es.js +48 -0
- package/dist/recurringtransactions/components/recurrencecalendar/Legend.es.js.map +1 -0
- package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceCalendar.es.js +111 -0
- package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceCalendar.es.js.map +1 -0
- package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceDay.es.js +48 -0
- package/dist/recurringtransactions/components/recurrencecalendar/RecurrenceDay.es.js.map +1 -0
- package/dist/recurringtransactions/components/shared/RecurringSettings.es.js +37 -0
- package/dist/recurringtransactions/components/shared/RecurringSettings.es.js.map +1 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransaction.es.js +93 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransaction.es.js.map +1 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.es.js +42 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.es.js.map +1 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/ManageExpenses.es.js +57 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/ManageExpenses.es.js.map +1 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/ManageIncome.es.js +72 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/ManageIncome.es.js.map +1 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.es.js +96 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.es.js.map +1 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringSettingsZeroState.es.js +47 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringSettingsZeroState.es.js.map +1 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/SelectTransaction.es.js +45 -0
- package/dist/recurringtransactions/components/shared/recurringsettings/SelectTransaction.es.js.map +1 -0
- package/dist/recurringtransactions/index.es.js +18 -1022
- package/dist/settings/NotificationSettingsWidget.es.js +32 -0
- package/dist/settings/NotificationSettingsWidget.es.js.map +1 -0
- package/dist/settings/SettingsWidget.es.js +82 -0
- package/dist/settings/SettingsWidget.es.js.map +1 -0
- package/dist/settings/TransactionRulesWidget.es.js +28 -0
- package/dist/settings/TransactionRulesWidget.es.js.map +1 -0
- package/dist/settings/components/SettingsWidgetContents.es.js +47 -0
- package/dist/settings/components/SettingsWidgetContents.es.js.map +1 -0
- package/dist/settings/components/devices/DeviceDialog.es.js +127 -0
- package/dist/settings/components/devices/DeviceDialog.es.js.map +1 -0
- package/dist/settings/components/devices/DeviceList.es.js +125 -0
- package/dist/settings/components/devices/DeviceList.es.js.map +1 -0
- package/dist/settings/components/devices/DeviceTab.es.js +107 -0
- package/dist/settings/components/devices/DeviceTab.es.js.map +1 -0
- package/dist/settings/components/devices/DeviceTable.es.js +120 -0
- package/dist/settings/components/devices/DeviceTable.es.js.map +1 -0
- package/dist/settings/components/notifications/AccountNotificationProfile.es.js +92 -0
- package/dist/settings/components/notifications/AccountNotificationProfile.es.js.map +1 -0
- package/dist/settings/components/notifications/AccountNotificationProfiles.es.js +44 -0
- package/dist/settings/components/notifications/AccountNotificationProfiles.es.js.map +1 -0
- package/dist/settings/components/notifications/AccountProfileListItem.es.js +84 -0
- package/dist/settings/components/notifications/AccountProfileListItem.es.js.map +1 -0
- package/dist/settings/components/notifications/BudgetNotificationProfiles.es.js +14 -0
- package/dist/settings/components/notifications/BudgetNotificationProfiles.es.js.map +1 -0
- package/dist/settings/components/notifications/DeliveryMethods.es.js +78 -0
- package/dist/settings/components/notifications/DeliveryMethods.es.js.map +1 -0
- package/dist/settings/components/notifications/InsightsNotificationProfiles.es.js +14 -0
- package/dist/settings/components/notifications/InsightsNotificationProfiles.es.js.map +1 -0
- package/dist/settings/components/notifications/NotificationProfile.es.js +80 -0
- package/dist/settings/components/notifications/NotificationProfile.es.js.map +1 -0
- package/dist/settings/components/notifications/NotificationSettings.es.js +94 -0
- package/dist/settings/components/notifications/NotificationSettings.es.js.map +1 -0
- package/dist/settings/components/notifications/PersonalDetails.es.js +111 -0
- package/dist/settings/components/notifications/PersonalDetails.es.js.map +1 -0
- package/dist/settings/components/profile/ProfileTab.es.js +178 -0
- package/dist/settings/components/profile/ProfileTab.es.js.map +1 -0
- package/dist/settings/components/profile/actions/VerifyEmailAction.es.js +88 -0
- package/dist/settings/components/profile/actions/VerifyEmailAction.es.js.map +1 -0
- package/dist/settings/components/profile/actions/VerifyPhoneAction.es.js +105 -0
- package/dist/settings/components/profile/actions/VerifyPhoneAction.es.js.map +1 -0
- package/dist/settings/components/profile/actions/VerifyTokenAction.es.js +40 -0
- package/dist/settings/components/profile/actions/VerifyTokenAction.es.js.map +1 -0
- package/dist/settings/components/transactionrules/TransactionRulesTab.es.js +35 -0
- package/dist/settings/components/transactionrules/TransactionRulesTab.es.js.map +1 -0
- package/dist/settings/components/transactionrules/actions/DeleteRuleAction.es.js +34 -0
- package/dist/settings/components/transactionrules/actions/DeleteRuleAction.es.js.map +1 -0
- package/dist/settings/components/transactionrules/actions/EditCategoryAction.es.js +31 -0
- package/dist/settings/components/transactionrules/actions/EditCategoryAction.es.js.map +1 -0
- package/dist/settings/components/transactionrules/actions/EditPayeeAction.es.js +45 -0
- package/dist/settings/components/transactionrules/actions/EditPayeeAction.es.js.map +1 -0
- package/dist/settings/components/transactionrules/actions/EditRuleAction.es.js +36 -0
- package/dist/settings/components/transactionrules/actions/EditRuleAction.es.js.map +1 -0
- package/dist/settings/components/transactionrules/components/EditRuleDetails.es.js +46 -0
- package/dist/settings/components/transactionrules/components/EditRuleDetails.es.js.map +1 -0
- package/dist/settings/components/transactionrules/components/RuleListItem.es.js +26 -0
- package/dist/settings/components/transactionrules/components/RuleListItem.es.js.map +1 -0
- package/dist/settings/constants/Settings.es.js +8 -0
- package/dist/settings/constants/Settings.es.js.map +1 -0
- package/dist/settings/index.es.js +23 -892
- package/dist/spending/SpendingMiniWidget.es.js +41 -0
- package/dist/spending/SpendingMiniWidget.es.js.map +1 -0
- package/dist/spending/SpendingWidget.es.js +51 -0
- package/dist/spending/SpendingWidget.es.js.map +1 -0
- package/dist/spending/components/MiniSpendingChart.es.js +112 -0
- package/dist/spending/components/MiniSpendingChart.es.js.map +1 -0
- package/dist/spending/components/Spending.es.js +123 -0
- package/dist/spending/components/Spending.es.js.map +1 -0
- package/dist/spending/components/SpendingChart.es.js +60 -0
- package/dist/spending/components/SpendingChart.es.js.map +1 -0
- package/dist/spending/components/SpendingDonut.es.js +132 -0
- package/dist/spending/components/SpendingDonut.es.js.map +1 -0
- package/dist/spending/components/SpendingLegend.es.js +46 -0
- package/dist/spending/components/SpendingLegend.es.js.map +1 -0
- package/dist/spending/components/SpendingList.es.js +124 -0
- package/dist/spending/components/SpendingList.es.js.map +1 -0
- package/dist/spending/components/SpendingTabLabel.es.js +22 -0
- package/dist/spending/components/SpendingTabLabel.es.js.map +1 -0
- package/dist/spending/index.es.js +4 -491
- package/dist/spending/utils/SpendingData.es.js +72 -0
- package/dist/spending/utils/SpendingData.es.js.map +1 -0
- package/dist/transactions/TransactionWidget.es.js +189 -0
- package/dist/transactions/TransactionWidget.es.js.map +1 -0
- package/dist/transactions/components/shared/TransactionDetails.es.js +255 -0
- package/dist/transactions/components/shared/TransactionDetails.es.js.map +1 -0
- package/dist/transactions/components/shared/TransactionList.es.js +92 -0
- package/dist/transactions/components/shared/TransactionList.es.js.map +1 -0
- package/dist/transactions/components/shared/TransactionTable.es.js +124 -0
- package/dist/transactions/components/shared/TransactionTable.es.js.map +1 -0
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.es.js +25 -0
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/Description.es.js +85 -0
- package/dist/transactions/components/shared/transactiondetails/Description.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.es.js +49 -0
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/ManualTransactionDetails.es.js +151 -0
- package/dist/transactions/components/shared/transactiondetails/ManualTransactionDetails.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.es.js +39 -0
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.es.js +82 -0
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.es.js +161 -0
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.es.js +105 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.es.js +103 -0
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.es.js +66 -0
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.es.js +77 -0
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.es.js +90 -0
- package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.es.js +101 -0
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.es.js +150 -0
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.es.js +94 -0
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.es.js.map +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js +92 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.es.js.map +1 -0
- package/dist/transactions/components/shared/transactionlist/ZeroState.es.js +39 -0
- package/dist/transactions/components/shared/transactionlist/ZeroState.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiontable/cells/AccountCell.es.js +12 -0
- package/dist/transactions/components/shared/transactiontable/cells/AccountCell.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiontable/cells/AmountCell.es.js +30 -0
- package/dist/transactions/components/shared/transactiontable/cells/AmountCell.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiontable/cells/CategoryCell.es.js +38 -0
- package/dist/transactions/components/shared/transactiontable/cells/CategoryCell.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiontable/cells/DateCell.es.js +14 -0
- package/dist/transactions/components/shared/transactiontable/cells/DateCell.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js +46 -0
- package/dist/transactions/components/shared/transactiontable/cells/FlagCell.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiontable/cells/HeaderCell.es.js +12 -0
- package/dist/transactions/components/shared/transactiontable/cells/HeaderCell.es.js.map +1 -0
- package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.es.js +28 -0
- package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.es.js.map +1 -0
- package/dist/transactions/components/splitmanager/SplitManager.es.js +68 -0
- package/dist/transactions/components/splitmanager/SplitManager.es.js.map +1 -0
- package/dist/transactions/components/splitmanager/SplitRow.es.js +119 -0
- package/dist/transactions/components/splitmanager/SplitRow.es.js.map +1 -0
- package/dist/transactions/components/tagmanager/Header.es.js +68 -0
- package/dist/transactions/components/tagmanager/Header.es.js.map +1 -0
- package/dist/transactions/components/tagmanager/SearchBox.es.js +48 -0
- package/dist/transactions/components/tagmanager/SearchBox.es.js.map +1 -0
- package/dist/transactions/components/tagmanager/TagManager.es.js +36 -0
- package/dist/transactions/components/tagmanager/TagManager.es.js.map +1 -0
- package/dist/transactions/components/tagmanager/TagRow.es.js +108 -0
- package/dist/transactions/components/tagmanager/TagRow.es.js.map +1 -0
- package/dist/transactions/components/transactionwidget/AddAccountModal.es.js +33 -0
- package/dist/transactions/components/transactionwidget/AddAccountModal.es.js.map +1 -0
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.es.js +44 -0
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.es.js.map +1 -0
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.es.js +26 -0
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.es.js.map +1 -0
- package/dist/transactions/constants/Actions.es.js +22 -0
- package/dist/transactions/constants/Actions.es.js.map +1 -0
- package/dist/transactions/constants/OnClickEvents.es.js +50 -0
- package/dist/transactions/constants/OnClickEvents.es.js.map +1 -0
- package/dist/transactions/context/hooks.es.js +12 -0
- package/dist/transactions/context/hooks.es.js.map +1 -0
- package/dist/transactions/index.es.js +17 -604
- package/dist/transactions/utils/Filters.es.js +11 -0
- package/dist/transactions/utils/Filters.es.js.map +1 -0
- package/dist/transactions/utils/Transactions.es.js +24 -0
- package/dist/transactions/utils/Transactions.es.js.map +1 -0
- package/dist/trends/TrendsFullWidget.es.js +154 -0
- package/dist/trends/TrendsFullWidget.es.js.map +1 -0
- package/dist/trends/TrendsMicroWidget.es.js +72 -0
- package/dist/trends/TrendsMicroWidget.es.js.map +1 -0
- package/dist/trends/TrendsMiniWidget.es.js +43 -0
- package/dist/trends/TrendsMiniWidget.es.js.map +1 -0
- package/dist/trends/TrendsWidget.es.js +207 -0
- package/dist/trends/TrendsWidget.es.js.map +1 -0
- package/dist/trends/ZeroStateMicroWidget.es.js +30 -0
- package/dist/trends/ZeroStateMicroWidget.es.js.map +1 -0
- package/dist/trends/components/CategoriesList.es.js +64 -0
- package/dist/trends/components/CategoriesList.es.js.map +1 -0
- package/dist/trends/components/CategoriesListItem.es.js +44 -0
- package/dist/trends/components/CategoriesListItem.es.js.map +1 -0
- package/dist/trends/components/CategoryDetailChart.es.js +45 -0
- package/dist/trends/components/CategoryDetailChart.es.js.map +1 -0
- package/dist/trends/components/CategoryDetails.es.js +104 -0
- package/dist/trends/components/CategoryDetails.es.js.map +1 -0
- package/dist/trends/components/DateRangeText.es.js +26 -0
- package/dist/trends/components/DateRangeText.es.js.map +1 -0
- package/dist/trends/components/SpendingChart.es.js +28 -0
- package/dist/trends/components/SpendingChart.es.js.map +1 -0
- package/dist/trends/components/TrendsChart.es.js +63 -0
- package/dist/trends/components/TrendsChart.es.js.map +1 -0
- package/dist/trends/components/TrendsChartTotals.es.js +58 -0
- package/dist/trends/components/TrendsChartTotals.es.js.map +1 -0
- package/dist/trends/components/TrendsDrawer.es.js +38 -0
- package/dist/trends/components/TrendsDrawer.es.js.map +1 -0
- package/dist/trends/components/TrendsInsights.es.js +38 -0
- package/dist/trends/components/TrendsInsights.es.js.map +1 -0
- package/dist/trends/components/TrendsMicroSpendingIncomeBox.es.js +82 -0
- package/dist/trends/components/TrendsMicroSpendingIncomeBox.es.js.map +1 -0
- package/dist/trends/components/TrendsTableContainer.es.js +56 -0
- package/dist/trends/components/TrendsTableContainer.es.js.map +1 -0
- package/dist/trends/components/TrendsViewToggle.es.js +28 -0
- package/dist/trends/components/TrendsViewToggle.es.js.map +1 -0
- package/dist/trends/components/trendstable/AccessibleSortIcon.es.js +49 -0
- package/dist/trends/components/trendstable/AccessibleSortIcon.es.js.map +1 -0
- package/dist/trends/components/trendstable/AmountCell.es.js +24 -0
- package/dist/trends/components/trendstable/AmountCell.es.js.map +1 -0
- package/dist/trends/components/trendstable/CategoryCell.es.js +30 -0
- package/dist/trends/components/trendstable/CategoryCell.es.js.map +1 -0
- package/dist/trends/components/trendstable/HeaderCell.es.js +12 -0
- package/dist/trends/components/trendstable/HeaderCell.es.js.map +1 -0
- package/dist/trends/components/trendstable/TrendsTable.es.js +53 -0
- package/dist/trends/components/trendstable/TrendsTable.es.js.map +1 -0
- package/dist/trends/constants/TrendsInsights.es.js +40 -0
- package/dist/trends/constants/TrendsInsights.es.js.map +1 -0
- package/dist/trends/constants/TrendsWidget.es.js +6 -0
- package/dist/trends/constants/TrendsWidget.es.js.map +1 -0
- package/dist/trends/index.es.js +8 -1612
- package/dist/trends/utils/SpendingData.es.js +53 -0
- package/dist/trends/utils/SpendingData.es.js.map +1 -0
- package/dist/trends/utils/TrendsTable.es.js +101 -0
- package/dist/trends/utils/TrendsTable.es.js.map +1 -0
- package/dist/trends/utils/TrendsWidget.es.js +11 -0
- package/dist/trends/utils/TrendsWidget.es.js.map +1 -0
- package/dist/trends/utils/shared.es.js +18 -0
- package/dist/trends/utils/shared.es.js.map +1 -0
- package/package.json +34 -39
- package/dist/Account-DR7Plrqy.mjs +0 -119
- package/dist/Account-DR7Plrqy.mjs.map +0 -1
- package/dist/AccountDetailsDrawer-BcwBkxIE.mjs +0 -922
- package/dist/AccountDetailsDrawer-BcwBkxIE.mjs.map +0 -1
- package/dist/AccountDetailsHeader-C84CSN2K.mjs +0 -230
- package/dist/AccountDetailsHeader-C84CSN2K.mjs.map +0 -1
- package/dist/AccountUtils-Cbh8r9cP.mjs +0 -29
- package/dist/AccountUtils-Cbh8r9cP.mjs.map +0 -1
- package/dist/Analytics-B8AaC22u.mjs +0 -54
- package/dist/Analytics-B8AaC22u.mjs.map +0 -1
- package/dist/Analytics-D-jdcL72.mjs +0 -140
- package/dist/Analytics-D-jdcL72.mjs.map +0 -1
- package/dist/ApiEndpoints-DXwIYNUV.mjs +0 -50
- package/dist/ApiEndpoints-DXwIYNUV.mjs.map +0 -1
- package/dist/BeatMaterialIcon-1KOfRZrA.mjs +0 -27
- package/dist/BeatMaterialIcon-1KOfRZrA.mjs.map +0 -1
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +0 -75
- package/dist/BudgetUtil-Bg2AQJpQ.mjs.map +0 -1
- package/dist/Category-DEKZGLYe.mjs +0 -302
- package/dist/Category-DEKZGLYe.mjs.map +0 -1
- package/dist/CategorySelectorDrawer-BIsncOhX.mjs +0 -431
- package/dist/CategorySelectorDrawer-BIsncOhX.mjs.map +0 -1
- package/dist/Connect-BH0Pt6zc.mjs +0 -43
- package/dist/Connect-BH0Pt6zc.mjs.map +0 -1
- package/dist/ConnectCard-BdxyIUkW.mjs +0 -55
- package/dist/ConnectCard-BdxyIUkW.mjs.map +0 -1
- package/dist/ConnectDrawer-CYP3sd5f.mjs +0 -58
- package/dist/ConnectDrawer-CYP3sd5f.mjs.map +0 -1
- package/dist/ConnectionsDrawer-Pjc0E6uI.mjs +0 -54
- package/dist/ConnectionsDrawer-Pjc0E6uI.mjs.map +0 -1
- package/dist/CurrencyDialog-DumQCTPO.mjs +0 -374
- package/dist/CurrencyDialog-DumQCTPO.mjs.map +0 -1
- package/dist/CurrencyInput-DaGEQaLW.mjs +0 -88
- package/dist/CurrencyInput-DaGEQaLW.mjs.map +0 -1
- package/dist/CurrencyText-CCbE6MmF.mjs +0 -21
- package/dist/CurrencyText-CCbE6MmF.mjs.map +0 -1
- package/dist/DateFormats-HudZ3Bjs.mjs +0 -65
- package/dist/DateFormats-HudZ3Bjs.mjs.map +0 -1
- package/dist/DateUtil-Bl7d7C1W.mjs +0 -76
- package/dist/DateUtil-Bl7d7C1W.mjs.map +0 -1
- package/dist/DebtUtils-i4pI2Uoe.mjs +0 -154
- package/dist/DebtUtils-i4pI2Uoe.mjs.map +0 -1
- package/dist/Dialog-Bvd2n8hz.mjs +0 -67
- package/dist/Dialog-Bvd2n8hz.mjs.map +0 -1
- package/dist/Donut-SzzfZDHF.mjs +0 -89
- package/dist/Donut-SzzfZDHF.mjs.map +0 -1
- package/dist/Drawer-DLUMdk6P.mjs +0 -201
- package/dist/Drawer-DLUMdk6P.mjs.map +0 -1
- package/dist/EmbeddedCard-DCR-ziFE.mjs +0 -860
- package/dist/EmbeddedCard-DCR-ziFE.mjs.map +0 -1
- package/dist/EmptyState-CJUDc3kD.mjs +0 -85
- package/dist/EmptyState-CJUDc3kD.mjs.map +0 -1
- package/dist/Error-Dtw6yxkf.mjs +0 -85
- package/dist/Error-Dtw6yxkf.mjs.map +0 -1
- package/dist/ErrorBoundary-C7BlHx04.mjs +0 -27
- package/dist/ErrorBoundary-C7BlHx04.mjs.map +0 -1
- package/dist/ExportCsvAction-C2Y4D7Kn.mjs +0 -25
- package/dist/ExportCsvAction-C2Y4D7Kn.mjs.map +0 -1
- package/dist/GlobalAccountFilter-BhzR5Vb1.mjs +0 -230
- package/dist/GlobalAccountFilter-BhzR5Vb1.mjs.map +0 -1
- package/dist/GlobalCopyApi-CLhyon-B.mjs +0 -145
- package/dist/GlobalCopyApi-CLhyon-B.mjs.map +0 -1
- package/dist/GoalsUtil-C9EnLWvC.mjs +0 -108
- package/dist/GoalsUtil-C9EnLWvC.mjs.map +0 -1
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -7
- package/dist/HeaderCell-P8w6CmfO.mjs.map +0 -1
- package/dist/Help-CTmDMtG2.mjs +0 -3210
- package/dist/Help-CTmDMtG2.mjs.map +0 -1
- package/dist/Help-CkQTjORd.mjs +0 -300
- package/dist/Help-CkQTjORd.mjs.map +0 -1
- package/dist/IconBacking-DgT8DCeh.mjs +0 -40
- package/dist/IconBacking-DgT8DCeh.mjs.map +0 -1
- package/dist/InformationTooltip-4su8bn1e.mjs +0 -42
- package/dist/InformationTooltip-4su8bn1e.mjs.map +0 -1
- package/dist/InvestmentUtil-BItV7uEs.mjs +0 -135
- package/dist/InvestmentUtil-BItV7uEs.mjs.map +0 -1
- package/dist/LineChart-CUfiH86G.mjs +0 -613
- package/dist/LineChart-CUfiH86G.mjs.map +0 -1
- package/dist/ListItemAction-BqUCLj_w.mjs +0 -70
- package/dist/ListItemAction-BqUCLj_w.mjs.map +0 -1
- package/dist/ListItemRow-kH1rn8Xu.mjs +0 -68
- package/dist/ListItemRow-kH1rn8Xu.mjs.map +0 -1
- package/dist/ListItemWrapper-DRse79Iu.mjs +0 -44
- package/dist/ListItemWrapper-DRse79Iu.mjs.map +0 -1
- package/dist/Loader-CxeBwuPG.mjs +0 -22
- package/dist/Loader-CxeBwuPG.mjs.map +0 -1
- package/dist/Localization-DnoVyBNK.mjs +0 -39
- package/dist/Localization-DnoVyBNK.mjs.map +0 -1
- package/dist/ManageIncome-CRSMKFWt.mjs +0 -906
- package/dist/ManageIncome-CRSMKFWt.mjs.map +0 -1
- package/dist/MicroWidgetContainer-B2NnKBgW.mjs +0 -46
- package/dist/MicroWidgetContainer-B2NnKBgW.mjs.map +0 -1
- package/dist/MiniWidgetContainer-Bmv_WeUd.mjs +0 -67
- package/dist/MiniWidgetContainer-Bmv_WeUd.mjs.map +0 -1
- package/dist/NetWorthUtils-Dj7CgAg2.mjs +0 -96
- package/dist/NetWorthUtils-Dj7CgAg2.mjs.map +0 -1
- package/dist/Notification-DTNYSd8P.mjs +0 -8
- package/dist/Notification-DTNYSd8P.mjs.map +0 -1
- package/dist/NotificationSettings-BXpzPNjH.mjs +0 -678
- package/dist/NotificationSettings-BXpzPNjH.mjs.map +0 -1
- package/dist/NotificationUtils-BRGFTePr.mjs +0 -24
- package/dist/NotificationUtils-BRGFTePr.mjs.map +0 -1
- package/dist/NumberFormatting--XMeeBfr.mjs +0 -50
- package/dist/NumberFormatting--XMeeBfr.mjs.map +0 -1
- package/dist/OriginalBalanceAction-YrvxBYAl.mjs +0 -115
- package/dist/OriginalBalanceAction-YrvxBYAl.mjs.map +0 -1
- package/dist/RecurringSettings-7zGNq-fh.mjs +0 -89
- package/dist/RecurringSettings-7zGNq-fh.mjs.map +0 -1
- package/dist/RecurringTransactionsUtil-CfWviBh1.mjs +0 -299
- package/dist/RecurringTransactionsUtil-CfWviBh1.mjs.map +0 -1
- package/dist/ResponsiveButton-CC9F_Ezk.mjs +0 -46
- package/dist/ResponsiveButton-CC9F_Ezk.mjs.map +0 -1
- package/dist/SearchBox-Cpgu_gdO.mjs +0 -51
- package/dist/SearchBox-Cpgu_gdO.mjs.map +0 -1
- package/dist/Select-CSpkK5cR.mjs +0 -62
- package/dist/Select-CSpkK5cR.mjs.map +0 -1
- package/dist/SelectionBox-B4xELRgp.mjs +0 -49
- package/dist/SelectionBox-B4xELRgp.mjs.map +0 -1
- package/dist/SingleSegmentDonut-7Uy6VEld.mjs +0 -70
- package/dist/SingleSegmentDonut-7Uy6VEld.mjs.map +0 -1
- package/dist/Sizes-DISGrlUg.mjs +0 -7
- package/dist/Sizes-DISGrlUg.mjs.map +0 -1
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -39
- package/dist/SkeletonLoader-BaNboJjD.mjs.map +0 -1
- package/dist/SpendingData-Fii_xATx.mjs +0 -54
- package/dist/SpendingData-Fii_xATx.mjs.map +0 -1
- package/dist/SpendingLegend-CxvNOg3c.mjs +0 -204
- package/dist/SpendingLegend-CxvNOg3c.mjs.map +0 -1
- package/dist/StatusBar-CPfSXe80.mjs +0 -31
- package/dist/StatusBar-CPfSXe80.mjs.map +0 -1
- package/dist/TabContentContainer-B0eYJP5p.mjs +0 -49
- package/dist/TabContentContainer-B0eYJP5p.mjs.map +0 -1
- package/dist/ToggleListItem-Dl1lXNwj.mjs +0 -92
- package/dist/ToggleListItem-Dl1lXNwj.mjs.map +0 -1
- package/dist/TransactionDetails-C5JAB8SL.mjs +0 -1710
- package/dist/TransactionDetails-C5JAB8SL.mjs.map +0 -1
- package/dist/TransactionUtils-BphBJBbU.mjs +0 -235
- package/dist/TransactionUtils-BphBJBbU.mjs.map +0 -1
- package/dist/TrendsUtil-D9z3kIj_.mjs +0 -70
- package/dist/TrendsUtil-D9z3kIj_.mjs.map +0 -1
- package/dist/UserStore-Cp-2Jtnw.mjs +0 -3210
- package/dist/UserStore-Cp-2Jtnw.mjs.map +0 -1
- package/dist/ViewMoreMicroCard-B4oeGrbE.mjs +0 -1280
- package/dist/ViewMoreMicroCard-B4oeGrbE.mjs.map +0 -1
- package/dist/WidgetContainer-DKRs7nIV.mjs +0 -487
- package/dist/WidgetContainer-DKRs7nIV.mjs.map +0 -1
- package/dist/accounts/components/ConnectStatus.d.ts +0 -7
- package/dist/accounts/index.es.js.map +0 -1
- package/dist/analytics/index.es.js.map +0 -1
- package/dist/budgets/index.es.js.map +0 -1
- package/dist/cashflow/index.es.js.map +0 -1
- package/dist/categories/index.es.js.map +0 -1
- package/dist/common/index.es.js.map +0 -1
- package/dist/core/index.es.js.map +0 -1
- package/dist/dashboard/index.es.js.map +0 -1
- package/dist/debts/index.es.js.map +0 -1
- package/dist/finstrong/index.es.js.map +0 -1
- package/dist/goals/index.es.js.map +0 -1
- package/dist/help/index.es.js.map +0 -1
- package/dist/hooks-97sNJ_lf.mjs +0 -78
- package/dist/hooks-97sNJ_lf.mjs.map +0 -1
- package/dist/insights/index.es.js.map +0 -1
- package/dist/investments/index.es.js.map +0 -1
- package/dist/merchants/index.es.js.map +0 -1
- package/dist/microinsights/index.es.js.map +0 -1
- package/dist/networth/index.es.js.map +0 -1
- package/dist/notifications/index.es.js.map +0 -1
- package/dist/recurringtransactions/index.es.js.map +0 -1
- package/dist/settings/index.es.js.map +0 -1
- package/dist/spending/index.es.js.map +0 -1
- package/dist/transactions/index.es.js.map +0 -1
- package/dist/trends/index.es.js.map +0 -1
- package/dist/useAccountDisplayName-BsiXA0qf.mjs +0 -24
- package/dist/useAccountDisplayName-BsiXA0qf.mjs.map +0 -1
- package/dist/useAriaLive-MkYebyUR.mjs +0 -36
- package/dist/useAriaLive-MkYebyUR.mjs.map +0 -1
- package/dist/useDimensions-CeDR9V8N.mjs +0 -37
- package/dist/useDimensions-CeDR9V8N.mjs.map +0 -1
- package/dist/useInsightsEnabled-D5Sdm0TJ.mjs +0 -12
- package/dist/useInsightsEnabled-D5Sdm0TJ.mjs.map +0 -1
- package/dist/useScreenSize-mWpmnh5w.mjs +0 -37
- package/dist/useScreenSize-mWpmnh5w.mjs.map +0 -1
- package/dist/useWidgetLoadTimer-B0tB-yzL.mjs +0 -20
- package/dist/useWidgetLoadTimer-B0tB-yzL.mjs.map +0 -1
|
@@ -1,3210 +0,0 @@
|
|
|
1
|
-
import { makeAutoObservable as h, runInAction as c, reaction as gt, autorun as mt, observable as Tt } from "mobx";
|
|
2
|
-
import { d as bt, g as At } from "./AccountUtils-Cbh8r9cP.mjs";
|
|
3
|
-
import { i as wt, f as Et, b as It, c as V } from "./BudgetUtil-Bg2AQJpQ.mjs";
|
|
4
|
-
import { c as d, d as $ } from "./Account-DR7Plrqy.mjs";
|
|
5
|
-
import { F as p, B as G, G as z } from "./GlobalCopyApi-CLhyon-B.mjs";
|
|
6
|
-
import { A as n } from "./ApiEndpoints-DXwIYNUV.mjs";
|
|
7
|
-
import Ct from "posthog-js";
|
|
8
|
-
import { endOfMonth as b } from "date-fns/endOfMonth";
|
|
9
|
-
import { startOfMonth as C } from "date-fns/startOfMonth";
|
|
10
|
-
import { startOfToday as S } from "date-fns/startOfToday";
|
|
11
|
-
import { C as w, b as Rt } from "./Category-DEKZGLYe.mjs";
|
|
12
|
-
import { addDays as Dt } from "date-fns/addDays";
|
|
13
|
-
import { differenceInDays as xt } from "date-fns/differenceInDays";
|
|
14
|
-
import { isBefore as W } from "date-fns/isBefore";
|
|
15
|
-
import { getUnixTime as m } from "date-fns/getUnixTime";
|
|
16
|
-
import { subMonths as N } from "date-fns/subMonths";
|
|
17
|
-
import { c as Lt, d as vt, C as Gt, h as Nt, i as Bt, s as Mt, j as Ot, T as Pt, D as $t } from "./TransactionUtils-BphBJBbU.mjs";
|
|
18
|
-
import { l as Ft, D as Ut } from "./DebtUtils-i4pI2Uoe.mjs";
|
|
19
|
-
import { format as kt } from "date-fns/format";
|
|
20
|
-
import { fromUnixTime as Ht } from "date-fns/fromUnixTime";
|
|
21
|
-
import { f as k, D as H } from "./DateFormats-HudZ3Bjs.mjs";
|
|
22
|
-
import { T, c as K } from "./GoalsUtil-C9EnLWvC.mjs";
|
|
23
|
-
import { A as Wt, m as Vt, a as zt, b as Kt } from "./InvestmentUtil-BItV7uEs.mjs";
|
|
24
|
-
import { f as Qt, b as qt, a as Q, c as Yt, d as jt, e as Xt, s as Jt } from "./NetWorthUtils-Dj7CgAg2.mjs";
|
|
25
|
-
import { f as Zt } from "./NotificationUtils-BRGFTePr.mjs";
|
|
26
|
-
import { isAfter as F } from "date-fns/isAfter";
|
|
27
|
-
import { isSameDay as q } from "date-fns/isSameDay";
|
|
28
|
-
import { isWithinInterval as pt } from "date-fns/isWithinInterval";
|
|
29
|
-
import { subDays as _t } from "date-fns/subDays";
|
|
30
|
-
import { f as U, h as te, b as L, a as y } from "./RecurringTransactionsUtil-CfWviBh1.mjs";
|
|
31
|
-
import { I as u, A as _, B } from "./Notification-DTNYSd8P.mjs";
|
|
32
|
-
import { endOfToday as Y } from "date-fns/endOfToday";
|
|
33
|
-
import { formatISO as ee } from "date-fns/formatISO";
|
|
34
|
-
import { addSeconds as se } from "date-fns/addSeconds";
|
|
35
|
-
import { differenceInCalendarMonths as ae } from "date-fns/differenceInCalendarMonths";
|
|
36
|
-
import { f as re, b as ne } from "./TrendsUtil-D9z3kIj_.mjs";
|
|
37
|
-
import { addMonths as ie } from "date-fns/addMonths";
|
|
38
|
-
import { getMonth as v } from "date-fns/getMonth";
|
|
39
|
-
import { a as oe } from "./Help-CkQTjORd.mjs";
|
|
40
|
-
class M {
|
|
41
|
-
fetchInstance;
|
|
42
|
-
constructor(t, e, s) {
|
|
43
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
44
|
-
}
|
|
45
|
-
createAccount = async (t) => this.fetchInstance.post(n.ACCOUNTS, t).then((e) => e.account);
|
|
46
|
-
deleteAccount = async (t) => this.fetchInstance.delete(`${n.ACCOUNTS}/${t}`);
|
|
47
|
-
getAccounts = async () => this.fetchInstance.get(n.ACCOUNTS).then((t) => t.accounts);
|
|
48
|
-
getInstitutions = async () => this.fetchInstance.get(n.INSTITUTIONS).then((t) => t);
|
|
49
|
-
getMembers = async () => this.fetchInstance.get(n.MEMBERS).then((t) => t.members);
|
|
50
|
-
getMonthlyAccountBalances = async (t) => this.fetchInstance.get(`${n.ACCOUNTS}/${t}/monthly_account_balances`).then((e) => e.monthly_account_balances);
|
|
51
|
-
mergeAccounts = async (t) => this.fetchInstance.put(`${n.ACCOUNTS}/merge`, { accounts: t }).then((e) => e);
|
|
52
|
-
refreshAllMembers = async () => this.fetchInstance.get(`${n.MEMBERS}/refresh_all`).then((t) => t);
|
|
53
|
-
updateAccount = async (t) => this.fetchInstance.put(`${n.ACCOUNTS}/${t.guid}`, t).then((e) => e.account);
|
|
54
|
-
}
|
|
55
|
-
class j {
|
|
56
|
-
fetchInstance;
|
|
57
|
-
constructor(t, e, s) {
|
|
58
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
59
|
-
}
|
|
60
|
-
getAppData = async () => this.fetchInstance.get(n.APP_DATA).then((t) => t);
|
|
61
|
-
}
|
|
62
|
-
class X {
|
|
63
|
-
fetchInstance;
|
|
64
|
-
constructor(t) {
|
|
65
|
-
this.fetchInstance = new p(t, "", {
|
|
66
|
-
Accept: "application/json",
|
|
67
|
-
"Content-Type": "application/json"
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
getBanner = async (t) => {
|
|
71
|
-
try {
|
|
72
|
-
const e = `/banner/${t}/account_widget_banner`;
|
|
73
|
-
return this.fetchInstance?.get(e).then((s) => s.banner) ?? {};
|
|
74
|
-
} catch (e) {
|
|
75
|
-
return console.error("Error fetching banner:", e), null;
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
class J {
|
|
80
|
-
fetchInstance;
|
|
81
|
-
constructor(t, e, s) {
|
|
82
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
83
|
-
}
|
|
84
|
-
addBudget = async (t, e, s = null) => this.fetchInstance.post(n.BUDGETS, {
|
|
85
|
-
amount: e,
|
|
86
|
-
category_guid: t.guid,
|
|
87
|
-
category_name: t.name,
|
|
88
|
-
parent_guid: s
|
|
89
|
-
}).then((a) => a.budget);
|
|
90
|
-
deleteBudget = async (t) => this.fetchInstance.delete(`${n.BUDGETS}/${t}`).then((e) => e);
|
|
91
|
-
getBudgets = async () => this.fetchInstance.get(n.BUDGETS).then((t) => t.budgets);
|
|
92
|
-
updateBudget = async (t) => this.fetchInstance.put(`${n.BUDGETS}/${t.guid}`, t).then((e) => e.budget);
|
|
93
|
-
addMerchantBudget = async (t, e) => this.fetchInstance.post(n.MERCHANT_BUDGETS, {
|
|
94
|
-
amount: e,
|
|
95
|
-
merchant_guid: t
|
|
96
|
-
}).then((s) => s.merchant_budget);
|
|
97
|
-
updateMerchantBudget = async (t, e) => this.fetchInstance.put(`${n.MERCHANT_BUDGETS}/${t}`, {
|
|
98
|
-
amount: e
|
|
99
|
-
}).then((s) => s.merchant_budget);
|
|
100
|
-
deleteMerchantBudget = async (t) => this.fetchInstance.delete(`${n.MERCHANT_BUDGETS}/${t}`).then((e) => e);
|
|
101
|
-
}
|
|
102
|
-
class Z {
|
|
103
|
-
fetchInstance;
|
|
104
|
-
constructor(t, e, s) {
|
|
105
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
106
|
-
}
|
|
107
|
-
addCategory = async (t) => this.fetchInstance.post(n.CATEGORIES, t).then((e) => e.category);
|
|
108
|
-
getCategories = async () => this.fetchInstance.get(n.CATEGORIES).then((t) => t.categories);
|
|
109
|
-
getDateRangeCategoryTotals = async (t, e, s) => s.length === 0 ? [] : this.fetchInstance.post(`${n.DATE_RANGE_CATEGORY_TOTALS}/from/${t}/to/${e}`, {
|
|
110
|
-
account_guid: s.map((a) => a.guid)
|
|
111
|
-
}).then((a) => a.date_range_category_totals);
|
|
112
|
-
getMonthlyCategoryTotals = async (t, e, s) => {
|
|
113
|
-
try {
|
|
114
|
-
const a = `${n.MONTHLY_CATEGORY_TOTALS}/from/${t}/to/${e}`;
|
|
115
|
-
if (s) {
|
|
116
|
-
const o = s.length === 0 ? [""] : s.map((l) => l.guid);
|
|
117
|
-
return (await this.fetchInstance.post(a, { account_guid: o })).monthly_category_totals;
|
|
118
|
-
} else
|
|
119
|
-
return (await this.fetchInstance.get(a)).monthly_category_totals;
|
|
120
|
-
} catch (a) {
|
|
121
|
-
throw console.error("Error fetching monthly category totals:", a), a;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
removeCategory = async (t) => this.fetchInstance.delete(`${n.CATEGORIES}/${t}`);
|
|
125
|
-
updateCategory = async (t) => this.fetchInstance.put(`${n.CATEGORIES}/${t.guid}`, t).then((e) => e.category);
|
|
126
|
-
}
|
|
127
|
-
class tt {
|
|
128
|
-
fetchInstance;
|
|
129
|
-
constructor(t, e, s) {
|
|
130
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
131
|
-
}
|
|
132
|
-
calculateHealthScore = async () => this.fetchInstance.post(`${n.HEALTH_SCORES}/calculate`).then((t) => t.health_score);
|
|
133
|
-
getAverageHealthScores = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/monthly_averages`).then((t) => t);
|
|
134
|
-
getDebtSpend = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/transactions/debt_spend`).then((t) => t);
|
|
135
|
-
getIncome = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/transactions/income`).then((t) => t);
|
|
136
|
-
getMonthlySummaries = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/monthly_summaries`).then((t) => t);
|
|
137
|
-
getHealthScoreChangeReports = async (t, e) => this.fetchInstance.get(`${n.HEALTH_SCORES}/change_report/from/${t}/to/${e}`).then((s) => s);
|
|
138
|
-
getPeerScore = async (t) => this.fetchInstance.get(`${n.HEALTH_SCORES}/average/${t}`).then((e) => e);
|
|
139
|
-
getSpendingFeeTransactions = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/transactions/spending_fee`).then((t) => t);
|
|
140
|
-
getStandardSpend = async () => this.fetchInstance.get(`${n.HEALTH_SCORES}/transactions/standard_spend`).then((t) => t);
|
|
141
|
-
}
|
|
142
|
-
class et {
|
|
143
|
-
fetchInstance;
|
|
144
|
-
constructor(t, e, s) {
|
|
145
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
146
|
-
}
|
|
147
|
-
addGoal = async (t) => this.fetchInstance.post(n.GOALS, t).then((e) => e.goal);
|
|
148
|
-
addRetirementGoal = async (t) => this.fetchInstance.post(n.RETIREMENT_GOALS, t).then((e) => e.retirement_goal);
|
|
149
|
-
addRetirementGoalAccount = async (t) => this.fetchInstance.post(n.RETIREMENT_GOAL_ACCOUNTS, t).then((e) => e.retirement_goal_account);
|
|
150
|
-
getGoalByGuid = async (t) => this.fetchInstance.get(`${n.GOALS}/${t}`).then((e) => e.goal);
|
|
151
|
-
getGoals = async () => this.fetchInstance.get(n.GOALS).then((t) => t.goals);
|
|
152
|
-
getMonthlyCashFlowProfile = async () => this.fetchInstance.get(n.MONTHLY_CASH_FLOW_PROFILE).then((t) => t.monthly_cash_flow_profile);
|
|
153
|
-
getRetirementGoals = async () => this.fetchInstance.get(n.RETIREMENT_GOALS).then((t) => t.retirement_goals);
|
|
154
|
-
getRetirementGoalAccounts = async () => this.fetchInstance.get(n.RETIREMENT_GOAL_ACCOUNTS).then((t) => t.retirement_goal_accounts);
|
|
155
|
-
removeGoal = async (t) => this.fetchInstance.delete(`${n.GOALS}/${t}`).then((e) => e);
|
|
156
|
-
removeRetirementGoal = async (t) => this.fetchInstance.delete(`${n.RETIREMENT_GOALS}/${t}`).then((e) => e);
|
|
157
|
-
removeRetirementGoalAccount = async (t) => this.fetchInstance.delete(`${n.RETIREMENT_GOAL_ACCOUNTS}/${t}`).then((e) => e);
|
|
158
|
-
reorderGoals = async (t) => this.fetchInstance.post(`${n.GOALS}/reposition`, { goals: t }).then((e) => e.goals);
|
|
159
|
-
updateGoal = async (t) => this.fetchInstance.put(`${n.GOALS}/${t.guid}`, t).then((e) => e.goal);
|
|
160
|
-
updateMonthlyCashFlowProfile = async (t) => this.fetchInstance.put(`${n.MONTHLY_CASH_FLOW_PROFILE}`, t).then((e) => e.monthly_cash_flow_profile);
|
|
161
|
-
updateRetirementGoal = async (t) => this.fetchInstance.put(`${n.RETIREMENT_GOALS}/${t.guid}`, t).then((e) => e.retirement_goal);
|
|
162
|
-
}
|
|
163
|
-
class st {
|
|
164
|
-
fetchInstance;
|
|
165
|
-
constructor(t, e, s) {
|
|
166
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
167
|
-
}
|
|
168
|
-
createSupportTicket = async (t) => this.fetchInstance.post(n.SUPPORT_TICKETS, t).then((e) => e);
|
|
169
|
-
}
|
|
170
|
-
class at {
|
|
171
|
-
fetchInstance;
|
|
172
|
-
constructor(t, e, s) {
|
|
173
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
174
|
-
}
|
|
175
|
-
getHoldings = async () => this.fetchInstance.get(n.HOLDINGS).then((t) => t.holdings);
|
|
176
|
-
updateHoldings = async (t) => this.fetchInstance.put(`${n.HOLDINGS}/${t.guid}`, t).then((e) => e.holding);
|
|
177
|
-
}
|
|
178
|
-
class rt {
|
|
179
|
-
fetchInstance;
|
|
180
|
-
constructor(t, e, s) {
|
|
181
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
182
|
-
}
|
|
183
|
-
getMerchants = async (t = [], e = [], s = 1, a = 25) => {
|
|
184
|
-
let o = n.MERCHANTS;
|
|
185
|
-
return o += `?page=${s}&per_page=${a}`, t.length && t.forEach((i) => o += `&fuzzy_name[]=${i}`), e.length && e.forEach((i) => o += `&guid[]=${i}`), this.fetchInstance.get(o).then((i) => i.merchants);
|
|
186
|
-
};
|
|
187
|
-
getMerchantByGuid = async (t) => this.fetchInstance.get(`${n.MERCHANTS}/${t}`).then((e) => e.merchant);
|
|
188
|
-
}
|
|
189
|
-
class nt {
|
|
190
|
-
fetchInstance;
|
|
191
|
-
constructor(t, e, s) {
|
|
192
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
193
|
-
}
|
|
194
|
-
getNotifications = () => this.fetchInstance.get(n.NOTIFICATIONS).then(
|
|
195
|
-
(t) => t.notifications.map((e) => e.notification)
|
|
196
|
-
).finally();
|
|
197
|
-
updateNotification = (t) => this.fetchInstance.put(`${n.NOTIFICATIONS}/${t.guid}`, {
|
|
198
|
-
guid: t.guid,
|
|
199
|
-
has_been_viewed: t.has_been_viewed
|
|
200
|
-
}).then((e) => e.notification).finally();
|
|
201
|
-
// Note: The notifications/mark_all_as_viewed endpoint is broken, but still returns 202.
|
|
202
|
-
// A bug ticket has been filed to fix it, but should not require any changes here.
|
|
203
|
-
markAllAsViewed = (t) => this.fetchInstance.put(`${n.NOTIFICATIONS}/mark_all_as_viewed`, { channel: t }).finally();
|
|
204
|
-
}
|
|
205
|
-
class it {
|
|
206
|
-
fetchInstance;
|
|
207
|
-
constructor(t, e, s) {
|
|
208
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
209
|
-
}
|
|
210
|
-
addRepeatingTransaction = async (t) => this.fetchInstance.post(n.REPEATING_TRANSACTIONS, t).then((e) => e.repeating_transaction);
|
|
211
|
-
getRepeatingTransactions = async () => this.fetchInstance.get(n.REPEATING_TRANSACTIONS).then((t) => t.repeating_transactions);
|
|
212
|
-
updateRepeatingTransaction = async (t) => this.fetchInstance.put(
|
|
213
|
-
`${n.REPEATING_TRANSACTIONS}/${t.guid}`,
|
|
214
|
-
t
|
|
215
|
-
).then((e) => e.repeating_transaction);
|
|
216
|
-
deleteRepeatingTransaction = async (t) => this.fetchInstance.delete(`${n.REPEATING_TRANSACTIONS}/${t}`).then((e) => e);
|
|
217
|
-
}
|
|
218
|
-
class ot {
|
|
219
|
-
fetchInstance;
|
|
220
|
-
constructor(t, e, s) {
|
|
221
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
222
|
-
}
|
|
223
|
-
deleteDevice = async (t) => this.fetchInstance.delete(`${n.DEVICES}/${t}`).then((e) => e);
|
|
224
|
-
generateDeviceToken = async () => this.fetchInstance.get(`${n.USER}/mobile_token`).then((t) => t.mobile_token);
|
|
225
|
-
getDevices = async () => this.fetchInstance.get(n.DEVICES).then((t) => t.map((e) => e.device));
|
|
226
|
-
getNotificationProfiles = async () => this.fetchInstance.get(n.NOTIFICATION_PROFILES).then((t) => t.notification_profiles);
|
|
227
|
-
// verifications endpoints respond with HTTP status codes; they error otherwise
|
|
228
|
-
sendEmailVerification = async () => this.fetchInstance.post(n.EMAIL_VERIFICATIONS);
|
|
229
|
-
sendPhoneVerification = async () => this.fetchInstance.post(n.PHONE_VERIFICATIONS + "/deliver");
|
|
230
|
-
verifyPhoneToken = async (t) => this.fetchInstance.post(n.PHONE_VERIFICATIONS + "/verify", { sms_verification_token: t }).then((e) => ({ verified: e.verified }));
|
|
231
|
-
updateDevice = async (t) => this.fetchInstance.put(`${n.DEVICES}/${t.guid}`, t).then((e) => e.device);
|
|
232
|
-
updateNotificationProfile = async (t) => this.fetchInstance.put(`${n.NOTIFICATION_PROFILES}/${t.guid}`, t).then((e) => e.notification_profile);
|
|
233
|
-
updateUserCommunicationProfile = async (t) => this.fetchInstance.put(n.USER_COMMUNICATION_PROFILE, t).then((e) => e.user_communication_profile);
|
|
234
|
-
getInsightsNotificationProfiles = async () => this.fetchInstance.get(`${n.NOTIFICATION_PROFILES}/${n.INSIGHTS_NOTIFICATION_PROFILES}`).then((t) => t);
|
|
235
|
-
}
|
|
236
|
-
class O {
|
|
237
|
-
fetchInstance;
|
|
238
|
-
constructor(t, e, s) {
|
|
239
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
240
|
-
}
|
|
241
|
-
addTag = async (t) => this.fetchInstance.post(n.TAGS, t).then((e) => e.tag);
|
|
242
|
-
addTagging = async (t) => this.fetchInstance.post(n.TAGGINGS, t).then((e) => e.tagging);
|
|
243
|
-
addTransaction = async (t) => this.fetchInstance.post(n.TRANSACTIONS, t).then((e) => e.transaction);
|
|
244
|
-
addTransactionRule = async (t) => this.fetchInstance.post(n.TRANSACTION_RULES, t).then((e) => e);
|
|
245
|
-
getTaggings = async () => this.fetchInstance.get(n.TAGGINGS).then((t) => t.map((e) => e.tagging));
|
|
246
|
-
getTags = async () => this.fetchInstance.get(n.TAGS).then((t) => t.map((e) => e.tag));
|
|
247
|
-
getTransactionRules = async () => this.fetchInstance.get(n.TRANSACTION_RULES).then((t) => t.transaction_rules);
|
|
248
|
-
getTransactionsByDateRange = async (t, e) => this.fetchInstance.get(`${n.TRANSACTIONS}/by_date/${t}/${e}`).then((s) => s.map((a) => a.transaction));
|
|
249
|
-
// DEPRECATED
|
|
250
|
-
getTransactionsByAccountsAndDateRange = async (t, e, s) => {
|
|
251
|
-
console.warn("DEPRECATED: getTransactionsByAccountsAndDateRange will be removed");
|
|
252
|
-
const a = t.reduce(
|
|
253
|
-
(o, i, l) => `${o}account_guids[]=${i}${l !== t.length - 1 ? "&" : ""}`,
|
|
254
|
-
""
|
|
255
|
-
);
|
|
256
|
-
return this.fetchInstance.get(`${n.TRANSACTIONS}/by_date/${e}/${s}?${a}`).then((o) => o.map((i) => i.transaction));
|
|
257
|
-
};
|
|
258
|
-
// DEPRECATED
|
|
259
|
-
getTransactionsByGuids = async (t) => (console.warn("DEPRECATED: getTransactionsByGuids will be removed"), this.fetchInstance.post(`${n.TRANSACTIONS}/by_guids`, { guids: t.join("+") }).then((e) => e.map((s) => s.transaction)));
|
|
260
|
-
// DEPRECATED
|
|
261
|
-
getTransactionsByCategoryAndDate = async (t, e, s) => (console.warn("DEPRECATED: getTransactionsByCategoryAndDate will be removed"), this.fetchInstance.get(
|
|
262
|
-
`${n.TRANSACTIONS}/by_category_guid/${t}/by_date/${e}/${s}`
|
|
263
|
-
).then((a) => a.map((o) => o.transaction)));
|
|
264
|
-
// DEPRECATED
|
|
265
|
-
getTransactionsByCategoryDateAndAccounts = async (t, e, s, a) => {
|
|
266
|
-
console.warn("DEPRECATED: getTransactionsByCategoryDateAndAccounts will be removed");
|
|
267
|
-
const o = a.reduce(
|
|
268
|
-
(i, l, g) => `${i}account_guids[]=${l}${g !== a.length - 1 ? "&" : ""}`,
|
|
269
|
-
""
|
|
270
|
-
);
|
|
271
|
-
return this.fetchInstance.get(
|
|
272
|
-
`${n.TRANSACTIONS}/by_category_guid/${t}/by_date/${e}/${s}?${o}`
|
|
273
|
-
).then((i) => i.map((l) => l.transaction));
|
|
274
|
-
};
|
|
275
|
-
// DEPRECATED
|
|
276
|
-
getTransactionsByCategoriesDateAndAccounts = async (t, e, s, a) => {
|
|
277
|
-
console.warn("DEPRECATED: getTransactionsByCategoriesDateAndAccounts will be removed");
|
|
278
|
-
const o = a.reduce(
|
|
279
|
-
(i, l, g) => `${i}account_guids[]=${l}${g !== a.length - 1 ? "&" : ""}`,
|
|
280
|
-
""
|
|
281
|
-
);
|
|
282
|
-
return this.fetchInstance.get(
|
|
283
|
-
`${n.TRANSACTIONS}/by_category_guids/${t.join(
|
|
284
|
-
"+"
|
|
285
|
-
)}/by_date/${e}/${s}?${o}`
|
|
286
|
-
).then((i) => i.map((l) => l.transaction));
|
|
287
|
-
};
|
|
288
|
-
/**
|
|
289
|
-
* DEPRECATED
|
|
290
|
-
* Get all transactions by the top level category, between begin date and end date, and optionally
|
|
291
|
-
* filtered by accounts
|
|
292
|
-
* @param categoryGuid The top level category guid
|
|
293
|
-
* @param beginDate the start date
|
|
294
|
-
* @param endDate the end date
|
|
295
|
-
* @param accountGuids an optional list of account guids
|
|
296
|
-
*/
|
|
297
|
-
getTransactionsByTopLevelCategoryAndDate = async (t, e, s, a = []) => {
|
|
298
|
-
console.warn("DEPRECATED: getTransactionsByTopLevelCategoryAndDate will be removed");
|
|
299
|
-
let o = `${n.TRANSACTIONS}/by_top_level_category_guid/${t}/by_date/${e}/${s}`;
|
|
300
|
-
if (a.length > 0) {
|
|
301
|
-
const i = a.reduce(
|
|
302
|
-
(l, g, f) => `${l}account_guids[]=${g}${f !== a.length - 1 ? "&" : ""}`,
|
|
303
|
-
""
|
|
304
|
-
);
|
|
305
|
-
o += `?${i}`;
|
|
306
|
-
}
|
|
307
|
-
return this.fetchInstance.get(o).then((i) => i.map((l) => l.transaction));
|
|
308
|
-
};
|
|
309
|
-
removeTag = async (t) => this.fetchInstance.delete(`${n.TAGS}/${t}`).then((e) => e);
|
|
310
|
-
removeTagging = async (t) => this.fetchInstance.delete(`${n.TAGGINGS}/${t}`).then((e) => e);
|
|
311
|
-
removeTransaction = async (t) => this.fetchInstance.delete(`${n.TRANSACTIONS}/${t}`).then((e) => e);
|
|
312
|
-
removeTransactionRule = async (t) => this.fetchInstance.delete(`${n.TRANSACTION_RULES}/${t}`);
|
|
313
|
-
removeTransactionSplit = async (t) => this.fetchInstance.delete(`${n.TRANSACTIONS}/${t}/unsplit`).then((e) => e);
|
|
314
|
-
updateTransactionRule = async (t) => this.fetchInstance.put(`${n.TRANSACTION_RULES}/${t.guid}`, t).then((e) => e);
|
|
315
|
-
updateTag = async (t) => this.fetchInstance.put(`${n.TAGS}/${t.guid}`, t).then((e) => e.tag);
|
|
316
|
-
updateTransaction = async (t) => this.fetchInstance.put(`${n.TRANSACTIONS}/${t.guid}`, t).then((e) => e.transaction);
|
|
317
|
-
}
|
|
318
|
-
class ct {
|
|
319
|
-
fetchInstance;
|
|
320
|
-
constructor(t, e, s) {
|
|
321
|
-
this.fetchInstance = new p(t, e, void 0, s);
|
|
322
|
-
}
|
|
323
|
-
getUserFeatures = async () => this.fetchInstance.get(n.USER_FEATURES).then((t) => t.user_features);
|
|
324
|
-
updateUser = async (t) => this.fetchInstance.put(n.USER, t).then((e) => e.user);
|
|
325
|
-
updateUserProfile = async (t) => this.fetchInstance.put(`${n.USER_PROFILES}/${t.guid}`, t).then((e) => e.user_profile);
|
|
326
|
-
}
|
|
327
|
-
class lt {
|
|
328
|
-
fetchInstance;
|
|
329
|
-
constructor(t, e) {
|
|
330
|
-
this.fetchInstance = new p(t, e);
|
|
331
|
-
}
|
|
332
|
-
requestWidgetUrl = async (t) => this.fetchInstance.post(n.WIDGET_URLS, t).then((e) => e.widget_url);
|
|
333
|
-
}
|
|
334
|
-
class ce {
|
|
335
|
-
globalStore;
|
|
336
|
-
api = new M("/", "");
|
|
337
|
-
accounts = [];
|
|
338
|
-
accountsLoaded = !1;
|
|
339
|
-
accountsLoading = !1;
|
|
340
|
-
institutions = [];
|
|
341
|
-
institutionsLoaded = !1;
|
|
342
|
-
institutionsLoading = !1;
|
|
343
|
-
members = [];
|
|
344
|
-
membersLoaded = !1;
|
|
345
|
-
membersLoading = !1;
|
|
346
|
-
uiStore;
|
|
347
|
-
constructor(t) {
|
|
348
|
-
this.globalStore = t, this.uiStore = new le(), this.api = new M(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
349
|
-
}
|
|
350
|
-
loadAccountData = async () => {
|
|
351
|
-
await Promise.all([this.loadAccounts(), this.loadMembers(), this.loadInstitutions()]);
|
|
352
|
-
};
|
|
353
|
-
get isAccountDataLoaded() {
|
|
354
|
-
return this.accountsLoaded && this.membersLoaded && this.institutionsLoaded;
|
|
355
|
-
}
|
|
356
|
-
get detailedAccounts() {
|
|
357
|
-
const t = this.globalStore.userStore.userFeatures, e = wt(t, "MD_EXCLUDE_EXTERNAL_ACCOUNTS"), s = this.globalStore.appConfig.config.display_only_external_accounts_in_accounts && this.globalStore.appConfig.options.subtype === "accounts";
|
|
358
|
-
return bt(
|
|
359
|
-
this.accounts,
|
|
360
|
-
this.institutions,
|
|
361
|
-
this.members,
|
|
362
|
-
e,
|
|
363
|
-
s
|
|
364
|
-
);
|
|
365
|
-
}
|
|
366
|
-
get accountsByTypeMap() {
|
|
367
|
-
return this.detailedAccounts.reduce((t, e) => {
|
|
368
|
-
const s = e.account_type;
|
|
369
|
-
let a = t.get(s);
|
|
370
|
-
return a || (a = []), a.push(e), t.set(s, a), t;
|
|
371
|
-
}, /* @__PURE__ */ new Map());
|
|
372
|
-
}
|
|
373
|
-
get cashAccounts() {
|
|
374
|
-
return this.detailedAccounts.filter(
|
|
375
|
-
(t) => t.account_type === d.CASH || t.account_type === d.CHECKING || t.account_type === d.PREPAID || t.account_type === d.SAVINGS || t.account_type === d.CHECKING_LINE_OF_CREDIT
|
|
376
|
-
);
|
|
377
|
-
}
|
|
378
|
-
get cashBalance() {
|
|
379
|
-
return this.cashAccounts.reduce((t, e) => t + (e?.balance || 0), 0);
|
|
380
|
-
}
|
|
381
|
-
get checkingAccounts() {
|
|
382
|
-
return this.detailedAccounts.filter((t) => t.account_type === d.CHECKING);
|
|
383
|
-
}
|
|
384
|
-
get debtAccounts() {
|
|
385
|
-
return this.detailedAccounts.filter(
|
|
386
|
-
(t) => t.account_type === d.CREDIT_CARD || t.account_type === d.LOAN || t.account_type === d.MORTGAGE || t.account_type === d.LINE_OF_CREDIT || t.account_type === d.CHECKING_LINE_OF_CREDIT
|
|
387
|
-
);
|
|
388
|
-
}
|
|
389
|
-
get finstrongAccounts() {
|
|
390
|
-
const t = /* @__PURE__ */ new Set([
|
|
391
|
-
d.CHECKING,
|
|
392
|
-
d.SAVINGS,
|
|
393
|
-
d.CREDIT_CARD,
|
|
394
|
-
d.INVESTMENT
|
|
395
|
-
]);
|
|
396
|
-
return this.detailedAccounts.filter((e) => t.has(e.account_type));
|
|
397
|
-
}
|
|
398
|
-
get investmentAccounts() {
|
|
399
|
-
return this.detailedAccounts.filter(
|
|
400
|
-
(t) => t.account_type === d.INVESTMENT
|
|
401
|
-
);
|
|
402
|
-
}
|
|
403
|
-
get manualAccounts() {
|
|
404
|
-
return this.detailedAccounts.filter((t) => t.is_manual);
|
|
405
|
-
}
|
|
406
|
-
get savingsAccounts() {
|
|
407
|
-
return this.detailedAccounts.filter((t) => t.account_type === d.SAVINGS);
|
|
408
|
-
}
|
|
409
|
-
get retirementAccounts() {
|
|
410
|
-
return this.detailedAccounts.filter(
|
|
411
|
-
(t) => t.account_type === d.INVESTMENT || t.account_type === d.SAVINGS || t.account_type === d.CHECKING || t.account_type === d.CASH || t.account_type === d.PROPERTY || t.account_type === d.INSURANCE && (t.account_subtype === $.WHOLE_LIFE || t.account_subtype === $.UNIVERSAL_LIFE || t.account_subtype === $.VARIABLE_UNIVERSAL_LIFE)
|
|
412
|
-
);
|
|
413
|
-
}
|
|
414
|
-
get visibleAccounts() {
|
|
415
|
-
return this.detailedAccounts.filter((t) => !t.is_hidden && !t.is_closed);
|
|
416
|
-
}
|
|
417
|
-
get visibleCashAccounts() {
|
|
418
|
-
return this.cashAccounts.filter((t) => !t.is_hidden);
|
|
419
|
-
}
|
|
420
|
-
get visibleCashBalance() {
|
|
421
|
-
return this.visibleCashAccounts.reduce((t, e) => t + (e?.balance || 0), 0);
|
|
422
|
-
}
|
|
423
|
-
get visibleCheckingAccounts() {
|
|
424
|
-
return this.checkingAccounts.filter((t) => !t.is_hidden);
|
|
425
|
-
}
|
|
426
|
-
get visibleDebtAccounts() {
|
|
427
|
-
return this.debtAccounts.filter((t) => !t.is_hidden);
|
|
428
|
-
}
|
|
429
|
-
get visibleFinstrongAccounts() {
|
|
430
|
-
return this.finstrongAccounts.filter(
|
|
431
|
-
(t) => !(t.is_closed || t.is_deleted || t.is_hidden)
|
|
432
|
-
);
|
|
433
|
-
}
|
|
434
|
-
get visibleRetirementAccounts() {
|
|
435
|
-
return this.retirementAccounts.filter((t) => !t.is_hidden);
|
|
436
|
-
}
|
|
437
|
-
get visibleInvestmentAccounts() {
|
|
438
|
-
return this.investmentAccounts.filter((t) => !t.is_hidden);
|
|
439
|
-
}
|
|
440
|
-
get visibleSavingsAccounts() {
|
|
441
|
-
return this.savingsAccounts.filter((t) => !t.is_hidden);
|
|
442
|
-
}
|
|
443
|
-
get savingsAndCheckingAccountsBalance() {
|
|
444
|
-
return this.savingsAndCheckingAccounts.reduce(
|
|
445
|
-
(e, s) => e + (s?.balance || 0),
|
|
446
|
-
0
|
|
447
|
-
);
|
|
448
|
-
}
|
|
449
|
-
get savingsAndCheckingAccounts() {
|
|
450
|
-
return this.accounts.filter(
|
|
451
|
-
(e) => e.account_type === d.SAVINGS || e.account_type === d.CHECKING
|
|
452
|
-
);
|
|
453
|
-
}
|
|
454
|
-
setAccounts = (t) => {
|
|
455
|
-
this.accounts = t, this.accountsLoading = !1, this.accountsLoaded = !0;
|
|
456
|
-
};
|
|
457
|
-
setMembers = (t) => {
|
|
458
|
-
this.members = t, this.membersLoading = !1, this.membersLoaded = !0;
|
|
459
|
-
};
|
|
460
|
-
setInstitutions = (t) => {
|
|
461
|
-
this.institutions = t, this.institutionsLoading = !1, this.institutionsLoaded = !0;
|
|
462
|
-
};
|
|
463
|
-
addAccount = async (t) => {
|
|
464
|
-
try {
|
|
465
|
-
const e = await this.api.createAccount(t);
|
|
466
|
-
c(() => {
|
|
467
|
-
this.accounts = [...this.accounts, e];
|
|
468
|
-
});
|
|
469
|
-
} catch (e) {
|
|
470
|
-
console.error("Error occurred while adding an account:", e), this.globalStore.captureException(e, { store: "AccountStore" });
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
loadAccounts = async () => {
|
|
474
|
-
if (!this.accountsLoading) {
|
|
475
|
-
this.accountsLoading = !0;
|
|
476
|
-
try {
|
|
477
|
-
const t = await this.api.getAccounts();
|
|
478
|
-
this.setAccounts(t);
|
|
479
|
-
} catch (t) {
|
|
480
|
-
console.error("Error occurred while loading accounts:", t), this.globalStore.captureException(t, { store: "AccountStore" }), this.setAccounts([]);
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
};
|
|
484
|
-
loadInstitutions = async () => {
|
|
485
|
-
if (!this.institutionsLoading) {
|
|
486
|
-
this.institutionsLoading = !0;
|
|
487
|
-
try {
|
|
488
|
-
const t = await this.api.getInstitutions();
|
|
489
|
-
this.setInstitutions(t);
|
|
490
|
-
} catch (t) {
|
|
491
|
-
console.error("Error occurred while loading institutions:", t), this.globalStore.captureException(t, { store: "AccountStore" }), this.setInstitutions([]);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
};
|
|
495
|
-
loadMembers = async () => {
|
|
496
|
-
if (!this.membersLoading) {
|
|
497
|
-
this.membersLoading = !0;
|
|
498
|
-
try {
|
|
499
|
-
const t = await this.api.getMembers();
|
|
500
|
-
this.setMembers(t);
|
|
501
|
-
} catch (t) {
|
|
502
|
-
console.error("Error occurred while loading members:", t), this.globalStore.captureException(t, { store: "AccountStore" }), this.setMembers([]);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
};
|
|
506
|
-
mergeAccounts = async (t) => {
|
|
507
|
-
try {
|
|
508
|
-
const e = await this.api.mergeAccounts(t), s = e[Object.keys(e)[0]];
|
|
509
|
-
c(() => {
|
|
510
|
-
const a = this.accounts.findIndex((i) => i.guid === t[1]);
|
|
511
|
-
this.accounts.splice(a, 1);
|
|
512
|
-
const o = this.accounts.findIndex((i) => i.guid === t[0]);
|
|
513
|
-
this.accounts.splice(o, 1, s);
|
|
514
|
-
});
|
|
515
|
-
} catch (e) {
|
|
516
|
-
console.error("Error occurred while merging accounts:", e), this.globalStore.captureException(e, { store: "AccountStore" });
|
|
517
|
-
}
|
|
518
|
-
};
|
|
519
|
-
/**
|
|
520
|
-
* DEPRECATED: Use loadAccountData instead
|
|
521
|
-
*/
|
|
522
|
-
refreshAccounts = async () => {
|
|
523
|
-
await Promise.all([this.loadAccounts(), this.loadInstitutions(), this.loadMembers()]);
|
|
524
|
-
};
|
|
525
|
-
refreshMembers = async () => {
|
|
526
|
-
try {
|
|
527
|
-
await this.api.refreshAllMembers();
|
|
528
|
-
} catch (t) {
|
|
529
|
-
console.error("Error occurred while refreshing members:", t), this.globalStore.captureException(t, { store: "AccountStore" });
|
|
530
|
-
}
|
|
531
|
-
};
|
|
532
|
-
removeAccount = async (t) => {
|
|
533
|
-
try {
|
|
534
|
-
await this.api.deleteAccount(t);
|
|
535
|
-
const e = this.accounts.findIndex((s) => s.guid === t);
|
|
536
|
-
this.accounts.splice(e, 1);
|
|
537
|
-
} catch (e) {
|
|
538
|
-
console.error("Error occurred while removing an account:", e), this.globalStore.captureException(e, { store: "AccountStore" });
|
|
539
|
-
}
|
|
540
|
-
};
|
|
541
|
-
updateAccount = async (t) => {
|
|
542
|
-
try {
|
|
543
|
-
const e = await this.api.updateAccount(t), s = this.accounts.findIndex(
|
|
544
|
-
(a) => a.guid === e.guid
|
|
545
|
-
);
|
|
546
|
-
this.accounts.splice(s, 1, e);
|
|
547
|
-
} catch (e) {
|
|
548
|
-
console.error("Error occurred while updating account:", e), this.globalStore.captureException(e, { store: "AccountStore" });
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
updateAccountBalance = (t, e) => {
|
|
552
|
-
const s = this.accounts.find((a) => a.guid === t);
|
|
553
|
-
s && c(() => {
|
|
554
|
-
s.balance = (s.balance || 0) + e;
|
|
555
|
-
});
|
|
556
|
-
};
|
|
557
|
-
updateAccountFilter = async (t) => {
|
|
558
|
-
try {
|
|
559
|
-
const e = [];
|
|
560
|
-
for (const [i, l] of t.entries()) {
|
|
561
|
-
const g = this.accounts.find((f) => f.guid === i);
|
|
562
|
-
if (g && g.is_excluded_from_accounts === l) {
|
|
563
|
-
const f = { ...g, is_excluded_from_accounts: !l };
|
|
564
|
-
e.push(
|
|
565
|
-
this.api.updateAccount(f).catch((R) => (console.error("Error occurred while updating account filter:", R), this.globalStore.captureException(R, { store: "AccountStore" }), null))
|
|
566
|
-
);
|
|
567
|
-
}
|
|
568
|
-
}
|
|
569
|
-
const a = (await Promise.all(e)).filter((i) => i !== null), o = [...this.accounts];
|
|
570
|
-
for (const i of a) {
|
|
571
|
-
const l = o.findIndex((g) => g.guid === i.guid);
|
|
572
|
-
l !== -1 && o.splice(l, 1, i);
|
|
573
|
-
}
|
|
574
|
-
this.setAccounts(o);
|
|
575
|
-
} catch (e) {
|
|
576
|
-
console.error("Error occurred while updating account filter:", e), this.globalStore.captureException(e, { store: "AccountStore" });
|
|
577
|
-
}
|
|
578
|
-
};
|
|
579
|
-
}
|
|
580
|
-
let le = class {
|
|
581
|
-
selectedAccount = {};
|
|
582
|
-
selectedMember = {};
|
|
583
|
-
constructor() {
|
|
584
|
-
h(this);
|
|
585
|
-
}
|
|
586
|
-
setSelectedAccount = (t) => this.selectedAccount = t;
|
|
587
|
-
setSelectedMember = (t) => this.selectedMember = t;
|
|
588
|
-
};
|
|
589
|
-
class he {
|
|
590
|
-
globalStore;
|
|
591
|
-
api = new j("/", "");
|
|
592
|
-
bannerApi = new X("/");
|
|
593
|
-
appData = {};
|
|
594
|
-
isAppDataLoaded = !1;
|
|
595
|
-
banner = {};
|
|
596
|
-
constructor(t) {
|
|
597
|
-
this.globalStore = t, this.api = new j(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
598
|
-
}
|
|
599
|
-
get appConfig() {
|
|
600
|
-
return this.globalStore.appConfig;
|
|
601
|
-
}
|
|
602
|
-
get clientCommunicationProfile() {
|
|
603
|
-
return this.appData.client_communication_profile;
|
|
604
|
-
}
|
|
605
|
-
get clientInsightProfile() {
|
|
606
|
-
return this.appData.client_insight_profile;
|
|
607
|
-
}
|
|
608
|
-
get user() {
|
|
609
|
-
return this.appData.user;
|
|
610
|
-
}
|
|
611
|
-
get userCommunicationProfile() {
|
|
612
|
-
return this.appData.user_communication_profile;
|
|
613
|
-
}
|
|
614
|
-
get userProfile() {
|
|
615
|
-
return this.appData.user_profile;
|
|
616
|
-
}
|
|
617
|
-
setAppData = (t) => {
|
|
618
|
-
this.appData = t, this.bannerApi = new X(t.address?.bullseye || "/"), this.isAppDataLoaded = !0;
|
|
619
|
-
};
|
|
620
|
-
loadAppData = async () => {
|
|
621
|
-
try {
|
|
622
|
-
const t = await this.api.getAppData();
|
|
623
|
-
this.setAppData(t);
|
|
624
|
-
} catch (t) {
|
|
625
|
-
console.error("Error loading app data:", t), this.globalStore.captureException(t, { store: "AppDataStore" });
|
|
626
|
-
}
|
|
627
|
-
};
|
|
628
|
-
loadBanner = async () => {
|
|
629
|
-
try {
|
|
630
|
-
const t = this.user?.guid ?? null, e = t ? await this.bannerApi.getBanner(t) : {};
|
|
631
|
-
c(() => {
|
|
632
|
-
this.banner = e;
|
|
633
|
-
});
|
|
634
|
-
} catch (t) {
|
|
635
|
-
console.error("Error loading banner:", t), this.globalStore.captureException(t, { store: "AppDataStore" });
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
setUser = (t) => this.appData.user = t;
|
|
639
|
-
setUserCommunicationProfile = (t) => this.appData.user_communication_profile = t;
|
|
640
|
-
setUserProfile = (t) => this.appData.user_profile = t;
|
|
641
|
-
}
|
|
642
|
-
class de {
|
|
643
|
-
globalStore;
|
|
644
|
-
survey = null;
|
|
645
|
-
currentQuestionIndex = 0;
|
|
646
|
-
question = null;
|
|
647
|
-
response = null;
|
|
648
|
-
responses = {};
|
|
649
|
-
constructor(t) {
|
|
650
|
-
this.globalStore = t, h(this);
|
|
651
|
-
}
|
|
652
|
-
get isLastQuestion() {
|
|
653
|
-
return this.currentQuestionIndex === this.surveyQuestions.length - 1;
|
|
654
|
-
}
|
|
655
|
-
get questionCount() {
|
|
656
|
-
return `${this.currentQuestionIndex + 1}/${this.surveyQuestions.length}`;
|
|
657
|
-
}
|
|
658
|
-
get responsePayload() {
|
|
659
|
-
return {
|
|
660
|
-
$survey_id: this.surveyId,
|
|
661
|
-
...this.responses
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
// TODO hardcode elsewhere
|
|
665
|
-
get surveyId() {
|
|
666
|
-
return window.app?.postHogPublicKey === "phc_KclQGnOZEaYCttkpiVpuyOYeBlixGo6xNphYgWV4CXo" ? "0196caa6-9b37-0000-98a7-f04e8d56faf5" : "0196a6b0-ccde-0000-b980-0b84ea2fef4a";
|
|
667
|
-
}
|
|
668
|
-
get surveyQuestions() {
|
|
669
|
-
return this.survey ? this.survey.questions : [];
|
|
670
|
-
}
|
|
671
|
-
loadSurvey = (t = !1) => {
|
|
672
|
-
Ct.getActiveMatchingSurveys((e) => {
|
|
673
|
-
c(() => {
|
|
674
|
-
if (e.length > 0) {
|
|
675
|
-
const s = e.find((a) => a.id === this.surveyId);
|
|
676
|
-
s && (this.survey = s, this.currentQuestionIndex = 0, this.question = s.questions[0], this.response = null, this.responses = {});
|
|
677
|
-
}
|
|
678
|
-
});
|
|
679
|
-
}, t);
|
|
680
|
-
};
|
|
681
|
-
nextQuestion = () => {
|
|
682
|
-
this.currentQuestionIndex < this.surveyQuestions.length - 1 && (this.currentQuestionIndex += 1), this.response = null, this.question = this.surveyQuestions[this.currentQuestionIndex];
|
|
683
|
-
};
|
|
684
|
-
resetStore = () => {
|
|
685
|
-
this.survey = null, this.currentQuestionIndex = 0, this.question = null, this.response = null, this.responses = {};
|
|
686
|
-
};
|
|
687
|
-
setResponse = (t) => {
|
|
688
|
-
this.response = t, this.question && (this.responses[`$survey_response_${this.question.id}`] = t);
|
|
689
|
-
};
|
|
690
|
-
}
|
|
691
|
-
function ue(r, t, e, s = "asc") {
|
|
692
|
-
const a = s === "desc" ? -1 : 1;
|
|
693
|
-
return [...r, ...t].sort((o, i) => o[e] < i[e] ? -1 * a : o[e] > i[e] ? 1 * a : 0);
|
|
694
|
-
}
|
|
695
|
-
const ge = (r) => ({
|
|
696
|
-
...r,
|
|
697
|
-
//fields that are offer specific, adding here for visibility
|
|
698
|
-
image_url: r.image_url,
|
|
699
|
-
guid: r.guid,
|
|
700
|
-
created_at: r.created_at,
|
|
701
|
-
dismissed_at: r.dismissed_at,
|
|
702
|
-
active_at: r.campaign_activated_at,
|
|
703
|
-
displayed_at: r.has_been_viewed,
|
|
704
|
-
post_message_secondary: r.pulse_post_message_secondary,
|
|
705
|
-
//offer fields mapped to beat fields for functionality
|
|
706
|
-
title: r.pulse_title || r.campaign_name,
|
|
707
|
-
html_title: r.pulse_title || r.campaign_name,
|
|
708
|
-
short_title: r.pulse_title || r.campaign_name,
|
|
709
|
-
html_short_title: r.pulse_title || r.campaign_name,
|
|
710
|
-
micro_title: r.pulse_title || r.campaign_name,
|
|
711
|
-
html_micro_title: r.pulse_title || r.campaign_name,
|
|
712
|
-
supporting_action: r.pulse_call_to_action_text_secondary,
|
|
713
|
-
description: r.pulse_body,
|
|
714
|
-
html_description: r.pulse_body,
|
|
715
|
-
micro_description: r.pulse_body,
|
|
716
|
-
html_micro_description: r.pulse_body,
|
|
717
|
-
call_to_action: r.pulse_call_to_action_text,
|
|
718
|
-
html_micro_call_to_action: r.pulse_call_to_action_text,
|
|
719
|
-
micro_call_to_action: r.pulse_call_to_action_text,
|
|
720
|
-
is_dismissed: r.has_been_dismissed,
|
|
721
|
-
icon_type: 5,
|
|
722
|
-
template: "MarketingOffer",
|
|
723
|
-
//beat fields we null out
|
|
724
|
-
account_guids: [],
|
|
725
|
-
data_series: {},
|
|
726
|
-
has_been_displayed: !1,
|
|
727
|
-
is_obsolete: !1,
|
|
728
|
-
is_refreshable: !1,
|
|
729
|
-
is_sampled: !1,
|
|
730
|
-
merchant_guids: [],
|
|
731
|
-
payload: {},
|
|
732
|
-
pulse_campaign_name: r.campaign_name,
|
|
733
|
-
scheduled_payment_guids: [],
|
|
734
|
-
transaction_guids: [],
|
|
735
|
-
user_guid: "",
|
|
736
|
-
user_verification: 0
|
|
737
|
-
});
|
|
738
|
-
class pe {
|
|
739
|
-
globalStore;
|
|
740
|
-
api = new G("/", "");
|
|
741
|
-
beats = [];
|
|
742
|
-
isLoading = !1;
|
|
743
|
-
constructor(t) {
|
|
744
|
-
this.globalStore = t, this.api = new G(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
745
|
-
}
|
|
746
|
-
loadBeats = async () => {
|
|
747
|
-
this.isLoading = !0;
|
|
748
|
-
try {
|
|
749
|
-
const t = await this.api.getBeats(), s = (await this.api.getOffers()).map((a) => ge(a));
|
|
750
|
-
c(() => {
|
|
751
|
-
this.beats = ue(t, s, "active_at", "desc");
|
|
752
|
-
});
|
|
753
|
-
} catch (t) {
|
|
754
|
-
console.error("Error occurred while loading beats:", t), this.globalStore.captureException(t, { store: "BeatStore" });
|
|
755
|
-
} finally {
|
|
756
|
-
c(() => {
|
|
757
|
-
this.isLoading = !1;
|
|
758
|
-
});
|
|
759
|
-
}
|
|
760
|
-
};
|
|
761
|
-
getFilteredBeats(t) {
|
|
762
|
-
const { categoryGuids: e, templates: s } = t;
|
|
763
|
-
let a = this.beats;
|
|
764
|
-
return e && (a = this.filterBeatsByCategory(a, e)), s && (a = this.filterBeatsByTemplate(a, s)), a;
|
|
765
|
-
}
|
|
766
|
-
// Return beats with any beat.category_guids that are in categoryGuids
|
|
767
|
-
filterBeatsByCategory(t, e) {
|
|
768
|
-
return t.filter((s) => s.category_guids?.some((a) => e.includes(a)));
|
|
769
|
-
}
|
|
770
|
-
// Return beats with a beat.template that is in templates
|
|
771
|
-
filterBeatsByTemplate(t, e) {
|
|
772
|
-
return t.filter((s) => e.some((a) => s.template === a));
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
class _e {
|
|
776
|
-
api = new J("/", "");
|
|
777
|
-
globalStore;
|
|
778
|
-
alert = "";
|
|
779
|
-
dateRange = { start: C(S()), end: b(S()) };
|
|
780
|
-
budgets = [];
|
|
781
|
-
selectedBudget;
|
|
782
|
-
selectedSubBudget;
|
|
783
|
-
isDataLoaded = !1;
|
|
784
|
-
theme = {};
|
|
785
|
-
merchantBudgets = [];
|
|
786
|
-
constructor(t) {
|
|
787
|
-
this.globalStore = t, this.api = new J(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
788
|
-
}
|
|
789
|
-
loadBudgetData = async () => {
|
|
790
|
-
this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(), gt(
|
|
791
|
-
() => this.detailedBudgets,
|
|
792
|
-
(t) => {
|
|
793
|
-
if (t) {
|
|
794
|
-
const e = this.selectedBudget;
|
|
795
|
-
e && (this.selectedBudget = Et(t, e.guid));
|
|
796
|
-
const s = this.selectedSubBudget;
|
|
797
|
-
s && s.parent_guid && (this.selectedSubBudget = It(
|
|
798
|
-
t,
|
|
799
|
-
s.guid,
|
|
800
|
-
s.parent_guid
|
|
801
|
-
));
|
|
802
|
-
}
|
|
803
|
-
}
|
|
804
|
-
);
|
|
805
|
-
};
|
|
806
|
-
get detailedBudgets() {
|
|
807
|
-
return V(
|
|
808
|
-
this.budgets.filter(
|
|
809
|
-
(t) => t.category_guid !== w.INCOME && t.category_guid !== w.TRANSFER && t.category_guid !== w.INVESTMENTS
|
|
810
|
-
),
|
|
811
|
-
this.globalStore.categoryStore.detailedCategories,
|
|
812
|
-
this.globalStore.copyStore.copy.budgets,
|
|
813
|
-
this.theme
|
|
814
|
-
).sort((t, e) => t.percentage > e.percentage ? -1 : t.percentage < e.percentage ? 1 : 0);
|
|
815
|
-
}
|
|
816
|
-
// TODO: Replace this with income from recurring transactions. Income budgets are deprecated.
|
|
817
|
-
get incomeBudget() {
|
|
818
|
-
return V(
|
|
819
|
-
this.budgets.filter((s) => !s.parent_guid),
|
|
820
|
-
this.globalStore.categoryStore.detailedCategories,
|
|
821
|
-
this.globalStore.copyStore.copy.budgets,
|
|
822
|
-
this.theme
|
|
823
|
-
).reduce(
|
|
824
|
-
(s, a) => a.category_guid !== w.INCOME ? s : !s || a.percentage > s.percentage ? a : s,
|
|
825
|
-
void 0
|
|
826
|
-
)?.amount;
|
|
827
|
-
}
|
|
828
|
-
get unbudgetedCategories() {
|
|
829
|
-
return this.globalStore.categoryStore.spendCategories.filter(
|
|
830
|
-
(t) => !this.detailedBudgets.find((e) => e.category_guid === t.guid)
|
|
831
|
-
);
|
|
832
|
-
}
|
|
833
|
-
get totalBudgeted() {
|
|
834
|
-
return this.detailedBudgets.reduce((t, e) => t + e.amount, 0);
|
|
835
|
-
}
|
|
836
|
-
addBudget = async (t, e, s = null) => {
|
|
837
|
-
try {
|
|
838
|
-
const a = await this.api.addBudget(t, e, s);
|
|
839
|
-
c(() => {
|
|
840
|
-
this.budgets.push(a);
|
|
841
|
-
});
|
|
842
|
-
} catch (a) {
|
|
843
|
-
console.error("Error adding budget:", a), this.globalStore.captureException(a, { store: "BudgetsStore" });
|
|
844
|
-
}
|
|
845
|
-
};
|
|
846
|
-
deleteBudget = async (t) => {
|
|
847
|
-
try {
|
|
848
|
-
await this.api.deleteBudget(t), c(() => {
|
|
849
|
-
const e = this.budgets.findIndex((s) => s.guid === t);
|
|
850
|
-
e >= 0 && this.budgets.splice(e, 1);
|
|
851
|
-
});
|
|
852
|
-
} catch (e) {
|
|
853
|
-
console.error("Error deleting budget:", e), this.globalStore.captureException(e, { store: "BudgetsStore" });
|
|
854
|
-
}
|
|
855
|
-
};
|
|
856
|
-
loadBudgets = async () => {
|
|
857
|
-
try {
|
|
858
|
-
const t = await this.api.getBudgets();
|
|
859
|
-
this.setBudgets(t);
|
|
860
|
-
} catch (t) {
|
|
861
|
-
throw console.error("Error occurred while loading budgets:", t), this.globalStore.captureException(t, { store: "BudgetsStore" }), t;
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
setAlert = (t) => this.alert = t;
|
|
865
|
-
setBudgets = (t) => {
|
|
866
|
-
this.budgets = t, this.isDataLoaded = !0;
|
|
867
|
-
};
|
|
868
|
-
setDateRange = (t) => this.dateRange = t;
|
|
869
|
-
setSelectedBudget = (t) => this.selectedBudget = t;
|
|
870
|
-
setSelectedSubBudget = (t) => this.selectedSubBudget = t;
|
|
871
|
-
setTheme = (t) => this.theme = t;
|
|
872
|
-
/**
|
|
873
|
-
* Recalculate budget by using the average amount from top-level categories
|
|
874
|
-
* @param categories Detailed categories
|
|
875
|
-
*/
|
|
876
|
-
recalculateBudgets = async (t) => {
|
|
877
|
-
try {
|
|
878
|
-
for (const s of t) {
|
|
879
|
-
const a = this.budgets.find((o) => o.category_guid === s.guid);
|
|
880
|
-
a ? await this.api.updateBudget({
|
|
881
|
-
...a,
|
|
882
|
-
amount: s.totalAverageAmount
|
|
883
|
-
}) : await this.api.addBudget(s, s.totalAverageAmount);
|
|
884
|
-
}
|
|
885
|
-
const e = this.budgets.filter(
|
|
886
|
-
(s) => !t.find((a) => a.guid === s.category_guid)
|
|
887
|
-
);
|
|
888
|
-
for (const s of e)
|
|
889
|
-
await this.api.deleteBudget(s.guid);
|
|
890
|
-
return await this.loadBudgets(), { data: this.budgets, isSuccess: !0 };
|
|
891
|
-
} catch (e) {
|
|
892
|
-
return console.error("Error recalculating budgets:", e), this.globalStore.captureException(e, { store: "BudgetsStore" }), { data: [], isSuccess: !1 };
|
|
893
|
-
}
|
|
894
|
-
};
|
|
895
|
-
updateBudget = async (t) => {
|
|
896
|
-
try {
|
|
897
|
-
const e = await this.api.updateBudget(t);
|
|
898
|
-
c(() => {
|
|
899
|
-
const s = this.budgets.findIndex((a) => a.guid === t.guid);
|
|
900
|
-
s >= 0 && (this.budgets[s] = e);
|
|
901
|
-
});
|
|
902
|
-
} catch (e) {
|
|
903
|
-
console.error("Error updating budget:", e), this.globalStore.captureException(e, { store: "BudgetsStore" });
|
|
904
|
-
}
|
|
905
|
-
};
|
|
906
|
-
getMerchantBudgetByMerchantGuid = (t) => this.merchantBudgets.find(
|
|
907
|
-
(e) => e?.merchant_guid === t
|
|
908
|
-
);
|
|
909
|
-
setMerchantBudgets = (t) => {
|
|
910
|
-
this.merchantBudgets = t;
|
|
911
|
-
};
|
|
912
|
-
addMerchantBudget = async (t, e) => {
|
|
913
|
-
try {
|
|
914
|
-
const s = await this.api.addMerchantBudget(t, e);
|
|
915
|
-
return c(() => {
|
|
916
|
-
this.merchantBudgets.push(s);
|
|
917
|
-
}), { isSuccess: !0 };
|
|
918
|
-
} catch (s) {
|
|
919
|
-
return console.error("Error adding merchant budget:", s), this.globalStore.captureException(s, { store: "BudgetsStore" }), { isSuccess: !1 };
|
|
920
|
-
}
|
|
921
|
-
};
|
|
922
|
-
updateMerchantBudget = async (t) => {
|
|
923
|
-
try {
|
|
924
|
-
const { guid: e, amount: s } = t, a = await this.api.updateMerchantBudget(e, s);
|
|
925
|
-
return c(() => {
|
|
926
|
-
const o = this.merchantBudgets.findIndex((i) => i.guid === t.guid);
|
|
927
|
-
o >= 0 && (this.merchantBudgets[o] = a);
|
|
928
|
-
}), { isSuccess: !0 };
|
|
929
|
-
} catch (e) {
|
|
930
|
-
return console.error("Error updating merchant budget:", e), this.globalStore.captureException(e, { store: "BudgetsStore" }), { isSuccess: !1 };
|
|
931
|
-
}
|
|
932
|
-
};
|
|
933
|
-
deleteMerchantBudget = async (t) => {
|
|
934
|
-
try {
|
|
935
|
-
return await this.api.deleteMerchantBudget(t), c(() => {
|
|
936
|
-
this.merchantBudgets = this.merchantBudgets.filter((e) => e.guid !== t);
|
|
937
|
-
}), { isSuccess: !0 };
|
|
938
|
-
} catch (e) {
|
|
939
|
-
return console.error("Error deleting merchant budget:", e), this.globalStore.captureException(e, { store: "BudgetsStore" }), { isSuccess: !1 };
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
|
-
}
|
|
943
|
-
class ye {
|
|
944
|
-
globalStore;
|
|
945
|
-
uiStore;
|
|
946
|
-
constructor(t) {
|
|
947
|
-
this.globalStore = t, this.uiStore = new Se(t), h(this);
|
|
948
|
-
}
|
|
949
|
-
completeOnboarding = async () => {
|
|
950
|
-
const t = {
|
|
951
|
-
...this.globalStore.userStore.userProfile,
|
|
952
|
-
has_completed_cash_flow_onboarding: !0
|
|
953
|
-
};
|
|
954
|
-
await this.globalStore.userStore.updateUserProfile(t);
|
|
955
|
-
};
|
|
956
|
-
}
|
|
957
|
-
let Se = class {
|
|
958
|
-
globalStore;
|
|
959
|
-
// Cashflow is hard-coded to display 30 days starting from today. This is the
|
|
960
|
-
// single source of truth for Cash Flow's window; it intentionally does NOT
|
|
961
|
-
// mutate RecurringTransactionsStore.dateRange, so Cash Flow stays decoupled
|
|
962
|
-
// from other widgets (e.g. Recurring Transactions) that drive that shared range.
|
|
963
|
-
dateRange = { start: S(), end: Dt(S(), 30) };
|
|
964
|
-
isDirty = !1;
|
|
965
|
-
constructor(t) {
|
|
966
|
-
this.globalStore = t, h(this);
|
|
967
|
-
}
|
|
968
|
-
// Recurrence data scoped to Cash Flow's own dateRange, sourced from the
|
|
969
|
-
// range-parameterized helpers on RecurringTransactionsStore. Computeds (not
|
|
970
|
-
// component state) per the project's MobX conventions.
|
|
971
|
-
get income() {
|
|
972
|
-
return this.globalStore.recurringTransactionsStore.incomeForRange(this.dateRange);
|
|
973
|
-
}
|
|
974
|
-
get upcomingIncome() {
|
|
975
|
-
return this.globalStore.recurringTransactionsStore.upcomingIncomeForRange(this.dateRange);
|
|
976
|
-
}
|
|
977
|
-
get upcomingExpenses() {
|
|
978
|
-
return this.globalStore.recurringTransactionsStore.upcomingExpensesForRange(this.dateRange);
|
|
979
|
-
}
|
|
980
|
-
get nextIncome() {
|
|
981
|
-
return this.globalStore.recurringTransactionsStore.nextIncomeForRange(this.dateRange);
|
|
982
|
-
}
|
|
983
|
-
// Visible cash accounts that are currently selected in the account filter.
|
|
984
|
-
// Computed (single source of truth) so it stays in sync with account data and
|
|
985
|
-
// the filter without effect-based syncing in components.
|
|
986
|
-
get selectedCashAccounts() {
|
|
987
|
-
const { selectedAccountGuids: t } = this.globalStore.globalUiStore;
|
|
988
|
-
return this.globalStore.accountStore.visibleCashAccounts.filter(
|
|
989
|
-
(e) => t.includes(e.guid)
|
|
990
|
-
);
|
|
991
|
-
}
|
|
992
|
-
// Total spendable/starting balance across the selected cash accounts, using
|
|
993
|
-
// the shared per-account balance rule (available vs current balance).
|
|
994
|
-
get selectedCashBalance() {
|
|
995
|
-
const t = this.globalStore.appConfig.config.display_available_balance_in_accounts;
|
|
996
|
-
return this.selectedCashAccounts.reduce(
|
|
997
|
-
(e, s) => e + At(s, t),
|
|
998
|
-
0
|
|
999
|
-
);
|
|
1000
|
-
}
|
|
1001
|
-
// Returns the number of days until the next income activity or 0 if there is no income activity
|
|
1002
|
-
get daysUntilNextIncome() {
|
|
1003
|
-
return this.nextIncome ? Math.abs(xt(S(), this.nextIncome.expectedDate)) : 0;
|
|
1004
|
-
}
|
|
1005
|
-
// Returns the expenses (Activities) until the next income activity or the end of the month
|
|
1006
|
-
// if there is no income activity
|
|
1007
|
-
get expensesTilNextIncome() {
|
|
1008
|
-
return this.upcomingExpenses.filter(
|
|
1009
|
-
(t) => W(t.expectedDate, this.nextIncome?.expectedDate || b(/* @__PURE__ */ new Date()))
|
|
1010
|
-
);
|
|
1011
|
-
}
|
|
1012
|
-
};
|
|
1013
|
-
class fe {
|
|
1014
|
-
globalStore;
|
|
1015
|
-
uiStore;
|
|
1016
|
-
api = new Z("/", "");
|
|
1017
|
-
categories = [];
|
|
1018
|
-
categoriesLoaded = !1;
|
|
1019
|
-
categoriesLoading = !1;
|
|
1020
|
-
dateRangeCategoryTotals = [];
|
|
1021
|
-
monthlyCategoryTotals = [];
|
|
1022
|
-
dateRangeTotalsLoaded = !1;
|
|
1023
|
-
dateRangeTotalsLoading = !1;
|
|
1024
|
-
monthlyTotalsLoaded = !1;
|
|
1025
|
-
monthlyTotalsLoading = !1;
|
|
1026
|
-
constructor(t) {
|
|
1027
|
-
this.globalStore = t, this.uiStore = new me(), this.api = new Z(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
1028
|
-
}
|
|
1029
|
-
get detailedCategories() {
|
|
1030
|
-
return this.globalStore.isInitialized ? Lt(
|
|
1031
|
-
this.categories,
|
|
1032
|
-
this.globalStore.copyStore.copy.categories,
|
|
1033
|
-
this.dateRangeCategoryTotals,
|
|
1034
|
-
this.monthlyCategoryTotals
|
|
1035
|
-
) : [];
|
|
1036
|
-
}
|
|
1037
|
-
get detailedCategoriesWithTransactions() {
|
|
1038
|
-
return vt(
|
|
1039
|
-
this.detailedCategories,
|
|
1040
|
-
this.globalStore.transactionStore.sortedTransactions
|
|
1041
|
-
);
|
|
1042
|
-
}
|
|
1043
|
-
get incomeCategories() {
|
|
1044
|
-
return this.detailedCategories.filter((t) => t.is_income);
|
|
1045
|
-
}
|
|
1046
|
-
get spendCategories() {
|
|
1047
|
-
return this.detailedCategories.filter(
|
|
1048
|
-
(t) => !t.is_income && !t.isTransfer && t.guid !== w.INVESTMENTS
|
|
1049
|
-
);
|
|
1050
|
-
}
|
|
1051
|
-
get transferCategories() {
|
|
1052
|
-
return this.detailedCategories.filter((t) => t.isTransfer);
|
|
1053
|
-
}
|
|
1054
|
-
setCategories = (t) => {
|
|
1055
|
-
this.categories = t, this.categoriesLoading = !1, this.categoriesLoaded = !0;
|
|
1056
|
-
};
|
|
1057
|
-
setMonthlyCategoryTotals = (t) => {
|
|
1058
|
-
this.monthlyCategoryTotals = t, this.monthlyTotalsLoading = !1, this.monthlyTotalsLoaded = !0;
|
|
1059
|
-
};
|
|
1060
|
-
setDateRangeCategoryTotals = (t) => {
|
|
1061
|
-
this.dateRangeCategoryTotals = t, this.dateRangeTotalsLoading = !1, this.dateRangeTotalsLoaded = !0;
|
|
1062
|
-
};
|
|
1063
|
-
get trendsCategories() {
|
|
1064
|
-
return this.detailedCategories.filter((t) => t.totalAmount !== 0).filter((t) => t.guid !== w.INVESTMENTS && t.guid !== w.TRANSFER);
|
|
1065
|
-
}
|
|
1066
|
-
addCategory = async (t, e) => {
|
|
1067
|
-
const s = { name: t, parent_guid: e };
|
|
1068
|
-
try {
|
|
1069
|
-
await this.api.addCategory(s), await this.loadCategories();
|
|
1070
|
-
} catch (a) {
|
|
1071
|
-
console.error("Error occurred while adding category:", a), this.globalStore.captureException(a, { store: "CategoryStore" });
|
|
1072
|
-
}
|
|
1073
|
-
};
|
|
1074
|
-
loadCategories = async () => {
|
|
1075
|
-
if (!this.categoriesLoading) {
|
|
1076
|
-
this.categoriesLoading = !0;
|
|
1077
|
-
try {
|
|
1078
|
-
const t = await this.api.getCategories();
|
|
1079
|
-
this.setCategories(t);
|
|
1080
|
-
} catch (t) {
|
|
1081
|
-
console.error("Error occurred while getting categories:", t), this.globalStore.captureException(t, { store: "CategoryStore" }), c(() => {
|
|
1082
|
-
this.categoriesLoading = !1;
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
};
|
|
1087
|
-
loadDateRangeCategoryTotals = async (t, e, s) => {
|
|
1088
|
-
if (!this.dateRangeTotalsLoading) {
|
|
1089
|
-
this.dateRangeTotalsLoading = !0;
|
|
1090
|
-
try {
|
|
1091
|
-
const a = await this.api.getDateRangeCategoryTotals(
|
|
1092
|
-
m(e),
|
|
1093
|
-
m(s),
|
|
1094
|
-
t
|
|
1095
|
-
);
|
|
1096
|
-
this.setDateRangeCategoryTotals(a);
|
|
1097
|
-
} catch (a) {
|
|
1098
|
-
console.error("Error occurred while getting date range category totals:", a), this.globalStore.captureException(a, { store: "CategoryStore" }), this.setDateRangeCategoryTotals([]);
|
|
1099
|
-
}
|
|
1100
|
-
}
|
|
1101
|
-
};
|
|
1102
|
-
loadMonthlyCategoryTotals = async (t = this.globalStore.globalUiStore.selectedAccounts, e, s) => {
|
|
1103
|
-
if (this.monthlyTotalsLoading) return;
|
|
1104
|
-
this.monthlyTotalsLoading = !0;
|
|
1105
|
-
const a = m(C(e ?? N(/* @__PURE__ */ new Date(), 11))), o = m(b(s ?? /* @__PURE__ */ new Date()));
|
|
1106
|
-
try {
|
|
1107
|
-
const i = await this.api.getMonthlyCategoryTotals(a, o, t);
|
|
1108
|
-
this.setMonthlyCategoryTotals(i);
|
|
1109
|
-
} catch (i) {
|
|
1110
|
-
console.error("Error occurred while getting monthly category totals:", i), this.globalStore.captureException(i, { store: "CategoryStore" }), this.setMonthlyCategoryTotals([]);
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
reloadCategoryTotals = async (t, e, s) => {
|
|
1114
|
-
const a = e ?? N(/* @__PURE__ */ new Date(), 11), o = s ?? b(/* @__PURE__ */ new Date());
|
|
1115
|
-
try {
|
|
1116
|
-
await Promise.all([
|
|
1117
|
-
this.loadMonthlyCategoryTotals(t, a, o),
|
|
1118
|
-
this.loadDateRangeCategoryTotals(t, a, o)
|
|
1119
|
-
]);
|
|
1120
|
-
} catch (i) {
|
|
1121
|
-
console.error("Error occurred while getting category totals:", i), this.globalStore.captureException(i, { store: "CategoryStore" });
|
|
1122
|
-
}
|
|
1123
|
-
};
|
|
1124
|
-
removeCategory = async (t) => {
|
|
1125
|
-
try {
|
|
1126
|
-
await this.api.removeCategory(t), await this.loadCategories();
|
|
1127
|
-
} catch (e) {
|
|
1128
|
-
console.error("Error occurred while removing category:", e), this.globalStore.captureException(e, { store: "CategoryStore" });
|
|
1129
|
-
}
|
|
1130
|
-
};
|
|
1131
|
-
updateCategory = async (t) => {
|
|
1132
|
-
try {
|
|
1133
|
-
await this.api.updateCategory(t), await this.loadCategories();
|
|
1134
|
-
} catch (e) {
|
|
1135
|
-
console.error("Error occurred while updating category:", e), this.globalStore.captureException(e, { store: "CategoryStore" });
|
|
1136
|
-
}
|
|
1137
|
-
};
|
|
1138
|
-
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
|
1139
|
-
getCategoryName = (t) => this.categories.find((s) => s.guid === t)?.name ?? Rt[t];
|
|
1140
|
-
}
|
|
1141
|
-
let me = class {
|
|
1142
|
-
expandedGuid = null;
|
|
1143
|
-
selectedGuid = null;
|
|
1144
|
-
searchValue = "";
|
|
1145
|
-
showSelected = !0;
|
|
1146
|
-
shouldDisableDrawerScroll = !1;
|
|
1147
|
-
unselectable = [];
|
|
1148
|
-
unselectableText = "";
|
|
1149
|
-
savedOnSelect;
|
|
1150
|
-
// todo
|
|
1151
|
-
constructor() {
|
|
1152
|
-
h(this);
|
|
1153
|
-
}
|
|
1154
|
-
setExpandedGuid = (t) => this.expandedGuid = t;
|
|
1155
|
-
setSelectedGuid = (t) => this.selectedGuid = t;
|
|
1156
|
-
setSearchValue = (t) => this.searchValue = t;
|
|
1157
|
-
setShouldDisableDrawerScroll = (t) => this.shouldDisableDrawerScroll = t;
|
|
1158
|
-
setShowSelected = (t) => this.showSelected = t;
|
|
1159
|
-
setUnselectable = (t) => this.unselectable = t;
|
|
1160
|
-
setUnselectableText = (t) => this.unselectableText = t;
|
|
1161
|
-
onSelect = (t) => this.savedOnSelect(t);
|
|
1162
|
-
setOnSelect = (t) => this.savedOnSelect = t;
|
|
1163
|
-
};
|
|
1164
|
-
class Te {
|
|
1165
|
-
globalStore;
|
|
1166
|
-
widgetApi = new lt("/", "");
|
|
1167
|
-
constructor(t) {
|
|
1168
|
-
this.globalStore = t, this.widgetApi = new lt(t.endpoint, t.sessionToken), h(this);
|
|
1169
|
-
}
|
|
1170
|
-
loadWidget = async ({ widget: t = "connect_widget", mode: e = "light", ...s }) => await this.widgetApi.requestWidgetUrl({
|
|
1171
|
-
widget_url: { widget_type: t, color_scheme: e, ...s }
|
|
1172
|
-
});
|
|
1173
|
-
}
|
|
1174
|
-
class be {
|
|
1175
|
-
globalStore;
|
|
1176
|
-
uiStore;
|
|
1177
|
-
constructor(t) {
|
|
1178
|
-
this.globalStore = t, this.uiStore = new Ae(), h(this);
|
|
1179
|
-
}
|
|
1180
|
-
get debts() {
|
|
1181
|
-
const { visibleDebtAccounts: t } = this.globalStore.accountStore, { selectedAccountGuids: e } = this.globalStore.globalUiStore, { debtGoals: s } = this.globalStore.goalStore, a = e.length ? t.filter((o) => e.includes(o.guid)) : t;
|
|
1182
|
-
return Ft(a, s);
|
|
1183
|
-
}
|
|
1184
|
-
get totalMonthlyPayments() {
|
|
1185
|
-
return this.debts.map((e) => Number(e.monthly_payment)).filter((e) => !isNaN(e)).reduce((e, s) => e + s, 0);
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
let Ae = class {
|
|
1189
|
-
isLoading = !1;
|
|
1190
|
-
selectedDebtChartData = {};
|
|
1191
|
-
selectedDebtPriority = Ut.LOWEST_BALANCE;
|
|
1192
|
-
constructor() {
|
|
1193
|
-
h(this);
|
|
1194
|
-
}
|
|
1195
|
-
get showError() {
|
|
1196
|
-
const { interest_rate: t, monthly_payment: e } = this.selectedDebtChartData;
|
|
1197
|
-
return t === void 0 || e === void 0;
|
|
1198
|
-
}
|
|
1199
|
-
get showCompleted() {
|
|
1200
|
-
return this.selectedDebtChartData.is_paid_off;
|
|
1201
|
-
}
|
|
1202
|
-
setIsLoading = (t) => this.isLoading = t;
|
|
1203
|
-
setSelectedDebtChartData = (t) => this.selectedDebtChartData = t;
|
|
1204
|
-
setSelectedDebtPriority = (t) => this.selectedDebtPriority = t;
|
|
1205
|
-
};
|
|
1206
|
-
const we = (r) => r.sort((t, e) => t.monthly_health_score_average.year !== e.monthly_health_score_average.year ? t.monthly_health_score_average.year - e.monthly_health_score_average.year : t.monthly_health_score_average.month - e.monthly_health_score_average.month).map((t) => ({
|
|
1207
|
-
x: k(
|
|
1208
|
-
new Date(0, t.monthly_health_score_average.month - 1, 1),
|
|
1209
|
-
H.MONTH_SHORT
|
|
1210
|
-
),
|
|
1211
|
-
y: Math.round(t.monthly_health_score_average.average_health_score)
|
|
1212
|
-
})), Ee = (r) => r.map(({ transaction: e }) => ({
|
|
1213
|
-
...e
|
|
1214
|
-
})).sort((e, s) => s.date - e.date);
|
|
1215
|
-
class Ie {
|
|
1216
|
-
api = new tt("/", "");
|
|
1217
|
-
augmentedChartData = [];
|
|
1218
|
-
averageHealthScores = [];
|
|
1219
|
-
monthlySummaries = [];
|
|
1220
|
-
incomeTransactions = [];
|
|
1221
|
-
debtSpendTransactions = [];
|
|
1222
|
-
spendingFeeTransactions = [];
|
|
1223
|
-
spendTransactions = [];
|
|
1224
|
-
globalStore;
|
|
1225
|
-
healthScore = {};
|
|
1226
|
-
healthScoreChange;
|
|
1227
|
-
healthScoreChangeReports = [];
|
|
1228
|
-
peerScore = null;
|
|
1229
|
-
isSpendingInitialized = !1;
|
|
1230
|
-
isIncomeInitialized = !1;
|
|
1231
|
-
constructor(t) {
|
|
1232
|
-
this.globalStore = t, this.api = new tt(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
1233
|
-
}
|
|
1234
|
-
setSpendingInitialized = (t) => {
|
|
1235
|
-
this.isSpendingInitialized = t;
|
|
1236
|
-
};
|
|
1237
|
-
setIncomeInitialized = (t) => {
|
|
1238
|
-
this.isIncomeInitialized = t;
|
|
1239
|
-
};
|
|
1240
|
-
calculateHealthScore = async (t = !0) => {
|
|
1241
|
-
try {
|
|
1242
|
-
const e = await this.api.calculateHealthScore();
|
|
1243
|
-
let s = 0;
|
|
1244
|
-
t && await this.loadHealthScoreChangeReports();
|
|
1245
|
-
const a = e?.health_score || 0, o = this.healthScoreChangeReports.at(-1)?.older_health_score || 0;
|
|
1246
|
-
s = a - o, c(() => {
|
|
1247
|
-
this.healthScore = e, this.healthScoreChange = s;
|
|
1248
|
-
});
|
|
1249
|
-
} catch (e) {
|
|
1250
|
-
console.error("Error calculating health score:", e), this.globalStore.captureException(e, { store: "FinstrongStore" });
|
|
1251
|
-
}
|
|
1252
|
-
};
|
|
1253
|
-
loadAverageHealthScores = async () => {
|
|
1254
|
-
try {
|
|
1255
|
-
const t = await this.api.getAverageHealthScores();
|
|
1256
|
-
c(() => {
|
|
1257
|
-
this.averageHealthScores = t;
|
|
1258
|
-
});
|
|
1259
|
-
} catch (t) {
|
|
1260
|
-
console.error("Error loading average health scores:", t), this.globalStore.captureException(t, { store: "FinstrongStore" });
|
|
1261
|
-
}
|
|
1262
|
-
};
|
|
1263
|
-
loadMonthlySummaries = async () => {
|
|
1264
|
-
try {
|
|
1265
|
-
const t = await this.api.getMonthlySummaries();
|
|
1266
|
-
c(() => {
|
|
1267
|
-
this.monthlySummaries = t;
|
|
1268
|
-
});
|
|
1269
|
-
} catch (t) {
|
|
1270
|
-
console.error("Error loading monthly summaries:", t), this.globalStore.captureException(t, { store: "FinstrongStore" });
|
|
1271
|
-
}
|
|
1272
|
-
};
|
|
1273
|
-
loadDebtSpend = async () => {
|
|
1274
|
-
try {
|
|
1275
|
-
const t = await this.api.getDebtSpend();
|
|
1276
|
-
c(() => {
|
|
1277
|
-
this.debtSpendTransactions = t;
|
|
1278
|
-
});
|
|
1279
|
-
} catch (t) {
|
|
1280
|
-
console.error("Error loading debt spend:", t), this.globalStore.captureException(t, { store: "FinstrongStore" });
|
|
1281
|
-
}
|
|
1282
|
-
};
|
|
1283
|
-
loadIncome = async () => {
|
|
1284
|
-
this.setIncomeInitialized(!1);
|
|
1285
|
-
try {
|
|
1286
|
-
const t = await this.api.getIncome();
|
|
1287
|
-
c(() => {
|
|
1288
|
-
this.incomeTransactions = t, this.setIncomeInitialized(!0);
|
|
1289
|
-
});
|
|
1290
|
-
} catch (t) {
|
|
1291
|
-
console.error("Error loading income:", t), this.globalStore.captureException(t, { store: "FinstrongStore" });
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
|
-
loadHealthScoreChangeReports = async () => {
|
|
1295
|
-
const t = m(N(/* @__PURE__ */ new Date(), 2)), e = m(/* @__PURE__ */ new Date());
|
|
1296
|
-
try {
|
|
1297
|
-
const s = await this.api.getHealthScoreChangeReports(
|
|
1298
|
-
t,
|
|
1299
|
-
e
|
|
1300
|
-
);
|
|
1301
|
-
c(() => {
|
|
1302
|
-
this.healthScoreChangeReports = s;
|
|
1303
|
-
});
|
|
1304
|
-
} catch (s) {
|
|
1305
|
-
console.error("Error loading health score change reports:", s), this.globalStore.captureException(s, { store: "FinstrongStore" });
|
|
1306
|
-
}
|
|
1307
|
-
};
|
|
1308
|
-
loadPeerScore = async () => {
|
|
1309
|
-
const t = kt(Ht(this.globalStore.appDataStore.user.birthday), "yyyy");
|
|
1310
|
-
try {
|
|
1311
|
-
const e = await this.api.getPeerScore(t);
|
|
1312
|
-
c(() => {
|
|
1313
|
-
this.peerScore = e;
|
|
1314
|
-
});
|
|
1315
|
-
} catch (e) {
|
|
1316
|
-
console.error("Error loading peer score:", e), this.globalStore.captureException(e, { store: "FinstrongStore" });
|
|
1317
|
-
}
|
|
1318
|
-
};
|
|
1319
|
-
loadAugmentedChartData = async () => {
|
|
1320
|
-
try {
|
|
1321
|
-
const t = await this.api.getAverageHealthScores();
|
|
1322
|
-
c(() => {
|
|
1323
|
-
this.augmentedChartData = we(t);
|
|
1324
|
-
});
|
|
1325
|
-
} catch (t) {
|
|
1326
|
-
console.error("Error occurred while getting augmented chart data:", t), this.globalStore.captureException(t, { store: "FinstrongStore" });
|
|
1327
|
-
}
|
|
1328
|
-
};
|
|
1329
|
-
getSpendingFeeTransactions = async () => {
|
|
1330
|
-
try {
|
|
1331
|
-
const t = await this.api.getSpendingFeeTransactions(), e = Ee(t);
|
|
1332
|
-
c(() => {
|
|
1333
|
-
this.spendingFeeTransactions = e;
|
|
1334
|
-
});
|
|
1335
|
-
} catch (t) {
|
|
1336
|
-
console.error("Error occurred while getting spending fee transactions:", t), this.globalStore.captureException(t, { store: "FinstrongStore" });
|
|
1337
|
-
}
|
|
1338
|
-
};
|
|
1339
|
-
loadSpendTransactions = async () => {
|
|
1340
|
-
this.setSpendingInitialized(!1);
|
|
1341
|
-
try {
|
|
1342
|
-
const t = await this.api.getStandardSpend();
|
|
1343
|
-
c(() => {
|
|
1344
|
-
this.spendTransactions = [...t], this.setSpendingInitialized(!0);
|
|
1345
|
-
});
|
|
1346
|
-
} catch (t) {
|
|
1347
|
-
console.error("Error loading spend transactions:", t), this.globalStore.captureException(t, { store: "FinstrongStore" });
|
|
1348
|
-
}
|
|
1349
|
-
};
|
|
1350
|
-
get spendAndDebtTransactions() {
|
|
1351
|
-
return [...this.spendTransactions, ...this.debtSpendTransactions];
|
|
1352
|
-
}
|
|
1353
|
-
get allTransactions() {
|
|
1354
|
-
return {
|
|
1355
|
-
income: this.incomeTransactions,
|
|
1356
|
-
debtSpend: this.debtSpendTransactions,
|
|
1357
|
-
spendingFee: this.spendingFeeTransactions,
|
|
1358
|
-
spend: this.spendTransactions
|
|
1359
|
-
};
|
|
1360
|
-
}
|
|
1361
|
-
handleFinstrongWidgetPrimaryCtaClick = (t) => () => {
|
|
1362
|
-
};
|
|
1363
|
-
}
|
|
1364
|
-
const ht = {
|
|
1365
|
-
clientConfig: {},
|
|
1366
|
-
clientStyleProfile: {},
|
|
1367
|
-
config: {
|
|
1368
|
-
assets_prefix: "/assets",
|
|
1369
|
-
bundle: "widgetLoader",
|
|
1370
|
-
client_guid: "",
|
|
1371
|
-
dashboard_accounts_index: 6,
|
|
1372
|
-
dashboard_accounts_location: 0,
|
|
1373
|
-
dashboard_activity_index: 2,
|
|
1374
|
-
dashboard_activity_location: 0,
|
|
1375
|
-
dashboard_budgets_index: 5,
|
|
1376
|
-
dashboard_budgets_location: 1,
|
|
1377
|
-
dashboard_cash_flow_index: 0,
|
|
1378
|
-
dashboard_cash_flow_location: 0,
|
|
1379
|
-
dashboard_connect_index: 7,
|
|
1380
|
-
dashboard_connect_location: 1,
|
|
1381
|
-
dashboard_insights_index: 3,
|
|
1382
|
-
dashboard_insights_location: 1,
|
|
1383
|
-
dashboard_spending_index: 1,
|
|
1384
|
-
dashboard_spending_location: 1,
|
|
1385
|
-
dashboard_survey_index: 8,
|
|
1386
|
-
dashboard_survey_location: 1,
|
|
1387
|
-
dashboard_trends_index: 4,
|
|
1388
|
-
dashboard_trends_location: 0,
|
|
1389
|
-
display_account_number_in_accounts: !0,
|
|
1390
|
-
display_add_manual_transaction_in_transactions: !0,
|
|
1391
|
-
display_available_balance_in_accounts: !0,
|
|
1392
|
-
display_email_edit_field_in_settings: !0,
|
|
1393
|
-
display_mobile_devices_in_settings: !0,
|
|
1394
|
-
display_notification_settings_in_settings: !0,
|
|
1395
|
-
display_only_external_accounts_in_accounts: !1,
|
|
1396
|
-
display_password_options_in_settings: !0,
|
|
1397
|
-
display_sms_edit_field_in_settings: !0,
|
|
1398
|
-
display_terms_and_conditions: !0,
|
|
1399
|
-
display_user_profile_in_settings: !0,
|
|
1400
|
-
display_user_transaction_rules_in_settings: !0,
|
|
1401
|
-
display_widget_headings: !0,
|
|
1402
|
-
enable_add_account_in_zero_state: !0,
|
|
1403
|
-
enable_aggregation_prompts: !0,
|
|
1404
|
-
enable_external_accounts_in_goals_widget: !0,
|
|
1405
|
-
enable_funds_transfers_in_goals_widget: !1,
|
|
1406
|
-
enable_manual_accounts: !0,
|
|
1407
|
-
enable_mark_account_closed_for_held_accounts: !0,
|
|
1408
|
-
enable_mark_account_duplicate_for_held_accounts: !0,
|
|
1409
|
-
enable_renaming_home_accounts: !0,
|
|
1410
|
-
enable_support_requests: !1,
|
|
1411
|
-
language: "en-US",
|
|
1412
|
-
product_name: "Money Dashboard",
|
|
1413
|
-
session_token: "",
|
|
1414
|
-
show_account_nicknames_in_master: !1,
|
|
1415
|
-
show_accounts_widget_in_master: !0,
|
|
1416
|
-
show_budgets_widget_in_master: !0,
|
|
1417
|
-
show_carousel_card_border_in_pulse_micro_widget: !1,
|
|
1418
|
-
show_cash_flow_widget_in_master: !0,
|
|
1419
|
-
show_connections_widget_in_master: !0,
|
|
1420
|
-
show_debts_widget_in_master: !0,
|
|
1421
|
-
show_finstrong_widget_in_master: !0,
|
|
1422
|
-
show_full_experience_link_in_pulse_micro_widget: !1,
|
|
1423
|
-
show_full_experience_link_in_pulse_mini_widget: !1,
|
|
1424
|
-
show_goals_widget_in_master: !0,
|
|
1425
|
-
show_help_widget_in_master: !0,
|
|
1426
|
-
show_horizontal_padding_in_pulse_micro_widget: !0,
|
|
1427
|
-
show_icon_in_pulse_micro_widget: !0,
|
|
1428
|
-
show_insights_widget_in_master: !0,
|
|
1429
|
-
show_investments_widget_in_master: !1,
|
|
1430
|
-
show_mx_branding: !0,
|
|
1431
|
-
show_navigation_controls_in_pulse_micro_widget: !0,
|
|
1432
|
-
show_net_worth_widget_in_master: !0,
|
|
1433
|
-
show_notifications_widget_in_master: !0,
|
|
1434
|
-
show_recurring_transactions_widget_in_master: !0,
|
|
1435
|
-
show_settings_widget_in_master: !0,
|
|
1436
|
-
show_spending_plan_widget_in_master: !1,
|
|
1437
|
-
show_spending_widget_in_master: !0,
|
|
1438
|
-
show_transactions_widget_in_master: !0,
|
|
1439
|
-
show_trends_widget_in_master: !0,
|
|
1440
|
-
type: "money-dashboard",
|
|
1441
|
-
websocket: {
|
|
1442
|
-
hmac: "",
|
|
1443
|
-
token: "",
|
|
1444
|
-
url: ""
|
|
1445
|
-
},
|
|
1446
|
-
widgets_display_name: "Money Dashboard "
|
|
1447
|
-
},
|
|
1448
|
-
honeyBadgerPublicKey: "",
|
|
1449
|
-
options: {
|
|
1450
|
-
assets_prefix: "/assets",
|
|
1451
|
-
brokaw_auth: {
|
|
1452
|
-
token: "",
|
|
1453
|
-
hmac: "",
|
|
1454
|
-
url: ""
|
|
1455
|
-
},
|
|
1456
|
-
brokaw_websocket_url: "",
|
|
1457
|
-
bundle: "widgetLoader",
|
|
1458
|
-
custom_copy_namespace: "",
|
|
1459
|
-
language: "en-US",
|
|
1460
|
-
product_name: "Master Widget",
|
|
1461
|
-
session_token: "",
|
|
1462
|
-
subtype: "master",
|
|
1463
|
-
type: "money_dashboard"
|
|
1464
|
-
},
|
|
1465
|
-
postHogPublicKey: "phc_1fVYJICC69TpW4wagp9o2XqQ8E7X98cAmcR5psSpfkE",
|
|
1466
|
-
userFeatures: []
|
|
1467
|
-
};
|
|
1468
|
-
class Ns {
|
|
1469
|
-
// Global properties
|
|
1470
|
-
appConfig = ht;
|
|
1471
|
-
endpoint = "/";
|
|
1472
|
-
sessionToken = "";
|
|
1473
|
-
onCaptureException;
|
|
1474
|
-
onError;
|
|
1475
|
-
onStoreUpdate;
|
|
1476
|
-
// Data Stores
|
|
1477
|
-
accountStore;
|
|
1478
|
-
appDataStore;
|
|
1479
|
-
analyticsStore;
|
|
1480
|
-
beatStore;
|
|
1481
|
-
budgetsStore;
|
|
1482
|
-
cashflowStore;
|
|
1483
|
-
categoryStore;
|
|
1484
|
-
connectStore;
|
|
1485
|
-
copyStore;
|
|
1486
|
-
debtsStore;
|
|
1487
|
-
finstrongStore;
|
|
1488
|
-
goalStore;
|
|
1489
|
-
helpStore;
|
|
1490
|
-
holdingStore;
|
|
1491
|
-
merchantStore;
|
|
1492
|
-
netWorthStore;
|
|
1493
|
-
notificationStore;
|
|
1494
|
-
recurringTransactionsStore;
|
|
1495
|
-
settingsStore;
|
|
1496
|
-
transactionStore;
|
|
1497
|
-
trendsStore;
|
|
1498
|
-
userStore;
|
|
1499
|
-
// UI Stores
|
|
1500
|
-
globalUiStore;
|
|
1501
|
-
constructor(t = ht, e = "/", s, a, o) {
|
|
1502
|
-
this.appConfig = t, this.endpoint = e, this.sessionToken = t.options.session_token ?? "", this.onCaptureException = o, this.onError = s, this.onStoreUpdate = a, this.accountStore = new ce(this), this.appDataStore = new he(this), this.analyticsStore = new de(this), this.beatStore = new pe(this), this.budgetsStore = new _e(this), this.cashflowStore = new ye(this), this.categoryStore = new fe(this), this.connectStore = new Te(this), this.copyStore = new Re(this), this.debtsStore = new be(this), this.finstrongStore = new Ie(this), this.goalStore = new De(this), this.helpStore = new ve(this), this.holdingStore = new Ge(this), this.merchantStore = new Ne(this), this.netWorthStore = new Be(this), this.notificationStore = new Me(this), this.recurringTransactionsStore = new Oe(this), this.settingsStore = new Fe(this), this.transactionStore = new Ue(this), this.trendsStore = new He(this), this.userStore = new We(this), this.globalUiStore = new Ce(this), h(this), mt(() => {
|
|
1503
|
-
const { transactions: i } = this.transactionStore;
|
|
1504
|
-
this.emitUpdate({
|
|
1505
|
-
transactions: i
|
|
1506
|
-
});
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
get isInitialized() {
|
|
1510
|
-
return this.globalUiStore.isInitialized;
|
|
1511
|
-
}
|
|
1512
|
-
captureException = (t, e) => {
|
|
1513
|
-
this.onCaptureException?.(t, e);
|
|
1514
|
-
};
|
|
1515
|
-
// emits change triggered in the autorun
|
|
1516
|
-
emitUpdate = (t) => {
|
|
1517
|
-
this.onStoreUpdate?.(t);
|
|
1518
|
-
};
|
|
1519
|
-
loadConfigData = async () => {
|
|
1520
|
-
await Promise.all([
|
|
1521
|
-
// Load copy, config and user data
|
|
1522
|
-
this.copyStore.loadCopy(),
|
|
1523
|
-
this.appDataStore.loadAppData(),
|
|
1524
|
-
this.accountStore.refreshMembers(),
|
|
1525
|
-
this.userStore.loadUserFeatures()
|
|
1526
|
-
]);
|
|
1527
|
-
};
|
|
1528
|
-
loadData = async ({
|
|
1529
|
-
accounts: t,
|
|
1530
|
-
appData: e,
|
|
1531
|
-
associatedBeats: s,
|
|
1532
|
-
categories: a,
|
|
1533
|
-
institutions: o,
|
|
1534
|
-
transactionRules: i,
|
|
1535
|
-
transactions: l,
|
|
1536
|
-
userFeatures: g,
|
|
1537
|
-
merchantBudgets: f
|
|
1538
|
-
} = {}) => {
|
|
1539
|
-
(!e || !g) && await this.loadConfigData(), e && this.appDataStore.setAppData(e), g && this.userStore.setUserFeatures(g), t && (await this.accountStore.loadMembers(), o && this.accountStore.setInstitutions(o), this.accountStore.setAccounts(t)), s && this.transactionStore.setAssociatedBeats(s), a && this.categoryStore.setCategories(a), l && this.transactionStore.setTransactions(l), i && this.transactionStore.setTransactionRules(i), f && this.budgetsStore.setMerchantBudgets(f);
|
|
1540
|
-
};
|
|
1541
|
-
}
|
|
1542
|
-
class Ce {
|
|
1543
|
-
globalStore;
|
|
1544
|
-
accountFilterMap = /* @__PURE__ */ new Map();
|
|
1545
|
-
displayedDate = /* @__PURE__ */ new Date();
|
|
1546
|
-
displayedDateRange = {
|
|
1547
|
-
start: C(this.displayedDate),
|
|
1548
|
-
end: b(this.displayedDate)
|
|
1549
|
-
};
|
|
1550
|
-
constructor(t) {
|
|
1551
|
-
h(this), this.globalStore = t, gt(
|
|
1552
|
-
() => this.globalStore.accountStore.visibleAccounts,
|
|
1553
|
-
(e) => {
|
|
1554
|
-
this.populateAccountFilterMap(e);
|
|
1555
|
-
}
|
|
1556
|
-
);
|
|
1557
|
-
}
|
|
1558
|
-
get allSelectedAccounts() {
|
|
1559
|
-
return this.globalStore.accountStore.detailedAccounts.filter(
|
|
1560
|
-
(t) => !t.is_excluded_from_accounts
|
|
1561
|
-
);
|
|
1562
|
-
}
|
|
1563
|
-
get selectedAccounts() {
|
|
1564
|
-
return this.globalStore.accountStore.visibleAccounts.filter(
|
|
1565
|
-
(t) => !t.is_excluded_from_accounts
|
|
1566
|
-
);
|
|
1567
|
-
}
|
|
1568
|
-
get selectedAccountGuids() {
|
|
1569
|
-
return this.selectedAccounts.map((t) => t.guid);
|
|
1570
|
-
}
|
|
1571
|
-
get isCopyLoaded() {
|
|
1572
|
-
return this.globalStore.copyStore.isInitialized;
|
|
1573
|
-
}
|
|
1574
|
-
get isConfigLoaded() {
|
|
1575
|
-
return this.globalStore.appDataStore.isAppDataLoaded;
|
|
1576
|
-
}
|
|
1577
|
-
get areUserFeaturesLoaded() {
|
|
1578
|
-
return this.globalStore.userStore.userFeaturesLoaded;
|
|
1579
|
-
}
|
|
1580
|
-
get isInitialized() {
|
|
1581
|
-
return this.isCopyLoaded && this.isConfigLoaded && this.areUserFeaturesLoaded;
|
|
1582
|
-
}
|
|
1583
|
-
populateAccountFilterMap = (t) => {
|
|
1584
|
-
t && t.forEach((e) => {
|
|
1585
|
-
this.accountFilterMap.set(e.guid, !e.is_excluded_from_accounts);
|
|
1586
|
-
});
|
|
1587
|
-
};
|
|
1588
|
-
resetAccountFilterMap = () => {
|
|
1589
|
-
this.accountFilterMap.clear(), this.populateAccountFilterMap(this.globalStore.accountStore.visibleAccounts);
|
|
1590
|
-
};
|
|
1591
|
-
updateAccountFilterMap = (t, e) => {
|
|
1592
|
-
this.accountFilterMap.set(t, e);
|
|
1593
|
-
};
|
|
1594
|
-
setDisplayedDate = (t, e) => {
|
|
1595
|
-
this.displayedDate = e, this.displayedDateRange = {
|
|
1596
|
-
start: t,
|
|
1597
|
-
end: e
|
|
1598
|
-
};
|
|
1599
|
-
};
|
|
1600
|
-
get shouldDisableNextDate() {
|
|
1601
|
-
const t = v(this.displayedDate), e = v(ie(/* @__PURE__ */ new Date(), 1));
|
|
1602
|
-
return t === e;
|
|
1603
|
-
}
|
|
1604
|
-
get shouldDisablePrevDate() {
|
|
1605
|
-
const t = v(this.displayedDate), e = v(/* @__PURE__ */ new Date());
|
|
1606
|
-
return t === e;
|
|
1607
|
-
}
|
|
1608
|
-
}
|
|
1609
|
-
class Re {
|
|
1610
|
-
globalStore;
|
|
1611
|
-
api = new z("/", "");
|
|
1612
|
-
copy = {};
|
|
1613
|
-
featureNamespace = "experiences";
|
|
1614
|
-
isInitialized = !1;
|
|
1615
|
-
constructor(t) {
|
|
1616
|
-
this.globalStore = t, this.api = new z(
|
|
1617
|
-
t.endpoint,
|
|
1618
|
-
t.sessionToken,
|
|
1619
|
-
t.onError
|
|
1620
|
-
), h(this);
|
|
1621
|
-
}
|
|
1622
|
-
loadCopy = async () => {
|
|
1623
|
-
await this.getCopy(this.featureNamespace), c(() => {
|
|
1624
|
-
this.isInitialized = !0;
|
|
1625
|
-
});
|
|
1626
|
-
};
|
|
1627
|
-
getCopy = async (t, e = "") => {
|
|
1628
|
-
try {
|
|
1629
|
-
const s = await this.api.getGlobalCopy(t, e);
|
|
1630
|
-
c(() => {
|
|
1631
|
-
this.copy = s[t];
|
|
1632
|
-
});
|
|
1633
|
-
} catch (s) {
|
|
1634
|
-
console.error("Error occurred while fetching copy:", s), this.globalStore.captureException(s, { store: "GlobalCopyStore" });
|
|
1635
|
-
}
|
|
1636
|
-
};
|
|
1637
|
-
}
|
|
1638
|
-
class De {
|
|
1639
|
-
globalStore;
|
|
1640
|
-
api = new et("/", "");
|
|
1641
|
-
goals = [];
|
|
1642
|
-
goalsLoaded = !1;
|
|
1643
|
-
retirementGoals = [];
|
|
1644
|
-
retirementGoalsLoaded = !1;
|
|
1645
|
-
retirementGoalAccounts = [];
|
|
1646
|
-
retirementGoalAccountsLoaded = !1;
|
|
1647
|
-
monthlyCashFlowProfile = void 0;
|
|
1648
|
-
monthlyCashFlowProfileLoaded = !1;
|
|
1649
|
-
newRetirementGoalAccounts = [];
|
|
1650
|
-
alert = "";
|
|
1651
|
-
selectedGoal = void 0;
|
|
1652
|
-
constructor(t) {
|
|
1653
|
-
this.globalStore = t, this.api = new et(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
1654
|
-
}
|
|
1655
|
-
get allGoals() {
|
|
1656
|
-
if (!this.isAllGoalDataLoaded) return [];
|
|
1657
|
-
const t = this.globalStore.copyStore.copy.goals, e = this.globalStore.userStore.user.birthday;
|
|
1658
|
-
return [
|
|
1659
|
-
...this.goals,
|
|
1660
|
-
...this.retirementGoals.map((s) => ({
|
|
1661
|
-
...s,
|
|
1662
|
-
amount: s.target_amount,
|
|
1663
|
-
name: t.retirement,
|
|
1664
|
-
track_type: T.RETIREMENT_TRACK,
|
|
1665
|
-
projected_to_complete_at: s.retirement_age && e ? K(s.retirement_age, e) : void 0
|
|
1666
|
-
}))
|
|
1667
|
-
];
|
|
1668
|
-
}
|
|
1669
|
-
get orderedGoals() {
|
|
1670
|
-
return this.allGoals.slice().sort((t, e) => t.position - e.position);
|
|
1671
|
-
}
|
|
1672
|
-
get debtGoals() {
|
|
1673
|
-
return this.orderedGoals.filter((t) => t.track_type === T.DEBT_TRACK);
|
|
1674
|
-
}
|
|
1675
|
-
get retirmentGoals() {
|
|
1676
|
-
return this.orderedGoals.filter((t) => t.track_type === T.RETIREMENT_TRACK);
|
|
1677
|
-
}
|
|
1678
|
-
get savingGoals() {
|
|
1679
|
-
return this.orderedGoals.filter((t) => t.track_type === T.SAVINGS_TRACK);
|
|
1680
|
-
}
|
|
1681
|
-
get ongoingGoalsForMicroWidget() {
|
|
1682
|
-
const t = this.allGoals.filter(
|
|
1683
|
-
(s) => !s.is_complete && s.track_type !== T.EMERGENCY_FUND_TRACK && s.track_type !== null
|
|
1684
|
-
), e = [
|
|
1685
|
-
T.SAVINGS_TRACK,
|
|
1686
|
-
T.DEBT_TRACK,
|
|
1687
|
-
T.RETIREMENT_TRACK
|
|
1688
|
-
];
|
|
1689
|
-
return t.sort((s, a) => {
|
|
1690
|
-
const o = s.track_type ? e.indexOf(s.track_type) : -1, i = a.track_type ? e.indexOf(a.track_type) : -1;
|
|
1691
|
-
return o - i;
|
|
1692
|
-
}).slice(0, 3);
|
|
1693
|
-
}
|
|
1694
|
-
get isAllGoalDataLoaded() {
|
|
1695
|
-
return this.goalsLoaded && this.retirementGoalsLoaded && this.retirementGoalAccountsLoaded && this.monthlyCashFlowProfileLoaded;
|
|
1696
|
-
}
|
|
1697
|
-
setGoals = (t) => {
|
|
1698
|
-
this.goals = t, this.goalsLoaded = !0;
|
|
1699
|
-
};
|
|
1700
|
-
setRetirementGoals = (t) => {
|
|
1701
|
-
this.retirementGoals = t, this.retirementGoalsLoaded = !0;
|
|
1702
|
-
};
|
|
1703
|
-
setRetirementGoalAccounts = (t) => {
|
|
1704
|
-
this.retirementGoalAccounts = t, this.retirementGoalAccountsLoaded = !0;
|
|
1705
|
-
};
|
|
1706
|
-
setMonthlyCashFlowProfile = (t) => {
|
|
1707
|
-
this.monthlyCashFlowProfile = t, this.monthlyCashFlowProfileLoaded = !0;
|
|
1708
|
-
};
|
|
1709
|
-
loadGoalData = async () => {
|
|
1710
|
-
await Promise.all([
|
|
1711
|
-
this.loadGoals(),
|
|
1712
|
-
this.loadRetirementGoals(),
|
|
1713
|
-
this.loadRetirementGoalAccounts(),
|
|
1714
|
-
this.loadMonthlyCashFlowProfile()
|
|
1715
|
-
]);
|
|
1716
|
-
};
|
|
1717
|
-
loadGoals = async () => {
|
|
1718
|
-
try {
|
|
1719
|
-
const t = await this.api.getGoals();
|
|
1720
|
-
this.setGoals(t);
|
|
1721
|
-
} catch (t) {
|
|
1722
|
-
console.error("Error occurred while getting goals:", t), this.globalStore.captureException(t, { store: "GoalStore" });
|
|
1723
|
-
}
|
|
1724
|
-
};
|
|
1725
|
-
loadRetirementGoals = async () => {
|
|
1726
|
-
try {
|
|
1727
|
-
const t = await this.api.getRetirementGoals();
|
|
1728
|
-
this.setRetirementGoals(t);
|
|
1729
|
-
} catch (t) {
|
|
1730
|
-
console.error("Error occurred while loading retirement goals:", t), this.globalStore.captureException(t, { store: "GoalStore" });
|
|
1731
|
-
}
|
|
1732
|
-
};
|
|
1733
|
-
loadRetirementGoalAccounts = async () => {
|
|
1734
|
-
try {
|
|
1735
|
-
const t = await this.api.getRetirementGoalAccounts();
|
|
1736
|
-
this.setRetirementGoalAccounts(t);
|
|
1737
|
-
} catch (t) {
|
|
1738
|
-
console.error("Error occurred while loading retirement goal accounts:", t), this.globalStore.captureException(t, { store: "GoalStore" });
|
|
1739
|
-
}
|
|
1740
|
-
};
|
|
1741
|
-
loadMonthlyCashFlowProfile = async () => {
|
|
1742
|
-
try {
|
|
1743
|
-
const t = await this.api.getMonthlyCashFlowProfile();
|
|
1744
|
-
this.setMonthlyCashFlowProfile(t);
|
|
1745
|
-
} catch (t) {
|
|
1746
|
-
console.error("Error occurred while loading monthly cash flow profile:", t), this.globalStore.captureException(t, { store: "GoalStore" });
|
|
1747
|
-
}
|
|
1748
|
-
};
|
|
1749
|
-
addGoal = async (t) => {
|
|
1750
|
-
try {
|
|
1751
|
-
const e = await this.api.addGoal(t);
|
|
1752
|
-
this.setGoals([...this.goals, e]);
|
|
1753
|
-
} catch (e) {
|
|
1754
|
-
console.error("Error occurred while adding goal:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1755
|
-
}
|
|
1756
|
-
};
|
|
1757
|
-
addRetirementGoal = async (t) => {
|
|
1758
|
-
const e = this.globalStore.copyStore.copy.goals;
|
|
1759
|
-
try {
|
|
1760
|
-
const s = await this.api.addRetirementGoal(t), a = [], o = this.globalStore.userStore.user.birthday;
|
|
1761
|
-
for (const i of this.newRetirementGoalAccounts) {
|
|
1762
|
-
const l = await this.api.addRetirementGoalAccount({
|
|
1763
|
-
...i,
|
|
1764
|
-
retirement_goal_guid: s.guid
|
|
1765
|
-
});
|
|
1766
|
-
a.push(l);
|
|
1767
|
-
}
|
|
1768
|
-
this.setNewRetirementGoalAccounts([]), this.retirementGoals = [
|
|
1769
|
-
...this.retirementGoals,
|
|
1770
|
-
{
|
|
1771
|
-
...s,
|
|
1772
|
-
amount: s.target_amount,
|
|
1773
|
-
name: e.retirement,
|
|
1774
|
-
track_type: T.RETIREMENT_TRACK,
|
|
1775
|
-
projected_to_complete_at: s.retirement_age && o ? K(s.retirement_age, o) : void 0
|
|
1776
|
-
}
|
|
1777
|
-
], this.setRetirementGoalAccounts([...this.retirementGoalAccounts, ...a]);
|
|
1778
|
-
} catch (s) {
|
|
1779
|
-
console.error("Error occurred while adding retirement goal:", s), this.globalStore.captureException(s, { store: "GoalStore" });
|
|
1780
|
-
}
|
|
1781
|
-
};
|
|
1782
|
-
addRetirementGoalAccount = async (t) => {
|
|
1783
|
-
try {
|
|
1784
|
-
const e = await this.api.addRetirementGoalAccount(t);
|
|
1785
|
-
c(() => {
|
|
1786
|
-
this.retirementGoalAccounts = [...this.retirementGoalAccounts, e];
|
|
1787
|
-
});
|
|
1788
|
-
} catch (e) {
|
|
1789
|
-
console.error("Error occurred while adding retirement goal account:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
deleteGoal = async (t) => {
|
|
1793
|
-
try {
|
|
1794
|
-
await this.api.removeGoal(t);
|
|
1795
|
-
const e = this.goals.findIndex((s) => s.guid === t);
|
|
1796
|
-
e >= 0 && this.goals.splice(e, 1);
|
|
1797
|
-
} catch (e) {
|
|
1798
|
-
console.error("Error occurred while deleting goal:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1799
|
-
}
|
|
1800
|
-
};
|
|
1801
|
-
deleteRetirementGoal = async (t) => {
|
|
1802
|
-
try {
|
|
1803
|
-
const e = this.retirementGoalAccounts.filter(
|
|
1804
|
-
(a) => a.retirement_goal_guid === t.guid
|
|
1805
|
-
);
|
|
1806
|
-
for (const a of e)
|
|
1807
|
-
await this.deleteRetirementGoalAccount(a.guid);
|
|
1808
|
-
await this.api.removeRetirementGoal(t.guid);
|
|
1809
|
-
const s = this.retirementGoals.findIndex((a) => a.guid === t.guid);
|
|
1810
|
-
s >= 0 && this.retirementGoals.splice(s, 1);
|
|
1811
|
-
} catch (e) {
|
|
1812
|
-
console.error("Error deleting retirement goal:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1813
|
-
}
|
|
1814
|
-
};
|
|
1815
|
-
deleteRetirementGoalAccount = async (t) => {
|
|
1816
|
-
try {
|
|
1817
|
-
await this.api.removeRetirementGoalAccount(t);
|
|
1818
|
-
const e = this.retirementGoalAccounts.findIndex((s) => s.guid === t);
|
|
1819
|
-
e >= 0 && this.retirementGoalAccounts.splice(e, 1);
|
|
1820
|
-
} catch (e) {
|
|
1821
|
-
console.error("Error deleting retirement goal account:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1822
|
-
}
|
|
1823
|
-
};
|
|
1824
|
-
reorderGoals = async (t) => {
|
|
1825
|
-
try {
|
|
1826
|
-
const e = await this.api.reorderGoals(t);
|
|
1827
|
-
c(() => {
|
|
1828
|
-
for (const s of e) {
|
|
1829
|
-
const a = this.goals.findIndex((o) => o.guid === s.guid);
|
|
1830
|
-
a >= 0 && (this.goals[a].position = s.position);
|
|
1831
|
-
}
|
|
1832
|
-
});
|
|
1833
|
-
} catch (e) {
|
|
1834
|
-
console.error("Error reordering goals:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1835
|
-
}
|
|
1836
|
-
};
|
|
1837
|
-
setAlert = (t) => this.alert = t;
|
|
1838
|
-
setNewRetirementGoalAccounts = (t) => {
|
|
1839
|
-
this.newRetirementGoalAccounts = t;
|
|
1840
|
-
};
|
|
1841
|
-
setSelectedGoal = (t) => this.selectedGoal = t;
|
|
1842
|
-
updateGoal = async (t) => {
|
|
1843
|
-
try {
|
|
1844
|
-
const e = await this.api.updateGoal(t);
|
|
1845
|
-
c(() => {
|
|
1846
|
-
const s = this.goals.findIndex((a) => a.guid === t.guid);
|
|
1847
|
-
s >= 0 && (this.goals[s] = e), this.selectedGoal?.guid === t.guid && this.setSelectedGoal(e);
|
|
1848
|
-
});
|
|
1849
|
-
} catch (e) {
|
|
1850
|
-
console.error("Error occurred while updating goal:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1851
|
-
}
|
|
1852
|
-
};
|
|
1853
|
-
updateRetirementGoal = async (t) => {
|
|
1854
|
-
try {
|
|
1855
|
-
const e = await this.api.updateRetirementGoal({
|
|
1856
|
-
...t,
|
|
1857
|
-
target_amount: t.amount
|
|
1858
|
-
});
|
|
1859
|
-
c(() => {
|
|
1860
|
-
const s = this.retirementGoals.findIndex((a) => a.guid === t.guid);
|
|
1861
|
-
s >= 0 && (this.retirementGoals[s] = e), this.selectedGoal?.guid === t.guid && this.setSelectedGoal(this.allGoals.find((a) => a.guid === t.guid));
|
|
1862
|
-
});
|
|
1863
|
-
} catch (e) {
|
|
1864
|
-
console.error("Error occurred while updating retirement goal:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1865
|
-
}
|
|
1866
|
-
};
|
|
1867
|
-
updateMonthlyCashFlowProfile = async (t) => {
|
|
1868
|
-
try {
|
|
1869
|
-
const e = await this.api.updateMonthlyCashFlowProfile(t);
|
|
1870
|
-
this.setMonthlyCashFlowProfile(e);
|
|
1871
|
-
} catch (e) {
|
|
1872
|
-
console.error("Error occurred while updating monthly cash flow profile:", e), this.globalStore.captureException(e, { store: "GoalStore" });
|
|
1873
|
-
}
|
|
1874
|
-
};
|
|
1875
|
-
}
|
|
1876
|
-
const xe = (r, t) => r.guid === "general" || r.guid === "insights" ? !0 : r.flags ? r.flags.every((e) => t[e]) : !1, Le = (r, t) => {
|
|
1877
|
-
const e = [];
|
|
1878
|
-
for (const s of oe) {
|
|
1879
|
-
const a = t[s.guid];
|
|
1880
|
-
if (!a) continue;
|
|
1881
|
-
const o = {
|
|
1882
|
-
...s,
|
|
1883
|
-
title: a.label,
|
|
1884
|
-
topics: s.topics.map(({ topicKey: i }, l) => ({
|
|
1885
|
-
topicKey: i,
|
|
1886
|
-
label: a.topics[l]
|
|
1887
|
-
}))
|
|
1888
|
-
};
|
|
1889
|
-
xe(o, r) && e.push(o);
|
|
1890
|
-
}
|
|
1891
|
-
return e;
|
|
1892
|
-
};
|
|
1893
|
-
class ve {
|
|
1894
|
-
alert = { message: "", severity: void 0 };
|
|
1895
|
-
api = new st("/", "");
|
|
1896
|
-
appConfig;
|
|
1897
|
-
globalStore;
|
|
1898
|
-
isLoading = !1;
|
|
1899
|
-
constructor(t) {
|
|
1900
|
-
this.globalStore = t, this.api = new st(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
1901
|
-
}
|
|
1902
|
-
createSupportTicket = async (t) => {
|
|
1903
|
-
try {
|
|
1904
|
-
this.isLoading = !0, await this.api.createSupportTicket(t), this.setAlert(this.copy.request_support_submit_success_message, "success");
|
|
1905
|
-
} catch (e) {
|
|
1906
|
-
console.error("Error occurred while submitting support ticket:", e), this.globalStore.captureException(e, { store: "HelpStore" }), this.setAlert(this.copy.request_support_submit_failure_message, "error");
|
|
1907
|
-
} finally {
|
|
1908
|
-
this.isLoading = !1;
|
|
1909
|
-
}
|
|
1910
|
-
};
|
|
1911
|
-
setAlert = (t, e = void 0) => this.alert = { message: t, severity: e };
|
|
1912
|
-
get copy() {
|
|
1913
|
-
return this.globalStore.copyStore.copy.help;
|
|
1914
|
-
}
|
|
1915
|
-
get helpCategories() {
|
|
1916
|
-
const { client_communication_profile: t, client_profile: e } = this.globalStore.appDataStore.appData, {
|
|
1917
|
-
help: { category_list: s }
|
|
1918
|
-
} = this.globalStore.copyStore.copy;
|
|
1919
|
-
return Le(
|
|
1920
|
-
{
|
|
1921
|
-
...t,
|
|
1922
|
-
...e,
|
|
1923
|
-
...this.globalStore.appConfig.config
|
|
1924
|
-
},
|
|
1925
|
-
s
|
|
1926
|
-
);
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
class Ge {
|
|
1930
|
-
analysisType = Wt.Stocks;
|
|
1931
|
-
api = new at("/", "");
|
|
1932
|
-
holdings = [];
|
|
1933
|
-
holdingsLoaded = !1;
|
|
1934
|
-
globalStore;
|
|
1935
|
-
showConnectionsWidget = !1;
|
|
1936
|
-
constructor(t) {
|
|
1937
|
-
this.globalStore = t, this.api = new at(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
1938
|
-
}
|
|
1939
|
-
get analysisChartData() {
|
|
1940
|
-
return Vt(zt(this.visibleHoldings), this.analysisType);
|
|
1941
|
-
}
|
|
1942
|
-
get analysisDetails() {
|
|
1943
|
-
return Kt(this.visibleHoldings)[this.analysisType] || {};
|
|
1944
|
-
}
|
|
1945
|
-
get visibleHoldings() {
|
|
1946
|
-
return this.holdings.filter(
|
|
1947
|
-
(t) => this.globalStore.globalUiStore.selectedAccountGuids.includes(t.account_guid)
|
|
1948
|
-
);
|
|
1949
|
-
}
|
|
1950
|
-
setHoldings = (t) => {
|
|
1951
|
-
this.holdings = t, this.holdingsLoaded = !0;
|
|
1952
|
-
};
|
|
1953
|
-
setShowConnectionsWidget = (t) => {
|
|
1954
|
-
this.showConnectionsWidget = t;
|
|
1955
|
-
};
|
|
1956
|
-
loadHoldings = async () => {
|
|
1957
|
-
try {
|
|
1958
|
-
const t = await this.api.getHoldings();
|
|
1959
|
-
this.setHoldings(t);
|
|
1960
|
-
} catch (t) {
|
|
1961
|
-
console.error("Error occurred while getting holdings:", t), this.globalStore.captureException(t, { store: "HoldingStore" });
|
|
1962
|
-
}
|
|
1963
|
-
};
|
|
1964
|
-
setAnalysisType = (t) => {
|
|
1965
|
-
this.analysisType = t;
|
|
1966
|
-
};
|
|
1967
|
-
updateHoldings = async (t) => {
|
|
1968
|
-
this.holdingsLoaded = !1;
|
|
1969
|
-
try {
|
|
1970
|
-
const e = await this.api.updateHoldings(t), s = this.holdings.findIndex(({ guid: a }) => a === t.guid);
|
|
1971
|
-
if (s >= 0) {
|
|
1972
|
-
const a = [...this.holdings];
|
|
1973
|
-
a[s] = e, c(() => {
|
|
1974
|
-
this.holdings = a, this.holdingsLoaded = !0;
|
|
1975
|
-
});
|
|
1976
|
-
}
|
|
1977
|
-
} catch (e) {
|
|
1978
|
-
console.error("Error occurred while updating holding:", e), this.globalStore.captureException(e, { store: "HoldingStore" });
|
|
1979
|
-
}
|
|
1980
|
-
};
|
|
1981
|
-
}
|
|
1982
|
-
class Ne {
|
|
1983
|
-
globalStore;
|
|
1984
|
-
api = new rt("/", "");
|
|
1985
|
-
merchant = null;
|
|
1986
|
-
merchants = [];
|
|
1987
|
-
isLoading = !1;
|
|
1988
|
-
constructor(t) {
|
|
1989
|
-
this.globalStore = t, this.api = new rt(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
1990
|
-
}
|
|
1991
|
-
loadMerchants = async (t = "") => {
|
|
1992
|
-
this.isLoading = !0;
|
|
1993
|
-
const e = await this.api.getMerchants([t]);
|
|
1994
|
-
c(() => {
|
|
1995
|
-
this.merchants = e, this.isLoading = !1;
|
|
1996
|
-
});
|
|
1997
|
-
};
|
|
1998
|
-
loadMerchantByGuid = async (t) => {
|
|
1999
|
-
const e = await this.api.getMerchantByGuid(t);
|
|
2000
|
-
c(() => this.merchant = e);
|
|
2001
|
-
};
|
|
2002
|
-
}
|
|
2003
|
-
class Be {
|
|
2004
|
-
globalStore;
|
|
2005
|
-
accountsApi = new M("/", "");
|
|
2006
|
-
monthlyAccountBalances = [];
|
|
2007
|
-
monthlyAccountBalancesLoaded = !1;
|
|
2008
|
-
hoveredIndex = -1;
|
|
2009
|
-
selectedIndex = -1;
|
|
2010
|
-
timeframe = 6;
|
|
2011
|
-
// default timeframe is 6 months
|
|
2012
|
-
constructor(t) {
|
|
2013
|
-
this.globalStore = t, this.accountsApi = new M(
|
|
2014
|
-
t.endpoint,
|
|
2015
|
-
t.sessionToken,
|
|
2016
|
-
t.onError
|
|
2017
|
-
), h(this);
|
|
2018
|
-
}
|
|
2019
|
-
get isNetWorthDataLoaded() {
|
|
2020
|
-
return this.globalStore.accountStore.isAccountDataLoaded && this.monthlyAccountBalancesLoaded;
|
|
2021
|
-
}
|
|
2022
|
-
get netWorthAccounts() {
|
|
2023
|
-
return Qt(
|
|
2024
|
-
this.globalStore.globalUiStore.selectedAccounts,
|
|
2025
|
-
this.globalStore.accountStore.members
|
|
2026
|
-
);
|
|
2027
|
-
}
|
|
2028
|
-
get netWorthData() {
|
|
2029
|
-
return {
|
|
2030
|
-
accounts: this.netWorthAccounts,
|
|
2031
|
-
monthlyAccountBalances: this.monthlyAccountBalances
|
|
2032
|
-
};
|
|
2033
|
-
}
|
|
2034
|
-
get netWorthChartData() {
|
|
2035
|
-
return qt(this.netWorthAccounts, this.monthlyAccountBalances, this.timeframe);
|
|
2036
|
-
}
|
|
2037
|
-
get selectedData() {
|
|
2038
|
-
if (!(!this.netWorthChartData || this.netWorthChartData.length === 0))
|
|
2039
|
-
return this.selectedIndex === -1 ? Q(this.netWorthChartData) : this.netWorthChartData[this.selectedIndex];
|
|
2040
|
-
}
|
|
2041
|
-
get hoveredData() {
|
|
2042
|
-
return this.hoveredIndex >= 0 ? this.netWorthChartData[this.hoveredIndex] : void 0;
|
|
2043
|
-
}
|
|
2044
|
-
get gainsLosses() {
|
|
2045
|
-
return Yt(this.selectedData);
|
|
2046
|
-
}
|
|
2047
|
-
get assetsLiabilities() {
|
|
2048
|
-
const { assets: t, liabilities: e, totalAssets: s, totalLiabilities: a } = jt(
|
|
2049
|
-
this.netWorthData.accounts
|
|
2050
|
-
);
|
|
2051
|
-
return {
|
|
2052
|
-
netWorth: Q(this.netWorthChartData),
|
|
2053
|
-
assets: t,
|
|
2054
|
-
liabilities: e,
|
|
2055
|
-
totalAssets: s,
|
|
2056
|
-
totalLiabilities: a
|
|
2057
|
-
};
|
|
2058
|
-
}
|
|
2059
|
-
loadNetWorthData = async () => {
|
|
2060
|
-
this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData();
|
|
2061
|
-
const e = (await Promise.all(
|
|
2062
|
-
this.netWorthAccounts.map((s) => this.getMonthlyAccountBalances(s.guid))
|
|
2063
|
-
)).reduce(Xt, []).sort(Jt);
|
|
2064
|
-
this.setMonthlyAccountBalances(e);
|
|
2065
|
-
};
|
|
2066
|
-
getMonthlyAccountBalances = async (t) => {
|
|
2067
|
-
try {
|
|
2068
|
-
return await this.accountsApi.getMonthlyAccountBalances(t);
|
|
2069
|
-
} catch (e) {
|
|
2070
|
-
return console.error("Error occurred while fetching monthly account balances:", e), this.globalStore.captureException(e, { store: "NetWorthStore" }), [];
|
|
2071
|
-
}
|
|
2072
|
-
};
|
|
2073
|
-
setHoveredIndex = (t) => this.hoveredIndex = t;
|
|
2074
|
-
setMonthlyAccountBalances = (t) => {
|
|
2075
|
-
this.monthlyAccountBalances = t, this.monthlyAccountBalancesLoaded = !0;
|
|
2076
|
-
};
|
|
2077
|
-
setSelectedIndex = (t) => this.selectedIndex = t;
|
|
2078
|
-
setTimeframe = (t) => this.timeframe = t;
|
|
2079
|
-
}
|
|
2080
|
-
class Me {
|
|
2081
|
-
globalStore;
|
|
2082
|
-
api = new nt("/", "");
|
|
2083
|
-
isLoading = !0;
|
|
2084
|
-
notifications = [];
|
|
2085
|
-
notificationsLoaded = !1;
|
|
2086
|
-
constructor(t) {
|
|
2087
|
-
this.globalStore = t, this.api = new nt(
|
|
2088
|
-
t.endpoint,
|
|
2089
|
-
t.sessionToken,
|
|
2090
|
-
t.onError
|
|
2091
|
-
), h(this, { notifications: Tt });
|
|
2092
|
-
}
|
|
2093
|
-
// Used in Money Dashboard
|
|
2094
|
-
get newNotifications() {
|
|
2095
|
-
return this.recentNotifications.filter((t) => !t.has_been_viewed);
|
|
2096
|
-
}
|
|
2097
|
-
get recentNotifications() {
|
|
2098
|
-
return Zt(this.notifications);
|
|
2099
|
-
}
|
|
2100
|
-
setNotifications = (t) => {
|
|
2101
|
-
this.notifications = t, this.notificationsLoaded = !0;
|
|
2102
|
-
};
|
|
2103
|
-
loadNotifications = async () => {
|
|
2104
|
-
this.isLoading = !0;
|
|
2105
|
-
try {
|
|
2106
|
-
const t = await this.api.getNotifications();
|
|
2107
|
-
this.setNotifications(t);
|
|
2108
|
-
} catch (t) {
|
|
2109
|
-
console.error("Error occurred while loading notifications:", t), this.globalStore.captureException(t, { store: "NotificationStore" });
|
|
2110
|
-
} finally {
|
|
2111
|
-
c(() => {
|
|
2112
|
-
this.isLoading = !1;
|
|
2113
|
-
});
|
|
2114
|
-
}
|
|
2115
|
-
};
|
|
2116
|
-
markAllAsViewed = async () => {
|
|
2117
|
-
await this.api.markAllAsViewed();
|
|
2118
|
-
};
|
|
2119
|
-
updateNotification = async (t) => {
|
|
2120
|
-
t.has_been_viewed = !0, await this.api.updateNotification(t);
|
|
2121
|
-
};
|
|
2122
|
-
}
|
|
2123
|
-
const dt = (r, t) => pt(t.expectedDate, r), A = (r, t) => r + t.amount;
|
|
2124
|
-
class Oe {
|
|
2125
|
-
globalStore;
|
|
2126
|
-
api = new it("/", "");
|
|
2127
|
-
repeatingTransactions = [];
|
|
2128
|
-
isDataLoaded = !1;
|
|
2129
|
-
selectedDay;
|
|
2130
|
-
dateRange = { start: C(S()), end: b(S()) };
|
|
2131
|
-
selectedRepeatingTransactionGuid = null;
|
|
2132
|
-
selectedRecurrence = null;
|
|
2133
|
-
alert = { message: "", severity: void 0 };
|
|
2134
|
-
constructor(t) {
|
|
2135
|
-
this.globalStore = t, this.api = new it(
|
|
2136
|
-
t.endpoint,
|
|
2137
|
-
t.sessionToken,
|
|
2138
|
-
t.onError
|
|
2139
|
-
), h(this, {
|
|
2140
|
-
recurrencesForRange: !1,
|
|
2141
|
-
upcomingExpensesForRange: !1,
|
|
2142
|
-
upcomingIncomeForRange: !1,
|
|
2143
|
-
incomeForRange: !1,
|
|
2144
|
-
nextIncomeForRange: !1
|
|
2145
|
-
});
|
|
2146
|
-
}
|
|
2147
|
-
get copy() {
|
|
2148
|
-
return this.globalStore.copyStore.copy.recurring;
|
|
2149
|
-
}
|
|
2150
|
-
get detailedRepeatingTransactions() {
|
|
2151
|
-
return U(
|
|
2152
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
2153
|
-
this.repeatingTransactions,
|
|
2154
|
-
this.globalStore.transactionStore.transactions
|
|
2155
|
-
);
|
|
2156
|
-
}
|
|
2157
|
-
/**
|
|
2158
|
-
* Returns all recurrences built from repeating transactions and filtered by
|
|
2159
|
-
* accounts, scoped to the supplied date range. This is the range-parameterized
|
|
2160
|
-
* core used by both the shared getters (which pass this.dateRange) and by
|
|
2161
|
-
* consumers such as Cash Flow that need their own independent window without
|
|
2162
|
-
* mutating the shared dateRange.
|
|
2163
|
-
*/
|
|
2164
|
-
recurrencesForRange = (t) => {
|
|
2165
|
-
const e = this.globalStore.accountStore.visibleAccounts;
|
|
2166
|
-
return te(this.detailedRepeatingTransactions, t).filter((s) => e.some((a) => a.guid === s.accountGuid && !a.is_excluded_from_accounts)).filter((s) => pt(s.expectedDate, t));
|
|
2167
|
-
};
|
|
2168
|
-
/**
|
|
2169
|
-
* Returns the upcoming expense recurrences scoped to the supplied date range.
|
|
2170
|
-
*/
|
|
2171
|
-
upcomingExpensesForRange = (t) => this.recurrencesForRange(t).filter(
|
|
2172
|
-
(e) => e.type === L.Expense && e.status === y.Upcoming
|
|
2173
|
-
);
|
|
2174
|
-
/**
|
|
2175
|
-
* Returns the income recurrences scoped to the supplied date range.
|
|
2176
|
-
*/
|
|
2177
|
-
incomeForRange = (t) => this.recurrencesForRange(t).filter(
|
|
2178
|
-
(e) => e.type === L.Income
|
|
2179
|
-
);
|
|
2180
|
-
/**
|
|
2181
|
-
* Returns the upcoming income recurrences scoped to the supplied date range.
|
|
2182
|
-
*/
|
|
2183
|
-
upcomingIncomeForRange = (t) => this.incomeForRange(t).filter(
|
|
2184
|
-
(e) => e.status === y.Upcoming
|
|
2185
|
-
);
|
|
2186
|
-
/**
|
|
2187
|
-
* Returns the next upcoming income recurrence scoped to the supplied range.
|
|
2188
|
-
*/
|
|
2189
|
-
nextIncomeForRange = (t) => this.upcomingIncomeForRange(t).find(
|
|
2190
|
-
(e) => F(e.expectedDate, S())
|
|
2191
|
-
);
|
|
2192
|
-
/**
|
|
2193
|
-
* Returns all recurrences built from repeating transactions and filtered by accounts.
|
|
2194
|
-
*/
|
|
2195
|
-
get recurrences() {
|
|
2196
|
-
return this.recurrencesForRange(this.dateRange);
|
|
2197
|
-
}
|
|
2198
|
-
/**
|
|
2199
|
-
* Returns all recurrences that have occurred in the past, including those that are paid or missed
|
|
2200
|
-
*/
|
|
2201
|
-
get pastRecurrences() {
|
|
2202
|
-
return this.recurrences.filter(
|
|
2203
|
-
(t) => t.status === y.Paid || t.status === y.Missed
|
|
2204
|
-
);
|
|
2205
|
-
}
|
|
2206
|
-
/**
|
|
2207
|
-
* Returns all recurrences that are expected to occur through the end of the month
|
|
2208
|
-
* or should have occurred in the last 3 days.
|
|
2209
|
-
*/
|
|
2210
|
-
get upcomingRecurrences() {
|
|
2211
|
-
return this.recurrences.filter(
|
|
2212
|
-
(t) => F(t.expectedDate, _t(S(), 3)) && W(t.expectedDate, this.dateRange.end) && t.status === y.Upcoming
|
|
2213
|
-
);
|
|
2214
|
-
}
|
|
2215
|
-
/**
|
|
2216
|
-
* Returns all expense recurrences.
|
|
2217
|
-
*/
|
|
2218
|
-
get expenses() {
|
|
2219
|
-
return this.recurrences.filter(
|
|
2220
|
-
(t) => t.type === L.Expense
|
|
2221
|
-
);
|
|
2222
|
-
}
|
|
2223
|
-
/**
|
|
2224
|
-
* Returns the upcoming expense recurrences.
|
|
2225
|
-
*/
|
|
2226
|
-
get upcomingExpenses() {
|
|
2227
|
-
return this.expenses.filter(
|
|
2228
|
-
(t) => t.status === y.Upcoming
|
|
2229
|
-
);
|
|
2230
|
-
}
|
|
2231
|
-
/**
|
|
2232
|
-
* Returns all income recurrences.
|
|
2233
|
-
*/
|
|
2234
|
-
get income() {
|
|
2235
|
-
return this.recurrences.filter(
|
|
2236
|
-
(t) => t.type === L.Income
|
|
2237
|
-
);
|
|
2238
|
-
}
|
|
2239
|
-
/**
|
|
2240
|
-
* Returns the upcoming income recurrences.
|
|
2241
|
-
*/
|
|
2242
|
-
get upcomingIncome() {
|
|
2243
|
-
return this.income.filter(
|
|
2244
|
-
(t) => t.status === y.Upcoming
|
|
2245
|
-
);
|
|
2246
|
-
}
|
|
2247
|
-
get nextIncomeRecurrence() {
|
|
2248
|
-
return this.upcomingIncome.find((t) => F(t.expectedDate, S()));
|
|
2249
|
-
}
|
|
2250
|
-
/**
|
|
2251
|
-
* Returns the expense recurrences for the current month.
|
|
2252
|
-
*/
|
|
2253
|
-
get currentMonthExpenses() {
|
|
2254
|
-
return this.expenses.filter(
|
|
2255
|
-
(t) => dt(this.dateRange, t)
|
|
2256
|
-
);
|
|
2257
|
-
}
|
|
2258
|
-
/**
|
|
2259
|
-
* Returns the income recurrences for the current month.
|
|
2260
|
-
*/
|
|
2261
|
-
get currentMonthIncome() {
|
|
2262
|
-
return this.income.filter(
|
|
2263
|
-
(t) => dt(this.dateRange, t)
|
|
2264
|
-
);
|
|
2265
|
-
}
|
|
2266
|
-
/**
|
|
2267
|
-
* Calculates the total amount of all expenses for the current month.
|
|
2268
|
-
*/
|
|
2269
|
-
get expenseTotal() {
|
|
2270
|
-
return this.currentMonthExpenses.reduce(A, 0);
|
|
2271
|
-
}
|
|
2272
|
-
/**
|
|
2273
|
-
* Calculates the total amount of all paid expenses for the current month.
|
|
2274
|
-
*/
|
|
2275
|
-
get paidExpenseTotal() {
|
|
2276
|
-
return this.currentMonthExpenses.filter((t) => t.status === y.Paid).reduce(A, 0);
|
|
2277
|
-
}
|
|
2278
|
-
/**
|
|
2279
|
-
* Calculates the total amount of all missed expenses for the current month.
|
|
2280
|
-
*/
|
|
2281
|
-
get missedExpenseTotal() {
|
|
2282
|
-
return this.currentMonthExpenses.filter((t) => t.status === y.Missed).reduce(A, 0);
|
|
2283
|
-
}
|
|
2284
|
-
/**
|
|
2285
|
-
* Calculates the total amount of all upcoming expenses for the current month.
|
|
2286
|
-
*/
|
|
2287
|
-
get upcomingExpenseTotal() {
|
|
2288
|
-
return this.currentMonthExpenses.filter((t) => t.status === y.Upcoming).reduce(A, 0);
|
|
2289
|
-
}
|
|
2290
|
-
/**
|
|
2291
|
-
* Calculates the total amount of all income for the current month.
|
|
2292
|
-
*/
|
|
2293
|
-
get incomeTotal() {
|
|
2294
|
-
return this.currentMonthIncome.reduce(A, 0);
|
|
2295
|
-
}
|
|
2296
|
-
/**
|
|
2297
|
-
* Calculates the total amount of all paid income for the current month.
|
|
2298
|
-
*/
|
|
2299
|
-
get paidIncomeTotal() {
|
|
2300
|
-
return this.currentMonthIncome.filter((t) => t.status === y.Paid).reduce(A, 0);
|
|
2301
|
-
}
|
|
2302
|
-
/**
|
|
2303
|
-
* Calculates the total amount of all upcoming income for the current month.
|
|
2304
|
-
*/
|
|
2305
|
-
get upcomingIncomeTotal() {
|
|
2306
|
-
return this.currentMonthIncome.filter((t) => t.status === y.Upcoming).reduce(A, 0);
|
|
2307
|
-
}
|
|
2308
|
-
/**
|
|
2309
|
-
* Get the recurrences for the currently selected day.
|
|
2310
|
-
*/
|
|
2311
|
-
get selectedDayRecurrences() {
|
|
2312
|
-
return this.selectedDay && this.recurrences.filter(
|
|
2313
|
-
(t) => this.selectedDay && q(t.occurredOnDate || t.expectedDate, this.selectedDay)
|
|
2314
|
-
);
|
|
2315
|
-
}
|
|
2316
|
-
get selectedRepeatingTransaction() {
|
|
2317
|
-
return this.selectedRepeatingTransactionGuid ? this.detailedRepeatingTransactions.find(
|
|
2318
|
-
(t) => t.guid === this.selectedRepeatingTransactionGuid
|
|
2319
|
-
) : void 0;
|
|
2320
|
-
}
|
|
2321
|
-
setSelectedRepeatingTransactionGuid = (t) => this.selectedRepeatingTransactionGuid = t;
|
|
2322
|
-
setSelectedRecurrence = (t) => this.selectedRecurrence = t;
|
|
2323
|
-
setRepeatingTransactions = (t) => {
|
|
2324
|
-
this.repeatingTransactions = t, this.isDataLoaded = !0;
|
|
2325
|
-
};
|
|
2326
|
-
/**
|
|
2327
|
-
* Set the date range for filtering recurrences.
|
|
2328
|
-
* @param dateRange - The date range to set.
|
|
2329
|
-
*/
|
|
2330
|
-
setDateRange = (t) => this.dateRange = t;
|
|
2331
|
-
/**
|
|
2332
|
-
* Set the currently selected day.
|
|
2333
|
-
* @param day - The day to select.
|
|
2334
|
-
*/
|
|
2335
|
-
setSelectedDay = (t) => {
|
|
2336
|
-
this.selectedDay = this.selectedDay && q(t, this.selectedDay) ? void 0 : t;
|
|
2337
|
-
};
|
|
2338
|
-
loadRepeatingTransactionData = async () => {
|
|
2339
|
-
await Promise.all([
|
|
2340
|
-
this.globalStore.accountStore.loadAccountData(),
|
|
2341
|
-
this.globalStore.categoryStore.loadCategories(),
|
|
2342
|
-
this.globalStore.transactionStore.loadTransactionData()
|
|
2343
|
-
]), await this.loadRepeatingTransactions();
|
|
2344
|
-
};
|
|
2345
|
-
/**
|
|
2346
|
-
* Load repeating transactions and augment them with additional data.
|
|
2347
|
-
*/
|
|
2348
|
-
loadRepeatingTransactions = async () => {
|
|
2349
|
-
try {
|
|
2350
|
-
const t = await this.api.getRepeatingTransactions();
|
|
2351
|
-
this.setRepeatingTransactions(t);
|
|
2352
|
-
} catch (t) {
|
|
2353
|
-
console.error("Error occurred while getting repeating transactions:", t), this.globalStore.captureException(t, { store: "RecurringTransactionsStore" });
|
|
2354
|
-
}
|
|
2355
|
-
};
|
|
2356
|
-
/**
|
|
2357
|
-
* Add a new repeating transaction and link it to the associated transaction.
|
|
2358
|
-
* @param repeatingTransaction - The repeating transaction to add.
|
|
2359
|
-
* @param transaction - The transaction associated with the repeating transaction.
|
|
2360
|
-
*/
|
|
2361
|
-
addRepeatingTransaction = async (t, e) => {
|
|
2362
|
-
try {
|
|
2363
|
-
const s = await this.api.addRepeatingTransaction(t);
|
|
2364
|
-
return await this.globalStore.transactionStore.updateTransaction({
|
|
2365
|
-
...e,
|
|
2366
|
-
repeating_transaction_guid: s.guid
|
|
2367
|
-
}), c(() => {
|
|
2368
|
-
this.repeatingTransactions = [
|
|
2369
|
-
...this.repeatingTransactions,
|
|
2370
|
-
...U(
|
|
2371
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
2372
|
-
[s],
|
|
2373
|
-
this.globalStore.transactionStore.transactions
|
|
2374
|
-
)
|
|
2375
|
-
];
|
|
2376
|
-
}), this.setAlert(this.copy.add_repeating_transaction_success, "success"), !0;
|
|
2377
|
-
} catch (s) {
|
|
2378
|
-
return console.error("Error occurred while adding repeating transaction:", s), this.globalStore.captureException(s, { store: "RecurringTransactionsStore" }), this.setAlert(this.copy.add_repeating_transaction_error, "error"), !1;
|
|
2379
|
-
}
|
|
2380
|
-
};
|
|
2381
|
-
/**
|
|
2382
|
-
* Delete a repeating transaction by its GUID.
|
|
2383
|
-
* @param guid - The GUID of the repeating transaction to delete.
|
|
2384
|
-
*/
|
|
2385
|
-
deleteRepeatingTransaction = async (t) => {
|
|
2386
|
-
try {
|
|
2387
|
-
return await this.api.deleteRepeatingTransaction(t), c(() => {
|
|
2388
|
-
this.repeatingTransactions = [
|
|
2389
|
-
...this.repeatingTransactions.filter((e) => e.guid !== t)
|
|
2390
|
-
];
|
|
2391
|
-
}), this.setAlert(this.copy.remove_repeating_transaction_success, "success"), !0;
|
|
2392
|
-
} catch (e) {
|
|
2393
|
-
return console.error("Error occurred while deleting repeating transaction:", e), this.globalStore.captureException(e, { store: "RecurringTransactionsStore" }), this.setAlert(this.copy.remove_repeating_transaction_error, "error"), !1;
|
|
2394
|
-
}
|
|
2395
|
-
};
|
|
2396
|
-
/**
|
|
2397
|
-
* Update an existing repeating transaction.
|
|
2398
|
-
* @param transaction - The repeating transaction to update.
|
|
2399
|
-
*/
|
|
2400
|
-
updateRepeatingTransaction = async (t) => {
|
|
2401
|
-
try {
|
|
2402
|
-
const e = await this.api.updateRepeatingTransaction(t), s = this.repeatingTransactions.findIndex(
|
|
2403
|
-
(a) => a.guid === e.guid
|
|
2404
|
-
);
|
|
2405
|
-
return s < 0 ? !1 : (c(() => {
|
|
2406
|
-
this.repeatingTransactions = [
|
|
2407
|
-
...this.repeatingTransactions.slice(0, s),
|
|
2408
|
-
...U(
|
|
2409
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
2410
|
-
[e],
|
|
2411
|
-
this.globalStore.transactionStore.transactions
|
|
2412
|
-
),
|
|
2413
|
-
...this.repeatingTransactions.slice(s + 1)
|
|
2414
|
-
];
|
|
2415
|
-
}), this.setAlert(this.copy.update_repeating_transaction_success, "success"), !0);
|
|
2416
|
-
} catch (e) {
|
|
2417
|
-
return console.error("Error occurred while updating repeating transaction:", e), this.globalStore.captureException(e, { store: "RecurringTransactionsStore" }), this.setAlert(this.copy.update_repeating_transaction_error, "error"), !1;
|
|
2418
|
-
}
|
|
2419
|
-
};
|
|
2420
|
-
/**
|
|
2421
|
-
* Mark a recurrence as paid by linking a transaction to the repeating transaction.
|
|
2422
|
-
* @param repeatingTransactionGuid - The GUID of the repeating transaction.
|
|
2423
|
-
* @param transaction - The transaction to link.
|
|
2424
|
-
*/
|
|
2425
|
-
markRecurrenceAsPaid = async (t, e) => {
|
|
2426
|
-
try {
|
|
2427
|
-
await this.globalStore.transactionStore.updateTransaction({
|
|
2428
|
-
...e,
|
|
2429
|
-
repeating_transaction_guid: t
|
|
2430
|
-
}), await this.loadRepeatingTransactions(), this.setSelectedRecurrence(null), this.setAlert(this.copy.link_transaction_success, "success");
|
|
2431
|
-
} catch (s) {
|
|
2432
|
-
console.error("Error occurred while marking recurrence as paid:", s), this.globalStore.captureException(s, { store: "RecurringTransactionsStore" }), this.setAlert(this.copy.link_transaction_error, "error");
|
|
2433
|
-
}
|
|
2434
|
-
};
|
|
2435
|
-
/**
|
|
2436
|
-
* Mark a recurrence as unpaid by unlinking the associated transaction from the repeating transaction.
|
|
2437
|
-
* @param transaction - The transaction to unlink.
|
|
2438
|
-
*/
|
|
2439
|
-
markRecurrenceAsUnpaid = async (t) => {
|
|
2440
|
-
try {
|
|
2441
|
-
await this.globalStore.transactionStore.updateTransaction({
|
|
2442
|
-
...t,
|
|
2443
|
-
repeating_transaction_guid: null
|
|
2444
|
-
}), await this.loadRepeatingTransactions(), this.setSelectedRecurrence(null), this.setAlert(this.copy.unlink_transaction_success, "success");
|
|
2445
|
-
} catch (e) {
|
|
2446
|
-
console.error("Error occurred while marking recurrence as unpaid:", e), this.globalStore.captureException(e, { store: "RecurringTransactionsStore" }), this.setAlert(this.copy.unlink_transaction_error, "error");
|
|
2447
|
-
}
|
|
2448
|
-
};
|
|
2449
|
-
setAlert = (t, e = void 0) => this.alert = { message: t, severity: e };
|
|
2450
|
-
}
|
|
2451
|
-
const ut = "PARENT-ENTITY", Pe = (r, t) => ({
|
|
2452
|
-
[B.BudgetExceeded]: t.notification_budget_exceeded,
|
|
2453
|
-
[B.BudgetOffTarget]: t.notification_budget_off_target,
|
|
2454
|
-
[_.DebtPaymentReminder]: t.notification_debt_payment_reminder,
|
|
2455
|
-
[_.AccountBalanceLow]: t.notification_low_balance,
|
|
2456
|
-
[_.AccountDepositLargePosted]: t.notification_large_deposit,
|
|
2457
|
-
[_.AccountDepositLarge]: t.notification_large_deposit,
|
|
2458
|
-
[_.TransactionExpenseLarge]: t.notification_large_expense,
|
|
2459
|
-
[_.TransactionFeeCharge]: t.notification_transaction_fee,
|
|
2460
|
-
[_.InternationalTransaction]: t.notification_transaction_is_international,
|
|
2461
|
-
[u.AccountBalanceLow]: t.account_balance_low,
|
|
2462
|
-
[u.BillAmountNotStandard]: t.bill_amount_not_standard,
|
|
2463
|
-
[u.CategorySpending]: t.category_spending,
|
|
2464
|
-
[u.CreditCardCloseToLimit]: t.credit_card_close_to_limit,
|
|
2465
|
-
[u.DebtPaymentReminder]: t.debt_payment_reminder,
|
|
2466
|
-
[u.DuplicatePayment]: t.duplicate_payment,
|
|
2467
|
-
[u.MonthlySpendComparison]: t.monthly_spend_comparison,
|
|
2468
|
-
[u.MonthlySpendToIncomeComparison]: t.monthly_spend_to_income_comparison,
|
|
2469
|
-
[u.MonthlySubscriptionAggregate]: t.monthly_subscription_aggregate,
|
|
2470
|
-
[u.MonthlyTopMerchantSpending]: t.monthly_top_merchant_spending,
|
|
2471
|
-
[u.SaveAnExtra100Dollars]: t.save_an_extra_100_dollars,
|
|
2472
|
-
[u.SavingsOpportunity]: t.savings_opportunity,
|
|
2473
|
-
[u.SetUpDirectDeposit]: t.set_up_direct_deposit,
|
|
2474
|
-
[u.SwitchDirectDeposit]: t.switch_direct_deposit,
|
|
2475
|
-
[u.UncategorizedTransactions]: t.uncategorized_transactions,
|
|
2476
|
-
[u.UnifiedDeposit]: t.unified_deposit,
|
|
2477
|
-
[u.UpcomingBill]: t.upcoming_bill,
|
|
2478
|
-
[u.WeekendSpendingSummary]: t.weekend_spending_summary,
|
|
2479
|
-
[u.WeeklyNewMerchants]: t.weekly_new_merchants,
|
|
2480
|
-
[u.DiscoveredAccounts]: t.discovered_account,
|
|
2481
|
-
[u.TransactionExpenseLarge]: t.large_transaction,
|
|
2482
|
-
[u.PromotionalCampaignMessages]: t.promotional_campaign_messages,
|
|
2483
|
-
[u.TransparentOverdraft]: t.transparent_overdraft
|
|
2484
|
-
})[r] || "", $e = (r, t, e, s, a, o) => {
|
|
2485
|
-
const i = [], {
|
|
2486
|
-
email_notifications_enabled: l,
|
|
2487
|
-
sms_notifications_enabled: g,
|
|
2488
|
-
push_notifications_enabled: f
|
|
2489
|
-
} = t, {
|
|
2490
|
-
opted_out_of_email_notifications: R,
|
|
2491
|
-
opted_out_of_sms_notifications: yt,
|
|
2492
|
-
opted_out_of_push_notifications: St
|
|
2493
|
-
} = a;
|
|
2494
|
-
for (const E of s.filter((D) => D.entity_guid === ut)) {
|
|
2495
|
-
const D = Pe(E.notification_type, e), ft = s.filter(
|
|
2496
|
-
(I) => I.entity_guid !== ut && I.notification_type === E.notification_type && r.some((P) => P.guid === I.entity_guid)
|
|
2497
|
-
), x = [];
|
|
2498
|
-
l && !R && E.email_channel && o.email && x.push(e.delivery_method_email_label), g && !yt && E.sms_channel && o.phone && x.push(e.delivery_method_sms_label), f && !St && E.push_channel && x.push(e.delivery_method_push_label), i.push({
|
|
2499
|
-
...E,
|
|
2500
|
-
children: ft.map((I) => ({
|
|
2501
|
-
...I,
|
|
2502
|
-
account: r.find((P) => P.guid === I.entity_guid),
|
|
2503
|
-
label: D
|
|
2504
|
-
})),
|
|
2505
|
-
deliveryMethodsLabel: x.join(", "),
|
|
2506
|
-
label: D
|
|
2507
|
-
});
|
|
2508
|
-
}
|
|
2509
|
-
return i;
|
|
2510
|
-
};
|
|
2511
|
-
class Fe {
|
|
2512
|
-
globalStore;
|
|
2513
|
-
api = new ot("/", "");
|
|
2514
|
-
transactionApi = new O("/", "");
|
|
2515
|
-
alert = { message: "", severity: void 0 };
|
|
2516
|
-
devices = [];
|
|
2517
|
-
notificationProfiles = [];
|
|
2518
|
-
selectedRule = void 0;
|
|
2519
|
-
transactionRules = [];
|
|
2520
|
-
constructor(t) {
|
|
2521
|
-
this.globalStore = t, this.api = new ot(t.endpoint, t.sessionToken, t.onError), this.transactionApi = new O(
|
|
2522
|
-
t.endpoint,
|
|
2523
|
-
t.sessionToken,
|
|
2524
|
-
t.onError
|
|
2525
|
-
), h(this);
|
|
2526
|
-
}
|
|
2527
|
-
get accountProfiles() {
|
|
2528
|
-
const t = this.globalStore.appDataStore.clientCommunicationProfile;
|
|
2529
|
-
return this.detailedNotificationProfiles.filter(
|
|
2530
|
-
(e) => e.notification_type === _.DebtPaymentReminder && t.debt_payment_reminder_notifications_enabled || e.notification_type === _.AccountBalanceLow && t.low_balance_notifications_enabled || e.notification_type === _.AccountDepositLarge && t.large_deposit_notifications_enabled || e.notification_type === _.TransactionExpenseLarge && t.large_expense_notifications_enabled || e.notification_type === _.TransactionFeeCharge && t.transaction_fee_notifications_enabled || e.notification_type === _.InternationalTransaction && t.transaction_is_international_notifications_enabled || e.notification_type === _.AccountDepositLargePosted && t.large_deposit_posted_notifications_enabled
|
|
2531
|
-
);
|
|
2532
|
-
}
|
|
2533
|
-
get budgetProfiles() {
|
|
2534
|
-
const t = this.globalStore.appDataStore.clientCommunicationProfile;
|
|
2535
|
-
return this.detailedNotificationProfiles.filter(
|
|
2536
|
-
(e) => e.notification_type === B.BudgetExceeded && t.budget_exceeded_notifications_enabled || e.notification_type === B.BudgetOffTarget && t.budget_off_target_notifications_enabled
|
|
2537
|
-
);
|
|
2538
|
-
}
|
|
2539
|
-
get insightsProfiles() {
|
|
2540
|
-
return this.detailedNotificationProfiles.filter(
|
|
2541
|
-
(t) => Object.values(u).includes(t.notification_type)
|
|
2542
|
-
);
|
|
2543
|
-
}
|
|
2544
|
-
get clientCommunicationProfile() {
|
|
2545
|
-
return this.globalStore.appDataStore.clientCommunicationProfile;
|
|
2546
|
-
}
|
|
2547
|
-
get copy() {
|
|
2548
|
-
return this.globalStore.copyStore.copy.settings;
|
|
2549
|
-
}
|
|
2550
|
-
get detailedNotificationProfiles() {
|
|
2551
|
-
return this.globalStore.isInitialized ? $e(
|
|
2552
|
-
this.globalStore.accountStore.accounts,
|
|
2553
|
-
this.clientCommunicationProfile,
|
|
2554
|
-
this.copy,
|
|
2555
|
-
this.notificationProfiles,
|
|
2556
|
-
this.userCommunicationsProfile,
|
|
2557
|
-
this.globalStore.userStore.user
|
|
2558
|
-
) : [];
|
|
2559
|
-
}
|
|
2560
|
-
get userCommunicationsProfile() {
|
|
2561
|
-
return this.globalStore.appDataStore.userCommunicationProfile;
|
|
2562
|
-
}
|
|
2563
|
-
deleteDevice = async (t) => {
|
|
2564
|
-
try {
|
|
2565
|
-
await this.api.deleteDevice(t);
|
|
2566
|
-
const e = this.devices.findIndex((s) => s.guid === t);
|
|
2567
|
-
return e >= 0 && c(() => {
|
|
2568
|
-
this.devices.splice(e, 1);
|
|
2569
|
-
}), { success: !0 };
|
|
2570
|
-
} catch (e) {
|
|
2571
|
-
return console.error("Error deleting device:", e), this.globalStore.captureException(e, { store: "SettingsStore" }), { success: !1 };
|
|
2572
|
-
}
|
|
2573
|
-
};
|
|
2574
|
-
deleteTransactionRule = async () => {
|
|
2575
|
-
if (this.selectedRule)
|
|
2576
|
-
try {
|
|
2577
|
-
await this.transactionApi.removeTransactionRule(this.selectedRule?.guid), this.setAlert(this.copy.delete_rule_success, "success"), await this.loadTransactionRules();
|
|
2578
|
-
} catch (t) {
|
|
2579
|
-
console.error("Error deleting transaction rule:", t), this.globalStore.captureException(t, { store: "SettingsStore" }), this.setAlert(this.copy.delete_rule_error, "error");
|
|
2580
|
-
}
|
|
2581
|
-
};
|
|
2582
|
-
generateDeviceToken = async () => {
|
|
2583
|
-
try {
|
|
2584
|
-
return await this.api.generateDeviceToken();
|
|
2585
|
-
} catch (t) {
|
|
2586
|
-
console.error("Error generating device token:", t), this.globalStore.captureException(t, { store: "SettingsStore" });
|
|
2587
|
-
}
|
|
2588
|
-
};
|
|
2589
|
-
loadDevices = async () => {
|
|
2590
|
-
try {
|
|
2591
|
-
const t = await this.api.getDevices();
|
|
2592
|
-
c(() => {
|
|
2593
|
-
this.devices = t;
|
|
2594
|
-
});
|
|
2595
|
-
} catch (t) {
|
|
2596
|
-
console.error("Error loading devices:", t), this.globalStore.captureException(t, { store: "SettingsStore" });
|
|
2597
|
-
}
|
|
2598
|
-
};
|
|
2599
|
-
loadNotificationProfiles = async () => {
|
|
2600
|
-
try {
|
|
2601
|
-
const t = await this.api.getNotificationProfiles();
|
|
2602
|
-
c(() => {
|
|
2603
|
-
this.notificationProfiles = t;
|
|
2604
|
-
});
|
|
2605
|
-
} catch (t) {
|
|
2606
|
-
console.error("Error loading notification profiles:", t), this.globalStore.captureException(t, { store: "SettingsStore" });
|
|
2607
|
-
}
|
|
2608
|
-
};
|
|
2609
|
-
loadTransactionRules = async () => {
|
|
2610
|
-
try {
|
|
2611
|
-
const t = await this.transactionApi.getTransactionRules();
|
|
2612
|
-
c(() => {
|
|
2613
|
-
this.transactionRules = t;
|
|
2614
|
-
});
|
|
2615
|
-
} catch (t) {
|
|
2616
|
-
console.error("Error loading transaction rules:", t), this.globalStore.captureException(t, { store: "SettingsStore" });
|
|
2617
|
-
}
|
|
2618
|
-
};
|
|
2619
|
-
sendEmailVerification = async () => {
|
|
2620
|
-
try {
|
|
2621
|
-
await this.api.sendEmailVerification(), this.setAlert(this.copy.verification_sent_success, "success");
|
|
2622
|
-
} catch (t) {
|
|
2623
|
-
console.error("Error sending email verification:", t), this.globalStore.captureException(t, { store: "SettingsStore" }), this.setAlert(this.copy.verification_sent_error, "error");
|
|
2624
|
-
}
|
|
2625
|
-
};
|
|
2626
|
-
sendPhoneVerification = async () => {
|
|
2627
|
-
try {
|
|
2628
|
-
await this.api.sendPhoneVerification(), this.setAlert(this.copy.verification_sent_success, "success");
|
|
2629
|
-
} catch (t) {
|
|
2630
|
-
console.error("Error sending phone verification:", t), this.globalStore.captureException(t, { store: "SettingsStore" }), this.setAlert(this.copy.verification_sent_error, "error");
|
|
2631
|
-
}
|
|
2632
|
-
};
|
|
2633
|
-
setAlert = (t, e = void 0) => this.alert = { message: t, severity: e };
|
|
2634
|
-
setSelectedRule = (t) => {
|
|
2635
|
-
this.selectedRule = t;
|
|
2636
|
-
};
|
|
2637
|
-
updateDevice = async (t) => {
|
|
2638
|
-
try {
|
|
2639
|
-
const e = await this.api.updateDevice(t), s = this.devices.findIndex((a) => a.guid === t.guid);
|
|
2640
|
-
return s >= 0 && c(() => {
|
|
2641
|
-
this.devices[s] = e;
|
|
2642
|
-
}), { success: !0 };
|
|
2643
|
-
} catch (e) {
|
|
2644
|
-
return console.error("Error updating device:", e), this.globalStore.captureException(e, { store: "SettingsStore" }), { success: !1 };
|
|
2645
|
-
}
|
|
2646
|
-
};
|
|
2647
|
-
updateNotificationProfile = async (t) => {
|
|
2648
|
-
try {
|
|
2649
|
-
const e = await this.api.updateNotificationProfile(t), s = this.notificationProfiles.findIndex((a) => a.guid === t.guid);
|
|
2650
|
-
s >= 0 && c(() => {
|
|
2651
|
-
this.notificationProfiles[s] = e;
|
|
2652
|
-
});
|
|
2653
|
-
} catch (e) {
|
|
2654
|
-
console.error("Error updating notification profile:", e), this.globalStore.captureException(e, { store: "SettingsStore" });
|
|
2655
|
-
}
|
|
2656
|
-
};
|
|
2657
|
-
updateRuleCategory = async (t) => {
|
|
2658
|
-
try {
|
|
2659
|
-
await this.transactionApi.updateTransactionRule(t), await this.loadTransactionRules();
|
|
2660
|
-
} catch (e) {
|
|
2661
|
-
console.error("Error updating rule category:", e), this.globalStore.captureException(e, { store: "SettingsStore" });
|
|
2662
|
-
}
|
|
2663
|
-
};
|
|
2664
|
-
updateRulePayee = async (t) => {
|
|
2665
|
-
try {
|
|
2666
|
-
await this.transactionApi.updateTransactionRule(t), this.setAlert(this.copy.edit_payee_success, "success"), await this.loadTransactionRules();
|
|
2667
|
-
} catch (e) {
|
|
2668
|
-
console.error("Error updating rule payee:", e), this.globalStore.captureException(e, { store: "SettingsStore" }), this.setAlert(this.copy.edit_payee_error, "error");
|
|
2669
|
-
}
|
|
2670
|
-
};
|
|
2671
|
-
updateUser = async (t) => {
|
|
2672
|
-
try {
|
|
2673
|
-
await this.globalStore.userStore.updateUser(t), this.setAlert(this.copy.information_updated_success, "success");
|
|
2674
|
-
} catch {
|
|
2675
|
-
this.setAlert(this.copy.information_updated_error, "error");
|
|
2676
|
-
}
|
|
2677
|
-
};
|
|
2678
|
-
updateUserCommunicationProfile = async (t) => {
|
|
2679
|
-
try {
|
|
2680
|
-
const e = await this.api.updateUserCommunicationProfile(t);
|
|
2681
|
-
this.globalStore.appDataStore.setUserCommunicationProfile(e);
|
|
2682
|
-
} catch (e) {
|
|
2683
|
-
console.error("Error occurred while updating user communication profile:", e), this.globalStore.captureException(e, { store: "SettingsStore" });
|
|
2684
|
-
}
|
|
2685
|
-
};
|
|
2686
|
-
verifyPhoneToken = async (t) => {
|
|
2687
|
-
try {
|
|
2688
|
-
const { verified: e } = await this.api.verifyPhoneToken(t);
|
|
2689
|
-
if (!e)
|
|
2690
|
-
throw new Error();
|
|
2691
|
-
this.setAlert(this.copy.verified_phone_success, "success");
|
|
2692
|
-
} catch (e) {
|
|
2693
|
-
console.error("Error verifying phone token:", e), this.globalStore.captureException(e, { store: "SettingsStore" }), this.setAlert(this.copy.verified_phone_error, "error");
|
|
2694
|
-
}
|
|
2695
|
-
};
|
|
2696
|
-
}
|
|
2697
|
-
class Ue {
|
|
2698
|
-
globalStore;
|
|
2699
|
-
uiStore;
|
|
2700
|
-
api = new O("/", "");
|
|
2701
|
-
beatApi = new G("/", "");
|
|
2702
|
-
associatedBeats = [];
|
|
2703
|
-
associatedBeatsLoaded = !1;
|
|
2704
|
-
associatedBeatsLoading = !1;
|
|
2705
|
-
transactions = [];
|
|
2706
|
-
transactionsLoaded = !1;
|
|
2707
|
-
transactionsLoading = !1;
|
|
2708
|
-
taggings = [];
|
|
2709
|
-
taggingsLoaded = !1;
|
|
2710
|
-
taggingsLoading = !1;
|
|
2711
|
-
tags = [];
|
|
2712
|
-
tagsLoaded = !1;
|
|
2713
|
-
tagsLoading = !1;
|
|
2714
|
-
transactionRules = [];
|
|
2715
|
-
transactionRulesLoaded = !1;
|
|
2716
|
-
transactionRulesLoading = !1;
|
|
2717
|
-
transactionSplitting = !1;
|
|
2718
|
-
cachedStartDate = _t(S(), 90);
|
|
2719
|
-
filter = {};
|
|
2720
|
-
isLoading = !0;
|
|
2721
|
-
alert = "";
|
|
2722
|
-
sortColumn = Gt.DATE;
|
|
2723
|
-
sortDirection = Nt.DESC;
|
|
2724
|
-
constructor(t) {
|
|
2725
|
-
this.globalStore = t, this.uiStore = new ke(), this.api = new O(
|
|
2726
|
-
t.endpoint,
|
|
2727
|
-
t.sessionToken,
|
|
2728
|
-
t.onError
|
|
2729
|
-
), this.beatApi = new G(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
2730
|
-
}
|
|
2731
|
-
loadTransactionData = async () => {
|
|
2732
|
-
this.globalStore.accountStore.isAccountDataLoaded || await this.globalStore.accountStore.loadAccountData(), this.globalStore.categoryStore.categoriesLoaded || await this.globalStore.categoryStore.loadCategories(), await Promise.all([
|
|
2733
|
-
this.loadAssociatedBeats(C(/* @__PURE__ */ new Date())),
|
|
2734
|
-
this.loadTags(),
|
|
2735
|
-
this.loadTaggings(),
|
|
2736
|
-
this.loadTransactionRules(),
|
|
2737
|
-
// By default loads 90 days of transactions
|
|
2738
|
-
this.loadTransactions(this.cachedStartDate)
|
|
2739
|
-
]);
|
|
2740
|
-
};
|
|
2741
|
-
get isTransactionDataLoaded() {
|
|
2742
|
-
return this.associatedBeatsLoaded && this.tagsLoaded && this.taggingsLoaded && this.transactionRulesLoaded && this.transactionsLoaded;
|
|
2743
|
-
}
|
|
2744
|
-
get detailedTransactions() {
|
|
2745
|
-
return this.isTransactionDataLoaded ? Bt(
|
|
2746
|
-
this.transactions,
|
|
2747
|
-
this.globalStore.accountStore.visibleAccounts,
|
|
2748
|
-
this.globalStore.categoryStore.categories,
|
|
2749
|
-
this.taggings
|
|
2750
|
-
) : [];
|
|
2751
|
-
}
|
|
2752
|
-
get sortedTransactions() {
|
|
2753
|
-
return Mt(
|
|
2754
|
-
this.filter,
|
|
2755
|
-
this.uiStore.expandedSplits,
|
|
2756
|
-
this.sortColumn,
|
|
2757
|
-
this.sortDirection,
|
|
2758
|
-
this.tags,
|
|
2759
|
-
this.detailedTransactions
|
|
2760
|
-
);
|
|
2761
|
-
}
|
|
2762
|
-
get sortedTransactionsWithSplits() {
|
|
2763
|
-
return Ot(this.sortedTransactions, this.detailedTransactions);
|
|
2764
|
-
}
|
|
2765
|
-
setAssociatedBeats = (t) => {
|
|
2766
|
-
this.associatedBeats = t, this.associatedBeatsLoading = !1, this.associatedBeatsLoaded = !0;
|
|
2767
|
-
};
|
|
2768
|
-
setTaggings = (t) => {
|
|
2769
|
-
this.taggings = t, this.taggingsLoading = !1, this.taggingsLoaded = !0;
|
|
2770
|
-
};
|
|
2771
|
-
setTags = (t) => {
|
|
2772
|
-
this.tags = t, this.tagsLoading = !1, this.tagsLoaded = !0;
|
|
2773
|
-
};
|
|
2774
|
-
setTransactionRules = (t) => {
|
|
2775
|
-
this.transactionRules = t, this.transactionRulesLoading = !1, this.transactionRulesLoaded = !0;
|
|
2776
|
-
};
|
|
2777
|
-
setTransactions = (t) => {
|
|
2778
|
-
this.transactions = t, this.transactionsLoading = !1, this.transactionsLoaded = !0;
|
|
2779
|
-
};
|
|
2780
|
-
setAlert = (t) => {
|
|
2781
|
-
this.alert = t;
|
|
2782
|
-
};
|
|
2783
|
-
addTag = async (t) => {
|
|
2784
|
-
try {
|
|
2785
|
-
await this.api.addTag({ name: t }), await this.loadTags();
|
|
2786
|
-
} catch (e) {
|
|
2787
|
-
console.error("Error occurred while adding tag:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
2788
|
-
}
|
|
2789
|
-
};
|
|
2790
|
-
addTagging = async (t, e) => {
|
|
2791
|
-
try {
|
|
2792
|
-
await this.api.addTagging({
|
|
2793
|
-
tag_guid: t,
|
|
2794
|
-
transaction_guid: e
|
|
2795
|
-
});
|
|
2796
|
-
} catch (s) {
|
|
2797
|
-
console.error("Error occurred while adding tagging:", s), this.globalStore.captureException(s, { store: "TransactionStore" });
|
|
2798
|
-
}
|
|
2799
|
-
};
|
|
2800
|
-
addOrUpdateTransactionRule = async (t, e) => {
|
|
2801
|
-
try {
|
|
2802
|
-
const s = this.transactionRules.find(
|
|
2803
|
-
(a) => a.guid === e.user_transaction_rule_guid
|
|
2804
|
-
);
|
|
2805
|
-
s ? await this.api.updateTransactionRule({
|
|
2806
|
-
...s,
|
|
2807
|
-
category_guid: t,
|
|
2808
|
-
description: e.description
|
|
2809
|
-
}) : await this.api.addTransactionRule({
|
|
2810
|
-
category_guid: t,
|
|
2811
|
-
description: e.description,
|
|
2812
|
-
match_description: e.description
|
|
2813
|
-
}), await this.loadTransactionRules();
|
|
2814
|
-
} catch (s) {
|
|
2815
|
-
console.error("Error occurred while adding/updating transaction rule:", s), this.globalStore.captureException(s, { store: "TransactionStore" });
|
|
2816
|
-
}
|
|
2817
|
-
};
|
|
2818
|
-
addTransaction = async (t) => {
|
|
2819
|
-
try {
|
|
2820
|
-
const e = await this.api.addTransaction(t);
|
|
2821
|
-
if (e) {
|
|
2822
|
-
this.setTransactions([e, ...this.transactions]);
|
|
2823
|
-
const s = e.transaction_type === Pt.CREDIT ? e.amount : -e.amount;
|
|
2824
|
-
this.globalStore.accountStore.updateAccountBalance(
|
|
2825
|
-
e.account_guid,
|
|
2826
|
-
s
|
|
2827
|
-
);
|
|
2828
|
-
}
|
|
2829
|
-
} catch (e) {
|
|
2830
|
-
console.error("Error occurred while adding transaction:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
2831
|
-
}
|
|
2832
|
-
};
|
|
2833
|
-
loadAssociatedBeats = async (t) => {
|
|
2834
|
-
if (this.associatedBeatsLoading) return;
|
|
2835
|
-
this.associatedBeatsLoading = !0;
|
|
2836
|
-
const e = t ? ee(t, { representation: "date" }) : void 0;
|
|
2837
|
-
try {
|
|
2838
|
-
const s = await this.beatApi.getBeatsWithAssociatedTransaction(e);
|
|
2839
|
-
this.setAssociatedBeats(s);
|
|
2840
|
-
} catch (s) {
|
|
2841
|
-
console.error("Error occurred while loading associated beats:", s), this.globalStore.captureException(s, { store: "TransactionStore" }), this.setAssociatedBeats([]);
|
|
2842
|
-
} finally {
|
|
2843
|
-
c(() => {
|
|
2844
|
-
this.associatedBeatsLoading = !1;
|
|
2845
|
-
});
|
|
2846
|
-
}
|
|
2847
|
-
};
|
|
2848
|
-
loadTags = async () => {
|
|
2849
|
-
if (!this.tagsLoading) {
|
|
2850
|
-
this.tagsLoading = !0;
|
|
2851
|
-
try {
|
|
2852
|
-
const t = await this.api.getTags();
|
|
2853
|
-
this.setTags(t);
|
|
2854
|
-
} catch (t) {
|
|
2855
|
-
console.error("Error occurred while loading tags:", t), this.globalStore.captureException(t, { store: "TransactionStore" });
|
|
2856
|
-
} finally {
|
|
2857
|
-
c(() => {
|
|
2858
|
-
this.tagsLoading = !1;
|
|
2859
|
-
});
|
|
2860
|
-
}
|
|
2861
|
-
}
|
|
2862
|
-
};
|
|
2863
|
-
loadTaggings = async () => {
|
|
2864
|
-
if (!this.taggingsLoading) {
|
|
2865
|
-
this.taggingsLoading = !0;
|
|
2866
|
-
try {
|
|
2867
|
-
const t = await this.api.getTaggings();
|
|
2868
|
-
this.setTaggings(t);
|
|
2869
|
-
} catch (t) {
|
|
2870
|
-
console.error("Error occurred while loading taggings:", t), this.globalStore.captureException(t, { store: "TransactionStore" }), this.setTaggings([]);
|
|
2871
|
-
} finally {
|
|
2872
|
-
c(() => {
|
|
2873
|
-
this.taggingsLoading = !1;
|
|
2874
|
-
});
|
|
2875
|
-
}
|
|
2876
|
-
}
|
|
2877
|
-
};
|
|
2878
|
-
loadTransactionRules = async () => {
|
|
2879
|
-
if (!this.transactionRulesLoading) {
|
|
2880
|
-
this.transactionRulesLoading = !0;
|
|
2881
|
-
try {
|
|
2882
|
-
const t = await this.api.getTransactionRules();
|
|
2883
|
-
this.setTransactionRules(t);
|
|
2884
|
-
} catch (t) {
|
|
2885
|
-
console.error("Error occurred while loading transaction rules:", t), this.globalStore.captureException(t, { store: "TransactionStore" }), this.setTransactionRules([]);
|
|
2886
|
-
} finally {
|
|
2887
|
-
c(() => {
|
|
2888
|
-
this.transactionRulesLoading = !1;
|
|
2889
|
-
});
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
};
|
|
2893
|
-
loadTransactions = async (t = this.cachedStartDate) => {
|
|
2894
|
-
if (!this.transactionsLoading) {
|
|
2895
|
-
this.setIsLoading(!0), this.transactionsLoading = !0;
|
|
2896
|
-
try {
|
|
2897
|
-
const e = await this.api.getTransactionsByDateRange(
|
|
2898
|
-
m(t),
|
|
2899
|
-
m(Y())
|
|
2900
|
-
);
|
|
2901
|
-
this.setTransactions(e), c(() => {
|
|
2902
|
-
this.cachedStartDate = t;
|
|
2903
|
-
});
|
|
2904
|
-
} catch (e) {
|
|
2905
|
-
console.error("Error occurred while loading transactions:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
2906
|
-
} finally {
|
|
2907
|
-
c(() => {
|
|
2908
|
-
this.transactionsLoading = !1;
|
|
2909
|
-
}), this.setIsLoading(!1);
|
|
2910
|
-
}
|
|
2911
|
-
}
|
|
2912
|
-
};
|
|
2913
|
-
modifyTransactionByAccountGuid = (t, e) => {
|
|
2914
|
-
this.transactions = this.transactions.map(
|
|
2915
|
-
(s) => s.account_guid === t ? { ...s, ...e } : s
|
|
2916
|
-
);
|
|
2917
|
-
};
|
|
2918
|
-
removeTag = async (t) => {
|
|
2919
|
-
try {
|
|
2920
|
-
await this.api.removeTag(t), await this.loadTags();
|
|
2921
|
-
} catch (e) {
|
|
2922
|
-
console.error("Error occurred while removing tag:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
2923
|
-
}
|
|
2924
|
-
};
|
|
2925
|
-
removeTagging = async (t) => {
|
|
2926
|
-
try {
|
|
2927
|
-
await this.api.removeTagging(t);
|
|
2928
|
-
} catch (e) {
|
|
2929
|
-
console.error("Error occurred while removing tagging:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
2930
|
-
}
|
|
2931
|
-
};
|
|
2932
|
-
removeTransaction = async (t) => {
|
|
2933
|
-
try {
|
|
2934
|
-
await this.api.removeTransaction(t);
|
|
2935
|
-
const e = this.transactions.findIndex((s) => s.guid === t);
|
|
2936
|
-
if (e >= 0) {
|
|
2937
|
-
const s = [...this.transactions];
|
|
2938
|
-
s.splice(e, 1), this.setTransactions(s);
|
|
2939
|
-
}
|
|
2940
|
-
} catch (e) {
|
|
2941
|
-
console.error("Error occurred while removing transaction:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
2942
|
-
}
|
|
2943
|
-
};
|
|
2944
|
-
setFilter = (t) => {
|
|
2945
|
-
this.filter = t, t.dateRange && W(t.dateRange.start, this.cachedStartDate) && this.loadTransactions(t.dateRange.start);
|
|
2946
|
-
};
|
|
2947
|
-
setIsLoading = (t) => this.isLoading = t;
|
|
2948
|
-
splitTransaction = async (t, e) => {
|
|
2949
|
-
if (!this.transactionSplitting) {
|
|
2950
|
-
this.transactionSplitting = !0;
|
|
2951
|
-
try {
|
|
2952
|
-
const s = await this.api.updateTransaction(t), a = [];
|
|
2953
|
-
for (let i = 0; i < e.length; i++) {
|
|
2954
|
-
const l = await this.api.addTransaction(e[i]);
|
|
2955
|
-
a.push(l);
|
|
2956
|
-
}
|
|
2957
|
-
const o = this.transactions.findIndex((i) => i.guid === t.guid);
|
|
2958
|
-
if (o >= 0) {
|
|
2959
|
-
const i = this.transactions.filter(
|
|
2960
|
-
(l) => l.guid !== t.guid && l.parent_guid !== t.guid
|
|
2961
|
-
);
|
|
2962
|
-
this.setTransactions([
|
|
2963
|
-
...i.slice(0, o),
|
|
2964
|
-
s,
|
|
2965
|
-
...a,
|
|
2966
|
-
...i.slice(o)
|
|
2967
|
-
]);
|
|
2968
|
-
}
|
|
2969
|
-
} catch (s) {
|
|
2970
|
-
throw console.error("Error occurred while splitting transaction:", s), this.globalStore.captureException(s, { store: "TransactionStore" }), s;
|
|
2971
|
-
} finally {
|
|
2972
|
-
this.transactionSplitting = !1;
|
|
2973
|
-
}
|
|
2974
|
-
}
|
|
2975
|
-
};
|
|
2976
|
-
unSplitTransaction = async (t) => {
|
|
2977
|
-
try {
|
|
2978
|
-
const e = this.transactions.filter((o) => o.parent_guid === t);
|
|
2979
|
-
await this.api.removeTransactionSplit(t);
|
|
2980
|
-
const s = [...this.transactions];
|
|
2981
|
-
e.forEach((o) => {
|
|
2982
|
-
const i = s.findIndex((l) => l.guid === o.guid);
|
|
2983
|
-
i >= 0 && s.splice(i, 1);
|
|
2984
|
-
});
|
|
2985
|
-
const a = s.findIndex((o) => o.guid === t);
|
|
2986
|
-
c(() => {
|
|
2987
|
-
const o = s[a];
|
|
2988
|
-
o && (o.has_been_split = !1), a >= 0 && this.setTransactions([
|
|
2989
|
-
...s.slice(0, a),
|
|
2990
|
-
o,
|
|
2991
|
-
...s.slice(a + 1)
|
|
2992
|
-
]);
|
|
2993
|
-
});
|
|
2994
|
-
} catch (e) {
|
|
2995
|
-
console.error("Error occurred while unsplitting transaction:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
2996
|
-
}
|
|
2997
|
-
};
|
|
2998
|
-
updateTaggings = async (t, e) => {
|
|
2999
|
-
try {
|
|
3000
|
-
const s = this.taggings.filter((i) => i.transaction_guid === e), a = new Set(s.map((i) => i.tag_guid)), o = new Set(t);
|
|
3001
|
-
for (const i of t)
|
|
3002
|
-
a.has(i) || await this.addTagging(i, e);
|
|
3003
|
-
for (const i of s)
|
|
3004
|
-
o.has(i.tag_guid) || await this.removeTagging(i.guid);
|
|
3005
|
-
await this.loadTaggings();
|
|
3006
|
-
} catch (s) {
|
|
3007
|
-
console.error("Error occurred while updating taggings:", s), this.globalStore.captureException(s, { store: "TransactionStore" });
|
|
3008
|
-
}
|
|
3009
|
-
};
|
|
3010
|
-
updateTag = async (t) => {
|
|
3011
|
-
try {
|
|
3012
|
-
await this.api.updateTag(t), await this.loadTags();
|
|
3013
|
-
} catch (e) {
|
|
3014
|
-
console.error("Error occurred while updating tag:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
3015
|
-
}
|
|
3016
|
-
};
|
|
3017
|
-
updateTransaction = async (t) => {
|
|
3018
|
-
try {
|
|
3019
|
-
const e = await this.api.updateTransaction(t), s = this.transactions.findIndex((a) => a.guid === t.guid);
|
|
3020
|
-
s >= 0 && this.setTransactions([
|
|
3021
|
-
...this.transactions.slice(0, s),
|
|
3022
|
-
e,
|
|
3023
|
-
...this.transactions.slice(s + 1)
|
|
3024
|
-
]);
|
|
3025
|
-
} catch (e) {
|
|
3026
|
-
console.error("Error occurred while updating transaction:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
3027
|
-
}
|
|
3028
|
-
};
|
|
3029
|
-
// This is used for loading the transactions list on demand, on clicking the different transactions of the insightful beats.
|
|
3030
|
-
loadEmbeddedInstanceTransactions = async (t) => {
|
|
3031
|
-
try {
|
|
3032
|
-
const e = await this.api.getTransactionsByDateRange(
|
|
3033
|
-
m(t),
|
|
3034
|
-
m(Y())
|
|
3035
|
-
);
|
|
3036
|
-
this.cachedStartDate = t, this.transactions = e;
|
|
3037
|
-
} catch (e) {
|
|
3038
|
-
console.error("Error occurred while loading embedded instance transactions:", e), this.globalStore.captureException(e, { store: "TransactionStore" });
|
|
3039
|
-
}
|
|
3040
|
-
};
|
|
3041
|
-
}
|
|
3042
|
-
class ke {
|
|
3043
|
-
beginDate = C(/* @__PURE__ */ new Date());
|
|
3044
|
-
endDate = b(/* @__PURE__ */ new Date());
|
|
3045
|
-
expandedSplits = [];
|
|
3046
|
-
height = 550;
|
|
3047
|
-
width = 1e3;
|
|
3048
|
-
shouldDisableDrawerScroll = !1;
|
|
3049
|
-
searchValue = "";
|
|
3050
|
-
selectedAccountGuids = [];
|
|
3051
|
-
manualTransaction = $t;
|
|
3052
|
-
isAmountValid = !1;
|
|
3053
|
-
showInsights = !1;
|
|
3054
|
-
constructor() {
|
|
3055
|
-
h(this);
|
|
3056
|
-
}
|
|
3057
|
-
setDateRange = (t, e) => {
|
|
3058
|
-
this.beginDate = t, this.endDate = e;
|
|
3059
|
-
};
|
|
3060
|
-
setIsAmountValid = (t) => this.isAmountValid = t;
|
|
3061
|
-
setSearchValue = (t) => this.searchValue = t;
|
|
3062
|
-
setSelectedAccountGuids = (t) => this.selectedAccountGuids = t;
|
|
3063
|
-
setShouldDisableDrawerScroll = (t) => this.shouldDisableDrawerScroll = t;
|
|
3064
|
-
setShowInsights = (t) => {
|
|
3065
|
-
this.showInsights = t;
|
|
3066
|
-
};
|
|
3067
|
-
setSize = (t, e) => {
|
|
3068
|
-
this.height = t, this.width = e;
|
|
3069
|
-
};
|
|
3070
|
-
toggleSplit = (t) => {
|
|
3071
|
-
const e = [...this.expandedSplits], s = this.expandedSplits.findIndex((a) => a === t);
|
|
3072
|
-
s >= 0 ? e.splice(s, 1) : e.push(t), this.expandedSplits = e;
|
|
3073
|
-
};
|
|
3074
|
-
clearExpandedSplits = () => {
|
|
3075
|
-
this.expandedSplits.length !== 0 && (this.expandedSplits = []);
|
|
3076
|
-
};
|
|
3077
|
-
updateManualTransaction = (t) => {
|
|
3078
|
-
this.manualTransaction = t;
|
|
3079
|
-
};
|
|
3080
|
-
}
|
|
3081
|
-
class He {
|
|
3082
|
-
globalStore;
|
|
3083
|
-
selectedCategoryData = null;
|
|
3084
|
-
selectedDateRange;
|
|
3085
|
-
visibleListLength = 5;
|
|
3086
|
-
constructor(t) {
|
|
3087
|
-
this.globalStore = t, this.selectedDateRange = {
|
|
3088
|
-
start: se(b(N(/* @__PURE__ */ new Date(), 6)), 1),
|
|
3089
|
-
end: b(/* @__PURE__ */ new Date())
|
|
3090
|
-
}, h(this);
|
|
3091
|
-
}
|
|
3092
|
-
setSelectedCategoryData = (t) => {
|
|
3093
|
-
this.selectedCategoryData = t;
|
|
3094
|
-
};
|
|
3095
|
-
setSelectedDateRange = (t) => {
|
|
3096
|
-
this.selectedDateRange = t;
|
|
3097
|
-
};
|
|
3098
|
-
setVisibleListLength = (t) => {
|
|
3099
|
-
this.visibleListLength = t;
|
|
3100
|
-
};
|
|
3101
|
-
get sortedDetailedCategoriesWithTransactions() {
|
|
3102
|
-
return re(
|
|
3103
|
-
this.globalStore.categoryStore.detailedCategoriesWithTransactions
|
|
3104
|
-
);
|
|
3105
|
-
}
|
|
3106
|
-
get selectedDateRangeMonthCount() {
|
|
3107
|
-
return ae(this.selectedDateRange.end, this.selectedDateRange.start) + 1;
|
|
3108
|
-
}
|
|
3109
|
-
get selectedDateRangeMonthRange() {
|
|
3110
|
-
const t = k(this.selectedDateRange.start, H.MONTH_LONG), e = k(this.selectedDateRange.end, H.MONTH_LONG);
|
|
3111
|
-
return `${t} - ${e}`;
|
|
3112
|
-
}
|
|
3113
|
-
get visibleCategories() {
|
|
3114
|
-
return this.sortedDetailedCategoriesWithTransactions.slice(0, this.visibleListLength);
|
|
3115
|
-
}
|
|
3116
|
-
get collapsedCategories() {
|
|
3117
|
-
return this.sortedDetailedCategoriesWithTransactions.slice(this.visibleListLength);
|
|
3118
|
-
}
|
|
3119
|
-
get categoryDetailsChartData() {
|
|
3120
|
-
return ne(
|
|
3121
|
-
this.selectedCategoryData,
|
|
3122
|
-
this.selectedDateRangeMonthCount
|
|
3123
|
-
);
|
|
3124
|
-
}
|
|
3125
|
-
}
|
|
3126
|
-
class We {
|
|
3127
|
-
globalStore;
|
|
3128
|
-
api = new ct("/", "");
|
|
3129
|
-
userFeatures = [];
|
|
3130
|
-
userFeaturesLoaded = !1;
|
|
3131
|
-
constructor(t) {
|
|
3132
|
-
this.globalStore = t, this.api = new ct(t.endpoint, t.sessionToken, t.onError), h(this);
|
|
3133
|
-
}
|
|
3134
|
-
get userProfile() {
|
|
3135
|
-
return this.globalStore.appDataStore.userProfile;
|
|
3136
|
-
}
|
|
3137
|
-
get user() {
|
|
3138
|
-
return this.globalStore.appDataStore.user;
|
|
3139
|
-
}
|
|
3140
|
-
setUserFeatures = (t) => {
|
|
3141
|
-
this.userFeatures = t, this.userFeaturesLoaded = !0;
|
|
3142
|
-
};
|
|
3143
|
-
loadUserFeatures = async () => {
|
|
3144
|
-
try {
|
|
3145
|
-
const t = await this.api.getUserFeatures();
|
|
3146
|
-
this.setUserFeatures(t);
|
|
3147
|
-
} catch (t) {
|
|
3148
|
-
console.error("Error occurred while loading user features:", t), this.globalStore.captureException(t, { store: "UserStore" }), this.setUserFeatures([]);
|
|
3149
|
-
}
|
|
3150
|
-
};
|
|
3151
|
-
updateUser = async (t) => {
|
|
3152
|
-
try {
|
|
3153
|
-
const e = await this.api.updateUser(t);
|
|
3154
|
-
this.globalStore.appDataStore.setUser(e);
|
|
3155
|
-
} catch (e) {
|
|
3156
|
-
throw console.error("Error updating User:", e), this.globalStore.captureException(e, { store: "UserStore" }), e;
|
|
3157
|
-
}
|
|
3158
|
-
};
|
|
3159
|
-
updateUserProfile = async (t) => {
|
|
3160
|
-
try {
|
|
3161
|
-
const e = await this.api.updateUserProfile(t);
|
|
3162
|
-
this.globalStore.appDataStore.setUserProfile(e);
|
|
3163
|
-
} catch (e) {
|
|
3164
|
-
console.error("Error occurred while updating user profile:", e), this.globalStore.captureException(e, { store: "UserStore" });
|
|
3165
|
-
}
|
|
3166
|
-
};
|
|
3167
|
-
}
|
|
3168
|
-
export {
|
|
3169
|
-
M as A,
|
|
3170
|
-
X as B,
|
|
3171
|
-
ye as C,
|
|
3172
|
-
be as D,
|
|
3173
|
-
tt as F,
|
|
3174
|
-
Re as G,
|
|
3175
|
-
st as H,
|
|
3176
|
-
rt as M,
|
|
3177
|
-
Be as N,
|
|
3178
|
-
Oe as R,
|
|
3179
|
-
ot as S,
|
|
3180
|
-
O as T,
|
|
3181
|
-
ct as U,
|
|
3182
|
-
lt as W,
|
|
3183
|
-
ce as a,
|
|
3184
|
-
de as b,
|
|
3185
|
-
j as c,
|
|
3186
|
-
he as d,
|
|
3187
|
-
pe as e,
|
|
3188
|
-
J as f,
|
|
3189
|
-
_e as g,
|
|
3190
|
-
Z as h,
|
|
3191
|
-
fe as i,
|
|
3192
|
-
Te as j,
|
|
3193
|
-
Ie as k,
|
|
3194
|
-
Ns as l,
|
|
3195
|
-
Ce as m,
|
|
3196
|
-
et as n,
|
|
3197
|
-
De as o,
|
|
3198
|
-
ve as p,
|
|
3199
|
-
at as q,
|
|
3200
|
-
Ge as r,
|
|
3201
|
-
Ne as s,
|
|
3202
|
-
nt as t,
|
|
3203
|
-
Me as u,
|
|
3204
|
-
it as v,
|
|
3205
|
-
Fe as w,
|
|
3206
|
-
Ue as x,
|
|
3207
|
-
He as y,
|
|
3208
|
-
We as z
|
|
3209
|
-
};
|
|
3210
|
-
//# sourceMappingURL=UserStore-Cp-2Jtnw.mjs.map
|