@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,44 +1,43 @@
|
|
|
1
|
-
import { jsx as e, jsxs as C, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as C, Fragment as R } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as A } from "mobx-react-lite";
|
|
4
4
|
import e1 from "@mui/material/Stack";
|
|
5
|
-
import { Text as g, Icon as
|
|
5
|
+
import { Text as g, Icon as N, THEMES as i1 } from "@mxenabled/mxui";
|
|
6
6
|
import { S as h1 } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
7
7
|
import c1 from "@mui/material/Box";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import W from "@mui/material/Divider";
|
|
9
|
+
import O from "@mui/material/List";
|
|
10
10
|
import B from "@mui/material/ListSubheader";
|
|
11
|
-
import
|
|
12
|
-
import { useTheme as
|
|
13
|
-
import { u as
|
|
14
|
-
import { L as
|
|
15
|
-
import { g as
|
|
16
|
-
import {
|
|
17
|
-
import { A as
|
|
18
|
-
import { I as _1, P as L1, S as f1 } from "../Account-
|
|
19
|
-
import { a as D1, b as k1 } from "../AccountFields-
|
|
20
|
-
import { g as
|
|
21
|
-
import { A as U } from "../AccountListItem-
|
|
11
|
+
import P from "@mui/system/Stack";
|
|
12
|
+
import { useTheme as V1, alpha as M1 } from "@mui/material/styles";
|
|
13
|
+
import { u as w, A as y1 } from "../AccountDetailsHeader-D9gbTbUt.mjs";
|
|
14
|
+
import { L as x1 } from "../LineChart-EAr5ox5U.mjs";
|
|
15
|
+
import { g as w1, a as R1, b as S1 } from "../SpendingData-Bz1bCWAs.mjs";
|
|
16
|
+
import { l as T1, u as M, d as E, g as D, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
|
|
17
|
+
import { A as I, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
|
|
18
|
+
import { I as _1, P as L1, S as f1 } from "../Account-DuOz1a27.mjs";
|
|
19
|
+
import { a as D1, b as k1 } from "../AccountFields-CxqONzjY.mjs";
|
|
20
|
+
import { g as i4 } from "../AccountFields-CxqONzjY.mjs";
|
|
21
|
+
import { A as U } from "../AccountListItem-D9WJDbZ1.mjs";
|
|
22
22
|
import a1 from "@mui/material/Tab";
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
23
|
+
import I1 from "@mui/material/Tabs";
|
|
24
|
+
import Z1 from "@mui/material/Switch";
|
|
25
|
+
import T from "@mui/material/ListItem";
|
|
26
26
|
import $ from "@mui/material/ListItemButton";
|
|
27
|
-
import
|
|
28
|
-
import {
|
|
29
|
-
import { D as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
27
|
+
import Z from "@mui/material/ListItemText";
|
|
28
|
+
import { A as x } from "../Analytics-BYItVAe-.mjs";
|
|
29
|
+
import { D as Q } from "../Dialog-Ck34yr-d.mjs";
|
|
30
|
+
import { b as f } from "../Localization-CPkpIwIx.mjs";
|
|
31
|
+
import { D as t1 } from "../Drawer-Bbe4AMB1.mjs";
|
|
32
32
|
import Y from "@mui/material/ListItemAvatar";
|
|
33
33
|
import N1 from "@mui/material/styles/useTheme";
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { M as c2 } from "../GlobalAccountFilter-CIF-aT3F.mjs";
|
|
34
|
+
import { Error as g1, CheckCircle as O1, Language as F1 } from "@mxenabled/mx-icons";
|
|
35
|
+
import { C as z } from "../ConnectDrawer-C0wjwcJt.mjs";
|
|
37
36
|
import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
|
|
38
37
|
import { isToday as W1 } from "date-fns/isToday";
|
|
39
38
|
import { isYesterday as B1 } from "date-fns/isYesterday";
|
|
40
|
-
import { f as s1, D as l1 } from "../DateFormats-
|
|
41
|
-
import { I as
|
|
39
|
+
import { f as s1, D as l1 } from "../DateFormats-BMpMrZpW.mjs";
|
|
40
|
+
import { I as j } from "../IconBacking-B9oC6uL2.mjs";
|
|
42
41
|
import { addMonths as U1 } from "date-fns/addMonths";
|
|
43
42
|
import { AdapterDateFns as $1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
44
43
|
import { DateCalendar as G1 } from "@mui/x-date-pickers/DateCalendar";
|
|
@@ -48,45 +47,47 @@ import { LocalizationProvider as Y1 } from "@mui/x-date-pickers-pro";
|
|
|
48
47
|
import j1 from "@mui/material/MenuItem";
|
|
49
48
|
import X1 from "@mui/material/Select";
|
|
50
49
|
import J1 from "@mui/material/TextField";
|
|
51
|
-
import {
|
|
50
|
+
import { F as X } from "../Accounts-CseLC3lL.mjs";
|
|
51
|
+
import { M as a4 } from "../Accounts-CseLC3lL.mjs";
|
|
52
|
+
import { C as q1 } from "../CurrencyInput-DuMktPu3.mjs";
|
|
52
53
|
import Q1 from "@mui/material/Alert";
|
|
53
54
|
import e3 from "@mui/material/AlertTitle";
|
|
54
55
|
import t3 from "@mui/material/Link";
|
|
55
56
|
import n3 from "@mui/material/Paper";
|
|
56
|
-
import {
|
|
57
|
-
import { T as a3 } from "../
|
|
58
|
-
import { T as s3 } from "../TransactionDetails-
|
|
59
|
-
import { T as r1 } from "../TabContentContainer-
|
|
60
|
-
import { f as d1 } from "../NumberFormatting-
|
|
61
|
-
import { C as l3 } from "../ConnectionsDrawer-
|
|
62
|
-
import { L as n1 } from "../Loader-icSc5MlE.mjs";
|
|
57
|
+
import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
|
|
58
|
+
import { T as a3 } from "../StatusIndicator-4tWnjeKS.mjs";
|
|
59
|
+
import { T as s3 } from "../TransactionDetails-D1I1XEsT.mjs";
|
|
60
|
+
import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
|
|
61
|
+
import { f as d1 } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
62
|
+
import { C as l3 } from "../ConnectionsDrawer-IA7vnv1J.mjs";
|
|
63
63
|
import { u as H1 } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
64
|
-
import { u as
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import { A as
|
|
64
|
+
import { u as n1 } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
65
|
+
import { L as o1 } from "../Loader-D3rjKx72.mjs";
|
|
66
|
+
import { W as r3 } from "../WidgetContainer-B7xDq2bM.mjs";
|
|
67
|
+
import { M as v1 } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
|
|
68
|
+
import { A as l4 } from "../AccountApi-ChQr5PAZ.mjs";
|
|
69
|
+
import { A as d4 } from "../AccountStore-DpYvNnql.mjs";
|
|
69
70
|
const d3 = (t, o) => {
|
|
70
|
-
const n = _1.includes(o) ?
|
|
71
|
+
const n = _1.includes(o) ? w1(t) : [], i = L1.includes(o) ? R1(t) : [], c = f1.includes(o) ? S1(t) : [];
|
|
71
72
|
return [n, i, c].filter((l) => l.length > 0);
|
|
72
73
|
}, u3 = (t, o, n) => {
|
|
73
74
|
const [i, c] = t, l = i, u = c ?? i, a = [];
|
|
74
75
|
if (l && u && _1.includes(o)) {
|
|
75
|
-
const
|
|
76
|
-
a.push({ label: n.income_label, amount:
|
|
76
|
+
const r = l[l.length - 1].y;
|
|
77
|
+
a.push({ label: n.income_label, amount: r });
|
|
77
78
|
} else if (L1.includes(o)) {
|
|
78
|
-
const
|
|
79
|
-
a.push({ label: n.payments_label, amount:
|
|
79
|
+
const r = l[l.length - 1].y;
|
|
80
|
+
a.push({ label: n.payments_label, amount: r });
|
|
80
81
|
}
|
|
81
82
|
if (u && f1.includes(o)) {
|
|
82
|
-
const
|
|
83
|
-
a.push({ label: n.spending_label, amount:
|
|
83
|
+
const r = u[u.length - 1].y;
|
|
84
|
+
a.push({ label: n.spending_label, amount: r });
|
|
84
85
|
}
|
|
85
86
|
return a;
|
|
86
87
|
}, C3 = () => {
|
|
87
|
-
const t =
|
|
88
|
+
const t = V1(), { selectedAccount: o } = w(), { monthlyCategoryTotals: n } = T1(), { trends: i } = M(), c = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = d3(n, o.account_type), u = u3(l, o.account_type, i), a = [I.LOAN, I.MORTGAGE].includes(o.account_type);
|
|
88
89
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
89
|
-
|
|
90
|
+
x1,
|
|
90
91
|
{
|
|
91
92
|
colors: c,
|
|
92
93
|
datasets: l,
|
|
@@ -104,58 +105,95 @@ const d3 = (t, o) => {
|
|
|
104
105
|
valueFormatterString: "0,0"
|
|
105
106
|
}
|
|
106
107
|
) });
|
|
107
|
-
}, h3 =
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
108
|
+
}, h3 = A(C3), J = ({
|
|
109
|
+
ariaPressed: t,
|
|
110
|
+
children: o,
|
|
111
|
+
isLast: n = !1,
|
|
112
|
+
onClick: i,
|
|
113
|
+
primaryText: c,
|
|
114
|
+
secondaryText: l
|
|
115
|
+
}) => /* @__PURE__ */ e(
|
|
116
|
+
T,
|
|
117
|
+
{
|
|
118
|
+
sx: {
|
|
119
|
+
backgroundColor: "background.paper",
|
|
120
|
+
position: "relative",
|
|
121
|
+
"&::after": {
|
|
122
|
+
content: '""',
|
|
123
|
+
position: "absolute",
|
|
124
|
+
bottom: 0,
|
|
125
|
+
right: 0,
|
|
126
|
+
left: n ? 0 : 24,
|
|
127
|
+
borderBottom: "1px solid",
|
|
128
|
+
borderColor: "divider"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
children: /* @__PURE__ */ C($, { "aria-pressed": t, onClick: i, children: [
|
|
132
|
+
/* @__PURE__ */ e(Z, { primary: c, secondary: l }),
|
|
133
|
+
o
|
|
134
|
+
] })
|
|
135
|
+
}
|
|
136
|
+
), m3 = () => {
|
|
137
|
+
const { accounts: t } = E(), { selectedAccount: o, selectedMember: n } = w();
|
|
121
138
|
return t.filter(
|
|
122
139
|
(i) => i.member_guid === n.guid && n.successfully_aggregated_at && i.guid !== o.guid
|
|
123
140
|
);
|
|
124
141
|
}, p3 = () => {
|
|
125
|
-
const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount:
|
|
142
|
+
const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } = w(), { mergeAccounts: p, updateAccount: _ } = E(), { accounts: s } = M(), H = m3(), { onEvent: b } = D(), { modifyTransactionByAccountGuid: V } = m1(), y = async (m) => {
|
|
126
143
|
await _({
|
|
127
|
-
...
|
|
128
|
-
...
|
|
129
|
-
}), "is_closed" in
|
|
130
|
-
},
|
|
131
|
-
|
|
144
|
+
...r,
|
|
145
|
+
...m
|
|
146
|
+
}), "is_closed" in m && m.is_closed !== r.is_closed && V(r.guid, { accountIsClosed: m.is_closed });
|
|
147
|
+
}, d = () => {
|
|
148
|
+
p([r.guid, u.guid]).finally(
|
|
132
149
|
() => i(!1)
|
|
133
150
|
);
|
|
134
151
|
};
|
|
135
|
-
return /* @__PURE__ */ C(
|
|
136
|
-
/* @__PURE__ */ e(B, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "
|
|
152
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
153
|
+
/* @__PURE__ */ e(B, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: s.actions }) }),
|
|
137
154
|
/* @__PURE__ */ e(
|
|
138
155
|
J,
|
|
139
156
|
{
|
|
157
|
+
ariaPressed: r.is_hidden,
|
|
140
158
|
onClick: () => {
|
|
141
|
-
|
|
159
|
+
y({ is_hidden: !r.is_hidden }), b(x.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
|
|
142
160
|
},
|
|
143
|
-
primaryText:
|
|
144
|
-
secondaryText:
|
|
145
|
-
children: /* @__PURE__ */ e(
|
|
161
|
+
primaryText: r.is_hidden ? s.unhide_account : s.hide_Account,
|
|
162
|
+
secondaryText: r.is_hidden ? s.include_this_account : s.exclude_this_account,
|
|
163
|
+
children: /* @__PURE__ */ e(Z1, { "aria-hidden": !0, checked: r.is_hidden, tabIndex: -1 })
|
|
146
164
|
}
|
|
147
165
|
),
|
|
148
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ C(
|
|
149
167
|
J,
|
|
150
168
|
{
|
|
151
169
|
onClick: () => {
|
|
152
|
-
o(!0),
|
|
153
|
-
account_guid:
|
|
170
|
+
o(!0), b(x.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
171
|
+
account_guid: r.guid
|
|
154
172
|
});
|
|
155
173
|
},
|
|
156
|
-
primaryText:
|
|
157
|
-
secondaryText:
|
|
158
|
-
children:
|
|
174
|
+
primaryText: r.is_closed ? s.mark_as_open : s.mark_as_closed,
|
|
175
|
+
secondaryText: r.is_closed ? s.this_will_set_the_closed_account : s.this_will_set_the_account_balance_to_0,
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ e(N, { name: "chevron_right" }),
|
|
178
|
+
/* @__PURE__ */ e("div", { onClick: (m) => m.stopPropagation(), children: /* @__PURE__ */ e(
|
|
179
|
+
Q,
|
|
180
|
+
{
|
|
181
|
+
copy: {
|
|
182
|
+
close_aria: s.close_modal,
|
|
183
|
+
title: r.is_closed ? s.confirm_mark_as_open : s.confirm_mark_closed
|
|
184
|
+
},
|
|
185
|
+
isOpen: t,
|
|
186
|
+
onClose: () => {
|
|
187
|
+
o(!1);
|
|
188
|
+
},
|
|
189
|
+
onPrimaryAction: () => y({ is_closed: !r.is_closed }),
|
|
190
|
+
children: /* @__PURE__ */ e(g, { truncate: !1, children: f(
|
|
191
|
+
r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
|
|
192
|
+
r.name
|
|
193
|
+
) })
|
|
194
|
+
}
|
|
195
|
+
) })
|
|
196
|
+
]
|
|
159
197
|
}
|
|
160
198
|
),
|
|
161
199
|
H.length > 0 && /* @__PURE__ */ e(
|
|
@@ -163,79 +201,75 @@ const d3 = (t, o) => {
|
|
|
163
201
|
{
|
|
164
202
|
isLast: !0,
|
|
165
203
|
onClick: () => {
|
|
166
|
-
i(!0),
|
|
167
|
-
account_guid:
|
|
204
|
+
i(!0), b(x.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
|
205
|
+
account_guid: r.guid
|
|
168
206
|
});
|
|
169
207
|
},
|
|
170
208
|
primaryText: s.mark_as_duplicate,
|
|
171
209
|
secondaryText: s.if_a_connected_account_is_showing_up_twice,
|
|
172
|
-
children: /* @__PURE__ */ e(
|
|
173
|
-
}
|
|
174
|
-
),
|
|
175
|
-
/* @__PURE__ */ e(
|
|
176
|
-
Q,
|
|
177
|
-
{
|
|
178
|
-
copy: {
|
|
179
|
-
close_aria: s.close_modal,
|
|
180
|
-
title: d.is_closed ? s.confirm_mark_as_open : s.confirm_mark_closed
|
|
181
|
-
},
|
|
182
|
-
isOpen: t,
|
|
183
|
-
onClose: () => {
|
|
184
|
-
o(!1);
|
|
185
|
-
},
|
|
186
|
-
onPrimaryAction: () => w({ is_closed: !d.is_closed }),
|
|
187
|
-
children: /* @__PURE__ */ e(g, { truncate: !1, children: f(
|
|
188
|
-
d.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
|
|
189
|
-
d.name
|
|
190
|
-
) })
|
|
210
|
+
children: /* @__PURE__ */ e(N, { name: "chevron_right" })
|
|
191
211
|
}
|
|
192
212
|
),
|
|
193
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ C(
|
|
194
214
|
t1,
|
|
195
215
|
{
|
|
196
216
|
ariaLabelClose: s.close_drawer,
|
|
197
217
|
isOpen: n,
|
|
198
218
|
onClose: () => i(!1),
|
|
199
219
|
title: s.mark_as_duplicate,
|
|
200
|
-
children:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
/* @__PURE__ */ e(
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ e(O, { children: H.map((m) => {
|
|
222
|
+
const k = H.indexOf(m) === H.length - 1;
|
|
223
|
+
return /* @__PURE__ */ e(
|
|
204
224
|
U,
|
|
205
225
|
{
|
|
206
|
-
account:
|
|
226
|
+
account: m,
|
|
227
|
+
listItemProps: {
|
|
228
|
+
sx: {
|
|
229
|
+
position: "relative",
|
|
230
|
+
"&::after": {
|
|
231
|
+
content: '""',
|
|
232
|
+
position: "absolute",
|
|
233
|
+
bottom: 0,
|
|
234
|
+
right: 0,
|
|
235
|
+
left: k ? 0 : 24,
|
|
236
|
+
borderBottom: "1px solid",
|
|
237
|
+
borderColor: "divider"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
207
241
|
onRowClick: () => {
|
|
208
|
-
l(!0), a(
|
|
242
|
+
l(!0), a(m);
|
|
209
243
|
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
244
|
+
},
|
|
245
|
+
m.guid
|
|
246
|
+
);
|
|
247
|
+
}) }),
|
|
248
|
+
c && /* @__PURE__ */ C(
|
|
249
|
+
Q,
|
|
250
|
+
{
|
|
251
|
+
copy: {
|
|
252
|
+
close_aria: s.close_modal,
|
|
253
|
+
title: s.confirm_merge
|
|
254
|
+
},
|
|
255
|
+
isOpen: c,
|
|
256
|
+
onClose: () => l(!1),
|
|
257
|
+
onPrimaryAction: d,
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ e(g, { truncate: !1, children: f(
|
|
260
|
+
s.this_means_accounts_will_be_merged,
|
|
261
|
+
r.name,
|
|
262
|
+
u.name
|
|
263
|
+
) }),
|
|
264
|
+
/* @__PURE__ */ e(g, { color: "error", sx: { mt: 24 }, children: s.this_action_cannot_be_undone })
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
)
|
|
234
268
|
]
|
|
235
269
|
}
|
|
236
270
|
)
|
|
237
271
|
] });
|
|
238
|
-
}, _3 =
|
|
272
|
+
}, _3 = A(p3), A1 = (t, o) => {
|
|
239
273
|
const { connection_messages: n } = o;
|
|
240
274
|
switch (t.connection_status) {
|
|
241
275
|
case L.CHALLENGED:
|
|
@@ -396,7 +430,7 @@ const d3 = (t, o) => {
|
|
|
396
430
|
}, L3 = () => {
|
|
397
431
|
const [t, o] = h.useState(!1), {
|
|
398
432
|
palette: { mode: n }
|
|
399
|
-
} = N1(), { selectedMember: i } =
|
|
433
|
+
} = N1(), { selectedMember: i } = w(), { accounts: c, connect: l } = M(), u = A1(i, l), a = p1.includes(i.connection_status) ? {
|
|
400
434
|
color: "error.main",
|
|
401
435
|
ctaCopy: u.cta ?? "",
|
|
402
436
|
icon: /* @__PURE__ */ e(g1, { filled: !0, sx: { ...q } }),
|
|
@@ -404,57 +438,81 @@ const d3 = (t, o) => {
|
|
|
404
438
|
secondaryMessage: `${u.title}.`
|
|
405
439
|
} : {
|
|
406
440
|
color: "success.main",
|
|
407
|
-
icon: /* @__PURE__ */ e(
|
|
441
|
+
icon: /* @__PURE__ */ e(O1, { filled: !0, sx: { ...q } }),
|
|
408
442
|
mainMessage: u.statusName,
|
|
409
443
|
secondaryMessage: u.title
|
|
410
444
|
};
|
|
411
|
-
return /* @__PURE__ */ C(
|
|
412
|
-
/* @__PURE__ */ e(B, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "
|
|
413
|
-
/* @__PURE__ */ e(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
}
|
|
428
|
-
),
|
|
429
|
-
/* @__PURE__ */ e(F, { name: "chevron_right" })
|
|
430
|
-
] }) }),
|
|
431
|
-
/* @__PURE__ */ e(b, { sx: { ml: i.is_manual || !i.institution_url ? 0 : 24 } }),
|
|
432
|
-
!i.is_manual && i.institution_url && /* @__PURE__ */ C(x, { children: [
|
|
433
|
-
/* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ C($, { component: "a", href: i.institution_url, target: "_blank", children: [
|
|
434
|
-
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
|
|
435
|
-
X,
|
|
436
|
-
{
|
|
437
|
-
backingSx: {
|
|
438
|
-
backgroundColor: n === i1.LIGHT ? "grey.300" : "grey.700",
|
|
439
|
-
borderRadius: 1
|
|
440
|
-
},
|
|
441
|
-
size: 32,
|
|
442
|
-
children: /* @__PURE__ */ e(
|
|
443
|
-
O1,
|
|
444
|
-
{
|
|
445
|
-
sx: {
|
|
446
|
-
...q,
|
|
447
|
-
color: n === i1.LIGHT ? "grey.900" : "common.white"
|
|
448
|
-
}
|
|
449
|
-
}
|
|
450
|
-
)
|
|
445
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
446
|
+
/* @__PURE__ */ e(B, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: c.connection_status }) }),
|
|
447
|
+
/* @__PURE__ */ e(
|
|
448
|
+
T,
|
|
449
|
+
{
|
|
450
|
+
sx: {
|
|
451
|
+
backgroundColor: "background.paper",
|
|
452
|
+
position: "relative",
|
|
453
|
+
"&::after": {
|
|
454
|
+
content: '""',
|
|
455
|
+
position: "absolute",
|
|
456
|
+
bottom: 0,
|
|
457
|
+
right: 0,
|
|
458
|
+
left: i.is_manual || !i.institution_url ? 0 : 24,
|
|
459
|
+
borderBottom: "1px solid",
|
|
460
|
+
borderColor: "divider"
|
|
451
461
|
}
|
|
452
|
-
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
462
|
+
},
|
|
463
|
+
children: i.is_manual || !a.ctaCopy ? /* @__PURE__ */ C(e1, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
464
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
|
|
465
|
+
/* @__PURE__ */ e(Z, { primary: a.mainMessage, secondary: a.secondaryMessage })
|
|
466
|
+
] }) : /* @__PURE__ */ C($, { onClick: () => o(!0), children: [
|
|
467
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
|
|
468
|
+
/* @__PURE__ */ e(
|
|
469
|
+
Z,
|
|
470
|
+
{
|
|
471
|
+
primary: a.mainMessage,
|
|
472
|
+
secondary: a.secondaryMessage && /* @__PURE__ */ C(R, { children: [
|
|
473
|
+
a.secondaryMessage,
|
|
474
|
+
" ",
|
|
475
|
+
/* @__PURE__ */ e(g, { bold: !0, sx: { color: "action.active" }, variant: "caption", children: a.ctaCopy })
|
|
476
|
+
] })
|
|
477
|
+
}
|
|
478
|
+
),
|
|
479
|
+
/* @__PURE__ */ e(N, { name: "chevron_right" })
|
|
480
|
+
] })
|
|
481
|
+
}
|
|
482
|
+
),
|
|
483
|
+
!i.is_manual && i.institution_url && /* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(
|
|
484
|
+
T,
|
|
485
|
+
{
|
|
486
|
+
sx: {
|
|
487
|
+
backgroundColor: "background.paper",
|
|
488
|
+
borderBottom: "1px solid",
|
|
489
|
+
borderColor: "divider"
|
|
490
|
+
},
|
|
491
|
+
children: /* @__PURE__ */ C($, { component: "a", href: i.institution_url, target: "_blank", children: [
|
|
492
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
|
|
493
|
+
j,
|
|
494
|
+
{
|
|
495
|
+
backingSx: {
|
|
496
|
+
backgroundColor: n === i1.LIGHT ? "grey.300" : "grey.700",
|
|
497
|
+
borderRadius: 1
|
|
498
|
+
},
|
|
499
|
+
size: 32,
|
|
500
|
+
children: /* @__PURE__ */ e(
|
|
501
|
+
F1,
|
|
502
|
+
{
|
|
503
|
+
sx: {
|
|
504
|
+
...q,
|
|
505
|
+
color: n === i1.LIGHT ? "grey.900" : "common.white"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
)
|
|
509
|
+
}
|
|
510
|
+
) }),
|
|
511
|
+
/* @__PURE__ */ e(Z, { primary: i.name, secondary: i.institution_url }),
|
|
512
|
+
/* @__PURE__ */ e(N, { name: "launch" })
|
|
513
|
+
] })
|
|
514
|
+
}
|
|
515
|
+
) }),
|
|
458
516
|
t && /* @__PURE__ */ e(
|
|
459
517
|
z,
|
|
460
518
|
{
|
|
@@ -465,12 +523,12 @@ const d3 = (t, o) => {
|
|
|
465
523
|
}
|
|
466
524
|
)
|
|
467
525
|
] });
|
|
468
|
-
}, f3 =
|
|
469
|
-
const { updateAccount: i } =
|
|
470
|
-
a(""),
|
|
471
|
-
},
|
|
526
|
+
}, f3 = A(L3), g3 = ({ field: t, isOpen: o, onClose: n }) => {
|
|
527
|
+
const { updateAccount: i } = E(), { selectedAccount: c } = w(), { accounts: l } = M(), [u, a] = h.useState(c[t.name]), [r, p] = h.useState(""), [_, s] = h.useState(!0), H = () => {
|
|
528
|
+
a(""), p(""), n();
|
|
529
|
+
}, b = () => {
|
|
472
530
|
switch (t.type) {
|
|
473
|
-
case
|
|
531
|
+
case X.Select:
|
|
474
532
|
return /* @__PURE__ */ C(z1, { fullWidth: !0, children: [
|
|
475
533
|
/* @__PURE__ */ e(K1, { id: `${t.label}-select-label`, children: t.label }),
|
|
476
534
|
/* @__PURE__ */ e(
|
|
@@ -484,14 +542,14 @@ const d3 = (t, o) => {
|
|
|
484
542
|
},
|
|
485
543
|
label: t.label,
|
|
486
544
|
labelId: `${t.label}-select-label`,
|
|
487
|
-
onChange: (
|
|
545
|
+
onChange: (d) => a(d.target.value),
|
|
488
546
|
placeholder: t.placeholder,
|
|
489
547
|
value: u,
|
|
490
|
-
children: t.options?.map((
|
|
548
|
+
children: t.options?.map((d) => /* @__PURE__ */ e(j1, { value: d.value, children: d.label }, d.value))
|
|
491
549
|
}
|
|
492
550
|
)
|
|
493
551
|
] });
|
|
494
|
-
case
|
|
552
|
+
case X.Currency:
|
|
495
553
|
return /* @__PURE__ */ e(
|
|
496
554
|
q1,
|
|
497
555
|
{
|
|
@@ -504,14 +562,14 @@ const d3 = (t, o) => {
|
|
|
504
562
|
setHasValidInput: s
|
|
505
563
|
}
|
|
506
564
|
);
|
|
507
|
-
case
|
|
565
|
+
case X.Date:
|
|
508
566
|
return /* @__PURE__ */ e(Y1, { dateAdapter: $1, children: /* @__PURE__ */ e(
|
|
509
567
|
G1,
|
|
510
568
|
{
|
|
511
569
|
maxDate: U1(/* @__PURE__ */ new Date(), 1),
|
|
512
570
|
minDate: /* @__PURE__ */ new Date(),
|
|
513
|
-
onChange: (
|
|
514
|
-
c[t.name] && Number(c[t.name]) <= 31 ? a(
|
|
571
|
+
onChange: (d) => {
|
|
572
|
+
c[t.name] && Number(c[t.name]) <= 31 ? a(d.getDate()) : a(d);
|
|
515
573
|
},
|
|
516
574
|
sx: {
|
|
517
575
|
"& .MuiPickersDay-today": {
|
|
@@ -520,7 +578,7 @@ const d3 = (t, o) => {
|
|
|
520
578
|
"& .MuiPickersArrowSwitcher-button": {
|
|
521
579
|
color: "primary.lighter",
|
|
522
580
|
"&:hover": {
|
|
523
|
-
backgroundColor: (
|
|
581
|
+
backgroundColor: (d) => M1(d.palette.primary.light, 0.1)
|
|
524
582
|
}
|
|
525
583
|
}
|
|
526
584
|
},
|
|
@@ -532,24 +590,24 @@ const d3 = (t, o) => {
|
|
|
532
590
|
J1,
|
|
533
591
|
{
|
|
534
592
|
defaultValue: c[t.name],
|
|
535
|
-
error: !!
|
|
593
|
+
error: !!r,
|
|
536
594
|
fullWidth: !0,
|
|
537
|
-
helperText:
|
|
595
|
+
helperText: r,
|
|
538
596
|
inputProps: {
|
|
539
597
|
"aria-label": t.placeholder
|
|
540
598
|
},
|
|
541
|
-
onChange:
|
|
599
|
+
onChange: y,
|
|
542
600
|
placeholder: t.placeholder
|
|
543
601
|
}
|
|
544
602
|
);
|
|
545
603
|
}
|
|
546
|
-
},
|
|
604
|
+
}, V = () => {
|
|
547
605
|
c[t.name] !== u && i({
|
|
548
606
|
...c,
|
|
549
607
|
[t.name]: u
|
|
550
608
|
}), H();
|
|
551
|
-
},
|
|
552
|
-
a(
|
|
609
|
+
}, y = (d) => {
|
|
610
|
+
a(d.target.value), t.validation && p(t.validation(d.target.value));
|
|
553
611
|
};
|
|
554
612
|
return /* @__PURE__ */ e(
|
|
555
613
|
Q,
|
|
@@ -558,10 +616,10 @@ const d3 = (t, o) => {
|
|
|
558
616
|
close_aria: l.close_aria,
|
|
559
617
|
title: f(l.edit_field, t.label)
|
|
560
618
|
},
|
|
561
|
-
disablePrimaryButton: !!
|
|
619
|
+
disablePrimaryButton: !!r || !_,
|
|
562
620
|
isOpen: o,
|
|
563
621
|
onClose: H,
|
|
564
|
-
onPrimaryAction:
|
|
622
|
+
onPrimaryAction: V,
|
|
565
623
|
primaryText: l.save,
|
|
566
624
|
sx: {
|
|
567
625
|
"& .MuiButton-root:focus-visible, & .MuiButton-root:focus": {
|
|
@@ -570,65 +628,97 @@ const d3 = (t, o) => {
|
|
|
570
628
|
outlineOffset: "2px"
|
|
571
629
|
}
|
|
572
630
|
},
|
|
573
|
-
children:
|
|
631
|
+
children: b()
|
|
574
632
|
}
|
|
575
633
|
);
|
|
576
|
-
}, H3 =
|
|
577
|
-
const t = window.app?.config, { onEvent: o } =
|
|
634
|
+
}, H3 = A(g3), v3 = () => {
|
|
635
|
+
const t = window.app?.config, { onEvent: o } = D(), { selectedAccount: n } = w(), { accounts: i } = M(), c = D1(n, i), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [u, a] = h.useState(!1), [r, p] = h.useState(c[0]), _ = c.filter(
|
|
578
636
|
(s) => l || n[s.name] || n[s.name] === 0
|
|
579
637
|
);
|
|
580
|
-
return /* @__PURE__ */ C(
|
|
638
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
581
639
|
_.map((s) => {
|
|
582
|
-
const H = n[s.name] || n[s.name] === 0,
|
|
583
|
-
|
|
640
|
+
const H = n[s.name] || n[s.name] === 0, b = _.indexOf(s) === _.length - 1, V = /* @__PURE__ */ e(
|
|
641
|
+
Z,
|
|
584
642
|
{
|
|
585
643
|
disableTypography: !0,
|
|
586
644
|
primary: /* @__PURE__ */ e(g, { sx: { fontSize: 11 }, children: s.label }),
|
|
587
645
|
secondary: /* @__PURE__ */ e(g, { bold: !0, sx: { fontSize: 15 }, children: H ? s.valueFormatter(n[s.name]) : s.placeholder })
|
|
588
646
|
}
|
|
589
647
|
);
|
|
590
|
-
return /* @__PURE__ */ e(h.Fragment, { children: l ? /* @__PURE__ */
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
{
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
648
|
+
return /* @__PURE__ */ e(h.Fragment, { children: l ? /* @__PURE__ */ e(
|
|
649
|
+
T,
|
|
650
|
+
{
|
|
651
|
+
sx: {
|
|
652
|
+
backgroundColor: "background.paper",
|
|
653
|
+
px: 0,
|
|
654
|
+
position: "relative",
|
|
655
|
+
"&::after": {
|
|
656
|
+
content: '""',
|
|
657
|
+
position: "absolute",
|
|
658
|
+
bottom: 0,
|
|
659
|
+
right: 0,
|
|
660
|
+
left: b ? 0 : 24,
|
|
661
|
+
borderBottom: "1px solid",
|
|
662
|
+
borderColor: "divider"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
children: /* @__PURE__ */ C(
|
|
666
|
+
$,
|
|
667
|
+
{
|
|
668
|
+
onClick: () => {
|
|
669
|
+
p(s), a(!0), s?.event && o(s.event, { account_guid: n.guid });
|
|
670
|
+
},
|
|
671
|
+
children: [
|
|
672
|
+
V,
|
|
673
|
+
/* @__PURE__ */ e(N, { name: "chevron_right" })
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
)
|
|
677
|
+
}
|
|
678
|
+
) : H && /* @__PURE__ */ e(
|
|
679
|
+
T,
|
|
680
|
+
{
|
|
681
|
+
sx: {
|
|
682
|
+
backgroundColor: "background.paper",
|
|
683
|
+
px: 24,
|
|
684
|
+
position: "relative",
|
|
685
|
+
"&::after": {
|
|
686
|
+
content: '""',
|
|
687
|
+
position: "absolute",
|
|
688
|
+
bottom: 0,
|
|
689
|
+
right: 0,
|
|
690
|
+
left: b ? 0 : 24,
|
|
691
|
+
borderBottom: "1px solid",
|
|
692
|
+
borderColor: "divider"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
children: V
|
|
696
|
+
}
|
|
697
|
+
) }, s.name);
|
|
608
698
|
}),
|
|
609
|
-
u &&
|
|
699
|
+
u && r && /* @__PURE__ */ e(
|
|
610
700
|
H3,
|
|
611
701
|
{
|
|
612
|
-
field:
|
|
702
|
+
field: r,
|
|
613
703
|
isOpen: u,
|
|
614
704
|
onClose: () => a(!1)
|
|
615
705
|
}
|
|
616
706
|
)
|
|
617
707
|
] });
|
|
618
|
-
},
|
|
619
|
-
const { onEvent: t } =
|
|
620
|
-
return h.useEffect(() => t(
|
|
621
|
-
/* @__PURE__ */ e(
|
|
708
|
+
}, A3 = A(v3), b3 = () => {
|
|
709
|
+
const { onEvent: t } = D();
|
|
710
|
+
return h.useEffect(() => t(x.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(O, { children: [
|
|
711
|
+
/* @__PURE__ */ e(A3, {}),
|
|
622
712
|
/* @__PURE__ */ e(f3, {}),
|
|
623
713
|
/* @__PURE__ */ e(_3, {})
|
|
624
714
|
] });
|
|
625
|
-
},
|
|
626
|
-
const [o, n] = h.useState(!1), { selectedMember: i } =
|
|
715
|
+
}, V3 = A(b3), M3 = ({ setTabValue: t }) => {
|
|
716
|
+
const [o, n] = h.useState(!1), { selectedMember: i } = w(), { accounts: c, connect: l } = M(), u = i.connection_status && p1.includes(i.connection_status);
|
|
627
717
|
if (h.useEffect(() => {
|
|
628
718
|
u && t(1);
|
|
629
719
|
}, [u]), !u) return;
|
|
630
|
-
const a =
|
|
631
|
-
return /* @__PURE__ */ C(
|
|
720
|
+
const a = A1(i, l);
|
|
721
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
632
722
|
/* @__PURE__ */ e(
|
|
633
723
|
n3,
|
|
634
724
|
{
|
|
@@ -641,6 +731,7 @@ const d3 = (t, o) => {
|
|
|
641
731
|
Q1,
|
|
642
732
|
{
|
|
643
733
|
icon: /* @__PURE__ */ e(g1, { filled: !0 }),
|
|
734
|
+
role: "none",
|
|
644
735
|
severity: "error",
|
|
645
736
|
sx: {
|
|
646
737
|
borderLeft: 5,
|
|
@@ -653,8 +744,8 @@ const d3 = (t, o) => {
|
|
|
653
744
|
}
|
|
654
745
|
},
|
|
655
746
|
children: [
|
|
656
|
-
a.title && /* @__PURE__ */ e(e3, { sx: { fontWeight: 600, marginTop: 2 }, variant: "
|
|
657
|
-
/* @__PURE__ */ e(g, { component: "p", sx: { whiteSpace: "wrap" }, variant: "
|
|
747
|
+
a.title && /* @__PURE__ */ e(e3, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: a.title }),
|
|
748
|
+
/* @__PURE__ */ e(g, { component: "p", sx: { whiteSpace: "wrap" }, variant: "subtitle2", children: a.main }),
|
|
658
749
|
a.cta && /* @__PURE__ */ e(
|
|
659
750
|
t3,
|
|
660
751
|
{
|
|
@@ -678,39 +769,39 @@ const d3 = (t, o) => {
|
|
|
678
769
|
}
|
|
679
770
|
)
|
|
680
771
|
] });
|
|
681
|
-
},
|
|
682
|
-
const [t, o] = h.useState(""), { onEvent: n } =
|
|
772
|
+
}, y3 = A(M3), x3 = () => {
|
|
773
|
+
const [t, o] = h.useState(""), { onEvent: n } = D(), { selectedAccount: i } = w(), { accounts: c } = M(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: r } = m1();
|
|
683
774
|
h.useEffect(() => {
|
|
684
775
|
l || u().finally();
|
|
685
776
|
}, []);
|
|
686
|
-
const
|
|
687
|
-
() =>
|
|
688
|
-
[t,
|
|
777
|
+
const p = h.useMemo(
|
|
778
|
+
() => r.find((_) => _.guid === t),
|
|
779
|
+
[t, r]
|
|
689
780
|
);
|
|
690
781
|
return h.useEffect(() => {
|
|
691
782
|
a({
|
|
692
|
-
dateRange: { start: i3(
|
|
783
|
+
dateRange: { start: o3(i3(), 90), end: c3() },
|
|
693
784
|
accounts: [i.guid]
|
|
694
785
|
});
|
|
695
|
-
}, [i]), h.useEffect(() => n(
|
|
786
|
+
}, [i]), h.useEffect(() => n(x.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(R, { children: [
|
|
696
787
|
/* @__PURE__ */ e(a3, { onClick: o }),
|
|
697
|
-
|
|
788
|
+
p && /* @__PURE__ */ e(
|
|
698
789
|
t1,
|
|
699
790
|
{
|
|
700
791
|
ariaLabelClose: c.close_drawer,
|
|
701
792
|
isOpen: !!t,
|
|
702
793
|
onClose: () => o(""),
|
|
703
794
|
title: c.transaction_drawer_title,
|
|
704
|
-
children: /* @__PURE__ */ e(s3, { transaction:
|
|
795
|
+
children: /* @__PURE__ */ e(s3, { transaction: p })
|
|
705
796
|
}
|
|
706
797
|
)
|
|
707
798
|
] });
|
|
708
|
-
},
|
|
709
|
-
const [t, o] = h.useState(0), { accounts: n } =
|
|
710
|
-
return /* @__PURE__ */ C(
|
|
711
|
-
/* @__PURE__ */ e(
|
|
799
|
+
}, w3 = A(x3), R3 = () => {
|
|
800
|
+
const [t, o] = h.useState(0), { accounts: n } = M();
|
|
801
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
802
|
+
/* @__PURE__ */ e(y3, { setTabValue: o }),
|
|
712
803
|
/* @__PURE__ */ C(
|
|
713
|
-
|
|
804
|
+
I1,
|
|
714
805
|
{
|
|
715
806
|
"aria-label": n.transactions_and_details_aria,
|
|
716
807
|
centered: !0,
|
|
@@ -738,63 +829,63 @@ const d3 = (t, o) => {
|
|
|
738
829
|
]
|
|
739
830
|
}
|
|
740
831
|
),
|
|
741
|
-
/* @__PURE__ */ e(r1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(
|
|
742
|
-
/* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(
|
|
832
|
+
/* @__PURE__ */ e(r1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(w3, {}) }),
|
|
833
|
+
/* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(V3, {}) })
|
|
743
834
|
] });
|
|
744
|
-
},
|
|
745
|
-
const [t, o] = h.useState(""), { accounts: n } =
|
|
746
|
-
() => i.filter((
|
|
835
|
+
}, S3 = A(R3), T3 = () => {
|
|
836
|
+
const [t, o] = h.useState(""), { accounts: n } = M(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = w(), { members: u } = E(), { onEvent: a } = D(), r = [...new Set(i.map((d) => d.account_type))], p = i.find((d) => t === d.guid), _ = h.useMemo(
|
|
837
|
+
() => i.filter((d) => d.is_hidden),
|
|
747
838
|
[i]
|
|
748
839
|
), s = h.useMemo(
|
|
749
|
-
() => i.filter((
|
|
840
|
+
() => i.filter((d) => d.is_closed),
|
|
750
841
|
[i]
|
|
751
842
|
), H = _.reduce(
|
|
752
|
-
(
|
|
843
|
+
(d, m) => (m.available_balance || m.balance || 0) + d,
|
|
753
844
|
0
|
|
754
|
-
),
|
|
845
|
+
), b = k1(s, n);
|
|
755
846
|
h.useEffect(() => {
|
|
756
|
-
if (
|
|
757
|
-
c(
|
|
758
|
-
const
|
|
759
|
-
|
|
847
|
+
if (p) {
|
|
848
|
+
c(p);
|
|
849
|
+
const d = u.find((m) => m.guid === p?.member_guid) || {};
|
|
850
|
+
d && l(d);
|
|
760
851
|
}
|
|
761
|
-
}, [
|
|
762
|
-
const
|
|
763
|
-
o(
|
|
764
|
-
account_guid:
|
|
765
|
-
account_type:
|
|
852
|
+
}, [p, t]);
|
|
853
|
+
const V = (d) => {
|
|
854
|
+
o(d.guid), a(x.ACCOUNTS_CLICK_ACCOUNT, {
|
|
855
|
+
account_guid: d.guid,
|
|
856
|
+
account_type: d.account_type
|
|
766
857
|
});
|
|
767
|
-
},
|
|
768
|
-
const
|
|
858
|
+
}, y = (d) => {
|
|
859
|
+
const m = d === "hidden" ? _ : s, k = d === "hidden" ? H : b, v = d === "hidden" ? n.account_hidden : n.account_closed;
|
|
769
860
|
return /* @__PURE__ */ e(c1, { children: /* @__PURE__ */ e(
|
|
770
|
-
|
|
861
|
+
O,
|
|
771
862
|
{
|
|
772
|
-
"aria-label":
|
|
863
|
+
"aria-label": v,
|
|
773
864
|
subheader: /* @__PURE__ */ e(B, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
|
|
774
|
-
|
|
865
|
+
P,
|
|
775
866
|
{
|
|
776
867
|
component: "span",
|
|
777
868
|
direction: "row",
|
|
778
869
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
779
870
|
children: [
|
|
780
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "
|
|
781
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "
|
|
871
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: v }),
|
|
872
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(k, "0,0.00") })
|
|
782
873
|
]
|
|
783
874
|
}
|
|
784
875
|
) }),
|
|
785
|
-
children: /* @__PURE__ */ e(
|
|
786
|
-
const K =
|
|
876
|
+
children: /* @__PURE__ */ e(P, { children: m.map((S, F, b1) => {
|
|
877
|
+
const K = F === b1.length - 1;
|
|
787
878
|
return /* @__PURE__ */ C(h.Fragment, { children: [
|
|
788
879
|
/* @__PURE__ */ e(
|
|
789
880
|
U,
|
|
790
881
|
{
|
|
791
|
-
account:
|
|
792
|
-
onRowClick: () =>
|
|
882
|
+
account: S,
|
|
883
|
+
onRowClick: () => V(S),
|
|
793
884
|
shouldShowConnectionStatus: !0
|
|
794
885
|
}
|
|
795
886
|
),
|
|
796
|
-
|
|
797
|
-
|
|
887
|
+
d === "hidden" ? /* @__PURE__ */ e(
|
|
888
|
+
W,
|
|
798
889
|
{
|
|
799
890
|
sx: {
|
|
800
891
|
mb: K ? 24 : 4,
|
|
@@ -802,7 +893,7 @@ const d3 = (t, o) => {
|
|
|
802
893
|
}
|
|
803
894
|
}
|
|
804
895
|
) : !K && /* @__PURE__ */ e(
|
|
805
|
-
|
|
896
|
+
W,
|
|
806
897
|
{
|
|
807
898
|
sx: {
|
|
808
899
|
mb: 4,
|
|
@@ -810,63 +901,63 @@ const d3 = (t, o) => {
|
|
|
810
901
|
}
|
|
811
902
|
}
|
|
812
903
|
)
|
|
813
|
-
] },
|
|
904
|
+
] }, S.guid);
|
|
814
905
|
}) })
|
|
815
906
|
}
|
|
816
907
|
) });
|
|
817
908
|
};
|
|
818
909
|
return /* @__PURE__ */ C(c1, { sx: { pt: 24 }, children: [
|
|
819
|
-
|
|
820
|
-
const
|
|
821
|
-
(
|
|
822
|
-
),
|
|
823
|
-
(
|
|
910
|
+
r.map((d) => {
|
|
911
|
+
const m = i.filter(
|
|
912
|
+
(v) => v.account_type === d && !v.is_closed && !v.is_hidden
|
|
913
|
+
), k = m.reduce(
|
|
914
|
+
(v, S) => (S.balance || 0) + v,
|
|
824
915
|
0
|
|
825
916
|
);
|
|
826
|
-
return
|
|
827
|
-
|
|
917
|
+
return m.length === 0 ? null : /* @__PURE__ */ e(
|
|
918
|
+
O,
|
|
828
919
|
{
|
|
829
|
-
"aria-label": n.account_type_accounts[
|
|
920
|
+
"aria-label": n.account_type_accounts[m[0]?.account_type],
|
|
830
921
|
subheader: /* @__PURE__ */ e(B, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
|
|
831
|
-
|
|
922
|
+
P,
|
|
832
923
|
{
|
|
833
924
|
component: "span",
|
|
834
925
|
direction: "row",
|
|
835
926
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
836
927
|
children: [
|
|
837
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "
|
|
838
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "
|
|
928
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: n.account_types[d] }),
|
|
929
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(k, "0,0.00") })
|
|
839
930
|
]
|
|
840
931
|
}
|
|
841
932
|
) }),
|
|
842
|
-
children: /* @__PURE__ */ e(
|
|
843
|
-
const
|
|
933
|
+
children: /* @__PURE__ */ e(P, { children: m.map((v) => {
|
|
934
|
+
const S = i.indexOf(v) === i.length - 1, F = m.indexOf(v) === m.length - 1;
|
|
844
935
|
return /* @__PURE__ */ C(h.Fragment, { children: [
|
|
845
936
|
/* @__PURE__ */ e(
|
|
846
937
|
U,
|
|
847
938
|
{
|
|
848
|
-
account:
|
|
849
|
-
onRowClick: () =>
|
|
939
|
+
account: v,
|
|
940
|
+
onRowClick: () => V(v),
|
|
850
941
|
shouldShowConnectionStatus: !0
|
|
851
942
|
}
|
|
852
943
|
),
|
|
853
|
-
(!
|
|
854
|
-
|
|
944
|
+
(!S || s.length > 0 || _.length > 0) && /* @__PURE__ */ e(
|
|
945
|
+
W,
|
|
855
946
|
{
|
|
856
947
|
sx: {
|
|
857
|
-
mb:
|
|
858
|
-
ml:
|
|
948
|
+
mb: F ? 24 : 4,
|
|
949
|
+
ml: F ? 24 : 68
|
|
859
950
|
}
|
|
860
951
|
}
|
|
861
952
|
)
|
|
862
|
-
] },
|
|
953
|
+
] }, v.guid);
|
|
863
954
|
}) })
|
|
864
955
|
},
|
|
865
|
-
|
|
956
|
+
d
|
|
866
957
|
);
|
|
867
958
|
}),
|
|
868
|
-
_.length > 0 &&
|
|
869
|
-
s.length > 0 &&
|
|
959
|
+
_.length > 0 && y("hidden"),
|
|
960
|
+
s.length > 0 && y("closed"),
|
|
870
961
|
/* @__PURE__ */ C(
|
|
871
962
|
t1,
|
|
872
963
|
{
|
|
@@ -875,45 +966,45 @@ const d3 = (t, o) => {
|
|
|
875
966
|
onClose: () => o(""),
|
|
876
967
|
title: n.account_details,
|
|
877
968
|
children: [
|
|
878
|
-
/* @__PURE__ */ e(
|
|
879
|
-
/* @__PURE__ */ e(
|
|
969
|
+
/* @__PURE__ */ e(y1, { ChartComponent: h3 }),
|
|
970
|
+
/* @__PURE__ */ e(S3, {})
|
|
880
971
|
]
|
|
881
972
|
}
|
|
882
973
|
)
|
|
883
974
|
] });
|
|
884
|
-
}, E3 =
|
|
885
|
-
const [n, i] = h.useState(!1), [c, l] = h.useState(!1), { config: u } = E1(), { isAccountDataLoaded: a, loadAccountData:
|
|
886
|
-
|
|
975
|
+
}, E3 = A(T3), D3 = ({ onBackClick: t, sx: o = {} }) => {
|
|
976
|
+
const [n, i] = h.useState(!1), [c, l] = h.useState(!1), { config: u } = E1(), { isAccountDataLoaded: a, loadAccountData: r } = E(), { accounts: p, connect: _ } = M(), { isInitialized: s, selectedAccountGuids: H } = G(), { isDesktop: b } = H1(), { onEvent: V } = D();
|
|
977
|
+
n1({
|
|
887
978
|
widgetName: "AccountsWidget",
|
|
888
979
|
isLoaded: a
|
|
889
980
|
}), h.useEffect(() => {
|
|
890
|
-
a ||
|
|
981
|
+
a || r().finally();
|
|
891
982
|
}, []);
|
|
892
|
-
const
|
|
893
|
-
i(!0),
|
|
894
|
-
},
|
|
895
|
-
l(!0),
|
|
983
|
+
const y = () => {
|
|
984
|
+
i(!0), V(x.ACCOUNTS_CLICK_CONNECT);
|
|
985
|
+
}, d = () => {
|
|
986
|
+
l(!0), V(x.ACCOUNTS_CLICK_CONNECT);
|
|
896
987
|
};
|
|
897
988
|
return s ? /* @__PURE__ */ C(
|
|
898
989
|
r3,
|
|
899
990
|
{
|
|
900
991
|
actions: u.show_connections_widget_in_master ? [
|
|
901
|
-
{ iconName: "add", label:
|
|
992
|
+
{ iconName: "add", label: p.add, onClick: y },
|
|
902
993
|
{
|
|
903
994
|
iconName: "credit_card_gear",
|
|
904
|
-
label:
|
|
905
|
-
onClick:
|
|
995
|
+
label: p.manage,
|
|
996
|
+
onClick: d
|
|
906
997
|
}
|
|
907
998
|
] : [],
|
|
908
|
-
onAccountsFilterClick: () =>
|
|
999
|
+
onAccountsFilterClick: () => V(x.ACCOUNTS_CLICK_FILTER),
|
|
909
1000
|
onBackClick: t,
|
|
910
1001
|
sx: o,
|
|
911
|
-
title:
|
|
1002
|
+
title: p.title,
|
|
912
1003
|
children: [
|
|
913
|
-
a ? /* @__PURE__ */ C(e1, { sx: { px:
|
|
914
|
-
H.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children:
|
|
1004
|
+
a ? /* @__PURE__ */ C(e1, { sx: { px: b ? 24 : 12 }, children: [
|
|
1005
|
+
H.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: p.no_accounts }),
|
|
915
1006
|
/* @__PURE__ */ e(E3, {})
|
|
916
|
-
] }) : /* @__PURE__ */ e(h1, { sx: { px:
|
|
1007
|
+
] }) : /* @__PURE__ */ e(h1, { sx: { px: b ? 48 : 24, pt: 24 }, variant: "list" }),
|
|
917
1008
|
/* @__PURE__ */ e(
|
|
918
1009
|
z,
|
|
919
1010
|
{
|
|
@@ -927,13 +1018,13 @@ const d3 = (t, o) => {
|
|
|
927
1018
|
{
|
|
928
1019
|
onClose: () => l(!1),
|
|
929
1020
|
showConnectionsWidget: c,
|
|
930
|
-
title:
|
|
1021
|
+
title: p.manage_connections
|
|
931
1022
|
}
|
|
932
1023
|
)
|
|
933
1024
|
]
|
|
934
1025
|
}
|
|
935
|
-
) : /* @__PURE__ */ e(
|
|
936
|
-
},
|
|
1026
|
+
) : /* @__PURE__ */ e(o1, {});
|
|
1027
|
+
}, Q2 = A(D3);
|
|
937
1028
|
function k3(t) {
|
|
938
1029
|
const { heldAccounts: o, externalAccounts: n } = t.reduce(
|
|
939
1030
|
(i, c) => (c.member_is_managed_by_user ? i.externalAccounts.push(c) : i.heldAccounts.push(c), i),
|
|
@@ -944,59 +1035,59 @@ function k3(t) {
|
|
|
944
1035
|
externalAccounts: C1(n)
|
|
945
1036
|
};
|
|
946
1037
|
}
|
|
947
|
-
function
|
|
1038
|
+
function I3(t, o) {
|
|
948
1039
|
const { heldAccounts: n, externalAccounts: i } = k3(t), c = n.slice(0, o);
|
|
949
1040
|
return c.length < o && c.push(...i.slice(0, o - c.length)), c;
|
|
950
1041
|
}
|
|
951
|
-
const
|
|
952
|
-
[
|
|
953
|
-
[
|
|
954
|
-
[
|
|
955
|
-
}, u1 = (t) =>
|
|
1042
|
+
const Z3 = {
|
|
1043
|
+
[I.CHECKING]: 1,
|
|
1044
|
+
[I.SAVINGS]: 2,
|
|
1045
|
+
[I.CREDIT_CARD]: 3
|
|
1046
|
+
}, u1 = (t) => Z3[t] ?? t + 100, C1 = (t) => t.sort((o, n) => {
|
|
956
1047
|
const i = u1(o.account_type), c = u1(n.account_type), l = i - c;
|
|
957
1048
|
if (l !== 0) return l;
|
|
958
1049
|
const u = o.name ?? o.feed_name ?? "", a = n.name ?? n.feed_name ?? "";
|
|
959
1050
|
return u.localeCompare(a);
|
|
960
1051
|
}), N3 = ({ onPrimaryCtaClick: t, sx: o }) => {
|
|
961
|
-
const { isAccountDataLoaded: n, loadAccountData: i } =
|
|
962
|
-
|
|
1052
|
+
const { isAccountDataLoaded: n, loadAccountData: i } = E(), { accounts: c } = M(), { isInitialized: l, selectedAccounts: u } = G(), { isDesktop: a } = H1();
|
|
1053
|
+
n1({
|
|
963
1054
|
widgetName: "AccountsMiniWidget",
|
|
964
1055
|
isLoaded: l
|
|
965
1056
|
}), h.useEffect(() => {
|
|
966
1057
|
n || i().finally();
|
|
967
1058
|
}, []);
|
|
968
|
-
const
|
|
969
|
-
() =>
|
|
1059
|
+
const r = h.useMemo(
|
|
1060
|
+
() => I3(u, a ? 5 : 3),
|
|
970
1061
|
[u, a]
|
|
971
1062
|
);
|
|
972
1063
|
return l ? /* @__PURE__ */ e(
|
|
973
|
-
|
|
1064
|
+
v1,
|
|
974
1065
|
{
|
|
975
1066
|
className: "mx-exp-accounts-miniwidget",
|
|
976
1067
|
onPrimaryCtaClick: t,
|
|
977
1068
|
primaryCtaLabel: c.primary_cta,
|
|
978
1069
|
sx: o,
|
|
979
1070
|
title: c.mini_title,
|
|
980
|
-
children: n ? /* @__PURE__ */ C(
|
|
981
|
-
u.length === 0 && /* @__PURE__ */ e(
|
|
982
|
-
|
|
983
|
-
const s =
|
|
1071
|
+
children: n ? /* @__PURE__ */ C(O, { children: [
|
|
1072
|
+
u.length === 0 && /* @__PURE__ */ e(T, { sx: { justifyContent: "center" }, children: c.no_accounts }),
|
|
1073
|
+
r.map((p, _) => {
|
|
1074
|
+
const s = r.indexOf(p) === r.length - 1;
|
|
984
1075
|
return /* @__PURE__ */ C(h.Fragment, { children: [
|
|
985
1076
|
/* @__PURE__ */ e(
|
|
986
1077
|
U,
|
|
987
1078
|
{
|
|
988
|
-
account:
|
|
1079
|
+
account: p,
|
|
989
1080
|
listItemProps: { sx: { px: 24 } },
|
|
990
1081
|
shouldShowConnectionStatus: !0
|
|
991
1082
|
}
|
|
992
1083
|
),
|
|
993
|
-
!s && /* @__PURE__ */ e(
|
|
1084
|
+
!s && /* @__PURE__ */ e(W, { "aria-hidden": "true", variant: "inset" })
|
|
994
1085
|
] }, `account-item${_}`);
|
|
995
1086
|
})
|
|
996
1087
|
] }) : /* @__PURE__ */ e(h1, { sx: { px: 12, py: 8 }, variant: "list" })
|
|
997
1088
|
}
|
|
998
|
-
) : /* @__PURE__ */ e(
|
|
999
|
-
},
|
|
1089
|
+
) : /* @__PURE__ */ e(o1, {});
|
|
1090
|
+
}, e4 = A(N3), O3 = () => /* @__PURE__ */ C(
|
|
1000
1091
|
"svg",
|
|
1001
1092
|
{
|
|
1002
1093
|
fill: "none",
|
|
@@ -1436,7 +1527,7 @@ const I3 = {
|
|
|
1436
1527
|
]
|
|
1437
1528
|
}
|
|
1438
1529
|
), F3 = () => {
|
|
1439
|
-
const { connect: t } =
|
|
1530
|
+
const { connect: t } = M();
|
|
1440
1531
|
return /* @__PURE__ */ C(e1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
1441
1532
|
/* @__PURE__ */ e(O3, {}),
|
|
1442
1533
|
/* @__PURE__ */ e(
|
|
@@ -1447,24 +1538,24 @@ const I3 = {
|
|
|
1447
1538
|
mt: 16,
|
|
1448
1539
|
textAlign: "center"
|
|
1449
1540
|
},
|
|
1450
|
-
variant: "
|
|
1541
|
+
variant: "subtitle1",
|
|
1451
1542
|
children: t.mini_widget_content
|
|
1452
1543
|
}
|
|
1453
1544
|
)
|
|
1454
1545
|
] });
|
|
1455
|
-
}, P3 =
|
|
1546
|
+
}, P3 = A(F3), W3 = ({
|
|
1456
1547
|
onPrimaryCtaClick: t = () => {
|
|
1457
1548
|
},
|
|
1458
1549
|
sx: o
|
|
1459
1550
|
}) => {
|
|
1460
|
-
const { isCopyLoaded: n } = G(), { connect: i } =
|
|
1551
|
+
const { isCopyLoaded: n } = G(), { connect: i } = M(), [c, l] = h.useState(!1), u = () => {
|
|
1461
1552
|
l(!0), t();
|
|
1462
1553
|
};
|
|
1463
|
-
return
|
|
1554
|
+
return n1({
|
|
1464
1555
|
widgetName: "ConnectMiniWidget",
|
|
1465
1556
|
isLoaded: n
|
|
1466
1557
|
}), n ? /* @__PURE__ */ C(
|
|
1467
|
-
|
|
1558
|
+
v1,
|
|
1468
1559
|
{
|
|
1469
1560
|
className: "mx-exp-connect-miniwidget",
|
|
1470
1561
|
onPrimaryCtaClick: u,
|
|
@@ -1483,20 +1574,20 @@ const I3 = {
|
|
|
1483
1574
|
)
|
|
1484
1575
|
]
|
|
1485
1576
|
}
|
|
1486
|
-
) : /* @__PURE__ */ e(
|
|
1487
|
-
},
|
|
1577
|
+
) : /* @__PURE__ */ e(o1, {});
|
|
1578
|
+
}, t4 = A(W3);
|
|
1488
1579
|
export {
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1580
|
+
l4 as AccountApi,
|
|
1581
|
+
S3 as AccountDetailsContent,
|
|
1582
|
+
y1 as AccountDetailsHeader,
|
|
1583
|
+
d4 as AccountStore,
|
|
1584
|
+
e4 as AccountsMiniWidget,
|
|
1585
|
+
Q2 as AccountsWidget,
|
|
1586
|
+
t4 as ConnectMiniWidget,
|
|
1587
|
+
X as FieldType,
|
|
1588
|
+
a4 as MemberConnectionStatus,
|
|
1589
|
+
i4 as getAccountBalanceDetails,
|
|
1499
1590
|
D1 as getAccountDetailFields,
|
|
1500
|
-
|
|
1591
|
+
w as useAccountUiStore,
|
|
1501
1592
|
m3 as useGetMergeableAccounts
|
|
1502
1593
|
};
|