@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.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 (139) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/Account-CMjOp7S2.mjs +118 -0
  4. package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
  5. package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
  6. package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
  7. package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
  8. package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
  9. package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
  10. package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
  11. package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
  12. package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
  13. package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
  14. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
  16. package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
  17. package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
  19. package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
  21. package/dist/Drawer-Bet2ZPJo.mjs +176 -0
  22. package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
  23. package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
  24. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
  25. package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
  26. package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
  27. package/dist/LineChart-DHj-Bufi.mjs +580 -0
  28. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
  29. package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
  30. package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
  31. package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
  32. package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
  33. package/dist/NotificationSettings-e789PcRb.mjs +676 -0
  34. package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
  35. package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
  36. package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
  37. package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
  38. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
  39. package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
  40. package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
  41. package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
  42. package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
  43. package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
  44. package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
  45. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
  46. package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
  47. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
  48. package/dist/accounts/index.es.js +933 -232
  49. package/dist/accounts/stores/AccountStore.d.ts +6 -2
  50. package/dist/accounts/utils/AccountDetails.d.ts +5 -0
  51. package/dist/analytics/index.es.js +2 -2
  52. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  53. package/dist/budgets/index.es.js +561 -522
  54. package/dist/cashflow/index.es.js +397 -396
  55. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
  56. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
  57. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
  58. package/dist/categories/components/SubcategoryRow.d.ts +1 -0
  59. package/dist/categories/index.es.js +2 -2
  60. package/dist/categories/stores/CategoryStore.d.ts +5 -3
  61. package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
  62. package/dist/common/components/WidgetContainer.d.ts +7 -6
  63. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  64. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  65. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
  66. package/dist/common/components/index.d.ts +2 -2
  67. package/dist/common/hooks/index.d.ts +1 -0
  68. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  69. package/dist/common/index.es.js +325 -306
  70. package/dist/common/stores/GlobalUiStore.d.ts +7 -4
  71. package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
  72. package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
  73. package/dist/common/types/localization/CommonCopy.d.ts +3 -0
  74. package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
  75. package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
  76. package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
  77. package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
  78. package/dist/dashboard/index.es.js +95 -125
  79. package/dist/debts/index.es.js +466 -460
  80. package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
  81. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  82. package/dist/finstrong/index.es.js +1660 -1553
  83. package/dist/goals/index.es.js +716 -677
  84. package/dist/goals/stores/GoalStore.d.ts +2 -0
  85. package/dist/help/index.es.js +14 -10
  86. package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
  87. package/dist/investments/index.es.js +464 -457
  88. package/dist/merchants/index.es.js +1 -1
  89. package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
  90. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
  91. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
  92. package/dist/microinsights/beaticons/index.d.ts +1 -0
  93. package/dist/microinsights/cards/InsightCard.d.ts +0 -2
  94. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
  95. package/dist/microinsights/index.d.ts +2 -2
  96. package/dist/microinsights/index.es.js +824 -14
  97. package/dist/networth/components/NetWorthChart.d.ts +3 -2
  98. package/dist/networth/components/NetWorthList.d.ts +3 -3
  99. package/dist/networth/index.es.js +433 -438
  100. package/dist/networth/stores/NetWorthStore.d.ts +20 -9
  101. package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
  102. package/dist/notifications/index.es.js +5 -5
  103. package/dist/recurringtransactions/index.es.js +331 -325
  104. package/dist/settings/index.es.js +293 -285
  105. package/dist/spending/components/SpendingChart.d.ts +1 -1
  106. package/dist/spending/components/SpendingList.d.ts +1 -1
  107. package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
  108. package/dist/spending/index.es.js +250 -235
  109. package/dist/transactions/index.es.js +288 -281
  110. package/dist/transactions/stores/TransactionStore.d.ts +5 -0
  111. package/dist/trends/components/TrendsTable.d.ts +0 -2
  112. package/dist/trends/index.es.js +876 -802
  113. package/dist/trends/utils/TrendsData.d.ts +1 -0
  114. package/dist/trends/utils/TrendsTable.d.ts +12 -0
  115. package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
  116. package/dist/useAriaLive-B3_pRUio.mjs +35 -0
  117. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
  118. package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
  119. package/package.json +26 -21
  120. package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
  121. package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
  122. package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
  123. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  124. package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
  125. package/dist/Drawer-Dqe5EqvA.mjs +0 -163
  126. package/dist/LineChart-bc1D9xBE.mjs +0 -581
  127. package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
  128. package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
  129. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  130. package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
  131. package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
  132. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  133. package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
  134. package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
  135. package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
  136. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
  137. package/dist/common/components/accountfilter/index.d.ts +0 -1
  138. package/dist/microinsights/cards/BaseCard.d.ts +0 -13
  139. package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
@@ -2,20 +2,23 @@ import { Account } from '../types';
2
2
  import { GlobalStore } from './GlobalStore';
3
3
  export declare class GlobalUiStore {
4
4
  globalStore: GlobalStore;
5
- selectedAccounts: Account[];
6
- selectedAccountGuids: string[];
5
+ accountFilterMap: Map<string, boolean>;
7
6
  displayedDate: Date;
8
7
  displayedDateRange: {
9
8
  start: Date;
10
9
  end: Date;
11
10
  };
12
11
  constructor(globalStore: GlobalStore);
12
+ get allSelectedAccounts(): import('../types').DetailedAccount[];
13
+ get selectedAccounts(): import('../types').DetailedAccount[];
14
+ get selectedAccountGuids(): string[];
13
15
  get isCopyLoaded(): boolean;
14
16
  get isConfigLoaded(): boolean;
15
17
  get areUserFeaturesLoaded(): boolean;
16
18
  get isInitialized(): boolean;
17
- setSelectedAccounts: (accounts: Account[]) => void;
18
- setSelectedAccountGuids: (guids: string[]) => Promise<void>;
19
+ populateAccountFilterMap: (accounts: Account[]) => void;
20
+ resetAccountFilterMap: () => void;
21
+ updateAccountFilterMap: (guid: string, isIncluded: boolean) => void;
19
22
  setDisplayedDate: (startDate: Date, endDate: Date) => void;
20
23
  get shouldDisableNextDate(): boolean;
21
24
  get shouldDisablePrevDate(): boolean;
@@ -45,6 +45,9 @@ export interface AccountsCopy {
45
45
  apy: string;
46
46
  available_balance: string;
47
47
  available_credit: string;
48
+ chart_title_income_spend: string;
49
+ chart_title_payments: string;
50
+ chart_title_payments_spend: string;
48
51
  close_aria: string;
49
52
  close_account_details_aria: string;
50
53
  close_drawer: string;
@@ -73,6 +76,9 @@ export interface AccountsCopy {
73
76
  interest_rate: string;
74
77
  is_closed: string;
75
78
  is_hidden: string;
79
+ label_income_spend: string;
80
+ label_payments: string;
81
+ label_payments_spend: string;
76
82
  manage: string;
77
83
  manage_connection: string;
78
84
  manage_connections: string;
@@ -2,6 +2,7 @@ interface LocalizedCategory {
2
2
  [key: string]: string;
3
3
  }
4
4
  export interface CategoryCopy {
5
+ add_subcategory_announcement: string;
5
6
  add_subcategory_aria: string;
6
7
  add_subcategory_button: string;
7
8
  add_subcategory_title: string;
@@ -9,8 +10,10 @@ export interface CategoryCopy {
9
10
  all_transactions_in_this_subcategory: string;
10
11
  category_icon_label_aria: string;
11
12
  default_categories: LocalizedCategory;
13
+ delete_subcategory_announcement: string;
12
14
  delete_subcategory_aria: string;
13
15
  delete_subcategory_heading: string;
16
+ edit_subcategory_announcement: string;
14
17
  edit_subcategory_aria: string;
15
18
  edit_subcategory_title: string;
16
19
  input_placeholder: string;
@@ -57,4 +57,7 @@ export interface CommonCopy {
57
57
  settings: string;
58
58
  six_month_total: string;
59
59
  unhide_button: string;
60
+ view_chart: string;
61
+ view_table: string;
62
+ view_toggle: string;
60
63
  }
@@ -75,8 +75,10 @@ export interface GoalsCopy {
75
75
  manage_saving_goals: string;
76
76
  manage_saving_title: string;
77
77
  mark_as_complete_button: string;
78
- reorder_goals_title: string;
78
+ reorder_goals_announcement: string;
79
79
  reorder_goals_description: string;
80
+ reorder_goals_drag_aria_label: string;
81
+ reorder_goals_title: string;
80
82
  retirement: string;
81
83
  retirement_goal_description: string;
82
84
  retirement_goal_label: string;
@@ -1,4 +1,5 @@
1
1
  interface CardsCopy {
2
+ close: string;
2
3
  micro_card_cta: string;
3
4
  no_relevant_insights_card_cta: string;
4
5
  no_relevant_insights_card_description: string;
@@ -49,9 +49,12 @@ 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;
54
+ split_transaction_add_split_announcement: string;
53
55
  split_transaction_add_split_btn: string;
54
56
  split_transaction_category_label: string;
57
+ split_transaction_delete_split_announcement: string;
55
58
  split_transaction_delete_split_btn: string;
56
59
  split_transaction_desc: string;
57
60
  split_transaction_edit_split_amount: string;
@@ -59,6 +62,7 @@ export interface TransactionsCopy {
59
62
  split_transaction_errors_min_splits: string;
60
63
  split_transaction_errors_select_category: string;
61
64
  split_transaction_errors_totals_must_equal_amount: string;
65
+ split_transaction_select_category_announcement: string;
62
66
  split_transaction_select_category_btn: string;
63
67
  split_transaction_title: string;
64
68
  split_transaction_unsplit_description: string;
@@ -1,8 +1,10 @@
1
1
  export interface TrendsCopy {
2
2
  all_categories: string;
3
3
  categories: string;
4
+ category_general: string;
4
5
  category_income: string;
5
6
  category_spending: string;
7
+ category_title: string;
6
8
  close_category_details: string;
7
9
  empty_state_primary: string;
8
10
  empty_state_sub_text: string;
@@ -17,6 +19,8 @@ export interface TrendsCopy {
17
19
  primary_cta: string;
18
20
  spending_label: string;
19
21
  sub_title: string;
22
+ sub_title_by_category: string;
23
+ table_column_total: string;
20
24
  title: string;
21
25
  transaction: string;
22
26
  transactions: string;
@@ -1,53 +1,54 @@
1
- import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
- import r from "react";
3
- import { observer as _ } from "mobx-react-lite";
4
- import h from "@mui/material/Unstable_Grid2";
5
- import u from "@mui/material/Skeleton";
6
- import l 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, 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";
12
- import T from "@mui/material/Box";
13
- import H from "@mui/material/Button";
14
- import R from "@mui/material/IconButton";
15
- import $ from "@mui/material/Tooltip";
16
- import j from "@mui/material/useMediaQuery";
17
- import { k as E, l as Q } from "../ConnectDrawer-Dn1MlqLz.mjs";
18
- import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
19
- const P = _(() => {
20
- const e = D(), {
21
- appDataStore: { banner: o, loadBanner: i, user: d }
22
- } = A();
23
- return r.useEffect(() => {
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
+ import s from "@mui/material/Stack";
7
+ import S from "@mui/material/styles/useTheme";
8
+ import { f as _, u as b, a as v } from "../hooks-fY_n74f7.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 z } from "../GlobalAccountFilter-BpWlPAl5.mjs";
18
+ import { u as y } from "../useScreenSize-B6JyS_Lj.mjs";
19
+ import { u as H } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
20
+ const R = p(() => {
21
+ const t = S(), {
22
+ appDataStore: { banner: r, loadBanner: i, user: a }
23
+ } = _();
24
+ return o.useEffect(() => {
24
25
  i().finally();
25
- }, [d]), o?.image_url ? /* @__PURE__ */ t(
26
- l,
26
+ }, [a]), r?.image_url ? /* @__PURE__ */ e(
27
+ s,
27
28
  {
28
29
  sx: {
29
30
  alignItems: "center",
30
31
  width: "100%",
31
32
  mb: 24
32
33
  },
33
- children: /* @__PURE__ */ t(
34
+ children: /* @__PURE__ */ e(
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%"
40
41
  },
41
42
  target: "_blank",
42
- children: /* @__PURE__ */ t(
43
+ children: /* @__PURE__ */ e(
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",
50
- border: `1px solid ${e.palette.grey[300]}`
51
+ border: `1px solid ${t.palette.grey[300]}`
51
52
  }
52
53
  }
53
54
  )
@@ -55,129 +56,98 @@ const P = _(() => {
55
56
  )
56
57
  }
57
58
  ) : null;
58
- }), N = ({ handleConnectClick: e }) => {
59
- const { common: o } = v(), i = j("(max-width: 700px)");
60
- return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t($, { id: "add-accounts", placement: "bottom", title: o.add_accounts, children: /* @__PURE__ */ t(
61
- R,
59
+ }), T = ({ handleConnectClick: t }) => {
60
+ const { common: r } = b(), 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,
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
- onClick: e,
69
- children: /* @__PURE__ */ t(S, { name: "add", size: 24 })
69
+ onClick: t,
70
+ children: /* @__PURE__ */ e(w, { name: "add", size: 24 })
70
71
  }
71
- ) }) : /* @__PURE__ */ t(
72
- H,
72
+ ) }) : /* @__PURE__ */ e(
73
+ k,
73
74
  {
74
75
  "aria-controls": "add_accounts",
75
76
  "aria-haspopup": !0,
76
- "aria-label": o.add_accounts,
77
- onClick: e,
78
- startIcon: /* @__PURE__ */ t(S, { name: "add", size: 24 }),
77
+ "aria-label": r.add_accounts,
78
+ onClick: t,
79
+ startIcon: /* @__PURE__ */ e(w, { name: "add", size: 24 }),
79
80
  sx: {
80
81
  p: 12,
81
82
  whiteSpace: "nowrap",
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 } = M(), { common: n, connect: x } = v(), { config: a } = k(), { isMobile: w } = z(), y = {
90
- 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
101
- },
102
- title: n.filter_button
103
- }, c = () => {
104
- 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;
89
+ }, $ = p(T), j = () => {
90
+ const [t, r] = o.useState(!1), i = G("(max-width:320px)"), { common: a, connect: g } = b(), { 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;
106
93
  };
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 })
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 })
112
99
  ] }),
113
- /* @__PURE__ */ s(l, { flexDirection: "row", children: [
114
- a.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => o(!0) }),
115
- /* @__PURE__ */ t(
116
- E,
117
- {
118
- accounts: d,
119
- copy: y,
120
- onConnectAccountClick: a.show_connections_widget_in_master ? () => o(!0) : void 0,
121
- onFilterClick: (m) => {
122
- b(m);
123
- },
124
- selectedAccountGuids: g,
125
- showAccountNumbers: !1,
126
- sx: {
127
- maxWidth: "100%"
128
- },
129
- variant: "text"
130
- }
131
- )
100
+ /* @__PURE__ */ c(s, { flexDirection: "row", children: [
101
+ d.show_connections_widget_in_master && /* @__PURE__ */ e($, { handleConnectClick: () => r(!0) }),
102
+ /* @__PURE__ */ e(F, {})
132
103
  ] })
133
104
  ] }) }),
134
- e && /* @__PURE__ */ t(
135
- Q,
105
+ t && /* @__PURE__ */ e(
106
+ z,
136
107
  {
137
- onClose: () => o(!1),
138
- showConnectWidget: e,
139
- title: x.mini_title
108
+ onClose: () => r(!1),
109
+ showConnectWidget: t,
110
+ title: g.mini_title
140
111
  }
141
112
  )
142
113
  ] });
143
- }, q = _(U);
144
- 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 } = z(), { copyStore: g } = A(), { setSelectedAccounts: b } = M(), { 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),
154
- [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]
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 } = _();
118
+ H({
119
+ widgetName: "Dashboard",
120
+ isLoaded: !r
121
+ });
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]
161
131
  );
162
- return /* @__PURE__ */ s(h, { container: !0, spacing: d ? 0 : 24, sx: { overflow: "scroll" }, children: [
163
- /* @__PURE__ */ t(h, { xs: 12, children: g.isInitialized && /* @__PURE__ */ t(q, {}) }),
164
- /* @__PURE__ */ s(h, { 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%" })
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(R, {}),
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%" })
170
140
  ] }),
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)) })
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)) })
172
142
  ] }),
173
- i && /* @__PURE__ */ t(h, { 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)) }) })
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)) }) })
178
148
  ] });
179
- }, mt = _(J);
149
+ }, ce = p(P);
180
150
  export {
181
- mt as Dashboard,
182
- f as DashboardLocation
151
+ ce as Dashboard,
152
+ h as DashboardLocation
183
153
  };