@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,110 +1,149 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as B } from "react/jsx-runtime";
|
|
2
2
|
import x from "react";
|
|
3
|
-
import { observer as
|
|
4
|
-
import { endOfMonth as
|
|
5
|
-
import { endOfToday as
|
|
6
|
-
import { startOfMonth as
|
|
7
|
-
import { startOfToday as
|
|
8
|
-
import { subDays as
|
|
9
|
-
import { R as
|
|
10
|
-
import { M as
|
|
11
|
-
import { addMonths as
|
|
3
|
+
import { observer as R } from "mobx-react-lite";
|
|
4
|
+
import { endOfMonth as H } from "date-fns/endOfMonth";
|
|
5
|
+
import { endOfToday as J } from "date-fns/endOfToday";
|
|
6
|
+
import { startOfMonth as k } from "date-fns/startOfMonth";
|
|
7
|
+
import { startOfToday as Q } from "date-fns/startOfToday";
|
|
8
|
+
import { subDays as ee } from "date-fns/subDays";
|
|
9
|
+
import { R as _e } from "../RecurringSettings-BN9H5ALr.mjs";
|
|
10
|
+
import { M as Yn } from "../RecurringSettings-BN9H5ALr.mjs";
|
|
11
|
+
import { addMonths as He } from "date-fns/addMonths";
|
|
12
12
|
import { subMonths as $e } from "date-fns/subMonths";
|
|
13
13
|
import { isBefore as Be } from "date-fns/isBefore";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import { Text as h, MerchantLogo as
|
|
21
|
-
import { getWeeksInMonth as
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import {
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import {
|
|
52
|
-
import { S as
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import
|
|
56
|
-
import {
|
|
57
|
-
import { u as
|
|
58
|
-
import {
|
|
59
|
-
|
|
14
|
+
import q from "@mui/material/Unstable_Grid2";
|
|
15
|
+
import he from "@mui/material/IconButton";
|
|
16
|
+
import d from "@mui/material/Stack";
|
|
17
|
+
import fe from "@mui/material/Tab";
|
|
18
|
+
import Fe from "@mui/material/Tabs";
|
|
19
|
+
import { Schedule as ze, MonetizationOn as Ue, Cancel as Se, CheckCircle as we, ChevronLeft as Ye, ChevronRight as je, CurrencyExchange as Ke } from "@mxenabled/mx-icons";
|
|
20
|
+
import { Text as h, MerchantLogo as te, InstitutionLogo as Ve, H3 as qe, H2 as Ze, P as Z } from "@mxenabled/mxui";
|
|
21
|
+
import { getWeeksInMonth as xe } from "date-fns/getWeeksInMonth";
|
|
22
|
+
import { enCA as Xe } from "date-fns/locale/en-CA";
|
|
23
|
+
import { enUS as be } from "date-fns/locale/en-US";
|
|
24
|
+
import { es as Je } from "date-fns/locale/es";
|
|
25
|
+
import { fr as Qe } from "date-fns/locale/fr";
|
|
26
|
+
import { frCA as et } from "date-fns/locale/fr-CA";
|
|
27
|
+
import ne from "@mui/material/styles/useTheme";
|
|
28
|
+
import { AdapterDateFns as tt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
29
|
+
import { DateCalendar as nt } from "@mui/x-date-pickers/DateCalendar";
|
|
30
|
+
import { LocalizationProvider as rt } from "@mui/x-date-pickers/LocalizationProvider";
|
|
31
|
+
import { isSameDay as it } from "date-fns/isSameDay";
|
|
32
|
+
import ot from "@mui/material/Badge";
|
|
33
|
+
import { PickersDay as at } from "@mui/x-date-pickers/PickersDay";
|
|
34
|
+
import { I as F } from "../IconBacking-B9oC6uL2.mjs";
|
|
35
|
+
import { u as y, b as z, i as I, g as U, p as Ie, h as re } from "../hooks-BxkfR-Ff.mjs";
|
|
36
|
+
import { b as A, a as D } from "../RepeatingTransaction-DF4vJn_v.mjs";
|
|
37
|
+
import { f as S, D as w } from "../DateFormats-BMpMrZpW.mjs";
|
|
38
|
+
import { T as G } from "../RecurringTransactionsStore-CkMA7gY3.mjs";
|
|
39
|
+
import { R as Kn } from "../RecurringTransactionsStore-CkMA7gY3.mjs";
|
|
40
|
+
import { g as st, L as W, b as N } from "../Localization-CPkpIwIx.mjs";
|
|
41
|
+
import { A as L } from "../Analytics-BYItVAe-.mjs";
|
|
42
|
+
import ct from "@mui/material/Button";
|
|
43
|
+
import X from "@mui/material/Divider";
|
|
44
|
+
import Ce from "@mui/material/List";
|
|
45
|
+
import Me from "@mui/material/ListItem";
|
|
46
|
+
import lt from "@mui/material/ListSubheader";
|
|
47
|
+
import { g as ye, d as dt } from "../RecurringTransactions-BCJp-Nap.mjs";
|
|
48
|
+
import ut from "@mui/material/ListItemAvatar";
|
|
49
|
+
import mt from "@mui/material/ListItemButton";
|
|
50
|
+
import pt from "@mui/material/ListItemText";
|
|
51
|
+
import { b as gt } from "../ManageIncome-Cc-wba0I.mjs";
|
|
52
|
+
import { c as qn, M as Zn, S as Xn } from "../ManageIncome-Cc-wba0I.mjs";
|
|
53
|
+
import { f as E } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
54
|
+
import { D as ie } from "../Drawer-Bbe4AMB1.mjs";
|
|
55
|
+
import O from "@mui/material/Box";
|
|
56
|
+
import { S as Le } from "../StatusBar-BK_uYHAB.mjs";
|
|
57
|
+
import { u as oe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
58
|
+
import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
59
|
+
import { u as ae } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
60
|
+
import { L as se } from "../Loader-D3rjKx72.mjs";
|
|
61
|
+
import { W as ht } from "../WidgetContainer-B7xDq2bM.mjs";
|
|
62
|
+
import { M as ft } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
|
|
63
|
+
import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
|
|
64
|
+
import { M as bt } from "../MicroWidgetContainer-B_EnfvCq.mjs";
|
|
65
|
+
const Y = {
|
|
60
66
|
gridRow: 1,
|
|
61
67
|
gridColumn: 1,
|
|
62
68
|
zIndex: 2
|
|
63
|
-
},
|
|
64
|
-
|
|
69
|
+
}, j = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
70
|
+
F,
|
|
65
71
|
{
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
backingSx: { backgroundColor: "background.paper" },
|
|
73
|
+
size: n,
|
|
74
|
+
sx: { ...j(t) },
|
|
75
|
+
children: /* @__PURE__ */ e(ze, { color: "primary", filled: !0, sx: { fontSize: n, ...Y } })
|
|
68
76
|
}
|
|
69
|
-
)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
78
|
+
F,
|
|
79
|
+
{
|
|
80
|
+
backingSx: { backgroundColor: "background.paper" },
|
|
81
|
+
size: n,
|
|
82
|
+
sx: { ...j(t) },
|
|
83
|
+
children: /* @__PURE__ */ e(
|
|
84
|
+
Ue,
|
|
85
|
+
{
|
|
86
|
+
filled: !0,
|
|
87
|
+
sx: { color: "categories.income", fontSize: n, ...Y }
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
}
|
|
91
|
+
), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
92
|
+
F,
|
|
93
|
+
{
|
|
94
|
+
backingSx: { backgroundColor: "background.paper" },
|
|
95
|
+
size: n,
|
|
96
|
+
sx: { ...j(t) },
|
|
97
|
+
children: /* @__PURE__ */ e(Se, { color: "error", filled: !0, sx: { fontSize: n, ...Y } })
|
|
98
|
+
}
|
|
99
|
+
), ue = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
100
|
+
F,
|
|
101
|
+
{
|
|
102
|
+
backingSx: { backgroundColor: "background.paper" },
|
|
103
|
+
size: n,
|
|
104
|
+
sx: { ...j(t) },
|
|
105
|
+
children: /* @__PURE__ */ e(we, { color: "success", filled: !0, sx: { fontSize: n, ...Y } })
|
|
106
|
+
}
|
|
107
|
+
), Ct = R(
|
|
108
|
+
({ day: t, outsideCurrentMonth: n, ...r }) => {
|
|
109
|
+
const { recurring: o } = y(), { selectedAccountGuids: i } = z(), { recurrences: c, setSelectedDay: u } = I(), a = x.useMemo(
|
|
110
|
+
() => c.filter((f) => i.includes(f.accountGuid)),
|
|
111
|
+
[i, c]
|
|
74
112
|
).filter(
|
|
75
|
-
(f) =>
|
|
76
|
-
),
|
|
77
|
-
(f) => f.type !==
|
|
78
|
-
), m =
|
|
79
|
-
(f) => f.type !==
|
|
80
|
-
), g =
|
|
81
|
-
(f) => f.type !==
|
|
82
|
-
), b =
|
|
113
|
+
(f) => it(f.occurredOnDate || f.expectedDate, t)
|
|
114
|
+
), l = a.some(
|
|
115
|
+
(f) => f.type !== A.Income && f.status === D.Upcoming
|
|
116
|
+
), m = a.some(
|
|
117
|
+
(f) => f.type !== A.Income && f.status === D.Missed
|
|
118
|
+
), g = a.some(
|
|
119
|
+
(f) => f.type !== A.Income && f.status === D.Paid
|
|
120
|
+
), b = a.some((f) => f.type === A.Income), C = (l ? 1 : 0) + (m ? 1 : 0) + (g ? 1 : 0) + (b ? 1 : 0), v = [
|
|
121
|
+
g && o.paid,
|
|
122
|
+
m && o.missed,
|
|
123
|
+
l && o.upcoming,
|
|
124
|
+
b && o.income
|
|
125
|
+
].filter(Boolean), M = v.length > 0 ? `${S(t, w.MONTH_DAY_YEAR)}, ${v.join(", ")}` : S(t, w.MONTH_DAY_YEAR);
|
|
83
126
|
return /* @__PURE__ */ e(
|
|
84
|
-
|
|
127
|
+
ot,
|
|
85
128
|
{
|
|
86
|
-
badgeContent:
|
|
87
|
-
m && /* @__PURE__ */ e(
|
|
88
|
-
g && /* @__PURE__ */ e(
|
|
89
|
-
|
|
90
|
-
b && /* @__PURE__ */ e(
|
|
129
|
+
badgeContent: a.length > 0 && /* @__PURE__ */ s(B, { children: [
|
|
130
|
+
m && /* @__PURE__ */ e(de, { isOffset: !0 }),
|
|
131
|
+
g && /* @__PURE__ */ e(ue, { isOffset: !0 }),
|
|
132
|
+
l && /* @__PURE__ */ e(ce, { isOffset: !0 }),
|
|
133
|
+
b && /* @__PURE__ */ e(le, { isOffset: !0 })
|
|
91
134
|
] }),
|
|
92
135
|
overlap: "circular",
|
|
93
136
|
sx: {
|
|
94
137
|
"& .MuiBadge-badge": {
|
|
95
138
|
padding: 0,
|
|
96
|
-
marginRight: `${(
|
|
139
|
+
marginRight: `${(C - 1) * 6 + 1}px`,
|
|
97
140
|
flexWrap: "nowrap"
|
|
98
141
|
}
|
|
99
142
|
},
|
|
100
143
|
children: /* @__PURE__ */ e(
|
|
101
|
-
|
|
144
|
+
at,
|
|
102
145
|
{
|
|
103
|
-
"aria-label":
|
|
104
|
-
${g && o.paid},
|
|
105
|
-
${m && o.missed},
|
|
106
|
-
${d && o.upcoming},
|
|
107
|
-
${b && o.income}`,
|
|
146
|
+
"aria-label": M,
|
|
108
147
|
day: t,
|
|
109
148
|
onClick: () => u(t),
|
|
110
149
|
outsideCurrentMonth: n,
|
|
@@ -115,19 +154,19 @@ const F = {
|
|
|
115
154
|
}
|
|
116
155
|
}
|
|
117
156
|
},
|
|
118
|
-
...
|
|
157
|
+
...r
|
|
119
158
|
}
|
|
120
159
|
)
|
|
121
160
|
}
|
|
122
161
|
);
|
|
123
162
|
}
|
|
124
|
-
), $ = ({ icon: t, label: n }) => /* @__PURE__ */
|
|
163
|
+
), $ = ({ icon: t, label: n }) => /* @__PURE__ */ s(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
125
164
|
/* @__PURE__ */ e(t, {}),
|
|
126
|
-
/* @__PURE__ */ e(h, { variant: "
|
|
127
|
-
] }),
|
|
128
|
-
const { recurring: t } =
|
|
129
|
-
return /* @__PURE__ */
|
|
130
|
-
|
|
165
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: n })
|
|
166
|
+
] }), yt = R(() => {
|
|
167
|
+
const { recurring: t } = y();
|
|
168
|
+
return /* @__PURE__ */ s(
|
|
169
|
+
d,
|
|
131
170
|
{
|
|
132
171
|
alignItems: "center",
|
|
133
172
|
"aria-hidden": !0,
|
|
@@ -136,35 +175,44 @@ const F = {
|
|
|
136
175
|
justifyContent: "center",
|
|
137
176
|
mt: 12,
|
|
138
177
|
children: [
|
|
139
|
-
/* @__PURE__ */ e($, { icon:
|
|
140
|
-
/* @__PURE__ */ e($, { icon:
|
|
141
|
-
/* @__PURE__ */ e($, { icon:
|
|
142
|
-
/* @__PURE__ */ e($, { icon:
|
|
178
|
+
/* @__PURE__ */ e($, { icon: ce, label: t.expense }),
|
|
179
|
+
/* @__PURE__ */ e($, { icon: le, label: t.income }),
|
|
180
|
+
/* @__PURE__ */ e($, { icon: de, label: t.missed }),
|
|
181
|
+
/* @__PURE__ */ e($, { icon: ue, label: t.paid })
|
|
143
182
|
]
|
|
144
183
|
}
|
|
145
184
|
);
|
|
146
|
-
}),
|
|
147
|
-
const t =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
185
|
+
}), Re = 58, Rt = () => {
|
|
186
|
+
const t = st();
|
|
187
|
+
return {
|
|
188
|
+
[W.EN_US]: be,
|
|
189
|
+
[W.EN_CA]: Xe,
|
|
190
|
+
[W.FR]: Qe,
|
|
191
|
+
[W.FR_CA]: et,
|
|
192
|
+
[W.ES]: Je
|
|
193
|
+
}[t] || be;
|
|
194
|
+
}, Ae = R(() => {
|
|
195
|
+
const t = ne(), { onEvent: n } = U(), { recurring: r } = y(), { selectedDay: o, setDateRange: i } = I(), [c, u] = x.useState(
|
|
196
|
+
xe(/* @__PURE__ */ new Date()) * G + Re
|
|
197
|
+
), p = (m) => {
|
|
198
|
+
u(xe(m) * G + Re), i({
|
|
199
|
+
start: k(m),
|
|
200
|
+
end: H(m)
|
|
201
|
+
}), a(m), n(L.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
202
|
+
}, a = (m) => {
|
|
155
203
|
m && requestAnimationFrame(() => {
|
|
156
204
|
const g = document.getElementById("recurrence-list");
|
|
157
205
|
g?.setAttribute("tabindex", "-1"), g?.focus();
|
|
158
206
|
});
|
|
159
|
-
},
|
|
160
|
-
|
|
207
|
+
}, l = /* @__PURE__ */ e(
|
|
208
|
+
nt,
|
|
161
209
|
{
|
|
162
|
-
minDate:
|
|
163
|
-
onChange:
|
|
164
|
-
onMonthChange:
|
|
210
|
+
minDate: k(/* @__PURE__ */ new Date()),
|
|
211
|
+
onChange: a,
|
|
212
|
+
onMonthChange: p,
|
|
165
213
|
showDaysOutsideCurrentMonth: !0,
|
|
166
214
|
slots: {
|
|
167
|
-
day:
|
|
215
|
+
day: Ct
|
|
168
216
|
},
|
|
169
217
|
sx: {
|
|
170
218
|
"& .MuiPickersArrowSwitcher-button": {
|
|
@@ -185,136 +233,113 @@ const F = {
|
|
|
185
233
|
pr: 8
|
|
186
234
|
},
|
|
187
235
|
"& .MuiPickersCalendarHeader-label": {
|
|
188
|
-
fontFamily: t.typography.
|
|
189
|
-
fontSize: t.typography.
|
|
236
|
+
fontFamily: t.typography.body1.fontFamily,
|
|
237
|
+
fontSize: t.typography.body1.fontSize,
|
|
190
238
|
fontWeight: 600
|
|
191
239
|
},
|
|
192
240
|
"& .MuiDayCalendar-slideTransition": {
|
|
193
|
-
minHeight:
|
|
241
|
+
minHeight: c
|
|
194
242
|
},
|
|
195
243
|
"&.MuiDateCalendar-root": {
|
|
196
|
-
minHeight:
|
|
244
|
+
minHeight: c + G
|
|
197
245
|
},
|
|
198
246
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
|
199
|
-
height:
|
|
200
|
-
width:
|
|
247
|
+
height: G,
|
|
248
|
+
width: G,
|
|
201
249
|
margin: 0
|
|
202
250
|
},
|
|
203
251
|
"& .MuiDayCalendar-weekDayLabel": {
|
|
204
252
|
fontFamily: t.typography.h3.fontFamily,
|
|
205
253
|
fontSize: t.typography.body2.fontSize
|
|
206
|
-
}
|
|
254
|
+
},
|
|
255
|
+
"& .MuiPickersDay-dayOutsideMonth": {
|
|
256
|
+
color: "text.secondary"
|
|
257
|
+
},
|
|
258
|
+
textTransform: "capitalize"
|
|
207
259
|
},
|
|
208
|
-
value:
|
|
260
|
+
value: o,
|
|
209
261
|
views: ["day"]
|
|
210
262
|
}
|
|
211
263
|
);
|
|
212
|
-
return /* @__PURE__ */
|
|
213
|
-
l,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
{
|
|
222
|
-
id: "calendar-label",
|
|
223
|
-
style: {
|
|
224
|
-
position: "absolute",
|
|
225
|
-
width: "1px",
|
|
226
|
-
height: "1px",
|
|
227
|
-
padding: 0,
|
|
228
|
-
margin: "-1px",
|
|
229
|
-
overflow: "hidden",
|
|
230
|
-
clip: "rect(0, 0, 0, 0)",
|
|
231
|
-
whiteSpace: "nowrap",
|
|
232
|
-
border: 0
|
|
233
|
-
},
|
|
234
|
-
children: "Calendar filter for recurring transactions list. Filter by month or select specific date."
|
|
235
|
-
}
|
|
236
|
-
),
|
|
237
|
-
/* @__PURE__ */ a(qe, { dateAdapter: Ve, children: [
|
|
238
|
-
i && s,
|
|
239
|
-
!i && s,
|
|
240
|
-
/* @__PURE__ */ e(mt, {})
|
|
241
|
-
] })
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
);
|
|
245
|
-
}), pt = (t) => {
|
|
246
|
-
if (t.type === I.Income)
|
|
247
|
-
return /* @__PURE__ */ e(ce, {});
|
|
264
|
+
return /* @__PURE__ */ e(d, { "aria-labelledby": "calendar-label", justifyContent: "center", role: "group", children: /* @__PURE__ */ s(rt, { adapterLocale: Rt(), dateAdapter: tt, children: [
|
|
265
|
+
o && l,
|
|
266
|
+
!o && l,
|
|
267
|
+
/* @__PURE__ */ e(h, { id: "calendar-label", sx: { alignSelf: "center" }, variant: "body2", children: r.calendar_tooltip }),
|
|
268
|
+
/* @__PURE__ */ e(yt, {})
|
|
269
|
+
] }) });
|
|
270
|
+
}), Dt = (t) => {
|
|
271
|
+
if (t.type === A.Income)
|
|
272
|
+
return /* @__PURE__ */ e(le, {});
|
|
248
273
|
switch (t.status) {
|
|
249
|
-
case
|
|
250
|
-
return /* @__PURE__ */ e(le, {});
|
|
251
|
-
case T.Paid:
|
|
274
|
+
case D.Missed:
|
|
252
275
|
return /* @__PURE__ */ e(de, {});
|
|
276
|
+
case D.Paid:
|
|
277
|
+
return /* @__PURE__ */ e(ue, {});
|
|
253
278
|
default:
|
|
254
|
-
return /* @__PURE__ */ e(
|
|
279
|
+
return /* @__PURE__ */ e(ce, {});
|
|
255
280
|
}
|
|
256
|
-
},
|
|
281
|
+
}, Tt = (t, n) => {
|
|
257
282
|
switch (t.status) {
|
|
258
|
-
case
|
|
259
|
-
return t.expectedDate ?
|
|
283
|
+
case D.Paid:
|
|
284
|
+
return t.expectedDate ? N(
|
|
260
285
|
n.paid_on,
|
|
261
|
-
|
|
286
|
+
S(
|
|
262
287
|
t.occurredOnDate || t.expectedDate,
|
|
263
|
-
|
|
288
|
+
w.MONTH_DAY
|
|
264
289
|
)
|
|
265
290
|
) : n.paid;
|
|
266
|
-
case
|
|
267
|
-
return
|
|
291
|
+
case D.Missed:
|
|
292
|
+
return N(
|
|
268
293
|
n.missed_on,
|
|
269
|
-
|
|
294
|
+
S(t.expectedDate, w.MONTH_DAY)
|
|
270
295
|
);
|
|
271
|
-
case
|
|
272
|
-
return
|
|
296
|
+
case D.Upcoming:
|
|
297
|
+
return N(
|
|
273
298
|
n.upcoming_on,
|
|
274
|
-
|
|
299
|
+
S(t.expectedDate, w.MONTH_DAY)
|
|
275
300
|
);
|
|
276
301
|
default:
|
|
277
302
|
return n.unknown;
|
|
278
303
|
}
|
|
279
|
-
},
|
|
304
|
+
}, De = ({
|
|
280
305
|
recurrence: t,
|
|
281
306
|
isMini: n = !1,
|
|
282
|
-
onRecurrenceClick:
|
|
307
|
+
onRecurrenceClick: r = () => {
|
|
283
308
|
},
|
|
284
309
|
showOrdinal: o = !1
|
|
285
310
|
}) => {
|
|
286
|
-
const { recurring:
|
|
287
|
-
() => c.find((
|
|
311
|
+
const { recurring: i } = y(), { detailedRepeatingTransactions: c } = I(), [u, p] = x.useState(!1), a = x.useMemo(
|
|
312
|
+
() => c.find((M) => M.guid === t.repeatingTransactionGuid),
|
|
288
313
|
[t, c]
|
|
289
|
-
),
|
|
290
|
-
let
|
|
291
|
-
return g ?
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
/* @__PURE__ */
|
|
294
|
-
p(!0),
|
|
314
|
+
), l = t.type === A.Income, m = t.status === D.Paid, g = t.status === D.Missed, b = t.status === D.Upcoming;
|
|
315
|
+
let C = i.paid?.toLowerCase();
|
|
316
|
+
return g ? C = i.missed?.toLowerCase() : b && (C = o ? ye(i, a || {}, !0) : ye(i, a || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
317
|
+
/* @__PURE__ */ s(Me, { disableGutters: !0, disablePadding: !0, children: [
|
|
318
|
+
/* @__PURE__ */ s(mt, { onClick: () => {
|
|
319
|
+
p(!0), r(t);
|
|
295
320
|
}, children: [
|
|
296
|
-
/* @__PURE__ */ e(
|
|
297
|
-
|
|
321
|
+
/* @__PURE__ */ e(ut, { children: /* @__PURE__ */ e(
|
|
322
|
+
te,
|
|
298
323
|
{
|
|
299
324
|
categoryGuid: t.categoryGuid,
|
|
300
325
|
merchantGuid: t.merchantGuid
|
|
301
326
|
}
|
|
302
327
|
) }),
|
|
303
|
-
/* @__PURE__ */ e(
|
|
304
|
-
|
|
328
|
+
/* @__PURE__ */ e(pt, { children: /* @__PURE__ */ s(
|
|
329
|
+
d,
|
|
305
330
|
{
|
|
306
331
|
direction: "row",
|
|
307
332
|
gap: 4,
|
|
308
333
|
sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
|
|
309
334
|
children: [
|
|
310
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ s(d, { direction: "column", width: "50%", children: [
|
|
311
336
|
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
|
|
312
|
-
/* @__PURE__ */ e(
|
|
313
|
-
|
|
314
|
-
/* @__PURE__ */ e(h, { variant: "caption", children:
|
|
315
|
-
] }) : /* @__PURE__ */
|
|
337
|
+
/* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ s(d, { direction: "row", gap: 4, children: [
|
|
338
|
+
Dt(t),
|
|
339
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: Tt(t, i) })
|
|
340
|
+
] }) : /* @__PURE__ */ s(B, { children: [
|
|
316
341
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
317
|
-
|
|
342
|
+
Ve,
|
|
318
343
|
{
|
|
319
344
|
alt: `${t.institutionName} institution logo`,
|
|
320
345
|
institutionGuid: t.institutionGuid,
|
|
@@ -324,13 +349,13 @@ const F = {
|
|
|
324
349
|
/* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
|
|
325
350
|
] }) })
|
|
326
351
|
] }),
|
|
327
|
-
/* @__PURE__ */
|
|
328
|
-
/* @__PURE__ */
|
|
329
|
-
|
|
330
|
-
|
|
352
|
+
/* @__PURE__ */ s(d, { alignItems: "flex-end", width: "100%", children: [
|
|
353
|
+
/* @__PURE__ */ s(h, { bold: !0, color: l ? "success.main" : "text.primary", variant: "body1", children: [
|
|
354
|
+
l ? "+" : "",
|
|
355
|
+
E(t.amount, "0,0.00")
|
|
331
356
|
] }),
|
|
332
|
-
!n && /* @__PURE__ */
|
|
333
|
-
|
|
357
|
+
!n && /* @__PURE__ */ s(
|
|
358
|
+
d,
|
|
334
359
|
{
|
|
335
360
|
direction: "row",
|
|
336
361
|
sx: {
|
|
@@ -342,8 +367,8 @@ const F = {
|
|
|
342
367
|
},
|
|
343
368
|
children: [
|
|
344
369
|
m && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
|
|
345
|
-
g && /* @__PURE__ */ e(
|
|
346
|
-
/* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children:
|
|
370
|
+
g && /* @__PURE__ */ e(Se, { color: "error", filled: !0, size: 12 }),
|
|
371
|
+
/* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: C })
|
|
347
372
|
]
|
|
348
373
|
}
|
|
349
374
|
)
|
|
@@ -355,33 +380,33 @@ const F = {
|
|
|
355
380
|
/* @__PURE__ */ e(
|
|
356
381
|
ie,
|
|
357
382
|
{
|
|
358
|
-
ariaLabelClose:
|
|
383
|
+
ariaLabelClose: i.close_drawer_aria,
|
|
359
384
|
isOpen: u,
|
|
360
385
|
onClose: () => p(!1),
|
|
361
|
-
title: t.type ===
|
|
362
|
-
children:
|
|
363
|
-
|
|
386
|
+
title: t.type === A.Income ? i.income_details : i.expense_details,
|
|
387
|
+
children: a && /* @__PURE__ */ e(
|
|
388
|
+
gt,
|
|
364
389
|
{
|
|
365
390
|
onDeleted: () => p(!1),
|
|
366
|
-
recurringTransaction:
|
|
391
|
+
recurringTransaction: a
|
|
367
392
|
}
|
|
368
393
|
)
|
|
369
394
|
}
|
|
370
395
|
)
|
|
371
396
|
] });
|
|
372
|
-
},
|
|
397
|
+
}, P = R(
|
|
373
398
|
({
|
|
374
399
|
recurrences: t,
|
|
375
400
|
isMini: n = !1,
|
|
376
|
-
onResetClick:
|
|
401
|
+
onResetClick: r,
|
|
377
402
|
onRecurrenceClick: o,
|
|
378
|
-
sx:
|
|
403
|
+
sx: i = {},
|
|
379
404
|
title: c
|
|
380
405
|
}) => {
|
|
381
|
-
const { recurring: u } =
|
|
382
|
-
return /* @__PURE__ */
|
|
383
|
-
c && /* @__PURE__ */
|
|
384
|
-
|
|
406
|
+
const { recurring: u } = y(), p = x.useMemo(() => dt(t), [t]);
|
|
407
|
+
return /* @__PURE__ */ s(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...i }, "tab-index": -1, children: [
|
|
408
|
+
c && /* @__PURE__ */ s(
|
|
409
|
+
d,
|
|
385
410
|
{
|
|
386
411
|
sx: {
|
|
387
412
|
alignItems: "center",
|
|
@@ -390,29 +415,29 @@ const F = {
|
|
|
390
415
|
px: 24
|
|
391
416
|
},
|
|
392
417
|
children: [
|
|
393
|
-
/* @__PURE__ */ e(
|
|
394
|
-
|
|
418
|
+
/* @__PURE__ */ e(qe, { bold: !0, variant: "body1", children: c }),
|
|
419
|
+
r && /* @__PURE__ */ e(ct, { onClick: r, size: "small", variant: "text", children: u.reset })
|
|
395
420
|
]
|
|
396
421
|
}
|
|
397
422
|
),
|
|
398
|
-
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(
|
|
423
|
+
t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(Ce, { children: n ? t.map((a, l) => /* @__PURE__ */ s(x.Fragment, { children: [
|
|
399
424
|
/* @__PURE__ */ e(
|
|
400
|
-
|
|
425
|
+
De,
|
|
401
426
|
{
|
|
402
427
|
isMini: n,
|
|
403
428
|
onRecurrenceClick: o,
|
|
404
|
-
recurrence:
|
|
429
|
+
recurrence: a
|
|
405
430
|
}
|
|
406
431
|
),
|
|
407
|
-
/* @__PURE__ */ e(
|
|
408
|
-
] }, `recurrence-${
|
|
409
|
-
/* @__PURE__ */ e(
|
|
410
|
-
|
|
432
|
+
/* @__PURE__ */ e(X, { sx: { mx: 24 } })
|
|
433
|
+
] }, `recurrence-${l}`)) : p.map((a, l) => /* @__PURE__ */ s(x.Fragment, { children: [
|
|
434
|
+
/* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(
|
|
435
|
+
Ce,
|
|
411
436
|
{
|
|
412
|
-
subheader: /* @__PURE__ */ e(
|
|
437
|
+
subheader: /* @__PURE__ */ e(lt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: S(a.date, w.DAY_OF_WEEK_MONTH_DAY) }) }),
|
|
413
438
|
sx: { width: "100%" },
|
|
414
|
-
children:
|
|
415
|
-
|
|
439
|
+
children: a.recurrences.map((m, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
|
|
440
|
+
De,
|
|
416
441
|
{
|
|
417
442
|
isMini: n,
|
|
418
443
|
onRecurrenceClick: o,
|
|
@@ -420,178 +445,178 @@ const F = {
|
|
|
420
445
|
}
|
|
421
446
|
) }, `day-recurrence-${g}`))
|
|
422
447
|
}
|
|
423
|
-
) },
|
|
424
|
-
/* @__PURE__ */ e(
|
|
425
|
-
] }, `recurrence-${
|
|
448
|
+
) }, a.id),
|
|
449
|
+
/* @__PURE__ */ e(X, { sx: { mx: 24 } })
|
|
450
|
+
] }, `recurrence-${l}`)) })
|
|
426
451
|
] });
|
|
427
452
|
}
|
|
428
|
-
),
|
|
429
|
-
({ expected: t, isExpense: n = !0, missed:
|
|
430
|
-
const p =
|
|
453
|
+
), Te = R(
|
|
454
|
+
({ expected: t, isExpense: n = !0, missed: r, paid: o, title: i, total: c, upcoming: u }) => {
|
|
455
|
+
const p = ne(), { isSmallMobile: a } = oe(), { recurring: l } = y(), m = x.useMemo(() => {
|
|
431
456
|
const g = [{ color: p.palette.success.main, percentage: `${o / t}` }];
|
|
432
|
-
return
|
|
433
|
-
}, [o, t,
|
|
434
|
-
return /* @__PURE__ */
|
|
435
|
-
/* @__PURE__ */
|
|
436
|
-
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${
|
|
437
|
-
/* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${
|
|
457
|
+
return r && g.push({ color: p.palette.error.main, percentage: `${r / t}` }), g;
|
|
458
|
+
}, [o, t, r]);
|
|
459
|
+
return /* @__PURE__ */ s(d, { children: [
|
|
460
|
+
/* @__PURE__ */ s(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
|
|
461
|
+
/* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${i} (${c})` }),
|
|
462
|
+
/* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${E(t, "0,0.00")}` })
|
|
438
463
|
] }),
|
|
439
|
-
/* @__PURE__ */ e(
|
|
440
|
-
/* @__PURE__ */
|
|
441
|
-
/* @__PURE__ */ e(
|
|
442
|
-
!
|
|
443
|
-
/* @__PURE__ */ e(h, { variant: "caption", children:
|
|
444
|
-
|
|
445
|
-
/* @__PURE__ */ e(
|
|
446
|
-
!
|
|
447
|
-
/* @__PURE__ */ e(h, { variant: "caption", children:
|
|
464
|
+
/* @__PURE__ */ e(Le, { data: m, height: 12 }),
|
|
465
|
+
/* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
|
|
466
|
+
/* @__PURE__ */ e(O, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
467
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(o, "0,0.00") }),
|
|
468
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: l.paid?.toLowerCase() }),
|
|
469
|
+
r !== void 0 && /* @__PURE__ */ s(B, { children: [
|
|
470
|
+
/* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
471
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(r, "0,0.00") }),
|
|
472
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: l.missed?.toLowerCase() })
|
|
448
473
|
] }),
|
|
449
|
-
/* @__PURE__ */ e(
|
|
450
|
-
!
|
|
451
|
-
/* @__PURE__ */ e(h, { variant: "caption", children:
|
|
474
|
+
/* @__PURE__ */ e(O, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
475
|
+
!a && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: E(u, "0,0.00") }),
|
|
476
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: l.upcoming?.toLowerCase() })
|
|
452
477
|
] })
|
|
453
478
|
] });
|
|
454
479
|
}
|
|
455
|
-
),
|
|
456
|
-
const { recurring: t } =
|
|
480
|
+
), _t = R(() => {
|
|
481
|
+
const { recurring: t } = y(), { availableWidth: n } = Ie(), { isDesktop: r, isSmallMobile: o, isMobile: i } = oe(n), { onEvent: c } = U(), {
|
|
457
482
|
currentMonthExpenses: u,
|
|
458
483
|
currentMonthIncome: p,
|
|
459
|
-
dateRange:
|
|
460
|
-
expenseTotal:
|
|
484
|
+
dateRange: a,
|
|
485
|
+
expenseTotal: l,
|
|
461
486
|
incomeTotal: m,
|
|
462
487
|
missedExpenseTotal: g,
|
|
463
488
|
pastRecurrences: b,
|
|
464
|
-
paidExpenseTotal:
|
|
465
|
-
paidIncomeTotal:
|
|
466
|
-
selectedDay:
|
|
467
|
-
selectedDayRecurrences:
|
|
468
|
-
setDateRange:
|
|
489
|
+
paidExpenseTotal: C,
|
|
490
|
+
paidIncomeTotal: v,
|
|
491
|
+
selectedDay: M,
|
|
492
|
+
selectedDayRecurrences: f,
|
|
493
|
+
setDateRange: _,
|
|
469
494
|
upcomingExpenseTotal: K,
|
|
470
|
-
upcomingIncomeTotal:
|
|
471
|
-
upcomingRecurrences:
|
|
472
|
-
} =
|
|
473
|
-
|
|
474
|
-
},
|
|
475
|
-
c(
|
|
476
|
-
transaction_guid:
|
|
495
|
+
upcomingIncomeTotal: Ee,
|
|
496
|
+
upcomingRecurrences: me
|
|
497
|
+
} = I(), [V, Ne] = x.useState(0), Oe = Be(a.start, /* @__PURE__ */ new Date()), ke = (T, Pe) => {
|
|
498
|
+
Ne(Pe);
|
|
499
|
+
}, pe = (T) => {
|
|
500
|
+
c(L.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
501
|
+
transaction_guid: T.transaction?.guid
|
|
477
502
|
});
|
|
478
|
-
},
|
|
479
|
-
c(
|
|
480
|
-
transaction_guid:
|
|
503
|
+
}, ge = (T) => {
|
|
504
|
+
c(L.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
505
|
+
transaction_guid: T.transaction?.guid
|
|
481
506
|
});
|
|
482
507
|
}, Ge = () => {
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
start:
|
|
486
|
-
end:
|
|
508
|
+
const T = He(a.start, 1);
|
|
509
|
+
_({
|
|
510
|
+
start: k(T),
|
|
511
|
+
end: H(T)
|
|
487
512
|
});
|
|
488
|
-
},
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
start:
|
|
492
|
-
end:
|
|
513
|
+
}, We = () => {
|
|
514
|
+
const T = $e(a.start, 1);
|
|
515
|
+
_({
|
|
516
|
+
start: k(T),
|
|
517
|
+
end: H(T)
|
|
493
518
|
});
|
|
494
519
|
};
|
|
495
|
-
return /* @__PURE__ */
|
|
496
|
-
|
|
520
|
+
return /* @__PURE__ */ s(
|
|
521
|
+
q,
|
|
497
522
|
{
|
|
498
523
|
container: !0,
|
|
499
524
|
sx: {
|
|
500
525
|
pt: 16
|
|
501
526
|
},
|
|
502
527
|
children: [
|
|
503
|
-
/* @__PURE__ */
|
|
504
|
-
/* @__PURE__ */
|
|
505
|
-
/* @__PURE__ */
|
|
506
|
-
/* @__PURE__ */ e(
|
|
528
|
+
/* @__PURE__ */ s(q, { md: !0, sm: 12, width: "100%", children: [
|
|
529
|
+
/* @__PURE__ */ s(d, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
|
|
530
|
+
/* @__PURE__ */ s(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
531
|
+
/* @__PURE__ */ e(Ze, { variant: "h3", children: N(
|
|
507
532
|
t.header_title,
|
|
508
|
-
|
|
533
|
+
S(a.start, w.MONTH_LONG)
|
|
509
534
|
) }),
|
|
510
|
-
!
|
|
535
|
+
!r && /* @__PURE__ */ s(d, { direction: "row", gap: 4, children: [
|
|
511
536
|
/* @__PURE__ */ e(
|
|
512
|
-
|
|
537
|
+
he,
|
|
513
538
|
{
|
|
514
539
|
color: "primary",
|
|
515
|
-
disabled:
|
|
516
|
-
onClick:
|
|
517
|
-
children: /* @__PURE__ */ e(
|
|
540
|
+
disabled: Oe,
|
|
541
|
+
onClick: We,
|
|
542
|
+
children: /* @__PURE__ */ e(Ye, {})
|
|
518
543
|
}
|
|
519
544
|
),
|
|
520
|
-
/* @__PURE__ */ e(
|
|
545
|
+
/* @__PURE__ */ e(he, { color: "primary", onClick: Ge, children: /* @__PURE__ */ e(je, {}) })
|
|
521
546
|
] })
|
|
522
547
|
] }),
|
|
523
548
|
/* @__PURE__ */ e(
|
|
524
|
-
|
|
549
|
+
Te,
|
|
525
550
|
{
|
|
526
|
-
expected:
|
|
551
|
+
expected: l,
|
|
527
552
|
missed: g,
|
|
528
|
-
paid:
|
|
553
|
+
paid: C,
|
|
529
554
|
title: t.expenses,
|
|
530
555
|
total: u.length,
|
|
531
556
|
upcoming: K
|
|
532
557
|
}
|
|
533
558
|
),
|
|
534
559
|
/* @__PURE__ */ e(
|
|
535
|
-
|
|
560
|
+
Te,
|
|
536
561
|
{
|
|
537
562
|
expected: m,
|
|
538
563
|
isExpense: !1,
|
|
539
|
-
paid:
|
|
564
|
+
paid: v,
|
|
540
565
|
title: t.deposits,
|
|
541
566
|
total: p.length,
|
|
542
|
-
upcoming:
|
|
567
|
+
upcoming: Ee
|
|
543
568
|
}
|
|
544
569
|
),
|
|
545
|
-
|
|
546
|
-
|
|
570
|
+
r && /* @__PURE__ */ e(
|
|
571
|
+
P,
|
|
547
572
|
{
|
|
548
|
-
onRecurrenceClick:
|
|
549
|
-
recurrences:
|
|
573
|
+
onRecurrenceClick: pe,
|
|
574
|
+
recurrences: me,
|
|
550
575
|
title: t.upcoming_activity
|
|
551
576
|
}
|
|
552
577
|
)
|
|
553
578
|
] }),
|
|
554
|
-
!
|
|
555
|
-
/* @__PURE__ */
|
|
579
|
+
!r && /* @__PURE__ */ s(d, { sx: { px: i ? 0 : 24 }, children: [
|
|
580
|
+
/* @__PURE__ */ s(Fe, { onChange: ke, value: V, variant: "fullWidth", children: [
|
|
556
581
|
/* @__PURE__ */ e(
|
|
557
|
-
|
|
582
|
+
fe,
|
|
558
583
|
{
|
|
559
584
|
label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.upcoming : t.upcoming_activity })
|
|
560
585
|
}
|
|
561
586
|
),
|
|
562
587
|
/* @__PURE__ */ e(
|
|
563
|
-
|
|
588
|
+
fe,
|
|
564
589
|
{
|
|
565
590
|
label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.past : t.past_transactions })
|
|
566
591
|
}
|
|
567
592
|
)
|
|
568
593
|
] }),
|
|
569
|
-
|
|
570
|
-
|
|
594
|
+
V === 0 && /* @__PURE__ */ e(
|
|
595
|
+
P,
|
|
571
596
|
{
|
|
572
|
-
onRecurrenceClick:
|
|
573
|
-
recurrences:
|
|
597
|
+
onRecurrenceClick: pe,
|
|
598
|
+
recurrences: me
|
|
574
599
|
}
|
|
575
600
|
),
|
|
576
|
-
|
|
577
|
-
|
|
601
|
+
V === 1 && /* @__PURE__ */ e(
|
|
602
|
+
P,
|
|
578
603
|
{
|
|
579
|
-
onRecurrenceClick:
|
|
604
|
+
onRecurrenceClick: ge,
|
|
580
605
|
recurrences: b
|
|
581
606
|
}
|
|
582
607
|
)
|
|
583
608
|
] })
|
|
584
609
|
] }),
|
|
585
|
-
|
|
586
|
-
/* @__PURE__ */ e(
|
|
610
|
+
r && /* @__PURE__ */ e(q, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(d, { gap: 24, children: [
|
|
611
|
+
/* @__PURE__ */ e(Ae, {}),
|
|
587
612
|
/* @__PURE__ */ e(
|
|
588
|
-
|
|
613
|
+
P,
|
|
589
614
|
{
|
|
590
|
-
onRecurrenceClick:
|
|
591
|
-
recurrences:
|
|
592
|
-
title:
|
|
615
|
+
onRecurrenceClick: ge,
|
|
616
|
+
recurrences: f || b,
|
|
617
|
+
title: M ? N(
|
|
593
618
|
t.day_transactions,
|
|
594
|
-
|
|
619
|
+
S(M, w.MONTH_DAY)
|
|
595
620
|
) : t.past_transactions
|
|
596
621
|
}
|
|
597
622
|
)
|
|
@@ -599,114 +624,115 @@ const F = {
|
|
|
599
624
|
]
|
|
600
625
|
}
|
|
601
626
|
);
|
|
602
|
-
}),
|
|
603
|
-
const { recurring:
|
|
627
|
+
}), Hn = R(({ onBackClick: t, sx: n = {} }) => {
|
|
628
|
+
const { recurring: r } = y(), { isInitialized: o, selectedAccountGuids: i } = z(), { isDataLoaded: c, loadRepeatingTransactionData: u, setDateRange: p } = I(), { setFilter: a } = re(), { onEvent: l } = U(), { isMobile: m } = oe(), [g, b] = x.useState(!1);
|
|
604
629
|
return ae({
|
|
605
630
|
widgetName: "RecurringTransactionsWidget",
|
|
606
631
|
isLoaded: c
|
|
607
632
|
}), x.useEffect(() => {
|
|
608
633
|
c || u().finally();
|
|
609
634
|
}, []), x.useEffect(() => {
|
|
610
|
-
|
|
611
|
-
dateRange: { start: Q(
|
|
612
|
-
accounts:
|
|
613
|
-
}), p({ start:
|
|
614
|
-
}, [
|
|
615
|
-
|
|
635
|
+
a({
|
|
636
|
+
dateRange: { start: ee(Q(), 90), end: J() },
|
|
637
|
+
accounts: i
|
|
638
|
+
}), p({ start: k(/* @__PURE__ */ new Date()), end: H(/* @__PURE__ */ new Date()) });
|
|
639
|
+
}, [i]), o ? /* @__PURE__ */ s(
|
|
640
|
+
ht,
|
|
616
641
|
{
|
|
617
642
|
actions: [
|
|
618
643
|
{
|
|
619
|
-
label:
|
|
644
|
+
label: r.action_title,
|
|
620
645
|
iconName: "credit_card_gear",
|
|
621
646
|
onClick: () => {
|
|
622
|
-
b(!0),
|
|
647
|
+
b(!0), l(L.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
|
|
623
648
|
}
|
|
624
649
|
}
|
|
625
650
|
],
|
|
626
651
|
hasDivider: m,
|
|
627
|
-
onAccountsFilterClick: () =>
|
|
652
|
+
onAccountsFilterClick: () => l(L.RECURRING_TRANSACTIONS_CLICK_FILTER),
|
|
628
653
|
onBackClick: t,
|
|
629
654
|
sx: n,
|
|
630
|
-
title:
|
|
655
|
+
title: r.title,
|
|
631
656
|
children: [
|
|
632
|
-
c ? /* @__PURE__ */ e(
|
|
657
|
+
c ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ e(ve, { sx: { m: 48 }, variant: "list" }),
|
|
633
658
|
/* @__PURE__ */ e(
|
|
634
659
|
ie,
|
|
635
660
|
{
|
|
636
|
-
ariaLabelClose:
|
|
661
|
+
ariaLabelClose: r.close_drawer_aria,
|
|
637
662
|
isOpen: g,
|
|
638
663
|
onClose: () => b(!1),
|
|
639
664
|
shouldShowHeaderBorders: !1,
|
|
640
|
-
title:
|
|
641
|
-
children: /* @__PURE__ */ e(
|
|
665
|
+
title: r.action_title,
|
|
666
|
+
children: /* @__PURE__ */ e(_e, {})
|
|
642
667
|
}
|
|
643
668
|
)
|
|
644
669
|
]
|
|
645
670
|
}
|
|
646
|
-
) : /* @__PURE__ */ e(
|
|
647
|
-
}),
|
|
648
|
-
const { recurring: t } =
|
|
649
|
-
return /* @__PURE__ */
|
|
650
|
-
/* @__PURE__ */ e(
|
|
651
|
-
!u && /* @__PURE__ */ e(
|
|
671
|
+
) : /* @__PURE__ */ e(se, {});
|
|
672
|
+
}), St = R(() => {
|
|
673
|
+
const { recurring: t } = y(), { availableWidth: n } = Ie(), { selectedDay: r, selectedDayRecurrences: o, setSelectedDay: i, upcomingRecurrences: c } = I(), u = n < 750;
|
|
674
|
+
return /* @__PURE__ */ s(d, { flexDirection: u ? "column" : "row", width: "100%", children: [
|
|
675
|
+
/* @__PURE__ */ e(Ae, {}),
|
|
676
|
+
!u && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
652
677
|
/* @__PURE__ */ e(
|
|
653
|
-
|
|
678
|
+
P,
|
|
654
679
|
{
|
|
655
680
|
isMini: !0,
|
|
656
|
-
onResetClick:
|
|
681
|
+
onResetClick: r ? () => i(r) : void 0,
|
|
657
682
|
recurrences: o || c.slice(0, 5),
|
|
658
683
|
sx: { width: u ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
659
|
-
title:
|
|
684
|
+
title: r ? N(
|
|
660
685
|
t.day_transactions,
|
|
661
|
-
|
|
686
|
+
S(r, w.MONTH_DAY)
|
|
662
687
|
) : t.upcoming_activity
|
|
663
688
|
}
|
|
664
689
|
)
|
|
665
690
|
] });
|
|
666
|
-
}),
|
|
691
|
+
}), $n = R(
|
|
667
692
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
668
|
-
const { recurring:
|
|
693
|
+
const { recurring: r } = y(), { setFilter: o } = re(), { isDataLoaded: i, loadRepeatingTransactionData: c } = I(), { isInitialized: u, selectedAccountGuids: p } = z();
|
|
669
694
|
return ae({
|
|
670
695
|
widgetName: "RecurringTransactionsMiniWidget",
|
|
671
|
-
isLoaded:
|
|
696
|
+
isLoaded: i
|
|
672
697
|
}), x.useEffect(() => {
|
|
673
|
-
|
|
698
|
+
i || c().finally();
|
|
674
699
|
}, []), x.useEffect(() => {
|
|
675
700
|
p.length > 0 && o({
|
|
676
|
-
dateRange: { start: Q(
|
|
701
|
+
dateRange: { start: ee(Q(), 90), end: J() },
|
|
677
702
|
accounts: p
|
|
678
703
|
});
|
|
679
704
|
}, [p]), u ? /* @__PURE__ */ e(
|
|
680
|
-
|
|
705
|
+
ft,
|
|
681
706
|
{
|
|
682
707
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
683
708
|
onPrimaryCtaClick: t,
|
|
684
|
-
primaryCtaLabel:
|
|
685
|
-
|
|
709
|
+
primaryCtaLabel: r.primary_cta,
|
|
710
|
+
primaryCtaLabelAria: r.primary_cta_aria,
|
|
711
|
+
subTitle: r.sub_title,
|
|
686
712
|
sx: n,
|
|
687
|
-
title:
|
|
688
|
-
children:
|
|
713
|
+
title: r.mini_title,
|
|
714
|
+
children: i ? /* @__PURE__ */ e(St, {}) : /* @__PURE__ */ e(ve, { sx: { mx: 16 }, variant: "list" })
|
|
689
715
|
}
|
|
690
|
-
) : /* @__PURE__ */ e(
|
|
716
|
+
) : /* @__PURE__ */ e(se, {});
|
|
691
717
|
}
|
|
692
|
-
),
|
|
693
|
-
const { recurring: t } =
|
|
694
|
-
return /* @__PURE__ */
|
|
695
|
-
/* @__PURE__ */ e(
|
|
696
|
-
/* @__PURE__ */
|
|
697
|
-
/* @__PURE__ */ e(
|
|
698
|
-
/* @__PURE__ */ e(
|
|
718
|
+
), wt = R(() => {
|
|
719
|
+
const { recurring: t } = y();
|
|
720
|
+
return /* @__PURE__ */ s(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
|
|
721
|
+
/* @__PURE__ */ e(Ke, { size: 32 }),
|
|
722
|
+
/* @__PURE__ */ s(d, { children: [
|
|
723
|
+
/* @__PURE__ */ e(Z, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
|
|
724
|
+
/* @__PURE__ */ e(Z, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
|
|
699
725
|
] })
|
|
700
726
|
] });
|
|
701
|
-
}),
|
|
727
|
+
}), It = ({
|
|
702
728
|
amount: t,
|
|
703
729
|
bgcolor: n,
|
|
704
|
-
isLargeScreen:
|
|
730
|
+
isLargeScreen: r,
|
|
705
731
|
isSmallScreen: o,
|
|
706
|
-
label:
|
|
707
|
-
}) => /* @__PURE__ */
|
|
732
|
+
label: i
|
|
733
|
+
}) => /* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
|
|
708
734
|
/* @__PURE__ */ e(
|
|
709
|
-
|
|
735
|
+
O,
|
|
710
736
|
{
|
|
711
737
|
sx: {
|
|
712
738
|
borderRadius: "2px",
|
|
@@ -716,25 +742,25 @@ const F = {
|
|
|
716
742
|
}
|
|
717
743
|
}
|
|
718
744
|
),
|
|
719
|
-
/* @__PURE__ */
|
|
720
|
-
!o && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children:
|
|
721
|
-
/* @__PURE__ */ e(h, { variant: "caption", children:
|
|
745
|
+
/* @__PURE__ */ s(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
|
746
|
+
!o && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: E(t, t === 0 || !r ? "0,0" : "0,0.00") }),
|
|
747
|
+
/* @__PURE__ */ e(h, { variant: "caption", children: i })
|
|
722
748
|
] })
|
|
723
|
-
] }),
|
|
749
|
+
] }), Mt = ({
|
|
724
750
|
upcomingRecurrences: t,
|
|
725
751
|
logoSize: n = 32,
|
|
726
|
-
maxLogos:
|
|
752
|
+
maxLogos: r = 3
|
|
727
753
|
}) => {
|
|
728
|
-
const o = (
|
|
754
|
+
const o = (i) => i * (n / 2);
|
|
729
755
|
return /* @__PURE__ */ e(
|
|
730
|
-
|
|
756
|
+
O,
|
|
731
757
|
{
|
|
732
758
|
sx: {
|
|
733
759
|
position: "relative",
|
|
734
760
|
width: 64
|
|
735
761
|
},
|
|
736
|
-
children: t.map((
|
|
737
|
-
|
|
762
|
+
children: t.map((i, c) => c < r ? /* @__PURE__ */ e(
|
|
763
|
+
O,
|
|
738
764
|
{
|
|
739
765
|
sx: {
|
|
740
766
|
borderRadius: "4px",
|
|
@@ -745,80 +771,80 @@ const F = {
|
|
|
745
771
|
position: "absolute"
|
|
746
772
|
},
|
|
747
773
|
children: /* @__PURE__ */ e(
|
|
748
|
-
|
|
774
|
+
te,
|
|
749
775
|
{
|
|
750
|
-
categoryGuid:
|
|
751
|
-
merchantGuid:
|
|
776
|
+
categoryGuid: i.categoryGuid || "",
|
|
777
|
+
merchantGuid: i.merchantGuid || "",
|
|
752
778
|
size: n
|
|
753
779
|
}
|
|
754
780
|
)
|
|
755
781
|
},
|
|
756
|
-
`${
|
|
782
|
+
`${i.categoryGuid}-${i.merchantGuid}-${c}`
|
|
757
783
|
) : null)
|
|
758
784
|
}
|
|
759
785
|
);
|
|
760
|
-
},
|
|
786
|
+
}, Lt = ({
|
|
761
787
|
upcomingRecurrences: t,
|
|
762
788
|
maxLogos: n = 3
|
|
763
|
-
}) => /* @__PURE__ */ e(
|
|
764
|
-
|
|
789
|
+
}) => /* @__PURE__ */ e(d, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((r, o) => /* @__PURE__ */ e(
|
|
790
|
+
te,
|
|
765
791
|
{
|
|
766
|
-
categoryGuid:
|
|
767
|
-
merchantGuid:
|
|
792
|
+
categoryGuid: r.categoryGuid || "",
|
|
793
|
+
merchantGuid: r.merchantGuid || ""
|
|
768
794
|
},
|
|
769
|
-
`${
|
|
770
|
-
)) }),
|
|
771
|
-
const t =
|
|
795
|
+
`${r.categoryGuid}-${r.merchantGuid}-${o}`
|
|
796
|
+
)) }), vt = R(() => {
|
|
797
|
+
const t = ne(), [n, { width: r }] = xt(), {
|
|
772
798
|
upcomingRecurrences: o,
|
|
773
|
-
expenseTotal:
|
|
799
|
+
expenseTotal: i,
|
|
774
800
|
missedExpenseTotal: c,
|
|
775
801
|
paidExpenseTotal: u,
|
|
776
802
|
upcomingExpenseTotal: p
|
|
777
|
-
} =
|
|
778
|
-
const
|
|
779
|
-
{ color: t.palette.success.main, percentage: `${u /
|
|
803
|
+
} = I(), { recurring: a } = y(), l = r <= 288, m = r >= 450, g = 32, b = o.length > 0, C = x.useMemo(() => E(i, i === 0 ? "0,0" : "0,0.00"), [i]), v = x.useMemo(() => {
|
|
804
|
+
const _ = [
|
|
805
|
+
{ color: t.palette.success.main, percentage: `${u / i}` }
|
|
780
806
|
];
|
|
781
|
-
return c &&
|
|
807
|
+
return c && _.push({
|
|
782
808
|
color: t.palette.error.main,
|
|
783
|
-
percentage: `${c /
|
|
784
|
-
}),
|
|
809
|
+
percentage: `${c / i}`
|
|
810
|
+
}), _;
|
|
785
811
|
}, [
|
|
786
812
|
u,
|
|
787
|
-
|
|
813
|
+
i,
|
|
788
814
|
c,
|
|
789
815
|
t.palette.success.main,
|
|
790
816
|
t.palette.error.main
|
|
791
|
-
]),
|
|
792
|
-
|
|
817
|
+
]), M = () => b ? l ? /* @__PURE__ */ e(
|
|
818
|
+
Mt,
|
|
793
819
|
{
|
|
794
820
|
logoSize: g,
|
|
795
821
|
maxLogos: 3,
|
|
796
822
|
upcomingRecurrences: o.slice(0, 3)
|
|
797
823
|
}
|
|
798
|
-
) : /* @__PURE__ */ e(
|
|
824
|
+
) : /* @__PURE__ */ e(Lt, { maxLogos: 3, upcomingRecurrences: o.slice(0, 3) }) : /* @__PURE__ */ e(d, { sx: { width: l ? 64 : 104 } }), f = [
|
|
799
825
|
{
|
|
800
826
|
amount: u,
|
|
801
827
|
bgColor: "success.main",
|
|
802
|
-
label:
|
|
828
|
+
label: a.paid
|
|
803
829
|
},
|
|
804
830
|
{
|
|
805
831
|
amount: c,
|
|
806
832
|
bgColor: "error.main",
|
|
807
|
-
label:
|
|
833
|
+
label: a.missed
|
|
808
834
|
},
|
|
809
835
|
{
|
|
810
836
|
amount: p,
|
|
811
|
-
bgColor: "
|
|
812
|
-
label:
|
|
837
|
+
bgColor: "neutral.light",
|
|
838
|
+
label: a.upcoming
|
|
813
839
|
}
|
|
814
840
|
];
|
|
815
|
-
return /* @__PURE__ */
|
|
816
|
-
/* @__PURE__ */
|
|
817
|
-
/* @__PURE__ */
|
|
818
|
-
|
|
841
|
+
return /* @__PURE__ */ s(B, { children: [
|
|
842
|
+
/* @__PURE__ */ s(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
843
|
+
/* @__PURE__ */ s(
|
|
844
|
+
d,
|
|
819
845
|
{
|
|
820
846
|
sx: [
|
|
821
|
-
|
|
847
|
+
C.length >= 10 && l ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
822
848
|
{
|
|
823
849
|
alignItems: "baseline",
|
|
824
850
|
overflow: "hidden",
|
|
@@ -831,20 +857,20 @@ const F = {
|
|
|
831
857
|
h,
|
|
832
858
|
{
|
|
833
859
|
sx: { width: "100%" },
|
|
834
|
-
variant:
|
|
835
|
-
children:
|
|
860
|
+
variant: C.length >= 10 && l ? "h3" : "h2",
|
|
861
|
+
children: C
|
|
836
862
|
}
|
|
837
863
|
),
|
|
838
|
-
/* @__PURE__ */ e(
|
|
864
|
+
/* @__PURE__ */ e(Z, { sx: { pr: 12 }, variant: "caption", children: a.expected })
|
|
839
865
|
]
|
|
840
866
|
}
|
|
841
867
|
),
|
|
842
|
-
|
|
868
|
+
M()
|
|
843
869
|
] }),
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */ e(
|
|
870
|
+
/* @__PURE__ */ s(d, { sx: { pt: 12 }, children: [
|
|
871
|
+
/* @__PURE__ */ e(Le, { data: v }),
|
|
846
872
|
/* @__PURE__ */ e(
|
|
847
|
-
|
|
873
|
+
d,
|
|
848
874
|
{
|
|
849
875
|
sx: {
|
|
850
876
|
alignItems: "center",
|
|
@@ -852,14 +878,14 @@ const F = {
|
|
|
852
878
|
gap: 16,
|
|
853
879
|
mt: 4
|
|
854
880
|
},
|
|
855
|
-
children:
|
|
856
|
-
|
|
881
|
+
children: f.map((_, K) => /* @__PURE__ */ e(
|
|
882
|
+
It,
|
|
857
883
|
{
|
|
858
|
-
amount:
|
|
859
|
-
bgcolor:
|
|
884
|
+
amount: _.amount,
|
|
885
|
+
bgcolor: _.bgColor,
|
|
860
886
|
isLargeScreen: m,
|
|
861
|
-
isSmallScreen:
|
|
862
|
-
label:
|
|
887
|
+
isSmallScreen: l,
|
|
888
|
+
label: _.label
|
|
863
889
|
},
|
|
864
890
|
`recurrence-legend-${K}`
|
|
865
891
|
))
|
|
@@ -867,51 +893,51 @@ const F = {
|
|
|
867
893
|
)
|
|
868
894
|
] })
|
|
869
895
|
] });
|
|
870
|
-
}),
|
|
896
|
+
}), Bn = R(
|
|
871
897
|
({ onCTAClick: t }) => {
|
|
872
|
-
const { onEvent: n } =
|
|
873
|
-
loadRepeatingTransactionData:
|
|
898
|
+
const { onEvent: n } = U(), { isInitialized: r, selectedAccountGuids: o } = z(), {
|
|
899
|
+
loadRepeatingTransactionData: i,
|
|
874
900
|
upcomingRecurrences: c,
|
|
875
901
|
repeatingTransactions: u,
|
|
876
902
|
setDateRange: p,
|
|
877
|
-
isDataLoaded:
|
|
878
|
-
} =
|
|
903
|
+
isDataLoaded: a
|
|
904
|
+
} = I(), { setFilter: l } = re(), { recurring: m, budgets: g } = y();
|
|
879
905
|
ae({
|
|
880
906
|
widgetName: "RecurringTransactionsMicroWidget",
|
|
881
|
-
isLoaded:
|
|
907
|
+
isLoaded: a
|
|
882
908
|
}), x.useEffect(() => {
|
|
883
|
-
|
|
884
|
-
n(
|
|
909
|
+
a || i().finally(() => {
|
|
910
|
+
n(L.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
885
911
|
state: c.length > 0 ? "default" : "zeroState"
|
|
886
912
|
});
|
|
887
913
|
});
|
|
888
914
|
}, []), x.useEffect(() => {
|
|
889
|
-
|
|
890
|
-
dateRange: { start: Q(
|
|
915
|
+
r && (l({
|
|
916
|
+
dateRange: { start: ee(Q(), 90), end: J() },
|
|
891
917
|
accounts: o
|
|
892
|
-
}), p({ start:
|
|
893
|
-
}, [
|
|
918
|
+
}), p({ start: k(/* @__PURE__ */ new Date()), end: H(/* @__PURE__ */ new Date()) }));
|
|
919
|
+
}, [r, o]);
|
|
894
920
|
const b = () => {
|
|
895
921
|
n(
|
|
896
|
-
c.length > 0 ?
|
|
922
|
+
c.length > 0 ? L.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : L.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
897
923
|
), t();
|
|
898
924
|
};
|
|
899
|
-
if (!
|
|
900
|
-
const
|
|
925
|
+
if (!r || !a) return /* @__PURE__ */ e(se, { height: 100 });
|
|
926
|
+
const C = !u?.length;
|
|
901
927
|
return /* @__PURE__ */ e(
|
|
902
|
-
|
|
928
|
+
bt,
|
|
903
929
|
{
|
|
904
930
|
className: "mx-recurring-transaction-microwidget",
|
|
905
|
-
ctaLabel:
|
|
931
|
+
ctaLabel: C ? g.get_started_cta : m.primary_cta,
|
|
906
932
|
onCTAClick: b,
|
|
907
933
|
title: m.recurring_expenses,
|
|
908
|
-
children:
|
|
934
|
+
children: C ? /* @__PURE__ */ e(wt, {}) : /* @__PURE__ */ e(vt, {})
|
|
909
935
|
}
|
|
910
936
|
);
|
|
911
937
|
}
|
|
912
|
-
),
|
|
913
|
-
({ isOpen: t, onClose: n, selectedTab:
|
|
914
|
-
const { cashflow: o } =
|
|
938
|
+
), Fn = R(
|
|
939
|
+
({ isOpen: t, onClose: n, selectedTab: r }) => {
|
|
940
|
+
const { cashflow: o } = y();
|
|
915
941
|
return /* @__PURE__ */ e(
|
|
916
942
|
ie,
|
|
917
943
|
{
|
|
@@ -919,20 +945,20 @@ const F = {
|
|
|
919
945
|
isOpen: t,
|
|
920
946
|
onClose: n,
|
|
921
947
|
title: o.cashflow_settings,
|
|
922
|
-
children: /* @__PURE__ */ e(
|
|
948
|
+
children: /* @__PURE__ */ e(_e, { defaultSelectedTab: r })
|
|
923
949
|
}
|
|
924
950
|
);
|
|
925
951
|
}
|
|
926
952
|
);
|
|
927
953
|
export {
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
954
|
+
qn as AddRecurringTransactionDetails,
|
|
955
|
+
Yn as ManageExpenses,
|
|
956
|
+
Zn as ManageIncome,
|
|
957
|
+
_e as RecurringSettings,
|
|
958
|
+
Fn as RecurringSettingsDrawer,
|
|
959
|
+
Bn as RecurringTransactionsMicroWidget,
|
|
960
|
+
$n as RecurringTransactionsMiniWidget,
|
|
961
|
+
Kn as RecurringTransactionsStore,
|
|
962
|
+
Hn as RecurringTransactionsWidget,
|
|
963
|
+
Xn as SelectTransaction
|
|
938
964
|
};
|