@mx-cartographer/experiences 7.12.16 → 7.13.0

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 (54) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AccountDetailsHeader-DkBNsLsI.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
  3. package/dist/{AccountFields-DeZSQOuM.mjs → AccountFields-CxqONzjY.mjs} +7 -7
  4. package/dist/AccountListItem-LcJVJysf.mjs +90 -0
  5. package/dist/{AccountStore-Brc0MNSF.mjs → AccountStore-BNlTuxWN.mjs} +12 -6
  6. package/dist/Accounts-o7ohkngR.mjs +27 -0
  7. package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
  8. package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
  9. package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
  10. package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
  11. package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
  12. package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
  13. package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
  14. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  15. package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
  16. package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
  17. package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
  18. package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
  19. package/dist/{NetWorthStore-DP78lgZ0.mjs → NetWorthStore-BqZ44-4M.mjs} +1 -1
  20. package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
  21. package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
  22. package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
  23. package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
  24. package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
  25. package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
  26. package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
  27. package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
  28. package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
  29. package/dist/accounts/index.es.js +107 -107
  30. package/dist/accounts/utils/Accounts.d.ts +1 -1
  31. package/dist/analytics/index.es.js +18 -18
  32. package/dist/budgets/index.es.js +182 -182
  33. package/dist/cashflow/index.es.js +223 -223
  34. package/dist/categories/index.es.js +1 -1
  35. package/dist/common/index.es.js +54 -64
  36. package/dist/dashboard/index.es.js +9 -9
  37. package/dist/debts/index.es.js +469 -469
  38. package/dist/finstrong/index.es.js +68 -68
  39. package/dist/goals/index.es.js +437 -437
  40. package/dist/help/index.es.js +2 -2
  41. package/dist/insights/index.es.js +159 -159
  42. package/dist/investments/index.es.js +292 -292
  43. package/dist/merchants/index.es.js +12 -12
  44. package/dist/networth/index.es.js +175 -168
  45. package/dist/notifications/index.es.js +13 -13
  46. package/dist/recurringtransactions/index.es.js +69 -69
  47. package/dist/settings/index.es.js +187 -187
  48. package/dist/spending/index.es.js +58 -58
  49. package/dist/transactions/index.es.js +70 -70
  50. package/dist/trends/index.es.js +15 -15
  51. package/package.json +1 -1
  52. package/dist/AccountListItem-BIVhda6q.mjs +0 -90
  53. package/dist/Accounts-M-LTzStv.mjs +0 -27
  54. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
@@ -5,40 +5,40 @@ import e1 from "@mui/material/Stack";
5
5
  import { Text as g, Icon as F, THEMES as i1 } from "@mxenabled/mxui";
6
6
  import { S as h1 } from "../SkeletonLoader-BaNboJjD.mjs";
7
7
  import c1 from "@mui/material/Box";
8
- import b from "@mui/material/Divider";
8
+ import w from "@mui/material/Divider";
9
9
  import E from "@mui/material/List";
10
- import B from "@mui/material/ListSubheader";
11
- import W from "@mui/system/Stack";
10
+ import U from "@mui/material/ListSubheader";
11
+ import P from "@mui/system/Stack";
12
12
  import { useTheme as M1, alpha as y1 } from "@mui/material/styles";
13
- import { u as R, A as x1 } from "../AccountDetailsHeader-DkBNsLsI.mjs";
14
- import { L as w1 } from "../LineChart-B1qbKR8q.mjs";
15
- import { g as b1, a as S1, b as R1 } from "../SpendingData-Bz1bCWAs.mjs";
13
+ import { u as S, A as x1 } from "../AccountDetailsHeader-D9gbTbUt.mjs";
14
+ import { L as b1 } from "../LineChart-DBSlRSEm.mjs";
15
+ import { g as w1, a as R1, b as S1 } from "../SpendingData-Bz1bCWAs.mjs";
16
16
  import { l as T1, u as y, d as k, g as I, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
17
17
  import { A as N, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
18
18
  import { I as _1, P as L1, S as f1 } from "../Account-DuOz1a27.mjs";
19
- import { a as D1, b as k1 } from "../AccountFields-DeZSQOuM.mjs";
20
- import { g as i2 } from "../AccountFields-DeZSQOuM.mjs";
21
- import { A as U } from "../AccountListItem-BIVhda6q.mjs";
19
+ import { a as D1, b as k1 } from "../AccountFields-CxqONzjY.mjs";
20
+ import { g as i4 } from "../AccountFields-CxqONzjY.mjs";
21
+ import { A as B } from "../AccountListItem-LcJVJysf.mjs";
22
22
  import a1 from "@mui/material/Tab";
23
23
  import I1 from "@mui/material/Tabs";
24
24
  import Z1 from "@mui/material/Switch";
25
25
  import D from "@mui/material/ListItem";
26
26
  import $ from "@mui/material/ListItemButton";
27
27
  import O from "@mui/material/ListItemText";
28
- import { A as S } from "../Analytics-BYItVAe-.mjs";
28
+ import { A as R } from "../Analytics-BYItVAe-.mjs";
29
29
  import { D as Q } from "../Dialog-Ck34yr-d.mjs";
30
30
  import { b as f } from "../Localization-CPkpIwIx.mjs";
31
- import { D as t1 } from "../Drawer-DV4NTsFg.mjs";
31
+ import { D as t1 } from "../Drawer-Bbe4AMB1.mjs";
32
32
  import Y from "@mui/material/ListItemAvatar";
33
33
  import N1 from "@mui/material/styles/useTheme";
34
34
  import { Error as g1, CheckCircle as O1, Language as F1 } from "@mxenabled/mx-icons";
35
- import { C as z } from "../ConnectDrawer-CioFo6Wy.mjs";
36
- import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
37
- import { isToday as W1 } from "date-fns/isToday";
38
- import { isYesterday as B1 } from "date-fns/isYesterday";
35
+ import { C as z } from "../ConnectDrawer-C0wjwcJt.mjs";
36
+ import { fromUnixTime as W1 } from "date-fns/fromUnixTime";
37
+ import { isToday as P1 } from "date-fns/isToday";
38
+ import { isYesterday as U1 } from "date-fns/isYesterday";
39
39
  import { f as s1, D as l1 } from "../DateFormats-BMpMrZpW.mjs";
40
40
  import { I as j } from "../IconBacking-B9oC6uL2.mjs";
41
- import { addMonths as U1 } from "date-fns/addMonths";
41
+ import { addMonths as B1 } from "date-fns/addMonths";
42
42
  import { AdapterDateFns as $1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
43
43
  import { DateCalendar as G1 } from "@mui/x-date-pickers/DateCalendar";
44
44
  import z1 from "@mui/material/FormControl";
@@ -48,27 +48,27 @@ import j1 from "@mui/material/MenuItem";
48
48
  import X1 from "@mui/material/Select";
49
49
  import J1 from "@mui/material/TextField";
50
50
  import { F as X } from "../Accounts-CseLC3lL.mjs";
51
- import { M as a2 } from "../Accounts-CseLC3lL.mjs";
51
+ import { M as a4 } from "../Accounts-CseLC3lL.mjs";
52
52
  import { C as q1 } from "../CurrencyInput-DuMktPu3.mjs";
53
53
  import Q1 from "@mui/material/Alert";
54
54
  import e3 from "@mui/material/AlertTitle";
55
55
  import t3 from "@mui/material/Link";
56
56
  import n3 from "@mui/material/Paper";
57
57
  import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
58
- import { T as a3 } from "../StatusIndicator-BV3oFzxo.mjs";
59
- import { T as s3 } from "../TransactionDetails-DYlTwSDt.mjs";
58
+ import { T as a3 } from "../StatusIndicator-CIKUOoN_.mjs";
59
+ import { T as s3 } from "../TransactionDetails-BpcWeXNU.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-QCaNwbjv.mjs";
62
- import { C as l3 } from "../ConnectionsDrawer-DqhSaMrJ.mjs";
62
+ import { C as l3 } from "../ConnectionsDrawer-IA7vnv1J.mjs";
63
63
  import { u as H1 } from "../useScreenSize-B6JyS_Lj.mjs";
64
64
  import { u as n1 } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
65
65
  import { L as o1 } from "../Loader-D3rjKx72.mjs";
66
- import { W as r3 } from "../WidgetContainer-B0ncgABX.mjs";
67
- import { M as A1 } from "../MiniWidgetContainer-Cu72GNsE.mjs";
68
- import { A as l2 } from "../AccountApi-ChQr5PAZ.mjs";
69
- import { A as d2 } from "../AccountStore-Brc0MNSF.mjs";
66
+ import { W as r3 } from "../WidgetContainer-D_iaToWJ.mjs";
67
+ import { M as A1 } from "../MiniWidgetContainer-xLWSV6Wz.mjs";
68
+ import { A as l4 } from "../AccountApi-ChQr5PAZ.mjs";
69
+ import { A as d4 } from "../AccountStore-BNlTuxWN.mjs";
70
70
  const d3 = (t, o) => {
71
- const n = _1.includes(o) ? b1(t) : [], i = L1.includes(o) ? S1(t) : [], c = f1.includes(o) ? R1(t) : [];
71
+ const n = _1.includes(o) ? w1(t) : [], i = L1.includes(o) ? R1(t) : [], c = f1.includes(o) ? S1(t) : [];
72
72
  return [n, i, c].filter((l) => l.length > 0);
73
73
  }, u3 = (t, o, n) => {
74
74
  const [i, c] = t, l = i, u = c ?? i, a = [];
@@ -85,9 +85,9 @@ const d3 = (t, o) => {
85
85
  }
86
86
  return a;
87
87
  }, C3 = () => {
88
- const t = M1(), { selectedAccount: o } = R(), { monthlyCategoryTotals: n } = T1(), { trends: i } = y(), c = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = d3(n, o.account_type), u = u3(l, o.account_type, i), a = [N.LOAN, N.MORTGAGE].includes(o.account_type);
88
+ const t = M1(), { selectedAccount: o } = S(), { monthlyCategoryTotals: n } = T1(), { trends: i } = y(), c = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = d3(n, o.account_type), u = u3(l, o.account_type, i), a = [N.LOAN, N.MORTGAGE].includes(o.account_type);
89
89
  return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
90
- w1,
90
+ b1,
91
91
  {
92
92
  colors: c,
93
93
  datasets: l,
@@ -117,14 +117,14 @@ const d3 = (t, o) => {
117
117
  /* @__PURE__ */ e(O, { primary: c, secondary: l }),
118
118
  o
119
119
  ] }) }),
120
- /* @__PURE__ */ e(b, { sx: { ml: n ? 0 : 24 } })
120
+ /* @__PURE__ */ e(w, { sx: { ml: n ? 0 : 24 } })
121
121
  ] }), m3 = () => {
122
- const { accounts: t } = k(), { selectedAccount: o, selectedMember: n } = R();
122
+ const { accounts: t } = k(), { selectedAccount: o, selectedMember: n } = S();
123
123
  return t.filter(
124
124
  (i) => i.member_guid === n.guid && n.successfully_aggregated_at && i.guid !== o.guid
125
125
  );
126
126
  }, p3 = () => {
127
- const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } = R(), { mergeAccounts: m, updateAccount: _ } = k(), { accounts: s } = y(), H = m3(), { onEvent: v } = I(), { modifyTransactionByAccountGuid: M } = m1(), w = async (p) => {
127
+ const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } = S(), { mergeAccounts: m, updateAccount: _ } = k(), { accounts: s } = y(), H = m3(), { onEvent: v } = I(), { modifyTransactionByAccountGuid: M } = m1(), b = async (p) => {
128
128
  await _({
129
129
  ...r,
130
130
  ...p
@@ -135,13 +135,13 @@ const d3 = (t, o) => {
135
135
  );
136
136
  };
137
137
  return /* @__PURE__ */ C(x, { children: [
138
- /* @__PURE__ */ e(B, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "XSmall", children: s.actions }) }),
138
+ /* @__PURE__ */ e(U, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: s.actions }) }),
139
139
  /* @__PURE__ */ e(
140
140
  J,
141
141
  {
142
142
  ariaPressed: r.is_hidden,
143
143
  onClick: () => {
144
- w({ is_hidden: !r.is_hidden }), v(S.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
144
+ b({ is_hidden: !r.is_hidden }), v(R.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
145
145
  },
146
146
  primaryText: r.is_hidden ? s.unhide_account : s.hide_Account,
147
147
  secondaryText: r.is_hidden ? s.include_this_account : s.exclude_this_account,
@@ -152,7 +152,7 @@ const d3 = (t, o) => {
152
152
  J,
153
153
  {
154
154
  onClick: () => {
155
- o(!0), v(S.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
155
+ o(!0), v(R.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
156
156
  account_guid: r.guid
157
157
  });
158
158
  },
@@ -166,7 +166,7 @@ const d3 = (t, o) => {
166
166
  {
167
167
  isLast: !0,
168
168
  onClick: () => {
169
- i(!0), v(S.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
169
+ i(!0), v(R.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
170
170
  account_guid: r.guid
171
171
  });
172
172
  },
@@ -186,7 +186,7 @@ const d3 = (t, o) => {
186
186
  onClose: () => {
187
187
  o(!1);
188
188
  },
189
- onPrimaryAction: () => w({ is_closed: !r.is_closed }),
189
+ onPrimaryAction: () => b({ is_closed: !r.is_closed }),
190
190
  children: /* @__PURE__ */ e(g, { truncate: !1, children: f(
191
191
  r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
192
192
  r.name
@@ -204,7 +204,7 @@ const d3 = (t, o) => {
204
204
  const Z = H.indexOf(p) === H.length - 1;
205
205
  return /* @__PURE__ */ C(h.Fragment, { children: [
206
206
  /* @__PURE__ */ e(
207
- U,
207
+ B,
208
208
  {
209
209
  account: p,
210
210
  onRowClick: () => {
@@ -375,9 +375,9 @@ const d3 = (t, o) => {
375
375
  };
376
376
  default: {
377
377
  const i = () => {
378
- const c = t.successfully_aggregated_at ? P1(t.successfully_aggregated_at) : void 0, l = c && s1(c, l1.TIME_STAMP_HOUR_MINUTE);
378
+ const c = t.successfully_aggregated_at ? W1(t.successfully_aggregated_at) : void 0, l = c && s1(c, l1.TIME_STAMP_HOUR_MINUTE);
379
379
  if (l)
380
- return W1(c) ? f(o.last_updated_at, o.today, l) : B1(c) ? f(o.last_updated_at, o.yesterday, l) : f(
380
+ return P1(c) ? f(o.last_updated_at, o.today, l) : U1(c) ? f(o.last_updated_at, o.yesterday, l) : f(
381
381
  o.last_updated_at,
382
382
  s1(c, l1.MONTH_DAY_YEAR),
383
383
  l
@@ -399,7 +399,7 @@ const d3 = (t, o) => {
399
399
  }, L3 = () => {
400
400
  const [t, o] = h.useState(!1), {
401
401
  palette: { mode: n }
402
- } = N1(), { selectedMember: i } = R(), { accounts: c, connect: l } = y(), u = V1(i, l), a = p1.includes(i.connection_status) ? {
402
+ } = N1(), { selectedMember: i } = S(), { accounts: c, connect: l } = y(), u = V1(i, l), a = p1.includes(i.connection_status) ? {
403
403
  color: "error.main",
404
404
  ctaCopy: u.cta ?? "",
405
405
  icon: /* @__PURE__ */ e(g1, { filled: !0, sx: { ...q } }),
@@ -412,7 +412,7 @@ const d3 = (t, o) => {
412
412
  secondaryMessage: u.title
413
413
  };
414
414
  return /* @__PURE__ */ C(x, { children: [
415
- /* @__PURE__ */ e(B, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "XSmall", children: c.connection_status }) }),
415
+ /* @__PURE__ */ e(U, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: c.connection_status }) }),
416
416
  /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper" }, children: i.is_manual || !a.ctaCopy ? /* @__PURE__ */ C(e1, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
417
417
  /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
418
418
  /* @__PURE__ */ e(O, { primary: a.mainMessage, secondary: a.secondaryMessage })
@@ -425,13 +425,13 @@ const d3 = (t, o) => {
425
425
  secondary: a.secondaryMessage && /* @__PURE__ */ C(x, { children: [
426
426
  a.secondaryMessage,
427
427
  " ",
428
- /* @__PURE__ */ e(g, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: a.ctaCopy })
428
+ /* @__PURE__ */ e(g, { bold: !0, sx: { color: "action.active" }, variant: "caption", children: a.ctaCopy })
429
429
  ] })
430
430
  }
431
431
  ),
432
432
  /* @__PURE__ */ e(F, { name: "chevron_right" })
433
433
  ] }) }),
434
- /* @__PURE__ */ e(b, { sx: { ml: i.is_manual || !i.institution_url ? 0 : 24 } }),
434
+ /* @__PURE__ */ e(w, { sx: { ml: i.is_manual || !i.institution_url ? 0 : 24 } }),
435
435
  !i.is_manual && i.institution_url && /* @__PURE__ */ C(x, { children: [
436
436
  /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ C($, { component: "a", href: i.institution_url, target: "_blank", children: [
437
437
  /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
@@ -456,7 +456,7 @@ const d3 = (t, o) => {
456
456
  /* @__PURE__ */ e(O, { primary: i.name, secondary: i.institution_url }),
457
457
  /* @__PURE__ */ e(F, { name: "launch" })
458
458
  ] }) }),
459
- /* @__PURE__ */ e(b, {})
459
+ /* @__PURE__ */ e(w, {})
460
460
  ] }),
461
461
  t && /* @__PURE__ */ e(
462
462
  z,
@@ -469,7 +469,7 @@ const d3 = (t, o) => {
469
469
  )
470
470
  ] });
471
471
  }, f3 = V(L3), g3 = ({ field: t, isOpen: o, onClose: n }) => {
472
- const { updateAccount: i } = k(), { selectedAccount: c } = R(), { accounts: l } = y(), [u, a] = h.useState(c[t.name]), [r, m] = h.useState(""), [_, s] = h.useState(!0), H = () => {
472
+ const { updateAccount: i } = k(), { selectedAccount: c } = S(), { accounts: l } = y(), [u, a] = h.useState(c[t.name]), [r, m] = h.useState(""), [_, s] = h.useState(!0), H = () => {
473
473
  a(""), m(""), n();
474
474
  }, v = () => {
475
475
  switch (t.type) {
@@ -511,7 +511,7 @@ const d3 = (t, o) => {
511
511
  return /* @__PURE__ */ e(Y1, { dateAdapter: $1, children: /* @__PURE__ */ e(
512
512
  G1,
513
513
  {
514
- maxDate: U1(/* @__PURE__ */ new Date(), 1),
514
+ maxDate: B1(/* @__PURE__ */ new Date(), 1),
515
515
  minDate: /* @__PURE__ */ new Date(),
516
516
  onChange: (d) => {
517
517
  c[t.name] && Number(c[t.name]) <= 31 ? a(d.getDate()) : a(d);
@@ -541,7 +541,7 @@ const d3 = (t, o) => {
541
541
  inputProps: {
542
542
  "aria-label": t.placeholder
543
543
  },
544
- onChange: w,
544
+ onChange: b,
545
545
  placeholder: t.placeholder
546
546
  }
547
547
  );
@@ -551,7 +551,7 @@ const d3 = (t, o) => {
551
551
  ...c,
552
552
  [t.name]: u
553
553
  }), H();
554
- }, w = (d) => {
554
+ }, b = (d) => {
555
555
  a(d.target.value), t.validation && m(t.validation(d.target.value));
556
556
  };
557
557
  return /* @__PURE__ */ e(
@@ -577,7 +577,7 @@ const d3 = (t, o) => {
577
577
  }
578
578
  );
579
579
  }, H3 = V(g3), A3 = () => {
580
- const t = window.app?.config, { onEvent: o } = I(), { selectedAccount: n } = R(), { accounts: i } = y(), c = D1(n, i), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [u, a] = h.useState(!1), [r, m] = h.useState(c[0]), _ = c.filter(
580
+ const t = window.app?.config, { onEvent: o } = I(), { selectedAccount: n } = S(), { accounts: i } = y(), c = D1(n, i), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [u, a] = h.useState(!1), [r, m] = h.useState(c[0]), _ = c.filter(
581
581
  (s) => l || n[s.name] || n[s.name] === 0
582
582
  );
583
583
  return /* @__PURE__ */ C(x, { children: [
@@ -603,10 +603,10 @@ const d3 = (t, o) => {
603
603
  ]
604
604
  }
605
605
  ) }),
606
- /* @__PURE__ */ e(b, { sx: { ml: v ? 0 : 24 } })
606
+ /* @__PURE__ */ e(w, { sx: { ml: v ? 0 : 24 } })
607
607
  ] }) : H && /* @__PURE__ */ C(x, { children: [
608
608
  /* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper", px: 24 }, children: M }),
609
- /* @__PURE__ */ e(b, { sx: { ml: v ? 0 : 24 } })
609
+ /* @__PURE__ */ e(w, { sx: { ml: v ? 0 : 24 } })
610
610
  ] }) }, s.name);
611
611
  }),
612
612
  u && r && /* @__PURE__ */ e(
@@ -620,13 +620,13 @@ const d3 = (t, o) => {
620
620
  ] });
621
621
  }, V3 = V(A3), v3 = () => {
622
622
  const { onEvent: t } = I();
623
- return h.useEffect(() => t(S.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(E, { children: [
623
+ return h.useEffect(() => t(R.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(E, { children: [
624
624
  /* @__PURE__ */ e(V3, {}),
625
625
  /* @__PURE__ */ e(f3, {}),
626
626
  /* @__PURE__ */ e(_3, {})
627
627
  ] });
628
628
  }, M3 = V(v3), y3 = ({ setTabValue: t }) => {
629
- const [o, n] = h.useState(!1), { selectedMember: i } = R(), { accounts: c, connect: l } = y(), u = i.connection_status && p1.includes(i.connection_status);
629
+ const [o, n] = h.useState(!1), { selectedMember: i } = S(), { accounts: c, connect: l } = y(), u = i.connection_status && p1.includes(i.connection_status);
630
630
  if (h.useEffect(() => {
631
631
  u && t(1);
632
632
  }, [u]), !u) return;
@@ -657,8 +657,8 @@ const d3 = (t, o) => {
657
657
  }
658
658
  },
659
659
  children: [
660
- a.title && /* @__PURE__ */ e(e3, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a.title }),
661
- /* @__PURE__ */ e(g, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: a.main }),
660
+ a.title && /* @__PURE__ */ e(e3, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: a.title }),
661
+ /* @__PURE__ */ e(g, { component: "p", sx: { whiteSpace: "wrap" }, variant: "subtitle2", children: a.main }),
662
662
  a.cta && /* @__PURE__ */ e(
663
663
  t3,
664
664
  {
@@ -682,8 +682,8 @@ const d3 = (t, o) => {
682
682
  }
683
683
  )
684
684
  ] });
685
- }, x3 = V(y3), w3 = () => {
686
- const [t, o] = h.useState(""), { onEvent: n } = I(), { selectedAccount: i } = R(), { accounts: c } = y(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: r } = m1();
685
+ }, x3 = V(y3), b3 = () => {
686
+ const [t, o] = h.useState(""), { onEvent: n } = I(), { selectedAccount: i } = S(), { accounts: c } = y(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: r } = m1();
687
687
  h.useEffect(() => {
688
688
  l || u().finally();
689
689
  }, []);
@@ -696,7 +696,7 @@ const d3 = (t, o) => {
696
696
  dateRange: { start: o3(i3(), 90), end: c3() },
697
697
  accounts: [i.guid]
698
698
  });
699
- }, [i]), h.useEffect(() => n(S.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(x, { children: [
699
+ }, [i]), h.useEffect(() => n(R.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(x, { children: [
700
700
  /* @__PURE__ */ e(a3, { onClick: o }),
701
701
  m && /* @__PURE__ */ e(
702
702
  t1,
@@ -709,7 +709,7 @@ const d3 = (t, o) => {
709
709
  }
710
710
  )
711
711
  ] });
712
- }, b3 = V(w3), S3 = () => {
712
+ }, w3 = V(b3), R3 = () => {
713
713
  const [t, o] = h.useState(0), { accounts: n } = y();
714
714
  return /* @__PURE__ */ C(x, { children: [
715
715
  /* @__PURE__ */ e(x3, { setTabValue: o }),
@@ -742,11 +742,11 @@ const d3 = (t, o) => {
742
742
  ]
743
743
  }
744
744
  ),
745
- /* @__PURE__ */ e(r1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(b3, {}) }),
745
+ /* @__PURE__ */ e(r1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(w3, {}) }),
746
746
  /* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(M3, {}) })
747
747
  ] });
748
- }, R3 = V(S3), T3 = () => {
749
- const [t, o] = h.useState(""), { accounts: n } = y(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = R(), { members: u } = k(), { onEvent: a } = I(), r = [...new Set(i.map((d) => d.account_type))], m = i.find((d) => t === d.guid), _ = h.useMemo(
748
+ }, S3 = V(R3), T3 = () => {
749
+ const [t, o] = h.useState(""), { accounts: n } = y(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = S(), { members: u } = k(), { onEvent: a } = I(), r = [...new Set(i.map((d) => d.account_type))], m = i.find((d) => t === d.guid), _ = h.useMemo(
750
750
  () => i.filter((d) => d.is_hidden),
751
751
  [i]
752
752
  ), s = h.useMemo(
@@ -764,33 +764,33 @@ const d3 = (t, o) => {
764
764
  }
765
765
  }, [m, t]);
766
766
  const M = (d) => {
767
- o(d.guid), a(S.ACCOUNTS_CLICK_ACCOUNT, {
767
+ o(d.guid), a(R.ACCOUNTS_CLICK_ACCOUNT, {
768
768
  account_guid: d.guid,
769
769
  account_type: d.account_type
770
770
  });
771
- }, w = (d) => {
771
+ }, b = (d) => {
772
772
  const p = d === "hidden" ? _ : s, Z = d === "hidden" ? H : v, A = d === "hidden" ? n.account_hidden : n.account_closed;
773
773
  return /* @__PURE__ */ e(c1, { children: /* @__PURE__ */ e(
774
774
  E,
775
775
  {
776
776
  "aria-label": A,
777
- subheader: /* @__PURE__ */ e(B, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
778
- W,
777
+ subheader: /* @__PURE__ */ e(U, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
778
+ P,
779
779
  {
780
780
  component: "span",
781
781
  direction: "row",
782
782
  sx: { justifyContent: "space-between", color: "grey.700" },
783
783
  children: [
784
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: A }),
785
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: d1(Z, "0,0.00") })
784
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: A }),
785
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(Z, "0,0.00") })
786
786
  ]
787
787
  }
788
788
  ) }),
789
- children: /* @__PURE__ */ e(W, { children: p.map((T, P, v1) => {
790
- const K = P === v1.length - 1;
789
+ children: /* @__PURE__ */ e(P, { children: p.map((T, W, v1) => {
790
+ const K = W === v1.length - 1;
791
791
  return /* @__PURE__ */ C(h.Fragment, { children: [
792
792
  /* @__PURE__ */ e(
793
- U,
793
+ B,
794
794
  {
795
795
  account: T,
796
796
  onRowClick: () => M(T),
@@ -798,7 +798,7 @@ const d3 = (t, o) => {
798
798
  }
799
799
  ),
800
800
  d === "hidden" ? /* @__PURE__ */ e(
801
- b,
801
+ w,
802
802
  {
803
803
  sx: {
804
804
  mb: K ? 24 : 4,
@@ -806,7 +806,7 @@ const d3 = (t, o) => {
806
806
  }
807
807
  }
808
808
  ) : !K && /* @__PURE__ */ e(
809
- b,
809
+ w,
810
810
  {
811
811
  sx: {
812
812
  mb: 4,
@@ -831,23 +831,23 @@ const d3 = (t, o) => {
831
831
  E,
832
832
  {
833
833
  "aria-label": n.account_type_accounts[p[0]?.account_type],
834
- subheader: /* @__PURE__ */ e(B, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
835
- W,
834
+ subheader: /* @__PURE__ */ e(U, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
835
+ P,
836
836
  {
837
837
  component: "span",
838
838
  direction: "row",
839
839
  sx: { display: "flex", justifyContent: "space-between" },
840
840
  children: [
841
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: n.account_types[d] }),
842
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: d1(Z, "0,0.00") })
841
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: n.account_types[d] }),
842
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(Z, "0,0.00") })
843
843
  ]
844
844
  }
845
845
  ) }),
846
- children: /* @__PURE__ */ e(W, { children: p.map((A) => {
847
- const T = i.indexOf(A) === i.length - 1, P = p.indexOf(A) === p.length - 1;
846
+ children: /* @__PURE__ */ e(P, { children: p.map((A) => {
847
+ const T = i.indexOf(A) === i.length - 1, W = p.indexOf(A) === p.length - 1;
848
848
  return /* @__PURE__ */ C(h.Fragment, { children: [
849
849
  /* @__PURE__ */ e(
850
- U,
850
+ B,
851
851
  {
852
852
  account: A,
853
853
  onRowClick: () => M(A),
@@ -855,11 +855,11 @@ const d3 = (t, o) => {
855
855
  }
856
856
  ),
857
857
  (!T || s.length > 0 || _.length > 0) && /* @__PURE__ */ e(
858
- b,
858
+ w,
859
859
  {
860
860
  sx: {
861
- mb: P ? 24 : 4,
862
- ml: P ? 24 : 68
861
+ mb: W ? 24 : 4,
862
+ ml: W ? 24 : 68
863
863
  }
864
864
  }
865
865
  )
@@ -869,8 +869,8 @@ const d3 = (t, o) => {
869
869
  d
870
870
  );
871
871
  }),
872
- _.length > 0 && w("hidden"),
873
- s.length > 0 && w("closed"),
872
+ _.length > 0 && b("hidden"),
873
+ s.length > 0 && b("closed"),
874
874
  /* @__PURE__ */ C(
875
875
  t1,
876
876
  {
@@ -880,7 +880,7 @@ const d3 = (t, o) => {
880
880
  title: n.account_details,
881
881
  children: [
882
882
  /* @__PURE__ */ e(x1, { ChartComponent: h3 }),
883
- /* @__PURE__ */ e(R3, {})
883
+ /* @__PURE__ */ e(S3, {})
884
884
  ]
885
885
  }
886
886
  )
@@ -893,23 +893,23 @@ const d3 = (t, o) => {
893
893
  }), h.useEffect(() => {
894
894
  a || r().finally();
895
895
  }, []);
896
- const w = () => {
897
- i(!0), M(S.ACCOUNTS_CLICK_CONNECT);
896
+ const b = () => {
897
+ i(!0), M(R.ACCOUNTS_CLICK_CONNECT);
898
898
  }, d = () => {
899
- l(!0), M(S.ACCOUNTS_CLICK_CONNECT);
899
+ l(!0), M(R.ACCOUNTS_CLICK_CONNECT);
900
900
  };
901
901
  return s ? /* @__PURE__ */ C(
902
902
  r3,
903
903
  {
904
904
  actions: u.show_connections_widget_in_master ? [
905
- { iconName: "add", label: m.add, onClick: w },
905
+ { iconName: "add", label: m.add, onClick: b },
906
906
  {
907
907
  iconName: "credit_card_gear",
908
908
  label: m.manage,
909
909
  onClick: d
910
910
  }
911
911
  ] : [],
912
- onAccountsFilterClick: () => M(S.ACCOUNTS_CLICK_FILTER),
912
+ onAccountsFilterClick: () => M(R.ACCOUNTS_CLICK_FILTER),
913
913
  onBackClick: t,
914
914
  sx: o,
915
915
  title: m.title,
@@ -937,7 +937,7 @@ const d3 = (t, o) => {
937
937
  ]
938
938
  }
939
939
  ) : /* @__PURE__ */ e(o1, {});
940
- }, Q4 = V(D3);
940
+ }, Q2 = V(D3);
941
941
  function k3(t) {
942
942
  const { heldAccounts: o, externalAccounts: n } = t.reduce(
943
943
  (i, c) => (c.member_is_managed_by_user ? i.externalAccounts.push(c) : i.heldAccounts.push(c), i),
@@ -987,20 +987,20 @@ const Z3 = {
987
987
  const s = r.indexOf(m) === r.length - 1;
988
988
  return /* @__PURE__ */ C(h.Fragment, { children: [
989
989
  /* @__PURE__ */ e(
990
- U,
990
+ B,
991
991
  {
992
992
  account: m,
993
993
  listItemProps: { sx: { px: 24 } },
994
994
  shouldShowConnectionStatus: !0
995
995
  }
996
996
  ),
997
- !s && /* @__PURE__ */ e(b, { "aria-hidden": "true", variant: "inset" })
997
+ !s && /* @__PURE__ */ e(w, { "aria-hidden": "true", variant: "inset" })
998
998
  ] }, `account-item${_}`);
999
999
  })
1000
1000
  ] }) : /* @__PURE__ */ e(h1, { sx: { px: 12, py: 8 }, variant: "list" })
1001
1001
  }
1002
1002
  ) : /* @__PURE__ */ e(o1, {});
1003
- }, e2 = V(N3), O3 = () => /* @__PURE__ */ C(
1003
+ }, e4 = V(N3), O3 = () => /* @__PURE__ */ C(
1004
1004
  "svg",
1005
1005
  {
1006
1006
  fill: "none",
@@ -1451,12 +1451,12 @@ const Z3 = {
1451
1451
  mt: 16,
1452
1452
  textAlign: "center"
1453
1453
  },
1454
- variant: "Paragraph",
1454
+ variant: "subtitle1",
1455
1455
  children: t.mini_widget_content
1456
1456
  }
1457
1457
  )
1458
1458
  ] });
1459
- }, P3 = V(F3), W3 = ({
1459
+ }, W3 = V(F3), P3 = ({
1460
1460
  onPrimaryCtaClick: t = () => {
1461
1461
  },
1462
1462
  sx: o
@@ -1476,7 +1476,7 @@ const Z3 = {
1476
1476
  sx: o,
1477
1477
  title: i.mini_title,
1478
1478
  children: [
1479
- /* @__PURE__ */ e(P3, {}),
1479
+ /* @__PURE__ */ e(W3, {}),
1480
1480
  c && /* @__PURE__ */ e(
1481
1481
  z,
1482
1482
  {
@@ -1488,19 +1488,19 @@ const Z3 = {
1488
1488
  ]
1489
1489
  }
1490
1490
  ) : /* @__PURE__ */ e(o1, {});
1491
- }, t2 = V(W3);
1491
+ }, t4 = V(P3);
1492
1492
  export {
1493
- l2 as AccountApi,
1494
- R3 as AccountDetailsContent,
1493
+ l4 as AccountApi,
1494
+ S3 as AccountDetailsContent,
1495
1495
  x1 as AccountDetailsHeader,
1496
- d2 as AccountStore,
1497
- e2 as AccountsMiniWidget,
1498
- Q4 as AccountsWidget,
1499
- t2 as ConnectMiniWidget,
1496
+ d4 as AccountStore,
1497
+ e4 as AccountsMiniWidget,
1498
+ Q2 as AccountsWidget,
1499
+ t4 as ConnectMiniWidget,
1500
1500
  X as FieldType,
1501
- a2 as MemberConnectionStatus,
1502
- i2 as getAccountBalanceDetails,
1501
+ a4 as MemberConnectionStatus,
1502
+ i4 as getAccountBalanceDetails,
1503
1503
  D1 as getAccountDetailFields,
1504
- R as useAccountUiStore,
1504
+ S as useAccountUiStore,
1505
1505
  m3 as useGetMergeableAccounts
1506
1506
  };
@@ -4,4 +4,4 @@ export declare const isManual: (account: Account) => boolean;
4
4
  export declare const usesCreditLimitField: (account: Account) => boolean;
5
5
  export declare const usesInterestRateField: (account: Account) => boolean;
6
6
  export declare const usesOriginalBalanceField: (account: Account) => boolean;
7
- export declare const augmentAccounts: (accounts: Account[], institutions: Institution[], members: Member[], shouldExcludeExternalAccounts: boolean) => DetailedAccount[];
7
+ export declare const augmentAccounts: (accounts: Account[], institutions: Institution[], members: Member[], shouldExcludeExternalAccounts: boolean, shouldExcludeHeldAccounts: boolean) => DetailedAccount[];