@mx-cartographer/experiences 8.0.0-alpha.bb2 → 8.0.0-alpha.bb4
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 +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
- package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
- package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
- package/dist/AccountListItem-wgmlex-_.mjs +90 -0
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Jv8h9H9l.mjs} +33 -33
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
- package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
- package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BF40nbsH.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/LineChart-C1PxNf7P.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
- package/dist/Loader-Ckqi9Rx6.mjs +21 -0
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
- package/dist/SearchBox-B7km148n.mjs +39 -0
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
- package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
- package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +228 -199
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +459 -462
- package/dist/cashflow/index.es.js +419 -428
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/SkeletonLoader.d.ts +7 -0
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +5 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +413 -674
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/stores/GlobalUiStore.d.ts +3 -2
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +1 -3
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +1 -2
- package/dist/debts/index.es.js +673 -665
- package/dist/exportTransactionsToCSV-BgV_wTLT.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3175 -1067
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +580 -570
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.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/index.es.js +6 -6
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +537 -536
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/components/NetWorthChange.d.ts +3 -1
- package/dist/networth/index.es.js +262 -254
- package/dist/notifications/index.es.js +90 -91
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +586 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +371 -365
- package/dist/spending/index.es.js +267 -419
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +231 -226
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +988 -612
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
- package/package.json +51 -56
- package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/AccountListItem-JFMZROh7.mjs +0 -90
- package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/accounts/components/AccountsWidgetContent.d.ts +0 -3
- 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/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as E } from "react/jsx-runtime";
|
|
|
2
2
|
import { observer as g } from "mobx-react-lite";
|
|
3
3
|
import C from "react";
|
|
4
4
|
import $ from "@mui/material/Stack";
|
|
5
|
-
import { G as K, m as
|
|
5
|
+
import { G as K, m as b, u as y, g as D, b as U } from "./hooks-C41HAxM5.mjs";
|
|
6
6
|
import Y from "@mui/material/List";
|
|
7
7
|
import V from "@mui/material/Paper";
|
|
8
8
|
import v from "@mui/material/Divider";
|
|
@@ -12,21 +12,21 @@ import N from "@mui/material/ListItemButton";
|
|
|
12
12
|
import F from "@mui/material/ListItemIcon";
|
|
13
13
|
import G from "@mui/material/ListItemText";
|
|
14
14
|
import { CheckCircle as M, Edit as j, Delete as X, ExpandMore as z } from "@mxenabled/mx-icons";
|
|
15
|
-
import { Text as
|
|
15
|
+
import { Text as I, TextField as q, CategoryIcon as H } from "@mxenabled/mxui";
|
|
16
16
|
import J from "@mui/material/Collapse";
|
|
17
17
|
import Q from "@mui/material/DialogContent";
|
|
18
18
|
import { b as S } from "./Localization-2MODESHW.mjs";
|
|
19
|
-
import {
|
|
19
|
+
import { D as Z } from "./Dialog-CDV0kKxj.mjs";
|
|
20
20
|
import ee from "@mui/material/Box";
|
|
21
21
|
import te from "@mui/material/Chip";
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { D as ae } from "./Drawer-
|
|
26
|
-
const
|
|
22
|
+
import B from "@mui/material/IconButton";
|
|
23
|
+
import { L as k } from "./Loader-Ckqi9Rx6.mjs";
|
|
24
|
+
import { S as oe } from "./SearchBox-B7km148n.mjs";
|
|
25
|
+
import { D as ae } from "./Drawer-BF40nbsH.mjs";
|
|
26
|
+
const p = () => {
|
|
27
27
|
if (!C.useContext(K))
|
|
28
28
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
29
|
-
return
|
|
29
|
+
return b().uiStore;
|
|
30
30
|
}, m = {
|
|
31
31
|
ON_CATEGORY_EXPANDED: "onCategoryExpanded",
|
|
32
32
|
ON_CATEGORY_COLLAPSED: "onCategoryCollapsed",
|
|
@@ -48,7 +48,7 @@ const re = ({
|
|
|
48
48
|
isOpen: c,
|
|
49
49
|
type: s
|
|
50
50
|
}) => {
|
|
51
|
-
const [a, i] = C.useState(e), { categories: n } =
|
|
51
|
+
const [a, i] = C.useState(e), { categories: n } = y(), { setShouldDisableDrawerScroll: l } = p();
|
|
52
52
|
let u = "", d = [];
|
|
53
53
|
const _ = s === "delete";
|
|
54
54
|
switch (s) {
|
|
@@ -61,7 +61,7 @@ const re = ({
|
|
|
61
61
|
case "delete":
|
|
62
62
|
u = n.delete_subcategory_heading, d = S(
|
|
63
63
|
n.all_transactions_in_this_subcategory,
|
|
64
|
-
/* @__PURE__ */ t(
|
|
64
|
+
/* @__PURE__ */ t(I, { bold: !0, children: S(n.all_parent_category, e) })
|
|
65
65
|
);
|
|
66
66
|
break;
|
|
67
67
|
}
|
|
@@ -79,12 +79,14 @@ const re = ({
|
|
|
79
79
|
onPrimaryAction: () => {
|
|
80
80
|
l(!1), r(a);
|
|
81
81
|
},
|
|
82
|
-
children: /* @__PURE__ */ t(Q, { children: _ ? /* @__PURE__ */ t(
|
|
82
|
+
children: /* @__PURE__ */ t(Q, { children: _ ? /* @__PURE__ */ t(I, { children: d }) : /* @__PURE__ */ t(
|
|
83
83
|
q,
|
|
84
84
|
{
|
|
85
|
-
|
|
85
|
+
inputProps: {
|
|
86
|
+
"aria-label": s === "edit" ? n.edit_subcategory_aria : n.add_subcategory_aria
|
|
87
|
+
},
|
|
86
88
|
name: "modify-subcategory",
|
|
87
|
-
onChange: (
|
|
89
|
+
onChange: (h) => i(h.target.value),
|
|
88
90
|
placeholder: n.input_placeholder,
|
|
89
91
|
sx: { width: "100%" },
|
|
90
92
|
value: a
|
|
@@ -93,7 +95,7 @@ const re = ({
|
|
|
93
95
|
}
|
|
94
96
|
);
|
|
95
97
|
}, R = g(re), ne = ({ parentCategory: e }) => {
|
|
96
|
-
const [o, r] = C.useState(!1), { addCategory: c } =
|
|
98
|
+
const [o, r] = C.useState(!1), { addCategory: c } = b(), { categories: s } = y(), { onEvent: a } = D(), { setShouldDisableDrawerScroll: i } = p(), n = async (d) => {
|
|
97
99
|
await c(d.trim(), e.guid), a(m.ON_SUBCATEGORY_ADDED), r(!1);
|
|
98
100
|
}, l = async () => {
|
|
99
101
|
a(m.ON_SUBCATEGORY_ADD_CLICK), i(!0), r(!0);
|
|
@@ -105,7 +107,7 @@ const re = ({
|
|
|
105
107
|
G,
|
|
106
108
|
{
|
|
107
109
|
primary: s.add_subcategory_button,
|
|
108
|
-
primaryTypographyProps: { color: "primary", fontWeight: "normal", variant: "
|
|
110
|
+
primaryTypographyProps: { color: "primary", fontWeight: "normal", variant: "body1" }
|
|
109
111
|
}
|
|
110
112
|
) }),
|
|
111
113
|
o && /* @__PURE__ */ t(
|
|
@@ -123,7 +125,7 @@ const re = ({
|
|
|
123
125
|
subCategory: o,
|
|
124
126
|
showRename: r
|
|
125
127
|
}) => {
|
|
126
|
-
const { updateCategory: c } =
|
|
128
|
+
const { updateCategory: c } = b(), { onEvent: s } = D(), a = async (n) => {
|
|
127
129
|
await c({ ...o, name: n }), s(m.ON_SUBCATEGORY_SAVED), e(!1);
|
|
128
130
|
}, i = () => {
|
|
129
131
|
e(!1), s(m.ON_SUBCATEGORY_EDIT_CANCEL_CLICK);
|
|
@@ -144,7 +146,7 @@ const re = ({
|
|
|
144
146
|
setShowDelete: r,
|
|
145
147
|
subCategory: c
|
|
146
148
|
}) => {
|
|
147
|
-
const { onEvent: s } = D(), { removeCategory: a } =
|
|
149
|
+
const { onEvent: s } = D(), { removeCategory: a } = b(), i = () => {
|
|
148
150
|
r(!1), s(m.ON_SUBCATEGORY_DELETE_CLICK);
|
|
149
151
|
}, n = async () => {
|
|
150
152
|
s(m.ON_SUBCATEGORY_DELETED), await a(c.guid), r(!1);
|
|
@@ -168,7 +170,7 @@ const re = ({
|
|
|
168
170
|
showSelected: i,
|
|
169
171
|
unselectable: n,
|
|
170
172
|
unselectableText: l
|
|
171
|
-
} =
|
|
173
|
+
} = p(), { categories: u } = y(), { onEvent: d } = D(), [_, h] = C.useState(!1), [f, O] = C.useState(!1), T = !!o.revision, A = o.guid === c, w = !n.some((P) => P === o.guid);
|
|
172
174
|
return /* @__PURE__ */ E(
|
|
173
175
|
x,
|
|
174
176
|
{
|
|
@@ -191,7 +193,7 @@ const re = ({
|
|
|
191
193
|
G,
|
|
192
194
|
{
|
|
193
195
|
primary: o.name,
|
|
194
|
-
primaryTypographyProps: { fontWeight: "normal", variant: "
|
|
196
|
+
primaryTypographyProps: { fontWeight: "normal", variant: "body1" }
|
|
195
197
|
}
|
|
196
198
|
),
|
|
197
199
|
i && A && /* @__PURE__ */ t(M, { fontSize: "small" }),
|
|
@@ -201,17 +203,17 @@ const re = ({
|
|
|
201
203
|
),
|
|
202
204
|
T && /* @__PURE__ */ E(ee, { className: "mx-cat-subcategory-edit-container", sx: { marginRight: 24 }, children: [
|
|
203
205
|
/* @__PURE__ */ t(
|
|
204
|
-
|
|
206
|
+
B,
|
|
205
207
|
{
|
|
206
208
|
"aria-label": S(u.edit_subcategory_aria, o.name),
|
|
207
209
|
onClick: () => {
|
|
208
|
-
|
|
210
|
+
h(!0), a(!0), d(m.ON_SUBCATEGORY_EDIT_CLICK);
|
|
209
211
|
},
|
|
210
212
|
children: /* @__PURE__ */ t(j, { color: "secondary" })
|
|
211
213
|
}
|
|
212
214
|
),
|
|
213
215
|
/* @__PURE__ */ t(
|
|
214
|
-
|
|
216
|
+
B,
|
|
215
217
|
{
|
|
216
218
|
"aria-label": S(u.delete_subcategory_aria, o.name),
|
|
217
219
|
edge: "end",
|
|
@@ -234,7 +236,7 @@ const re = ({
|
|
|
234
236
|
_ && /* @__PURE__ */ t(
|
|
235
237
|
ce,
|
|
236
238
|
{
|
|
237
|
-
setShowRename:
|
|
239
|
+
setShowRename: h,
|
|
238
240
|
showRename: _,
|
|
239
241
|
subCategory: o
|
|
240
242
|
}
|
|
@@ -243,7 +245,7 @@ const re = ({
|
|
|
243
245
|
}
|
|
244
246
|
);
|
|
245
247
|
}, me = g(ue), Ce = ({ categories: e, parentCategory: o }) => {
|
|
246
|
-
const { expandedGuid: r, searchValue: c } =
|
|
248
|
+
const { expandedGuid: r, searchValue: c } = p(), s = o.guid === r, a = !!c;
|
|
247
249
|
return /* @__PURE__ */ t(
|
|
248
250
|
J,
|
|
249
251
|
{
|
|
@@ -269,7 +271,7 @@ const re = ({
|
|
|
269
271
|
}
|
|
270
272
|
);
|
|
271
273
|
}, ge = g(Ce), _e = ({ category: e, subCategories: o }) => {
|
|
272
|
-
const { expandedGuid: r, searchValue: c, setExpandedGuid: s } =
|
|
274
|
+
const { expandedGuid: r, searchValue: c, setExpandedGuid: s } = p(), { onEvent: a } = D(), i = e.guid === r, n = () => {
|
|
273
275
|
const l = e.guid !== r ? e.guid : null;
|
|
274
276
|
s(l), a(l ? m.ON_CATEGORY_EXPANDED : m.ON_CATEGORY_COLLAPSED);
|
|
275
277
|
};
|
|
@@ -288,7 +290,7 @@ const re = ({
|
|
|
288
290
|
G,
|
|
289
291
|
{
|
|
290
292
|
primary: e.name,
|
|
291
|
-
primaryTypographyProps: { fontWeight: "normal", variant: "
|
|
293
|
+
primaryTypographyProps: { fontWeight: "normal", variant: "body1" }
|
|
292
294
|
}
|
|
293
295
|
),
|
|
294
296
|
/* @__PURE__ */ t(F, { children: /* @__PURE__ */ t(
|
|
@@ -307,8 +309,8 @@ const re = ({
|
|
|
307
309
|
/* @__PURE__ */ t(v, { sx: { ml: 58 } }),
|
|
308
310
|
/* @__PURE__ */ t(ge, { categories: o, parentCategory: e })
|
|
309
311
|
] });
|
|
310
|
-
}, Ee = g(_e),
|
|
311
|
-
const { categories: e } =
|
|
312
|
+
}, Ee = g(_e), pe = () => {
|
|
313
|
+
const { categories: e } = b(), { searchValue: o } = p(), { categories: r } = y(), s = ((a, i = "") => a.reduce((n, l) => {
|
|
312
314
|
if (l.parent_guid === null) {
|
|
313
315
|
const d = [
|
|
314
316
|
{
|
|
@@ -333,28 +335,28 @@ const re = ({
|
|
|
333
335
|
},
|
|
334
336
|
a.category.guid
|
|
335
337
|
)) }) });
|
|
336
|
-
},
|
|
338
|
+
}, he = g(pe), Se = ({
|
|
337
339
|
initialSelected: e,
|
|
338
340
|
onSelect: o = void 0,
|
|
339
341
|
showSelected: r = !0,
|
|
340
342
|
unselectable: c = [],
|
|
341
343
|
unselectableText: s = "Unselectable"
|
|
342
344
|
}) => {
|
|
343
|
-
const { categories: a, loadCategories: i } =
|
|
345
|
+
const { categories: a, loadCategories: i } = b(), { common: n } = y(), { isCopyLoaded: l } = U(), {
|
|
344
346
|
searchValue: u,
|
|
345
347
|
setOnSelect: d,
|
|
346
348
|
setSearchValue: _,
|
|
347
|
-
setSelectedGuid:
|
|
349
|
+
setSelectedGuid: h,
|
|
348
350
|
setShowSelected: f,
|
|
349
351
|
setUnselectable: O,
|
|
350
352
|
setUnselectableText: T
|
|
351
|
-
} =
|
|
353
|
+
} = p();
|
|
352
354
|
return C.useEffect(() => {
|
|
353
355
|
o && d(o);
|
|
354
356
|
}), C.useEffect(() => {
|
|
355
357
|
a.length || i();
|
|
356
358
|
}, []), C.useEffect(() => {
|
|
357
|
-
e &&
|
|
359
|
+
e && h(e), f(r), O(c), T(s);
|
|
358
360
|
}, [e, r, c, s]), l ? /* @__PURE__ */ E($, { className: "mx-cat-category-selector", sx: { width: "100%" }, children: [
|
|
359
361
|
/* @__PURE__ */ t(
|
|
360
362
|
oe,
|
|
@@ -366,16 +368,16 @@ const re = ({
|
|
|
366
368
|
searchValue: u
|
|
367
369
|
}
|
|
368
370
|
),
|
|
369
|
-
/* @__PURE__ */ t(
|
|
371
|
+
/* @__PURE__ */ t(he, {})
|
|
370
372
|
] }) : /* @__PURE__ */ t(k, {});
|
|
371
|
-
},
|
|
373
|
+
}, be = g(Se), ye = ({
|
|
372
374
|
id: e,
|
|
373
375
|
onClose: o,
|
|
374
376
|
title: r,
|
|
375
377
|
showDrawer: c,
|
|
376
378
|
...s
|
|
377
379
|
}) => {
|
|
378
|
-
const { common: a } =
|
|
380
|
+
const { common: a } = y(), { isCopyLoaded: i } = U();
|
|
379
381
|
return i ? /* @__PURE__ */ t(
|
|
380
382
|
ae,
|
|
381
383
|
{
|
|
@@ -385,13 +387,13 @@ const re = ({
|
|
|
385
387
|
isOpen: c,
|
|
386
388
|
onClose: o,
|
|
387
389
|
title: r,
|
|
388
|
-
children: /* @__PURE__ */ t(
|
|
390
|
+
children: /* @__PURE__ */ t(be, { ...s })
|
|
389
391
|
}
|
|
390
392
|
) : /* @__PURE__ */ t(k, {});
|
|
391
|
-
}, ze = g(
|
|
393
|
+
}, ze = g(ye);
|
|
392
394
|
export {
|
|
393
|
-
|
|
395
|
+
be as C,
|
|
394
396
|
ze as a,
|
|
395
397
|
Ee as b,
|
|
396
|
-
|
|
398
|
+
p as u
|
|
397
399
|
};
|
|
@@ -3,9 +3,9 @@ import { getUnixTime as n } from "date-fns/getUnixTime";
|
|
|
3
3
|
import { subMonths as d } from "date-fns/subMonths";
|
|
4
4
|
import { startOfMonth as y } from "date-fns/startOfMonth";
|
|
5
5
|
import { endOfMonth as u } from "date-fns/endOfMonth";
|
|
6
|
-
import { a as C, g as T } from "./CategoryUtil-
|
|
7
|
-
import { F as m, A as r } from "./Fetch-
|
|
8
|
-
import { b as p, c as f } from "./Category-
|
|
6
|
+
import { a as C, g as T } from "./CategoryUtil-DfVKKkRf.mjs";
|
|
7
|
+
import { F as m, A as r } from "./Fetch-DecPFeGU.mjs";
|
|
8
|
+
import { b as p, c as f } from "./Category-Ccoew_sA.mjs";
|
|
9
9
|
class c {
|
|
10
10
|
fetchInstance;
|
|
11
11
|
constructor(t, e, a) {
|
|
@@ -54,7 +54,7 @@ class w {
|
|
|
54
54
|
onSelect = (t) => this.savedOnSelect(t);
|
|
55
55
|
setOnSelect = (t) => this.savedOnSelect = t;
|
|
56
56
|
}
|
|
57
|
-
class
|
|
57
|
+
class O {
|
|
58
58
|
globalStore;
|
|
59
59
|
uiStore;
|
|
60
60
|
api = new c("/", "");
|
|
@@ -62,19 +62,19 @@ class L {
|
|
|
62
62
|
categoriesLoaded = !1;
|
|
63
63
|
dateRangeCategoryTotals = [];
|
|
64
64
|
monthlyCategoryTotals = [];
|
|
65
|
-
|
|
65
|
+
dateRangeTotalsLoaded = !1;
|
|
66
66
|
isLoadingCategoryTotals = !1;
|
|
67
67
|
monthlyTotalsLoaded = !1;
|
|
68
68
|
constructor(t) {
|
|
69
69
|
this.globalStore = t, this.uiStore = new w(), this.api = new c(t.endpoint, t.sessionToken, t.onError), g(this);
|
|
70
70
|
}
|
|
71
71
|
get detailedCategories() {
|
|
72
|
-
return C(
|
|
72
|
+
return this.globalStore.isInitialized ? C(
|
|
73
73
|
this.categories,
|
|
74
74
|
this.globalStore.copyStore.copy.categories,
|
|
75
75
|
this.dateRangeCategoryTotals,
|
|
76
76
|
this.monthlyCategoryTotals
|
|
77
|
-
);
|
|
77
|
+
) : [];
|
|
78
78
|
}
|
|
79
79
|
get detailedCategoriesWithTransactions() {
|
|
80
80
|
return T(
|
|
@@ -100,7 +100,7 @@ class L {
|
|
|
100
100
|
this.monthlyCategoryTotals = t, this.monthlyTotalsLoaded = !0;
|
|
101
101
|
};
|
|
102
102
|
setDateRangeCategoryTotals = (t) => {
|
|
103
|
-
this.dateRangeCategoryTotals = t, this.
|
|
103
|
+
this.dateRangeCategoryTotals = t, this.dateRangeTotalsLoaded = !0;
|
|
104
104
|
};
|
|
105
105
|
addCategory = async (t, e) => {
|
|
106
106
|
const a = { name: t, parent_guid: e };
|
|
@@ -126,9 +126,11 @@ class L {
|
|
|
126
126
|
n(a),
|
|
127
127
|
t
|
|
128
128
|
);
|
|
129
|
-
this.setDateRangeCategoryTotals(o)
|
|
129
|
+
this.setDateRangeCategoryTotals(o);
|
|
130
130
|
} catch (o) {
|
|
131
|
-
|
|
131
|
+
console.error(`Error occurred while getting date range category totals: ${o}`);
|
|
132
|
+
} finally {
|
|
133
|
+
this.setIsLoadingCategoryTotals(!1);
|
|
132
134
|
}
|
|
133
135
|
};
|
|
134
136
|
loadMonthlyCategoryTotals = async (t = this.globalStore.globalUiStore.selectedAccounts, e, a) => {
|
|
@@ -169,6 +171,6 @@ class L {
|
|
|
169
171
|
getCategoryName = (t) => this.categories.find((a) => a.guid === t)?.name ?? f[t];
|
|
170
172
|
}
|
|
171
173
|
export {
|
|
172
|
-
|
|
174
|
+
O as C,
|
|
173
175
|
c as a
|
|
174
176
|
};
|
|
@@ -3,8 +3,8 @@ import { startOfMonth as T } from "date-fns/startOfMonth";
|
|
|
3
3
|
import { startOfToday as C } from "date-fns/startOfToday";
|
|
4
4
|
import { subMonths as N } from "date-fns/subMonths";
|
|
5
5
|
import { CategoryIconList as O } from "@mxenabled/mxui";
|
|
6
|
-
import { C as b, a as D, b as E } from "./Category-
|
|
7
|
-
import { f as R,
|
|
6
|
+
import { C as b, a as D, b as E } from "./Category-Ccoew_sA.mjs";
|
|
7
|
+
import { f as R, a as v } from "./Dialog-CDV0kKxj.mjs";
|
|
8
8
|
const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
|
|
9
9
|
(n) => p(
|
|
10
10
|
n,
|
|
@@ -33,8 +33,8 @@ const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
|
|
|
33
33
|
...t,
|
|
34
34
|
currentAmount: c,
|
|
35
35
|
averageAmount: _(m),
|
|
36
|
-
color:
|
|
37
|
-
icon:
|
|
36
|
+
color: D[i],
|
|
37
|
+
icon: b[i],
|
|
38
38
|
isTransfer: i === E.TRANSFER,
|
|
39
39
|
monthlyAmounts: m,
|
|
40
40
|
name: h,
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { jsx as _, jsxs as
|
|
1
|
+
import { jsx as _, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import f, { useMemo as S } from "react";
|
|
3
3
|
import H from "@mui/material/Button";
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
4
|
+
import { P as x, Icon as k, Text as n } from "@mxenabled/mxui";
|
|
5
|
+
import b from "@mui/material/Tooltip";
|
|
6
6
|
import $ from "@mui/material/Box";
|
|
7
|
-
import
|
|
7
|
+
import p from "@mui/material/IconButton";
|
|
8
8
|
import K from "@mui/material/FormControlLabel";
|
|
9
9
|
import v from "@mui/material/List";
|
|
10
10
|
import g from "@mui/material/ListItem";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
11
|
+
import c from "@mui/material/ListItemButton";
|
|
12
|
+
import y from "@mui/material/ListSubheader";
|
|
13
|
+
import u from "@mui/material/ListItemText";
|
|
14
|
+
import EE from "@mui/material/Popover";
|
|
15
15
|
import F from "@mui/material/Stack";
|
|
16
16
|
import w from "@mui/material/Checkbox";
|
|
17
|
-
import {
|
|
17
|
+
import { AccountBalance as IE } from "@mxenabled/mx-icons";
|
|
18
|
+
import { u as o, f as _E, d as NE, e as rE } from "./hooks-C41HAxM5.mjs";
|
|
18
19
|
import { b as W } from "./Localization-2MODESHW.mjs";
|
|
19
|
-
import { u as RE } from "./useScreenSize-
|
|
20
|
+
import { u as RE } from "./useScreenSize-B5afALev.mjs";
|
|
20
21
|
import { observer as Q } from "mobx-react-lite";
|
|
21
|
-
import iE from "@mui/material/styles
|
|
22
|
+
import { useTheme as iE } from "@mui/material/styles";
|
|
22
23
|
import { ConnectWidget as aE } from "@mxenabled/web-widget-sdk";
|
|
23
24
|
import lE from "@mui/material/CircularProgress";
|
|
24
|
-
import { D as OE } from "./Drawer-
|
|
25
|
+
import { D as OE } from "./Drawer-BF40nbsH.mjs";
|
|
25
26
|
var T = /* @__PURE__ */ ((E) => (E[E.ANY = 0] = "ANY", E[E.CHECKING = 1] = "CHECKING", E[E.SAVINGS = 2] = "SAVINGS", E[E.LOAN = 3] = "LOAN", E[E.CREDIT_CARD = 4] = "CREDIT_CARD", E[E.INVESTMENT = 5] = "INVESTMENT", E[E.LINE_OF_CREDIT = 6] = "LINE_OF_CREDIT", E[E.MORTGAGE = 7] = "MORTGAGE", E[E.PROPERTY = 8] = "PROPERTY", E[E.CASH = 9] = "CASH", E[E.INSURANCE = 10] = "INSURANCE", E[E.PREPAID = 11] = "PREPAID", E[E.CHECKING_LINE_OF_CREDIT = 12] = "CHECKING_LINE_OF_CREDIT", E[E.DIGITAL_WALLET = 13] = "DIGITAL_WALLET", E))(T || {}), sE = /* @__PURE__ */ ((E) => (E[E.NONE = 0] = "NONE", E[E.MONEY_MARKET = 1] = "MONEY_MARKET", E[E.CERTIFICATE_OF_DEPOSIT = 2] = "CERTIFICATE_OF_DEPOSIT", E[E.AUTO = 3] = "AUTO", E[E.STUDENT = 4] = "STUDENT", E[E.SMALL_BUSINESS = 5] = "SMALL_BUSINESS", E[E.PERSONAL = 6] = "PERSONAL", E[E.PERSONAL_WITH_COLLATERAL = 7] = "PERSONAL_WITH_COLLATERAL", E[E.HOME_EQUITY = 8] = "HOME_EQUITY", E[E.PLAN_401_K = 9] = "PLAN_401_K", E[E.PLAN_403_B = 10] = "PLAN_403_B", E[E.PLAN_529 = 11] = "PLAN_529", E[E.IRA = 12] = "IRA", E[E.ROLLOVER_IRA = 13] = "ROLLOVER_IRA", E[E.ROTH_IRA = 14] = "ROTH_IRA", E[E.TAXABLE = 15] = "TAXABLE", E[E.NON_TAXABLE = 16] = "NON_TAXABLE", E[E.BROKERAGE = 17] = "BROKERAGE", E[E.TRUST = 18] = "TRUST", E[E.UNIFORM_GIFTS_TO_MINORS_ACT = 19] = "UNIFORM_GIFTS_TO_MINORS_ACT", E[E.PLAN_457 = 20] = "PLAN_457", E[E.PENSION = 21] = "PENSION", E[E.EMPLOYEE_STOCK_OWNERSHIP_PLAN = 22] = "EMPLOYEE_STOCK_OWNERSHIP_PLAN", E[E.SIMPLIFIED_EMPLOYEE_PENSION = 23] = "SIMPLIFIED_EMPLOYEE_PENSION", E[E.SIMPLE_IRA = 24] = "SIMPLE_IRA", E[E.BOAT = 25] = "BOAT", E[E.POWERSPORTS = 26] = "POWERSPORTS", E[E.RV = 27] = "RV", E[E.HELOC = 28] = "HELOC", E[E.PLAN_ROTH_401_K = 29] = "PLAN_ROTH_401_K", E[E.FIXED_ANNUITY = 30] = "FIXED_ANNUITY", E[E.VARIABLE_ANNUITY = 31] = "VARIABLE_ANNUITY", E[E.VEHICLE_INSURANCE = 32] = "VEHICLE_INSURANCE", E[E.DISABILITY = 33] = "DISABILITY", E[E.HEALTH = 34] = "HEALTH", E[E.LONG_TERM_CARE = 35] = "LONG_TERM_CARE", E[E.PROPERTY_AND_CASUALTY = 36] = "PROPERTY_AND_CASUALTY", E[E.UNIVERSAL_LIFE = 37] = "UNIVERSAL_LIFE", E[E.TERM_LIFE = 38] = "TERM_LIFE", E[E.WHOLE_LIFE = 39] = "WHOLE_LIFE", E[E.ACCIDENTAL_DEATH_AND_DISMEMBERMENT = 40] = "ACCIDENTAL_DEATH_AND_DISMEMBERMENT", E[E.VARIABLE_UNIVERSAL_LIFE = 41] = "VARIABLE_UNIVERSAL_LIFE", E[E.HSA = 42] = "HSA", E[E.TAX_FREE_SAVINGS_ACCOUNT = 43] = "TAX_FREE_SAVINGS_ACCOUNT", E[E.INDIVIDUAL = 44] = "INDIVIDUAL", E[E.REGISTERED_RETIREMENT_INCOME_FUND = 45] = "REGISTERED_RETIREMENT_INCOME_FUND", E[E.CASH_MANAGEMENT_ACCOUNT = 46] = "CASH_MANAGEMENT_ACCOUNT", E[E.EMPLOYEE_STOCK_PURCHASE_PLAN = 47] = "EMPLOYEE_STOCK_PURCHASE_PLAN", E[E.REGISTERED_EDUCATION_SAVINGS_PLAN = 48] = "REGISTERED_EDUCATION_SAVINGS_PLAN", E[E.PROFIT_SHARING_PLAN = 49] = "PROFIT_SHARING_PLAN", E[E.UNIFORM_TRANSFER_TO_MINORS_ACT = 50] = "UNIFORM_TRANSFER_TO_MINORS_ACT", E[E.PLAN_401_A = 51] = "PLAN_401_A", E[E.SARSEP_IRA = 52] = "SARSEP_IRA", E[E.FIXED_ANNUITY_TRADITIONAL_IRA = 53] = "FIXED_ANNUITY_TRADITIONAL_IRA", E[E.VARIABLE_ANNUITY_TRADITIONAL_IRA = 54] = "VARIABLE_ANNUITY_TRADITIONAL_IRA", E[E.SEPP_IRA = 55] = "SEPP_IRA", E[E.INHERITED_TRADITIONAL_IRA = 56] = "INHERITED_TRADITIONAL_IRA", E[E.FIXED_ANNUITY_ROTH_IRA = 57] = "FIXED_ANNUITY_ROTH_IRA", E[E.VARIABLE_ANNUITY_ROTH_IRA = 58] = "VARIABLE_ANNUITY_ROTH_IRA", E[E.INHERITED_ROTH_IRA = 59] = "INHERITED_ROTH_IRA", E[E.COVERDELL = 60] = "COVERDELL", E[E.ADVISORY_ACCOUNT = 61] = "ADVISORY_ACCOUNT", E[E.BROKERAGE_MARGIN = 62] = "BROKERAGE_MARGIN", E[E.CHARITABLE_GIFT_ACCOUNT = 63] = "CHARITABLE_GIFT_ACCOUNT", E[E.CHURCH_ACCOUNT = 64] = "CHURCH_ACCOUNT", E[E.CONSERVATORSHIP = 65] = "CONSERVATORSHIP", E[E.CUSTODIAL = 66] = "CUSTODIAL", E[E.DEFINED_BENEFIT_PLAN = 67] = "DEFINED_BENEFIT_PLAN", E[E.DEFINED_CONTRIBUTION_PLAN = 68] = "DEFINED_CONTRIBUTION_PLAN", E[E.EDUCATIONAL = 69] = "EDUCATIONAL", E[E.ESTATE = 70] = "ESTATE", E[E.EXECUTOR = 71] = "EXECUTOR", E[E.GROUP_RETIREMENT_SAVINGS_PLAN = 72] = "GROUP_RETIREMENT_SAVINGS_PLAN", E[E.GUARANTEED_INVESTMENT_CERTIFICATE = 73] = "GUARANTEED_INVESTMENT_CERTIFICATE", E[E.HRA = 74] = "HRA", E[E.INDEXED_ANNUITY = 75] = "INDEXED_ANNUITY", E[E.INVESTMENT_CLUB = 76] = "INVESTMENT_CLUB", E[E.IRREVOCABLE_TRUST = 77] = "IRREVOCABLE_TRUST", E[E.JOINT_TENANTS_BY_ENTIRITY = 78] = "JOINT_TENANTS_BY_ENTIRITY", E[E.JOINT_TENANTS_COMMUNITY_PROPERTY = 79] = "JOINT_TENANTS_COMMUNITY_PROPERTY", E[E.JOINT_TENANTS_IN_COMMON = 80] = "JOINT_TENANTS_IN_COMMON", E[E.JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP = 81] = "JOINT_TENANTS_WITH_RIGHTS_OF_SURVIVORSHIP", E[E.KEOUGH_PLAN = 82] = "KEOUGH_PLAN", E[E.LIFE_INCOME_FUND = 83] = "LIFE_INCOME_FUND", E[E.LIVING_TRUST = 84] = "LIVING_TRUST", E[E.LOCKED_IN_RETIREMENT_ACCOUNT = 85] = "LOCKED_IN_RETIREMENT_ACCOUNT", E[E.LOCKED_IN_RETIREMENT_INVESTMENT_FUND = 86] = "LOCKED_IN_RETIREMENT_INVESTMENT_FUND", E[E.LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT = 87] = "LOCKED_IN_RETIREMENT_SAVINGS_ACCOUNT", E[E.MONEY_PURCHASE_PLAN = 88] = "MONEY_PURCHASE_PLAN", E[E.PARTNERSHIP = 89] = "PARTNERSHIP", E[E.PLAN_409_A = 90] = "PLAN_409_A", E[E.PLAN_ROTH_403_B = 91] = "PLAN_ROTH_403_B", E[E.REGISTERED_DISABILITY_SAVINGS_PLAN = 92] = "REGISTERED_DISABILITY_SAVINGS_PLAN", E[E.REGISTERED_LOCKED_IN_SAVINGS_PLAN = 93] = "REGISTERED_LOCKED_IN_SAVINGS_PLAN", E[E.REGISTERED_PENSION_PLAN = 94] = "REGISTERED_PENSION_PLAN", E[E.REGISTERED_RETIREMENT_SAVINGS_PLAN = 95] = "REGISTERED_RETIREMENT_SAVINGS_PLAN", E[E.REVOCABLE_TRUST = 96] = "REVOCABLE_TRUST", E[E.ROTH_CONVERSION = 97] = "ROTH_CONVERSION", E[E.SOLE_PROPRIETORSHIP = 98] = "SOLE_PROPRIETORSHIP", E[E.SPOUSAL_IRA = 99] = "SPOUSAL_IRA", E[E.SPOUSAL_ROTH_IRA = 100] = "SPOUSAL_ROTH_IRA", E[E.TESTAMENTARY_TRUST = 101] = "TESTAMENTARY_TRUST", E[E.THRIFT_SAVINGS_PLAN = 102] = "THRIFT_SAVINGS_PLAN", E[E.INHERITED_ANNUITY = 103] = "INHERITED_ANNUITY", E[E.CORPORATE_ACCOUNT = 104] = "CORPORATE_ACCOUNT", E[E.LIMITED_LIABILITY_ACCOUNT = 105] = "LIMITED_LIABILITY_ACCOUNT", E[E.HSA_SAVINGS = 106] = "HSA_SAVINGS", E[E.HSA_CHECKING = 107] = "HSA_CHECKING", E))(sE || {}), LE = /* @__PURE__ */ ((E) => (E[E.REAL_ESTATE = 0] = "REAL_ESTATE", E[E.VEHICLE = 1] = "VEHICLE", E[E.ART = 2] = "ART", E[E.JEWELRY = 3] = "JEWELRY", E[E.FURNITURE = 4] = "FURNITURE", E[E.APPLIANCES = 5] = "APPLIANCES", E[E.COMPUTER = 6] = "COMPUTER", E[E.ELECTRONICS = 7] = "ELECTRONICS", E[E.SPORTS_EQUIPMENT = 8] = "SPORTS_EQUIPMENT", E[E.MISCELLANEOUS = 9] = "MISCELLANEOUS", E))(LE || {}), eE = /* @__PURE__ */ ((E) => (E[E.CREATED = 0] = "CREATED", E[E.PREVENTED = 1] = "PREVENTED", E[E.DENIED = 2] = "DENIED", E[E.CHALLENGED = 3] = "CHALLENGED", E[E.REJECTED = 4] = "REJECTED", E[E.LOCKED = 5] = "LOCKED", E[E.CONNECTED = 6] = "CONNECTED", E[E.IMPEDED = 7] = "IMPEDED", E[E.RECONNECTED = 8] = "RECONNECTED", E[E.DEGRADED = 9] = "DEGRADED", E[E.DISCONNECTED = 10] = "DISCONNECTED", E[E.DISCONTINUED = 11] = "DISCONTINUED", E[E.CLOSED = 12] = "CLOSED", E[E.DELAYED = 13] = "DELAYED", E[E.FAILED = 14] = "FAILED", E[E.UPDATED = 15] = "UPDATED", E[E.DISABLED = 16] = "DISABLED", E[E.IMPORTED = 17] = "IMPORTED", E[E.RESUMED = 18] = "RESUMED", E[E.EXPIRED = 19] = "EXPIRED", E[E.IMPAIRED = 20] = "IMPAIRED", E[E.PENDING = 21] = "PENDING", E))(eE || {});
|
|
26
27
|
const bE = [
|
|
27
28
|
0,
|
|
@@ -141,7 +142,7 @@ const V = (E, N) => E.reduce((I, R) => (I[R.guid] = N?.includes(R.guid), I), {})
|
|
|
141
142
|
};
|
|
142
143
|
return Object.prototype.hasOwnProperty.call(R, a) ? R[a] = R[a].concat(L) : R[a] = [L], R;
|
|
143
144
|
}, {});
|
|
144
|
-
function
|
|
145
|
+
function mE(E) {
|
|
145
146
|
const { heldAccounts: N, externalAccounts: I } = E.reduce(
|
|
146
147
|
(R, r) => (r.member_is_managed_by_user ? R.externalAccounts.push(r) : R.heldAccounts.push(r), R),
|
|
147
148
|
{ heldAccounts: [], externalAccounts: [] }
|
|
@@ -152,14 +153,14 @@ function ME(E) {
|
|
|
152
153
|
};
|
|
153
154
|
}
|
|
154
155
|
function _I(E, N) {
|
|
155
|
-
const { heldAccounts: I, externalAccounts: R } =
|
|
156
|
+
const { heldAccounts: I, externalAccounts: R } = mE(E), r = I.slice(0, N);
|
|
156
157
|
return r.length < N && r.push(...R.slice(0, N - r.length)), r;
|
|
157
158
|
}
|
|
158
|
-
const
|
|
159
|
+
const ME = {
|
|
159
160
|
[T.CHECKING]: 1,
|
|
160
161
|
[T.SAVINGS]: 2,
|
|
161
162
|
[T.CREDIT_CARD]: 3
|
|
162
|
-
}, X = (E) =>
|
|
163
|
+
}, X = (E) => ME[E] ?? E + 100, z = (E) => E.sort((N, I) => {
|
|
163
164
|
const R = X(N.account_type), r = X(I.account_type), a = R - r;
|
|
164
165
|
if (a !== 0) return a;
|
|
165
166
|
const s = N.name ?? N.feed_name ?? "", L = I.name ?? I.feed_name ?? "";
|
|
@@ -181,9 +182,9 @@ const mE = {
|
|
|
181
182
|
const { connect: e } = o(), U = _E(), P = S(
|
|
182
183
|
() => UE(E, e.connection_statuses[12], U),
|
|
183
184
|
[E, U]
|
|
184
|
-
), O = E.length < 1, G = !!N,
|
|
185
|
+
), O = E.length < 1, G = !!N, M = Object.values(C).every((i) => !!i);
|
|
185
186
|
return /* @__PURE__ */ _(
|
|
186
|
-
|
|
187
|
+
EE,
|
|
187
188
|
{
|
|
188
189
|
anchorEl: N,
|
|
189
190
|
anchorOrigin: {
|
|
@@ -197,7 +198,7 @@ const mE = {
|
|
|
197
198
|
vertical: "top",
|
|
198
199
|
horizontal: "left"
|
|
199
200
|
},
|
|
200
|
-
children: O ? /* @__PURE__ */
|
|
201
|
+
children: O ? /* @__PURE__ */ m(
|
|
201
202
|
F,
|
|
202
203
|
{
|
|
203
204
|
sx: {
|
|
@@ -209,14 +210,14 @@ const mE = {
|
|
|
209
210
|
maxWidth: "100%"
|
|
210
211
|
},
|
|
211
212
|
children: [
|
|
212
|
-
/* @__PURE__ */ _(
|
|
213
|
+
/* @__PURE__ */ _(IE, { size: 32 }),
|
|
213
214
|
/* @__PURE__ */ _(x, { bold: !0, mt: 12, children: I.zeroStateTitle }),
|
|
214
215
|
/* @__PURE__ */ _(x, { mt: 12, children: I.zeroStateDescription }),
|
|
215
216
|
s && /* @__PURE__ */ _(H, { onClick: s, children: I.zeroStateButton })
|
|
216
217
|
]
|
|
217
218
|
}
|
|
218
|
-
) : /* @__PURE__ */
|
|
219
|
-
/* @__PURE__ */
|
|
219
|
+
) : /* @__PURE__ */ m("form", { onSubmit: A, children: [
|
|
220
|
+
/* @__PURE__ */ m(
|
|
220
221
|
v,
|
|
221
222
|
{
|
|
222
223
|
className: "mx-cmn-account-options",
|
|
@@ -249,13 +250,13 @@ const mE = {
|
|
|
249
250
|
control: /* @__PURE__ */ _(
|
|
250
251
|
w,
|
|
251
252
|
{
|
|
252
|
-
checked:
|
|
253
|
-
"data-ui-test": `checked-${
|
|
253
|
+
checked: M,
|
|
254
|
+
"data-ui-test": `checked-${M}`,
|
|
254
255
|
disableRipple: !0,
|
|
255
256
|
onChange: () => {
|
|
256
257
|
const i = {};
|
|
257
258
|
Object.keys(C).forEach((h) => {
|
|
258
|
-
i[h] = !
|
|
259
|
+
i[h] = !M;
|
|
259
260
|
}), d(i);
|
|
260
261
|
},
|
|
261
262
|
size: "small",
|
|
@@ -267,7 +268,7 @@ const mE = {
|
|
|
267
268
|
}
|
|
268
269
|
}
|
|
269
270
|
),
|
|
270
|
-
label:
|
|
271
|
+
label: M ? I.unselectAllAccounts : I.selectAllAccounts
|
|
271
272
|
}
|
|
272
273
|
) }),
|
|
273
274
|
Object.keys(P).map((i) => {
|
|
@@ -280,8 +281,8 @@ const mE = {
|
|
|
280
281
|
"aria-label": W(I.accountTypeAccounts, i),
|
|
281
282
|
className: "mx-cmn-account-options-group",
|
|
282
283
|
dense: !0,
|
|
283
|
-
subheader: /* @__PURE__ */ _(
|
|
284
|
-
|
|
284
|
+
subheader: /* @__PURE__ */ _(y, { disableGutters: !0, children: /* @__PURE__ */ _(
|
|
285
|
+
c,
|
|
285
286
|
{
|
|
286
287
|
"aria-label": W(I.toggleAccountTypeAccounts, i),
|
|
287
288
|
"aria-pressed": B,
|
|
@@ -297,10 +298,10 @@ const mE = {
|
|
|
297
298
|
justifyContent: "left"
|
|
298
299
|
},
|
|
299
300
|
children: /* @__PURE__ */ _(
|
|
300
|
-
|
|
301
|
+
u,
|
|
301
302
|
{
|
|
302
303
|
primary: i,
|
|
303
|
-
primaryTypographyProps: { variant: "
|
|
304
|
+
primaryTypographyProps: { variant: "caption", fontWeight: "bold" }
|
|
304
305
|
}
|
|
305
306
|
)
|
|
306
307
|
}
|
|
@@ -349,7 +350,7 @@ const mE = {
|
|
|
349
350
|
]
|
|
350
351
|
}
|
|
351
352
|
),
|
|
352
|
-
/* @__PURE__ */
|
|
353
|
+
/* @__PURE__ */ m(F, { direction: "row", justifyContent: "flex-end", padding: 12, spacing: 16, children: [
|
|
353
354
|
/* @__PURE__ */ _(H, { onClick: a, variant: "outlined", children: I.cancelButton }),
|
|
354
355
|
/* @__PURE__ */ _(
|
|
355
356
|
H,
|
|
@@ -367,7 +368,7 @@ const mE = {
|
|
|
367
368
|
);
|
|
368
369
|
};
|
|
369
370
|
q.displayName = "AccountFilterOptions";
|
|
370
|
-
const
|
|
371
|
+
const NI = ({
|
|
371
372
|
accounts: E,
|
|
372
373
|
copy: N,
|
|
373
374
|
onFilterClick: I,
|
|
@@ -388,7 +389,7 @@ const hE = ({
|
|
|
388
389
|
}, P = () => {
|
|
389
390
|
A(null);
|
|
390
391
|
};
|
|
391
|
-
return /* @__PURE__ */
|
|
392
|
+
return /* @__PURE__ */ m($, { className: "mx-cmn-account-filter", m: 4, sx: { ...s }, children: [
|
|
392
393
|
C ? /* @__PURE__ */ _(
|
|
393
394
|
H,
|
|
394
395
|
{
|
|
@@ -401,8 +402,8 @@ const hE = ({
|
|
|
401
402
|
variant: L,
|
|
402
403
|
children: N.accountFilterOptionsCopy.filterButton
|
|
403
404
|
}
|
|
404
|
-
) : /* @__PURE__ */ _(
|
|
405
|
-
|
|
405
|
+
) : /* @__PURE__ */ _(b, { id: "filter-accounts", placement: "bottom", title: N.title, children: /* @__PURE__ */ _(
|
|
406
|
+
p,
|
|
406
407
|
{
|
|
407
408
|
"aria-controls": "filter_accounts",
|
|
408
409
|
"aria-describedby": "filter-accounts",
|
|
@@ -424,10 +425,10 @@ const hE = ({
|
|
|
424
425
|
onAccountClick: (O) => {
|
|
425
426
|
e({ ...l, [O.guid]: !l[O.guid] });
|
|
426
427
|
},
|
|
427
|
-
onAccountGroupClick: (O, G,
|
|
428
|
+
onAccountGroupClick: (O, G, M) => {
|
|
428
429
|
const i = { ...l };
|
|
429
430
|
G[O].forEach((h) => {
|
|
430
|
-
i[h.guid] = !
|
|
431
|
+
i[h.guid] = !M;
|
|
431
432
|
}), e(i);
|
|
432
433
|
},
|
|
433
434
|
onCancelClick: () => {
|
|
@@ -445,7 +446,7 @@ const hE = ({
|
|
|
445
446
|
}
|
|
446
447
|
)
|
|
447
448
|
] });
|
|
448
|
-
},
|
|
449
|
+
}, hE = ({ status: E = t.Loading }) => {
|
|
449
450
|
const { connect: N } = o();
|
|
450
451
|
return /* @__PURE__ */ _(
|
|
451
452
|
$,
|
|
@@ -455,10 +456,10 @@ const hE = ({
|
|
|
455
456
|
position: "absolute",
|
|
456
457
|
width: "100%"
|
|
457
458
|
},
|
|
458
|
-
children: /* @__PURE__ */
|
|
459
|
+
children: /* @__PURE__ */ m(F, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
|
459
460
|
E === t.Loading && /* @__PURE__ */ _(lE, { color: "primary", size: 48 }),
|
|
460
461
|
/* @__PURE__ */ _(
|
|
461
|
-
|
|
462
|
+
n,
|
|
462
463
|
{
|
|
463
464
|
sx: {
|
|
464
465
|
color: "grey.600",
|
|
@@ -470,9 +471,9 @@ const hE = ({
|
|
|
470
471
|
] })
|
|
471
472
|
}
|
|
472
473
|
);
|
|
473
|
-
}, J = Q(
|
|
474
|
-
var t = /* @__PURE__ */ ((E) => (E.Loading = "loading", E.Error = "error", E))(t || {}),
|
|
475
|
-
const j = "connect_widget", rI = "connections_widget",
|
|
474
|
+
}, J = Q(hE);
|
|
475
|
+
var t = /* @__PURE__ */ ((E) => (E.Loading = "loading", E.Error = "error", E))(t || {}), fE = /* @__PURE__ */ ((E) => (E.Currency = "currency", E.Date = "date", E.Input = "input", E.Select = "select", E))(fE || {});
|
|
476
|
+
const j = "connect_widget", rI = "connections_widget", tE = ({
|
|
476
477
|
loadWidgetProps: E,
|
|
477
478
|
onClose: N,
|
|
478
479
|
showConnectWidget: I,
|
|
@@ -511,18 +512,18 @@ const j = "connect_widget", rI = "connections_widget", HE = ({
|
|
|
511
512
|
N(), a();
|
|
512
513
|
},
|
|
513
514
|
title: R,
|
|
514
|
-
children: /* @__PURE__ */
|
|
515
|
+
children: /* @__PURE__ */ m("div", { id: j, children: [
|
|
515
516
|
A && /* @__PURE__ */ _(J, { status: t.Error }),
|
|
516
517
|
C && /* @__PURE__ */ _(J, { status: t.Loading })
|
|
517
518
|
] })
|
|
518
519
|
}
|
|
519
520
|
);
|
|
520
|
-
}, RI = Q(
|
|
521
|
+
}, RI = Q(tE);
|
|
521
522
|
export {
|
|
522
523
|
T as A,
|
|
523
524
|
dE as C,
|
|
524
525
|
CE as E,
|
|
525
|
-
|
|
526
|
+
fE as F,
|
|
526
527
|
DE as M,
|
|
527
528
|
pE as N,
|
|
528
529
|
LE as P,
|
|
@@ -534,8 +535,8 @@ export {
|
|
|
534
535
|
J as e,
|
|
535
536
|
t as f,
|
|
536
537
|
AE as g,
|
|
537
|
-
|
|
538
|
-
|
|
538
|
+
PE as h,
|
|
539
|
+
uE as i,
|
|
539
540
|
sE as j,
|
|
540
541
|
NI as k,
|
|
541
542
|
RI as l,
|
|
@@ -3,9 +3,9 @@ import s from "react";
|
|
|
3
3
|
import { observer as E } from "mobx-react-lite";
|
|
4
4
|
import { useTheme as b } from "@mui/material/styles";
|
|
5
5
|
import { ConnectionsWidget as D } from "@mxenabled/web-widget-sdk";
|
|
6
|
-
import { d as a, e as c, f as i } from "./ConnectDrawer-
|
|
7
|
-
import { d as L, e as w, u as _ } from "./hooks-
|
|
8
|
-
import { D as x } from "./Drawer-
|
|
6
|
+
import { d as a, e as c, f as i } from "./ConnectDrawer-DVp54lUH.mjs";
|
|
7
|
+
import { d as L, e as w, u as _ } from "./hooks-C41HAxM5.mjs";
|
|
8
|
+
import { D as x } from "./Drawer-BF40nbsH.mjs";
|
|
9
9
|
const I = ({
|
|
10
10
|
onClose: l,
|
|
11
11
|
showConnectionsWidget: o,
|