@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,10 +1,11 @@
|
|
|
1
|
-
import { makeAutoObservable as
|
|
2
|
-
import { fromUnixTime as
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { makeAutoObservable as f, observable as l, runInAction as h } from "mobx";
|
|
2
|
+
import { fromUnixTime as s, isSameDay as u } from "date-fns";
|
|
3
|
+
import { I as d } from "./Notification-DTNYSd8P.mjs";
|
|
4
|
+
import { F as N, A as o } from "./Fetch-B6tMJC1r.mjs";
|
|
5
|
+
class r {
|
|
5
6
|
fetchInstance;
|
|
6
7
|
constructor(t, i, n) {
|
|
7
|
-
this.fetchInstance = new
|
|
8
|
+
this.fetchInstance = new N(t, i, void 0, n);
|
|
8
9
|
}
|
|
9
10
|
getNotifications = () => this.fetchInstance.get(o.NOTIFICATIONS).then(
|
|
10
11
|
(t) => t.notifications.map((i) => i.notification)
|
|
@@ -17,36 +18,41 @@ class s {
|
|
|
17
18
|
// A bug ticket has been filed to fix it, but should not require any changes here.
|
|
18
19
|
markAllAsViewed = (t) => this.fetchInstance.put(`${o.NOTIFICATIONS}/mark_all_as_viewed`, { channel: t }).finally();
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
let a = null;
|
|
22
|
+
const A = () => (a || (a = new Set(
|
|
23
|
+
Object.values(d).filter(
|
|
24
|
+
(e) => typeof e == "number"
|
|
25
|
+
)
|
|
26
|
+
)), a), g = (e, t) => {
|
|
27
|
+
const i = s(t[e].delivered_at), n = s(t[e - 1]?.delivered_at);
|
|
28
|
+
return !u(i, n);
|
|
23
29
|
};
|
|
24
|
-
function
|
|
30
|
+
function p(e) {
|
|
25
31
|
const i = Math.floor(Date.now() / 1e3);
|
|
26
32
|
return e.filter((n) => {
|
|
27
|
-
const
|
|
28
|
-
return i -
|
|
33
|
+
const c = n.delivered_at;
|
|
34
|
+
return i - c <= 2592e3;
|
|
29
35
|
});
|
|
30
36
|
}
|
|
31
|
-
class
|
|
37
|
+
class T {
|
|
32
38
|
globalStore;
|
|
33
|
-
api = new
|
|
39
|
+
api = new r("/", "");
|
|
34
40
|
isLoading = !0;
|
|
35
41
|
notifications = [];
|
|
36
42
|
notificationsLoaded = !1;
|
|
37
43
|
constructor(t) {
|
|
38
|
-
this.globalStore = t, this.api = new
|
|
44
|
+
this.globalStore = t, this.api = new r(
|
|
39
45
|
t.endpoint,
|
|
40
46
|
t.sessionToken,
|
|
41
47
|
t.onError
|
|
42
|
-
),
|
|
48
|
+
), f(this, { notifications: l });
|
|
43
49
|
}
|
|
44
50
|
// Used in Money Dashboard
|
|
45
51
|
get newNotifications() {
|
|
46
52
|
return this.recentNotifications.filter((t) => !t.has_been_viewed);
|
|
47
53
|
}
|
|
48
54
|
get recentNotifications() {
|
|
49
|
-
return
|
|
55
|
+
return p(this.notifications);
|
|
50
56
|
}
|
|
51
57
|
setNotifications = (t) => {
|
|
52
58
|
this.notifications = t, this.notificationsLoaded = !0;
|
|
@@ -59,7 +65,7 @@ class A {
|
|
|
59
65
|
} catch (t) {
|
|
60
66
|
console.error(`Error occurred while loading notifications: ${t}`);
|
|
61
67
|
} finally {
|
|
62
|
-
|
|
68
|
+
h(() => {
|
|
63
69
|
this.isLoading = !1;
|
|
64
70
|
});
|
|
65
71
|
}
|
|
@@ -72,8 +78,9 @@ class A {
|
|
|
72
78
|
};
|
|
73
79
|
}
|
|
74
80
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
81
|
+
T as N,
|
|
82
|
+
r as a,
|
|
83
|
+
p as f,
|
|
84
|
+
A as g,
|
|
85
|
+
g as s
|
|
79
86
|
};
|
|
@@ -1,32 +1,42 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as T } from "react/jsx-runtime";
|
|
2
|
+
import a from "@mui/material/ListItem";
|
|
3
3
|
import o from "@mui/material/ListItemButton";
|
|
4
|
-
import { g as
|
|
5
|
-
const
|
|
6
|
-
children:
|
|
7
|
-
clickEventName:
|
|
8
|
-
onClick:
|
|
9
|
-
sx:
|
|
4
|
+
import { g as i } from "./hooks-BxkfR-Ff.mjs";
|
|
5
|
+
const e = ({
|
|
6
|
+
children: C,
|
|
7
|
+
clickEventName: n,
|
|
8
|
+
onClick: _,
|
|
9
|
+
sx: N = {}
|
|
10
10
|
}) => {
|
|
11
|
-
const { onEvent:
|
|
12
|
-
return
|
|
13
|
-
|
|
11
|
+
const { onEvent: A } = i();
|
|
12
|
+
return _ ? /* @__PURE__ */ T(
|
|
13
|
+
a,
|
|
14
14
|
{
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
children: T
|
|
15
|
+
className: "list-wrapper",
|
|
16
|
+
component: "div",
|
|
17
|
+
sx: { bgcolor: "background.paper", ...N },
|
|
18
|
+
children: /* @__PURE__ */ T(
|
|
19
|
+
o,
|
|
20
|
+
{
|
|
21
|
+
onClick: () => {
|
|
22
|
+
n && A(n), _();
|
|
23
|
+
},
|
|
24
|
+
children: C
|
|
25
|
+
}
|
|
26
|
+
)
|
|
19
27
|
}
|
|
20
|
-
)
|
|
21
|
-
|
|
28
|
+
) : /* @__PURE__ */ T(
|
|
29
|
+
a,
|
|
22
30
|
{
|
|
31
|
+
className: "list-wrapper",
|
|
32
|
+
component: "div",
|
|
23
33
|
disableGutters: !1,
|
|
24
34
|
disablePadding: !1,
|
|
25
|
-
sx: { bgcolor: "background.paper", ...
|
|
26
|
-
children:
|
|
35
|
+
sx: { bgcolor: "background.paper", ...N },
|
|
36
|
+
children: C
|
|
27
37
|
}
|
|
28
38
|
);
|
|
29
|
-
},
|
|
39
|
+
}, s = {
|
|
30
40
|
ON_TRANSACTION_CATEGORY_CLICK: "onTransactionCategoryClick",
|
|
31
41
|
ON_TRANSACTION_CATEGORY_CHANGED: "onTransactionCategoryChanged",
|
|
32
42
|
ON_TRANSACTION_MANUAL_ADD_CLICK: "onTransactionManualAddClick",
|
|
@@ -71,10 +81,7 @@ const S = ({
|
|
|
71
81
|
ON_TRANSACTION_UNSPLIT: "onTransactionUnsplit",
|
|
72
82
|
ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
|
|
73
83
|
};
|
|
74
|
-
var I = /* @__PURE__ */ ((T) => (T[T.CREDIT = 1] = "CREDIT", T[T.DEBIT = 2] = "DEBIT", T))(I || {}), i = /* @__PURE__ */ ((T) => (T[T.POSTED = 1] = "POSTED", T[T.PENDING = 2] = "PENDING", T))(i || {});
|
|
75
84
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
I as T,
|
|
79
|
-
i as a
|
|
85
|
+
e as L,
|
|
86
|
+
s as O
|
|
80
87
|
};
|
|
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as p } from "mobx-react-lite";
|
|
4
4
|
import v from "@mui/material/TextField";
|
|
5
|
-
import { L as y } from "./ListItemAction-
|
|
6
|
-
import { u as h,
|
|
7
|
-
import { a as T, f as S } from "./NumberFormatting-
|
|
8
|
-
import { C as f } from "./CurrencyInput-
|
|
5
|
+
import { L as y } from "./ListItemAction-4KB7P75M.mjs";
|
|
6
|
+
import { u as h, k as b } from "./hooks-BxkfR-Ff.mjs";
|
|
7
|
+
import { a as T, f as S } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
8
|
+
import { C as f } from "./CurrencyInput-DuMktPu3.mjs";
|
|
9
9
|
const F = p(({ goal: e }) => {
|
|
10
10
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
|
|
11
11
|
const n = { ...e, interest_rate: t };
|
|
@@ -39,7 +39,7 @@ const F = p(({ goal: e }) => {
|
|
|
39
39
|
)
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
|
-
}),
|
|
42
|
+
}), M = p(({ goal: e }) => {
|
|
43
43
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.monthly_payment ?? 0), c = !e.guid, i = t < 0 || t > 9999999999e-2, d = async () => {
|
|
44
44
|
const n = { ...e, monthly_payment: t };
|
|
45
45
|
e.monthly_payment = t, c ? l(n) : (await m({ ...e, monthly_payment: t }), r(a.alert_goal_updated_payment));
|
|
@@ -68,12 +68,12 @@ const F = p(({ goal: e }) => {
|
|
|
68
68
|
fullWidth: !0,
|
|
69
69
|
minAmount: 0,
|
|
70
70
|
setAmount: (n) => s(isNaN(Number(n)) ? t : Number(n)),
|
|
71
|
-
sx: { ".MuiTypography-
|
|
71
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
72
72
|
}
|
|
73
73
|
)
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
|
-
}),
|
|
76
|
+
}), z = p(({ goal: e }) => {
|
|
77
77
|
const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.initial_amount), c = !e.guid, i = t < 0 || t > 9999999999e-2, d = async () => {
|
|
78
78
|
const n = { ...e, initial_amount: t };
|
|
79
79
|
e.initial_amount = t, c ? l(n) : (await m({ ...e, initial_amount: t }), r(a.alert_goal_updated_balance));
|
|
@@ -102,7 +102,7 @@ const F = p(({ goal: e }) => {
|
|
|
102
102
|
fullWidth: !0,
|
|
103
103
|
minAmount: 0,
|
|
104
104
|
setAmount: (n) => s(isNaN(Number(n)) ? t : Number(n)),
|
|
105
|
-
sx: { ".MuiTypography-
|
|
105
|
+
sx: { ".MuiTypography-body1": { p: 0 } }
|
|
106
106
|
}
|
|
107
107
|
)
|
|
108
108
|
}
|
|
@@ -110,6 +110,6 @@ const F = p(({ goal: e }) => {
|
|
|
110
110
|
});
|
|
111
111
|
export {
|
|
112
112
|
F as I,
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
M,
|
|
114
|
+
z as O
|
|
115
115
|
};
|
|
@@ -7,10 +7,10 @@ import R from "@mui/material/Tabs";
|
|
|
7
7
|
import d from "@mui/material/Divider";
|
|
8
8
|
import b from "@mui/material/List";
|
|
9
9
|
import T from "@mui/material/Stack";
|
|
10
|
-
import { R as C, A as S, a as E, M as v } from "./ManageIncome-
|
|
11
|
-
import { u as _, i as A, g as f } from "./hooks-
|
|
12
|
-
import { R as y, F as N } from "./
|
|
13
|
-
import { A as m } from "./Analytics-
|
|
10
|
+
import { R as C, A as S, a as E, M as v } from "./ManageIncome-Cc-wba0I.mjs";
|
|
11
|
+
import { u as _, i as A, g as f } from "./hooks-BxkfR-Ff.mjs";
|
|
12
|
+
import { R as y, F as N } from "./RepeatingTransaction-DF4vJn_v.mjs";
|
|
13
|
+
import { A as m } from "./Analytics-BYItVAe-.mjs";
|
|
14
14
|
const I = h(() => {
|
|
15
15
|
const { recurring: g } = _(), { detailedRepeatingTransactions: n } = A(), { onEvent: a } = f(), l = (r) => {
|
|
16
16
|
a(m.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { jsx as d, jsxs as E, Fragment as B } from "react/jsx-runtime";
|
|
2
|
+
import L from "@mui/material/Avatar";
|
|
3
|
+
import O from "@mui/material/ListItem";
|
|
4
|
+
import R from "@mui/material/ListItemAvatar";
|
|
5
|
+
import F from "@mui/material/ListItemButton";
|
|
6
|
+
import G from "@mui/material/ListItemIcon";
|
|
7
|
+
import P from "@mui/material/ListItemText";
|
|
8
|
+
import { Icon as M } from "@mxenabled/mxui";
|
|
9
|
+
import q from "@mui/material/MenuItem";
|
|
10
|
+
import C from "@mui/material/TextField";
|
|
11
|
+
import { ExpandMore as $ } from "@mxenabled/mx-icons";
|
|
12
|
+
import { addDays as A } from "date-fns/addDays";
|
|
13
|
+
import { addMonths as h } from "date-fns/addMonths";
|
|
14
|
+
import { addQuarters as Q } from "date-fns/addQuarters";
|
|
15
|
+
import { addWeeks as w } from "date-fns/addWeeks";
|
|
16
|
+
import { addYears as U } from "date-fns/addYears";
|
|
17
|
+
import { formatISO as j } from "date-fns/formatISO";
|
|
18
|
+
import { fromUnixTime as z } from "date-fns/fromUnixTime";
|
|
19
|
+
import { getUnixTime as y } from "date-fns/getUnixTime";
|
|
20
|
+
import { isAfter as p } from "date-fns/isAfter";
|
|
21
|
+
import { isBefore as u } from "date-fns/isBefore";
|
|
22
|
+
import { isSameDay as K } from "date-fns/isSameDay";
|
|
23
|
+
import { lastDayOfMonth as T } from "date-fns/lastDayOfMonth";
|
|
24
|
+
import { nextDay as k } from "date-fns/nextDay";
|
|
25
|
+
import { parseISO as H } from "date-fns/parseISO";
|
|
26
|
+
import { setDate as f } from "date-fns/setDate";
|
|
27
|
+
import { setDay as V } from "date-fns/setDay";
|
|
28
|
+
import { setDayOfYear as Y } from "date-fns/setDayOfYear";
|
|
29
|
+
import { startOfToday as b } from "date-fns/startOfToday";
|
|
30
|
+
import { subDays as W } from "date-fns/subDays";
|
|
31
|
+
import { subMonths as J } from "date-fns/subMonths";
|
|
32
|
+
import { subQuarters as S } from "date-fns/subQuarters";
|
|
33
|
+
import { subWeeks as X } from "date-fns/subWeeks";
|
|
34
|
+
import { subYears as Z } from "date-fns/subYears";
|
|
35
|
+
import { g as ee, a as te, b as re, c as ae, d as oe, e as se, f as ne } from "./DateUtil-wcYTmDRD.mjs";
|
|
36
|
+
import { F as n, a as x, R as ce, b as I } from "./RepeatingTransaction-DF4vJn_v.mjs";
|
|
37
|
+
import { b as N } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
38
|
+
import { b as l } from "./Localization-CPkpIwIx.mjs";
|
|
39
|
+
import { f as g, D as v } from "./DateFormats-BMpMrZpW.mjs";
|
|
40
|
+
const ie = ({ iconName: e, label: o, onClick: r, value: a }) => {
|
|
41
|
+
const t = /* @__PURE__ */ E(B, { children: [
|
|
42
|
+
/* @__PURE__ */ d(R, { children: /* @__PURE__ */ d(L, { sx: { bgcolor: "neutral.light" }, variant: "rounded", children: /* @__PURE__ */ d(M, { name: e, sx: { color: "text.primary" } }) }) }),
|
|
43
|
+
/* @__PURE__ */ d(
|
|
44
|
+
P,
|
|
45
|
+
{
|
|
46
|
+
primary: o,
|
|
47
|
+
primaryTypographyProps: { variant: "caption" },
|
|
48
|
+
secondary: a,
|
|
49
|
+
secondaryTypographyProps: { color: "text.default", variant: "body1", fontWeight: 600 }
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
] });
|
|
53
|
+
return r ? /* @__PURE__ */ d(O, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ E(F, { onClick: r, children: [
|
|
54
|
+
t,
|
|
55
|
+
/* @__PURE__ */ d(G, { children: /* @__PURE__ */ d(M, { name: "chevron_right", size: 24 }) })
|
|
56
|
+
] }) }) : /* @__PURE__ */ d(O, { disableGutters: !1, disablePadding: !1, children: t });
|
|
57
|
+
}, ot = ie, st = ({ label: e, onChange: o, options: r, value: a, ...t }) => /* @__PURE__ */ d(
|
|
58
|
+
C,
|
|
59
|
+
{
|
|
60
|
+
InputLabelProps: { shrink: !0 },
|
|
61
|
+
SelectProps: {
|
|
62
|
+
IconComponent: (c) => /* @__PURE__ */ d($, { size: 20, sx: { mr: 4 }, ...c })
|
|
63
|
+
},
|
|
64
|
+
defaultValue: 0,
|
|
65
|
+
label: e,
|
|
66
|
+
onChange: (c) => {
|
|
67
|
+
o(Number(c.target.value));
|
|
68
|
+
},
|
|
69
|
+
select: !0,
|
|
70
|
+
value: a,
|
|
71
|
+
variant: "outlined",
|
|
72
|
+
...t,
|
|
73
|
+
children: r.map((c) => /* @__PURE__ */ d(q, { value: c.id, children: c.label }, c.id))
|
|
74
|
+
}
|
|
75
|
+
), ue = (e) => {
|
|
76
|
+
if (!e) return "";
|
|
77
|
+
let o = e.user_name || e.feed_name || "";
|
|
78
|
+
return e.account_number && (o = `${o} *${e.account_number}`), o;
|
|
79
|
+
}, de = (e, o) => {
|
|
80
|
+
const r = [], a = e.transactions.find(
|
|
81
|
+
(m) => m.repeating_transaction_guid === e.guid
|
|
82
|
+
);
|
|
83
|
+
if (!a) return [];
|
|
84
|
+
const t = H(e.predicted_occurs_on), s = {
|
|
85
|
+
accountGuid: e.account?.guid || "",
|
|
86
|
+
amount: e.amount,
|
|
87
|
+
categoryGuid: a.category_guid || "",
|
|
88
|
+
expectedDate: t,
|
|
89
|
+
frequency: e.recurrence_type,
|
|
90
|
+
institutionGuid: e.account?.institution_guid || "",
|
|
91
|
+
institutionName: ue(e.account),
|
|
92
|
+
merchantGuid: e.merchant_guid,
|
|
93
|
+
name: e.description,
|
|
94
|
+
recurrenceDay: e.recurrence_day,
|
|
95
|
+
repeatingTransactionGuid: e.guid,
|
|
96
|
+
secondRecurrenceDay: e.second_recurrence_day,
|
|
97
|
+
status: x.Upcoming,
|
|
98
|
+
type: e.repeating_transaction_type === ce.Income ? I.Income : I.Expense,
|
|
99
|
+
transaction: void 0
|
|
100
|
+
}, c = o.start, i = o.end;
|
|
101
|
+
switch (e.recurrence_type) {
|
|
102
|
+
case n.EveryWeek:
|
|
103
|
+
r.push(...me(s, c, i));
|
|
104
|
+
break;
|
|
105
|
+
case n.EveryOtherWeek:
|
|
106
|
+
r.push(...le(s, c, i));
|
|
107
|
+
break;
|
|
108
|
+
case n.TwiceAMonth:
|
|
109
|
+
r.push(...he(s, c, i));
|
|
110
|
+
break;
|
|
111
|
+
case n.EveryMonth:
|
|
112
|
+
r.push(...pe(s, c, i));
|
|
113
|
+
break;
|
|
114
|
+
case n.EveryOtherMonth:
|
|
115
|
+
r.push(...ye(s, c, i));
|
|
116
|
+
break;
|
|
117
|
+
case n.EveryQuarter:
|
|
118
|
+
r.push(...fe(s, c, i));
|
|
119
|
+
break;
|
|
120
|
+
case n.EveryOtherQuarter:
|
|
121
|
+
r.push(..._e(s, c, i));
|
|
122
|
+
break;
|
|
123
|
+
case n.EveryYear:
|
|
124
|
+
r.push(...De(s, c, i));
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
for (const m of r) {
|
|
128
|
+
const _ = e.transactions.find(
|
|
129
|
+
(D) => D.repeating_transaction_guid === e.guid && D.date > y(W(m.expectedDate, 5)) && D.date < y(A(m.expectedDate, 5))
|
|
130
|
+
);
|
|
131
|
+
_ ? (m.transaction = _, m.status = x.Paid, m.occurredOnDate = z(_.date)) : u(m.expectedDate, W(b(), 3)) && (m.status = x.Missed);
|
|
132
|
+
}
|
|
133
|
+
return r;
|
|
134
|
+
}, me = (e, o, r) => {
|
|
135
|
+
const a = [];
|
|
136
|
+
let t = k(o, e.recurrenceDay);
|
|
137
|
+
for (; u(t, r); )
|
|
138
|
+
a.push({ ...e, expectedDate: t }), t = k(t, e.recurrenceDay);
|
|
139
|
+
return a;
|
|
140
|
+
}, le = (e, o, r) => {
|
|
141
|
+
const a = [];
|
|
142
|
+
let t = e.expectedDate;
|
|
143
|
+
if (u(t, o))
|
|
144
|
+
for (; u(t, o); )
|
|
145
|
+
t = w(t, 2);
|
|
146
|
+
else {
|
|
147
|
+
for (; p(t, o) || K(t, o); )
|
|
148
|
+
t = X(t, 2);
|
|
149
|
+
t = w(t, 2);
|
|
150
|
+
}
|
|
151
|
+
for (; u(t, r); )
|
|
152
|
+
a.push({ ...e, expectedDate: t }), t = A(t, 14);
|
|
153
|
+
return a;
|
|
154
|
+
}, he = (e, o, r) => {
|
|
155
|
+
const a = [];
|
|
156
|
+
let t = f(o, e.recurrenceDay);
|
|
157
|
+
for (; u(t, r); )
|
|
158
|
+
a.push({ ...e, expectedDate: t }), t = h(t, 1);
|
|
159
|
+
let s = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? f(o, e.secondRecurrenceDay) : T(o);
|
|
160
|
+
for (; u(s, r); )
|
|
161
|
+
a.push({ ...e, expectedDate: s }), s = h(s, 1);
|
|
162
|
+
return a;
|
|
163
|
+
}, pe = (e, o, r) => {
|
|
164
|
+
const a = [];
|
|
165
|
+
let t = f(o, e.recurrenceDay);
|
|
166
|
+
for (a.push({ ...e, expectedDate: t }), t = h(t, 1); u(t, r); )
|
|
167
|
+
a.push({ ...e, expectedDate: t }), t = h(t, 1);
|
|
168
|
+
return a;
|
|
169
|
+
}, ye = (e, o, r) => {
|
|
170
|
+
const a = [], t = e.expectedDate;
|
|
171
|
+
let s = u(t, r) ? t : J(t, 2);
|
|
172
|
+
for (; u(s, r); )
|
|
173
|
+
p(s, o) && a.push({ ...e, expectedDate: s }), s = h(s, 2);
|
|
174
|
+
return a;
|
|
175
|
+
}, fe = (e, o, r) => {
|
|
176
|
+
const a = [], t = e.expectedDate;
|
|
177
|
+
let s = u(t, r) ? t : S(t, 1);
|
|
178
|
+
for (; u(s, r); )
|
|
179
|
+
p(s, o) && a.push({ ...e, expectedDate: s }), s = Q(s, 1);
|
|
180
|
+
return a;
|
|
181
|
+
}, _e = (e, o, r) => {
|
|
182
|
+
const a = [], t = e.expectedDate;
|
|
183
|
+
let s = u(t, r) ? t : S(t, 2);
|
|
184
|
+
for (; u(s, r); )
|
|
185
|
+
p(s, o) && a.push({ ...e, expectedDate: s }), s = Q(s, 2);
|
|
186
|
+
return a;
|
|
187
|
+
}, De = (e, o, r) => {
|
|
188
|
+
const a = [], t = e.expectedDate;
|
|
189
|
+
let s = u(t, r) ? t : Z(t, 1);
|
|
190
|
+
for (; u(s, r); )
|
|
191
|
+
p(s, o) && a.push({ ...e, expectedDate: s }), s = U(s, 1);
|
|
192
|
+
return a;
|
|
193
|
+
}, nt = (e, o) => {
|
|
194
|
+
const r = [];
|
|
195
|
+
for (const a of e) {
|
|
196
|
+
const t = de(a, o);
|
|
197
|
+
r.push(...t);
|
|
198
|
+
}
|
|
199
|
+
return r.sort(
|
|
200
|
+
(a, t) => y(a.occurredOnDate || a.expectedDate) - y(t.occurredOnDate || t.expectedDate)
|
|
201
|
+
);
|
|
202
|
+
}, ct = (e, o, r) => {
|
|
203
|
+
const a = [];
|
|
204
|
+
for (const t of o) {
|
|
205
|
+
const s = r.filter(
|
|
206
|
+
(c) => c.repeating_transaction_guid === t.guid
|
|
207
|
+
);
|
|
208
|
+
r.length > 0 && a.push({
|
|
209
|
+
...t,
|
|
210
|
+
account: e.find((c) => c.guid === t.account_guid),
|
|
211
|
+
transactions: s
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
return a;
|
|
215
|
+
}, it = (e) => e.reduce((o, r) => {
|
|
216
|
+
const a = j(r.expectedDate, { representation: "date" }), t = o.find(
|
|
217
|
+
(s) => s.date.toString() === r.expectedDate.toString()
|
|
218
|
+
);
|
|
219
|
+
return t ? t.recurrences.push(r) : o.push({
|
|
220
|
+
date: r.expectedDate,
|
|
221
|
+
id: `date-${a}`,
|
|
222
|
+
recurrences: [r]
|
|
223
|
+
}), o;
|
|
224
|
+
}, []), ut = (e, o, r) => {
|
|
225
|
+
const a = k(b(), o.recurrence_day), t = Y(b(), o.recurrence_day), s = N(o.recurrence_day), c = o.second_recurrence_day ? N(o.second_recurrence_day) : "";
|
|
226
|
+
let i = r ? l(e.monthly_ordinal, s) : e.monthly;
|
|
227
|
+
switch (o.recurrence_type) {
|
|
228
|
+
case n.EveryQuarter:
|
|
229
|
+
i = r ? l(e.quarterly_ordinal, s) : e.quarterly;
|
|
230
|
+
break;
|
|
231
|
+
case n.EveryWeek:
|
|
232
|
+
i = r ? l(
|
|
233
|
+
e.weekly_ordinal,
|
|
234
|
+
g(a, v.DAY_OF_WEEK)
|
|
235
|
+
) : e.weekly;
|
|
236
|
+
break;
|
|
237
|
+
case n.EveryYear:
|
|
238
|
+
i = r ? l(
|
|
239
|
+
e.anually_ordinal,
|
|
240
|
+
g(t, v.MONTH_DAY)
|
|
241
|
+
) : e.anually;
|
|
242
|
+
break;
|
|
243
|
+
case n.EveryOtherWeek:
|
|
244
|
+
i = r ? l(
|
|
245
|
+
e.every_other_week_ordinal,
|
|
246
|
+
g(a, v.DAY_OF_WEEK)
|
|
247
|
+
) : e.every_other_week;
|
|
248
|
+
break;
|
|
249
|
+
case n.EveryOtherMonth:
|
|
250
|
+
i = r ? l(e.every_other_month_ordinal, s) : e.every_other_month;
|
|
251
|
+
break;
|
|
252
|
+
case n.EveryOtherQuarter:
|
|
253
|
+
i = r ? l(e.every_other_quarter_ordinal, s) : e.every_other_quarter;
|
|
254
|
+
break;
|
|
255
|
+
case n.TwiceAMonth:
|
|
256
|
+
i = r ? l(e.twice_a_month_ordinal, s, c) : e.twice_a_month;
|
|
257
|
+
break;
|
|
258
|
+
}
|
|
259
|
+
return i;
|
|
260
|
+
}, dt = (e, o, r) => {
|
|
261
|
+
let a = o;
|
|
262
|
+
r !== void 0 && (e === n.EveryWeek || e === n.EveryOtherWeek ? a = V(o, r) : e === n.EveryYear ? a = Y(o, r) : a = f(o, r));
|
|
263
|
+
let t = a;
|
|
264
|
+
switch (e) {
|
|
265
|
+
case n.EveryWeek:
|
|
266
|
+
t = ne(a);
|
|
267
|
+
break;
|
|
268
|
+
case n.EveryOtherWeek:
|
|
269
|
+
t = se(a);
|
|
270
|
+
break;
|
|
271
|
+
case n.EveryMonth:
|
|
272
|
+
t = oe(a);
|
|
273
|
+
break;
|
|
274
|
+
case n.EveryOtherMonth:
|
|
275
|
+
t = ae(a);
|
|
276
|
+
break;
|
|
277
|
+
case n.EveryQuarter:
|
|
278
|
+
t = re(a);
|
|
279
|
+
break;
|
|
280
|
+
case n.EveryOtherQuarter:
|
|
281
|
+
t = te(a);
|
|
282
|
+
break;
|
|
283
|
+
case n.EveryYear:
|
|
284
|
+
t = ee(a);
|
|
285
|
+
break;
|
|
286
|
+
}
|
|
287
|
+
return t;
|
|
288
|
+
};
|
|
289
|
+
export {
|
|
290
|
+
ot as D,
|
|
291
|
+
st as S,
|
|
292
|
+
ct as a,
|
|
293
|
+
nt as b,
|
|
294
|
+
dt as c,
|
|
295
|
+
it as d,
|
|
296
|
+
ut as g
|
|
297
|
+
};
|
package/dist/{RecurringTransactionsStore-DpzLX8E8.mjs → RecurringTransactionsStore-CkMA7gY3.mjs}
RENAMED
|
@@ -3,14 +3,15 @@ import { endOfMonth as f } from "date-fns/endOfMonth";
|
|
|
3
3
|
import { isAfter as g } from "date-fns/isAfter";
|
|
4
4
|
import { isBefore as S } from "date-fns/isBefore";
|
|
5
5
|
import { isSameDay as p } from "date-fns/isSameDay";
|
|
6
|
-
import { isWithinInterval as
|
|
6
|
+
import { isWithinInterval as m } from "date-fns/isWithinInterval";
|
|
7
7
|
import { startOfMonth as y } from "date-fns/startOfMonth";
|
|
8
8
|
import { startOfToday as i } from "date-fns/startOfToday";
|
|
9
9
|
import { subDays as I } from "date-fns/subDays";
|
|
10
|
-
import { F as x, A as o } from "./Fetch-
|
|
11
|
-
import { a as u, b as A
|
|
10
|
+
import { F as x, A as o } from "./Fetch-B6tMJC1r.mjs";
|
|
11
|
+
import { a as u, b as A } from "./RecurringTransactions-BCJp-Nap.mjs";
|
|
12
|
+
import { a as r, b as d } from "./RepeatingTransaction-DF4vJn_v.mjs";
|
|
12
13
|
var E = /* @__PURE__ */ ((a) => (a.Small = "small", a.Medium = "medium", a.Large = "large", a))(E || {});
|
|
13
|
-
const
|
|
14
|
+
const U = 44;
|
|
14
15
|
class h {
|
|
15
16
|
fetchInstance;
|
|
16
17
|
constructor(t, e, n) {
|
|
@@ -24,8 +25,8 @@ class h {
|
|
|
24
25
|
).then((e) => e.repeating_transaction);
|
|
25
26
|
deleteRepeatingTransaction = async (t) => this.fetchInstance.delete(`${o.REPEATING_TRANSACTIONS}/${t}`).then((e) => e);
|
|
26
27
|
}
|
|
27
|
-
const l = (a, t) =>
|
|
28
|
-
class
|
|
28
|
+
const l = (a, t) => m(t.expectedDate, a), s = (a, t) => a + t.amount;
|
|
29
|
+
class F {
|
|
29
30
|
globalStore;
|
|
30
31
|
api = new h("/", "");
|
|
31
32
|
repeatingTransactions = [];
|
|
@@ -51,7 +52,7 @@ class U {
|
|
|
51
52
|
*/
|
|
52
53
|
get recurrences() {
|
|
53
54
|
const t = this.globalStore.accountStore.visibleAccounts;
|
|
54
|
-
return A(this.detailedRepeatingTransactions, this.dateRange).filter((e) => t.some((n) => n.guid === e.accountGuid && !n.is_excluded_from_accounts)).filter((e) =>
|
|
55
|
+
return A(this.detailedRepeatingTransactions, this.dateRange).filter((e) => t.some((n) => n.guid === e.accountGuid && !n.is_excluded_from_accounts)).filter((e) => m(e.expectedDate, this.dateRange));
|
|
55
56
|
}
|
|
56
57
|
/**
|
|
57
58
|
* Returns all recurrences that have occurred in the past, including those that are paid or missed
|
|
@@ -251,7 +252,7 @@ class U {
|
|
|
251
252
|
updateRepeatingTransaction = async (t) => {
|
|
252
253
|
try {
|
|
253
254
|
const e = await this.api.updateRepeatingTransaction(t), n = this.repeatingTransactions.findIndex(
|
|
254
|
-
(
|
|
255
|
+
(T) => T.guid === e.guid
|
|
255
256
|
);
|
|
256
257
|
if (n < 0) return;
|
|
257
258
|
c(() => {
|
|
@@ -271,7 +272,7 @@ class U {
|
|
|
271
272
|
};
|
|
272
273
|
}
|
|
273
274
|
export {
|
|
274
|
-
|
|
275
|
+
F as R,
|
|
275
276
|
E as S,
|
|
276
|
-
|
|
277
|
+
U as T
|
|
277
278
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var v = /* @__PURE__ */ ((o) => (o[o.Unknown = 0] = "Unknown", o[o.EveryWeek = 1] = "EveryWeek", o[o.EveryOtherWeek = 2] = "EveryOtherWeek", o[o.EveryMonth = 3] = "EveryMonth", o[o.EveryOtherMonth = 4] = "EveryOtherMonth", o[o.EveryQuarter = 5] = "EveryQuarter", o[o.EveryOtherQuarter = 6] = "EveryOtherQuarter", o[o.EveryYear = 7] = "EveryYear", o[o.TwiceAMonth = 8] = "TwiceAMonth", o))(v || {}), r = /* @__PURE__ */ ((o) => (o[o.Paid = 0] = "Paid", o[o.Missed = 1] = "Missed", o[o.Upcoming = 2] = "Upcoming", o))(r || {}), E = /* @__PURE__ */ ((o) => (o[o.Expense = 0] = "Expense", o[o.Income = 1] = "Income", o))(E || {}), h = /* @__PURE__ */ ((o) => (o[o.Unknown = 0] = "Unknown", o[o.Subscription = 1] = "Subscription", o[o.Bill = 2] = "Bill", o[o.Income = 3] = "Income", o[o.Transfer = 4] = "Transfer", o))(h || {});
|
|
2
|
+
export {
|
|
3
|
+
v as F,
|
|
4
|
+
h as R,
|
|
5
|
+
r as a,
|
|
6
|
+
E as b
|
|
7
|
+
};
|
|
@@ -2,17 +2,17 @@ import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import p from "react";
|
|
3
3
|
import d from "@mui/material/Button";
|
|
4
4
|
import a from "@mui/material/IconButton";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
5
|
+
import c from "@mui/material/Tooltip";
|
|
6
|
+
import f from "@mui/material/styles/useTheme";
|
|
7
|
+
const u = ({
|
|
8
8
|
icon: e,
|
|
9
9
|
label: i,
|
|
10
10
|
onClick: o,
|
|
11
11
|
placement: s = "bottom",
|
|
12
|
-
tooltipText:
|
|
12
|
+
tooltipText: n,
|
|
13
13
|
variant: l = "text"
|
|
14
14
|
}) => {
|
|
15
|
-
const
|
|
15
|
+
const r = f();
|
|
16
16
|
return /* @__PURE__ */ m(p.Fragment, { children: [
|
|
17
17
|
/* @__PURE__ */ t(
|
|
18
18
|
d,
|
|
@@ -20,26 +20,26 @@ const B = ({
|
|
|
20
20
|
onClick: o,
|
|
21
21
|
startIcon: e,
|
|
22
22
|
sx: {
|
|
23
|
-
[
|
|
24
|
-
[
|
|
23
|
+
[r.breakpoints.down("lg")]: { display: "none" },
|
|
24
|
+
[r.breakpoints.up("lg")]: { display: "inline-flex" }
|
|
25
25
|
},
|
|
26
|
-
title:
|
|
26
|
+
title: n,
|
|
27
27
|
variant: l,
|
|
28
28
|
children: i
|
|
29
29
|
}
|
|
30
30
|
),
|
|
31
31
|
/* @__PURE__ */ t(
|
|
32
|
-
|
|
32
|
+
c,
|
|
33
33
|
{
|
|
34
34
|
describeChild: !0,
|
|
35
35
|
placement: s,
|
|
36
36
|
sx: { display: { xs: "inline-flex", lg: "none" } },
|
|
37
|
-
title:
|
|
37
|
+
title: n,
|
|
38
38
|
children: /* @__PURE__ */ t(a, { onClick: o, children: e })
|
|
39
39
|
}
|
|
40
40
|
)
|
|
41
41
|
] });
|
|
42
|
-
};
|
|
42
|
+
}, y = u;
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
y as R
|
|
45
45
|
};
|