@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,1194 +0,0 @@
|
|
|
1
|
-
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import _ from "react";
|
|
3
|
-
import { observer as D } from "mobx-react-lite";
|
|
4
|
-
import L from "@mui/material/Box";
|
|
5
|
-
import Q from "@mui/material/Divider";
|
|
6
|
-
import Z from "@mui/material/List";
|
|
7
|
-
import q from "@mui/material/Paper";
|
|
8
|
-
import I from "@mui/material/Stack";
|
|
9
|
-
import { CategoryIcon as _e, CategoryIconVariants as ge, Text as S, Icon as A, IconWeight as b, P as V, useTokens as ae, MerchantLogo as he, TextField as me } from "@mxenabled/mxui";
|
|
10
|
-
import { C as we, a as Le, i as ke } from "./User-DS18cMaz.mjs";
|
|
11
|
-
import ne from "@mui/material/Button";
|
|
12
|
-
import Re from "@mui/material/FormGroup";
|
|
13
|
-
import Y from "@mui/material/IconButton";
|
|
14
|
-
import Te from "@mui/material/TextField";
|
|
15
|
-
import { u as ue } from "./useAriaLive-MkYebyUR.mjs";
|
|
16
|
-
import { O as g } from "./Transaction-C8QRYhYc.mjs";
|
|
17
|
-
import { h as E, m as ye, g as v, u as O, b as Pe, o as Ge } from "./hooks-CBl85iRr.mjs";
|
|
18
|
-
import { A as k } from "./Analytics-i5h6BxR1.mjs";
|
|
19
|
-
import Me from "@mui/material/ToggleButton";
|
|
20
|
-
import Se from "@mui/material/styles/useTheme";
|
|
21
|
-
import { Delete as ee, ChevronRight as Ke, Cancel as te, Search as Be, Edit as $e, Flag as Fe } from "@mxenabled/mx-icons";
|
|
22
|
-
import { fromUnixTime as de } from "date-fns/fromUnixTime";
|
|
23
|
-
import M from "@mui/material/Avatar";
|
|
24
|
-
import R from "@mui/material/ListItem";
|
|
25
|
-
import K from "@mui/material/ListItemAvatar";
|
|
26
|
-
import P from "@mui/material/ListItemText";
|
|
27
|
-
import { f as Ce, D as fe } from "./DateFormats-Cs-NbEZ7.mjs";
|
|
28
|
-
import { L as He } from "./Loader-icSc5MlE.mjs";
|
|
29
|
-
import B from "@mui/material/ListItemButton";
|
|
30
|
-
import $ from "@mui/material/ListItemIcon";
|
|
31
|
-
import { b as Ae } from "./CategorySelectorDrawer-CzRxYpiP.mjs";
|
|
32
|
-
import { u as H } from "./TransactionList-BDffKJMO.mjs";
|
|
33
|
-
import { D as F } from "./Dialog-jmgGw5WA.mjs";
|
|
34
|
-
import { b as X } from "./Localization-2MODESHW.mjs";
|
|
35
|
-
import { getUnixTime as Ue } from "date-fns/getUnixTime";
|
|
36
|
-
import { D as re } from "./Drawer-Bet2ZPJo.mjs";
|
|
37
|
-
import { f as oe } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
38
|
-
import pe from "@mui/material/InputAdornment";
|
|
39
|
-
import Xe from "@mui/material/Checkbox";
|
|
40
|
-
import ce from "@mui/material/Grid";
|
|
41
|
-
import { C as ze } from "./CurrencyInput-BEB3FS70.mjs";
|
|
42
|
-
import Ve from "@mui/material/Switch";
|
|
43
|
-
var W = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(W || {}), J = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(J || {});
|
|
44
|
-
const We = [
|
|
45
|
-
0,
|
|
46
|
-
1,
|
|
47
|
-
2,
|
|
48
|
-
3
|
|
49
|
-
/* Tags */
|
|
50
|
-
], Ye = [
|
|
51
|
-
0,
|
|
52
|
-
1,
|
|
53
|
-
2
|
|
54
|
-
/* MerchantLogo */
|
|
55
|
-
], je = ({ transaction: t }) => {
|
|
56
|
-
const { addOrUpdateTransactionRule: o, updateTransaction: l } = E(), { categories: a } = ye(), { onEvent: r } = v(), { setShouldDisableDrawerScroll: n, updateManualTransaction: s } = H(), { transactions: i } = O(), [d, m] = _.useState(!1), [u, p] = _.useState(""), T = async (h) => {
|
|
57
|
-
await l({ ...t, category_guid: u }), h && await o(u, t), p(""), r(k.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
58
|
-
transaction_guid: t.guid
|
|
59
|
-
});
|
|
60
|
-
}, y = (h) => {
|
|
61
|
-
if (t.is_manual && !t.guid) {
|
|
62
|
-
const N = a.find((U) => U.guid === h);
|
|
63
|
-
s({
|
|
64
|
-
...t,
|
|
65
|
-
category: N?.name,
|
|
66
|
-
category_guid: h,
|
|
67
|
-
top_level_category_guid: N?.parent_guid || h
|
|
68
|
-
});
|
|
69
|
-
} else
|
|
70
|
-
p(h);
|
|
71
|
-
C();
|
|
72
|
-
}, C = () => {
|
|
73
|
-
m(!1), n(!1);
|
|
74
|
-
}, w = _.useMemo(
|
|
75
|
-
() => a.find((h) => h.guid === u),
|
|
76
|
-
[u]
|
|
77
|
-
);
|
|
78
|
-
return /* @__PURE__ */ c(_.Fragment, { children: [
|
|
79
|
-
/* @__PURE__ */ e(R, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(
|
|
80
|
-
B,
|
|
81
|
-
{
|
|
82
|
-
onClick: () => {
|
|
83
|
-
r(g.ON_TRANSACTION_CATEGORY_CLICK), m(!0);
|
|
84
|
-
},
|
|
85
|
-
children: [
|
|
86
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(
|
|
87
|
-
_e,
|
|
88
|
-
{
|
|
89
|
-
categoryGuid: t.top_level_category_guid,
|
|
90
|
-
size: 24,
|
|
91
|
-
sx: { color: "text.primary" },
|
|
92
|
-
variant: ge.Transparent
|
|
93
|
-
}
|
|
94
|
-
) }) }),
|
|
95
|
-
/* @__PURE__ */ e(
|
|
96
|
-
P,
|
|
97
|
-
{
|
|
98
|
-
primary: i.category_title,
|
|
99
|
-
primaryTypographyProps: { variant: "XSmall" },
|
|
100
|
-
secondary: /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: t.category ?? i.actions_select_a_category })
|
|
101
|
-
}
|
|
102
|
-
),
|
|
103
|
-
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(A, { name: "chevron_right", weight: b.Dark }) })
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
) }),
|
|
107
|
-
/* @__PURE__ */ e(
|
|
108
|
-
Ae,
|
|
109
|
-
{
|
|
110
|
-
initialSelected: t.category_guid,
|
|
111
|
-
onClose: C,
|
|
112
|
-
onSelect: y,
|
|
113
|
-
showDrawer: d,
|
|
114
|
-
title: i.actions_select_a_category
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
/* @__PURE__ */ e(
|
|
118
|
-
F,
|
|
119
|
-
{
|
|
120
|
-
copy: {
|
|
121
|
-
title: X(
|
|
122
|
-
i.actions_apply_to_all_transaction_types,
|
|
123
|
-
t.description
|
|
124
|
-
)
|
|
125
|
-
},
|
|
126
|
-
isOpen: !!u,
|
|
127
|
-
onClose: () => p(""),
|
|
128
|
-
onPrimaryAction: () => T(!0),
|
|
129
|
-
onSecondaryAction: () => T(!1),
|
|
130
|
-
primaryText: i.actions_apply_to_all,
|
|
131
|
-
secondaryText: i.actions_this_time_only,
|
|
132
|
-
children: /* @__PURE__ */ e(V, { variant: "Paragraph", children: X(
|
|
133
|
-
i.actions_all_past_and_future,
|
|
134
|
-
t.description,
|
|
135
|
-
w?.name
|
|
136
|
-
) })
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
] });
|
|
140
|
-
}, qe = ({ transaction: t }) => {
|
|
141
|
-
const o = ae(), { onEvent: l } = v(), { updateTransaction: a } = E(), { updateManualTransaction: r } = H(), { common: n, transactions: s } = O(), [i, d] = _.useState(!1), [m, u] = _.useState(t.date), p = (y) => {
|
|
142
|
-
u(Ue(y));
|
|
143
|
-
}, T = async () => {
|
|
144
|
-
if (t.is_manual && !t.guid) {
|
|
145
|
-
r({ ...t, date: m }), d(!1);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
await a({ ...t, date: m }), l(k.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: t.guid }), d(!1);
|
|
149
|
-
};
|
|
150
|
-
return /* @__PURE__ */ c(L, { className: "mx-txn-date-action", children: [
|
|
151
|
-
/* @__PURE__ */ e(R, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(
|
|
152
|
-
B,
|
|
153
|
-
{
|
|
154
|
-
onClick: () => {
|
|
155
|
-
l(g.ON_TRANSACTION_DATE_CLICK), d(!0);
|
|
156
|
-
},
|
|
157
|
-
children: [
|
|
158
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "calendar_month", sx: { color: "text.primary" }, weight: b.Dark }) }) }),
|
|
159
|
-
/* @__PURE__ */ e(
|
|
160
|
-
P,
|
|
161
|
-
{
|
|
162
|
-
primary: s.date_title,
|
|
163
|
-
primaryTypographyProps: { variant: "XSmall" },
|
|
164
|
-
secondary: /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: Ce(de(t.date), fe.YEAR_MONTH_DAY) })
|
|
165
|
-
}
|
|
166
|
-
),
|
|
167
|
-
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(A, { name: "chevron_right", weight: b.Dark }) })
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
) }),
|
|
171
|
-
/* @__PURE__ */ e(
|
|
172
|
-
re,
|
|
173
|
-
{
|
|
174
|
-
ariaLabelClose: n.close_aria,
|
|
175
|
-
isOpen: i,
|
|
176
|
-
onClose: () => d(!1),
|
|
177
|
-
onPrimaryAction: T,
|
|
178
|
-
primaryText: n.save_button,
|
|
179
|
-
secondaryText: n.cancel_button,
|
|
180
|
-
title: s.date_edit_title,
|
|
181
|
-
children: /* @__PURE__ */ e(I, { alignItems: "center", mt: o.Spacing.XXLarge, children: /* @__PURE__ */ e(
|
|
182
|
-
we,
|
|
183
|
-
{
|
|
184
|
-
beginDate: de(m),
|
|
185
|
-
copy: {
|
|
186
|
-
nextAria: s.date_next_aria,
|
|
187
|
-
prevAria: s.date_prev_aria,
|
|
188
|
-
today: n.date_range_picker.today
|
|
189
|
-
},
|
|
190
|
-
onDateSelected: p,
|
|
191
|
-
selectionType: Le.Single
|
|
192
|
-
}
|
|
193
|
-
) })
|
|
194
|
-
}
|
|
195
|
-
)
|
|
196
|
-
] });
|
|
197
|
-
}, Je = ({ transaction: t }) => {
|
|
198
|
-
const { onEvent: o } = v(), { removeTransaction: l } = E(), { setShouldDisableDrawerScroll: a } = H(), { common: r, transactions: n } = O(), [s, i] = _.useState(!1), d = async () => {
|
|
199
|
-
await l(t.guid), o(g.ON_TRANSACTION_DELETE_DELETED);
|
|
200
|
-
};
|
|
201
|
-
return /* @__PURE__ */ c(L, { className: "mx-txn-delete", children: [
|
|
202
|
-
t && /* @__PURE__ */ e(R, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(
|
|
203
|
-
B,
|
|
204
|
-
{
|
|
205
|
-
onClick: () => {
|
|
206
|
-
o(g.ON_TRANSACTION_DELETE_CLICK), a(!0), i(!0);
|
|
207
|
-
},
|
|
208
|
-
children: [
|
|
209
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { variant: "rounded", children: /* @__PURE__ */ e(ee, { color: "secondary", fontSize: "small" }) }) }),
|
|
210
|
-
/* @__PURE__ */ e(
|
|
211
|
-
P,
|
|
212
|
-
{
|
|
213
|
-
primary: n.manual_transaction_delete_title,
|
|
214
|
-
secondary: n.manual_transaction_delete_subtitle
|
|
215
|
-
}
|
|
216
|
-
),
|
|
217
|
-
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(ee, {}) })
|
|
218
|
-
]
|
|
219
|
-
}
|
|
220
|
-
) }),
|
|
221
|
-
/* @__PURE__ */ e(
|
|
222
|
-
F,
|
|
223
|
-
{
|
|
224
|
-
copy: { title: n.manual_transaction_delete_title },
|
|
225
|
-
isOpen: s,
|
|
226
|
-
onClose: () => {
|
|
227
|
-
a(!1), i(!1);
|
|
228
|
-
},
|
|
229
|
-
onPrimaryAction: d,
|
|
230
|
-
onSecondaryAction: () => o(g.ON_TRANSACTION_DELETE_CANCEL),
|
|
231
|
-
primaryText: r.delete_button,
|
|
232
|
-
secondaryText: r.cancel_button,
|
|
233
|
-
children: /* @__PURE__ */ e(S, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: n.manual_transaction_delete_description })
|
|
234
|
-
}
|
|
235
|
-
)
|
|
236
|
-
] });
|
|
237
|
-
}, Qe = D(Je), Ze = ({ transaction: t }) => {
|
|
238
|
-
const { onEvent: o } = v(), { updateTransaction: l } = E(), { setShouldDisableDrawerScroll: a } = H(), { common: r, transactions: n } = O(), [s, i] = _.useState(!1), d = async () => {
|
|
239
|
-
await l({ ...t, merchant_guid: "" }), o(k.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
240
|
-
transaction_guid: t.guid
|
|
241
|
-
});
|
|
242
|
-
};
|
|
243
|
-
return /* @__PURE__ */ c(L, { className: "mx-txn-delete-logo", children: [
|
|
244
|
-
t && /* @__PURE__ */ e(R, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(
|
|
245
|
-
B,
|
|
246
|
-
{
|
|
247
|
-
onClick: () => {
|
|
248
|
-
o(g.ON_TRANSACTION_DELETE_LOGO_CLICK), i(!0);
|
|
249
|
-
},
|
|
250
|
-
children: [
|
|
251
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "delete", sx: { color: "text.primary" }, weight: b.Dark }) }) }),
|
|
252
|
-
/* @__PURE__ */ e(P, { primary: n.merchant_logo_title, secondary: n.merchant_logo_desc }),
|
|
253
|
-
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(A, { name: "chevron_right", weight: b.Dark }) })
|
|
254
|
-
]
|
|
255
|
-
}
|
|
256
|
-
) }),
|
|
257
|
-
/* @__PURE__ */ c(
|
|
258
|
-
F,
|
|
259
|
-
{
|
|
260
|
-
copy: { title: n.merchant_logo_modal_title },
|
|
261
|
-
isOpen: s,
|
|
262
|
-
onClose: () => {
|
|
263
|
-
a(!1), i(!1);
|
|
264
|
-
},
|
|
265
|
-
onPrimaryAction: d,
|
|
266
|
-
onSecondaryAction: () => o(g.ON_TRANSACTION_DELETE_LOGO_CANCEL),
|
|
267
|
-
primaryText: r.delete_button,
|
|
268
|
-
secondaryText: r.cancel_button,
|
|
269
|
-
title: n.merchant_logo_modal_title,
|
|
270
|
-
children: [
|
|
271
|
-
/* @__PURE__ */ e(S, { sx: { whiteSpace: "normal" }, variant: "Paragraph", children: n.merchant_logo_modal_desc }),
|
|
272
|
-
/* @__PURE__ */ e(S, { bold: !0, sx: { whiteSpace: "normal" }, variant: "Paragraph", children: ` ${n.merchant_logo_modal_desc_bold}` })
|
|
273
|
-
]
|
|
274
|
-
}
|
|
275
|
-
)
|
|
276
|
-
] });
|
|
277
|
-
}, et = D(Ze), tt = ({ transaction: t }) => {
|
|
278
|
-
const { onEvent: o } = v(), { updateTransaction: l } = E(), { setShouldDisableDrawerScroll: a } = H(), { common: r, transactions: n } = O(), [s, i] = _.useState(!1), d = t.is_hidden, m = async () => {
|
|
279
|
-
await l({ ...t, is_hidden: !t.is_hidden }), o(
|
|
280
|
-
d ? g.ON_TRANSACTION_UNHIDDEN : g.ON_TRANSACTION_HIDDEN
|
|
281
|
-
);
|
|
282
|
-
};
|
|
283
|
-
return /* @__PURE__ */ c(L, { className: "mx-txn-hide-transaction", children: [
|
|
284
|
-
t && /* @__PURE__ */ e(R, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(
|
|
285
|
-
B,
|
|
286
|
-
{
|
|
287
|
-
"aria-checked": d,
|
|
288
|
-
onClick: () => {
|
|
289
|
-
o(
|
|
290
|
-
d ? g.ON_TRANSACTION_UNHIDE_CLICK : g.ON_TRANSACTION_HIDE_CLICK
|
|
291
|
-
), o(
|
|
292
|
-
d ? "transaction_details_click_unhide_transaction" : "transaction_details_click_hide_transaction",
|
|
293
|
-
{
|
|
294
|
-
transaction_guid: t.guid
|
|
295
|
-
}
|
|
296
|
-
), i(!0);
|
|
297
|
-
},
|
|
298
|
-
role: "switch",
|
|
299
|
-
children: [
|
|
300
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ e(
|
|
301
|
-
A,
|
|
302
|
-
{
|
|
303
|
-
name: "visibilityOff",
|
|
304
|
-
sx: { color: "text.primary" },
|
|
305
|
-
weight: b.Dark
|
|
306
|
-
}
|
|
307
|
-
) : /* @__PURE__ */ e(A, { name: "visibility", sx: { color: "text.primary" }, weight: b.Dark }) }) }),
|
|
308
|
-
/* @__PURE__ */ e(
|
|
309
|
-
P,
|
|
310
|
-
{
|
|
311
|
-
primary: d ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx,
|
|
312
|
-
secondary: d ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding
|
|
313
|
-
}
|
|
314
|
-
),
|
|
315
|
-
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(
|
|
316
|
-
Ve,
|
|
317
|
-
{
|
|
318
|
-
checked: d,
|
|
319
|
-
id: "hide-transaction",
|
|
320
|
-
name: "hide-transaction",
|
|
321
|
-
tabIndex: -1
|
|
322
|
-
}
|
|
323
|
-
) })
|
|
324
|
-
]
|
|
325
|
-
}
|
|
326
|
-
) }),
|
|
327
|
-
/* @__PURE__ */ e(
|
|
328
|
-
F,
|
|
329
|
-
{
|
|
330
|
-
copy: {
|
|
331
|
-
title: d ? n.hide_trnx_subtitle_unhide_trnx : n.hide_trnx_subtitle_hide_trnx
|
|
332
|
-
},
|
|
333
|
-
isOpen: s,
|
|
334
|
-
onClose: () => {
|
|
335
|
-
a(!1), i(!1);
|
|
336
|
-
},
|
|
337
|
-
onPrimaryAction: m,
|
|
338
|
-
onSecondaryAction: () => o(
|
|
339
|
-
d ? g.ON_TRANSACTION_UNHIDE_CANCEL_CLICK : g.ON_TRANSACTION_HIDE_CANCEL_CLICK
|
|
340
|
-
),
|
|
341
|
-
primaryText: d ? r.unhide_button : r.hide_button,
|
|
342
|
-
secondaryText: r.cancel_button,
|
|
343
|
-
children: /* @__PURE__ */ e(S, { truncate: !1, variant: "Paragraph", children: d ? n.hide_trnx_desc_unhiding : n.hide_trnx_desc_hiding })
|
|
344
|
-
}
|
|
345
|
-
)
|
|
346
|
-
] });
|
|
347
|
-
}, at = D(tt), be = ({ transaction: t }) => {
|
|
348
|
-
const { amount: o, description: l, isIncome: a, merchant_guid: r, payee: n, top_level_category_guid: s } = t;
|
|
349
|
-
return /* @__PURE__ */ c(I, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
350
|
-
/* @__PURE__ */ e(
|
|
351
|
-
he,
|
|
352
|
-
{
|
|
353
|
-
categoryGuid: s || "",
|
|
354
|
-
merchantGuid: r || "",
|
|
355
|
-
size: 64
|
|
356
|
-
}
|
|
357
|
-
),
|
|
358
|
-
/* @__PURE__ */ c(I, { overflow: "hidden'", children: [
|
|
359
|
-
/* @__PURE__ */ e(S, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: l || n }),
|
|
360
|
-
/* @__PURE__ */ c(V, { color: a ? "success.main" : "text.primary", truncate: !0, variant: "H1", children: [
|
|
361
|
-
a ? "+" : "",
|
|
362
|
-
oe(o, "0,0.00")
|
|
363
|
-
] })
|
|
364
|
-
] })
|
|
365
|
-
] });
|
|
366
|
-
}, nt = ({ transaction: t }) => {
|
|
367
|
-
const { onEvent: o } = v(), { updateTransaction: l } = E(), { updateManualTransaction: a } = H(), { common: r, transactions: n } = O(), [s, i] = _.useState(!1), [d, m] = _.useState("");
|
|
368
|
-
_.useEffect(() => {
|
|
369
|
-
s && m(t.memo ? t.memo : "");
|
|
370
|
-
}, [s]);
|
|
371
|
-
const u = async () => {
|
|
372
|
-
if (t.is_manual && !t.guid) {
|
|
373
|
-
a({ ...t, memo: d }), i(!1);
|
|
374
|
-
return;
|
|
375
|
-
}
|
|
376
|
-
await l({ ...t, memo: d }), o(k.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: t.guid }), i(!1);
|
|
377
|
-
};
|
|
378
|
-
return /* @__PURE__ */ c("div", { className: "mx-txn-memo-action", children: [
|
|
379
|
-
/* @__PURE__ */ e(R, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(
|
|
380
|
-
B,
|
|
381
|
-
{
|
|
382
|
-
onClick: () => {
|
|
383
|
-
o(g.ON_TRANSACTION_MEMO_CLICK), i(!0);
|
|
384
|
-
},
|
|
385
|
-
children: [
|
|
386
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "article", sx: { color: "text.primary" }, weight: b.Dark }) }) }),
|
|
387
|
-
/* @__PURE__ */ e(
|
|
388
|
-
P,
|
|
389
|
-
{
|
|
390
|
-
primary: n.memo_title,
|
|
391
|
-
primaryTypographyProps: { variant: "XSmall" },
|
|
392
|
-
secondary: /* @__PURE__ */ e(
|
|
393
|
-
S,
|
|
394
|
-
{
|
|
395
|
-
bold: !0,
|
|
396
|
-
sx: { overflowWrap: "break-word", whiteSpace: "wrap" },
|
|
397
|
-
variant: "Body",
|
|
398
|
-
children: t.memo ? t.memo : n.memo_desc
|
|
399
|
-
}
|
|
400
|
-
)
|
|
401
|
-
}
|
|
402
|
-
),
|
|
403
|
-
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(A, { name: "chevron_right", weight: b.Dark }) })
|
|
404
|
-
]
|
|
405
|
-
}
|
|
406
|
-
) }),
|
|
407
|
-
/* @__PURE__ */ c(
|
|
408
|
-
re,
|
|
409
|
-
{
|
|
410
|
-
ariaLabelClose: r.close_aria,
|
|
411
|
-
isOpen: s,
|
|
412
|
-
onClose: () => i(!1),
|
|
413
|
-
onPrimaryAction: u,
|
|
414
|
-
title: n.memo_title,
|
|
415
|
-
children: [
|
|
416
|
-
/* @__PURE__ */ e(be, { transaction: t }),
|
|
417
|
-
/* @__PURE__ */ e(
|
|
418
|
-
Te,
|
|
419
|
-
{
|
|
420
|
-
"aria-label": n.memo_desc_aria,
|
|
421
|
-
focused: !0,
|
|
422
|
-
multiline: !0,
|
|
423
|
-
name: "memo",
|
|
424
|
-
onChange: (p) => m(p.target.value),
|
|
425
|
-
placeholder: n.memo_desc,
|
|
426
|
-
rows: 4,
|
|
427
|
-
sx: { mx: 16, width: "calc(100% - 32px)" },
|
|
428
|
-
value: d
|
|
429
|
-
}
|
|
430
|
-
)
|
|
431
|
-
]
|
|
432
|
-
}
|
|
433
|
-
)
|
|
434
|
-
] });
|
|
435
|
-
}, rt = D(nt), ot = ({
|
|
436
|
-
index: t,
|
|
437
|
-
onDeleteRow: o,
|
|
438
|
-
onCategoryChanged: l,
|
|
439
|
-
onUpdateAmount: a,
|
|
440
|
-
split: r
|
|
441
|
-
}) => {
|
|
442
|
-
const n = ae(), { onEvent: s } = v(), { transactions: i } = O(), [d, m] = _.useState(`${r.amount}`), [u, p] = _.useState(!1), T = t === 0, y = (C) => {
|
|
443
|
-
isNaN(Number(C)) || (m(C), a(t, Number(C)));
|
|
444
|
-
};
|
|
445
|
-
return /* @__PURE__ */ c(
|
|
446
|
-
L,
|
|
447
|
-
{
|
|
448
|
-
bgcolor: "background.paper",
|
|
449
|
-
className: "mx-txn-split-manager-row",
|
|
450
|
-
pb: n.Spacing.Tiny,
|
|
451
|
-
px: n.Spacing.XSmall,
|
|
452
|
-
children: [
|
|
453
|
-
/* @__PURE__ */ c(ce, { alignItems: T ? "center" : "start", container: !0, children: [
|
|
454
|
-
/* @__PURE__ */ e(ce, { item: !0, xs: 7, children: /* @__PURE__ */ c(I, { alignItems: "start", children: [
|
|
455
|
-
/* @__PURE__ */ e(
|
|
456
|
-
ne,
|
|
457
|
-
{
|
|
458
|
-
endIcon: /* @__PURE__ */ e(Ke, {}),
|
|
459
|
-
onClick: () => p(!0),
|
|
460
|
-
startIcon: /* @__PURE__ */ e(_e, { categoryGuid: r.top_level_category_guid }),
|
|
461
|
-
sx: { px: n.Spacing.Small, py: n.Spacing.XSmall },
|
|
462
|
-
children: r.category
|
|
463
|
-
}
|
|
464
|
-
),
|
|
465
|
-
/* @__PURE__ */ e(L, { children: !r.category_guid && /* @__PURE__ */ c(
|
|
466
|
-
I,
|
|
467
|
-
{
|
|
468
|
-
color: "error.main",
|
|
469
|
-
direction: "row",
|
|
470
|
-
gap: n.Spacing.XSmall,
|
|
471
|
-
p: n.Spacing.Small,
|
|
472
|
-
children: [
|
|
473
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(te, { sx: { fontSize: n.FontSize.Body } }) }),
|
|
474
|
-
/* @__PURE__ */ e(S, { variant: "Small", children: i.split_transaction_errors_select_category })
|
|
475
|
-
]
|
|
476
|
-
}
|
|
477
|
-
) })
|
|
478
|
-
] }) }),
|
|
479
|
-
/* @__PURE__ */ e(ce, { item: !0, xs: 5, children: T ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(S, { children: oe(r.amount, "0,0.00") }) }) : /* @__PURE__ */ c(I, { alignItems: "start", children: [
|
|
480
|
-
/* @__PURE__ */ c(I, { alignItems: "start", direction: "row", gap: n.Spacing.XSmall, children: [
|
|
481
|
-
/* @__PURE__ */ e(
|
|
482
|
-
ze,
|
|
483
|
-
{
|
|
484
|
-
amount: d,
|
|
485
|
-
ariaLabel: i.split_transaction_edit_split_amount,
|
|
486
|
-
minAmount: 0.01,
|
|
487
|
-
name: "split-amount-input",
|
|
488
|
-
setAmount: y,
|
|
489
|
-
sx: {
|
|
490
|
-
".MuiOutlinedInput-input": { p: n.Spacing.Small }
|
|
491
|
-
},
|
|
492
|
-
type: "number"
|
|
493
|
-
}
|
|
494
|
-
),
|
|
495
|
-
/* @__PURE__ */ e(
|
|
496
|
-
Y,
|
|
497
|
-
{
|
|
498
|
-
"aria-label": i.split_transaction_delete_split_btn,
|
|
499
|
-
color: "secondary",
|
|
500
|
-
onClick: () => {
|
|
501
|
-
s(g.ON_TRANSACTION_SPLIT_DELETE_CLICK), o(t);
|
|
502
|
-
},
|
|
503
|
-
sx: { w: 44, h: 44 },
|
|
504
|
-
children: /* @__PURE__ */ e(ee, {})
|
|
505
|
-
}
|
|
506
|
-
)
|
|
507
|
-
] }),
|
|
508
|
-
!d && /* @__PURE__ */ c(
|
|
509
|
-
I,
|
|
510
|
-
{
|
|
511
|
-
color: "error.main",
|
|
512
|
-
direction: "row",
|
|
513
|
-
gap: n.Spacing.XSmall,
|
|
514
|
-
py: n.Spacing.Small,
|
|
515
|
-
children: [
|
|
516
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(te, { sx: { fontSize: n.FontSize.Body } }) }),
|
|
517
|
-
/* @__PURE__ */ e(S, { variant: "Small", children: i.split_transaction_errors_enter_an_amount })
|
|
518
|
-
]
|
|
519
|
-
}
|
|
520
|
-
)
|
|
521
|
-
] }) })
|
|
522
|
-
] }),
|
|
523
|
-
/* @__PURE__ */ e(
|
|
524
|
-
Ae,
|
|
525
|
-
{
|
|
526
|
-
initialSelected: r.category_guid,
|
|
527
|
-
onClose: () => p(!1),
|
|
528
|
-
onSelect: (C) => {
|
|
529
|
-
l(t, C), p(!1);
|
|
530
|
-
},
|
|
531
|
-
showDrawer: u,
|
|
532
|
-
title: i.actions_select_a_category
|
|
533
|
-
}
|
|
534
|
-
)
|
|
535
|
-
]
|
|
536
|
-
}
|
|
537
|
-
);
|
|
538
|
-
}, it = D(ot), lt = ({
|
|
539
|
-
onAddSplit: t,
|
|
540
|
-
onCategoryChanged: o,
|
|
541
|
-
onDeleteSplit: l,
|
|
542
|
-
onUpdateAmount: a,
|
|
543
|
-
splits: r,
|
|
544
|
-
transaction: n
|
|
545
|
-
}) => {
|
|
546
|
-
const s = ae(), { transactions: i } = O(), { onEvent: d } = v(), [m, u] = _.useState(""), { announce: p, ariaLive: T } = ue();
|
|
547
|
-
return _.useEffect(() => {
|
|
548
|
-
if (r.length <= 1)
|
|
549
|
-
u(i.split_transaction_errors_min_splits), p(i.split_transaction_errors_min_splits);
|
|
550
|
-
else if (r[0].amount < 0) {
|
|
551
|
-
const y = X(
|
|
552
|
-
i.split_transaction_errors_totals_must_equal_amount,
|
|
553
|
-
oe(n.amount, "0,0.00")
|
|
554
|
-
);
|
|
555
|
-
u(y), p(y);
|
|
556
|
-
} else
|
|
557
|
-
u(""), p("");
|
|
558
|
-
}, [r]), /* @__PURE__ */ c(L, { className: "mx-txn-split-manager", children: [
|
|
559
|
-
T,
|
|
560
|
-
r.map((y, C) => /* @__PURE__ */ e(
|
|
561
|
-
it,
|
|
562
|
-
{
|
|
563
|
-
index: C,
|
|
564
|
-
onCategoryChanged: o,
|
|
565
|
-
onDeleteRow: l,
|
|
566
|
-
onUpdateAmount: a,
|
|
567
|
-
split: y
|
|
568
|
-
},
|
|
569
|
-
C
|
|
570
|
-
)),
|
|
571
|
-
m && /* @__PURE__ */ c(
|
|
572
|
-
I,
|
|
573
|
-
{
|
|
574
|
-
color: "error.main",
|
|
575
|
-
direction: "row",
|
|
576
|
-
gap: s.Spacing.XSmall,
|
|
577
|
-
p: s.Spacing.Medium,
|
|
578
|
-
children: [
|
|
579
|
-
/* @__PURE__ */ e("span", { "aria-label": "error", role: "img", children: /* @__PURE__ */ e(te, { sx: { fontSize: s.FontSize.Body } }) }),
|
|
580
|
-
/* @__PURE__ */ e(S, { variant: "Small", children: m })
|
|
581
|
-
]
|
|
582
|
-
}
|
|
583
|
-
),
|
|
584
|
-
/* @__PURE__ */ e(L, { p: s.Spacing.Medium, children: /* @__PURE__ */ e(
|
|
585
|
-
ne,
|
|
586
|
-
{
|
|
587
|
-
"aria-label": i.split_transaction_add_split_btn,
|
|
588
|
-
onClick: () => {
|
|
589
|
-
d(g.ON_TRANSACTION_SPLIT_ADD_CLICK), t();
|
|
590
|
-
},
|
|
591
|
-
children: i.split_transaction_add_split_btn
|
|
592
|
-
}
|
|
593
|
-
) })
|
|
594
|
-
] });
|
|
595
|
-
}, st = D(lt), ct = ({ transaction: t }) => {
|
|
596
|
-
const { onEvent: o } = v(), { announce: l, ariaLive: a } = ue(), { splitTransaction: r, unSplitTransaction: n } = E(), { common: s, transactions: i } = O(), { setShouldDisableDrawerScroll: d } = H(), { categories: m } = ye(), u = {
|
|
597
|
-
...t,
|
|
598
|
-
amount: t.amount - 1,
|
|
599
|
-
guid: "",
|
|
600
|
-
has_been_split: !1,
|
|
601
|
-
parent_guid: t.guid
|
|
602
|
-
}, p = {
|
|
603
|
-
...t,
|
|
604
|
-
amount: 1,
|
|
605
|
-
category_guid: void 0,
|
|
606
|
-
category: i.split_transaction_select_category_btn,
|
|
607
|
-
guid: "",
|
|
608
|
-
has_been_split: !1,
|
|
609
|
-
parent_guid: t.guid,
|
|
610
|
-
top_level_category_guid: void 0
|
|
611
|
-
}, [T, y] = _.useState(!1), [C, w] = _.useState(!1), [h, N] = _.useState([]), U = () => {
|
|
612
|
-
const f = [...h];
|
|
613
|
-
f.push({ ...p }), f[0].amount -= 1, N(f), l(
|
|
614
|
-
X(
|
|
615
|
-
i.split_transaction_add_split_announcement,
|
|
616
|
-
f.length
|
|
617
|
-
)
|
|
618
|
-
);
|
|
619
|
-
}, ie = (f) => {
|
|
620
|
-
if (f > 0) {
|
|
621
|
-
const G = h[f], x = [...h];
|
|
622
|
-
x.splice(f, 1), x[0].amount += G.amount, N(x), l(
|
|
623
|
-
X(i.split_transaction_delete_split_announcement, f + 1)
|
|
624
|
-
);
|
|
625
|
-
}
|
|
626
|
-
}, le = (f, G) => {
|
|
627
|
-
const x = [...h];
|
|
628
|
-
x[f].amount = G, x[0].amount = t.amount - x.reduce(
|
|
629
|
-
(z, se, Ee) => z + (Ee !== 0 ? se.amount : 0),
|
|
630
|
-
0
|
|
631
|
-
), N(x);
|
|
632
|
-
}, Ne = (f, G) => {
|
|
633
|
-
const x = [...h], z = m.find((se) => se.guid === G);
|
|
634
|
-
z && (x[f] = {
|
|
635
|
-
...x[f],
|
|
636
|
-
category_guid: G,
|
|
637
|
-
category: z.name,
|
|
638
|
-
top_level_category_guid: z.parent_guid || G
|
|
639
|
-
}, N(x), l(
|
|
640
|
-
X(
|
|
641
|
-
i.split_transaction_select_category_announcement,
|
|
642
|
-
z.name,
|
|
643
|
-
f + 1
|
|
644
|
-
)
|
|
645
|
-
));
|
|
646
|
-
}, xe = () => {
|
|
647
|
-
if (t.parent_guid || t.has_been_split) {
|
|
648
|
-
w(!0);
|
|
649
|
-
return;
|
|
650
|
-
}
|
|
651
|
-
N([{ ...u }, { ...p }]), o(k.TRANSACTION_DETAILS_CLICK_SPLIT, {
|
|
652
|
-
transaction_guid: t.guid
|
|
653
|
-
}), y(!0);
|
|
654
|
-
}, Ie = async () => {
|
|
655
|
-
o(g.ON_TRANSACTION_SPLIT_SAVE_CLICK), await r({ ...t, has_been_split: !0 }, h), y(!1);
|
|
656
|
-
}, De = async () => {
|
|
657
|
-
o(g.ON_TRANSACTION_SPLIT_CANCEL_CLICK), N([{ ...u }, { ...p }]), y(!1);
|
|
658
|
-
}, Oe = async () => {
|
|
659
|
-
o(k.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
|
660
|
-
transaction_guid: t.guid
|
|
661
|
-
});
|
|
662
|
-
const f = t.parent_guid ?? t.guid;
|
|
663
|
-
await n(f);
|
|
664
|
-
}, ve = _.useMemo(() => {
|
|
665
|
-
const f = h.some((x) => !x.category_guid), G = h.some((x) => x.amount <= 0);
|
|
666
|
-
return f || G;
|
|
667
|
-
}, [h]);
|
|
668
|
-
return /* @__PURE__ */ c(_.Fragment, { children: [
|
|
669
|
-
t && /* @__PURE__ */ e(R, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(B, { onClick: xe, children: [
|
|
670
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "call_split", sx: { color: "text.primary" }, weight: b.Dark }) }) }),
|
|
671
|
-
/* @__PURE__ */ e(
|
|
672
|
-
P,
|
|
673
|
-
{
|
|
674
|
-
primary: t.has_been_split || t.parent_guid ? i.split_transaction_unsplit_title : i.split_transaction_title,
|
|
675
|
-
secondary: t.has_been_split || t.parent_guid ? i.split_transaction_unsplit_subtitle : i.split_transaction_desc
|
|
676
|
-
}
|
|
677
|
-
),
|
|
678
|
-
/* @__PURE__ */ e($, { children: t.has_been_split || t.parent_guid ? /* @__PURE__ */ e(A, { name: "delete", weight: b.Dark }) : /* @__PURE__ */ e(A, { name: "chevron_right", weight: b.Dark }) })
|
|
679
|
-
] }) }),
|
|
680
|
-
/* @__PURE__ */ c(
|
|
681
|
-
re,
|
|
682
|
-
{
|
|
683
|
-
ariaLabelClose: s.close_aria,
|
|
684
|
-
isOpen: T,
|
|
685
|
-
isPrimaryDisabled: ve,
|
|
686
|
-
onClose: De,
|
|
687
|
-
onPrimaryAction: Ie,
|
|
688
|
-
primaryText: s.save_button,
|
|
689
|
-
secondaryText: s.cancel_button,
|
|
690
|
-
title: i.split_transaction_title,
|
|
691
|
-
children: [
|
|
692
|
-
a,
|
|
693
|
-
/* @__PURE__ */ e(be, { transaction: t }),
|
|
694
|
-
/* @__PURE__ */ e(
|
|
695
|
-
st,
|
|
696
|
-
{
|
|
697
|
-
onAddSplit: U,
|
|
698
|
-
onCategoryChanged: Ne,
|
|
699
|
-
onDeleteSplit: ie,
|
|
700
|
-
onUpdateAmount: le,
|
|
701
|
-
splits: h,
|
|
702
|
-
transaction: t
|
|
703
|
-
}
|
|
704
|
-
)
|
|
705
|
-
]
|
|
706
|
-
}
|
|
707
|
-
),
|
|
708
|
-
/* @__PURE__ */ e(
|
|
709
|
-
F,
|
|
710
|
-
{
|
|
711
|
-
copy: { title: i.split_transaction_unsplit_title },
|
|
712
|
-
isOpen: C,
|
|
713
|
-
onClose: () => {
|
|
714
|
-
d(!1), w(!1);
|
|
715
|
-
},
|
|
716
|
-
onPrimaryAction: Oe,
|
|
717
|
-
onSecondaryAction: () => {
|
|
718
|
-
o(g.ON_TRANSACTION_UNSPLIT_CANCEL);
|
|
719
|
-
},
|
|
720
|
-
primaryText: s.delete_button,
|
|
721
|
-
secondaryText: s.cancel_button,
|
|
722
|
-
children: /* @__PURE__ */ e(V, { variant: "Paragraph", children: X(
|
|
723
|
-
i.split_transaction_unsplit_description,
|
|
724
|
-
t.description
|
|
725
|
-
) })
|
|
726
|
-
}
|
|
727
|
-
)
|
|
728
|
-
] });
|
|
729
|
-
}, dt = D(ct), _t = () => {
|
|
730
|
-
const t = Se(), { onEvent: o } = v(), { addTag: l } = E(), { transactions: a } = O(), [r, n] = _.useState(!1), [s, i] = _.useState(""), [d, m] = _.useState(""), u = _.useRef(null);
|
|
731
|
-
_.useEffect(() => {
|
|
732
|
-
r && u?.current?.focus();
|
|
733
|
-
}, [r]);
|
|
734
|
-
const p = () => {
|
|
735
|
-
o(
|
|
736
|
-
r ? g.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK : g.ON_TRANSACTION_TAGS_TAG_ADD_CLICK
|
|
737
|
-
), r || i(""), n(!r);
|
|
738
|
-
}, T = async () => {
|
|
739
|
-
o(g.ON_TRANSACTION_TAGS_TAG_ADDED), await l(s), n(!1);
|
|
740
|
-
};
|
|
741
|
-
return _.useEffect(() => {
|
|
742
|
-
m(s.length > 40 ? a.tags_error_name_must_be_40_chars : "");
|
|
743
|
-
}, [s]), /* @__PURE__ */ c(L, { className: "mx-txn-tag-manager-header", children: [
|
|
744
|
-
/* @__PURE__ */ c(
|
|
745
|
-
I,
|
|
746
|
-
{
|
|
747
|
-
alignItems: "center",
|
|
748
|
-
bgcolor: t.palette.background.default,
|
|
749
|
-
direction: "row",
|
|
750
|
-
justifyContent: "space-between",
|
|
751
|
-
px: 24,
|
|
752
|
-
py: 16,
|
|
753
|
-
children: [
|
|
754
|
-
/* @__PURE__ */ e(S, { bold: !0, children: a.tags_your_tags }),
|
|
755
|
-
/* @__PURE__ */ e(
|
|
756
|
-
ne,
|
|
757
|
-
{
|
|
758
|
-
"aria-expanded": r,
|
|
759
|
-
"aria-label": a.tags_add_tag_btn_aria,
|
|
760
|
-
onClick: p,
|
|
761
|
-
children: a.tags_add_tag_btn
|
|
762
|
-
}
|
|
763
|
-
)
|
|
764
|
-
]
|
|
765
|
-
}
|
|
766
|
-
),
|
|
767
|
-
/* @__PURE__ */ c(
|
|
768
|
-
F,
|
|
769
|
-
{
|
|
770
|
-
copy: { title: a.tags_add_tag_btn },
|
|
771
|
-
isOpen: r,
|
|
772
|
-
onClose: () => n(!1),
|
|
773
|
-
onPrimaryAction: T,
|
|
774
|
-
onSecondaryAction: () => n(!1),
|
|
775
|
-
children: [
|
|
776
|
-
/* @__PURE__ */ e(
|
|
777
|
-
me,
|
|
778
|
-
{
|
|
779
|
-
"aria-label": a.tags_placeholder,
|
|
780
|
-
name: "add-tag",
|
|
781
|
-
onChange: (y) => i(y.target.value),
|
|
782
|
-
placeholder: a.tags_placeholder,
|
|
783
|
-
sx: { width: "100%" },
|
|
784
|
-
value: s
|
|
785
|
-
}
|
|
786
|
-
),
|
|
787
|
-
/* @__PURE__ */ e(V, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
|
|
788
|
-
]
|
|
789
|
-
}
|
|
790
|
-
)
|
|
791
|
-
] });
|
|
792
|
-
}, mt = D(_t), ut = ({ onSearchValueChanged: t, searchValue: o }) => {
|
|
793
|
-
const { common: l, transactions: a } = O(), r = ae(), n = /* @__PURE__ */ e(
|
|
794
|
-
Y,
|
|
795
|
-
{
|
|
796
|
-
"aria-label": a.tags_cancel_search || "Search",
|
|
797
|
-
onClick: () => t(""),
|
|
798
|
-
children: /* @__PURE__ */ e(te, {})
|
|
799
|
-
}
|
|
800
|
-
);
|
|
801
|
-
return /* @__PURE__ */ e(L, { className: "mx-txn-tag-manager-search", px: r.Spacing.Large, py: r.Spacing.Medium, children: /* @__PURE__ */ e(
|
|
802
|
-
me,
|
|
803
|
-
{
|
|
804
|
-
InputProps: {
|
|
805
|
-
startAdornment: /* @__PURE__ */ e(pe, { position: "start", children: /* @__PURE__ */ e(Be, { color: "disabled" }) }),
|
|
806
|
-
endAdornment: /* @__PURE__ */ e(pe, { position: "end", sx: { padding: 0 }, children: o ? n : null })
|
|
807
|
-
},
|
|
808
|
-
"aria-label": l.search_aria,
|
|
809
|
-
name: "search",
|
|
810
|
-
onChange: (s) => t(s.target.value),
|
|
811
|
-
placeholder: l.search_placeholder,
|
|
812
|
-
sx: { bgcolor: "background.paper", width: "100%" },
|
|
813
|
-
value: o
|
|
814
|
-
}
|
|
815
|
-
) });
|
|
816
|
-
}, pt = D(ut), gt = ({ onTagChecked: t, selectedTags: o, tag: l }) => {
|
|
817
|
-
const { onEvent: a } = v(), { removeTag: r, updateTag: n } = E(), { common: s, transactions: i } = O(), [d, m] = _.useState(!1), [u, p] = _.useState(!1), [T, y] = _.useState(""), [C, w] = _.useState(""), h = async () => {
|
|
818
|
-
a(g.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), l && await n({ ...l, name: T }), m(!1);
|
|
819
|
-
}, N = async () => {
|
|
820
|
-
a(g.ON_TRANSACTION_TAGS_TAG_DELETED), await r(l.guid), p(!1);
|
|
821
|
-
};
|
|
822
|
-
_.useEffect(() => {
|
|
823
|
-
w(T.length > 40 ? i.tags_error_name_must_be_40_chars : "");
|
|
824
|
-
}, [T]);
|
|
825
|
-
const U = () => {
|
|
826
|
-
a(g.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK), y(l.name), m(!0);
|
|
827
|
-
}, ie = () => {
|
|
828
|
-
a(g.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), p(!0);
|
|
829
|
-
};
|
|
830
|
-
return /* @__PURE__ */ c(
|
|
831
|
-
R,
|
|
832
|
-
{
|
|
833
|
-
className: "mx-txn-transaction-manager-row",
|
|
834
|
-
disableGutters: !0,
|
|
835
|
-
disablePadding: !0,
|
|
836
|
-
secondaryAction: !l.is_default_tag && /* @__PURE__ */ c(I, { direction: "row", children: [
|
|
837
|
-
/* @__PURE__ */ e(
|
|
838
|
-
Y,
|
|
839
|
-
{
|
|
840
|
-
"aria-label": `Edit ${l.name} tag`,
|
|
841
|
-
color: "secondary",
|
|
842
|
-
onClick: U,
|
|
843
|
-
children: /* @__PURE__ */ e($e, { color: "secondary" })
|
|
844
|
-
}
|
|
845
|
-
),
|
|
846
|
-
/* @__PURE__ */ e(
|
|
847
|
-
Y,
|
|
848
|
-
{
|
|
849
|
-
"aria-label": `Delete ${l.name} tag`,
|
|
850
|
-
color: "secondary",
|
|
851
|
-
onClick: ie,
|
|
852
|
-
children: /* @__PURE__ */ e(ee, { color: "secondary" })
|
|
853
|
-
}
|
|
854
|
-
)
|
|
855
|
-
] }),
|
|
856
|
-
children: [
|
|
857
|
-
/* @__PURE__ */ c(
|
|
858
|
-
B,
|
|
859
|
-
{
|
|
860
|
-
"aria-checked": o.includes(l.guid),
|
|
861
|
-
onClick: () => t(l.guid),
|
|
862
|
-
role: "checkbox",
|
|
863
|
-
children: [
|
|
864
|
-
/* @__PURE__ */ e($, { sx: { ml: 0 }, children: /* @__PURE__ */ e(Xe, { checked: o.includes(l.guid), edge: "start", tabIndex: -1 }) }),
|
|
865
|
-
/* @__PURE__ */ e(P, { children: l.name })
|
|
866
|
-
]
|
|
867
|
-
}
|
|
868
|
-
),
|
|
869
|
-
/* @__PURE__ */ c(
|
|
870
|
-
F,
|
|
871
|
-
{
|
|
872
|
-
copy: { title: "Update tag name" },
|
|
873
|
-
isOpen: d,
|
|
874
|
-
onClose: () => m(!1),
|
|
875
|
-
onPrimaryAction: h,
|
|
876
|
-
onSecondaryAction: () => m(!1),
|
|
877
|
-
children: [
|
|
878
|
-
/* @__PURE__ */ e(
|
|
879
|
-
me,
|
|
880
|
-
{
|
|
881
|
-
"aria-describedby": C ? "update-tag-error" : void 0,
|
|
882
|
-
"aria-label": i.tags_update_the_tag_name,
|
|
883
|
-
name: "update-tag",
|
|
884
|
-
onChange: (le) => y(le.target.value),
|
|
885
|
-
placeholder: "Tag name",
|
|
886
|
-
sx: { width: "100%" },
|
|
887
|
-
value: T
|
|
888
|
-
}
|
|
889
|
-
),
|
|
890
|
-
/* @__PURE__ */ e(V, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: C })
|
|
891
|
-
]
|
|
892
|
-
}
|
|
893
|
-
),
|
|
894
|
-
/* @__PURE__ */ e(
|
|
895
|
-
F,
|
|
896
|
-
{
|
|
897
|
-
copy: { title: i.tags_delete_title },
|
|
898
|
-
isOpen: u,
|
|
899
|
-
onClose: () => p(!1),
|
|
900
|
-
onPrimaryAction: N,
|
|
901
|
-
onSecondaryAction: () => a(g.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
|
|
902
|
-
primaryText: s.delete_button,
|
|
903
|
-
secondaryText: s.cancel_button,
|
|
904
|
-
children: /* @__PURE__ */ e(S, { truncate: !1, children: i.tags_deleting_this_tag_will_remove_it })
|
|
905
|
-
}
|
|
906
|
-
)
|
|
907
|
-
]
|
|
908
|
-
}
|
|
909
|
-
);
|
|
910
|
-
}, ht = D(gt), Tt = ({ selectedTags: t, onTagChecked: o }) => {
|
|
911
|
-
const { tags: l } = E(), [a, r] = _.useState(""), n = l.filter(
|
|
912
|
-
(s) => s.name.toLowerCase().includes(a.toLowerCase())
|
|
913
|
-
);
|
|
914
|
-
return /* @__PURE__ */ c("div", { className: "mx-txn-tag-manager", children: [
|
|
915
|
-
/* @__PURE__ */ e(
|
|
916
|
-
pt,
|
|
917
|
-
{
|
|
918
|
-
onSearchValueChanged: (s) => r(s),
|
|
919
|
-
searchValue: a
|
|
920
|
-
}
|
|
921
|
-
),
|
|
922
|
-
/* @__PURE__ */ e(mt, {}),
|
|
923
|
-
/* @__PURE__ */ e(q, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ e(Z, { children: n.map((s) => /* @__PURE__ */ c(_.Fragment, { children: [
|
|
924
|
-
/* @__PURE__ */ e(ht, { onTagChecked: o, selectedTags: t, tag: s }),
|
|
925
|
-
/* @__PURE__ */ e(Q, { sx: { ml: 24 } })
|
|
926
|
-
] }, s.guid)) }) })
|
|
927
|
-
] });
|
|
928
|
-
}, yt = D(Tt), St = ({ transaction: t }) => {
|
|
929
|
-
const { onEvent: o } = v(), { tags: l, updateTaggings: a, updateTransaction: r } = E(), { common: n, transactions: s } = O(), { updateManualTransaction: i } = H(), [d, m] = _.useState(!1), [u, p] = _.useState(t.tags);
|
|
930
|
-
_.useEffect(() => {
|
|
931
|
-
p(t.tags);
|
|
932
|
-
}, [d, t]);
|
|
933
|
-
const T = (w) => {
|
|
934
|
-
const h = [...u], N = u.indexOf(w);
|
|
935
|
-
N >= 0 ? h.splice(N, 1) : h.push(w), p(h);
|
|
936
|
-
}, y = async () => {
|
|
937
|
-
if (t.is_manual && !t.guid) {
|
|
938
|
-
i({ ...t, tags: u }), m(!1);
|
|
939
|
-
return;
|
|
940
|
-
}
|
|
941
|
-
await a(u, t.guid), await r({ ...t, tags: u }), o(k.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: t.guid }), m(!1);
|
|
942
|
-
}, C = _.useMemo(
|
|
943
|
-
() => t.tags.map(
|
|
944
|
-
(w, h, N) => `${l.find((U) => U.guid === w)?.name}${h < N.length - 1 ? " / " : ""}`
|
|
945
|
-
),
|
|
946
|
-
[l, t]
|
|
947
|
-
);
|
|
948
|
-
return /* @__PURE__ */ c(_.Fragment, { children: [
|
|
949
|
-
/* @__PURE__ */ e(R, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ c(
|
|
950
|
-
B,
|
|
951
|
-
{
|
|
952
|
-
onClick: () => {
|
|
953
|
-
o(g.ON_TRANSACTION_TAGS_CLICK), m(!0);
|
|
954
|
-
},
|
|
955
|
-
children: [
|
|
956
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ e(A, { name: "local_offer", sx: { color: "text.primary" }, weight: b.Dark }) }) }),
|
|
957
|
-
/* @__PURE__ */ e(
|
|
958
|
-
P,
|
|
959
|
-
{
|
|
960
|
-
primary: s.tags_title,
|
|
961
|
-
primaryTypographyProps: { variant: "XSmall" },
|
|
962
|
-
secondary: /* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: t.tags?.length > 0 ? C : s.tags_desc })
|
|
963
|
-
}
|
|
964
|
-
),
|
|
965
|
-
/* @__PURE__ */ e($, { children: /* @__PURE__ */ e(A, { name: "chevron_right", weight: b.Dark }) })
|
|
966
|
-
]
|
|
967
|
-
}
|
|
968
|
-
) }),
|
|
969
|
-
/* @__PURE__ */ e(
|
|
970
|
-
re,
|
|
971
|
-
{
|
|
972
|
-
ariaLabelClose: n.close_aria,
|
|
973
|
-
isOpen: d,
|
|
974
|
-
onClose: () => m(!1),
|
|
975
|
-
onPrimaryAction: y,
|
|
976
|
-
primaryText: n.save_button,
|
|
977
|
-
secondaryText: n.cancel_button,
|
|
978
|
-
title: s.tags_title,
|
|
979
|
-
children: /* @__PURE__ */ e(yt, { onTagChecked: T, selectedTags: u })
|
|
980
|
-
}
|
|
981
|
-
)
|
|
982
|
-
] });
|
|
983
|
-
}, Ct = D(St), ft = ({ transaction: t, viewOnly: o = !1 }) => {
|
|
984
|
-
const { updateTransaction: l } = E(), { common: a, transactions: r } = O(), { onEvent: n } = v(), { announce: s, ariaLive: i } = ue(), [d, m] = _.useState(!1), [u, p] = _.useState(""), T = _.useRef(null);
|
|
985
|
-
_.useEffect(() => {
|
|
986
|
-
d && (p(t.description), T?.current?.focus());
|
|
987
|
-
}, [d]);
|
|
988
|
-
const y = () => {
|
|
989
|
-
m(!0), n(g.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK), setTimeout(() => document.getElementById("transaction-description-input")?.focus(), 0);
|
|
990
|
-
}, C = async () => {
|
|
991
|
-
n(k.TRANSACTION_DETAILS_CLICK_DESCRIPTION, {
|
|
992
|
-
transaction_guid: t.guid
|
|
993
|
-
}), await l({ ...t, description: u }), m(!1), s(`${r.payee_title}: ${u}`), setTimeout(() => document.getElementById("transaction-description-edit-button")?.focus(), 0);
|
|
994
|
-
};
|
|
995
|
-
return /* @__PURE__ */ c(L, { className: "mx-txn-transaction-description", children: [
|
|
996
|
-
i,
|
|
997
|
-
d ? /* @__PURE__ */ c(Re, { row: !0, children: [
|
|
998
|
-
/* @__PURE__ */ e(
|
|
999
|
-
Te,
|
|
1000
|
-
{
|
|
1001
|
-
"aria-label": r.payee_title,
|
|
1002
|
-
id: "transaction-description-input",
|
|
1003
|
-
inputProps: { maxLength: 140 },
|
|
1004
|
-
label: r.payee_title,
|
|
1005
|
-
name: r.payee_title,
|
|
1006
|
-
onChange: (w) => p(w.target.value),
|
|
1007
|
-
ref: T,
|
|
1008
|
-
sx: {
|
|
1009
|
-
backgroundColor: "background.paper",
|
|
1010
|
-
".MuiOutlinedInput-root": { borderTopRightRadius: 0, borderBottomRightRadius: 0 },
|
|
1011
|
-
".MuiOutlinedInput-input": { p: 11 },
|
|
1012
|
-
width: 250
|
|
1013
|
-
},
|
|
1014
|
-
value: u
|
|
1015
|
-
}
|
|
1016
|
-
),
|
|
1017
|
-
/* @__PURE__ */ e(
|
|
1018
|
-
ne,
|
|
1019
|
-
{
|
|
1020
|
-
disabled: !u,
|
|
1021
|
-
onClick: C,
|
|
1022
|
-
sx: {
|
|
1023
|
-
borderTopLeftRadius: 0,
|
|
1024
|
-
borderBottomLeftRadius: 0
|
|
1025
|
-
},
|
|
1026
|
-
variant: "outlined",
|
|
1027
|
-
children: a.save_button
|
|
1028
|
-
}
|
|
1029
|
-
)
|
|
1030
|
-
] }) : /* @__PURE__ */ c(I, { alignItems: "center", direction: "row", gap: 4, sx: { minHeight: 44 }, children: [
|
|
1031
|
-
/* @__PURE__ */ e(S, { bold: !0, children: t.description }),
|
|
1032
|
-
!o && /* @__PURE__ */ e(
|
|
1033
|
-
Y,
|
|
1034
|
-
{
|
|
1035
|
-
"aria-label": r.payee_edit,
|
|
1036
|
-
id: "transaction-description-edit-button",
|
|
1037
|
-
onClick: y,
|
|
1038
|
-
sx: { color: "action.active" },
|
|
1039
|
-
children: /* @__PURE__ */ e(A, { name: "create", size: 22 })
|
|
1040
|
-
}
|
|
1041
|
-
)
|
|
1042
|
-
] })
|
|
1043
|
-
] });
|
|
1044
|
-
}, At = D(ft), bt = ({ transaction: t }) => {
|
|
1045
|
-
const { updateTransaction: o } = E(), { transactions: l } = O(), { onEvent: a } = v(), r = Se(), n = async () => {
|
|
1046
|
-
a(k.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: t.guid }), await o({ ...t, is_flagged: !t.is_flagged });
|
|
1047
|
-
};
|
|
1048
|
-
return /* @__PURE__ */ e("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ e(
|
|
1049
|
-
Me,
|
|
1050
|
-
{
|
|
1051
|
-
"aria-label": l.flag_btn_aria,
|
|
1052
|
-
"aria-pressed": t.is_flagged,
|
|
1053
|
-
color: "warning",
|
|
1054
|
-
onClick: n,
|
|
1055
|
-
selected: t.is_flagged,
|
|
1056
|
-
sx: {
|
|
1057
|
-
borderRadius: 6,
|
|
1058
|
-
color: r.palette.secondary.main,
|
|
1059
|
-
"&.Mui-selected": {
|
|
1060
|
-
color: r.palette.common.white,
|
|
1061
|
-
backgroundColor: r.palette.warning.dark,
|
|
1062
|
-
":hover": {
|
|
1063
|
-
color: r.palette.common.white,
|
|
1064
|
-
backgroundColor: r.palette.warning.main
|
|
1065
|
-
}
|
|
1066
|
-
},
|
|
1067
|
-
":hover": {
|
|
1068
|
-
color: r.palette.warning.contrastText,
|
|
1069
|
-
backgroundColor: r.palette.warning.light
|
|
1070
|
-
}
|
|
1071
|
-
},
|
|
1072
|
-
value: "flagged",
|
|
1073
|
-
children: /* @__PURE__ */ e(Fe, { color: "inherit" })
|
|
1074
|
-
}
|
|
1075
|
-
) });
|
|
1076
|
-
}, Nt = D(bt), j = (t, o, l, a = !0, r = "inset") => a ? /* @__PURE__ */ c(_.Fragment, { children: [
|
|
1077
|
-
/* @__PURE__ */ c(R, { disableGutters: !0, disablePadding: !0, children: [
|
|
1078
|
-
/* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(M, { sx: { bgcolor: "border.light" }, variant: "rounded", children: t }) }),
|
|
1079
|
-
/* @__PURE__ */ e(
|
|
1080
|
-
P,
|
|
1081
|
-
{
|
|
1082
|
-
primary: o,
|
|
1083
|
-
primaryTypographyProps: { variant: "XSmall" },
|
|
1084
|
-
secondary: l
|
|
1085
|
-
}
|
|
1086
|
-
)
|
|
1087
|
-
] }),
|
|
1088
|
-
/* @__PURE__ */ e(Q, { variant: r })
|
|
1089
|
-
] }) : null, xt = ({ transaction: t }) => {
|
|
1090
|
-
const { transactions: o } = O(), { tags: l } = E(), a = _.useMemo(() => {
|
|
1091
|
-
const r = new Map(l.map((n) => [n.guid, n.name]));
|
|
1092
|
-
return t.tags.map((n) => r.get(n)).filter(Boolean).join(" / ");
|
|
1093
|
-
}, [l, t.tags]);
|
|
1094
|
-
return /* @__PURE__ */ c(Z, { sx: { "& .MuiListItem-root": { px: 24, py: 12 } }, children: [
|
|
1095
|
-
j(
|
|
1096
|
-
/* @__PURE__ */ e(
|
|
1097
|
-
_e,
|
|
1098
|
-
{
|
|
1099
|
-
categoryGuid: t.top_level_category_guid,
|
|
1100
|
-
size: 24,
|
|
1101
|
-
sx: { color: "text.primary" },
|
|
1102
|
-
variant: ge.Transparent
|
|
1103
|
-
}
|
|
1104
|
-
),
|
|
1105
|
-
o.category_title,
|
|
1106
|
-
/* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: t.category ?? o.actions_select_a_category })
|
|
1107
|
-
),
|
|
1108
|
-
j(
|
|
1109
|
-
/* @__PURE__ */ e(A, { name: "calendar_month", sx: { color: "text.primary" }, weight: b.Dark }),
|
|
1110
|
-
o.date_title,
|
|
1111
|
-
/* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: Ce(de(t.date), fe.YEAR_MONTH_DAY) })
|
|
1112
|
-
),
|
|
1113
|
-
j(
|
|
1114
|
-
/* @__PURE__ */ e(A, { name: "article", sx: { color: "text.primary" }, weight: b.Dark }),
|
|
1115
|
-
o.memo_title,
|
|
1116
|
-
/* @__PURE__ */ e(S, { bold: !0, sx: { overflowWrap: "break-word", whiteSpace: "wrap" }, variant: "Body", children: t.memo ?? o.memo_desc }),
|
|
1117
|
-
!!t.memo,
|
|
1118
|
-
t.tags?.length > 0 ? "inset" : "fullWidth"
|
|
1119
|
-
),
|
|
1120
|
-
j(
|
|
1121
|
-
/* @__PURE__ */ e(A, { name: "local_offer", sx: { color: "text.primary" }, weight: b.Dark }),
|
|
1122
|
-
o.tags_title,
|
|
1123
|
-
/* @__PURE__ */ e(S, { bold: !0, variant: "Body", children: t.tags?.length ? a : o.tags_desc }),
|
|
1124
|
-
!!t.tags?.length,
|
|
1125
|
-
"fullWidth"
|
|
1126
|
-
)
|
|
1127
|
-
] });
|
|
1128
|
-
}, It = D(xt), Dt = ({
|
|
1129
|
-
bottomActions: t = Ye,
|
|
1130
|
-
canFlagTransaction: o = !0,
|
|
1131
|
-
topActions: l = We,
|
|
1132
|
-
transaction: a
|
|
1133
|
-
}) => {
|
|
1134
|
-
const { onEvent: r } = v(), { isCopyLoaded: n } = Pe(), { userFeatures: s } = Ge(), i = a?.number && a.number.length > 4;
|
|
1135
|
-
if (_.useEffect(
|
|
1136
|
-
() => r(k.TRANSACTION_DETAILS_VIEW, { transaction_guid: a.guid }),
|
|
1137
|
-
[]
|
|
1138
|
-
), !n)
|
|
1139
|
-
return /* @__PURE__ */ e(He, {});
|
|
1140
|
-
const d = ke(s, "MX_TXN_DETAILS_VIEW_ONLY");
|
|
1141
|
-
return /* @__PURE__ */ e(L, { className: "mx-txn-transaction-details", width: "100%", children: a && /* @__PURE__ */ c(I, { children: [
|
|
1142
|
-
/* @__PURE__ */ c(I, { gap: 12, p: 24, children: [
|
|
1143
|
-
/* @__PURE__ */ e(q, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ e(
|
|
1144
|
-
he,
|
|
1145
|
-
{
|
|
1146
|
-
categoryGuid: a.top_level_category_guid || "",
|
|
1147
|
-
merchantGuid: a.merchant_guid || "",
|
|
1148
|
-
size: 64
|
|
1149
|
-
}
|
|
1150
|
-
) }),
|
|
1151
|
-
/* @__PURE__ */ e(At, { transaction: a, viewOnly: d }),
|
|
1152
|
-
/* @__PURE__ */ c(I, { direction: "row", justifyContent: "space-between", sx: { minHeight: 44 }, children: [
|
|
1153
|
-
/* @__PURE__ */ c(V, { color: a.isIncome ? "success.main" : "text.primary", variant: "H1", children: [
|
|
1154
|
-
a.isIncome ? "+" : "",
|
|
1155
|
-
oe(a.amount, "0,0.00")
|
|
1156
|
-
] }),
|
|
1157
|
-
!d && o && /* @__PURE__ */ e(Nt, { transaction: a })
|
|
1158
|
-
] }),
|
|
1159
|
-
/* @__PURE__ */ c(I, { bgcolor: "background.highlight", borderRadius: "12px", gap: 4, p: 8, children: [
|
|
1160
|
-
/* @__PURE__ */ e(S, { bold: !0, children: `${a.account}
|
|
1161
|
-
${i ? a.number : "•".repeat(4).concat(a.number ?? "")}` }),
|
|
1162
|
-
/* @__PURE__ */ e(S, { bold: !0, color: "secondary", variant: "Tiny", children: a.feed_description })
|
|
1163
|
-
] })
|
|
1164
|
-
] }),
|
|
1165
|
-
/* @__PURE__ */ e(q, { square: !0, sx: { boxShadow: "none" }, children: d ? /* @__PURE__ */ e(It, { transaction: a }) : /* @__PURE__ */ e(Z, { children: l.map((m, u) => /* @__PURE__ */ c(_.Fragment, { children: [
|
|
1166
|
-
m === W.Category && /* @__PURE__ */ e(je, { transaction: a }),
|
|
1167
|
-
m === W.Date && /* @__PURE__ */ e(qe, { transaction: a }),
|
|
1168
|
-
m === W.Memo && /* @__PURE__ */ e(rt, { transaction: a }),
|
|
1169
|
-
m === W.Tags && /* @__PURE__ */ e(Ct, { transaction: a }),
|
|
1170
|
-
/* @__PURE__ */ e(Q, { variant: u < l.length - 1 ? "inset" : "fullWidth" })
|
|
1171
|
-
] }, m)) }) }),
|
|
1172
|
-
!d && t.length > 0 && /* @__PURE__ */ c(_.Fragment, { children: [
|
|
1173
|
-
/* @__PURE__ */ e(S, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
1174
|
-
/* @__PURE__ */ e(q, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ c(Z, { children: [
|
|
1175
|
-
t.map((m, u) => /* @__PURE__ */ c(_.Fragment, { children: [
|
|
1176
|
-
m === J.SplitTransaction && /* @__PURE__ */ e(dt, { transaction: a }),
|
|
1177
|
-
m === J.HideTransaction && /* @__PURE__ */ e(at, { transaction: a }),
|
|
1178
|
-
m === J.MerchantLogo && /* @__PURE__ */ e(et, { transaction: a }),
|
|
1179
|
-
/* @__PURE__ */ e(Q, { variant: u < t.length - 1 ? "inset" : "fullWidth" })
|
|
1180
|
-
] }, m)),
|
|
1181
|
-
a.is_manual && !a.parent_guid && !a.has_been_split && /* @__PURE__ */ e(Qe, { transaction: a })
|
|
1182
|
-
] }) })
|
|
1183
|
-
] })
|
|
1184
|
-
] }) });
|
|
1185
|
-
}, ha = D(Dt);
|
|
1186
|
-
export {
|
|
1187
|
-
J as B,
|
|
1188
|
-
je as C,
|
|
1189
|
-
qe as D,
|
|
1190
|
-
rt as M,
|
|
1191
|
-
ha as T,
|
|
1192
|
-
Ct as a,
|
|
1193
|
-
W as b
|
|
1194
|
-
};
|