@mx-cartographer/experiences 5.3.1-alpha.mega10 → 5.3.1-alpha.mega12

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.
package/dist/index.es.js CHANGED
@@ -1624,7 +1624,7 @@ const Ic = (A, t) => {
1624
1624
  selectedIndex: c,
1625
1625
  valueFormatter: d = (f) => `${f}`
1626
1626
  }) => {
1627
- const f = KA(), E = Rc(f), l = n.reduce(lc, []), v = A !== void 0 ? A : l.reduce(Ec, 0) / l.length, u = Math.max(...l), H = Math.min(...l), b = l.reduce(hc, 0), p = u >= 0, y = H < 0, x = xr(p, y, r), w = xr(y, p, r), D = vc(v, u, H, x || w), j = (O) => c === void 0 || O === c ? i : `${i}80`, m = () => /* @__PURE__ */ e(
1627
+ const f = KA(), E = Rc(f), l = n.reduce(lc, []), v = A !== void 0 ? A : l.reduce(Ec, 0) / l.length, u = Math.max(...l), H = Math.min(...l), b = l.reduce(hc, 0), p = u >= 0, y = H < 0, x = xr(p, y, r), w = xr(y, p, r), D = vc(v, u, H, x || w), m = (O) => c === void 0 || O === c ? i : `${i}80`, j = () => /* @__PURE__ */ e(
1628
1628
  yr,
1629
1629
  {
1630
1630
  averageLineHeight: D,
@@ -1638,7 +1638,7 @@ const Ic = (A, t) => {
1638
1638
  );
1639
1639
  return /* @__PURE__ */ s("div", { className: `mx-cmn-bar-chart ${E}`, children: [
1640
1640
  /* @__PURE__ */ s("div", { className: "mx-cmn-chart-container", children: [
1641
- /* @__PURE__ */ e(m, {}),
1641
+ /* @__PURE__ */ e(j, {}),
1642
1642
  n.map((O, T) => /* @__PURE__ */ s(h.Fragment, { children: [
1643
1643
  /* @__PURE__ */ e(
1644
1644
  yr,
@@ -1646,7 +1646,7 @@ const Ic = (A, t) => {
1646
1646
  ariaLabel: O.ariaLabel,
1647
1647
  averageLineHeight: D,
1648
1648
  bottomHeight: w,
1649
- color: j(T),
1649
+ color: m(T),
1650
1650
  index: T,
1651
1651
  onClick: a,
1652
1652
  range: b,
@@ -1658,7 +1658,7 @@ const Ic = (A, t) => {
1658
1658
  xAxisLabel: O.label
1659
1659
  }
1660
1660
  ),
1661
- /* @__PURE__ */ e(m, {})
1661
+ /* @__PURE__ */ e(j, {})
1662
1662
  ] }, `column-${T}`))
1663
1663
  ] }),
1664
1664
  /* @__PURE__ */ e(sc, { color: i, labelAverage: o, labelMain: I })
@@ -1793,9 +1793,9 @@ const Cc = ({
1793
1793
  const u = h.useMemo(() => {
1794
1794
  const x = ua({ start: QA(c), end: BA(c) }), w = [];
1795
1795
  for (let D = 0; D < x.length; D++) {
1796
- const j = x[D], m = Ra({ start: j, end: We(j, 6) }), O = [];
1797
- for (let T = 0; T < m.length; T++)
1798
- O.push(m[T]);
1796
+ const m = x[D], j = Ra({ start: m, end: We(m, 6) }), O = [];
1797
+ for (let T = 0; T < j.length; T++)
1798
+ O.push(j[T]);
1799
1799
  w.push(O);
1800
1800
  }
1801
1801
  return w;
@@ -1826,7 +1826,7 @@ const Cc = ({
1826
1826
  }
1827
1827
  ),
1828
1828
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: u[0].map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(R, { bold: !0, variant: "Small", children: le(x, "EEEEE") }) }, w)) }),
1829
- u.map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: x.map((D, j) => /* @__PURE__ */ e(
1829
+ u.map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: x.map((D, m) => /* @__PURE__ */ e(
1830
1830
  bc,
1831
1831
  {
1832
1832
  beginDate: f,
@@ -1835,7 +1835,7 @@ const Cc = ({
1835
1835
  isInMonth: Pa(D, c),
1836
1836
  onClick: H
1837
1837
  },
1838
- j
1838
+ m
1839
1839
  )) }, `w-${w}`)),
1840
1840
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e($, { onClick: b, size: "small", variant: "text", children: A.today }) })
1841
1841
  ] }) });
@@ -2028,15 +2028,15 @@ const Cc = ({
2028
2028
  valueFormatterString: v = "0,0",
2029
2029
  width: u
2030
2030
  }) => {
2031
- const H = oe(), b = i.flat().map((j) => j.x), p = i.flat().map((j) => j.y), y = Math.round(p.reduce((j, m) => m + j, 0) / p.length), x = Math.floor(Math.min(...p) / 100) * 100, w = Math.ceil(Math.max(...p) / 100) * 100, D = i.map((j, m) => ({
2031
+ const H = oe(), b = i.flat().map((m) => m.x), p = i.flat().map((m) => m.y), y = Math.round(p.reduce((m, j) => j + m, 0) / p.length), x = Math.floor(Math.min(...p) / 100) * 100, w = Math.ceil(Math.max(...p) / 100) * 100, D = i.map((m, j) => ({
2032
2032
  type: c ? "bar" : "line",
2033
2033
  curve: "linear",
2034
- color: c ? H.palette.chart?.chart6 : t[m] ?? H.palette.primary.main,
2035
- data: j.map((O) => O.y),
2034
+ color: c ? H.palette.chart?.chart6 : t[j] ?? H.palette.primary.main,
2035
+ data: m.map((O) => O.y),
2036
2036
  area: d,
2037
2037
  baseline: A,
2038
2038
  showMark: !0,
2039
- label: r[m],
2039
+ label: r[j],
2040
2040
  valueFormatter: (O) => M(O || 0, v)
2041
2041
  }));
2042
2042
  return /* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
@@ -2068,7 +2068,7 @@ const Cc = ({
2068
2068
  max: w,
2069
2069
  color: [H.palette.background.paper, t[0] ?? H.palette.primary.main]
2070
2070
  } : void 0,
2071
- valueFormatter: (j) => M(j, v)
2071
+ valueFormatter: (m) => M(m, v)
2072
2072
  }
2073
2073
  ],
2074
2074
  children: [
@@ -2077,7 +2077,7 @@ const Cc = ({
2077
2077
  xa,
2078
2078
  {
2079
2079
  slots: d && D.length < 2 ? {
2080
- line: (j) => /* @__PURE__ */ e(Dc, { ...j, lineColor: t[0] ?? H.palette.primary.main })
2080
+ line: (m) => /* @__PURE__ */ e(Dc, { ...m, lineColor: t[0] ?? H.palette.primary.main })
2081
2081
  } : void 0
2082
2082
  }
2083
2083
  ),
@@ -2085,14 +2085,14 @@ const Cc = ({
2085
2085
  Da,
2086
2086
  {
2087
2087
  slots: l ? {
2088
- mark: (j) => /* @__PURE__ */ e(
2088
+ mark: (m) => /* @__PURE__ */ e(
2089
2089
  xc,
2090
2090
  {
2091
2091
  handlers: I,
2092
2092
  showLabel: E,
2093
- style: a?.(j.dataIndex) ?? {},
2093
+ style: a?.(m.dataIndex) ?? {},
2094
2094
  yData: p,
2095
- ...j
2095
+ ...m
2096
2096
  }
2097
2097
  )
2098
2098
  } : void 0
@@ -2101,7 +2101,7 @@ const Cc = ({
2101
2101
  /* @__PURE__ */ e(
2102
2102
  ja,
2103
2103
  {
2104
- barLabel: (j) => Number(j.value) > 0 ? `$${j.value}` : null,
2104
+ barLabel: (m) => Number(m.value) > 0 ? `$${m.value}` : null,
2105
2105
  borderRadius: 10
2106
2106
  }
2107
2107
  ),
@@ -2332,7 +2332,7 @@ const Cc = ({
2332
2332
  hoveredAreaData: null,
2333
2333
  isAreaHovered: !1,
2334
2334
  cursorPos: { x: 0, y: 0 }
2335
- }), { hoveredSeriesId: H, hoveredAreaData: b, isAreaHovered: p, cursorPos: y } = v, x = p && H && b, w = !x, D = [...r, ...o], j = D[0]?.dataset.length ?? 0, m = D.flatMap((J) => J.dataset.map((wA) => wA.x)), O = D.flatMap((J) => J.dataset.map((wA) => wA.y)), T = r[0]?.dataset?.map(
2335
+ }), { hoveredSeriesId: H, hoveredAreaData: b, isAreaHovered: p, cursorPos: y } = v, x = p && H && b, w = !x, D = [...r, ...o], m = D[0]?.dataset.length ?? 0, j = D.flatMap((J) => J.dataset.map((wA) => wA.x)), O = D.flatMap((J) => J.dataset.map((wA) => wA.y)), T = r[0]?.dataset?.map(
2336
2336
  (J, wA) => r.reduce((VA, Ze) => VA + Ze.dataset[wA]?.y || 0, 0)
2337
2337
  ) ?? [0], tA = Math.max(...T), Y = Math.max(
2338
2338
  ...o.flatMap((J) => J.dataset.map((wA) => wA.y))
@@ -2391,7 +2391,7 @@ const Cc = ({
2391
2391
  }), t?.(VA);
2392
2392
  else if (Zi) {
2393
2393
  const Vt = Ze?.data.map((Ji, _i) => ({
2394
- x: m[_i],
2394
+ x: j[_i],
2395
2395
  y: Ji
2396
2396
  })) ?? [];
2397
2397
  u({
@@ -2465,7 +2465,7 @@ const Cc = ({
2465
2465
  Mc,
2466
2466
  {
2467
2467
  categoryGuids: WA(H),
2468
- xData: m,
2468
+ xData: j,
2469
2469
  ...J
2470
2470
  }
2471
2471
  ) : null
@@ -2477,10 +2477,10 @@ const Cc = ({
2477
2477
  width: a,
2478
2478
  xAxis: [
2479
2479
  {
2480
- data: m,
2480
+ data: j,
2481
2481
  scaleType: "time",
2482
2482
  valueFormatter: (J) => nA(J, AA.MONTH_SHORT_YEAR),
2483
- tickNumber: j
2483
+ tickNumber: m
2484
2484
  // How many ticks to show on the x-axis
2485
2485
  }
2486
2486
  ],
@@ -2712,7 +2712,7 @@ const Cc = ({
2712
2712
  toolTipContent: o = "",
2713
2713
  variant: I = "outlined"
2714
2714
  }) => {
2715
- const a = RA(), c = a.palette.mode === "dark", { isMobile: d } = zA(), [f, E] = h.useState(n), [l, v] = h.useState(i.dateRangePickerCopy.dateRangeThisMonth), [u, H] = h.useState(f), [b, p] = h.useState(!1), [y, x] = h.useState(!0), [w, D] = h.useState(6), j = {
2715
+ const a = RA(), c = a.palette.mode === "dark", { isMobile: d } = zA(), [f, E] = h.useState(n), [l, v] = h.useState(i.dateRangePickerCopy.dateRangeThisMonth), [u, H] = h.useState(f), [b, p] = h.useState(!1), [y, x] = h.useState(!0), [w, D] = h.useState(6), m = {
2716
2716
  buttons: [
2717
2717
  { label: "3M", value: 3 },
2718
2718
  { label: "6M", value: 6 },
@@ -2729,9 +2729,9 @@ const Cc = ({
2729
2729
  h.useEffect(() => {
2730
2730
  H(n);
2731
2731
  }, [n]), h.useEffect(() => {
2732
- (I === "timeframebuttons" || I === "timeframetabs") && A.onRangeChanged(m());
2732
+ (I === "timeframebuttons" || I === "timeframetabs") && A.onRangeChanged(j());
2733
2733
  }, [w]);
2734
- const m = () => {
2734
+ const j = () => {
2735
2735
  const Y = BA(zt());
2736
2736
  return [BA(Ne(Y, w)), Y];
2737
2737
  }, O = (Y) => {
@@ -2851,7 +2851,7 @@ const Cc = ({
2851
2851
  exclusive: !0,
2852
2852
  orientation: "horizontal",
2853
2853
  value: w,
2854
- children: j.buttons.map((Y) => /* @__PURE__ */ e(
2854
+ children: m.buttons.map((Y) => /* @__PURE__ */ e(
2855
2855
  gn,
2856
2856
  {
2857
2857
  onClick: () => tA(Y.value),
@@ -2893,7 +2893,7 @@ const Cc = ({
2893
2893
  textColor: "primary",
2894
2894
  value: w,
2895
2895
  variant: "fullWidth",
2896
- children: j.tabs.map((Y) => /* @__PURE__ */ e(
2896
+ children: m.tabs.map((Y) => /* @__PURE__ */ e(
2897
2897
  GA,
2898
2898
  {
2899
2899
  label: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: Y.label }),
@@ -3153,7 +3153,7 @@ const pt = ({
3153
3153
  sx: E = {},
3154
3154
  title: l = ""
3155
3155
  }) => {
3156
- const [v, { height: u, width: H }] = oI(), { onEvent: b } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: j, setSelectedAccountGuids: m } = pA(), { common: O } = X(), T = () => {
3156
+ const [v, { height: u, width: H }] = oI(), { onEvent: b } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: m, setSelectedAccountGuids: j } = pA(), { common: O } = X(), T = () => {
3157
3157
  c && (c(), b(V.WIDGET_BACK_CLICK));
3158
3158
  }, tA = {
3159
3159
  accountFilterOptionsCopy: {
@@ -3225,9 +3225,9 @@ const pt = ({
3225
3225
  accounts: A,
3226
3226
  copy: tA,
3227
3227
  onFilterClick: (uA) => {
3228
- m(uA), d?.();
3228
+ j(uA), d?.();
3229
3229
  },
3230
- selectedAccountGuids: j,
3230
+ selectedAccountGuids: m,
3231
3231
  showAccountNumbers: !1,
3232
3232
  variant: "text"
3233
3233
  }
@@ -3385,7 +3385,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3385
3385
  }) => {
3386
3386
  const [l, v] = h.useState(""), { common: u } = X(), H = r || u.currency_input, b = KA(), p = Wc(b), y = /^[0-9]*$/, x = /^(\d)*(\,)?([0-9]{1,2})?$/, w = /^(\d)*(\.)?([0-9]{1,2})?$/;
3387
3387
  let D;
3388
- const j = h.useRef(Fa());
3388
+ const m = h.useRef(Fa());
3389
3389
  if (A)
3390
3390
  switch (_s()) {
3391
3391
  case ui.CAD:
@@ -3398,9 +3398,9 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3398
3398
  else
3399
3399
  D = y;
3400
3400
  h.useEffect(() => {
3401
- m(i);
3401
+ j(i);
3402
3402
  }, [i]);
3403
- const m = (O) => {
3403
+ const j = (O) => {
3404
3404
  !n && (O === "" || O === "." || O === ",") ? (v(""), f?.(!1)) : Number(O) < c ? (v(
3405
3405
  z(
3406
3406
  H.error_amount_must_be_equal_to,
@@ -3430,8 +3430,8 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
3430
3430
  pattern: "[0-9]*"
3431
3431
  },
3432
3432
  label: a,
3433
- name: `currency-input-${j.current}`,
3434
- onChange: (O) => m(O.target.value),
3433
+ name: `currency-input-${m.current}`,
3434
+ onChange: (O) => j(O.target.value),
3435
3435
  value: i,
3436
3436
  ...E
3437
3437
  }
@@ -5168,51 +5168,51 @@ const Pe = () => {
5168
5168
  width: a = "100%",
5169
5169
  zeroState: c = /* @__PURE__ */ e(Df, {})
5170
5170
  }) => {
5171
- const { isLoading: d, sortedTransactions: f } = PA(), E = [...f.filter((y) => !y.accountIsClosed)];
5172
- console.log(r, [...E]);
5173
- const { setShowInsights: l, toggleSplit: v } = Pe(), { onEvent: u } = K(), H = (y) => {
5174
- const x = [...E].find((w) => w.guid === y);
5175
- if (x?.has_been_split) {
5176
- v(x.guid);
5171
+ const { isLoading: d, sortedTransactions: f } = PA();
5172
+ console.log(r, JSON.parse(JSON.stringify(f)));
5173
+ const { setShowInsights: E, toggleSplit: l } = Pe(), { onEvent: v } = K(), u = (p) => {
5174
+ const y = f.find((x) => x.guid === p);
5175
+ if (y?.has_been_split) {
5176
+ l(y.guid);
5177
5177
  return;
5178
5178
  }
5179
- u(V.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5180
- account_guid: x?.account_guid,
5181
- transaction_guid: y
5182
- }), n?.(y);
5183
- }, b = h.useRef(null), p = mo({
5184
- count: [...E].length,
5185
- getScrollElement: () => b.current,
5186
- estimateSize: (y) => Tr + (Nr(y, [...E]) ? Yr : 0),
5179
+ v(V.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
5180
+ account_guid: y?.account_guid,
5181
+ transaction_guid: p
5182
+ }), n?.(p);
5183
+ }, H = h.useRef(null), b = mo({
5184
+ count: f.length,
5185
+ getScrollElement: () => H.current,
5186
+ estimateSize: (p) => Tr + (Nr(p, f) ? Yr : 0),
5187
5187
  overscan: 5
5188
5188
  });
5189
- return h.useEffect(() => p.measure(), [E]), h.useEffect(() => l(o), [o]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: b, width: a, children: /* @__PURE__ */ s(
5189
+ return h.useEffect(() => b.measure(), [f]), h.useEffect(() => E(o), [o]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: H, width: a, children: /* @__PURE__ */ s(
5190
5190
  L,
5191
5191
  {
5192
- height: p.getVirtualItems().length === 0 ? "auto" : p.getTotalSize(),
5192
+ height: b.getVirtualItems().length === 0 ? "auto" : b.getTotalSize(),
5193
5193
  position: "relative",
5194
5194
  width: "100%",
5195
5195
  children: [
5196
5196
  (d || I) && i,
5197
- !d && !I && p.getVirtualItems().length === 0 && c,
5198
- !d && !I && p.getVirtualItems().length > 0 && p.getVirtualItems().map((y) => {
5199
- const x = [...E][y.index], w = Nr(y.index, [...E]), D = jf(y.index, [...E]), j = Tr + (w ? Yr : 0);
5197
+ !d && !I && b.getVirtualItems().length === 0 && c,
5198
+ !d && !I && b.getVirtualItems().length > 0 && b.getVirtualItems().map((p) => {
5199
+ const y = f[p.index], x = Nr(p.index, f), w = jf(p.index, f), D = Tr + (x ? Yr : 0);
5200
5200
  return /* @__PURE__ */ s(
5201
5201
  L,
5202
5202
  {
5203
5203
  sx: {
5204
- height: j,
5204
+ height: D,
5205
5205
  position: "absolute",
5206
- transform: `translateY(${y.start}px)`,
5206
+ transform: `translateY(${p.start}px)`,
5207
5207
  width: "100%"
5208
5208
  },
5209
5209
  children: [
5210
- w && /* @__PURE__ */ e(Sn, { bgcolor: A, children: Mi(x.date) }),
5211
- /* @__PURE__ */ e(Bn, { onClick: H, transaction: x }),
5212
- /* @__PURE__ */ e(G, { sx: { ml: D ? 24 : 0 } })
5210
+ x && /* @__PURE__ */ e(Sn, { bgcolor: A, children: Mi(y.date) }),
5211
+ /* @__PURE__ */ e(Bn, { onClick: u, transaction: y }),
5212
+ /* @__PURE__ */ e(G, { sx: { ml: w ? 24 : 0 } })
5213
5213
  ]
5214
5214
  },
5215
- x.guid
5215
+ y.guid
5216
5216
  );
5217
5217
  })
5218
5218
  ]
@@ -6507,9 +6507,9 @@ const EI = ({ transaction: A }) => {
6507
6507
  }), E(!0);
6508
6508
  }, D = async () => {
6509
6509
  t(S.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...A, has_been_split: !0 }, u), E(!1);
6510
- }, j = async () => {
6511
- t(S.ON_TRANSACTION_SPLIT_CANCEL_CLICK), H([{ ...c }, { ...d }]), E(!1);
6512
6510
  }, m = async () => {
6511
+ t(S.ON_TRANSACTION_SPLIT_CANCEL_CLICK), H([{ ...c }, { ...d }]), E(!1);
6512
+ }, j = async () => {
6513
6513
  t(V.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
6514
6514
  transaction_guid: A.guid
6515
6515
  });
@@ -6537,7 +6537,7 @@ const EI = ({ transaction: A }) => {
6537
6537
  ariaLabelClose: r.close_aria,
6538
6538
  isOpen: f,
6539
6539
  isPrimaryDisabled: O,
6540
- onClose: j,
6540
+ onClose: m,
6541
6541
  onPrimaryAction: D,
6542
6542
  primaryText: r.save_button,
6543
6543
  secondaryText: r.cancel_button,
@@ -6566,7 +6566,7 @@ const EI = ({ transaction: A }) => {
6566
6566
  onClose: () => {
6567
6567
  I(!1), v(!1);
6568
6568
  },
6569
- onPrimaryAction: m,
6569
+ onPrimaryAction: j,
6570
6570
  onSecondaryAction: () => {
6571
6571
  t(S.ON_TRANSACTION_UNSPLIT_CANCEL);
6572
6572
  },
@@ -7155,7 +7155,7 @@ const EI = ({ transaction: A }) => {
7155
7155
  tags: p,
7156
7156
  transactions: y,
7157
7157
  updateTransaction: x
7158
- } = PA(), { common: w, transactions: D } = X(), { userProfile: j } = Ue(), { onEvent: m } = K(), {
7158
+ } = PA(), { common: w, transactions: D } = X(), { userProfile: m } = Ue(), { onEvent: j } = K(), {
7159
7159
  displayedDateRange: O,
7160
7160
  isInitialized: T,
7161
7161
  selectedAccountGuids: tA,
@@ -7170,7 +7170,7 @@ const EI = ({ transaction: A }) => {
7170
7170
  iA(kA, nr), b({
7171
7171
  dateRange: { start: kA, end: nr },
7172
7172
  accounts: Y.map((ra) => ra.guid)
7173
- }), Ke(!0), m(V.TRANSACTIONS_VIEW);
7173
+ }), Ke(!0), j(V.TRANSACTIONS_VIEW);
7174
7174
  }, []), h.useEffect(() => {
7175
7175
  JA && (b({
7176
7176
  ...u,
@@ -7189,18 +7189,18 @@ const EI = ({ transaction: A }) => {
7189
7189
  f(kA), b({
7190
7190
  ...u,
7191
7191
  searchTerm: kA
7192
- }), m(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
7192
+ }), j(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
7193
7193
  }, Ki = () => {
7194
- cI(y, p), m(V.TRANSACTIONS_CLICK_EXPORT);
7194
+ cI(y, p), j(V.TRANSACTIONS_CLICK_EXPORT);
7195
7195
  }, Zi = () => {
7196
7196
  Yt.length > 0 ? (l({
7197
7197
  ...sI,
7198
7198
  date: gA(fA()),
7199
- user_guid: j?.user_guid || ""
7199
+ user_guid: m?.user_guid || ""
7200
7200
  }), uA(
7201
7201
  "addTransaction"
7202
7202
  /* AddTransaction */
7203
- ), m(V.TRANSACTIONS_CLICK_ADD)) : (fe(!0), m(V.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7203
+ ), j(V.TRANSACTIONS_CLICK_ADD)) : (fe(!0), j(V.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
7204
7204
  }, Vt = async () => {
7205
7205
  wA && await v(a), uA("");
7206
7206
  }, Ji = () => {
@@ -7227,7 +7227,7 @@ const EI = ({ transaction: A }) => {
7227
7227
  calendarActions: {
7228
7228
  onRangeChanged: VA
7229
7229
  },
7230
- onAccountsFilterClick: () => m(V.ACCOUNTS_CLICK_FILTER),
7230
+ onAccountsFilterClick: () => j(V.ACCOUNTS_CLICK_FILTER),
7231
7231
  onBackClick: A,
7232
7232
  sx: n,
7233
7233
  title: D.transactions_title,
@@ -7261,7 +7261,7 @@ const EI = ({ transaction: A }) => {
7261
7261
  jA(kA), uA(
7262
7262
  "transaction"
7263
7263
  /* Transaction */
7264
- ), m(V.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: kA });
7264
+ ), j(V.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: kA });
7265
7265
  }
7266
7266
  }
7267
7267
  )
@@ -7501,10 +7501,10 @@ const EI = ({ transaction: A }) => {
7501
7501
  });
7502
7502
  }, []), h.useEffect(() => {
7503
7503
  if (p && A.sequenceGuid) {
7504
- const D = I.filter((j) => j.sequenceGuid === A.sequenceGuid).map((j) => j.transactionGuid);
7504
+ const D = I.filter((m) => m.sequenceGuid === A.sequenceGuid).map((m) => m.transactionGuid);
7505
7505
  c({
7506
7506
  ...a,
7507
- custom: (j) => !!D.find((m) => j.guid === m)
7507
+ custom: (m) => !!D.find((j) => m.guid === j)
7508
7508
  });
7509
7509
  } else !p && A.scheduledPaymentGuid && c({
7510
7510
  ...a,
@@ -7940,7 +7940,7 @@ const EI = ({ transaction: A }) => {
7940
7940
  onAddActivity: i = () => null
7941
7941
  }) => {
7942
7942
  const { recurring: n } = X(), { addCashflowEvent: r, addCashflowSequence: o, addScheduledPayment: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(U.EveryMonth), [b, p] = h.useState(null), y = h.useMemo(
7943
- () => d.find((j) => j.guid === l),
7943
+ () => d.find((m) => m.guid === l),
7944
7944
  [l]
7945
7945
  ), x = () => {
7946
7946
  E(!0), c(A ? { ...a, custom: ii } : { ...a, custom: Pn });
@@ -7950,14 +7950,14 @@ const EI = ({ transaction: A }) => {
7950
7950
  return;
7951
7951
  }
7952
7952
  if (A) {
7953
- const j = bI(y, u, b), m = await o(j);
7954
- if (m) {
7955
- const O = HI(m, y);
7953
+ const m = bI(y, u, b), j = await o(m);
7954
+ if (j) {
7955
+ const O = HI(j, y);
7956
7956
  await r(O);
7957
7957
  }
7958
7958
  } else {
7959
- const j = AE(y, u, b);
7960
- await I(j, y);
7959
+ const m = AE(y, u, b);
7960
+ await I(m, y);
7961
7961
  }
7962
7962
  D();
7963
7963
  }, D = () => {
@@ -7983,13 +7983,13 @@ const EI = ({ transaction: A }) => {
7983
7983
  zI,
7984
7984
  {
7985
7985
  description: A ? n.add_income_description : n.add_expense_description,
7986
- onSearch: (j) => {
7986
+ onSearch: (m) => {
7987
7987
  c({
7988
7988
  ...a,
7989
- custom: (m) => A ? j ? gI(m, j) : ii(m) : j ? iE(m, j) : Pn(m)
7989
+ custom: (j) => A ? m ? gI(j, m) : ii(j) : m ? iE(j, m) : Pn(j)
7990
7990
  });
7991
7991
  },
7992
- onSelected: (j) => v(j)
7992
+ onSelected: (m) => v(m)
7993
7993
  }
7994
7994
  )
7995
7995
  }
@@ -8516,7 +8516,7 @@ const EI = ({ transaction: A }) => {
8516
8516
  selectedDayActivities: a,
8517
8517
  setSelectedDay: c,
8518
8518
  upcomingActivities: d
8519
- } = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(en), u = o.filter(en), H = r.filter(en), b = v.filter(di).reduce(Ut, 0), p = u.filter(di).reduce(Ut, 0), y = H.filter(di).reduce(Ut, 0), x = v.filter(di).length, w = v.filter(An).reduce(Ut, 0), D = u.filter(An).reduce(Ut, 0), j = v.filter(An).length, m = (tA, Y) => {
8519
+ } = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(en), u = o.filter(en), H = r.filter(en), b = v.filter(di).reduce(Ut, 0), p = u.filter(di).reduce(Ut, 0), y = H.filter(di).reduce(Ut, 0), x = v.filter(di).length, w = v.filter(An).reduce(Ut, 0), D = u.filter(An).reduce(Ut, 0), m = v.filter(An).length, j = (tA, Y) => {
8520
8520
  E(Y);
8521
8521
  }, O = (tA) => {
8522
8522
  l(V.RECURRING_ACTIVITY_CLICK_UPCOMING, {
@@ -8545,7 +8545,7 @@ const EI = ({ transaction: A }) => {
8545
8545
  expected: w,
8546
8546
  paid: D,
8547
8547
  title: A.deposits,
8548
- total: j
8548
+ total: m
8549
8549
  }
8550
8550
  ),
8551
8551
  !i && !t && /* @__PURE__ */ e(
@@ -8557,7 +8557,7 @@ const EI = ({ transaction: A }) => {
8557
8557
  }
8558
8558
  ),
8559
8559
  (i || t) && /* @__PURE__ */ s(L, { children: [
8560
- /* @__PURE__ */ s(Se, { onChange: m, value: f, variant: "fullWidth", children: [
8560
+ /* @__PURE__ */ s(Se, { onChange: j, value: f, variant: "fullWidth", children: [
8561
8561
  /* @__PURE__ */ e(
8562
8562
  GA,
8563
8563
  {
@@ -9684,20 +9684,20 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9684
9684
  transform: rotate(360deg);
9685
9685
  }
9686
9686
  `, Ah = () => {
9687
- const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Nn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H, b] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D, j] = Fe(1), [m, O] = Fe([]), [T, tA] = Fe(""), Y = h.useMemo(
9687
+ const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Nn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H, b] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D, m] = Fe(1), [j, O] = Fe([]), [T, tA] = Fe(""), Y = h.useMemo(
9688
9688
  () => E.find((cA) => cA.guid === T),
9689
9689
  [T]
9690
9690
  ), iA = !!i.length, oA = async () => {
9691
- j(2), c(
9691
+ m(2), c(
9692
9692
  // Beginning of the month, 90 days before today
9693
9693
  QA(Ve(fA(), 90)),
9694
9694
  fA()
9695
- ), f({ ...d, custom: ii }), j(3);
9695
+ ), f({ ...d, custom: ii }), m(3);
9696
9696
  }, sA = async () => {
9697
- if (!(m.length < 1)) {
9697
+ if (!(j.length < 1)) {
9698
9698
  y(!0);
9699
- for (let cA = 0; cA < m.length; cA++) {
9700
- const jA = m[cA], WA = bI(
9699
+ for (let cA = 0; cA < j.length; cA++) {
9700
+ const jA = j[cA], WA = bI(
9701
9701
  jA,
9702
9702
  jA.frequency,
9703
9703
  jA.nextDate
@@ -9709,7 +9709,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9709
9709
  }
9710
9710
  o();
9711
9711
  }
9712
- }, uA = !Y && v || !Y && m.length < 1;
9712
+ }, uA = !Y && v || !Y && j.length < 1;
9713
9713
  return /* @__PURE__ */ s(
9714
9714
  L,
9715
9715
  {
@@ -9751,13 +9751,13 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9751
9751
  children: [
9752
9752
  /* @__PURE__ */ e(it, { pb: 12, children: n.add_income_title }),
9753
9753
  /* @__PURE__ */ e(HA, { mb: 24, children: n.add_income_description }),
9754
- m.length > 0 && !Y && /* @__PURE__ */ s(Z, { children: [
9755
- /* @__PURE__ */ e(rA, { children: m.map((cA, jA) => /* @__PURE__ */ s(h.Fragment, { children: [
9754
+ j.length > 0 && !Y && /* @__PURE__ */ s(Z, { children: [
9755
+ /* @__PURE__ */ e(rA, { children: j.map((cA, jA) => /* @__PURE__ */ s(h.Fragment, { children: [
9756
9756
  /* @__PURE__ */ e(Sn, { bgcolor: "background.paper", children: Mi(
9757
9757
  gA(cA.nextDate || cA.date)
9758
9758
  ) }),
9759
9759
  /* @__PURE__ */ e(Bn, { transaction: cA }),
9760
- jA !== m.length - 1 && /* @__PURE__ */ e(G, {})
9760
+ jA !== j.length - 1 && /* @__PURE__ */ e(G, {})
9761
9761
  ] }, cA.guid)) }),
9762
9762
  /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", children: [
9763
9763
  /* @__PURE__ */ e(G, { sx: { flexGrow: 1 } }),
@@ -9804,7 +9804,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9804
9804
  {
9805
9805
  "aria-disabled": !Y || !x,
9806
9806
  onClick: () => {
9807
- const cA = [...m];
9807
+ const cA = [...j];
9808
9808
  cA.push({ ...Y, nextDate: x, frequency: H }), O(cA), tA("");
9809
9809
  },
9810
9810
  variant: "contained",
@@ -9823,11 +9823,11 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
9823
9823
  )
9824
9824
  ] })
9825
9825
  ] }),
9826
- m.length > 0 && !Y && /* @__PURE__ */ s(P, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9826
+ j.length > 0 && !Y && /* @__PURE__ */ s(P, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
9827
9827
  /* @__PURE__ */ e(
9828
9828
  $,
9829
9829
  {
9830
- "aria-disabled": m.length < 1 || p,
9830
+ "aria-disabled": j.length < 1 || p,
9831
9831
  onClick: sA,
9832
9832
  startIcon: p ? /* @__PURE__ */ e(
9833
9833
  q,
@@ -10608,26 +10608,26 @@ const mI = ({
10608
10608
  )
10609
10609
  ].sort((w, D) => w - D).map((w) => new Date(w)), E = d.map((w) => {
10610
10610
  const D = new Map(w.dataset.map((O) => [new Date(O.x).getTime(), O.y]));
10611
- let j = D.get(f[0].getTime()) ?? 0;
10612
- const m = f.map((O) => {
10613
- const T = D.get(O.getTime()) ?? j;
10614
- return j = T, { x: O, y: T };
10611
+ let m = D.get(f[0].getTime()) ?? 0;
10612
+ const j = f.map((O) => {
10613
+ const T = D.get(O.getTime()) ?? m;
10614
+ return m = T, { x: O, y: T };
10615
10615
  });
10616
- return { ...w, dataset: m };
10616
+ return { ...w, dataset: j };
10617
10617
  }), l = E.reduce(
10618
10618
  (w, D) => w + (D.dataset[0]?.y ?? 0),
10619
10619
  0
10620
10620
  ), v = f.map((w, D) => {
10621
- const j = D / (f.length - 1), m = l * (1 - j);
10622
- return { x: w, y: m };
10621
+ const m = D / (f.length - 1), j = l * (1 - m);
10622
+ return { x: w, y: j };
10623
10623
  }), u = Math.ceil(l / 100) * 100, H = f, b = E.map((w, D) => {
10624
- const j = 1 - D / E.length * 0.5, m = ph(Xh, j);
10624
+ const m = 1 - D / E.length * 0.5, j = ph(Xh, m);
10625
10625
  return {
10626
10626
  id: `debt-${D}`,
10627
10627
  guid: w.guid,
10628
10628
  label: w.name,
10629
10629
  data: w.dataset.map((O) => O.y),
10630
- color: m,
10630
+ color: j,
10631
10631
  curve: "linear",
10632
10632
  type: "line",
10633
10633
  area: !0,
@@ -10655,11 +10655,11 @@ const mI = ({
10655
10655
  height: t,
10656
10656
  onAreaClick: (w, D) => {
10657
10657
  o?.();
10658
- const j = b.find((m) => m.id === D.seriesId);
10659
- c(V.DEBTS_CLICK_CHART_AREA, { account_guid: j?.guid });
10658
+ const m = b.find((j) => j.id === D.seriesId);
10659
+ c(V.DEBTS_CLICK_CHART_AREA, { account_guid: m?.guid });
10660
10660
  },
10661
10661
  onHighlightChange: (w) => {
10662
- const D = b.find((j) => j.id === w?.seriesId)?.guid;
10662
+ const D = b.find((m) => m.id === w?.seriesId)?.guid;
10663
10663
  I?.(D ?? "");
10664
10664
  },
10665
10665
  series: b,
@@ -11542,10 +11542,10 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11542
11542
  }
11543
11543
  );
11544
11544
  }), tl = ({ onBackClick: A, sx: t }) => {
11545
- const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState(!1), [c, d] = h.useState(""), { isDesktop: f, isMobile: E } = zA(), { debts: l } = X(), { onEvent: v } = K(), { isInitialized: u, setSelectedAccounts: H } = pA(), { setSelectedAccount: b } = Xe(), { selectedDebtPriority: p, setSelectedDebtChartData: y } = ke(), { accounts: x } = CA(), { loadGoals: w, monthlyCashFlowProfile: D } = FA(), { debts: j } = Ni(), m = h.useMemo(() => {
11545
+ const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState(!1), [c, d] = h.useState(""), { isDesktop: f, isMobile: E } = zA(), { debts: l } = X(), { onEvent: v } = K(), { isInitialized: u, setSelectedAccounts: H } = pA(), { setSelectedAccount: b } = Xe(), { selectedDebtPriority: p, setSelectedDebtChartData: y } = ke(), { accounts: x } = CA(), { loadGoals: w, monthlyCashFlowProfile: D } = FA(), { debts: m } = Ni(), j = h.useMemo(() => {
11546
11546
  const oA = D?.extra_payment ?? 0;
11547
- return Al(j, p, oA);
11548
- }, [j, p, D]);
11547
+ return Al(m, p, oA);
11548
+ }, [m, p, D]);
11549
11549
  h.useEffect(() => {
11550
11550
  H(x), v(V.DEBTS_VIEW);
11551
11551
  }, []), h.useEffect(() => {
@@ -11554,7 +11554,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11554
11554
  u && w().finally();
11555
11555
  }, [u]);
11556
11556
  const O = (oA) => d(oA), T = () => {
11557
- const oA = x.find((uA) => uA.guid === c), sA = m.find((uA) => uA.guid === c);
11557
+ const oA = x.find((uA) => uA.guid === c), sA = j.find((uA) => uA.guid === c);
11558
11558
  oA && b(oA), sA && y(sA), n(!0);
11559
11559
  }, tA = () => v(V.DEBTS_CLICK_FILTER), Y = () => {
11560
11560
  a(!0), v(V.DEBTS_CLICK_SNOWBALL_CTA);
@@ -11587,7 +11587,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11587
11587
  /* @__PURE__ */ e(
11588
11588
  mI,
11589
11589
  {
11590
- debts: m,
11590
+ debts: j,
11591
11591
  height: E ? 250 : void 0,
11592
11592
  hoveredDebtGuid: c,
11593
11593
  onClickArea: T,
@@ -11598,7 +11598,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11598
11598
  /* @__PURE__ */ e(
11599
11599
  ah,
11600
11600
  {
11601
- debts: m,
11601
+ debts: j,
11602
11602
  onClickCta: Y,
11603
11603
  sx: { mb: E ? "0px" : "64px" }
11604
11604
  }
@@ -11609,7 +11609,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
11609
11609
  /* @__PURE__ */ e(P, { sx: { mx: E ? "-24px" : 0 }, children: /* @__PURE__ */ e(
11610
11610
  Zh,
11611
11611
  {
11612
- debts: m,
11612
+ debts: j,
11613
11613
  hoveredDebtGuid: c,
11614
11614
  onClickRow: T,
11615
11615
  onHoverRow: O
@@ -12608,17 +12608,17 @@ const cl = (A, t) => {
12608
12608
  u ? (y = () => x(), p = i.save_button) : H && (y = () => D(), p = t.mark_as_complete_button);
12609
12609
  const x = async () => {
12610
12610
  if (a) {
12611
- const j = a.track_type;
12612
- j !== B.RETIREMENT_TRACK ? await n(a) : j === B.RETIREMENT_TRACK && await r({ ...a, target_amount: a.amount }), c(t.alert_goal_added), d(void 0), j && A?.(j);
12611
+ const m = a.track_type;
12612
+ m !== B.RETIREMENT_TRACK ? await n(a) : m === B.RETIREMENT_TRACK && await r({ ...a, target_amount: a.amount }), c(t.alert_goal_added), d(void 0), m && A?.(m);
12613
12613
  }
12614
12614
  }, w = async () => {
12615
12615
  a && (a.track_type !== B.RETIREMENT_TRACK ? await o(a.guid) : a.track_type === B.RETIREMENT_TRACK && await I(a), c(t.alert_goal_deleted), d(void 0));
12616
12616
  }, D = async () => {
12617
- const j = {
12617
+ const m = {
12618
12618
  ...a,
12619
12619
  has_been_spent: !0
12620
12620
  };
12621
- await f(j), c(t.alert_goal_completed), d(void 0);
12621
+ await f(m), c(t.alert_goal_completed), d(void 0);
12622
12622
  };
12623
12623
  return /* @__PURE__ */ s(P, { children: [
12624
12624
  /* @__PURE__ */ e(
@@ -12680,10 +12680,10 @@ const cl = (A, t) => {
12680
12680
  ]
12681
12681
  }
12682
12682
  ), jP = C(({ onBackClick: A, sx: t }) => {
12683
- const { onEvent: i } = K(), { isMobile: n } = zA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: I } = pA(), { goals: a, common: c } = X(), { alert: d, goals: f, loadGoals: E, monthlyCashFlowProfile: l, setAlert: v, retirmentGoals: u } = FA(), [H, b] = h.useState(0), [p, y] = h.useState(!1), x = l?.amount_allocated_for_savings_goals || 0, w = l?.amount_allocated_for_debt_goals || 0, D = l?.amount_allocated_for_retirement_goals || 0, j = z(
12683
+ const { onEvent: i } = K(), { isMobile: n } = zA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: I } = pA(), { goals: a, common: c } = X(), { alert: d, goals: f, loadGoals: E, monthlyCashFlowProfile: l, setAlert: v, retirmentGoals: u } = FA(), [H, b] = h.useState(0), [p, y] = h.useState(!1), x = l?.amount_allocated_for_savings_goals || 0, w = l?.amount_allocated_for_debt_goals || 0, D = l?.amount_allocated_for_retirement_goals || 0, m = z(
12684
12684
  n ? a.tab_subtitle_mobile : a.tab_subtitle,
12685
12685
  M(x, "0,0")
12686
- ), m = z(
12686
+ ), j = z(
12687
12687
  n ? a.tab_subtitle_mobile : a.tab_subtitle,
12688
12688
  M(w, "0,0")
12689
12689
  ), O = z(
@@ -12735,14 +12735,14 @@ const cl = (A, t) => {
12735
12735
  GA,
12736
12736
  {
12737
12737
  disabled: iA,
12738
- label: /* @__PURE__ */ e(tn, { subtitle: j, title: a.tab_saving_title })
12738
+ label: /* @__PURE__ */ e(tn, { subtitle: m, title: a.tab_saving_title })
12739
12739
  }
12740
12740
  ),
12741
12741
  /* @__PURE__ */ e(
12742
12742
  GA,
12743
12743
  {
12744
12744
  disabled: iA,
12745
- label: /* @__PURE__ */ e(tn, { subtitle: m, title: a.tab_debt_title })
12745
+ label: /* @__PURE__ */ e(tn, { subtitle: j, title: a.tab_debt_title })
12746
12746
  }
12747
12747
  ),
12748
12748
  /* @__PURE__ */ e(
@@ -13824,7 +13824,7 @@ const Sl = ({
13824
13824
  selectedData: v,
13825
13825
  setHoveredData: u,
13826
13826
  setSelectedData: H
13827
- } = Lc(), { isMobile: b } = zA(), { onEvent: p } = K(), [y, x] = h.useState(!1), [w, D] = h.useState(6), [j, m] = h.useState(!1), [O, T] = h.useState(!1), [tA, Y] = h.useState(!1), iA = async () => {
13827
+ } = Lc(), { isMobile: b } = zA(), { onEvent: p } = K(), [y, x] = h.useState(!1), [w, D] = h.useState(6), [m, j] = h.useState(!1), [O, T] = h.useState(!1), [tA, Y] = h.useState(!1), iA = async () => {
13828
13828
  await E(i), await f(w), x(!0);
13829
13829
  };
13830
13830
  h.useEffect(() => {
@@ -13837,7 +13837,7 @@ const Sl = ({
13837
13837
  p(V.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: w + "M" }), f(w);
13838
13838
  }, [w]);
13839
13839
  const oA = (Ie, bA) => {
13840
- H(bA), Ie.currentTarget instanceof HTMLDivElement && m(!0);
13840
+ H(bA), Ie.currentTarget instanceof HTMLDivElement && j(!0);
13841
13841
  }, sA = (Ie) => {
13842
13842
  u(Ie);
13843
13843
  }, uA = () => {
@@ -13908,8 +13908,8 @@ const Sl = ({
13908
13908
  IA,
13909
13909
  {
13910
13910
  ariaLabelClose: "Close",
13911
- isOpen: j,
13912
- onClose: () => m(!1),
13911
+ isOpen: m,
13912
+ onClose: () => j(!1),
13913
13913
  shouldShowHeaderBorders: !1,
13914
13914
  shouldShowHeaderShadow: !0,
13915
13915
  title: o.gains_and_losses,
@@ -17317,37 +17317,37 @@ const u9 = ({
17317
17317
  isOpen: !1,
17318
17318
  topic: "",
17319
17319
  type: void 0
17320
- }), b = zv.map((m) => ({
17321
- ...m,
17322
- title: A.help_by_category_list[m.guid].label,
17323
- topics: m.topics.map(({ type: O }, T) => ({
17320
+ }), b = zv.map((j) => ({
17321
+ ...j,
17322
+ title: A.help_by_category_list[j.guid].label,
17323
+ topics: j.topics.map(({ type: O }, T) => ({
17324
17324
  type: O,
17325
- label: A.help_by_category_list[m.guid].topics[T]
17325
+ label: A.help_by_category_list[j.guid].topics[T]
17326
17326
  }))
17327
- })), p = Object.keys(A.popular_topics_list).map((m, O) => ({
17328
- name: A.popular_topics_list[m],
17327
+ })), p = Object.keys(A.popular_topics_list).map((j, O) => ({
17328
+ name: A.popular_topics_list[j],
17329
17329
  type: Cv[O].type
17330
17330
  })), y = () => {
17331
17331
  d(""), H({ isOpen: !1, topic: "", type: void 0 });
17332
- }, x = (m) => {
17332
+ }, x = (j) => {
17333
17333
  a.email && r({
17334
17334
  email: a.email,
17335
- message: c ? `Institution: ${c}, ${m}` : m,
17335
+ message: c ? `Institution: ${c}, ${j}` : j,
17336
17336
  title: u.topic || "Contact Support"
17337
17337
  });
17338
- }, w = (m, O) => {
17339
- O === "other" ? v(!0) : H({ isOpen: !0, topic: m, type: O });
17338
+ }, w = (j, O) => {
17339
+ O === "other" ? v(!0) : H({ isOpen: !0, topic: j, type: O });
17340
17340
  }, D = () => {
17341
17341
  I(""), E(!1), v(!1), y();
17342
- }, j = (m) => {
17342
+ }, m = (j) => {
17343
17343
  if (!a.email) {
17344
17344
  I(A.request_support_email_not_exists_message, "error");
17345
17345
  return;
17346
17346
  }
17347
17347
  r({
17348
17348
  email: a.email,
17349
- message: `Institution Website: ${m.institutionWebsite}${m.institutionLoginPage ? ` Institution Login Page: ${m.institutionLoginPage}` : ""} `,
17350
- title: `Institution Request: ${m.institutionName}`
17349
+ message: `Institution Website: ${j.institutionWebsite}${j.institutionLoginPage ? ` Institution Login Page: ${j.institutionLoginPage}` : ""} `,
17350
+ title: `Institution Request: ${j.institutionName}`
17351
17351
  });
17352
17352
  };
17353
17353
  return /* @__PURE__ */ e(IA, { isOpen: t, onClose: i, title: A.request_support, children: o ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ s(h.Fragment, { children: [
@@ -17427,7 +17427,7 @@ const u9 = ({
17427
17427
  copy: A,
17428
17428
  isOpen: l,
17429
17429
  onClose: () => v(!1),
17430
- onSave: j
17430
+ onSave: m
17431
17431
  }
17432
17432
  ),
17433
17433
  /* @__PURE__ */ e(
@@ -17435,8 +17435,8 @@ const u9 = ({
17435
17435
  {
17436
17436
  copy: A,
17437
17437
  isOpen: u.isOpen,
17438
- onClick: (m) => {
17439
- d(m), u.type === "internal" && E(!0);
17438
+ onClick: (j) => {
17439
+ d(j), u.type === "internal" && E(!0);
17440
17440
  },
17441
17441
  onClose: y,
17442
17442
  topic: u.topic
@@ -17644,7 +17644,7 @@ const u9 = ({
17644
17644
  )
17645
17645
  ] });
17646
17646
  }), Yv = () => {
17647
- const { common: A, settings: t } = X(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = zA(), { updateUser: I } = ge(), { user: a } = Ue(), [c, d] = h.useState(a.first_name), [f, E] = h.useState(a.last_name), [l, v] = h.useState(a.email), [u, H] = h.useState(a.phone), [b, p] = h.useState(a.postal_code), [y, x] = h.useState(a.credit_score), [w, D] = h.useState(yA(a.birthday ?? 0)), j = l && !a.email_is_verified, m = u && !a.phone_is_verified, O = async () => {
17647
+ const { common: A, settings: t } = X(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = zA(), { updateUser: I } = ge(), { user: a } = Ue(), [c, d] = h.useState(a.first_name), [f, E] = h.useState(a.last_name), [l, v] = h.useState(a.email), [u, H] = h.useState(a.phone), [b, p] = h.useState(a.postal_code), [y, x] = h.useState(a.credit_score), [w, D] = h.useState(yA(a.birthday ?? 0)), m = l && !a.email_is_verified, j = u && !a.phone_is_verified, O = async () => {
17648
17648
  const T = {
17649
17649
  ...a,
17650
17650
  first_name: c,
@@ -17699,7 +17699,7 @@ const u9 = ({
17699
17699
  }
17700
17700
  ),
17701
17701
  /* @__PURE__ */ s(P, { direction: n ? "column" : "row", children: [
17702
- /* @__PURE__ */ s(P, { sx: { mb: j ? 20 : 44, mr: n ? 0 : 24 }, children: [
17702
+ /* @__PURE__ */ s(P, { sx: { mb: m ? 20 : 44, mr: n ? 0 : 24 }, children: [
17703
17703
  /* @__PURE__ */ e(
17704
17704
  $A,
17705
17705
  {
@@ -17708,9 +17708,9 @@ const u9 = ({
17708
17708
  onChange: (T) => v(T.target.value)
17709
17709
  }
17710
17710
  ),
17711
- j && /* @__PURE__ */ e(Mv, {})
17711
+ m && /* @__PURE__ */ e(Mv, {})
17712
17712
  ] }),
17713
- /* @__PURE__ */ s(P, { sx: { mb: m ? 20 : 44 }, children: [
17713
+ /* @__PURE__ */ s(P, { sx: { mb: j ? 20 : 44 }, children: [
17714
17714
  /* @__PURE__ */ e(
17715
17715
  $A,
17716
17716
  {
@@ -17720,7 +17720,7 @@ const u9 = ({
17720
17720
  type: "tel"
17721
17721
  }
17722
17722
  ),
17723
- m && /* @__PURE__ */ e(Tv, {})
17723
+ j && /* @__PURE__ */ e(Tv, {})
17724
17724
  ] })
17725
17725
  ] }),
17726
17726
  /* @__PURE__ */ s(P, { direction: n ? "column" : "row", spacing: n ? 44 : 24, sx: { mb: 44 }, children: [
@@ -20471,21 +20471,21 @@ const SR = ({
20471
20471
  ] });
20472
20472
  }), ZR = C(() => {
20473
20473
  const A = RA(), { onEvent: t } = K(), { accounts: i } = CA(), { budgets: n, common: r, recurring: o } = X(), { incomeCategories: I, spendCategories: a } = qA(), { detailedBudgets: c, totalBudgeted: d } = te(), { projectedIncome: f } = ZA(), { setFilter: E } = PA(), [l, v] = h.useState(!1), [u, H] = h.useMemo(() => {
20474
- const x = a.reduce((m, O) => m + O.totalAmount, 0);
20474
+ const x = a.reduce((j, O) => j + O.totalAmount, 0);
20475
20475
  let w = x / d;
20476
20476
  w > 1 && (w = 1);
20477
20477
  let D = A.palette.success.main;
20478
20478
  w > 0.8 && w < 1 ? D = A.palette.warning.main : w >= 1 && (D = A.palette.error.main);
20479
- const j = [
20479
+ const m = [
20480
20480
  {
20481
20481
  color: D,
20482
20482
  percentage: `${w}`
20483
20483
  }
20484
20484
  ];
20485
- return [x, j];
20485
+ return [x, m];
20486
20486
  }, [c, a]), [b, p] = h.useMemo(() => {
20487
20487
  const x = Math.abs(
20488
- I.reduce((j, m) => j + m.totalAmount, 0)
20488
+ I.reduce((m, j) => m + j.totalAmount, 0)
20489
20489
  );
20490
20490
  let w = x / f;
20491
20491
  w > 1 && (w = 1);
@@ -20925,7 +20925,7 @@ const SR = ({
20925
20925
  o && !I && (y(`${o.amount}`), l(!0), f({
20926
20926
  accounts: A,
20927
20927
  dateRange: n,
20928
- custom: (j) => j.category_guid === o.category_guid || j.top_level_category_guid === o.category_guid
20928
+ custom: (m) => m.category_guid === o.category_guid || m.top_level_category_guid === o.category_guid
20929
20929
  }));
20930
20930
  }, [o]);
20931
20931
  const x = async () => {
@@ -20992,13 +20992,13 @@ const SR = ({
20992
20992
  )
20993
20993
  ] });
20994
20994
  }), vo = 480, VP = C(({ onBackClick: A, sx: t }) => {
20995
- const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme: b } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D, j] = h.useState(!1), [m, O] = h.useState(!1);
20995
+ const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme: b } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D, m] = h.useState(!1), [j, O] = h.useState(!1);
20996
20996
  h.useEffect(() => {
20997
20997
  b(i), f(r), d(l.start, l.end), n(V.BUDGETS_VIEW);
20998
20998
  }, []), h.useEffect(() => {
20999
20999
  f(r);
21000
21000
  }, [r]), h.useEffect(() => {
21001
- a && (w(c, l.start, l.end).finally(), D || (p().finally(), v().finally(() => j(!0))));
21001
+ a && (w(c, l.start, l.end).finally(), D || (p().finally(), v().finally(() => m(!0))));
21002
21002
  }, [a, c, l]);
21003
21003
  const T = (sA) => {
21004
21004
  u({ start: sA[0] || /* @__PURE__ */ new Date(), end: sA[1] || /* @__PURE__ */ new Date() });
@@ -21056,7 +21056,7 @@ const SR = ({
21056
21056
  IA,
21057
21057
  {
21058
21058
  ariaLabelClose: I.close_aria,
21059
- isOpen: m,
21059
+ isOpen: j,
21060
21060
  onClose: () => O(!1),
21061
21061
  title: o.add_new_title,
21062
21062
  children: /* @__PURE__ */ e(e3, { onRecalculateBudgets: iA })
@@ -21431,7 +21431,7 @@ const si = h.createContext(null), u3 = ({
21431
21431
  h.useEffect(() => {
21432
21432
  H && H <= 325 && y(3);
21433
21433
  }, [H]);
21434
- const { cardStyle: x, linkTextStyle: w } = E, D = u ? x : { border: "none", boxShadow: "none", ...x }, j = /* @__PURE__ */ e(
21434
+ const { cardStyle: x, linkTextStyle: w } = E, D = u ? x : { border: "none", boxShadow: "none", ...x }, m = /* @__PURE__ */ e(
21435
21435
  HA,
21436
21436
  {
21437
21437
  className: "mx-micro-card-description",
@@ -21496,18 +21496,18 @@ const si = h.createContext(null), u3 = ({
21496
21496
  rt,
21497
21497
  {
21498
21498
  avatar: f && I,
21499
- subheader: c && j,
21499
+ subheader: c && m,
21500
21500
  sx: { color: l.headerColor, p: 0 },
21501
21501
  title: v,
21502
21502
  titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
21503
21503
  }
21504
21504
  ),
21505
- /* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: !c && j }),
21505
+ /* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: !c && m }),
21506
21506
  !!t && /* @__PURE__ */ e(Qs, { sx: { padding: 0 }, children: /* @__PURE__ */ e(
21507
21507
  L,
21508
21508
  {
21509
- sx: (m) => ({
21510
- color: l.buttonColor ? l.buttonColor : m.palette.primary.main,
21509
+ sx: (j) => ({
21510
+ color: l.buttonColor ? l.buttonColor : j.palette.primary.main,
21511
21511
  // TODO: Per Cameron the theme package in @mxenabled/mxui will be getting a big update and this will be theme.palette.primary_main
21512
21512
  fontSize: 14,
21513
21513
  fontWeight: "bold",
@@ -22567,13 +22567,13 @@ const si = h.createContext(null), u3 = ({
22567
22567
  top: 0,
22568
22568
  behavior: "smooth"
22569
22569
  });
22570
- }, j = () => {
22570
+ }, m = () => {
22571
22571
  w(xe.ON_CAROUSEL_BACK_CLICK), l.current && l.current.scrollTo({
22572
22572
  left: (l.current.offsetWidth + 8) * (Math.floor(v / (l.current.offsetWidth + 8)) - 1),
22573
22573
  top: 0,
22574
22574
  behavior: "smooth"
22575
22575
  });
22576
- }, m = () => {
22576
+ }, j = () => {
22577
22577
  l.current && u(l.current.scrollLeft);
22578
22578
  }, O = () => {
22579
22579
  if (!p || !H) return;
@@ -22603,7 +22603,7 @@ const si = h.createContext(null), u3 = ({
22603
22603
  "div",
22604
22604
  {
22605
22605
  className: "mx-insights-micro-carousel-container",
22606
- onScroll: m,
22606
+ onScroll: j,
22607
22607
  onTouchEnd: O,
22608
22608
  onTouchMove: T,
22609
22609
  onTouchStart: tA,
@@ -22646,7 +22646,7 @@ const si = h.createContext(null), u3 = ({
22646
22646
  currentBeatIndex: iA,
22647
22647
  numBeats: A.length + 1,
22648
22648
  onNextClick: D,
22649
- onPreviousClick: j,
22649
+ onPreviousClick: m,
22650
22650
  scrollRightBoundary: oA,
22651
22651
  scrollX: v
22652
22652
  }
@@ -22905,12 +22905,12 @@ const si = h.createContext(null), u3 = ({
22905
22905
  variant: x,
22906
22906
  widthOverrides: w
22907
22907
  }) => {
22908
- const [D, j] = Fe("STANDARD"), [m, O] = Fe(!1), T = Ic([c], Je), tA = ac([d], Je);
22908
+ const [D, m] = Fe("STANDARD"), [j, O] = Fe(!1), T = Ic([c], Je), tA = ac([d], Je);
22909
22909
  h.useEffect(() => {
22910
22910
  Je.isInitialized || Je.initialize(r, b, I);
22911
22911
  }, [r, b, I, Je.isInitialized]), h.useEffect(() => {
22912
22912
  const oA = window.innerHeight;
22913
- oA < 180 ? j("STANDARD") : oA >= 180 && oA < 200 ? j("LARGE") : oA >= 200 && oA < 248 ? j("XLARGE") : oA >= 248 && j("XXLARGE");
22913
+ oA < 180 ? m("STANDARD") : oA >= 180 && oA < 200 ? m("LARGE") : oA >= 200 && oA < 248 ? m("XLARGE") : oA >= 248 && m("XXLARGE");
22914
22914
  }, [window.innerHeight]), h.useEffect(() => {
22915
22915
  O(!A && Je.isInitialized);
22916
22916
  }, [A, Je.isInitialized]);
@@ -22934,7 +22934,7 @@ const si = h.createContext(null), u3 = ({
22934
22934
  /* @__PURE__ */ e(Gs, {}),
22935
22935
  /* @__PURE__ */ e(u3, { onEvent: T, onPageview: tA, store: Je, children: /* @__PURE__ */ s(G3, { heightOverrides: o, widthOverrides: w, children: [
22936
22936
  (A || !Je.isInitialized) && /* @__PURE__ */ e(M3, {}),
22937
- m && v && /* @__PURE__ */ e(
22937
+ j && v && /* @__PURE__ */ e(
22938
22938
  q3,
22939
22939
  {
22940
22940
  clientColorScheme: i,
@@ -22943,7 +22943,7 @@ const si = h.createContext(null), u3 = ({
22943
22943
  widthOverrides: w
22944
22944
  }
22945
22945
  ),
22946
- m && !!t.length && /* @__PURE__ */ e(
22946
+ j && !!t.length && /* @__PURE__ */ e(
22947
22947
  O3,
22948
22948
  {
22949
22949
  beats: t,
@@ -22953,8 +22953,8 @@ const si = h.createContext(null), u3 = ({
22953
22953
  ...Y
22954
22954
  }
22955
22955
  ),
22956
- m && !t.length && y && /* @__PURE__ */ e(ea, { clientColorScheme: i, ...iA }),
22957
- m && !t.length && !y && /* @__PURE__ */ e(ta, { ...iA })
22956
+ j && !t.length && y && /* @__PURE__ */ e(ea, { clientColorScheme: i, ...iA }),
22957
+ j && !t.length && !y && /* @__PURE__ */ e(ta, { ...iA })
22958
22958
  ] }) })
22959
22959
  ] })
22960
22960
  );
@@ -23419,9 +23419,9 @@ const si = h.createContext(null), u3 = ({
23419
23419
  [u]
23420
23420
  ), D = (O, T) => {
23421
23421
  v(T), E("");
23422
- }, j = (O) => {
23423
- E(f === O || O === "0" ? "" : O);
23424
23422
  }, m = (O) => {
23423
+ E(f === O || O === "0" ? "" : O);
23424
+ }, j = (O) => {
23425
23425
  const T = {
23426
23426
  accounts: a,
23427
23427
  dateRange: o
@@ -23476,8 +23476,8 @@ const si = h.createContext(null), u3 = ({
23476
23476
  go,
23477
23477
  {
23478
23478
  data: y,
23479
- onSelected: j,
23480
- onViewTransactions: m,
23479
+ onSelected: m,
23480
+ onViewTransactions: j,
23481
23481
  selectedId: f,
23482
23482
  title: r.spend_tab_title
23483
23483
  }
@@ -23486,8 +23486,8 @@ const si = h.createContext(null), u3 = ({
23486
23486
  go,
23487
23487
  {
23488
23488
  data: x,
23489
- onSelected: j,
23490
- onViewTransactions: m,
23489
+ onSelected: m,
23490
+ onViewTransactions: j,
23491
23491
  selectedId: f,
23492
23492
  title: r.income_tab_title
23493
23493
  }
@@ -23639,15 +23639,15 @@ const i7 = (A) => A.reduce((i, n) => {
23639
23639
  (H) => H.category_guid === i || H.top_level_category_guid === i
23640
23640
  ) : A).reduce(
23641
23641
  (H, b) => {
23642
- const { category_guid: p, top_level_category_guid: y, month: x, total: w, year: D } = b, j = i ? p : y;
23643
- H[j] || (H[j] = {
23644
- id: j,
23645
- category: j,
23642
+ const { category_guid: p, top_level_category_guid: y, month: x, total: w, year: D } = b, m = i ? p : y;
23643
+ H[m] || (H[m] = {
23644
+ id: m,
23645
+ category: m,
23646
23646
  category_guid: p,
23647
23647
  top_level_category_guid: y
23648
23648
  });
23649
- const m = nA(new Date(D, x - 1), AA.MONTH_SHORT);
23650
- return H[j][m] || (H[j][m] = 0), H[j][m] = H[j][m] + w, H;
23649
+ const j = nA(new Date(D, x - 1), AA.MONTH_SHORT);
23650
+ return H[m][j] || (H[m][j] = 0), H[m][j] = H[m][j] + w, H;
23651
23651
  },
23652
23652
  {}
23653
23653
  );
@@ -23708,7 +23708,7 @@ const i7 = (A) => A.reduce((i, n) => {
23708
23708
  }, E7 = C(d7), h7 = {
23709
23709
  view_transactions: "View Transactions"
23710
23710
  }, l7 = ({ onBackClick: A, sx: t }) => {
23711
- const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(), b = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D, j] = h.useState("Chart"), [m, O] = h.useState(""), [T, tA] = h.useState({
23711
+ const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(), b = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D, m] = h.useState("Chart"), [j, O] = h.useState(""), [T, tA] = h.useState({
23712
23712
  start: Rr(BA(Ne(/* @__PURE__ */ new Date(), 6)), 1),
23713
23713
  end: BA(/* @__PURE__ */ new Date())
23714
23714
  });
@@ -23729,14 +23729,14 @@ const i7 = (A) => A.reduce((i, n) => {
23729
23729
  d,
23730
23730
  T.start,
23731
23731
  T.end
23732
- ), JA = m.length ? bA.filter(
23733
- (Ke) => Ke.top_level_category_guid === m || Ke.category_guid === m
23732
+ ), JA = j.length ? bA.filter(
23733
+ (Ke) => Ke.top_level_category_guid === j || Ke.category_guid === j
23734
23734
  ) : Eh(bA);
23735
23735
  return {
23736
23736
  stackedDatasets: JA.filter(fh),
23737
23737
  unstackedDatasets: JA.filter(Fi)
23738
23738
  };
23739
- }, [d, m, T]), iA = h.useMemo(() => {
23739
+ }, [d, j, T]), iA = h.useMemo(() => {
23740
23740
  const bA = nA(
23741
23741
  T.start,
23742
23742
  I ? AA.MONTH_SHORT_YEAR : AA.MONTH_YEAR
@@ -23746,7 +23746,7 @@ const i7 = (A) => A.reduce((i, n) => {
23746
23746
  );
23747
23747
  return `${bA} - ${JA}`;
23748
23748
  }, [T, I]), oA = (bA, JA) => {
23749
- j(JA ?? D), n(V.TRENDS_CLICK_TOGGLE);
23749
+ m(JA ?? D), n(V.TRENDS_CLICK_TOGGLE);
23750
23750
  }, sA = (bA) => {
23751
23751
  const JA = Rr(bA?.[0], 1), Ke = bA?.[1], Yt = Ms(Ke, JA);
23752
23752
  tA({ start: JA, end: Ke }), n(V.TRENDS_CLICK_DATE, {
@@ -23804,7 +23804,7 @@ const i7 = (A) => A.reduce((i, n) => {
23804
23804
  textOverflow: "unset"
23805
23805
  },
23806
23806
  variant: r ? "H3" : "Body",
23807
- children: f(m) || H.sub_title
23807
+ children: f(j) || H.sub_title
23808
23808
  }
23809
23809
  ),
23810
23810
  /* @__PURE__ */ e(R, { variant: r ? "Body" : "Small", children: iA })
@@ -23852,7 +23852,7 @@ const i7 = (A) => A.reduce((i, n) => {
23852
23852
  }
23853
23853
  ),
23854
23854
  /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", width: "100%", children: [
23855
- /* @__PURE__ */ e(L, { flexGrow: 1, children: m && /* @__PURE__ */ s($, { onClick: () => O(""), sx: { p: 0, pr: 5 }, children: [
23855
+ /* @__PURE__ */ e(L, { flexGrow: 1, children: j && /* @__PURE__ */ s($, { onClick: () => O(""), sx: { p: 0, pr: 5 }, children: [
23856
23856
  /* @__PURE__ */ e(q, { name: "arrow_back" }),
23857
23857
  H.all_categories
23858
23858
  ] }) }),
@@ -23875,7 +23875,7 @@ const i7 = (A) => A.reduce((i, n) => {
23875
23875
  {
23876
23876
  monthlyCategoryTotals: d,
23877
23877
  onClickRow: cA,
23878
- selectedCategory: m,
23878
+ selectedCategory: j,
23879
23879
  selectedDateRange: T
23880
23880
  }
23881
23881
  )
@@ -23886,7 +23886,7 @@ const i7 = (A) => A.reduce((i, n) => {
23886
23886
  /* @__PURE__ */ e(
23887
23887
  E7,
23888
23888
  {
23889
- categoryGuid: m,
23889
+ categoryGuid: j,
23890
23890
  dateRange: T,
23891
23891
  isOpen: x,
23892
23892
  onClose: () => w(!1)