@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.
Files changed (92) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/Account-BiB1F8lL.mjs +118 -0
  3. package/dist/{Account-BfkKlfsW.mjs → Account-DuOz1a27.mjs} +1 -1
  4. package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
  5. package/dist/{AccountDetailsHeader-DqYIuhOs.mjs → AccountDetailsHeader-Cf2TUJnM.mjs} +4 -4
  6. package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
  7. package/dist/{AccountFields-yP8QdgPd.mjs → AccountFields-UdOvbQ5H.mjs} +7 -6
  8. package/dist/{AccountListItem-DMbu9ehd.mjs → AccountListItem-BPVxmNT_.mjs} +7 -7
  9. package/dist/AccountStore-BbPWe2C9.mjs +244 -0
  10. package/dist/Accounts-M-LTzStv.mjs +27 -0
  11. package/dist/{CategoryStore-Cnw9yUys.mjs → CategoryStore-BYICdb9m.mjs} +73 -73
  12. package/dist/CategoryUtil-meuejJqP.mjs +80 -0
  13. package/dist/{ConnectionsDrawer-BqR6FWJO.mjs → ConnectionsDrawer-BDpVTTSe.mjs} +1 -1
  14. package/dist/{DebtsStore-DuSdXM1k.mjs → DebtsStore-BIbOVCPe.mjs} +12 -12
  15. package/dist/{ExportCsvAction-HK5CeZWR.mjs → ExportCsvAction-CDuzTva1.mjs} +2 -2
  16. package/dist/GlobalAccountFilter-DQCPNc95.mjs +316 -0
  17. package/dist/GoalStore-B4LVt_kH.mjs +422 -0
  18. package/dist/{ManageIncome-BrTrlplL.mjs → ManageIncome-CL3hv8i9.mjs} +44 -44
  19. package/dist/NetWorthStore-yV43kJro.mjs +168 -0
  20. package/dist/{NotificationSettings-D4Vh3z8I.mjs → NotificationSettings-SPg3pwbX.mjs} +171 -169
  21. package/dist/{NotificationStore-CDX_kqHa.mjs → NotificationStore-Ck2KdNmT.mjs} +22 -14
  22. package/dist/{RecurringSettings-D2V6l77l.mjs → RecurringSettings-Bmnnpb48.mjs} +16 -16
  23. package/dist/{RecurringTransactionsStore-Caf1cq4v.mjs → RecurringTransactionsStore-BQBEJOPP.mjs} +91 -81
  24. package/dist/{RecurringTransactions-Bf4lX0Cn.mjs → RepeatingTransaction-miZVnk_A.mjs} +4 -4
  25. package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BHpuyujx.mjs} +1 -1
  26. package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
  27. package/dist/{SpendingLegend-gTCJLLkV.mjs → SpendingLegend-CD60HCYS.mjs} +33 -33
  28. package/dist/{TransactionDetails-7MHOshKQ.mjs → TransactionDetails-BDhz3DLT.mjs} +2 -2
  29. package/dist/TransactionStore-BSp5bOKg.mjs +705 -0
  30. package/dist/{User-LJpEwPtn.mjs → User-B0LnmiKO.mjs} +21 -20
  31. package/dist/WidgetContainer-BbPS3Yxz.mjs +555 -0
  32. package/dist/accounts/index.es.js +421 -391
  33. package/dist/accounts/stores/AccountStore.d.ts +30 -23
  34. package/dist/accounts/utils/Accounts.d.ts +2 -1
  35. package/dist/budgets/index.es.js +546 -540
  36. package/dist/budgets/store/BudgetsStore.d.ts +1 -0
  37. package/dist/cashflow/index.es.js +444 -457
  38. package/dist/categories/index.es.js +1 -1
  39. package/dist/categories/stores/CategoryStore.d.ts +10 -5
  40. package/dist/categories/util/CategoryUtil.d.ts +3 -2
  41. package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
  42. package/dist/common/components/SkeletonLoader.d.ts +7 -0
  43. package/dist/common/components/WidgetContainer.d.ts +7 -6
  44. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
  45. package/dist/common/components/index.d.ts +2 -2
  46. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  47. package/dist/common/index.es.js +459 -445
  48. package/dist/common/stores/AppDataStore.d.ts +3 -1
  49. package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
  50. package/dist/common/stores/GlobalStore.d.ts +3 -3
  51. package/dist/common/stores/GlobalUiStore.d.ts +10 -6
  52. package/dist/common/stores/UserStore.d.ts +3 -2
  53. package/dist/common/types/Account.d.ts +9 -6
  54. package/dist/dashboard/index.es.js +84 -116
  55. package/dist/debts/index.es.js +417 -413
  56. package/dist/{exportTransactionsToCSV-BrTYdSgJ.mjs → exportTransactionsToCSV-DtQ7ovAR.mjs} +1 -1
  57. package/dist/finstrong/index.es.js +1167 -1110
  58. package/dist/goals/index.es.js +618 -598
  59. package/dist/goals/stores/GoalStore.d.ts +19 -4
  60. package/dist/help/index.es.js +13 -13
  61. package/dist/investments/index.es.js +330 -325
  62. package/dist/investments/stores/HoldingStore.d.ts +1 -0
  63. package/dist/networth/components/NetWorthChart.d.ts +3 -2
  64. package/dist/networth/components/NetWorthList.d.ts +3 -3
  65. package/dist/networth/index.es.js +423 -433
  66. package/dist/networth/stores/NetWorthStore.d.ts +20 -9
  67. package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
  68. package/dist/notifications/index.es.js +90 -91
  69. package/dist/notifications/stores/NotificationStore.d.ts +3 -1
  70. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
  71. package/dist/recurringtransactions/index.es.js +543 -562
  72. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +4 -2
  73. package/dist/settings/index.es.js +253 -248
  74. package/dist/spending/index.es.js +282 -301
  75. package/dist/transactions/index.es.js +269 -263
  76. package/dist/transactions/stores/TransactionStore.d.ts +26 -77
  77. package/dist/transactions/stores/UiStore.d.ts +0 -2
  78. package/dist/trends/index.es.js +708 -699
  79. package/dist/{useAccountDisplayName-BTvP_pw6.mjs → useAccountDisplayName-Bot2tb4n.mjs} +1 -1
  80. package/package.json +3 -3
  81. package/dist/AccountStore-CWFzg8-E.mjs +0 -260
  82. package/dist/Accounts-CWt-NRq8.mjs +0 -9
  83. package/dist/CategoryUtil-DZflYFam.mjs +0 -78
  84. package/dist/ConnectDrawer-BOjfI6rz.mjs +0 -563
  85. package/dist/GoalStore-C7ahxxLi.mjs +0 -364
  86. package/dist/NetWorthStore-xWIo9CYU.mjs +0 -150
  87. package/dist/TransactionStore-DJwPaZuM.mjs +0 -677
  88. package/dist/WidgetContainer-CrK6tyHr.mjs +0 -572
  89. package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
  90. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
  91. package/dist/common/components/accountfilter/index.d.ts +0 -1
  92. 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
- loadAppData: (appDataOverrides?: AppData) => Promise<void>;
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/store/BeatStore';
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 '../../common';
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
- isInitialized: boolean;
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
- setInitialized: (isInitialized: boolean) => void;
16
- setSelectedAccounts: (accounts: Account[]) => void;
17
- setSelectedAccountGuids: (guids: string[]) => Promise<void>;
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
- loadUserFeatures: (featuresOverrides?: UserFeature[]) => Promise<void>;
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
- truncatedDisplayName?: string;
68
+ trucatedDisplayName?: string;
68
69
  institutionName?: string;
69
70
  }
70
71
  export interface DetailedAccount extends Account {
71
- institution_name: string;
72
- isEnabled: boolean;
73
- name: string;
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: number;
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 t, jsxs as a } from "react/jsx-runtime";
2
- import c from "react";
3
- import { observer as _ } from "mobx-react-lite";
4
- import h from "@mui/material/Unstable_Grid2";
5
- import d from "@mui/material/Skeleton";
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 D from "@mui/material/styles/useTheme";
8
- import { f as A, u as v, d as C, b as M, a as k } from "../hooks-ZMp65DFz.mjs";
9
- import B from "@mui/material/Paper";
10
- import { Icon as S, H2 as G, P as F } from "@mxenabled/mxui";
11
- import { useMediaQuery as W } from "@mui/system";
12
- import T from "@mui/material/Box";
13
- import I from "@mui/material/Button";
14
- import $ from "@mui/material/IconButton";
15
- import H from "@mui/material/Tooltip";
16
- import R from "@mui/material/useMediaQuery";
17
- import { k as j, l as Q } from "../ConnectDrawer-BOjfI6rz.mjs";
18
- import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
19
- import { u as E } from "../useWidgetLoadTimer-hIOioiKx.mjs";
20
- const N = _(() => {
21
- const e = D(), {
22
- appDataStore: { banner: r, loadBanner: i, user: u }
23
- } = A();
24
- return c.useEffect(() => {
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
- }, [u]), r?.image_url ? /* @__PURE__ */ t(
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__ */ t(
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__ */ t(
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 ${e.palette.grey[300]}`
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
- }), P = ({ handleConnectClick: e }) => {
60
- const { common: r } = v(), i = R("(max-width: 700px)");
61
- return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t(H, { id: "add-accounts", placement: "bottom", title: r.add_accounts, children: /* @__PURE__ */ t(
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: e,
70
- children: /* @__PURE__ */ t(S, { name: "add", size: 24 })
69
+ onClick: t,
70
+ children: /* @__PURE__ */ e(w, { name: "add", size: 24 })
71
71
  }
72
- ) }) : /* @__PURE__ */ t(
73
- I,
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: e,
79
- startIcon: /* @__PURE__ */ t(S, { name: "add", size: 24 }),
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
- }, O = _(P), U = () => {
90
- const [e, r] = c.useState(!1), i = W("(max-width:320px)"), { visibleAccounts: u } = C(), { selectedAccountGuids: g, setSelectedAccountGuids: b } = M(), { common: o, connect: l } = v(), { config: m } = k(), { isMobile: x } = z(), n = {
91
- accountFilterOptionsCopy: {
92
- accountTypeAccounts: o.account_filter.account_type_accounts,
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__ */ a(c.Fragment, { children: [
109
- /* @__PURE__ */ t(B, { sx: { gap: 12, mb: x ? 24 : 0, p: 24 }, children: /* @__PURE__ */ a(s, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
110
- /* @__PURE__ */ a(s, { children: [
111
- /* @__PURE__ */ t(G, { variant: i ? "H2" : "H1", children: w() }),
112
- /* @__PURE__ */ t(F, { color: "text.secondary", children: o.heres_your_spending_overview })
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__ */ a(s, { flexDirection: "row", children: [
115
- m.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => r(!0) }),
116
- /* @__PURE__ */ t(
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
- e && /* @__PURE__ */ t(
136
- Q,
105
+ t && /* @__PURE__ */ e(
106
+ $,
137
107
  {
138
108
  onClose: () => r(!1),
139
- showConnectWidget: e,
140
- title: l.mini_title
109
+ showConnectWidget: t,
110
+ title: g.mini_title
141
111
  }
142
112
  )
143
113
  ] });
144
- }, q = _(U);
145
- var f = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(f || {});
146
- const J = ({ widgets: e, isLoading: r }) => {
147
- const { isDesktop: i, isMobile: u } = z(), { copyStore: g } = A(), { setSelectedAccounts: b } = M(), { visibleAccounts: o } = C();
148
- c.useEffect(() => {
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 l = c.useMemo(
155
- () => e.filter((n) => n.location !== f.Disabled).sort((n, w) => n.index - w.index),
156
- [e]
157
- ), m = c.useMemo(
158
- () => l.filter((n) => n.location === f.Main),
159
- [l]
160
- ), x = c.useMemo(
161
- () => l.filter((n) => n.location === f.RightSide),
162
- [l]
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__ */ a(h, { container: !0, spacing: u ? 0 : 24, sx: { overflow: "scroll" }, children: [
165
- /* @__PURE__ */ t(h, { xs: 12, children: g.isInitialized && /* @__PURE__ */ t(q, {}) }),
166
- /* @__PURE__ */ a(h, { lg: 8, xs: 12, children: [
167
- /* @__PURE__ */ t(N, {}),
168
- r && /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
169
- /* @__PURE__ */ t(d, { height: 100, variant: "rounded", width: "100%" }),
170
- /* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" }),
171
- /* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" })
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__ */ t(s, { direction: "column", spacing: 24, children: i ? m.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) : l.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) })
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__ */ t(h, { lg: 4, children: r ? /* @__PURE__ */ a(s, { direction: "column", spacing: 24, children: [
176
- /* @__PURE__ */ t(d, { height: 200, variant: "rounded", width: "100%" }),
177
- /* @__PURE__ */ t(d, { height: 100, variant: "rounded", width: "100%" }),
178
- /* @__PURE__ */ t(d, { height: 300, variant: "rounded", width: "100%" })
179
- ] }) : /* @__PURE__ */ t(s, { direction: "column", spacing: 24, children: x.map((n) => /* @__PURE__ */ t(c.Fragment, { children: n.component }, n.index)) }) })
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
- }, pt = _(J);
149
+ }, ce = p(P);
182
150
  export {
183
- pt as Dashboard,
184
- f as DashboardLocation
151
+ ce as Dashboard,
152
+ h as DashboardLocation
185
153
  };