@mx-cartographer/experiences 7.0.6-alpha.al1 → 7.0.6

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.
@@ -2,13 +2,13 @@ import { jsx as e, jsxs as u, Fragment as re } from "react/jsx-runtime";
2
2
  import x from "@mui/material/Box";
3
3
  import g from "@mui/material/Stack";
4
4
  import { useTheme as G, alpha as te } from "@mui/material/styles";
5
- import { PieChart as Ie } from "@mui/x-charts";
6
- import { ChevronRight as j, Check as Oe, TrendingUp as De, ArrowRightAlt as Me, TrendingDown as Te, AccountBalance as me, ExpandMore as we, Payments as Re, CalendarMonth as Fe, CreditCard as ue, Savings as Pe, ContentCopy as Ge, MultilineChart as Le } from "@mxenabled/mx-icons";
7
- import { Text as W, P as y, H3 as H, Icon as Ee } from "@mxenabled/mxui";
8
- import { format as he } from "date-fns/format";
5
+ import { PieChart as Oe } from "@mui/x-charts";
6
+ import { ChevronRight as j, Check as De, TrendingUp as Me, ArrowRightAlt as Te, TrendingDown as we, AccountBalance as me, ExpandMore as Re, Payments as Fe, CalendarMonth as Pe, CreditCard as ue, Savings as Ge, ContentCopy as Le, MultilineChart as Ee } from "@mxenabled/mx-icons";
7
+ import { Text as W, P as y, H3 as H, Icon as he } from "@mxenabled/mxui";
8
+ import { format as _e } from "date-fns/format";
9
9
  import C from "react";
10
10
  import We from "@mui/material/Avatar";
11
- import _e from "@mui/material/Divider";
11
+ import ge from "@mui/material/Divider";
12
12
  import Be from "@mui/material/List";
13
13
  import He from "@mui/material/ListItem";
14
14
  import ze from "@mui/material/ListItemAvatar";
@@ -17,22 +17,22 @@ import Ne from "@mui/material/ListItemText";
17
17
  import { b } from "../Localization-2MODESHW.mjs";
18
18
  import * as ce from "d3";
19
19
  import { observer as I } from "mobx-react-lite";
20
- import { u as S, a as z, w as $, o as Y, c as ge, g as fe, l as Ke } from "../hooks-02T565vf.mjs";
20
+ import { u as S, a as z, w as $, o as Y, c as fe, g as ye, l as Ke } from "../hooks-02T565vf.mjs";
21
21
  import { L as N } from "../Loader-Dp1P2gNw.mjs";
22
- import { F as Xo, a as jo } from "../FinstrongStore-mkALvztw.mjs";
22
+ import { F as No, a as Ko } from "../FinstrongStore-mkALvztw.mjs";
23
23
  import q from "@mui/material/Button";
24
24
  import J from "@mui/material/Card";
25
- import { L as ye } from "../LineChart-CYiUS-px.mjs";
26
- import { j as be } from "../ConnectDrawer-WfKHsHSF.mjs";
25
+ import { L as be } from "../LineChart-CYiUS-px.mjs";
26
+ import { j as xe } from "../ConnectDrawer-WfKHsHSF.mjs";
27
27
  import Xe from "@mui/material/Accordion";
28
28
  import je from "@mui/material/AccordionDetails";
29
29
  import Ue from "@mui/material/AccordionSummary";
30
30
  import Ve from "@mui/material/CardHeader";
31
31
  import { u as Ye } from "../useDimensions-27p2evRx.mjs";
32
32
  import { C as qe } from "../ConnectionsDrawer-Czp-E0-m.mjs";
33
- import { R as Je } from "../RecurringSettings-D8XKxI2O.mjs";
33
+ import { R as Je } from "../RecurringSettings-BQDQvmSY.mjs";
34
34
  import Qe from "@mui/material/TextField";
35
- import { u as xe } from "../useScreenSize-B6JyS_Lj.mjs";
35
+ import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
36
36
  import { a as Ze } from "../Dialog-CWW597AF.mjs";
37
37
  import { AdapterDateFns as et } from "@mui/x-date-pickers/AdapterDateFnsV3";
38
38
  import { StaticDatePicker as tt } from "@mui/x-date-pickers";
@@ -42,16 +42,15 @@ import oe from "@mui/material/Tab";
42
42
  import nt from "@mui/material/Tabs";
43
43
  import { f as rt } from "../NumberFormatting-CtWHhyBX.mjs";
44
44
  import { T as ne } from "../TabContentContainer-j01JYR_7.mjs";
45
- import it from "@mui/icons-material/FiberManualRecordRounded";
46
- import st from "@mui/lab/Timeline";
47
- import at, { timelineItemClasses as ct } from "@mui/lab/TimelineItem";
48
- import lt from "@mui/lab/TimelineConnector";
49
- import dt from "@mui/lab/TimelineContent";
50
- import pt from "@mui/lab/TimelineDot";
51
- import mt from "@mui/lab/TimelineSeparator";
52
- import { W as ut } from "../WidgetContainer-BG-fdDOf.mjs";
45
+ import it from "@mui/lab/Timeline";
46
+ import st, { timelineItemClasses as at } from "@mui/lab/TimelineItem";
47
+ import ct from "@mui/lab/TimelineConnector";
48
+ import lt from "@mui/lab/TimelineContent";
49
+ import dt from "@mui/lab/TimelineDot";
50
+ import pt from "@mui/lab/TimelineSeparator";
51
+ import { W as mt } from "../WidgetContainer-BG-fdDOf.mjs";
53
52
  var A = /* @__PURE__ */ ((n) => (n.Connections = "connections", n.CreditScore = "credit_score", n.DateOfBirth = "date_of_birth", n.MonthlyIncome = "monthly_income", n))(A || {});
54
- const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(
53
+ const ut = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(
55
54
  Be,
56
55
  {
57
56
  sx: {
@@ -86,10 +85,10 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
86
85
  }
87
86
  )
88
87
  ] }) }),
89
- i < n.length - 1 && /* @__PURE__ */ e(_e, { sx: { color: "divider", ml: 68 } })
88
+ i < n.length - 1 && /* @__PURE__ */ e(ge, { sx: { color: "divider", ml: 68 } })
90
89
  ] }, t.key))
91
90
  }
92
- ) }), _t = ht, le = (n) => n * (180 / Math.PI), ie = (n, o) => [
91
+ ) }), ht = ut, le = (n) => n * (180 / Math.PI), ie = (n, o) => [
93
92
  {
94
93
  description: o.vulnerable_description,
95
94
  max: 25,
@@ -126,7 +125,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
126
125
  GOOD: "#FFC02C",
127
126
  VERY_GOOD: "#29C76B",
128
127
  EXCEPTIONAL: "#008A5A"
129
- }, gt = (n, o, t) => n >= 300 && n < 580 ? {
128
+ }, _t = (n, o, t) => n >= 300 && n < 580 ? {
130
129
  status: t.poor,
131
130
  color: o ? M.POOR : D.POOR
132
131
  } : n >= 580 && n < 670 ? {
@@ -141,7 +140,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
141
140
  } : n >= 800 && n <= 850 ? {
142
141
  status: t.exceptional,
143
142
  color: o ? M.EXCEPTIONAL : D.EXCEPTIONAL
144
- } : { status: t.missing_data }, ft = (n, o, t, i) => {
143
+ } : { status: t.missing_data }, gt = (n, o, t, i) => {
145
144
  const d = n.reduce((r, a) => r + a.value, 0);
146
145
  let l = 0;
147
146
  const s = n.map((r) => {
@@ -153,14 +152,14 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
153
152
  };
154
153
  });
155
154
  return [s[i].startAngle, s[i].endAngle];
156
- }, yt = (n, o, t, i, d) => {
155
+ }, ft = (n, o, t, i, d) => {
157
156
  let l = 0, s = 0;
158
157
  const r = Math.floor(i), a = i - r;
159
158
  return r > t ? (l = n, s = o) : r === t && a > 0 && (l = n, s = d), [l, s];
160
- }, bt = (n, o, t = 0) => {
159
+ }, yt = (n, o, t = 0) => {
161
160
  const i = n * Math.sin(o - t), d = -n * Math.cos(o - t);
162
161
  return [i, d];
163
- }, xt = ({
162
+ }, bt = ({
164
163
  dynamicCopy: n,
165
164
  fallbackLabel: o,
166
165
  icon: t,
@@ -168,18 +167,18 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
168
167
  label: d,
169
168
  value: l
170
169
  }) => {
171
- const s = !!l, r = s ? Ct(i, l) : n && b(n, o) || o;
170
+ const s = !!l, r = s ? xt(i, l) : n && b(n, o) || o;
172
171
  return {
173
- icon: s ? /* @__PURE__ */ e(Oe, {}) : t,
172
+ icon: s ? /* @__PURE__ */ e(De, {}) : t,
174
173
  isComplete: s,
175
174
  key: i,
176
175
  primaryText: d,
177
176
  secondaryText: r
178
177
  };
179
- }, Ct = (n, o) => ({
180
- [A.DateOfBirth]: (i) => he(new Date(Number(i) * 1e3), "MMM d, yyyy"),
178
+ }, xt = (n, o) => ({
179
+ [A.DateOfBirth]: (i) => _e(new Date(Number(i) * 1e3), "MMM d, yyyy"),
181
180
  [A.MonthlyIncome]: (i) => `$${i}`
182
- })[n]?.(o) ?? String(o), de = (n) => n !== null ? Math.round(n * 100) : null, St = ({
181
+ })[n]?.(o) ?? String(o), de = (n) => n !== null ? Math.round(n * 100) : null, Ct = ({
183
182
  dialScoreData: n,
184
183
  dataIndex: o,
185
184
  arcColor: t,
@@ -199,12 +198,12 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
199
198
  { offset: "36.67%", color: _.palette.chartMono.chartMono3 },
200
199
  { offset: "59.72%", color: _.palette.chartMono.chartMono4 },
201
200
  { offset: "83.46%", color: _.palette.chartMono.chartMono5 }
202
- ], [T, v] = ft(
201
+ ], [T, v] = gt(
203
202
  n,
204
203
  d,
205
204
  i,
206
205
  o
207
- ), [L, E] = yt(
206
+ ), [L, E] = ft(
208
207
  T,
209
208
  v,
210
209
  o,
@@ -234,7 +233,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
234
233
  }
235
234
  ) })
236
235
  ] });
237
- }, Ce = ({
236
+ }, Se = ({
238
237
  arcRadius: n = 100,
239
238
  healthScore: o,
240
239
  size: t = "L",
@@ -248,11 +247,11 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
248
247
  footerRightContent: p,
249
248
  isFinacialStrengthGraph: h = !1
250
249
  }) => {
251
- const m = G(), _ = -Math.PI / 1.35, R = Math.PI / 1.35, T = R - _, v = T / (l - d), L = (o - d) * v, E = _ + L + 0.02, K = t !== "SM" ? 0.1 : 0.12, F = n, w = n * (1 - K), O = F * 2.5, k = O / 2, P = O / 2, U = (w + F) / 2, Z = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [ee, ve] = bt(U, E, Z), ke = o / 25, se = {
250
+ const m = G(), _ = -Math.PI / 1.35, R = Math.PI / 1.35, T = R - _, v = T / (l - d), L = (o - d) * v, E = _ + L + 0.02, K = t !== "SM" ? 0.1 : 0.12, F = n, w = n * (1 - K), O = F * 2.5, k = O / 2, P = O / 2, U = (w + F) / 2, Z = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [ee, ke] = yt(U, E, Z), Ae = o / 25, se = {
252
251
  L: { markerSize: 12, healthScoreFontSize: 64 },
253
252
  M: { markerSize: 10, healthScoreFontSize: 48 },
254
253
  SM: { markerSize: 3, healthScoreFontSize: 14 }
255
- }, Ae = a === 0 ? Me : Te;
254
+ }, Ie = a === 0 ? Te : we;
256
255
  return /* @__PURE__ */ u(
257
256
  g,
258
257
  {
@@ -264,7 +263,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
264
263
  },
265
264
  children: [
266
265
  /* @__PURE__ */ e(
267
- Ie,
266
+ Oe,
268
267
  {
269
268
  height: O,
270
269
  margin: { top: 0, right: 0, bottom: 0, left: 0 },
@@ -285,7 +284,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
285
284
  },
286
285
  slots: {
287
286
  pieArc: (ae) => /* @__PURE__ */ e(
288
- St,
287
+ Ct,
289
288
  {
290
289
  arcColor: ae.color,
291
290
  arcRadius: n,
@@ -299,7 +298,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
299
298
  outterArcRadius: F,
300
299
  progressEndAngle: E,
301
300
  totalAngularSpan: T,
302
- unitsPerSegment: ke
301
+ unitsPerSegment: Ae
303
302
  }
304
303
  )
305
304
  },
@@ -313,7 +312,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
313
312
  "circle",
314
313
  {
315
314
  cx: k + ee,
316
- cy: P + ve,
315
+ cy: P + ke,
317
316
  fill: m.palette.common.white,
318
317
  r: se[t].markerSize,
319
318
  stroke: h ? "url(#arcGradient)" : s,
@@ -366,7 +365,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
366
365
  textAlign: "center"
367
366
  },
368
367
  children: typeof a == "number" ? /* @__PURE__ */ u(g, { sx: { flexDirection: "row", alignItems: "center", gap: 4 }, children: [
369
- a > 0 ? /* @__PURE__ */ e(De, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(Ae, { size: 16, sx: { color: "text.secondary" } }),
368
+ a > 0 ? /* @__PURE__ */ e(Me, { size: 16, sx: { color: "success.main" } }) : /* @__PURE__ */ e(Ie, { size: 16, sx: { color: "text.secondary" } }),
370
369
  /* @__PURE__ */ e(
371
370
  y,
372
371
  {
@@ -411,7 +410,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
411
410
  ]
412
411
  }
413
412
  );
414
- }, Se = I(
413
+ }, ve = I(
415
414
  ({ arcRadius: n, size: o = "L", healthScore: t, footerCenterContent: i }) => {
416
415
  const d = [
417
416
  { id: 1, label: "Group A", value: 25 },
@@ -420,7 +419,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
420
419
  { id: 4, label: "Group D", value: 25 }
421
420
  ], { finstrong: l } = S(), s = ie(t, l);
422
421
  return /* @__PURE__ */ e(
423
- Ce,
422
+ Se,
424
423
  {
425
424
  arcRadius: n,
426
425
  dialScoreData: d,
@@ -432,7 +431,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
432
431
  }
433
432
  );
434
433
  }
435
- ), zo = I(
434
+ ), Bo = I(
436
435
  ({
437
436
  arcRadius: n,
438
437
  size: o = "L",
@@ -474,13 +473,13 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
474
473
  }
475
474
  ], { finstrong: c } = S(), { isCopyLoaded: p } = z();
476
475
  if (!p) return /* @__PURE__ */ e(N, {});
477
- const { status: h, color: m = "none" } = gt(
476
+ const { status: h, color: m = "none" } = _t(
478
477
  t,
479
478
  r,
480
479
  c.credit_score_status
481
480
  );
482
481
  return /* @__PURE__ */ e(
483
- Ce,
482
+ Se,
484
483
  {
485
484
  arcRadius: n,
486
485
  dialScoreData: a,
@@ -549,7 +548,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
549
548
  }
550
549
  ),
551
550
  /* @__PURE__ */ e(
552
- be,
551
+ xe,
553
552
  {
554
553
  onClose: () => r(!1),
555
554
  showConnectWidget: s,
@@ -559,7 +558,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
559
558
  ]
560
559
  }
561
560
  );
562
- }, vt = I(() => {
561
+ }, St = I(() => {
563
562
  const n = G(), [o, { width: t }] = Ye(), { finstrong: i } = S(), { isCopyLoaded: d, isInitialized: l } = z(), { healthScore: s, healthScoreChange: r } = $(), a = n.palette.mode === "dark", c = ie(s?.health_score, i);
564
563
  return !d || !l ? /* @__PURE__ */ e(N, {}) : /* @__PURE__ */ u(J, { ref: o, sx: { p: 16 }, children: [
565
564
  /* @__PURE__ */ e(
@@ -589,7 +588,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
589
588
  }
590
589
  ),
591
590
  /* @__PURE__ */ e(g, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(
592
- Se,
591
+ ve,
593
592
  {
594
593
  arcRadius: t <= 323 ? 73 : 154,
595
594
  footerCenterContent: r,
@@ -615,7 +614,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
615
614
  /* @__PURE__ */ e(
616
615
  Ue,
617
616
  {
618
- expandIcon: /* @__PURE__ */ e(we, { size: 20 }),
617
+ expandIcon: /* @__PURE__ */ e(Re, { size: 20 }),
619
618
  sx: {
620
619
  height: 52,
621
620
  p: 0,
@@ -650,8 +649,8 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
650
649
  }
651
650
  )
652
651
  ] });
653
- }), kt = ({ isOpen: n, onClose: o }) => {
654
- const { common: t, finstrong: i } = S(), { isMobile: d } = xe(), { updateUser: l, user: s } = Y(), [r, a] = C.useState(s.credit_score || 0), c = !isNaN(r), p = () => {
652
+ }), vt = ({ isOpen: n, onClose: o }) => {
653
+ const { common: t, finstrong: i } = S(), { isMobile: d } = Ce(), { updateUser: l, user: s } = Y(), [r, a] = C.useState(s.credit_score || 0), c = !isNaN(r), p = () => {
655
654
  o(), setTimeout(() => a(s.credit_score || 0), 300);
656
655
  }, h = () => {
657
656
  !r || r === s.credit_score || l({ ...s, credit_score: r });
@@ -688,7 +687,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
688
687
  )
689
688
  }
690
689
  );
691
- }, At = I(kt), It = ({ isOpen: n, onClose: o }) => {
690
+ }, kt = I(vt), At = ({ isOpen: n, onClose: o }) => {
692
691
  const { finstrong: t } = S(), i = G(), { updateUser: d, user: l } = Y(), [s, r] = C.useState(l.birthday), a = (p) => {
693
692
  r(Math.floor(new Date(p).getTime() / 1e3));
694
693
  };
@@ -737,7 +736,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
737
736
  ) })
738
737
  }
739
738
  );
740
- }, Ot = I(It), Dt = ({ value: n, completeCopy: o }) => /* @__PURE__ */ u(g, { sx: { gap: 8 }, children: [
739
+ }, It = I(At), Ot = ({ value: n, completeCopy: o }) => /* @__PURE__ */ u(g, { sx: { gap: 8 }, children: [
741
740
  /* @__PURE__ */ e(g, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((t, i) => /* @__PURE__ */ e(
742
741
  x,
743
742
  {
@@ -755,8 +754,8 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
755
754
  "% ",
756
755
  o
757
756
  ] })
758
- ] }), Mt = ({ isOpen: n, onClose: o }) => {
759
- const { visibleFinstrongAccounts: t } = ge(), { incomeBudget: i } = fe(), {
757
+ ] }), Dt = ({ isOpen: n, onClose: o }) => {
758
+ const { visibleFinstrongAccounts: t } = fe(), { incomeBudget: i } = ye(), {
760
759
  accounts: d,
761
760
  common: l,
762
761
  finstrong: s
@@ -764,7 +763,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
764
763
  {
765
764
  dynamicCopy: s.add_profile_item,
766
765
  fallbackLabel: s.monthly_income,
767
- icon: /* @__PURE__ */ e(Re, {}),
766
+ icon: /* @__PURE__ */ e(Fe, {}),
768
767
  key: A.MonthlyIncome,
769
768
  label: s.monthly_income,
770
769
  value: i
@@ -772,7 +771,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
772
771
  {
773
772
  dynamicCopy: s.add_profile_item,
774
773
  fallbackLabel: s.date_of_birth,
775
- icon: /* @__PURE__ */ e(Fe, {}),
774
+ icon: /* @__PURE__ */ e(Pe, {}),
776
775
  key: A.DateOfBirth,
777
776
  label: s.date_of_birth,
778
777
  value: r.birthday
@@ -796,7 +795,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
796
795
  t.length > 1 ? s.accounts : s.account
797
796
  ) : void 0
798
797
  }
799
- ].map((m) => xt(m));
798
+ ].map((m) => bt(m));
800
799
  return /* @__PURE__ */ u(V, { isOpen: n, onClose: o, title: s.financial_profile, children: [
801
800
  /* @__PURE__ */ u(g, { sx: { gap: 20, p: 24 }, children: [
802
801
  /* @__PURE__ */ u(g, { sx: { gap: 8 }, children: [
@@ -804,14 +803,14 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
804
803
  /* @__PURE__ */ e(y, { children: s.financial_profile_description })
805
804
  ] }),
806
805
  /* @__PURE__ */ e(
807
- Dt,
806
+ Ot,
808
807
  {
809
808
  completeCopy: s.complete,
810
809
  value: h.reduce((m, _) => m + (_.isComplete ? 1 : 0), 0)
811
810
  }
812
811
  )
813
812
  ] }),
814
- /* @__PURE__ */ e(_t, { list: h, onClickItem: c }),
813
+ /* @__PURE__ */ e(ht, { list: h, onClickItem: c }),
815
814
  /* @__PURE__ */ e(x, { sx: { p: 24 }, children: /* @__PURE__ */ e(
816
815
  Q,
817
816
  {
@@ -829,8 +828,8 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
829
828
  children: /* @__PURE__ */ e(Je, {})
830
829
  }
831
830
  ),
832
- /* @__PURE__ */ e(Ot, { isOpen: a === A.DateOfBirth, onClose: () => c(null) }),
833
- /* @__PURE__ */ e(At, { isOpen: a === A.CreditScore, onClose: () => c(null) }),
831
+ /* @__PURE__ */ e(It, { isOpen: a === A.DateOfBirth, onClose: () => c(null) }),
832
+ /* @__PURE__ */ e(kt, { isOpen: a === A.CreditScore, onClose: () => c(null) }),
834
833
  /* @__PURE__ */ e(
835
834
  qe,
836
835
  {
@@ -840,7 +839,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
840
839
  }
841
840
  )
842
841
  ] });
843
- }, Tt = I(Mt), X = {
842
+ }, Mt = I(Dt), X = {
844
843
  creditScore: {
845
844
  poor: 600,
846
845
  good: 720
@@ -911,11 +910,11 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
911
910
  ] }),
912
911
  /* @__PURE__ */ e(y, { color: "secondary", variant: "subtitle2", children: o })
913
912
  ] }),
914
- /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(Ee, { color: "secondary", name: "chevron_right", size: 24 }) })
913
+ /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(he, { color: "secondary", name: "chevron_right", size: 24 }) })
915
914
  ]
916
915
  }
917
916
  );
918
- }, wt = () => {
917
+ }, Tt = () => {
919
918
  const { healthScore: n } = $(), { finstrong: o } = S(), { key_indicators_spend: t } = o, i = (r) => {
920
919
  const { good: a, poor: c } = X.spendToIncomeRatio;
921
920
  let p = f.MISSING, h = t.ratio_missing_description, m = o.key_indicators_missing;
@@ -962,7 +961,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
962
961
  }
963
962
  )
964
963
  ] });
965
- }, Rt = () => {
964
+ }, wt = () => {
966
965
  const { healthScore: n } = $(), { finstrong: o } = S(), { key_indicators_save: t } = o, i = (r) => {
967
966
  const { good: a, poor: c } = X.daysOfCashOnHand;
968
967
  let p = f.MISSING, h = t.days_of_cash_missing_description, m = o.key_indicators_missing;
@@ -1013,7 +1012,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1013
1012
  }
1014
1013
  )
1015
1014
  ] });
1016
- }, Ft = () => {
1015
+ }, Rt = () => {
1017
1016
  const { healthScore: n } = $(), { finstrong: o } = S(), { key_indicators_borrow: t } = o, { user: i } = Y(), d = (a) => {
1018
1017
  const { good: c, poor: p } = X.debtToIncomeRatio;
1019
1018
  let h = f.MISSING, m = t.manage_debit_missing_description, _ = o.key_indicators_missing;
@@ -1065,7 +1064,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1065
1064
  }
1066
1065
  )
1067
1066
  ] });
1068
- }, Pt = () => {
1067
+ }, Ft = () => {
1069
1068
  const [n, o] = C.useState(0), { finstrong: t } = S();
1070
1069
  return /* @__PURE__ */ u(re, { children: [
1071
1070
  /* @__PURE__ */ u(
@@ -1094,7 +1093,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1094
1093
  oe,
1095
1094
  {
1096
1095
  "aria-controls": "save-details-tabpanel-1",
1097
- icon: /* @__PURE__ */ e(Pe, { sx: { mr: 8 } }),
1096
+ icon: /* @__PURE__ */ e(Ge, { sx: { mr: 8 } }),
1098
1097
  iconPosition: "start",
1099
1098
  id: "save-details-tab-1",
1100
1099
  label: t.key_indicators_save.title,
@@ -1105,7 +1104,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1105
1104
  oe,
1106
1105
  {
1107
1106
  "aria-controls": "borrow-details-tabpanel-2",
1108
- icon: /* @__PURE__ */ e(Ge, { sx: { mr: 8 } }),
1107
+ icon: /* @__PURE__ */ e(Le, { sx: { mr: 8 } }),
1109
1108
  iconPosition: "start",
1110
1109
  id: "borrow-details-tab-2",
1111
1110
  label: t.key_indicators_borrow.title,
@@ -1115,11 +1114,11 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1115
1114
  ]
1116
1115
  }
1117
1116
  ),
1118
- /* @__PURE__ */ e(ne, { index: 0, name: "spend-details", value: n, children: /* @__PURE__ */ e(wt, {}) }),
1119
- /* @__PURE__ */ e(ne, { index: 1, name: "save-details", value: n, children: /* @__PURE__ */ e(Rt, {}) }),
1120
- /* @__PURE__ */ e(ne, { index: 2, name: "borrow-details", value: n, children: /* @__PURE__ */ e(Ft, {}) })
1117
+ /* @__PURE__ */ e(ne, { index: 0, name: "spend-details", value: n, children: /* @__PURE__ */ e(Tt, {}) }),
1118
+ /* @__PURE__ */ e(ne, { index: 1, name: "save-details", value: n, children: /* @__PURE__ */ e(wt, {}) }),
1119
+ /* @__PURE__ */ e(ne, { index: 2, name: "borrow-details", value: n, children: /* @__PURE__ */ e(Rt, {}) })
1121
1120
  ] });
1122
- }, Gt = ({
1121
+ }, Pt = ({
1123
1122
  additionalContent: n,
1124
1123
  children: o,
1125
1124
  description: t,
@@ -1148,22 +1147,22 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1148
1147
  }
1149
1148
  ),
1150
1149
  n && /* @__PURE__ */ e(x, { children: n }),
1151
- /* @__PURE__ */ e(_e, {}),
1150
+ /* @__PURE__ */ e(ge, {}),
1152
1151
  /* @__PURE__ */ u(g, { sx: { p: 24, gap: 24 }, children: [
1153
1152
  o,
1154
1153
  l && /* @__PURE__ */ e(Q, { isDashboard: !0 })
1155
1154
  ] })
1156
1155
  ] }) : /* @__PURE__ */ e(N, {});
1157
- }, Lt = I(Gt), pe = ({
1156
+ }, Gt = I(Pt), pe = ({
1158
1157
  content: n,
1159
1158
  islast: o = !1
1160
- }) => /* @__PURE__ */ u(at, { sx: { minHeight: 0 }, children: [
1161
- /* @__PURE__ */ u(mt, { children: [
1162
- /* @__PURE__ */ e(pt, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
1163
- !o && /* @__PURE__ */ e(lt, { sx: { bgcolor: "divider", width: 0.1 } })
1159
+ }) => /* @__PURE__ */ u(st, { sx: { minHeight: 0 }, children: [
1160
+ /* @__PURE__ */ u(pt, { children: [
1161
+ /* @__PURE__ */ e(dt, { sx: { bgcolor: "divider", borderWidth: 1, p: 3 } }),
1162
+ !o && /* @__PURE__ */ e(ct, { sx: { bgcolor: "divider", width: 0.1 } })
1164
1163
  ] }),
1165
- /* @__PURE__ */ e(dt, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(y, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: n }) })
1166
- ] }), Et = ({ report: n }) => {
1164
+ /* @__PURE__ */ e(lt, { sx: { pb: 16, pl: 12, pr: 0, pt: 5 }, children: /* @__PURE__ */ e(y, { fontSize: 13, fontWeight: 400, variant: "subtitle2", children: n }) })
1165
+ ] }), Lt = ({ report: n }) => {
1167
1166
  const { finstrong: o } = S(), { score_history_drawer_timeline: t } = o, {
1168
1167
  health_score_point_difference: i,
1169
1168
  newer_credit_score: d,
@@ -1173,12 +1172,18 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1173
1172
  older_health_score: a,
1174
1173
  newer_health_score: c,
1175
1174
  newer_score_calculated_at: p
1176
- } = n, h = he(new Date(p), "MMM d"), m = () => i === 0 ? "info.lighter" : i > 0 ? "success.lighter" : "error.lighter", _ = () => i === 0 ? b(t.stayed_at, a) : i > 0 ? t.less_spending : t.more_spending, R = () => {
1175
+ } = n, h = _e(new Date(p), "MMM d"), m = () => i === 0 ? "info.lighter" : i > 0 ? "success.lighter" : "error.lighter", _ = () => i === 0 ? b(t.stayed_at, a) : i > 0 ? t.less_spending : t.more_spending, R = () => {
1177
1176
  if (i === 0) return null;
1178
1177
  const T = i > 0 ? t.up_from : t.down_from, v = b(T, a, c);
1179
1178
  return /* @__PURE__ */ u(re, { children: [
1180
- /* @__PURE__ */ e(it, { sx: { fontSize: 8, mx: 4, p: 1 } }),
1181
- " ",
1179
+ /* @__PURE__ */ e(
1180
+ he,
1181
+ {
1182
+ fill: !0,
1183
+ name: "circle",
1184
+ sx: { color: "text.secondary", fontSize: 8, mx: 4, p: 1 }
1185
+ }
1186
+ ),
1182
1187
  v
1183
1188
  ] });
1184
1189
  };
@@ -1215,10 +1220,10 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1215
1220
  }
1216
1221
  ) }),
1217
1222
  i !== 0 && /* @__PURE__ */ e(x, { sx: { color: "text.secondary", pb: 8, pl: 32, pr: 16, pt: 12 }, children: /* @__PURE__ */ u(
1218
- st,
1223
+ it,
1219
1224
  {
1220
1225
  sx: {
1221
- [`& .${ct.root}:before`]: {
1226
+ [`& .${at.root}:before`]: {
1222
1227
  flex: 0,
1223
1228
  padding: 0
1224
1229
  },
@@ -1251,15 +1256,15 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1251
1256
  }
1252
1257
  ) })
1253
1258
  ] }) });
1254
- }, Wt = I(Et), Bt = ({ isOpen: n, onClose: o }) => {
1259
+ }, Et = I(Lt), Wt = ({ isOpen: n, onClose: o }) => {
1255
1260
  const t = G(), { finstrong: i } = S(), { isCopyLoaded: d, isInitialized: l } = z(), { healthScore: s, healthScoreChangeReports: r, augmentedChartData: a } = $();
1256
1261
  if (!d || !l) return /* @__PURE__ */ e(N, {});
1257
1262
  const c = ie(s.health_score || 0, i), p = r.slice().reverse();
1258
1263
  return /* @__PURE__ */ e(
1259
- Lt,
1264
+ Gt,
1260
1265
  {
1261
1266
  additionalContent: /* @__PURE__ */ e(g, { sx: { pl: 18, backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(
1262
- ye,
1267
+ be,
1263
1268
  {
1264
1269
  axisColor: t.palette.divider,
1265
1270
  baseline: "min",
@@ -1286,7 +1291,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1286
1291
  sx: { backgroundColor: "background.paper", gap: 16, pb: 12, pt: 8, px: 24 },
1287
1292
  children: [
1288
1293
  /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(
1289
- Se,
1294
+ ve,
1290
1295
  {
1291
1296
  arcRadius: 20,
1292
1297
  healthScore: s?.health_score,
@@ -1300,13 +1305,13 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1300
1305
  ]
1301
1306
  }
1302
1307
  ),
1303
- children: /* @__PURE__ */ e(g, { sx: { gap: 16 }, children: p.map((h, m) => /* @__PURE__ */ e(Wt, { report: h }, m)) })
1308
+ children: /* @__PURE__ */ e(g, { sx: { gap: 16 }, children: p.map((h, m) => /* @__PURE__ */ e(Et, { report: h }, m)) })
1304
1309
  }
1305
1310
  );
1306
- }, Ht = I(Bt), zt = ({ onClick: n }) => {
1311
+ }, Bt = I(Wt), Ht = ({ onClick: n }) => {
1307
1312
  const { finstrong: o } = S(), { isCopyLoaded: t } = z();
1308
1313
  return t ? /* @__PURE__ */ u(g, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
1309
- /* @__PURE__ */ e(Le, { size: 48 }),
1314
+ /* @__PURE__ */ e(Ee, { size: 48 }),
1310
1315
  /* @__PURE__ */ u(g, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
1311
1316
  /* @__PURE__ */ e(H, { children: o.missing_data_title }),
1312
1317
  /* @__PURE__ */ e(y, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
@@ -1328,8 +1333,8 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1328
1333
  }
1329
1334
  ) })
1330
1335
  ] }) : /* @__PURE__ */ e(N, {});
1331
- }, $t = I(zt), Nt = ({ onBackClick: n, sx: o }) => {
1332
- const t = G(), { visibleAccounts: i } = ge(), { dateRange: d, isDataLoaded: l, loadBudgetData: s, setTheme: r } = fe(), { reloadCategoryTotals: a } = Ke(), { augmentedChartData: c, calculateHealthScore: p, healthScore: h, loadAugmentedChartData: m } = $(), { finstrong: _, connect: R } = S(), { isCopyLoaded: T, isInitialized: v, selectedAccounts: L, setSelectedAccounts: E } = z(), { isMobile: K } = xe(), [F, w] = C.useState(!1);
1336
+ }, zt = I(Ht), $t = ({ onBackClick: n, sx: o }) => {
1337
+ const t = G(), { visibleAccounts: i } = fe(), { dateRange: d, isDataLoaded: l, loadBudgetData: s, setTheme: r } = ye(), { reloadCategoryTotals: a } = Ke(), { augmentedChartData: c, calculateHealthScore: p, healthScore: h, loadAugmentedChartData: m } = $(), { finstrong: _, connect: R } = S(), { isCopyLoaded: T, isInitialized: v, selectedAccounts: L, setSelectedAccounts: E } = z(), { isMobile: K } = Ce(), [F, w] = C.useState(!1);
1333
1338
  C.useEffect(() => {
1334
1339
  r(t);
1335
1340
  }, []), C.useEffect(() => E(i), [i]), C.useEffect(() => {
@@ -1342,7 +1347,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1342
1347
  const Z = () => {
1343
1348
  }, ee = () => k(!0);
1344
1349
  return /* @__PURE__ */ u(
1345
- ut,
1350
+ mt,
1346
1351
  {
1347
1352
  accountOptions: i,
1348
1353
  actions: [
@@ -1370,7 +1375,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1370
1375
  },
1371
1376
  children: [
1372
1377
  /* @__PURE__ */ u(g, { sx: { gap: 24, width: { md: 432 } }, children: [
1373
- /* @__PURE__ */ e(vt, {}),
1378
+ /* @__PURE__ */ e(St, {}),
1374
1379
  /* @__PURE__ */ e(
1375
1380
  Q,
1376
1381
  {
@@ -1396,7 +1401,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1396
1401
  )
1397
1402
  ] }),
1398
1403
  c.length ? /* @__PURE__ */ e(
1399
- ye,
1404
+ be,
1400
1405
  {
1401
1406
  axisColor: t.palette.divider,
1402
1407
  baseline: "min",
@@ -1419,15 +1424,15 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1419
1424
  title: _.peer_average,
1420
1425
  useCustomMark: !0
1421
1426
  }
1422
- ) : /* @__PURE__ */ e($t, { onClick: () => w(!0) }),
1423
- h.health_score !== null && /* @__PURE__ */ e(Pt, {})
1427
+ ) : /* @__PURE__ */ e(zt, { onClick: () => w(!0) }),
1428
+ h.health_score !== null && /* @__PURE__ */ e(Ft, {})
1424
1429
  ] }) })
1425
1430
  ]
1426
1431
  }
1427
1432
  ),
1428
- /* @__PURE__ */ e(Tt, { isOpen: O, onClose: () => k(!1) }),
1433
+ /* @__PURE__ */ e(Mt, { isOpen: O, onClose: () => k(!1) }),
1429
1434
  /* @__PURE__ */ e(
1430
- be,
1435
+ xe,
1431
1436
  {
1432
1437
  onClose: () => w(!1),
1433
1438
  showConnectWidget: F,
@@ -1435,7 +1440,7 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1435
1440
  }
1436
1441
  ),
1437
1442
  /* @__PURE__ */ e(
1438
- Ht,
1443
+ Bt,
1439
1444
  {
1440
1445
  isOpen: P,
1441
1446
  onClose: () => U(!1)
@@ -1444,12 +1449,12 @@ const ht = ({ list: n, onClickItem: o }) => /* @__PURE__ */ e(x, { sx: { bgcolor
1444
1449
  ]
1445
1450
  }
1446
1451
  );
1447
- }, $o = I(Nt);
1452
+ }, Ho = I($t);
1448
1453
  export {
1449
- zo as CreditScoreGraph,
1450
- Ce as DialScoreCard,
1451
- Se as FinancialStrengthGraph,
1452
- Xo as FinstrongApi,
1453
- jo as FinstrongStore,
1454
- $o as FinstrongWidget
1454
+ Bo as CreditScoreGraph,
1455
+ Se as DialScoreCard,
1456
+ ve as FinancialStrengthGraph,
1457
+ No as FinstrongApi,
1458
+ Ko as FinstrongStore,
1459
+ Ho as FinstrongWidget
1455
1460
  };