@mx-cartographer/experiences 7.4.7-alpha.mega1 → 7.4.8-alpha.mm0

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 (61) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/{Account-01wOyrH1.mjs → Account-BrOTlmeK.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-COMjOzwr.mjs → AccountDetailsContent-B7FqH05C.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Cbi5G6fJ.mjs → AccountDetailsHeader-C8MxsxhN.mjs} +4 -4
  5. package/dist/{AccountFields-Cd_nOWmf.mjs → AccountFields-BQZ-o6Kj.mjs} +2 -2
  6. package/dist/{AccountListItem-DxY4cCF1.mjs → AccountListItem-aIE9WWTO.mjs} +4 -4
  7. package/dist/{AccountStore-C1zMBzHq.mjs → AccountStore-DqO84Aer.mjs} +2 -2
  8. package/dist/{Accounts-D7QljYas.mjs → Accounts-DC_A4UCa.mjs} +1 -1
  9. package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-BmZXkL0C.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-SUgfE5GN.mjs} +1 -1
  11. package/dist/{ConnectDrawer-CuUj16NH.mjs → ConnectDrawer-KL8t1qSC.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-Bz4uwdFE.mjs → ConnectionsDrawer-DaK5uIL5.mjs} +2 -2
  13. package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-itK0R3wV.mjs} +1 -1
  14. package/dist/{DebtsStore-Bu8rRRSL.mjs → DebtsStore-DVPZbv2C.mjs} +1 -1
  15. package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  16. package/dist/{GoalStore-CrNhjvNc.mjs → GoalStore-o4rrjGSJ.mjs} +2 -2
  17. package/dist/{Help-BnPXM_N2.mjs → Help-BjLMsuMS.mjs} +1 -1
  18. package/dist/{LineChart-bc1D9xBE.mjs → LineChart-BQRxZF3p.mjs} +1 -1
  19. package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BxTkF6Tz.mjs} +1 -1
  20. package/dist/{ManageIncome-A69EUO5u.mjs → ManageIncome-rcnDYsBJ.mjs} +75 -75
  21. package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-B2hO9rOG.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-98-hKFqm.mjs} +1 -1
  23. package/dist/{NetWorthStore-CpL_kqvx.mjs → NetWorthStore-DG2X69jG.mjs} +2 -2
  24. package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-C7FYNM7I.mjs} +250 -248
  25. package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +3 -3
  26. package/dist/{RecurringSettings-B0uObPlD.mjs → RecurringSettings-C81H1l38.mjs} +3 -3
  27. package/dist/{SpendingLegend-Bf-wbJvb.mjs → SpendingLegend-DqZxN_BZ.mjs} +2 -2
  28. package/dist/{TransactionDetails-COH0OKNG.mjs → TransactionDetails-BA_E5nQ-.mjs} +5 -5
  29. package/dist/{TransactionStore-Dz-G8Wd0.mjs → TransactionStore-PRlwE-TF.mjs} +2 -2
  30. package/dist/{User-wXzDI4M8.mjs → User-Cnlegl1N.mjs} +1 -1
  31. package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-DfPXJzbv.mjs} +105 -101
  32. package/dist/{WidgetContainer-6dsjtOVg.mjs → WidgetContainer-CaPjoWeE.mjs} +2 -2
  33. package/dist/accounts/index.es.js +148 -140
  34. package/dist/analytics/index.es.js +2 -2
  35. package/dist/budgets/index.es.js +483 -478
  36. package/dist/cashflow/index.es.js +367 -362
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/hooks/index.d.ts +1 -0
  39. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  40. package/dist/common/index.es.js +35 -33
  41. package/dist/dashboard/index.es.js +90 -88
  42. package/dist/debts/index.es.js +346 -342
  43. package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +1 -1
  44. package/dist/finstrong/index.es.js +352 -350
  45. package/dist/goals/index.es.js +518 -511
  46. package/dist/help/index.es.js +13 -9
  47. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  48. package/dist/investments/index.es.js +395 -393
  49. package/dist/merchants/index.es.js +1 -1
  50. package/dist/microinsights/index.es.js +1 -1
  51. package/dist/networth/index.es.js +245 -240
  52. package/dist/notifications/index.es.js +2 -2
  53. package/dist/recurringtransactions/index.es.js +293 -285
  54. package/dist/settings/index.es.js +252 -249
  55. package/dist/spending/index.es.js +136 -124
  56. package/dist/transactions/index.es.js +77 -73
  57. package/dist/trends/index.es.js +601 -588
  58. package/dist/{useAccountDisplayName-CMMlIOXF.mjs → useAccountDisplayName-Cjx8YmKK.mjs} +2 -2
  59. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  60. package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +23 -0
  61. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-DqJK_rrL.mjs";
1
+ import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-SUgfE5GN.mjs";
2
2
  import { C as g } from "../CategoryStore-U7hOZAbP.mjs";
3
3
  export {
4
4
  o as CategoryRow,
@@ -3,3 +3,4 @@ export { useCombineEvents, useCombinePageviews } from './useCombineEvents';
3
3
  export { useInsightsEnabled } from './useInsightsEnabled';
4
4
  export { useScreenSize } from './useScreenSize';
5
5
  export { usePrevious } from './usePrevious';
6
+ export { useWidgetLoadTimer } from './useWidgetLoadTimer';
@@ -0,0 +1,6 @@
1
+ interface UseWidgetLoadTimerOptions {
2
+ widgetName: string;
3
+ isLoaded?: boolean;
4
+ }
5
+ export declare const useWidgetLoadTimer: ({ widgetName, isLoaded }: UseWidgetLoadTimerOptions) => void;
6
+ export {};
@@ -6,30 +6,30 @@ import { C as et } from "../CategoryStore-U7hOZAbP.mjs";
6
6
  import { a as ls } from "../CategoryStore-U7hOZAbP.mjs";
7
7
  import { N as st } from "../NotificationStore-CDX_kqHa.mjs";
8
8
  import { a as hs } from "../NotificationStore-CDX_kqHa.mjs";
9
- import { T as rt } from "../User-wXzDI4M8.mjs";
10
- import { C as ps, b as ms, L as _s, a as fs } from "../User-wXzDI4M8.mjs";
9
+ import { T as rt } from "../User-Cnlegl1N.mjs";
10
+ import { C as ps, b as ms, L as _s, a as fs } from "../User-Cnlegl1N.mjs";
11
11
  import { H as ot } from "../Help-DhcC-C05.mjs";
12
12
  import { E as Ss } from "../Help-DhcC-C05.mjs";
13
- import { M as ws } from "../MicroWidgetContainer-DEiRnYVa.mjs";
14
- import { M as Cs } from "../MiniWidgetContainer-CmXpTylX.mjs";
15
- import { A as Ds, D as As, W as Es } from "../WidgetContainer-6dsjtOVg.mjs";
16
- import { k as Bs, a as Is, e as Ns, h as Ms, A as $s, f as ks, l as Rs, d as Us, n as Ps, E as Os, j as Ls, N as Gs, i as Hs, P as Fs, o as Ws, S as qs } from "../ConnectDrawer-CuUj16NH.mjs";
17
- import { C as Qs } from "../CurrencyInput-BFKcs-_K.mjs";
13
+ import { M as ws } from "../MicroWidgetContainer-B2hO9rOG.mjs";
14
+ import { M as Cs } from "../MiniWidgetContainer-98-hKFqm.mjs";
15
+ import { A as Ds, D as As, W as Es } from "../WidgetContainer-CaPjoWeE.mjs";
16
+ import { k as Bs, a as Is, e as Ns, h as Ms, A as $s, f as ks, l as Rs, d as Us, n as Ps, E as Os, j as Ls, N as Gs, i as Hs, P as Fs, o as Ws, S as qs } from "../ConnectDrawer-KL8t1qSC.mjs";
17
+ import { C as Qs } from "../CurrencyInput-itK0R3wV.mjs";
18
18
  import { L as Xs } from "../Loader-DUaFpDGv.mjs";
19
19
  import { R as Ks } from "../ResponsiveButton-DZFp78fJ.mjs";
20
20
  import { S as Zs } from "../SearchBox-B2_zLv8-.mjs";
21
- import { T as at } from "../TransactionStore-Dz-G8Wd0.mjs";
22
- import { S as tr } from "../TransactionStore-Dz-G8Wd0.mjs";
21
+ import { T as at } from "../TransactionStore-PRlwE-TF.mjs";
22
+ import { S as tr } from "../TransactionStore-PRlwE-TF.mjs";
23
23
  import { T as sr } from "../TabContentContainer-j01JYR_7.mjs";
24
24
  import { I as or } from "../IconBacking-B9oC6uL2.mjs";
25
25
  import { D as nr, F as ir, a as cr, c as dr, R as lr, S as ur } from "../RecurringTransactions-BqijW_8S.mjs";
26
26
  import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
27
27
  import { I as gr } from "../CashflowStore-D9Dpuz7X.mjs";
28
- import { d as it } from "../GoalStore-CrNhjvNc.mjs";
29
- import { C as mr, G as _r, M as fr, T as yr } from "../GoalStore-CrNhjvNc.mjs";
28
+ import { d as it } from "../GoalStore-o4rrjGSJ.mjs";
29
+ import { C as mr, G as _r, M as fr, T as yr } from "../GoalStore-o4rrjGSJ.mjs";
30
30
  import { C as br } from "../CurrencyText-Dr0EZ7bp.mjs";
31
31
  import { E as xr } from "../EmptyState-DoxNUae-.mjs";
32
- import { L as vr } from "../ListItemAction-uobBrm_a.mjs";
32
+ import { L as vr } from "../ListItemAction-BxTkF6Tz.mjs";
33
33
  import { T as ct } from "../TrendsStore-BW9FGQeE.mjs";
34
34
  import { L as Ar } from "../TrendsStore-BW9FGQeE.mjs";
35
35
  import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as $r } from "../ToggleListItem-ciFTiqRS.mjs";
@@ -42,35 +42,36 @@ import { a as Pr, D as Or, O as Lr, b as Gr, f as Hr } from "../Dialog-BPTr3qHE.
42
42
  import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
43
43
  import { S as Wr } from "../SingleSegmentDonut-BgbLgwHi.mjs";
44
44
  import { D as Yr } from "../Drawer-BEtCk82g.mjs";
45
- import { I as zr, P as Xr, S as jr } from "../Account-01wOyrH1.mjs";
45
+ import { I as zr, P as Xr, S as jr } from "../Account-BrOTlmeK.mjs";
46
46
  import { b as E } from "../Category-CevNQ03n.mjs";
47
47
  import { C as Vr, c as Zr, a as Jr, P as to } from "../Category-CevNQ03n.mjs";
48
48
  import { C as so, f as ro, b as oo, a as ao, g as no, i as io } from "../NumberFormatting-DjTD0t3W.mjs";
49
49
  import { R as mt } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
50
50
  import { S as lo, T as uo } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
51
- import { G as go, C as po, D as mo, W as _o, d as fo, a as yo, i as So, v as bo, m as wo, x as xo, y as Co, g as vo, z as Do, u as Ao, f as Eo, b as To, l as Bo, A as Io, t as No, n as Mo, c as $o, r as ko, o as Ro, B as Uo, j as Po, s as Oo, h as Lo, w as Go, p as Ho, q as Fo } from "../hooks-C41HAxM5.mjs";
52
- import { u as qo } from "../useAccountDisplayName-CMMlIOXF.mjs";
53
- import { u as Qo } from "../useInsightsEnabled-CNjP5cfR.mjs";
51
+ import { G as go, C as po, D as mo, W as _o, d as fo, a as yo, i as So, t as bo, m as wo, w as xo, x as Co, g as vo, z as Do, u as Ao, f as Eo, b as To, l as Bo, A as Io, s as No, y as Mo, c as $o, q as ko, n as Ro, B as Uo, j as Po, r as Oo, h as Lo, v as Go, o as Ho, p as Fo } from "../hooks-ZMp65DFz.mjs";
52
+ import { u as qo } from "../useAccountDisplayName-Cjx8YmKK.mjs";
53
+ import { u as Qo } from "../useInsightsEnabled-B7dxpDrX.mjs";
54
54
  import { u as Xo } from "../useScreenSize-B6JyS_Lj.mjs";
55
+ import { u as Ko } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
55
56
  import { makeAutoObservable as f, runInAction as p, reaction as _t, autorun as ft } from "mobx";
56
- import { a as yt } from "../AccountStore-C1zMBzHq.mjs";
57
+ import { a as yt } from "../AccountStore-DqO84Aer.mjs";
57
58
  import St from "posthog-js";
58
59
  import { B as bt } from "../BeatStore-D_NYuBSz.mjs";
59
60
  import { endOfMonth as Z } from "date-fns/endOfMonth";
60
61
  import { startOfMonth as J } from "date-fns/startOfMonth";
61
62
  import { startOfToday as O } from "date-fns/startOfToday";
62
- import { f as wt, a as xt, b as L } from "../BudgetUtil-Df2nII9u.mjs";
63
- import { g as Ko, e as Vo, c as Zo, d as Jo, i as ta } from "../BudgetUtil-Df2nII9u.mjs";
64
- import { a as Ct } from "../DebtsStore-Bu8rRRSL.mjs";
63
+ import { f as wt, a as xt, b as L } from "../BudgetUtil-BmZXkL0C.mjs";
64
+ import { g as Zo, e as Jo, c as ta, d as ea, i as sa } from "../BudgetUtil-BmZXkL0C.mjs";
65
+ import { a as Ct } from "../DebtsStore-DVPZbv2C.mjs";
65
66
  import { F as vt } from "../FinstrongStore-BIrX0Xg2.mjs";
66
67
  import { A as Dt, m as At, a as Et, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
67
68
  import { M as Bt } from "../MerchantStore-WvZ4gnQe.mjs";
68
- import { N as It } from "../NetWorthStore-CpL_kqvx.mjs";
69
+ import { N as It } from "../NetWorthStore-DG2X69jG.mjs";
69
70
  import { a as Nt } from "../SettingsStore-krIRNwHK.mjs";
70
71
  import { addMonths as Mt } from "date-fns/addMonths";
71
72
  import { getMonth as T } from "date-fns/getMonth";
72
- import { i as sa } from "../DateUtil-CBdcsyuk.mjs";
73
- import { b as oa, a as aa, g as na } from "../Localization-2MODESHW.mjs";
73
+ import { i as oa } from "../DateUtil-CBdcsyuk.mjs";
74
+ import { b as na, a as ia, g as ca } from "../Localization-2MODESHW.mjs";
74
75
  import { alpha as $t, lighten as G, darken as H } from "@mui/material";
75
76
  var kt = /* @__PURE__ */ ((s) => (s[s.Unknown = 0] = "Unknown", s[s.EveryWeek = 1] = "EveryWeek", s[s.EveryOtherWeek = 2] = "EveryOtherWeek", s[s.EveryMonth = 3] = "EveryMonth", s[s.EveryOtherMonth = 4] = "EveryOtherMonth", s[s.EveryQuarter = 5] = "EveryQuarter", s[s.EveryOtherQuarter = 6] = "EveryOtherQuarter", s[s.EveryYear = 7] = "EveryYear", s))(kt || {});
76
77
  const Qe = [
@@ -1345,21 +1346,21 @@ export {
1345
1346
  mo as WidgetContainerContext,
1346
1347
  _o as WidgetContainerProvider,
1347
1348
  os as analyticsSession,
1348
- oa as buildDynamicCopy,
1349
- aa as buildPluralCopy,
1349
+ na as buildDynamicCopy,
1350
+ ia as buildPluralCopy,
1350
1351
  ro as formatCurrency,
1351
1352
  Hr as formatDate,
1352
1353
  oo as formatOrdinal,
1353
1354
  ao as formatPercentage,
1354
- sa as fromTimestampToMonthYear,
1355
- Ko as getCategory,
1356
- Vo as getCategoryTotalsByParent,
1355
+ oa as fromTimestampToMonthYear,
1356
+ Zo as getCategory,
1357
+ Jo as getCategoryTotalsByParent,
1357
1358
  Xe as getClientTheme,
1358
1359
  no as getCurrencyCodes,
1359
- Zo as getDetailedCategory,
1360
- Jo as getDetailedSubCategory,
1361
- na as getLocale,
1362
- ta as isIncome,
1360
+ ta as getDetailedCategory,
1361
+ ea as getDetailedSubCategory,
1362
+ ca as getLocale,
1363
+ sa as isIncome,
1363
1364
  io as isValidNumber,
1364
1365
  qo as useAccountDisplayName,
1365
1366
  fo as useAccountStore,
@@ -1392,5 +1393,6 @@ export {
1392
1393
  Lo as useTransactionStore,
1393
1394
  Go as useTrendsStore,
1394
1395
  Ho as useUserStore,
1395
- Fo as useWidgetContainerProvider
1396
+ Fo as useWidgetContainerProvider,
1397
+ Ko as useWidgetLoadTimer
1396
1398
  };
@@ -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
4
  import h from "@mui/material/Unstable_Grid2";
5
- import u from "@mui/material/Skeleton";
6
- import l from "@mui/material/Stack";
5
+ import d from "@mui/material/Skeleton";
6
+ import s from "@mui/material/Stack";
7
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";
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 $ from "@mui/material/Button";
14
- import H from "@mui/material/IconButton";
15
- import R from "@mui/material/Tooltip";
16
- import j from "@mui/material/useMediaQuery";
17
- import { k as E, l as Q } from "../ConnectDrawer-CuUj16NH.mjs";
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-KL8t1qSC.mjs";
18
18
  import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
19
- const P = _(() => {
19
+ import { u as E } from "../useWidgetLoadTimer-C1NBkyLd.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 = j("(max-width: 700px)");
60
- return /* @__PURE__ */ t(T, { my: 4, children: i ? /* @__PURE__ */ t(R, { id: "add-accounts", placement: "bottom", title: o.add_accounts, children: /* @__PURE__ */ t(
61
- H,
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
+ $,
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
- $,
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 } = M(), { common: n, connect: x } = v(), { config: a } = k(), { isMobile: w } = z(), 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
- E,
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,
@@ -134,50 +135,51 @@ const P = _(() => {
134
135
  e && /* @__PURE__ */ t(
135
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 } = 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),
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: [
164
+ return /* @__PURE__ */ a(h, { container: !0, spacing: u ? 0 : 24, sx: { overflow: "scroll" }, children: [
163
165
  /* @__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%" })
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, { 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
  };