@mx-cartographer/experiences 7.11.22 → 7.11.24

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 (32) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{CategorySelectorDrawer-5n6Pil_E.mjs → CategorySelectorDrawer-wfUTIbLR.mjs} +1 -1
  3. package/dist/Dialog-Ck34yr-d.mjs +63 -0
  4. package/dist/{ListItemAction-CfXGuY7a.mjs → ListItemAction-4KB7P75M.mjs} +1 -1
  5. package/dist/{ManageIncome-C0ddaiMR.mjs → ManageIncome-4Colv0Oz.mjs} +2 -2
  6. package/dist/{NotificationSettings-DCbMa5mg.mjs → NotificationSettings-BH2yOwTB.mjs} +1 -1
  7. package/dist/{OriginalBalanceAction-CW_xOa6Z.mjs → OriginalBalanceAction-BM6rT_Cn.mjs} +1 -1
  8. package/dist/{RecurringSettings-CD1_vCES.mjs → RecurringSettings-DI1hZYMK.mjs} +1 -1
  9. package/dist/{TransactionDetails-CgC3Qu7o.mjs → TransactionDetails-pYMs84EF.mjs} +125 -123
  10. package/dist/{WidgetContainer-BSCjBupR.mjs → WidgetContainer-Ud1mWn0G.mjs} +1 -1
  11. package/dist/accounts/index.es.js +3 -3
  12. package/dist/budgets/index.es.js +5 -5
  13. package/dist/cashflow/index.es.js +3 -3
  14. package/dist/categories/index.es.js +1 -1
  15. package/dist/common/index.es.js +3 -3
  16. package/dist/common/types/localization/RecurringCopy.d.ts +1 -0
  17. package/dist/debts/index.es.js +3 -3
  18. package/dist/finstrong/index.es.js +4 -4
  19. package/dist/goals/index.es.js +235 -216
  20. package/dist/help/index.es.js +1 -1
  21. package/dist/insights/components/shared/ChartDrawerTemplate/TipSection.d.ts +3 -1
  22. package/dist/insights/index.es.js +70 -59
  23. package/dist/investments/index.es.js +1 -1
  24. package/dist/networth/index.es.js +1 -1
  25. package/dist/notifications/index.es.js +1 -1
  26. package/dist/recurringtransactions/index.es.js +303 -329
  27. package/dist/settings/index.es.js +5 -5
  28. package/dist/spending/index.es.js +2 -2
  29. package/dist/transactions/index.es.js +5 -5
  30. package/dist/trends/index.es.js +2 -2
  31. package/package.json +1 -1
  32. package/dist/Dialog-DdCwLgrl.mjs +0 -60
@@ -1,29 +1,29 @@
1
- import { g as de, T as i, G as ce, a as Ve, M as Y, C as Te, b as Pe } from "../GoalStore-0bd-Upkc.mjs";
1
+ import { g as de, T as i, G as le, a as Ve, M as Y, C as Ae, b as Pe } from "../GoalStore-0bd-Upkc.mjs";
2
2
  import { c as Hn, d as Un } from "../GoalStore-0bd-Upkc.mjs";
3
- import { jsxs as c, jsx as e, Fragment as $ } from "react/jsx-runtime";
3
+ import { jsxs as l, jsx as e, Fragment as $ } from "react/jsx-runtime";
4
4
  import T from "react";
5
5
  import { observer as D } from "mobx-react-lite";
6
6
  import ze from "@mui/material/Alert";
7
7
  import je from "@mui/material/Snackbar";
8
- import y from "@mui/material/Stack";
8
+ import f from "@mui/material/Stack";
9
9
  import re from "@mui/material/Tab";
10
10
  import Fe from "@mui/material/Tabs";
11
- import { Text as C, H2 as me, H3 as le, P as Z, Icon as $e, InstitutionLogo as te } from "@mxenabled/mxui";
12
- import _e from "@mui/material/Button";
11
+ import { Text as C, H3 as ce, P as Z, Icon as $e, InstitutionLogo as te, H2 as Te } from "@mxenabled/mxui";
12
+ import me from "@mui/material/Button";
13
13
  import Ce from "@mui/material/Card";
14
14
  import Se from "@mui/material/CardActionArea";
15
15
  import Re from "@mui/material/CardContent";
16
- import ye from "@mui/material/Unstable_Grid2";
16
+ import ge from "@mui/material/Unstable_Grid2";
17
17
  import ae from "@mui/material/Avatar";
18
18
  import Xe from "@mui/material/CardHeader";
19
- import { Payments as Ee, NoteStack as xe, Person as ve, ArrowUpwardAlt as He, CheckCircle as Ue, ChevronRight as V, Icon as fe, ExpandLess as Ye, ExpandMore as Ze, AddBox as Ie, Trophy as qe } from "@mxenabled/mx-icons";
20
- import { u as S, k as G, b as ue, a as pe, d as z, o as Ge, g as Ne } from "../hooks-BxkfR-Ff.mjs";
21
- import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
19
+ import { Payments as xe, NoteStack as Ee, Person as ve, ArrowUpwardAlt as He, CheckCircle as Ue, ChevronRight as V, Icon as fe, ExpandLess as Ye, ExpandMore as Ze, AddBox as Ie, Trophy as qe } from "@mxenabled/mx-icons";
20
+ import { u as S, k as G, b as _e, a as ue, d as z, o as Ge, g as Ne } from "../hooks-BxkfR-Ff.mjs";
21
+ import { u as pe } from "../useScreenSize-B6JyS_Lj.mjs";
22
22
  import { f as I } from "../NumberFormatting-QCaNwbjv.mjs";
23
23
  import { S as Je } from "../StatusBar-BK_uYHAB.mjs";
24
24
  import v from "@mui/material/Divider";
25
25
  import L from "@mui/material/List";
26
- import { L as q } from "../ListItemAction-CfXGuY7a.mjs";
26
+ import { L as q } from "../ListItemAction-4KB7P75M.mjs";
27
27
  import { C as ke } from "../CurrencyInput-DuMktPu3.mjs";
28
28
  import { fromUnixTime as ne } from "date-fns/fromUnixTime";
29
29
  import Qe from "@mui/material/IconButton";
@@ -32,34 +32,34 @@ import P from "@mui/material/ListItemAvatar";
32
32
  import M from "@mui/material/ListItemButton";
33
33
  import w from "@mui/material/ListItemText";
34
34
  import { b as O } from "../Localization-CPkpIwIx.mjs";
35
- import { f as be, D as ge } from "../DateFormats-BMpMrZpW.mjs";
35
+ import { f as he, D as be } from "../DateFormats-BMpMrZpW.mjs";
36
36
  import { D as J } from "../Drawer-DV4NTsFg.mjs";
37
37
  import { g as we } from "../AccountDisplayName-CO7z3v99.mjs";
38
38
  import et from "@mui/material/Collapse";
39
39
  import tt from "@mui/material/ListItemIcon";
40
40
  import nt from "@mui/material/Checkbox";
41
- import { A as Ae } from "../Account-BiB1F8lL.mjs";
41
+ import { A as ye } from "../Account-BiB1F8lL.mjs";
42
42
  import { u as at } from "../useAccountDisplayName-DKwT1mWv.mjs";
43
43
  import De from "@mui/material/TextField";
44
- import { M as ot, I as rt, O as it } from "../OriginalBalanceAction-CW_xOa6Z.mjs";
44
+ import { M as ot, I as rt, O as it } from "../OriginalBalanceAction-BM6rT_Cn.mjs";
45
45
  import { getUnixTime as st } from "date-fns/getUnixTime";
46
- import { isValid as ct } from "date-fns/isValid";
47
- import { AdapterDateFns as lt } from "@mui/x-date-pickers/AdapterDateFnsV3";
46
+ import { isValid as lt } from "date-fns/isValid";
47
+ import { AdapterDateFns as ct } from "@mui/x-date-pickers/AdapterDateFnsV3";
48
48
  import { DatePicker as dt } from "@mui/x-date-pickers";
49
49
  import { LocalizationProvider as mt } from "@mui/x-date-pickers/LocalizationProvider";
50
- import { D as _t } from "../Dialog-DdCwLgrl.mjs";
50
+ import { D as _t } from "../Dialog-Ck34yr-d.mjs";
51
51
  import { u as Ke } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
52
52
  import { A as X } from "../Analytics-i5h6BxR1.mjs";
53
53
  import { L as Me } from "../Loader-D3rjKx72.mjs";
54
- import { W as ut } from "../WidgetContainer-BSCjBupR.mjs";
54
+ import { W as ut } from "../WidgetContainer-Ud1mWn0G.mjs";
55
55
  import { E as pt } from "../EmptyState-DHAkGsjk.mjs";
56
56
  import ht from "@mui/material/Stack/Stack";
57
57
  import bt from "@mui/material/Box";
58
58
  import gt from "@mui/material/styles/useTheme";
59
- import { S as yt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
60
- import { M as ft } from "../MicroWidgetContainer-B_EnfvCq.mjs";
59
+ import { S as ft } from "../SingleSegmentDonut-BgbLgwHi.mjs";
60
+ import { M as yt } from "../MicroWidgetContainer-B_EnfvCq.mjs";
61
61
  function ie({ title: t, subtitle: n }) {
62
- return /* @__PURE__ */ c(y, { children: [
62
+ return /* @__PURE__ */ l(f, { children: [
63
63
  /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: t }),
64
64
  /* @__PURE__ */ e(C, { sx: { fontWeight: 400 }, variant: "Body", children: n })
65
65
  ] });
@@ -69,20 +69,20 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
69
69
  "$1$2$3"
70
70
  ) : I(t, "0,0.00"), Le = D(
71
71
  ({ goal: t, isInDrawer: n = !1, onClick: _ }) => {
72
- const { goals: l } = S(), { isMobile: u, isTablet: r } = he(), d = u || r, {
72
+ const { goals: c } = S(), { isMobile: u, isTablet: r } = pe(), d = u || r, {
73
73
  backgroundColor: s,
74
74
  color: p,
75
75
  percentage: h,
76
76
  percentageText: o,
77
77
  projectedText: a
78
- } = de(l, t), b = t.track_type === i.DEBT_TRACK ? t.initial_amount : t.amount, m = [
78
+ } = de(c, t), b = t.track_type === i.DEBT_TRACK ? t.initial_amount : t.amount, m = [
79
79
  {
80
80
  color: s,
81
81
  percentage: `${h}`
82
82
  }
83
83
  ];
84
- let f = /* @__PURE__ */ e(Ee, {});
85
- return t.track_type === i.DEBT_TRACK ? f = /* @__PURE__ */ e(xe, {}) : t.track_type === i.RETIREMENT_TRACK && (f = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
84
+ let y = /* @__PURE__ */ e(xe, {});
85
+ return t.track_type === i.DEBT_TRACK ? y = /* @__PURE__ */ e(Ee, {}) : t.track_type === i.RETIREMENT_TRACK && (y = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
86
86
  Ce,
87
87
  {
88
88
  elevation: 2,
@@ -92,21 +92,40 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
92
92
  outlineColor: "primary.main"
93
93
  }
94
94
  },
95
- children: /* @__PURE__ */ c(Se, { disabled: !_, onClick: _, children: [
95
+ children: /* @__PURE__ */ l(Se, { disabled: !_, onClick: _, children: [
96
96
  /* @__PURE__ */ e(
97
97
  Xe,
98
98
  {
99
- avatar: /* @__PURE__ */ e(ae, { sx: { bgcolor: s, color: p, height: 48, width: 48 }, variant: "rounded", children: f }),
100
- subheader: /* @__PURE__ */ e(C, { variant: n || d ? "H3" : "H2", children: `${I(t.current_amount, d ? "0,0" : "0,0.00")} / ${At(
101
- b,
102
- d
103
- )}` }),
104
- title: /* @__PURE__ */ e(me, { color: "text.secondary", fontWeight: 400, variant: "Body", children: t.name })
99
+ avatar: /* @__PURE__ */ e(ae, { sx: { bgcolor: s, color: p, height: 48, width: 48 }, variant: "rounded", children: y }),
100
+ subheader: /* @__PURE__ */ e(
101
+ C,
102
+ {
103
+ sx: {
104
+ fontWeight: 700,
105
+ fontSize: n || d ? "18px" : "23px",
106
+ lineHeight: n || d ? "24px" : "32px"
107
+ },
108
+ children: `${I(t.current_amount, d ? "0,0" : "0,0.00")} / ${At(
109
+ b,
110
+ d
111
+ )}`
112
+ }
113
+ ),
114
+ title: /* @__PURE__ */ e(
115
+ C,
116
+ {
117
+ color: "text.secondary",
118
+ fontWeight: 400,
119
+ sx: { fontSize: "15px", lineHeight: "20px" },
120
+ variant: "h4",
121
+ children: t.name
122
+ }
123
+ )
105
124
  }
106
125
  ),
107
- /* @__PURE__ */ e(Re, { sx: { pt: 0 }, children: /* @__PURE__ */ c(y, { gap: 6, children: [
126
+ /* @__PURE__ */ e(Re, { sx: { pt: 0 }, children: /* @__PURE__ */ l(f, { gap: 6, children: [
108
127
  /* @__PURE__ */ e(Je, { data: m, height: 24 }),
109
- /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
128
+ /* @__PURE__ */ l(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
110
129
  /* @__PURE__ */ e(C, { color: "text.secondary", variant: "XSmall", children: o }),
111
130
  t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "XSmall", children: a })
112
131
  ] })
@@ -116,20 +135,20 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
116
135
  );
117
136
  }
118
137
  ), Tt = D(({ trackType: t }) => {
119
- const { goals: n } = S(), { setAlert: _, monthlyCashFlowProfile: l, updateMonthlyCashFlowProfile: u } = G(), r = T.useMemo(() => {
138
+ const { goals: n } = S(), { setAlert: _, monthlyCashFlowProfile: c, updateMonthlyCashFlowProfile: u } = G(), r = T.useMemo(() => {
120
139
  let o = 0;
121
- return t === i.SAVINGS_TRACK ? o = l?.amount_allocated_for_savings_goals || 0 : t === i.DEBT_TRACK ? o = l?.amount_allocated_for_debt_goals || 0 : t === i.RETIREMENT_TRACK && (o = l?.amount_allocated_for_retirement_goals || 0), o;
122
- }, [l]);
140
+ return t === i.SAVINGS_TRACK ? o = c?.amount_allocated_for_savings_goals || 0 : t === i.DEBT_TRACK ? o = c?.amount_allocated_for_debt_goals || 0 : t === i.RETIREMENT_TRACK && (o = c?.amount_allocated_for_retirement_goals || 0), o;
141
+ }, [c]);
123
142
  T.useEffect(() => {
124
143
  s(r);
125
144
  }, [r]);
126
145
  const [d, s] = T.useState(r), p = d < 0 || d > 99999999, h = async () => {
127
- if (l) {
128
- const o = { ...l };
146
+ if (c) {
147
+ const o = { ...c };
129
148
  t === i.SAVINGS_TRACK ? o.amount_allocated_for_savings_goals = d : t === i.DEBT_TRACK ? o.amount_allocated_for_debt_goals = d : t === i.RETIREMENT_TRACK && (o.amount_allocated_for_retirement_goals = d), await u(o), _(n.alert_contribution_updated);
130
149
  }
131
150
  };
132
- return /* @__PURE__ */ e(y, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
151
+ return /* @__PURE__ */ e(f, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
133
152
  q,
134
153
  {
135
154
  isSaveDisabled: !d || isNaN(d),
@@ -153,8 +172,8 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
153
172
  }
154
173
  ) });
155
174
  }), Ct = ({ goal: t, index: n, onUpClick: _ }) => {
156
- const { goals: l } = S(), { percentage: u } = de(l, t), r = t.goal_type === ce.KEEP_BALANCE_BELOW || t.has_been_spent ? l.goal_completed : O(l.goal_percentage_reached, `${u * 100}`);
157
- return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
175
+ const { goals: c } = S(), { percentage: u } = de(c, t), r = t.goal_type === le.KEEP_BALANCE_BELOW || t.has_been_spent ? c.goal_completed : O(c.goal_percentage_reached, `${u * 100}`);
176
+ return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ l(
158
177
  M,
159
178
  {
160
179
  disableRipple: !0,
@@ -172,14 +191,14 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
172
191
  children: t.track_type === i.SAVINGS_TRACK ? /* @__PURE__ */ e(Qe, { onClick: () => _?.(t), children: /* @__PURE__ */ e(He, { color: "primary", size: 24 }) }) : /* @__PURE__ */ e(ae, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(C, { bold: !0, variant: "XSmall", children: n + 1 }) })
173
192
  }
174
193
  ),
175
- /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
176
- /* @__PURE__ */ c(y, { sx: { maxWidth: "70%" }, children: [
194
+ /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
195
+ /* @__PURE__ */ l(f, { sx: { maxWidth: "70%" }, children: [
177
196
  /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: t.name }),
178
197
  /* @__PURE__ */ e(C, { variant: "XSmall", children: t.is_complete ? r : O(
179
- l.goal_projection,
180
- be(
198
+ c.goal_projection,
199
+ he(
181
200
  ne(t.projected_to_complete_at || 0),
182
- ge.MONTH_SHORT_YEAR
201
+ be.MONTH_SHORT_YEAR
183
202
  )
184
203
  ) })
185
204
  ] }),
@@ -190,21 +209,21 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
190
209
  ) });
191
210
  }, St = ({ goal: t }) => {
192
211
  const { goals: n } = S();
193
- return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
212
+ return /* @__PURE__ */ e(k, { children: /* @__PURE__ */ l(
194
213
  M,
195
214
  {
196
215
  disableRipple: !0,
197
216
  sx: { ":hover": { backgroundColor: "unset" }, cursor: "default" },
198
217
  children: [
199
218
  /* @__PURE__ */ e(P, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ue, { color: "success", filled: !0, size: 20 }) }),
200
- /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
201
- /* @__PURE__ */ c(y, { children: [
219
+ /* @__PURE__ */ e(w, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
220
+ /* @__PURE__ */ l(f, { children: [
202
221
  /* @__PURE__ */ e(C, { bold: !0, variant: "Body", children: t.name }),
203
222
  /* @__PURE__ */ e(C, { variant: "XSmall", children: O(
204
223
  n.completed_label,
205
- be(
224
+ he(
206
225
  ne(t.completed_at || 0),
207
- ge.MONTH_SHORT_YEAR
226
+ be.MONTH_SHORT_YEAR
208
227
  )
209
228
  ) })
210
229
  ] }),
@@ -214,23 +233,23 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
214
233
  }
215
234
  ) }, t.guid);
216
235
  }, Rt = ({ trackType: t }) => {
217
- const { goals: n, common: _ } = S(), { loadGoals: l, orderedGoals: u, reorderGoals: r } = G(), d = u.filter((g) => g.track_type === t), s = d.filter(
236
+ const { goals: n, common: _ } = S(), { loadGoals: c, orderedGoals: u, reorderGoals: r } = G(), d = u.filter((g) => g.track_type === t), s = d.filter(
218
237
  (g) => g.track_type === i.SAVINGS_TRACK && !g.has_been_spent || g.track_type !== i.SAVINGS_TRACK && !g.is_complete
219
238
  ), p = d.filter(
220
239
  (g) => g.track_type === i.SAVINGS_TRACK && g.has_been_spent || g.track_type !== i.SAVINGS_TRACK && g.is_complete
221
240
  ), [h, o] = T.useState(!1);
222
- let a = n.manage_saving_goals, b = n.manage_saving_drawer_title, m = n.manage_saving_title, f = n.manage_saving_description;
223
- t === i.DEBT_TRACK ? (a = n.manage_debt_goals, b = n.manage_debt_drawer_title, m = n.manage_debt_title, f = n.manage_debt_description) : t === i.RETIREMENT_TRACK && (a = n.manage_retirement_goals, b = n.manage_retirement_drawer_title, m = n.manage_retirement_title, f = n.manage_retirement_description);
241
+ let a = n.manage_saving_goals, b = n.manage_saving_drawer_title, m = n.manage_saving_title, y = n.manage_saving_description;
242
+ t === i.DEBT_TRACK ? (a = n.manage_debt_goals, b = n.manage_debt_drawer_title, m = n.manage_debt_title, y = n.manage_debt_description) : t === i.RETIREMENT_TRACK && (a = n.manage_retirement_goals, b = n.manage_retirement_drawer_title, m = n.manage_retirement_title, y = n.manage_retirement_description);
224
243
  const R = async (g) => {
225
- const A = [...s], E = A.findIndex((K) => K.guid === g.guid);
226
- let N = E - 1;
227
- N < 0 && (N = A.length - 1), A.splice(N, 0, A.splice(E, 1)[0]);
244
+ const A = [...s], x = A.findIndex((K) => K.guid === g.guid);
245
+ let N = x - 1;
246
+ N < 0 && (N = A.length - 1), A.splice(N, 0, A.splice(x, 1)[0]);
228
247
  for (let K = 0; K < A.length; K++)
229
248
  A[K].position = K + 1;
230
- await r(A), await l();
249
+ await r(A), await c();
231
250
  };
232
- return /* @__PURE__ */ c(y, { children: [
233
- /* @__PURE__ */ e(_e, { endIcon: /* @__PURE__ */ e(V, {}), onClick: () => o(!0), children: a }),
251
+ return /* @__PURE__ */ l(f, { children: [
252
+ /* @__PURE__ */ e(me, { endIcon: /* @__PURE__ */ e(V, {}), onClick: () => o(!0), children: a }),
234
253
  /* @__PURE__ */ e(
235
254
  J,
236
255
  {
@@ -238,27 +257,27 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
238
257
  isOpen: h,
239
258
  onClose: () => o(!1),
240
259
  title: b,
241
- children: /* @__PURE__ */ c(y, { children: [
242
- /* @__PURE__ */ c(y, { m: 24, children: [
243
- /* @__PURE__ */ e(le, { children: m }),
244
- /* @__PURE__ */ e(Z, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: f })
260
+ children: /* @__PURE__ */ l(f, { children: [
261
+ /* @__PURE__ */ l(f, { m: 24, children: [
262
+ /* @__PURE__ */ e(ce, { children: m }),
263
+ /* @__PURE__ */ e(Z, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: y })
245
264
  ] }),
246
265
  /* @__PURE__ */ e(Tt, { trackType: t }),
247
266
  /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
248
267
  /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: s.map((g, A) => {
249
- const E = A >= s.length - 1;
250
- return /* @__PURE__ */ c(y, { children: [
268
+ const x = A >= s.length - 1;
269
+ return /* @__PURE__ */ l(f, { children: [
251
270
  /* @__PURE__ */ e(Ct, { goal: g, index: A, onUpClick: R }),
252
- /* @__PURE__ */ e(v, { variant: E ? "fullWidth" : "inset" })
271
+ /* @__PURE__ */ e(v, { variant: x ? "fullWidth" : "inset" })
253
272
  ] }, `ongoing-${g.guid}`);
254
273
  }) }),
255
- t !== i.RETIREMENT_TRACK && p.length > 0 && /* @__PURE__ */ c(y, { children: [
274
+ t !== i.RETIREMENT_TRACK && p.length > 0 && /* @__PURE__ */ l(f, { children: [
256
275
  /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.complete_title }),
257
276
  /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: p.map((g, A) => {
258
- const E = A > s.length - 1;
259
- return /* @__PURE__ */ c(y, { children: [
277
+ const x = A > s.length - 1;
278
+ return /* @__PURE__ */ l(f, { children: [
260
279
  /* @__PURE__ */ e(St, { goal: g }),
261
- /* @__PURE__ */ e(v, { variant: E ? "fullWidth" : "inset" })
280
+ /* @__PURE__ */ e(v, { variant: x ? "fullWidth" : "inset" })
262
281
  ] }, `complete-${g.guid}`);
263
282
  }) })
264
283
  ] })
@@ -267,23 +286,23 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
267
286
  )
268
287
  ] });
269
288
  }, se = D(({ trackType: t, onAddGoals: n }) => {
270
- const { isMobile: _ } = he(), { goals: l } = S(), { selectedAccountGuids: u } = ue(), { orderedGoals: r, setSelectedGoal: d } = G(), s = r.filter(
289
+ const { isMobile: _ } = pe(), { goals: c } = S(), { selectedAccountGuids: u } = _e(), { orderedGoals: r, setSelectedGoal: d } = G(), s = r.filter(
271
290
  (a) => a.track_type === t && (a.track_type !== i.RETIREMENT_TRACK && u.includes(a.account_guid) || a.track_type === i.RETIREMENT_TRACK)
272
291
  ), p = s.filter(
273
292
  (a) => a.track_type === i.SAVINGS_TRACK && !a.has_been_spent || a.track_type !== i.SAVINGS_TRACK && !a.is_complete
274
293
  ), h = s.filter(
275
294
  (a) => a.track_type === i.SAVINGS_TRACK && a.has_been_spent || a.track_type !== i.SAVINGS_TRACK && a.is_complete
276
- ), o = t === i.DEBT_TRACK ? l.zero_state_complete_debt : l.zero_state_complete_savings;
277
- return /* @__PURE__ */ c(y, { mt: 16, mx: _ ? 24 : 0, children: [
278
- /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
279
- /* @__PURE__ */ e(le, { color: "text.secondary", variant: "Small", children: l.ongoing_title }),
295
+ ), o = t === i.DEBT_TRACK ? c.zero_state_complete_debt : c.zero_state_complete_savings;
296
+ return /* @__PURE__ */ l(f, { mt: 16, mx: _ ? 24 : 0, children: [
297
+ /* @__PURE__ */ l(f, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
298
+ /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "Small", children: c.ongoing_title }),
280
299
  /* @__PURE__ */ e(Rt, { trackType: t })
281
300
  ] }),
282
- p.length > 0 ? /* @__PURE__ */ e(ye, { container: !0, spacing: 24, children: p.map((a, b, m) => (
301
+ p.length > 0 ? /* @__PURE__ */ e(ge, { container: !0, spacing: 24, children: p.map((a, b, m) => (
283
302
  // Goal should be full width in mobile or if it's the first goal (unless there are 2)
284
- /* @__PURE__ */ e(ye, { xs: _ || b === 0 && m.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Le, { goal: a, onClick: () => d(a) }, a.guid) }, b)
285
- )) }) : /* @__PURE__ */ c(
286
- y,
303
+ /* @__PURE__ */ e(ge, { xs: _ || b === 0 && m.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(Le, { goal: a, onClick: () => d(a) }, a.guid) }, b)
304
+ )) }) : /* @__PURE__ */ l(
305
+ f,
287
306
  {
288
307
  alignItems: "center",
289
308
  bgcolor: "background.default",
@@ -303,16 +322,16 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
303
322
  width: { sm: 381 }
304
323
  }),
305
324
  variant: "Small",
306
- children: Ve(t, l)
325
+ children: Ve(t, c)
307
326
  }
308
327
  ),
309
- /* @__PURE__ */ e(_e, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: l.add_goals_button })
328
+ /* @__PURE__ */ e(me, { onClick: n, sx: { mt: 16, width: { sm: 224 } }, variant: "contained", children: c.add_goals_button })
310
329
  ]
311
330
  }
312
331
  ),
313
- t !== i.RETIREMENT_TRACK && /* @__PURE__ */ c(y, { gap: 16, mt: 48, children: [
314
- /* @__PURE__ */ e(le, { color: "text.secondary", variant: "Small", children: l.complete_title }),
315
- h.length === 0 && /* @__PURE__ */ e(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
332
+ t !== i.RETIREMENT_TRACK && /* @__PURE__ */ l(f, { gap: 16, mt: 48, children: [
333
+ /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "Small", children: c.complete_title }),
334
+ h.length === 0 && /* @__PURE__ */ e(f, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(
316
335
  Z,
317
336
  {
318
337
  sx: (a) => ({
@@ -326,8 +345,8 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
326
345
  children: o
327
346
  }
328
347
  ) }),
329
- h.map((a) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(Se, { onClick: () => d(a), children: /* @__PURE__ */ e(Re, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
330
- /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", gap: 6, children: [
348
+ h.map((a) => /* @__PURE__ */ e(Ce, { elevation: 2, children: /* @__PURE__ */ e(Se, { onClick: () => d(a), children: /* @__PURE__ */ e(Re, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
349
+ /* @__PURE__ */ l(f, { alignItems: "center", direction: "row", gap: 6, children: [
331
350
  /* @__PURE__ */ e($e, { color: "success", fill: !0, name: "check_circle", size: 20 }),
332
351
  /* @__PURE__ */ e(C, { color: "text.secondary", variant: "Body", children: a.name })
333
352
  ] }),
@@ -335,10 +354,10 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
335
354
  ] }) }) }) }, a.guid))
336
355
  ] })
337
356
  ] });
338
- }), Et = ({ goalType: t, onClick: n }) => {
339
- const { goals: _ } = S(), { bgcolor: l, icon: u, label: r, description: d, subTypes: s, type: p } = t, [h, o] = T.useState(!1), a = s.length > 0;
340
- return /* @__PURE__ */ e(y, { children: /* @__PURE__ */ c(L, { sx: { bgcolor: "background.paper" }, children: [
341
- /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(
357
+ }), xt = ({ goalType: t, onClick: n }) => {
358
+ const { goals: _ } = S(), { bgcolor: c, icon: u, label: r, description: d, subTypes: s, type: p } = t, [h, o] = T.useState(!1), a = s.length > 0;
359
+ return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ l(L, { sx: { bgcolor: "background.paper" }, children: [
360
+ /* @__PURE__ */ e(k, { children: /* @__PURE__ */ l(
342
361
  M,
343
362
  {
344
363
  onClick: a ? () => o(!h) : () => n(
@@ -347,7 +366,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
347
366
  p
348
367
  ),
349
368
  children: [
350
- /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(ae, { sx: { bgcolor: l }, variant: "rounded", children: /* @__PURE__ */ e(fe, { name: u, sx: { color: "grey.900" } }) }) }),
369
+ /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(ae, { sx: { bgcolor: c }, variant: "rounded", children: /* @__PURE__ */ e(fe, { name: u, sx: { color: "grey.900" } }) }) }),
351
370
  /* @__PURE__ */ e(w, { primary: r, secondary: d, sx: { mr: 24 } }),
352
371
  !a && /* @__PURE__ */ e(V, {}),
353
372
  a && (h ? /* @__PURE__ */ e(Ye, {}) : /* @__PURE__ */ e(Ze, {}))
@@ -355,7 +374,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
355
374
  }
356
375
  ) }),
357
376
  /* @__PURE__ */ e(v, { variant: "inset" }),
358
- a && /* @__PURE__ */ e(et, { in: h, children: /* @__PURE__ */ e(L, { sx: { bgcolor: "background.default" }, children: s.map((b, m) => /* @__PURE__ */ e(k, { sx: { pl: 48 }, children: /* @__PURE__ */ c(M, { onClick: () => n(b.label, b.metaType, p), children: [
377
+ a && /* @__PURE__ */ e(et, { in: h, children: /* @__PURE__ */ e(L, { sx: { bgcolor: "background.default" }, children: s.map((b, m) => /* @__PURE__ */ e(k, { sx: { pl: 48 }, children: /* @__PURE__ */ l(M, { onClick: () => n(b.label, b.metaType, p), children: [
359
378
  /* @__PURE__ */ e(tt, { sx: { mr: 8 }, children: /* @__PURE__ */ e(fe, { name: b.icon }) }),
360
379
  /* @__PURE__ */ e(
361
380
  w,
@@ -371,26 +390,26 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
371
390
  accounts: t,
372
391
  isOpen: n,
373
392
  onClose: _,
374
- onSave: l,
393
+ onSave: c,
375
394
  title: u
376
395
  }) => {
377
- const { goals: r, common: d } = S(), { config: s } = pe(), [p, h] = T.useState([]), o = (a) => {
378
- const b = p.findIndex((f) => f.guid === a.guid), m = [...p];
396
+ const { goals: r, common: d } = S(), { config: s } = ue(), [p, h] = T.useState([]), o = (a) => {
397
+ const b = p.findIndex((y) => y.guid === a.guid), m = [...p];
379
398
  b >= 0 ? m.splice(b, 1) : m.push(a), h(m);
380
399
  };
381
- return /* @__PURE__ */ c(
400
+ return /* @__PURE__ */ l(
382
401
  J,
383
402
  {
384
403
  ariaLabelClose: d.close_aria,
385
404
  isOpen: n,
386
405
  onClose: _,
387
- onPrimaryAction: () => l(p),
406
+ onPrimaryAction: () => c(p),
388
407
  title: u,
389
408
  children: [
390
- /* @__PURE__ */ c(L, { sx: { bgcolor: "background.white" }, children: [
409
+ /* @__PURE__ */ l(L, { sx: { bgcolor: "background.white" }, children: [
391
410
  /* @__PURE__ */ e(v, { variant: "fullWidth" }),
392
- t.map((a, b) => /* @__PURE__ */ c(T.Fragment, { children: [
393
- /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => o(a), children: [
411
+ t.map((a, b) => /* @__PURE__ */ l(T.Fragment, { children: [
412
+ /* @__PURE__ */ e(k, { children: /* @__PURE__ */ l(M, { onClick: () => o(a), children: [
394
413
  /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
395
414
  te,
396
415
  {
@@ -413,7 +432,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
413
432
  ] }, a.guid))
414
433
  ] }),
415
434
  s.show_connections_widget_in_master && /* @__PURE__ */ e(
416
- Te,
435
+ Ae,
417
436
  {
418
437
  description: r.connect_description,
419
438
  label: r.connect_button,
@@ -423,30 +442,30 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
423
442
  ]
424
443
  }
425
444
  );
426
- }, xt = ({ onClose: t }) => {
427
- const { goals: n } = S(), { addGoal: _, debtGoals: l, setAlert: u, setSelectedGoal: r } = G(), { config: d } = pe(), { visibleDebtAccounts: s } = z(), [p, h] = T.useState(!1), o = Pe(n), a = (m, f, R) => {
445
+ }, Et = ({ onClose: t }) => {
446
+ const { goals: n } = S(), { addGoal: _, debtGoals: c, setAlert: u, setSelectedGoal: r } = G(), { config: d } = ue(), { visibleDebtAccounts: s } = z(), [p, h] = T.useState(!1), o = Pe(n), a = (m, y, R) => {
428
447
  R === i.DEBT_TRACK ? h(!0) : r({
429
448
  amount: 0,
430
449
  current_amount: 0,
431
- goal_type: ce.SAVE_AMOUNT,
450
+ goal_type: le.SAVE_AMOUNT,
432
451
  initial_amount: 0,
433
- meta_type: f,
452
+ meta_type: y,
434
453
  name: m,
435
454
  track_type: R
436
455
  });
437
456
  }, b = async (m) => {
438
- for (const f of m) {
457
+ for (const y of m) {
439
458
  let R = Y.CREDIT_CARD;
440
- f.account_type === Ae.LOAN ? R = Y.LOANS : f.account_type === Ae.LINE_OF_CREDIT && (R = Y.LINE_OF_CREDIT), await _({
441
- account_guid: f.guid,
459
+ y.account_type === ye.LOAN ? R = Y.LOANS : y.account_type === ye.LINE_OF_CREDIT && (R = Y.LINE_OF_CREDIT), await _({
460
+ account_guid: y.guid,
442
461
  amount: 0,
443
462
  current_amount: 0,
444
- goal_type: ce.KEEP_BALANCE_BELOW,
445
- initial_amount: f.balance || 0,
446
- interest_rate: f.interest_rate || 0,
463
+ goal_type: le.KEEP_BALANCE_BELOW,
464
+ initial_amount: y.balance || 0,
465
+ interest_rate: y.interest_rate || 0,
447
466
  meta_type: R,
448
- monthly_payment: f.minimum_payment || 0,
449
- name: we(f, {
467
+ monthly_payment: y.minimum_payment || 0,
468
+ name: we(y, {
450
469
  allowNickname: d?.show_account_nicknames_in_master
451
470
  }),
452
471
  track_type: i.DEBT_TRACK
@@ -454,12 +473,12 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
454
473
  }
455
474
  h(!1), t?.(i.DEBT_TRACK);
456
475
  };
457
- return /* @__PURE__ */ c(y, { children: [
458
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: o.map((m, f) => /* @__PURE__ */ e(Et, { goalType: m, onClick: a }, f)) }),
476
+ return /* @__PURE__ */ l(f, { children: [
477
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: o.map((m, y) => /* @__PURE__ */ e(xt, { goalType: m, onClick: a }, y)) }),
459
478
  /* @__PURE__ */ e(
460
479
  Be,
461
480
  {
462
- accounts: s.filter((m) => !l.find((f) => f.account_guid === m.guid)),
481
+ accounts: s.filter((m) => !c.find((y) => y.account_guid === m.guid)),
463
482
  isOpen: p,
464
483
  onClose: () => h(!1),
465
484
  onSave: b,
@@ -469,7 +488,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
469
488
  ] });
470
489
  }, Oe = ({ account: t }) => {
471
490
  const n = at(t);
472
- return /* @__PURE__ */ c(k, { sx: { bgcolor: "background.paper", p: 24 }, children: [
491
+ return /* @__PURE__ */ l(k, { sx: { bgcolor: "background.paper", p: 24 }, children: [
473
492
  /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
474
493
  te,
475
494
  {
@@ -486,9 +505,9 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
486
505
  )
487
506
  ] });
488
507
  }, vt = D(({ goal: t }) => {
489
- const { goals: n } = S(), { setAlert: _, setSelectedGoal: l, updateGoal: u, updateRetirementGoal: r } = G(), [d, s] = T.useState(t.amount), p = !t.guid, h = d < 0 || d > 9999999999e-2, o = t.track_type === i.SAVINGS_TRACK && t.has_been_spent || t.track_type !== i.SAVINGS_TRACK && t.is_complete, a = async () => {
508
+ const { goals: n } = S(), { setAlert: _, setSelectedGoal: c, updateGoal: u, updateRetirementGoal: r } = G(), [d, s] = T.useState(t.amount), p = !t.guid, h = d < 0 || d > 9999999999e-2, o = t.track_type === i.SAVINGS_TRACK && t.has_been_spent || t.track_type !== i.SAVINGS_TRACK && t.is_complete, a = async () => {
490
509
  const m = { ...t, amount: d };
491
- t.amount = d, p ? l(m) : (t.track_type !== i.RETIREMENT_TRACK ? await u(m) : await r(m), _(n.alert_goal_updated_amount));
510
+ t.amount = d, p ? c(m) : (t.track_type !== i.RETIREMENT_TRACK ? await u(m) : await r(m), _(n.alert_goal_updated_amount));
492
511
  }, b = () => {
493
512
  setTimeout(() => {
494
513
  s(t.amount);
@@ -520,19 +539,19 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
520
539
  }
521
540
  );
522
541
  }), It = ({ goal: t }) => {
523
- const { visibleCheckingAccounts: n, visibleSavingsAccounts: _ } = z(), { accounts: l, goals: u } = S(), { config: r } = pe(), { setAlert: d, setSelectedGoal: s, updateGoal: p } = G(), h = !t.guid, [o, a] = T.useState(!1), b = async ({ balance: m, guid: f }) => {
524
- const R = { ...t, account_guid: f, current_amount: m || 0 };
542
+ const { visibleCheckingAccounts: n, visibleSavingsAccounts: _ } = z(), { accounts: c, goals: u } = S(), { config: r } = ue(), { setAlert: d, setSelectedGoal: s, updateGoal: p } = G(), h = !t.guid, [o, a] = T.useState(!1), b = async ({ balance: m, guid: y }) => {
543
+ const R = { ...t, account_guid: y, current_amount: m || 0 };
525
544
  h ? s(R) : (await p(R), d(u.alert_account_changed)), a(!1);
526
545
  };
527
- return /* @__PURE__ */ c(y, { children: [
528
- h && !t.account_guid ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () => a(!0), children: [
529
- /* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(y, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
546
+ return /* @__PURE__ */ l(f, { children: [
547
+ h && !t.account_guid ? /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(M, { onClick: () => a(!0), children: [
548
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ l(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
530
549
  /* @__PURE__ */ e(Ie, { filled: !0 }),
531
550
  u.details_add_account
532
551
  ] }) }),
533
552
  /* @__PURE__ */ e(V, { color: "primary" })
534
- ] }) }) : /* @__PURE__ */ c(y, { sx: { gap: 8, my: 24, mx: 24 }, children: [
535
- /* @__PURE__ */ e(_e, { onClick: () => a(!0), variant: "text", children: u.details_change_account }),
553
+ ] }) }) : /* @__PURE__ */ l(f, { sx: { gap: 8, my: 24, mx: 24 }, children: [
554
+ /* @__PURE__ */ e(me, { onClick: () => a(!0), variant: "text", children: u.details_change_account }),
536
555
  /* @__PURE__ */ e(
537
556
  C,
538
557
  {
@@ -543,9 +562,9 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
543
562
  }
544
563
  )
545
564
  ] }),
546
- /* @__PURE__ */ e(J, { isOpen: o, onClose: () => a(!1), title: u.details_change_account, children: /* @__PURE__ */ c(y, { children: [
547
- n.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: l.account_types[1] }),
548
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => b(m), children: [
565
+ /* @__PURE__ */ e(J, { isOpen: o, onClose: () => a(!1), title: u.details_change_account, children: /* @__PURE__ */ l(f, { children: [
566
+ n.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: c.account_types[1] }),
567
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ l(M, { onClick: () => b(m), children: [
549
568
  /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
550
569
  te,
551
570
  {
@@ -562,8 +581,8 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
562
581
  ),
563
582
  /* @__PURE__ */ e(V, {})
564
583
  ] }) }, m.guid)) }),
565
- _.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: l.account_types[2] }),
566
- /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: _.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ c(M, { onClick: () => b(m), children: [
584
+ _.length > 0 && /* @__PURE__ */ e(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: c.account_types[2] }),
585
+ /* @__PURE__ */ e(L, { sx: { bgcolor: "background.paper" }, children: _.map((m) => /* @__PURE__ */ e(k, { children: /* @__PURE__ */ l(M, { onClick: () => b(m), children: [
567
586
  /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
568
587
  te,
569
588
  {
@@ -581,7 +600,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
581
600
  /* @__PURE__ */ e(V, {})
582
601
  ] }) }, m.guid)) }),
583
602
  r.show_connections_widget_in_master && /* @__PURE__ */ e(
584
- Te,
603
+ Ae,
585
604
  {
586
605
  description: u.connect_description,
587
606
  label: u.connect_button,
@@ -591,9 +610,9 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
591
610
  ] }) })
592
611
  ] });
593
612
  }, Gt = D(({ goal: t }) => {
594
- const { goals: n } = S(), { setAlert: _, setSelectedGoal: l, updateGoal: u } = G(), [r, d] = T.useState(t.name), s = !t.guid, p = t.track_type === i.SAVINGS_TRACK && t.has_been_spent || t.track_type !== i.SAVINGS_TRACK && t.is_complete, h = async () => {
613
+ const { goals: n } = S(), { setAlert: _, setSelectedGoal: c, updateGoal: u } = G(), [r, d] = T.useState(t.name), s = !t.guid, p = t.track_type === i.SAVINGS_TRACK && t.has_been_spent || t.track_type !== i.SAVINGS_TRACK && t.is_complete, h = async () => {
595
614
  const a = { ...t, name: r };
596
- t.name = r, s ? l(a) : (await u(a), _(n.alert_goal_updated_name));
615
+ t.name = r, s ? c(a) : (await u(a), _(n.alert_goal_updated_name));
597
616
  }, o = () => {
598
617
  setTimeout(() => {
599
618
  d(t.name);
@@ -622,10 +641,10 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
622
641
  }
623
642
  );
624
643
  }), Nt = ({ goal: t }) => {
625
- const { goals: n } = S(), { setAlert: _, setSelectedGoal: l, updateRetirementGoal: u } = G(), [r, d] = T.useState(t.retirement_age || 65), s = !t.guid, p = async () => {
644
+ const { goals: n } = S(), { setAlert: _, setSelectedGoal: c, updateRetirementGoal: u } = G(), [r, d] = T.useState(t.retirement_age || 65), s = !t.guid, p = async () => {
626
645
  if (!isNaN(r)) {
627
646
  const a = { ...t, retirement_age: r };
628
- t.retirement_age = r, s ? l(a) : (await u(a), _(n.alert_goal_updated_retirement_age));
647
+ t.retirement_age = r, s ? c(a) : (await u(a), _(n.alert_goal_updated_retirement_age));
629
648
  }
630
649
  }, h = () => {
631
650
  setTimeout(() => {
@@ -656,8 +675,8 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
656
675
  }
657
676
  );
658
677
  }, kt = D(({ goal: t }) => {
659
- const { goals: n } = S(), { user: _, updateUser: l } = Ge(), { setAlert: u } = G(), [r, d] = T.useState(ne(_.birthday ?? 0)), [s, p] = T.useState(null), h = t.is_complete, o = async () => {
660
- r && ct(r) && (await l({ ..._, birthday: st(r) }), u(n.alert_goal_updated_birthday));
678
+ const { goals: n } = S(), { user: _, updateUser: c } = Ge(), { setAlert: u } = G(), [r, d] = T.useState(ne(_.birthday ?? 0)), [s, p] = T.useState(null), h = t.is_complete, o = async () => {
679
+ r && lt(r) && (await c({ ..._, birthday: st(r) }), u(n.alert_goal_updated_birthday));
661
680
  };
662
681
  return /* @__PURE__ */ e(
663
682
  q,
@@ -667,9 +686,9 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
667
686
  label: n.details_birthday,
668
687
  onSave: o,
669
688
  primaryText: n.details_birthday,
670
- secondaryText: `${be(ne(_.birthday ?? 0), ge.MONTH_DAY_YEAR)}`,
689
+ secondaryText: `${he(ne(_.birthday ?? 0), be.MONTH_DAY_YEAR)}`,
671
690
  zeroStateText: !t.guid && !_.birthday ? n.add_birthday : void 0,
672
- children: /* @__PURE__ */ e(mt, { dateAdapter: lt, children: /* @__PURE__ */ e(
691
+ children: /* @__PURE__ */ e(mt, { dateAdapter: ct, children: /* @__PURE__ */ e(
673
692
  dt,
674
693
  {
675
694
  label: n.details_birthday,
@@ -683,7 +702,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
683
702
  );
684
703
  }), wt = ({ goal: t }) => {
685
704
  const { goals: n } = S(), { visibleRetirementAccounts: _ } = z(), {
686
- addRetirementGoalAccount: l,
705
+ addRetirementGoalAccount: c,
687
706
  newRetirementGoalAccounts: u,
688
707
  retirementGoalAccounts: r,
689
708
  selectedGoal: d,
@@ -692,30 +711,30 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
692
711
  setSelectedGoal: h
693
712
  } = G(), [o, a] = T.useState(!1), b = !t.guid, m = _.filter(
694
713
  (g) => b ? u.find((A) => A.account_guid === g.guid) : r.find((A) => A.account_guid === g.guid)
695
- ), f = _.filter(
714
+ ), y = _.filter(
696
715
  (g) => !r.find((A) => A.account_guid === g.guid)
697
716
  ), R = async (g) => {
698
- const A = g.map((E) => ({
699
- account_guid: E.guid,
717
+ const A = g.map((x) => ({
718
+ account_guid: x.guid,
700
719
  retirement_goal_guid: t.guid
701
720
  }));
702
721
  if (b)
703
722
  p(A);
704
723
  else
705
- for (const E of A)
706
- await l(E), s(n.alert_account_added);
724
+ for (const x of A)
725
+ await c(x), s(n.alert_account_added);
707
726
  h({
708
727
  ...d,
709
- current_amount: g.reduce((E, N) => E + (N.balance || 0), 0)
728
+ current_amount: g.reduce((x, N) => x + (N.balance || 0), 0)
710
729
  }), a(!1);
711
730
  };
712
- return /* @__PURE__ */ c(y, { children: [
713
- m.map((g) => /* @__PURE__ */ c(y, { children: [
731
+ return /* @__PURE__ */ l(f, { children: [
732
+ m.map((g) => /* @__PURE__ */ l(f, { children: [
714
733
  /* @__PURE__ */ e(Oe, { account: g }),
715
734
  /* @__PURE__ */ e(v, {})
716
735
  ] }, g.guid)),
717
- /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(M, { onClick: () => a(!0), children: [
718
- /* @__PURE__ */ e(w, { children: /* @__PURE__ */ c(y, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
736
+ /* @__PURE__ */ e(k, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(M, { onClick: () => a(!0), children: [
737
+ /* @__PURE__ */ e(w, { children: /* @__PURE__ */ l(f, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
719
738
  /* @__PURE__ */ e(Ie, { filled: !0 }),
720
739
  n.details_add_account
721
740
  ] }) }),
@@ -724,7 +743,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
724
743
  /* @__PURE__ */ e(
725
744
  Be,
726
745
  {
727
- accounts: f,
746
+ accounts: y,
728
747
  isOpen: o,
729
748
  onClose: () => a(!1),
730
749
  onSave: R,
@@ -733,22 +752,22 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
733
752
  )
734
753
  ] });
735
754
  }, Dt = D(({ goal: t }) => {
736
- const { goals: n } = S(), { visibleAccounts: _ } = z(), l = T.useMemo(
755
+ const { goals: n } = S(), { visibleAccounts: _ } = z(), c = T.useMemo(
737
756
  () => _.find((d) => d.guid === t.account_guid),
738
757
  [_, t]
739
758
  ), u = t.track_type;
740
759
  let r = n.details_save_title;
741
- return t.track_type === i.DEBT_TRACK ? r = n.details_debt_title : t.track_type === i.RETIREMENT_TRACK && (r = n.details_retirement_title), /* @__PURE__ */ c(y, { children: [
742
- /* @__PURE__ */ c(y, { mx: 24, children: [
760
+ return t.track_type === i.DEBT_TRACK ? r = n.details_debt_title : t.track_type === i.RETIREMENT_TRACK && (r = n.details_retirement_title), /* @__PURE__ */ l(f, { children: [
761
+ /* @__PURE__ */ l(f, { mx: 24, children: [
743
762
  /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: r }),
744
763
  /* @__PURE__ */ e(Le, { goal: t, isInDrawer: !0 }),
745
764
  /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: n.details_title })
746
765
  ] }),
747
- /* @__PURE__ */ c(L, { sx: { bgcolor: "background.paper" }, children: [
766
+ /* @__PURE__ */ l(L, { sx: { bgcolor: "background.paper" }, children: [
748
767
  u !== i.RETIREMENT_TRACK ? /* @__PURE__ */ e(Gt, { goal: t }) : /* @__PURE__ */ e(k, { sx: { px: 24 }, children: /* @__PURE__ */ e(
749
768
  w,
750
769
  {
751
- primary: /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
770
+ primary: /* @__PURE__ */ l(f, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
752
771
  /* @__PURE__ */ e(C, { variant: "body1", children: n.details_goal_name }),
753
772
  /* @__PURE__ */ e(C, { bold: !0, color: "text.primary", sx: { mr: 4 }, variant: "body1", children: n.retirement })
754
773
  ] }),
@@ -756,11 +775,11 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
756
775
  }
757
776
  ) }),
758
777
  /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
759
- (u === i.SAVINGS_TRACK || u === i.RETIREMENT_TRACK) && /* @__PURE__ */ c($, { children: [
778
+ (u === i.SAVINGS_TRACK || u === i.RETIREMENT_TRACK) && /* @__PURE__ */ l($, { children: [
760
779
  /* @__PURE__ */ e(vt, { goal: t }),
761
780
  /* @__PURE__ */ e(v, { sx: { ml: u === i.RETIREMENT_TRACK ? 24 : 0 } })
762
781
  ] }),
763
- t.track_type === i.DEBT_TRACK && /* @__PURE__ */ c($, { children: [
782
+ t.track_type === i.DEBT_TRACK && /* @__PURE__ */ l($, { children: [
764
783
  /* @__PURE__ */ e(ot, { goal: t }),
765
784
  /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
766
785
  /* @__PURE__ */ e(rt, { goal: t }),
@@ -768,7 +787,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
768
787
  /* @__PURE__ */ e(it, { goal: t }),
769
788
  /* @__PURE__ */ e(v, { variant: "fullWidth" })
770
789
  ] }),
771
- t.track_type === i.RETIREMENT_TRACK && /* @__PURE__ */ c($, { children: [
790
+ t.track_type === i.RETIREMENT_TRACK && /* @__PURE__ */ l($, { children: [
772
791
  /* @__PURE__ */ e(Nt, { goal: t }),
773
792
  /* @__PURE__ */ e(v, { sx: { ml: 24 } }),
774
793
  /* @__PURE__ */ e(kt, { goal: t }),
@@ -776,18 +795,18 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
776
795
  ] })
777
796
  ] }),
778
797
  /* @__PURE__ */ e(C, { color: "text.secondary", sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: t.track_type === i.RETIREMENT_TRACK ? n.details_accounts : n.details_account }),
779
- t.track_type !== i.RETIREMENT_TRACK && l && /* @__PURE__ */ c($, { children: [
780
- /* @__PURE__ */ e(Oe, { account: l }),
798
+ t.track_type !== i.RETIREMENT_TRACK && c && /* @__PURE__ */ l($, { children: [
799
+ /* @__PURE__ */ e(Oe, { account: c }),
781
800
  /* @__PURE__ */ e(v, {})
782
801
  ] }),
783
- t.track_type === i.RETIREMENT_TRACK && /* @__PURE__ */ c($, { children: [
802
+ t.track_type === i.RETIREMENT_TRACK && /* @__PURE__ */ l($, { children: [
784
803
  /* @__PURE__ */ e(wt, { goal: t }),
785
804
  /* @__PURE__ */ e(v, {})
786
805
  ] }),
787
806
  t.track_type === i.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(It, { goal: t })
788
807
  ] });
789
808
  }), Kt = D(({ onClose: t }) => {
790
- const { visibleRetirementAccounts: n } = z(), { goals: _, common: l } = S(), {
809
+ const { visibleRetirementAccounts: n } = z(), { goals: _, common: c } = S(), {
791
810
  addGoal: u,
792
811
  addRetirementGoal: r,
793
812
  deleteGoal: d,
@@ -798,42 +817,42 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
798
817
  setAlert: a,
799
818
  setSelectedGoal: b,
800
819
  updateGoal: m
801
- } = G(), { user: f } = Ge(), [R, g] = T.useState(!1), A = !o?.guid, E = o?.track_type === i.SAVINGS_TRACK && o.is_complete && !o.has_been_spent, N = T.useMemo(() => {
802
- const x = A ? p : h;
803
- return n.filter((j) => x.some((F) => F.account_guid === j.guid));
820
+ } = G(), { user: y } = Ge(), [R, g] = T.useState(!1), A = !o?.guid, x = o?.track_type === i.SAVINGS_TRACK && o.is_complete && !o.has_been_spent, N = T.useMemo(() => {
821
+ const E = A ? p : h;
822
+ return n.filter((j) => E.some((F) => F.account_guid === j.guid));
804
823
  }, [A, n, p, h]), K = T.useMemo(() => {
805
824
  if (!o) return !1;
806
- if (!A && !E) return !0;
807
- const { account_guid: x, track_type: j, name: F, amount: ee, retirement_age: B } = o;
808
- return j === i.SAVINGS_TRACK ? x ? !!F && !!ee : !1 : j === i.RETIREMENT_TRACK ? N.length ? !!F && !!ee && !!B && !!f.birthday : !1 : !0;
809
- }, [o, N, f.birthday]);
810
- let H = l.delete_button, U = () => g(!0);
811
- A ? (U = () => oe(), H = l.save_button) : E && (U = () => Q(), H = _.mark_as_complete_button);
825
+ if (!A && !x) return !0;
826
+ const { account_guid: E, track_type: j, name: F, amount: ee, retirement_age: B } = o;
827
+ return j === i.SAVINGS_TRACK ? E ? !!F && !!ee : !1 : j === i.RETIREMENT_TRACK ? N.length ? !!F && !!ee && !!B && !!y.birthday : !1 : !0;
828
+ }, [o, N, y.birthday]);
829
+ let H = c.delete_button, U = () => g(!0);
830
+ A ? (U = () => oe(), H = c.save_button) : x && (U = () => Q(), H = _.mark_as_complete_button);
812
831
  const oe = async () => {
813
832
  if (o) {
814
- const x = o.track_type;
815
- x !== i.RETIREMENT_TRACK ? await u(o) : x === i.RETIREMENT_TRACK && await r({ ...o, target_amount: o.amount }), a(_.alert_goal_added), b(void 0), x && t?.(x);
833
+ const E = o.track_type;
834
+ E !== i.RETIREMENT_TRACK ? await u(o) : E === i.RETIREMENT_TRACK && await r({ ...o, target_amount: o.amount }), a(_.alert_goal_added), b(void 0), E && t?.(E);
816
835
  }
817
836
  }, W = async () => {
818
837
  o && (o.track_type !== i.RETIREMENT_TRACK ? await d(o.guid) : o.track_type === i.RETIREMENT_TRACK && await s(o), a(_.alert_goal_deleted), b(void 0));
819
838
  }, Q = async () => {
820
- const x = {
839
+ const E = {
821
840
  ...o,
822
841
  has_been_spent: !0
823
842
  };
824
- await m(x), a(_.alert_goal_completed), b(void 0);
843
+ await m(E), a(_.alert_goal_completed), b(void 0);
825
844
  };
826
- return /* @__PURE__ */ c(y, { children: [
845
+ return /* @__PURE__ */ l(f, { children: [
827
846
  /* @__PURE__ */ e(
828
847
  J,
829
848
  {
830
- ariaLabelClose: l.close_aria,
849
+ ariaLabelClose: c.close_aria,
831
850
  hasSecondaryAction: A,
832
851
  isOpen: !!o,
833
852
  isPrimaryDisabled: !K,
834
853
  onClose: () => b(void 0),
835
854
  onPrimaryAction: U,
836
- primaryColor: A || E ? "primary" : "error",
855
+ primaryColor: A || x ? "primary" : "error",
837
856
  primaryText: H,
838
857
  secondaryColor: "primary",
839
858
  title: _.goal_details,
@@ -843,27 +862,27 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
843
862
  /* @__PURE__ */ e(
844
863
  _t,
845
864
  {
846
- copy: { close_aria: l.close_aria, title: _.delete_goal },
865
+ copy: { close_aria: c.close_aria, title: _.delete_goal },
847
866
  isOpen: R,
848
867
  maxWidth: "xs",
849
868
  onClose: () => g(!1),
850
869
  onPrimaryAction: W,
851
870
  primaryColor: "error",
852
- primaryText: l.delete_button,
871
+ primaryText: c.delete_button,
853
872
  children: /* @__PURE__ */ e(C, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: O(_.delete_description, o?.name || "") })
854
873
  }
855
874
  )
856
875
  ] });
857
876
  }), jn = D(({ onBackClick: t, sx: n }) => {
858
- const { onEvent: _ } = Ne(), { isMobile: l } = he(), { isAccountDataLoaded: u, loadAccountData: r } = z(), { isInitialized: d } = ue(), { goals: s, common: p } = S(), {
877
+ const { onEvent: _ } = Ne(), { isMobile: c } = pe(), { isAccountDataLoaded: u, loadAccountData: r } = z(), { isInitialized: d } = _e(), { goals: s, common: p } = S(), {
859
878
  alert: h,
860
879
  goals: o,
861
880
  isAllGoalDataLoaded: a,
862
881
  loadGoalData: b,
863
882
  monthlyCashFlowProfile: m,
864
- setAlert: f,
883
+ setAlert: y,
865
884
  retirmentGoals: R
866
- } = G(), [g, A] = T.useState(0), [E, N] = T.useState(!1), K = m?.amount_allocated_for_savings_goals || 0, H = m?.amount_allocated_for_debt_goals || 0, U = m?.amount_allocated_for_retirement_goals || 0;
885
+ } = G(), [g, A] = T.useState(0), [x, N] = T.useState(!1), K = m?.amount_allocated_for_savings_goals || 0, H = m?.amount_allocated_for_debt_goals || 0, U = m?.amount_allocated_for_retirement_goals || 0;
867
886
  Ke({
868
887
  widgetName: "GoalsWidget",
869
888
  isLoaded: a
@@ -878,23 +897,23 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
878
897
  N(!0), _(X.GOALS_CLICK_ADD);
879
898
  }, Q = (B) => {
880
899
  N(!1), B === i.SAVINGS_TRACK ? A(0) : B === i.DEBT_TRACK ? A(1) : B === i.RETIREMENT_TRACK && A(2);
881
- }, x = T.useMemo(
900
+ }, E = T.useMemo(
882
901
  () => a && (o.length === 0 || o.every(({ track_type: B }) => !B) && R.length === 0),
883
902
  [o, a, R]
884
903
  );
885
904
  if (!d || !a)
886
905
  return /* @__PURE__ */ e(Me, {});
887
906
  const j = O(
888
- l ? s.tab_subtitle_mobile : s.tab_subtitle,
907
+ c ? s.tab_subtitle_mobile : s.tab_subtitle,
889
908
  I(K, "0,0")
890
909
  ), F = O(
891
- l ? s.tab_subtitle_mobile : s.tab_subtitle,
910
+ c ? s.tab_subtitle_mobile : s.tab_subtitle,
892
911
  I(H, "0,0")
893
912
  ), ee = O(
894
- l ? s.tab_subtitle_mobile : s.tab_subtitle,
913
+ c ? s.tab_subtitle_mobile : s.tab_subtitle,
895
914
  I(U, "0,0")
896
915
  );
897
- return /* @__PURE__ */ c(
916
+ return /* @__PURE__ */ l(
898
917
  ut,
899
918
  {
900
919
  actions: [
@@ -909,41 +928,41 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
909
928
  sx: n,
910
929
  title: s.title,
911
930
  children: [
912
- /* @__PURE__ */ c(y, { mx: l ? 0 : 48, my: 24, children: [
913
- /* @__PURE__ */ c(
931
+ /* @__PURE__ */ l(f, { mx: c ? 0 : 48, my: 24, children: [
932
+ /* @__PURE__ */ l(
914
933
  Fe,
915
934
  {
916
935
  onChange: (B, We) => A(We),
917
936
  sx: { bgcolor: "background.paper" },
918
937
  textColor: "primary",
919
- value: x ? !1 : g,
938
+ value: E ? !1 : g,
920
939
  variant: "fullWidth",
921
940
  children: [
922
941
  /* @__PURE__ */ e(
923
942
  re,
924
943
  {
925
- disabled: x,
944
+ disabled: E,
926
945
  label: /* @__PURE__ */ e(ie, { subtitle: j, title: s.tab_saving_title })
927
946
  }
928
947
  ),
929
948
  /* @__PURE__ */ e(
930
949
  re,
931
950
  {
932
- disabled: x,
951
+ disabled: E,
933
952
  label: /* @__PURE__ */ e(ie, { subtitle: F, title: s.tab_debt_title })
934
953
  }
935
954
  ),
936
955
  /* @__PURE__ */ e(
937
956
  re,
938
957
  {
939
- disabled: x,
958
+ disabled: E,
940
959
  label: /* @__PURE__ */ e(ie, { subtitle: ee, title: s.tab_retirement_title })
941
960
  }
942
961
  )
943
962
  ]
944
963
  }
945
964
  ),
946
- x ? /* @__PURE__ */ e(
965
+ E ? /* @__PURE__ */ e(
947
966
  pt,
948
967
  {
949
968
  header: s.create_goals_header,
@@ -958,7 +977,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
958
977
  }
959
978
  }
960
979
  }
961
- ) : /* @__PURE__ */ c($, { children: [
980
+ ) : /* @__PURE__ */ l($, { children: [
962
981
  g === 0 && /* @__PURE__ */ e(se, { onAddGoals: W, trackType: i.SAVINGS_TRACK }),
963
982
  g === 1 && /* @__PURE__ */ e(se, { onAddGoals: W, trackType: i.DEBT_TRACK }),
964
983
  g === 2 && /* @__PURE__ */ e(se, { onAddGoals: W, trackType: i.RETIREMENT_TRACK })
@@ -969,32 +988,32 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
969
988
  J,
970
989
  {
971
990
  ariaLabelClose: p.close_aria,
972
- isOpen: E,
991
+ isOpen: x,
973
992
  onClose: () => N(!1),
974
993
  title: s.add_goal_title,
975
- children: /* @__PURE__ */ e(xt, { onClose: Q })
994
+ children: /* @__PURE__ */ e(Et, { onClose: Q })
976
995
  }
977
996
  ),
978
- /* @__PURE__ */ e(je, { onClose: () => f(""), open: !!h, children: /* @__PURE__ */ e(ze, { onClose: () => f(""), severity: "success", variant: "filled", children: h }) })
997
+ /* @__PURE__ */ e(je, { onClose: () => y(""), open: !!h, children: /* @__PURE__ */ e(ze, { onClose: () => y(""), severity: "success", variant: "filled", children: h }) })
979
998
  ]
980
999
  }
981
1000
  );
982
1001
  }), Mt = D(({ goal: t }) => {
983
1002
  const { goals: n } = S(), _ = gt(), {
984
- backgroundColor: l,
1003
+ backgroundColor: c,
985
1004
  color: u,
986
1005
  percentage: r,
987
1006
  projectedText: d
988
1007
  } = de(n, t), s = Math.round(r * 100);
989
- let p = /* @__PURE__ */ e(Ee, {});
990
- return t.track_type === i.DEBT_TRACK ? p = /* @__PURE__ */ e(xe, {}) : t.track_type === i.RETIREMENT_TRACK && (p = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
991
- /* @__PURE__ */ e(ae, { sx: { bgcolor: l, color: u, height: 32, width: 32 }, variant: "rounded", children: p }),
992
- /* @__PURE__ */ c(bt, { sx: { width: "100%" }, children: [
993
- /* @__PURE__ */ e(me, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
1008
+ let p = /* @__PURE__ */ e(xe, {});
1009
+ return t.track_type === i.DEBT_TRACK ? p = /* @__PURE__ */ e(Ee, {}) : t.track_type === i.RETIREMENT_TRACK && (p = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ l(f, { alignItems: "center", direction: "row", spacing: 12, sx: { py: 12 }, children: [
1010
+ /* @__PURE__ */ e(ae, { sx: { bgcolor: c, color: u, height: 32, width: 32 }, variant: "rounded", children: p }),
1011
+ /* @__PURE__ */ l(bt, { sx: { width: "100%" }, children: [
1012
+ /* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, variant: "body1", children: t.name }),
994
1013
  t.projected_to_complete_at && /* @__PURE__ */ e(C, { color: "text.secondary", variant: "XSmall", children: d })
995
1014
  ] }),
996
1015
  /* @__PURE__ */ e(
997
- yt,
1016
+ ft,
998
1017
  {
999
1018
  backgroundStrokeColor: _.palette.border.lighter,
1000
1019
  color: _.palette.primary.main,
@@ -1005,8 +1024,8 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1005
1024
  }
1006
1025
  )
1007
1026
  ] });
1008
- }), Lt = ({ header: t, subText: n, sx: _ }) => /* @__PURE__ */ c(
1009
- y,
1027
+ }), Lt = ({ header: t, subText: n, sx: _ }) => /* @__PURE__ */ l(
1028
+ f,
1010
1029
  {
1011
1030
  sx: {
1012
1031
  alignItems: "center",
@@ -1016,7 +1035,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1016
1035
  },
1017
1036
  children: [
1018
1037
  /* @__PURE__ */ e(qe, { size: 32 }),
1019
- /* @__PURE__ */ e(me, { fontSize: 15, fontWeight: 600, children: t }),
1038
+ /* @__PURE__ */ e(Te, { fontSize: 15, fontWeight: 600, children: t }),
1020
1039
  /* @__PURE__ */ e(
1021
1040
  Z,
1022
1041
  {
@@ -1029,7 +1048,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1029
1048
  ]
1030
1049
  }
1031
1050
  ), Fn = D(({ onCTAClick: t }) => {
1032
- const { isAccountDataLoaded: n, loadAccountData: _, visibleAccounts: l } = z(), { onEvent: u } = Ne(), { goals: r } = S(), { isInitialized: d } = ue(), { ongoingGoalsForMicroWidget: s, isAllGoalDataLoaded: p, loadGoalData: h } = G();
1051
+ const { isAccountDataLoaded: n, loadAccountData: _, visibleAccounts: c } = z(), { onEvent: u } = Ne(), { goals: r } = S(), { isInitialized: d } = _e(), { ongoingGoalsForMicroWidget: s, isAllGoalDataLoaded: p, loadGoalData: h } = G();
1033
1052
  Ke({
1034
1053
  widgetName: "GoalsMicroWidget",
1035
1054
  isLoaded: p
@@ -1037,7 +1056,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1037
1056
  n || _().finally();
1038
1057
  }, []), T.useEffect(() => {
1039
1058
  d && (h().finally(), u(X.GOALS_LOAD_WIDGET, {
1040
- state: l?.length ? "default" : "zeroState"
1059
+ state: c?.length ? "default" : "zeroState"
1041
1060
  }));
1042
1061
  }, [d]);
1043
1062
  const o = T.useMemo(
@@ -1049,7 +1068,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1049
1068
  ), t();
1050
1069
  };
1051
1070
  return !d || !p ? /* @__PURE__ */ e(Me, {}) : /* @__PURE__ */ e(
1052
- ft,
1071
+ yt,
1053
1072
  {
1054
1073
  className: "mx-goals-microwidget",
1055
1074
  ctaLabel: o ? r.get_started : r.view_details,
@@ -1061,7 +1080,7 @@ const At = (t, n) => n ? I(t, t < 1e3 ? "0" : "0.00a").replace(
1061
1080
  header: r.create_goals_header,
1062
1081
  subText: r.micro_zero_state_description
1063
1082
  }
1064
- ) : /* @__PURE__ */ e(ht, { sx: { justifyContent: "space-between" }, children: s.map((b, m) => /* @__PURE__ */ c(T.Fragment, { children: [
1083
+ ) : /* @__PURE__ */ e(ht, { sx: { justifyContent: "space-between" }, children: s.map((b, m) => /* @__PURE__ */ l(T.Fragment, { children: [
1065
1084
  /* @__PURE__ */ e(Mt, { goal: b }),
1066
1085
  m !== s.length - 1 && /* @__PURE__ */ e(v, {})
1067
1086
  ] }, b.guid)) })