@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.mega1

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 (154) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
  4. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
  5. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
  6. package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
  7. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
  10. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  11. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +27 -27
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
  16. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  19. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  21. package/dist/Drawer-By9V-B5L.mjs +178 -0
  22. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
  23. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  24. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
  25. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
  28. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  29. package/dist/LineChart-KpPw1phO.mjs +580 -0
  30. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
  31. package/dist/Loader-DUaFpDGv.mjs +24 -0
  32. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
  33. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  34. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  35. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
  36. package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
  37. package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
  38. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
  39. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
  40. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
  41. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
  42. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  43. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  44. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  45. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  46. package/dist/SpendingData-DQ1b9uqq.mjs +53 -0
  47. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
  48. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  49. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  50. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  51. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  52. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  53. package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
  54. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
  55. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
  56. package/dist/accounts/index.es.js +200 -197
  57. package/dist/accounts/stores/AccountStore.d.ts +22 -25
  58. package/dist/accounts/utils/Accounts.d.ts +1 -2
  59. package/dist/analytics/index.es.js +27 -27
  60. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  61. package/dist/budgets/index.es.js +703 -669
  62. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  63. package/dist/cashflow/index.es.js +420 -404
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +3 -6
  66. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  67. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  68. package/dist/common/components/Loader.d.ts +2 -1
  69. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  70. package/dist/common/components/barchart/Bar.d.ts +25 -0
  71. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  72. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  73. package/dist/common/components/barchart/Legend.d.ts +8 -0
  74. package/dist/common/components/barchart/Util.d.ts +42 -0
  75. package/dist/common/components/barchart/index.d.ts +1 -0
  76. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  77. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  78. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  79. package/dist/common/components/index.d.ts +1 -0
  80. package/dist/common/hooks/index.d.ts +2 -0
  81. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  82. package/dist/common/hooks/usePrevious.d.ts +2 -0
  83. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  84. package/dist/common/index.es.js +712 -436
  85. package/dist/common/stores/AppDataStore.d.ts +1 -3
  86. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  87. package/dist/common/stores/GlobalStore.d.ts +3 -3
  88. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  89. package/dist/common/stores/UserStore.d.ts +2 -3
  90. package/dist/common/types/Account.d.ts +6 -9
  91. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  92. package/dist/common/utils/Theme.d.ts +3 -1
  93. package/dist/dashboard/index.es.js +93 -91
  94. package/dist/debts/components/DebtsChart.d.ts +2 -1
  95. package/dist/debts/index.es.js +529 -527
  96. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
  97. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  98. package/dist/finstrong/index.es.js +876 -867
  99. package/dist/goals/index.es.js +526 -525
  100. package/dist/goals/stores/GoalStore.d.ts +4 -17
  101. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  102. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  103. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  104. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  105. package/dist/help/index.es.js +13 -9
  106. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  107. package/dist/investments/index.es.js +534 -531
  108. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  109. package/dist/merchants/index.es.js +8 -8
  110. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  111. package/dist/microinsights/index.d.ts +1 -0
  112. package/dist/microinsights/index.es.js +101 -14
  113. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  114. package/dist/networth/index.es.js +284 -285
  115. package/dist/notifications/index.es.js +95 -94
  116. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  117. package/dist/recurringtransactions/index.es.js +582 -562
  118. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
  119. package/dist/settings/index.es.js +340 -337
  120. package/dist/spending/index.es.js +281 -268
  121. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  122. package/dist/transactions/index.es.js +253 -255
  123. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  124. package/dist/transactions/stores/UiStore.d.ts +2 -0
  125. package/dist/trends/components/TrendsTable.d.ts +0 -2
  126. package/dist/trends/index.es.js +838 -793
  127. package/dist/trends/utils/TrendsData.d.ts +1 -0
  128. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  129. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  130. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  131. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  132. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  133. package/package.json +57 -52
  134. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  135. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  136. package/dist/Accounts-CRUehOiy.mjs +0 -27
  137. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  138. package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
  139. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  140. package/dist/Drawer-BF40nbsH.mjs +0 -163
  141. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  142. package/dist/LineChart-C1PxNf7P.mjs +0 -581
  143. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  144. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  145. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  146. package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
  147. package/dist/SearchBox-B7km148n.mjs +0 -39
  148. package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
  149. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  150. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
  151. package/dist/TransactionStore-DbwAutwC.mjs +0 -671
  152. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  153. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  154. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
@@ -7,7 +7,6 @@ export declare class AppDataStore {
7
7
  api: AppDataApi;
8
8
  bannerApi: BannerApi;
9
9
  appData: AppData;
10
- isAppDataLoaded: boolean;
11
10
  banner: Banner;
12
11
  constructor(globalStore: GlobalStore);
13
12
  get appConfig(): AppConfig;
@@ -16,8 +15,7 @@ export declare class AppDataStore {
16
15
  get user(): User;
17
16
  get userCommunicationProfile(): UserCommunicationProfile;
18
17
  get userProfile(): UserProfile;
19
- setAppData: (appData: AppData) => void;
20
- loadAppData: () => Promise<void>;
18
+ loadAppData: (appDataOverrides?: AppData) => Promise<void>;
21
19
  loadBanner: () => Promise<void>;
22
20
  setUser: (user: User) => User;
23
21
  setUserCommunicationProfile: (profile: UserCommunicationProfile) => UserCommunicationProfile;
@@ -8,6 +8,7 @@ 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>;
11
12
  loadCopy: () => Promise<void>;
12
13
  getCopy: (namespace: string, translationKey?: string) => Promise<void>;
13
14
  }
@@ -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/store/BeatStore';
4
4
  import { BudgetsStore } from '../../budgets/store/BudgetsStore';
5
5
  import { CashflowStore } from '../../cashflow';
6
6
  import { CategoryStore } from '../../categories';
@@ -21,7 +21,8 @@ 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, AppConfig, AppData, Beat, GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
24
+ import { Account, Category, Institution, Member } from '../../common';
25
+ import { AppConfig, AppData, Beat, GlobalErrorHandler, Tag, Tagging, Transaction, TransactionRule, UserFeature } from '../types';
25
26
  interface LoadDataProps {
26
27
  accounts?: Account[];
27
28
  appData?: AppData;
@@ -71,7 +72,6 @@ export declare class GlobalStore {
71
72
  constructor(appConfig?: AppConfig, endpoint?: string, onError?: GlobalErrorHandler, onStoreUpdate?: OnStoreUpdate);
72
73
  get isInitialized(): boolean;
73
74
  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,6 +2,7 @@ import { Account } from '../types';
2
2
  import { GlobalStore } from './GlobalStore';
3
3
  export declare class GlobalUiStore {
4
4
  globalStore: GlobalStore;
5
+ isInitialized: boolean;
5
6
  selectedAccounts: Account[];
6
7
  selectedAccountGuids: string[];
7
8
  displayedDate: Date;
@@ -11,9 +12,7 @@ export declare class GlobalUiStore {
11
12
  };
12
13
  constructor(globalStore: GlobalStore);
13
14
  get isCopyLoaded(): boolean;
14
- get isConfigLoaded(): boolean;
15
- get areUserFeaturesLoaded(): boolean;
16
- get isInitialized(): boolean;
15
+ setInitialized: (isInitialized: boolean) => void;
17
16
  setSelectedAccounts: (accounts: Account[]) => void;
18
17
  setSelectedAccountGuids: (guids: string[]) => Promise<void>;
19
18
  setDisplayedDate: (startDate: Date, endDate: Date) => void;
@@ -5,12 +5,11 @@ export declare class UserStore {
5
5
  globalStore: GlobalStore;
6
6
  api: UserApi;
7
7
  userFeatures: UserFeature[];
8
- userFeaturesLoaded: boolean;
9
8
  constructor(globalStore: GlobalStore);
9
+ initialize: (endpoint: string, token: string) => Promise<void>;
10
10
  get userProfile(): UserProfile;
11
11
  get user(): User;
12
- setUserFeatures: (features: UserFeature[]) => void;
13
- loadUserFeatures: () => Promise<void>;
12
+ loadUserFeatures: (featuresOverrides?: UserFeature[]) => Promise<void>;
14
13
  updateUser: (user: User) => Promise<void>;
15
14
  updateUserProfile: (userProfile: UserProfile) => Promise<void>;
16
15
  }
@@ -1,4 +1,3 @@
1
- import { Institution } from './Institution';
2
1
  export interface Account {
3
2
  account_number?: string;
4
3
  account_subtype?: AccountSubType;
@@ -65,20 +64,17 @@ export interface Account {
65
64
  memberName?: string;
66
65
  connectionStatus?: ConnectionStatus;
67
66
  displayName?: string;
68
- trucatedDisplayName?: string;
67
+ truncatedDisplayName?: string;
69
68
  institutionName?: string;
70
69
  }
71
70
  export interface DetailedAccount extends Account {
72
- connectionStatus?: ConnectionStatus;
73
- displayName?: string;
74
- institutionName?: string;
75
- member?: Member;
76
- monthlyBalances?: MonthlyAccountBalance[];
77
- institution?: Institution;
71
+ institution_name: string;
72
+ isEnabled: boolean;
73
+ name: string;
78
74
  }
79
75
  export interface Member {
80
76
  aggregation_status: number;
81
- connection_status: ConnectionStatusEnums;
77
+ connection_status: number;
82
78
  guid: string;
83
79
  institution_guid: string;
84
80
  institution_name?: string;
@@ -102,6 +98,7 @@ export interface Member {
102
98
  verification_is_enabled: boolean;
103
99
  tax_statement_is_enabled: boolean;
104
100
  successfully_aggregated_at?: number;
101
+ connectionStatus?: ConnectionStatus;
105
102
  }
106
103
  export interface MonthlyAccountBalance {
107
104
  account_guid: string;
@@ -49,6 +49,7 @@ export interface TransactionsCopy {
49
49
  merchant_logo_modal_desc_bold: string;
50
50
  merchant_logo_modal_title: string;
51
51
  merchant_logo_title: string;
52
+ payee_edit: string;
52
53
  payee_title: string;
53
54
  split_transaction_add_split_btn: string;
54
55
  split_transaction_category_label: string;
@@ -9,9 +9,11 @@ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientSt
9
9
  };
10
10
  palette: {
11
11
  [k: string]: PaletteColor | {
12
+ lighter: string;
12
13
  light: string;
13
14
  main: string;
14
15
  dark: string;
16
+ darker: string;
15
17
  };
16
18
  };
17
19
  components: {
@@ -64,7 +66,7 @@ export declare const getClientTheme: (theme: Theme, clientStyleProfile: ClientSt
64
66
  MuiPickersCalendarHeader: {
65
67
  styleOverrides: {
66
68
  switchViewButton: {
67
- color: string;
69
+ color: string | undefined;
68
70
  '&:hover': {
69
71
  backgroundColor: string;
70
72
  };
@@ -1,29 +1,30 @@
1
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import r from "react";
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
+ import c from "react";
3
3
  import { observer as _ } from "mobx-react-lite";
4
- import h from "@mui/material/Grid";
5
- import u from "@mui/material/Skeleton";
6
- import l from "@mui/material/Stack";
7
- import { useTheme as D } from "@mui/material/styles";
8
- import { f as A, u as v, d as C, b as z, a as k, n as B } from "../hooks-C41HAxM5.mjs";
9
- import G from "@mui/material/Paper";
10
- import { Icon as S, H1 as F, P as W } from "@mxenabled/mxui";
11
- import { useMediaQuery as I } from "@mui/system";
4
+ import h from "@mui/material/Unstable_Grid2";
5
+ import d from "@mui/material/Skeleton";
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, H1 as G, P as F } from "@mxenabled/mxui";
11
+ import { useMediaQuery as W } from "@mui/system";
12
12
  import T from "@mui/material/Box";
13
- import R from "@mui/material/Button";
13
+ import I from "@mui/material/Button";
14
14
  import $ from "@mui/material/IconButton";
15
- import j from "@mui/material/Tooltip";
16
- import E from "@mui/material/useMediaQuery";
17
- import { k as Q, l as H } from "../ConnectDrawer-DVp54lUH.mjs";
18
- import { u as M } from "../useScreenSize-B5afALev.mjs";
19
- const P = _(() => {
15
+ import H from "@mui/material/Tooltip";
16
+ import R from "@mui/material/useMediaQuery";
17
+ import { k as j, l as Q } from "../ConnectDrawer-BkvlItWx.mjs";
18
+ import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
19
+ import { u as E } from "../useWidgetLoadTimer-hIOioiKx.mjs";
20
+ const N = _(() => {
20
21
  const e = D(), {
21
- appDataStore: { banner: o, loadBanner: i, user: d }
22
+ appDataStore: { banner: r, loadBanner: i, user: u }
22
23
  } = A();
23
- return r.useEffect(() => {
24
+ return c.useEffect(() => {
24
25
  i().finally();
25
- }, [d]), o?.image_url ? /* @__PURE__ */ t(
26
- l,
26
+ }, [u]), r?.image_url ? /* @__PURE__ */ t(
27
+ s,
27
28
  {
28
29
  sx: {
29
30
  alignItems: "center",
@@ -33,7 +34,7 @@ const P = _(() => {
33
34
  children: /* @__PURE__ */ t(
34
35
  "a",
35
36
  {
36
- href: o?.redirect_url,
37
+ href: r?.redirect_url,
37
38
  rel: "noreferrer",
38
39
  style: {
39
40
  width: "100%"
@@ -43,7 +44,7 @@ const P = _(() => {
43
44
  "img",
44
45
  {
45
46
  alt: "",
46
- src: o.image_url,
47
+ src: r.image_url,
47
48
  style: {
48
49
  width: "100%",
49
50
  height: "auto",
@@ -55,25 +56,25 @@ const P = _(() => {
55
56
  )
56
57
  }
57
58
  ) : null;
58
- }), N = ({ handleConnectClick: e }) => {
59
- const { common: o } = v(), i = E("(max-width: 700px)");
60
- return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t(j, { id: "add-accounts", placement: "bottom", title: o.add_accounts, children: /* @__PURE__ */ t(
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(
61
62
  $,
62
63
  {
63
64
  "aria-controls": "add_accounts",
64
65
  "aria-describedby": "add-accounts",
65
66
  "aria-haspopup": !0,
66
- "aria-label": o.add_accounts,
67
+ "aria-label": r.add_accounts,
67
68
  color: "primary",
68
69
  onClick: e,
69
70
  children: /* @__PURE__ */ t(S, { name: "add", size: 24 })
70
71
  }
71
72
  ) }) : /* @__PURE__ */ t(
72
- R,
73
+ I,
73
74
  {
74
75
  "aria-controls": "add_accounts",
75
76
  "aria-haspopup": !0,
76
- "aria-label": o.add_accounts,
77
+ "aria-label": r.add_accounts,
77
78
  onClick: e,
78
79
  startIcon: /* @__PURE__ */ t(S, { name: "add", size: 24 }),
79
80
  sx: {
@@ -82,44 +83,44 @@ const P = _(() => {
82
83
  minWidth: "max-content"
83
84
  },
84
85
  variant: "text",
85
- children: o.add_accounts
86
+ children: r.add_accounts
86
87
  }
87
88
  ) });
88
- }, O = _(N), U = () => {
89
- const [e, o] = r.useState(!1), i = I("(max-width:320px)"), { visibleAccounts: d } = C(), { selectedAccountGuids: g, setSelectedAccountGuids: b } = z(), { common: n, connect: x } = v(), { config: a } = k(), { isMobile: w } = M(), y = {
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 = {
90
91
  accountFilterOptionsCopy: {
91
- accountTypeAccounts: n.account_filter.account_type_accounts,
92
- cancelButton: n.cancel_button,
93
- filterButton: n.filter_button,
94
- filterButtonAria: n.account_filter.filter_button_generic_aria,
95
- selectAllAccounts: n.account_filter.select_all_accounts,
96
- toggleAccountTypeAccounts: n.account_filter.toggle_account_type_accounts,
97
- unselectAllAccounts: n.account_filter.unselect_all_accounts,
98
- zeroStateButton: n.account_filter.zero_state_button,
99
- zeroStateDescription: n.account_filter.zero_state_description,
100
- zeroStateTitle: n.account_filter.zero_state_title
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
101
102
  },
102
- title: n.filter_button
103
- }, c = () => {
103
+ title: o.filter_button
104
+ }, w = () => {
104
105
  const p = (/* @__PURE__ */ new Date()).getHours();
105
- return p > 1 && p < 12 ? n.good_morning : p >= 12 && p < 18 ? n.good_afternoon : n.good_evening;
106
+ return p > 1 && p < 12 ? o.good_morning : p >= 12 && p < 18 ? o.good_afternoon : o.good_evening;
106
107
  };
107
- return /* @__PURE__ */ s(r.Fragment, { children: [
108
- /* @__PURE__ */ t(G, { sx: { gap: 12, mb: w ? 24 : 0, p: 24 }, children: /* @__PURE__ */ s(l, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
109
- /* @__PURE__ */ s(l, { children: [
110
- /* @__PURE__ */ t(F, { variant: i ? "h2" : "h1", children: c() }),
111
- /* @__PURE__ */ t(W, { color: "text.secondary", children: n.heres_your_spending_overview })
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 })
112
113
  ] }),
113
- /* @__PURE__ */ s(l, { flexDirection: "row", children: [
114
- a.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => o(!0) }),
114
+ /* @__PURE__ */ a(s, { flexDirection: "row", children: [
115
+ m.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => r(!0) }),
115
116
  /* @__PURE__ */ t(
116
- Q,
117
+ j,
117
118
  {
118
- accounts: d,
119
- copy: y,
120
- onConnectAccountClick: a.show_connections_widget_in_master ? () => o(!0) : void 0,
121
- onFilterClick: (m) => {
122
- b(m);
119
+ accounts: u,
120
+ copy: n,
121
+ onConnectAccountClick: m.show_connections_widget_in_master ? () => r(!0) : void 0,
122
+ onFilterClick: (y) => {
123
+ b(y);
123
124
  },
124
125
  selectedAccountGuids: g,
125
126
  showAccountNumbers: !1,
@@ -132,52 +133,53 @@ const P = _(() => {
132
133
  ] })
133
134
  ] }) }),
134
135
  e && /* @__PURE__ */ t(
135
- H,
136
+ Q,
136
137
  {
137
- onClose: () => o(!1),
138
+ onClose: () => r(!1),
138
139
  showConnectWidget: e,
139
- title: x.mini_title
140
+ title: l.mini_title
140
141
  }
141
142
  )
142
143
  ] });
143
144
  }, q = _(U);
144
145
  var f = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e[e.Disabled = 2] = "Disabled", e))(f || {});
145
- const J = ({ widgets: e, isLoading: o }) => {
146
- const { isDesktop: i, isMobile: d } = M(), { copyStore: g } = A(), { setSelectedAccounts: b } = z(), { visibleAccounts: n } = C(), { onLoad: x } = B();
147
- r.useEffect(() => {
148
- b(n);
149
- }, [n]), r.useEffect(() => {
150
- o || x?.("Dashboard");
151
- }, [o]);
152
- const a = r.useMemo(
153
- () => e.filter((c) => c.location !== f.Disabled).sort((c, m) => c.index - m.index),
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({
151
+ widgetName: "Dashboard",
152
+ isLoaded: !r
153
+ });
154
+ const l = c.useMemo(
155
+ () => e.filter((n) => n.location !== f.Disabled).sort((n, w) => n.index - w.index),
154
156
  [e]
155
- ), w = r.useMemo(
156
- () => a.filter((c) => c.location === f.Main),
157
- [a]
158
- ), y = r.useMemo(
159
- () => a.filter((c) => c.location === f.RightSide),
160
- [a]
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]
161
163
  );
162
- return /* @__PURE__ */ s(h, { container: !0, spacing: d ? 0 : 24, sx: { overflow: "scroll" }, children: [
163
- /* @__PURE__ */ t(h, { size: { xs: 12 }, children: g.isInitialized && /* @__PURE__ */ t(q, {}) }),
164
- /* @__PURE__ */ s(h, { size: { lg: 8, xs: 12 }, children: [
165
- /* @__PURE__ */ t(P, {}),
166
- o && /* @__PURE__ */ s(l, { direction: "column", spacing: 24, children: [
167
- /* @__PURE__ */ t(u, { height: 100, variant: "rounded", width: "100%" }),
168
- /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" }),
169
- /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" })
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%" })
170
172
  ] }),
171
- !o && /* @__PURE__ */ t(l, { direction: "column", spacing: 24, children: i ? w.map((c) => /* @__PURE__ */ t(r.Fragment, { children: c.component }, c.index)) : a.map((c) => /* @__PURE__ */ t(r.Fragment, { children: c.component }, c.index)) })
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)) })
172
174
  ] }),
173
- i && /* @__PURE__ */ t(h, { size: { lg: 4 }, children: o ? /* @__PURE__ */ s(l, { direction: "column", spacing: 24, children: [
174
- /* @__PURE__ */ t(u, { height: 200, variant: "rounded", width: "100%" }),
175
- /* @__PURE__ */ t(u, { height: 100, variant: "rounded", width: "100%" }),
176
- /* @__PURE__ */ t(u, { height: 300, variant: "rounded", width: "100%" })
177
- ] }) : /* @__PURE__ */ t(l, { direction: "column", spacing: 24, children: y.map((c) => /* @__PURE__ */ t(r.Fragment, { children: c.component }, c.index)) }) })
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)) }) })
178
180
  ] });
179
- }, mt = _(J);
181
+ }, pt = _(J);
180
182
  export {
181
- mt as Dashboard,
183
+ pt as Dashboard,
182
184
  f as DashboardLocation
183
185
  };
@@ -1,3 +1,4 @@
1
+ import { default as React } from 'react';
1
2
  import { DebtChartData } from '../utils/DebtsWidget';
2
3
  interface DebtsChartProps {
3
4
  sx?: any;
@@ -8,5 +9,5 @@ interface DebtsChartProps {
8
9
  onClickArea?: () => void;
9
10
  onHoverArea?: (debtGuid: string) => void;
10
11
  }
11
- export declare const DebtsChart: ({ sx, height, width, debts, hoveredDebtGuid, onClickArea, onHoverArea, }: DebtsChartProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const DebtsChart: React.FC<DebtsChartProps>;
12
13
  export {};