@mx-cartographer/experiences 7.4.8-alpha.mm1 → 7.4.8

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 +4 -0
  2. package/dist/{Account-BrOTlmeK.mjs → Account-01wOyrH1.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-B7FqH05C.mjs → AccountDetailsContent-COMjOzwr.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-C8MxsxhN.mjs → AccountDetailsHeader-Cbi5G6fJ.mjs} +4 -4
  5. package/dist/{AccountFields-BQZ-o6Kj.mjs → AccountFields-Cd_nOWmf.mjs} +2 -2
  6. package/dist/{AccountListItem-aIE9WWTO.mjs → AccountListItem-DxY4cCF1.mjs} +4 -4
  7. package/dist/{AccountStore-DqO84Aer.mjs → AccountStore-C1zMBzHq.mjs} +2 -2
  8. package/dist/{Accounts-DC_A4UCa.mjs → Accounts-D7QljYas.mjs} +1 -1
  9. package/dist/{BudgetUtil-BmZXkL0C.mjs → BudgetUtil-Df2nII9u.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-SUgfE5GN.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +1 -1
  11. package/dist/{ConnectDrawer-KL8t1qSC.mjs → ConnectDrawer-CuUj16NH.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-DaK5uIL5.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +2 -2
  13. package/dist/{CurrencyInput-itK0R3wV.mjs → CurrencyInput-BFKcs-_K.mjs} +1 -1
  14. package/dist/{DebtsStore-DVPZbv2C.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
  15. package/dist/{ExportCsvAction-Cglo8Mca.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  16. package/dist/{GoalStore-o4rrjGSJ.mjs → GoalStore-CrNhjvNc.mjs} +2 -2
  17. package/dist/{Help-BjLMsuMS.mjs → Help-BnPXM_N2.mjs} +1 -1
  18. package/dist/{LineChart-BQRxZF3p.mjs → LineChart-bc1D9xBE.mjs} +1 -1
  19. package/dist/{ListItemAction-BxTkF6Tz.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  20. package/dist/{ManageIncome-rcnDYsBJ.mjs → ManageIncome-A69EUO5u.mjs} +75 -75
  21. package/dist/{MicroWidgetContainer-B2hO9rOG.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-98-hKFqm.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  23. package/dist/{NetWorthStore-DG2X69jG.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
  24. package/dist/{NotificationSettings-C7FYNM7I.mjs → NotificationSettings-CNmJWVeI.mjs} +248 -250
  25. package/dist/{OriginalBalanceAction-C6jdS4ws.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +3 -3
  26. package/dist/{RecurringSettings-C81H1l38.mjs → RecurringSettings-B0uObPlD.mjs} +3 -3
  27. package/dist/{SpendingLegend-DqZxN_BZ.mjs → SpendingLegend-Bf-wbJvb.mjs} +2 -2
  28. package/dist/{TransactionDetails-BA_E5nQ-.mjs → TransactionDetails-COH0OKNG.mjs} +5 -5
  29. package/dist/{TransactionStore-PRlwE-TF.mjs → TransactionStore-Dz-G8Wd0.mjs} +2 -2
  30. package/dist/{User-Cnlegl1N.mjs → User-wXzDI4M8.mjs} +1 -1
  31. package/dist/{ViewMoreMicroCard-DfPXJzbv.mjs → ViewMoreMicroCard-C0832BMe.mjs} +101 -105
  32. package/dist/{WidgetContainer-CaPjoWeE.mjs → WidgetContainer-6dsjtOVg.mjs} +2 -2
  33. package/dist/accounts/index.es.js +140 -148
  34. package/dist/analytics/index.es.js +2 -2
  35. package/dist/budgets/index.es.js +478 -483
  36. package/dist/cashflow/index.es.js +362 -367
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/hooks/index.d.ts +0 -1
  39. package/dist/common/index.es.js +33 -35
  40. package/dist/dashboard/index.es.js +88 -90
  41. package/dist/debts/index.es.js +342 -346
  42. package/dist/{exportTransactionsToCSV-DuAaI5XA.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +1 -1
  43. package/dist/finstrong/index.es.js +350 -352
  44. package/dist/goals/index.es.js +511 -518
  45. package/dist/help/index.es.js +9 -13
  46. package/dist/{hooks-ZMp65DFz.mjs → hooks-C41HAxM5.mjs} +11 -11
  47. package/dist/investments/index.es.js +393 -395
  48. package/dist/merchants/index.es.js +1 -1
  49. package/dist/microinsights/index.es.js +1 -1
  50. package/dist/networth/index.es.js +240 -245
  51. package/dist/notifications/index.es.js +2 -2
  52. package/dist/recurringtransactions/index.es.js +285 -293
  53. package/dist/settings/index.es.js +249 -252
  54. package/dist/spending/index.es.js +126 -138
  55. package/dist/transactions/index.es.js +73 -77
  56. package/dist/trends/index.es.js +588 -601
  57. package/dist/{useAccountDisplayName-Cjx8YmKK.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
  58. package/dist/{useInsightsEnabled-B7dxpDrX.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  59. package/package.json +1 -1
  60. package/dist/common/hooks/useWidgetLoadTimer.d.ts +0 -6
  61. package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +0 -23
@@ -1,4 +1,4 @@
1
- import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-SUgfE5GN.mjs";
1
+ import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-DqJK_rrL.mjs";
2
2
  import { C as g } from "../CategoryStore-U7hOZAbP.mjs";
3
3
  export {
4
4
  o as CategoryRow,
@@ -3,4 +3,3 @@ 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';
@@ -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-Cnlegl1N.mjs";
10
- import { C as ps, b as ms, L as _s, a as fs } from "../User-Cnlegl1N.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";
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-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";
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";
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-PRlwE-TF.mjs";
22
- import { S as tr } from "../TransactionStore-PRlwE-TF.mjs";
21
+ import { T as at } from "../TransactionStore-Dz-G8Wd0.mjs";
22
+ import { S as tr } from "../TransactionStore-Dz-G8Wd0.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-o4rrjGSJ.mjs";
29
- import { C as mr, G as _r, M as fr, T as yr } from "../GoalStore-o4rrjGSJ.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";
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-BxTkF6Tz.mjs";
32
+ import { L as vr } from "../ListItemAction-uobBrm_a.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,36 +42,35 @@ 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-BrOTlmeK.mjs";
45
+ import { I as zr, P as Xr, S as jr } from "../Account-01wOyrH1.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, 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";
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";
54
54
  import { u as Xo } from "../useScreenSize-B6JyS_Lj.mjs";
55
- import { u as Ko } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
56
55
  import { makeAutoObservable as f, runInAction as p, reaction as _t, autorun as ft } from "mobx";
57
- import { a as yt } from "../AccountStore-DqO84Aer.mjs";
56
+ import { a as yt } from "../AccountStore-C1zMBzHq.mjs";
58
57
  import St from "posthog-js";
59
58
  import { B as bt } from "../BeatStore-D_NYuBSz.mjs";
60
59
  import { endOfMonth as Z } from "date-fns/endOfMonth";
61
60
  import { startOfMonth as J } from "date-fns/startOfMonth";
62
61
  import { startOfToday as O } from "date-fns/startOfToday";
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";
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";
66
65
  import { F as vt } from "../FinstrongStore-BIrX0Xg2.mjs";
67
66
  import { A as Dt, m as At, a as Et, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
68
67
  import { M as Bt } from "../MerchantStore-WvZ4gnQe.mjs";
69
- import { N as It } from "../NetWorthStore-DG2X69jG.mjs";
68
+ import { N as It } from "../NetWorthStore-CpL_kqvx.mjs";
70
69
  import { a as Nt } from "../SettingsStore-krIRNwHK.mjs";
71
70
  import { addMonths as Mt } from "date-fns/addMonths";
72
71
  import { getMonth as T } from "date-fns/getMonth";
73
- import { i as oa } from "../DateUtil-CBdcsyuk.mjs";
74
- import { b as na, a as ia, g as ca } from "../Localization-2MODESHW.mjs";
72
+ import { i as sa } from "../DateUtil-CBdcsyuk.mjs";
73
+ import { b as oa, a as aa, g as na } from "../Localization-2MODESHW.mjs";
75
74
  import { alpha as $t, lighten as G, darken as H } from "@mui/material";
76
75
  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 || {});
77
76
  const Qe = [
@@ -1346,21 +1345,21 @@ export {
1346
1345
  mo as WidgetContainerContext,
1347
1346
  _o as WidgetContainerProvider,
1348
1347
  os as analyticsSession,
1349
- na as buildDynamicCopy,
1350
- ia as buildPluralCopy,
1348
+ oa as buildDynamicCopy,
1349
+ aa as buildPluralCopy,
1351
1350
  ro as formatCurrency,
1352
1351
  Hr as formatDate,
1353
1352
  oo as formatOrdinal,
1354
1353
  ao as formatPercentage,
1355
- oa as fromTimestampToMonthYear,
1356
- Zo as getCategory,
1357
- Jo as getCategoryTotalsByParent,
1354
+ sa as fromTimestampToMonthYear,
1355
+ Ko as getCategory,
1356
+ Vo as getCategoryTotalsByParent,
1358
1357
  Xe as getClientTheme,
1359
1358
  no as getCurrencyCodes,
1360
- ta as getDetailedCategory,
1361
- ea as getDetailedSubCategory,
1362
- ca as getLocale,
1363
- sa as isIncome,
1359
+ Zo as getDetailedCategory,
1360
+ Jo as getDetailedSubCategory,
1361
+ na as getLocale,
1362
+ ta as isIncome,
1364
1363
  io as isValidNumber,
1365
1364
  qo as useAccountDisplayName,
1366
1365
  fo as useAccountStore,
@@ -1393,6 +1392,5 @@ export {
1393
1392
  Lo as useTransactionStore,
1394
1393
  Go as useTrendsStore,
1395
1394
  Ho as useUserStore,
1396
- Fo as useWidgetContainerProvider,
1397
- Ko as useWidgetLoadTimer
1395
+ Fo as useWidgetContainerProvider
1398
1396
  };
@@ -1,30 +1,29 @@
1
- import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
- import c from "react";
1
+ import { jsx as t, jsxs as s } from "react/jsx-runtime";
2
+ import r from "react";
3
3
  import { observer as _ } from "mobx-react-lite";
4
4
  import h from "@mui/material/Unstable_Grid2";
5
- import d from "@mui/material/Skeleton";
6
- import s from "@mui/material/Stack";
5
+ import u from "@mui/material/Skeleton";
6
+ import l 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 } 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";
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
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-KL8t1qSC.mjs";
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";
18
18
  import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
19
- import { u as E } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
20
- const N = _(() => {
19
+ const P = _(() => {
21
20
  const e = D(), {
22
- appDataStore: { banner: r, loadBanner: i, user: u }
21
+ appDataStore: { banner: o, loadBanner: i, user: d }
23
22
  } = A();
24
- return c.useEffect(() => {
23
+ return r.useEffect(() => {
25
24
  i().finally();
26
- }, [u]), r?.image_url ? /* @__PURE__ */ t(
27
- s,
25
+ }, [d]), o?.image_url ? /* @__PURE__ */ t(
26
+ l,
28
27
  {
29
28
  sx: {
30
29
  alignItems: "center",
@@ -34,7 +33,7 @@ const N = _(() => {
34
33
  children: /* @__PURE__ */ t(
35
34
  "a",
36
35
  {
37
- href: r?.redirect_url,
36
+ href: o?.redirect_url,
38
37
  rel: "noreferrer",
39
38
  style: {
40
39
  width: "100%"
@@ -44,7 +43,7 @@ const N = _(() => {
44
43
  "img",
45
44
  {
46
45
  alt: "",
47
- src: r.image_url,
46
+ src: o.image_url,
48
47
  style: {
49
48
  width: "100%",
50
49
  height: "auto",
@@ -56,25 +55,25 @@ const N = _(() => {
56
55
  )
57
56
  }
58
57
  ) : 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
- $,
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,
63
62
  {
64
63
  "aria-controls": "add_accounts",
65
64
  "aria-describedby": "add-accounts",
66
65
  "aria-haspopup": !0,
67
- "aria-label": r.add_accounts,
66
+ "aria-label": o.add_accounts,
68
67
  color: "primary",
69
68
  onClick: e,
70
69
  children: /* @__PURE__ */ t(S, { name: "add", size: 24 })
71
70
  }
72
71
  ) }) : /* @__PURE__ */ t(
73
- I,
72
+ $,
74
73
  {
75
74
  "aria-controls": "add_accounts",
76
75
  "aria-haspopup": !0,
77
- "aria-label": r.add_accounts,
76
+ "aria-label": o.add_accounts,
78
77
  onClick: e,
79
78
  startIcon: /* @__PURE__ */ t(S, { name: "add", size: 24 }),
80
79
  sx: {
@@ -83,44 +82,44 @@ const N = _(() => {
83
82
  minWidth: "max-content"
84
83
  },
85
84
  variant: "text",
86
- children: r.add_accounts
85
+ children: o.add_accounts
87
86
  }
88
87
  ) });
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 = {
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 = {
91
90
  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
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
102
101
  },
103
- title: o.filter_button
104
- }, w = () => {
102
+ title: n.filter_button
103
+ }, c = () => {
105
104
  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;
105
+ return p > 1 && p < 12 ? n.good_morning : p >= 12 && p < 18 ? n.good_afternoon : n.good_evening;
107
106
  };
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 })
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 })
113
112
  ] }),
114
- /* @__PURE__ */ a(s, { flexDirection: "row", children: [
115
- m.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => r(!0) }),
113
+ /* @__PURE__ */ s(l, { flexDirection: "row", children: [
114
+ a.show_connections_widget_in_master && /* @__PURE__ */ t(O, { handleConnectClick: () => o(!0) }),
116
115
  /* @__PURE__ */ t(
117
- j,
116
+ E,
118
117
  {
119
- accounts: u,
120
- copy: n,
121
- onConnectAccountClick: m.show_connections_widget_in_master ? () => r(!0) : void 0,
122
- onFilterClick: (y) => {
123
- b(y);
118
+ accounts: d,
119
+ copy: y,
120
+ onConnectAccountClick: a.show_connections_widget_in_master ? () => o(!0) : void 0,
121
+ onFilterClick: (m) => {
122
+ b(m);
124
123
  },
125
124
  selectedAccountGuids: g,
126
125
  showAccountNumbers: !1,
@@ -135,51 +134,50 @@ const N = _(() => {
135
134
  e && /* @__PURE__ */ t(
136
135
  Q,
137
136
  {
138
- onClose: () => r(!1),
137
+ onClose: () => o(!1),
139
138
  showConnectWidget: e,
140
- title: l.mini_title
139
+ title: x.mini_title
141
140
  }
142
141
  )
143
142
  ] });
144
143
  }, q = _(U);
145
144
  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({
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),
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),
156
154
  [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]
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]
163
161
  );
164
- return /* @__PURE__ */ a(h, { container: !0, spacing: u ? 0 : 24, sx: { overflow: "scroll" }, children: [
162
+ return /* @__PURE__ */ s(h, { container: !0, spacing: d ? 0 : 24, sx: { overflow: "scroll" }, children: [
165
163
  /* @__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%" })
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%" })
172
170
  ] }),
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)) })
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)) })
174
172
  ] }),
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)) }) })
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)) }) })
180
178
  ] });
181
- }, pt = _(J);
179
+ }, mt = _(J);
182
180
  export {
183
- pt as Dashboard,
181
+ mt as Dashboard,
184
182
  f as DashboardLocation
185
183
  };