@mx-cartographer/experiences 7.2.14-alpha.san3 → 7.2.14-alpha.san4

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.
@@ -12,7 +12,7 @@ import { observer as S } from "mobx-react-lite";
12
12
  import { u as w, b as j, p as Q, z as F, q as Hn, a as kt, d as ke, m as Ye, g as Nn, f as Kn, j as Ve, h as jn, i as Yn } from "../hooks-C41HAxM5.mjs";
13
13
  import { L as J } from "../Loader-DUaFpDGv.mjs";
14
14
  import m from "react";
15
- import z from "@mui/material/Button";
15
+ import $ from "@mui/material/Button";
16
16
  import K from "@mui/material/Card";
17
17
  import { L as Xe } from "../LineChart-Ct9DNmhS.mjs";
18
18
  import { C as Mt } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
@@ -103,7 +103,7 @@ const zo = ({
103
103
  r,
104
104
  h,
105
105
  _
106
- ), M = st.arc().innerRadius(l).outerRadius(d).startAngle(b).endAngle(D).padAngle(0.02).cornerRadius(8), $ = st.arc().innerRadius(l).outerRadius(d).startAngle(g).endAngle(C).padAngle(0.02).cornerRadius(8);
106
+ ), M = st.arc().innerRadius(l).outerRadius(d).startAngle(b).endAngle(D).padAngle(0.02).cornerRadius(8), W = st.arc().innerRadius(l).outerRadius(d).startAngle(g).endAngle(C).padAngle(0.02).cornerRadius(8);
107
107
  return /* @__PURE__ */ a(E, { children: [
108
108
  /* @__PURE__ */ e(
109
109
  "path",
@@ -112,7 +112,7 @@ const zo = ({
112
112
  fill: y ? f.palette.divider : n
113
113
  }
114
114
  ),
115
- y && /* @__PURE__ */ e("path", { d: $({}), fill: "url(#arcGradient)" }),
115
+ y && /* @__PURE__ */ e("path", { d: W({}), fill: "url(#arcGradient)" }),
116
116
  /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
117
117
  "linearGradient",
118
118
  {
@@ -141,7 +141,7 @@ const zo = ({
141
141
  footerRightContent: _,
142
142
  isFinacialStrengthGraph: h = !1
143
143
  }) => {
144
- const y = G(), f = -Math.PI / 1.35, x = Math.PI / 1.35, b = x - f, D = b / (i - s), g = (r - s) * D, C = f + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, $ = t, H = t * (1 - M), O = $ * 2.5, W = O / 2, V = O / 2, ee = (H + $) / 2, pe = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [ue, _e] = An(ee, C, pe), X = r / 25, he = {
144
+ const y = G(), f = -Math.PI / 1.35, x = Math.PI / 1.35, b = x - f, D = b / (i - s), g = (r - s) * D, C = f + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, W = t, H = t * (1 - M), O = W * 2.5, z = O / 2, V = O / 2, ee = (H + W) / 2, pe = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [ue, _e] = An(ee, C, pe), X = r / 25, he = {
145
145
  L: { markerSize: 12, healthScoreFontSize: 64 },
146
146
  M: { markerSize: 10, healthScoreFontSize: 48 },
147
147
  SM: { markerSize: 3, healthScoreFontSize: 14 }
@@ -165,7 +165,7 @@ const zo = ({
165
165
  {
166
166
  data: o,
167
167
  innerRadius: H,
168
- outerRadius: $,
168
+ outerRadius: W,
169
169
  startAngle: Math.round(rt(f)),
170
170
  // Use Math.degrees to convert
171
171
  endAngle: Math.round(rt(x))
@@ -183,13 +183,13 @@ const zo = ({
183
183
  arcColor: Me.color,
184
184
  arcRadius: t,
185
185
  arcStartAngle: f,
186
- centerX: W,
186
+ centerX: z,
187
187
  centerY: V,
188
188
  dataIndex: Me.dataIndex,
189
189
  dialScoreData: o,
190
190
  innerArcRadius: H,
191
191
  isFinacialStrengthGraph: h,
192
- outterArcRadius: $,
192
+ outterArcRadius: W,
193
193
  progressEndAngle: C,
194
194
  totalAngularSpan: b,
195
195
  unitsPerSegment: X
@@ -205,7 +205,7 @@ const zo = ({
205
205
  children: r >= s && r <= i && /* @__PURE__ */ e(
206
206
  "circle",
207
207
  {
208
- cx: W + ue,
208
+ cx: z + ue,
209
209
  cy: V + _e,
210
210
  fill: y.palette.common.white,
211
211
  r: he[n].markerSize,
@@ -221,7 +221,7 @@ const zo = ({
221
221
  sx: {
222
222
  position: "absolute",
223
223
  top: `${V}px`,
224
- left: `${W}px`,
224
+ left: `${z}px`,
225
225
  transform: "translate(-50%, -50%)",
226
226
  textAlign: "center"
227
227
  },
@@ -254,7 +254,7 @@ const zo = ({
254
254
  sx: {
255
255
  position: "absolute",
256
256
  top: `${V * 2 * 0.83}px`,
257
- left: `${W}px`,
257
+ left: `${z}px`,
258
258
  transform: "translate(-50%, -50%)",
259
259
  textAlign: "center"
260
260
  },
@@ -280,7 +280,7 @@ const zo = ({
280
280
  sx: {
281
281
  position: "absolute",
282
282
  top: `${V * 2 * 0.83}px`,
283
- left: `${W - W / 2}px`,
283
+ left: `${z - z / 2}px`,
284
284
  // shift left from center
285
285
  transform: "translate(-50%, -50%)",
286
286
  textAlign: "left"
@@ -294,7 +294,7 @@ const zo = ({
294
294
  sx: {
295
295
  position: "absolute",
296
296
  top: `${V * 2 * 0.83}px`,
297
- left: `${W + W / 2}px`,
297
+ left: `${z + z / 2}px`,
298
298
  transform: "translate(-50%, -50%)",
299
299
  textAlign: "right"
300
300
  },
@@ -434,7 +434,7 @@ const zo = ({
434
434
  }
435
435
  ),
436
436
  /* @__PURE__ */ e(
437
- z,
437
+ $,
438
438
  {
439
439
  endIcon: /* @__PURE__ */ e(Z, {}),
440
440
  onClick: () => d(!0),
@@ -610,7 +610,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
610
610
  size: o ? "M" : "L"
611
611
  }
612
612
  ),
613
- /* @__PURE__ */ e(z, { onClick: () => i(!0), variant: "contained", children: No.updated_score }),
613
+ /* @__PURE__ */ e($, { onClick: () => i(!0), variant: "contained", children: No.updated_score }),
614
614
  /* @__PURE__ */ e(Gt, { isOpen: s, onClose: () => i(!1) }),
615
615
  /* @__PURE__ */ e(Qe, { chartFor: "creditOverTime" })
616
616
  ] });
@@ -791,7 +791,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
791
791
  ] }, b.guid)) }),
792
792
  y.length > 3 && /* @__PURE__ */ a(E, { children: [
793
793
  /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
794
- z,
794
+ $,
795
795
  {
796
796
  endIcon: /* @__PURE__ */ e(Z, {}),
797
797
  onClick: () => d(!0),
@@ -808,7 +808,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
808
808
  ] })
809
809
  ] }) : /* @__PURE__ */ a(E, { children: [
810
810
  /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
811
- z,
811
+ $,
812
812
  {
813
813
  onClick: () => h(!0),
814
814
  size: "small",
@@ -984,7 +984,7 @@ const B = {
984
984
  }
985
985
  )
986
986
  ] }),
987
- /* @__PURE__ */ e(z, { fullWidth: !0, onClick: x, type: "submit", variant: "contained", children: B.calculate })
987
+ /* @__PURE__ */ e($, { fullWidth: !0, onClick: x, type: "submit", variant: "contained", children: B.calculate })
988
988
  ] }) }) });
989
989
  }, nr = S(tr), Ae = {
990
990
  connect_accounts: "Connect Accounts",
@@ -1113,7 +1113,7 @@ const B = {
1113
1113
  zeroState: l = /* @__PURE__ */ e(ro, {})
1114
1114
  }) => {
1115
1115
  const { getCategoryName: d } = Ye(), { onEvent: _ } = Nn(), { categories: h } = w(), { clearExpandedSplits: y, setShowInsights: f, toggleSplit: x } = oo(), b = (C) => {
1116
- const M = t.find(($) => $.guid === C);
1116
+ const M = t.find((W) => W.guid === C);
1117
1117
  if (M?.has_been_split) {
1118
1118
  x(M.guid);
1119
1119
  return;
@@ -1141,7 +1141,7 @@ const B = {
1141
1141
  c && o,
1142
1142
  !c && g.getVirtualItems().length === 0 && l,
1143
1143
  !c && g.getVirtualItems().length > 0 && g.getVirtualItems().map((C) => {
1144
- const M = t[C.index], $ = Ne(C.index, t), H = Ft(C.index, t), O = ut + ($ ? _t : 0);
1144
+ const M = t[C.index], W = Ne(C.index, t), H = Ft(C.index, t), O = ut + (W ? _t : 0);
1145
1145
  return /* @__PURE__ */ a(
1146
1146
  v,
1147
1147
  {
@@ -1152,7 +1152,7 @@ const B = {
1152
1152
  width: "100%"
1153
1153
  },
1154
1154
  children: [
1155
- $ && /* @__PURE__ */ e(Pt, { bgcolor: r, children: Ze(M.date) }),
1155
+ W && /* @__PURE__ */ e(Pt, { bgcolor: r, children: Ze(M.date) }),
1156
1156
  /* @__PURE__ */ e(
1157
1157
  Bt,
1158
1158
  {
@@ -1185,7 +1185,7 @@ const B = {
1185
1185
  const i = G(), { connect: c, finstrong: p } = w(), [l, d] = m.useState(!1), [_, h] = m.useState(!1), y = 3, f = t.length > y, x = t.length - y;
1186
1186
  return !t || t.length === 0 ? /* @__PURE__ */ a(E, { children: [
1187
1187
  /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
1188
- z,
1188
+ $,
1189
1189
  {
1190
1190
  onClick: () => h(!0),
1191
1191
  size: "small",
@@ -1256,7 +1256,7 @@ const B = {
1256
1256
  )) }),
1257
1257
  f && /* @__PURE__ */ a(E, { children: [
1258
1258
  /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
1259
- z,
1259
+ $,
1260
1260
  {
1261
1261
  endIcon: /* @__PURE__ */ e(Z, {}),
1262
1262
  onClick: () => d(!0),
@@ -1574,7 +1574,7 @@ const B = {
1574
1574
  // TODO: Need to add More Transactions functionality
1575
1575
  /* @__PURE__ */ e(We, { transactions: r.income.map((c) => c.transaction) })
1576
1576
  ) : /* @__PURE__ */ e(
1577
- z,
1577
+ $,
1578
1578
  {
1579
1579
  onClick: () => {
1580
1580
  i(!0);
@@ -1613,7 +1613,7 @@ const B = {
1613
1613
  }
1614
1614
  )
1615
1615
  ) : /* @__PURE__ */ e(
1616
- z,
1616
+ $,
1617
1617
  {
1618
1618
  onClick: () => {
1619
1619
  i(!0);
@@ -1736,7 +1736,7 @@ const B = {
1736
1736
  children: [
1737
1737
  /* @__PURE__ */ e(N, { children: n }),
1738
1738
  o && /* @__PURE__ */ e(
1739
- z,
1739
+ $,
1740
1740
  {
1741
1741
  endIcon: /* @__PURE__ */ e(Z, {}),
1742
1742
  onClick: s,
@@ -1813,11 +1813,11 @@ const B = {
1813
1813
  {
1814
1814
  slots: {
1815
1815
  bar: (g) => {
1816
- const { ownerState: C, style: M, ...$ } = g;
1816
+ const { ownerState: C, style: M, ...W } = g;
1817
1817
  return /* @__PURE__ */ e(
1818
1818
  Ar,
1819
1819
  {
1820
- ...$,
1820
+ ...W,
1821
1821
  color: C.color,
1822
1822
  data: h,
1823
1823
  series: {
@@ -2102,7 +2102,7 @@ const B = {
2102
2102
  children: [
2103
2103
  /* @__PURE__ */ e(N, { children: o.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
2104
2104
  _.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
2105
- z,
2105
+ $,
2106
2106
  {
2107
2107
  endIcon: /* @__PURE__ */ e(Z, {}),
2108
2108
  onClick: () => t?.("spending"),
@@ -2510,7 +2510,7 @@ const B = {
2510
2510
  /* @__PURE__ */ e(k, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: r.missing_data_description })
2511
2511
  ] }),
2512
2512
  /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
2513
- z,
2513
+ $,
2514
2514
  {
2515
2515
  endIcon: /* @__PURE__ */ e(Z, {}),
2516
2516
  onClick: t,
@@ -2565,7 +2565,7 @@ const B = {
2565
2565
  )
2566
2566
  ] }),
2567
2567
  /* @__PURE__ */ e(v, { sx: { px: 24 }, children: /* @__PURE__ */ e(
2568
- z,
2568
+ $,
2569
2569
  {
2570
2570
  fullWidth: !0,
2571
2571
  onClick: () => s({ step: T.MonthlyIncome, type: "main" }),
@@ -2681,7 +2681,7 @@ const B = {
2681
2681
  }, ra = ({ isOpen: t, onClose: r }) => {
2682
2682
  const { visibleAccounts: n } = ke(), { calculateHealthScore: o } = F(), { finstrong: s } = w(), { setSelectedAccounts: i } = j(), { addRepeatingTransaction: c, setDateRange: p } = Ve(), { filter: l, setFilter: d, transactions: _ } = jn(), { user: h, userProfile: y, updateUser: f, updateUserProfile: x } = Q(), [b, D] = m.useState(h.credit_score || 0), [g, C] = m.useState(
2683
2683
  ht
2684
- ), [M, $] = m.useState(1), [H, O] = m.useState(Ot.EveryMonth), [W, V] = m.useState([]), [ee, pe] = m.useState(!1), [ue, _e] = m.useState(!1), [X, he] = m.useState(h.birthday), [ae, Me] = m.useState(15), [q, Je] = m.useState("");
2684
+ ), [M, W] = m.useState(1), [H, O] = m.useState(Ot.EveryMonth), [z, V] = m.useState([]), [ee, pe] = m.useState(!1), [ue, _e] = m.useState(!1), [X, he] = m.useState(h.birthday), [ae, Me] = m.useState(15), [q, Je] = m.useState("");
2685
2685
  m.useEffect(() => {
2686
2686
  p({ start: Lt(dt()), end: $t(dt()) });
2687
2687
  }, []), m.useEffect(() => {
@@ -2705,8 +2705,8 @@ const B = {
2705
2705
  })[g.step], [b, g, X, q, h]), ie = n.length > 0, Xt = m.useMemo(() => {
2706
2706
  const { step: A } = g;
2707
2707
  let R = 0;
2708
- return A >= T.MonthlyIncome && ie && R++, A >= T.Birthday && W.length && R++, A >= T.CreditScore && (h.birthday || h.credit_score) && R++, R;
2709
- }, [g.step, ie, W.length, h.birthday, h.credit_score]), qt = (A) => {
2708
+ return A >= T.MonthlyIncome && ie && R++, A >= T.Birthday && z.length && R++, A >= T.CreditScore && (h.birthday || h.credit_score) && R++, R;
2709
+ }, [g.step, ie, z.length, h.birthday, h.credit_score]), qt = (A) => {
2710
2710
  d({
2711
2711
  ...l,
2712
2712
  custom: (R) => A ? So(R, A) : pt(R)
@@ -2724,7 +2724,7 @@ const B = {
2724
2724
  {
2725
2725
  firstDay: M,
2726
2726
  frequency: H,
2727
- incomeTransactions: W,
2727
+ incomeTransactions: z,
2728
2728
  secondDay: ae,
2729
2729
  setCurrentStep: (A) => {
2730
2730
  C(A), V((R) => {
@@ -2733,7 +2733,7 @@ const B = {
2733
2733
  return Ie ? [...R, { ...Ie, firstDay: M, frequency: H, secondDay: ae }] : R;
2734
2734
  });
2735
2735
  },
2736
- setFirstDay: $,
2736
+ setFirstDay: W,
2737
2737
  setFrequency: O,
2738
2738
  setSecondDay: Me,
2739
2739
  transaction: et
@@ -2768,7 +2768,7 @@ const B = {
2768
2768
  }, tt = () => {
2769
2769
  C(ht), pe(!1), Je(""), r();
2770
2770
  }, nt = async () => {
2771
- pe(!0), await en(W), await o(), await x({ ...y, has_completed_finstrong_onboarding: !0 }), tt();
2771
+ pe(!0), await en(z), await o(), await x({ ...y, has_completed_finstrong_onboarding: !0 }), tt();
2772
2772
  }, Zt = () => {
2773
2773
  if (g.step === T.CreditScore) {
2774
2774
  nt();
@@ -2785,7 +2785,7 @@ const B = {
2785
2785
  b && b !== h.credit_score && f({ ...h, credit_score: b }), nt();
2786
2786
  return;
2787
2787
  case T.MonthlyIncome:
2788
- q && W.findIndex(({ guid: ge }) => ge === q) === -1 && V((ge) => [
2788
+ q && z.findIndex(({ guid: ge }) => ge === q) === -1 && V((ge) => [
2789
2789
  ...ge,
2790
2790
  { ...et, firstDay: M, frequency: H, secondDay: ae }
2791
2791
  ]);
@@ -2804,7 +2804,7 @@ const B = {
2804
2804
  C({ step: A, type: "main" });
2805
2805
  return;
2806
2806
  }
2807
- if (A === T.Birthday && W.length) {
2807
+ if (A === T.Birthday && z.length) {
2808
2808
  C({ step: A - 1, type: "detail" });
2809
2809
  return;
2810
2810
  }
@@ -2876,7 +2876,7 @@ const B = {
2876
2876
  ),
2877
2877
  g.type === "main" && /* @__PURE__ */ a(v, { children: [
2878
2878
  me.main,
2879
- nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(z, { fullWidth: !0, onClick: Zt, children: P.do_it_later }) })
2879
+ nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e($, { fullWidth: !0, onClick: Zt, children: P.do_it_later }) })
2880
2880
  ] }),
2881
2881
  g.type === "detail" && me.detail
2882
2882
  ] })
@@ -2917,7 +2917,7 @@ const B = {
2917
2917
  /* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle1", children: Ge.onboarding_subtitle })
2918
2918
  ] })
2919
2919
  ] }),
2920
- /* @__PURE__ */ e(z, { onClick: () => r(!0), variant: "contained", children: Ge.get_started })
2920
+ /* @__PURE__ */ e($, { onClick: () => r(!0), variant: "contained", children: Ge.get_started })
2921
2921
  ]
2922
2922
  }
2923
2923
  ),
@@ -3364,7 +3364,7 @@ const B = {
3364
3364
  Wo,
3365
3365
  {
3366
3366
  action: /* @__PURE__ */ e(
3367
- z,
3367
+ $,
3368
3368
  {
3369
3369
  endIcon: /* @__PURE__ */ e(Z, {}),
3370
3370
  onClick: () => r(!0),
@@ -3464,13 +3464,13 @@ const B = {
3464
3464
  healthScore: h,
3465
3465
  loadAugmentedChartData: y,
3466
3466
  loadMonthlySummaries: f
3467
- } = F(), { finstrong: x, connect: b } = w(), { isCopyLoaded: D, isInitialized: g, selectedAccounts: C, setSelectedAccounts: M } = j(), { loadRepeatingTransactions: $ } = Ve(), { isMobile: H } = Ue(), O = G(), { userProfile: W } = Q(), [V, ee] = m.useState(!1), [pe, ue] = m.useState(!1), [_e, X] = m.useState(!1);
3467
+ } = F(), { finstrong: x, connect: b } = w(), { isCopyLoaded: D, isInitialized: g, selectedAccounts: C, setSelectedAccounts: M } = j(), { loadRepeatingTransactions: W } = Ve(), { isMobile: H } = Ue(), O = G(), { userProfile: z } = Q(), [V, ee] = m.useState(!1), [pe, ue] = m.useState(!1), [_e, X] = m.useState(!1);
3468
3468
  if (m.useEffect(() => {
3469
3469
  p(O);
3470
3470
  }, []), m.useEffect(() => M(o), [o]), m.useEffect(() => {
3471
3471
  g && (_().finally(), y().finally(), f().finally());
3472
3472
  }, [g]), m.useEffect(() => {
3473
- g && (l(C, s.start, s.end), i || (c(), $().finally()));
3473
+ g && (l(C, s.start, s.end), i || (c(), W().finally()));
3474
3474
  }, [s, i, g, C]), !D || !g) return /* @__PURE__ */ e(J, {});
3475
3475
  const he = () => {
3476
3476
  }, ae = () => ee(!0);
@@ -3491,7 +3491,7 @@ const B = {
3491
3491
  sx: r,
3492
3492
  title: x.title,
3493
3493
  children: [
3494
- W.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
3494
+ z.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
3495
3495
  u,
3496
3496
  {
3497
3497
  sx: {
@@ -3517,7 +3517,7 @@ const B = {
3517
3517
  /* @__PURE__ */ a(u, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
3518
3518
  /* @__PURE__ */ e(N, { children: x.key_indicators }),
3519
3519
  /* @__PURE__ */ e(
3520
- z,
3520
+ $,
3521
3521
  {
3522
3522
  endIcon: /* @__PURE__ */ e(Z, {}),
3523
3523
  onClick: () => ue(!0),
@@ -3555,7 +3555,17 @@ const B = {
3555
3555
  }
3556
3556
  ) : /* @__PURE__ */ e(Vr, { onClick: () => X(!0) }),
3557
3557
  h.health_score !== null && /* @__PURE__ */ e(jr, { onPrimaryCtaClick: n })
3558
- ] }) })
3558
+ ] }) }),
3559
+ /* @__PURE__ */ e(
3560
+ $,
3561
+ {
3562
+ sx: { background: "red", width: 100 },
3563
+ onClick: () => {
3564
+ console.log("test"), n?.("trends");
3565
+ },
3566
+ children: "test"
3567
+ }
3568
+ )
3559
3569
  ]
3560
3570
  }
3561
3571
  ) : /* @__PURE__ */ e(ia, {}),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.2.14-alpha.san3",
3
+ "version": "7.2.14-alpha.san4",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",