@mx-cartographer/experiences 9.0.0-alpha.mega1 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +676 -9
- package/README.md +216 -47
- package/dist/{Account-CMjOp7S2.mjs → Account-BaJmiJAG.mjs} +4 -4
- package/dist/{Account-BIKn4XEZ.mjs → Account-BxHMlV9R.mjs} +1 -1
- package/dist/AccountDetailsHeader-DIysk_4w.mjs +95 -0
- package/dist/AccountFields-mwJ8NXsX.mjs +141 -0
- package/dist/AccountListItem-BDXHs4tV.mjs +94 -0
- package/dist/AccountUtils-T5_Odvos.mjs +27 -0
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Analytics-CkYXKvco.mjs +53 -0
- package/dist/Analytics-CzGzz_sE.mjs +136 -0
- package/dist/ApiEndpoints-DXwIYNUV.mjs +49 -0
- package/dist/BudgetUtil-Bg2AQJpQ.mjs +74 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-DEKZGLYe.mjs} +3 -3
- package/dist/{CategorySelectorDrawer-C4aZYP4N.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +131 -119
- package/dist/Connect-Dk6GZEsA.mjs +39 -0
- package/dist/ConnectCard-CCep7Zqe.mjs +54 -0
- package/dist/ConnectDrawer-Cnjr3Ddg.mjs +58 -0
- package/dist/{ConnectionsDrawer-BExzgE16.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +13 -12
- package/dist/CurrencyDialog-DumQCTPO.mjs +373 -0
- package/dist/CurrencyInput-adTIRtL3.mjs +87 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CCbE6MmF.mjs} +1 -1
- package/dist/DateFormats-HudZ3Bjs.mjs +64 -0
- package/dist/DateUtil-Bhq59ZVg.mjs +58 -0
- package/dist/DebtUtils-DD3186U-.mjs +153 -0
- package/dist/Dialog-CwWc0AbH.mjs +63 -0
- package/dist/Donut-SzzfZDHF.mjs +88 -0
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-BXqqBMxg.mjs} +32 -34
- package/dist/EmbeddedCard-DPwJjqMH.mjs +856 -0
- package/dist/{EmptyState-DoxNUae-.mjs → EmptyState-CJUDc3kD.mjs} +21 -22
- package/dist/Error-Dogaw2jO.mjs +84 -0
- package/dist/ErrorBoundary-CsdOcnJ9.mjs +23 -0
- package/dist/{ExportCsvAction-oG_Mn66T.mjs → ExportCsvAction-Bw02ZJEj.mjs} +6 -6
- package/dist/GlobalAccountFilter-7Cg2-9A5.mjs +237 -0
- package/dist/GlobalCopyApi-wcnDUzMV.mjs +128 -0
- package/dist/GoalsUtil-C9EnLWvC.mjs +107 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-CkQTjORd.mjs} +6 -27
- package/dist/{Help-BW_ar-4B.mjs → Help-DJ8PrVHX.mjs} +594 -562
- package/dist/InformationTooltip-4su8bn1e.mjs +41 -0
- package/dist/{InvestmentUtil-jOyOgzIB.mjs → InvestmentUtil-BItV7uEs.mjs} +17 -17
- package/dist/LineChart-CejWS_rh.mjs +612 -0
- package/dist/{ListItemAction-Cbr3417C.mjs → ListItemAction-CwspSmQi.mjs} +26 -26
- package/dist/ListItemRow-kH1rn8Xu.mjs +67 -0
- package/dist/ListItemWrapper-B5r-YQQ_.mjs +42 -0
- package/dist/Loader-CxeBwuPG.mjs +21 -0
- package/dist/Localization-DnoVyBNK.mjs +38 -0
- package/dist/ManageIncome-B1JfqslT.mjs +595 -0
- package/dist/{MicroWidgetContainer-DSyYwRCU.mjs → MicroWidgetContainer-CfKdQfhi.mjs} +2 -2
- package/dist/MiniWidgetContainer-BdPiUU-u.mjs +66 -0
- package/dist/NetWorthUtils-DilGN1nW.mjs +95 -0
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-e789PcRb.mjs → NotificationSettings-6p-h5phZ.mjs} +143 -142
- package/dist/NotificationUtils-BRGFTePr.mjs +23 -0
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting--XMeeBfr.mjs} +2 -1
- package/dist/OriginalBalanceAction-CkJPnp2c.mjs +114 -0
- package/dist/{RecurringSettings-BpCUcE8w.mjs → RecurringSettings-cm6MK_aS.mjs} +4 -4
- package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +253 -0
- package/dist/{ResponsiveButton-C6KH8JH4.mjs → ResponsiveButton-CC9F_Ezk.mjs} +4 -4
- package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
- package/dist/Select-BFt-HD-L.mjs +55 -0
- package/dist/SelectionBox-B4xELRgp.mjs +48 -0
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
- package/dist/Sizes-DISGrlUg.mjs +6 -0
- package/dist/{SpendingData-B7NuTQ9s.mjs → SpendingData-PKlh8caU.mjs} +6 -6
- package/dist/SpendingLegend-5Ct_FZ8o.mjs +193 -0
- package/dist/ToggleListItem-Dl1lXNwj.mjs +91 -0
- package/dist/TransactionDetails-C3dlAzYf.mjs +1714 -0
- package/dist/TransactionUtils-BphBJBbU.mjs +234 -0
- package/dist/TrendsUtil-D9z3kIj_.mjs +69 -0
- package/dist/UserStore-CRpKQjpP.mjs +3002 -0
- package/dist/ViewMoreMicroCard-BD_MNc2z.mjs +1295 -0
- package/dist/WidgetContainer-DNuz_s7W.mjs +479 -0
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/components/AccountListItem.d.ts +1 -1
- package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
- package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
- package/dist/accounts/hooks/useUiStore.d.ts +6 -1
- package/dist/accounts/index.d.ts +0 -2
- package/dist/accounts/index.es.js +628 -527
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +3 -3
- package/dist/analytics/index.es.js +93 -112
- package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
- package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +11 -0
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
- package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
- package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
- package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
- package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.d.ts +2 -1
- package/dist/budgets/index.es.js +989 -813
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/context/hooks.d.ts +15 -1
- package/dist/cashflow/index.d.ts +0 -2
- package/dist/cashflow/index.es.js +461 -490
- package/dist/cashflow/util/Filters.d.ts +1 -1
- package/dist/categories/components/CategoryRow.d.ts +1 -1
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
- package/dist/categories/components/SubcategoryList.d.ts +1 -1
- package/dist/categories/components/SubcategoryRow.d.ts +1 -1
- package/dist/categories/context/hooks.d.ts +19 -1
- package/dist/categories/index.d.ts +0 -1
- package/dist/categories/index.es.js +4 -6
- package/dist/common/components/CurrencyDialog.d.ts +19 -0
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/EmptyState.d.ts +0 -1
- package/dist/common/components/Error.d.ts +13 -0
- package/dist/common/components/GlobalAccountFilter.d.ts +3 -2
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/TinyBarChart.d.ts +10 -0
- package/dist/common/components/WidgetContainer.d.ts +4 -3
- package/dist/common/components/WidgetDateRangeSelector.d.ts +12 -0
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/charts/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
- package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
- package/dist/common/components/daterangeselector/DateRangeSelector.d.ts +1 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +2 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +12 -0
- package/dist/common/constants/ScheduledPayment.d.ts +1 -10
- package/dist/common/constants/SpendingPlan.d.ts +0 -10
- package/dist/common/constants/index.d.ts +2 -6
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +24 -24
- package/dist/common/hooks/index.d.ts +2 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
- package/dist/common/hooks/useCombineEvents.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/hooks/useWidgetHeaderStyles.d.ts +34 -0
- package/dist/common/index.d.ts +3 -3
- package/dist/common/index.es.js +254 -1348
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +2 -2
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/PostMessage.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +7 -6
- package/dist/common/utils/index.d.ts +1 -6
- package/dist/{accounts → core}/api/AccountApi.d.ts +2 -2
- package/dist/{common → core}/api/AnalyticsApi.d.ts +1 -1
- package/dist/{common → core}/api/AppDataApi.d.ts +2 -2
- package/dist/{common → core}/api/BannerApi.d.ts +1 -1
- package/dist/{common → core}/api/BeatApi.d.ts +2 -2
- package/dist/{budgets → core}/api/BudgetsApi.d.ts +5 -1
- package/dist/{common → core}/api/CategoryApi.d.ts +2 -2
- package/dist/{finstrong → core}/api/FinstrongApi.d.ts +2 -2
- package/dist/{common → core}/api/GlobalCopyApi.d.ts +2 -2
- package/dist/{goals → core}/api/GoalApi.d.ts +2 -2
- package/dist/{help → core}/api/HelpApi.d.ts +2 -2
- package/dist/{investments → core}/api/HoldingApi.d.ts +2 -2
- package/dist/{merchants → core}/api/MerchantApi.d.ts +2 -2
- package/dist/{common → core}/api/NotificationApi.d.ts +2 -2
- package/dist/{recurringtransactions → core}/api/RepeatingTransactionsApi.d.ts +2 -1
- package/dist/{common → core}/api/ScheduledPaymentsApi.d.ts +2 -2
- package/dist/{settings → core}/api/SettingsApi.d.ts +2 -3
- package/dist/{transactions → core}/api/TransactionApi.d.ts +2 -2
- package/dist/{common → core}/api/UserApi.d.ts +2 -2
- package/dist/{common → core}/api/WidgetApi.d.ts +1 -1
- package/dist/core/api/index.d.ts +20 -0
- package/dist/{common → core}/constants/ApiEndpoints.d.ts +1 -2
- package/dist/{common → core}/constants/DefaultConfig.d.ts +1 -1
- package/dist/core/constants/Transaction.d.ts +10 -0
- package/dist/core/constants/index.d.ts +4 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.es.js +108 -0
- package/dist/{accounts → core}/stores/AccountStore.d.ts +15 -3
- package/dist/{analytics → core}/stores/AnalyticsStore.d.ts +1 -1
- package/dist/{common → core}/stores/AppDataStore.d.ts +1 -2
- package/dist/{insights/store → core/stores}/BeatStore.d.ts +3 -3
- package/dist/{budgets/store → core/stores}/BudgetsStore.d.ts +15 -2
- package/dist/{cashflow/stores/UiStore.d.ts → core/stores/CashflowStore.d.ts} +10 -2
- package/dist/{categories → core}/stores/CategoryStore.d.ts +24 -2
- package/dist/{common → core}/stores/ConnectStore.d.ts +1 -1
- package/dist/core/stores/DebtsStore.d.ts +22 -0
- package/dist/{finstrong → core}/stores/FinstrongStore.d.ts +5 -4
- package/dist/{common → core}/stores/GlobalStore.d.ts +4 -25
- package/dist/{goals → core}/stores/GoalStore.d.ts +3 -2
- package/dist/{help/store → core/stores}/HelpStore.d.ts +4 -5
- package/dist/{investments → core}/stores/HoldingStore.d.ts +4 -3
- package/dist/{merchants → core}/stores/MerchantStore.d.ts +3 -2
- package/dist/{networth → core}/stores/NetWorthStore.d.ts +3 -3
- package/dist/{notifications → core}/stores/NotificationStore.d.ts +3 -1
- package/dist/{recurringtransactions → core}/stores/RecurringTransactionsStore.d.ts +3 -2
- package/dist/{settings → core}/stores/SettingsStore.d.ts +4 -4
- package/dist/{transactions → core}/stores/TransactionStore.d.ts +30 -4
- package/dist/{trends → core}/stores/TrendsStore.d.ts +11 -4
- package/dist/core/stores/index.d.ts +24 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +8 -2
- package/dist/{common → core}/types/Beat.d.ts +2 -0
- package/dist/{common → core}/types/Budget.d.ts +8 -0
- package/dist/{common → core}/types/Client.d.ts +1 -0
- package/dist/{common → core}/types/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{networth → core}/types/NetWorth.d.ts +1 -10
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/core/types/Offer.d.ts +32 -0
- package/dist/{common → core}/types/Widgets.d.ts +1 -0
- package/dist/{common → core}/types/index.d.ts +4 -3
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +26 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +3 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
- package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -1
- package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +11 -6
- package/dist/{common → core}/types/localization/TrendsCopy.d.ts +2 -0
- package/dist/{accounts/utils/Accounts.d.ts → core/utils/AccountUtils.d.ts} +2 -2
- package/dist/{microinsights/utils/beatUtils.d.ts → core/utils/BeatUtils.d.ts} +1 -1
- package/dist/{budgets → core}/utils/BudgetUtil.d.ts +7 -2
- package/dist/{categories/util → core/utils}/CategoryUtil.d.ts +6 -1
- package/dist/core/utils/DebtUtils.d.ts +31 -0
- package/dist/core/utils/FinstrongUtils.d.ts +7 -0
- package/dist/{goals/util → core/utils}/GoalsUtil.d.ts +1 -1
- package/dist/core/utils/HelpUtil.d.ts +3 -0
- package/dist/{investments/util → core/utils}/InvestmentUtil.d.ts +2 -2
- package/dist/{common → core}/utils/Localization.d.ts +9 -1
- package/dist/{networth → core}/utils/NetWorthUtils.d.ts +1 -2
- package/dist/{notifications → core}/utils/NotificationUtils.d.ts +2 -1
- package/dist/{common → core}/utils/NumberFormatting.d.ts +1 -1
- package/dist/{recurringtransactions/util/RecurringTransactions.d.ts → core/utils/RecurringTransactionsUtil.d.ts} +2 -2
- package/dist/{settings/util/Notifications.d.ts → core/utils/SettingsUtil.d.ts} +1 -1
- package/dist/{transactions/utils/buildDetailedTransactions.d.ts → core/utils/TransactionUtils.d.ts} +12 -2
- package/dist/{trends/utils/TrendsData.d.ts → core/utils/TrendsUtil.d.ts} +1 -1
- package/dist/core/utils/index.d.ts +2 -0
- package/dist/dashboard/index.es.js +39 -38
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/DebtsChart.d.ts +1 -1
- package/dist/debts/components/DebtsTable.d.ts +1 -1
- package/dist/debts/components/SnowballCard.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +6 -1
- package/dist/debts/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/debts/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/debts/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +3 -1
- package/dist/debts/hooks/useDebtsUiStore.d.ts +1 -1
- package/dist/debts/index.d.ts +0 -1
- package/dist/debts/index.es.js +715 -775
- package/dist/debts/utils/DebtsTable.d.ts +1 -1
- package/dist/debts/utils/SnowballCard.d.ts +2 -2
- package/dist/finstrong/FinstrongWidget.d.ts +2 -2
- package/dist/finstrong/components/HealthChart.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
- package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
- package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
- package/dist/finstrong/index.d.ts +0 -2
- package/dist/finstrong/index.es.js +1587 -1349
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -9
- package/dist/goals/GoalsWidget.d.ts +2 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
- package/dist/goals/components/AddGoal.d.ts +1 -1
- package/dist/goals/components/GoalDetails.d.ts +1 -1
- package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
- package/dist/goals/components/GoalList.d.ts +1 -1
- package/dist/goals/components/GoalStatusCard.d.ts +1 -1
- package/dist/goals/components/ManageGoals.d.ts +1 -1
- package/dist/goals/components/actions/AccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
- package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
- package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
- package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +2 -2
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +3 -2
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.d.ts +0 -2
- package/dist/goals/index.es.js +707 -787
- package/dist/help/HelpWidget.d.ts +2 -2
- package/dist/help/components/HelpContent.d.ts +1 -1
- package/dist/help/components/HelpList.d.ts +1 -1
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/ContentItem.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/NoImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/components/content/section/Accounts.d.ts +1 -1
- package/dist/help/components/content/section/Budgets.d.ts +1 -1
- package/dist/help/components/content/section/CashFlow.d.ts +1 -1
- package/dist/help/components/content/section/Debts.d.ts +1 -1
- package/dist/help/components/content/section/General.d.ts +1 -1
- package/dist/help/components/content/section/Goals.d.ts +1 -1
- package/dist/help/components/content/section/Insights.d.ts +1 -1
- package/dist/help/components/content/section/Investments.d.ts +1 -1
- package/dist/help/components/content/section/Mobile.d.ts +1 -1
- package/dist/help/components/content/section/NetWorth.d.ts +1 -1
- package/dist/help/components/content/section/Notifications.d.ts +1 -1
- package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
- package/dist/help/components/content/section/Spending.d.ts +1 -1
- package/dist/help/components/content/section/Transactions.d.ts +1 -1
- package/dist/help/components/content/section/Trends.d.ts +1 -1
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
- package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
- package/dist/help/index.es.js +19 -10
- package/dist/help/utils/index.d.ts +0 -1
- package/dist/{hooks-fY_n74f7.mjs → hooks-BaO_gOI6.mjs} +23 -23
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +53 -0
- package/dist/insights/components/insights/AccountDiscoverability/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AccountDiscoverability/index.d.ts +1 -0
- package/dist/insights/components/insights/AccountDiscoverability/types/AccountDiscoverability.d.ts +3 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/AmericanUpcomingTaxDeadlineAlert.d.ts +2 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/index.d.ts +1 -0
- package/dist/insights/components/insights/AmericanUpcomingTaxDeadlineAlert/types/AmericanUpcomingTaxDeadlineProps.d.ts +4 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandard.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/BillAmountNotStandardMUI.d.ts +3 -0
- package/dist/insights/components/insights/BillAmountNotStandard/index.d.ts +2 -0
- package/dist/insights/components/insights/BillAmountNotStandard/types/BillAmountNotStandard.d.ts +4 -0
- package/dist/insights/components/insights/CashBack/CashBack.d.ts +3 -0
- package/dist/insights/components/insights/CashBack/index.d.ts +1 -0
- package/dist/insights/components/insights/CashBack/types/CashBack.d.ts +7 -0
- package/dist/insights/components/insights/CategoryBudget/CategoryBudget.d.ts +3 -0
- package/dist/insights/components/insights/CategoryBudget/index.d.ts +1 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +10 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/CategorySpendingV2MUI.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/index.d.ts +2 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +7 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/CelebrateCreditCardPayoff.d.ts +3 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/index.d.ts +1 -0
- package/dist/insights/components/insights/CelebrateCreditCardPayoff/types/CelebrateCreditCardPayoffProps.d.ts +9 -0
- package/dist/insights/components/insights/CustomTransaction/CustomTransaction.d.ts +3 -0
- package/dist/insights/components/insights/CustomTransaction/index.d.ts +1 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsBody.d.ts +9 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsLearnMoreDrawerContent.d.ts +21 -0
- package/dist/insights/components/insights/DiscoveredAccounts/DiscoveredAccountsMiniInsight.d.ts +6 -0
- package/dist/insights/components/insights/DiscoveredAccounts/index.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHoliday.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/FederalBankHolidayMUI.d.ts +3 -0
- package/dist/insights/components/insights/FederalBankHoliday/index.d.ts +2 -0
- package/dist/insights/components/insights/FederalBankHoliday/types/FederalBankHoliday.d.ts +4 -0
- package/dist/insights/components/insights/MarketingHub/Offer.d.ts +3 -0
- package/dist/insights/components/insights/MarketingHub/Types.d.ts +33 -0
- package/dist/insights/components/insights/MarketingHub/index.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/MonthlyDebtToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlyDebtToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/LastMonthsContributionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/MonthlyEmergencyFundReviewBody.d.ts +21 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/ProjectedCompletionSection.d.ts +6 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/TotalSection.d.ts +7 -0
- package/dist/insights/components/insights/MonthlyEmergencyFundReview/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/MonthlySavingsToIncomeComparison.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySavingsToIncomeComparison/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/MonthlySpendToIncomeComparisonV2.d.ts +2 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendToIncomeComparisonV2/types/index.d.ts +4 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/MonthlySpendingComparisonV2.d.ts +3 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/__test__/MonthlySpendComparisonV2.test.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/index.d.ts +1 -0
- package/dist/insights/components/insights/MonthlySpendingComparisonV2/types/MonthlySpendComparisonV2.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/P2pCategorization.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
- package/dist/insights/components/insights/P2pCategorization/index.d.ts +4 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationMultipleTransactions.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/shared/P2pCategorizationSingleTransaction.d.ts +3 -0
- package/dist/insights/components/insights/P2pCategorization/types/P2pCategorization.d.ts +17 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/SavingsAccountBalancesSummary.d.ts +2 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/index.d.ts +1 -0
- package/dist/insights/components/insights/SavingsAccountBalancesSummary/types/SavingsAccountBalancesSummary.d.ts +4 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/SetUpDirectDepositBody.d.ts +3 -0
- package/dist/insights/components/insights/SetUpDirectDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/SharedDeposit.d.ts +2 -0
- package/dist/insights/components/insights/SharedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/SharedDeposit/types/index.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/AccountBox.d.ts +7 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositBody.d.ts +10 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/SwitchDirectDepositMainContainer.d.ts +9 -0
- package/dist/insights/components/insights/SwitchDirectDeposit/index.d.ts +3 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDeposit.d.ts +7 -0
- package/dist/insights/components/insights/UnifiedDeposit/UnifiedDepositBody.d.ts +11 -0
- package/dist/insights/components/insights/UnifiedDeposit/index.d.ts +1 -0
- package/dist/insights/components/insights/UserFeedback/StyledToggleButton.d.ts +7 -0
- package/dist/insights/components/insights/UserFeedback/Types.d.ts +27 -0
- package/dist/insights/components/insights/UserFeedback/UserFeedback.d.ts +3 -0
- package/dist/insights/components/insights/UserFeedback/index.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +9 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/NoSpendIcons.d.ts +1 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +12 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/_tests_/WeeklyNoSpendDays.test.d.ts +0 -0
- package/dist/insights/components/insights/WeeklyNoSpendDays/index.d.ts +1 -0
- package/dist/insights/components/insights/index.d.ts +25 -0
- package/dist/insights/components/shared/AccountBalanceCard.d.ts +13 -0
- package/dist/insights/components/shared/BottomSheet.d.ts +13 -0
- package/dist/insights/components/shared/CarouselControls.d.ts +14 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +30 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +9 -0
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +22 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/BarChartV2.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegend.d.ts +9 -0
- package/dist/insights/components/shared/Charts/BarChart/ChartLegendV2.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomBarPlotV2.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlot.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/CustomDoubleBarPlotMXUI.d.ts +18 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChart.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegend.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartLegendMXUI.d.ts +10 -0
- package/dist/insights/components/shared/Charts/BarChart/DoubleBarChartMXUI.d.ts +2 -0
- package/dist/insights/components/shared/Charts/BarChart/index.d.ts +4 -0
- package/dist/insights/components/shared/Charts/EmptyBarChart.d.ts +1 -0
- package/dist/insights/components/shared/Charts/index.d.ts +2 -0
- package/dist/insights/components/shared/Confetti.d.ts +5 -0
- package/dist/insights/components/shared/ConnectionCard.d.ts +14 -0
- package/dist/insights/components/shared/ConnectionDetailDrillDown.d.ts +25 -0
- package/dist/insights/components/shared/Coupon.d.ts +8 -0
- package/dist/insights/components/shared/DeepLinks/DeepLinkDialog.d.ts +11 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Circle.d.ts +6 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/DirectDepositDeepLink.d.ts +24 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Dot.d.ts +1 -0
- package/dist/insights/components/shared/DeepLinks/DirectDeposit/Oval.d.ts +1 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDeposit.d.ts +3 -0
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +14 -0
- package/dist/insights/components/shared/DirectDeposit/FullFeedBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/LeftBox.d.ts +7 -0
- package/dist/insights/components/shared/DirectDeposit/MiniBodyHeader.d.ts +10 -0
- package/dist/insights/components/shared/DirectDeposit/RightBox.d.ts +8 -0
- package/dist/insights/components/shared/DiscoveredAccountsConnect.d.ts +8 -0
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/DrillDownCalculation/BalanceStepper.d.ts +12 -0
- package/dist/insights/components/shared/DrillDownCalculation/DrillDownCalculation.d.ts +31 -0
- package/dist/insights/components/shared/ErrorCard/ErrorCard.d.ts +8 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackButtons.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackDescription.d.ts +5 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackHeader.d.ts +15 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackOptions.d.ts +12 -0
- package/dist/insights/components/shared/GenericFeedback/FeedbackText.d.ts +13 -0
- package/dist/insights/components/shared/GoalProgress.d.ts +10 -0
- package/dist/insights/components/shared/GradientBox.d.ts +8 -0
- package/dist/insights/components/shared/InsightsCard/BeatCard.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardButtonSection.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardError.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/CardFooter.d.ts +7 -0
- package/dist/insights/components/shared/InsightsCard/CardHeader.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/CardLoading.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ClientConfigurableCta.d.ts +5 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescription.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +15 -0
- package/dist/insights/components/shared/InsightsCard/Description.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +10 -0
- package/dist/insights/components/shared/InsightsCard/EmbeddedCard.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/FeedbackCard.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/InsightButton.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescription.d.ts +9 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/MenuAction.d.ts +15 -0
- package/dist/insights/components/shared/MiniInsightCard.d.ts +16 -0
- package/dist/insights/components/shared/P2P/P2PMultipleCategorization.d.ts +12 -0
- package/dist/insights/components/shared/P2PCategorizationSingleAccount/P2PCategorizationSingleAccount.d.ts +10 -0
- package/dist/insights/components/shared/ProgressBar.d.ts +9 -0
- package/dist/insights/components/shared/SaveAnExtra100/SaveAnExtra100.d.ts +9 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnBottomSection.d.ts +11 -0
- package/dist/insights/components/shared/SaveEnoughToLiveOnTopSection.d.ts +2 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +15 -0
- package/dist/insights/components/shared/TabContainer.d.ts +8 -0
- package/dist/insights/components/shared/ThemedSVGImage.d.ts +2 -0
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/components/shared/ZeroState/LinedCardZeroState.d.ts +1 -0
- package/dist/insights/components/shared/index.d.ts +2 -0
- package/dist/insights/hooks/useContainerDimensions.d.ts +5 -0
- package/dist/insights/index.d.ts +1 -1
- package/dist/insights/index.es.js +4843 -2
- package/dist/insights/themes/Typography.d.ts +1 -0
- package/dist/insights/themes/index.d.ts +1 -0
- package/dist/insights/types/Charts/BarChart.d.ts +96 -0
- package/dist/insights/types/CommonBeat.d.ts +367 -0
- package/dist/insights/types/DirectDeposit.d.ts +16 -0
- package/dist/insights/types/ThemedSVGImage.d.ts +5 -0
- package/dist/investments/InvestmentsWidget.d.ts +2 -2
- package/dist/investments/components/AnalysisDetails.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +574 -574
- package/dist/merchants/index.d.ts +0 -1
- package/dist/merchants/index.es.js +18 -20
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -14
- package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
- package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
- package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
- package/dist/microinsights/beaticons/index.d.ts +3 -0
- package/dist/microinsights/cards/InsightCard.d.ts +3 -3
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -3
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -3
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -3
- package/dist/microinsights/carousel/BeatList.d.ts +3 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +4 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -12
- package/dist/microinsights/constants/Analytics.d.ts +1 -1
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +23 -40
- package/dist/microinsights/stores/CopyStore.d.ts +2 -2
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +2 -2
- package/dist/microinsights/utils/DataSeries.d.ts +1 -1
- package/dist/microinsights/utils/colorType.d.ts +22 -0
- package/dist/networth/NetWorthWidget.d.ts +1 -1
- package/dist/networth/components/AssetsLiabilitiesDetail.d.ts +1 -1
- package/dist/networth/components/GainsLossesDetail.d.ts +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -1
- package/dist/networth/components/NetWorthListItem.d.ts +1 -1
- package/dist/networth/components/NetWorthSummary.d.ts +1 -1
- package/dist/networth/components/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.d.ts +0 -4
- package/dist/networth/index.es.js +302 -314
- package/dist/notifications/components/NotificationBadge.d.ts +1 -1
- package/dist/notifications/components/NotificationCard.d.ts +1 -1
- package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
- package/dist/notifications/components/NotificationList.d.ts +2 -1
- package/dist/notifications/index.d.ts +0 -2
- package/dist/notifications/index.es.js +101 -93
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +2 -2
- package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
- package/dist/recurringtransactions/index.d.ts +0 -1
- package/dist/recurringtransactions/index.es.js +489 -462
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +2 -2
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
- package/dist/settings/components/devices/DeviceList.d.ts +1 -1
- package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
- package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
- package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
- package/dist/settings/index.d.ts +0 -2
- package/dist/settings/index.es.js +419 -430
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +229 -222
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +3 -4
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +17 -0
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/ExcludeAction.d.ts +7 -0
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +2 -1
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
- package/dist/transactions/components/shared/transactiontable/cells/PayeeCell.d.ts +4 -1
- package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
- package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
- package/dist/transactions/constants/Actions.d.ts +4 -3
- package/dist/transactions/context/hooks.d.ts +1 -1
- package/dist/transactions/index.d.ts +0 -5
- package/dist/transactions/index.es.js +344 -351
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +17 -1
- package/dist/trends/TrendsFullWidget.d.ts +1 -1
- package/dist/trends/TrendsMiniWidget.d.ts +1 -1
- package/dist/trends/TrendsWidget.d.ts +1 -1
- package/dist/trends/components/CategoriesList.d.ts +1 -1
- package/dist/trends/components/CategoriesListItem.d.ts +1 -1
- package/dist/trends/components/CategoryDetails.d.ts +3 -0
- package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
- package/dist/trends/components/TrendsInsights.d.ts +1 -1
- package/dist/trends/components/{TrendsTable.d.ts → TrendsTableContainer.d.ts} +2 -2
- package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +12 -0
- package/dist/trends/index.d.ts +0 -1
- package/dist/trends/index.es.js +987 -874
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +5 -3
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +2 -2
- package/dist/{useAccountDisplayName-DbkgGLdg.mjs → useAccountDisplayName-CFa_MrS6.mjs} +5 -5
- package/dist/{useAriaLive-B3_pRUio.mjs → useAriaLive-MkYebyUR.mjs} +4 -4
- package/dist/{useDimensions-27p2evRx.mjs → useDimensions-CeDR9V8N.mjs} +6 -6
- package/dist/{useInsightsEnabled-dhmXeSyF.mjs → useInsightsEnabled-DaNLPmUU.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-mWpmnh5w.mjs} +3 -3
- package/dist/{useWidgetLoadTimer-CrUzxN-P.mjs → useWidgetLoadTimer-CJb-RELP.mjs} +1 -1
- package/package.json +65 -43
- package/dist/AccountApi-DgZ8ILj1.mjs +0 -19
- package/dist/AccountDetailsHeader-BOV91g1o.mjs +0 -95
- package/dist/AccountFields-BRRH37K1.mjs +0 -140
- package/dist/AccountListItem-Ds5C0mOT.mjs +0 -90
- package/dist/AccountStore-BFKvXJSD.mjs +0 -244
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BeatApi-De2IaqH2.mjs +0 -21
- package/dist/BeatStore-D_NYuBSz.mjs +0 -81
- package/dist/BudgetUtil-CDSOZXem.mjs +0 -101
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CategoryStore-DEqAnHbi.mjs +0 -186
- package/dist/CategoryUtil-CFHBvaV4.mjs +0 -80
- package/dist/CurrencyInput-DDQ4DBrE.mjs +0 -85
- package/dist/DateUtil-CVsMhbZU.mjs +0 -48
- package/dist/DebtsStore-Dv_T7Dts.mjs +0 -63
- package/dist/Dialog-CWymUiuO.mjs +0 -120
- package/dist/Donut-Dmy3JTWd.mjs +0 -86
- package/dist/Fetch-DecPFeGU.mjs +0 -119
- package/dist/FinstrongStore-BjFkMTIL.mjs +0 -451
- package/dist/GlobalAccountFilter-BpWlPAl5.mjs +0 -316
- package/dist/GoalStore-Dbjgft2i.mjs +0 -422
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-DHj-Bufi.mjs +0 -580
- package/dist/Loader-BSWSYqvn.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/ManageIncome-DIIyqDTp.mjs +0 -585
- package/dist/MerchantStore-WvZ4gnQe.mjs +0 -37
- package/dist/MiniWidgetContainer-DKn7ndO6.mjs +0 -56
- package/dist/NetWorthStore-B6ziBtaH.mjs +0 -168
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/NotificationStore-Ck2KdNmT.mjs +0 -79
- package/dist/OriginalBalanceAction-DFoG79Ba.mjs +0 -115
- package/dist/RecurringTransactionsStore-D_--5PWH.mjs +0 -277
- package/dist/RepeatingTransaction-C2txVA9O.mjs +0 -292
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SettingsStore-CInvh-rQ.mjs +0 -269
- package/dist/SpendingLegend-BxefXiQd.mjs +0 -193
- package/dist/TransactionApi-CjBoLleL.mjs +0 -86
- package/dist/TransactionDetails-CPwv9xtZ.mjs +0 -1374
- package/dist/TransactionStore-D2aMUClq.mjs +0 -688
- package/dist/TrendsStore-BdsYfCc7.mjs +0 -183
- package/dist/User-CulNdZUr.mjs +0 -314
- package/dist/ViewMoreMicroCard-CDWR16_h.mjs +0 -1147
- package/dist/WidgetContainer-mzejMmz2.mjs +0 -555
- package/dist/accounts/stores/UiStore.d.ts +0 -10
- package/dist/accounts/utils/index.d.ts +0 -1
- package/dist/cashflow/api/CashflowApi.d.ts +0 -13
- package/dist/cashflow/stores/CashflowStore.d.ts +0 -8
- package/dist/categories/stores/UiStore.d.ts +0 -20
- package/dist/common/api/LocalizedCopyApi.d.ts +0 -8
- package/dist/common/api/index.d.ts +0 -10
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/stores/index.d.ts +0 -3
- package/dist/common/types/SpendingPlan.d.ts +0 -44
- package/dist/common/utils/Categories.d.ts +0 -6
- package/dist/debts/store/DebtsStore.d.ts +0 -9
- package/dist/debts/store/DebtsUiStore.d.ts +0 -13
- package/dist/debts/utils/DebtStore.d.ts +0 -4
- package/dist/debts/utils/DebtsWidget.d.ts +0 -14
- package/dist/debts/utils/shared.d.ts +0 -12
- package/dist/exportTransactionsToCSV-BU1jTY0Q.mjs +0 -48
- package/dist/help/constants/index.d.ts +0 -1
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +0 -3
- package/dist/transactions/analytics.d.ts +0 -3
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +0 -7
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/transactions/constants/Transaction.d.ts +0 -2
- package/dist/transactions/constants/TransactionsTable.d.ts +0 -17
- package/dist/transactions/stores/UiStore.d.ts +0 -25
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +0 -9
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +0 -3
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- package/dist/useCombineEvents-CRwX-qWE.mjs +0 -92
- package/dist/{common → core}/constants/Category.d.ts +0 -0
- package/dist/{common → core}/constants/DateFormats.d.ts +0 -0
- package/dist/{debts/constants/index.d.ts → core/constants/Debts.d.ts} +0 -0
- package/dist/{help → core}/constants/Help.d.ts +0 -0
- package/dist/{investments/constants/index.d.ts → core/constants/Investments.d.ts} +0 -0
- package/dist/{common → core}/constants/Numbers.d.ts +0 -0
- package/dist/{common → core}/constants/Table.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalCopyStore.d.ts +0 -0
- package/dist/{common → core}/stores/GlobalUiStore.d.ts +0 -0
- package/dist/{common → core}/stores/UserStore.d.ts +1 -1
- /package/dist/{common → core}/types/Account.d.ts +0 -0
- /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
- /package/dist/{common → core}/types/Category.d.ts +0 -0
- /package/dist/{common → core}/types/Date.d.ts +0 -0
- /package/dist/{common → core}/types/Debt.d.ts +0 -0
- /package/dist/{common → core}/types/Global.d.ts +0 -0
- /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
- /package/dist/{common → core}/types/Goal.d.ts +0 -0
- /package/dist/{common → core}/types/Handlers.d.ts +0 -0
- /package/dist/{common → core}/types/Help.d.ts +0 -0
- /package/dist/{common → core}/types/Holding.d.ts +0 -0
- /package/dist/{common → core}/types/Institution.d.ts +0 -0
- /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
- /package/dist/{common → core}/types/Merchant.d.ts +0 -0
- /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
- /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
- /package/dist/{common → core}/types/Transaction.d.ts +0 -0
- /package/dist/{common → core}/types/User.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
- /package/dist/{common → core}/utils/DateUtil.d.ts +0 -0
- /package/dist/{common → core}/utils/Fetch.d.ts +0 -0
- /package/dist/{common/utils/User.d.ts → core/utils/UserUtils.d.ts} +0 -0
|
@@ -1,148 +1,146 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import { addMonths as
|
|
5
|
-
import { startOfToday as
|
|
6
|
-
import
|
|
1
|
+
import { jsxs as n, Fragment as j, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import h, { useState as V } from "react";
|
|
3
|
+
import { observer as A } from "mobx-react-lite";
|
|
4
|
+
import { addMonths as Ye } from "date-fns/addMonths";
|
|
5
|
+
import { startOfToday as F } from "date-fns/startOfToday";
|
|
6
|
+
import I from "@mui/material/Box";
|
|
7
7
|
import v from "@mui/material/Divider";
|
|
8
8
|
import s from "@mui/material/Stack";
|
|
9
|
-
import
|
|
10
|
-
import { Text as m, P as
|
|
11
|
-
import {
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import tt from "@mui/material/Tabs";
|
|
9
|
+
import { useTheme as ie, alpha as qe, keyframes as Ke } from "@mui/material/styles";
|
|
10
|
+
import { Text as m, P as k, Icon as z, InstitutionLogo as xe, H2 as de, H3 as Ve } from "@mxenabled/mxui";
|
|
11
|
+
import { b as H } from "../Localization-DnoVyBNK.mjs";
|
|
12
|
+
import { G as Xe, p as me, u as L, D as ae, d as Le, b as P, i as B, g as Ne, a as Je, h as ke, C as Qe } from "../hooks-BaO_gOI6.mjs";
|
|
13
|
+
import { C as E } from "../CurrencyText-CCbE6MmF.mjs";
|
|
14
|
+
import { u as ue } from "../useScreenSize-mWpmnh5w.mjs";
|
|
15
|
+
import { L as Z } from "../Loader-CxeBwuPG.mjs";
|
|
16
|
+
import { I as pe } from "../InformationTooltip-4su8bn1e.mjs";
|
|
17
|
+
import { u as Oe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
18
|
+
import { M as Ze } from "../MiniWidgetContainer-BdPiUU-u.mjs";
|
|
19
|
+
import { E as et } from "../EmptyState-CJUDc3kD.mjs";
|
|
20
|
+
import { R as tt } from "../RecurringSettings-cm6MK_aS.mjs";
|
|
21
|
+
import nt from "@mui/material/Tabs";
|
|
23
22
|
import ye from "@mui/material/Tab";
|
|
24
|
-
import { getUnixTime as
|
|
25
|
-
import
|
|
23
|
+
import { getUnixTime as le } from "date-fns/getUnixTime";
|
|
24
|
+
import Q from "@mui/material/List";
|
|
26
25
|
import ee from "@mui/material/ListItem";
|
|
27
|
-
import { A as
|
|
28
|
-
import { f as
|
|
29
|
-
import
|
|
30
|
-
import { f as
|
|
31
|
-
import { isAfter as
|
|
32
|
-
import { isBefore as
|
|
33
|
-
import { isToday as
|
|
34
|
-
import { addDays as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import
|
|
38
|
-
import M from "
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { A as
|
|
45
|
-
import { formatISO as
|
|
26
|
+
import { A as ot } from "../AccountListItem-BDXHs4tV.mjs";
|
|
27
|
+
import { f as U, D as Y } from "../DateFormats-HudZ3Bjs.mjs";
|
|
28
|
+
import it from "@mui/material/ListSubheader";
|
|
29
|
+
import { f as J } from "../NumberFormatting--XMeeBfr.mjs";
|
|
30
|
+
import { isAfter as Ge } from "date-fns/isAfter";
|
|
31
|
+
import { isBefore as Me } from "date-fns/isBefore";
|
|
32
|
+
import { isToday as Fe } from "date-fns/isToday";
|
|
33
|
+
import { addDays as _e } from "date-fns/addDays";
|
|
34
|
+
import { DataGridPro as at } from "@mui/x-data-grid-pro";
|
|
35
|
+
import { T as Ce } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
36
|
+
import W from "@mui/material/Button";
|
|
37
|
+
import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-B1JfqslT.mjs";
|
|
38
|
+
import { D as He } from "../Drawer-BXqqBMxg.mjs";
|
|
39
|
+
import { subDays as We } from "date-fns/subDays";
|
|
40
|
+
import { endOfToday as dt } from "date-fns/endOfToday";
|
|
41
|
+
import { W as mt } from "../WidgetContainer-DNuz_s7W.mjs";
|
|
42
|
+
import { A as X } from "../Account-BaJmiJAG.mjs";
|
|
43
|
+
import { A as Se } from "../Analytics-CzGzz_sE.mjs";
|
|
44
|
+
import { formatISO as ut } from "date-fns/formatISO";
|
|
46
45
|
import { fromUnixTime as De } from "date-fns/fromUnixTime";
|
|
47
46
|
import { startOfMonth as pt } from "date-fns/startOfMonth";
|
|
48
|
-
import { S as
|
|
49
|
-
import { F as
|
|
50
|
-
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
if (!p.useContext(Ye))
|
|
47
|
+
import { S as ht, a as ft } from "../EmbeddedCard-DPwJjqMH.mjs";
|
|
48
|
+
import { F as gt, R as Ie, c as ve } from "../RecurringTransactionsUtil-B3rLEx_g.mjs";
|
|
49
|
+
import { i as bt } from "../DateUtil-Bhq59ZVg.mjs";
|
|
50
|
+
const q = () => {
|
|
51
|
+
if (!h.useContext(Xe))
|
|
54
52
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
55
53
|
return me().uiStore;
|
|
56
|
-
},
|
|
57
|
-
const { cashflow:
|
|
58
|
-
return /* @__PURE__ */
|
|
54
|
+
}, xt = ({ remaining: i }) => {
|
|
55
|
+
const { cashflow: o } = L();
|
|
56
|
+
return /* @__PURE__ */ n(j, { children: [
|
|
59
57
|
/* @__PURE__ */ e(
|
|
60
|
-
|
|
58
|
+
I,
|
|
61
59
|
{
|
|
62
60
|
sx: {
|
|
63
61
|
borderRadius: "1px",
|
|
64
|
-
backgroundColor:
|
|
62
|
+
backgroundColor: i < 0 ? "error.main" : i > 0 ? "success.main" : "warning.main",
|
|
65
63
|
height: 6,
|
|
66
64
|
width: 6
|
|
67
65
|
}
|
|
68
66
|
}
|
|
69
67
|
),
|
|
70
|
-
/* @__PURE__ */ e(m, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children:
|
|
71
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(m, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: o.remaining_cash }),
|
|
69
|
+
/* @__PURE__ */ e(E, { amount: i, bold: !0, sx: { fontSize: 12 } })
|
|
72
70
|
] });
|
|
73
|
-
},
|
|
74
|
-
const
|
|
71
|
+
}, he = A(xt), yt = () => {
|
|
72
|
+
const i = ie(), { availableWidth: o } = ae(), { isMobile: t } = ue(), { visibleCashAccounts: r, visibleCashBalance: f } = Le(), { selectedAccountGuids: u } = P(), { cashflow: c } = L(), {
|
|
75
73
|
daysUntilNextIncome: l,
|
|
76
|
-
expensesTilNextIncome:
|
|
77
|
-
selectedCashAccounts:
|
|
78
|
-
setNextIncome:
|
|
74
|
+
expensesTilNextIncome: b,
|
|
75
|
+
selectedCashAccounts: a,
|
|
76
|
+
setNextIncome: g,
|
|
79
77
|
setSelectedCashAccounts: d,
|
|
80
78
|
setUpcomingExpenses: x
|
|
81
|
-
} =
|
|
82
|
-
|
|
79
|
+
} = q(), { isDataLoaded: C, nextIncomeRecurrence: w, upcomingExpenses: R } = B();
|
|
80
|
+
h.useEffect(() => {
|
|
83
81
|
d(
|
|
84
|
-
|
|
82
|
+
r.filter((_) => u.includes(_.guid))
|
|
85
83
|
);
|
|
86
|
-
}, [
|
|
87
|
-
w &&
|
|
88
|
-
}, [w,
|
|
89
|
-
const
|
|
90
|
-
() =>
|
|
91
|
-
[u,
|
|
92
|
-
),
|
|
93
|
-
() =>
|
|
94
|
-
[u,
|
|
95
|
-
),
|
|
96
|
-
() =>
|
|
97
|
-
[
|
|
84
|
+
}, [r, u]), h.useEffect(() => {
|
|
85
|
+
w && g(w), x(R);
|
|
86
|
+
}, [w, R]);
|
|
87
|
+
const D = h.useMemo(
|
|
88
|
+
() => r.filter((_) => u.includes(_.guid)).reduce((_, S) => _ + (S?.balance || 0), 0),
|
|
89
|
+
[u, R]
|
|
90
|
+
), N = h.useMemo(
|
|
91
|
+
() => b.filter((_) => u.includes(_.accountGuid || "")).reduce((_, S) => _ + S.amount, 0),
|
|
92
|
+
[u, b]
|
|
93
|
+
), p = h.useMemo(
|
|
94
|
+
() => D - N,
|
|
95
|
+
[D, N]
|
|
98
96
|
);
|
|
99
|
-
return
|
|
97
|
+
return C ? /* @__PURE__ */ e(I, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: o > 710 ? /* @__PURE__ */ n(
|
|
100
98
|
s,
|
|
101
99
|
{
|
|
102
|
-
border: `1px solid ${
|
|
100
|
+
border: `1px solid ${i.palette.divider}`,
|
|
103
101
|
borderRadius: 1,
|
|
104
102
|
direction: "row",
|
|
105
103
|
justifyContent: "space-between",
|
|
106
104
|
px: 24,
|
|
107
105
|
children: [
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */ e(
|
|
110
|
-
/* @__PURE__ */ e(
|
|
106
|
+
/* @__PURE__ */ n(s, { pb: 14, pt: 12, children: [
|
|
107
|
+
/* @__PURE__ */ e(E, { amount: D, variant: "h2" }),
|
|
108
|
+
/* @__PURE__ */ e(k, { variant: "caption", whiteSpace: "nowrap", children: H(
|
|
111
109
|
c.total_cash_accounts,
|
|
112
|
-
|
|
110
|
+
a.length
|
|
113
111
|
) })
|
|
114
112
|
] }),
|
|
115
|
-
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
-
/* @__PURE__ */ e(
|
|
113
|
+
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(z, { name: "remove" }) }),
|
|
114
|
+
/* @__PURE__ */ n(s, { pb: 14, pt: 12, children: [
|
|
115
|
+
/* @__PURE__ */ e(E, { amount: N, variant: "h2" }),
|
|
116
|
+
/* @__PURE__ */ e(k, { variant: "caption", whiteSpace: "nowrap", children: H(c.expenses_due, b.length) })
|
|
119
117
|
] }),
|
|
120
|
-
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */ e(
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
/* @__PURE__ */ e(
|
|
125
|
-
/* @__PURE__ */ e(
|
|
118
|
+
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(z, { name: "equal" }) }),
|
|
119
|
+
/* @__PURE__ */ n(s, { pb: 14, pr: 24, pt: 12, children: [
|
|
120
|
+
/* @__PURE__ */ e(E, { amount: p, variant: "h2" }),
|
|
121
|
+
/* @__PURE__ */ n(s, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
122
|
+
/* @__PURE__ */ e(k, { variant: "caption", whiteSpace: "nowrap", children: c.available_to_spend }),
|
|
123
|
+
/* @__PURE__ */ e(pe, { body: c.tooltip_body, title: c.tooltip_title })
|
|
126
124
|
] })
|
|
127
125
|
] }),
|
|
128
|
-
/* @__PURE__ */ e(s, { borderLeft: `1px solid ${
|
|
129
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
130
|
-
/* @__PURE__ */ e(
|
|
126
|
+
/* @__PURE__ */ e(s, { borderLeft: `1px solid ${i.palette.divider}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ n(j, { children: [
|
|
127
|
+
/* @__PURE__ */ e(m, { variant: "h2", children: H(c.days, l) }),
|
|
128
|
+
/* @__PURE__ */ e(k, { variant: "caption", whiteSpace: "nowrap", children: c.next_paycheck })
|
|
131
129
|
] }) })
|
|
132
130
|
]
|
|
133
131
|
}
|
|
134
|
-
) : /* @__PURE__ */
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
132
|
+
) : /* @__PURE__ */ n(s, { border: `1px solid ${i.palette.divider}`, borderRadius: 1, children: [
|
|
133
|
+
/* @__PURE__ */ n(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
134
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: H(
|
|
137
135
|
c.total_cash_accounts,
|
|
138
|
-
|
|
136
|
+
a.length
|
|
139
137
|
) }),
|
|
140
|
-
/* @__PURE__ */ e(
|
|
138
|
+
/* @__PURE__ */ e(E, { amount: f, bold: !0, variant: "caption" })
|
|
141
139
|
] }),
|
|
142
140
|
/* @__PURE__ */ e(v, {}),
|
|
143
|
-
/* @__PURE__ */
|
|
144
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
145
|
-
/* @__PURE__ */ e(
|
|
141
|
+
/* @__PURE__ */ n(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
142
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: H(c.expenses_due, b.length) }),
|
|
143
|
+
/* @__PURE__ */ e(E, { amount: N, bold: !0, symbol: "-", variant: "caption" })
|
|
146
144
|
] }),
|
|
147
145
|
/* @__PURE__ */ e(v, {}),
|
|
148
146
|
/* @__PURE__ */ e(
|
|
@@ -156,54 +154,55 @@ const V = () => {
|
|
|
156
154
|
justifyContent: "space-between",
|
|
157
155
|
px: 16,
|
|
158
156
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
159
|
-
children: /* @__PURE__ */ e(
|
|
157
|
+
children: /* @__PURE__ */ e(he, { remaining: p })
|
|
160
158
|
}
|
|
161
159
|
),
|
|
162
160
|
/* @__PURE__ */ e(v, {}),
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
165
|
-
/* @__PURE__ */ e(m, { bold: !0, variant: "
|
|
161
|
+
/* @__PURE__ */ n(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
162
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: c.next_paycheck }),
|
|
163
|
+
/* @__PURE__ */ e(m, { bold: !0, variant: "caption", children: H(c.days, l) })
|
|
166
164
|
] })
|
|
167
165
|
] }) }) : /* @__PURE__ */ e(Z, { height: t ? 210 : 120 });
|
|
168
|
-
},
|
|
169
|
-
onPrimaryCtaClick:
|
|
170
|
-
onSecondaryCtaClick:
|
|
166
|
+
}, _t = A(yt), Ct = ({
|
|
167
|
+
onPrimaryCtaClick: i,
|
|
168
|
+
onSecondaryCtaClick: o,
|
|
171
169
|
sx: t = {}
|
|
172
170
|
}) => {
|
|
173
|
-
const { cashflow:
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
const { cashflow: r } = L(), { isInitialized: f } = P(), { loadRepeatingTransactionData: u, income: c, isDataLoaded: l, setDateRange: b } = B();
|
|
172
|
+
h.useEffect(() => {
|
|
173
|
+
b({ start: F(), end: Ye(F(), 1) }), l || u().finally();
|
|
176
174
|
}, []), Oe({
|
|
177
175
|
widgetName: "CashflowMiniWidget",
|
|
178
176
|
isLoaded: l
|
|
179
177
|
});
|
|
180
|
-
const
|
|
181
|
-
return f ? /* @__PURE__ */
|
|
182
|
-
|
|
178
|
+
const a = l && !c.length;
|
|
179
|
+
return f ? /* @__PURE__ */ n(
|
|
180
|
+
Ze,
|
|
183
181
|
{
|
|
184
182
|
className: "mx-exp-cashflow-miniwidget",
|
|
185
|
-
onPrimaryCtaClick:
|
|
186
|
-
primaryCtaLabel:
|
|
187
|
-
|
|
183
|
+
onPrimaryCtaClick: i,
|
|
184
|
+
primaryCtaLabel: r.primary_cta,
|
|
185
|
+
primaryCtaLabelAria: r.primary_cta_aria,
|
|
186
|
+
subTitle: a || !l ? void 0 : r.sub_title,
|
|
188
187
|
sx: { height: "100%", ...t },
|
|
189
|
-
title:
|
|
188
|
+
title: r.title,
|
|
190
189
|
children: [
|
|
191
190
|
!l && /* @__PURE__ */ e(Z, {}),
|
|
192
|
-
l && (
|
|
193
|
-
|
|
191
|
+
l && (a ? /* @__PURE__ */ e(
|
|
192
|
+
et,
|
|
194
193
|
{
|
|
195
|
-
header:
|
|
194
|
+
header: r.create,
|
|
196
195
|
icon: "local_atm",
|
|
197
|
-
onClick:
|
|
198
|
-
primaryButton:
|
|
196
|
+
onClick: o,
|
|
197
|
+
primaryButton: r.add_income,
|
|
199
198
|
primaryButtonStartIcon: "add",
|
|
200
|
-
subText:
|
|
199
|
+
subText: r.create_description
|
|
201
200
|
}
|
|
202
|
-
) : /* @__PURE__ */ e(
|
|
201
|
+
) : /* @__PURE__ */ e(_t, {}))
|
|
203
202
|
]
|
|
204
203
|
}
|
|
205
204
|
) : /* @__PURE__ */ e(Z, {});
|
|
206
|
-
}, Mn =
|
|
205
|
+
}, Mn = A(Ct), wt = ({ remaining: i }) => /* @__PURE__ */ e(
|
|
207
206
|
ee,
|
|
208
207
|
{
|
|
209
208
|
sx: {
|
|
@@ -216,32 +215,32 @@ const V = () => {
|
|
|
216
215
|
borderBottomRightRadius: "3px",
|
|
217
216
|
minHeight: "auto"
|
|
218
217
|
},
|
|
219
|
-
children: /* @__PURE__ */ e(
|
|
218
|
+
children: /* @__PURE__ */ e(he, { remaining: i })
|
|
220
219
|
}
|
|
221
220
|
);
|
|
222
|
-
var te = /* @__PURE__ */ ((
|
|
223
|
-
const
|
|
224
|
-
/* @__PURE__ */
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children:
|
|
227
|
-
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children:
|
|
221
|
+
var te = /* @__PURE__ */ ((i) => (i.EXPENSE = "expense", i.INCOME = "income", i))(te || {});
|
|
222
|
+
const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
223
|
+
/* @__PURE__ */ n(ee, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
224
|
+
/* @__PURE__ */ n(s, { alignItems: "center", height: 32, width: 32, children: [
|
|
225
|
+
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: U(i.expectedDate, Y.MONTH) }),
|
|
226
|
+
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: U(i.expectedDate, Y.DAY) })
|
|
228
227
|
] }),
|
|
229
|
-
/* @__PURE__ */ e(m, { sx: { flexGrow: 1, fontSize: 13 }, children:
|
|
228
|
+
/* @__PURE__ */ e(m, { sx: { flexGrow: 1, fontSize: 13 }, children: i.name }),
|
|
230
229
|
/* @__PURE__ */ e(
|
|
231
|
-
|
|
230
|
+
E,
|
|
232
231
|
{
|
|
233
|
-
amount:
|
|
232
|
+
amount: i.amount,
|
|
234
233
|
bold: !0,
|
|
235
234
|
sx: { textAlign: "right", fontSize: 13 }
|
|
236
235
|
}
|
|
237
236
|
)
|
|
238
237
|
] }),
|
|
239
238
|
/* @__PURE__ */ e(v, {})
|
|
240
|
-
] }),
|
|
239
|
+
] }), Te = A(St), Dt = ({ total: i, type: o }) => {
|
|
241
240
|
const { cashflow: t } = L();
|
|
242
|
-
return /* @__PURE__ */
|
|
243
|
-
/* @__PURE__ */
|
|
244
|
-
|
|
241
|
+
return /* @__PURE__ */ n(j, { children: [
|
|
242
|
+
/* @__PURE__ */ n(
|
|
243
|
+
it,
|
|
245
244
|
{
|
|
246
245
|
sx: {
|
|
247
246
|
alignItems: "center",
|
|
@@ -253,50 +252,50 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
253
252
|
px: 24
|
|
254
253
|
},
|
|
255
254
|
children: [
|
|
256
|
-
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 12 }, children:
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
-
|
|
259
|
-
|
|
255
|
+
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 12 }, children: o === te.EXPENSE ? t.expenses : t.income }),
|
|
256
|
+
/* @__PURE__ */ n(m, { bold: !0, sx: { fontSize: 13 }, children: [
|
|
257
|
+
o === te.EXPENSE ? "-" : "+",
|
|
258
|
+
J(i, "0,0.00")
|
|
260
259
|
] })
|
|
261
260
|
]
|
|
262
261
|
}
|
|
263
262
|
),
|
|
264
263
|
/* @__PURE__ */ e(v, {})
|
|
265
264
|
] });
|
|
266
|
-
},
|
|
267
|
-
const { availableWidth:
|
|
268
|
-
return /* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
270
|
-
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 15, mb: 12
|
|
271
|
-
/* @__PURE__ */
|
|
272
|
-
|
|
265
|
+
}, Ae = A(Dt), oe = (i, o) => (t) => t.accountGuid === i.guid && (Fe(t.expectedDate) || Ge(t.expectedDate, o.start)) && Me(t.expectedDate, o.end), It = () => {
|
|
266
|
+
const { availableWidth: i } = ae(), { cashflow: o } = L(), { upcomingExpenses: t, upcomingIncome: r } = B(), { dateRange: f, selectedCashAccounts: u } = q();
|
|
267
|
+
return /* @__PURE__ */ n(s, { children: [
|
|
268
|
+
/* @__PURE__ */ n(s, { direction: i < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
269
|
+
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: o.accounts_breakdown }),
|
|
270
|
+
/* @__PURE__ */ n(m, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: [
|
|
271
|
+
U(f.start, Y.FULL_MONTH_DAY),
|
|
273
272
|
" -",
|
|
274
273
|
" ",
|
|
275
|
-
|
|
274
|
+
U(f.end, Y.FULL_MONTH_DAY)
|
|
276
275
|
] })
|
|
277
276
|
] }),
|
|
278
277
|
/* @__PURE__ */ e(s, { children: u.map((c) => {
|
|
279
|
-
const l =
|
|
280
|
-
|
|
281
|
-
),
|
|
278
|
+
const l = r.filter(oe(c, f)).sort((d, x) => le(d.expectedDate) - le(x.expectedDate)), b = t.filter(
|
|
279
|
+
oe(c, f)
|
|
280
|
+
), a = l.reduce(
|
|
282
281
|
(d, x) => d + x.amount,
|
|
283
282
|
0
|
|
284
|
-
),
|
|
283
|
+
), g = b.reduce(
|
|
285
284
|
(d, x) => d + x.amount,
|
|
286
285
|
0
|
|
287
286
|
);
|
|
288
|
-
return /* @__PURE__ */
|
|
289
|
-
|
|
287
|
+
return /* @__PURE__ */ n(
|
|
288
|
+
Q,
|
|
290
289
|
{
|
|
291
290
|
sx: {
|
|
292
291
|
border: "1px solid",
|
|
293
|
-
borderColor: "
|
|
292
|
+
borderColor: "neutral.light",
|
|
294
293
|
mb: 24,
|
|
295
294
|
borderRadius: 1
|
|
296
295
|
},
|
|
297
296
|
children: [
|
|
298
297
|
/* @__PURE__ */ e(
|
|
299
|
-
|
|
298
|
+
ot,
|
|
300
299
|
{
|
|
301
300
|
account: c,
|
|
302
301
|
listItemProps: {
|
|
@@ -308,25 +307,25 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
308
307
|
),
|
|
309
308
|
/* @__PURE__ */ e(v, {}),
|
|
310
309
|
l.length > 0 && /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(
|
|
311
|
-
|
|
310
|
+
Q,
|
|
312
311
|
{
|
|
313
|
-
subheader: /* @__PURE__ */ e(
|
|
312
|
+
subheader: /* @__PURE__ */ e(Ae, { total: a, type: te.INCOME }),
|
|
314
313
|
sx: { width: "100%" },
|
|
315
|
-
children: l.map((d) => /* @__PURE__ */ e(
|
|
314
|
+
children: l.map((d) => /* @__PURE__ */ e(Te, { recurrence: d }, d.repeatingTransactionGuid))
|
|
316
315
|
}
|
|
317
316
|
) }),
|
|
318
|
-
|
|
319
|
-
|
|
317
|
+
b.length > 0 && /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(
|
|
318
|
+
Q,
|
|
320
319
|
{
|
|
321
|
-
subheader: /* @__PURE__ */ e(
|
|
320
|
+
subheader: /* @__PURE__ */ e(Ae, { total: g, type: te.EXPENSE }),
|
|
322
321
|
sx: { width: "100%" },
|
|
323
|
-
children:
|
|
322
|
+
children: b.map((d) => /* @__PURE__ */ e(Te, { recurrence: d }, d.repeatingTransactionGuid))
|
|
324
323
|
}
|
|
325
324
|
) }),
|
|
326
325
|
/* @__PURE__ */ e(
|
|
327
|
-
|
|
326
|
+
wt,
|
|
328
327
|
{
|
|
329
|
-
remaining: (c.available_balance || c.balance || 0) +
|
|
328
|
+
remaining: (c.available_balance || c.balance || 0) + a - g
|
|
330
329
|
}
|
|
331
330
|
)
|
|
332
331
|
]
|
|
@@ -335,24 +334,24 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
335
334
|
);
|
|
336
335
|
}) })
|
|
337
336
|
] });
|
|
338
|
-
},
|
|
339
|
-
const { availableWidth:
|
|
337
|
+
}, vt = A(It), Tt = () => {
|
|
338
|
+
const { availableWidth: i } = ae(), o = ie(), { cashflow: t } = L(), { upcomingExpenses: r, upcomingIncome: f } = B(), { dateRange: u, selectedCashAccounts: c } = q(), l = [
|
|
340
339
|
{
|
|
341
340
|
field: "account",
|
|
342
341
|
flex: 1.5,
|
|
343
342
|
headerName: t.accounts,
|
|
344
|
-
renderCell: ({ value: { name:
|
|
345
|
-
const
|
|
346
|
-
return /* @__PURE__ */
|
|
343
|
+
renderCell: ({ value: { name: a, nickname: g, institution_guid: d, account_number: x } }) => {
|
|
344
|
+
const C = g || a;
|
|
345
|
+
return /* @__PURE__ */ n(s, { alignItems: "center", flexDirection: "row", gap: 12, children: [
|
|
347
346
|
/* @__PURE__ */ e(
|
|
348
|
-
|
|
347
|
+
xe,
|
|
349
348
|
{
|
|
350
349
|
alt: t.institution_logo,
|
|
351
350
|
institutionGuid: d || "",
|
|
352
351
|
size: 16
|
|
353
352
|
}
|
|
354
353
|
),
|
|
355
|
-
/* @__PURE__ */ e(m, { variant: "body2", children: `${
|
|
354
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: `${C} ${x ? `*${x}` : ""}` })
|
|
356
355
|
] });
|
|
357
356
|
}
|
|
358
357
|
},
|
|
@@ -361,99 +360,98 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
361
360
|
flex: 1,
|
|
362
361
|
headerName: t.balance,
|
|
363
362
|
type: "number",
|
|
364
|
-
renderCell: (
|
|
363
|
+
renderCell: (a) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: J(a.value, "0,0.00") })
|
|
365
364
|
},
|
|
366
365
|
{
|
|
367
366
|
field: "income",
|
|
368
367
|
flex: 1,
|
|
369
368
|
headerName: t.projected_income,
|
|
370
369
|
type: "number",
|
|
371
|
-
renderCell: (
|
|
370
|
+
renderCell: (a) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: `+${J(a.value, "0,0.00")}` })
|
|
372
371
|
},
|
|
373
372
|
{
|
|
374
373
|
field: "expenses",
|
|
375
374
|
flex: 1.1,
|
|
376
375
|
headerName: t.projected_expenses,
|
|
377
376
|
type: "number",
|
|
378
|
-
renderCell: (
|
|
377
|
+
renderCell: (a) => /* @__PURE__ */ e(m, { color: o.palette.text.primary, variant: "body2", children: `-${J(a.value, "0,0.00")}` })
|
|
379
378
|
},
|
|
380
379
|
{
|
|
381
380
|
field: "remaining",
|
|
382
381
|
flex: 1,
|
|
383
382
|
headerName: t.remaining,
|
|
384
383
|
type: "number",
|
|
385
|
-
renderCell: (
|
|
386
|
-
const
|
|
384
|
+
renderCell: (a) => {
|
|
385
|
+
const g = a.row.balance + a.row.income - a.row.expenses;
|
|
387
386
|
return /* @__PURE__ */ e(
|
|
388
387
|
m,
|
|
389
388
|
{
|
|
390
|
-
color: Math.sign(
|
|
391
|
-
variant: "
|
|
392
|
-
children:
|
|
389
|
+
color: Math.sign(g) === -1 ? o.palette.error.main : o.palette.text.primary,
|
|
390
|
+
variant: "body2",
|
|
391
|
+
children: J(g, "0,0.00")
|
|
393
392
|
}
|
|
394
393
|
);
|
|
395
394
|
}
|
|
396
395
|
}
|
|
397
|
-
],
|
|
398
|
-
const
|
|
399
|
-
|
|
400
|
-
).reduce((
|
|
401
|
-
|
|
402
|
-
).reduce((
|
|
396
|
+
], b = h.useMemo(() => c.map((a) => {
|
|
397
|
+
const g = r.filter(
|
|
398
|
+
oe(a, { start: F(), end: _e(F(), 30) })
|
|
399
|
+
).reduce((C, w) => C + w.amount, 0), d = f.filter(
|
|
400
|
+
oe(a, { start: F(), end: _e(F(), 30) })
|
|
401
|
+
).reduce((C, w) => C + w.amount, 0), x = (a.balance || 0) + d - g;
|
|
403
402
|
return {
|
|
404
|
-
account:
|
|
405
|
-
balance:
|
|
406
|
-
id:
|
|
403
|
+
account: a,
|
|
404
|
+
balance: a.balance || 0,
|
|
405
|
+
id: a.guid,
|
|
407
406
|
income: d,
|
|
408
|
-
expenses:
|
|
407
|
+
expenses: g,
|
|
409
408
|
remaining: x
|
|
410
409
|
};
|
|
411
|
-
}), [c,
|
|
412
|
-
return /* @__PURE__ */
|
|
413
|
-
|
|
410
|
+
}), [c, r, f]);
|
|
411
|
+
return /* @__PURE__ */ n(
|
|
412
|
+
I,
|
|
414
413
|
{
|
|
415
414
|
sx: {
|
|
416
415
|
width: "100%"
|
|
417
416
|
},
|
|
418
417
|
children: [
|
|
419
|
-
/* @__PURE__ */
|
|
418
|
+
/* @__PURE__ */ n(
|
|
420
419
|
s,
|
|
421
420
|
{
|
|
422
|
-
direction:
|
|
421
|
+
direction: i < 540 ? "column" : "row",
|
|
423
422
|
justifyContent: "space-between",
|
|
424
423
|
mb: 12,
|
|
425
424
|
children: [
|
|
426
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ n(s, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
427
426
|
/* @__PURE__ */ e(
|
|
428
427
|
m,
|
|
429
428
|
{
|
|
430
429
|
bold: !0,
|
|
431
430
|
sx: {
|
|
432
|
-
fontSize: 15
|
|
433
|
-
whiteSpace: "normal"
|
|
431
|
+
fontSize: 15
|
|
434
432
|
},
|
|
435
433
|
children: t.cash_inflow_and_outflow
|
|
436
434
|
}
|
|
437
435
|
),
|
|
438
436
|
/* @__PURE__ */ e(
|
|
439
|
-
|
|
437
|
+
pe,
|
|
440
438
|
{
|
|
441
439
|
body: t.table_tooltip_body,
|
|
442
440
|
title: t.table_tooltip_title
|
|
443
441
|
}
|
|
444
442
|
)
|
|
445
443
|
] }),
|
|
446
|
-
/* @__PURE__ */
|
|
447
|
-
|
|
444
|
+
/* @__PURE__ */ n(m, { bold: !0, sx: { fontSize: 15 }, children: [
|
|
445
|
+
U(u.start, Y.FULL_MONTH_DAY),
|
|
448
446
|
" -",
|
|
449
447
|
" ",
|
|
450
|
-
|
|
448
|
+
U(u.end, Y.FULL_MONTH_DAY)
|
|
451
449
|
] })
|
|
452
450
|
]
|
|
453
451
|
}
|
|
454
452
|
),
|
|
455
|
-
|
|
456
|
-
|
|
453
|
+
i > 650 ? /* @__PURE__ */ e(
|
|
454
|
+
at,
|
|
457
455
|
{
|
|
458
456
|
columnHeaderHeight: 48,
|
|
459
457
|
columns: l,
|
|
@@ -462,39 +460,39 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
462
460
|
disableRowSelectionOnClick: !0,
|
|
463
461
|
hideFooter: !0,
|
|
464
462
|
rowHeight: 48,
|
|
465
|
-
rows:
|
|
463
|
+
rows: b,
|
|
466
464
|
sx: {
|
|
467
465
|
border: "1px solid",
|
|
468
|
-
borderColor: "
|
|
466
|
+
borderColor: "neutral.light",
|
|
469
467
|
borderRadius: 1,
|
|
470
468
|
"& .MuiDataGrid-columnHeader .MuiIconButton-root": {
|
|
471
|
-
color:
|
|
469
|
+
color: o.palette.primary.main,
|
|
472
470
|
"&:hover": {
|
|
473
|
-
backgroundColor:
|
|
471
|
+
backgroundColor: qe(o.palette.primary.main, 0.1)
|
|
474
472
|
}
|
|
475
473
|
},
|
|
476
474
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
477
|
-
fontFamily:
|
|
478
|
-
fontSize:
|
|
475
|
+
fontFamily: o.typography.h3.fontFamily,
|
|
476
|
+
fontSize: o.typography.body2.fontSize
|
|
479
477
|
},
|
|
480
478
|
"& .MuiDataGrid-sortIcon": {
|
|
481
|
-
color:
|
|
479
|
+
color: o.palette.primary.main
|
|
482
480
|
}
|
|
483
481
|
}
|
|
484
482
|
}
|
|
485
|
-
) :
|
|
486
|
-
const { name:
|
|
483
|
+
) : b.map((a) => {
|
|
484
|
+
const { name: g, nickname: d, institution_guid: x, account_number: C } = a.account, w = d || g;
|
|
487
485
|
return /* @__PURE__ */ e(
|
|
488
|
-
|
|
486
|
+
Q,
|
|
489
487
|
{
|
|
490
488
|
sx: {
|
|
491
489
|
border: "1px solid",
|
|
492
|
-
borderColor: "
|
|
490
|
+
borderColor: "neutral.light",
|
|
493
491
|
borderRadius: 1,
|
|
494
492
|
marginBottom: 24
|
|
495
493
|
},
|
|
496
|
-
children: /* @__PURE__ */ e(ee, { sx: { minHeight: "auto" }, children: /* @__PURE__ */
|
|
497
|
-
/* @__PURE__ */
|
|
494
|
+
children: /* @__PURE__ */ e(ee, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ n(s, { width: "100%", children: [
|
|
495
|
+
/* @__PURE__ */ n(
|
|
498
496
|
s,
|
|
499
497
|
{
|
|
500
498
|
alignItems: "center",
|
|
@@ -503,23 +501,23 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
503
501
|
px: 16,
|
|
504
502
|
py: 12,
|
|
505
503
|
children: [
|
|
506
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ n(s, { alignItems: "center", flexDirection: "row", gap: 8, width: "50%", children: [
|
|
507
505
|
/* @__PURE__ */ e(
|
|
508
|
-
|
|
506
|
+
xe,
|
|
509
507
|
{
|
|
510
508
|
alt: t.institution_logo,
|
|
511
509
|
institutionGuid: x || "",
|
|
512
510
|
size: 16
|
|
513
511
|
}
|
|
514
512
|
),
|
|
515
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
513
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: `${w} ${C ? `*${C}` : ""}` })
|
|
516
514
|
] }),
|
|
517
|
-
/* @__PURE__ */ e(
|
|
515
|
+
/* @__PURE__ */ e(E, { amount: a.balance, bold: !0, variant: "body2" })
|
|
518
516
|
]
|
|
519
517
|
}
|
|
520
518
|
),
|
|
521
519
|
/* @__PURE__ */ e(v, { sx: { width: "100%" } }),
|
|
522
|
-
/* @__PURE__ */
|
|
520
|
+
/* @__PURE__ */ n(
|
|
523
521
|
s,
|
|
524
522
|
{
|
|
525
523
|
alignItems: "center",
|
|
@@ -528,13 +526,13 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
528
526
|
px: 16,
|
|
529
527
|
py: 12,
|
|
530
528
|
children: [
|
|
531
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
532
|
-
/* @__PURE__ */ e(
|
|
529
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: t.projected_income }),
|
|
530
|
+
/* @__PURE__ */ e(E, { amount: a.income, bold: !0, symbol: "+", variant: "body2" })
|
|
533
531
|
]
|
|
534
532
|
}
|
|
535
533
|
),
|
|
536
534
|
/* @__PURE__ */ e(v, { sx: { width: "100%" } }),
|
|
537
|
-
/* @__PURE__ */
|
|
535
|
+
/* @__PURE__ */ n(
|
|
538
536
|
s,
|
|
539
537
|
{
|
|
540
538
|
alignItems: "center",
|
|
@@ -543,8 +541,8 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
543
541
|
px: 16,
|
|
544
542
|
py: 12,
|
|
545
543
|
children: [
|
|
546
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
547
|
-
/* @__PURE__ */ e(
|
|
544
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: t.projected_expenses }),
|
|
545
|
+
/* @__PURE__ */ e(E, { amount: a.expenses, bold: !0, symbol: "-", variant: "body2" })
|
|
548
546
|
]
|
|
549
547
|
}
|
|
550
548
|
),
|
|
@@ -560,32 +558,32 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
560
558
|
px: 16,
|
|
561
559
|
py: 12,
|
|
562
560
|
sx: { borderBottomLeftRadius: "4px", borderBottomRightRadius: "4px" },
|
|
563
|
-
children: /* @__PURE__ */ e(
|
|
561
|
+
children: /* @__PURE__ */ e(he, { remaining: a.remaining })
|
|
564
562
|
}
|
|
565
563
|
)
|
|
566
564
|
] }) })
|
|
567
565
|
},
|
|
568
|
-
|
|
566
|
+
a.id
|
|
569
567
|
);
|
|
570
568
|
})
|
|
571
569
|
]
|
|
572
570
|
}
|
|
573
571
|
);
|
|
574
|
-
},
|
|
575
|
-
const { cashflow:
|
|
572
|
+
}, At = A(Tt), Rt = () => {
|
|
573
|
+
const { cashflow: i } = L(), { isDesktop: o } = ue(), { onEvent: t } = Ne(), [r, f] = h.useState(0), u = (c, l) => {
|
|
576
574
|
f(l);
|
|
577
575
|
};
|
|
578
|
-
return
|
|
579
|
-
t(
|
|
580
|
-
}, [
|
|
581
|
-
/* @__PURE__ */
|
|
582
|
-
|
|
576
|
+
return h.useEffect(() => {
|
|
577
|
+
t(r === 0 ? "cash_flow_summary" : "cash_flow_details");
|
|
578
|
+
}, [r]), /* @__PURE__ */ n(I, { children: [
|
|
579
|
+
/* @__PURE__ */ n(
|
|
580
|
+
nt,
|
|
583
581
|
{
|
|
584
|
-
"aria-label":
|
|
582
|
+
"aria-label": i.cashflow_summary_and_details,
|
|
585
583
|
centered: !0,
|
|
586
584
|
onChange: u,
|
|
587
585
|
textColor: "primary",
|
|
588
|
-
value:
|
|
586
|
+
value: r,
|
|
589
587
|
variant: "fullWidth",
|
|
590
588
|
children: [
|
|
591
589
|
/* @__PURE__ */ e(
|
|
@@ -593,7 +591,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
593
591
|
{
|
|
594
592
|
"aria-controls": "cashflow-tabpanel-0",
|
|
595
593
|
id: "cashflow-tab-0",
|
|
596
|
-
label:
|
|
594
|
+
label: i.summary,
|
|
597
595
|
sx: {
|
|
598
596
|
textTransform: "none"
|
|
599
597
|
}
|
|
@@ -604,7 +602,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
604
602
|
{
|
|
605
603
|
"aria-controls": "cashflow-tabpanel-1",
|
|
606
604
|
id: "cashflow-tab-1",
|
|
607
|
-
label:
|
|
605
|
+
label: i.details,
|
|
608
606
|
sx: {
|
|
609
607
|
textTransform: "none"
|
|
610
608
|
}
|
|
@@ -613,108 +611,108 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
613
611
|
]
|
|
614
612
|
}
|
|
615
613
|
),
|
|
616
|
-
/* @__PURE__ */ e(
|
|
617
|
-
/* @__PURE__ */ e(
|
|
618
|
-
/* @__PURE__ */ e(
|
|
614
|
+
/* @__PURE__ */ e(I, { sx: { mb: 32 } }),
|
|
615
|
+
/* @__PURE__ */ e(Ce, { index: 0, name: "cashflow", value: r, children: /* @__PURE__ */ e(I, { sx: { m: o ? 48 : 16 }, children: /* @__PURE__ */ e(At, {}) }) }),
|
|
616
|
+
/* @__PURE__ */ e(Ce, { index: 1, name: "cashflow", value: r, children: /* @__PURE__ */ e(I, { sx: { m: o ? 48 : 16 }, children: /* @__PURE__ */ e(vt, {}) }) })
|
|
619
617
|
] });
|
|
620
|
-
},
|
|
621
|
-
amount:
|
|
622
|
-
isMobile:
|
|
618
|
+
}, Et = A(Rt), ne = ({
|
|
619
|
+
amount: i,
|
|
620
|
+
isMobile: o = !1,
|
|
623
621
|
isTotal: t = !1,
|
|
624
|
-
label:
|
|
622
|
+
label: r,
|
|
625
623
|
symbol: f,
|
|
626
624
|
tooltip: u
|
|
627
|
-
}) => /* @__PURE__ */
|
|
625
|
+
}) => /* @__PURE__ */ n(
|
|
628
626
|
s,
|
|
629
627
|
{
|
|
630
628
|
bgcolor: t ? "background.default" : "transparent",
|
|
631
|
-
direction:
|
|
632
|
-
justifyContent:
|
|
633
|
-
padding:
|
|
629
|
+
direction: o ? "row" : "column",
|
|
630
|
+
justifyContent: o ? "space-between" : "initial",
|
|
631
|
+
padding: o ? "14px 16px" : 0,
|
|
634
632
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
635
633
|
children: [
|
|
636
|
-
!
|
|
637
|
-
/* @__PURE__ */
|
|
638
|
-
/* @__PURE__ */ e(m, { bold: t, variant: "
|
|
634
|
+
!o && /* @__PURE__ */ e(E, { amount: i, component: "h2", variant: "h2" }),
|
|
635
|
+
/* @__PURE__ */ n(s, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
|
|
636
|
+
/* @__PURE__ */ e(m, { bold: t, variant: "body2", children: r }),
|
|
639
637
|
u
|
|
640
638
|
] }),
|
|
641
|
-
|
|
639
|
+
o && /* @__PURE__ */ e(E, { amount: i, component: "h2", symbol: f, variant: "body2" })
|
|
642
640
|
]
|
|
643
641
|
}
|
|
644
|
-
), Re = (
|
|
645
|
-
const { availableWidth:
|
|
642
|
+
), Re = (i, o) => (t) => t.accountGuid && i.includes(t.accountGuid) && (Fe(t.expectedDate) || Ge(t.expectedDate, o.start)) && Me(t.expectedDate, o.end), Lt = () => {
|
|
643
|
+
const { availableWidth: i } = ae(), { cashflow: o } = L(), { income: t, isDataLoaded: r, upcomingExpenses: f, upcomingIncome: u } = B(), { selectedAccountGuids: c } = P(), { dateRange: l, selectedCashAccounts: b } = q(), [a, g] = h.useState(!1), d = h.useMemo(
|
|
646
644
|
() => f.filter(Re(c, l)),
|
|
647
645
|
[l, c, f]
|
|
648
|
-
), x =
|
|
646
|
+
), x = h.useMemo(
|
|
649
647
|
() => u.filter(Re(c, l)),
|
|
650
648
|
[l, c, u]
|
|
651
|
-
),
|
|
652
|
-
() =>
|
|
653
|
-
[
|
|
654
|
-
), w = d.reduce((
|
|
655
|
-
return /* @__PURE__ */
|
|
656
|
-
/* @__PURE__ */
|
|
649
|
+
), C = h.useMemo(
|
|
650
|
+
() => b.reduce((_, S) => _ + (S?.balance || 0), 0),
|
|
651
|
+
[b]
|
|
652
|
+
), w = d.reduce((_, S) => _ + S.amount, 0), R = x.reduce((_, S) => _ + S.amount, 0), D = C - w + R, N = r && t.length > 0, p = i < 725;
|
|
653
|
+
return /* @__PURE__ */ n(s, { sx: { mx: p ? 16 : 0, my: p ? 24 : 42 }, children: [
|
|
654
|
+
/* @__PURE__ */ n(
|
|
657
655
|
s,
|
|
658
656
|
{
|
|
659
|
-
border:
|
|
660
|
-
borderColor: "
|
|
657
|
+
border: p ? "1px solid" : "none",
|
|
658
|
+
borderColor: "neutral.light",
|
|
661
659
|
borderRadius: 2,
|
|
662
|
-
flexDirection:
|
|
663
|
-
gap:
|
|
660
|
+
flexDirection: p ? "column" : "row",
|
|
661
|
+
gap: p ? 0 : 24,
|
|
664
662
|
justifyContent: "center",
|
|
665
663
|
children: [
|
|
666
664
|
/* @__PURE__ */ e(
|
|
667
|
-
|
|
665
|
+
ne,
|
|
668
666
|
{
|
|
669
|
-
amount:
|
|
670
|
-
isMobile:
|
|
671
|
-
label:
|
|
667
|
+
amount: C,
|
|
668
|
+
isMobile: p,
|
|
669
|
+
label: H(o.cash_and_bank, b.length)
|
|
672
670
|
}
|
|
673
671
|
),
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
!
|
|
672
|
+
p && /* @__PURE__ */ e(v, {}),
|
|
673
|
+
N ? /* @__PURE__ */ n(j, { children: [
|
|
674
|
+
!p && /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
677
675
|
/* @__PURE__ */ e(
|
|
678
|
-
|
|
676
|
+
ne,
|
|
679
677
|
{
|
|
680
|
-
amount:
|
|
681
|
-
isMobile:
|
|
682
|
-
label:
|
|
683
|
-
symbol:
|
|
678
|
+
amount: R,
|
|
679
|
+
isMobile: p,
|
|
680
|
+
label: o.to_be_received,
|
|
681
|
+
symbol: p ? "+" : void 0
|
|
684
682
|
}
|
|
685
683
|
)
|
|
686
684
|
] }) : /* @__PURE__ */ e(
|
|
687
|
-
|
|
685
|
+
W,
|
|
688
686
|
{
|
|
689
|
-
onClick: () =>
|
|
690
|
-
startIcon: /* @__PURE__ */ e(
|
|
687
|
+
onClick: () => g(!0),
|
|
688
|
+
startIcon: /* @__PURE__ */ e(z, { name: "add" }),
|
|
691
689
|
sx: { fontSize: 13 },
|
|
692
|
-
children:
|
|
690
|
+
children: o.add_income
|
|
693
691
|
}
|
|
694
692
|
),
|
|
695
|
-
|
|
693
|
+
p ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "-" }),
|
|
696
694
|
/* @__PURE__ */ e(
|
|
697
|
-
|
|
695
|
+
ne,
|
|
698
696
|
{
|
|
699
697
|
amount: w,
|
|
700
|
-
isMobile:
|
|
701
|
-
label:
|
|
702
|
-
symbol:
|
|
698
|
+
isMobile: p,
|
|
699
|
+
label: H(o.to_be_paid_out, d.length),
|
|
700
|
+
symbol: p ? "-" : void 0
|
|
703
701
|
}
|
|
704
702
|
),
|
|
705
|
-
|
|
703
|
+
p ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "=" }),
|
|
706
704
|
/* @__PURE__ */ e(
|
|
707
|
-
|
|
705
|
+
ne,
|
|
708
706
|
{
|
|
709
|
-
amount:
|
|
710
|
-
isMobile:
|
|
711
|
-
isTotal:
|
|
712
|
-
label:
|
|
707
|
+
amount: D,
|
|
708
|
+
isMobile: p,
|
|
709
|
+
isTotal: p,
|
|
710
|
+
label: o.remaining_cash,
|
|
713
711
|
tooltip: /* @__PURE__ */ e(
|
|
714
|
-
|
|
712
|
+
pe,
|
|
715
713
|
{
|
|
716
|
-
body:
|
|
717
|
-
title:
|
|
714
|
+
body: o.remaining_income_tooltip_body,
|
|
715
|
+
title: o.remaining_income_tooltip_title
|
|
718
716
|
}
|
|
719
717
|
)
|
|
720
718
|
}
|
|
@@ -723,333 +721,327 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
723
721
|
}
|
|
724
722
|
),
|
|
725
723
|
/* @__PURE__ */ e(
|
|
726
|
-
|
|
724
|
+
He,
|
|
727
725
|
{
|
|
728
|
-
ariaLabelClose:
|
|
729
|
-
isOpen:
|
|
730
|
-
onClose: () =>
|
|
726
|
+
ariaLabelClose: o.close_manage_income_aria,
|
|
727
|
+
isOpen: a,
|
|
728
|
+
onClose: () => g(!1),
|
|
731
729
|
shouldShowHeaderBorders: !1,
|
|
732
|
-
title:
|
|
733
|
-
children: /* @__PURE__ */ e(
|
|
730
|
+
title: o.manage_income,
|
|
731
|
+
children: /* @__PURE__ */ e(rt, {})
|
|
734
732
|
}
|
|
735
733
|
)
|
|
736
734
|
] });
|
|
737
|
-
},
|
|
738
|
-
const { selectedAccounts:
|
|
739
|
-
return
|
|
740
|
-
|
|
741
|
-
}, []),
|
|
742
|
-
const
|
|
743
|
-
(
|
|
735
|
+
}, Nt = A(Lt), kt = ({ onBackClick: i, onMenuClick: o, sx: t = {} }) => {
|
|
736
|
+
const { selectedAccounts: r, selectedAccountGuids: f, shouldDisableNextDate: u, shouldDisablePrevDate: c } = P(), { onEvent: l } = Ne(), { clientConfig: b } = Je(), { visibleCashAccounts: a } = Le(), { setFilter: g } = ke(), { dateRange: d, setSelectedCashAccounts: x } = q(), { loadRepeatingTransactionData: C, isDataLoaded: w, setDateRange: R } = B(), { cashflow: D, recurring: N } = L(), { isInitialized: p } = P(), S = b?.master?.deep_link_params?.view === "manage_income", [re, K] = h.useState(S);
|
|
737
|
+
return h.useEffect(() => {
|
|
738
|
+
R(d), w || C().finally();
|
|
739
|
+
}, []), h.useEffect(() => {
|
|
740
|
+
const se = a.map((G) => G.guid), $ = r.filter(
|
|
741
|
+
(G) => f.includes(G.guid) && se.includes(G.guid)
|
|
744
742
|
);
|
|
745
|
-
|
|
746
|
-
dateRange: { start:
|
|
747
|
-
accounts:
|
|
743
|
+
x($), g({
|
|
744
|
+
dateRange: { start: We(F(), 90), end: dt() },
|
|
745
|
+
accounts: $.map((G) => G.guid)
|
|
748
746
|
});
|
|
749
|
-
}, [
|
|
747
|
+
}, [a, r]), Oe({
|
|
750
748
|
widgetName: "CashflowWidget",
|
|
751
|
-
isLoaded:
|
|
752
|
-
}),
|
|
753
|
-
|
|
749
|
+
isLoaded: w
|
|
750
|
+
}), p ? /* @__PURE__ */ n(
|
|
751
|
+
mt,
|
|
754
752
|
{
|
|
755
753
|
actions: [
|
|
756
754
|
{
|
|
757
|
-
label:
|
|
755
|
+
label: N.action_title,
|
|
758
756
|
iconName: "credit_card_gear",
|
|
759
757
|
onClick: () => {
|
|
760
|
-
|
|
758
|
+
K(!0), l(Se.CASH_FLOW_CLICK_SETTINGS);
|
|
761
759
|
}
|
|
762
760
|
}
|
|
763
761
|
],
|
|
764
762
|
allowedAccountTypes: [
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
763
|
+
X.CASH,
|
|
764
|
+
X.CHECKING,
|
|
765
|
+
X.PREPAID,
|
|
766
|
+
X.SAVINGS,
|
|
767
|
+
X.CHECKING_LINE_OF_CREDIT
|
|
770
768
|
],
|
|
771
769
|
calendarActions: {
|
|
772
|
-
shouldDisableNext:
|
|
773
|
-
shouldDisablePrevious:
|
|
770
|
+
shouldDisableNext: u,
|
|
771
|
+
shouldDisablePrevious: c,
|
|
774
772
|
shouldDisablePicker: !0,
|
|
775
773
|
onRangeChanged: () => {
|
|
776
774
|
}
|
|
777
775
|
},
|
|
778
|
-
dateRange:
|
|
776
|
+
dateRange: d,
|
|
779
777
|
dateRangeVariant: "readonly",
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
778
|
+
hasDivider: !0,
|
|
779
|
+
onAccountsFilterClick: () => l(Se.CASH_FLOW_CLICK_FILTER),
|
|
780
|
+
onBackClick: i,
|
|
781
|
+
onMenuClick: o,
|
|
782
|
+
sx: t,
|
|
783
|
+
title: D.title,
|
|
784
784
|
children: [
|
|
785
|
-
/* @__PURE__ */ e(Ht, {}),
|
|
786
785
|
/* @__PURE__ */ e(Nt, {}),
|
|
786
|
+
/* @__PURE__ */ e(Et, {}),
|
|
787
787
|
/* @__PURE__ */ e(
|
|
788
|
-
|
|
788
|
+
He,
|
|
789
789
|
{
|
|
790
|
-
ariaLabelClose:
|
|
791
|
-
isOpen:
|
|
792
|
-
onClose: () =>
|
|
790
|
+
ariaLabelClose: D.close_settings_aria,
|
|
791
|
+
isOpen: re,
|
|
792
|
+
onClose: () => K(!1),
|
|
793
793
|
shouldShowHeaderBorders: !1,
|
|
794
|
-
title:
|
|
795
|
-
children: /* @__PURE__ */ e(
|
|
794
|
+
title: N.action_title,
|
|
795
|
+
children: /* @__PURE__ */ e(tt, { defaultSelectedTab: S ? 1 : 0 })
|
|
796
796
|
}
|
|
797
797
|
)
|
|
798
798
|
]
|
|
799
799
|
}
|
|
800
800
|
) : /* @__PURE__ */ e(Z, {});
|
|
801
|
-
},
|
|
802
|
-
const { completeOnboarding:
|
|
803
|
-
return /* @__PURE__ */
|
|
804
|
-
/* @__PURE__ */ e(de, { pb: 12, variant: "
|
|
805
|
-
/* @__PURE__ */ e(
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
pb: 8,
|
|
810
|
-
sx: { wordBreak: "break-word", whiteSpace: "initial" },
|
|
811
|
-
children: t.welcome_sub_title
|
|
812
|
-
}
|
|
813
|
-
),
|
|
814
|
-
/* @__PURE__ */ e(N, { pb: 32, children: t.welcome_description }),
|
|
815
|
-
/* @__PURE__ */ o(s, { direction: "column", mb: 32, spacing: 32, children: [
|
|
816
|
-
/* @__PURE__ */ o(N, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
801
|
+
}, Fn = A(kt), Ot = ({ handleNextStep: i }) => {
|
|
802
|
+
const { completeOnboarding: o } = me(), { cashflow: t } = L(), r = ie();
|
|
803
|
+
return /* @__PURE__ */ n(s, { children: [
|
|
804
|
+
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: t.welcome_title }),
|
|
805
|
+
/* @__PURE__ */ e(Ve, { color: r.palette.primary.light, pb: 8, children: t.welcome_sub_title }),
|
|
806
|
+
/* @__PURE__ */ e(k, { pb: 32, children: t.welcome_description }),
|
|
807
|
+
/* @__PURE__ */ n(s, { direction: "column", mb: 32, spacing: 32, children: [
|
|
808
|
+
/* @__PURE__ */ n(k, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
817
809
|
/* @__PURE__ */ e(
|
|
818
|
-
|
|
810
|
+
I,
|
|
819
811
|
{
|
|
820
|
-
bgcolor:
|
|
812
|
+
bgcolor: r.palette.primary.lighter,
|
|
821
813
|
borderRadius: 1,
|
|
822
814
|
component: "span",
|
|
823
815
|
height: 44,
|
|
824
816
|
mr: 24,
|
|
825
817
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
826
818
|
width: 44,
|
|
827
|
-
children: /* @__PURE__ */ e(
|
|
819
|
+
children: /* @__PURE__ */ e(z, { color: "primary", name: "currency_exchange" })
|
|
828
820
|
}
|
|
829
821
|
),
|
|
830
822
|
t.bullet_one
|
|
831
823
|
] }),
|
|
832
|
-
/* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ n(k, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
833
825
|
/* @__PURE__ */ e(
|
|
834
|
-
|
|
826
|
+
I,
|
|
835
827
|
{
|
|
836
|
-
bgcolor:
|
|
828
|
+
bgcolor: r.palette.primary.lighter,
|
|
837
829
|
borderRadius: 1,
|
|
838
830
|
component: "span",
|
|
839
831
|
height: 44,
|
|
840
832
|
mr: 24,
|
|
841
833
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
842
834
|
width: 44,
|
|
843
|
-
children: /* @__PURE__ */ e(
|
|
835
|
+
children: /* @__PURE__ */ e(z, { color: "primary", name: "cardiology" })
|
|
844
836
|
}
|
|
845
837
|
),
|
|
846
838
|
t.bullet_two
|
|
847
839
|
] }),
|
|
848
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ n(k, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
849
841
|
/* @__PURE__ */ e(
|
|
850
|
-
|
|
842
|
+
I,
|
|
851
843
|
{
|
|
852
|
-
bgcolor:
|
|
844
|
+
bgcolor: r.palette.primary.lighter,
|
|
853
845
|
borderRadius: 1,
|
|
854
846
|
component: "span",
|
|
855
847
|
height: 44,
|
|
856
848
|
mr: 24,
|
|
857
849
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
858
850
|
width: 44,
|
|
859
|
-
children: /* @__PURE__ */ e(
|
|
851
|
+
children: /* @__PURE__ */ e(z, { color: "primary", name: "flare" })
|
|
860
852
|
}
|
|
861
853
|
),
|
|
862
854
|
t.bullet_three
|
|
863
855
|
] })
|
|
864
856
|
] }),
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
-
/* @__PURE__ */ e(
|
|
867
|
-
/* @__PURE__ */ e(
|
|
857
|
+
/* @__PURE__ */ n(s, { direction: "row", spacing: 16, children: [
|
|
858
|
+
/* @__PURE__ */ e(W, { onClick: i, variant: "contained", children: t.get_started_button }),
|
|
859
|
+
/* @__PURE__ */ e(W, { onClick: o, variant: "outlined", children: t.skip_button })
|
|
868
860
|
] })
|
|
869
861
|
] });
|
|
870
|
-
},
|
|
871
|
-
CASHFLOW_ONBOARDING: `${
|
|
872
|
-
CASHFLOW_LOADING_ANIMATION: `${
|
|
873
|
-
},
|
|
874
|
-
const { cashflow:
|
|
875
|
-
return /* @__PURE__ */
|
|
876
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src:
|
|
877
|
-
/* @__PURE__ */ e(de, { pb: 12, variant: "
|
|
878
|
-
/* @__PURE__ */ e(
|
|
862
|
+
}, Gt = A(Ot), Ee = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", ze = {
|
|
863
|
+
CASHFLOW_ONBOARDING: `${Ee}/cashflow-onboarding.png`,
|
|
864
|
+
CASHFLOW_LOADING_ANIMATION: `${Ee}/loading-animation.gif`
|
|
865
|
+
}, Mt = () => {
|
|
866
|
+
const { cashflow: i } = L();
|
|
867
|
+
return /* @__PURE__ */ n(h.Fragment, { children: [
|
|
868
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: ze.CASHFLOW_LOADING_ANIMATION }) }),
|
|
869
|
+
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: i.loading_title }),
|
|
870
|
+
/* @__PURE__ */ e(k, { children: i.loading_description })
|
|
879
871
|
] });
|
|
880
|
-
},
|
|
872
|
+
}, Ft = A(Mt), Ht = Ke`
|
|
881
873
|
from {
|
|
882
874
|
transform: rotate(0deg);
|
|
883
875
|
}
|
|
884
876
|
to {
|
|
885
877
|
transform: rotate(360deg);
|
|
886
878
|
}
|
|
887
|
-
`,
|
|
888
|
-
const { addRepeatingTransaction:
|
|
889
|
-
() => x.find((y) => y.guid ===
|
|
890
|
-
[
|
|
891
|
-
), Be = !!
|
|
892
|
-
(y) => y.repeating_transaction_type ===
|
|
893
|
-
).length,
|
|
894
|
-
|
|
879
|
+
`, Wt = () => {
|
|
880
|
+
const { addRepeatingTransaction: i, repeatingTransactions: o } = B(), { cashflow: t, common: r } = L(), { user: f } = Qe(), { completeOnboarding: u } = me(), { isDirty: c } = q(), { isMobile: l } = ue(), { isCopyLoaded: b, setDisplayedDate: a } = P(), { filter: g, setFilter: d, transactions: x } = ke(), C = ie(), [w, R] = V(!0), [D, N] = h.useState(gt.EveryMonth), [p, _] = h.useState(1), [S, re] = h.useState(15), [K, se] = V(!1), [$, G] = V(1), [O, je] = V([]), [fe, ce] = V(""), M = h.useMemo(
|
|
881
|
+
() => x.find((y) => y.guid === fe),
|
|
882
|
+
[fe, x]
|
|
883
|
+
), Be = !!o.filter(
|
|
884
|
+
(y) => y.repeating_transaction_type === Ie.Income
|
|
885
|
+
).length, ge = async () => {
|
|
886
|
+
G(2), a(
|
|
895
887
|
// Beginning of the month, 90 days before today
|
|
896
|
-
pt(
|
|
897
|
-
|
|
898
|
-
), d({ ...
|
|
899
|
-
},
|
|
888
|
+
pt(We(F(), 90)),
|
|
889
|
+
F()
|
|
890
|
+
), d({ ...g, custom: we }), G(3);
|
|
891
|
+
}, $e = async () => {
|
|
900
892
|
if (!(O.length < 1)) {
|
|
901
|
-
|
|
893
|
+
se(!0);
|
|
902
894
|
for (let y = 0; y < O.length; y++) {
|
|
903
|
-
const
|
|
904
|
-
account_guid:
|
|
905
|
-
amount:
|
|
895
|
+
const T = O[y], be = ve(D, De(T.date)), Ue = {
|
|
896
|
+
account_guid: T.account_guid,
|
|
897
|
+
amount: T.amount,
|
|
906
898
|
created_by: 0,
|
|
907
899
|
//user
|
|
908
|
-
merchant_guid:
|
|
909
|
-
description:
|
|
910
|
-
predicted_occurs_on:
|
|
911
|
-
recurrence_day:
|
|
912
|
-
recurrence_type:
|
|
913
|
-
repeating_transaction_type:
|
|
914
|
-
second_recurrence_day:
|
|
915
|
-
transaction_type:
|
|
900
|
+
merchant_guid: T.merchant_guid,
|
|
901
|
+
description: T.feed_description || T.description,
|
|
902
|
+
predicted_occurs_on: ut(be, { representation: "date" }),
|
|
903
|
+
recurrence_day: be.getDay(),
|
|
904
|
+
recurrence_type: D,
|
|
905
|
+
repeating_transaction_type: Ie.Income,
|
|
906
|
+
second_recurrence_day: S,
|
|
907
|
+
transaction_type: T.transaction_type,
|
|
916
908
|
user_guid: f.guid
|
|
917
909
|
};
|
|
918
|
-
await
|
|
910
|
+
await i(Ue, T);
|
|
919
911
|
}
|
|
920
912
|
await u();
|
|
921
913
|
}
|
|
922
|
-
}, Pe = !
|
|
923
|
-
return
|
|
924
|
-
|
|
914
|
+
}, Pe = !M && w || !M && O.length < 1;
|
|
915
|
+
return b ? /* @__PURE__ */ n(
|
|
916
|
+
I,
|
|
925
917
|
{
|
|
926
918
|
sx: {
|
|
927
919
|
display: "flex",
|
|
928
920
|
alignItems: l ? "flex-start" : "center",
|
|
929
|
-
backgroundColor:
|
|
930
|
-
backgroundImage: l ? null : `url(${
|
|
921
|
+
backgroundColor: C.palette.background.paper,
|
|
922
|
+
backgroundImage: l ? null : `url(${ze.CASHFLOW_ONBOARDING})`,
|
|
931
923
|
backgroundRepeat: "no-repeat",
|
|
932
924
|
backgroundPosition: "left 100px",
|
|
933
925
|
backgroundSize: "35%",
|
|
934
926
|
py: 24
|
|
935
927
|
},
|
|
936
928
|
children: [
|
|
937
|
-
|
|
938
|
-
|
|
929
|
+
$ === 1 && /* @__PURE__ */ e(
|
|
930
|
+
I,
|
|
939
931
|
{
|
|
940
932
|
sx: {
|
|
941
933
|
...l ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
942
934
|
},
|
|
943
|
-
children: /* @__PURE__ */ e(
|
|
935
|
+
children: /* @__PURE__ */ e(Gt, { handleNextStep: ge })
|
|
944
936
|
}
|
|
945
937
|
),
|
|
946
|
-
|
|
947
|
-
|
|
938
|
+
$ === 2 && /* @__PURE__ */ e(
|
|
939
|
+
I,
|
|
948
940
|
{
|
|
949
941
|
sx: {
|
|
950
942
|
...l ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
951
943
|
},
|
|
952
|
-
children: /* @__PURE__ */ e(
|
|
944
|
+
children: /* @__PURE__ */ e(Ft, {})
|
|
953
945
|
}
|
|
954
946
|
),
|
|
955
|
-
|
|
956
|
-
|
|
947
|
+
$ === 3 && /* @__PURE__ */ n(
|
|
948
|
+
I,
|
|
957
949
|
{
|
|
958
950
|
sx: {
|
|
959
951
|
...l ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
960
952
|
},
|
|
961
953
|
children: [
|
|
962
|
-
/* @__PURE__ */ e(de, { pb: 12, variant: "
|
|
963
|
-
/* @__PURE__ */ e(
|
|
964
|
-
O.length > 0 && !
|
|
965
|
-
/* @__PURE__ */ e(
|
|
966
|
-
/* @__PURE__ */ e(
|
|
967
|
-
|
|
954
|
+
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: t.add_income_title }),
|
|
955
|
+
/* @__PURE__ */ e(k, { mb: 24, children: t.add_income_description }),
|
|
956
|
+
O.length > 0 && !M && /* @__PURE__ */ n(j, { children: [
|
|
957
|
+
/* @__PURE__ */ e(Q, { children: O.map((y, T) => /* @__PURE__ */ n(h.Fragment, { children: [
|
|
958
|
+
/* @__PURE__ */ e(ht, { bgcolor: "background.paper", children: bt(
|
|
959
|
+
le(y.nextDate || y.date)
|
|
968
960
|
) }),
|
|
969
|
-
/* @__PURE__ */ e(
|
|
970
|
-
|
|
961
|
+
/* @__PURE__ */ e(ft, { transaction: y }),
|
|
962
|
+
T !== O.length - 1 && /* @__PURE__ */ e(v, {})
|
|
971
963
|
] }, y.guid)) }),
|
|
972
|
-
/* @__PURE__ */
|
|
964
|
+
/* @__PURE__ */ n(s, { alignItems: "center", direction: "row", children: [
|
|
973
965
|
/* @__PURE__ */ e(v, { sx: { flexGrow: 1 } }),
|
|
974
966
|
/* @__PURE__ */ e(
|
|
975
|
-
|
|
967
|
+
W,
|
|
976
968
|
{
|
|
977
|
-
onClick: () =>
|
|
978
|
-
startIcon: /* @__PURE__ */ e(
|
|
969
|
+
onClick: () => R(!0),
|
|
970
|
+
startIcon: /* @__PURE__ */ e(z, { name: "add", size: 20 }),
|
|
979
971
|
children: t.add_income
|
|
980
972
|
}
|
|
981
973
|
)
|
|
982
974
|
] })
|
|
983
975
|
] }),
|
|
984
976
|
Pe && /* @__PURE__ */ e(
|
|
985
|
-
|
|
977
|
+
st,
|
|
986
978
|
{
|
|
987
979
|
bgcolor: "background.paper",
|
|
988
980
|
onSearch: (y) => d({
|
|
989
|
-
...
|
|
990
|
-
custom: (
|
|
981
|
+
...g,
|
|
982
|
+
custom: (T) => y ? ct(T, y) : we(T)
|
|
991
983
|
}),
|
|
992
984
|
onSelected: (y) => {
|
|
993
|
-
|
|
985
|
+
ce(y), R(!1);
|
|
994
986
|
}
|
|
995
987
|
}
|
|
996
988
|
),
|
|
997
|
-
!Be && c && /* @__PURE__ */ e(
|
|
998
|
-
|
|
989
|
+
!Be && c && /* @__PURE__ */ e(k, { color: "error", mt: 16, children: t.confirm_error }),
|
|
990
|
+
M && /* @__PURE__ */ n(j, { children: [
|
|
999
991
|
/* @__PURE__ */ e(
|
|
1000
|
-
|
|
992
|
+
lt,
|
|
1001
993
|
{
|
|
1002
994
|
bgcolor: "background.paper",
|
|
1003
|
-
firstDay:
|
|
1004
|
-
frequency:
|
|
1005
|
-
onFirstDayChange:
|
|
1006
|
-
onFrequencyChange:
|
|
1007
|
-
onSecondDayChange:
|
|
1008
|
-
secondDay:
|
|
1009
|
-
transaction:
|
|
995
|
+
firstDay: p,
|
|
996
|
+
frequency: D,
|
|
997
|
+
onFirstDayChange: _,
|
|
998
|
+
onFrequencyChange: N,
|
|
999
|
+
onSecondDayChange: re,
|
|
1000
|
+
secondDay: S,
|
|
1001
|
+
transaction: M
|
|
1010
1002
|
}
|
|
1011
1003
|
),
|
|
1012
|
-
/* @__PURE__ */
|
|
1004
|
+
/* @__PURE__ */ n(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
1013
1005
|
/* @__PURE__ */ e(
|
|
1014
|
-
|
|
1006
|
+
W,
|
|
1015
1007
|
{
|
|
1016
|
-
"aria-disabled": !
|
|
1008
|
+
"aria-disabled": !M,
|
|
1017
1009
|
onClick: () => {
|
|
1018
1010
|
const y = [...O];
|
|
1019
1011
|
y.push({
|
|
1020
|
-
...
|
|
1021
|
-
nextDate:
|
|
1022
|
-
frequency:
|
|
1023
|
-
}),
|
|
1012
|
+
...M,
|
|
1013
|
+
nextDate: ve(D, De(M.date)),
|
|
1014
|
+
frequency: D
|
|
1015
|
+
}), je(y), ce("");
|
|
1024
1016
|
},
|
|
1025
1017
|
variant: "contained",
|
|
1026
|
-
children:
|
|
1018
|
+
children: r.confirm_button
|
|
1027
1019
|
}
|
|
1028
1020
|
),
|
|
1029
1021
|
/* @__PURE__ */ e(
|
|
1030
|
-
|
|
1022
|
+
W,
|
|
1031
1023
|
{
|
|
1032
1024
|
onClick: () => {
|
|
1033
|
-
|
|
1025
|
+
ce(""), R(!0), ge().finally();
|
|
1034
1026
|
},
|
|
1035
1027
|
variant: "outlined",
|
|
1036
|
-
children:
|
|
1028
|
+
children: r.cancel_button
|
|
1037
1029
|
}
|
|
1038
1030
|
)
|
|
1039
1031
|
] })
|
|
1040
1032
|
] }),
|
|
1041
|
-
O.length > 0 && !
|
|
1033
|
+
O.length > 0 && !M && /* @__PURE__ */ n(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
1042
1034
|
/* @__PURE__ */ e(
|
|
1043
|
-
|
|
1035
|
+
W,
|
|
1044
1036
|
{
|
|
1045
|
-
"aria-disabled": O.length < 1 ||
|
|
1046
|
-
onClick:
|
|
1047
|
-
startIcon:
|
|
1048
|
-
|
|
1037
|
+
"aria-disabled": O.length < 1 || K,
|
|
1038
|
+
onClick: $e,
|
|
1039
|
+
startIcon: K ? /* @__PURE__ */ e(
|
|
1040
|
+
z,
|
|
1049
1041
|
{
|
|
1050
1042
|
name: "progress_activity",
|
|
1051
1043
|
sx: {
|
|
1052
|
-
animation: `${
|
|
1044
|
+
animation: `${Ht} 2s linear infinite`
|
|
1053
1045
|
}
|
|
1054
1046
|
}
|
|
1055
1047
|
) : null,
|
|
@@ -1057,7 +1049,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
1057
1049
|
children: t.confirm_income_button
|
|
1058
1050
|
}
|
|
1059
1051
|
),
|
|
1060
|
-
/* @__PURE__ */ e(
|
|
1052
|
+
/* @__PURE__ */ e(W, { onClick: u, variant: "outlined", children: t.skip_button })
|
|
1061
1053
|
] })
|
|
1062
1054
|
]
|
|
1063
1055
|
}
|
|
@@ -1065,30 +1057,9 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
1065
1057
|
]
|
|
1066
1058
|
}
|
|
1067
1059
|
) : /* @__PURE__ */ e(Z, {});
|
|
1068
|
-
},
|
|
1069
|
-
class zn {
|
|
1070
|
-
fetchInstance;
|
|
1071
|
-
constructor(n, t, i) {
|
|
1072
|
-
this.fetchInstance = new Ct(n, t, void 0, i);
|
|
1073
|
-
}
|
|
1074
|
-
addCashflowEvent = async (n) => this.fetchInstance.post(j.CASHFLOW_EVENTS, { ...n }).then((t) => t);
|
|
1075
|
-
addCashflowSequence = async (n) => this.fetchInstance.post(j.CASHFLOW_SEQUENCES, { ...n }).then((t) => t.cashflow_sequence);
|
|
1076
|
-
getCashflowSequences = async () => this.fetchInstance.get(j.CASHFLOW_SEQUENCES).then((n) => n.cashflow_sequences);
|
|
1077
|
-
getCashflowEventsByDateRange = async (n, t) => this.fetchInstance.get(
|
|
1078
|
-
`${j.CASHFLOW_EVENTS}/from/${z(n)}/to/${z(t)}`
|
|
1079
|
-
).then((i) => i.cashflow_events);
|
|
1080
|
-
deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${j.CASHFLOW_SEQUENCES}/${n}`).then((t) => t);
|
|
1081
|
-
getProjectedCashflowEvents = async (n, t) => this.fetchInstance.get(
|
|
1082
|
-
`${j.CASHFLOW_SEQUENCES}/projected_events/from/${z(
|
|
1083
|
-
n
|
|
1084
|
-
)}/to/${z(t)}`
|
|
1085
|
-
).then((i) => i.cashflow_events);
|
|
1086
|
-
updateCashflowSequence = async (n) => this.fetchInstance.put(`${j.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((t) => t.cashflow_sequence);
|
|
1087
|
-
}
|
|
1060
|
+
}, Hn = A(Wt);
|
|
1088
1061
|
export {
|
|
1089
|
-
zn as CashflowApi,
|
|
1090
1062
|
Mn as CashflowMiniWidget,
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
$n as CashflowWidget
|
|
1063
|
+
Hn as CashflowOnboarding,
|
|
1064
|
+
Fn as CashflowWidget
|
|
1094
1065
|
};
|