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

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 (106) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
  2. package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
  5. package/dist/AccountListItem-DX5upmCS.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  10. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  11. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
  12. package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
  13. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
  15. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
  16. package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
  17. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  18. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
  19. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  20. package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
  21. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  22. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  23. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
  24. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  25. package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  28. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  29. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  30. package/dist/Loader-DUaFpDGv.mjs +24 -0
  31. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
  32. package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
  33. package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
  34. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
  35. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
  36. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
  37. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
  38. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
  39. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
  40. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  41. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  42. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  43. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  44. package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
  45. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
  46. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  47. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  48. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  49. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
  50. package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
  51. package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
  52. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
  53. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
  54. package/dist/accounts/index.es.js +94 -94
  55. package/dist/analytics/index.es.js +27 -27
  56. package/dist/budgets/index.es.js +251 -250
  57. package/dist/cashflow/index.es.js +158 -157
  58. package/dist/categories/index.es.js +2 -2
  59. package/dist/common/components/Loader.d.ts +2 -1
  60. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  61. package/dist/common/components/barchart/Bar.d.ts +25 -0
  62. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  63. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  64. package/dist/common/components/barchart/Legend.d.ts +8 -0
  65. package/dist/common/components/barchart/Util.d.ts +42 -0
  66. package/dist/common/components/barchart/index.d.ts +1 -0
  67. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  68. package/dist/common/components/index.d.ts +1 -0
  69. package/dist/common/index.es.js +660 -395
  70. package/dist/common/utils/Theme.d.ts +3 -1
  71. package/dist/dashboard/index.es.js +21 -21
  72. package/dist/debts/components/DebtsChart.d.ts +2 -1
  73. package/dist/debts/index.es.js +440 -440
  74. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
  75. package/dist/finstrong/index.es.js +118 -118
  76. package/dist/goals/index.es.js +380 -386
  77. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  78. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  79. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  80. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  81. package/dist/help/index.es.js +6 -6
  82. package/dist/investments/index.es.js +279 -278
  83. package/dist/merchants/index.es.js +7 -7
  84. package/dist/microinsights/index.es.js +1 -1
  85. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  86. package/dist/networth/index.es.js +185 -191
  87. package/dist/notifications/index.es.js +30 -30
  88. package/dist/recurringtransactions/index.es.js +85 -85
  89. package/dist/settings/index.es.js +270 -270
  90. package/dist/spending/index.es.js +44 -44
  91. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  92. package/dist/transactions/index.es.js +169 -168
  93. package/dist/trends/index.es.js +318 -317
  94. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
  95. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  96. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  97. package/package.json +50 -45
  98. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  99. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  100. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  101. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  102. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  103. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  104. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  105. package/dist/SearchBox-B7km148n.mjs +0 -39
  106. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -1,7 +1,7 @@
1
1
  import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
2
  import o from "react";
3
3
  import { observer as ce } from "mobx-react-lite";
4
- import Z from "@mui/material/Box";
4
+ import $ from "@mui/material/Box";
5
5
  import M from "@mui/material/Button";
6
6
  import re from "@mui/material/Card";
7
7
  import oe from "@mui/material/CardContent";
@@ -12,11 +12,11 @@ import Y from "@mui/material/Stack";
12
12
  import { ChevronLeft as le } from "@mxenabled/mx-icons";
13
13
  import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
14
14
  import { u as Te } from "./useDimensions-27p2evRx.mjs";
15
- import { L as Ie } from "./Loader-Ckqi9Rx6.mjs";
16
- import { g as Ee, b as Re, u as ge, a as Ae, W as ue } from "./hooks-C41HAxM5.mjs";
17
- import { u as ie } from "./useScreenSize-B5afALev.mjs";
15
+ import { L as Ie } from "./Loader-DUaFpDGv.mjs";
16
+ import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-C41HAxM5.mjs";
17
+ import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
18
18
  import { addMonths as Q } from "date-fns/addMonths";
19
- import { addDays as Se } from "date-fns/addDays";
19
+ import { addDays as ue } from "date-fns/addDays";
20
20
  import { addYears as ee } from "date-fns/addYears";
21
21
  import { differenceInCalendarDays as Ne } from "date-fns/differenceInCalendarDays";
22
22
  import { endOfDay as me } from "date-fns/endOfDay";
@@ -34,10 +34,10 @@ import fe from "@mui/material/Tab";
34
34
  import be from "@mui/material/Tabs";
35
35
  import we from "@mui/material/ToggleButton";
36
36
  import Ke from "@mui/material/ToggleButtonGroup";
37
- import { useTheme as Ge } from "@mui/material/styles";
38
- import { f as K, a as G, D as Me } from "./Dialog-CDV0kKxj.mjs";
39
- import { D as We } from "./Drawer-BF40nbsH.mjs";
40
- import { k as ye, l as xe } from "./ConnectDrawer-DVp54lUH.mjs";
37
+ import Ge from "@mui/material/styles/useTheme";
38
+ import { f as K, a as G, D as Me } from "./Dialog-BPTr3qHE.mjs";
39
+ import { D as We } from "./Drawer-BEtCk82g.mjs";
40
+ import { k as ye, l as xe } from "./ConnectDrawer-BIbTqYOH.mjs";
41
41
  const ve = {
42
42
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
43
43
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
@@ -158,7 +158,7 @@ const ve = {
158
158
  TRENDS_HOVER_LEGEND: "trends_hover_ChartLegend",
159
159
  TRENDS_LOAD_WIDGET: "trends_load_widget",
160
160
  TRENDS_VIEW_TRANSACTIONS: "trends_view_transactions"
161
- }, ae = ({
161
+ }, Ue = ({
162
162
  calendarActions: a,
163
163
  color: N = "primary",
164
164
  copy: _,
@@ -189,24 +189,24 @@ const ve = {
189
189
  const e = V(te());
190
190
  return [V(j(e, h)), e];
191
191
  }, w = (e) => {
192
- const [i, E] = s, u = e === "previous";
193
- let S;
192
+ const [i, E] = s, S = e === "previous";
193
+ let u;
194
194
  if (c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth)
195
- S = [
196
- u ? j(i, 1) : Q(i, 1),
197
- V(u ? j(E, 1) : Q(E, 1))
195
+ u = [
196
+ S ? j(i, 1) : Q(i, 1),
197
+ V(S ? j(E, 1) : Q(E, 1))
198
198
  ];
199
199
  else if (c === _.dateRangePickerCopy.dateRangeYTD || c === _.dateRangePickerCopy.dateRangeLastYear) {
200
200
  const R = ke(i), g = Le(i);
201
- S = [
202
- u ? _e(R, 1) : ee(R, 1),
203
- u ? _e(g, 1) : ee(g, 1)
201
+ u = [
202
+ S ? _e(R, 1) : ee(R, 1),
203
+ S ? _e(g, 1) : ee(g, 1)
204
204
  ];
205
205
  } else {
206
- const R = Ne(E, i), g = u ? he : Se;
207
- S = [g(i, R), g(E, R)];
206
+ const R = Ne(E, i), g = S ? he : ue;
207
+ u = [g(i, R), g(E, R)];
208
208
  }
209
- f(S), a.onRangeChanged(S);
209
+ f(u), a.onRangeChanged(u);
210
210
  }, x = () => {
211
211
  f(r), y(
212
212
  c === _.dateRangePickerCopy.dateRangeThisMonth || c === _.dateRangePickerCopy.dateRangeLastMonth
@@ -218,9 +218,9 @@ const ve = {
218
218
  }, U = (e) => {
219
219
  l(e);
220
220
  };
221
- return /* @__PURE__ */ d(Z, { className: "mx-cmn-date-range-selector", m: 4, children: [
221
+ return /* @__PURE__ */ d($, { className: "mx-cmn-date-range-selector", m: 4, children: [
222
222
  /* @__PURE__ */ d(
223
- Z,
223
+ $,
224
224
  {
225
225
  sx: {
226
226
  [W.breakpoints.down("sm")]: {
@@ -322,7 +322,7 @@ const ve = {
322
322
  children: C.tabs.map((e) => /* @__PURE__ */ t(
323
323
  fe,
324
324
  {
325
- label: /* @__PURE__ */ t(X, { bold: !0, variant: "body1", children: e.label }),
325
+ label: /* @__PURE__ */ t(X, { bold: !0, variant: "Body", children: e.label }),
326
326
  sx: { minWidth: 80 },
327
327
  value: e.value
328
328
  },
@@ -387,7 +387,7 @@ const ve = {
387
387
  }
388
388
  )
389
389
  ] });
390
- }, Ue = ({
390
+ }, ae = Ue, Pe = ({
391
391
  accountOptions: a,
392
392
  actions: N = [],
393
393
  calendarActions: _,
@@ -402,12 +402,12 @@ const ve = {
402
402
  sx: H = {},
403
403
  title: r = ""
404
404
  }) => {
405
- const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Te(), { onEvent: h } = Ee(), { isDesktop: l, isMobile: C, isTablet: I } = ie(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: U } = Re(), { common: e, connect: i } = ge(), { config: E } = Ae(), u = () => {
405
+ const [b, p] = o.useState(!1), [k, { height: F, width: y }] = Te(), { onEvent: h } = Ee(), { isDesktop: l, isMobile: C, isTablet: I } = ie(y), { displayedDateRange: w, isCopyLoaded: x, selectedAccountGuids: v, setSelectedAccountGuids: U } = Re(), { common: e, connect: i } = ge(), { config: E } = Ae(), S = () => {
406
406
  s && (s(), h(ve.WIDGET_BACK_CLICK));
407
407
  };
408
408
  if (!x)
409
409
  return /* @__PURE__ */ t(Ie, {});
410
- const S = {
410
+ const u = {
411
411
  accountFilterOptionsCopy: {
412
412
  accountTypeAccounts: e.account_filter.account_type_accounts,
413
413
  cancelButton: e.cancel_button,
@@ -439,7 +439,7 @@ const ve = {
439
439
  dateRangeEditTitle: e.date_range_picker.edit_title,
440
440
  dateRangeNextAria: e.date_range_picker.next_aria,
441
441
  dateRangePreviousAria: e.date_range_picker.previous_aria
442
- }, g = L ? L.start : w.start, $ = L ? L.end : w.end, ne = N?.length > 1;
442
+ }, g = L ? L.start : w.start, Z = L ? L.end : w.end, ne = N?.length > 1;
443
443
  return /* @__PURE__ */ d(
444
444
  re,
445
445
  {
@@ -456,12 +456,12 @@ const ve = {
456
456
  se,
457
457
  {
458
458
  action: /* @__PURE__ */ d(Y, { alignItems: "center", flexDirection: "row", children: [
459
- l && _ && /* @__PURE__ */ t(Z, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
459
+ l && _ && /* @__PURE__ */ t($, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
460
460
  ae,
461
461
  {
462
462
  calendarActions: _,
463
463
  copy: R,
464
- range: [g, $],
464
+ range: [g, Z],
465
465
  shouldShrinkToIcon: !1,
466
466
  variant: n
467
467
  }
@@ -470,7 +470,7 @@ const ve = {
470
470
  ye,
471
471
  {
472
472
  accounts: a,
473
- copy: S,
473
+ copy: u,
474
474
  onConnectAccountClick: E.show_connections_widget_in_master ? () => p(!0) : void 0,
475
475
  onFilterClick: (O) => {
476
476
  U(O), f?.(O);
@@ -522,7 +522,7 @@ const ve = {
522
522
  {
523
523
  "aria-label": e.back_to_dashboard,
524
524
  color: "primary",
525
- onClick: u,
525
+ onClick: S,
526
526
  sx: { p: 12, mr: 4 },
527
527
  children: /* @__PURE__ */ t(le, { size: 24 })
528
528
  }
@@ -539,7 +539,7 @@ const ve = {
539
539
  {
540
540
  calendarActions: _,
541
541
  copy: R,
542
- range: [g, $],
542
+ range: [g, Z],
543
543
  shouldShrinkToIcon: !1,
544
544
  variant: n
545
545
  }
@@ -553,13 +553,13 @@ const ve = {
553
553
  title: i.mini_title
554
554
  }
555
555
  ),
556
- /* @__PURE__ */ t(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ t(ue, { availableHeight: F, availableWidth: y, children: m }) })
556
+ /* @__PURE__ */ t(oe, { ref: k, sx: { p: 0 }, children: /* @__PURE__ */ t(Se, { availableHeight: F, availableWidth: y, children: m }) })
557
557
  ]
558
558
  }
559
559
  );
560
- }, kt = ce(Ue);
560
+ }, ht = ce(Pe);
561
561
  export {
562
562
  ve as A,
563
563
  ae as D,
564
- kt as W
564
+ ht as W
565
565
  };
@@ -1,70 +1,70 @@
1
1
  import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
2
  import s from "react";
3
3
  import { observer as g } from "mobx-react-lite";
4
- import B from "@mui/material/Stack";
4
+ import I from "@mui/material/Stack";
5
5
  import { Text as V } from "@mxenabled/mxui";
6
6
  import { S as U } from "../SkeletonLoader-BaNboJjD.mjs";
7
- import N from "@mui/material/Box";
7
+ import D from "@mui/material/Box";
8
8
  import y from "@mui/material/Divider";
9
9
  import E from "@mui/material/List";
10
- import O from "@mui/material/ListSubheader";
10
+ import N from "@mui/material/ListSubheader";
11
11
  import x from "@mui/system/Stack";
12
12
  import { useTheme as Q } from "@mui/material/styles";
13
- import { u as P, A as X } from "../AccountDetailsHeader-DRjFuyJT.mjs";
14
- import { L as e1 } from "../LineChart-C1PxNf7P.mjs";
15
- import { g as t1, a as l1, b as n1 } from "../SpendingData-DPQ96k3x.mjs";
16
- import { m as i1, u as v, b as S, d as F, g as G, a as o1, n as C1 } from "../hooks-C41HAxM5.mjs";
17
- import { A as W, l as j, m as d1 } from "../ConnectDrawer-DVp54lUH.mjs";
18
- import { F as C3, f as d3 } from "../ConnectDrawer-DVp54lUH.mjs";
19
- import { I as Y, P as $, S as K } from "../Account-B4CDD-zq.mjs";
20
- import { a as c1 } from "../AccountFields-Cl4KHoSj.mjs";
21
- import { g as s3, b as a3 } from "../AccountFields-Cl4KHoSj.mjs";
22
- import { A as T } from "../AccountListItem-wgmlex-_.mjs";
23
- import { A as s1 } from "../AccountDetailsContent-adZTkM52.mjs";
24
- import { u as u3 } from "../AccountDetailsContent-adZTkM52.mjs";
25
- import { D as a1 } from "../Drawer-BF40nbsH.mjs";
26
- import { f as I } from "../NumberFormatting-DjTD0t3W.mjs";
27
- import { A as b, W as r1 } from "../WidgetContainer-CDh9fjpR.mjs";
28
- import { C as u1 } from "../ConnectionsDrawer-Dsc04-4Z.mjs";
29
- import { L as D } from "../Loader-Ckqi9Rx6.mjs";
30
- import { u as z } from "../useScreenSize-B5afALev.mjs";
31
- import L1 from "@mui/material/ListItem";
32
- import { M as q } from "../MiniWidgetContainer-CKzf_Ira.mjs";
33
- import { A as h3, a as H3 } from "../AccountStore-HbVblv86.mjs";
13
+ import { u as P, A as X } from "../AccountDetailsHeader-i3KFhNuo.mjs";
14
+ import { L as e1 } from "../LineChart-bc1D9xBE.mjs";
15
+ import { g as t1, a as l1, b as n1 } from "../SpendingData-BuJ03S9d.mjs";
16
+ import { m as i1, u as v, b, d as F, g as G, a as o1, n as C1 } from "../hooks-C41HAxM5.mjs";
17
+ import { A as O, l as $, m as c1 } from "../ConnectDrawer-BIbTqYOH.mjs";
18
+ import { F as C3, f as c3 } from "../ConnectDrawer-BIbTqYOH.mjs";
19
+ import { I as j, P as Y, S as K } from "../Account-BDXA6PWh.mjs";
20
+ import { a as d1 } from "../AccountFields-QZspYAji.mjs";
21
+ import { g as s3, b as a3 } from "../AccountFields-QZspYAji.mjs";
22
+ import { A as T } from "../AccountListItem-DX5upmCS.mjs";
23
+ import { A as s1 } from "../AccountDetailsContent-CUztd3-b.mjs";
24
+ import { u as L3 } from "../AccountDetailsContent-CUztd3-b.mjs";
25
+ import { f as W } from "../NumberFormatting-DjTD0t3W.mjs";
26
+ import { D as a1 } from "../Drawer-BEtCk82g.mjs";
27
+ import { A as S, W as r1 } from "../WidgetContainer-BhQ1Kx2z.mjs";
28
+ import { C as L1 } from "../ConnectionsDrawer-BFfY3_zB.mjs";
29
+ import { u as z } from "../useScreenSize-B6JyS_Lj.mjs";
30
+ import { L as B } from "../Loader-DUaFpDGv.mjs";
31
+ import u1 from "@mui/material/ListItem";
32
+ import { M as q } from "../MiniWidgetContainer-CmXpTylX.mjs";
33
+ import { A as h3, a as H3 } from "../AccountStore-BcnDpyLL.mjs";
34
34
  const h1 = (o, C) => {
35
- const n = Y.includes(C) ? t1(o) : [], l = $.includes(C) ? l1(o) : [], u = K.includes(C) ? n1(o) : [];
36
- return [n, l, u].filter((i) => i.length > 0);
35
+ const n = j.includes(C) ? t1(o) : [], l = Y.includes(C) ? l1(o) : [], L = K.includes(C) ? n1(o) : [];
36
+ return [n, l, L].filter((i) => i.length > 0);
37
37
  }, H1 = (o, C, n) => {
38
- const [l, u] = o, i = l, L = u ?? l, d = [];
39
- if (i && L && Y.includes(C)) {
38
+ const [l, L] = o, i = l, u = L ?? l, c = [];
39
+ if (i && u && j.includes(C)) {
40
40
  const h = i[i.length - 1].y;
41
- d.push({ label: n.income_label, amount: h });
42
- } else if ($.includes(C)) {
41
+ c.push({ label: n.income_label, amount: h });
42
+ } else if (Y.includes(C)) {
43
43
  const h = i[i.length - 1].y;
44
- d.push({ label: n.payments_label, amount: h });
44
+ c.push({ label: n.payments_label, amount: h });
45
45
  }
46
- if (L && K.includes(C)) {
47
- const h = L[L.length - 1].y;
48
- d.push({ label: n.spending_label, amount: h });
46
+ if (u && K.includes(C)) {
47
+ const h = u[u.length - 1].y;
48
+ c.push({ label: n.spending_label, amount: h });
49
49
  }
50
- return d;
50
+ return c;
51
51
  }, p1 = () => {
52
- const o = Q(), { selectedAccount: C } = P(), { monthlyCategoryTotals: n } = i1(), { trends: l } = v(), u = [o.palette.chart?.chart1, o.palette.chart?.chart2], i = h1(n, C.account_type), L = H1(i, C.account_type, l), d = [W.LOAN, W.MORTGAGE].includes(C.account_type);
52
+ const o = Q(), { selectedAccount: C } = P(), { monthlyCategoryTotals: n } = i1(), { trends: l } = v(), L = [o.palette.chart?.chart1, o.palette.chart?.chart2], i = h1(n, C.account_type), u = H1(i, C.account_type, l), c = [O.LOAN, O.MORTGAGE].includes(C.account_type);
53
53
  return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
54
54
  e1,
55
55
  {
56
- colors: u,
56
+ colors: L,
57
57
  datasets: i,
58
58
  height: 185,
59
- labels: L,
60
- showAverage: d,
61
- showBars: d,
59
+ labels: u,
60
+ showAverage: c,
61
+ showBars: c,
62
62
  showLegend: !0,
63
63
  valueFormatterString: "0,0"
64
64
  }
65
65
  ) });
66
66
  }, f1 = g(p1), m1 = () => {
67
- const [o, C] = s.useState(""), { accounts: n } = v(), { selectedAccounts: l } = S(), { setSelectedAccount: u, setSelectedMember: i } = P(), { members: L } = F(), { onEvent: d } = G(), h = [...new Set(l.map((t) => t.account_type))], p = l.find((t) => o === t.guid), H = s.useMemo(
67
+ const [o, C] = s.useState(""), { accounts: n } = v(), { selectedAccounts: l } = b(), { setSelectedAccount: L, setSelectedMember: i } = P(), { members: u } = F(), { onEvent: c } = G(), h = [...new Set(l.map((t) => t.account_type))], p = l.find((t) => o === t.guid), H = s.useMemo(
68
68
  () => l.filter((t) => t.is_hidden),
69
69
  [l]
70
70
  ), f = s.useMemo(
@@ -73,34 +73,34 @@ const h1 = (o, C) => {
73
73
  ), M = H.reduce(
74
74
  (t, a) => (a.available_balance || a.balance || 0) + t,
75
75
  0
76
- ), R = c1(f, n);
76
+ ), R = d1(f, n);
77
77
  s.useEffect(() => {
78
78
  if (p) {
79
- u(p);
80
- const t = L.find((a) => a.guid === p?.member_guid) || {};
79
+ L(p);
80
+ const t = u.find((a) => a.guid === p?.member_guid) || {};
81
81
  t && i(t);
82
82
  }
83
83
  }, [p, o]);
84
84
  const _ = (t) => {
85
- C(t.guid), d(b.ACCOUNTS_CLICK_ACCOUNT, {
85
+ C(t.guid), c(S.ACCOUNTS_CLICK_ACCOUNT, {
86
86
  account_guid: t.guid,
87
87
  account_type: t.account_type
88
88
  });
89
89
  }, w = (t) => {
90
- const a = t === "hidden" ? H : f, A = t === "hidden" ? M : R, c = t === "hidden" ? n.account_hidden : n.account_closed;
91
- return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(
90
+ const a = t === "hidden" ? H : f, A = t === "hidden" ? M : R, d = t === "hidden" ? n.account_hidden : n.account_closed;
91
+ return /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(
92
92
  E,
93
93
  {
94
- "aria-label": c,
95
- subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
94
+ "aria-label": d,
95
+ subheader: /* @__PURE__ */ e(N, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
96
96
  x,
97
97
  {
98
98
  component: "span",
99
99
  direction: "row",
100
100
  sx: { justifyContent: "space-between", color: "grey.700" },
101
101
  children: [
102
- /* @__PURE__ */ e(V, { bold: !0, variant: "body1", children: c }),
103
- /* @__PURE__ */ e(V, { bold: !0, variant: "body1", children: I(A, "0,0.00") })
102
+ /* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: d }),
103
+ /* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: W(A, "0,0.00") })
104
104
  ]
105
105
  }
106
106
  ) }),
@@ -137,38 +137,38 @@ const h1 = (o, C) => {
137
137
  }
138
138
  ) });
139
139
  };
140
- return /* @__PURE__ */ r(N, { sx: { pt: 24 }, children: [
140
+ return /* @__PURE__ */ r(D, { sx: { pt: 24 }, children: [
141
141
  h.map((t) => {
142
142
  const a = l.filter(
143
- (c) => c.account_type === t && !c.is_closed && !c.is_hidden
143
+ (d) => d.account_type === t && !d.is_closed && !d.is_hidden
144
144
  ), A = a.reduce(
145
- (c, m) => (m.balance || 0) + c,
145
+ (d, m) => (m.balance || 0) + d,
146
146
  0
147
147
  );
148
148
  return a.length === 0 ? null : /* @__PURE__ */ e(
149
149
  E,
150
150
  {
151
151
  "aria-label": n.account_type_accounts[a[0]?.account_type],
152
- subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
152
+ subheader: /* @__PURE__ */ e(N, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
153
153
  x,
154
154
  {
155
155
  component: "span",
156
156
  direction: "row",
157
157
  sx: { display: "flex", justifyContent: "space-between" },
158
158
  children: [
159
- /* @__PURE__ */ e(V, { bold: !0, variant: "body1", children: n.account_types[t] }),
160
- /* @__PURE__ */ e(V, { bold: !0, variant: "body1", children: I(A, "0,0.00") })
159
+ /* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: n.account_types[t] }),
160
+ /* @__PURE__ */ e(V, { bold: !0, variant: "Body", children: W(A, "0,0.00") })
161
161
  ]
162
162
  }
163
163
  ) }),
164
- children: /* @__PURE__ */ e(x, { children: a.map((c) => {
165
- const m = l.indexOf(c) === l.length - 1, Z = a.indexOf(c) === a.length - 1;
164
+ children: /* @__PURE__ */ e(x, { children: a.map((d) => {
165
+ const m = l.indexOf(d) === l.length - 1, Z = a.indexOf(d) === a.length - 1;
166
166
  return /* @__PURE__ */ r(s.Fragment, { children: [
167
167
  /* @__PURE__ */ e(
168
168
  T,
169
169
  {
170
- account: c,
171
- onRowClick: () => _(c),
170
+ account: d,
171
+ onRowClick: () => _(d),
172
172
  shouldShowConnectionStatus: !0
173
173
  }
174
174
  ),
@@ -181,7 +181,7 @@ const h1 = (o, C) => {
181
181
  }
182
182
  }
183
183
  )
184
- ] }, c.guid);
184
+ ] }, d.guid);
185
185
  }) })
186
186
  },
187
187
  t
@@ -204,42 +204,42 @@ const h1 = (o, C) => {
204
204
  )
205
205
  ] });
206
206
  }, V1 = g(m1), g1 = ({ onBackClick: o, sx: C = {} }) => {
207
- const [n, l] = s.useState(!1), [u, i] = s.useState(!1), { config: L } = o1(), { detailedAccounts: d, isAccountDataLoaded: h, loadAccountData: p } = F(), { accounts: H, connect: f } = v(), { isInitialized: M, selectedAccountGuids: R, setSelectedAccounts: _ } = S(), { isDesktop: w } = z(), { onEvent: t } = G(), { onLoad: a } = C1();
207
+ const [n, l] = s.useState(!1), [L, i] = s.useState(!1), { config: u } = o1(), { detailedAccounts: c, isAccountDataLoaded: h, loadAccountData: p } = F(), { accounts: H, connect: f } = v(), { isInitialized: M, selectedAccountGuids: R, setSelectedAccounts: _ } = b(), { isDesktop: w } = z(), { onEvent: t } = G(), { onLoad: a } = C1();
208
208
  s.useEffect(() => {
209
209
  h || p().finally();
210
210
  }, []), s.useEffect(() => {
211
- _(d);
212
- }, [d]), s.useEffect(() => {
211
+ _(c);
212
+ }, [c]), s.useEffect(() => {
213
213
  h && a?.("AccountsWidget");
214
214
  }, [h]);
215
215
  const A = () => {
216
- l(!0), t(b.ACCOUNTS_CLICK_CONNECT);
217
- }, c = () => {
218
- i(!0), t(b.ACCOUNTS_CLICK_CONNECT);
216
+ l(!0), t(S.ACCOUNTS_CLICK_CONNECT);
217
+ }, d = () => {
218
+ i(!0), t(S.ACCOUNTS_CLICK_CONNECT);
219
219
  };
220
220
  return M ? /* @__PURE__ */ r(
221
221
  r1,
222
222
  {
223
- accountOptions: d,
224
- actions: L.show_connections_widget_in_master ? [
223
+ accountOptions: c,
224
+ actions: u.show_connections_widget_in_master ? [
225
225
  { iconName: "add", label: H.add, onClick: A },
226
226
  {
227
227
  iconName: "credit_card_gear",
228
228
  label: H.manage,
229
- onClick: c
229
+ onClick: d
230
230
  }
231
231
  ] : [],
232
- onAccountsFilterClick: () => t(b.ACCOUNTS_CLICK_FILTER),
232
+ onAccountsFilterClick: () => t(S.ACCOUNTS_CLICK_FILTER),
233
233
  onBackClick: o,
234
234
  sx: C,
235
235
  title: H.title,
236
236
  children: [
237
- h ? /* @__PURE__ */ r(B, { sx: { px: w ? 24 : 12 }, children: [
237
+ h ? /* @__PURE__ */ r(I, { sx: { px: w ? 24 : 12 }, children: [
238
238
  R.length < 1 && /* @__PURE__ */ e(V, { display: "flex", justifyContent: "center", my: 24, children: H.no_accounts }),
239
239
  /* @__PURE__ */ e(V1, {})
240
240
  ] }) : /* @__PURE__ */ e(U, { sx: { px: w ? 48 : 24, pt: 24 }, variant: "list" }),
241
241
  /* @__PURE__ */ e(
242
- j,
242
+ $,
243
243
  {
244
244
  onClose: () => l(!1),
245
245
  showConnectWidget: n,
@@ -247,28 +247,28 @@ const h1 = (o, C) => {
247
247
  }
248
248
  ),
249
249
  /* @__PURE__ */ e(
250
- u1,
250
+ L1,
251
251
  {
252
252
  onClose: () => i(!1),
253
- showConnectionsWidget: u,
253
+ showConnectionsWidget: L,
254
254
  title: H.manage_connections
255
255
  }
256
256
  )
257
257
  ]
258
258
  }
259
- ) : /* @__PURE__ */ e(D, {});
259
+ ) : /* @__PURE__ */ e(B, {});
260
260
  }, t3 = g(g1), v1 = ({ onPrimaryCtaClick: o, sx: C }) => {
261
- const { visibleAccounts: n, isAccountDataLoaded: l, loadAccountData: u } = F(), { accounts: i } = v(), { isInitialized: L, selectedAccounts: d, setSelectedAccounts: h } = S(), { isDesktop: p } = z();
261
+ const { visibleAccounts: n, isAccountDataLoaded: l, loadAccountData: L } = F(), { accounts: i } = v(), { isInitialized: u, selectedAccounts: c, setSelectedAccounts: h } = b(), { isDesktop: p } = z();
262
262
  s.useEffect(() => {
263
- l || u().finally();
263
+ l || L().finally();
264
264
  }, []), s.useEffect(() => {
265
265
  h(n);
266
266
  }, [n]);
267
267
  const H = s.useMemo(
268
- () => d1(d, p ? 5 : 3),
269
- [d, p]
268
+ () => c1(c, p ? 5 : 3),
269
+ [c, p]
270
270
  );
271
- return L ? /* @__PURE__ */ e(
271
+ return u ? /* @__PURE__ */ e(
272
272
  q,
273
273
  {
274
274
  className: "mx-exp-accounts-miniwidget",
@@ -277,7 +277,7 @@ const h1 = (o, C) => {
277
277
  sx: C,
278
278
  title: i.mini_title,
279
279
  children: l ? /* @__PURE__ */ r(E, { children: [
280
- d.length === 0 && /* @__PURE__ */ e(L1, { sx: { justifyContent: "center" }, children: i.no_accounts }),
280
+ c.length === 0 && /* @__PURE__ */ e(u1, { sx: { justifyContent: "center" }, children: i.no_accounts }),
281
281
  H.map((f, M) => {
282
282
  const R = H.indexOf(f) === H.length - 1;
283
283
  return /* @__PURE__ */ r(s.Fragment, { children: [
@@ -294,7 +294,7 @@ const h1 = (o, C) => {
294
294
  })
295
295
  ] }) : /* @__PURE__ */ e(U, { sx: { px: 12, py: 8 }, variant: "list" })
296
296
  }
297
- ) : /* @__PURE__ */ e(D, {});
297
+ ) : /* @__PURE__ */ e(B, {});
298
298
  }, l3 = g(v1), M1 = () => /* @__PURE__ */ r(
299
299
  "svg",
300
300
  {
@@ -736,7 +736,7 @@ const h1 = (o, C) => {
736
736
  }
737
737
  ), R1 = () => {
738
738
  const { connect: o } = v();
739
- return /* @__PURE__ */ r(B, { alignItems: "center", direction: "column", m: 24, children: [
739
+ return /* @__PURE__ */ r(I, { alignItems: "center", direction: "column", m: 24, children: [
740
740
  /* @__PURE__ */ e(M1, {}),
741
741
  /* @__PURE__ */ e(
742
742
  V,
@@ -746,7 +746,7 @@ const h1 = (o, C) => {
746
746
  mt: 16,
747
747
  textAlign: "center"
748
748
  },
749
- variant: "subtitle1",
749
+ variant: "Paragraph",
750
750
  children: o.mini_widget_content
751
751
  }
752
752
  )
@@ -756,30 +756,30 @@ const h1 = (o, C) => {
756
756
  },
757
757
  sx: C
758
758
  }) => {
759
- const { isCopyLoaded: n } = S(), { connect: l } = v(), [u, i] = s.useState(!1), L = () => {
759
+ const { isCopyLoaded: n } = b(), { connect: l } = v(), [L, i] = s.useState(!1), u = () => {
760
760
  i(!0), o();
761
761
  };
762
762
  return n ? /* @__PURE__ */ r(
763
763
  q,
764
764
  {
765
765
  className: "mx-exp-connect-miniwidget",
766
- onPrimaryCtaClick: L,
766
+ onPrimaryCtaClick: u,
767
767
  primaryCtaLabel: l.primary_cta,
768
768
  sx: C,
769
769
  title: l.mini_title,
770
770
  children: [
771
771
  /* @__PURE__ */ e(w1, {}),
772
- u && /* @__PURE__ */ e(
773
- j,
772
+ L && /* @__PURE__ */ e(
773
+ $,
774
774
  {
775
775
  onClose: () => i(!1),
776
- showConnectWidget: u,
776
+ showConnectWidget: L,
777
777
  title: l.mini_title
778
778
  }
779
779
  )
780
780
  ]
781
781
  }
782
- ) : /* @__PURE__ */ e(D, {});
782
+ ) : /* @__PURE__ */ e(B, {});
783
783
  }, n3 = g(A1);
784
784
  export {
785
785
  h3 as AccountApi,
@@ -790,9 +790,9 @@ export {
790
790
  t3 as AccountsWidget,
791
791
  n3 as ConnectMiniWidget,
792
792
  C3 as FieldType,
793
- d3 as MemberConnectionStatus,
793
+ c3 as MemberConnectionStatus,
794
794
  s3 as getAccountBalanceDetails,
795
795
  a3 as getAccountDetailFields,
796
796
  P as useAccountUiStore,
797
- u3 as useGetMergeableAccounts
797
+ L3 as useGetMergeableAccounts
798
798
  };