@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
package/dist/common/index.es.js
CHANGED
|
@@ -1,163 +1,150 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { C as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { T as
|
|
25
|
-
import {
|
|
26
|
-
import { S as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { D as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import { R as
|
|
63
|
-
import {
|
|
64
|
-
import
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
{ id:
|
|
83
|
-
{ id:
|
|
84
|
-
{ id:
|
|
85
|
-
{ id:
|
|
86
|
-
{ id:
|
|
87
|
-
{ id:
|
|
88
|
-
{ id:
|
|
89
|
-
|
|
90
|
-
], We = {
|
|
1
|
+
import { G as C } from "../useCombineEvents-Bqojlv8q.mjs";
|
|
2
|
+
import { A as Ct, b as Dt, u as At, a as Tt } from "../useCombineEvents-Bqojlv8q.mjs";
|
|
3
|
+
import { F as g, A as a } from "../Fetch-B6tMJC1r.mjs";
|
|
4
|
+
import { B as xt } from "../BeatApi-EFHXULDx.mjs";
|
|
5
|
+
import { C as F } from "../CategoryStore-FTxUbn0f.mjs";
|
|
6
|
+
import { a as Bt } from "../CategoryStore-FTxUbn0f.mjs";
|
|
7
|
+
import { N as G } from "../NotificationStore-D_e8zo5M.mjs";
|
|
8
|
+
import { a as Mt } from "../NotificationStore-D_e8zo5M.mjs";
|
|
9
|
+
import { T as H } from "../Transaction-Cn5_iFm0.mjs";
|
|
10
|
+
import { H as W } from "../Help-B8mD4aLJ.mjs";
|
|
11
|
+
import { E as Lt } from "../Help-B8mD4aLJ.mjs";
|
|
12
|
+
import { M as Pt } from "../MicroWidgetContainer-B_EnfvCq.mjs";
|
|
13
|
+
import { M as Nt } from "../MiniWidgetContainer-Bhkv-hpz.mjs";
|
|
14
|
+
import { D as $t, W as Ft } from "../WidgetContainer-B7xDq2bM.mjs";
|
|
15
|
+
import { C as Ht } from "../ConnectDrawer-C0wjwcJt.mjs";
|
|
16
|
+
import { f as q, c as Y, d as D } from "../BudgetUtil-CLhRnCoX.mjs";
|
|
17
|
+
import { a as qt, b as Yt, C as Qt, e as zt, k as Vt, h as Kt, j as jt, l as Zt } from "../BudgetUtil-CLhRnCoX.mjs";
|
|
18
|
+
import { C as Jt } from "../CurrencyInput-DuMktPu3.mjs";
|
|
19
|
+
import { L as ts } from "../Loader-D3rjKx72.mjs";
|
|
20
|
+
import { R as rs } from "../ResponsiveButton-DZFp78fJ.mjs";
|
|
21
|
+
import { S as as } from "../SearchBox-CwDgvWVJ.mjs";
|
|
22
|
+
import { T as Q } from "../TransactionStore-Bx9euVrY.mjs";
|
|
23
|
+
import { S as ns } from "../TransactionStore-Bx9euVrY.mjs";
|
|
24
|
+
import { T as us } from "../TabContentContainer-j01JYR_7.mjs";
|
|
25
|
+
import { I as hs } from "../IconBacking-B9oC6uL2.mjs";
|
|
26
|
+
import { D as gs, S as ps } from "../RecurringTransactions-BCJp-Nap.mjs";
|
|
27
|
+
import { C as z } from "../CashflowStore-CeAzChyD.mjs";
|
|
28
|
+
import { I as fs } from "../CashflowStore-CeAzChyD.mjs";
|
|
29
|
+
import { c as V } from "../GoalStore-fgXt--2Y.mjs";
|
|
30
|
+
import { C as ys } from "../GoalStore-fgXt--2Y.mjs";
|
|
31
|
+
import { C as bs } from "../CurrencyText-CA-E5N_y.mjs";
|
|
32
|
+
import { E as Cs } from "../EmptyState-DHAkGsjk.mjs";
|
|
33
|
+
import { L as As } from "../ListItemAction-4KB7P75M.mjs";
|
|
34
|
+
import { T as K } from "../TrendsStore-CYdTo7cN.mjs";
|
|
35
|
+
import { L as Es } from "../TrendsStore-CYdTo7cN.mjs";
|
|
36
|
+
import { L as Is } from "../OnClickEvents-CseHDZ94.mjs";
|
|
37
|
+
import { T as vs, a as Ms } from "../ToggleListItem-BLu_fWA2.mjs";
|
|
38
|
+
import { G as Ls } from "../GlobalAccountFilter-B73Pw1hJ.mjs";
|
|
39
|
+
import { S as Ps } from "../StatusBar-BK_uYHAB.mjs";
|
|
40
|
+
import { D as Ns } from "../Donut-CpxJlVvJ.mjs";
|
|
41
|
+
import { D as $s } from "../Dialog-Ck34yr-d.mjs";
|
|
42
|
+
import { jsxs as A, jsx as w } from "react/jsx-runtime";
|
|
43
|
+
import { css as j } from "@mxenabled/cssinjs";
|
|
44
|
+
import { D as Z, a as X } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
45
|
+
import { S as Gs } from "../SingleSegmentDonut-BgbLgwHi.mjs";
|
|
46
|
+
import { D as Ws } from "../Drawer-Bbe4AMB1.mjs";
|
|
47
|
+
import { A as Ys } from "../Analytics-BYItVAe-.mjs";
|
|
48
|
+
import { D as zs, O as Vs, a as Ks, f as js } from "../DateFormats-BMpMrZpW.mjs";
|
|
49
|
+
import { I as Xs, P as Js, S as er } from "../Account-DuOz1a27.mjs";
|
|
50
|
+
import { b as m } from "../Category-CevNQ03n.mjs";
|
|
51
|
+
import { C as sr, c as rr, a as or, P as ar } from "../Category-CevNQ03n.mjs";
|
|
52
|
+
import { C as nr, f as cr, b as ur, a as dr, g as hr, i as lr } from "../NumberFormatting-QCaNwbjv.mjs";
|
|
53
|
+
import { R as _ } from "../repeatingTransactions-DHIG94pi.mjs";
|
|
54
|
+
import { R as J } from "../RecurringTransactionsStore-CkMA7gY3.mjs";
|
|
55
|
+
import { S as pr, T as _r } from "../RecurringTransactionsStore-CkMA7gY3.mjs";
|
|
56
|
+
import { G as mr, C as yr, D as Sr, W as br, d as wr, a as Cr, m as Dr, t as Ar, l as Tr, v as Er, w as xr, g as Ir, y as Br, u as vr, f as Mr, b as Ur, k as Lr, z as kr, s as Pr, x as Rr, c as Nr, q as Or, n as $r, A as Fr, i as Gr, r as Hr, h as Wr, B as qr, o as Yr, p as Qr } from "../hooks-BxkfR-Ff.mjs";
|
|
57
|
+
import { u as Vr } from "../useAccountDisplayName-DKwT1mWv.mjs";
|
|
58
|
+
import { u as jr } from "../useInsightsEnabled-DL_oNyI0.mjs";
|
|
59
|
+
import { u as Xr } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
60
|
+
import { useRef as ee, useEffect as te } from "react";
|
|
61
|
+
import { u as eo } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
62
|
+
import { makeAutoObservable as l, runInAction as h, reaction as R, autorun as se } from "mobx";
|
|
63
|
+
import { A as re } from "../AccountStore-DpYvNnql.mjs";
|
|
64
|
+
import oe from "posthog-js";
|
|
65
|
+
import { B as ae } from "../BeatStore-C6CAT-ce.mjs";
|
|
66
|
+
import { endOfMonth as N } from "date-fns/endOfMonth";
|
|
67
|
+
import { startOfMonth as O } from "date-fns/startOfMonth";
|
|
68
|
+
import { startOfToday as T } from "date-fns/startOfToday";
|
|
69
|
+
import { D as ie } from "../DebtsStore-BZqNLaqd.mjs";
|
|
70
|
+
import { F as ne } from "../FinstrongStore-BQxXxxYD.mjs";
|
|
71
|
+
import { A as ce, m as ue, a as de, b as he } from "../InvestmentUtil-BItV7uEs.mjs";
|
|
72
|
+
import { M as le } from "../MerchantStore-BzGi4JAZ.mjs";
|
|
73
|
+
import { N as ge } from "../NetWorthStore-BqZ44-4M.mjs";
|
|
74
|
+
import { a as pe } from "../SettingsStore-BoIoiRLj.mjs";
|
|
75
|
+
import { addMonths as _e } from "date-fns/addMonths";
|
|
76
|
+
import { getMonth as y } from "date-fns/getMonth";
|
|
77
|
+
import { i as so } from "../DateUtil-wcYTmDRD.mjs";
|
|
78
|
+
import { L as oo, b as ao, a as io, g as no } from "../Localization-CPkpIwIx.mjs";
|
|
79
|
+
import { alpha as fe, lighten as E, darken as x } from "@mui/material";
|
|
80
|
+
const lt = [
|
|
81
|
+
{ id: _.Unknown, copy: "frequency_unknown" },
|
|
82
|
+
{ id: _.EveryWeek, copy: "frequency_every_week" },
|
|
83
|
+
{ id: _.EveryOtherWeek, copy: "frequency_every_other_week" },
|
|
84
|
+
{ id: _.EveryMonth, copy: "frequency_every_month" },
|
|
85
|
+
{ id: _.EveryOtherMonth, copy: "frequency_every_other_month" },
|
|
86
|
+
{ id: _.EveryQuarter, copy: "frequency_every_quarter" },
|
|
87
|
+
{ id: _.EveryOtherQuarter, copy: "frequency_every_other_quarter" },
|
|
88
|
+
{ id: _.EveryYear, copy: "frequency_every_year" }
|
|
89
|
+
], gt = {
|
|
91
90
|
ERROR: "ERROR",
|
|
92
91
|
LOADING: "LOADING",
|
|
93
92
|
SUCCESS: "SUCCESS"
|
|
94
|
-
}
|
|
95
|
-
var Lt = /* @__PURE__ */ ((s) => (s[s.SpendingPlan = 0] = "SpendingPlan", s[s.Budgets = 1] = "Budgets", s))(Lt || {}), Ut = /* @__PURE__ */ ((s) => (s[s.RecurringExpense = 0] = "RecurringExpense", s[s.PlannedExpense = 1] = "PlannedExpense", s[s.Other = 2] = "Other", s[s.Income = 3] = "Income", s))(Ut || {});
|
|
96
|
-
const kt = [
|
|
93
|
+
}, me = [
|
|
97
94
|
"fontFamily",
|
|
98
|
-
"H1",
|
|
99
95
|
"h1",
|
|
100
|
-
"H2",
|
|
101
96
|
"h2",
|
|
102
|
-
"H3",
|
|
103
97
|
"h3",
|
|
104
|
-
"Body",
|
|
105
98
|
"body1",
|
|
106
|
-
"Small",
|
|
107
99
|
"body2",
|
|
108
|
-
"Button",
|
|
109
100
|
"button",
|
|
110
|
-
"XSmall",
|
|
111
101
|
"caption",
|
|
112
|
-
"Paragraph",
|
|
113
102
|
"subtitle1",
|
|
114
|
-
"ParagraphSmall",
|
|
115
103
|
"subtitle2",
|
|
116
|
-
"Tiny",
|
|
117
104
|
"tiny"
|
|
118
|
-
],
|
|
105
|
+
], ye = [
|
|
119
106
|
{ key: "primary", light: "primary_color", dark: "primary_color_dark" },
|
|
120
107
|
{ key: "secondary", light: "neutral_color", dark: "neutral_color_dark" },
|
|
121
108
|
{ key: "error", light: "error_color", dark: "error_color_dark" },
|
|
122
109
|
{ key: "warning", light: "warning_color", dark: "warning_color_dark" },
|
|
123
110
|
{ key: "info", light: "info_color", dark: "info_color_dark" },
|
|
124
111
|
{ key: "success", light: "success_color", dark: "success_color_dark" }
|
|
125
|
-
],
|
|
126
|
-
const
|
|
127
|
-
lighter:
|
|
128
|
-
light:
|
|
129
|
-
main:
|
|
130
|
-
dark:
|
|
131
|
-
darker:
|
|
132
|
-
} :
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
112
|
+
], pt = (o, e, t) => {
|
|
113
|
+
const s = o.palette.mode === "dark", r = (t?.master?.style?.font_name || e?.system_font) ?? o.typography.fontFamily, i = (d, b) => d ? {
|
|
114
|
+
lighter: E(d, 0.5),
|
|
115
|
+
light: E(d, 0.25),
|
|
116
|
+
main: d,
|
|
117
|
+
dark: x(d, 0.25),
|
|
118
|
+
darker: x(d, 0.5)
|
|
119
|
+
} : b, n = Object.fromEntries(
|
|
120
|
+
ye.map(({ key: d, light: b, dark: $ }) => [
|
|
121
|
+
d,
|
|
122
|
+
i(
|
|
123
|
+
e?.[s ? $ : b],
|
|
124
|
+
o.palette[d]
|
|
138
125
|
)
|
|
139
126
|
])
|
|
140
127
|
), c = Object.fromEntries(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
128
|
+
me.map((d) => [
|
|
129
|
+
d,
|
|
130
|
+
d === "fontFamily" ? r : { fontFamily: r }
|
|
144
131
|
])
|
|
145
|
-
),
|
|
132
|
+
), p = {
|
|
146
133
|
MuiTabs: {
|
|
147
134
|
styleOverrides: {
|
|
148
|
-
indicator: { backgroundColor:
|
|
135
|
+
indicator: { backgroundColor: n.primary.light }
|
|
149
136
|
}
|
|
150
137
|
},
|
|
151
138
|
MuiPickersCalendarHeader: {
|
|
152
139
|
styleOverrides: {
|
|
153
140
|
switchViewButton: {
|
|
154
|
-
color:
|
|
155
|
-
"&:hover": { backgroundColor:
|
|
141
|
+
color: n.primary.lighter,
|
|
142
|
+
"&:hover": { backgroundColor: fe(n.primary.light, 0.1) }
|
|
156
143
|
}
|
|
157
144
|
}
|
|
158
145
|
}
|
|
159
|
-
}, u =
|
|
160
|
-
...
|
|
146
|
+
}, u = e?.button_corner_radius, f = e?.card_corner_radius, S = {
|
|
147
|
+
...p,
|
|
161
148
|
...u && {
|
|
162
149
|
MuiButton: {
|
|
163
150
|
styleOverrides: {
|
|
@@ -179,367 +166,122 @@ const kt = [
|
|
|
179
166
|
}
|
|
180
167
|
}
|
|
181
168
|
},
|
|
182
|
-
...
|
|
169
|
+
...f && {
|
|
183
170
|
MuiCard: {
|
|
184
|
-
styleOverrides: { root: { borderRadius: `${
|
|
171
|
+
styleOverrides: { root: { borderRadius: `${f}px` } }
|
|
185
172
|
},
|
|
186
173
|
MuiPaper: {
|
|
187
|
-
styleOverrides: {
|
|
174
|
+
styleOverrides: { rounded: { borderRadius: `${f}px` } }
|
|
188
175
|
}
|
|
189
176
|
}
|
|
190
177
|
};
|
|
191
|
-
return { typography: c, palette:
|
|
178
|
+
return { typography: c, palette: n, components: S };
|
|
192
179
|
};
|
|
193
|
-
class
|
|
180
|
+
class I {
|
|
194
181
|
fetchInstance;
|
|
195
|
-
constructor(
|
|
196
|
-
this.fetchInstance = new
|
|
182
|
+
constructor(e) {
|
|
183
|
+
this.fetchInstance = new g(e, "", {
|
|
197
184
|
Accept: "application/json",
|
|
198
185
|
"Content-Type": "application/json"
|
|
199
186
|
});
|
|
200
187
|
}
|
|
201
|
-
getBanner = async (
|
|
188
|
+
getBanner = async (e) => {
|
|
202
189
|
try {
|
|
203
|
-
const
|
|
204
|
-
return this.fetchInstance?.get(
|
|
205
|
-
} catch (
|
|
206
|
-
return console.error("Error fetching banner:",
|
|
190
|
+
const t = `/banner/${e}/account_widget_banner`;
|
|
191
|
+
return this.fetchInstance?.get(t).then((s) => s.banner) ?? {};
|
|
192
|
+
} catch (t) {
|
|
193
|
+
return console.error("Error fetching banner:", t), null;
|
|
207
194
|
}
|
|
208
195
|
};
|
|
209
196
|
}
|
|
210
|
-
class
|
|
197
|
+
class _t {
|
|
211
198
|
fetchInstance;
|
|
212
|
-
constructor(
|
|
213
|
-
this.fetchInstance = new
|
|
199
|
+
constructor(e, t, s) {
|
|
200
|
+
this.fetchInstance = new g(e, t, void 0, s);
|
|
214
201
|
}
|
|
215
|
-
getLocalizedCopy = async (
|
|
216
|
-
getLocalizedContent = async (
|
|
202
|
+
getLocalizedCopy = async (e) => this.fetchInstance.post(a.LOCALIZED_COPY, e).then((t) => t);
|
|
203
|
+
getLocalizedContent = async (e) => this.fetchInstance.post(`${a.LOCALIZED_CONTENT}/${e}`).then((t) => t);
|
|
217
204
|
}
|
|
218
|
-
class
|
|
205
|
+
class ft {
|
|
219
206
|
fetchInstance;
|
|
220
|
-
constructor(
|
|
221
|
-
this.fetchInstance = new
|
|
207
|
+
constructor(e, t, s) {
|
|
208
|
+
this.fetchInstance = new g(e, t, void 0, s);
|
|
222
209
|
}
|
|
223
|
-
addScheduledPayment = async (
|
|
224
|
-
...
|
|
210
|
+
addScheduledPayment = async (e) => this.fetchInstance.post(a.SCHEDULED_PAYMENTS, {
|
|
211
|
+
...e,
|
|
225
212
|
is_recurring: "true",
|
|
226
|
-
transaction_type:
|
|
227
|
-
}).then((
|
|
228
|
-
getScheduledPayments = async () => this.fetchInstance.get(
|
|
229
|
-
updateScheduledPayment = async (
|
|
230
|
-
deleteScheduledPayment = async (
|
|
213
|
+
transaction_type: H.DEBIT
|
|
214
|
+
}).then((t) => t.scheduled_payment);
|
|
215
|
+
getScheduledPayments = async () => this.fetchInstance.get(a.SCHEDULED_PAYMENTS).then((e) => e.scheduled_payments);
|
|
216
|
+
updateScheduledPayment = async (e) => this.fetchInstance.put(`${a.SCHEDULED_PAYMENTS}/${e.guid}`, e).then((t) => t.scheduled_payment);
|
|
217
|
+
deleteScheduledPayment = async (e) => this.fetchInstance.delete(`${a.SCHEDULED_PAYMENTS}/${e}`).then((t) => t);
|
|
231
218
|
}
|
|
232
|
-
class
|
|
219
|
+
class B {
|
|
233
220
|
fetchInstance;
|
|
234
|
-
constructor(
|
|
235
|
-
this.fetchInstance = new
|
|
221
|
+
constructor(e, t, s) {
|
|
222
|
+
this.fetchInstance = new g(e, t, void 0, s);
|
|
236
223
|
}
|
|
237
|
-
getUserFeatures = async () => this.fetchInstance.get(
|
|
238
|
-
updateUser = async (
|
|
239
|
-
updateUserProfile = async (
|
|
224
|
+
getUserFeatures = async () => this.fetchInstance.get(a.USER_FEATURES).then((e) => e.user_features).catch((e) => e);
|
|
225
|
+
updateUser = async (e) => this.fetchInstance.put(a.USER, e).then((t) => t.user);
|
|
226
|
+
updateUserProfile = async (e) => this.fetchInstance.put(`${a.USER_PROFILES}/${e.guid}`, e).then((t) => t.user_profile);
|
|
240
227
|
}
|
|
241
|
-
class
|
|
228
|
+
class v {
|
|
242
229
|
fetchInstance;
|
|
243
|
-
constructor(
|
|
244
|
-
this.fetchInstance = new
|
|
230
|
+
constructor(e, t) {
|
|
231
|
+
this.fetchInstance = new g(e, t);
|
|
245
232
|
}
|
|
246
|
-
requestWidgetUrl = async (
|
|
233
|
+
requestWidgetUrl = async (e) => this.fetchInstance.post(a.WIDGET_URLS, e).then((t) => t.widget_url);
|
|
247
234
|
}
|
|
248
|
-
const
|
|
249
|
-
const
|
|
250
|
-
return
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
] });
|
|
260
|
-
}, Ot = (s, t) => C({
|
|
261
|
-
alignItems: "center",
|
|
262
|
-
display: "flex",
|
|
263
|
-
gap: s.Spacing.XSmall,
|
|
264
|
-
justifyContent: "flex-end",
|
|
265
|
-
marginRight: s.Spacing.XLarge,
|
|
266
|
-
paddingBottom: s.Spacing.XSmall,
|
|
267
|
-
width: "100%",
|
|
268
|
-
"& .mx-cmn-color-square": {
|
|
269
|
-
backgroundColor: t,
|
|
270
|
-
height: 6,
|
|
271
|
-
width: 6
|
|
272
|
-
},
|
|
273
|
-
"& .mx-cmn-triple-dot": {
|
|
274
|
-
display: "flex",
|
|
275
|
-
gap: 1
|
|
276
|
-
},
|
|
277
|
-
"& .mx-cmn-dot": {
|
|
278
|
-
backgroundColor: s.Color.Neutral500,
|
|
279
|
-
height: 3,
|
|
280
|
-
width: 3,
|
|
281
|
-
borderRadius: 1.5
|
|
282
|
-
},
|
|
283
|
-
"& > .kyper-text": {
|
|
284
|
-
marginRight: s.Spacing.XSmall
|
|
285
|
-
}
|
|
286
|
-
}), q = ({
|
|
287
|
-
ariaLabel: s,
|
|
288
|
-
color: t,
|
|
289
|
-
height: e,
|
|
290
|
-
index: r,
|
|
291
|
-
label: o,
|
|
292
|
-
onClick: a,
|
|
293
|
-
selectedIndex: l,
|
|
294
|
-
value: c
|
|
235
|
+
const mt = (o) => {
|
|
236
|
+
const e = ee();
|
|
237
|
+
return te(() => {
|
|
238
|
+
e.current = o;
|
|
239
|
+
}, [o]), e.current;
|
|
240
|
+
}, Se = ({
|
|
241
|
+
hasGap: o = !1,
|
|
242
|
+
segments: e,
|
|
243
|
+
size: t = Z,
|
|
244
|
+
strokeWidth: s = X,
|
|
245
|
+
children: r
|
|
295
246
|
}) => {
|
|
296
|
-
const
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
"aria-hidden": !0,
|
|
302
|
-
bold: l === r,
|
|
303
|
-
className: "mx-cmn-bar-text",
|
|
304
|
-
color: p,
|
|
305
|
-
component: "div",
|
|
306
|
-
variant: "Small",
|
|
307
|
-
children: o
|
|
308
|
-
}
|
|
309
|
-
);
|
|
310
|
-
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-container ${u} ${c < 0 ? "mx-cmn-negative" : ""}`, children: [
|
|
311
|
-
c >= 0 && /* @__PURE__ */ i(n, {}),
|
|
312
|
-
/* @__PURE__ */ i(
|
|
313
|
-
"div",
|
|
314
|
-
{
|
|
315
|
-
"aria-label": s,
|
|
316
|
-
className: `mx-cmn-bar ${a ? "mx-cmn-clickable" : ""} ${c < 0 ? "mx-cmn-bar-negative" : ""}`,
|
|
317
|
-
onClick: a ? () => a?.(r) : void 0,
|
|
318
|
-
onKeyDown: g,
|
|
319
|
-
role: s ? "button" : void 0,
|
|
320
|
-
tabIndex: s ? 0 : void 0
|
|
321
|
-
}
|
|
322
|
-
),
|
|
323
|
-
c < 0 && /* @__PURE__ */ i(n, {})
|
|
324
|
-
] });
|
|
325
|
-
}, Pt = (s, t, e) => {
|
|
326
|
-
const r = `expandBar-${Math.round(e)}`, o = rt(r, { from: { height: 0 }, to: { height: e } });
|
|
327
|
-
return C({
|
|
328
|
-
display: "flex",
|
|
329
|
-
flexDirection: "column",
|
|
330
|
-
justifyContent: "flex-end",
|
|
331
|
-
height: "100%",
|
|
332
|
-
"&.mx-cmn-negative": {
|
|
333
|
-
justifyContent: "flex-start"
|
|
334
|
-
},
|
|
335
|
-
"& .mx-cmn-bar": {
|
|
336
|
-
animationDelay: ".5s",
|
|
337
|
-
animationDuration: "1s",
|
|
338
|
-
animationFillMode: "forwards",
|
|
339
|
-
animationName: o,
|
|
340
|
-
animationTimingFunction: s.Easing.Default,
|
|
341
|
-
backgroundColor: t,
|
|
342
|
-
borderRadius: `${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px 0 0`,
|
|
343
|
-
maxHeight: e
|
|
344
|
-
},
|
|
345
|
-
"& .mx-cmn-bar-negative": {
|
|
346
|
-
borderRadius: `0 0 ${s.BorderRadius.Medium}px ${s.BorderRadius.Medium}px`,
|
|
347
|
-
marginTop: -s.Spacing.XTiny
|
|
348
|
-
},
|
|
349
|
-
"& .mx-cmn-bar-text": {
|
|
350
|
-
display: "flex",
|
|
351
|
-
justifyContent: "center",
|
|
352
|
-
marginBottom: s.Spacing.Tiny,
|
|
353
|
-
marginTop: s.Spacing.Tiny,
|
|
354
|
-
whiteSpace: "nowrap",
|
|
355
|
-
width: "100%"
|
|
356
|
-
}
|
|
357
|
-
});
|
|
358
|
-
}, Y = ({
|
|
359
|
-
ariaLabel: s,
|
|
360
|
-
averageLineHeight: t,
|
|
361
|
-
bottomHeight: e,
|
|
362
|
-
color: r,
|
|
363
|
-
index: o = -1,
|
|
364
|
-
onClick: a,
|
|
365
|
-
range: l,
|
|
366
|
-
selectedIndex: c,
|
|
367
|
-
topHeight: d,
|
|
368
|
-
value: u,
|
|
369
|
-
valueLabel: g = "",
|
|
370
|
-
width: p,
|
|
371
|
-
xAxisLabel: n = ""
|
|
372
|
-
}) => {
|
|
373
|
-
const m = x(), b = Ft(m, p), D = u / l * d, A = Math.abs(u) / l * e, v = c === void 0 || c === o ? "primary" : "secondary";
|
|
374
|
-
return /* @__PURE__ */ f("div", { className: `mx-cmn-barchart-bar-column ${b}`, children: [
|
|
375
|
-
/* @__PURE__ */ i("div", { style: { height: d }, children: u >= 0 && /* @__PURE__ */ i(
|
|
376
|
-
q,
|
|
377
|
-
{
|
|
378
|
-
ariaLabel: s,
|
|
379
|
-
color: r,
|
|
380
|
-
height: D,
|
|
381
|
-
index: o,
|
|
382
|
-
label: g,
|
|
383
|
-
onClick: a,
|
|
384
|
-
selectedIndex: c,
|
|
385
|
-
value: u
|
|
386
|
-
}
|
|
387
|
-
) }),
|
|
388
|
-
/* @__PURE__ */ i("div", { className: "mx-cmn-zero-line" }),
|
|
389
|
-
t !== 0 && /* @__PURE__ */ i("div", { className: "mx-cmn-chart-average", style: { bottom: t } }),
|
|
390
|
-
/* @__PURE__ */ i("div", { style: { height: e }, children: u < 0 && /* @__PURE__ */ i(
|
|
391
|
-
q,
|
|
392
|
-
{
|
|
393
|
-
ariaLabel: s,
|
|
394
|
-
color: r,
|
|
395
|
-
height: A,
|
|
396
|
-
index: o,
|
|
397
|
-
label: g,
|
|
398
|
-
onClick: a,
|
|
399
|
-
value: u
|
|
400
|
-
}
|
|
401
|
-
) }),
|
|
402
|
-
/* @__PURE__ */ i(
|
|
403
|
-
"div",
|
|
404
|
-
{
|
|
405
|
-
className: `mx-cmn-bar-label ${a ? "mx-cmn-clickable" : ""}`,
|
|
406
|
-
onClick: a ? () => a(o) : void 0,
|
|
407
|
-
children: /* @__PURE__ */ i(B, { bold: c === o, color: v, variant: "Small", children: n })
|
|
408
|
-
}
|
|
409
|
-
)
|
|
410
|
-
] });
|
|
411
|
-
}, Ft = (s, t) => C({
|
|
412
|
-
display: "flex",
|
|
413
|
-
flexDirection: "column",
|
|
414
|
-
flexGrow: t === void 0 ? 1 : 0,
|
|
415
|
-
width: t,
|
|
416
|
-
"& .mx-cmn-chart-average": {
|
|
417
|
-
borderTop: `${s.Spacing.XTiny}px dotted ${s.Color.Neutral500}`,
|
|
418
|
-
position: "relative",
|
|
419
|
-
marginRight: s.Spacing.XTiny
|
|
420
|
-
},
|
|
421
|
-
"& .mx-cmn-zero-line": {
|
|
422
|
-
borderBottom: "1px solid text.primary",
|
|
423
|
-
width: "100%"
|
|
424
|
-
},
|
|
425
|
-
"& .mx-cmn-bar-label": {
|
|
426
|
-
minHeight: s.Spacing.Medium,
|
|
427
|
-
maxHeight: s.Spacing.Medium,
|
|
428
|
-
marginBottom: s.Spacing.XSmall,
|
|
429
|
-
marginTop: s.Spacing.XSmall,
|
|
430
|
-
textAlign: "center",
|
|
431
|
-
width: "100%"
|
|
432
|
-
},
|
|
433
|
-
"& .mx-cmn-clickable": {
|
|
434
|
-
cursor: "pointer"
|
|
435
|
-
}
|
|
436
|
-
}), Ht = (s, t) => s + t, Gt = (s, t) => Math.abs(t) > s ? Math.abs(t) : s, Wt = (s, t) => [...s, t.value], Q = (s, t, e) => {
|
|
437
|
-
const r = s && t ? e / 2 : e;
|
|
438
|
-
return s ? r : 0;
|
|
439
|
-
}, qt = (s, t, e, r) => s / (t < 0 ? -e : t) * r || 0, Xe = ({
|
|
440
|
-
average: s,
|
|
441
|
-
barWidth: t = "8%",
|
|
442
|
-
color: e,
|
|
443
|
-
data: r,
|
|
444
|
-
height: o,
|
|
445
|
-
legendLabelAverage: a,
|
|
446
|
-
legendLabelMain: l,
|
|
447
|
-
onBarClick: c,
|
|
448
|
-
selectedIndex: d,
|
|
449
|
-
valueFormatter: u = (g) => `${g}`
|
|
450
|
-
}) => {
|
|
451
|
-
const g = x(), p = Yt(g), n = r.reduce(Wt, []), m = s !== void 0 ? s : n.reduce(Ht, 0) / n.length, b = Math.max(...n), D = Math.min(...n), A = n.reduce(Gt, 0), v = b >= 0, L = D < 0, I = Q(v, L, o), N = Q(L, v, o), U = qt(m, b, D, I || N), et = (w) => d === void 0 || w === d ? e : `${e}80`, k = () => /* @__PURE__ */ i(
|
|
452
|
-
Y,
|
|
453
|
-
{
|
|
454
|
-
averageLineHeight: U,
|
|
455
|
-
bottomHeight: N,
|
|
456
|
-
color: "",
|
|
457
|
-
range: A,
|
|
458
|
-
topHeight: I,
|
|
459
|
-
value: 0,
|
|
460
|
-
width: void 0
|
|
461
|
-
}
|
|
462
|
-
);
|
|
463
|
-
return /* @__PURE__ */ f("div", { className: `mx-cmn-bar-chart ${p}`, children: [
|
|
464
|
-
/* @__PURE__ */ f("div", { className: "mx-cmn-chart-container", children: [
|
|
465
|
-
/* @__PURE__ */ i(k, {}),
|
|
466
|
-
r.map((w, M) => /* @__PURE__ */ f(st.Fragment, { children: [
|
|
467
|
-
/* @__PURE__ */ i(
|
|
468
|
-
Y,
|
|
469
|
-
{
|
|
470
|
-
ariaLabel: w.ariaLabel,
|
|
471
|
-
averageLineHeight: U,
|
|
472
|
-
bottomHeight: N,
|
|
473
|
-
color: et(M),
|
|
474
|
-
index: M,
|
|
475
|
-
onClick: c,
|
|
476
|
-
range: A,
|
|
477
|
-
selectedIndex: d,
|
|
478
|
-
topHeight: I,
|
|
479
|
-
value: w.value,
|
|
480
|
-
valueLabel: u(w.value),
|
|
481
|
-
width: t,
|
|
482
|
-
xAxisLabel: w.label
|
|
483
|
-
}
|
|
484
|
-
),
|
|
485
|
-
/* @__PURE__ */ i(k, {})
|
|
486
|
-
] }, `column-${M}`))
|
|
487
|
-
] }),
|
|
488
|
-
/* @__PURE__ */ i($t, { color: e, labelAverage: a, labelMain: l })
|
|
489
|
-
] });
|
|
490
|
-
}, Yt = (s) => C({
|
|
491
|
-
"& .mx-cmn-chart-container": {
|
|
492
|
-
alignItems: "flex-end",
|
|
493
|
-
display: "flex",
|
|
494
|
-
justifyContent: "space-evenly",
|
|
495
|
-
marginTop: s.Spacing.Large,
|
|
496
|
-
marginBottom: s.Spacing.Medium
|
|
497
|
-
}
|
|
498
|
-
}), Ke = ({
|
|
499
|
-
hasGap: s = !1,
|
|
500
|
-
segments: t,
|
|
501
|
-
size: e = ct,
|
|
502
|
-
strokeWidth: r = dt,
|
|
503
|
-
children: o
|
|
504
|
-
}) => {
|
|
505
|
-
const a = x(), l = Qt(a, e), c = (e - r) / 2, d = e / 2;
|
|
506
|
-
let u = -90 - (s ? 1 : 0), g = 0;
|
|
507
|
-
return /* @__PURE__ */ f("div", { className: `mx-cmn-multi-segment-donut ${l}`, children: [
|
|
508
|
-
/* @__PURE__ */ f("svg", { height: e, width: e, children: [
|
|
509
|
-
/* @__PURE__ */ i(
|
|
247
|
+
const i = be(t), n = (t - s) / 2, c = t / 2;
|
|
248
|
+
let p = -90 - (o ? 1 : 0), u = 0;
|
|
249
|
+
return /* @__PURE__ */ A("div", { className: `mx-cmn-multi-segment-donut ${i}`, children: [
|
|
250
|
+
/* @__PURE__ */ A("svg", { height: t, width: t, children: [
|
|
251
|
+
/* @__PURE__ */ w(
|
|
510
252
|
"circle",
|
|
511
253
|
{
|
|
512
|
-
cx:
|
|
513
|
-
cy:
|
|
254
|
+
cx: c,
|
|
255
|
+
cy: c,
|
|
514
256
|
fill: "none",
|
|
515
|
-
r:
|
|
516
|
-
stroke:
|
|
517
|
-
strokeWidth:
|
|
257
|
+
r: n,
|
|
258
|
+
stroke: "#E4E8EE",
|
|
259
|
+
strokeWidth: s
|
|
518
260
|
}
|
|
519
261
|
),
|
|
520
|
-
|
|
262
|
+
e.map((f, S) => (p += 360 * u + (o ? 1 : 0), u = (f.percent - (o ? 0.3 : 0)) / 100, /* @__PURE__ */ w(
|
|
521
263
|
"circle",
|
|
522
264
|
{
|
|
523
|
-
cx:
|
|
524
|
-
cy:
|
|
265
|
+
cx: c,
|
|
266
|
+
cy: c,
|
|
525
267
|
fill: "none",
|
|
526
|
-
r:
|
|
527
|
-
stroke:
|
|
528
|
-
strokeDasharray: 2 * Math.PI *
|
|
529
|
-
strokeDashoffset: 2 * Math.PI *
|
|
530
|
-
strokeWidth:
|
|
531
|
-
transform: `rotate(${
|
|
268
|
+
r: n,
|
|
269
|
+
stroke: f.color,
|
|
270
|
+
strokeDasharray: 2 * Math.PI * n,
|
|
271
|
+
strokeDashoffset: 2 * Math.PI * n * (1 - u),
|
|
272
|
+
strokeWidth: s,
|
|
273
|
+
transform: `rotate(${p}, ${c}, ${c})`
|
|
532
274
|
},
|
|
533
|
-
|
|
275
|
+
S
|
|
534
276
|
)))
|
|
535
277
|
] }),
|
|
536
|
-
/* @__PURE__ */
|
|
278
|
+
/* @__PURE__ */ w("div", { className: "mx-cmn-multi-segment-donut-children", children: r })
|
|
537
279
|
] });
|
|
538
|
-
},
|
|
539
|
-
height:
|
|
540
|
-
marginTop:
|
|
280
|
+
}, be = (o) => j({
|
|
281
|
+
height: o,
|
|
282
|
+
marginTop: "-8px",
|
|
541
283
|
position: "relative",
|
|
542
|
-
width:
|
|
284
|
+
width: o,
|
|
543
285
|
"& .mx-cmn-multi-segment-donut-children": {
|
|
544
286
|
left: "50%",
|
|
545
287
|
position: "absolute",
|
|
@@ -547,45 +289,45 @@ const $t = ({ color: s, labelAverage: t, labelMain: e }) => {
|
|
|
547
289
|
top: "50%",
|
|
548
290
|
transform: "translate(-50%, -50%)"
|
|
549
291
|
}
|
|
550
|
-
});
|
|
551
|
-
class
|
|
292
|
+
}), yt = Se;
|
|
293
|
+
class we {
|
|
552
294
|
globalStore;
|
|
553
|
-
api = new
|
|
295
|
+
api = new C("/", "");
|
|
554
296
|
copy = {};
|
|
555
297
|
featureNamespace = "experiences";
|
|
556
298
|
isInitialized = !1;
|
|
557
|
-
constructor(
|
|
558
|
-
this.globalStore =
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
),
|
|
299
|
+
constructor(e) {
|
|
300
|
+
this.globalStore = e, this.api = new C(
|
|
301
|
+
e.endpoint,
|
|
302
|
+
e.sessionToken,
|
|
303
|
+
e.onError
|
|
304
|
+
), l(this);
|
|
563
305
|
}
|
|
564
306
|
loadCopy = async () => {
|
|
565
|
-
await this.getCopy(this.featureNamespace),
|
|
307
|
+
await this.getCopy(this.featureNamespace), h(() => {
|
|
566
308
|
this.isInitialized = !0;
|
|
567
309
|
});
|
|
568
310
|
};
|
|
569
|
-
getCopy = async (
|
|
311
|
+
getCopy = async (e, t = "") => {
|
|
570
312
|
try {
|
|
571
|
-
const
|
|
572
|
-
|
|
573
|
-
this.copy =
|
|
313
|
+
const s = await this.api.getGlobalCopy(e, t);
|
|
314
|
+
h(() => {
|
|
315
|
+
this.copy = s[e];
|
|
574
316
|
});
|
|
575
|
-
} catch (
|
|
576
|
-
console.error(`Error occurred while fetching ${this.featureNamespace} copy: ${
|
|
317
|
+
} catch (s) {
|
|
318
|
+
console.error(`Error occurred while fetching ${this.featureNamespace} copy: ${s}`);
|
|
577
319
|
}
|
|
578
320
|
};
|
|
579
321
|
}
|
|
580
|
-
class
|
|
322
|
+
class Ce {
|
|
581
323
|
globalStore;
|
|
582
324
|
survey = null;
|
|
583
325
|
currentQuestionIndex = 0;
|
|
584
326
|
question = null;
|
|
585
327
|
response = null;
|
|
586
328
|
responses = {};
|
|
587
|
-
constructor(
|
|
588
|
-
this.globalStore =
|
|
329
|
+
constructor(e) {
|
|
330
|
+
this.globalStore = e, l(this);
|
|
589
331
|
}
|
|
590
332
|
get isLastQuestion() {
|
|
591
333
|
return this.currentQuestionIndex === this.surveyQuestions.length - 1;
|
|
@@ -606,15 +348,15 @@ class Kt {
|
|
|
606
348
|
get surveyQuestions() {
|
|
607
349
|
return this.survey ? this.survey.questions : [];
|
|
608
350
|
}
|
|
609
|
-
loadSurvey = (
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
if (
|
|
613
|
-
const
|
|
614
|
-
|
|
351
|
+
loadSurvey = (e = !1) => {
|
|
352
|
+
oe.getActiveMatchingSurveys((t) => {
|
|
353
|
+
h(() => {
|
|
354
|
+
if (t.length > 0) {
|
|
355
|
+
const s = t.find((r) => r.id === this.surveyId);
|
|
356
|
+
s && (this.survey = s, this.currentQuestionIndex = 0, this.question = s.questions[0], this.response = null, this.responses = {});
|
|
615
357
|
}
|
|
616
358
|
});
|
|
617
|
-
},
|
|
359
|
+
}, e);
|
|
618
360
|
};
|
|
619
361
|
nextQuestion = () => {
|
|
620
362
|
this.currentQuestionIndex < this.surveyQuestions.length - 1 && (this.currentQuestionIndex += 1), this.response = null, this.question = this.surveyQuestions[this.currentQuestionIndex];
|
|
@@ -622,285 +364,338 @@ class Kt {
|
|
|
622
364
|
resetStore = () => {
|
|
623
365
|
this.survey = null, this.currentQuestionIndex = 0, this.question = null, this.response = null, this.responses = {};
|
|
624
366
|
};
|
|
625
|
-
setResponse = (
|
|
626
|
-
this.response =
|
|
367
|
+
setResponse = (e) => {
|
|
368
|
+
this.response = e, this.question && (this.responses[`$survey_response_${this.question.id}`] = e);
|
|
627
369
|
};
|
|
628
370
|
}
|
|
629
|
-
|
|
630
|
-
class X {
|
|
371
|
+
class M {
|
|
631
372
|
fetchInstance;
|
|
632
|
-
constructor(
|
|
633
|
-
this.fetchInstance = new
|
|
373
|
+
constructor(e, t, s) {
|
|
374
|
+
this.fetchInstance = new g(e, t, void 0, s);
|
|
634
375
|
}
|
|
635
|
-
addBudget = async (
|
|
636
|
-
amount:
|
|
637
|
-
category_guid:
|
|
638
|
-
category_name:
|
|
639
|
-
parent_guid:
|
|
640
|
-
}).then((
|
|
641
|
-
throw
|
|
376
|
+
addBudget = async (e, t, s = null) => this.fetchInstance.post(a.BUDGETS, {
|
|
377
|
+
amount: t,
|
|
378
|
+
category_guid: e.guid,
|
|
379
|
+
category_name: e.name,
|
|
380
|
+
parent_guid: s
|
|
381
|
+
}).then((r) => r.budget).catch((r) => {
|
|
382
|
+
throw r;
|
|
383
|
+
});
|
|
384
|
+
deleteBudget = async (e) => this.fetchInstance.delete(`${a.BUDGETS}/${e}`).then((t) => t).catch((t) => {
|
|
385
|
+
throw t;
|
|
386
|
+
});
|
|
387
|
+
getBudgets = async () => this.fetchInstance.get(a.BUDGETS).then((e) => e.budgets).catch((e) => e);
|
|
388
|
+
updateBudget = async (e) => this.fetchInstance.put(`${a.BUDGETS}/${e.guid}`, e).then((t) => t.budget).catch((t) => {
|
|
389
|
+
throw t;
|
|
642
390
|
});
|
|
643
|
-
|
|
644
|
-
|
|
391
|
+
addMerchantBudget = async (e, t) => this.fetchInstance.post(a.MERCHANT_BUDGETS, {
|
|
392
|
+
amount: t,
|
|
393
|
+
merchant_guid: e
|
|
394
|
+
}).then((s) => s.merchant_budget).catch((s) => {
|
|
395
|
+
throw s;
|
|
645
396
|
});
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
397
|
+
updateMerchantBudget = async (e, t) => this.fetchInstance.put(`${a.MERCHANT_BUDGETS}/${e}`, {
|
|
398
|
+
amount: t
|
|
399
|
+
}).then((s) => s.merchant_budget).catch((s) => {
|
|
400
|
+
throw s;
|
|
401
|
+
});
|
|
402
|
+
deleteMerchantBudget = async (e) => this.fetchInstance.delete(`${a.MERCHANT_BUDGETS}/${e}`).then((t) => t).catch((t) => {
|
|
403
|
+
throw t;
|
|
649
404
|
});
|
|
650
405
|
}
|
|
651
|
-
class
|
|
652
|
-
api = new
|
|
406
|
+
class De {
|
|
407
|
+
api = new M("/", "");
|
|
653
408
|
globalStore;
|
|
654
409
|
alert = "";
|
|
655
|
-
dateRange = { start:
|
|
410
|
+
dateRange = { start: O(T()), end: N(T()) };
|
|
656
411
|
budgets = [];
|
|
657
412
|
selectedBudget;
|
|
658
413
|
selectedSubBudget;
|
|
659
414
|
isDataLoaded = !1;
|
|
660
415
|
theme = {};
|
|
661
|
-
|
|
662
|
-
|
|
416
|
+
merchantBudgets = [];
|
|
417
|
+
constructor(e) {
|
|
418
|
+
this.globalStore = e, this.api = new M(e.endpoint, e.sessionToken, e.onError), l(this);
|
|
663
419
|
}
|
|
664
420
|
loadBudgetData = async () => {
|
|
665
|
-
this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(),
|
|
421
|
+
this.globalStore.recurringTransactionsStore.isDataLoaded || await this.globalStore.recurringTransactionsStore.loadRepeatingTransactionData(), await this.loadBudgets(), R(
|
|
666
422
|
() => this.detailedBudgets,
|
|
667
|
-
(
|
|
668
|
-
if (
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
423
|
+
(e) => {
|
|
424
|
+
if (e) {
|
|
425
|
+
const t = this.selectedBudget;
|
|
426
|
+
t && (this.selectedBudget = q(e, t.guid));
|
|
427
|
+
const s = this.selectedSubBudget;
|
|
428
|
+
s && s.parent_guid && (this.selectedSubBudget = Y(
|
|
429
|
+
e,
|
|
430
|
+
s.guid,
|
|
431
|
+
s.parent_guid
|
|
676
432
|
));
|
|
677
433
|
}
|
|
678
434
|
}
|
|
679
435
|
);
|
|
680
436
|
};
|
|
681
437
|
get detailedBudgets() {
|
|
682
|
-
return
|
|
438
|
+
return D(
|
|
683
439
|
this.budgets.filter(
|
|
684
|
-
(
|
|
440
|
+
(e) => e.category_guid !== m.INCOME && e.category_guid !== m.TRANSFER && e.category_guid !== m.INVESTMENTS
|
|
685
441
|
),
|
|
686
442
|
this.globalStore.categoryStore.detailedCategories,
|
|
687
443
|
this.globalStore.copyStore.copy.budgets,
|
|
688
444
|
this.theme
|
|
689
|
-
).sort((
|
|
445
|
+
).sort((e, t) => e.percentage > t.percentage ? -1 : e.percentage < t.percentage ? 1 : 0);
|
|
690
446
|
}
|
|
691
447
|
// TODO: Replace this with income from recurring transactions. Income budgets are deprecated.
|
|
692
448
|
get incomeBudget() {
|
|
693
|
-
return
|
|
694
|
-
this.budgets.filter((
|
|
449
|
+
return D(
|
|
450
|
+
this.budgets.filter((s) => !s.parent_guid),
|
|
695
451
|
this.globalStore.categoryStore.detailedCategories,
|
|
696
452
|
this.globalStore.copyStore.copy.budgets,
|
|
697
453
|
this.theme
|
|
698
454
|
).reduce(
|
|
699
|
-
(
|
|
455
|
+
(s, r) => r.category_guid !== m.INCOME ? s : !s || r.percentage > s.percentage ? r : s,
|
|
700
456
|
void 0
|
|
701
457
|
)?.amount;
|
|
702
458
|
}
|
|
703
459
|
get unbudgetedCategories() {
|
|
704
460
|
return this.globalStore.categoryStore.spendCategories.filter(
|
|
705
|
-
(
|
|
461
|
+
(e) => !this.detailedBudgets.find((t) => t.category_guid === e.guid)
|
|
706
462
|
);
|
|
707
463
|
}
|
|
708
464
|
get totalBudgeted() {
|
|
709
|
-
return this.detailedBudgets.reduce((
|
|
465
|
+
return this.detailedBudgets.reduce((e, t) => e + t.amount, 0);
|
|
710
466
|
}
|
|
711
|
-
addBudget = async (
|
|
467
|
+
addBudget = async (e, t, s = null) => {
|
|
712
468
|
try {
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
this.budgets.push(
|
|
469
|
+
const r = await this.api.addBudget(e, t, s);
|
|
470
|
+
h(() => {
|
|
471
|
+
this.budgets.push(r);
|
|
716
472
|
});
|
|
717
|
-
} catch (
|
|
718
|
-
console.error(`Error adding budget: ${
|
|
473
|
+
} catch (r) {
|
|
474
|
+
console.error(`Error adding budget: ${r}`);
|
|
719
475
|
}
|
|
720
476
|
};
|
|
721
|
-
deleteBudget = async (
|
|
477
|
+
deleteBudget = async (e) => {
|
|
722
478
|
try {
|
|
723
|
-
await this.api.deleteBudget(
|
|
724
|
-
const
|
|
725
|
-
|
|
479
|
+
await this.api.deleteBudget(e), h(() => {
|
|
480
|
+
const t = this.budgets.findIndex((s) => s.guid === e);
|
|
481
|
+
t >= 0 && this.budgets.splice(t, 1);
|
|
726
482
|
});
|
|
727
|
-
} catch (
|
|
728
|
-
console.error(`Error deleting budget: ${
|
|
483
|
+
} catch (t) {
|
|
484
|
+
console.error(`Error deleting budget: ${t}`);
|
|
729
485
|
}
|
|
730
486
|
};
|
|
731
487
|
loadBudgets = async () => {
|
|
732
488
|
try {
|
|
733
|
-
const
|
|
734
|
-
this.setBudgets(
|
|
735
|
-
} catch (
|
|
736
|
-
throw console.error(`Error occurred while loading budgets: ${
|
|
489
|
+
const e = await this.api.getBudgets();
|
|
490
|
+
this.setBudgets(e);
|
|
491
|
+
} catch (e) {
|
|
492
|
+
throw console.error(`Error occurred while loading budgets: ${e}`), e;
|
|
737
493
|
}
|
|
738
494
|
};
|
|
739
|
-
setAlert = (
|
|
740
|
-
setBudgets = (
|
|
741
|
-
this.budgets =
|
|
495
|
+
setAlert = (e) => this.alert = e;
|
|
496
|
+
setBudgets = (e) => {
|
|
497
|
+
this.budgets = e, this.isDataLoaded = !0;
|
|
742
498
|
};
|
|
743
|
-
setDateRange = (
|
|
744
|
-
setSelectedBudget = (
|
|
745
|
-
setSelectedSubBudget = (
|
|
746
|
-
setTheme = (
|
|
499
|
+
setDateRange = (e) => this.dateRange = e;
|
|
500
|
+
setSelectedBudget = (e) => this.selectedBudget = e;
|
|
501
|
+
setSelectedSubBudget = (e) => this.selectedSubBudget = e;
|
|
502
|
+
setTheme = (e) => this.theme = e;
|
|
747
503
|
/**
|
|
748
504
|
* Recalculate budget by using the average amount from top-level categories
|
|
749
505
|
* @param categories Detailed categories
|
|
750
506
|
*/
|
|
751
|
-
recalculateBudgets = async (
|
|
507
|
+
recalculateBudgets = async (e) => {
|
|
752
508
|
try {
|
|
753
|
-
for (const
|
|
754
|
-
const
|
|
755
|
-
|
|
756
|
-
...
|
|
757
|
-
amount:
|
|
758
|
-
}) : await this.api.addBudget(
|
|
509
|
+
for (const s of e) {
|
|
510
|
+
const r = this.budgets.find((i) => i.category_guid === s.guid);
|
|
511
|
+
r ? await this.api.updateBudget({
|
|
512
|
+
...r,
|
|
513
|
+
amount: s.totalAverageAmount
|
|
514
|
+
}) : await this.api.addBudget(s, s.totalAverageAmount);
|
|
759
515
|
}
|
|
760
|
-
const
|
|
761
|
-
(
|
|
516
|
+
const t = this.budgets.filter(
|
|
517
|
+
(s) => !e.find((r) => r.guid === s.category_guid)
|
|
762
518
|
);
|
|
763
|
-
for (const
|
|
764
|
-
await this.api.deleteBudget(
|
|
519
|
+
for (const s of t)
|
|
520
|
+
await this.api.deleteBudget(s.guid);
|
|
765
521
|
return await this.loadBudgets(), { data: this.budgets, isSuccess: !0 };
|
|
766
|
-
} catch (
|
|
767
|
-
return console.error("error recalculating budgets",
|
|
522
|
+
} catch (t) {
|
|
523
|
+
return console.error("error recalculating budgets", t), { data: [], isSuccess: !1 };
|
|
768
524
|
}
|
|
769
525
|
};
|
|
770
|
-
updateBudget = async (
|
|
526
|
+
updateBudget = async (e) => {
|
|
771
527
|
try {
|
|
772
|
-
const
|
|
773
|
-
|
|
774
|
-
const
|
|
775
|
-
|
|
528
|
+
const t = await this.api.updateBudget(e);
|
|
529
|
+
h(() => {
|
|
530
|
+
const s = this.budgets.findIndex((r) => r.guid === e.guid);
|
|
531
|
+
s >= 0 && (this.budgets[s] = t);
|
|
776
532
|
});
|
|
777
|
-
} catch (
|
|
778
|
-
console.error(`Error updating budget: ${
|
|
533
|
+
} catch (t) {
|
|
534
|
+
console.error(`Error updating budget: ${t}`);
|
|
535
|
+
}
|
|
536
|
+
};
|
|
537
|
+
getMerchantBudgetByMerchantGuid = (e) => this.merchantBudgets.find(
|
|
538
|
+
(t) => t?.merchant_guid === e
|
|
539
|
+
);
|
|
540
|
+
setMerchantBudgets = (e) => {
|
|
541
|
+
this.merchantBudgets = e;
|
|
542
|
+
};
|
|
543
|
+
addMerchantBudget = async (e, t) => {
|
|
544
|
+
try {
|
|
545
|
+
const s = await this.api.addMerchantBudget(e, t);
|
|
546
|
+
return h(() => {
|
|
547
|
+
this.merchantBudgets.push(s);
|
|
548
|
+
}), { isSuccess: !0 };
|
|
549
|
+
} catch (s) {
|
|
550
|
+
return console.error(`Error adding merchant budget: ${s}`), { isSuccess: !1 };
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
updateMerchantBudget = async (e) => {
|
|
554
|
+
try {
|
|
555
|
+
const { guid: t, amount: s } = e, r = await this.api.updateMerchantBudget(t, s);
|
|
556
|
+
return h(() => {
|
|
557
|
+
const i = this.merchantBudgets.findIndex((n) => n.guid === e.guid);
|
|
558
|
+
i >= 0 && (this.merchantBudgets[i] = r);
|
|
559
|
+
}), { isSuccess: !0 };
|
|
560
|
+
} catch (t) {
|
|
561
|
+
return console.error(`Error updating merchant budget: ${t}`), { isSuccess: !1 };
|
|
562
|
+
}
|
|
563
|
+
};
|
|
564
|
+
deleteMerchantBudget = async (e) => {
|
|
565
|
+
try {
|
|
566
|
+
return await this.api.deleteMerchantBudget(e), h(() => {
|
|
567
|
+
const t = this.merchantBudgets.filter(
|
|
568
|
+
(s) => s.guid !== e
|
|
569
|
+
);
|
|
570
|
+
this.merchantBudgets = t;
|
|
571
|
+
}), { isSuccess: !0 };
|
|
572
|
+
} catch (t) {
|
|
573
|
+
return console.error(`Error deleting merchant budget: ${t}`), { isSuccess: !1 };
|
|
779
574
|
}
|
|
780
575
|
};
|
|
781
576
|
}
|
|
782
|
-
class
|
|
577
|
+
class U {
|
|
783
578
|
fetchInstance;
|
|
784
|
-
constructor(
|
|
785
|
-
this.fetchInstance = new
|
|
579
|
+
constructor(e, t, s) {
|
|
580
|
+
this.fetchInstance = new g(e, t, void 0, s);
|
|
786
581
|
}
|
|
787
|
-
createSupportTicket = async (
|
|
582
|
+
createSupportTicket = async (e) => this.fetchInstance.post(a.SUPPORT_TICKETS, e).then((t) => t);
|
|
788
583
|
}
|
|
789
|
-
const
|
|
790
|
-
const
|
|
791
|
-
for (const
|
|
792
|
-
const
|
|
793
|
-
if (!
|
|
794
|
-
const
|
|
795
|
-
...
|
|
796
|
-
title:
|
|
797
|
-
topics:
|
|
798
|
-
topicKey:
|
|
799
|
-
label:
|
|
584
|
+
const Ae = (o, e) => o.guid === "general" || o.guid === "insights" ? !0 : o.flags ? o.flags.every((t) => e[t]) : !1, Te = (o, e) => {
|
|
585
|
+
const t = [];
|
|
586
|
+
for (const s of W) {
|
|
587
|
+
const r = e[s.guid];
|
|
588
|
+
if (!r) continue;
|
|
589
|
+
const i = {
|
|
590
|
+
...s,
|
|
591
|
+
title: r.label,
|
|
592
|
+
topics: s.topics.map(({ topicKey: n }, c) => ({
|
|
593
|
+
topicKey: n,
|
|
594
|
+
label: r.topics[c]
|
|
800
595
|
}))
|
|
801
596
|
};
|
|
802
|
-
|
|
597
|
+
Ae(i, o) && t.push(i);
|
|
803
598
|
}
|
|
804
|
-
return
|
|
599
|
+
return t;
|
|
805
600
|
};
|
|
806
|
-
class
|
|
601
|
+
class Ee {
|
|
807
602
|
alert = { message: "", severity: void 0 };
|
|
808
|
-
api = new
|
|
603
|
+
api = new U("/", "");
|
|
809
604
|
appConfig;
|
|
810
605
|
globalStore;
|
|
811
606
|
isLoading = !1;
|
|
812
|
-
constructor(
|
|
813
|
-
this.globalStore =
|
|
607
|
+
constructor(e) {
|
|
608
|
+
this.globalStore = e, this.api = new U(e.endpoint, e.sessionToken, e.onError), l(this);
|
|
814
609
|
}
|
|
815
|
-
createSupportTicket = async (
|
|
610
|
+
createSupportTicket = async (e) => {
|
|
816
611
|
try {
|
|
817
|
-
this.isLoading = !0, await this.api.createSupportTicket(
|
|
818
|
-
} catch (
|
|
819
|
-
this.setAlert(this.copy.request_support_submit_failure_message, "error"), console.error("Error occurred while submitting:",
|
|
612
|
+
this.isLoading = !0, await this.api.createSupportTicket(e), this.setAlert(this.copy.request_support_submit_success_message, "success");
|
|
613
|
+
} catch (t) {
|
|
614
|
+
this.setAlert(this.copy.request_support_submit_failure_message, "error"), console.error("Error occurred while submitting:", t);
|
|
820
615
|
} finally {
|
|
821
616
|
this.isLoading = !1;
|
|
822
617
|
}
|
|
823
618
|
};
|
|
824
|
-
setAlert = (
|
|
619
|
+
setAlert = (e, t = void 0) => this.alert = { message: e, severity: t };
|
|
825
620
|
get copy() {
|
|
826
621
|
return this.globalStore.copyStore.copy.help;
|
|
827
622
|
}
|
|
828
623
|
get helpCategories() {
|
|
829
|
-
const { client_communication_profile:
|
|
830
|
-
help: { category_list:
|
|
624
|
+
const { client_communication_profile: e, client_profile: t } = this.globalStore.appDataStore.appData, {
|
|
625
|
+
help: { category_list: s }
|
|
831
626
|
} = this.globalStore.copyStore.copy;
|
|
832
|
-
return
|
|
627
|
+
return Te(
|
|
833
628
|
{
|
|
834
|
-
...t,
|
|
835
629
|
...e,
|
|
630
|
+
...t,
|
|
836
631
|
...this.globalStore.appConfig.config
|
|
837
632
|
},
|
|
838
|
-
|
|
633
|
+
s
|
|
839
634
|
);
|
|
840
635
|
}
|
|
841
636
|
}
|
|
842
|
-
class
|
|
637
|
+
class L {
|
|
843
638
|
fetchInstance;
|
|
844
|
-
constructor(
|
|
845
|
-
this.fetchInstance = new
|
|
639
|
+
constructor(e, t, s) {
|
|
640
|
+
this.fetchInstance = new g(e, t, void 0, s);
|
|
846
641
|
}
|
|
847
|
-
getHoldings = async () => this.fetchInstance.get(
|
|
848
|
-
updateHoldings = async (
|
|
642
|
+
getHoldings = async () => this.fetchInstance.get(a.HOLDINGS).then((e) => e.holdings);
|
|
643
|
+
updateHoldings = async (e) => this.fetchInstance.put(`${a.HOLDINGS}/${e.guid}`, e).then((t) => t.holding);
|
|
849
644
|
}
|
|
850
|
-
class
|
|
851
|
-
analysisType =
|
|
852
|
-
api = new
|
|
645
|
+
class xe {
|
|
646
|
+
analysisType = ce.Stocks;
|
|
647
|
+
api = new L("/", "");
|
|
853
648
|
holdings = [];
|
|
854
649
|
holdingsLoaded = !1;
|
|
855
650
|
globalStore;
|
|
856
651
|
showConnectionsWidget = !1;
|
|
857
|
-
constructor(
|
|
858
|
-
this.globalStore =
|
|
652
|
+
constructor(e) {
|
|
653
|
+
this.globalStore = e, this.api = new L(e.endpoint, e.sessionToken, e.onError), l(this);
|
|
859
654
|
}
|
|
860
655
|
get analysisChartData() {
|
|
861
|
-
return
|
|
656
|
+
return ue(de(this.visibleHoldings), this.analysisType);
|
|
862
657
|
}
|
|
863
658
|
get analysisDetails() {
|
|
864
|
-
return
|
|
659
|
+
return he(this.visibleHoldings)[this.analysisType] || {};
|
|
865
660
|
}
|
|
866
661
|
get visibleHoldings() {
|
|
867
662
|
return this.holdings.filter(
|
|
868
|
-
(
|
|
663
|
+
(e) => this.globalStore.globalUiStore.selectedAccountGuids.includes(e.account_guid)
|
|
869
664
|
);
|
|
870
665
|
}
|
|
871
|
-
setHoldings = (
|
|
872
|
-
this.holdings =
|
|
666
|
+
setHoldings = (e) => {
|
|
667
|
+
this.holdings = e, this.holdingsLoaded = !0;
|
|
873
668
|
};
|
|
874
|
-
setShowConnectionsWidget = (
|
|
875
|
-
this.showConnectionsWidget =
|
|
669
|
+
setShowConnectionsWidget = (e) => {
|
|
670
|
+
this.showConnectionsWidget = e;
|
|
876
671
|
};
|
|
877
672
|
loadHoldings = async () => {
|
|
878
673
|
try {
|
|
879
|
-
const
|
|
880
|
-
this.setHoldings(
|
|
881
|
-
} catch (
|
|
882
|
-
console.error(`Error occured while getting holdings: ${
|
|
674
|
+
const e = await this.api.getHoldings();
|
|
675
|
+
this.setHoldings(e);
|
|
676
|
+
} catch (e) {
|
|
677
|
+
console.error(`Error occured while getting holdings: ${e}`);
|
|
883
678
|
}
|
|
884
679
|
};
|
|
885
|
-
setAnalysisType = (
|
|
886
|
-
this.analysisType =
|
|
680
|
+
setAnalysisType = (e) => {
|
|
681
|
+
this.analysisType = e;
|
|
887
682
|
};
|
|
888
|
-
updateHoldings = async (
|
|
683
|
+
updateHoldings = async (e) => {
|
|
889
684
|
this.holdingsLoaded = !1;
|
|
890
685
|
try {
|
|
891
|
-
const
|
|
892
|
-
if (
|
|
893
|
-
const
|
|
894
|
-
|
|
895
|
-
this.holdings =
|
|
686
|
+
const t = await this.api.updateHoldings(e), s = this.holdings.findIndex(({ guid: r }) => r === e.guid);
|
|
687
|
+
if (s >= 0) {
|
|
688
|
+
const r = [...this.holdings];
|
|
689
|
+
r[s] = t, h(() => {
|
|
690
|
+
this.holdings = r, this.holdingsLoaded = !0;
|
|
896
691
|
});
|
|
897
692
|
}
|
|
898
|
-
} catch (
|
|
899
|
-
console.error(`Error occurred while updating holding: ${
|
|
693
|
+
} catch (t) {
|
|
694
|
+
console.error(`Error occurred while updating holding: ${t}`);
|
|
900
695
|
}
|
|
901
696
|
};
|
|
902
697
|
}
|
|
903
|
-
const
|
|
698
|
+
const k = {
|
|
904
699
|
clientConfig: {},
|
|
905
700
|
clientStyleProfile: {},
|
|
906
701
|
config: {
|
|
@@ -1005,22 +800,22 @@ const z = {
|
|
|
1005
800
|
postHogPublicKey: "phc_1fVYJICC69TpW4wagp9o2XqQ8E7X98cAmcR5psSpfkE",
|
|
1006
801
|
userFeatures: []
|
|
1007
802
|
};
|
|
1008
|
-
class
|
|
803
|
+
class P {
|
|
1009
804
|
fetchInstance;
|
|
1010
|
-
constructor(
|
|
1011
|
-
this.fetchInstance = new
|
|
805
|
+
constructor(e, t, s) {
|
|
806
|
+
this.fetchInstance = new g(e, t, void 0, s);
|
|
1012
807
|
}
|
|
1013
|
-
getAppData = async () => this.fetchInstance.get(
|
|
808
|
+
getAppData = async () => this.fetchInstance.get(a.APP_DATA).then((e) => e);
|
|
1014
809
|
}
|
|
1015
|
-
class
|
|
810
|
+
class Ie {
|
|
1016
811
|
globalStore;
|
|
1017
|
-
api = new
|
|
1018
|
-
bannerApi = new
|
|
812
|
+
api = new P("/", "");
|
|
813
|
+
bannerApi = new I("/");
|
|
1019
814
|
appData = {};
|
|
1020
815
|
isAppDataLoaded = !1;
|
|
1021
816
|
banner = {};
|
|
1022
|
-
constructor(
|
|
1023
|
-
this.globalStore =
|
|
817
|
+
constructor(e) {
|
|
818
|
+
this.globalStore = e, this.api = new P(e.endpoint, e.sessionToken, e.onError), l(this);
|
|
1024
819
|
}
|
|
1025
820
|
get appConfig() {
|
|
1026
821
|
return this.globalStore.appConfig;
|
|
@@ -1040,69 +835,69 @@ class oe {
|
|
|
1040
835
|
get userProfile() {
|
|
1041
836
|
return this.appData.user_profile;
|
|
1042
837
|
}
|
|
1043
|
-
setAppData = (
|
|
1044
|
-
this.appData =
|
|
838
|
+
setAppData = (e) => {
|
|
839
|
+
this.appData = e, this.bannerApi = new I(e.address?.bullseye || "/"), this.isAppDataLoaded = !0;
|
|
1045
840
|
};
|
|
1046
841
|
loadAppData = async () => {
|
|
1047
842
|
try {
|
|
1048
|
-
const
|
|
1049
|
-
this.setAppData(
|
|
1050
|
-
} catch (
|
|
1051
|
-
console.error(`Error loading app data: ${
|
|
843
|
+
const e = await this.api.getAppData();
|
|
844
|
+
this.setAppData(e);
|
|
845
|
+
} catch (e) {
|
|
846
|
+
console.error(`Error loading app data: ${e}`);
|
|
1052
847
|
}
|
|
1053
848
|
};
|
|
1054
849
|
loadBanner = async () => {
|
|
1055
850
|
try {
|
|
1056
|
-
const
|
|
1057
|
-
|
|
1058
|
-
this.banner =
|
|
851
|
+
const e = this.user?.guid ?? null, t = e ? await this.bannerApi.getBanner(e) : {};
|
|
852
|
+
h(() => {
|
|
853
|
+
this.banner = t;
|
|
1059
854
|
});
|
|
1060
|
-
} catch (
|
|
1061
|
-
console.error(`Error loading banner: ${
|
|
855
|
+
} catch (e) {
|
|
856
|
+
console.error(`Error loading banner: ${e}`);
|
|
1062
857
|
}
|
|
1063
858
|
};
|
|
1064
|
-
setUser = (
|
|
1065
|
-
setUserCommunicationProfile = (
|
|
1066
|
-
setUserProfile = (
|
|
859
|
+
setUser = (e) => this.appData.user = e;
|
|
860
|
+
setUserCommunicationProfile = (e) => this.appData.user_communication_profile = e;
|
|
861
|
+
setUserProfile = (e) => this.appData.user_profile = e;
|
|
1067
862
|
}
|
|
1068
|
-
class
|
|
863
|
+
class Be {
|
|
1069
864
|
globalStore;
|
|
1070
|
-
widgetApi = new
|
|
1071
|
-
constructor(
|
|
1072
|
-
this.globalStore =
|
|
865
|
+
widgetApi = new v("/", "");
|
|
866
|
+
constructor(e) {
|
|
867
|
+
this.globalStore = e, this.widgetApi = new v(e.endpoint, e.sessionToken), l(this);
|
|
1073
868
|
}
|
|
1074
|
-
loadWidget = async ({ widget:
|
|
1075
|
-
widget_url: { widget_type:
|
|
869
|
+
loadWidget = async ({ widget: e = "connect_widget", mode: t = "light", ...s }) => await this.widgetApi.requestWidgetUrl({
|
|
870
|
+
widget_url: { widget_type: e, color_scheme: t, ...s }
|
|
1076
871
|
});
|
|
1077
872
|
}
|
|
1078
|
-
class
|
|
873
|
+
class ve {
|
|
1079
874
|
globalStore;
|
|
1080
875
|
accountFilterMap = /* @__PURE__ */ new Map();
|
|
1081
876
|
displayedDate = /* @__PURE__ */ new Date();
|
|
1082
877
|
displayedDateRange = {
|
|
1083
|
-
start:
|
|
1084
|
-
end:
|
|
878
|
+
start: O(this.displayedDate),
|
|
879
|
+
end: N(this.displayedDate)
|
|
1085
880
|
};
|
|
1086
|
-
constructor(
|
|
1087
|
-
|
|
881
|
+
constructor(e) {
|
|
882
|
+
l(this), this.globalStore = e, R(
|
|
1088
883
|
() => this.globalStore.accountStore.visibleAccounts,
|
|
1089
|
-
(
|
|
1090
|
-
this.populateAccountFilterMap(
|
|
884
|
+
(t) => {
|
|
885
|
+
this.populateAccountFilterMap(t);
|
|
1091
886
|
}
|
|
1092
887
|
);
|
|
1093
888
|
}
|
|
1094
889
|
get allSelectedAccounts() {
|
|
1095
890
|
return this.globalStore.accountStore.detailedAccounts.filter(
|
|
1096
|
-
(
|
|
891
|
+
(e) => !e.is_excluded_from_accounts
|
|
1097
892
|
);
|
|
1098
893
|
}
|
|
1099
894
|
get selectedAccounts() {
|
|
1100
895
|
return this.globalStore.accountStore.visibleAccounts.filter(
|
|
1101
|
-
(
|
|
896
|
+
(e) => !e.is_excluded_from_accounts
|
|
1102
897
|
);
|
|
1103
898
|
}
|
|
1104
899
|
get selectedAccountGuids() {
|
|
1105
|
-
return this.selectedAccounts.map((
|
|
900
|
+
return this.selectedAccounts.map((e) => e.guid);
|
|
1106
901
|
}
|
|
1107
902
|
get isCopyLoaded() {
|
|
1108
903
|
return this.globalStore.copyStore.isInitialized;
|
|
@@ -1116,39 +911,39 @@ class ie {
|
|
|
1116
911
|
get isInitialized() {
|
|
1117
912
|
return this.isCopyLoaded && this.isConfigLoaded && this.areUserFeaturesLoaded;
|
|
1118
913
|
}
|
|
1119
|
-
populateAccountFilterMap = (
|
|
1120
|
-
|
|
1121
|
-
this.accountFilterMap.set(
|
|
914
|
+
populateAccountFilterMap = (e) => {
|
|
915
|
+
e && e.forEach((t) => {
|
|
916
|
+
this.accountFilterMap.set(t.guid, !t.is_excluded_from_accounts);
|
|
1122
917
|
});
|
|
1123
918
|
};
|
|
1124
919
|
resetAccountFilterMap = () => {
|
|
1125
920
|
this.accountFilterMap.clear(), this.populateAccountFilterMap(this.globalStore.accountStore.visibleAccounts);
|
|
1126
921
|
};
|
|
1127
|
-
updateAccountFilterMap = (
|
|
1128
|
-
this.accountFilterMap.set(
|
|
922
|
+
updateAccountFilterMap = (e, t) => {
|
|
923
|
+
this.accountFilterMap.set(e, t);
|
|
1129
924
|
};
|
|
1130
|
-
setDisplayedDate = (
|
|
1131
|
-
this.displayedDate =
|
|
1132
|
-
start:
|
|
1133
|
-
end:
|
|
925
|
+
setDisplayedDate = (e, t) => {
|
|
926
|
+
this.displayedDate = t, this.displayedDateRange = {
|
|
927
|
+
start: e,
|
|
928
|
+
end: t
|
|
1134
929
|
};
|
|
1135
930
|
};
|
|
1136
931
|
get shouldDisableNextDate() {
|
|
1137
|
-
const
|
|
1138
|
-
return
|
|
932
|
+
const e = y(this.displayedDate), t = y(_e(/* @__PURE__ */ new Date(), 1));
|
|
933
|
+
return e === t;
|
|
1139
934
|
}
|
|
1140
935
|
get shouldDisablePrevDate() {
|
|
1141
|
-
const
|
|
1142
|
-
return
|
|
936
|
+
const e = y(this.displayedDate), t = y(/* @__PURE__ */ new Date());
|
|
937
|
+
return e === t;
|
|
1143
938
|
}
|
|
1144
939
|
}
|
|
1145
|
-
class
|
|
940
|
+
class Me {
|
|
1146
941
|
globalStore;
|
|
1147
|
-
api = new
|
|
942
|
+
api = new B("/", "");
|
|
1148
943
|
userFeatures = [];
|
|
1149
944
|
userFeaturesLoaded = !1;
|
|
1150
|
-
constructor(
|
|
1151
|
-
this.globalStore =
|
|
945
|
+
constructor(e) {
|
|
946
|
+
this.globalStore = e, this.api = new B(e.endpoint, e.sessionToken, e.onError), l(this);
|
|
1152
947
|
}
|
|
1153
948
|
get userProfile() {
|
|
1154
949
|
return this.globalStore.appDataStore.userProfile;
|
|
@@ -1156,37 +951,37 @@ class ne {
|
|
|
1156
951
|
get user() {
|
|
1157
952
|
return this.globalStore.appDataStore.user;
|
|
1158
953
|
}
|
|
1159
|
-
setUserFeatures = (
|
|
1160
|
-
this.userFeatures =
|
|
954
|
+
setUserFeatures = (e) => {
|
|
955
|
+
this.userFeatures = e, this.userFeaturesLoaded = !0;
|
|
1161
956
|
};
|
|
1162
957
|
loadUserFeatures = async () => {
|
|
1163
958
|
try {
|
|
1164
|
-
const
|
|
1165
|
-
this.setUserFeatures(
|
|
1166
|
-
} catch (
|
|
1167
|
-
console.error(`Error occurred while loading user features: ${
|
|
959
|
+
const e = await this.api.getUserFeatures();
|
|
960
|
+
this.setUserFeatures(e);
|
|
961
|
+
} catch (e) {
|
|
962
|
+
console.error(`Error occurred while loading user features: ${e}`);
|
|
1168
963
|
}
|
|
1169
964
|
};
|
|
1170
|
-
updateUser = async (
|
|
965
|
+
updateUser = async (e) => {
|
|
1171
966
|
try {
|
|
1172
|
-
const
|
|
1173
|
-
this.globalStore.appDataStore.setUser(
|
|
1174
|
-
} catch (
|
|
1175
|
-
console.error(`Error updating User: ${
|
|
967
|
+
const t = await this.api.updateUser(e);
|
|
968
|
+
this.globalStore.appDataStore.setUser(t);
|
|
969
|
+
} catch (t) {
|
|
970
|
+
console.error(`Error updating User: ${t}`);
|
|
1176
971
|
}
|
|
1177
972
|
};
|
|
1178
|
-
updateUserProfile = async (
|
|
973
|
+
updateUserProfile = async (e) => {
|
|
1179
974
|
try {
|
|
1180
|
-
const
|
|
1181
|
-
this.globalStore.appDataStore.setUserProfile(
|
|
1182
|
-
} catch (
|
|
1183
|
-
console.error(`Error occurred while updating user profile: ${
|
|
975
|
+
const t = await this.api.updateUserProfile(e);
|
|
976
|
+
this.globalStore.appDataStore.setUserProfile(t);
|
|
977
|
+
} catch (t) {
|
|
978
|
+
console.error(`Error occurred while updating user profile: ${t}`);
|
|
1184
979
|
}
|
|
1185
980
|
};
|
|
1186
981
|
}
|
|
1187
|
-
class
|
|
982
|
+
class St {
|
|
1188
983
|
// Global properties
|
|
1189
|
-
appConfig =
|
|
984
|
+
appConfig = k;
|
|
1190
985
|
endpoint = "/";
|
|
1191
986
|
sessionToken = "";
|
|
1192
987
|
onError;
|
|
@@ -1216,11 +1011,11 @@ class je {
|
|
|
1216
1011
|
userStore;
|
|
1217
1012
|
// UI Stores
|
|
1218
1013
|
globalUiStore;
|
|
1219
|
-
constructor(
|
|
1220
|
-
this.appConfig =
|
|
1221
|
-
const { transactions:
|
|
1014
|
+
constructor(e = k, t = "/", s, r) {
|
|
1015
|
+
this.appConfig = e, this.endpoint = t, this.sessionToken = e.options.session_token ?? "", this.onError = s, this.onStoreUpdate = r, this.accountStore = new re(this), this.appDataStore = new Ie(this), this.analyticsStore = new Ce(this), this.beatStore = new ae(this), this.budgetsStore = new De(this), this.cashflowStore = new z(this), this.categoryStore = new F(this), this.connectStore = new Be(this), this.copyStore = new we(this), this.debtsStore = new ie(this), this.finstrongStore = new ne(this), this.goalStore = new V(this), this.helpStore = new Ee(this), this.holdingStore = new xe(this), this.merchantStore = new le(this), this.netWorthStore = new ge(this), this.notificationStore = new G(this), this.recurringTransactionsStore = new J(this), this.settingsStore = new pe(this), this.transactionStore = new Q(this), this.trendsStore = new K(this), this.userStore = new Me(this), this.globalUiStore = new ve(this), l(this), se(() => {
|
|
1016
|
+
const { transactions: i } = this.transactionStore;
|
|
1222
1017
|
this.emitUpdate({
|
|
1223
|
-
transactions:
|
|
1018
|
+
transactions: i
|
|
1224
1019
|
});
|
|
1225
1020
|
});
|
|
1226
1021
|
}
|
|
@@ -1228,184 +1023,154 @@ class je {
|
|
|
1228
1023
|
return this.globalUiStore.isInitialized;
|
|
1229
1024
|
}
|
|
1230
1025
|
// emits change triggered in the autorun
|
|
1231
|
-
emitUpdate = (
|
|
1232
|
-
this.onStoreUpdate?.(
|
|
1026
|
+
emitUpdate = (e) => {
|
|
1027
|
+
this.onStoreUpdate?.(e);
|
|
1233
1028
|
};
|
|
1234
1029
|
loadConfigData = async () => {
|
|
1235
1030
|
await Promise.all([
|
|
1236
1031
|
// Load copy, config and user data
|
|
1237
1032
|
this.copyStore.loadCopy(),
|
|
1238
1033
|
this.appDataStore.loadAppData(),
|
|
1034
|
+
this.accountStore.refreshMembers(),
|
|
1239
1035
|
this.userStore.loadUserFeatures()
|
|
1240
1036
|
]);
|
|
1241
1037
|
};
|
|
1242
1038
|
loadData = async ({
|
|
1243
|
-
accounts:
|
|
1244
|
-
appData:
|
|
1245
|
-
associatedBeats:
|
|
1246
|
-
categories:
|
|
1247
|
-
institutions:
|
|
1248
|
-
transactionRules:
|
|
1039
|
+
accounts: e,
|
|
1040
|
+
appData: t,
|
|
1041
|
+
associatedBeats: s,
|
|
1042
|
+
categories: r,
|
|
1043
|
+
institutions: i,
|
|
1044
|
+
transactionRules: n,
|
|
1249
1045
|
transactions: c,
|
|
1250
|
-
userFeatures:
|
|
1046
|
+
userFeatures: p,
|
|
1047
|
+
merchantBudgets: u
|
|
1251
1048
|
} = {}) => {
|
|
1252
|
-
(!
|
|
1049
|
+
(!t || !p) && await this.loadConfigData(), t && this.appDataStore.setAppData(t), p && this.userStore.setUserFeatures(p), e && (await this.accountStore.loadMembers(), i && this.accountStore.setInstitutions(i), this.accountStore.setAccounts(e)), s && this.transactionStore.setAssociatedBeats(s), r && this.categoryStore.setCategories(r), c && this.transactionStore.setTransactions(c), n && this.transactionStore.setTransactionRules(n), u && this.budgetsStore.setMerchantBudgets(u);
|
|
1253
1050
|
};
|
|
1254
1051
|
}
|
|
1255
1052
|
export {
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
Vt as
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
sa as useAccountDisplayName,
|
|
1380
|
-
oo as useAccountStore,
|
|
1381
|
-
ao as useAppConfig,
|
|
1382
|
-
io as useBudgetsStore,
|
|
1383
|
-
no as useCashflowStore,
|
|
1384
|
-
co as useCategoryStore,
|
|
1385
|
-
yr as useCombineEvents,
|
|
1386
|
-
Sr as useCombinePageviews,
|
|
1387
|
-
lo as useDebtStore,
|
|
1388
|
-
uo as useError,
|
|
1389
|
-
ho as useEvent,
|
|
1390
|
-
go as useFinstrongStore,
|
|
1391
|
-
po as useGlobalCopyStore,
|
|
1392
|
-
mo as useGlobalStore,
|
|
1393
|
-
_o as useGlobalUiStore,
|
|
1394
|
-
fo as useGoalStore,
|
|
1395
|
-
yo as useHelpStore,
|
|
1396
|
-
So as useHoldingStore,
|
|
1397
|
-
oa as useInsightsEnabled,
|
|
1398
|
-
bo as useLoad,
|
|
1399
|
-
wo as useMerchantStore,
|
|
1400
|
-
Co as useNetWorthStore,
|
|
1401
|
-
xo as useNotificationStore,
|
|
1402
|
-
Do as usePageView,
|
|
1403
|
-
Ao as useRecurringTransactionsStore,
|
|
1404
|
-
ia as useScreenSize,
|
|
1405
|
-
vo as useSettingsStore,
|
|
1406
|
-
Eo as useTransactionStore,
|
|
1407
|
-
To as useTrendsStore,
|
|
1408
|
-
Bo as useUserStore,
|
|
1409
|
-
Io as useWidgetContainerProvider,
|
|
1410
|
-
ca as useWidgetLoadTimer
|
|
1053
|
+
Ys as ANALYTICS_EVENTS,
|
|
1054
|
+
Ct as AnalyticsApi,
|
|
1055
|
+
a as ApiEndpoints,
|
|
1056
|
+
I as BannerApi,
|
|
1057
|
+
xt as BeatApi,
|
|
1058
|
+
qt as Calendar,
|
|
1059
|
+
Yt as CalendarSelectionTypes,
|
|
1060
|
+
Bt as CategoryApi,
|
|
1061
|
+
sr as CategoryColors,
|
|
1062
|
+
rr as CategoryGuidToName,
|
|
1063
|
+
m as CategoryGuids,
|
|
1064
|
+
or as CategoryIcon,
|
|
1065
|
+
ys as ConnectCard,
|
|
1066
|
+
Ht as ConnectDrawer,
|
|
1067
|
+
nr as CurrencyCodes,
|
|
1068
|
+
Qt as CurrencyDialog,
|
|
1069
|
+
Jt as CurrencyInput,
|
|
1070
|
+
bs as CurrencyText,
|
|
1071
|
+
zs as DATE_FORMATS_INTL,
|
|
1072
|
+
Z as DEFAULT_DONUT_SIZE,
|
|
1073
|
+
X as DEFAULT_STROKE_WIDTH,
|
|
1074
|
+
gs as DataRow,
|
|
1075
|
+
$t as DateRangeSelector,
|
|
1076
|
+
$s as Dialog,
|
|
1077
|
+
Ns as Donut,
|
|
1078
|
+
Ws as Drawer,
|
|
1079
|
+
Cs as EmptyState,
|
|
1080
|
+
Lt as ErrorBoundary,
|
|
1081
|
+
g as Fetch,
|
|
1082
|
+
Ls as GlobalAccountFilter,
|
|
1083
|
+
C as GlobalCopyApi,
|
|
1084
|
+
we as GlobalCopyStore,
|
|
1085
|
+
mr as GlobalDataContext,
|
|
1086
|
+
yr as GlobalDataProvider,
|
|
1087
|
+
St as GlobalStore,
|
|
1088
|
+
Xs as INCOME_ACCOUNT_TYPES,
|
|
1089
|
+
hs as IconBacking,
|
|
1090
|
+
fs as InformationTooltip,
|
|
1091
|
+
gt as LOADING_STATUS,
|
|
1092
|
+
oo as LOCALES,
|
|
1093
|
+
As as ListItemAction,
|
|
1094
|
+
Es as ListItemRow,
|
|
1095
|
+
Is as ListItemWrapper,
|
|
1096
|
+
ts as Loader,
|
|
1097
|
+
_t as LocalizedCopyApi,
|
|
1098
|
+
Pt as MicroWidgetContainer,
|
|
1099
|
+
Nt as MiniWidgetContainer,
|
|
1100
|
+
yt as MultiSegmentDonut,
|
|
1101
|
+
Mt as NotificationApi,
|
|
1102
|
+
Vs as ORDINAL_DATE_FORMAT,
|
|
1103
|
+
Ks as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
1104
|
+
Js as PAYMENT_ACCOUNT_TYPES,
|
|
1105
|
+
ar as PaymentCategories,
|
|
1106
|
+
lt as RECURRENCE_COPY,
|
|
1107
|
+
rs as ResponsiveButton,
|
|
1108
|
+
er as SPENDING_ACCOUNT_TYPES,
|
|
1109
|
+
ft as ScheduledPaymentsApi,
|
|
1110
|
+
as as SearchBox,
|
|
1111
|
+
ps as Select,
|
|
1112
|
+
ns as SelectionBox,
|
|
1113
|
+
Gs as SingleSegmentDonut,
|
|
1114
|
+
pr as Sizes,
|
|
1115
|
+
Ps as StatusBar,
|
|
1116
|
+
_r as TOUCH_TARGET,
|
|
1117
|
+
us as TabContentContainer,
|
|
1118
|
+
vs as ToggleButtonListItem,
|
|
1119
|
+
Ms as ToggleListItem,
|
|
1120
|
+
B as UserApi,
|
|
1121
|
+
Me as UserStore,
|
|
1122
|
+
v as WidgetApi,
|
|
1123
|
+
Ft as WidgetContainer,
|
|
1124
|
+
Sr as WidgetContainerContext,
|
|
1125
|
+
br as WidgetContainerProvider,
|
|
1126
|
+
Dt as analyticsSession,
|
|
1127
|
+
ao as buildDynamicCopy,
|
|
1128
|
+
io as buildPluralCopy,
|
|
1129
|
+
cr as formatCurrency,
|
|
1130
|
+
js as formatDate,
|
|
1131
|
+
ur as formatOrdinal,
|
|
1132
|
+
dr as formatPercentage,
|
|
1133
|
+
so as fromTimestampToMonthYear,
|
|
1134
|
+
zt as getCategory,
|
|
1135
|
+
Vt as getCategoryTotalsByParent,
|
|
1136
|
+
pt as getClientTheme,
|
|
1137
|
+
hr as getCurrencyCodes,
|
|
1138
|
+
Kt as getDetailedCategory,
|
|
1139
|
+
jt as getDetailedSubCategory,
|
|
1140
|
+
no as getLocale,
|
|
1141
|
+
Zt as isIncome,
|
|
1142
|
+
lr as isValidNumber,
|
|
1143
|
+
Vr as useAccountDisplayName,
|
|
1144
|
+
wr as useAccountStore,
|
|
1145
|
+
Cr as useAppConfig,
|
|
1146
|
+
Dr as useBudgetsStore,
|
|
1147
|
+
Ar as useCashflowStore,
|
|
1148
|
+
Tr as useCategoryStore,
|
|
1149
|
+
At as useCombineEvents,
|
|
1150
|
+
Tt as useCombinePageviews,
|
|
1151
|
+
Er as useDebtStore,
|
|
1152
|
+
xr as useError,
|
|
1153
|
+
Ir as useEvent,
|
|
1154
|
+
Br as useFinstrongStore,
|
|
1155
|
+
vr as useGlobalCopyStore,
|
|
1156
|
+
Mr as useGlobalStore,
|
|
1157
|
+
Ur as useGlobalUiStore,
|
|
1158
|
+
Lr as useGoalStore,
|
|
1159
|
+
kr as useHelpStore,
|
|
1160
|
+
Pr as useHoldingStore,
|
|
1161
|
+
jr as useInsightsEnabled,
|
|
1162
|
+
Rr as useLoad,
|
|
1163
|
+
Nr as useMerchantStore,
|
|
1164
|
+
Or as useNetWorthStore,
|
|
1165
|
+
$r as useNotificationStore,
|
|
1166
|
+
Fr as usePageView,
|
|
1167
|
+
mt as usePrevious,
|
|
1168
|
+
Gr as useRecurringTransactionsStore,
|
|
1169
|
+
Xr as useScreenSize,
|
|
1170
|
+
Hr as useSettingsStore,
|
|
1171
|
+
Wr as useTransactionStore,
|
|
1172
|
+
qr as useTrendsStore,
|
|
1173
|
+
Yr as useUserStore,
|
|
1174
|
+
Qr as useWidgetContainerProvider,
|
|
1175
|
+
eo as useWidgetLoadTimer
|
|
1411
1176
|
};
|