@mx-cartographer/experiences 8.0.0-alpha.test2 → 8.0.0-alpha.v2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +335 -0
- package/README.md +5 -3
- package/dist/{Account-CMjOp7S2.mjs → Account-BiB1F8lL.mjs} +2 -2
- package/dist/{Account-BIKn4XEZ.mjs → Account-DuOz1a27.mjs} +1 -1
- package/dist/{AccountApi-DgZ8ILj1.mjs → AccountApi-ChQr5PAZ.mjs} +1 -1
- package/dist/AccountDetailsHeader-D9gbTbUt.mjs +95 -0
- package/dist/{AccountFields-DuFtmuud.mjs → AccountFields-CxqONzjY.mjs} +12 -12
- package/dist/AccountListItem-D9WJDbZ1.mjs +94 -0
- package/dist/{AccountStore-Cq_w2Hfb.mjs → AccountStore-DpYvNnql.mjs} +15 -9
- package/dist/Accounts-CseLC3lL.mjs +5 -0
- package/dist/Accounts-o7ohkngR.mjs +27 -0
- package/dist/{Analytics-i5h6BxR1.mjs → Analytics-BYItVAe-.mjs} +10 -0
- package/dist/{BeatApi-De2IaqH2.mjs → BeatApi-EFHXULDx.mjs} +1 -1
- package/dist/{BeatStore-D_NYuBSz.mjs → BeatStore-C6CAT-ce.mjs} +1 -1
- package/dist/BudgetUtil-CLhRnCoX.mjs +479 -0
- package/dist/CashflowStore-CeAzChyD.mjs +91 -0
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-CzRxYpiP.mjs → CategorySelectorDrawer-Dc9Widy9.mjs} +118 -110
- package/dist/{CategoryStore-V-0d9oje.mjs → CategoryStore-FTxUbn0f.mjs} +3 -3
- package/dist/{CategoryUtil-DB-9JMbi.mjs → CategoryUtil-BVixr0d5.mjs} +4 -4
- package/dist/Connect-eYIWqCEr.mjs +39 -0
- package/dist/ConnectDrawer-C0wjwcJt.mjs +58 -0
- package/dist/{ConnectionsDrawer-DMBBzlIJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +10 -9
- package/dist/CurrencyInput-DuMktPu3.mjs +85 -0
- package/dist/{CurrencyText-C-85TnUF.mjs → CurrencyText-CA-E5N_y.mjs} +1 -1
- package/dist/{DateFormats-Cs-NbEZ7.mjs → DateFormats-BMpMrZpW.mjs} +1 -1
- package/dist/{DateUtil-CVXVMbjf.mjs → DateUtil-wcYTmDRD.mjs} +1 -1
- package/dist/{DebtsStore-Dv_T7Dts.mjs → DebtsStore-BZqNLaqd.mjs} +3 -3
- package/dist/Dialog-Ck34yr-d.mjs +63 -0
- package/dist/{Donut-DKY8mL3P.mjs → Donut-CpxJlVvJ.mjs} +29 -27
- package/dist/{Drawer-Bet2ZPJo.mjs → Drawer-Bbe4AMB1.mjs} +14 -14
- package/dist/{ExportCsvAction-Cc14QGA9.mjs → ExportCsvAction-ErKh7wJ2.mjs} +4 -4
- package/dist/{Fetch-DecPFeGU.mjs → Fetch-B6tMJC1r.mjs} +2 -1
- package/dist/{FinstrongStore-DW7-LvAh.mjs → FinstrongStore-BQxXxxYD.mjs} +129 -129
- package/dist/GlobalAccountFilter-B73Pw1hJ.mjs +237 -0
- package/dist/Goal-0loDagc5.mjs +6 -0
- package/dist/GoalStore-fgXt--2Y.mjs +418 -0
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CgpJK03Q.mjs → Help-B8mD4aLJ.mjs} +6 -6
- package/dist/{Help-DOPJteew.mjs → Help-D-laTbKu.mjs} +544 -493
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-EAr5ox5U.mjs +612 -0
- package/dist/{ListItemAction-engf-T9W.mjs → ListItemAction-4KB7P75M.mjs} +2 -2
- package/dist/Loader-D3rjKx72.mjs +21 -0
- package/dist/Localization-CPkpIwIx.mjs +37 -0
- package/dist/{ManageIncome-BVqHHIO7.mjs → ManageIncome-Cc-wba0I.mjs} +118 -113
- package/dist/{MerchantStore-WvZ4gnQe.mjs → MerchantStore-BzGi4JAZ.mjs} +1 -1
- package/dist/MicroWidgetContainer-B_EnfvCq.mjs +45 -0
- package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +66 -0
- package/dist/{NetWorthStore-B6ziBtaH.mjs → NetWorthStore-BqZ44-4M.mjs} +5 -5
- package/dist/Notification-DTNYSd8P.mjs +7 -0
- package/dist/{NotificationSettings-CEzQSKfg.mjs → NotificationSettings-D7VqsrZy.mjs} +160 -159
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-D_e8zo5M.mjs} +28 -21
- package/dist/{NumberFormatting-DjTD0t3W.mjs → NumberFormatting-QCaNwbjv.mjs} +1 -1
- package/dist/{Transaction-C8QRYhYc.mjs → OnClickEvents-CseHDZ94.mjs} +32 -25
- package/dist/{OriginalBalanceAction-CYqr8z8w.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +10 -10
- package/dist/{RecurringSettings-rEotGPcM.mjs → RecurringSettings-BN9H5ALr.mjs} +4 -4
- package/dist/RecurringTransactions-BCJp-Nap.mjs +297 -0
- package/dist/{RecurringTransactionsStore-DpzLX8E8.mjs → RecurringTransactionsStore-CkMA7gY3.mjs} +11 -10
- package/dist/RepeatingTransaction-DF4vJn_v.mjs +7 -0
- package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-DZFp78fJ.mjs} +12 -12
- package/dist/SearchBox-CwDgvWVJ.mjs +48 -0
- package/dist/{SettingsStore-ImYpLCSK.mjs → SettingsStore-BoIoiRLj.mjs} +3 -3
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +5 -5
- package/dist/{SpendingData-CI_C9xln.mjs → SpendingData-Bz1bCWAs.mjs} +4 -4
- package/dist/SpendingLegend-BgjazduU.mjs +193 -0
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/StatusIndicator-4tWnjeKS.mjs +264 -0
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/ToggleListItem-BLu_fWA2.mjs +90 -0
- package/dist/Transaction-Cn5_iFm0.mjs +5 -0
- package/dist/{TransactionApi-CjBoLleL.mjs → TransactionApi-Ck5Ua-7F.mjs} +1 -1
- package/dist/TransactionDetails-D1I1XEsT.mjs +1469 -0
- package/dist/{TransactionStore-CEehNrKo.mjs → TransactionStore-Bx9euVrY.mjs} +195 -177
- package/dist/{TrendsStore-ncmbS9eE.mjs → TrendsStore-CYdTo7cN.mjs} +10 -10
- package/dist/ViewMoreMicroCard-D24H9kDm.mjs +1291 -0
- package/dist/{WidgetContainer-DFwVgavi.mjs → WidgetContainer-B7xDq2bM.mjs} +47 -46
- package/dist/accounts/AccountsMiniWidget.d.ts +1 -1
- package/dist/accounts/AccountsWidget.d.ts +1 -1
- package/dist/accounts/api/AccountApi.d.ts +1 -1
- package/dist/accounts/components/AccountListItem.d.ts +1 -1
- package/dist/accounts/components/AccountsListCompact.d.ts +1 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountActionsRow.d.ts +1 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -1
- package/dist/accounts/hooks/useGetMergeableAccounts.d.ts +1 -1
- package/dist/accounts/index.es.js +459 -368
- package/dist/accounts/stores/AccountStore.d.ts +2 -1
- package/dist/accounts/stores/UiStore.d.ts +1 -1
- package/dist/accounts/utils/AccountDetails.d.ts +1 -1
- package/dist/accounts/utils/AccountFields.d.ts +1 -1
- package/dist/accounts/utils/Accounts.d.ts +2 -2
- package/dist/analytics/index.es.js +93 -112
- package/dist/budgets/BubbleBudgetsMiniWidget.d.ts +1 -1
- package/dist/budgets/BubbleBudgetsWidget.d.ts +1 -1
- package/dist/budgets/api/BudgetsApi.d.ts +5 -1
- package/dist/budgets/components/BubbleChart.d.ts +1 -1
- package/dist/budgets/components/BudgetDetailsDrawerV2.d.ts +4 -1
- package/dist/budgets/components/MerchantBudgetDetailsDrawer.d.ts +17 -0
- package/dist/budgets/components/addbudget/RecalculateBudgetRow.d.ts +1 -1
- package/dist/budgets/components/addbudget/UnbudgetedRow.d.ts +1 -1
- package/dist/budgets/components/bubblechart/Bubble.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/AddSubBudget.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/BudgetDetails.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/Header.d.ts +1 -1
- package/dist/budgets/components/budgetdetails/SubBudgetList.d.ts +1 -1
- package/dist/budgets/components/budgetlist/BudgetRow.d.ts +1 -1
- package/dist/budgets/components/budgetlist/SubBudgetRow.d.ts +1 -1
- package/dist/budgets/components/shared/BudgetDetailsTopSection.d.ts +13 -0
- package/dist/budgets/index.es.js +851 -865
- package/dist/budgets/store/BudgetsStore.d.ts +15 -1
- package/dist/budgets/utils/BubblesSVG.d.ts +3 -3
- package/dist/budgets/utils/BudgetUtil.d.ts +6 -1
- package/dist/cashflow/CashflowMiniWidget.d.ts +1 -1
- package/dist/cashflow/CashflowWidget.d.ts +1 -1
- package/dist/cashflow/api/CashflowApi.d.ts +1 -1
- package/dist/cashflow/components/DetailsExpenseRow.d.ts +1 -1
- package/dist/cashflow/index.es.js +290 -288
- package/dist/cashflow/stores/UiStore.d.ts +1 -1
- package/dist/cashflow/util/Filters.d.ts +1 -1
- package/dist/categories/components/CategoryRow.d.ts +1 -1
- package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -1
- package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -1
- package/dist/categories/components/SubcategoryList.d.ts +1 -1
- package/dist/categories/components/SubcategoryRow.d.ts +1 -1
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -1
- package/dist/categories/util/CategoryUtil.d.ts +1 -1
- package/dist/common/api/AnalyticsApi.d.ts +1 -1
- package/dist/common/api/AppDataApi.d.ts +1 -1
- package/dist/common/api/BeatApi.d.ts +1 -1
- package/dist/common/api/CategoryApi.d.ts +1 -1
- package/dist/common/api/GlobalCopyApi.d.ts +1 -1
- package/dist/common/api/LocalizedCopyApi.d.ts +1 -1
- package/dist/common/api/NotificationApi.d.ts +1 -1
- package/dist/common/api/ScheduledPaymentsApi.d.ts +1 -1
- package/dist/common/api/UserApi.d.ts +1 -1
- package/dist/common/components/CurrencyDialog.d.ts +1 -1
- package/dist/common/components/CurrencyInput.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/GlobalAccountFilter.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/MiniWidgetContainer.d.ts +1 -0
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +1 -0
- package/dist/common/components/charts/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +2 -1
- package/dist/common/components/charts/linechart/utils/markerShapes.d.ts +3 -0
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +1 -1
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/constants/Account.d.ts +1 -1
- package/dist/common/constants/Analytics.d.ts +10 -0
- package/dist/common/constants/ApiEndpoints.d.ts +1 -0
- package/dist/common/constants/DefaultConfig.d.ts +1 -1
- package/dist/common/constants/ScheduledPayment.d.ts +1 -10
- package/dist/common/constants/SpendingPlan.d.ts +0 -10
- package/dist/common/constants/index.d.ts +2 -2
- package/dist/common/context/GlobalDataProvider.d.ts +2 -1
- package/dist/common/context/hooks.d.ts +4 -4
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useAccountDisplayName.d.ts +1 -1
- package/dist/common/hooks/useCombineEvents.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.es.js +625 -860
- package/dist/common/stores/AppDataStore.d.ts +3 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -1
- package/dist/common/stores/GlobalStore.d.ts +4 -2
- package/dist/common/stores/GlobalUiStore.d.ts +3 -3
- package/dist/common/stores/UserStore.d.ts +1 -1
- package/dist/common/utils/AccountDisplayName.d.ts +1 -1
- package/dist/common/utils/AccountFilter.d.ts +1 -1
- package/dist/common/utils/Analytics.d.ts +1 -1
- package/dist/common/utils/Categories.d.ts +1 -1
- package/dist/common/utils/Fetch.d.ts +1 -1
- package/dist/common/utils/Localization.d.ts +9 -1
- package/dist/common/utils/Theme.d.ts +3 -3
- package/dist/common/utils/User.d.ts +1 -1
- package/dist/common/utils/index.d.ts +1 -1
- package/dist/core/constants/index.d.ts +1 -0
- package/dist/core/constants/repeatingTransactions.d.ts +10 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.es.js +41 -0
- package/dist/{common → core}/types/Analytics.d.ts +6 -3
- package/dist/{common → core}/types/AppData.d.ts +1 -0
- package/dist/{common → core}/types/Beat.d.ts +2 -0
- package/dist/{common → core}/types/Budget.d.ts +8 -0
- package/dist/{common → core}/types/Expense.d.ts +2 -1
- package/dist/{common → core}/types/Finstrong.d.ts +0 -2
- package/dist/{common → core}/types/Notification.d.ts +15 -5
- package/dist/{common → core}/types/index.d.ts +1 -2
- package/dist/{common → core}/types/localization/BudgetsCopy.d.ts +11 -0
- package/dist/{common → core}/types/localization/CashflowCopy.d.ts +1 -0
- package/dist/{common → core}/types/localization/CommonCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/DebtsCopy.d.ts +5 -0
- package/dist/{common → core}/types/localization/RecurringCopy.d.ts +2 -0
- package/dist/{common → core}/types/localization/SpendingCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +46 -45
- package/dist/debts/DebtsWidget.d.ts +1 -1
- package/dist/debts/components/actions/DebtsPriorityAction.d.ts +5 -1
- package/dist/debts/components/debtspaydown/PaydownButton.d.ts +2 -1
- package/dist/debts/components/debtspriority/DebtsPriorityButton.d.ts +2 -1
- package/dist/debts/index.es.js +705 -646
- package/dist/debts/store/DebtsStore.d.ts +2 -1
- package/dist/debts/utils/DebtStore.d.ts +1 -1
- package/dist/debts/utils/DebtsWidget.d.ts +7 -1
- package/dist/debts/utils/shared.d.ts +1 -1
- package/dist/{exportTransactionsToCSV-CGnrndmA.mjs → exportTransactionsToCSV-MCYH_zzN.mjs} +5 -5
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +1 -1
- package/dist/finstrong/components/HealthChart.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +1 -1
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +1 -1
- package/dist/finstrong/components/shared/Accounts.d.ts +1 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +1 -0
- package/dist/finstrong/components/shared/ScoreHistoryTimeline.d.ts +1 -1
- package/dist/finstrong/components/shared/Transactions.d.ts +1 -1
- package/dist/finstrong/index.es.js +161 -159
- package/dist/finstrong/stores/FinstrongStore.d.ts +3 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +3 -3
- package/dist/goals/GoalsWidget.d.ts +1 -1
- package/dist/goals/api/GoalApi.d.ts +2 -2
- package/dist/goals/components/AccountSelectionDrawer.d.ts +1 -1
- package/dist/goals/components/AddGoal.d.ts +1 -1
- package/dist/goals/components/GoalDetails.d.ts +1 -1
- package/dist/goals/components/GoalDetailsDrawer.d.ts +1 -1
- package/dist/goals/components/GoalList.d.ts +1 -1
- package/dist/goals/components/GoalStatusCard.d.ts +1 -1
- package/dist/goals/components/ManageGoals.d.ts +1 -1
- package/dist/goals/components/actions/AccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AddRetirementAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/AmountToSaveAction.d.ts +1 -1
- package/dist/goals/components/actions/BirthdayAction.d.ts +1 -1
- package/dist/goals/components/actions/ChangeAccountAction.d.ts +1 -1
- package/dist/goals/components/actions/ContributionAction.d.ts +1 -1
- package/dist/goals/components/actions/GoalNameAction.d.ts +1 -1
- package/dist/goals/components/actions/InterestRateAction.d.ts +1 -1
- package/dist/goals/components/actions/MonthlyPaymentAction.d.ts +1 -1
- package/dist/goals/components/actions/OriginalBalanceAction.d.ts +1 -1
- package/dist/goals/components/actions/RetirementAgeAction.d.ts +1 -1
- package/dist/goals/components/addgoal/AddGoalListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/CompleteListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/OngoingListItem.d.ts +1 -1
- package/dist/goals/components/managegoals/ReorderGoals.d.ts +1 -1
- package/dist/goals/components/micro/GoalMicroStatusCard.d.ts +1 -1
- package/dist/goals/index.es.js +445 -419
- package/dist/goals/stores/GoalStore.d.ts +2 -1
- package/dist/goals/util/GoalsUtil.d.ts +1 -1
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/api/HelpApi.d.ts +1 -1
- package/dist/help/components/HelpContent.d.ts +1 -1
- package/dist/help/components/HelpList.d.ts +1 -1
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/ContentItem.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/NoImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/components/content/section/Accounts.d.ts +1 -1
- package/dist/help/components/content/section/Budgets.d.ts +1 -1
- package/dist/help/components/content/section/CashFlow.d.ts +1 -1
- package/dist/help/components/content/section/Debts.d.ts +1 -1
- package/dist/help/components/content/section/General.d.ts +1 -1
- package/dist/help/components/content/section/Goals.d.ts +1 -1
- package/dist/help/components/content/section/Insights.d.ts +1 -1
- package/dist/help/components/content/section/Investments.d.ts +1 -1
- package/dist/help/components/content/section/Mobile.d.ts +1 -1
- package/dist/help/components/content/section/NetWorth.d.ts +1 -1
- package/dist/help/components/content/section/Notifications.d.ts +1 -1
- package/dist/help/components/content/section/RecurringTransactions.d.ts +1 -1
- package/dist/help/components/content/section/Spending.d.ts +1 -1
- package/dist/help/components/content/section/Transactions.d.ts +1 -1
- package/dist/help/components/content/section/Trends.d.ts +1 -1
- package/dist/help/components/content/section/index.d.ts +15 -15
- package/dist/help/components/requestsupport/ContactSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/HelpByCategoryList.d.ts +1 -1
- package/dist/help/components/requestsupport/MissingInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsDrawer.d.ts +1 -1
- package/dist/help/components/requestsupport/PopularTopicsList.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupport.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportFooter.d.ts +1 -1
- package/dist/help/components/requestsupport/RequestSupportInstitution.d.ts +1 -1
- package/dist/help/components/requestsupport/SupportSuccessMessage.d.ts +1 -1
- package/dist/help/index.es.js +8 -8
- package/dist/help/store/HelpStore.d.ts +5 -4
- package/dist/help/utils/getAccessibleHelpCategories.d.ts +2 -2
- package/dist/{hooks-CBl85iRr.mjs → hooks-BxkfR-Ff.mjs} +12 -12
- package/dist/insights/components/feed/Header.d.ts +8 -0
- package/dist/insights/components/index.d.ts +4 -0
- package/dist/insights/components/insights/CategoryBudget/types/CategoryBudget.d.ts +1 -0
- package/dist/insights/components/insights/CategorySpendingV2/types/CategorySpendingV2.d.ts +1 -0
- package/dist/insights/components/shared/ChartDrawerTemplate/ChartDrawerTemplate.d.ts +2 -1
- package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +3 -1
- package/dist/insights/components/shared/ChartTransactionWithDrillDown.d.ts +2 -1
- package/dist/insights/components/shared/DonutChartV2.d.ts +13 -0
- package/dist/insights/components/shared/InsightsCard/BeatCardMUI.d.ts +20 -0
- package/dist/insights/components/shared/InsightsCard/CardHeaderMUI.d.ts +11 -0
- package/dist/insights/components/shared/InsightsCard/ContentAndDescriptionMUI.d.ts +17 -0
- package/dist/insights/components/shared/InsightsCard/DescriptionMUI.d.ts +12 -0
- package/dist/insights/components/shared/InsightsCard/MiniDescriptionMUI.d.ts +9 -0
- package/dist/insights/components/shared/StatusIndicator.d.ts +1 -1
- package/dist/insights/components/shared/TransactionCard.d.ts +14 -0
- package/dist/insights/index.es.js +1361 -1081
- package/dist/insights/store/BeatStore.d.ts +1 -1
- package/dist/investments/InvestmentsWidget.d.ts +1 -1
- package/dist/investments/api/HoldingApi.d.ts +1 -1
- package/dist/investments/components/allocation/util/createInvestementsAllocationData.d.ts +2 -2
- package/dist/investments/index.es.js +258 -258
- package/dist/investments/stores/HoldingStore.d.ts +2 -1
- package/dist/investments/util/InvestmentUtil.d.ts +1 -1
- package/dist/merchants/api/MerchantApi.d.ts +1 -1
- package/dist/merchants/index.es.js +16 -16
- package/dist/merchants/stores/MerchantStore.d.ts +2 -1
- package/dist/microinsights/InsightsMicroWidget.d.ts +1 -1
- package/dist/microinsights/beaticons/AreaChartIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/AverageSpendComparisonIcon.d.ts +3 -0
- package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +5 -1
- package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +0 -2
- package/dist/microinsights/beaticons/index.d.ts +3 -0
- package/dist/microinsights/cards/InsightCard.d.ts +1 -1
- package/dist/microinsights/carousel/BeatList.d.ts +1 -1
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -1
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +1 -1
- package/dist/microinsights/constants/Analytics.d.ts +1 -1
- package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -1
- package/dist/microinsights/context/hooks.d.ts +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +1 -1
- package/dist/microinsights/stores/CopyStore.d.ts +1 -1
- package/dist/microinsights/stores/InsightsMicroWidgetStore.d.ts +1 -1
- package/dist/microinsights/utils/DataSeries.d.ts +1 -1
- package/dist/microinsights/utils/colorType.d.ts +22 -0
- package/dist/networth/NetWorthWidget.d.ts +1 -1
- package/dist/networth/components/micro/NetworthData.d.ts +1 -1
- package/dist/networth/components/micro/ZeroState.d.ts +1 -1
- package/dist/networth/index.es.js +181 -174
- package/dist/networth/stores/NetWorthStore.d.ts +2 -1
- package/dist/networth/types/NetWorth.d.ts +1 -1
- package/dist/networth/utils/NetWorthUtils.d.ts +1 -1
- package/dist/notifications/components/NotificationBadge.d.ts +1 -1
- package/dist/notifications/components/NotificationCard.d.ts +1 -1
- package/dist/notifications/components/NotificationDrawer.d.ts +1 -1
- package/dist/notifications/components/NotificationList.d.ts +2 -1
- package/dist/notifications/index.es.js +104 -92
- package/dist/notifications/stores/NotificationStore.d.ts +2 -1
- package/dist/notifications/utils/NotificationUtils.d.ts +2 -1
- package/dist/recurringtransactions/RecurringTransactionsMiniWidget.d.ts +1 -1
- package/dist/recurringtransactions/RecurringTransactionsWidget.d.ts +1 -1
- package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -1
- package/dist/recurringtransactions/components/PaymentSchedule.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceList.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurrenceRow.d.ts +1 -1
- package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/actions/PaymentScheduleAction.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/MerchantLogosRow.d.ts +1 -1
- package/dist/recurringtransactions/components/micro/OverlappingMerchantLogos.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/AddRecurringTransactionDetails.d.ts +1 -1
- package/dist/recurringtransactions/components/shared/recurringsettings/RecurringRow.d.ts +1 -1
- package/dist/recurringtransactions/index.es.js +477 -451
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -1
- package/dist/recurringtransactions/util/RecurringTransactions.d.ts +1 -1
- package/dist/repeatingTransactions-DHIG94pi.mjs +4 -0
- package/dist/settings/NotificationSettingsWidget.d.ts +1 -1
- package/dist/settings/SettingsWidget.d.ts +1 -1
- package/dist/settings/TransactionRulesWidget.d.ts +1 -1
- package/dist/settings/api/SettingsApi.d.ts +1 -2
- package/dist/settings/components/devices/DeviceDialog.d.ts +1 -1
- package/dist/settings/components/devices/DeviceList.d.ts +1 -1
- package/dist/settings/components/devices/DeviceTable.d.ts +1 -1
- package/dist/settings/components/notifications/AccountNotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/AccountProfileListItem.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationProfile.d.ts +1 -1
- package/dist/settings/components/notifications/NotificationSettings.d.ts +1 -1
- package/dist/settings/components/transactionrules/actions/EditRuleAction.d.ts +1 -1
- package/dist/settings/index.es.js +314 -323
- package/dist/settings/stores/SettingsStore.d.ts +3 -2
- package/dist/settings/util/Notifications.d.ts +1 -1
- package/dist/spending/SpendingMiniWidget.d.ts +1 -1
- package/dist/spending/SpendingWidget.d.ts +1 -1
- package/dist/spending/index.es.js +167 -166
- package/dist/spending/utils/SpendingData.d.ts +1 -1
- package/dist/transactions/TransactionWidget.d.ts +1 -1
- package/dist/transactions/api/TransactionApi.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -1
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -1
- package/dist/transactions/components/shared/getEmbeddedInstanceSlotByBeatTemplates.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/FlagTransaction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionAmountHeader.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/AddMerchantBudgetAction.d.ts +13 -0
- package/dist/transactions/components/shared/transactiondetails/actions/CategoryAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DateAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/DeleteLogoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/HideAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/MemoAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/SplitAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/TagsAction.d.ts +1 -1
- package/dist/transactions/components/shared/transactiondetails/actions/index.d.ts +1 -0
- package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitManager.d.ts +1 -1
- package/dist/transactions/components/splitmanager/SplitRow.d.ts +1 -1
- package/dist/transactions/components/tagmanager/TagRow.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/EditCategoryAction.d.ts +1 -1
- package/dist/transactions/components/transactionwidget/actions/ExportCsvAction.d.ts +1 -1
- package/dist/transactions/constants/Actions.d.ts +4 -3
- package/dist/transactions/constants/Transaction.d.ts +1 -1
- package/dist/transactions/index.es.js +195 -187
- package/dist/transactions/stores/TransactionStore.d.ts +2 -1
- package/dist/transactions/stores/UiStore.d.ts +1 -1
- package/dist/transactions/utils/Filters.d.ts +1 -1
- package/dist/transactions/utils/Transactions.d.ts +1 -1
- package/dist/transactions/utils/buildDetailedTransactions.d.ts +2 -2
- package/dist/transactions/utils/exportTransactionsToCSV.d.ts +1 -1
- package/dist/transactions/utils/sortAndFilterTransactions.d.ts +1 -1
- package/dist/trends/TrendsFullWidget.d.ts +1 -1
- package/dist/trends/TrendsMiniWidget.d.ts +1 -1
- package/dist/trends/TrendsWidget.d.ts +1 -1
- package/dist/trends/components/CategoriesList.d.ts +1 -1
- package/dist/trends/components/CategoriesListItem.d.ts +1 -1
- package/dist/trends/components/CategoryDetails.d.ts +3 -0
- package/dist/trends/components/TrendsChartTotals.d.ts +1 -1
- package/dist/trends/components/TrendsInsights.d.ts +1 -1
- package/dist/trends/components/trendstable/AccessibleSortIcon.d.ts +13 -0
- package/dist/trends/components/trendstable/TrendsTable.d.ts +1 -1
- package/dist/trends/index.es.js +817 -764
- package/dist/trends/stores/TrendsStore.d.ts +2 -1
- package/dist/trends/utils/SpendingData.d.ts +1 -1
- package/dist/trends/utils/TrendsData.d.ts +1 -1
- package/dist/trends/utils/TrendsTable.d.ts +1 -1
- package/dist/trends/utils/TrendsWidget.d.ts +7 -0
- package/dist/trends/utils/shared.d.ts +1 -1
- package/dist/{useAccountDisplayName-b2xxcD0C.mjs → useAccountDisplayName-DKwT1mWv.mjs} +1 -1
- package/dist/{useCombineEvents-ARuNN9Xh.mjs → useCombineEvents-Bqojlv8q.mjs} +3 -3
- package/dist/{useInsightsEnabled-Dd-AfsqC.mjs → useInsightsEnabled-DL_oNyI0.mjs} +1 -1
- package/dist/{useWidgetLoadTimer-DmNCCLa-.mjs → useWidgetLoadTimer-DgN1bTyu.mjs} +1 -1
- package/package.json +17 -10
- package/dist/AccountDetailsHeader-Bn2E0Qjk.mjs +0 -95
- package/dist/AccountListItem-k63LpVBs.mjs +0 -90
- package/dist/Accounts-CuE8aSZN.mjs +0 -27
- package/dist/BudgetUtil-BZiGckNY.mjs +0 -238
- package/dist/CashflowStore-naOtJcwo.mjs +0 -91
- package/dist/CurrencyInput-BEB3FS70.mjs +0 -85
- package/dist/Dialog-jmgGw5WA.mjs +0 -58
- package/dist/GlobalAccountFilter-CIF-aT3F.mjs +0 -316
- package/dist/GoalStore-BjHKNAVm.mjs +0 -421
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-CnscUFUG.mjs +0 -580
- package/dist/Loader-icSc5MlE.mjs +0 -24
- package/dist/Localization-2MODESHW.mjs +0 -30
- package/dist/MicroWidgetContainer-CBRk9KG-.mjs +0 -45
- package/dist/MiniWidgetContainer-CXQcSWSl.mjs +0 -56
- package/dist/Notification-Bs1fdbzI.mjs +0 -95
- package/dist/RecurringTransactions-DlKYwpfK.mjs +0 -296
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/SpendingLegend-Bld71d7q.mjs +0 -193
- package/dist/StatusIndicator-CNMQeYyJ.mjs +0 -55
- package/dist/TransactionDetails-Lvt9GCU5.mjs +0 -1194
- package/dist/TransactionList-BDffKJMO.mjs +0 -204
- package/dist/User-DS18cMaz.mjs +0 -237
- package/dist/ViewMoreMicroCard-YHRLl08A.mjs +0 -1152
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/types/SpendingPlan.d.ts +0 -44
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/trends/components/CategoryDetailDrawer.d.ts +0 -7
- /package/dist/{common → core}/types/Account.d.ts +0 -0
- /package/dist/{common → core}/types/Cashflow.d.ts +0 -0
- /package/dist/{common → core}/types/Category.d.ts +0 -0
- /package/dist/{common → core}/types/Client.d.ts +0 -0
- /package/dist/{common → core}/types/Date.d.ts +0 -0
- /package/dist/{common → core}/types/Debt.d.ts +0 -0
- /package/dist/{common → core}/types/Global.d.ts +0 -0
- /package/dist/{common → core}/types/GlobalCopy.d.ts +0 -0
- /package/dist/{common → core}/types/Goal.d.ts +0 -0
- /package/dist/{common → core}/types/Handlers.d.ts +0 -0
- /package/dist/{common → core}/types/Help.d.ts +0 -0
- /package/dist/{common → core}/types/Holding.d.ts +0 -0
- /package/dist/{common → core}/types/Institution.d.ts +0 -0
- /package/dist/{common → core}/types/LocalizedContent.d.ts +0 -0
- /package/dist/{common → core}/types/Merchant.d.ts +0 -0
- /package/dist/{common → core}/types/RepeatingTransaction.d.ts +0 -0
- /package/dist/{common → core}/types/ScheduledPayment.d.ts +0 -0
- /package/dist/{common → core}/types/ScreenSize.d.ts +0 -0
- /package/dist/{common → core}/types/Transaction.d.ts +0 -0
- /package/dist/{common → core}/types/User.d.ts +0 -0
- /package/dist/{common → core}/types/Widgets.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountFilterCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountTypeCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AccountsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/AnalyticsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CategoryCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/ConnectCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/CurrencyInputCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/DateRangePickerCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/FinstrongCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/GoalsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/HelpCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InsightsFeedCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/InvestmentsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/MicroInsightsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NetWorthCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/NotificationsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/SettingsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/TransactionsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/TrendsCopy.d.ts +0 -0
- /package/dist/{common → core}/types/localization/index.d.ts +0 -0
|
@@ -1,60 +1,61 @@
|
|
|
1
1
|
import { jsxs as o, Fragment as B, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import h, { useState as Q } from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
|
-
import { addMonths as
|
|
4
|
+
import { addMonths as Ve } from "date-fns/addMonths";
|
|
5
5
|
import { startOfToday as W } from "date-fns/startOfToday";
|
|
6
6
|
import D from "@mui/material/Box";
|
|
7
7
|
import v from "@mui/material/Divider";
|
|
8
8
|
import s from "@mui/material/Stack";
|
|
9
9
|
import se from "@mui/material/styles/useTheme";
|
|
10
|
-
import { Text as m, P as N, Icon as
|
|
11
|
-
import { G as
|
|
12
|
-
import { C as R } from "../CurrencyText-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { b as
|
|
18
|
-
import { M as Je } from "../MiniWidgetContainer-
|
|
10
|
+
import { Text as m, P as N, Icon as M, InstitutionLogo as ye, H2 as de, H3 as Ye } from "@mxenabled/mxui";
|
|
11
|
+
import { G as Qe, t as me, u as L, p as ce, d as Ne, b as P, i as U, g as ke, a as Ke, h as Oe, o as Xe } from "../hooks-BxkfR-Ff.mjs";
|
|
12
|
+
import { C as R } from "../CurrencyText-CA-E5N_y.mjs";
|
|
13
|
+
import { I as ue } from "../CashflowStore-CeAzChyD.mjs";
|
|
14
|
+
import { C as Vn } from "../CashflowStore-CeAzChyD.mjs";
|
|
15
|
+
import { u as pe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
16
|
+
import { L as Z } from "../Loader-D3rjKx72.mjs";
|
|
17
|
+
import { b as $ } from "../Localization-CPkpIwIx.mjs";
|
|
18
|
+
import { M as Je } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
|
|
19
19
|
import { E as Ze } from "../EmptyState-DHAkGsjk.mjs";
|
|
20
|
-
import { u as
|
|
21
|
-
import { R as et } from "../RecurringSettings-
|
|
20
|
+
import { u as Fe } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
21
|
+
import { R as et } from "../RecurringSettings-BN9H5ALr.mjs";
|
|
22
22
|
import tt from "@mui/material/Tabs";
|
|
23
|
-
import
|
|
23
|
+
import Ce from "@mui/material/Tab";
|
|
24
24
|
import { getUnixTime as z } from "date-fns/getUnixTime";
|
|
25
25
|
import J from "@mui/material/List";
|
|
26
26
|
import ee from "@mui/material/ListItem";
|
|
27
|
-
import { A as nt } from "../AccountListItem-
|
|
28
|
-
import { f as q, D as
|
|
27
|
+
import { A as nt } from "../AccountListItem-D9WJDbZ1.mjs";
|
|
28
|
+
import { f as q, D as V } from "../DateFormats-BMpMrZpW.mjs";
|
|
29
29
|
import ot from "@mui/material/ListSubheader";
|
|
30
|
-
import { f as
|
|
31
|
-
import { isAfter as
|
|
30
|
+
import { f as X } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
31
|
+
import { isAfter as He } from "date-fns/isAfter";
|
|
32
32
|
import { isBefore as We } from "date-fns/isBefore";
|
|
33
|
-
import { isToday as
|
|
33
|
+
import { isToday as $e } from "date-fns/isToday";
|
|
34
34
|
import { addDays as _e } from "date-fns/addDays";
|
|
35
|
-
import { alpha as
|
|
35
|
+
import { alpha as it, keyframes as at } from "@mui/material/styles";
|
|
36
36
|
import { DataGridPro as rt } from "@mui/x-data-grid-pro";
|
|
37
|
-
import { T as
|
|
38
|
-
import
|
|
39
|
-
import { M as st, S as ct, i as lt, d as
|
|
40
|
-
import { D as
|
|
41
|
-
import { subDays as
|
|
37
|
+
import { T as we } from "../TabContentContainer-j01JYR_7.mjs";
|
|
38
|
+
import G from "@mui/material/Button";
|
|
39
|
+
import { M as st, S as ct, i as lt, d as Se, c as dt } from "../ManageIncome-Cc-wba0I.mjs";
|
|
40
|
+
import { D as Ge } from "../Drawer-Bbe4AMB1.mjs";
|
|
41
|
+
import { subDays as Me } from "date-fns/subDays";
|
|
42
42
|
import { endOfToday as mt } from "date-fns/endOfToday";
|
|
43
|
-
import { W as ut } from "../WidgetContainer-
|
|
44
|
-
import { A as
|
|
45
|
-
import { A as
|
|
46
|
-
import { formatISO as
|
|
43
|
+
import { W as ut } from "../WidgetContainer-B7xDq2bM.mjs";
|
|
44
|
+
import { A as Ie } from "../Analytics-BYItVAe-.mjs";
|
|
45
|
+
import { A as K } from "../Account-BiB1F8lL.mjs";
|
|
46
|
+
import { formatISO as pt } from "date-fns/formatISO";
|
|
47
47
|
import { fromUnixTime as De } from "date-fns/fromUnixTime";
|
|
48
|
-
import { startOfMonth as
|
|
49
|
-
import { S as ft, a as gt } from "../
|
|
50
|
-
import {
|
|
51
|
-
import { h as
|
|
52
|
-
import { F as
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
import { startOfMonth as ht } from "date-fns/startOfMonth";
|
|
49
|
+
import { S as ft, a as gt } from "../StatusIndicator-4tWnjeKS.mjs";
|
|
50
|
+
import { c as ve } from "../RecurringTransactions-BCJp-Nap.mjs";
|
|
51
|
+
import { h as bt } from "../DateUtil-wcYTmDRD.mjs";
|
|
52
|
+
import { F as xt, R as Ae } from "../RepeatingTransaction-DF4vJn_v.mjs";
|
|
53
|
+
import { F as yt, A as j } from "../Fetch-B6tMJC1r.mjs";
|
|
54
|
+
const Y = () => {
|
|
55
|
+
if (!h.useContext(Qe))
|
|
55
56
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
56
57
|
return me().uiStore;
|
|
57
|
-
},
|
|
58
|
+
}, Ct = ({ remaining: i }) => {
|
|
58
59
|
const { cashflow: n } = L();
|
|
59
60
|
return /* @__PURE__ */ o(B, { children: [
|
|
60
61
|
/* @__PURE__ */ e(
|
|
@@ -62,88 +63,88 @@ const V = () => {
|
|
|
62
63
|
{
|
|
63
64
|
sx: {
|
|
64
65
|
borderRadius: "1px",
|
|
65
|
-
backgroundColor:
|
|
66
|
+
backgroundColor: i < 0 ? "error.main" : i > 0 ? "success.main" : "warning.main",
|
|
66
67
|
height: 6,
|
|
67
68
|
width: 6
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
),
|
|
71
72
|
/* @__PURE__ */ e(m, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: n.remaining_cash }),
|
|
72
|
-
/* @__PURE__ */ e(R, { amount:
|
|
73
|
+
/* @__PURE__ */ e(R, { amount: i, bold: !0, sx: { fontSize: 12 } })
|
|
73
74
|
] });
|
|
74
|
-
},
|
|
75
|
-
const
|
|
75
|
+
}, he = T(Ct), _t = () => {
|
|
76
|
+
const i = se(), { availableWidth: n } = ce(), { isMobile: t } = pe(), { visibleCashAccounts: a, visibleCashBalance: f } = Ne(), { selectedAccountGuids: u } = P(), { cashflow: c } = L(), {
|
|
76
77
|
daysUntilNextIncome: l,
|
|
77
78
|
expensesTilNextIncome: g,
|
|
78
79
|
selectedCashAccounts: r,
|
|
79
|
-
setNextIncome:
|
|
80
|
+
setNextIncome: p,
|
|
80
81
|
setSelectedCashAccounts: d,
|
|
81
82
|
setUpcomingExpenses: x
|
|
82
|
-
} =
|
|
83
|
-
|
|
83
|
+
} = Y(), { isDataLoaded: _, nextIncomeRecurrence: w, upcomingExpenses: A } = U();
|
|
84
|
+
h.useEffect(() => {
|
|
84
85
|
d(
|
|
85
|
-
|
|
86
|
+
a.filter((y) => u.includes(y.guid))
|
|
86
87
|
);
|
|
87
|
-
}, [
|
|
88
|
-
|
|
89
|
-
}, [
|
|
90
|
-
const
|
|
91
|
-
() =>
|
|
88
|
+
}, [a, u]), h.useEffect(() => {
|
|
89
|
+
w && p(w), x(A);
|
|
90
|
+
}, [w, A]);
|
|
91
|
+
const S = h.useMemo(
|
|
92
|
+
() => a.filter((y) => u.includes(y.guid)).reduce((y, I) => y + (I?.balance || 0), 0),
|
|
92
93
|
[u, A]
|
|
93
|
-
), k =
|
|
94
|
-
() => g.filter((
|
|
94
|
+
), k = h.useMemo(
|
|
95
|
+
() => g.filter((y) => u.includes(y.accountGuid || "")).reduce((y, I) => y + I.amount, 0),
|
|
95
96
|
[u, g]
|
|
96
|
-
), b =
|
|
97
|
-
() =>
|
|
98
|
-
[
|
|
97
|
+
), b = h.useMemo(
|
|
98
|
+
() => S - k,
|
|
99
|
+
[S, k]
|
|
99
100
|
);
|
|
100
101
|
return _ ? /* @__PURE__ */ e(D, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 710 ? /* @__PURE__ */ o(
|
|
101
102
|
s,
|
|
102
103
|
{
|
|
103
|
-
border: `1px solid ${
|
|
104
|
+
border: `1px solid ${i.palette.divider}`,
|
|
104
105
|
borderRadius: 1,
|
|
105
106
|
direction: "row",
|
|
106
107
|
justifyContent: "space-between",
|
|
107
108
|
px: 24,
|
|
108
109
|
children: [
|
|
109
110
|
/* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
|
|
110
|
-
/* @__PURE__ */ e(R, { amount:
|
|
111
|
-
/* @__PURE__ */ e(N, { variant: "
|
|
111
|
+
/* @__PURE__ */ e(R, { amount: S, variant: "h2" }),
|
|
112
|
+
/* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: $(
|
|
112
113
|
c.total_cash_accounts,
|
|
113
114
|
r.length
|
|
114
115
|
) })
|
|
115
116
|
] }),
|
|
116
|
-
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(
|
|
117
|
+
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(M, { name: "remove" }) }),
|
|
117
118
|
/* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
|
|
118
|
-
/* @__PURE__ */ e(R, { amount: k, variant: "
|
|
119
|
-
/* @__PURE__ */ e(N, { variant: "
|
|
119
|
+
/* @__PURE__ */ e(R, { amount: k, variant: "h2" }),
|
|
120
|
+
/* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: $(c.expenses_due, g.length) })
|
|
120
121
|
] }),
|
|
121
|
-
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(
|
|
122
|
+
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(M, { name: "equal" }) }),
|
|
122
123
|
/* @__PURE__ */ o(s, { pb: 14, pr: 24, pt: 12, children: [
|
|
123
|
-
/* @__PURE__ */ e(R, { amount: b, variant: "
|
|
124
|
+
/* @__PURE__ */ e(R, { amount: b, variant: "h2" }),
|
|
124
125
|
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
125
|
-
/* @__PURE__ */ e(N, { variant: "
|
|
126
|
+
/* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: c.available_to_spend }),
|
|
126
127
|
/* @__PURE__ */ e(ue, { body: c.tooltip_body, title: c.tooltip_title })
|
|
127
128
|
] })
|
|
128
129
|
] }),
|
|
129
|
-
/* @__PURE__ */ e(s, { borderLeft: `1px solid ${
|
|
130
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
131
|
-
/* @__PURE__ */ e(N, { variant: "
|
|
130
|
+
/* @__PURE__ */ e(s, { borderLeft: `1px solid ${i.palette.divider}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(B, { children: [
|
|
131
|
+
/* @__PURE__ */ e(m, { variant: "h2", children: $(c.days, l) }),
|
|
132
|
+
/* @__PURE__ */ e(N, { variant: "caption", whiteSpace: "nowrap", children: c.next_paycheck })
|
|
132
133
|
] }) })
|
|
133
134
|
]
|
|
134
135
|
}
|
|
135
|
-
) : /* @__PURE__ */ o(s, { border: `1px solid ${
|
|
136
|
+
) : /* @__PURE__ */ o(s, { border: `1px solid ${i.palette.divider}`, borderRadius: 1, children: [
|
|
136
137
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
137
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
138
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: $(
|
|
138
139
|
c.total_cash_accounts,
|
|
139
140
|
r.length
|
|
140
141
|
) }),
|
|
141
|
-
/* @__PURE__ */ e(R, { amount: f, bold: !0, variant: "
|
|
142
|
+
/* @__PURE__ */ e(R, { amount: f, bold: !0, variant: "caption" })
|
|
142
143
|
] }),
|
|
143
144
|
/* @__PURE__ */ e(v, {}),
|
|
144
145
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
145
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
146
|
-
/* @__PURE__ */ e(R, { amount: k, bold: !0, symbol: "-", variant: "
|
|
146
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: $(c.expenses_due, g.length) }),
|
|
147
|
+
/* @__PURE__ */ e(R, { amount: k, bold: !0, symbol: "-", variant: "caption" })
|
|
147
148
|
] }),
|
|
148
149
|
/* @__PURE__ */ e(v, {}),
|
|
149
150
|
/* @__PURE__ */ e(
|
|
@@ -157,24 +158,24 @@ const V = () => {
|
|
|
157
158
|
justifyContent: "space-between",
|
|
158
159
|
px: 16,
|
|
159
160
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
160
|
-
children: /* @__PURE__ */ e(
|
|
161
|
+
children: /* @__PURE__ */ e(he, { remaining: b })
|
|
161
162
|
}
|
|
162
163
|
),
|
|
163
164
|
/* @__PURE__ */ e(v, {}),
|
|
164
165
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
165
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
166
|
-
/* @__PURE__ */ e(m, { bold: !0, variant: "
|
|
166
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: c.next_paycheck }),
|
|
167
|
+
/* @__PURE__ */ e(m, { bold: !0, variant: "caption", children: $(c.days, l) })
|
|
167
168
|
] })
|
|
168
169
|
] }) }) : /* @__PURE__ */ e(Z, { height: t ? 210 : 120 });
|
|
169
|
-
},
|
|
170
|
-
onPrimaryCtaClick:
|
|
170
|
+
}, wt = T(_t), St = ({
|
|
171
|
+
onPrimaryCtaClick: i,
|
|
171
172
|
onSecondaryCtaClick: n,
|
|
172
173
|
sx: t = {}
|
|
173
174
|
}) => {
|
|
174
|
-
const { cashflow:
|
|
175
|
-
|
|
176
|
-
g({ start: W(), end:
|
|
177
|
-
}, []),
|
|
175
|
+
const { cashflow: a } = L(), { isInitialized: f } = P(), { loadRepeatingTransactionData: u, income: c, isDataLoaded: l, setDateRange: g } = U();
|
|
176
|
+
h.useEffect(() => {
|
|
177
|
+
g({ start: W(), end: Ve(W(), 1) }), l || u().finally();
|
|
178
|
+
}, []), Fe({
|
|
178
179
|
widgetName: "CashflowMiniWidget",
|
|
179
180
|
isLoaded: l
|
|
180
181
|
});
|
|
@@ -183,28 +184,29 @@ const V = () => {
|
|
|
183
184
|
Je,
|
|
184
185
|
{
|
|
185
186
|
className: "mx-exp-cashflow-miniwidget",
|
|
186
|
-
onPrimaryCtaClick:
|
|
187
|
-
primaryCtaLabel:
|
|
188
|
-
|
|
187
|
+
onPrimaryCtaClick: i,
|
|
188
|
+
primaryCtaLabel: a.primary_cta,
|
|
189
|
+
primaryCtaLabelAria: a.primary_cta_aria,
|
|
190
|
+
subTitle: r || !l ? void 0 : a.sub_title,
|
|
189
191
|
sx: { height: "100%", ...t },
|
|
190
|
-
title:
|
|
192
|
+
title: a.title,
|
|
191
193
|
children: [
|
|
192
194
|
!l && /* @__PURE__ */ e(Z, {}),
|
|
193
195
|
l && (r ? /* @__PURE__ */ e(
|
|
194
196
|
Ze,
|
|
195
197
|
{
|
|
196
|
-
header:
|
|
198
|
+
header: a.create,
|
|
197
199
|
icon: "local_atm",
|
|
198
200
|
onClick: n,
|
|
199
|
-
primaryButton:
|
|
201
|
+
primaryButton: a.add_income,
|
|
200
202
|
primaryButtonStartIcon: "add",
|
|
201
|
-
subText:
|
|
203
|
+
subText: a.create_description
|
|
202
204
|
}
|
|
203
|
-
) : /* @__PURE__ */ e(
|
|
205
|
+
) : /* @__PURE__ */ e(wt, {}))
|
|
204
206
|
]
|
|
205
207
|
}
|
|
206
208
|
) : /* @__PURE__ */ e(Z, {});
|
|
207
|
-
},
|
|
209
|
+
}, jn = T(St), It = ({ remaining: i }) => /* @__PURE__ */ e(
|
|
208
210
|
ee,
|
|
209
211
|
{
|
|
210
212
|
sx: {
|
|
@@ -217,28 +219,28 @@ const V = () => {
|
|
|
217
219
|
borderBottomRightRadius: "3px",
|
|
218
220
|
minHeight: "auto"
|
|
219
221
|
},
|
|
220
|
-
children: /* @__PURE__ */ e(
|
|
222
|
+
children: /* @__PURE__ */ e(he, { remaining: i })
|
|
221
223
|
}
|
|
222
224
|
);
|
|
223
|
-
var te = /* @__PURE__ */ ((
|
|
224
|
-
const Dt = ({ recurrence:
|
|
225
|
+
var te = /* @__PURE__ */ ((i) => (i.EXPENSE = "expense", i.INCOME = "income", i))(te || {});
|
|
226
|
+
const Dt = ({ recurrence: i }) => /* @__PURE__ */ o(B, { children: [
|
|
225
227
|
/* @__PURE__ */ o(ee, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
226
228
|
/* @__PURE__ */ o(s, { alignItems: "center", height: 32, width: 32, children: [
|
|
227
|
-
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: q(
|
|
228
|
-
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: q(
|
|
229
|
+
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: q(i.expectedDate, V.MONTH) }),
|
|
230
|
+
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 11 }, children: q(i.expectedDate, V.DAY) })
|
|
229
231
|
] }),
|
|
230
|
-
/* @__PURE__ */ e(m, { sx: { flexGrow: 1, fontSize: 13 }, children:
|
|
232
|
+
/* @__PURE__ */ e(m, { sx: { flexGrow: 1, fontSize: 13 }, children: i.name }),
|
|
231
233
|
/* @__PURE__ */ e(
|
|
232
234
|
R,
|
|
233
235
|
{
|
|
234
|
-
amount:
|
|
236
|
+
amount: i.amount,
|
|
235
237
|
bold: !0,
|
|
236
238
|
sx: { textAlign: "right", fontSize: 13 }
|
|
237
239
|
}
|
|
238
240
|
)
|
|
239
241
|
] }),
|
|
240
242
|
/* @__PURE__ */ e(v, {})
|
|
241
|
-
] }), Ee = T(Dt), vt = ({ total:
|
|
243
|
+
] }), Ee = T(Dt), vt = ({ total: i, type: n }) => {
|
|
242
244
|
const { cashflow: t } = L();
|
|
243
245
|
return /* @__PURE__ */ o(B, { children: [
|
|
244
246
|
/* @__PURE__ */ o(
|
|
@@ -257,32 +259,32 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
257
259
|
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 12 }, children: n === te.EXPENSE ? t.expenses : t.income }),
|
|
258
260
|
/* @__PURE__ */ o(m, { bold: !0, sx: { fontSize: 13 }, children: [
|
|
259
261
|
n === te.EXPENSE ? "-" : "+",
|
|
260
|
-
|
|
262
|
+
X(i, "0,0.00")
|
|
261
263
|
] })
|
|
262
264
|
]
|
|
263
265
|
}
|
|
264
266
|
),
|
|
265
267
|
/* @__PURE__ */ e(v, {})
|
|
266
268
|
] });
|
|
267
|
-
}, Te = T(vt), re = (
|
|
268
|
-
const { availableWidth:
|
|
269
|
+
}, Te = T(vt), re = (i, n) => (t) => t.accountGuid === i.guid && ($e(t.expectedDate) || He(t.expectedDate, n.start)) && We(t.expectedDate, n.end), At = () => {
|
|
270
|
+
const { availableWidth: i } = ce(), { cashflow: n } = L(), { upcomingExpenses: t, upcomingIncome: a } = U(), { dateRange: f, selectedCashAccounts: u } = Y();
|
|
269
271
|
return /* @__PURE__ */ o(s, { children: [
|
|
270
|
-
/* @__PURE__ */ o(s, { direction:
|
|
272
|
+
/* @__PURE__ */ o(s, { direction: i < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
271
273
|
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
|
|
272
274
|
/* @__PURE__ */ o(m, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: [
|
|
273
|
-
q(f.start,
|
|
275
|
+
q(f.start, V.FULL_MONTH_DAY),
|
|
274
276
|
" -",
|
|
275
277
|
" ",
|
|
276
|
-
q(f.end,
|
|
278
|
+
q(f.end, V.FULL_MONTH_DAY)
|
|
277
279
|
] })
|
|
278
280
|
] }),
|
|
279
281
|
/* @__PURE__ */ e(s, { children: u.map((c) => {
|
|
280
|
-
const l =
|
|
282
|
+
const l = a.filter(re(c, f)).sort((d, x) => z(d.expectedDate) - z(x.expectedDate)), g = t.filter(
|
|
281
283
|
re(c, f)
|
|
282
284
|
), r = l.reduce(
|
|
283
285
|
(d, x) => d + x.amount,
|
|
284
286
|
0
|
|
285
|
-
),
|
|
287
|
+
), p = g.reduce(
|
|
286
288
|
(d, x) => d + x.amount,
|
|
287
289
|
0
|
|
288
290
|
);
|
|
@@ -291,7 +293,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
291
293
|
{
|
|
292
294
|
sx: {
|
|
293
295
|
border: "1px solid",
|
|
294
|
-
borderColor: "
|
|
296
|
+
borderColor: "neutral.light",
|
|
295
297
|
mb: 24,
|
|
296
298
|
borderRadius: 1
|
|
297
299
|
},
|
|
@@ -319,7 +321,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
319
321
|
g.length > 0 && /* @__PURE__ */ e(ee, { children: /* @__PURE__ */ e(
|
|
320
322
|
J,
|
|
321
323
|
{
|
|
322
|
-
subheader: /* @__PURE__ */ e(Te, { total:
|
|
324
|
+
subheader: /* @__PURE__ */ e(Te, { total: p, type: te.EXPENSE }),
|
|
323
325
|
sx: { width: "100%" },
|
|
324
326
|
children: g.map((d) => /* @__PURE__ */ e(Ee, { recurrence: d }, d.repeatingTransactionGuid))
|
|
325
327
|
}
|
|
@@ -327,7 +329,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
327
329
|
/* @__PURE__ */ e(
|
|
328
330
|
It,
|
|
329
331
|
{
|
|
330
|
-
remaining: (c.available_balance || c.balance || 0) + r -
|
|
332
|
+
remaining: (c.available_balance || c.balance || 0) + r - p
|
|
331
333
|
}
|
|
332
334
|
)
|
|
333
335
|
]
|
|
@@ -337,16 +339,16 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
337
339
|
}) })
|
|
338
340
|
] });
|
|
339
341
|
}, Et = T(At), Tt = () => {
|
|
340
|
-
const { availableWidth:
|
|
342
|
+
const { availableWidth: i } = ce(), n = se(), { cashflow: t } = L(), { upcomingExpenses: a, upcomingIncome: f } = U(), { dateRange: u, selectedCashAccounts: c } = Y(), l = [
|
|
341
343
|
{
|
|
342
344
|
field: "account",
|
|
343
345
|
flex: 1.5,
|
|
344
346
|
headerName: t.accounts,
|
|
345
|
-
renderCell: ({ value: { name: r, nickname:
|
|
346
|
-
const _ =
|
|
347
|
+
renderCell: ({ value: { name: r, nickname: p, institution_guid: d, account_number: x } }) => {
|
|
348
|
+
const _ = p || r;
|
|
347
349
|
return /* @__PURE__ */ o(s, { alignItems: "center", flexDirection: "row", gap: 12, children: [
|
|
348
350
|
/* @__PURE__ */ e(
|
|
349
|
-
|
|
351
|
+
ye,
|
|
350
352
|
{
|
|
351
353
|
alt: t.institution_logo,
|
|
352
354
|
institutionGuid: d || "",
|
|
@@ -362,21 +364,21 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
362
364
|
flex: 1,
|
|
363
365
|
headerName: t.balance,
|
|
364
366
|
type: "number",
|
|
365
|
-
renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "
|
|
367
|
+
renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "body2", children: X(r.value, "0,0.00") })
|
|
366
368
|
},
|
|
367
369
|
{
|
|
368
370
|
field: "income",
|
|
369
371
|
flex: 1,
|
|
370
372
|
headerName: t.projected_income,
|
|
371
373
|
type: "number",
|
|
372
|
-
renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "
|
|
374
|
+
renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "body2", children: `+${X(r.value, "0,0.00")}` })
|
|
373
375
|
},
|
|
374
376
|
{
|
|
375
377
|
field: "expenses",
|
|
376
378
|
flex: 1.1,
|
|
377
379
|
headerName: t.projected_expenses,
|
|
378
380
|
type: "number",
|
|
379
|
-
renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "
|
|
381
|
+
renderCell: (r) => /* @__PURE__ */ e(m, { color: n.palette.text.primary, variant: "body2", children: `-${X(r.value, "0,0.00")}` })
|
|
380
382
|
},
|
|
381
383
|
{
|
|
382
384
|
field: "remaining",
|
|
@@ -384,32 +386,32 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
384
386
|
headerName: t.remaining,
|
|
385
387
|
type: "number",
|
|
386
388
|
renderCell: (r) => {
|
|
387
|
-
const
|
|
389
|
+
const p = r.row.balance + r.row.income - r.row.expenses;
|
|
388
390
|
return /* @__PURE__ */ e(
|
|
389
391
|
m,
|
|
390
392
|
{
|
|
391
|
-
color: Math.sign(
|
|
392
|
-
variant: "
|
|
393
|
-
children:
|
|
393
|
+
color: Math.sign(p) === -1 ? n.palette.error.main : n.palette.text.primary,
|
|
394
|
+
variant: "body2",
|
|
395
|
+
children: X(p, "0,0.00")
|
|
394
396
|
}
|
|
395
397
|
);
|
|
396
398
|
}
|
|
397
399
|
}
|
|
398
|
-
], g =
|
|
399
|
-
const
|
|
400
|
+
], g = h.useMemo(() => c.map((r) => {
|
|
401
|
+
const p = a.filter(
|
|
400
402
|
re(r, { start: W(), end: _e(W(), 30) })
|
|
401
|
-
).reduce((_,
|
|
403
|
+
).reduce((_, w) => _ + w.amount, 0), d = f.filter(
|
|
402
404
|
re(r, { start: W(), end: _e(W(), 30) })
|
|
403
|
-
).reduce((_,
|
|
405
|
+
).reduce((_, w) => _ + w.amount, 0), x = (r.balance || 0) + d - p;
|
|
404
406
|
return {
|
|
405
407
|
account: r,
|
|
406
408
|
balance: r.balance || 0,
|
|
407
409
|
id: r.guid,
|
|
408
410
|
income: d,
|
|
409
|
-
expenses:
|
|
411
|
+
expenses: p,
|
|
410
412
|
remaining: x
|
|
411
413
|
};
|
|
412
|
-
}), [c,
|
|
414
|
+
}), [c, a, f]);
|
|
413
415
|
return /* @__PURE__ */ o(
|
|
414
416
|
D,
|
|
415
417
|
{
|
|
@@ -420,7 +422,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
420
422
|
/* @__PURE__ */ o(
|
|
421
423
|
s,
|
|
422
424
|
{
|
|
423
|
-
direction:
|
|
425
|
+
direction: i < 540 ? "column" : "row",
|
|
424
426
|
justifyContent: "space-between",
|
|
425
427
|
mb: 12,
|
|
426
428
|
children: [
|
|
@@ -445,15 +447,15 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
445
447
|
)
|
|
446
448
|
] }),
|
|
447
449
|
/* @__PURE__ */ o(m, { bold: !0, sx: { fontSize: 15, whiteSpace: "normal" }, children: [
|
|
448
|
-
q(u.start,
|
|
450
|
+
q(u.start, V.FULL_MONTH_DAY),
|
|
449
451
|
" -",
|
|
450
452
|
" ",
|
|
451
|
-
q(u.end,
|
|
453
|
+
q(u.end, V.FULL_MONTH_DAY)
|
|
452
454
|
] })
|
|
453
455
|
]
|
|
454
456
|
}
|
|
455
457
|
),
|
|
456
|
-
|
|
458
|
+
i > 650 ? /* @__PURE__ */ e(
|
|
457
459
|
rt,
|
|
458
460
|
{
|
|
459
461
|
columnHeaderHeight: 48,
|
|
@@ -466,12 +468,12 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
466
468
|
rows: g,
|
|
467
469
|
sx: {
|
|
468
470
|
border: "1px solid",
|
|
469
|
-
borderColor: "
|
|
471
|
+
borderColor: "neutral.light",
|
|
470
472
|
borderRadius: 1,
|
|
471
473
|
"& .MuiDataGrid-columnHeader .MuiIconButton-root": {
|
|
472
474
|
color: n.palette.primary.main,
|
|
473
475
|
"&:hover": {
|
|
474
|
-
backgroundColor:
|
|
476
|
+
backgroundColor: it(n.palette.primary.main, 0.1)
|
|
475
477
|
}
|
|
476
478
|
},
|
|
477
479
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
@@ -484,13 +486,13 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
484
486
|
}
|
|
485
487
|
}
|
|
486
488
|
) : g.map((r) => {
|
|
487
|
-
const { name:
|
|
489
|
+
const { name: p, nickname: d, institution_guid: x, account_number: _ } = r.account, w = d || p;
|
|
488
490
|
return /* @__PURE__ */ e(
|
|
489
491
|
J,
|
|
490
492
|
{
|
|
491
493
|
sx: {
|
|
492
494
|
border: "1px solid",
|
|
493
|
-
borderColor: "
|
|
495
|
+
borderColor: "neutral.light",
|
|
494
496
|
borderRadius: 1,
|
|
495
497
|
marginBottom: 24
|
|
496
498
|
},
|
|
@@ -506,16 +508,16 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
506
508
|
children: [
|
|
507
509
|
/* @__PURE__ */ o(s, { alignItems: "center", flexDirection: "row", gap: 8, width: "50%", children: [
|
|
508
510
|
/* @__PURE__ */ e(
|
|
509
|
-
|
|
511
|
+
ye,
|
|
510
512
|
{
|
|
511
513
|
alt: t.institution_logo,
|
|
512
514
|
institutionGuid: x || "",
|
|
513
515
|
size: 16
|
|
514
516
|
}
|
|
515
517
|
),
|
|
516
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
518
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: `${w} ${_ ? `*${_}` : ""}` })
|
|
517
519
|
] }),
|
|
518
|
-
/* @__PURE__ */ e(R, { amount: r.balance, bold: !0, variant: "
|
|
520
|
+
/* @__PURE__ */ e(R, { amount: r.balance, bold: !0, variant: "body2" })
|
|
519
521
|
]
|
|
520
522
|
}
|
|
521
523
|
),
|
|
@@ -529,8 +531,8 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
529
531
|
px: 16,
|
|
530
532
|
py: 12,
|
|
531
533
|
children: [
|
|
532
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
533
|
-
/* @__PURE__ */ e(R, { amount: r.income, bold: !0, symbol: "+", variant: "
|
|
534
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: t.projected_income }),
|
|
535
|
+
/* @__PURE__ */ e(R, { amount: r.income, bold: !0, symbol: "+", variant: "body2" })
|
|
534
536
|
]
|
|
535
537
|
}
|
|
536
538
|
),
|
|
@@ -544,8 +546,8 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
544
546
|
px: 16,
|
|
545
547
|
py: 12,
|
|
546
548
|
children: [
|
|
547
|
-
/* @__PURE__ */ e(m, { variant: "
|
|
548
|
-
/* @__PURE__ */ e(R, { amount: r.expenses, bold: !0, symbol: "-", variant: "
|
|
549
|
+
/* @__PURE__ */ e(m, { variant: "body2", children: t.projected_expenses }),
|
|
550
|
+
/* @__PURE__ */ e(R, { amount: r.expenses, bold: !0, symbol: "-", variant: "body2" })
|
|
549
551
|
]
|
|
550
552
|
}
|
|
551
553
|
),
|
|
@@ -561,7 +563,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
561
563
|
px: 16,
|
|
562
564
|
py: 12,
|
|
563
565
|
sx: { borderBottomLeftRadius: "4px", borderBottomRightRadius: "4px" },
|
|
564
|
-
children: /* @__PURE__ */ e(
|
|
566
|
+
children: /* @__PURE__ */ e(he, { remaining: r.remaining })
|
|
565
567
|
}
|
|
566
568
|
)
|
|
567
569
|
] }) })
|
|
@@ -573,39 +575,39 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
573
575
|
}
|
|
574
576
|
);
|
|
575
577
|
}, Rt = T(Tt), Lt = () => {
|
|
576
|
-
const { cashflow:
|
|
578
|
+
const { cashflow: i } = L(), { isDesktop: n } = pe(), { onEvent: t } = ke(), [a, f] = h.useState(0), u = (c, l) => {
|
|
577
579
|
f(l);
|
|
578
580
|
};
|
|
579
|
-
return
|
|
580
|
-
t(
|
|
581
|
-
}, [
|
|
581
|
+
return h.useEffect(() => {
|
|
582
|
+
t(a === 0 ? "cash_flow_summary" : "cash_flow_details");
|
|
583
|
+
}, [a]), /* @__PURE__ */ o(D, { children: [
|
|
582
584
|
/* @__PURE__ */ o(
|
|
583
585
|
tt,
|
|
584
586
|
{
|
|
585
|
-
"aria-label":
|
|
587
|
+
"aria-label": i.cashflow_summary_and_details,
|
|
586
588
|
centered: !0,
|
|
587
589
|
onChange: u,
|
|
588
590
|
textColor: "primary",
|
|
589
|
-
value:
|
|
591
|
+
value: a,
|
|
590
592
|
variant: "fullWidth",
|
|
591
593
|
children: [
|
|
592
594
|
/* @__PURE__ */ e(
|
|
593
|
-
|
|
595
|
+
Ce,
|
|
594
596
|
{
|
|
595
597
|
"aria-controls": "cashflow-tabpanel-0",
|
|
596
598
|
id: "cashflow-tab-0",
|
|
597
|
-
label:
|
|
599
|
+
label: i.summary,
|
|
598
600
|
sx: {
|
|
599
601
|
textTransform: "none"
|
|
600
602
|
}
|
|
601
603
|
}
|
|
602
604
|
),
|
|
603
605
|
/* @__PURE__ */ e(
|
|
604
|
-
|
|
606
|
+
Ce,
|
|
605
607
|
{
|
|
606
608
|
"aria-controls": "cashflow-tabpanel-1",
|
|
607
609
|
id: "cashflow-tab-1",
|
|
608
|
-
label:
|
|
610
|
+
label: i.details,
|
|
609
611
|
sx: {
|
|
610
612
|
textTransform: "none"
|
|
611
613
|
}
|
|
@@ -615,14 +617,14 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
615
617
|
}
|
|
616
618
|
),
|
|
617
619
|
/* @__PURE__ */ e(D, { sx: { mb: 32 } }),
|
|
618
|
-
/* @__PURE__ */ e(
|
|
619
|
-
/* @__PURE__ */ e(
|
|
620
|
+
/* @__PURE__ */ e(we, { index: 0, name: "cashflow", value: a, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Rt, {}) }) }),
|
|
621
|
+
/* @__PURE__ */ e(we, { index: 1, name: "cashflow", value: a, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Et, {}) }) })
|
|
620
622
|
] });
|
|
621
|
-
}, Nt = T(Lt),
|
|
622
|
-
amount:
|
|
623
|
+
}, Nt = T(Lt), ae = ({
|
|
624
|
+
amount: i,
|
|
623
625
|
isMobile: n = !1,
|
|
624
626
|
isTotal: t = !1,
|
|
625
|
-
label:
|
|
627
|
+
label: a,
|
|
626
628
|
symbol: f,
|
|
627
629
|
tooltip: u
|
|
628
630
|
}) => /* @__PURE__ */ o(
|
|
@@ -634,49 +636,49 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
634
636
|
padding: n ? "14px 16px" : 0,
|
|
635
637
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
636
638
|
children: [
|
|
637
|
-
!n && /* @__PURE__ */ e(R, { amount:
|
|
639
|
+
!n && /* @__PURE__ */ e(R, { amount: i, component: "h2", variant: "h2" }),
|
|
638
640
|
/* @__PURE__ */ o(s, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
|
|
639
|
-
/* @__PURE__ */ e(m, { bold: t, variant: "
|
|
641
|
+
/* @__PURE__ */ e(m, { bold: t, variant: "body2", children: a }),
|
|
640
642
|
u
|
|
641
643
|
] }),
|
|
642
|
-
n && /* @__PURE__ */ e(R, { amount:
|
|
644
|
+
n && /* @__PURE__ */ e(R, { amount: i, component: "h2", symbol: f, variant: "body2" })
|
|
643
645
|
]
|
|
644
646
|
}
|
|
645
|
-
), Re = (
|
|
646
|
-
const { availableWidth:
|
|
647
|
+
), Re = (i, n) => (t) => t.accountGuid && i.includes(t.accountGuid) && ($e(t.expectedDate) || He(t.expectedDate, n.start)) && We(t.expectedDate, n.end), kt = () => {
|
|
648
|
+
const { availableWidth: i } = ce(), { cashflow: n } = L(), { income: t, isDataLoaded: a, upcomingExpenses: f, upcomingIncome: u } = U(), { selectedAccountGuids: c } = P(), { dateRange: l, selectedCashAccounts: g } = Y(), [r, p] = h.useState(!1), d = h.useMemo(
|
|
647
649
|
() => f.filter(Re(c, l)),
|
|
648
650
|
[l, c, f]
|
|
649
|
-
), x =
|
|
651
|
+
), x = h.useMemo(
|
|
650
652
|
() => u.filter(Re(c, l)),
|
|
651
653
|
[l, c, u]
|
|
652
|
-
), _ =
|
|
653
|
-
() => g.reduce((
|
|
654
|
+
), _ = h.useMemo(
|
|
655
|
+
() => g.reduce((y, I) => y + (I?.balance || 0), 0),
|
|
654
656
|
[g]
|
|
655
|
-
),
|
|
657
|
+
), w = d.reduce((y, I) => y + I.amount, 0), A = x.reduce((y, I) => y + I.amount, 0), S = _ - w + A, k = a && t.length > 0, b = i < 725;
|
|
656
658
|
return /* @__PURE__ */ o(s, { sx: { mx: b ? 16 : 0, my: b ? 24 : 42 }, children: [
|
|
657
659
|
/* @__PURE__ */ o(
|
|
658
660
|
s,
|
|
659
661
|
{
|
|
660
662
|
border: b ? "1px solid" : "none",
|
|
661
|
-
borderColor: "
|
|
663
|
+
borderColor: "neutral.light",
|
|
662
664
|
borderRadius: 2,
|
|
663
665
|
flexDirection: b ? "column" : "row",
|
|
664
666
|
gap: b ? 0 : 24,
|
|
665
667
|
justifyContent: "center",
|
|
666
668
|
children: [
|
|
667
669
|
/* @__PURE__ */ e(
|
|
668
|
-
|
|
670
|
+
ae,
|
|
669
671
|
{
|
|
670
672
|
amount: _,
|
|
671
673
|
isMobile: b,
|
|
672
|
-
label:
|
|
674
|
+
label: $(n.cash_and_bank, g.length)
|
|
673
675
|
}
|
|
674
676
|
),
|
|
675
677
|
b && /* @__PURE__ */ e(v, {}),
|
|
676
678
|
k ? /* @__PURE__ */ o(B, { children: [
|
|
677
679
|
!b && /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
678
680
|
/* @__PURE__ */ e(
|
|
679
|
-
|
|
681
|
+
ae,
|
|
680
682
|
{
|
|
681
683
|
amount: A,
|
|
682
684
|
isMobile: b,
|
|
@@ -685,29 +687,29 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
685
687
|
}
|
|
686
688
|
)
|
|
687
689
|
] }) : /* @__PURE__ */ e(
|
|
688
|
-
|
|
690
|
+
G,
|
|
689
691
|
{
|
|
690
|
-
onClick: () =>
|
|
691
|
-
startIcon: /* @__PURE__ */ e(
|
|
692
|
+
onClick: () => p(!0),
|
|
693
|
+
startIcon: /* @__PURE__ */ e(M, { name: "add" }),
|
|
692
694
|
sx: { fontSize: 13 },
|
|
693
695
|
children: n.add_income
|
|
694
696
|
}
|
|
695
697
|
),
|
|
696
698
|
b ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "-" }),
|
|
697
699
|
/* @__PURE__ */ e(
|
|
698
|
-
|
|
700
|
+
ae,
|
|
699
701
|
{
|
|
700
|
-
amount:
|
|
702
|
+
amount: w,
|
|
701
703
|
isMobile: b,
|
|
702
|
-
label:
|
|
704
|
+
label: $(n.to_be_paid_out, d.length),
|
|
703
705
|
symbol: b ? "-" : void 0
|
|
704
706
|
}
|
|
705
707
|
),
|
|
706
708
|
b ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "=" }),
|
|
707
709
|
/* @__PURE__ */ e(
|
|
708
|
-
|
|
710
|
+
ae,
|
|
709
711
|
{
|
|
710
|
-
amount:
|
|
712
|
+
amount: S,
|
|
711
713
|
isMobile: b,
|
|
712
714
|
isTotal: b,
|
|
713
715
|
label: n.remaining_cash,
|
|
@@ -724,30 +726,30 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
724
726
|
}
|
|
725
727
|
),
|
|
726
728
|
/* @__PURE__ */ e(
|
|
727
|
-
|
|
729
|
+
Ge,
|
|
728
730
|
{
|
|
729
731
|
ariaLabelClose: n.close_manage_income_aria,
|
|
730
732
|
isOpen: r,
|
|
731
|
-
onClose: () =>
|
|
733
|
+
onClose: () => p(!1),
|
|
732
734
|
shouldShowHeaderBorders: !1,
|
|
733
735
|
title: n.manage_income,
|
|
734
736
|
children: /* @__PURE__ */ e(st, {})
|
|
735
737
|
}
|
|
736
738
|
)
|
|
737
739
|
] });
|
|
738
|
-
},
|
|
739
|
-
const { selectedAccounts: t, selectedAccountGuids:
|
|
740
|
-
return
|
|
741
|
-
|
|
742
|
-
}, []),
|
|
743
|
-
const oe = g.map((
|
|
744
|
-
(
|
|
740
|
+
}, Ot = T(kt), Ft = ({ onBackClick: i, sx: n = {} }) => {
|
|
741
|
+
const { selectedAccounts: t, selectedAccountGuids: a, shouldDisableNextDate: f, shouldDisablePrevDate: u } = P(), { onEvent: c } = ke(), { clientConfig: l } = Ke(), { visibleCashAccounts: g } = Ne(), { setFilter: r } = Oe(), { dateRange: p, setSelectedCashAccounts: d } = Y(), { loadRepeatingTransactionData: x, isDataLoaded: _, setDateRange: w } = U(), { cashflow: A, recurring: S } = L(), { isInitialized: k } = P(), y = l?.master?.deep_link_params?.view === "manage_income", [I, ne] = h.useState(y);
|
|
742
|
+
return h.useEffect(() => {
|
|
743
|
+
w(p), _ || x().finally();
|
|
744
|
+
}, []), h.useEffect(() => {
|
|
745
|
+
const oe = g.map((O) => O.guid), ie = t.filter(
|
|
746
|
+
(O) => a.includes(O.guid) && oe.includes(O.guid)
|
|
745
747
|
);
|
|
746
|
-
d(
|
|
747
|
-
dateRange: { start:
|
|
748
|
-
accounts:
|
|
748
|
+
d(ie), r({
|
|
749
|
+
dateRange: { start: Me(W(), 90), end: mt() },
|
|
750
|
+
accounts: ie.map((O) => O.guid)
|
|
749
751
|
});
|
|
750
|
-
}, [g, t]),
|
|
752
|
+
}, [g, t]), Fe({
|
|
751
753
|
widgetName: "CashflowWidget",
|
|
752
754
|
isLoaded: _
|
|
753
755
|
}), k ? /* @__PURE__ */ o(
|
|
@@ -755,7 +757,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
755
757
|
{
|
|
756
758
|
actions: [
|
|
757
759
|
{
|
|
758
|
-
label:
|
|
760
|
+
label: S.action_title,
|
|
759
761
|
iconName: "credit_card_gear",
|
|
760
762
|
onClick: () => {
|
|
761
763
|
ne(!0), c(Ie.CASH_FLOW_CLICK_SETTINGS);
|
|
@@ -763,11 +765,11 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
763
765
|
}
|
|
764
766
|
],
|
|
765
767
|
allowedAccountTypes: [
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
768
|
+
K.CASH,
|
|
769
|
+
K.CHECKING,
|
|
770
|
+
K.PREPAID,
|
|
771
|
+
K.SAVINGS,
|
|
772
|
+
K.CHECKING_LINE_OF_CREDIT
|
|
771
773
|
],
|
|
772
774
|
calendarActions: {
|
|
773
775
|
shouldDisableNext: f,
|
|
@@ -776,37 +778,37 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
776
778
|
onRangeChanged: () => {
|
|
777
779
|
}
|
|
778
780
|
},
|
|
779
|
-
dateRange:
|
|
781
|
+
dateRange: p,
|
|
780
782
|
dateRangeVariant: "readonly",
|
|
781
783
|
onAccountsFilterClick: () => c(Ie.CASH_FLOW_CLICK_FILTER),
|
|
782
|
-
onBackClick:
|
|
784
|
+
onBackClick: i,
|
|
783
785
|
sx: n,
|
|
784
786
|
title: A.title,
|
|
785
787
|
children: [
|
|
786
|
-
/* @__PURE__ */ e(
|
|
788
|
+
/* @__PURE__ */ e(Ot, {}),
|
|
787
789
|
/* @__PURE__ */ e(Nt, {}),
|
|
788
790
|
/* @__PURE__ */ e(
|
|
789
|
-
|
|
791
|
+
Ge,
|
|
790
792
|
{
|
|
791
793
|
ariaLabelClose: A.close_settings_aria,
|
|
792
794
|
isOpen: I,
|
|
793
795
|
onClose: () => ne(!1),
|
|
794
796
|
shouldShowHeaderBorders: !1,
|
|
795
|
-
title:
|
|
796
|
-
children: /* @__PURE__ */ e(et, { defaultSelectedTab:
|
|
797
|
+
title: S.action_title,
|
|
798
|
+
children: /* @__PURE__ */ e(et, { defaultSelectedTab: y ? 1 : 0 })
|
|
797
799
|
}
|
|
798
800
|
)
|
|
799
801
|
]
|
|
800
802
|
}
|
|
801
803
|
) : /* @__PURE__ */ e(Z, {});
|
|
802
|
-
},
|
|
803
|
-
const { completeOnboarding: n } = me(), { cashflow: t } = L(),
|
|
804
|
+
}, zn = T(Ft), Ht = ({ handleNextStep: i }) => {
|
|
805
|
+
const { completeOnboarding: n } = me(), { cashflow: t } = L(), a = se();
|
|
804
806
|
return /* @__PURE__ */ o(s, { children: [
|
|
805
|
-
/* @__PURE__ */ e(de, { pb: 12, variant: "
|
|
807
|
+
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: t.welcome_title }),
|
|
806
808
|
/* @__PURE__ */ e(
|
|
807
|
-
|
|
809
|
+
Ye,
|
|
808
810
|
{
|
|
809
|
-
color:
|
|
811
|
+
color: a.palette.primary.light,
|
|
810
812
|
pb: 8,
|
|
811
813
|
sx: { wordBreak: "break-word", whiteSpace: "initial" },
|
|
812
814
|
children: t.welcome_sub_title
|
|
@@ -818,14 +820,14 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
818
820
|
/* @__PURE__ */ e(
|
|
819
821
|
D,
|
|
820
822
|
{
|
|
821
|
-
bgcolor:
|
|
823
|
+
bgcolor: a.palette.primary.lighter,
|
|
822
824
|
borderRadius: 1,
|
|
823
825
|
component: "span",
|
|
824
826
|
height: 44,
|
|
825
827
|
mr: 24,
|
|
826
828
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
827
829
|
width: 44,
|
|
828
|
-
children: /* @__PURE__ */ e(
|
|
830
|
+
children: /* @__PURE__ */ e(M, { color: "primary", name: "currency_exchange" })
|
|
829
831
|
}
|
|
830
832
|
),
|
|
831
833
|
t.bullet_one
|
|
@@ -834,14 +836,14 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
834
836
|
/* @__PURE__ */ e(
|
|
835
837
|
D,
|
|
836
838
|
{
|
|
837
|
-
bgcolor:
|
|
839
|
+
bgcolor: a.palette.primary.lighter,
|
|
838
840
|
borderRadius: 1,
|
|
839
841
|
component: "span",
|
|
840
842
|
height: 44,
|
|
841
843
|
mr: 24,
|
|
842
844
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
843
845
|
width: 44,
|
|
844
|
-
children: /* @__PURE__ */ e(
|
|
846
|
+
children: /* @__PURE__ */ e(M, { color: "primary", name: "cardiology" })
|
|
845
847
|
}
|
|
846
848
|
),
|
|
847
849
|
t.bullet_two
|
|
@@ -850,35 +852,35 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
850
852
|
/* @__PURE__ */ e(
|
|
851
853
|
D,
|
|
852
854
|
{
|
|
853
|
-
bgcolor:
|
|
855
|
+
bgcolor: a.palette.primary.lighter,
|
|
854
856
|
borderRadius: 1,
|
|
855
857
|
component: "span",
|
|
856
858
|
height: 44,
|
|
857
859
|
mr: 24,
|
|
858
860
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
|
859
861
|
width: 44,
|
|
860
|
-
children: /* @__PURE__ */ e(
|
|
862
|
+
children: /* @__PURE__ */ e(M, { color: "primary", name: "flare" })
|
|
861
863
|
}
|
|
862
864
|
),
|
|
863
865
|
t.bullet_three
|
|
864
866
|
] })
|
|
865
867
|
] }),
|
|
866
868
|
/* @__PURE__ */ o(s, { direction: "row", spacing: 16, children: [
|
|
867
|
-
/* @__PURE__ */ e(
|
|
868
|
-
/* @__PURE__ */ e(
|
|
869
|
+
/* @__PURE__ */ e(G, { onClick: i, variant: "contained", children: t.get_started_button }),
|
|
870
|
+
/* @__PURE__ */ e(G, { onClick: n, variant: "outlined", children: t.skip_button })
|
|
869
871
|
] })
|
|
870
872
|
] });
|
|
871
|
-
}, Wt = T(
|
|
873
|
+
}, Wt = T(Ht), Le = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", je = {
|
|
872
874
|
CASHFLOW_ONBOARDING: `${Le}/cashflow-onboarding.png`,
|
|
873
875
|
CASHFLOW_LOADING_ANIMATION: `${Le}/loading-animation.gif`
|
|
874
|
-
},
|
|
875
|
-
const { cashflow:
|
|
876
|
-
return /* @__PURE__ */ o(
|
|
876
|
+
}, $t = () => {
|
|
877
|
+
const { cashflow: i } = L();
|
|
878
|
+
return /* @__PURE__ */ o(h.Fragment, { children: [
|
|
877
879
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: je.CASHFLOW_LOADING_ANIMATION }) }),
|
|
878
|
-
/* @__PURE__ */ e(de, { pb: 12, variant: "
|
|
879
|
-
/* @__PURE__ */ e(N, { children:
|
|
880
|
+
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: i.loading_title }),
|
|
881
|
+
/* @__PURE__ */ e(N, { children: i.loading_description })
|
|
880
882
|
] });
|
|
881
|
-
},
|
|
883
|
+
}, Gt = T($t), Mt = at`
|
|
882
884
|
from {
|
|
883
885
|
transform: rotate(0deg);
|
|
884
886
|
}
|
|
@@ -886,41 +888,41 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
886
888
|
transform: rotate(360deg);
|
|
887
889
|
}
|
|
888
890
|
`, jt = () => {
|
|
889
|
-
const { addRepeatingTransaction:
|
|
890
|
-
() => x.find((
|
|
891
|
+
const { addRepeatingTransaction: i, repeatingTransactions: n } = U(), { cashflow: t, common: a } = L(), { user: f } = Xe(), { completeOnboarding: u } = me(), { isDirty: c } = Y(), { isMobile: l } = pe(), { isCopyLoaded: g, setDisplayedDate: r } = P(), { filter: p, setFilter: d, transactions: x } = Oe(), _ = se(), [w, A] = Q(!0), [S, k] = h.useState(xt.EveryMonth), [b, y] = h.useState(1), [I, ne] = h.useState(15), [oe, ie] = Q(!1), [O, fe] = Q(1), [F, ze] = Q([]), [ge, le] = Q(""), H = h.useMemo(
|
|
892
|
+
() => x.find((C) => C.guid === ge),
|
|
891
893
|
[ge, x]
|
|
892
894
|
), Be = !!n.filter(
|
|
893
|
-
(
|
|
895
|
+
(C) => C.repeating_transaction_type === Ae.Income
|
|
894
896
|
).length, be = async () => {
|
|
895
897
|
fe(2), r(
|
|
896
898
|
// Beginning of the month, 90 days before today
|
|
897
|
-
|
|
899
|
+
ht(Me(W(), 90)),
|
|
898
900
|
W()
|
|
899
|
-
), d({ ...
|
|
901
|
+
), d({ ...p, custom: Se }), fe(3);
|
|
900
902
|
}, Ue = async () => {
|
|
901
|
-
if (!(
|
|
902
|
-
|
|
903
|
-
for (let
|
|
904
|
-
const E =
|
|
903
|
+
if (!(F.length < 1)) {
|
|
904
|
+
ie(!0);
|
|
905
|
+
for (let C = 0; C < F.length; C++) {
|
|
906
|
+
const E = F[C], xe = ve(S, De(E.date)), qe = {
|
|
905
907
|
account_guid: E.account_guid,
|
|
906
908
|
amount: E.amount,
|
|
907
909
|
created_by: 0,
|
|
908
910
|
//user
|
|
909
911
|
merchant_guid: E.merchant_guid,
|
|
910
912
|
description: E.feed_description || E.description,
|
|
911
|
-
predicted_occurs_on:
|
|
913
|
+
predicted_occurs_on: pt(xe, { representation: "date" }),
|
|
912
914
|
recurrence_day: xe.getDay(),
|
|
913
|
-
recurrence_type:
|
|
914
|
-
repeating_transaction_type:
|
|
915
|
+
recurrence_type: S,
|
|
916
|
+
repeating_transaction_type: Ae.Income,
|
|
915
917
|
second_recurrence_day: I,
|
|
916
918
|
transaction_type: E.transaction_type,
|
|
917
919
|
user_guid: f.guid
|
|
918
920
|
};
|
|
919
|
-
await
|
|
921
|
+
await i(qe, E);
|
|
920
922
|
}
|
|
921
923
|
await u();
|
|
922
924
|
}
|
|
923
|
-
}, Pe = !
|
|
925
|
+
}, Pe = !H && w || !H && F.length < 1;
|
|
924
926
|
return g ? /* @__PURE__ */ o(
|
|
925
927
|
D,
|
|
926
928
|
{
|
|
@@ -935,7 +937,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
935
937
|
py: 24
|
|
936
938
|
},
|
|
937
939
|
children: [
|
|
938
|
-
|
|
940
|
+
O === 1 && /* @__PURE__ */ e(
|
|
939
941
|
D,
|
|
940
942
|
{
|
|
941
943
|
sx: {
|
|
@@ -944,39 +946,39 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
944
946
|
children: /* @__PURE__ */ e(Wt, { handleNextStep: be })
|
|
945
947
|
}
|
|
946
948
|
),
|
|
947
|
-
|
|
949
|
+
O === 2 && /* @__PURE__ */ e(
|
|
948
950
|
D,
|
|
949
951
|
{
|
|
950
952
|
sx: {
|
|
951
953
|
...l ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
952
954
|
},
|
|
953
|
-
children: /* @__PURE__ */ e(
|
|
955
|
+
children: /* @__PURE__ */ e(Gt, {})
|
|
954
956
|
}
|
|
955
957
|
),
|
|
956
|
-
|
|
958
|
+
O === 3 && /* @__PURE__ */ o(
|
|
957
959
|
D,
|
|
958
960
|
{
|
|
959
961
|
sx: {
|
|
960
962
|
...l ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
961
963
|
},
|
|
962
964
|
children: [
|
|
963
|
-
/* @__PURE__ */ e(de, { pb: 12, variant: "
|
|
965
|
+
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: t.add_income_title }),
|
|
964
966
|
/* @__PURE__ */ e(N, { mb: 24, children: t.add_income_description }),
|
|
965
|
-
|
|
966
|
-
/* @__PURE__ */ e(J, { children:
|
|
967
|
-
/* @__PURE__ */ e(ft, { bgcolor: "background.paper", children:
|
|
968
|
-
z(
|
|
967
|
+
F.length > 0 && !H && /* @__PURE__ */ o(B, { children: [
|
|
968
|
+
/* @__PURE__ */ e(J, { children: F.map((C, E) => /* @__PURE__ */ o(h.Fragment, { children: [
|
|
969
|
+
/* @__PURE__ */ e(ft, { bgcolor: "background.paper", children: bt(
|
|
970
|
+
z(C.nextDate || C.date)
|
|
969
971
|
) }),
|
|
970
|
-
/* @__PURE__ */ e(gt, { transaction:
|
|
971
|
-
E !==
|
|
972
|
-
] },
|
|
972
|
+
/* @__PURE__ */ e(gt, { transaction: C }),
|
|
973
|
+
E !== F.length - 1 && /* @__PURE__ */ e(v, {})
|
|
974
|
+
] }, C.guid)) }),
|
|
973
975
|
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", children: [
|
|
974
976
|
/* @__PURE__ */ e(v, { sx: { flexGrow: 1 } }),
|
|
975
977
|
/* @__PURE__ */ e(
|
|
976
|
-
|
|
978
|
+
G,
|
|
977
979
|
{
|
|
978
980
|
onClick: () => A(!0),
|
|
979
|
-
startIcon: /* @__PURE__ */ e(
|
|
981
|
+
startIcon: /* @__PURE__ */ e(M, { name: "add", size: 20 }),
|
|
980
982
|
children: t.add_income
|
|
981
983
|
}
|
|
982
984
|
)
|
|
@@ -986,71 +988,71 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
986
988
|
ct,
|
|
987
989
|
{
|
|
988
990
|
bgcolor: "background.paper",
|
|
989
|
-
onSearch: (
|
|
990
|
-
...
|
|
991
|
-
custom: (E) =>
|
|
991
|
+
onSearch: (C) => d({
|
|
992
|
+
...p,
|
|
993
|
+
custom: (E) => C ? lt(E, C) : Se(E)
|
|
992
994
|
}),
|
|
993
|
-
onSelected: (
|
|
994
|
-
le(
|
|
995
|
+
onSelected: (C) => {
|
|
996
|
+
le(C), A(!1);
|
|
995
997
|
}
|
|
996
998
|
}
|
|
997
999
|
),
|
|
998
1000
|
!Be && c && /* @__PURE__ */ e(N, { color: "error", mt: 16, children: t.confirm_error }),
|
|
999
|
-
|
|
1001
|
+
H && /* @__PURE__ */ o(B, { children: [
|
|
1000
1002
|
/* @__PURE__ */ e(
|
|
1001
1003
|
dt,
|
|
1002
1004
|
{
|
|
1003
1005
|
bgcolor: "background.paper",
|
|
1004
1006
|
firstDay: b,
|
|
1005
|
-
frequency:
|
|
1006
|
-
onFirstDayChange:
|
|
1007
|
+
frequency: S,
|
|
1008
|
+
onFirstDayChange: y,
|
|
1007
1009
|
onFrequencyChange: k,
|
|
1008
1010
|
onSecondDayChange: ne,
|
|
1009
1011
|
secondDay: I,
|
|
1010
|
-
transaction:
|
|
1012
|
+
transaction: H
|
|
1011
1013
|
}
|
|
1012
1014
|
),
|
|
1013
1015
|
/* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
1014
1016
|
/* @__PURE__ */ e(
|
|
1015
|
-
|
|
1017
|
+
G,
|
|
1016
1018
|
{
|
|
1017
|
-
"aria-disabled": !
|
|
1019
|
+
"aria-disabled": !H,
|
|
1018
1020
|
onClick: () => {
|
|
1019
|
-
const
|
|
1020
|
-
|
|
1021
|
-
...
|
|
1022
|
-
nextDate:
|
|
1023
|
-
frequency:
|
|
1024
|
-
}), ze(
|
|
1021
|
+
const C = [...F];
|
|
1022
|
+
C.push({
|
|
1023
|
+
...H,
|
|
1024
|
+
nextDate: ve(S, De(H.date)),
|
|
1025
|
+
frequency: S
|
|
1026
|
+
}), ze(C), le("");
|
|
1025
1027
|
},
|
|
1026
1028
|
variant: "contained",
|
|
1027
|
-
children:
|
|
1029
|
+
children: a.confirm_button
|
|
1028
1030
|
}
|
|
1029
1031
|
),
|
|
1030
1032
|
/* @__PURE__ */ e(
|
|
1031
|
-
|
|
1033
|
+
G,
|
|
1032
1034
|
{
|
|
1033
1035
|
onClick: () => {
|
|
1034
1036
|
le(""), A(!0), be().finally();
|
|
1035
1037
|
},
|
|
1036
1038
|
variant: "outlined",
|
|
1037
|
-
children:
|
|
1039
|
+
children: a.cancel_button
|
|
1038
1040
|
}
|
|
1039
1041
|
)
|
|
1040
1042
|
] })
|
|
1041
1043
|
] }),
|
|
1042
|
-
|
|
1044
|
+
F.length > 0 && !H && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
1043
1045
|
/* @__PURE__ */ e(
|
|
1044
|
-
|
|
1046
|
+
G,
|
|
1045
1047
|
{
|
|
1046
|
-
"aria-disabled":
|
|
1048
|
+
"aria-disabled": F.length < 1 || oe,
|
|
1047
1049
|
onClick: Ue,
|
|
1048
1050
|
startIcon: oe ? /* @__PURE__ */ e(
|
|
1049
|
-
|
|
1051
|
+
M,
|
|
1050
1052
|
{
|
|
1051
1053
|
name: "progress_activity",
|
|
1052
1054
|
sx: {
|
|
1053
|
-
animation: `${
|
|
1055
|
+
animation: `${Mt} 2s linear infinite`
|
|
1054
1056
|
}
|
|
1055
1057
|
}
|
|
1056
1058
|
) : null,
|
|
@@ -1058,7 +1060,7 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
1058
1060
|
children: t.confirm_income_button
|
|
1059
1061
|
}
|
|
1060
1062
|
),
|
|
1061
|
-
/* @__PURE__ */ e(
|
|
1063
|
+
/* @__PURE__ */ e(G, { onClick: u, variant: "outlined", children: t.skip_button })
|
|
1062
1064
|
] })
|
|
1063
1065
|
]
|
|
1064
1066
|
}
|
|
@@ -1066,30 +1068,30 @@ const Dt = ({ recurrence: a }) => /* @__PURE__ */ o(B, { children: [
|
|
|
1066
1068
|
]
|
|
1067
1069
|
}
|
|
1068
1070
|
) : /* @__PURE__ */ e(Z, {});
|
|
1069
|
-
},
|
|
1070
|
-
class
|
|
1071
|
+
}, Bn = T(jt);
|
|
1072
|
+
class Un {
|
|
1071
1073
|
fetchInstance;
|
|
1072
|
-
constructor(n, t,
|
|
1073
|
-
this.fetchInstance = new
|
|
1074
|
+
constructor(n, t, a) {
|
|
1075
|
+
this.fetchInstance = new yt(n, t, void 0, a);
|
|
1074
1076
|
}
|
|
1075
1077
|
addCashflowEvent = async (n) => this.fetchInstance.post(j.CASHFLOW_EVENTS, { ...n }).then((t) => t);
|
|
1076
1078
|
addCashflowSequence = async (n) => this.fetchInstance.post(j.CASHFLOW_SEQUENCES, { ...n }).then((t) => t.cashflow_sequence);
|
|
1077
1079
|
getCashflowSequences = async () => this.fetchInstance.get(j.CASHFLOW_SEQUENCES).then((n) => n.cashflow_sequences);
|
|
1078
1080
|
getCashflowEventsByDateRange = async (n, t) => this.fetchInstance.get(
|
|
1079
1081
|
`${j.CASHFLOW_EVENTS}/from/${z(n)}/to/${z(t)}`
|
|
1080
|
-
).then((
|
|
1082
|
+
).then((a) => a.cashflow_events);
|
|
1081
1083
|
deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${j.CASHFLOW_SEQUENCES}/${n}`).then((t) => t);
|
|
1082
1084
|
getProjectedCashflowEvents = async (n, t) => this.fetchInstance.get(
|
|
1083
1085
|
`${j.CASHFLOW_SEQUENCES}/projected_events/from/${z(
|
|
1084
1086
|
n
|
|
1085
1087
|
)}/to/${z(t)}`
|
|
1086
|
-
).then((
|
|
1088
|
+
).then((a) => a.cashflow_events);
|
|
1087
1089
|
updateCashflowSequence = async (n) => this.fetchInstance.put(`${j.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((t) => t.cashflow_sequence);
|
|
1088
1090
|
}
|
|
1089
1091
|
export {
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1092
|
+
Un as CashflowApi,
|
|
1093
|
+
jn as CashflowMiniWidget,
|
|
1094
|
+
Bn as CashflowOnboarding,
|
|
1095
|
+
Vn as CashflowStore,
|
|
1096
|
+
zn as CashflowWidget
|
|
1095
1097
|
};
|