@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
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import u from "react";
|
|
2
|
+
const h = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, m = {
|
|
3
|
+
EN_US: "en-us",
|
|
4
|
+
EN_CA: "en-ca",
|
|
5
|
+
FR: "fr",
|
|
6
|
+
FR_CA: "fr-ca",
|
|
7
|
+
ES: "es"
|
|
8
|
+
}, d = Object.values(m), b = (n, ...e) => {
|
|
9
|
+
if (!n) return "";
|
|
10
|
+
const s = e.some((a) => typeof a != "string"), o = [...n.matchAll(h)].reduce(
|
|
11
|
+
(a, p, f) => {
|
|
12
|
+
const c = [...a], t = p.groups;
|
|
13
|
+
if (t?.static && c.push(t.static), t?.dynamic) {
|
|
14
|
+
const l = t.dynamic.indexOf("{"), g = t.dynamic.substring(l + 1, t.dynamic.length - 1), r = Number(t.dynamic.substring(1, l));
|
|
15
|
+
if (u.isValidElement(e[r - 1])) {
|
|
16
|
+
const y = e[r - 1], E = u.cloneElement(y, {
|
|
17
|
+
key: `${g}-${f}`
|
|
18
|
+
});
|
|
19
|
+
c.push(E);
|
|
20
|
+
} else
|
|
21
|
+
c.push(e[r - 1]);
|
|
22
|
+
}
|
|
23
|
+
return t?.staticEnd && c.push(t.staticEnd), c;
|
|
24
|
+
},
|
|
25
|
+
[]
|
|
26
|
+
);
|
|
27
|
+
return s ? o : o.join("");
|
|
28
|
+
}, w = (n, e, s, ...i) => !n || !e ? "" : b(s === 1 ? n : e, ...i), C = () => {
|
|
29
|
+
const n = m.EN_US, e = window?.app?.options?.language?.toLowerCase() ?? "", s = window.navigator.language.toLowerCase();
|
|
30
|
+
return e === "browser" && d.includes(s) ? s : d.includes(e) ? e : n;
|
|
31
|
+
};
|
|
32
|
+
export {
|
|
33
|
+
m as L,
|
|
34
|
+
w as a,
|
|
35
|
+
b,
|
|
36
|
+
C as g
|
|
37
|
+
};
|
|
@@ -2,59 +2,60 @@ import { jsxs as c, jsx as e, Fragment as k } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "react";
|
|
3
3
|
import { observer as I } from "mobx-react-lite";
|
|
4
4
|
import F from "@mui/material/Box";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import T from "@mui/material/Divider";
|
|
6
|
+
import Q from "@mui/material/List";
|
|
7
7
|
import p from "@mui/material/Stack";
|
|
8
|
-
import { MerchantLogo as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import { MerchantLogo as $, Text as S, P as G, InstitutionLogo as se } from "@mxenabled/mxui";
|
|
9
|
+
import ce from "@mui/material/ListItem";
|
|
10
|
+
import de from "@mui/material/ListItemAvatar";
|
|
11
11
|
import le from "@mui/material/ListItemButton";
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import { subDays as
|
|
12
|
+
import _e from "@mui/material/ListItemText";
|
|
13
|
+
import { S as M, D as z, g as H, c as X } from "./RecurringTransactions-BCJp-Nap.mjs";
|
|
14
|
+
import { subDays as Z } from "date-fns/subDays";
|
|
15
15
|
import { startOfToday as E } from "date-fns/startOfToday";
|
|
16
16
|
import { endOfMonth as ue } from "date-fns/endOfMonth";
|
|
17
17
|
import { parseISO as me } from "date-fns/parseISO";
|
|
18
|
-
import
|
|
18
|
+
import J from "@mui/material/Button";
|
|
19
19
|
import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
|
|
20
|
-
import { T as
|
|
21
|
-
import { T as be } from "./TransactionDetails-
|
|
20
|
+
import { T as V, u as fe, S as ge, a as Ce } from "./StatusIndicator-4tWnjeKS.mjs";
|
|
21
|
+
import { T as be } from "./TransactionDetails-D1I1XEsT.mjs";
|
|
22
22
|
import { addYears as j } from "date-fns/addYears";
|
|
23
23
|
import { getDayOfYear as xe } from "date-fns/getDayOfYear";
|
|
24
24
|
import { setDayOfYear as Se } from "date-fns/setDayOfYear";
|
|
25
25
|
import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
26
26
|
import { DatePicker as De } from "@mui/x-date-pickers";
|
|
27
27
|
import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
|
|
28
|
-
import { u as w, i as Y, g as P, b as Ae, h as
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { f as
|
|
34
|
-
import {
|
|
28
|
+
import { u as w, i as Y, g as P, b as Ae, h as ee, o as Ie } from "./hooks-BxkfR-Ff.mjs";
|
|
29
|
+
import { F as l, R as L } from "./RepeatingTransaction-DF4vJn_v.mjs";
|
|
30
|
+
import { b as Re, f as te } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
31
|
+
import { D as N } from "./Drawer-Bbe4AMB1.mjs";
|
|
32
|
+
import { A as O } from "./Analytics-BYItVAe-.mjs";
|
|
33
|
+
import { f as Ee, D as Le } from "./DateFormats-BMpMrZpW.mjs";
|
|
34
|
+
import { D as Oe } from "./Dialog-Ck34yr-d.mjs";
|
|
35
|
+
import { formatISO as Te } from "date-fns/formatISO";
|
|
35
36
|
import { fromUnixTime as ke } from "date-fns/fromUnixTime";
|
|
36
|
-
import { S as Ne } from "./SearchBox-
|
|
37
|
-
import { h as Me } from "./DateUtil-
|
|
38
|
-
import { b as
|
|
39
|
-
import { T as
|
|
40
|
-
const
|
|
37
|
+
import { S as Ne } from "./SearchBox-CwDgvWVJ.mjs";
|
|
38
|
+
import { h as Me } from "./DateUtil-wcYTmDRD.mjs";
|
|
39
|
+
import { b as q } from "./Category-CevNQ03n.mjs";
|
|
40
|
+
import { T as ne } from "./Transaction-Cn5_iFm0.mjs";
|
|
41
|
+
const re = ({
|
|
41
42
|
frequency: n,
|
|
42
43
|
firstDay: t,
|
|
43
44
|
secondDay: o,
|
|
44
45
|
onFrequencyChange: i,
|
|
45
46
|
onFirstDayChange: s,
|
|
46
|
-
onSecondDayChange:
|
|
47
|
+
onSecondDayChange: d
|
|
47
48
|
}) => {
|
|
48
49
|
const { recurring: r } = w(), a = _.useMemo(
|
|
49
50
|
() => [
|
|
50
|
-
{ id:
|
|
51
|
-
{ id:
|
|
52
|
-
{ id:
|
|
53
|
-
{ id:
|
|
54
|
-
{ id:
|
|
55
|
-
{ id:
|
|
56
|
-
{ id:
|
|
57
|
-
{ id:
|
|
51
|
+
{ id: l.EveryWeek, label: r.frequency_every_week },
|
|
52
|
+
{ id: l.EveryOtherWeek, label: r.frequency_every_other_week },
|
|
53
|
+
{ id: l.TwiceAMonth, label: r.frequency_twice_a_month },
|
|
54
|
+
{ id: l.EveryMonth, label: r.frequency_every_month },
|
|
55
|
+
{ id: l.EveryOtherMonth, label: r.frequency_every_other_month },
|
|
56
|
+
{ id: l.EveryQuarter, label: r.frequency_every_quarter },
|
|
57
|
+
{ id: l.EveryOtherQuarter, label: r.frequency_every_other_quarter },
|
|
58
|
+
{ id: l.EveryYear, label: r.frequency_every_year }
|
|
58
59
|
],
|
|
59
60
|
[r]
|
|
60
61
|
), m = [
|
|
@@ -70,7 +71,7 @@ const ne = ({
|
|
|
70
71
|
label: Re(b + 1)
|
|
71
72
|
}));
|
|
72
73
|
h[30].label += ` (${r.last_day_of_month})`;
|
|
73
|
-
const g = h.slice(0, 15), v = h.slice(14), C = n ===
|
|
74
|
+
const g = h.slice(0, 15), v = h.slice(14), C = n === l.EveryWeek || n === l.EveryOtherWeek, f = n === l.TwiceAMonth || n === l.EveryMonth || n === l.EveryOtherMonth || n === l.EveryQuarter || n === l.EveryOtherQuarter, A = Se(E(), t), y = A < E() ? j(A, 1) : A, D = (b) => {
|
|
74
75
|
b && s(xe(b));
|
|
75
76
|
};
|
|
76
77
|
return /* @__PURE__ */ c(p, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -95,27 +96,27 @@ const ne = ({
|
|
|
95
96
|
f && /* @__PURE__ */ e(
|
|
96
97
|
M,
|
|
97
98
|
{
|
|
98
|
-
label: n ===
|
|
99
|
+
label: n === l.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
|
|
99
100
|
onChange: s,
|
|
100
|
-
options: n ===
|
|
101
|
+
options: n === l.TwiceAMonth ? g : h,
|
|
101
102
|
value: t
|
|
102
103
|
}
|
|
103
104
|
),
|
|
104
|
-
n ===
|
|
105
|
+
n === l.TwiceAMonth && /* @__PURE__ */ e(
|
|
105
106
|
M,
|
|
106
107
|
{
|
|
107
108
|
label: r.second_day_of_the_month,
|
|
108
|
-
onChange:
|
|
109
|
+
onChange: d,
|
|
109
110
|
options: v,
|
|
110
111
|
value: o || 0
|
|
111
112
|
}
|
|
112
113
|
),
|
|
113
|
-
n ===
|
|
114
|
+
n === l.EveryYear && /* @__PURE__ */ e(we, { dateAdapter: ve, children: /* @__PURE__ */ e(
|
|
114
115
|
De,
|
|
115
116
|
{
|
|
116
117
|
disablePast: !0,
|
|
117
118
|
label: r.next_payment_date,
|
|
118
|
-
maxDate:
|
|
119
|
+
maxDate: Z(j(E(), 1), 1),
|
|
119
120
|
minDate: E(),
|
|
120
121
|
onChange: D,
|
|
121
122
|
value: y
|
|
@@ -123,15 +124,15 @@ const ne = ({
|
|
|
123
124
|
) })
|
|
124
125
|
] });
|
|
125
126
|
}, Fe = I(({ repeatingTransaction: n }) => {
|
|
126
|
-
const { recurring: t } = w(), { updateRepeatingTransaction: o } = Y(), { onEvent: i } = P(), [s,
|
|
127
|
+
const { recurring: t } = w(), { updateRepeatingTransaction: o } = Y(), { onEvent: i } = P(), [s, d] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m, h] = _.useState(n.recurrence_day), [g, v] = _.useState(n.second_recurrence_day), C = async () => {
|
|
127
128
|
await o({
|
|
128
129
|
...n,
|
|
129
130
|
recurrence_type: r,
|
|
130
131
|
recurrence_day: m,
|
|
131
132
|
second_recurrence_day: g
|
|
132
|
-
}),
|
|
133
|
+
}), d(!1);
|
|
133
134
|
}, f = () => {
|
|
134
|
-
|
|
135
|
+
d(!0), i(O.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
|
|
135
136
|
};
|
|
136
137
|
return /* @__PURE__ */ c(k, { children: [
|
|
137
138
|
/* @__PURE__ */ e(
|
|
@@ -140,7 +141,7 @@ const ne = ({
|
|
|
140
141
|
iconName: "sync",
|
|
141
142
|
label: t.activity_schedule,
|
|
142
143
|
onClick: f,
|
|
143
|
-
value: `${
|
|
144
|
+
value: `${H(t, n, !0)}`
|
|
144
145
|
}
|
|
145
146
|
),
|
|
146
147
|
/* @__PURE__ */ e(
|
|
@@ -148,11 +149,11 @@ const ne = ({
|
|
|
148
149
|
{
|
|
149
150
|
ariaLabelClose: t.close_drawer_aria,
|
|
150
151
|
isOpen: s,
|
|
151
|
-
onClose: () =>
|
|
152
|
+
onClose: () => d(!1),
|
|
152
153
|
onPrimaryAction: C,
|
|
153
154
|
title: t.payment_schedule,
|
|
154
155
|
children: /* @__PURE__ */ e(
|
|
155
|
-
|
|
156
|
+
re,
|
|
156
157
|
{
|
|
157
158
|
firstDay: m,
|
|
158
159
|
frequency: r,
|
|
@@ -167,26 +168,26 @@ const ne = ({
|
|
|
167
168
|
] });
|
|
168
169
|
}), Ge = I(
|
|
169
170
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
170
|
-
const { recurring: o } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = P(), { deleteRepeatingTransaction:
|
|
171
|
+
const { recurring: o } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = P(), { deleteRepeatingTransaction: d } = Y(), { setFilter: r, transactions: a } = ee(), { amount: m, description: h, merchant_guid: g } = t, [v, C] = _.useState(!1), [f, A] = _.useState("");
|
|
171
172
|
_.useEffect(() => {
|
|
172
173
|
r({
|
|
173
174
|
accounts: i,
|
|
174
|
-
dateRange: { start:
|
|
175
|
+
dateRange: { start: Z(E(), 90), end: ue(E()) },
|
|
175
176
|
custom: (u) => u.repeating_transaction_guid === t.guid
|
|
176
177
|
});
|
|
177
178
|
}, [t]);
|
|
178
179
|
const y = _.useMemo(
|
|
179
180
|
() => a.find((u) => u.guid === f),
|
|
180
181
|
[f, a]
|
|
181
|
-
), D = t.repeating_transaction_type ===
|
|
182
|
-
await
|
|
182
|
+
), D = t.repeating_transaction_type === L.Income, b = async () => {
|
|
183
|
+
await d(t.guid), n();
|
|
183
184
|
}, U = () => {
|
|
184
|
-
C(!0), s(
|
|
185
|
+
C(!0), s(O.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
185
186
|
};
|
|
186
187
|
return /* @__PURE__ */ c(p, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
187
188
|
/* @__PURE__ */ c(p, { direction: "column", m: 24, children: [
|
|
188
189
|
/* @__PURE__ */ e(
|
|
189
|
-
|
|
190
|
+
$,
|
|
190
191
|
{
|
|
191
192
|
categoryGuid: y?.category_guid || "",
|
|
192
193
|
merchantGuid: g,
|
|
@@ -195,16 +196,20 @@ const ne = ({
|
|
|
195
196
|
}
|
|
196
197
|
),
|
|
197
198
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: h }),
|
|
198
|
-
/* @__PURE__ */ c(G, { color: D ? "success.main" : "text.primary", sx: { my: 4 }, variant: "
|
|
199
|
+
/* @__PURE__ */ c(G, { color: D ? "success.main" : "text.primary", sx: { my: 4 }, variant: "h1", children: [
|
|
199
200
|
D ? "+" : "",
|
|
200
|
-
|
|
201
|
+
te(m, "0,0.00")
|
|
201
202
|
] }),
|
|
202
|
-
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${o.next_payment_date}: ${
|
|
203
|
-
|
|
203
|
+
/* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${o.next_payment_date}: ${Ee(
|
|
204
|
+
X(
|
|
205
|
+
t.recurrence_type,
|
|
206
|
+
me(t.predicted_occurs_on),
|
|
207
|
+
t.recurrence_day
|
|
208
|
+
),
|
|
204
209
|
Le.MONTH_DAY_YEAR
|
|
205
210
|
)}` })
|
|
206
211
|
] }),
|
|
207
|
-
/* @__PURE__ */ c(
|
|
212
|
+
/* @__PURE__ */ c(Q, { sx: { bgcolor: "background.paper" }, children: [
|
|
208
213
|
t.account && /* @__PURE__ */ c(k, { children: [
|
|
209
214
|
/* @__PURE__ */ e(
|
|
210
215
|
z,
|
|
@@ -214,7 +219,7 @@ const ne = ({
|
|
|
214
219
|
value: t.account.displayName || ""
|
|
215
220
|
}
|
|
216
221
|
),
|
|
217
|
-
/* @__PURE__ */ e(
|
|
222
|
+
/* @__PURE__ */ e(T, { variant: "inset" })
|
|
218
223
|
] }),
|
|
219
224
|
y?.category && /* @__PURE__ */ c(k, { children: [
|
|
220
225
|
/* @__PURE__ */ e(
|
|
@@ -225,13 +230,13 @@ const ne = ({
|
|
|
225
230
|
value: y.category
|
|
226
231
|
}
|
|
227
232
|
),
|
|
228
|
-
/* @__PURE__ */ e(
|
|
233
|
+
/* @__PURE__ */ e(T, { variant: "inset" })
|
|
229
234
|
] }),
|
|
230
235
|
/* @__PURE__ */ e(Fe, { repeatingTransaction: t }),
|
|
231
|
-
/* @__PURE__ */ e(
|
|
236
|
+
/* @__PURE__ */ e(T, {})
|
|
232
237
|
] }),
|
|
233
238
|
/* @__PURE__ */ e(
|
|
234
|
-
|
|
239
|
+
J,
|
|
235
240
|
{
|
|
236
241
|
color: "error",
|
|
237
242
|
onClick: U,
|
|
@@ -241,8 +246,8 @@ const ne = ({
|
|
|
241
246
|
children: D ? o.delete_income_title : o.delete_expense_title
|
|
242
247
|
}
|
|
243
248
|
),
|
|
244
|
-
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "
|
|
245
|
-
/* @__PURE__ */ e(
|
|
249
|
+
/* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "body1", children: o.paid_transactions }),
|
|
250
|
+
/* @__PURE__ */ e(V, { height: "30dvh", onClick: A }),
|
|
246
251
|
/* @__PURE__ */ e(
|
|
247
252
|
N,
|
|
248
253
|
{
|
|
@@ -254,7 +259,7 @@ const ne = ({
|
|
|
254
259
|
}
|
|
255
260
|
),
|
|
256
261
|
/* @__PURE__ */ e(
|
|
257
|
-
|
|
262
|
+
Oe,
|
|
258
263
|
{
|
|
259
264
|
copy: {
|
|
260
265
|
title: D ? o.delete_income_title : o.delete_expense_title,
|
|
@@ -271,27 +276,27 @@ const ne = ({
|
|
|
271
276
|
), Ye = I(
|
|
272
277
|
({ onClick: n = () => {
|
|
273
278
|
}, repeatingTransaction: t }) => {
|
|
274
|
-
const { recurring: o } = w(), [i, s] = _.useState(!1),
|
|
279
|
+
const { recurring: o } = w(), [i, s] = _.useState(!1), d = _.useMemo(
|
|
275
280
|
() => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
|
|
276
281
|
[t]
|
|
277
|
-
), r = t.account?.displayName || "", a = t.repeating_transaction_type ===
|
|
278
|
-
return /* @__PURE__ */ c(
|
|
282
|
+
), r = t.account?.displayName || "", a = t.repeating_transaction_type === L.Income, m = H(o, t, !0);
|
|
283
|
+
return /* @__PURE__ */ c(ce, { disableGutters: !0, disablePadding: !0, children: [
|
|
279
284
|
/* @__PURE__ */ c(le, { onClick: () => {
|
|
280
285
|
n(t), s(!0);
|
|
281
286
|
}, children: [
|
|
282
|
-
/* @__PURE__ */ e(
|
|
283
|
-
|
|
287
|
+
/* @__PURE__ */ e(de, { children: /* @__PURE__ */ e(
|
|
288
|
+
$,
|
|
284
289
|
{
|
|
285
|
-
categoryGuid:
|
|
290
|
+
categoryGuid: d,
|
|
286
291
|
merchantGuid: t.merchant_guid
|
|
287
292
|
}
|
|
288
293
|
) }),
|
|
289
|
-
/* @__PURE__ */ e(
|
|
294
|
+
/* @__PURE__ */ e(_e, { children: /* @__PURE__ */ c(p, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
|
|
290
295
|
/* @__PURE__ */ c(p, { direction: "column", sx: { width: "50%" }, children: [
|
|
291
296
|
/* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
|
|
292
297
|
/* @__PURE__ */ c(p, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
293
298
|
t.account?.institution_guid && /* @__PURE__ */ e(
|
|
294
|
-
|
|
299
|
+
se,
|
|
295
300
|
{
|
|
296
301
|
alt: r,
|
|
297
302
|
institutionGuid: t.account?.institution_guid,
|
|
@@ -310,7 +315,7 @@ const ne = ({
|
|
|
310
315
|
variant: "body1",
|
|
311
316
|
children: [
|
|
312
317
|
a ? "+" : "",
|
|
313
|
-
|
|
318
|
+
te(t.amount, "0,0.00")
|
|
314
319
|
]
|
|
315
320
|
}
|
|
316
321
|
),
|
|
@@ -337,7 +342,7 @@ const ne = ({
|
|
|
337
342
|
ariaLabelClose: o.close_drawer_aria,
|
|
338
343
|
isOpen: i,
|
|
339
344
|
onClose: () => s(!1),
|
|
340
|
-
title: t.repeating_transaction_type ===
|
|
345
|
+
title: t.repeating_transaction_type === L.Income ? o.income_details : o.expense_details,
|
|
341
346
|
children: /* @__PURE__ */ e(
|
|
342
347
|
Ge,
|
|
343
348
|
{
|
|
@@ -356,7 +361,7 @@ const ne = ({
|
|
|
356
361
|
onSearch: o,
|
|
357
362
|
onSelected: i
|
|
358
363
|
}) => {
|
|
359
|
-
const { recurring: s } = w(), { searchValue:
|
|
364
|
+
const { recurring: s } = w(), { searchValue: d, setSearchValue: r } = fe();
|
|
360
365
|
return /* @__PURE__ */ c(p, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
|
|
361
366
|
t && /* @__PURE__ */ e(G, { sx: { mx: 24 }, children: t }),
|
|
362
367
|
/* @__PURE__ */ e(
|
|
@@ -368,11 +373,11 @@ const ne = ({
|
|
|
368
373
|
r(a), o(a);
|
|
369
374
|
},
|
|
370
375
|
placeholder: s.select_transaction_search_placeholder,
|
|
371
|
-
searchValue:
|
|
376
|
+
searchValue: d
|
|
372
377
|
}
|
|
373
378
|
),
|
|
374
379
|
/* @__PURE__ */ e(
|
|
375
|
-
|
|
380
|
+
V,
|
|
376
381
|
{
|
|
377
382
|
bgcolor: n,
|
|
378
383
|
filter: (a) => !!a.merchant_guid,
|
|
@@ -390,7 +395,7 @@ const ne = ({
|
|
|
390
395
|
secondDay: o,
|
|
391
396
|
frequency: i,
|
|
392
397
|
onFrequencyChange: s,
|
|
393
|
-
onFirstDayChange:
|
|
398
|
+
onFirstDayChange: d,
|
|
394
399
|
onSecondDayChange: r,
|
|
395
400
|
transaction: a
|
|
396
401
|
}) => {
|
|
@@ -401,13 +406,13 @@ const ne = ({
|
|
|
401
406
|
/* @__PURE__ */ e(Ce, { transaction: a })
|
|
402
407
|
] }),
|
|
403
408
|
/* @__PURE__ */ c(F, { children: [
|
|
404
|
-
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "
|
|
409
|
+
/* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "body1", children: m.payment_schedule }),
|
|
405
410
|
/* @__PURE__ */ e(
|
|
406
|
-
|
|
411
|
+
re,
|
|
407
412
|
{
|
|
408
413
|
firstDay: t,
|
|
409
414
|
frequency: i,
|
|
410
|
-
onFirstDayChange:
|
|
415
|
+
onFirstDayChange: d,
|
|
411
416
|
onFrequencyChange: s,
|
|
412
417
|
onSecondDayChange: r,
|
|
413
418
|
secondDay: o
|
|
@@ -416,34 +421,34 @@ const ne = ({
|
|
|
416
421
|
] })
|
|
417
422
|
] });
|
|
418
423
|
}
|
|
419
|
-
),
|
|
424
|
+
), B = (n) => n.top_level_category_guid !== q.INCOME && n.transaction_type === ne.DEBIT, ze = (n, t) => B(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description.toLowerCase().includes(t.toLowerCase()) || n.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, W = (n) => n.top_level_category_guid === q.INCOME || n.top_level_category_guid === q.TRANSFER && n.transaction_type === ne.CREDIT, qe = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, oe = I(
|
|
420
425
|
({
|
|
421
426
|
isIncome: n = !1,
|
|
422
427
|
label: t,
|
|
423
428
|
onAddRecurringTransaction: o = () => null
|
|
424
429
|
}) => {
|
|
425
|
-
const { recurring: i } = w(), { filter: s, setFilter:
|
|
430
|
+
const { recurring: i } = w(), { filter: s, setFilter: d, transactions: r } = ee(), { addRepeatingTransaction: a } = Y(), { user: m } = Ie(), [h, g] = _.useState(!1), [v, C] = _.useState(""), [f, A] = _.useState(l.EveryMonth), [y, D] = _.useState(1), [b, U] = _.useState(15), u = _.useMemo(
|
|
426
431
|
() => r.find((x) => x.guid === v),
|
|
427
432
|
[v, r]
|
|
428
|
-
),
|
|
429
|
-
g(!0),
|
|
430
|
-
},
|
|
433
|
+
), ae = () => {
|
|
434
|
+
g(!0), d(n ? { ...s, custom: W } : { ...s, custom: B });
|
|
435
|
+
}, ie = async () => {
|
|
431
436
|
if (!u) {
|
|
432
437
|
K();
|
|
433
438
|
return;
|
|
434
439
|
}
|
|
435
440
|
o();
|
|
436
|
-
const x =
|
|
441
|
+
const x = X(f, ke(u.date), y), R = {
|
|
437
442
|
account_guid: u.account_guid,
|
|
438
443
|
amount: u.amount,
|
|
439
444
|
created_by: 0,
|
|
440
445
|
// User
|
|
441
446
|
merchant_guid: u.merchant_guid,
|
|
442
447
|
description: u.payee || u.description || u.feed_description,
|
|
443
|
-
predicted_occurs_on:
|
|
448
|
+
predicted_occurs_on: Te(x, { representation: "date" }),
|
|
444
449
|
recurrence_day: y,
|
|
445
450
|
recurrence_type: f,
|
|
446
|
-
repeating_transaction_type: n ?
|
|
451
|
+
repeating_transaction_type: n ? L.Income : L.Bill,
|
|
447
452
|
second_recurrence_day: b,
|
|
448
453
|
transaction_type: u.transaction_type,
|
|
449
454
|
user_guid: m.guid
|
|
@@ -453,7 +458,7 @@ const ne = ({
|
|
|
453
458
|
C(""), g(!1);
|
|
454
459
|
};
|
|
455
460
|
return /* @__PURE__ */ c(k, { children: [
|
|
456
|
-
/* @__PURE__ */ e(
|
|
461
|
+
/* @__PURE__ */ e(J, { onClick: ae, startIcon: /* @__PURE__ */ e(ye, { size: 24 }), variant: "contained", children: t }),
|
|
457
462
|
/* @__PURE__ */ e(
|
|
458
463
|
N,
|
|
459
464
|
{
|
|
@@ -466,9 +471,9 @@ const ne = ({
|
|
|
466
471
|
{
|
|
467
472
|
description: n ? i.add_income_description : i.add_expense_description,
|
|
468
473
|
onSearch: (x) => {
|
|
469
|
-
|
|
474
|
+
d({
|
|
470
475
|
...s,
|
|
471
|
-
custom: (R) => n ? x ?
|
|
476
|
+
custom: (R) => n ? x ? qe(R, x) : W(R) : x ? ze(R, x) : B(R)
|
|
472
477
|
});
|
|
473
478
|
},
|
|
474
479
|
onSelected: (x) => C(x)
|
|
@@ -482,7 +487,7 @@ const ne = ({
|
|
|
482
487
|
ariaLabelClose: i.close_drawer_aria,
|
|
483
488
|
isOpen: !!v,
|
|
484
489
|
onClose: () => C(""),
|
|
485
|
-
onPrimaryAction:
|
|
490
|
+
onPrimaryAction: ie,
|
|
486
491
|
title: n ? i.income_details : i.expense_details,
|
|
487
492
|
children: u && /* @__PURE__ */ e(
|
|
488
493
|
Ue,
|
|
@@ -500,36 +505,36 @@ const ne = ({
|
|
|
500
505
|
)
|
|
501
506
|
] });
|
|
502
507
|
}
|
|
503
|
-
),
|
|
508
|
+
), Be = I(
|
|
504
509
|
({ zeroStateFor: n }) => {
|
|
505
|
-
const { recurring: t } = w(), { onEvent: o } = P(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title,
|
|
510
|
+
const { recurring: t } = w(), { onEvent: o } = P(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, d = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, r = i ? t.add_income : t.add_expense;
|
|
506
511
|
return /* @__PURE__ */ c(p, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
|
|
507
512
|
/* @__PURE__ */ e(he, { size: 48 }),
|
|
508
513
|
/* @__PURE__ */ e(G, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
|
|
509
|
-
/* @__PURE__ */ e(G, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children:
|
|
514
|
+
/* @__PURE__ */ e(G, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: d }),
|
|
510
515
|
/* @__PURE__ */ e(
|
|
511
|
-
|
|
516
|
+
oe,
|
|
512
517
|
{
|
|
513
518
|
isIncome: i,
|
|
514
519
|
label: r,
|
|
515
520
|
onAddRecurringTransaction: () => {
|
|
516
521
|
o(
|
|
517
|
-
i ?
|
|
522
|
+
i ? O.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME : O.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE
|
|
518
523
|
);
|
|
519
524
|
}
|
|
520
525
|
}
|
|
521
526
|
)
|
|
522
527
|
] });
|
|
523
528
|
}
|
|
524
|
-
),
|
|
529
|
+
), Lt = I(({ forOverview: n = !1 }) => {
|
|
525
530
|
const { recurring: t } = w(), { detailedRepeatingTransactions: o } = Y(), { onEvent: i } = P(), s = (a) => {
|
|
526
|
-
i(
|
|
531
|
+
i(O.RECURRING_TRANSACTIONS_CLICK_INCOME, {
|
|
527
532
|
repeating_transaction_guid: a.guid
|
|
528
533
|
});
|
|
529
|
-
},
|
|
530
|
-
i(
|
|
534
|
+
}, d = () => {
|
|
535
|
+
i(O.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
|
|
531
536
|
}, r = o.filter(
|
|
532
|
-
(a) => a.repeating_transaction_type ===
|
|
537
|
+
(a) => a.repeating_transaction_type === L.Income && (a.transactions.length > 0 || a.recurrence_type === l.EveryYear)
|
|
533
538
|
);
|
|
534
539
|
return /* @__PURE__ */ e(k, { children: r.length !== 0 ? /* @__PURE__ */ c(
|
|
535
540
|
p,
|
|
@@ -539,18 +544,18 @@ const ne = ({
|
|
|
539
544
|
maxHeight: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)"
|
|
540
545
|
},
|
|
541
546
|
children: [
|
|
542
|
-
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "
|
|
543
|
-
/* @__PURE__ */ e(F, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(
|
|
547
|
+
n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "body2", children: t.income }),
|
|
548
|
+
/* @__PURE__ */ e(F, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(Q, { sx: { bgcolor: "background.paper" }, children: r.map((a, m) => /* @__PURE__ */ c(_.Fragment, { children: [
|
|
544
549
|
/* @__PURE__ */ e(Ye, { onClick: s, repeatingTransaction: a }),
|
|
545
550
|
/* @__PURE__ */ e(
|
|
546
|
-
|
|
551
|
+
T,
|
|
547
552
|
{
|
|
548
553
|
variant: m < r.length - 1 ? "inset" : "fullWidth"
|
|
549
554
|
}
|
|
550
555
|
)
|
|
551
556
|
] }, a.guid)) }) }),
|
|
552
557
|
/* @__PURE__ */ c(F, { children: [
|
|
553
|
-
/* @__PURE__ */ e(
|
|
558
|
+
/* @__PURE__ */ e(T, {}),
|
|
554
559
|
/* @__PURE__ */ e(
|
|
555
560
|
F,
|
|
556
561
|
{
|
|
@@ -563,11 +568,11 @@ const ne = ({
|
|
|
563
568
|
textAlign: "right"
|
|
564
569
|
},
|
|
565
570
|
children: /* @__PURE__ */ e(
|
|
566
|
-
|
|
571
|
+
oe,
|
|
567
572
|
{
|
|
568
573
|
isIncome: !0,
|
|
569
574
|
label: t.add_income,
|
|
570
|
-
onAddRecurringTransaction:
|
|
575
|
+
onAddRecurringTransaction: d
|
|
571
576
|
}
|
|
572
577
|
)
|
|
573
578
|
}
|
|
@@ -575,16 +580,16 @@ const ne = ({
|
|
|
575
580
|
] })
|
|
576
581
|
]
|
|
577
582
|
}
|
|
578
|
-
) : /* @__PURE__ */ e(
|
|
583
|
+
) : /* @__PURE__ */ e(Be, { zeroStateFor: "income" }) });
|
|
579
584
|
});
|
|
580
585
|
export {
|
|
581
|
-
|
|
582
|
-
|
|
586
|
+
oe as A,
|
|
587
|
+
Lt as M,
|
|
583
588
|
Ye as R,
|
|
584
589
|
Pe as S,
|
|
585
|
-
|
|
590
|
+
Be as a,
|
|
586
591
|
Ge as b,
|
|
587
592
|
Ue as c,
|
|
588
593
|
W as d,
|
|
589
|
-
|
|
594
|
+
qe as i
|
|
590
595
|
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as r, jsxs as p, Fragment as f } from "react/jsx-runtime";
|
|
2
|
+
import x from "@mui/material/Button";
|
|
3
|
+
import C from "@mui/material/Card";
|
|
4
|
+
import g from "@mui/material/CardContent";
|
|
5
|
+
import b from "@mui/material/CardHeader";
|
|
6
|
+
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
|
+
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
|
+
import { u as M } from "./useDimensions-CeDR9V8N.mjs";
|
|
9
|
+
import { W as w } from "./hooks-BxkfR-Ff.mjs";
|
|
10
|
+
const H = ({
|
|
11
|
+
children: e,
|
|
12
|
+
className: o,
|
|
13
|
+
ctaLabel: n,
|
|
14
|
+
onCTAClick: a,
|
|
15
|
+
subHeader: t,
|
|
16
|
+
sx: s,
|
|
17
|
+
title: c,
|
|
18
|
+
variant: d = "borderless"
|
|
19
|
+
}) => {
|
|
20
|
+
const [m, { height: l, width: h }] = M(), i = /* @__PURE__ */ p(f, { children: [
|
|
21
|
+
/* @__PURE__ */ r(
|
|
22
|
+
b,
|
|
23
|
+
{
|
|
24
|
+
action: /* @__PURE__ */ r(
|
|
25
|
+
x,
|
|
26
|
+
{
|
|
27
|
+
endIcon: /* @__PURE__ */ r(W, { size: 20 }),
|
|
28
|
+
onClick: a,
|
|
29
|
+
size: "small",
|
|
30
|
+
variant: "text",
|
|
31
|
+
children: n
|
|
32
|
+
}
|
|
33
|
+
),
|
|
34
|
+
subheader: t && /* @__PURE__ */ r(u, { sx: { color: "text.secondary" }, variant: "body2", children: t }),
|
|
35
|
+
sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
|
|
36
|
+
title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ r(g, { ref: m, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: l, availableWidth: h, children: e }) })
|
|
40
|
+
] });
|
|
41
|
+
return d === "borderless" ? i : /* @__PURE__ */ r(C, { className: o, sx: { alignItems: "center", p: 16, ...s }, children: i });
|
|
42
|
+
}, F = H;
|
|
43
|
+
export {
|
|
44
|
+
F as M
|
|
45
|
+
};
|