@mx-cartographer/experiences 7.7.2 → 7.8.0-alpha-ram-goal-bug
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 +18 -0
- package/dist/Account-BiB1F8lL.mjs +118 -0
- package/dist/{Account-BfkKlfsW.mjs → Account-DuOz1a27.mjs} +1 -1
- package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
- package/dist/{AccountDetailsHeader-DqYIuhOs.mjs → AccountDetailsHeader-Cf2TUJnM.mjs} +4 -4
- package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
- package/dist/{AccountFields-yP8QdgPd.mjs → AccountFields-UdOvbQ5H.mjs} +7 -6
- package/dist/{AccountListItem-DMbu9ehd.mjs → AccountListItem-BPVxmNT_.mjs} +7 -7
- package/dist/AccountStore-BbPWe2C9.mjs +244 -0
- package/dist/Accounts-M-LTzStv.mjs +27 -0
- package/dist/{CategoryStore-Cnw9yUys.mjs → CategoryStore-BYICdb9m.mjs} +73 -73
- package/dist/CategoryUtil-meuejJqP.mjs +80 -0
- package/dist/{ConnectionsDrawer-BqR6FWJO.mjs → ConnectionsDrawer-BDpVTTSe.mjs} +1 -1
- package/dist/{DebtsStore-DuSdXM1k.mjs → DebtsStore-BIbOVCPe.mjs} +12 -12
- package/dist/{ExportCsvAction-HK5CeZWR.mjs → ExportCsvAction-CDuzTva1.mjs} +2 -2
- package/dist/GlobalAccountFilter-DQCPNc95.mjs +316 -0
- package/dist/GoalStore-B4LVt_kH.mjs +422 -0
- package/dist/{ManageIncome-BrTrlplL.mjs → ManageIncome-CL3hv8i9.mjs} +44 -44
- package/dist/NetWorthStore-yV43kJro.mjs +168 -0
- package/dist/{NotificationSettings-D4Vh3z8I.mjs → NotificationSettings-SPg3pwbX.mjs} +171 -169
- package/dist/{NotificationStore-CDX_kqHa.mjs → NotificationStore-Ck2KdNmT.mjs} +22 -14
- package/dist/{RecurringSettings-D2V6l77l.mjs → RecurringSettings-Bmnnpb48.mjs} +16 -16
- package/dist/{RecurringTransactionsStore-Caf1cq4v.mjs → RecurringTransactionsStore-BQBEJOPP.mjs} +91 -81
- package/dist/{RecurringTransactions-Bf4lX0Cn.mjs → RepeatingTransaction-miZVnk_A.mjs} +4 -4
- package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BHpuyujx.mjs} +1 -1
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingLegend-gTCJLLkV.mjs → SpendingLegend-CD60HCYS.mjs} +33 -33
- package/dist/{TransactionDetails-7MHOshKQ.mjs → TransactionDetails-BDhz3DLT.mjs} +2 -2
- package/dist/TransactionStore-BSp5bOKg.mjs +705 -0
- package/dist/{User-LJpEwPtn.mjs → User-B0LnmiKO.mjs} +21 -20
- package/dist/WidgetContainer-BbPS3Yxz.mjs +555 -0
- package/dist/accounts/index.es.js +421 -391
- package/dist/accounts/stores/AccountStore.d.ts +30 -23
- package/dist/accounts/utils/Accounts.d.ts +2 -1
- package/dist/budgets/index.es.js +546 -540
- package/dist/budgets/store/BudgetsStore.d.ts +1 -0
- package/dist/cashflow/index.es.js +444 -457
- package/dist/categories/index.es.js +1 -1
- package/dist/categories/stores/CategoryStore.d.ts +10 -5
- package/dist/categories/util/CategoryUtil.d.ts +3 -2
- package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
- package/dist/common/components/SkeletonLoader.d.ts +7 -0
- package/dist/common/components/WidgetContainer.d.ts +7 -6
- package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
- package/dist/common/components/index.d.ts +2 -2
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +459 -445
- package/dist/common/stores/AppDataStore.d.ts +3 -1
- package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
- package/dist/common/stores/GlobalStore.d.ts +3 -3
- package/dist/common/stores/GlobalUiStore.d.ts +10 -6
- package/dist/common/stores/UserStore.d.ts +3 -2
- package/dist/common/types/Account.d.ts +9 -6
- package/dist/dashboard/index.es.js +84 -116
- package/dist/debts/index.es.js +417 -413
- package/dist/{exportTransactionsToCSV-BrTYdSgJ.mjs → exportTransactionsToCSV-DtQ7ovAR.mjs} +1 -1
- package/dist/finstrong/index.es.js +1167 -1110
- package/dist/goals/index.es.js +618 -598
- package/dist/goals/stores/GoalStore.d.ts +19 -4
- package/dist/help/index.es.js +13 -13
- package/dist/investments/index.es.js +330 -325
- package/dist/investments/stores/HoldingStore.d.ts +1 -0
- package/dist/networth/components/NetWorthChart.d.ts +3 -2
- package/dist/networth/components/NetWorthList.d.ts +3 -3
- package/dist/networth/index.es.js +423 -433
- package/dist/networth/stores/NetWorthStore.d.ts +20 -9
- package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
- package/dist/notifications/index.es.js +90 -91
- package/dist/notifications/stores/NotificationStore.d.ts +3 -1
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +543 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +4 -2
- package/dist/settings/index.es.js +253 -248
- package/dist/spending/index.es.js +282 -301
- package/dist/transactions/index.es.js +269 -263
- package/dist/transactions/stores/TransactionStore.d.ts +26 -77
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +708 -699
- package/dist/{useAccountDisplayName-BTvP_pw6.mjs → useAccountDisplayName-Bot2tb4n.mjs} +1 -1
- package/package.json +3 -3
- package/dist/AccountStore-CWFzg8-E.mjs +0 -260
- package/dist/Accounts-CWt-NRq8.mjs +0 -9
- package/dist/CategoryUtil-DZflYFam.mjs +0 -78
- package/dist/ConnectDrawer-BOjfI6rz.mjs +0 -563
- package/dist/GoalStore-C7ahxxLi.mjs +0 -364
- package/dist/NetWorthStore-xWIo9CYU.mjs +0 -150
- package/dist/TransactionStore-DJwPaZuM.mjs +0 -677
- package/dist/WidgetContainer-CrK6tyHr.mjs +0 -572
- package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
- package/dist/common/components/accountfilter/index.d.ts +0 -1
- package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
|
@@ -7,6 +7,7 @@ export declare class AppDataStore {
|
|
|
7
7
|
api: AppDataApi;
|
|
8
8
|
bannerApi: BannerApi;
|
|
9
9
|
appData: AppData;
|
|
10
|
+
isAppDataLoaded: boolean;
|
|
10
11
|
banner: Banner;
|
|
11
12
|
constructor(globalStore: GlobalStore);
|
|
12
13
|
get appConfig(): AppConfig;
|
|
@@ -15,7 +16,8 @@ export declare class AppDataStore {
|
|
|
15
16
|
get user(): User;
|
|
16
17
|
get userCommunicationProfile(): UserCommunicationProfile;
|
|
17
18
|
get userProfile(): UserProfile;
|
|
18
|
-
|
|
19
|
+
setAppData: (appData: AppData) => void;
|
|
20
|
+
loadAppData: () => Promise<void>;
|
|
19
21
|
loadBanner: () => Promise<void>;
|
|
20
22
|
setUser: (user: User) => User;
|
|
21
23
|
setUserCommunicationProfile: (profile: UserCommunicationProfile) => UserCommunicationProfile;
|
|
@@ -8,7 +8,6 @@ export declare class GlobalCopyStore {
|
|
|
8
8
|
featureNamespace: string;
|
|
9
9
|
isInitialized: boolean;
|
|
10
10
|
constructor(globalStore: GlobalStore);
|
|
11
|
-
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
12
11
|
loadCopy: () => Promise<void>;
|
|
13
12
|
getCopy: (namespace: string, translationKey?: string) => Promise<void>;
|
|
14
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AccountStore } from '../../accounts';
|
|
2
2
|
import { AnalyticsStore } from '../../analytics/stores/AnalyticsStore';
|
|
3
|
-
import { BeatStore } from '../../insights
|
|
3
|
+
import { BeatStore } from '../../insights';
|
|
4
4
|
import { BudgetsStore } from '../../budgets/store/BudgetsStore';
|
|
5
5
|
import { CashflowStore } from '../../cashflow';
|
|
6
6
|
import { CategoryStore } from '../../categories';
|
|
@@ -21,8 +21,7 @@ import { ConnectStore } from './ConnectStore';
|
|
|
21
21
|
import { GlobalCopyStore } from './GlobalCopyStore';
|
|
22
22
|
import { GlobalUiStore } from './GlobalUiStore';
|
|
23
23
|
import { UserStore } from './UserStore';
|
|
24
|
-
import { Account, Category, Institution, Member } from '
|
|
25
|
-
import { AppConfig, AppData, Beat, GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
|
|
24
|
+
import { Account, Category, Institution, Member, AppConfig, AppData, Beat, GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
|
|
26
25
|
interface LoadDataProps {
|
|
27
26
|
accounts?: Account[];
|
|
28
27
|
appData?: AppData;
|
|
@@ -72,6 +71,7 @@ export declare class GlobalStore {
|
|
|
72
71
|
constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
|
|
73
72
|
get isInitialized(): boolean;
|
|
74
73
|
emitUpdate: (change: ObservedUpdate) => void;
|
|
74
|
+
loadConfigData: () => Promise<void>;
|
|
75
75
|
loadData: ({ accounts, appData, associatedBeats, categories, institutions, transactionRules, transactions, userFeatures, }?: LoadDataProps) => Promise<void>;
|
|
76
76
|
}
|
|
77
77
|
export {};
|
|
@@ -2,19 +2,23 @@ import { Account } from '../types';
|
|
|
2
2
|
import { GlobalStore } from './GlobalStore';
|
|
3
3
|
export declare class GlobalUiStore {
|
|
4
4
|
globalStore: GlobalStore;
|
|
5
|
-
|
|
6
|
-
selectedAccounts: Account[];
|
|
7
|
-
selectedAccountGuids: string[];
|
|
5
|
+
accountFilterMap: Map<string, boolean>;
|
|
8
6
|
displayedDate: Date;
|
|
9
7
|
displayedDateRange: {
|
|
10
8
|
start: Date;
|
|
11
9
|
end: Date;
|
|
12
10
|
};
|
|
13
11
|
constructor(globalStore: GlobalStore);
|
|
12
|
+
get allSelectedAccounts(): import('../types').DetailedAccount[];
|
|
13
|
+
get selectedAccounts(): import('../types').DetailedAccount[];
|
|
14
|
+
get selectedAccountGuids(): string[];
|
|
14
15
|
get isCopyLoaded(): boolean;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
get isConfigLoaded(): boolean;
|
|
17
|
+
get areUserFeaturesLoaded(): boolean;
|
|
18
|
+
get isInitialized(): boolean;
|
|
19
|
+
populateAccountFilterMap: (accounts: Account[]) => void;
|
|
20
|
+
resetAccountFilterMap: () => void;
|
|
21
|
+
updateAccountFilterMap: (guid: string, isIncluded: boolean) => void;
|
|
18
22
|
setDisplayedDate: (startDate: Date, endDate: Date) => void;
|
|
19
23
|
get shouldDisableNextDate(): boolean;
|
|
20
24
|
get shouldDisablePrevDate(): boolean;
|
|
@@ -5,11 +5,12 @@ export declare class UserStore {
|
|
|
5
5
|
globalStore: GlobalStore;
|
|
6
6
|
api: UserApi;
|
|
7
7
|
userFeatures: UserFeature[];
|
|
8
|
+
userFeaturesLoaded: boolean;
|
|
8
9
|
constructor(globalStore: GlobalStore);
|
|
9
|
-
initialize: (endpoint: string, token: string) => Promise<void>;
|
|
10
10
|
get userProfile(): UserProfile;
|
|
11
11
|
get user(): User;
|
|
12
|
-
|
|
12
|
+
setUserFeatures: (features: UserFeature[]) => void;
|
|
13
|
+
loadUserFeatures: () => Promise<void>;
|
|
13
14
|
updateUser: (user: User) => Promise<void>;
|
|
14
15
|
updateUserProfile: (userProfile: UserProfile) => Promise<void>;
|
|
15
16
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Institution } from './Institution';
|
|
1
2
|
export interface Account {
|
|
2
3
|
account_number?: string;
|
|
3
4
|
account_subtype?: AccountSubType;
|
|
@@ -64,17 +65,20 @@ export interface Account {
|
|
|
64
65
|
memberName?: string;
|
|
65
66
|
connectionStatus?: ConnectionStatus;
|
|
66
67
|
displayName?: string;
|
|
67
|
-
|
|
68
|
+
trucatedDisplayName?: string;
|
|
68
69
|
institutionName?: string;
|
|
69
70
|
}
|
|
70
71
|
export interface DetailedAccount extends Account {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
connectionStatus?: ConnectionStatus;
|
|
73
|
+
displayName?: string;
|
|
74
|
+
institutionName?: string;
|
|
75
|
+
member?: Member;
|
|
76
|
+
monthlyBalances?: MonthlyAccountBalance[];
|
|
77
|
+
institution?: Institution;
|
|
74
78
|
}
|
|
75
79
|
export interface Member {
|
|
76
80
|
aggregation_status: number;
|
|
77
|
-
connection_status:
|
|
81
|
+
connection_status: ConnectionStatusEnums;
|
|
78
82
|
guid: string;
|
|
79
83
|
institution_guid: string;
|
|
80
84
|
institution_name?: string;
|
|
@@ -98,7 +102,6 @@ export interface Member {
|
|
|
98
102
|
verification_is_enabled: boolean;
|
|
99
103
|
tax_statement_is_enabled: boolean;
|
|
100
104
|
successfully_aggregated_at?: number;
|
|
101
|
-
connectionStatus?: ConnectionStatus;
|
|
102
105
|
}
|
|
103
106
|
export interface MonthlyAccountBalance {
|
|
104
107
|
account_guid: string;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import o from "react";
|
|
3
|
+
import { observer as p } from "mobx-react-lite";
|
|
4
|
+
import u from "@mui/material/Unstable_Grid2";
|
|
5
|
+
import m from "@mui/material/Skeleton";
|
|
6
6
|
import s from "@mui/material/Stack";
|
|
7
|
-
import
|
|
8
|
-
import { f as
|
|
9
|
-
import
|
|
10
|
-
import { Icon as
|
|
11
|
-
import { useMediaQuery as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import { u as
|
|
19
|
-
import { u as
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
appDataStore: { banner: r, loadBanner: i, user:
|
|
23
|
-
} =
|
|
24
|
-
return
|
|
7
|
+
import S from "@mui/material/styles/useTheme";
|
|
8
|
+
import { f as b, u as _, a as v } from "../hooks-ZMp65DFz.mjs";
|
|
9
|
+
import M from "@mui/material/Paper";
|
|
10
|
+
import { Icon as w, H2 as C, P as D } from "@mxenabled/mxui";
|
|
11
|
+
import { useMediaQuery as G } from "@mui/system";
|
|
12
|
+
import W from "@mui/material/Box";
|
|
13
|
+
import k from "@mui/material/Button";
|
|
14
|
+
import A from "@mui/material/IconButton";
|
|
15
|
+
import I from "@mui/material/Tooltip";
|
|
16
|
+
import B from "@mui/material/useMediaQuery";
|
|
17
|
+
import { G as F, b as $ } from "../GlobalAccountFilter-DQCPNc95.mjs";
|
|
18
|
+
import { u as y } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
19
|
+
import { u as z } from "../useWidgetLoadTimer-hIOioiKx.mjs";
|
|
20
|
+
const H = p(() => {
|
|
21
|
+
const t = S(), {
|
|
22
|
+
appDataStore: { banner: r, loadBanner: i, user: a }
|
|
23
|
+
} = b();
|
|
24
|
+
return o.useEffect(() => {
|
|
25
25
|
i().finally();
|
|
26
|
-
}, [
|
|
26
|
+
}, [a]), r?.image_url ? /* @__PURE__ */ e(
|
|
27
27
|
s,
|
|
28
28
|
{
|
|
29
29
|
sx: {
|
|
@@ -31,7 +31,7 @@ const N = _(() => {
|
|
|
31
31
|
width: "100%",
|
|
32
32
|
mb: 24
|
|
33
33
|
},
|
|
34
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ e(
|
|
35
35
|
"a",
|
|
36
36
|
{
|
|
37
37
|
href: r?.redirect_url,
|
|
@@ -40,7 +40,7 @@ const N = _(() => {
|
|
|
40
40
|
width: "100%"
|
|
41
41
|
},
|
|
42
42
|
target: "_blank",
|
|
43
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ e(
|
|
44
44
|
"img",
|
|
45
45
|
{
|
|
46
46
|
alt: "",
|
|
@@ -48,7 +48,7 @@ const N = _(() => {
|
|
|
48
48
|
style: {
|
|
49
49
|
width: "100%",
|
|
50
50
|
height: "auto",
|
|
51
|
-
border: `1px solid ${
|
|
51
|
+
border: `1px solid ${t.palette.grey[300]}`
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
)
|
|
@@ -56,27 +56,27 @@ const N = _(() => {
|
|
|
56
56
|
)
|
|
57
57
|
}
|
|
58
58
|
) : null;
|
|
59
|
-
}),
|
|
60
|
-
const { common: r } =
|
|
61
|
-
return /* @__PURE__ */
|
|
62
|
-
|
|
59
|
+
}), R = ({ handleConnectClick: t }) => {
|
|
60
|
+
const { common: r } = _(), i = B("(max-width: 700px)");
|
|
61
|
+
return /* @__PURE__ */ e(W, { my: 4, children: i ? /* @__PURE__ */ e(I, { id: "add-accounts", placement: "bottom", title: r.add_accounts, children: /* @__PURE__ */ e(
|
|
62
|
+
A,
|
|
63
63
|
{
|
|
64
64
|
"aria-controls": "add_accounts",
|
|
65
65
|
"aria-describedby": "add-accounts",
|
|
66
66
|
"aria-haspopup": !0,
|
|
67
67
|
"aria-label": r.add_accounts,
|
|
68
68
|
color: "primary",
|
|
69
|
-
onClick:
|
|
70
|
-
children: /* @__PURE__ */
|
|
69
|
+
onClick: t,
|
|
70
|
+
children: /* @__PURE__ */ e(w, { name: "add", size: 24 })
|
|
71
71
|
}
|
|
72
|
-
) }) : /* @__PURE__ */
|
|
73
|
-
|
|
72
|
+
) }) : /* @__PURE__ */ e(
|
|
73
|
+
k,
|
|
74
74
|
{
|
|
75
75
|
"aria-controls": "add_accounts",
|
|
76
76
|
"aria-haspopup": !0,
|
|
77
77
|
"aria-label": r.add_accounts,
|
|
78
|
-
onClick:
|
|
79
|
-
startIcon: /* @__PURE__ */
|
|
78
|
+
onClick: t,
|
|
79
|
+
startIcon: /* @__PURE__ */ e(w, { name: "add", size: 24 }),
|
|
80
80
|
sx: {
|
|
81
81
|
p: 12,
|
|
82
82
|
whiteSpace: "nowrap",
|
|
@@ -86,100 +86,68 @@ const N = _(() => {
|
|
|
86
86
|
children: r.add_accounts
|
|
87
87
|
}
|
|
88
88
|
) });
|
|
89
|
-
},
|
|
90
|
-
const [
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
cancelButton: o.cancel_button,
|
|
94
|
-
filterButton: o.filter_button,
|
|
95
|
-
filterButtonAria: o.account_filter.filter_button_generic_aria,
|
|
96
|
-
selectAllAccounts: o.account_filter.select_all_accounts,
|
|
97
|
-
toggleAccountTypeAccounts: o.account_filter.toggle_account_type_accounts,
|
|
98
|
-
unselectAllAccounts: o.account_filter.unselect_all_accounts,
|
|
99
|
-
zeroStateButton: o.account_filter.zero_state_button,
|
|
100
|
-
zeroStateDescription: o.account_filter.zero_state_description,
|
|
101
|
-
zeroStateTitle: o.account_filter.zero_state_title
|
|
102
|
-
},
|
|
103
|
-
title: o.filter_button
|
|
104
|
-
}, w = () => {
|
|
105
|
-
const p = (/* @__PURE__ */ new Date()).getHours();
|
|
106
|
-
return p > 1 && p < 12 ? o.good_morning : p >= 12 && p < 18 ? o.good_afternoon : o.good_evening;
|
|
89
|
+
}, T = p(R), j = () => {
|
|
90
|
+
const [t, r] = o.useState(!1), i = G("(max-width:320px)"), { common: a, connect: g } = _(), { config: d } = v(), { isMobile: f } = y(), x = () => {
|
|
91
|
+
const l = (/* @__PURE__ */ new Date()).getHours();
|
|
92
|
+
return l > 1 && l < 12 ? a.good_morning : l >= 12 && l < 18 ? a.good_afternoon : a.good_evening;
|
|
107
93
|
};
|
|
108
|
-
return /* @__PURE__ */
|
|
109
|
-
/* @__PURE__ */
|
|
110
|
-
/* @__PURE__ */
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
94
|
+
return /* @__PURE__ */ c(o.Fragment, { children: [
|
|
95
|
+
/* @__PURE__ */ e(M, { sx: { gap: 12, mb: f ? 24 : 0, p: 24 }, children: /* @__PURE__ */ c(s, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
96
|
+
/* @__PURE__ */ c(s, { children: [
|
|
97
|
+
/* @__PURE__ */ e(C, { variant: i ? "H2" : "H1", children: x() }),
|
|
98
|
+
/* @__PURE__ */ e(D, { color: "text.secondary", children: a.heres_your_spending_overview })
|
|
113
99
|
] }),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
j,
|
|
118
|
-
{
|
|
119
|
-
accounts: u,
|
|
120
|
-
copy: n,
|
|
121
|
-
onConnectAccountClick: m.show_connections_widget_in_master ? () => r(!0) : void 0,
|
|
122
|
-
onFilterClick: (y) => {
|
|
123
|
-
b(y);
|
|
124
|
-
},
|
|
125
|
-
selectedAccountGuids: g,
|
|
126
|
-
showAccountNumbers: !1,
|
|
127
|
-
sx: {
|
|
128
|
-
maxWidth: "100%"
|
|
129
|
-
},
|
|
130
|
-
variant: "text"
|
|
131
|
-
}
|
|
132
|
-
)
|
|
100
|
+
/* @__PURE__ */ c(s, { flexDirection: "row", children: [
|
|
101
|
+
d.show_connections_widget_in_master && /* @__PURE__ */ e(T, { handleConnectClick: () => r(!0) }),
|
|
102
|
+
/* @__PURE__ */ e(F, {})
|
|
133
103
|
] })
|
|
134
104
|
] }) }),
|
|
135
|
-
|
|
136
|
-
|
|
105
|
+
t && /* @__PURE__ */ e(
|
|
106
|
+
$,
|
|
137
107
|
{
|
|
138
108
|
onClose: () => r(!1),
|
|
139
|
-
showConnectWidget:
|
|
140
|
-
title:
|
|
109
|
+
showConnectWidget: t,
|
|
110
|
+
title: g.mini_title
|
|
141
111
|
}
|
|
142
112
|
)
|
|
143
113
|
] });
|
|
144
|
-
},
|
|
145
|
-
var
|
|
146
|
-
const
|
|
147
|
-
const { isDesktop: i, isMobile:
|
|
148
|
-
|
|
149
|
-
b(o);
|
|
150
|
-
}, [o]), E({
|
|
114
|
+
}, Q = p(j);
|
|
115
|
+
var h = /* @__PURE__ */ ((t) => (t[t.Main = 0] = "Main", t[t.RightSide = 1] = "RightSide", t[t.Disabled = 2] = "Disabled", t))(h || {});
|
|
116
|
+
const P = ({ widgets: t, isLoading: r }) => {
|
|
117
|
+
const { isDesktop: i, isMobile: a } = y(), { copyStore: g } = b();
|
|
118
|
+
z({
|
|
151
119
|
widgetName: "Dashboard",
|
|
152
120
|
isLoaded: !r
|
|
153
121
|
});
|
|
154
|
-
const
|
|
155
|
-
() =>
|
|
156
|
-
[
|
|
157
|
-
),
|
|
158
|
-
() =>
|
|
159
|
-
[
|
|
160
|
-
), x =
|
|
161
|
-
() =>
|
|
162
|
-
[
|
|
122
|
+
const d = o.useMemo(
|
|
123
|
+
() => t.filter((n) => n.location !== h.Disabled).sort((n, l) => n.index - l.index),
|
|
124
|
+
[t]
|
|
125
|
+
), f = o.useMemo(
|
|
126
|
+
() => d.filter((n) => n.location === h.Main),
|
|
127
|
+
[d]
|
|
128
|
+
), x = o.useMemo(
|
|
129
|
+
() => d.filter((n) => n.location === h.RightSide),
|
|
130
|
+
[d]
|
|
163
131
|
);
|
|
164
|
-
return /* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
r && /* @__PURE__ */
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
/* @__PURE__ */
|
|
132
|
+
return /* @__PURE__ */ c(u, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
133
|
+
/* @__PURE__ */ e(u, { xs: 12, children: g.isInitialized && /* @__PURE__ */ e(Q, {}) }),
|
|
134
|
+
/* @__PURE__ */ c(u, { lg: 8, xs: 12, children: [
|
|
135
|
+
/* @__PURE__ */ e(H, {}),
|
|
136
|
+
r && /* @__PURE__ */ c(s, { direction: "column", spacing: 24, children: [
|
|
137
|
+
/* @__PURE__ */ e(m, { height: 100, variant: "rounded", width: "100%" }),
|
|
138
|
+
/* @__PURE__ */ e(m, { height: 300, variant: "rounded", width: "100%" }),
|
|
139
|
+
/* @__PURE__ */ e(m, { height: 300, variant: "rounded", width: "100%" })
|
|
172
140
|
] }),
|
|
173
|
-
!r && /* @__PURE__ */
|
|
141
|
+
!r && /* @__PURE__ */ e(s, { direction: "column", spacing: 24, children: i ? f.map((n) => /* @__PURE__ */ e(o.Fragment, { children: n.component }, n.index)) : d.map((n) => /* @__PURE__ */ e(o.Fragment, { children: n.component }, n.index)) })
|
|
174
142
|
] }),
|
|
175
|
-
i && /* @__PURE__ */
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
/* @__PURE__ */
|
|
179
|
-
] }) : /* @__PURE__ */
|
|
143
|
+
i && /* @__PURE__ */ e(u, { lg: 4, children: r ? /* @__PURE__ */ c(s, { direction: "column", spacing: 24, children: [
|
|
144
|
+
/* @__PURE__ */ e(m, { height: 200, variant: "rounded", width: "100%" }),
|
|
145
|
+
/* @__PURE__ */ e(m, { height: 100, variant: "rounded", width: "100%" }),
|
|
146
|
+
/* @__PURE__ */ e(m, { height: 300, variant: "rounded", width: "100%" })
|
|
147
|
+
] }) : /* @__PURE__ */ e(s, { direction: "column", spacing: 24, children: x.map((n) => /* @__PURE__ */ e(o.Fragment, { children: n.component }, n.index)) }) })
|
|
180
148
|
] });
|
|
181
|
-
},
|
|
149
|
+
}, ce = p(P);
|
|
182
150
|
export {
|
|
183
|
-
|
|
184
|
-
|
|
151
|
+
ce as Dashboard,
|
|
152
|
+
h as DashboardLocation
|
|
185
153
|
};
|